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

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

 Copyright 2022-2023 Oddbird
 SPDX-License-Identifier: BSD-3-Clause
*/
/*


 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 fq,Wj8,rxz,tx,Lq,RJY,tvx,G6,bF,sYv,Ljv,yxn,oY,nz6,CF8,IY,dgz,k6z,Kjg,G6z,ozJ,jY4,iqq,TSz,w8Y,QYJ,RX,OqF,yv,a4U,gL,zJ6,ne,UM,Yzg,xg8,mk,X9,qzn,Wkq,l$v,M1,rZn,RIJ,OM,tLF,sXz,LkY,za,VLJ,N1,gcq,CBj,D1q,Pe,U1g,u9v,kax,vcj,Hev,g7,BL8,s5,d1z,JZS,I$z,m1v,Xk6,kZ,AZ8,wkq,QXj,ML6,Zez,a$g,zIg,x1v,eIq,SMj,$1Y,lcS,tYx,LNY,swg,QL,y1n,c1Y,Zc,dHU,k1x,DHq,vZJ,UHJ,aw,Oeg,z1,NH,YZ,H2S,eY,G1j,KNq,FNF,E5,b2x,pev,oZn,jwU,i2n,Icx,mH4,XeU,T76,h1,A14,MYJ,O2q,z4z,tO,Y58,q54,LM,EZU,laj,e4z,Vez,rOn,Ryx,nkS,L7x,cOz,dIF,JOz,
UI8,uX6,K7g,F7g,p$v,Iaz,mI6,X$z,w$6,Mev,YPJ,je,eyU,hyx,SPJ,AO,QP,OP,hO,EP,$k,R6F,LQz,yL4,ndJ,cLg,BIU,nc,dFU,cG,BG,JL,D7,DFF,UFn,ufJ,kuF,vd6,KQz,FQ6,Gu8,bcj,od8,vG,kd,jtg,I7z,icS,XGv,mFS,TIn,wG4,ALY,It,iM,mQ,Xf,wI,MuY,AL,Oc6,xFF,MF,e6g,qxn,h6F,Ox,Sxg,Edx,$Fz,at,Vtg,Yd,RKz,ttz,eu,LYz,sUj,ysF,gNS,PhU,nNz,Su,Ch4,csS,Ex,BOS,dCY,$d,Wg,lh,Vr,JsU,UCq,DCn,f5,k7S,vNq,H5F,RU,s1,L5,yr,gO,Pg,KYF,FYY,b5q,pgY,oNg,jUv,IlU,i5n,mCg,Xgn,TOz,wgJ,Asv,QU8,cg,Mt4,Z5Y,Dl,O5q,uh,kN,alF,Y1v,xCF,eKJ,hKS,S1J,ENF,VVn,f1j,rlz,
RO4,tVJ,sZF,Llz,n9z,K5,CI8,clU,Bdq,dsU,JlY,DsU,u7q,is8,ms8,Xtv,Al8,QZn,T7,MVn,a1v,Yc4,xsn,eOS,qcv,hOq,Scq,E96,$sY,lz6,Vmq,zOz,fzY,r4z,Raj,tmJ,siS,L16,y4z,gWq,PW4,B96,CWx,D_z,d_J,J4S,k_x,vW4,HWq,U_F,F1z,ucY,bW8,$N,p4x,Wt,V7,oWz,Iz6,iWj,T9z,YRz,A4F,w4S,MmY,OWq,Qiz,EW8,qRS,$_J,Ww4,lLn,Vi6,fLJ,Rrx,rCj,tij,sh8,Lw8,yCn,Pzj,Cz8,cCj,BKY,JCn,d4n,o2U,sc,jhJ,ipS,m48,XPx,TKz,wP4,Qhz,Mig,Zpq,ct,Bt,Opg,er4,D1,Uc,E2v,WSY,gY8,Ks,CPz,cYg,DL6,dLx,JY6,oZ,ULz,uPS,vYU,H7U,KS4,FSz,G4j,b7g,pAq,j0F,Ijx,mLz,i7Y,wAg,Q7,Oc,
Q0j,MFF,Z7v,O74,ajJ,zVg,Y6z,eVv,xLq,lW,fW,kdv,sR,bRz,p2U,LW,jlq,osx,MSJ,ZRF,ORv,zj4,ejz,hjq,Swn,Es8,$tJ,lxU,fxn,rr8,nW,tCn,yrn,g_n,PTF,n_U,crn,Lyx,RXS,CTz,c4,Jrz,ksg,UJg,d9,HSY,Fyn,Gsv,bSj,pqq,uW,o_n,Ixz,jox,iSx,Xqz,H4,ZS6,xJ6,hXz,qLz,$Jx,bW,Vng,jm,iW,Ii,tnS,l5v,s_z,T_,PNv,Q_,M_,cHU,JHS,USn,uLz,kiz,Zz,vBz,OR,Hjx,FeF,GiJ,bjS,pSj,j_v,YW,I5z,ijY,h4,$W,T64,wSv,AHj,Q_4,Ojx,a5S,N6z,Yun,$SY,WtS,hUg,VQ8,f0J,Rcx,yj,PP,np,y68,gGS,cP,PwF,nGj,Cwv,c68,dcq,J6S,Dc4,Ucx,Bc4,uo8,JC,vGv,KtF,UJ,HXz,Ftn,k$6,G$U,k2,pj8,
oGz,I0v,iXj,XjF,mcS,Tcx,QAv,wjJ,ZXn,qCS,SCv,WA6,$cF,EGY,lYn,fYn,RM6,rgv,sgz,ji,ygz,guY,Pjv,nu4,Jgz,UTz,DTz,uN6,ktv,XW,vuJ,HN8,FAz,bNv,jgn,iNF,IYx,f7,mTY,Gtg,ZNv,aYF,zMz,Ngz,L7,Yex,eMS,Se4,WLS,$T6,rWj,Ruq,tEF,ssY,yWJ,cWU,gHq,nHF,C_4,BJq,ddj,Ddj,JWg,uyg,UdY,kY,kT6,H0x,KL8,pyq,o0,jF,oH8,js8,I0,Xyv,T4,wU,AY,Qsj,QS,O0x,a0,aAz,zuF,NJx,YKU,YY,xdn,euz,qKz,SKY,$dz,Vrj,r5F,Vy,RsF,trY,sDx,Lgz,y5q,gVn,P0q,nVS,Rl,BE6,d$j,J56,D$S,U$v,u28,kLY,vVz,HaF,KgF,Fg6,GLq,baj,CR,Mrg,ZaS,c2,B2,d8,Oaq,aJz,zs4,NES,YmY,x$8,esU,
$$z,Wz6,lrz,V3U,frY,ui,v2,H2,KR,bi,pR,ol,Roj,Il,s1S,ii,Lzg,yaU,mu,g7F,Pmv,n7j,kSU,HGq,pVJ,iGU,Ir6,v7v,m6z,wV8,SDj,arF,VMF,N_n,ld6,fd6,Zs,RWS,al,sJn,LKv,gJ4,PDg,nJx,cGJ,Ys,daq,JGF,DaS,Uan,uYF,kGn,vJY,BmU,FKY,GGF,bkx,eS,mav,XE6,ik8,wEJ,AGn,MMS,Zk6,QJz,eWz,hW6,EJJ,Wrn,Ro,t1v,Rwg,Pp4,CpJ,c2v,BN6,deF,J2z,De6,Bq,bPj,oh6,FrJ,Kr6,pIz,u3F,INj,aN8,XI8,TNY,wI4,$ev,lyz,EhJ,s$z,SZz,UeU,tJj,mev,OPz,W$U,jfz,vh6,kmU,HP6,GmU,hwz,iT,kYU,Hv4,K$U,F$F,GY4,TH4,OvU,ay8,ao,NHY,ePg,Ew6,S_8,W2z,lpz,fpx,R2z,r$F,t$6,V6,spv,
L2J,y$U,fj,drJ,BC4,c$q,uJS,J$v,kbq,Urz,R_,v1j,Gbx,K2v,F28,pfY,IpY,ihY,TCS,wfz,A$g,M$8,Lj,OhS,NCq,apF,YgU,h2j,Sgz,WHj,Vlv,Cj,cS,tl4,smF,BS,d6,LHS,JH,D5,ymg,Uu,gPF,uN,P4J,nPv,vS,C4z,cm6,Bl4,dPF,JmF,UP8,DP4,kkz,KHj,Htv,FHz,Gkg,uAq,btj,jmn,oPU,vPU,Img,itF,bN,mPz,Tlx,X0q,w06,Amq,Mln,QmJ,Zt8,o_,amS,zD8,Otg,YHg,xPz,eD6,EPY,lbj,tPv,gtU,I_,CKv,cjF,iN,B5j,w6,MS,kyv,XL,a_,vtY,H4q,FZ4,Gyq,pFx,jQ6,Ibq,i4v,mG8,wF8,O4Y,MPz,T5U,abj,zpx,xB,Z4F,N5Y,hH,Ylz,xGU,ep8,qln,$G4,hpj,EtU,fh8,rI4,yIS,LJJ,nRq,D7g,U7j,kQz,HVF,
KJF,GQ6,bVg,psS,jnS,Ihj,iVz,Te6,MgJ,ZVx,wsx,ahz,Nez,zE6,OVF,Ydz,eEg,qdY,hEj,SdS,ERj,LX,y9,CX,dc,lnq,Vkz,rSn,sjj,J6,D0,LMz,UC,Pl6,nSS,Cl4,kG,UR8,HUx,FMz,GRY,bUv,oSn,jjF,Fo,mRS,bw,T3n,jQ,wWU,IA,Qj8,MkJ,ZUS,iUq,G$,OUn,Yfx,iw,eNq,N3Y,mt,ESU,lRY,Vhv,fRz,thJ,T$,srz,gg4,wc,PcS,cdF,BwY,dXJ,Ccn,vgz,Fx4,HCz,GW6,ogz,IR4,mX6,Adv,wDg,OCJ,OC,aRj,zdv,aA,NwU,z$,YrS,xXY,edj,hd4,qrz,Srj,Eg6,$X4,WEg,s9Y,yU6,PCz,g$j,rUF,VaF,CCJ,BAv,uZ6,kr8,KEn,j9Y,iiF,eQ,m3z,TA4,wd4,Q96,av8,YYS,qYj,hCF,SYz,E$J,fiF,$3F,s3q,L3F,ykS,PZn,
SQ,nDU,ckU,BPj,dVj,JkY,DVg,UVY,ubx,vD4,Hzx,lj,K3v,F36,bzq,fN,GXv,oD6,mVj,tg,Xwv,TPv,wwj,MNg,Zzg,AkJ,aiJ,xVx,e8z,qsv,CN,h8J,WpF,l3z,Jg,rug,VqJ,f3z,sMz,LpU,yux,C9F,dNn,Bkz,cuF,JuF,UNn,uSq,Fpn,kpg,Gp6,pOg,bdU,XO6,Auj,MqJ,Od4,Y2j,$NU,Ee,lu4,R5U,szj,hg,tW,CG6,Je4,d06,U08,u5q,v04,kfz,HBz,K9S,sK,o7n,ce6,D0S,Btg,rJ,bBF,pog,o0x,jz8,IuY,iBj,m0J,Xo6,u_,Ttx,woS,Aeq,Qz4,MsY,K0,ZBU,z5z,Yj8,x0Y,Wmj,Vbn,fkz,rJ6,tb8,sHn,Xy,yJj,gQz,POq,nQz,COU,cJ8,dl8,Dlv,u6j,kPS,bE4,Fmj,pmn,Ikz,iEY,OK,mlg,Xmq,TTS,QHn,ZE4,Mbv,akS,
NTq,YH,xlJ,e1Y,Ybz,qbY,h1F,EQJ,WVS,$lU,lI6,Sb4,V7j,fIq,rzz,RmU,t7j,sBF,LVn,yz6,gCx,CLg,nCz,czF,d5z,BZn,xH,JzY,uUg,KVU,D5v,b68,p3J,oCz,jBx,m5U,Z6U,O6F,zmS,NZx,t5,q76,$5S,VXz,sm,tXv,Rlx,skz,gE,LBv,yp6,grY,nrY,CHn,cpq,BYg,Jpv,DqY,RfY,KBJ,Gvv,s8S,t6Y,LT6,yPU,P5F,C5S,Byx,JPJ,UDz,oIF,ifY,XBz,Tyz,wBF,APz,Q8F,Zfz,Ofq,Ny4,YBg,xD8,efx,qBx,hfY,SBz,EIz,lXS,Rnx,Hl,F2,GL,b0,tKJ,jr,L48,JMz,HZn,kJg,MKU,ZZS,OZU,gMF,dzx,Cy8,znq,NxF,Yhg,UzF,enx,hnv,EMJ,lBS,VWF,aD,YV,xV,yq4,LaF,CXn,cqF,H9Y,FaJ,b9z,pRq,IBg,mAj,i9F,wRJ,
Q2x,YTv,zBq,Z9j,Nij,O9U,xAx,STS,LG,to8,fOz,LOv,y8z,Prx,nvz,g_,Cr6,dyg,Dyx,Uy6,k2z,uqq,CG,b_Y,UD,ovq,juj,k7,IOz,i_6,myJ,Xxq,Tng,wx8,A8v,QuU,MoJ,Z_Y,O_S,aO4,zTU,Nnx,Ypz,vV,xyY,eTn,qpY,hTj,SpU,EvY,$yj,Wnz,loU,V9x,fox,rTU,KG,t9n,Lng,gF4,Cng,dQ8,JTF,DQJ,uG6,vFJ,HF8,Knq,im,oF8,bFU,j48,Io6,iFv,TD4,wHY,AT8,M96,x7,OFY,N6,zgz,NDj,e3,Y3Y,xQz,eg4,q38,ha,$QF,l8q,tZJ,RbF,LWz,yR4,fk,gaz,Ptj,CtU,BWU,dvg,Dvx,Uvz,cR6,u1S,FW8,oaq,jWj,rm,I8U,ixS,ARJ,mvU,TWz,w7S,zbS,MZ4,NWn,xvv,q8Y,hbU,S8g,Eaq,$v4,WbJ,Vc4,f9x,rhJ,RxU,
tcx,Lbz,gUS,CUz,JhS,utz,vU4,Fb6,PE,GEz,b3J,pcS,oUU,jbz,i38,mxU,XcJ,Tsq,wcY,AhU,Qbz,McY,Z3x,O3J,a9S,Ns6,zxj,exF,hxz,cE,SyS,WIJ,$xn,fwU,rQv,Rzz,sT6,gxq,C18,nxg,yQ4,djS,B2U,kxn,JQ4,UU,Ujz,p9F,KI4,FI4,Gxq,b16,oxn,IwF,jTj,uD,kJ,QTn,mjq,AQx,w9U,X9v,T2S,O1x,zzx,YI4,N2j,hzU,qIz,Exx,lFU,Vx6,W8S,fFg,RhJ,rBS,sax,gq8,pk,Pfz,nqJ,BRg,uFz,GqJ,jM,prv,iDj,wrj,TRq,mOq,XrY,TG,ZDJ,AB6,QaF,ODF,zhx,aF6,xOx,ehg,hh6,SNF,Eqn,$O8,W54,V8j,ffv,qa,R36,t8n,g4U,PYv,lp,n4q,c3n,HQz,t2,Dfj,v4F,Uf8,uQn,bQg,Gnz,Ifv,pC6,iQz,mfj,LP,Tbg,
wCx,A3U,XCj,PI,Q5S,yY,afq,h3U,SaJ,E46,$fx,WRF,lVz,R9q,fVJ,ri6,V0v,sdx,gKq,Cqn,civ,d9q,U9j,Ji8,D9z,uiU,vK6,HOS,KRY,FRg,G5n,bOY,oKg,UZ,IVz,XKz,m9F,wKU,Tp6,AiS,Qdj,up,OOq,$9U,Sv8,V5n,fDz,yXJ,gbv,P8z,nbF,C86,cXY,JXj,DEF,UEz,kZU,vbx,Hg8,mr,bgg,GZF,FD6,KD4,obF,igq,jy6,X6J,TXJ,w6q,AXF,aDv,Qyv,M5g,ZgJ,z0g,NXn,YA4,Ogz,A2,qAq,SA4,h08,Me,$Eq,W_Y,lUS,Ebz,VRU,fU6,r_U,Rk8,tR6,L_g,y_S,gL8,PgF,c_8,Cgq,UYn,nLx,ZN,urU,BM8,DYS,HIj,K_z,F_v,GU4,bIv,pUU,oLY,jV4,IUz,iIq,mYz,TMY,wUJ,A_S,MRq,OIU,zkv,YVj,SV4,qV8,hkz,ekq,xY6,
ELn,$YU,WXn,lKS,Wp,rbg,RAj,tdU,sCn,LXS,ybz,cb8,Pbv,gXv,nXY,FXz,HlY,Cbq,vXU,ilx,mZ6,XJx,Thx,wJF,Abj,QCg,MdU,aKv,Nh4,xZU,qFg,hAg,SF4,lZx,WGx,VpY,rFq,kw,sqv,LG4,yF8,gpz,Hp,Kv,C3S,dmn,vpU,GcY,bmn,pNq,opv,jq8,IZ6,mmv,TzS,XNx,wNz,QqJ,MpY,Zmn,Omz,aZF,zQj,m$,NzS,EpJ,$m4,qWv,eQU,SWn,hQF,rKS,Rtn,tBS,sE8,LfF,yKY,niq,giq,PQS,kwz,viS,Hu6,Gwv,buU,KfJ,FfY,Tox,AKS,MBz,OuS,ztF,YXJ,htx,SXz,Ei8,lej,WC4,$iF,Vzj,fe6,R_J,tzq,sPz,LCz,ycz,gon,noS,Cav,cc8,BGJ,dWJ,Jc6,upz,kl6,Hbj,FCg,KC4,Glq,NB,bb8,pXS,ooF,jPY,XXn,mWU,TGn,
wXJ,Ac8,QPj,Ob4,z_q,NGz,Ykj,xWg,e_z,qkS,h_F,Skq,Eog,$W4,lCv,WU8,VTY,fCz,r0z,RGv,tTz,sSz,LUS,y0n,Wf,P6j,nmn,c06,B$F,dkq,J0Y,Dk8,UkS,k0U,vmx,KUY,G0U,p5z,irv,jS8,omJ,ICn,mkn,X5n,T$6,QSF,MTF,Zrj,OrF,zG8,N$z,YGz,eGF,xkq,qGv,hGz,SG4,Wi8,lE6,VHF,fEj,roS,R7v,Liv,yoq,nh,Bjv,d8x,D8z,k8g,uTx,v5g,Hw6,Ch,Bf,FiU,G8n,Dp,Ug,jeF,bwY,paJ,m8q,Xaj,TjY,waj,Zw6,aEz,z7v,Njq,YnJ,x8U,qnx,h7z,SnU,E5v,$8F,Wh8,lMv,vf,VIU,fM4,Kh,rtv,RHx,tIq,sIJ,Lhq,ytn,bE,ph,gln,PVz,op,nl4,CV8,ct8,Bfz,JtU,Dwv,uu6,Fhg,Khz,HH6,GCz,bHx,mwS,jIU,
IMz,olz,iHx,Ip,wY8,AtJ,QIj,MIF,ZH6,aMv,Nfx,eHn,Elx,hHj,iE,qiF,fGj,R$Y,m2,tUn,sL6,L6J,gj4,Pd8,nj4,CdU,B0U,d2n,Jnj,U2g,uM8,vjz,Hyv,pnF,by8,jLU,IGz,wnz,AnU,QLx,MUg,aG4,YEU,Mr,Zp,x2z,e$F,qEF,h$j,SEz,$2x,WcS,lTU,Vfx,rwY,Ren,tfg,Og,scU,Lcq,P2q,nEz,ap,zb,BBq,C24,DKU,dK6,UKF,kVn,e$,vEn,HLz,GVg,pMF,qr,jcx,ITq,iLF,mKJ,XMx,TBF,wMj,ZLS,OLq,NBn,aTz,zeF,YOF,heY,xK4,qOg,SOz,EE8,$Kz,V2F,fQn,r7n,t2n,sFJ,CRx,nfF,UU6,vfq,rl,H8S,ILg,KFS,FFg,b86,jFJ,IQ4,QFz,M2j,Z84,O8J,aQj,zZU,YQU,xUU,qQU,SQJ,eZq,hZS,$UJ,Efz,lt6,rD8,
VOS,Rv8,tO8,sOJ,LqY,yDq,gTY,nTz,Pon,dh8,UhU,JDv,uDF,k9x,vT8,Ct,H$n,KqS,B0,G9z,FqJ,b$Y,p_S,jOx,Itg,mhz,X_j,Tq8,w_J,ADY,Z$x,atq,YoY,NqY,xh6,evq,Soj,sGx,l6Y,yEz,gy4,nyz,Cuz,JE6,Doz,Uog,usj,kHS,vyJ,HT8,Kdz,GHq,Fd8,oyn,jG8,I68,iTF,moY,XvJ,TFS,AEg,ZTv,OT6,a6z,zYx,NFv,Y0v,q06,eYg,$oq,WPY,l2U,V4g,f2U,RRS,rA6,s6z,nAF,dnj,B4v,JAz,DnJ,Unn,kFz,Tk,HJ8,am,FP8,bJU,pbJ,mnn,T4z,Q6j,ZJg,OJz,zRz,N4n,YS6,eR8,hRU,SSn,$n6,V_z,lHn,W04,qP,rVz,fH6,RLq,t_n,sN8,L0x,yVq,g8v,PvJ,CvF,cVS,BQz,dMq,JVz,DMS,UMz,u0q,kBn,HYF,K0S,iY8,
mMx,XQF,wQS,AV6,QNY,OYU,VI,eLn,q$z,hL8,S$n,E86,f4,r5,V_,RQ,sl,tGq,s7S,g3v,n3z,PAJ,yI,CA6,c9J,B1z;_.VU=function(W,l){if(Error.captureStackTrace)Error.captureStackTrace(this,_.VU);else{var V=Error().stack;V&&(this.stack=V)}W&&(this.message=String(W));l!==void 0&&(this.cause=l)};
fq=function(){throw Error("E");};
Wj8=function(W,l){l=String.fromCharCode.apply(null,l);return W==null?l:W+l};
rxz=function(W){var l=!1;l=l===void 0?!1:l;if(l4U){if(l&&(Vvq?!W.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(W)))throw Error("F");W=(f4z||(f4z=new TextEncoder)).encode(W)}else{for(var V=0,f=new Uint8Array(3*W.length),r=0;r<W.length;r++){var R=W.charCodeAt(r);if(R<128)f[V++]=R;else{if(R<2048)f[V++]=R>>6|192;else{if(R>=55296&&R<=57343){if(R<=56319&&r<W.length){var y=W.charCodeAt(++r);if(y>=56320&&y<=57343){R=(R-55296)*1024+y-56320+65536;f[V++]=R>>18|
240;f[V++]=R>>12&63|128;f[V++]=R>>6&63|128;f[V++]=R&63|128;continue}else r--}if(l)throw Error("F");R=65533}f[V++]=R>>12|224;f[V++]=R>>6&63|128}f[V++]=R&63|128}}W=V===f.length?f:f.subarray(0,V)}return W};
tx=function(W){_.rS.setTimeout(function(){throw W;},0)};
_.sz=function(W,l){return W.lastIndexOf(l,0)==0};
Lq=function(W,l){var V=W.length-l.length;return V>=0&&W.indexOf(l,V)==V};
_.gS=function(W){return/^[\s\xa0]*$/.test(W)};
_.P8=function(W,l){return W.indexOf(l)!=-1};
_.nq=function(W,l){return _.P8(W.toLowerCase(),l.toLowerCase())};
_.dS=function(W,l){var V=0;W=Cq(String(W)).split(".");l=Cq(String(l)).split(".");for(var f=Math.max(W.length,l.length),r=0;V==0&&r<f;r++){var R=W[r]||"",y=l[r]||"";do{R=/(\d*)(\D*)(.*)/.exec(R)||["","","",""];y=/(\d*)(\D*)(.*)/.exec(y)||["","","",""];if(R[0].length==0&&y[0].length==0)break;V=RJY(R[1].length==0?0:parseInt(R[1],10),y[1].length==0?0:parseInt(y[1],10))||RJY(R[2].length==0,y[2].length==0)||RJY(R[2],y[2]);R=R[3];y=y[3]}while(V==0)}return V};
RJY=function(W,l){return W<l?-1:W>l?1:0};
_.Uz=function(){var W=_.rS.navigator;return W&&(W=W.userAgent)?W:""};
tvx=function(W){if(!uF||!kz)return!1;for(var l=0;l<kz.brands.length;l++){var V=kz.brands[l].brand;if(V&&_.P8(V,W))return!0}return!1};
G6=function(W){return _.P8(_.Uz(),W)};
bF=function(){return uF?!!kz&&kz.brands.length>0:!1};
sYv=function(){return bF()?!1:G6("Opera")};
Ljv=function(){return bF()?!1:G6("Trident")||G6("MSIE")};
yxn=function(){return bF()?tvx("Microsoft Edge"):G6("Edg/")};
oY=function(){return G6("Firefox")||G6("FxiOS")};
_.gzJ=function(){return G6("Safari")&&!(_.jv()||(bF()?0:G6("Coast"))||sYv()||(bF()?0:G6("Edge"))||yxn()||(bF()?tvx("Opera"):G6("OPR"))||oY()||G6("Silk")||G6("Android"))};
_.jv=function(){return bF()?tvx("Chromium"):(G6("Chrome")||G6("CriOS"))&&!(bF()?0:G6("Edge"))||G6("Silk")};
_.PFn=function(){return G6("Android")&&!(_.jv()||oY()||sYv()||G6("Silk"))};
nz6=function(W){var l={};W.forEach(function(V){l[V[0]]=V[1]});
return function(V){return l[V.find(function(f){return f in l})]||""}};
CF8=function(W){var l=_.Uz();if(W==="Internet Explorer"){if(Ljv())if((W=/rv: *([\d\.]*)/.exec(l))&&W[1])l=W[1];else{W="";var V=/MSIE +([\d\.]+)/.exec(l);if(V&&V[1])if(l=/Trident\/(\d.\d)/.exec(l),V[1]=="7.0")if(l&&l[1])switch(l[1]){case "4.0":W="8.0";break;case "5.0":W="9.0";break;case "6.0":W="10.0";break;case "7.0":W="11.0"}else W="7.0";else W=V[1];l=W}else l="";return l}var f=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");V=[];for(var r;r=f.exec(l);)V.push([r[1],r[2],r[3]||void 0]);
l=nz6(V);switch(W){case "Opera":if(sYv())return l(["Version","Opera"]);if(bF()?tvx("Opera"):G6("OPR"))return l(["OPR"]);break;case "Microsoft Edge":if(bF()?0:G6("Edge"))return l(["Edge"]);if(yxn())return l(["Edg"]);break;case "Chromium":if(_.jv())return l(["Chrome","CriOS","HeadlessChrome"])}return W==="Firefox"&&oY()||W==="Safari"&&_.gzJ()||W==="Android Browser"&&_.PFn()||W==="Silk"&&G6("Silk")?(l=V[2])&&l[1]||"":""};
_.cxJ=function(W){if(bF()&&W!=="Silk"){var l=kz.brands.find(function(V){return V.brand===W});
if(!l||!l.version)return NaN;l=l.version.split(".")}else{l=CF8(W);if(l==="")return NaN;l=l.split(".")}return l.length===0?NaN:Number(l[0])};
IY=function(){return uF?!!kz&&!!kz.platform:!1};
_.BS4=function(){return IY()?kz.platform==="Android":G6("Android")};
dgz=function(){return G6("iPhone")&&!G6("iPod")&&!G6("iPad")};
_.iF=function(){return dgz()||G6("iPad")||G6("iPod")};
_.Jx6=function(){return IY()?kz.platform==="macOS":G6("Macintosh")};
_.DgY=function(){return IY()?kz.platform==="Windows":G6("Windows")};
_.Ugz=function(){return IY()?kz.platform==="Chrome OS":G6("CrOS")};
_.Xn=function(W){return W[W.length-1]};
_.T6=function(W,l,V){l=_.unv(W,l,V);return l<0?null:typeof W==="string"?W.charAt(l):W[l]};
_.unv=function(W,l,V){for(var f=W.length,r=typeof W==="string"?W.split(""):W,R=0;R<f;R++)if(R in r&&l.call(V,r[R],R,W))return R;return-1};
k6z=function(W){for(var l=_.wS,V=typeof W==="string"?W.split(""):W,f=W.length-1;f>=0;f--)if(f in V&&l.call(void 0,V[f],f,W))return f;return-1};
_.Oz=function(W,l){return _.Mg(W,l)>=0};
_.vzF=function(W,l){_.Oz(W,l)||W.push(l)};
_.aY=function(W,l){l=_.Mg(W,l);var V;(V=l>=0)&&_.Hqn(W,l);return V};
_.Hqn=function(W,l){Array.prototype.splice.call(W,l,1)};
_.z6=function(W){var l=W.length;if(l>0){for(var V=Array(l),f=0;f<l;f++)V[f]=W[f];return V}return[]};
_.xz=function(W,l){for(var V=1;V<arguments.length;V++){var f=arguments[V];if(_.Ng(f)){var r=W.length||0,R=f.length||0;W.length=r+R;for(var y=0;y<R;y++)W[r+y]=f[y]}else W.push(f)}};
_.FjU=function(W,l,V,f){Array.prototype.splice.apply(W,Kjg(arguments,1))};
Kjg=function(W,l,V){return arguments.length<=2?Array.prototype.slice.call(W,l):Array.prototype.slice.call(W,l,V)};
G6z=function(W,l){l=l||W;for(var V=0,f=0,r={};f<W.length;){var R=W[f++],y=_.ev(R)?"o"+_.qg(R):(typeof R).charAt(0)+R;Object.prototype.hasOwnProperty.call(r,y)||(r[y]=!0,l[V++]=R)}l.length=V};
_.p8z=function(W,l,V){V=V||_.bqv;for(var f=0,r=W.length,R;f<r;){var y=f+(r-f>>>1);var P=V(l,W[y]);P>0?f=y+1:(r=y,R=!P)}return R?f:-f-1};
_.hx=function(W,l,V){if(!_.Ng(W)||!_.Ng(l)||W.length!=l.length)return!1;var f=W.length;V=V||ozJ;for(var r=0;r<f;r++)if(!V(W[r],l[r]))return!1;return!0};
_.bqv=function(W,l){return W>l?1:W<l?-1:0};
ozJ=function(W,l){return W===l};
jY4=function(W,l,V){l=Array.prototype.splice.call(W,l,1);Array.prototype.splice.call(W,V,0,l[0])};
iqq=function(W){return I4j[W]||""};
TSz=function(W){if(!mgn)return _.$z(W);W=X8z.test(W)?W.replace(X8z,iqq):W;W=atob(W);for(var l=new Uint8Array(W.length),V=0;V<W.length;V++)l[V]=W.charCodeAt(V);return l};
w8Y=function(W,l){W.__closure__error__context__984382||(W.__closure__error__context__984382={});W.__closure__error__context__984382.severity=l};
_.Vv=function(W){W=Error(W);w8Y(W,"warning");return W};
QYJ=function(W,l){if(W!=null){var V;var f=(V=Axv)!=null?V:Axv={};V=f[W]||0;V>=l||(f[W]=V+1,W=Error(),w8Y(W,"incident"),tx(W))}};
RX=function(W,l,V){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(V===void 0?0:V)&&Symbol.for&&W?Symbol.for(W):W!=null?Symbol(W):Symbol():l};
OqF=function(W,l){tZ||_.Le in W||Mvj(W,Zqj);W[_.Le]|=l};
yv=function(W,l){tZ||_.Le in W||Mvj(W,Zqj);W[_.Le]=l};
a4U=function(W){if(4&W)return 512&W?512:1024&W?1024:0};
gL=function(W){OqF(W,34);return W};
zJ6=function(W){OqF(W,32);return W};
ne=function(){return typeof BigInt==="function"};
UM=function(W,l){return l===void 0?W.copyOnWrite!==Ce&&!!(2&(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Le]|0)):!!(2&l)&&W.copyOnWrite!==Ce};
_.jL=function(W,l){if(W!=null)if(typeof W==="string")W=W?new F9(W,Ga):_.bB();else if(W.constructor!==F9)if(NSJ&&W!=null&&W instanceof Uint8Array)W=W.length?new F9(new Uint8Array(W),Ga):_.bB();else{if(!l)throw Error();W=void 0}return W};
Yzg=function(W,l){if(typeof l!=="number"||l<0||l>=W.length)throw Error();};
xg8=function(W,l,V){var f=l&128?0:-1,r=W.length,R;if(R=!!r)R=W[r-1],R=R!=null&&typeof R==="object"&&R.constructor===Object;var y=r+(R?-1:0);for(l=l&128?1:0;l<y;l++)V(l-f,W[l]);if(R){W=W[r-1];for(var P in W)!isNaN(P)&&V(+P,W[P])}};
mk=function(W){return W&128?IX:void 0};
X9=function(W){W.isGuard_doNotManuallySetPrettyPlease=!0;return W};
qzn=function(){var W=eJn;return X9(function(l){for(var V in W)if(l===W[V]&&!/^[0-9]+$/.test(V))return!0;return!1})};
_.wL=function(W){var l=W;if(hJq(l)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(l))throw Error(String(l));}else if(SzJ(l)&&!Number.isSafeInteger(l))throw Error(String(l));return Ezx?BigInt(W):W=$gY(W)?W?"1":"0":hJq(W)?W.trim()||"0":String(W)};
Wkq=function(W,l){if(W.length>l.length)return!1;if(W.length<l.length||W===l)return!0;for(var V=0;V<W.length;V++){var f=W[V],r=l[V];if(f>r)return!1;if(f<r)return!0}};
l$v=function(W){var l=W>>>0;AZ=l;Qv=(W-l)/4294967296>>>0};
M1=function(W){if(W<0){l$v(-W);var l=_.L(VLJ(AZ,Qv));W=l.next().value;l=l.next().value;AZ=W>>>0;Qv=l>>>0}else l$v(W)};
rZn=function(W){var l=f$S||(f$S=new DataView(new ArrayBuffer(8)));l.setFloat32(0,+W,!0);Qv=0;AZ=l.getUint32(0,!0)};
RIJ=function(W,l){var V=l*4294967296+(W>>>0);return Number.isSafeInteger(V)?V:_.Z$(W,l)};
OM=function(W,l){var V=l&2147483648;V&&(W=~W+1>>>0,l=~l>>>0,W==0&&(l=l+1>>>0));W=RIJ(W,l);return typeof W==="number"?V?-W:W:V?"-"+W:W};
tLF=function(W){var l=AZ,V=Qv,f=V>>31;V=(V<<1|l>>>31)^f;W(l<<1^f,V)};
sXz=function(W,l){var V=-(W&1);W=(W>>>1|l<<31)^V;return OM(W,l>>>1^V)};
_.Z$=function(W,l){l>>>=0;W>>>=0;if(l<=2097151)var V=""+(4294967296*l+W);else ne()?V=""+(BigInt(l)<<BigInt(32)|BigInt(W)):(V=(W>>>24|l<<8)&16777215,l=l>>16&65535,W=(W&16777215)+V*6777216+l*6710656,V+=l*8147497,l*=2,W>=1E7&&(V+=W/1E7>>>0,W%=1E7),V>=1E7&&(l+=V/1E7>>>0,V%=1E7),V=l+LkY(V)+LkY(W));return V};
LkY=function(W){W=String(W);return"0000000".slice(W.length)+W};
_.yZn=function(W,l){l&2147483648?ne()?W=""+(BigInt(l|0)<<BigInt(32)|BigInt(W>>>0)):(l=_.L(VLJ(W,l)),W=l.next().value,l=l.next().value,W="-"+_.Z$(W,l)):W=_.Z$(W,l);return W};
za=function(W){if(W.length<16)M1(Number(W));else if(ne())W=BigInt(W),AZ=Number(W&BigInt(4294967295))>>>0,Qv=Number(W>>BigInt(32)&BigInt(4294967295));else{var l=+(W[0]==="-");Qv=AZ=0;for(var V=W.length,f=l,r=(V-l)%6+l;r<=V;f=r,r+=6)f=Number(W.slice(f,r)),Qv*=1E6,AZ=AZ*1E6+f,AZ>=4294967296&&(Qv+=Math.trunc(AZ/4294967296),Qv>>>=0,AZ>>>=0);l&&(l=_.L(VLJ(AZ,Qv)),W=l.next().value,l=l.next().value,AZ=W,Qv=l)}};
VLJ=function(W,l){l=~l;W?W=~W+1:l+=1;return[W,l]};
N1=function(W){return Array.prototype.slice.call(W)};
_.Yc=function(W,l){throw Error(l===void 0?"unexpected value "+W+"!":l);};
_.xc=function(W){if(W!=null&&typeof W!=="number")throw Error("L`"+typeof W+"`"+W);return W};
_.eL=function(W){if(W==null||typeof W==="number")return W;if(W==="NaN"||W==="Infinity"||W==="-Infinity")return Number(W)};
gcq=function(W){if(W!=null&&typeof W!=="boolean")throw Error("M`"+_.EM(W)+"`"+W);return W};
_.PBj=function(W){if(W==null||typeof W==="boolean")return W;if(typeof W==="number")return!!W};
_.We=function(W){switch(typeof W){case "bigint":return!0;case "number":return $c(W);case "string":return ncU.test(W);default:return!1}};
_.f2=function(W){if(!$c(W))throw _.Vv("enum");return W|0};
_.r7=function(W){return W==null?W:$c(W)?W|0:void 0};
CBj=function(W){if(typeof W!=="number")throw _.Vv("int32");if(!$c(W))throw _.Vv("int32");return W|0};
_.Rw=function(W){return W==null?W:CBj(W)};
_.t1=function(W){if(W==null)return W;if(typeof W==="string"&&W)W=+W;else if(typeof W!=="number")return;return $c(W)?W|0:void 0};
_.cZj=function(W){if(W==null)return W;if(typeof W==="string"&&W)W=+W;else if(typeof W!=="number")return;return $c(W)?W>>>0:void 0};
D1q=function(W){var l=0;l=l===void 0?0:l;if(!_.We(W))throw _.Vv("int64");var V=typeof W;switch(l){case 512:switch(V){case "string":return s5(W);case "bigint":return String(yL(64,W));default:return BL8(W)}case 1024:switch(V){case "string":return d1z(W);case "bigint":return _.wL(yL(64,W));default:return JZS(W)}case 0:switch(V){case "string":return s5(W);case "bigint":return _.wL(yL(64,W));default:return g7(W)}default:return _.Yc(l,"Unknown format requested type for int64")}};
Pe=function(W){return W==null?W:D1q(W)};
U1g=function(W){if(W[0]==="-")return!1;var l=W.length;return l<20?!0:l===20&&Number(W.substring(0,6))<184467};
u9v=function(W){var l=W.length;return W[0]==="-"?l<20?!0:l===20&&Number(W.substring(0,7))>-922337:l<19?!0:l===19&&Number(W.substring(0,6))<922337};
kax=function(W){if(W<0){M1(W);var l=_.Z$(AZ,Qv);W=Number(l);return ce(W)?W:l}l=String(W);if(U1g(l))return l;M1(W);return RIJ(AZ,Qv)};
vcj=function(W){if(u9v(W))return W;za(W);return _.yZn(AZ,Qv)};
Hev=function(W){if(U1g(W))return W;za(W);return _.Z$(AZ,Qv)};
g7=function(W){W=Be(W);ce(W)||(M1(W),W=OM(AZ,Qv));return W};
_.Kkx=function(W){W=Be(W);return W>=0&&ce(W)?W:kax(W)};
BL8=function(W){W=Be(W);if(ce(W))W=String(W);else{var l=String(W);u9v(l)?W=l:(M1(W),W=_.yZn(AZ,Qv))}return W};
_.FkU=function(W){W=Be(W);if(W>=0&&ce(W))W=String(W);else{var l=String(W);U1g(l)?W=l:(M1(W),W=_.Z$(AZ,Qv))}return W};
s5=function(W){var l=Be(Number(W));if(ce(l))return String(l);l=W.indexOf(".");l!==-1&&(W=W.substring(0,l));return vcj(W)};
d1z=function(W){var l=Be(Number(W));if(ce(l))return _.wL(l);l=W.indexOf(".");l!==-1&&(W=W.substring(0,l));return ne()?_.wL(yL(64,BigInt(W))):_.wL(vcj(W))};
JZS=function(W){return ce(W)?_.wL(g7(W)):_.wL(BL8(W))};
_.Gav=function(W){return ce(W)?_.wL(_.Kkx(W)):_.wL(_.FkU(W))};
_.beS=function(W){var l=Be(Number(W));if(ce(l)&&l>=0)return String(l);l=W.indexOf(".");l!==-1&&(W=W.substring(0,l));return Hev(W)};
_.pkn=function(W){var l=Be(Number(W));if(ce(l)&&l>=0)return _.wL(l);l=W.indexOf(".");l!==-1&&(W=W.substring(0,l));return ne()?_.wL((0,_.d7)(64,BigInt(W))):_.wL(Hev(W))};
_.jXY=function(W){if(W==null)return W;if(typeof W==="bigint")return ocv(W)?W=Number(W):(W=yL(64,W),W=ocv(W)?Number(W):String(W)),W;if(_.We(W))return typeof W==="number"?g7(W):s5(W)};
I$z=function(W,l){l=l===void 0?!1:l;var V=typeof W;if(W==null)return W;if(V==="bigint")return String(yL(64,W));if(_.We(W))return V==="string"?s5(W):l?BL8(W):g7(W)};
_.ieg=function(W){var l=typeof W;if(W==null)return W;if(l==="bigint")return _.wL(yL(64,W));if(_.We(W))return l==="string"?d1z(W):JZS(W)};
m1v=function(W){if(W==null)return W;var l=typeof W;if(l==="bigint")return String(yL(64,W));if(_.We(W)){if(l==="string")return s5(W);if(l==="number")return g7(W)}};
Xk6=function(W){if(W==null)return W;var l=typeof W;if(l==="bigint")return String((0,_.d7)(64,W));if(_.We(W)){if(l==="string")return _.beS(W);if(l==="number")return _.Kkx(W)}};
_.us=function(W){if(typeof W!=="string")throw Error();return W};
kZ=function(W){if(W!=null&&typeof W!=="string")throw Error();return W};
_.He=function(W){return W==null||typeof W==="string"?W:void 0};
AZ8=function(W,l,V,f){if(W!=null&&W[K2]===G1)return W;if(!Array.isArray(W))return V?f&2?l[TLz]||(l[TLz]=wkq(l)):new l:void 0;V=W[_.Le]|0;f=V|f&32|f&2;f!==V&&yv(W,f);return new l(W)};
wkq=function(W){W=new W;gL(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return W};
QXj=function(W,l,V){W=l?CBj(W):_.t1(W);return W==null?V?0:void 0:W|0};
ML6=function(W){return W};
Zez=function(W){return W};
a$g=function(W,l,V,f,r,R){W=AZ8(W,f,V,R);r&&(W=Oeg(W));return W};
zIg=function(W){return[W,this.get(W)]};
x1v=function(){return NLq||(NLq=new ow(gL([]),void 0,void 0,void 0,YMF))};
eIq=function(W){var l=jY(is);return l?W[l]:void 0};
SMj=function(W,l){var V=V===void 0?!1:V;if(jY(qMJ)&&jY(is)&&void 0===qMJ){var f=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,r=f[is];if(!r)return;if(r=r.reviveUnknownFields)try{r(f,l,hIF);return}catch(R){tx(R)}}V&&(W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(V=jY(is))&&V in W&&(W=W[V])&&delete W[l])};
$1Y=function(W,l){var V=jY(is),f;tZ&&V&&((f=W[V])==null?void 0:f[l])!=null&&QYJ(EcJ,3)};
lcS=function(W,l){l<100||QYJ(WNv,1)};
tYx=function(W,l,V,f){var r=f!==void 0;f=!!f;var R=jY(is),y;!r&&tZ&&R&&(y=W[R])&&VYF(y,lcS);R=[];var P=W.length;y=4294967295;var n=!1,B=!!(l&64),d=B?l&128?0:-1:void 0;if(!(l&1)){var J=P&&W[P-1];J!=null&&typeof J==="object"&&J.constructor===Object?(P--,y=P):J=void 0;if(B&&!(l&128)&&!r){n=!0;var D;y=((D=fcq)!=null?D:ML6)(y-d,d,W,J,void 0)+d}}l=void 0;for(D=0;D<P;D++){var u=W[D];if(u!=null&&(u=V(u,f))!=null)if(B&&D>=y){var H=D-d,p=void 0;((p=l)!=null?p:l={})[H]=u}else R[D]=u}if(J)for(var X in J)P=J[X],
P!=null&&(P=V(P,f))!=null&&(D=+X,u=void 0,B&&!Number.isNaN(D)&&(u=D+d)<y?R[u]=P:(D=void 0,((D=l)!=null?D:l={})[X]=P));l&&(n?R.push(l):R[y]=l);r&&jY(is)&&(W=eIq(W))&&W instanceof r1S&&(R[is]=R4g(W));return R};
LNY=function(W){W[0]=swg(W[0]);W[1]=swg(W[1]);return W};
swg=function(W){switch(typeof W){case "number":return Number.isFinite(W)?W:""+W;case "bigint":return ocv(W)?Number(W):""+W;case "boolean":return W?1:0;case "object":if(Array.isArray(W)){var l=W[_.Le]|0;return W.length===0&&l&1?void 0:tYx(W,l,swg)}if(W!=null&&W[K2]===G1)return y1n(W);if(W instanceof F9){l=W.JSC$8814_value_;if(l==null)W="";else if(typeof l==="string")W=l;else{if(mgn){for(var V="",f=0,r=l.length-10240;f<r;)V+=String.fromCharCode.apply(null,l.subarray(f,f+=10240));V+=String.fromCharCode.apply(null,
f?l.subarray(f):l);l=btoa(V)}else l=_.Xw(l);W=W.JSC$8814_value_=l}return W}if(W instanceof ow)return W=W.size!==0?Array.from(w7.prototype.entries.call(W),LNY):void 0,W;return}return W};
QL=function(W,l){if(l){fcq=l==null||l===ML6||l[gZS]!==PsJ?ML6:l;try{return y1n(W)}finally{fcq=void 0}}return y1n(W)};
y1n=function(W){W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return tYx(W,W[_.Le]|0,swg)};
c1Y=function(W){switch(typeof W){case "boolean":return nZn||(nZn=[0,void 0,!0]);case "number":return W>0?void 0:W===0?CsY||(CsY=[0,void 0]):[-W,void 0];case "string":return[0,W];case "object":return W}};
Zc=function(W,l,V){return W=_.MH(W,l[0],l[1],V?1:2)};
_.MH=function(W,l,V,f){f=f===void 0?0:f;if(W==null){var r=32;V?(W=[V],r|=128):W=[];l&&(r=r&-8380417|(l&1023)<<13)}else{if(!Array.isArray(W))throw Error("O");r=W[_.Le]|0;if(B76&&1&r)throw Error("P");2048&r&&!(2&r)&&dHU();if(r&256)throw Error("Q");if(r&64)return f!==0||r&2048||yv(W,r|2048),W;if(V&&(r|=128,V!==W[0]))throw Error("R");a:{V=W;r|=64;var R=V.length;if(R){var y=R-1,P=V[y];if(P!=null&&typeof P==="object"&&P.constructor===Object){l=r&128?0:-1;y-=l;if(y>=1024)throw Error("T");for(var n in P)R=
+n,R<y&&(V[R+l]=P[n],delete P[n]);r=r&-8380417|(y&1023)<<13;break a}}if(l){n=Math.max(l,R-(r&128?0:-1));if(n>1024)throw Error("U");r=r&-8380417|(n&1023)<<13}}}r|=64;f===0&&(r|=2048);yv(W,r);return W};
dHU=function(){if(B76)throw Error("S");QYJ(J18,5)};
k1x=function(W,l){if(typeof W!=="object")return W;if(Array.isArray(W)){var V=W[_.Le]|0;return W.length===0&&V&1?void 0:DHq(W,V,l)}if(W!=null&&W[K2]===G1)return UHJ(W);if(W instanceof ow){l=W.arrayState;if(l&2)return W;if(!W.size)return;V=gL(uwJ(W));if(W.valueCtor)for(W=0;W<V.length;W++){var f=V[W],r=f[1];r==null||typeof r!=="object"?r=void 0:r!=null&&r[K2]===G1?r=UHJ(r):Array.isArray(r)?r=DHq(r,r[_.Le]|0,!!(l&32)):r=void 0;f[1]=r}return V}if(W instanceof F9)return W};
DHq=function(W,l,V){if(l&2)return W;!V||4096&l||16&l?W=aw(W,l,!1,V&&!(l&16)):(OqF(W,34),l&4&&Object.freeze(W));return W};
vZJ=function(W,l,V){W=new W.constructor(l);V&&(W.copyOnWrite=Ce);W.noLegacyNull=Ce;return W};
UHJ=function(W){var l=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=l[_.Le]|0;return UM(W,V)?W:H2S(W,l,V)?vZJ(W,l):aw(l,V)};
aw=function(W,l,V,f){f!=null||(f=!!(34&l));W=tYx(W,l,k1x,f);f=32;V&&(f|=2);l=l&8380609|f;yv(W,l);return W};
Oeg=function(W){var l=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=l[_.Le]|0;return UM(W,V)?H2S(W,l,V)?vZJ(W,l,!0):new W.constructor(aw(l,V,!1)):W};
z1=function(W){if(W.copyOnWrite!==Ce)return!1;var l=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;l=aw(l,l[_.Le]|0);OqF(l,2048);W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=l;W.copyOnWrite=void 0;W.noLegacyNull=void 0;return!0};
NH=function(W){if(!z1(W)&&UM(W,W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Le]|0))throw Error();};
YZ=function(W,l){l===void 0&&(l=W[_.Le]|0);l&32&&!(l&4096)&&yv(W,l|4096)};
H2S=function(W,l,V){return V&2?!0:V&32&&!(V&4096)?(yv(l,V|2),W.copyOnWrite=Ce,!0):!1};
eY=function(W,l,V,f,r){var R=V+(r?0:-1),y=W.length-1;if(y>=1+(r?0:-1)&&R>=y){var P=W[y];if(P!=null&&typeof P==="object"&&P.constructor===Object)return P[V]=f,l}if(R<=y)return W[R]=f,l;if(f!==void 0){var n;y=((n=l)!=null?n:l=W[_.Le]|0)>>13&1023||536870912;V>=y?f!=null&&(R={},W[y+(r?0:-1)]=(R[V]=f,R)):W[R]=f}return l};
_.SY=function(W,l,V,f,r){var R=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=R[_.Le]|0;f=UM(W,y)?1:f;r=!!r||f===3;f===2&&z1(W)&&(R=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=R[_.Le]|0);W=KNq(R,l);var P=W===qH?7:W[_.Le]|0,n=FNF(P,y);var B=4&n?!1:!0;if(B){4&n&&(W=N1(W),P=0,n=h1(n,y),y=eY(R,y,l,W));for(var d=0,J=0;d<W.length;d++){var D=V(W[d]);D!=null&&(W[J++]=D)}J<d&&(W.length=J);V=(n|4)&-513;n=V&=-1025;n&=-4097}n!==P&&(yv(W,n),2&n&&Object.freeze(W));return W=G1j(W,n,R,
y,l,f,B,r)};
G1j=function(W,l,V,f,r,R,y,P){var n=l;R===1||(R!==4?0:2&l||!(16&l)&&32&f)?E5(l)||(l|=!W.length||y&&!(4096&l)||32&f&&!(4096&l||16&l)?2:256,l!==n&&yv(W,l),Object.freeze(W)):(R===2&&E5(l)&&(W=N1(W),n=0,l=h1(l,f),f=eY(V,f,r,W)),E5(l)||(P||(l|=16),l!==n&&yv(W,l)));2&l||!(4096&l||16&l)||YZ(V,f);return W};
KNq=function(W,l,V){W=W$(W,l,V);return Array.isArray(W)?W:qH};
FNF=function(W,l){2&l&&(W|=2);return W|1};
E5=function(W){return!!(2&W)&&!!(4&W)||!!(256&W)};
b2x=function(W){return _.jL(W,!0)};
pev=function(W){W=N1(W);for(var l=0;l<W.length;l++){var V=W[l]=N1(W[l]);Array.isArray(V[1])&&(V[1]=gL(V[1]))}return W};
oZn=function(W,l){var V=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=V[_.Le]|0;a:{var r=f;f=UM(W,f);!f&&z1(W)&&(V=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,r=V[_.Le]|0);var R=W$(V,l);W=!1;if(R==null){if(f){l=x1v();break a}R=[]}else if(R.constructor===ow)if(R.arrayState&2&&!f)R=uwJ(R);else{l=R;break a}else Array.isArray(R)?W=!!((R[_.Le]|0)&2):R=[];if(f){if(!R.length){l=x1v();break a}W||(W=!0,gL(R))}else W&&(W=!1,R=pev(R));!W&&r&32&&zJ6(R);f=new ow(R,void 0,QXj,QXj);r=eY(V,
r,l,f);W||YZ(V,r);l=f}return l};
_.l7=function(W,l,V,f){NH(W);var r=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=r[_.Le]|0;if(V==null)return eY(r,R,l),W;var y=V===qH?7:V[_.Le]|0,P=y,n=E5(y),B=n||Object.isFrozen(V);n||(y=0);B||(V=N1(V),P=0,y=h1(y,R),B=!1);y|=5;var d;n=(d=a4U(y))!=null?d:0;for(d=0;d<V.length;d++){var J=V[d],D=f(J,n);Object.is(J,D)||(B&&(V=N1(V),P=0,y=h1(y,R),B=!1),V[d]=D)}y!==P&&(B&&(V=N1(V),y=h1(y,R)),yv(V,y));eY(r,R,l,V);return W};
_.VP=function(W,l,V,f,r){NH(W);var R=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;eY(R,R[_.Le]|0,l,(f==="0"?Number(V)===0:V===f)?void 0:V,r);return W};
_.fM=function(W,l,V){if(l&2)throw Error();var f=mk(l),r=KNq(W,V,f),R=r===qH?7:r[_.Le]|0,y=FNF(R,l);if(2&y||E5(y)||16&y)r=N1(r),R=0,y=h1(y,l),eY(W,l,V,r,f);y&=-13;y!==R&&yv(r,y);return r};
jwU=function(W){if(tZ){var l;return(l=W[ra])!=null?l:W[ra]=new Map}if(ra in W)return W[ra];l=new Map;Object.defineProperty(W,ra,{value:l});return l};
i2n=function(W,l,V,f,r){var R=jwU(W),y=Icx(R,W,l,V,r);y!==f&&(y&&(l=eY(W,l,y,void 0,r)),R.set(V,f));return l};
Icx=function(W,l,V,f,r){var R=W.get(f);if(R!=null)return R;for(var y=R=0;y<f.length;y++){var P=f[y];W$(l,P,r)!=null&&(R!==0&&(V=eY(l,V,R,void 0,r)),R=P)}W.set(f,R);return R};
mH4=function(W,l,V,f,r){var R=!1;f=W$(W,f,r,function(y){var P=AZ8(y,V,!1,l);R=P!==y&&P!=null;return P});
if(f!=null)return R&&!UM(f)&&YZ(W,l),f};
XeU=function(W,l,V,f,r,R,y,P){var n=UM(W,V);R=n?1:R;y=!!y||R===3;n=P&&!n;(R===2||n)&&z1(W)&&(l=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=l[_.Le]|0);W=KNq(l,r);var B=W===qH?7:W[_.Le]|0,d=FNF(B,V);if(P=!(4&d)){var J=W,D=V,u=!!(2&d);u&&(D|=2);for(var H=!u,p=!0,X=0,w=0;X<J.length;X++){var O=AZ8(J[X],f,!1,D);if(O instanceof f){if(!u){var S=UM(O);H&&(H=!S);p&&(p=S)}J[w++]=O}}w<X&&(J.length=w);d|=4;d=p?d&-4097:d|4096;d=H?d|8:d&-9}d!==B&&(yv(W,d),2&d&&Object.freeze(W));if(n&&!(8&d||!W.length&&
(R===1||(R!==4?0:2&d||!(16&d)&&32&V)))){E5(d)&&(W=N1(W),d=h1(d,V),V=eY(l,V,r,W));f=W;n=d;for(B=0;B<f.length;B++)J=f[B],d=Oeg(J),J!==d&&(f[B]=d);n|=8;d=n=f.length?n|4096:n&-4097;yv(W,d)}return W=G1j(W,d,l,V,r,R,P,y)};
T76=function(W){W==null&&(W=void 0);return W};
h1=function(W,l){return W=(2&l?W|2:W&-3)&-273};
_.wev=function(W,l,V,f,r){NH(W);l=_.SY(W,l,r,2,!0);var R;r=(R=a4U(l===qH?7:l[_.Le]|0))!=null?R:0;l.push(V(f,r));return W};
A14=function(W,l,V,f,r,R,y){NH(W);var P=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;W=XeU(W,P,P[_.Le]|0,V,l,2,!0);if(R&&y)r!=null||(r=W.length-1),Yzg(W,r),W.splice(r,R),W.length||(W[_.Le]&=-4097);else{if(R){if(typeof r!=="number"||r<0||r>W.length)throw Error();}else f=f!=null?f:new V;r!=void 0?W.splice(r,R,f):W.push(f);r=V=W===qH?7:W[_.Le]|0;(f=UM(f))?(V&=-9,W.length===1&&(V&=-4097)):V|=4096;V!==r&&yv(W,V);f||YZ(P)}};
MYJ=function(W,l){if(typeof W==="string")return new Rv(TSz(W),l);if(Array.isArray(W))return new Rv(new Uint8Array(W),l);if(W.constructor===Uint8Array)return new Rv(W,!1);if(W.constructor===ArrayBuffer)return W=new Uint8Array(W),new Rv(W,!1);if(W.constructor===F9)return l=Qwg(W)||new Uint8Array(0),new Rv(l,!0,W);if(W instanceof Uint8Array)return W=W.constructor===Uint8Array?W:new Uint8Array(W.buffer,W.byteOffset,W.byteLength),new Rv(W,!1);throw Error();};
O2q=function(W){switch(typeof W){case "string":Z2z(W)}};
z4z=function(W){switch(typeof W){case "string":acY(W)}};
tO=function(){var W=function(){throw Error();};
Object.setPrototypeOf(W,W.prototype);return W};
Y58=function(W,l){var V=V===void 0?N7j:V;return new sP(W,l,V)};
q54=function(W,l,V,f,r){xHJ(W,V,e4z(l,f),r)};
LM=function(W,l,V,f){var r=f[W];if(r)return r;r={};r.binaryFields=f;r.messageMetadata=c1Y(f[0]);var R=f[1],y=1;R&&R.constructor===Object&&(r.extensions=R,R=f[++y],typeof R==="function"&&(r.isMessageSet=!0,h4U!=null||(h4U=R),S5z!=null||(S5z=f[y+1]),R=f[y+=2]));for(var P={};R&&EZU(R);){for(var n=0;n<R.length;n++)P[R[n]]=R;R=f[++y]}for(n=1;R!==void 0;){typeof R==="number"&&(n+=R,R=f[++y]);var B=void 0;if(R instanceof sP)var d=R;else d=$Hq,y--;R=void 0;if((R=d)==null?0:R.$$isMsg){R=f[++y];B=f;var J=y;
typeof R==="function"&&(R=R(),B[J]=R);B=R}R=f[++y];J=n+1;typeof R==="number"&&R<0&&(J-=R,R=f[++y]);for(;n<J;n++){var D=P[n];B?V(r,n,d,B,D):l(r,n,d,D)}}return f[W]=r};
EZU=function(W){return Array.isArray(W)&&!!W.length&&typeof W[0]==="number"&&W[0]>0};
laj=function(W){return Array.isArray(W)?W[0]instanceof sP?W:[W7v,W]:[W,void 0]};
e4z=function(W,l){if(W instanceof _.yP)return W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(W))return Zc(W,l,!1)};
Vez=function(W,l,V,f){var r=V.$$binaryReaderFn;W[l]=f?function(R,y,P){return r(R,y,P,f)}:r};
rOn=function(W,l,V,f,r){var R=V.$$binaryReaderFn,y,P;W[l]=function(n,B,d){return R(n,B,d,P||(P=LM(fax,Vez,rOn,f).messageMetadata),y||(y=Ryx(f)),r)}};
Ryx=function(W){var l=W[te8];if(l!=null)return l;var V=LM(fax,Vez,rOn,W);l=V.isMessageSet?function(f,r){return h4U(f,r,V)}:function(f,r){for(;svz(r)&&r.nextWireType_!=4;){var R=r.nextField_,y=V[R];
if(y==null){var P=V.extensions;P&&(P=P[R])&&(P=L7x(P),P!=null&&(y=V[R]=P))}if(y==null||!y(r,f,R)){P=r;y=P.fieldCursor_;yO8(P);if(P.discardUnknownFields)var n=void 0;else{var B=P.decoder_.cursor_-y;P.decoder_.cursor_=y;n=gkJ(P.decoder_,B)}B=P=y=void 0;var d=f;n&&((y=(P=(B=d[is])!=null?B:d[is]=new r1S)[R])!=null?y:P[R]=[]).push(n)}}if(f=eIq(f))f.reviveUnknownFields=V.binaryFields[P7z];return!0};
W[te8]=l;W[P7z]=nkS.bind(W);return l};
nkS=function(W,l,V,f){var r=this[fax],R=this[te8],y=Zc(void 0,r.messageMetadata,!1),P=eIq(W);if(P){var n=!1,B=r.extensions;if(B){r=function(H,p,X){if(X.length!==0)if(B[p])for(H=_.L(X),p=H.next();!p.done;p=H.next()){p=C7J(p.value);try{n=!0,R(y,p)}finally{p.free()}}else f==null||f(W,p,X)};
if(l==null)VYF(P,r);else if(P!=null){var d=P[l];d&&r(P,l,d)}if(n){var J=W[_.Le]|0;if(J&2&&J&2048&&(V==null||!V.reviveIntoImmutable))throw Error();var D=mk(J),u=function(H,p){if(W$(W,H,D)!=null)switch(V==null?void 0:V.resolutionBehavior){case 1:return;default:throw Error();}p!=null&&(J=eY(W,J,H,p,D));delete P[H]};
l==null?xg8(y,y[_.Le]|0,function(H,p){u(H,p)}):u(l,W$(y,l,D))}}}};
L7x=function(W){W=laj(W);var l=W[0].$$binaryReaderFn;if(W=W[1]){var V=Ryx(W),f=LM(fax,Vez,rOn,W).messageMetadata;return function(r,R,y){return l(r,R,y,f,V)}}return l};
cOz=function(W,l,V){W[l]=V.$$binaryWriterFn};
dIF=function(W,l,V,f){var r,R,y=V.$$binaryWriterFn;W[l]=function(P,n,B){return y(P,n,B,R||(R=LM(Bag,cOz,dIF,f).messageMetadata),r||(r=JOz(f)))}};
JOz=function(W){var l=W[DI4];if(!l){var V=LM(Bag,cOz,dIF,W);l=function(f,r){return UI8(f,r,V)};
W[DI4]=l}return l};
UI8=function(W,l,V){xg8(W,W[_.Le]|0,function(f,r){if(r!=null){var R=uX6(V,f);R?R(l,r,f):f<500||QYJ(kIq,3)}});
(W=eIq(W))&&VYF(W,function(f,r,R){nM(l,l.encoder_.end());for(f=0;f<R.length;f++)nM(l,Qwg(R[f])||new Uint8Array(0))})};
uX6=function(W,l){var V=W[l];if(V)return V;if(V=W.extensions)if(V=V[l]){V=laj(V);var f=V[0].$$binaryWriterFn;if(V=V[1]){var r=JOz(V),R=LM(Bag,cOz,dIF,V).messageMetadata;V=W.isMessageSet?S5z(R,r):function(y,P,n){return f(y,P,n,R,r)}}else V=f;
return W[l]=V}};
_.vkz=function(W,l,V){if(Array.isArray(l)){var f=l[_.Le]|0;if(f&4)return l;for(var r=0,R=0;r<l.length;r++){var y=W(l[r]);y!=null&&(l[R++]=y)}R<r&&(l.length=R);V&&(yv(l,(f|5)&-1537),f&2&&Object.freeze(l));return l}};
_.CM=function(W,l,V){return new sP(W,l,V)};
_.HMq=function(W,l,V){return new sP(W,l,V)};
_.c$=function(W,l,V){eY(W,W[_.Le]|0,l,V,mk(W[_.Le]|0))};
K7g=function(W,l,V){l=_.eL(l);l!=null&&(_.B$(W,V,1),W=W.encoder_,V=f$S||(f$S=new DataView(new ArrayBuffer(8))),V.setFloat64(0,+l,!0),AZ=V.getUint32(0,!0),Qv=V.getUint32(4,!0),_.da(W,AZ),_.da(W,Qv))};
F7g=function(W,l,V){l=_.eL(l);l!=null&&(_.B$(W,V,5),W=W.encoder_,rZn(l),_.da(W,AZ))};
_.Da=function(W,l,V){l=m1v(l);if(l!=null&&(O2q(l),l!=null))switch(_.B$(W,V,0),typeof l){case "number":W=W.encoder_;M1(l);JO(W,AZ,Qv);break;case "bigint":V=BigInt.asUintN(64,l);V=new GIY(Number(V&BigInt(4294967295)),Number(V>>BigInt(32)));JO(W.encoder_,V.JSC$8857_lo,V.JSC$8857_hi);break;default:V=Z2z(l),JO(W.encoder_,V.JSC$8857_lo,V.JSC$8857_hi)}};
p$v=function(W,l,V){l=_.t1(l);l!=null&&l!=null&&(_.B$(W,V,0),_.bMS(W.encoder_,l))};
_.jvJ=function(W,l,V){okz(W,V,Xk6(l))};
Iaz=function(W,l,V){l=_.PBj(l);l!=null&&(_.B$(W,V,0),W.encoder_.JSC$8859_buffer_.push(l?1:0))};
mI6=function(W,l,V){l=_.He(l);l!=null&&iMF(W,V,rxz(l))};
X$z=function(W,l,V,f,r){xHJ(W,V,e4z(l,f),r)};
_.TaF=function(W,l,V){l=l==null||typeof l=="string"||l instanceof F9?l:void 0;l!=null&&iMF(W,V,MYJ(l,!0).buffer)};
w$6=function(W,l,V){l=_.cZj(l);l!=null&&l!=null&&(_.B$(W,V,0),UP(W.encoder_,l))};
_.AOJ=function(W,l,V){l=_.t1(l);l!=null&&(l=parseInt(l,10),_.B$(W,V,0),_.bMS(W.encoder_,l))};
_.v$=function(W,l){return function(V,f){var r={treatNewDataAsImmutable:!0};f&&Object.assign(r,f);V=C7J(V,void 0,void 0,r);try{var R=new W,y=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Ryx(l)(y,V);var P=R}finally{V.free()}return P}};
_.KM=function(W){return function(l){return Qvx(l,W)}};
Mev=function(W){return function(){return Qvx(this,W)}};
_.ZMU=function(W){return X9(function(l){return l instanceof W&&!UM(l)})};
_.FX=function(W){return function(l){return OMU(W,l)}};
YPJ=function(W,l){return aaF({child:W,origin:l||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:zy4,getPayloadCase:function(V){return V.getPayloadCase()},
createInitMessage:function(V){var f=new GI,r=new Na6;V=_.b7(r,1,V);return _.pM(f,5,ov,V)}})};
je=function(W){return{valueOf:W}.valueOf()};
eyU=function(){var W=null;if(!xI8)return W;try{var l=function(V){return V};
W=xI8.createPolicy("goog#html",{createHTML:l,createScript:l,createScriptURL:l})}catch(V){}return W};
hyx=function(){qPg===void 0&&(qPg=eyU());return qPg};
_.i7=function(W){var l=hyx();W=l?l.createScriptURL(W):W;return new Iv(W)};
_.m7=function(W){if(W instanceof Iv)return W.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.TI=function(W){return Object.isFrozen(W)&&Object.isFrozen(W.raw)};
SPJ=function(W){return W.toString().indexOf("`")===-1};
AO=function(W){return new _.wa(Ekq,W)};
QP=function(W){return W instanceof _.wa};
_.MI=function(W){if(QP(W))return W.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
OP=function(W){return new $IJ(function(l){return l.substr(0,W.length+1).toLowerCase()===W+":"})};
_.av=function(W,l){l=l===void 0?WQ4:l;if(QP(W))return W;for(var V=0;V<l.length;++V){var f=l[V];if(f instanceof $IJ&&f.isValid(W))return AO(W)}};
_.NI=function(W,l){l=l===void 0?WQ4:l;return _.av(W,l)||zI};
_.Yk=function(W){var l=window;if(typeof MediaSource!=="undefined"&&W instanceof MediaSource||typeof l.ManagedMediaSource!=="undefined"&&W instanceof l.ManagedMediaSource)return AO(URL.createObjectURL(W));l=W.type;l.toLowerCase()==="application/octet-stream"?l=!0:(l=l.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),l=(l==null?void 0:l.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(l[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(l[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(l[1])||/^font\/[\w-]+$/i.test(l[1])));if(!l)throw Error("Z");return AO(URL.createObjectURL(W))};
_.l7S=function(W){for(var l=_.xk.apply(1,arguments),V=[W[0]],f=0;f<l.length;f++)V.push(String(l[f])),V.push(W[f+1]);return AO(V.join(""))};
_.f7F=function(W){if(!Vu6){a:{var l=document.createElement("a");try{l.href=W}catch(V){W=void 0;break a}W=l.protocol;W=W===":"||W===""?"https:":W}return W}try{l=new URL(W)}catch(V){return"https:"}return l.protocol};
_.ee=function(W){W instanceof _.wa?W=_.MI(W):W=rLz.test(W)?W:void 0;return W};
hO=function(W,l){l=_.ee(l);l!==void 0&&(W.href=l)};
EP=function(W){var l=hyx();W=l?l.createHTML(W):W;return new Se(W)};
$k=function(W){if(W instanceof Se)return W.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.WG=function(W,l){W.src=_.m7(l).toString()};
R6F=function(W,l){W.setAttribute("sandbox","");for(var V=0;V<l.length;V++)W.sandbox.supports&&!W.sandbox.supports(l[V])||W.sandbox.add(l[V])};
_.stF=function(W,l,V){W.removeAttribute("srcdoc");switch(l){case 0:if(V instanceof Iv)throw new tu4("TrustedResourceUrl",0);R6F(W,[]);l=_.ee(V);l!==void 0&&(W.src=l);break;case 1:if(!(V instanceof Iv))throw new tu4(typeof V,1);R6F(W,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.WG(W,V);break;case 2:if(V instanceof Iv)throw new tu4("TrustedResourceUrl",2);R6F(W,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
l=_.ee(V);l!==void 0&&(W.src=l);break;default:_.Yc(l)}};
_.lM=function(W,l,V,f){l=_.ee(l);return l!==void 0?W.open(l,V,f):null};
_.VK=function(W){W=W===void 0?document:W;var l,V;W=(V=(l=W).querySelector)==null?void 0:V.call(l,"script[nonce]");return W==null?"":W.nonce||W.getAttribute("nonce")||""};
_.rI=function(W){var l=hyx();W=l?l.createScript(W):W;return new _.fc(W)};
LQz=function(W){if(W instanceof _.fc)return W.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
yL4=function(W){var l=_.VK(W.ownerDocument);l&&W.setAttribute("nonce",l)};
_.Rt=function(W,l){W.textContent=LQz(l);yL4(W)};
_.tL=function(W,l){W.src=_.m7(l);yL4(W)};
_.sx=function(W,l){if(W.nodeType===1&&/^(script|style)$/i.test(W.tagName))throw Error("Z");W.innerHTML=$k(l)};
_.yK=function(W,l,V,f){if(W.length===0)throw Error("Z");W=W.map(function(R){if(R instanceof gdq)R=R.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return R});
var r=V.toLowerCase();if(W.every(function(R){return r.indexOf(R)!==0}))throw Error("aa`"+V);
l.setAttribute(V,f)};
_.gI=function(W,l,V){if(l instanceof Iv)W.href=_.m7(l).toString(),W.rel=V;else{if(PMU.indexOf(V)===-1)throw Error("ba`"+V);l=_.ee(l);l!==void 0&&(W.href=l,W.rel=V)}};
ndJ=function(W){if(W instanceof PG)return W.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.CMF=function(W,l){l=_.ee(l);l!==void 0&&(W.href=l)};
cLg=function(W){return _.i7(W)};
BIU=function(W,l){W&&(l=W.indexOf(l),0<=l&&W.splice(l,1))};
nc=function(W){return typeof W==="function"};
dFU=function(W){return W instanceof Cc||W&&"closed"in W&&nc(W.remove)&&nc(W.add)&&nc(W.unsubscribe)};
cG=function(){};
BG=function(W){JLz(function(){throw W;})};
JL=function(W){return W};
D7=function(){return DFF(_.xk.apply(0,arguments))};
DFF=function(W){return W.length===0?JL:W.length===1?W[0]:function(l){return W.reduce(function(V,f){return f(V)},l)}};
UFn=function(W){var l;return(l=W!=null?W:void 0)!=null?l:Promise};
ufJ=function(W,l){return new Ux(function(V){var f=0;return l.schedule(function(){f===W.length?V.complete():(V.next(W[f++]),V.closed||this.schedule())})})};
kuF=function(W,l){if(!W)throw Error("ca");return new Ux(function(V){var f=new Cc;f.add(l.schedule(function(){var r=W[Symbol.asyncIterator]();f.add(l.schedule(function(){var R=this;r.next().then(function(y){y.done?V.complete():(V.next(y.value),R.schedule())})}))}));
return f})};
vd6=function(W,l,V){l=l.schedule(function(){try{V.call(this)}catch(f){W.error(f)}},0);
W.add(l)};
KQz=function(W,l){return new Ux(function(V){var f;V.add(l.schedule(function(){f=W[Hcq]();vd6(V,l,function(){var r=f.next(),R=r.value;r.done?V.complete():(V.next(R),this.schedule())})}));
return function(){var r;return nc((r=f)==null?void 0:r.return)&&f.return()}})};
FQ6=function(W,l){return new Ux(function(V){var f=new Cc;f.add(l.schedule(function(){var r=W[uM]();f.add(r.subscribe({next:function(R){f.add(l.schedule(function(){return V.next(R)}))},
error:function(R){f.add(l.schedule(function(){return V.error(R)}))},
complete:function(){f.add(l.schedule(function(){return V.complete()}))}}))}));
return f})};
Gu8=function(W,l){return new Ux(function(V){return l.schedule(function(){return W.then(function(f){V.add(l.schedule(function(){V.next(f);V.add(l.schedule(function(){return V.complete()}))}))},function(f){V.add(l.schedule(function(){return V.error(f)}))})})})};
bcj=function(W){return new TypeError("da`"+(W!==null&&typeof W==="object"?"an invalid object":"'"+W+"'"))};
od8=function(W,l){if(W!=null){if(nc(W[uM]))return FQ6(W,l);if(pG4(W))return ufJ(W,l);if(nc(W==null?void 0:W.then))return Gu8(W,l);if(Symbol.asyncIterator&&nc(W==null?void 0:W[Symbol.asyncIterator]))return kuF(W,l);if(nc(W==null?void 0:W[Hcq]))return KQz(W,l)}throw bcj(W);};
vG=function(W,l){return l?od8(W,l):kd(W)};
kd=function(W){if(W instanceof Ux)return W;if(W!=null){if(nc(W[uM]))return jtg(W);if(pG4(W))return I7z(W);if(nc(W==null?void 0:W.then))return icS(W);if(Symbol.asyncIterator&&nc(W==null?void 0:W[Symbol.asyncIterator]))return mFS(W);if(nc(W==null?void 0:W[Hcq]))return XGv(W)}throw bcj(W);};
jtg=function(W){return new Ux(function(l){var V=W[uM]();if(nc(V.subscribe))return V.subscribe(l);throw new TypeError("ea");})};
I7z=function(W){return new Ux(function(l){for(var V=0;V<W.length&&!l.closed;V++)l.next(W[V]);l.complete()})};
icS=function(W){return new Ux(function(l){W.then(function(V){l.closed||(l.next(V),l.complete())},function(V){return l.error(V)}).then(null,BG)})};
XGv=function(W){return new Ux(function(l){for(var V=W[Hcq]();!l.closed;){var f=V.next(),r=f.value;f.done?l.complete():l.next(r)}return function(){return nc(V==null?void 0:V.return)&&V.return()}})};
mFS=function(W){return new Ux(function(l){TIn(W,l).catch(function(V){return l.error(V)})})};
TIn=function(W,l){var V,f,r,R,y,P;return _.g(function(n){switch(n.nextAddress){case 1:_.HG(n,2,3),R=_.Kc(W);case 5:return n.yield(R.next(),8);case 8:f=n.yieldResult;if(f.done){n.jumpTo(3);break}y=f.value;l.next(y);n.jumpTo(5);break;case 3:_.Ff(n);_.Gu(n,9);if(!f||f.done||!(r=R.return)){n.jumpTo(9);break}return n.yield(r.call(R),9);case 9:_.Ff(n,0,0,1);if(V)throw V.error;_.bM(n,10,1);break;case 10:_.bM(n,4);break;case 2:P=_.pc(n);V={error:P};n.jumpTo(3);break;case 4:l.complete(),_.ju(n)}})};
wG4=function(W,l){return l?ufJ(W,l):I7z(W)};
ALY=function(W){return nc(W[W.length-1])?W.pop():void 0};
It=function(W){var l=W[W.length-1];return l&&nc(l.schedule)?W.pop():void 0};
iM=function(){var W=_.xk.apply(0,arguments),l=It(W);return l?ufJ(W,l):wG4(W)};
mQ=function(W){var l=nc(W)?W:function(){return W};
return new Ux(function(V){return V.error(l())})};
Xf=function(W){return function(l){if(nc(l==null?void 0:l.lift))return l.lift(function(V){try{return W(V,this)}catch(f){this.error(f)}});
throw new TypeError("fa");}};
wI=function(){return Xf(function(W,l){var V=null;W._refCount++;var f=new Tu(l,void 0,void 0,void 0,function(){if(!W||W._refCount<=0||0<--W._refCount)V=null;else{var r=W._connection,R=V;V=null;!r||R&&r!==R||r.unsubscribe();l.unsubscribe()}});
W.subscribe(f);f.closed||(V=W.connect())})};
MuY=function(){var W=Qt6;var l=l===void 0?0:l;return Xf(function(V,f){f.add(W.schedule(function(){return V.subscribe(f)},l))})};
AL=function(W){return Xf(function(l,V){var f=0;l.subscribe(new Tu(V,function(r){V.next(W.call(void 0,r,f++))}))})};
Oc6=function(W){return AL(function(l){return ZcS(l)?W.apply(null,_.QK(l)):W(l)})};
xFF=function(W){if(W.length===1){var l=W[0];if(a7q(l))return{args:l,keys:null};if(l&&typeof l==="object"&&z6z(l)===NIU)return W=YxS(l),{args:W.map(function(V){return l[V]}),
keys:W}}return{args:W,keys:null}};
MF=function(){var W=_.xk.apply(0,arguments),l=It(W),V=ALY(W);W=xFF(W);var f=W.args,r=W.keys;if(f.length===0)return vG([],l);l=new Ux(e6g(f,l,r?function(R){for(var y={},P=0;P<R.length;P++)y[r[P]]=R[P];return y}:JL));
return V?l.pipe(Oc6(V)):l};
e6g=function(W,l,V){V=V===void 0?JL:V;return function(f){qxn(l,function(){for(var r=W.length,R=Array(r),y=r,P=W.map(function(){return!1}),n=!0,B={i$jscomp$217:0};B.i$jscomp$217<r;B={i$jscomp$217:B.i$jscomp$217},B.i$jscomp$217++)qxn(l,function(d){return function(){vG(W[d.i$jscomp$217],l).subscribe(new Z7(f,function(J){R[d.i$jscomp$217]=J;
n&&(P[d.i$jscomp$217]=!0,n=!P.every(JL));n||f.next(V(R.slice()))},function(){return--y===0}))}}(B),f)},f)}};
qxn=function(W,l,V){W?V.add(W.schedule(l)):l()};
h6F=function(W,l,V,f){var r=[],R=0,y=0,P=!1,n=function(B){R++;kd(V(B,y++)).subscribe(new Tu(l,function(d){l.next(d)},void 0,function(){R--;
for(var d={};r.length&&R<f;d={bufferedValue:void 0})d.bufferedValue=r.shift(),n(d.bufferedValue);!P||r.length||R||l.complete()}))};
W.subscribe(new Tu(l,function(B){return R<f?n(B):r.push(B)},void 0,function(){P=!0;
!P||r.length||R||l.complete()}));
return function(){r=null}};
Ox=function(W,l){var V=V===void 0?Infinity:V;if(nc(l))return Ox(function(f,r){return AL(function(R,y){return l(f,R,r,y)})(kd(W(f,r)))},V);
typeof l==="number"&&(V=l);return Xf(function(f,r){return h6F(f,r,W,V)})};
Sxg=function(W){W=W===void 0?Infinity:W;return Ox(JL,W)};
Edx=function(){var W=_.xk.apply(0,arguments);return Sxg(1)(wG4(W,It(W)))};
$Fz=function(W){return new Ux(function(l){kd(W()).subscribe(l)})};
at=function(W,l,V){if(nc(V)){var f=V;V=void 0}if(f)return at(W,l,V).pipe(Oc6(f));f=_.L(nc(W.addEventListener)&&nc(W.removeEventListener)?WYn.map(function(y){return function(P){return W[y](l,P,V)}}):nc(W.addListener)&&nc(W.removeListener)?llS.map(Vtg(W,l)):nc(W.on)&&nc(W.off)?flU.map(Vtg(W,l)):[]);
var r=f.next().value,R=f.next().value;return!r&&pG4(W)?Ox(function(y){return at(y,l,V)})(wG4(W)):new Ux(function(y){if(!r)throw new TypeError("ga");
var P=function(){var n=_.xk.apply(0,arguments);return y.next(1<n.length?n:n[0])};
r(P);return function(){return R(P)}})};
Vtg=function(W,l){return function(V){return function(f){return W[V](l,f)}}};
Yd=function(){var W=_.xk.apply(0,arguments),l=It(W);var V=typeof W[W.length-1]==="number"?W.pop():Infinity;return W.length?W.length===1?kd(W[0]):Sxg(V)(wG4(W,l)):NF};
RKz=function(W){return W.length===1&&rsz(W[0])?W[0]:W};
ttz=function(){var W=RKz(_.xk.apply(0,arguments));return Xf(function(l,V){var f=[l].concat(_.QK(W)),r=function(){if(!V.closed)if(f.length>0){try{var R=kd(f.shift())}catch(P){r();return}var y=new Tu(V,void 0,cG,cG);V.add(R.subscribe(y));y.add(r)}else V.complete()};
r()})};
eu=function(W){return Xf(function(l,V){var f=0;l.subscribe(new Tu(V,function(r){return W.call(void 0,r,f++)&&V.next(r)}))})};
LYz=function(){var W=_.xk.apply(0,arguments);W=RKz(W);return W.length===1?kd(W[0]):new Ux(sUj(W))};
sUj=function(W){return function(l){for(var V=[],f={i$jscomp$220:0};V&&!l.closed&&f.i$jscomp$220<W.length;f={i$jscomp$220:f.i$jscomp$220},f.i$jscomp$220++)V.push(kd(W[f.i$jscomp$220]).subscribe(new Tu(l,function(r){return function(R){if(V){for(var y=0;y<V.length;y++)y!==r.i$jscomp$220&&V[y].unsubscribe();V=null}l.next(R)}}(f))))}};
ysF=function(){var W=_.xk.apply(0,arguments),l=ALY(W),V=RKz(W);return V.length?new Ux(function(f){var r=V.map(function(){return[]}),R=V.map(function(){return!1});
f.add(function(){r=R=null});
for(var y={sourceIndex$jscomp$1:0};!f.closed&&y.sourceIndex$jscomp$1<V.length;y={sourceIndex$jscomp$1:y.sourceIndex$jscomp$1},y.sourceIndex$jscomp$1++)kd(V[y.sourceIndex$jscomp$1]).subscribe(new Tu(f,function(P){return function(n){r[P.sourceIndex$jscomp$1].push(n);r.every(function(B){return B.length})&&(n=r.map(function(B){return B.shift()}),f.next(l?l.apply(null,_.QK(n)):n),r.some(function(B,d){return!B.length&&R[d]})&&f.complete())}}(y),void 0,function(P){return function(){R[P.sourceIndex$jscomp$1]=
!0;
!r[P.sourceIndex$jscomp$1].length&&f.complete()}}(y)));
return function(){r=R=null}}):NF};
gNS=function(W){var l,V,f;return!!W&&typeof W.active==="boolean"&&typeof((l=W.clock)==null?void 0:l.now)==="function"&&((V=W.clock)==null?void 0:V.timeline)!==void 0&&!((f=W.lastMeasurement)==null||!f.timestamp)&&typeof W.equivalentTo==="function"&&typeof W.extrapolateToNow==="function"&&typeof W.extrapolateToTime==="function"&&typeof W.map==="function"&&typeof W.joinWith==="function"};
PhU=function(W){function l(V){return typeof V==="boolean"||typeof V==="string"||typeof V==="number"||V===void 0||V===null}
return l(W)?!0:Array.isArray(W)?W.every(l):typeof W==="object"?Object.keys(W).every(function(V){return typeof V==="string"})&&Object.values(W).every(function(V){return Array.isArray(V)?V.every(l):l(V)}):!1};
nNz=function(W){if(PhU(W))return W;if(gNS(W))return{lastMeasurement:{value:nNz(W.lastMeasurement.value),timestamp:qF(W.lastMeasurement.timestamp,new hL(0,W.lastMeasurement.timestamp.timeline))},active:W.active};try{return JSON.parse(JSON.stringify(W))}catch(l){}return String(W)};
Su=function(W,l){return function(V){return new Ux(function(f){return V.subscribe(function(r){W.timeExecution(l,function(){f.next(r)})()},function(r){W.timeExecution(l,function(){f.error(r)})()},function(){W.timeExecution(l,function(){f.complete()})()})})}};
Ch4=function(W,l){var V=!1;return new Ux(function(f){var r=W.setTimeout(function(){V=!0;f.next(!0);f.complete()},l);
return function(){V||W.clearTimeout(r)}})};
csS=function(W){W=W.global;if(W.fetchLater)return W.fetchLater.bind(W)};
Ex=function(W){return Xf(function(l,V){var f=null,r=!1,R;f=l.subscribe(new Tu(V,void 0,function(y){R=kd(W(y,Ex(W)(l)));f?(f.unsubscribe(),f=null,R.subscribe(V)):r=!0}));
r&&(f.unsubscribe(),f=null,R.subscribe(V))})};
BOS=function(W,l,V){return function(f,r){var R=V,y=l,P=0;f.subscribe(new Tu(r,function(n){var B=P++;y=R?W(y,n,B):(R=!0,n);r.next(y)},void 0,void 0))}};
dCY=function(W){W=W===void 0?null:W;return Xf(function(l,V){var f=!1;l.subscribe(new Tu(V,function(r){f=!0;V.next(r)},void 0,function(){f||V.next(W);
V.complete()}))})};
$d=function(){return Xf(function(W,l){W.subscribe(new Tu(l,cG))})};
Wg=function(W){return Xf(function(l,V){l.subscribe(new Tu(V,function(){return V.next(W)}))})};
lh=function(W){return W<=0?function(){return NF}:Xf(function(l,V){var f=0;
l.subscribe(new Tu(V,function(r){++f<=W&&(V.next(r),W<=f&&V.complete())}))})};
Vr=function(W){var l=l===void 0?JL:l;var V;W=(V=W)!=null?V:JsU;return Xf(function(f,r){var R,y=!0;f.subscribe(new Tu(r,function(P){var n=l(P);if(y||!W(R,n))y=!1,R=n,r.next(P)}))})};
JsU=function(W,l){return W===l};
UCq=function(W){W=W===void 0?DCn:W;return Xf(function(l,V){var f=!1;l.subscribe(new Tu(V,function(r){f=!0;V.next(r)},void 0,function(){return f?V.complete():V.error(W())}))})};
DCn=function(){return new u46};
f5=function(){var W=_.xk.apply(0,arguments);return function(l){return Edx(l,iM.apply(null,_.QK(W)))}};
k7S=function(W){return Xf(function(l,V){var f=0;l.subscribe(new Tu(V,function(r){W.call(void 0,r,f++,l)||(V.next(!1),V.complete())},void 0,function(){V.next(!0);
V.complete()}))})};
vNq=function(){return Xf(function(W,l){var V=[];W.subscribe(new Tu(l,function(f){V.push(f);1<V.length&&V.shift()},void 0,function(){for(var f=_.L(V),r=f.next();!r.done;r=f.next())l.next(r.value);
l.complete()},function(){V=null}))})};
H5F=function(W,l){var V=arguments.length>=2;return function(f){return f.pipe(W?eu(function(r,R){return W(r,R,f)}):JL,vNq(),V?dCY(l):UCq(function(){return new u46}))}};
RU=function(W){var l=nc(W)?W:function(){return W};
return nc()?Xf(function(V,f){var r=l();(void 0)(r).subscribe(f).add(V.subscribe(r))}):function(V){var f=new rO(V,l);
nc(V==null?void 0:V.lift)&&(f.lift=V.lift);f.source=V;f.subjectFactory=l;return f}};
s1=function(W){var l=new ts(W,void 0,void 0);return function(V){return RU(function(){return l})(V)}};
L5=function(W,l){return Xf(BOS(W,l,arguments.length>=2))};
yr=function(){var W=_.xk.apply(0,arguments),l=It(W);return Xf(function(V,f){(l?Edx(W,V,l):Edx(W,V)).subscribe(f)})};
gO=function(W){return Xf(function(l,V){var f=null,r=0,R=!1;l.subscribe(new Tu(V,function(y){var P;(P=f)==null||P.unsubscribe();P=r++;kd(W(y,P)).subscribe(f=new Tu(V,function(n){return V.next(n)},void 0,function(){f=null;
R&&!f&&V.complete()}))},void 0,function(){(R=!0,!f)&&V.complete()}))})};
Pg=function(W,l){l=l===void 0?!1:l;return Xf(function(V,f){var r=0;V.subscribe(new Tu(f,function(R){var y=W(R,r++);(y||l)&&f.next(R);!y&&f.complete()}))})};
KYF=function(W,l,V){var f=nc(W)||l||V?{next:W,error:l,complete:V}:W;return f?Xf(function(r,R){r.subscribe(new Tu(R,function(y){var P;(P=f.next)==null||P.call(f,y);R.next(y)},function(y){var P;
(P=f.error)==null||P.call(f,y);R.error(y)},function(){var y;
(y=f.complete)==null||y.call(f);R.complete()}))}):JL};
FYY=function(){var W=_.xk.apply(0,arguments),l=ALY(W);return Xf(function(V,f){for(var r=W.length,R=Array(r),y=W.map(function(){return!1}),P=!1,n={i$jscomp$230:0};n.i$jscomp$230<r;n={i$jscomp$230:n.i$jscomp$230},n.i$jscomp$230++)kd(W[n.i$jscomp$230]).subscribe(new Tu(f,function(B){return function(d){R[B.i$jscomp$230]=d;
P||y[B.i$jscomp$230]||(y[B.i$jscomp$230]=!0,(P=y.every(JL))&&(y=null))}}(n),void 0,cG));
V.subscribe(new Tu(f,function(B){P&&(B=[B].concat(_.QK(R)),f.next(l?l.apply(null,_.QK(B)):B))}))})};
b5q=function(W){try{return!!W&&W.location.href!=null&&G7v(W,"foo")}catch(l){return!1}};
pgY=function(W){var l=[],V=0,f;for(f in W)l[V++]=f;return l};
oNg=function(W,l){for(var V in W)if(W[V]==l)return!0;return!1};
jUv=function(W,l,V){for(var f in W)if(l.call(V,W[f],f,W))return f};
IlU=function(W){if(!W||typeof W!=="object")return W;if(typeof W.clone==="function")return W.clone();if(typeof Map!=="undefined"&&W instanceof Map)return new Map(W);if(typeof Set!=="undefined"&&W instanceof Set)return new Set(W);if(W instanceof Date)return new Date(W.getTime());var l=Array.isArray(W)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(W)||W instanceof DataView?{}:new W.constructor(W.length),V;for(V in W)l[V]=IlU(W[V]);return l};
i5n=function(W){var l=arguments.length;if(l==1&&Array.isArray(arguments[0]))return i5n.apply(null,arguments[0]);if(l%2)throw Error("ka");for(var V={},f=0;f<l;f+=2)V[arguments[f]]=arguments[f+1];return V};
mCg=function(W){var l=arguments.length;if(l==1&&Array.isArray(arguments[0]))return mCg.apply(null,arguments[0]);for(var V={},f=0;f<l;f++)V[arguments[f]]=!0;return V};
_.n5=function(W){return new gdq(W[0].toLowerCase())};
Xgn=function(W){for(var l=_.xk.apply(1,arguments),V=W[0],f=0;f<W.length-1;f++)V+=String(l[f]),V+=W[f+1];l=document.implementation.createHTMLDocument("");f=l.createElement("style");l.head.appendChild(f);l=f.sheet;l.insertRule(V,0);if(l.cssRules.length===1&&(V=l.cssRules[0],V instanceof CSSStyleRule))return new PG(V.cssText.replace(/</g,"\\3C "))};
TOz=function(W){try{return new URL(W,window.document.baseURI)}catch(l){return new URL("about:invalid")}};
wgJ=function(W,l){var V=l.createRange();V.selectNode(l.body);W=EP(W);return V.createContextualFragment($k(W))};
Asv=function(W){W=W.nodeName;return typeof W==="string"?W:"FORM"};
QU8=function(W){W=W.nodeType;return W===1||typeof W!=="number"};
cg=function(W,l,V){W.setAttribute(l,V)};
Mt4=function(W){return W.parts.map(function(l){var V=l.descriptor;return""+l.url+(V?" "+V:"")}).join(" , ")};
_.dO=function(W){var l=_.xk.apply(1,arguments);if(l.length===0)return _.i7(W[0]);for(var V=W[0],f=0;f<l.length;f++)V+=encodeURIComponent(l[f])+W[f+1];return _.i7(V)};
_.Js=function(W,l){W=_.m7(W).toString();var V=W.split(/[?#]/),f=/[?]/.test(W)?"?"+V[1]:"";return Z5Y(V[0],f,/[#]/.test(W)?"#"+(f?V[2]:V[1]):"",l)};
Z5Y=function(W,l,V,f){function r(y,P){y!=null&&(Array.isArray(y)?y.forEach(function(n){return r(n,P)}):(l+=R+encodeURIComponent(P)+"="+encodeURIComponent(y),R="&"))}
var R=l.length?"&":"?";f.constructor===Object&&(f=Object.entries(f));Array.isArray(f)?f.forEach(function(y){return r(y[1],y[0])}):f.forEach(r);
return _.i7(W+l+V)};
Dl=function(W,l,V,f){this.top=W;this.right=l;this.bottom=V;this.left=f};
O5q=function(W){W=W.global;if(W.PendingGetBeacon)return W.PendingGetBeacon};
uh=function(W){return function(l){return l.pipe(alF(W,RU(new U1)))}};
kN=function(W){return function(l){return l.pipe(alF(W,s1(1)))}};
alF=function(W,l){function V(f){return new Ux(function(r){return f.subscribe(function(R){vg(W,function(){return void r.next(R)},3)},function(R){vg(W,function(){return void r.error(R)},3)},function(){vg(W,function(){return void r.complete()},3)})})}
return D7(V,MuY(),l,wI(),V)};
Y1v=function(W){var l=zK6(W);return l===null?new Hg(null):l.pipe(AL(function(V){V=V.serialize();if(NOz)V=_.rS.btoa(V);else{for(var f=[],r=0,R=0;R<V.length;R++){var y=V.charCodeAt(R);y>255&&(f[r++]=y&255,y>>=8);f[r++]=y}V=_.Xw(f)}return V}),lh(1),kN(W.queue))};
xCF=function(W){var l=l===void 0?{}:l;if(typeof Event==="function")return new Event(W,l);if(typeof document!=="undefined"){var V=document.createEvent("CustomEvent");V.initCustomEvent(W,l.bubbles||!1,l.cancelable||!1,l.detail);return V}throw Error();};
eKJ=function(W){return typeof W==="string"?document.getElementById(W):W};
hKS=function(W){var l=!1;l=l===void 0?!1:l;if(W.tagName==="IMG"){if(W.complete&&(!W.naturalWidth||!W.naturalHeight))return!0;var V;if(l&&((V=W.style)==null?void 0:V.display)==="none")return!0}var f,r;return q1v.test((f=W.getAttribute("width"))!=null?f:"")&&q1v.test((r=W.getAttribute("height"))!=null?r:"")};
S1J=function(W,l){if(W.tagName==="IMG")return W.naturalWidth&&W.naturalHeight?!0:!1;try{if(W.readyState)var V=W.readyState;else{var f,r;V=(f=W.contentWindow)==null?void 0:(r=f.document)==null?void 0:r.readyState}return V==="complete"}catch(R){return l===void 0?!1:l}};
ENF=function(W){W||(W=function(l,V,f){l.addEventListener(V,f)});
return W};
VVn=function(W,l){var V=$Cx();V=V===void 0?new Wlq:V;if(W=eKJ(W)){var f=ENF(f);for(var r=!1,R=function(X){r||(r=!0,l(X))},y,P=2,n=0;n<l1z.length;++n)if(l1z[n]===W.tagName){P=3;
y=[W];break}y||(y=W.querySelectorAll(l1z.join(",")));var B=0,d=0,J=!0,D=W=!1;n={};for(var u=0;u<y.length;n={isImg:void 0},u++){var H=y[u];if(!hKS(H))if(n.isImg=H.tagName==="IMG",S1J(H,V.crossDomainLoadedDefault))W=!0,n.isImg&&(J=!0);else{B++;var p=function(X){return function(w){B--;!B&&J&&R(P);X.isImg&&(w=w&&w.type==="error",d--,w||(J=!0),!d&&D&&J&&R(P))}}(n);
f(H,"load",p);n.isImg&&(d++,f(H,"error",p))}}d===0&&(J=!0);y=null;y=_.rS.document.readyState==="complete";if(B===0&&!W&&y)P=5;else if(B||!W){f(_.rS,"load",function(){!V.pendingImagesBlockLoad||!d&&J?R(4):D=!0});
return}R(P)}};
f1j=function(W,l,V){if(W)for(var f=0;W!=null&&f<500&&!V(W);++f)W=l(W)};
rlz=function(W,l){f1j(W,function(V){try{return V===V.parent?null:V.parent}catch(f){}return null},l)};
RO4=function(W,l){if(W.tagName=="IFRAME")l(W);else{W=W.querySelectorAll("IFRAME");for(var V=0;V<W.length&&!l(W[V]);++V);}};
tVJ=function(W){return(W=W.ownerDocument)&&(W.parentWindow||W.defaultView)||null};
sZF=function(W,l,V){try{var f=JSON.parse(V.data)}catch(y){}if(typeof f==="object"&&f&&f.type==="creativeLoad"){var r=tVJ(W);if(V.source&&r){var R;rlz(V.source,function(y){try{if(y.parent===r)return R=y,!0}catch(P){}});
R&&RO4(W,function(y){if(y.contentWindow===R)return l(f),!0})}}};
Llz=function(W){return typeof W==="string"?document.getElementById(W):W};
n9z=function(){var W={};return W[0]=_.dO(ylx,"current"),W[1]=_.dO(g9x),W[2]=_.dO(PIY),W};
K5=function(W,l){return W.left===l.left&&W.top===l.top&&W.width===l.width&&W.height===l.height};
CI8=function(W,l){return{left:Math.max(W.left,l.left),top:Math.max(W.top,l.top),width:Math.max(0,Math.min(W.left+W.width,l.left+l.width)-Math.max(W.left,l.left)),height:Math.max(0,Math.min(W.top+W.height,l.top+l.height)-Math.max(W.top,l.top))}};
clU=function(W,l){return{left:Math.round(W.left+l.x),top:Math.round(W.top+l.y),width:W.width,height:W.height}};
Bdq=function(W,l,V){if(W&&l!==null&&l!=l.top){if(!l.top)return new _.p5(-12245933,-12245933);l=l.top}try{return(V===void 0?0:V)?(new _.p5(l.innerWidth,l.innerHeight)).round():_.oU(l).round()}catch(f){return new _.p5(-12245933,-12245933)}};
dsU=function(W,l,V){try{if(W){if(!l.top)return new Dl(-12245933,-12245933,-12245933,-12245933);l=l.top}var f=Bdq(W,l,V),r=f.height,R=f.width;if(R===-12245933)return new Dl(R,R,R,R);var y=jt(IU(l.document)),P=y.x,n=y.y;return new Dl(n,P+R,n+r,P)}catch(B){return new Dl(-12245933,-12245933,-12245933,-12245933)}};
JlY=function(W){var l;return(l=W.google_tag_data)!=null?l:W.google_tag_data={}};
DsU=function(W){var l,V;return typeof((l=W.navigator)==null?void 0:(V=l.userAgentData)==null?void 0:V.getHighEntropyValues)==="function"};
u7q=function(W){if(!DsU(W))return null;var l=JlY(W);if(l.uach_promise)return l.uach_promise;W=W.navigator.userAgentData.getHighEntropyValues(Usj).then(function(V){l.uach!=null||(l.uach=V);return V});
return l.uach_promise=W};
is8=function(W){var l;return kzx(v9z(Hsn(Klx(FlF(Gzn(bsq(ptz(o9U(new jZU,W.architecture||""),W.bitness||""),W.mobile||!1),W.model||""),W.platform||""),W.platformVersion||""),W.uaFullVersion||""),((l=W.fullVersionList)==null?void 0:l.map(function(V){var f=new I1x;f=_.mY(f,1,V.brand);return _.mY(f,2,V.version)}))||[]),W.wow64||!1)};
ms8=function(W){var l,V;return(V=(l=u7q(W))==null?void 0:l.then(function(f){return is8(f)}))!=null?V:null};
Xtv=function(W,l){return new Ux(function(V){var f=!1,r=Array(l.length);r.fill(void 0);var R=new Set,y=new Set,P=function(J,D){W.running?(r[D]=J,R.add(D),f||(f=!0,vg(W,function(){f=!1;V.next(_.z6(r))},1))):V.error(new X4(D))},n=function(J,D){y.add(D);
R.add(D);vg(W,function(){V.error(J)},1)},B=function(J){y.add(J);
vg(W,function(){y.size===l.length&&V.complete()},1)},d=l.map(function(J,D){return J.subscribe(function(u){return void P(u,D)},function(u){return void n(u,D)},function(){return void B(D)})});
return function(){d.forEach(function(J){return void J.unsubscribe()})}})};
Al8=function(W,l,V){function f(){if(l.debugChannel){var X=l.debugChannel,w=X.next;var O={creativeId:l.debugNames.getName(V),requiredSignals:r,signals:Object.assign({},R),hasPrematurelyCompleted:y,errorMessage:P,erroredSignalKey:n};O={specMajor:2,specMinor:0,specPatch:0,timestamp:qF(l.timeProvider.now(),new hL(0,l.timeProvider.timeline)),instanceId:l.debugNames.getName(l.symbol),creativeState:O};w.call(X,O)}}
for(var r=Object.keys(W),R={},y=!1,P=null,n=null,B={},d=new Set,J=[],D=[],u=_.L(r),H=u.next(),p={};!H.done;p={key$jscomp$396:void 0},H=u.next())p.key$jscomp$396=H.value,H=W[p.key$jscomp$396],H instanceof Hg?(B[p.key$jscomp$396]=H.value,d.add(p.key$jscomp$396),l.debugChannel&&(R[String(p.key$jscomp$396)]=nNz(H.value))):(H=H.pipe(Vr(function(X,w){return gNS(X)||gNS(w)?!1:X===w}),AL(function(X){return function(w){l.debugChannel&&(R[String(X.key$jscomp$396)]=nNz(w),f());
var O={};return O[X.key$jscomp$396]=w,O}}(p)),Ex(function(X){return function(w){if(w instanceof X4)throw new TdU(String(X.key$jscomp$396));
throw w;}}(p)),KYF(function(X){return function(){d.add(X.key$jscomp$396)}}(p),function(X){return function(w){n=String(X.key$jscomp$396);
P=String(w);f()}}(p),function(X){return function(){d.has(X.key$jscomp$396)||(y=!0,f())}}(p))),D.push(p.key$jscomp$396),J.push(H));
(W=Object.keys(R).length>0)&&f();u=Xtv(l.queue,J).pipe(Ex(function(X){if(X instanceof X4)throw new wt6(String(D[X.inputObservableIndex]));throw X;}),AL(function(X){return Object.freeze(Object.assign.apply(Object,[{},
B].concat(_.QK(X))))}));
return(J=J.length>0)&&W?Yd(iM(Object.freeze(B)),u):J?u:iM(Object.freeze(B))};
QZn=function(W,l,V,f,r){return W.performanceMonitor.timeExecution.bind(W.performanceMonitor)(733,function(){var R={};try{return l.pipe(Ex(function(y){f(Object.assign({},R,{error:y}));return NF}),Ox(function(y){try{var P=V(W,y)}catch(B){return f(Object.assign({},R,{error:B instanceof Error?B:String(B)})),NF}var n={};
return Al8(P,W,y.symbol).pipe(KYF(function(B){n=B}),s1(1),wI()).pipe(r,Ex(function(B){f(Object.assign({},n,{error:B}));
return NF}),f5(void 0),AL(function(){return!0}))})).pipe(L5(function(y){return y+1},0),Ex(function(y){f(Object.assign({},R,{error:y}));
return NF}))}catch(y){return f(Object.assign({},R,{error:y})),NF}})()};
T7=function(W){var l=new Map;if(typeof W!=="object"||W===null)return l;Object.values(W).forEach(function(V){V&&typeof V.extrapolateToNow==="function"&&(l.has(V.clock.timeline)||l.set(V.clock.timeline,V.clock.now()))});
return l};
MVn=function(W,l){return typeof W==="string"?encodeURIComponent(W):typeof W==="number"?String(W):Array.isArray(W)?W.map(function(V){return MVn(V,l)}).join(","):W instanceof hL?W.toString():W&&typeof W.extrapolateToNow==="function"?MVn(W.extrapolateUsingTimestampMap(l).value,l):W===!0?"1":W===!1?"0":W===void 0||W===null?null:W instanceof ZsS?Osx(W):[W.top,
W.left,W.top+W.height,W.left+W.width].join()};
a1v=function(W,l){W=Object.entries(W).map(function(V){var f=_.L(V);V=f.next().value;f=f.next().value;f=MVn(f,l);return f===null?"":V+"="+f}).filter(function(V){return V!==""});
return W.length?W.join("&"):""};
Yc4=function(W,l){var V=zOz,f=Ndj;l=l===void 0?.01:l;return function(r){l>0&&Math.random()<=l&&(W.global.HTMLFencedFrameElement&&W.global.fence&&typeof W.global.fence.reportEvent==="function"&&W.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(W.performanceMonitor.timedFunctionContext),errorEscapedQueryId:r.escapedQueryId}),V(Object.assign({},r,{payloadMapper:function(){return function(R){try{return f(Object.assign({},R))}catch(y){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),T7(r)).forEach(function(R){W.beaconFactory.makeBeacon(R).sendNow()}))}};
xsn=function(){var W=_.xk.apply(0,arguments);return function(l){var V=l.pipe(s1(1),wI());l=W.map(function(f){return V.pipe(f,f5(!0))});
return MF(l).pipe(lh(1),$d())}};
eOS=function(){var W=_.xk.apply(0,arguments);return function(l){var V=l.pipe(s1(1),wI());l=W.map(function(f){return V.pipe(f,f5(!0))});
return Yd.apply(null,_.QK(l)).pipe(lh(1),$d())}};
qcv=function(W,l){return function(V){var f=V.pipe(s1(1),wI());V=f.pipe(W,f5(!0));f=f.pipe(D7(l,s1(),wI()),f5(!0));V=MF([V,f]);return LYz(V,f).pipe(lh(1),$d())}};
hOq=function(W,l,V){V(!0)};
Scq=function(W,l){return D7(gO(function(V){var f=W(V),r=l(V),R={};return f&&r&&R?new Ux(function(y){r(f,R,function(P){y.next(Object.assign({},V,{canEmit:P}));y.complete()});
return function(){}}):wO}),eu(function(V){return V.canEmit}))};
E96=function(W){var l={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(V){return V.pipe(gO(function(f){return new Ux(function(r){function R(){P.disconnect();n.unsubscribe()}
var y=W.MutationObserver;if(y&&f.ref!==void 0){var P=new y(function(B){r.next(B)});
P.observe(f.ref,l);var n=f.JSC$9355_released.subscribe(R);return R}})}))}};
$sY=function(W){if(W.measurementDeferralState===3)return null;if(W.timeOnScreenReason!==void 0){var l=W.creativeFound===!1?"n":null;if(l!==null)return l}return W.geometricMeasurementErrors instanceof As?"msf":W.contextValidationErrors instanceof Qr?"c":W.contextVisibilityKnown===!1?"pv":W.geometricMeasurementErrors||W.contextValidationErrors?"x":null};
lz6=function(W,l){return W.replace(W1x,function(V,f){try{var r=_.MC.get(l,f);if(r==null||r.toString()==null)return V;r=r.toString();if(r==""||!_.gS(r==null?"":String(r)))return encodeURIComponent(r).replace(/%2C/g,",")}catch(R){}return V})};
Vmq=function(W,l){var V=Object.assign({},W),f=W.userAgentClientHints;V=(delete V.userAgentClientHints,V);V=W.payloadMapper(V);var r=a1v(V,l);return _.Zl(W.urlPrefixes,function(R){var y="";typeof f==="string"&&(y="&"+a1v({uach:f},l));var P={};return lz6(R,(P.VIEWABILITY=r,P))+y})};
zOz=function(W,l){var V=W.payloadMapper(W),f=a1v(V,l);return f?_.Zl(W.urlPrefixes,function(r){r=r.indexOf("?")>=0?r:r+"?";r="?&".indexOf(r.slice(-1))>=0?r:r+"&";return r+f}):W.urlPrefixes};
fzY=function(){return D7(eu(function(W){return W!==void 0}),AL(function(W){return W}))};
r4z=function(W){return D7(AL(function(){return!0}),yr(!1),kN(W))};
Raj=function(W){return W.length<=0?NF:MF(W.map(function(l){var V=0;return l.pipe(AL(function(f){return{index:V++,value:f}}))})).pipe(eu(function(l){return l.every(function(V){return V.index===l[0].index})}),AL(function(l){return l.map(function(V){return V.value})}))};
tmJ=function(W,l){W.currentState&&(W.previousState=W.currentState);W.currentState=l;W.previousState&&W.previousState.value?(l=Math.max(0,qF(l.timestamp,W.previousState.timestamp)),W.totalTime+=l,W.consecutiveTime+=l):W.consecutiveTime=0;return W};
siS=function(){return D7(L5(tmJ,{totalTime:0,consecutiveTime:0}),AL(function(W){return W.totalTime}))};
L16=function(){return D7(L5(tmJ,{totalTime:0,consecutiveTime:0}),AL(function(W){return W.consecutiveTime}))};
y4z=function(W,l){return function(V){return Raj(l.map(function(f){return V.pipe(W(f))}))}};
gWq=function(){var W;return D7(KYF(function(l){return void(W=l.timestamp)}),L16(),AL(function(l){return{timestamp:W,
value:Math.round(l)}}))};
PW4=function(W,l){return K5(W.topWindowViewportExternalGeometry,l.topWindowViewportExternalGeometry)&&K5(W.elementGeometry,l.elementGeometry)&&K5(W.exposedViewportLocalGeometry,l.exposedViewportLocalGeometry)&&K5(W.intersectionGeometry,l.intersectionGeometry)&&W.elementGeometrySourceName===l.elementGeometrySourceName&&W.measurementRequests===l.measurementRequests&&W.viewportGeometrySourceName===l.viewportGeometrySourceName&&W.viewportLocalAppOffset.x===l.viewportLocalAppOffset.x&&W.viewportLocalAppOffset.y===
l.viewportLocalAppOffset.y};
B96=function(W,l){return function(V){return function(f){var r=f.pipe(RU(new U1),wI());f=V.element.pipe(Vr());r=r.pipe(AL(function(R){return R.value}));
return MF([f,r,l]).pipe(AL(function(R){var y=_.L(R);R=y.next().value;var P=y.next().value;y=y.next().value;if(R.ref===void 0)var n={top:0,left:0,width:0,height:0};else{n=R.ref.getBoundingClientRect();var B=R.ref,d=W.global,J=new _.O1(0,0),D=aU(_.z7(B));if(G7v(D,"parent")){do{if(D==d)var u=_.NC(B);else u=nWz(B),u=new _.O1(u.left,u.top);J.x+=u.x;J.y+=u.y}while(D&&D!=d&&D!=D.parent&&(B=D.frameElement)&&(D=D.parent))}n={top:J.y,left:J.x,width:n.width,height:n.height}}n=clU(n,P.viewportLocalAppOffset);
d=CI8(n,P.exposedViewportLocalGeometry);J=W.timeProvider.now();D=Object;B=D.assign;if(y!==2||W.inCrossDomainIframe||d.width<=0||d.height<=0)var H=!1;else try{var p=W.document.elementFromPoint(d.left+d.width/2,d.top+d.height/2);H=p?!CWx(p,R):!1}catch(X){H=!1}return{timestamp:J,value:B.call(D,{},P,{elementGeometrySourceName:"geo",intersectionGeometry:H?c4v.intersectionGeometry:d,elementGeometry:n})}}),uh(W.queue))}}};
CWx=function(W,l,V){V=V===void 0?0:V;return W.ref===void 0||l.ref===void 0?!1:W.ref===l.ref||_.YN(l.ref,function(f){return f===W.ref})?!0:l.ref.ownerDocument&&l.ref.ownerDocument.defaultView&&l.ref.ownerDocument.defaultView===l.ref.ownerDocument.defaultView.top?!1:V<10&&l.ref.ownerDocument&&l.ref.ownerDocument.defaultView&&l.ref.ownerDocument.defaultView.frameElement?CWx(W,new xN(l.ref.ownerDocument.defaultView.frameElement),V+1):!0};
D_z=function(W){return function(l){return l.pipe(W.ResizeObserver?d_J(W):J4S(W),s1(1),wI())}};
d_J=function(W){return function(l){return l.pipe(gO(function(V){var f=W.ResizeObserver;if(!f||V.ref===void 0)return iM(c4v.elementGeometry);var r=(new Ux(function(R){function y(){V.ref!==void 0&&P.unobserve(V.ref);P.disconnect();n.unsubscribe()}
if(V.ref===void 0)return R.complete(),function(){};
var P=new f(function(B){B.forEach(function(d){R.next(d)})});
P.observe(V.ref);var n=V.JSC$9355_released.subscribe(y);return y})).pipe(Su(W.performanceMonitor,736),AL(function(R){return R.contentRect}));
return Yd(iM(V.ref.getBoundingClientRect()),r)}),Vr(K5))}};
J4S=function(W){return function(l){var V=l.pipe(E96(W)),f=W.onResize;V=Yd(l.pipe(AL(function(){return xCF("resize")})),V,f);
return MF(l,V).pipe(Su(W.performanceMonitor,737),AL(function(r){r=_.L(r).next().value;return r.ref===void 0?void 0:r.ref.getBoundingClientRect()}),fzY(),Vr(K5))}};
k_x=function(W,l){var V=U_F(W,l).pipe(s1(1),wI());return function(f){return function(r){r=r.pipe(gO(function(R){return R.element}),Vr());
return MF([V,r]).pipe(gO(function(R){var y=_.L(R);R=y.next().value;y=y.next().value;return ucY(W,R.intersectionObserver,D_z(W),R.observations,f,R.flushRecords,y)}),uh(W.queue))}}};
vW4=function(W){return AL(function(l){return l.value.viewportGeometrySourceName!=="nio"?l:Object.assign({},l,{value:Object.assign({},l.value,{exposedViewportLocalGeometry:et(W,!0),topWindowViewportExternalGeometry:et(W,!0)})})})};
HWq=function(W,l){return iM(l).pipe(W,AL(function(){return l}))};
U_F=function(W,l){return W.timeProvider.timeline!==K1v?mQ(new As(2)):W.MutationObserver?typeof IntersectionObserver==="undefined"?mQ(new As(0)):(new Ux(function(V){var f=new U1,r=new hs(f.next.bind(f),{threshold:[].concat(_.QK(l))});V.next({observations:f.pipe(Su(W.performanceMonitor,735)),intersectionObserver:r,flushRecords:function(R){R=r.takeRecords(R);R.length>0&&f.next(R)}})})).pipe(lh(1),s1(1),wI()):mQ(new As(1))};
F1z=function(W){return od8(W.sort(function(l,V){return l.time-V.time}),Qt6)};
ucY=function(W,l,V,f,r,R,y){return new Ux(function(P){function n(){H||(H=!0,y.ref!==void 0&&l.unobserve(r,y.ref),d.unsubscribe(),u.unsubscribe(),D.unsubscribe(),p.unsubscribe())}
if(y.ref!==void 0){G_S(l,r);l.observe(r,y.ref);var B=new St({timestamp:W.timeProvider.now(),value:Object.assign({},c4v,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),d=f.pipe(Ox(function(X){return F1z(X)}),eu(function(X){return X.target===y.ref}),AL(function(X){return{timestamp:new hL(X.time,K1v),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:X.rootBounds||E1,topWindowViewportExternalGeometry:X.rootBounds||et(W,!0),measurementRequests:J,elementGeometrySourceName:"nio",intersectionGeometry:X.intersectionRect,elementGeometry:X.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:X.isIntersecting,isV2Visible:X.isVisible}}}),RU(B),wI()).subscribe(P),J=new U1,D=J.subscribe(function(){R(r);
P.next({timestamp:W.timeProvider.now(),value:B.value.value});y.ref!==void 0&&(l.unobserve(r,y.ref),l.observe(r,y.ref))}),u=HWq(V,y).subscribe(function(){J.next()}),H=!1,p=y.JSC$9355_released.subscribe(function(){return n()});
return n}})};
bW8=function(W,l){var V=W.getOnBackgrounded().pipe(AL(function(){return"b"}));
return LYz(l,V).pipe(lh(1),kN(W.queue))};
$N=function(W){return function(l){var V;return l.pipe(KYF(function(f){return void(V=f.timestamp)}),AL(function(f){return f.value}),W,AL(function(f){return{timestamp:V,
value:f}}))}};
p4x=function(W){return W.intersectionGeometry.width*W.intersectionGeometry.height/(W.elementGeometry.width*W.elementGeometry.height)};
Wt=function(W,l,V){V=V===void 0?function(f,r){return f===r}:V;
return W.timestamp.equals(l.timestamp)&&V(W.value,l.value)};
V7=function(W,l){return l.pipe(AL(function(V){return new lI(W.timeProvider,{timestamp:W.timeProvider.now(),value:V})}))};
oWz=function(W){return function(l){return l.pipe(FYY(W),AL(function(V){var f=_.L(V);V=f.next().value;f=f.next().value;var r=V.value;return{timestamp:V.timestamp,value:r>=1?!0:r<=0?!1:r>=f}}))}};
Iz6=function(){return D7(eu(function(W,l){return l>0}),jiv,yr(-1),Vr())};
iWj=function(W,l,V){return W?MF([l,V]).pipe(eu(function(f){var r=_.L(f);f=r.next().value;r=r.next().value;return f.timestamp.equals(r.timestamp)}),AL(function(f){var r=_.L(f);
f=r.next().value;r=r.next().value;return f.value>r.value?f:r})):l};
T9z=function(W){return function(l){var V=l.pipe(m_x),f=l.pipe(X48);return W instanceof Ux?W.pipe(gO(function(r){return iWj(r,V,f)})):iWj(W.value,V,f)}};
YRz=function(W,l,V,f){var r=f.geometryIsOccluded,R=f.exposureThreshold,y=f.wasLargeAdAtRender,P=f.allowLargeAdThreshold,n=f.largeAdExposureThreshold,B=f.mayUseViewportShareExposure,d=f.hasMeasurementStarted;f=f.useIntersectionObserverV2;l=w4S(W,V,l);V=A4F(W,V);f=Qiz(l,f);var J=MmY(W,r,B,l),D=J.pipe(AL(function(x){return x.value}),Vr(),kN(W),L5(function(x,Y){return Math.max(x,Y)},0)),u=J.pipe(AL(function(x){return x.value}),Iz6(),kN(W)),H=l.pipe(ZWj,AL(function(x){return x.value}),lh(2),Vr(),kN(W));
y=OWq(W,l,y,P);var p=y.pipe(yr(!1),Vr(),AL(function(x){return x?n:R}));
P=J.pipe(oWz(p),Vr(),kN(W));var X=MF([P,l]).pipe(eu(function(x){var Y=_.L(x);x=Y.next().value;Y=Y.next().value;return x.timestamp.equals(Y.timestamp)}),AL(function(x){var Y=_.L(x);
x=Y.next().value;Y=Y.next().value;return{visible:x.value,geometry:Y.value.elementGeometry}}),L5(function(x,Y){return!Y.visible&&x.visible?x:Y},{visible:!1,
geometry:E1}),AL(function(x){return x.geometry}),yr(E1),kN(W),Vr(K5));
B=B instanceof Ux?B.pipe(Vr(),Wg()):wO;p=MF([B,p]).pipe(Wg());var w=l.pipe(eu(function(x){return x.value.viewportGeometrySourceName!=="ns"&&x.value.elementGeometrySourceName!=="ns"}),L5(function(x){return x+1},0),yr(0),kN(W)),O=V.pipe(Wg(!0),yr(!1),kN(W));
O=MF([d,O]).pipe(AL(function(x){var Y=_.L(x);x=Y.next().value;Y=Y.next().value;return x&&!Y}),kN(W));
var S=l.pipe(azY,Vr()),N=S.pipe(AL(function(x){return x.value}),L5(function(x,Y){return Math.max(x,Y)},0),Vr(),kN(W));
W=S.pipe(AL(function(x){return x.value}),Iz6(),kN(W));
return{shouldResetExposureSignals:B,shouldResetViewabilitySignals:p,geometrySignals:{readyGeometryWithDefault:l,measurementStrategy:l.pipe(zax),creativePosition:X.pipe(Vr(K5)),visible:P.pipe(Vr(Wt)),timestampedExposure:J.pipe(Vr(Wt)),maximumExposure:D,minimumExposure:u,browserSize:l.pipe(N9Y,Vr(_.hx)),timestampedScreenShare:S,maxScreenShare:N,minScreenShare:W,geometricMeasurementErrors:V,measurementRequests:l.pipe(AL(function(x){return x.value.measurementRequests})),
isLargeAd:y,geometryIsOccluded:r,hasMeasurementStarted:d,geometryMeasurable:O,validMeasurementCount:w,loadTimeExposure:H,v2VisibilityBitVector:f}}};
A4F=function(W,l){return l.pipe(eu(function(){return!1}),AL(function(V){return V}),Ex(function(V){return rd(new Hg(V),W)}))};
w4S=function(W,l,V){return l.pipe(ttz(wO),kN(W)).pipe(Vr(function(f,r){return Wt(f,r,PW4)}),yr({timestamp:V.now(),
value:c4v}),kN(W))};
MmY=function(W,l,V,f){V=f.pipe(T9z(V),$N(AL(function(r){return Math.round(r*100)/100})),kN(W));
return l instanceof Hg?V:MF([V,l]).pipe(AL(function(r){var R=_.L(r);r=R.next().value;R=R.next().value;return{timestamp:R.timestamp.maximum(r.timestamp),value:R.value?0:r.value}}),Vr(Wt),kN(W))};
OWq=function(W,l,V,f){l=[l.pipe(AL(function(r){return r.value.elementGeometry.width*r.value.elementGeometry.height>=242500}))];
V instanceof Ux&&l.push(V.pipe(AL(function(r){return!!r})));
V=MF(l);return f?V.pipe(AL(function(r){return r.some(function(R){return R})}),yr(!1),Vr(),kN(W)):rd(new Hg(!1),W)};
Qiz=function(W,l){W=MF([W,l]).pipe(AL(function(r){var R=_.L(r);r=R.next().value;if(R.next().value&&r.value.isIntersecting)return r.value.isV2Visible}),Vr());
var V=W.pipe(AL(function(r){return r===void 0?!0:r}),L5(function(r,R){return r||!R},!1)),f=W.pipe(L5(function(r,R){return R===void 0?r:R?!1:r!=null?r:!0},void 0),AL(function(r){return!!r}));
return MF([l,ysF(W,V,f)]).pipe(AL(function(r){var R=_.L(r);r=R.next().value;var y=_.L(R.next().value);R=y.next().value;var P=y.next().value;y=y.next().value;var n=0;if(!r)return 0;if(R===void 0)return 16;R&&(n|=1);R||(n|=2);P&&(n|=4);y&&(n|=8);return n}))};
EW8=function(W,l,V,f,r){var R=x_Y.timeThresholdMs;var y=y===void 0?new eav(l,f):y;return(new Ux(function(P){var n=V.pipe(yr(void 0),gO(function(){return qRS(r)})).pipe(AL(function(B){var d=B.value;
B=B.timestamp;var J=d.visible;d=d.consecutiveViewTime;var D=d>=R;D||!J?haz(y):(B=Math.max(0,qF(l.now(),B)),SRq(y,Math.max(0,R-d-B)));return D}),L5(function(B,d){return d||B},!1),Vr()).subscribe(P);
return function(){y.dispose();n.unsubscribe()}})).pipe(Pg(function(P){return!P},!0),kN(W))};
qRS=function(W){return Raj([W,W.pipe(gWq())]).pipe(AL(function(l){var V=_.L(l);l=V.next().value;V=V.next().value;return{timestamp:l.timestamp,value:{visible:l.value,consecutiveViewTime:V.value}}}),Vr(function(l,V){return Wt(l,V,function(f,r){return f.consecutiveViewTime===r.consecutiveViewTime&&f.visible===r.visible})}))};
$_J=function(){return D7(L16(),L5(function(W,l){return Math.max(W,l)},0),AL(function(W){return Math.round(W)}))};
Ww4=function(W){return D7(oWz(iM(W)),$_J())};
lLn=function(W,l){return l instanceof Ux?l.pipe(gO(function(V){return(V=V?15:null)?mQ(new As(V)):W})):(l=l.value?15:null)?mQ(new As(l)):W};
Vi6=function(W){var l=new As(13);if(W.length<1)return{chain:NF,capturedErrors:NF};var V=new U1,f=W[0];return{chain:W.slice(1).reduce(function(r,R){return r.pipe(Ex(function(y){V.next(y);return R}))},f).pipe(Ex(function(r){V.next(r);
return mQ(l)}),RU(new U1),wI()),
capturedErrors:V}};
fLJ=function(W,l){var V=W.pipe(RU(new U1),wI());return gO(function(f){return V.pipe(l(f))})};
Rrx=function(W,l){if(W.inCrossDomainIframe)return mQ(new As(6));var V=new U1;return Yd(iM({}),l,V).pipe(AL(function(){return{timestamp:W.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:rCj(W),topWindowViewportExternalGeometry:et(W,!0),measurementRequests:V,viewportLocalAppOffset:{x:0,y:0}}}}),uh(W.queue))};
rCj=function(W){var l=et(W,!1);if(!W.inIframe||!b5q(W.global.parent)||W.global.parent===W.global)return l;var V=new RZ(W.global.parent,W.debugChannel);V.beaconFactory=W.beaconFactory;V=rCj(V);W=W.global.frameElement.getBoundingClientRect();return CI8(clU(CI8(V,W),{x:l.left-W.left,y:l.top-W.top}),l)};
tij=function(W){if(W.prerendering)return 3;var l;return(l={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[W.visibilityState||W.webkitVisibilityState||W.mozVisibilityState||""])!=null?l:0};
sh8=function(W){return W.document.JSC$9366_onVisibilityChange.pipe(AL(function(l){return l==="visible"}),Vr(),kN(W.queue))};
Lw8=function(W,l,V){var f;return l.pipe(Vr(),gO(function(r){return V.pipe(AL(function(){if(!f){f=!0;try{r.next()}finally{f=!1}}return!0}))}),yr(!1),kN(W.queue))};
yCn=function(W){return D7($N(AL(function(l){return l>=1?!0:l<=0?!1:l>=W})),siS(),AL(function(l){return Math.round(l)}))};
Pzj=function(W,l,V,f,r){var R=g2U;if(R.length>1)for(var y=0;y<R.length-1;y++)if(R[y]<R[y+1])throw Error();y=r.pipe(yr(void 0),gO(function(){return V.pipe(gWq())}),Vr(),kN(W));
r=r.pipe(yr(void 0),gO(function(){return V.pipe($_J())}),Vr(),kN(W));
return{totalMeasurementTime:f.pipe(yr(void 0),gO(function(){return l.pipe(AL(function(P){return{timestamp:P.timestamp,value:!0}}),siS())}),Vr(),kN(W)),
totalUnviewedTime:f.pipe(yr(void 0),gO(function(){return l.pipe(AL(function(P){return{timestamp:P.timestamp,value:P.value===0}}),siS())}),Vr(),kN(W)),
maxTimeOnScreen:f.pipe(yr(void 0),gO(function(){return l.pipe(y4z(Ww4,R))}),Vr(_.hx),kN(W)),
timeOnScreen:f.pipe(yr(void 0),gO(function(){return l.pipe(y4z(yCn,R),AL(function(P){return P.map(function(n,B){return B>0?n-P[B-1]:n})}))}),Vr(_.hx),kN(W)),
maxConsecutiveViewTime:r,consecutiveViewTime:y.pipe(Vr(Wt),kN(W))}};
Cz8=function(W){var l=!0;l=l===void 0?!1:l;return D7(gO(function(V){return n2z(W.document,V,l)}),kN(W.queue))};
cCj=function(W,l,V){var f=V.pipe(AL(function(r){return{value:r,timestamp:W.timeProvider.now()}}),Vr(Wt));
return l instanceof Ux?l.pipe(Vr(),gO(function(r){return r?rd(new Hg({value:!1,timestamp:W.timeProvider.now()}),W.queue):f})):l.value===!1?f:new Hg(!1)};
BKY=function(W,l,V,f,r,R,y){var P=x_Y;l=l instanceof Ux?l.pipe(yr(!1),Vr()):l;var n=!W.isMobile();V=cCj(W,V,f);W=y.measurableCreative.pipe(r4z(W.queue));return Object.assign({},P,{geometryIsOccluded:V,wasLargeAdAtRender:r,allowLargeAdThreshold:n,mayUseViewportShareExposure:l,hasMeasurementStarted:W,useIntersectionObserverV2:R})};
JCn=function(W,l,V,f,r,R){var y=1;R=R===void 0?!0:R;y=y===void 0?.01:y;var P=P===void 0?W.timeProvider.intervalObservable(100).pipe(kN(W.queue)):P;return W.performanceMonitor.timeExecution(916,function(){return d4n(W,l.pipe(uh(W.queue)),V.pipe(uh(W.queue)),f,r,R,y,P)})()};
d4n=function(W,l,V,f,r,R,y,P){var n=sh8(W).pipe(AL(function(d){return!d})),B=new D4x(W,[new U4F(W,g2U),
new uWS(W,P)]);P=xsn(k3S,v2Y);return QZn(W,l,function(d,J){var D=rd(new Hg(J.element),d.queue).pipe(Cz8(d),kN(d.queue)),u={loadedElement:D,shouldMeasure:D.pipe(Wg(!0)),measurableCreative:D.pipe(AL(function(x){var Y=Y===void 0?Symbol():Y;return Object.freeze({symbol:Y,element:rd(new Hg(x),d.queue)})})),
creativeSearchResult:rd(new Hg("mue"),d.queue)},H=new Hg(!1),p=new Hg(!1),X=new Hg(17),w=new Hg(!1),O=new Hg(!1),S=rd(tl,d.queue);H=B.buildGeometrySource(u,{inApp:H,useV2:!1,requestSource:rd(X,d.queue)}).geometrySource;u=BKY(d,w,p,n,O,S,u);p=YRz(d.queue,d.timeProvider,H,u);u=p.geometrySignals;w=p.shouldResetViewabilitySignals;p=Pzj(d.queue,u.timestampedExposure,u.visible,p.shouldResetExposureSignals,w);w=EW8(d.queue,d.timeProvider,w,u.measurementRequests,u.visible);O=V.pipe(eu(function(x){return x===
J.element.ref}),AL(function(){return"ur"}));
S=Ch4(d.timeProvider,r).pipe(Wg("t"));O=bW8(d,Yd(O,S));S=Lw8(d,u.measurementRequests,O.pipe(eu(function(x){return x!==null})));
H=O.pipe(eu(function(x){return x!==null}),AL(function(){return tij(d.global.document)===1}));
var N=Hpx(d.document);return Object.assign({},{beaconFactory:new Hg(d.beaconFactory),context:new Hg(d),inferredPingId:new Hg("lidar2"),timeOnScreenPingId:new Hg("lidartos"),binaryContext:new Hg(17),binaryVersion:new Hg(f),requestSource:X,contextValidationErrors:new Hg(d.validate()?null:new Qr),contextVisibilityKnown:new Hg(N),payloadMapper:new Hg(Ndj),endOfSessionReason:O,timeOnScreenReason:O,requestMeasurementOnEndOfSession:S,hasImpressionFired:Kwz,crossDomainIframeState:new Hg(d.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:tl,inFetchLaterBeaconExperiment:tl,isTurtlex:tl,turtlexReportEventData:new Hg(""),reportFencedFrameEvent:wO,isViewableAttributionEnabled:tl,inViewableAttributionExperiment:new Hg(0),fetchBeaconFactory:wO,supportsPendingBeacon:tl,supportsFetchLater:tl,emit:new Hg(hOq),beginToRenderEvent:new Hg(Symbol()),activeViewUnmeasurableEvent:new Hg(Symbol()),activeViewViewableEvent:new Hg(Symbol()),creativeFound:Kwz,immediateUrlPrefixes:new Hg(J.immediateUrls),timeOnScreenUrlPrefixes:new Hg(J.timeOnScreenUrls),
cpmavUrls:wO,viewableRelayUrls:wO,measurementDeferralState:new Hg(2),urlSerializer:new Hg(Vmq),viewUrlSerializer:new Hg(Fwv),isCreativeLoaded:D.pipe(r4z(d.queue)),pageVisible:n.pipe(AL(function(x){return!x})),
eosPageVisible:H,timestampedExposureHistory:u.timestampedExposure.pipe(L5(function(x,Y){x.push(Y);return x},[]))},u,{viewable:V7(d,w),
maxTimeOnScreen:V7(d,p.maxTimeOnScreen),timeOnScreen:V7(d,p.timeOnScreen),maxConsecutiveViewTime:V7(d,p.maxConsecutiveViewTime),consecutiveViewTime:p.consecutiveViewTime.pipe(AL(function(x){return new lI(d.timeProvider,x)})),
totalMeasurementTime:V7(d,p.totalMeasurementTime),totalUnviewedTime:V7(d,p.totalUnviewedTime),userAgentClientHints:Y1v(d),clientOrderPingCounter:new Hg(new ZsS)})},Yc4(W,y),eOS(R?qcv(P,G3Y):qcv(P,bpJ),pPU))};
o2U=function(W){var l=_.xk.apply(1,arguments).filter(Boolean).join("&");if(!l)return W;var V=W.match(/[?&]adurl=/);return V?W.slice(0,V.index+1)+l+"&"+W.slice(V.index+1):W+(W.indexOf("?")<0?"?":"&")+l};
sc=function(W,l){return l?"&"+W+"="+encodeURIComponent(l):""};
jhJ=function(){try{var W,l;return!!((W=window)==null?0:(l=W.top)==null?0:l.location.href)&&!1}catch(V){return!0}};
_.Ls=function(W){W&&typeof W.dispose=="function"&&W.dispose()};
_.y7=function(W){for(var l=0,V=arguments.length;l<V;++l){var f=arguments[l];_.Ng(f)?_.y7.apply(null,f):_.Ls(f)}};
ipS=function(){var W=ILg();W=W===void 0?"bevasrsg":W;return new Promise(function(l){var V=window===window.top?window:jhJ()?window:window.top,f=V[W],r;((r=f)==null?0:r.bevasrs)?l(new gd(f.bevasrs)):(f||(f={},f=(f.nqfbel=[],f),V[W]=f),f.nqfbel.push(function(R){l(new gd(R))}))})};
m48=function(W){var l={c:W.nf,e:W.y4E,mc:W.lMS,me:W.qmx};W.zv&&(l.co={c:W.zv.nGq,a:W.zv.uNF,s:W.zv.rTw});return l};
XPx=function(W){var l,V,f={nf:W.c,y4E:W.e,lMS:(l=W.mc)!=null?l:!1,qmx:(V=W.me)!=null?V:!1};W.co&&(f.zv={nGq:W.co.c,uNF:W.co.a,rTw:W.co.s});return f};
TKz=function(W){return function(){var l;return _.g(function(V){if(V.nextAddress==1)return V.yield(W(),2);l=V.yieldResult;return V.return({f:function(){return l.drG()},
c:function(f){return l.i5o(f)},
m:function(f){return l.ho(XPx(f))},
mws:function(f){return l.pFY(XPx(f))}})})}};
wP4=function(W,l){var V=ILg();V=V===void 0?"bevasrsg":V;l={s:function(R){var y;return W.snapshot(Object.assign({},R.c&&{nf:R.c},R.s&&{pE6:R.s},{znC:(y=R.p)!=null?y:!0}))},
e:function(R){var y;return void((y=W.peN)==null?void 0:y.call(W,R))},
c:function(R,y){return W.yi9(R,y)},
p:W.wwq,l:function(){return W.iDq()},
wpc:l?TKz(l):void 0};var f=window===window.top?window:jhJ()?window:window.top,r=f[V];if(r){r.bevasrs=l;if(r.nqfbel!==void 0)for(V=_.L(r.nqfbel),f=V.next();!f.done;f=V.next())f=f.value,f(l);r.nqfbel=void 0}else r={},r=(r.bevasrs=l,r.nqfbel=void 0,r),f[V]=r};
Qhz=function(W){var l=l===void 0?51:l;var V=[];_.Pt(W,ACv,6,_.ns()).forEach(function(f){_.Cs(f,2)<=l&&V.push(_.Cs(f,1))});
return V};
Mig=function(W){var l=l===void 0?51:l;var V=[];_.Pt(W,ACv,6,_.ns()).forEach(function(f){_.Cs(f,2)>l&&V.push(_.Cs(f,1))});
return V};
Zpq=function(W){W.then(function(){},function(){})};
ct=function(W){return{fieldType:1,fieldName:W}};
Bt=function(W){return{fieldType:2,fieldName:W}};
_.dd=function(W){return{fieldType:3,fieldName:W}};
Opg=function(){function W(){r[0]=1732584193;r[1]=4023233417;r[2]=2562383102;r[3]=271733878;r[4]=3285377520;d=B=0}
function l(J){for(var D=y,u=0;u<64;u+=4)D[u/4]=J[u]<<24|J[u+1]<<16|J[u+2]<<8|J[u+3];for(u=16;u<80;u++)J=D[u-3]^D[u-8]^D[u-14]^D[u-16],D[u]=(J<<1|J>>>31)&4294967295;J=r[0];var H=r[1],p=r[2],X=r[3],w=r[4];for(u=0;u<80;u++){if(u<40)if(u<20){var O=X^H&(p^X);var S=1518500249}else O=H^p^X,S=1859775393;else u<60?(O=H&p|X&(H|p),S=2400959708):(O=H^p^X,S=3395469782);O=((J<<5|J>>>27)&4294967295)+O+w+S+D[u]&4294967295;w=X;X=p;p=(H<<30|H>>>2)&4294967295;H=J;J=O}r[0]=r[0]+J&4294967295;r[1]=r[1]+H&4294967295;r[2]=
r[2]+p&4294967295;r[3]=r[3]+X&4294967295;r[4]=r[4]+w&4294967295}
function V(J,D){if(typeof J==="string"){J=unescape(encodeURIComponent(J));for(var u=[],H=0,p=J.length;H<p;++H)u.push(J.charCodeAt(H));J=u}D||(D=J.length);u=0;if(B==0)for(;u+64<D;)l(J.slice(u,u+64)),u+=64,d+=64;for(;u<D;)if(R[B++]=J[u++],d++,B==64)for(B=0,l(R);u+64<D;)l(J.slice(u,u+64)),u+=64,d+=64}
function f(){var J=[],D=d*8;B<56?V(P,56-B):V(P,64-(B-56));for(var u=63;u>=56;u--)R[u]=D&255,D>>>=8;l(R);for(u=D=0;u<5;u++)for(var H=24;H>=0;H-=8)J[D++]=r[u]>>H&255;return J}
for(var r=[],R=[],y=[],P=[128],n=1;n<64;++n)P[n]=0;var B,d;W();return{reset:W,update:V,digest:f,digestString:function(){for(var J=f(),D="",u=0;u<J.length;u++)D+="0123456789ABCDEF".charAt(Math.floor(J[u]/16))+"0123456789ABCDEF".charAt(J[u]%16);return D}}};
er4=function(W,l){l=l===void 0?aLj:l;if(!zrn){var V;W=(V=W.navigator)==null?void 0:V.userAgentData;if(!W||typeof W.getHighEntropyValues!=="function"||W.brands&&typeof W.brands.map!=="function")return Promise.reject(Error("ua"));NKF((W.brands||[]).map(function(r){var R=new YJ6;R=_.mY(R,1,r.brand);return _.mY(R,2,r.version)}));
typeof W.mobile==="boolean"&&_.Jl(x4U,2,W.mobile);zrn=W.getHighEntropyValues(l)}var f=new Set(l);return zrn.then(function(r){var R=x4U.clone();f.has("platform")&&_.mY(R,3,r.platform);f.has("platformVersion")&&_.mY(R,4,r.platformVersion);f.has("architecture")&&_.mY(R,5,r.architecture);f.has("model")&&_.mY(R,6,r.model);f.has("uaFullVersion")&&_.mY(R,7,r.uaFullVersion);return R.serialize()}).catch(function(){return x4U.serialize()})};
D1=function(W,l,V,f){this.initialValue_=W;this.maxValue_=l;this.currBaseValue_=this.currValue_=W;this.randomFactor_=V||0;this.backoffFactor_=f||2};
Uc=function(W){this.src=W;this.listeners={};this.typeCount_=0};
E2v=function(){for(var W;W=qJz.remove();){try{W.fn.call(W.scope)}catch(l){tx(l)}hrz.put(W)}SJ8=!1};
_.$4g=function(W){switch(W){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}};
WSY=function(W){switch(W){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""}};
_.ljn=function(){};
gY8=function(W,l,V,f){W=VFj(fjn(rYS(new _.k9(1828,"0"),W),new RVj)).disableWithCredentials();l.length&&tFF(W,s0S(new LS4,l));f!==void 0&&(W.destinationUrl=f);var r=new yY4(1828,"","",!1,"",W.build());_.vt(r,W);var R=new Ht({flush:function(y){try{r.flush(y)}catch(P){V(P)}}});
R.addOnDisposeCallback(function(){setTimeout(function(){try{R.snapshotAndFlush()}finally{r.dispose()}})});
R.invocationLimit=1E5;R.flushInterval=3E4;R.JSC$9782_flushTimer.setInterval(3E4);return R};
Ks=function(){var W,l,V;return(V=(W=globalThis.performance)==null?void 0:(l=W.now)==null?void 0:l.call(W))!=null?V:Date.now()};
CPz=function(W,l){if(W.disable)return new PP4;l=l?Qhz(l):[];W={qM:W.qM,mLE:W.sPU,cWx:W.nGr,destinationUrl:W.destinationUrl,i76:W.i76,hO9:W.hO9};l=l===void 0?[]:l;return new nYY(W,l)};
cYg=function(W){if(!W)return null;W=_.F7(W,2);return W===null||W===void 0?null:EP(W)};
_.BUS=function(W){if(!W)return null;W=_.F7(W,4);return W===null||W===void 0?null:_.i7(W)};
DL6=function(W,l){return l?dLx(l):W?JY6(W):Promise.resolve()};
dLx=function(W){return new Promise(function(l,V){var f=_.Gz("SCRIPT"),r=_.BUS(W);_.tL(f,r);f.onload=function(){_.bI(f);l()};
f.onerror=function(){_.bI(f);V(Error("Fa"))};
(ps("HEAD")[0]||document.documentElement).appendChild(f)})};
JY6=function(W){return new Promise(function(l){var V=_.Gz("SCRIPT");if(W){var f=_.F7(W,6);f=f===null||f===void 0?null:_.rI(f)}else f=null;_.Rt(V,f);(ps("HEAD")[0]||document.documentElement).appendChild(V);_.bI(V);l()})};
oZ=function(W,l,V){var f,r=new Promise(function(R){f=setTimeout(R,l)});
return Promise.race([W.finally(function(){return void clearTimeout(f)}),
r.then(V)])};
ULz=function(W,l){try{return globalThis.sessionStorage.setItem(W,l),!0}catch(V){return!1}};
uPS=function(W,l,V,f){l=l===void 0?0:l;V=V===void 0?W.length:V;var r=0;for(f&&(r=uPS(f));l<V;l++)f=typeof W==="string"?W.charCodeAt(l):W[l],r=k4z(31,r)+f|0;return r};
vYU=function(W,l){return[uPS(W,0,W.length>>1,l),uPS(W,W.length>>1)]};
H7U=function(W){var l=_.L(vYU(W,jV));W=l.next().value;l=l.next().value;return W.toString(16)+l.toString(16)};
KS4=function(W,l){var V=vYU(l);W=new Uint32Array(W.buffer);l=W[0];var f=_.L(V);V=f.next().value;f=f.next().value;for(var r=1;r<W.length;r+=2){for(var R=l,y=r,P=V,n=f,B=0;B<22;B++)y=y>>>8|y<<24,y+=R|0,y^=P+38293,R=R<<3|R>>>29,R^=y,n=n>>>8|n<<24,n+=P|0,n^=B+38293,P=P<<3|P>>>29,P^=n;R=[R,y];W[r]^=R[0];r+1<W.length&&(W[r+1]^=R[1])}};
FSz=function(W,l,V,f,r){var R=(4-(jV.length+V.length)%4)%4,y=new Uint8Array(4+R+jV.length+4+V.length),P=new DataView(y.buffer),n=0;P.setUint32(n,Math.random()*4294967295);n=n+4+R;y.set(jV,n);n+=jV.length;P.setUint32(n,r);y.set(V,n+4);KS4(y,f);return W.insert(l,function(B){return void globalThis.sessionStorage.removeItem(B)})?ULz(l,_.Xw(y))?"s":"t":"i"};
G4j=function(W,l){var V=globalThis.sessionStorage.getItem(W);if(!V)return["m"];try{var f=_.$z(V);KS4(f,l)}catch(r){return globalThis.sessionStorage.removeItem(W),["c"]}for(l=4;l<7&&f[l]===0;)l++;for(V=0;V<jV.length;V++)if(f[l++]!==jV[V])return globalThis.sessionStorage.removeItem(W),["d"];V=(new DataView(f.buffer)).getUint32(l);return Math.floor(Date.now()/1E3)>=V?(globalThis.sessionStorage.removeItem(W),["e"]):["a",new Uint8Array(f.buffer,l+4)]};
b7g=function(W){return globalThis.TextEncoder?(new TextEncoder).encode(W):_.IZ(W)};
pAq=function(W){var l=W,V;return function(){if(l){var f=l;l=void 0;V=f.apply(this,arguments)}return V}};
j0F=function(W){return X9(function(l){if(l instanceof W)return!0;var V,f,r=l==null?void 0:(V=l.ownerDocument)==null?void 0:(f=V.defaultView)==null?void 0:f[W.name];return oYJ(r)&&l instanceof r})};
_.X7=function(W,l,V){_.iI.call(this);this.JSC$9995_listener_=W;this.JSC$9995_interval_=l||0;this.handler_=V;this.callback_=(0,_.ml)(this.JSC$9997_doAction_,this)};
_.Tz=function(W){W=Ijx(W);return _.i7(W)};
Ijx=function(W){return W===null?"null":W===void 0?"undefined":W};
mLz=function(W){if(W&&W.focus)if(W!==document.activeElement)W.focus();else return i7Y(function(){return _.g(function(l){document.activeElement&&document.activeElement.blur();return l.return(i7Y(function(){W.focus()}))})})};
_.XAJ=function(W){var l=l===void 0?5:l;setTimeout(function(){var V;return _.g(function(f){f.nextAddress==1&&(V=document.activeElement);if(f.nextAddress!=5)return(document.activeElement===V||document.activeElement===document.body)&&l>=0&&W?f.yield(mLz(W),5):f.jumpTo(0);if(document.activeElement===W)return f.return();W=W.parentElement;--l;return f.jumpTo(2)})},15)};
i7Y=function(W){return new Promise(function(l){requestAnimationFrame(function(){l(W())})})};
wAg=function(W){if(_.wd)W(_.wd);else{var l;((l=TUv)!=null?l:TUv=[]).push(W)}};
Q7=function(){!_.wd&&_.Al&&_.AYF(_.Al());return _.wd};
_.AYF=function(W){_.wd=W;var l;(l=TUv)==null||l.forEach(wAg);TUv=void 0};
_.Ms=function(W){_.wd&&_.wd.beforeLoadModuleCode(W)};
_.Z1=function(){_.wd&&_.wd.JSC$11051_setLoaded()};
Oc=function(W){return ocv(W)?Number(W):String(W)};
Q0j=function(W){this.action=W;this.wfv=!1};
MFF=function(W,l){Q0j.call(this,"set-drive-options");this.appId=W;this.appOrigin=l};
Z7v=function(W){Q0j.call(this,"visibility");this.visible=W};
O74=function(W,l,V){zz.call(this,W,l,V)};
ajJ=function(W){Ns.call(this,W)};
zVg=function(W){W=W&&W.getWindow()||window;return W.gadgets&&W.gadgets.rpc};
Y6z=function(W,l){var V=l&&l.getWindow()||window;if(zVg(l))W();else if(NUv)NUv.push(W);else var f=NUv=[W],r=V.setInterval(function(){if(zVg(l)){V.clearInterval(r);for(var R=0;R<f.length;R++)f[R]();NUv=null}},100)};
eVv=function(W,l){var V=new Y9(W);_.vt(l,V);var f={passive:!1};l.listen(V,"mousewheel",function(r){return void xLq(W,r)},f).listen(W,"scroll",function(r){return void xLq(W,r)},f)};
xLq=function(W,l){var V;a:{for(V=l.target;V;){if(V.nodeType==1){var f=_.x9(V,"overflowY");if(f=="auto"||f=="scroll")break a}V=V.parentNode}V=null}if(!V||!_.eV(W,V)||V.scrollHeight==V.clientHeight||l.deltaY>0&&Math.abs(V.scrollTop-(V.scrollHeight-V.clientHeight))<=1||l.deltaY<0&&V.scrollTop==0)l.preventDefault(),l.stopPropagation()};
lW=function(W,l,V,f,r,R,y,P,n){P=P===void 0?!1:P;n=n===void 0?!1:n;zz.call(this,void 0,void 0,void 0);zz.call(this,R?R+" picker modal-dialog":"picker modal-dialog",!0,V);_.qs(W,"protocol");this.iframeManager_=new q6F;this.targetId_=hl();this.rpcToken_=hl();W=_.SV(W);_.Ec(W,"hostId");V=_.Ec(W,"parent");this.useGapi_=!n&&!0||(V==null?void 0:V.includes("onepick.corp.google.com"));P&&_.$9(W,"fv2","true");this.setUrl(W.toString());this.preferredDialogWidth_=f;this.preferredDialogHeight_=r;f!==void 0||
r!==void 0?f=!0:(f=_.Ec(_.SV(W.toString()),"hostId"),Ci6||(Ci6=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),f=!Ci6.has(f));this.autoSizeDialog_=f;this.JSC$10185_gadgetsDomHelper_=y||this.JSC$10136_dom_;l&&(y=this.JSC$10185_gadgetsDomHelper_,l=_.Ec(_.SV(this.JSC$10187_url_),"grugl")=="true"?cvn:B8g,zVg(y)||(y=y||IU(document),f=y.createElement("SCRIPT"),_.tL(f,l),f.type="text/javascript",y.JSC$9321_document_.body.appendChild(f)));
W=W.toString();l=null;y=W.indexOf("/picker?");y>-1?l=W.substring(0,y+8-1):Lq(W,"/picker")&&(l=W);l&&this.setRelayUrl(l+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(W=this.buttons_,W.JSC$10170_element_=this.buttonEl_,W.render()):_.sx(this.buttonEl_,dt4),_.W4(this.buttonEl_,!!this.buttons_))};
_.uRS=function(W){var l=l===void 0?Jv8:l;var V=_.qg(W),f=function(R){R=_.L(R);R.next();R=V_(R);return l(V,R)},r=function(R){var y=_.L(R);
R=y.next().value;y=V_(y);return W.apply(R,y)};
return function(){var R=_.xk.apply(0,arguments),y=this||_.rS,P=DtY.get(y);P||(P={},DtY.set(y,P));return UtJ(P,[this].concat(_.QK(R)),r,f)}};
fW=function(W){var l={};W=W.replace(/\r/g,"").split("\n");for(var V=0;V<W.length;V++){var f=W[V],r=f.indexOf(":");r<0||(l[f.substring(0,r)]=f.substring(r+2,f.length))}return l};
kdv=function(W,l,V){V=V===void 0?function(){}:V;
return W?l():V()};
_.HRS=function(W){var l;return((l=vsU.documentOverride)!=null?l:W).__wizdispatcher};
_.Ri=function(W){var l=r9;r9=W;return l};
_.FuJ=function(W){return W===KuU||(W==null?void 0:W.name)==="\u0275NotFound"};
_.t4=function(W,l){var V;if((V=W)==null?0:V.isDisposed)throw Error("jb`"+String(W.debugName));for(;W!==void 0;){V=W;if(V.retrieve)return V.retrieve(l,{optional:!0});W=W.parent}return KuU};
sR=function(W){return{"\u0275prov":{providedIn:"root",token:Symbol(W),factory:void 0,value:void 0}}};
_.Gd8=function(W){var l=r9;if(!l){switch(W===void 0?3:W){case 0:W=Error("ib");break;case 1:W=Error("kb");break;case 2:W=Error("lb");break;default:W=Error("mb")}throw W;}return l};
bRz=function(W){var l=_.Ri(W);W={};return W[Symbol.dispose]=function(){_.Ri(l)},W};
p2U=function(W,l){W.disposables||(W.disposables=[]);W.disposables.push(l)};
LW=function(W){var l=r9;l&&!l.isDisposed&&(p2U(l,W),W.parent=l)};
jlq=function(W){if(W.disposables){for(var l=_.L(W.disposables),V=l.next();!V.done;V=l.next())V=V.value,typeof V==="function"?V():osx(V);W.disposables.length=0}};
osx=function(W){if(!W.isDisposed){W.isDisposed=!0;var l;(l=W[Symbol.dispose])==null||l.call(W);delete W.parent;jlq(W)}};
MSJ=function(W){var l={retrieve:function(V){switch(V.\u0275prov.token){case IsS.\u0275prov.token:var f=W.asyncDeps;break;case _.iR8.\u0275prov.token:f=W.rootElement;break;case mtF.\u0275prov.token:f=W.modelRootElement;break;case X2S.\u0275prov.token:f=W.appContext;break;case T8n.\u0275prov.token:f=W.rendererData;break;case w2z.\u0275prov.token:f=W.injectingConstructor;break;case AvU.\u0275prov.token:f=W.dispatcher}if(f)V=f;else a:{for(f=l.parent;f;){var r=f;if(r.retrieve){V=r.retrieve(V);break a}f=
f.parent}f=V.\u0275prov.token;r=Qlz[f];r!==void 0?V=r:(r=V.\u0275prov.providedIn,V.\u0275prov.factory?(V=V.\u0275prov.factory(),f&&r==="root"&&(Qlz[f]=V)):V=KuU)}return V}};
LW(l);return l};
ZRF=function(){var W=_.Gd8(1),l=_.t4(W,X2S);_.FuJ(l)&&(W=_.t4(W,AvU),_.FuJ(W)||W.getOptionalAppContext())};
ORv=function(W){if(typeof document!=="undefined"&&document&&document.getElementById&&(W=document.getElementById(W))){var l=W.tagName.toUpperCase();if(l=="SCRIPT"||l=="LINK")return W}return null};
zj4=function(W,l){if((W=W===void 0?"":W)&&l)throw Error("sb");var V="";var f=_.rS._F_jsUrl;(W=l||ORv(W))&&(V=W.src?W.src:W.getAttribute("href"));if(f&&V){if(f!=V)throw Error("tb`"+f+"`"+V);V=f}else V=f||V;if(!as8(V))throw Error("ub");return V};
ejz=function(){if(!N88){N88=!0;try{var W=zj4(_.rS._F_jsUrl?"":"base-js")}catch(f){return}var l=Ywg(xtJ(W)),V=Object.keys(l);V.length!==0&&wAg(function(f){for(var r=_.L(V),R=r.next();!R.done;R=r.next()){R=R.value;for(var y=_.L(Object.keys(l[R])),P=y.next();!P.done;P=y.next())f.addExtraEdge(R,P.value)}})}};
hjq=function(){var W=Object.assign({},qwq);Object.getOwnPropertyNames(qwq).forEach(function(l){y_[l]!==void 0&&(W[l]=y_[l])});
return W};
Swn=function(W,l){if(y_.enablePerformanceTiming){var V,f;(f=(V=performance).mark)==null||f.call(V,W+"Start__"+l)}};
Es8=function(W,l){if(y_.enablePerformanceTiming){var V,f;(f=(V=performance).measure)==null||f.call(V,W+"__"+l,W+"Start__"+l)}};
$tJ=function(W,l,V){var f;return W&&l?W+"__"+l:(f=W!=null?W:l)!=null?f:V};
lxU=function(W,l){var V=Object.create(WyU);V.debugName=l;!r9||LW(V);l=_.Ri(V);try{W(V)}finally{_.Ri(l)}return function(){return void osx(V)}};
fxn=function(W){return g9(W)&&VCz in W};
rr8=function(W,l){return Object.is(W,l)};
nW=function(W){var l=P4;P4=W;return l};
tCn=function(W){if(CW)throw Error("Z");if(P4!==null){var l=P4.producersTail;if(l===void 0||l.producer!==W){var V=void 0,f=P4.recomputing;if(f&&(V=l!==void 0?l.nextProducer:P4.producers,V!==void 0&&V.producer===W)){P4.producersTail=V;V.lastReadVersion=W.version;return}var r=W.consumersTail,R;if(!(R=r===void 0||r.consumer!==P4)){if(f){a:{R=P4;f=R.producersTail;if(f!==void 0){R=R.producers;do{if(R===r){f=!0;break a}if(R===f)break;R=R.nextProducer}while(R!==void 0)}f=!1}f=!f}R=f}R&&(f=c4(P4),V={producer:W,
consumer:P4,nextProducer:V,prevConsumer:r,lastReadVersion:W.version,nextConsumer:void 0},P4.producersTail=V,l!==void 0?l.nextProducer=V:P4.producers=V,f&&RXS(W,V))}}};
yrn=function(W){if(!c4(W)||W.dirty)if(W.dirty||W.lastCleanEpoch!==so6)(W.producerMustRecompute(W)||Lyx(W))&&W.producerRecomputeValue(W),W.dirty=!1,W.lastCleanEpoch=so6};
g_n=function(W){if(W.consumers!==void 0){var l=CW;CW=!0;try{for(var V=W.consumers;V!==void 0;V=V.nextConsumer){var f=V.consumer;f.dirty||(W=void 0,f.dirty=!0,g_n(f),(W=f.consumerMarkedDirty)==null||W.call(f,f))}}finally{CW=l}}};
PTF=function(){var W;return((W=P4)==null?void 0:W.consumerAllowSignalWrites)!==!1};
n_U=function(W){W&&(W.producersTail=void 0,W.recomputing=!0);return nW(W)};
crn=function(W,l){nW(l);if(W){W.recomputing=!1;l=W.producersTail;var V=l!==void 0?l.nextProducer:W.producers;if(V!==void 0){if(c4(W)){do V=CTz(V);while(V!==void 0)}l!==void 0?l.nextProducer=void 0:W.producers=void 0}}};
Lyx=function(W){for(W=W.producers;W!==void 0;W=W.nextProducer){var l=W.producer,V=W.lastReadVersion;if(V!==l.version)return!0;yrn(l);if(V!==l.version)return!0}return!1};
RXS=function(W,l){var V=W.consumersTail,f=c4(W);V!==void 0?(l.nextConsumer=V.nextConsumer,V.nextConsumer=l):(l.nextConsumer=void 0,W.consumers=l);l.prevConsumer=V;W.consumersTail=l;if(!f)for(W=W.producers;W!==void 0;W=W.nextProducer)RXS(W.producer,W)};
CTz=function(W){var l=W.producer,V=W.nextProducer,f=W.nextConsumer,r=W.prevConsumer;W.nextConsumer=void 0;W.prevConsumer=void 0;f!==void 0?f.prevConsumer=r:l.consumersTail=r;if(r!==void 0)r.nextConsumer=f;else if(l.consumers=f,!c4(l))for(W=l.producers;W!==void 0;)W=CTz(W);return V};
c4=function(W){return W.consumerIsAlwaysLive||W.consumers!==void 0};
Jrz=function(W){var l=Object.create(Bvq);l.computation=W;W=function(){yrn(l);tCn(l);if(l.value===B4)throw l.error;return l.value};
W[dJv]=l;return W};
ksg=function(W,l){var V=Object.create(DJz);V.value=W;l!==void 0&&(V.equal=l);W=function(){tCn(V);return V.value};
W[dJv]=V;return[W,function(f){return UJg(V,f)},
function(f){PTF()||uCj(V);UJg(V,f(V.value))}]};
UJg=function(W,l){PTF()||uCj(W);if(!W.equal(W.value,l)){W.value=l;W.version++;so6++;g_n(W);var V;(V=v_4)==null||V(W)}};
d9=function(W){var l=nW(null);try{return W()}finally{nW(l)}};
_.J4=function(W,l,V){V=V===void 0?"":V;W=ksg(W,l==null?void 0:l.equals);var f=W[0],r=f[dJv];r.debugName=$tJ(l==null?void 0:l.debugName,V,"[signal]");if(!y_.enablePerformanceTiming)return W;var R=W[1],y=W[2];return[f,function(P){HSY(function(){return void R(P)},r)},
function(P){HSY(function(){return void y(P)},r)}]};
HSY=function(W,l){Swn("signalSet",l.debugName);try{W()}finally{Es8("signalSet",l.debugName)}};
Fyn=function(W,l){var V=_.L(_.J4(W,void 0,"cPpJzc"));W=V.next().value;V=V.next().value;W[KyS]=V;W[Dz]=l;return W};
Gsv=function(W){return!!W&&typeof W==="object"&&Object.getPrototypeOf(W)===Object.prototype};
bSj=function(W){return typeof W==="function"&&KyS in W&&typeof W[KyS]==="function"};
pqq=function(W,l){Object.defineProperty(W,Dz,{get:function(){return l}})};
uW=function(W,l){if(UR(W)){var V=W.map(function(R){return uW(R,l)});
pqq(V,l);return V}if(Gsv(W)){V={};W=_.L(Object.entries(W));for(var f=W.next();!f.done;f=W.next()){var r=_.L(f.value);f=r.next().value;r=r.next().value;V[f]=uW(r,l)}pqq(V,l);return V}return Fyn(W,l)};
o_n=function(W){if(UR(W))return W.map(function(r){return o_n(r)});
if(Gsv(W)){var l={};W=_.L(Object.entries(W));for(var V=W.next();!V.done;V=W.next()){var f=_.L(V.value);V=f.next().value;f=f.next().value;l[V]=o_n(f)}return l}return bSj(W)?W():W};
Ixz=function(){var W={height:0,width:0};if(!Gsv(W))throw Error("Jb");var l=Symbol("Kb");return[uW(W,l),function(V,f){if(V[Dz]===l)if(typeof f==="function"){var r=[].concat(_.QK(o_n(V)));f=f(r)||r;jox(V,[].concat(_.QK(f)))}else jox(V,f);else throw Error("Lb");}]};
jox=function(W,l){if(bSj(W))W[KyS](l);else if(UR(W)&&UR(l))l=uW(l,W[Dz]),W.length=0,W.push.apply(W,_.QK(l));else if((Gsv(W)||UR(W))&&(UR(l)||typeof l==="object"&&l!==null)){l=_.L(Object.entries(l));for(var V=l.next();!V.done;V=l.next()){var f=_.L(V.value);V=f.next().value;f=f.next().value;var r=W,R=r[V];Object.hasOwn(W,V)?jox(R,f):r[V]=uW(f,W[Dz])}}else throw Error("Mb");};
iSx=function(W){return Object.create(Object.assign({},kW,W))};
Xqz=function(){var W;return(W=mJ6)!=null?W:mJ6=iSx({consumerAllowSignalWrites:!0})};
_.v4=function(W,l,V){V=V===void 0?"":V;W=Jrz(W);var f=W[dJv];f.debugName=$tJ(l==null?void 0:l.debugName,V,"[computed]");(l==null?void 0:l.equals)!=null&&(f.equal=l.equals);return W};
H4=function(W){var l=nW(TvF);try{W()}finally{nW(l)}};
ZS6=function(W){switch(W.onInitType){case wqF:Ar6.schedule(W);break;case QoJ:MC6.schedule(W);break;default:_.Yc(W.onInitType)}};
xJ6=function(W){if(!W.isDisposed)switch(W.effectType){case KW:OSz.schedule(W);break;case axU:zXn.schedule(W);break;case Nv4:YLU.schedule(W);break;default:_.Yc(W.effectType)}};
hXz=function(){if(Fc>0)y_.flushRenderEffectsDuringRender&&OSz.flush();else{for(var W=_.L(eX8),l=W.next();!l.done;l=W.next())l.value.flush();qLz()}};
qLz=function(){_.g(function(W){if(W.nextAddress==1)return W.yield(Promise.resolve(),2);for(var l=_.L(SLU),V=l.next();!V.done;V=l.next())V.value.flush();_.ju(W)})};
$Jx=function(W){G_=!0;try{for(var l=_.L(W),V=l.next();!V.done;V=l.next()){for(var f=V.value,r=[f],R=f;R.parent!==void 0;)R=R.parent,E_v(R)&&W.has(R)&&r.push(R);for(;r.length>0;){var y=r.pop();W.delete(y);y.run()}}}finally{G_=!1}};
bW=function(W){Fc--;if(W){W=_.L(We4);for(var l=W.next();!l.done;l=W.next())l.value.clear()}else Fc>0||G_&&!y_.flushRenderEffectsDuringRender||hXz()};
Vng=function(W,l,V){var f=l5v(W);pW={name:V?f+" ("+V+")":f,isReactive:W.componentType!==_.oi,parent:pW};W=l();pW=pW.parent;return W};
jm=function(){var W=pW;return W?W.isReactive:!1};
iW=function(W,l,V){var f=pW;l&&(pW=l);try{return V==null?W():W.call(V)}catch(R){W=R;Ii(W,pW);if(W!==f5F){rHx=pW;l=[];for(V=r9;V;){var r=void 0;l.push((r=V.debugName)!=null?r:"[context]");r=void 0;V=(r=V.parent)!=null?r:null}RUx=l.reverse()}f5F=W;throw W;}finally{pW=f}};
Ii=function(W,l){try{var V=tnS(l);if(V&&!W.componentStack&&(W.componentStack=V,y_.enableComponentStacksInErrorMessages)){var f=W.message+"\n\nComponent stack: "+V;W.stack&&(W.stack=W.stack.replace(W.message,f));W.message=f}}catch(r){}};
tnS=function(W){if(g9(W)&&W.name!==void 0&&W.isReactive!==void 0&&W.parent!==void 0||W===null){for(var l=0,V="";l<20&&W;)V+=W.name+" > ",W=W.parent,l++;W=V.slice(0,-3)}else if(y_.enableContextBasedComponentStacks){a:{for(W=W===void 0?r9:W;W;){if(fxn(W))break a;l=void 0;W=(l=W.parent)!=null?l:null}W=null}W=W.getComponentStack().slice(0,20).join(" > ")}else W="";return W};
l5v=function(W){return W.debugName||W.name||"[component]"};
s_z=function(W,l,V){l=Object.create(l);W&&(l.effectFn=W);V&&(l.debugName=V);LW(l);l.componentStack=pW;return l};
_.m1=function(W,l){W=s_z(W,Lev,l);xJ6(W)};
_.Xc=function(W){var l=r9;if(l){var V=pW;p2U(l,function(){var f=nW(Xqz());try{iW(function(){return void W()},V)}catch(r){throw y_.enableContextBasedComponentStacks&&Ii(r),r;
}finally{nW(f)}})}};
T_=function(W,l){var V={};(l===void 0||l)&&LW(V);l=_.Ri(V);try{W(V)}finally{_.Ri(l)}return function(){return void osx(V)}};
_.w9=function(W){return typeof W==="function"?W():(W==null?0:W[yHS])?W.get():W};
_.A4=function(W,l){W=s_z(W,gBS,l);xJ6(W)};
PNv=function(W){if(r9)throw Error("nb");T_(W,!1)};
Q_=function(W,l){W=_.Ri(W);try{return d9(l)}finally{_.Ri(W)}};
M_=function(W,l){var V=tnS(rHx),f,r;var R=(r=(f=RUx)==null?void 0:f.slice())!=null?r:[];l={componentStack:V,contextTrace:R,errorSeverity:3,featureFlags:hjq(),tagName:l};return[W,l]};
cHU=function(W,l,V){if(Object.hasOwnProperty.call(nBY,W)&&(W=nBY[W],Object.hasOwnProperty.call(W,l)&&(W=W[l],W instanceof Array))){for(var f=null,r=!1,R=0,y=W.length;R<y;++R){var P=W[R],n=P.contingentAttribute;if(!n)return P.contract;f===null&&(f={});n=Object.hasOwnProperty.call(f,n)?f[n]:f[n]=V(n);if(n===P.requiredValue)return P.contract;n==null&&(r=!0)}if(r)return null}l=CNF[l];return typeof l==="number"?l:null};
JHS=function(W,l,V){var f=null;(W=B6n[W])&&(f=W[l]);return typeof f!=="number"&&((W=B6n["*"])&&(f=W[l]),typeof f!=="number")?!1:!0===dSq[f][String(V).toLowerCase()]};
USn=function(W,l){l=cHU(W.toLowerCase(),l,function(){var f;(f=y_.handleError)==null||f.call.apply(f,[y_].concat(_.QK(M_(Error("Tb"),W.toLowerCase()))))});
if(l===null)return null;var V;return(V=DSg[l])!=null?V:null};
uLz=function(W,l,V){if(V===null||V===void 0)return V;l=l.toLowerCase();W=USn(W,l);return W===null?V:W(l,V)};
kiz=function(){};
Zz=function(W,l){for(;W.length>l;)W.pop()};
vBz=function(W){W=Array(W);Zz(W,0);return W};
OR=function(W,l,V){if(V==null)W.removeAttribute(l);else{var f;(f=l.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":l.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?W.setAttributeNS(f,l,V):W.setAttribute(l,V)}};
Hjx=function(W,l,V){W[l]=V};
FeF=function(W,l,V){W=W.style;if(typeof V==="string")W.cssText=V;else{W.cssText="";for(var f in V)if(KeY.call(V,f)){l=W;var r=f,R=V[f];r.indexOf("-")>=0?l.setProperty(r,R):l[r]=R}}};
GiJ=function(W,l,V){var f=typeof V;f==="object"||f==="function"?W[l]=V:OR(W,l,V)};
bjS=function(){var W=new kiz;W[N_.default]=GiJ;W.style=FeF;return W};
pSj=function(W,l,V,f){(f[l]||f[N_.default])(W,l,V)};
j_v=function(W,l,V){l=new oBS(l,V);return W.__incrementalDOMData=l};
YW=function(W,l){if(W.__incrementalDOMData)return W.__incrementalDOMData;var V=W.nodeType===1?W.localName:W.nodeName,f=W.nodeType===1?W.getAttribute("key"):null;l=j_v(W,V,W.nodeType===1?f||l:null);if(W.nodeType===1&&(W=W.attributes,V=W.length)){f=l._attrsArr||(l._attrsArr=vBz(V*2));for(var r=0,R=0;r<V;r+=1,R+=2){var y=W[r],P=y.value;f[R]=y.name;f[R+1]=P}}return l};
I5z=function(W,l,V,f,r){return l==V&&f==r};
ijY=function(W){for(var l=q_,V=h4();V!==W;){var f=V.nextSibling;l.removeChild(V);Sm.deleted.push(V);V=f}};
h4=function(){return ER?ER.nextSibling:q_.firstChild};
$W=function(){ER=h4()};
T64=function(W,l,V){$W();var f;a:{if(f=ER){do{var r=f,R=W,y=l,P=YW(r,y);if(mSg(r,R,P.nameOrCtor,y,P.key))break a}while(l&&(f=f.nextSibling))}f=null}f||(W==="#text"?(V=WP.createTextNode(""),j_v(V,"#text",null),W=V):(f=WP,r=q_,typeof W==="function"?f=new W:f=(r=W==="svg"?"http://www.w3.org/2000/svg":W==="math"?"http://www.w3.org/1998/Math/MathML":r==null||YW(r).nameOrCtor==="foreignObject"?null:r.namespaceURI)?f.createElementNS(r,W):f.createElement(W),j_v(f,W,l),W=f,V&&W.setAttribute("nonce",V)),Sm.created.push(W),
f=W);V=f;if(V!==ER){if(XSn.indexOf(V)>=0)for(W=q_,l=V.nextSibling,f=ER;f!==null&&f!==V;)r=f.nextSibling,W.insertBefore(f,l),f=r;else q_.insertBefore(V,ER);ER=V}};
wSv=function(W,l,V){T64(W,l,V);q_=ER;ER=null;return q_};
AHj=function(){ijY(null);ER=q_;q_=q_.parentNode};
Q_4=function(){ER=q_.lastChild};
Ojx=function(W,l){l=l===void 0?{}:l;var V=l.matches===void 0?I5z:l.matches;return function(f,r,R){var y=Sm,P=WP,n=XSn,B=lz,d=Vj,J=ER,D=q_,u=mSg;WP=f.ownerDocument;Sm=new Mnn(f);mSg=V;lz=[];Vj=[];ER=null;var H=q_=f.parentNode,p,X=Zjn.call(f);if((p=X.nodeType===11||X.nodeType===9?X.activeElement:null)&&f.contains(p)){for(X=[];p!==H;)X.push(p),p=p.parentNode||(H?p.host:null);H=X}else H=[];XSn=H;try{return W(f,r,R)}finally{f=Sm,fp&&f.deleted.length>0&&fp(f.deleted),WP=P,Sm=y,mSg=u,lz=B,Vj=d,ER=J,q_=D,
XSn=n}}};
a5S=function(W,l,V,f){rK.push(pSj);rK.push(W);rK.push(l);rK.push(V);rK.push(f)};
N6z=function(W,l,V){var f=Vj;l=l._attrsArr||(l._attrsArr=vBz(f.length));for(var r=!l.length||!1,R=0;R<f.length;R+=2){var y=f[R];if(r)l[R]=y;else if(l[R]!==y)break;var P=f[R+1];if(r||l[R+1]!==P)l[R+1]=P,a5S(W,y,P,V)}if(R<f.length||R<l.length){for(R=r=R;R<l.length;R+=2)Rh[l[R]]=l[R+1];for(R=r;R<f.length;R+=2)r=f[R],y=f[R+1],Rh[r]!==y&&a5S(W,r,y,V),l[R]=r,l[R+1]=y,delete Rh[r];Zz(l,f.length);for(var n in Rh)a5S(W,n,void 0,V),delete Rh[n]}W=zUn;zUn=V=rK.length;for(n=W;n<V;n+=5)(0,rK[n])(rK[n+1],rK[n+
2],rK[n+3],rK[n+4]);zUn=W;Zz(rK,W);Zz(f,0)};
Yun=function(W){T64("#text",null);var l=ER;var V=YW(l);if(V.text!==W){V=V.text=W;for(var f=1;f<arguments.length;f+=1)V=(0,arguments[f])(V);l.data!==V&&(l.data=V)}};
$SY=function(W,l,V){if(V===!1&&xSv.has(l))OR(W,l,null);else if(l!=="idomKey"&&l!=="skip"&&l!=="skipchildren"&&l!=="children"&&l!=="el")if(l.startsWith("on")){if(l[2]!==":")throw Error("Sb`"+l);if(V===void 0||V===null){var f;(f=y_.handleError)==null||f.call.apply(f,[y_].concat(_.QK(M_(Error("Xb`"+l),W.tagName))));W[l]=void 0}else{var r=l.slice(3);f=jm();if(r==="jsaction"){V=Array.isArray(V)?V:[V];V=_.L(V);for(var R=V.next();!R.done;R=V.next()){R=R.value;if(typeof R!=="object"||R===null||typeof R.selfReg!==
"function")throw Error("$b`"+l);R.selfReg(0,W,f?_.Xc:function(){})}}else{if(typeof V!=="object"||V===null)throw Error("Yb`"+l+"`"+typeof V);
if(typeof V.getFn!=="function")throw Error("Zb`"+l+"`"+Object.keys(V));if(V.selfReg)V.selfReg(0,W,r,f?_.Xc:function(){});
else if(f&&W["on"+r]===void 0){var y=V.getFn(0);W.addEventListener(r,y);_.Xc(function(){return void W.removeEventListener(r,y)})}else if(f||!eUv.includes(r))W["on"+r]=V.getFn(0)}}}else{if(l.startsWith("data-")&&typeof V==="string")try{V=quU(V)}catch(P){V="zSoyz"}typeof V!=="function"||W._disposeEffects!=null?((f=l.startsWith("prop:"))&&(l=l.slice(5)),y_.enableAttributeSanitization&&(f&&hUg(W.tagName)||(V=uLz(W.tagName,l,V))),l==="style"?("function"==typeof _.tC&&V instanceof _.tC&&(V=V.toString()),
SuF(W,l,V)):f?W[l]=V:EBY(W,l,V)):(W._signalProps||(W._signalProps=[]),W._signalValues||(W._signalValues=[]),W._signalProps.push(l))}};
WtS=function(W,l,V){V=(V===void 0?{}:V).isReactive;if(l==null?0:l.el){var f=l.el,r;(r=f.onRender)==null||r.call(f,W);W._disposeRef||(W._disposeRef=function(){var R;(R=f.onUnmount)==null||R.call(f);delete W._disposeRef},V&&_.Xc(function(){var R;
(R=W._disposeRef)==null||R.call(W)}))}};
hUg=function(W){return W.length>0&&W.includes("-")&&!l0n.includes(W.toLowerCase())};
VQ8=function(W){return g9(W)&&sJ in W};
f0J=function(W){return VQ8(W)?W[sJ].flattened:W};
Rcx=function(W,l){var V=_.xk.apply(2,arguments),f;l=(f=l)!=null?f:{};f={};return f.type=W,f.props=l,f.children=V,f[r6z]=!0,f};
_.Lp=function(W){return W.children};
yj=function(W){var l=tQx!==Rcx;tQx=W?sA4:Rcx;return l};
_.gK=function(W){return _.ev(W)?"nodeType"in W:!1};
PP=function(){return document.createTextNode("")};
np=function(W){W=document.createTextNode(String(W));W._isSignalTextNode=!0;return W};
y68=function(W){return W!=null&&W.contentKind===Cp||W instanceof Se||Ltz(W)};
gGS=function(W){var l=document.createElement("div");if(Ltz(W)&&cYg(W))_.sx(l,cYg(W));else if(W instanceof Se)_.sx(l,W);else if(W!=null&&W.contentKind===Cp){if(W.contentKind!==Cp)throw Error("Wb");W=EP(W.toString());_.sx(l,W)}W=_.L(l.childNodes);for(var V=W.next();!V.done;V=W.next())V.value._isSafeOrSanitizedHtmlNode=!0;return l};
cP=function(W){W=typeof W;return W==="string"||W==="number"||W==="boolean"};
PwF=function(W){return W instanceof Iv||QP(W)||W instanceof PG||"function"==typeof _.tC&&W instanceof _.tC};
nGj=function(W,l){var V=W.parentElement;if(!V)return l;V.replaceChild(l,W);return l};
Cwv=function(W,l){var V=W[0].parentElement;if(V)if(W[0].previousSibling||W[W.length-1].nextSibling){V.insertBefore(l,W[0]);for(var f=W.length-1;f>=0;f--)V.removeChild(W[f])}else V.textContent="",V.appendChild(l);return l};
c68=function(W,l){if(W[0].parentElement)for(var V=W[0].parentElement,f=l.length,r=W.length,R=f,y=0,P=0,n=W[r-1].nextSibling,B=null;y<r||P<R;)if(W[y]===l[P])y++,P++;else{for(;W[r-1]===l[R-1];)r--,R--;if(r===y)for(var d=R<f?P?l[P-1].nextSibling:l[R-P]:n;P<R;){var J=l[P++];V.insertBefore(J,d)}else if(R===P)for(;y<r;)d=W[y],B&&B.has(d)||V.removeChild(d),y++;else if(W[y]===l[R-1]&&l[P]===W[r-1])d=W[--r].nextSibling,V.insertBefore(l[P++],W[y++].nextSibling),V.insertBefore(l[--R],d),W[r]=l[R];else{if(!B)for(B=
new Map,d=P;d<R;)B.set(l[d],d++);d=B.get(W[y]);if(d==null)V.removeChild(W[y]),y++;else if(P<d&&d<R){J=y;for(var D=1,u=void 0;++J<r&&J<R&&(u=B.get(W[J]))!=null&&u===d+D;)D++;if(D>d-P)for(J=W[y];P<d;)V.insertBefore(l[P++],J);else V.replaceChild(l[P++],W[y++])}else y++}}return l};
dcq=function(W){if(Array.isArray(W)){if(W.length>1)throw Error("jc`"+W.length+"`"+W.map(Bc4).join(", "));W=W[0]}if(W==null)return null;if(!(W instanceof _.fc)){var l,V;if((l=window)==null?0:(V=l.trustedTypes)==null?0:V.isScript(W))throw Error("ic");if(String(W).trim().length===0)return null;throw Error("kc`"+Bc4(W));}return W};
J6S=function(W,l){l=dcq(l);l!==null&&_.Rt(W,l)};
Dc4=function(W){if(Array.isArray(W)){if(W.length>1)throw Error("lc`"+W.length+"`"+W.map(Bc4).join(", "));W=W[0]}if(W==null)return null;if(!(W instanceof PG)){if(String(W).trim().length===0)return null;throw Error("mc`"+Bc4(W));}return W};
Ucx=function(W,l){l=Dc4(l);l!==null&&(W.textContent=ndJ(l))};
Bc4=function(W){return"("+typeof W+") "+(W!=null&&typeof W==="object"?W.constructor.name:typeof W)+" "+W};
uo8=function(){};
JC=function(W,l){l=l===void 0?{}:l;var V=k$6();y_.legacyTriggerSoyRendererEvents&&ZRF();_.A4(function(){BP.setUp();l.isControlFlowComponent&&Fc++;var f=V[0],r=V[sJ].flattened,R=yj(!0);try{var y=W(),P=vGv(f,y,V);Array.isArray(P)||(V[sJ].flattened=[P]);var n=V[sJ].flattened;if(r&&(!Array.isArray(r)||r.length!==0)){var B=Array.isArray(r)?r[0]:r,d=B[dK],J=B._disposeEffects;B._disposeEffects=void 0;B=Array.isArray(n)?n[0]:n;B[dK]=d;B[dK]&&(B[dK].numNodes=B===n?1:n.length);B._disposeEffects=J}V[0]=P;l.isControlFlowComponent&&
bW(!1)}catch(D){throw l.isControlFlowComponent&&bW(!0),D;}finally{yj(R),BP.tearDown()}},l.debugName);
return V};
vGv=function(W,l,V){for(;typeof l==="function";)l=l();if(l!=null&&l[r6z]){var f,r,R;(R=y_.handleError)==null||R.call.apply(R,[y_].concat(_.QK(M_(Error("nc`"+((f=l.type)==null?void 0:f.TAG_NAME)),(r=l.type)==null?void 0:r.TAG_NAME))))}if(W==null)return l==null?PP():cP(l)?np(l):PwF(l)?np(l.toString()):_.gK(l)?l:l.length===0?PP():HXz(l,V);if(_.gK(W)){if(l==null)return nGj(W,PP());if(cP(l))return KtF(W,l);if(PwF(l))return KtF(W,l.toString());if(_.gK(l))return nGj(W,l);if(l.length===0)return nGj(W,PP());
l=HXz(l,V);c68([W],V[sJ].flattened);return l}W=UJ(W);if(l==null)return Cwv(W,PP());if(cP(l))return Cwv(W,np(l));if(PwF(l))return Cwv(W,np(l.toString()));if(_.gK(l))return c68(W,[l])[0];if(l.length===0)return Cwv(W,PP());l=HXz(l,V);c68(W,V[sJ].flattened);return l};
KtF=function(W,l){W.nodeType===Node.TEXT_NODE?W.textContent!==String(l)&&(W.textContent=String(l)):W=nGj(W,np(l));return W};
UJ=function(W,l,V){return Ftn(W,l!=null?l:[],V===void 0?!1:V)};
HXz=function(W,l){var V=UJ(W,void 0,!0);if(V.length===0)return PP();l[sJ].flattened=V;return W};
Ftn=function(W,l,V,f,r){l=l===void 0?[]:l;V=V===void 0?!1:V;r=r===void 0?-1:r;if(W==null)return l;if(W instanceof uz){var R=W.render();return Ftn(R,l,V,f,r)}if(_.gK(l)&&l.nodeType===Node.ELEMENT_NODE)switch(l.tagName){case "SCRIPT":J6S(l,W);return;case "STYLE":Ucx(l,W);return}cP(W)&&(W=np(W),f&&V&&(f[r]=W));if(y68(W)){V=gGS(W);V=Array.from(V.childNodes);V=_.L(V);for(R=V.next();!R.done;R=V.next())G$U(l,R.value);return l}PwF(W)&&(W=np(W.toString()),f&&V&&(f[r]=W));if(_.gK(W))return G$U(l,W);if(Array.isArray(W)){for(R=
0;R<W.length;R++)Ftn(W[R],l,V,W,R);return l}if(typeof W==="function"){R=JC(function(){var P=W();return P!=null&&!cP(P)&&y68(P)?(P=gGS(P),Array.from(P.childNodes)):P},{debugName:"qmF2ne",
debugFn:W})[0];if(Array.isArray(R)){V=_.L(R);for(R=V.next();!R.done;R=V.next())G$U(l,R.value);return l}f&&V&&(f[r]=R);return G$U(l,R)}if(W!=null&&W[r6z]){f=W;r=yj(!0);var y=tQx;try{R=y.apply(null,[f.type,f.props].concat(_.QK(f.children)))}finally{yj(r)}return Ftn(R,l,V)}(y=y_.handleError)==null||y.call.apply(y,[y_].concat(_.QK(M_(Error("oc")))));return l};
k$6=function(W){var l={};l=Object.assign([],(l[sJ]={flattened:[]},l));if(!W)return l;l[0]=HXz(W,l);return l};
G$U=function(W,l){Array.isArray(W)?W.push(l):W.appendChild(l);return W};
k2=function(W){if(!y_.enableLazyTsx)return W;if(Array.isArray(W)){for(var l=0;l<W.length;l++)W[l]=k2(W[l]);return W}return W instanceof uz?(W=W.render(),k2(W)):W};
pj8=function(W,l){var V,f,r=l5v(W),R=function(u){f=u;u=yj(!0);var H=nW(vP);Swn("render",r);try{V=k2(W(l))}finally{Es8("render",r),nW(H),yj(u)}};
R=y_.enableContextPerComponent?lxU(R,r):T_(R,y_.alwaysTrackContexts||!!r9);fxn(f);if(!l.renderedFromIdom){var y=_.Ri(f);try{return bXq(W,l,V),V}finally{_.Ri(y)}}!VQ8(V)&&Array.isArray(V)&&(V=k$6(V));var P=f0J(V);y=Array.isArray(P)?P[0]:P;var n=!1;if(y){var B,d=(B=l==null?void 0:l.idomKey)!=null?B:W;B=P!==y;y._disposeEffects=R;var J=y[dK]||{},D=VQ8(V)?V:J.sourceDynamicRange;Object.assign(J,{key:d,numNodes:B?P.length:1,context:f,higherOrder:!!y[dK],sourceDynamicRange:D});y[dK]=J}else n=!0;(function(){var u=
_.Ri(f);try{bXq(W,l,P)}finally{_.Ri(u)}})();
n&&R();return V};
oGz=function(W){var l={},V;for(V in W)l={prev$jscomp$24:void 0,next$jscomp$33:void 0},l.prev$jscomp$24=HP[V],l.next$jscomp$33=W[V],HP[V]=function(f){return function(){var r=_.xk.apply(0,arguments);f.prev$jscomp$24.apply(null,_.QK(r));f.next$jscomp$33.apply(null,_.QK(r))}}(l)};
I0v=function(){if(jm())throw Error("pc");return jAj};
iXj=function(W,l){if(!W.__unmounted&&l){W.__unmounted=!0;try{W.didUnmount()}catch(r){var V,f;(f=y_.handleError)==null||f.call.apply(f,[y_].concat(_.QK(M_(r,(V=W.__type)==null?void 0:V.TAG_NAME))))}HP.didUnmount(W);W.el=null;l.__instance&&delete l.__instance}};
XjF=function(W,l,V){W._signalProps!=null&&W._disposeEffects==null&&((V===void 0?0:V)?W._disposeEffects=T_(function(){return void mcS(W,l)},y_.alwaysTrackContexts||!!r9):mcS(W,l))};
mcS=function(W,l){_.A4(function(){for(var V=W._signalProps,f=W._signalValues,r=0;r<V.length;r++){var R=V[r],y=l[R]();f[r]!==y&&(f[r]=y,$SY(W,R,y))}},"e3YVbb")};
Tcx=function(W,l,V){var f,r=[];W._disposeEffects=T_(function(){_.A4(function(){var R=V();if(R===null||R===void 0)R="";if(cP(R)||R===null)f!=null||(f=document.createTextNode("")),f.parentNode!==W&&(f._isSignalTextNode=!0,W.insertBefore(f,l)),f.textContent=String(R);else if(y68(R)){for(var y=r.length>0?r[r.length-1].nextSibling:l,P=_.L(r),n=P.next();!n.done;n=P.next())W.removeChild(n.value);R=gGS(R);r=Array.from(R.childNodes);R=_.L(r);for(P=R.next();!P.done;P=R.next())W.insertBefore(P.value,y)}else throw n=
(P=(y=pW)==null?void 0:y.name)!=null?P:"unknown",Error("ec`"+n+"`"+typeof R);},"VvDgC")},y_.alwaysTrackContexts||!!r9)};
QAv=function(W,l){var V=_.xk.apply(2,arguments);l!=null||(l={});return!y_.enableLazyTsx||pW!=null&&!jm()?wjJ(W,l,V):new A6U(W,l,V)};
wjJ=function(W,l,V){if(W===_.Lp)return V;if(typeof W==="function")return pW&&!jm()&&(l.renderedFromIdom=!0),Vng(W,function(){var R=MQz(W,l,V);if(R)return R;V.length>0&&(l.children=V.length===1?V[0]:V);if(W.componentType===_.oi){var y;lxU(function(){var P=l;if(W.componentType!==_.oi)y=!1;else{P||(P={});var n=new Kp(P,W),B=nW(vP);try{var d=n.render(P)}finally{nW(B)}d instanceof HTMLElement?(d.__instance=n,n.el=d,n.__type=W,W.TAG_NAME=d.tagName.toLowerCase(),HP.didPatch(n),y=d):y=d}},W.name);
if(y)return y}return pj8(W,l)},l.debugInstance);
var f=ZXn(W,l),r;for(r in l)$SY(f,r,l[r]);XjF(f,l);UJ(V,f);WtS(f,l,{isReactive:!0});OXz(f,l);return f};
ZXn=function(W,l){W=(a0z.has(W.toLowerCase())?0:zcJ.has(W.startsWith("svg:")?W.replace("svg:",""):W))?document.createElementNS("http://www.w3.org/2000/svg",W.startsWith("svg:")?W.replace("svg:",""):W):NcJ(W,l)||document.createElement(W);W[YCz]=!0;return W};
_.xc6=function(W){if(W){var l;(l=W._disposeRef)==null||l.call(W);var V;(V=W._disposeEffects)==null||V.call(W);W.__instance&&W.__instance instanceof FW&&(l=W.__instance,iXj(l,W),l instanceof Kp&&l.disposeEffects());for(l=0;l<W.childNodes.length;l++)_.xc6(W.childNodes[l])}};
qCS=function(W){ecU.push(W)===1&&requestAnimationFrame(function(){setTimeout(function(){var l=[].concat(_.QK(ecU));ecU=[];l=_.L(l);for(var V=l.next();!V.done;V=l.next()){V=V.value;try{for(var f=0;f<V.length;f++)_.xc6(V[f])}catch(r){f=V=void 0,(f=(V=y_).handleError)==null||f.call.apply(f,[V].concat(_.QK(M_(r))))}}})})};
_.C=function(W,l){return tQx.apply(null,[W,l].concat(_.QK(_.xk.apply(2,arguments))))};
_.c=function(W){var l=W.cond;if(l===void 0)return W.else&&W.else();var V=_.v4(function(){return!!l()},void 0,"JHVi8"),f=function(){var r=l();
if(!r){var R;(R=y_.handleError)==null||R.call.apply(R,[y_].concat(_.QK(M_(hc6.nonNullableCondIsNull()))))}return r};
return JC(function(){var r=V(),R;T_(function(){var y=nW(vP);try{R=k2(r?W.then(f):W.else&&W.else())}finally{nW(y)}},!0);
return R},{debugName:W.debugInstance,
debugFn:W.then,isControlFlowComponent:!0})};
SCv=function(W){return _.c(W)};
_.G3=function(W){return W.keyBy==="INDEX"?EGY(W):$cF(W)};
WA6=function(W){W=_.L(W);for(var l=W.next();!l.done;l=W.next()){var V=void 0;(V=l.value)==null||V()}};
$cF=function(W){var l=W.keyBy===void 0||W.keyBy==="REFERENCE",V=l?function(d){return d}:W.keyBy,f=[],r=[],R=[],y=[],P=[],n=[],B=!0;
_.Xc(function(){WA6(y)});
return JC(function(){var d=W.each(),J=d.length;if(J===0){if(f.length===0&&!B)return R;WA6(y);f=d;r=[];for(d=0;d<f.length;d++)r.push(V(f[d]));R=[];y=[];P=[];n=[];W.fallback&&(y[0]=lYn(function(){R[0]=k2(W.fallback())}));
B=!1;return R}for(var D=new Vyv,u=f.length-1;u>=0;u--)D.push(r[u],u);u=Array(J);for(var H=Array(J),p=Array(J),X=Array(J),w=Array(l?0:J),O={i$jscomp$450:0};O.i$jscomp$450<J;O={i$jscomp$450:O.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$564:void 0},O.i$jscomp$450++){O.item$jscomp$104=d[O.i$jscomp$450];O.key$jscomp$564=V(O.item$jscomp$104);var S=D.pop(O.key$jscomp$564);S!=null?(p[O.i$jscomp$450]=R[S],H[O.i$jscomp$450]=r[S],u[O.i$jscomp$450]=y[S],X[O.i$jscomp$450]=P[S],l||(w[O.i$jscomp$450]=n[S]),H4(function(N){return function(){X[N.i$jscomp$450](N.i$jscomp$450);
if(!l)w[N.i$jscomp$450](N.item$jscomp$104)}}(O)),delete y[S]):u[O.i$jscomp$450]=lYn(function(N){return function(){var x=_.L(_.J4(N.i$jscomp$450,void 0,"Fqk1zd")),Y=x.next().value;
x=x.next().value;X[N.i$jscomp$450]=x;H[N.i$jscomp$450]=N.key$jscomp$564;if(l)p[N.i$jscomp$450]=k2(W.children(N.item$jscomp$104,Y));else{var W8=_.L(_.J4(N.item$jscomp$104,void 0,"GBj5de"));x=W8.next().value;W8=W8.next().value;w[N.i$jscomp$450]=W8;p[N.i$jscomp$450]=k2(W.children(x,Y))}}}(O))}WA6(y);
f=d;r=H;R=p;y=u;P=X;n=w;B=!1;return p},{debugName:W.debugInstance,
debugFn:W.each,isControlFlowComponent:!0})};
EGY=function(W){var l=[],V=[],f=[],r=[],R=!1;_.Xc(function(){for(var y=_.L(r),P=y.next();!P.done;P=y.next())P=P.value,P()});
return JC(function(){var y=W.each();R&&y.length>0&&(r.pop()(),l.pop(),R=!1);for(var P=Array(y.length),n={i$jscomp$451:0};n.i$jscomp$451<y.length;n={i$jscomp$451:n.i$jscomp$451},n.i$jscomp$451++)if(n.i$jscomp$451<l.length)l[n.i$jscomp$451]!==y[n.i$jscomp$451]&&(H4(function(d){return function(){return void V[d.i$jscomp$451](y[d.i$jscomp$451])}}(n)),l[n.i$jscomp$451]=y[n.i$jscomp$451]),P[n.i$jscomp$451]=f[n.i$jscomp$451];
else{var B=lYn(function(d){return function(){l[d.i$jscomp$451]=y[d.i$jscomp$451];var J=_.L(_.J4(y[d.i$jscomp$451],void 0,"JMMLmd")),D=J.next().value;J=J.next().value;V[d.i$jscomp$451]=J;P[d.i$jscomp$451]=k2(W.children(D,d.i$jscomp$451))}}(n));
r[n.i$jscomp$451]=B}for(;l.length>y.length;)l.pop(),r.pop()(),V.pop();y.length===0&&!R&&W.fallback&&(n=lYn(function(){P[0]=k2(W.fallback())}),r[0]=n,R=!0);
return f=P},{debugName:W.debugInstance,
isControlFlowComponent:!0})};
lYn=function(W){var l=r9;return T_(function(V){var f=nW(vP);try{V.parent=l,W(V)}finally{nW(f)}},!1)};
_.bz=function(W){return W};
_.pp=function(W){return{isDefault:!0,children:W.children}};
_.oh=function(W){var l=fYn(W),V=_.v4(function(){return rgv(l)},void 0,"F1PF4");
return JC(function(){var f=V(),r;T_(function(){var R=nW(vP);try{r=k2(f())}finally{nW(R)}});
return r},{debugName:W.debugInstance,
isControlFlowComponent:!0})};
fYn=function(W){W=W.children;return Array.isArray(W)?W:[W]};
RM6=function(W){var l=W.props;W=W.getChildren()[0];return l.when?{when:l.when,children:W}:{isDefault:!0,children:W}};
rgv=function(W){var l=function(){return null};
W=_.L(W);for(var V=W.next();!V.done;V=W.next())if(V=V.value,V!=null&&V[r6z]&&(V=V.type===_.pp?{isDefault:!0,children:V.children[0]}:{when:V.props.when,children:V.children[0]}),V instanceof uz&&(V=RM6(V)),V.isDefault)l=V.children;else if(V.when())return V.children;return l};
sgz=function(W){var l=null,V,f={get value(){var R,y;(y=(R=r).validateGetValue)==null||y.call(R);return r.__value},set value(R){var y,P;(P=(y=r).validateSetValue)==null||P.call(y,R);r.__value=R;r.__hasBeenSet=!0}},r=(f.__value=null,f.__hasBeenSet=!1,f.__hasErrored=!1,f.onRender=function(R){if(V&&R!==V){V._disposeRef=void 0;var y;(y=l)==null||y()}V=R;l=W(R)||null},f.onUnmount=function(){var R;
(R=l)==null||R();l=r.value=null},f[_.tyz]=!0,f);
return r};
ji=function(W){return typeof W==="symbol"};
ygz=function(W){var l=I0v();if(l==null)throw _.LA8.PRIMITIVE_INVALID_HOOK_CALL();var V=l.hookCounter++;l.hooks||(l.hooks=[]);var f=l.hooks;f[V]||(f[V]={key:W,host:l});if(W!==f[V].key){if(l.__type){var r;W=(r=l.__type)==null?void 0:r.name}else W=l instanceof Kp?l5v(l.functionComponent):"<"+l.el.tagName.toLowerCase()+">";throw _.LA8.OUT_OF_ORDER_HOOK_CALL(W);}return f[V]};
guY=function(W,l){return!W||W.length!==(l==null?void 0:l.length)||W.some(function(V,f){return V!==l[f]})};
Pjv=function(W,l){var V=ygz("onChange"),f=I0v();guY(V.deps,l)&&(V.deps=l,V.pendingEffect=W,f.__syncEffects||(f.__syncEffects=[]),f.__syncEffects.push(V))};
_.Ih=function(W,l,V){V!=null||(V={});V=V.appContext;var f=!!y_.legacyTriggerSoyRendererEvents;BP.setUp();try{var r=nu4(W,l,V);f&&(l=V,l==null&&(l=_.HRS(document).getAppContext()),l.get(Cjz).JSC$29038_getEventTarget().dispatchEvent(new cgn(BgS,W,Cp)));BP.log(W);return r}finally{BP.tearDown()}};
nu4=function(W,l,V){var f=function(){var R=nW(vP);try{return T_(function(){var y=_.HRS(_.z7(W)),P;var n=MSJ({rootElement:{value:W},appContext:V||(y==null?void 0:(P=y.getOptionalAppContext)==null?void 0:P.call(y)),dispatcher:y});y=_.Ri(n);n=yj(!0);Fc++;try{UJ(l(),W),bW(!1)}catch(B){throw bW(!0),B;}finally{yj(n),_.Ri(y)}},!1)}catch(y){throw y_.enableContextBasedComponentStacks&&Ii(y),y;
}finally{nW(R)}},r=iW(function(){return f()});
W[dTF]=!0;return function(){W.textContent="";r();W[dTF]=!1}};
_.iz=function(W){if(E_v(P4)){var l;(l=y_.handleError)==null||l.call.apply(l,[y_].concat(_.QK(M_(Error("dc")))))}var V=r9,f=pW;ZS6({onInitType:QoJ,run:function(){if(V&&!V.isDisposed){var r=_.Ri(V);try{iW(function(){return void W()},f)}catch(R){throw y_.enableContextBasedComponentStacks&&Ii(R),R;
}finally{_.Ri(r)}}}})};
Jgz=function(W,l){Pjv(function(){return d9(W)},l)};
_.mw=function(W){jm()?_.iz(function(){d9(W)}):Pjv(function(){return d9(W)},[])};
UTz=function(W){var l=[].concat(_.QK(W));W.length=0;W=_.L(l);for(l=W.next();!l.done;l=W.next()){l=l.value;DTz(l);var V=l.pendingEffect;l.pendingEffect=null;if(V=V==null?void 0:V())l.pendingCleanup=V}};
DTz=function(W){var l=W.pendingCleanup;W.pendingCleanup=null;l==null||l()};
uN6=function(W,l){if(jm())return W();var V=ygz("useMemoInternal");guY(V.deps,l)&&(V.deps=l,V.value=W());return V.value};
ktv=function(W,l){return uN6(W,l)};
XW=function(W){return uN6(W,[])};
vuJ=function(W){return XW(function(){return{value:W}})};
_.T3=function(W,l){if(!W)return null;W=Object.keys(W);W=_.L(W);for(var V=W.next();!V.done;V=W.next()){V=V.value;var f=V.toLowerCase();if(f.indexOf(l,f.length-l.length)>-1)return V}return null};
_.Qj=function(){var W=arguments,l=_.AC;W.length>1?l[W[0]]=W[1]:W.length===1&&Object.assign(l,W[0])};
_.M4=function(W,l){return W in _.AC?_.AC[W]:l};
_.ZL=function(W,l){return!!_.M4(W,l)};
HN8=function(W){var l=_.AC.EXPERIMENT_FLAGS;return l?l[W]:void 0};
FAz=function(W){KAg.forEach(function(l){return l(W)})};
_.ah=function(W){return W&&window.yterr?function(){try{return W.apply(this,arguments)}catch(l){_.OJ(l)}}:W};
_.OJ=function(W){var l=_.Y2("yt.logging.errors.log");l?l(W,"ERROR",void 0,void 0,void 0,void 0,void 0):(l=_.M4("ERRORS",[]),l.push([W,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.Qj("ERRORS",l));FAz(W)};
_.x2=function(W,l,V,f,r){var R=_.Y2("yt.logging.errors.log");R?R(W,"WARNING",l,V,f,void 0,r):(R=_.M4("ERRORS",[]),R.push([W,"WARNING",l,V,f,void 0,r]),_.Qj("ERRORS",R))};
bNv=function(W,l){l=W.split(l);for(var V={},f=0,r=l.length;f<r;f++){var R=l[f].split("=");if(R.length===1&&R[0]||R.length===2)try{var y=Gtg(R[0]||""),P=Gtg(R[1]||"");if(y in V){var n=V[y];Array.isArray(n)?_.xz(n,P):V[y]=[n,P]}else V[y]=P}catch(D){var B=D,d=R[0],J=String(bNv);B.args=[{key:d,value:R[1],query:W,method:phq===J?"unchanged":J}];ouz.hasOwnProperty(d)||_.x2(B)}}return V};
jgn=function(W){var l=[];_.MC.forEach(W,function(V,f){var r=_.ei(f);V=Array.isArray(V)?V:[V];_.q4(V,function(R){R==""?l.push(r):l.push(r+"="+_.ei(R))})});
return l.join("&")};
_.hC=function(W){W.charAt(0)==="?"&&(W=W.substring(1));return bNv(W,"&")};
_.Si=function(W){return W.indexOf("?")!==-1?(W=(W||"").split("#")[0],W=W.split("?",2),_.hC(W.length>1?W[1]:W[0])):{}};
_.EJ=function(W,l){return IYx(W,l||{},!0)};
iNF=function(W,l){return IYx(W,l||{},!1)};
IYx=function(W,l,V){var f=W.split("#",2);W=f[0];f=f.length>1?"#"+f[1]:"";var r=W.split("?",2);W=r[0];r=_.hC(r[1]||"");for(var R in l)if(V||!_.MC.containsKey(r,R))r[R]=l[R];return _.$2(W,r)+f};
f7=function(W){if(!l)var l=window.location.href;var V=_.WA(W)[1]||null,f=_.lP(W);return V&&f?VS(W,l):f?_.lP(l)===f&&(Number(_.WA(l)[4]||null)||null)===(Number(_.WA(W)[4]||null)||null):!0};
_.Xhj=function(W){W=mTY(W);return W===null?!1:W[0]==="com"&&W[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
mTY=function(W){W=_.lP(W);return W!==null?W.split(".").reverse():null};
Gtg=function(W){return W&&W.match(Tgx)?W:rU(W)};
_.R0=function(W){return new whv(W)};
_.tY=function(){AgY||(AgY=new Qgg);return AgY};
ZNv=function(){var W=MyF;return function(){var l=_.tY();l.resolve(_.R0(W))||l.addProvider({provide:W,useClass:W});return l.resolve(W)}};
aYF=function(W){var l=_.s6,V,f;_.g(function(r){V=_.tY();return(f=V.resolve(_.R0(l)))?(W(f),r.return(Promise.resolve(f))):r.return(V.resolve(new ONv(l)).then(function(R){W(R);return R}))})};
_.U=function(W){W=L7(W);return typeof W==="string"&&W==="false"?!1:!!W};
_.yS=function(W,l){W=L7(W);return W===void 0&&l!==void 0?l:Number(W||0)};
zMz=function(W){W=L7(W);return Array.isArray(W)?_.Zl(W,function(l){return Number(l||0)}):[Number(W||0)]};
_.gU=function(W){W=L7(W);return W!==void 0?String(W):""};
_.n7=function(W){W=L7(W);return Array.isArray(W)?_.Zl(W,function(l){return String(l||"")}):[String(W||"")]};
Ngz=function(){return _.M4("EXPERIMENTS_TOKEN","")};
L7=function(W){return _.M4("EXPERIMENT_FLAGS",{})[W]};
Yex=function(){for(var W=[],l=_.M4("EXPERIMENTS_FORCED_FLAGS",{}),V=_.L(Object.keys(l)),f=V.next();!f.done;f=V.next())f=f.value,W.push({key:f,value:String(l[f])});V=_.M4("EXPERIMENT_FLAGS",{});f=_.L(Object.keys(V));for(var r=f.next();!r.done;r=f.next())r=r.value,r.startsWith("force_")&&l[r]===void 0&&W.push({key:r,value:String(V[r])});return W};
eMS=function(){if(!xTS)return null;var W=xTS();return"open"in W?W:null};
_.qeg=function(W){switch(_.C7(W)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.C7=function(W){return W&&"status"in W?W.status:-1};
_.cA=function(W,l){typeof W==="function"&&(W=_.ah(W));return window.setTimeout(W,l)};
_.BA=function(W,l){typeof W==="function"&&(W=_.ah(W));return window.setInterval(W,l)};
_.dU=function(W){window.clearTimeout(W)};
Se4=function(W){W=_.Si(W);for(var l=_.L(hMg),V=l.next();!V.done;V=l.next())if(W[V.value]!==void 0)return!0;return!1};
WLS=function(W,l,V,f,r,R,y,P,n){V=V===void 0?"GET":V;f=f===void 0?"":f;P=P===void 0?!1:P;var B=eMS();if(!B)return null;var d=function(){(B&&"readyState"in B?B.readyState:0)===4&&l&&_.ah(l)(B)};
"onloadend"in B?B.addEventListener("loadend",d,!1):B.onreadystatechange=d;_.U("debug_forward_web_query_parameters")&&(W=Euq(W,window.location.search));B.open(V,W,!0);R&&(B.responseType=R);y&&(B.withCredentials=!0);V=V==="POST"&&(window.FormData===void 0||!(f instanceof FormData));if(r=$T6(W,r))for(var J in r)B.setRequestHeader(J,r[J]),"content-type"===J.toLowerCase()&&(V=!1);V&&B.setRequestHeader("Content-Type","application/x-www-form-urlencoded");n&&"onprogress"in B&&(B.onprogress=function(){n(B.responseText)});
if(P&&"setAttributionReporting"in XMLHttpRequest.prototype){W={eventSourceEligible:!0,triggerEligible:!1};try{B.setAttributionReporting(W)}catch(D){_.x2(D)}}B.send(f);return B};
$T6=function(W,l){l=l===void 0?{}:l;var V=f7(W),f=_.M4("INNERTUBE_CLIENT_NAME"),r=_.U("web_ajax_ignore_global_headers_if_set"),R;for(R in lAq){var y=_.M4(lAq[R]),P=R==="X-Goog-AuthUser"||R==="X-Goog-PageId";R!=="X-Goog-Visitor-Id"||y||(y=_.M4("VISITOR_DATA"));var n;if(!(n=!y)){if(!(n=V||(_.lP(W)?!1:!0))){n=W;var B;if(B=_.U("add_auth_headers_to_remarketing_google_dot_com_ping")&&R==="Authorization"&&(f==="TVHTML5"||f==="TVHTML5_UNPLUGGED"||f==="TVHTML5_SIMPLY"))B=mTY(n),B=B===null?!1:B[1]==="google"?
!0:B[2]==="google"?B[0]==="au"&&B[1]==="com"?!0:B[0]==="uk"&&B[1]==="co"?!0:!1:!1;B&&(n=_.JY(n)||"",n=n.split("/"),n="/"+(n.length>1?n[1]:""),B=n==="/pagead");n=B?!0:!1}n=!n}n||r&&l[R]!==void 0||f==="TVHTML5_UNPLUGGED"&&P||(l[R]=y)}"X-Goog-EOM-Visitor-Id"in l&&"X-Goog-Visitor-Id"in l&&delete l["X-Goog-Visitor-Id"];if(V||!_.lP(W))l["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(V||!_.lP(W)){try{var d=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(J){}d&&(l["X-YouTube-Time-Zone"]=
d)}document.location.hostname.endsWith("youtubeeducation.com")||!V&&_.lP(W)||(l["X-YouTube-Ad-Signals"]=jgn(VEz()));return l};
_.fAq=function(W,l){var V=_.lP(W);_.U("debug_handle_relative_url_for_query_forward_killswitch")||!V&&f7(W)&&(V=document.location.hostname);var f=_.JY(W);f=(V=V&&(V.endsWith("youtube.com")||V.endsWith("youtube-nocookie.com")))&&f&&f.startsWith("/api/");if(!V||f)return W;var r=_.hC(l),R={};_.q4(hMg,function(y){r[y]&&(R[y]=r[y])});
return iNF(W,R)};
rWj=function(W,l){l.method="POST";l.postParams||(l.postParams={});return _.Dj(W,l)};
Ruq=function(W,l){var V=_.M4("XSRF_FIELD_NAME"),f;l.headers&&(f=l.headers["Content-Type"]);return!l.excludeXsrf&&(!_.lP(W)||l.withCredentials||_.lP(W)===document.location.hostname)&&l.method==="POST"&&(!f||f==="application/x-www-form-urlencoded")&&!(l.postParams&&l.postParams[V])};
_.Dj=function(W,l){var V=l.format||"JSON";W=tEF(W,l);var f=ssY(W,l),r=!1,R=LLz(W,function(n){if(!r){r=!0;P&&_.dU(P);var B=_.qeg(n),d=null,J=400<=n.status&&n.status<500,D=500<=n.status&&n.status<600;if(B||J||D)d=yWJ(W,V,n,l.convertToSafeHtml);B&&(B=gHq(V,n,d));d=d||{};J=l.context||_.rS;B?l.onSuccess&&l.onSuccess.call(J,n,d):l.onError&&l.onError.call(J,n,d);l.onFinish&&l.onFinish.call(J,n,d)}},l.method,f,l.headers,l.responseType,l.withCredentials,!1,l.onProgress);
f=l.timeout||0;if(l.onTimeout&&f>0){var y=l.onTimeout;var P=_.cA(function(){r||(r=!0,R.abort(),_.dU(P),y.call(l.context||_.rS,R))},f)}return R};
tEF=function(W,l){l.includeDomain&&(W=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+W);var V=_.M4("XSRF_FIELD_NAME");if(l=l.urlParams)l[V]&&delete l[V],W=_.EJ(W,l);return W};
ssY=function(W,l){var V=_.M4("XSRF_FIELD_NAME"),f=_.M4("XSRF_TOKEN"),r=l.postBody||"",R=l.postParams;Ruq(W,l)&&(R||(R={}),R[V]=f);(_.U("ajax_parse_query_data_only_when_filled")&&R&&Object.keys(R).length>0||R)&&typeof r==="string"&&(r=_.hC(r),_.MC.extend(r,R),r=l.postBodyFormat&&l.postBodyFormat==="JSON"?JSON.stringify(r):_.U6(r));R=r||R&&!_.MC.isEmpty(R);!P_x&&R&&l.method!=="POST"&&(P_x=!0,_.OJ(Error("Kc")));return r};
yWJ=function(W,l,V,f){var r=null;switch(l){case "JSON":try{var R=V.responseText}catch(y){throw f=Error("Lc"),f.params=W,_.x2(f),y;}W=V.getResponseHeader("Content-Type")||"";R&&W.indexOf("json")>=0&&(R.substring(0,5)===")]}'\n"&&(R=R.substring(5)),r=JSON.parse(R));break;case "XML":if(W=(W=V.responseXML)?nHF(W):null)r={},_.q4(W.getElementsByTagName("*"),function(y){r[y.tagName]=C_4(y)})}f&&cWU(r);
return r};
cWU=function(W){if(_.ev(W))for(var l in W)l==="html_content"||Lq(l,"_html")?W[l]=EP(W[l]):cWU(W[l])};
gHq=function(W,l,V){if(l&&l.status===204)return!0;switch(W){case "JSON":return!!V;case "XML":return Number(V&&V.return_code)===0;case "RAW":return!0;default:return!!V}};
nHF=function(W){return W?(W=("responseXML"in W?W.responseXML:W).getElementsByTagName("root"))&&W.length>0?W[0]:null:null};
C_4=function(W){var l="";_.q4(W.childNodes,function(V){l+=V.nodeValue});
return l};
BJq=function(W){if(W.name==="JavaException")return!0;W=W.stack;return W.includes("chrome://")||W.includes("-extension://")||W.includes("webkit-masked-url://")};
ddj=function(W){if(!W.stack)return!0;var l=!W.stack.includes("\n");return l&&W.stack.includes("ErrorType: ")||l&&W.stack.includes("Anonymous function (Unknown script")||W.stack.toLowerCase()==="not available"||W.fileName==="user-script"||W.fileName.startsWith("user-script:")?!0:!1};
_.uP=function(W){_.iI.call(this);this.JSC$10516_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!W};
Ddj=function(W,l){var V=W.length,f=0,r=function(){return W.charCodeAt(f++)};
do{var R=JWg(r);if(R===Infinity)break;var y=R>>3;switch(R&7){case 0:R=JWg(r);if(y===l)return R;break;case 1:if(y===l)return;f+=8;break;case 2:R=JWg(r);if(y===l)return W.substr(f,R);f+=R;break;case 5:if(y===l)return;f+=4;break;default:return}}while(f<V)};
JWg=function(W){var l=W(),V=l&127;if(l<128)return V;l=W();V|=(l&127)<<7;if(l<128)return V;l=W();V|=(l&127)<<14;if(l<128)return V;l=W();return l<128?V|(l&127)<<21:Infinity};
uyg=function(W,l,V,f){if(W)if(Array.isArray(W)){var r=f;for(f=0;f<W.length&&!(W[f]&&(r+=UdY(f,W[f],l,V),r>500));f++);f=r}else if(typeof W==="object")for(r in W){if(W[r]){var R=r;var y=W[r],P=l,n=V;R=typeof y!=="string"||R!=="clickTrackingParams"&&R!=="trackingParams"?0:(y=Ddj(atob(y.replace(/-/g,"+").replace(/_/g,"/")),2))?UdY(R+".ve",y,P,n):0;f+=R;f+=UdY(r,W[r],l,V);if(f>500)break}}else V[l]=kY(W),f+=V[l].length;else V[l]=kY(W),f+=V[l].length;return f};
UdY=function(W,l,V,f){V+="."+W;W=kY(l);f[V]=W;return V.length+W.length};
kY=function(W){try{return(typeof W==="string"?W:String(JSON.stringify(W))).substr(0,500)}catch(l){return"unable to serialize "+typeof W+" ("+l.message+")"}};
kT6=function(W){switch(W){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}};
_.HA=function(W,l,V,f,r){_.vA.set(W,l,{maxAge:V,path:"/",domain:f===void 0?"youtube.com":f,secure:r===void 0?!1:r})};
_.vH6=function(W,l,V){_.vA.remove(W,l===void 0?"/":l,V===void 0?"youtube.com":V)};
_.K7=function(){if(_.U("embeds_web_enable_cookie_detection_fix")){if(!_.rS.navigator.cookieEnabled)return!1}else if(!_.vA.isEnabled())return!1;if(!_.vA.isEmpty())return!0;_.U("embeds_web_enable_cookie_detection_fix")?_.vA.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.vA.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.vA.get("TESTCOOKIESENABLED")!=="1")return!1;_.vA.remove("TESTCOOKIESENABLED");return!0};
H0x=function(){var W=_.rS.navigator;return W?W.connection:void 0};
KL8=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(W){}};
_.GTj=function(){var W=H0x();if(W){var l=FLv[W.type||"unknown"]||"CONN_UNKNOWN";W=FLv[W.effectiveType||"unknown"]||"CONN_UNKNOWN";l==="CONN_CELLULAR_UNKNOWN"&&W!=="CONN_UNKNOWN"&&(l=W);if(l!=="CONN_UNKNOWN")return l;if(W!=="CONN_UNKNOWN")return W}};
pyq=function(){var W=H0x();if(W!=null&&W.effectiveType)return b0F.hasOwnProperty(W.effectiveType)?b0F[W.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.G4=function(){try{return _.FP(),!0}catch(W){return!1}};
_.FP=function(W){if(_.M4("DATASYNC_ID")!==void 0)return _.M4("DATASYNC_ID");throw new _.bP("Datasync ID not set",W===void 0?"unknown":W);};
_.p7=function(W){this.mechanism=W};
o0=function(W){this.mechanism=W};
jF=function(W){this.storage_=W;this.cachedIsStorageAvailable_=null};
oH8=function(){var W=null;try{W=_.rS.localStorage||null}catch(l){}jF.call(this,W)};
js8=function(){var W=null;try{W=_.rS.sessionStorage||null}catch(l){}jF.call(this,W)};
I0=function(W,l){this.mechanism_=W;this.JSC$10618_prefix_=l+"::"};
_.IAn=function(W){var l=new oH8;return l.isAvailable()?W?new I0(l,W):l:null};
_.i06=function(W){var l=new js8;return l.isAvailable()?W?new I0(l,W):l:null};
Xyv=function(){var W;return(W=mdz())==null?void 0:W.get("LAST_RESULT_ENTRY_KEY",!0)};
_.XP=function(W){TJ6||(_.iP?_.iP.logError(W):(_.mS.push({type:"ERROR",payload:W}),_.mS.length>10&&_.mS.shift()))};
T4=function(W,l){TJ6||(_.iP?_.iP.logEvent(W,l):(_.mS.push({type:"EVENT",eventType:W,payload:l}),_.mS.length>10&&_.mS.shift()))};
wU=function(W){if(W.indexOf(":")>=0)throw Error("Sc");};
AY=function(W){return W.substr(0,W.indexOf(":"))||W};
Qsj=function(){return(wyn||AWn)&&QS("applewebkit")&&!QS("version")&&(!QS("safari")||QS("gsa/"))};
QS=function(W){var l=_.Uz();return l?l.toLowerCase().indexOf(W)>=0:!1};
O0x=function(W,l,V,f){l=AY(l);var r=W instanceof Error?W:Error("Tc`"+W);if(r instanceof Zj)return r;W={objectStoreNames:V,dbName:l,dbVersion:f};if(r.name==="QuotaExceededError")return new Zj("QUOTA_EXCEEDED",W);if(_.O6&&r.name==="UnknownError")return new Zj("QUOTA_MAYBE_EXCEEDED",W);if(r instanceof MEz)return new Zj("MISSING_INDEX",Object.assign({},W,{objectStore:r.objectStore,index:r.index}));if(r.name==="InvalidStateError"&&Z0z.some(function(R){return r.message.includes(R)}))return new Zj("EXECUTE_TRANSACTION_ON_CLOSED_DB",
W);
if(r.name==="AbortError")return new Zj("UNKNOWN_ABORT",W,r.message);r.args=[Object.assign({},W,{name:"IdbError",originalName:r.name})];r.level="WARNING";return r};
a0=function(W,l,V){var f=Xyv();return new Zj("IDB_NOT_SUPPORTED",{context:{caller:W,publicName:l,version:V,hasSucceededOnce:f==null?void 0:f.hasSucceededOnce}})};
aAz=function(W){if(!W)throw Error();throw W;};
zuF=function(W){return W};
NJx=function(W,l,V){var f=function(){try{W.removeEventListener("success",r),W.removeEventListener("error",R)}catch(y){}},r=function(){l(W.result);
f()},R=function(){V(W.error);
f()};
W.addEventListener("success",r);W.addEventListener("error",R)};
YKU=function(W){return new Promise(function(l,V){NJx(W,l,V)})};
YY=function(W){return new z4(new NL(function(l,V){NJx(W,l,V)}))};
xdn=function(W,l){return new z4(new NL(function(V,f){var r=function(){var R=W?l(W):null;R?R.then(function(y){W=y;r()},f):V()};
r()}))};
euz=function(W,l,V){return new Promise(function(f,r){var R=l!==void 0?self.indexedDB.open(W,l):self.indexedDB.open(W);var y=V.blocked,P=V.blocking,n=V.terminated,B=V.upgrade,d=V.closed,J,D=function(){J||(J=new xY(R.result,{closed:d}));return J};
R.addEventListener("upgradeneeded",function(u){try{if(u.newVersion===null)throw Error("Yc");if(R.transaction===null)throw Error("Zc");u.dataLoss&&u.dataLoss!=="none"&&T4("IDB_DATA_CORRUPTED",{reason:u.dataLossMessage||"unknown reason",dbName:AY(W)});var H=D(),p=new eF(R.transaction);B&&B(H,function(X){return u.oldVersion<X&&u.newVersion>=X},p);
p.done.catch(function(X){r(X)})}catch(X){r(X)}});
R.addEventListener("success",function(){var u=R.result;P&&u.addEventListener("versionchange",function(){P(D())});
u.addEventListener("close",function(){T4("IDB_UNEXPECTEDLY_CLOSED",{dbName:AY(W),dbVersion:u.version});n&&n()});
f(D())});
R.addEventListener("error",function(){r(R.error)});
y&&R.addEventListener("blocked",function(){y()})})};
qKz=function(W,l,V){V=V===void 0?{}:V;return euz(W,l,V)};
_.hY=function(W,l){l=l===void 0?{}:l;var V,f,r,R;return _.g(function(y){if(y.nextAddress==1)return _.HG(y,2),V=self.indexedDB.deleteDatabase(W),f=l,(r=f.blocked)&&V.addEventListener("blocked",function(){r()}),y.yield(YKU(V),4);
if(y.nextAddress!=2)return _.qL(y,0);R=_.pc(y);throw O0x(R,W,"",-1);})};
SKY=function(W,l){var V;return _.g(function(f){if(f.nextAddress==1)return f.yield(_.SF(huz,l),2);V=f.yieldResult;return f.return(_.E6(V,["databases"],{enableRetries:!0,mode:"readwrite"},function(r){var R=r.objectStore("databases");return R.get(W.actualName).then(function(y){if(y?W.actualName!==y.actualName||W.publicName!==y.publicName||W.userIdentifier!==y.userIdentifier:1)return R.put(W).then(function(){})})}))})};
_.$Y=function(W,l){var V;return _.g(function(f){if(f.nextAddress==1)return W?f.yield(_.SF(huz,l),2):f.return();V=f.yieldResult;return f.return(V.delete("databases",W))})};
_.EHn=function(W,l){var V,f;return _.g(function(r){return r.nextAddress==1?(V=[],r.yield(_.SF(huz,l),2)):r.nextAddress!=3?(f=r.yieldResult,r.yield(_.E6(f,["databases"],{enableRetries:!0,mode:"readonly"},function(R){V.length=0;return W2(R.objectStore("databases"),{},function(y){W(y.getValue())&&V.push(y.getValue());return y.continue()})}),3)):r.return(V)})};
$dz=function(W,l){return _.EHn(function(V){return V.publicName===W&&V.userIdentifier!==void 0},l)};
Vrj=function(){var W,l,V,f;return _.g(function(r){switch(r.nextAddress){case 1:W=Xyv();if((l=W)==null?0:l.hasSucceededOnce)return r.return(!0);var R;if(R=Wgz)R=/WebKit\/([0-9]+)/.exec(_.Uz()),R=!!(R&&parseInt(R[1],10)>=600);R&&(R=/WebKit\/([0-9]+)/.exec(_.Uz()),R=!(R&&parseInt(R[1],10)>=602));if(R||li)return r.return(!1);try{if(V=self,!(V.indexedDB&&V.IDBIndex&&V.IDBKeyRange&&V.IDBObjectStore))return r.return(!1)}catch(y){return r.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return r.return(!1);
_.HG(r,2);f={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return r.yield(SKY(f,lJz),4);case 4:return r.yield(_.$Y("yt-idb-test-do-not-use",lJz),5);case 5:return r.return(!0);case 2:return _.pc(r),r.return(!1)}})};
r5F=function(){if(fJv!==void 0)return fJv;TJ6=!0;return fJv=Vrj().then(function(W){TJ6=!1;var l;if((l=mdz())!=null&&l.expiringStorage_){var V;l={hasSucceededOnce:((V=Xyv())==null?void 0:V.hasSucceededOnce)||W};var f;(f=mdz())==null||f.set("LAST_RESULT_ENTRY_KEY",l,2592E3,!0)}return W})};
Vy=function(){return _.Y2("ytglobal.idbToken_")||void 0};
_.r8=function(){var W=Vy();return W?Promise.resolve(W):r5F().then(function(l){(l=l?lJz:void 0)&&_.fR("ytglobal.idbToken_",l);return l})};
RsF=function(W){if(!_.G4())throw W=new Zj("AUTH_INVALID",{dbName:W}),_.XP(W),W;var l=_.FP();return{actualName:W+":"+l,publicName:W,userIdentifier:l}};
trY=function(W,l,V,f){var r,R,y,P,n,B;return _.g(function(d){switch(d.nextAddress){case 1:return R=(r=Error().stack)!=null?r:"",d.yield(_.r8(),2);case 2:y=d.yieldResult;if(!y)throw P=a0("openDbImpl",W,l),_.U("ytidb_async_stack_killswitch")||(P.stack=P.stack+"\n"+R.substring(R.indexOf("\n")+1)),_.XP(P),P;wU(W);n=V?{actualName:W,publicName:W,userIdentifier:void 0}:RsF(W);_.HG(d,3);return d.yield(SKY(n,y),5);case 5:return d.yield(qKz(n.actualName,l,f),6);case 6:return d.return(d.yieldResult);case 3:return B=
_.pc(d),_.HG(d,7),d.yield(_.$Y(n.actualName,y),9);case 9:_.qL(d,8);break;case 7:_.pc(d);case 8:throw B;}})};
sDx=function(W,l,V){V=V===void 0?{}:V;return trY(W,l,!1,V)};
Lgz=function(W,l,V){V=V===void 0?{}:V;return trY(W,l,!0,V)};
y5q=function(W,l){l=l===void 0?{}:l;var V,f;return _.g(function(r){if(r.nextAddress==1)return r.yield(_.r8(),2);if(r.nextAddress!=3){V=r.yieldResult;if(!V)return r.return();wU(W);f=RsF(W);return r.yield(_.hY(f.actualName,l),3)}return r.yield(_.$Y(f.actualName,V),0)})};
gVn=function(W,l,V){W=W.map(function(f){return _.g(function(r){return r.nextAddress==1?r.yield(_.hY(f.actualName,l),2):r.yield(_.$Y(f.actualName,V),0)})});
return Promise.all(W).then(function(){})};
P0q=function(W){var l=l===void 0?{}:l;var V,f;return _.g(function(r){if(r.nextAddress==1)return r.yield(_.r8(),2);if(r.nextAddress!=3){V=r.yieldResult;if(!V)return r.return();wU(W);return r.yield($dz(W,V),3)}f=r.yieldResult;return r.yield(gVn(f,l,V),0)})};
nVS=function(W,l){l=l===void 0?{}:l;var V;return _.g(function(f){if(f.nextAddress==1)return f.yield(_.r8(),2);if(f.nextAddress!=3){V=f.yieldResult;if(!V)return f.return();wU(W);return f.yield(_.hY(W,l),3)}return f.yield(_.$Y(W,V),0)})};
Rl=function(W,l){return C0F(W,l)};
BE6=function(W){return _.SF(c58(),W)};
d$j=function(W,l,V,f){var r,R,y;return _.g(function(P){switch(P.nextAddress){case 1:return r={config:W,hashData:l,timestamp:f!==void 0?f:(0,_.tv)()},P.yield(BE6(V),2);case 2:return R=P.yieldResult,P.yield(R.clear("hotConfigStore"),3);case 3:return P.yield(R.put("hotConfigStore",r),4);case 4:return y=P.yieldResult,P.return(y)}})};
J56=function(W,l,V,f,r){var R,y,P;return _.g(function(n){switch(n.nextAddress){case 1:return R={config:W,hashData:l,configData:V,timestamp:r!==void 0?r:(0,_.tv)()},n.yield(BE6(f),2);case 2:return y=n.yieldResult,n.yield(y.clear("coldConfigStore"),3);case 3:return n.yield(y.put("coldConfigStore",R),4);case 4:return P=n.yieldResult,n.return(P)}})};
D$S=function(W){var l,V;return _.g(function(f){return f.nextAddress==1?f.yield(BE6(W),2):f.nextAddress!=3?(l=f.yieldResult,V=void 0,f.yield(_.E6(l,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(r){return _.sw(r.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(R){V=R.getValue()})}),3)):f.return(V)})};
U$v=function(W){var l,V;return _.g(function(f){return f.nextAddress==1?f.yield(BE6(W),2):f.nextAddress!=3?(l=f.yieldResult,V=void 0,f.yield(_.E6(l,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(r){return _.sw(r.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(R){V=R.getValue()})}),3)):f.return(V)})};
u28=function(){return _.g(function(W){return W.yield(P0q("ytGcfConfig"),0)})};
kLY=function(){return"INNERTUBE_API_KEY"in _.AC&&"INNERTUBE_API_VERSION"in _.AC};
_.LR=function(){return{innertubeApiKey:_.M4("INNERTUBE_API_KEY"),innertubeApiVersion:_.M4("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.M4("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.M4("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.M4("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.M4("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.M4("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.M4("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.M4("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.ZL("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.ZL("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.M4("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.plg=function(W){var l={client:{hl:W.innertubeContextHostLanguage,gl:W.innertubeContextGeoLocation,clientName:W.innertubeContextClientName,clientVersion:W.innertubeContextClientVersion,configInfo:W.innertubeContextClientConfigInfo}};navigator.userAgent&&(l.client.userAgent=String(navigator.userAgent));var V=_.rS.devicePixelRatio;V&&V!=1&&(l.client.screenDensityFloat=String(V));V=Ngz();V!==""&&(l.client.experimentsToken=V);V=Yex();V.length>0&&(l.request={internalExperimentFlags:V});vVz(W,void 0,l);
HaF(void 0,l);KgF(void 0,l);Fg6(W,void 0,l);GLq(void 0,l);_.U("start_client_gcf")&&baj(void 0,l);_.M4("DELEGATED_SESSION_ID")&&!_.U("pageid_as_header_web")&&(l.user={onBehalfOfUser:_.M4("DELEGATED_SESSION_ID")});!_.U("fill_delegate_context_in_gel_killswitch")&&(W=_.M4("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(l.user=Object.assign({},l.user,{serializedDelegationContext:W}));W=_.M4("INNERTUBE_CONTEXT");var f;if(_.U("enable_persistent_device_token")&&(W==null?0:(f=W.client)==null?0:f.rolloutToken)){var r;
l.client.rolloutToken=W==null?void 0:(r=W.client)==null?void 0:r.rolloutToken}f=Object;r=f.assign;W=l.client;V={};for(var R=_.L(Object.entries(_.hC(_.M4("DEVICE","")))),y=R.next();!y.done;y=R.next()){var P=_.L(y.value);y=P.next().value;P=P.next().value;y==="cbrand"?V.deviceMake=P:y==="cmodel"?V.deviceModel=P:y==="cbr"?V.browserName=P:y==="cbrver"?V.browserVersion=P:y==="cos"?V.osName=P:y==="cosver"?V.osVersion=P:y==="cplatform"&&(V.platform=P)}l.client=r.call(f,W,V);return l};
vVz=function(W,l,V){W=W.innertubeContextClientName;if(W==="WEB"||W==="MWEB"||W===1||W===2)if(l){V=_.yy(l,oVz,96)||new oVz;var f=jDz();f=Object.keys(IJv).indexOf(f);f=f===-1?null:f;f!==null&&_.g8(V,3,f);_.b7(l,96,V)}else V&&(V.client.mainAppWebInfo=(f=V.client.mainAppWebInfo)!=null?f:{},V.client.mainAppWebInfo.webDisplayMode=jDz())};
HaF=function(W,l){var V=_.Y2("yt.embedded_player.embed_url");V&&(W?(l=_.yy(W,iaS,7)||new iaS,_.mY(l,4,V),_.b7(W,7,l)):l&&(l.thirdParty={embedUrl:V}))};
KgF=function(W,l){var V;if(_.U("web_log_memory_total_kbytes")&&((V=_.rS.navigator)==null?0:V.deviceMemory)){var f;V=(f=_.rS.navigator)==null?void 0:f.deviceMemory;W?_.P2(W,95,Pe(V*1E6)):l&&(l.client.memoryTotalKbytes=""+V*1E6)}};
Fg6=function(W,l,V){if(W.appInstallData)if(l){var f;V=(f=_.yy(l,nR,62))!=null?f:new nR;_.mY(V,6,W.appInstallData);_.b7(l,62,V)}else V&&(V.client.configInfo=V.client.configInfo||{},V.client.configInfo.appInstallData=W.appInstallData)};
GLq=function(W,l){var V=_.GTj();V&&(W?_.g8(W,61,m$j[V]):l&&(l.client.connectionType=V));_.U("web_log_effective_connection_type")&&(V=pyq())&&(W?_.g8(W,94,Xlz[V]):l&&(l.client.effectiveConnectionType=V))};
_.A5F=function(W,l,V){V=V===void 0?{}:V;var f={};_.M4("EOM_VISITOR_DATA")?f={"X-Goog-EOM-Visitor-Id":_.M4("EOM_VISITOR_DATA")}:f={"X-Goog-Visitor-Id":V.visitorData||_.M4("VISITOR_DATA","")};if(l&&l.includes("www.youtube-nocookie.com"))return f;l=V.authorization||_.M4("AUTHORIZATION");l||(W?l="Bearer "+_.Y2("gapi.auth.getToken")().access_token:(TEz.instance||(TEz.instance=new TEz),W=wlJ(),_.U("pageid_as_header_web")||delete W["X-Goog-PageId"],f=Object.assign({},f,W)));l&&(f.Authorization=l);return f};
baj=function(W,l){var V=QDj();if(V){var f=V.coldConfigData,r=V.coldHashData;V=V.hotHashData;if(W){var R;l=(R=_.yy(W,nR,62))!=null?R:new nR;f=_.mY(l,1,f);_.mY(f,3,r).setHotHashData(V);_.b7(W,62,l)}else l&&(l.client.configInfo=l.client.configInfo||{},f&&(l.client.configInfo.coldConfigData=f),r&&(l.client.configInfo.coldHashData=r),V&&(l.client.configInfo.hotHashData=V))}};
CR=function(W){for(var l=W.length;--l>=0;)W[l]=0};
Mrg=function(W,l,V,f,r){this.static_tree=W;this.extra_bits=l;this.extra_base=V;this.elems=f;this.max_length=r;this.has_stree=W&&W.length};
ZaS=function(W,l){this.dyn_tree=W;this.max_code=0;this.stat_desc=l};
c2=function(W,l){W.pending_buf[W.pending++]=l&255;W.pending_buf[W.pending++]=l>>>8&255};
B2=function(W,l,V){W.bi_valid>16-V?(W.bi_buf|=l<<W.bi_valid&65535,c2(W,W.bi_buf),W.bi_buf=l>>16-W.bi_valid,W.bi_valid+=V-16):(W.bi_buf|=l<<W.bi_valid&65535,W.bi_valid+=V)};
d8=function(W,l,V){B2(W,V[l*2],V[l*2+1])};
Oaq=function(W,l){var V=0;do V|=W&1,W>>>=1,V<<=1;while(--l>0);return V>>>1};
aJz=function(W,l,V){var f=Array(16),r=0,R;for(R=1;R<=15;R++)f[R]=r=r+V[R-1]<<1;for(V=0;V<=l;V++)r=W[V*2+1],r!==0&&(W[V*2]=Oaq(f[r]++,r))};
zs4=function(W){var l;for(l=0;l<286;l++)W.dyn_ltree[l*2]=0;for(l=0;l<30;l++)W.dyn_dtree[l*2]=0;for(l=0;l<19;l++)W.bl_tree[l*2]=0;W.dyn_ltree[512]=1;W.opt_len=W.static_len=0;W.last_lit=W.matches=0};
NES=function(W){W.bi_valid>8?c2(W,W.bi_buf):W.bi_valid>0&&(W.pending_buf[W.pending++]=W.bi_buf);W.bi_buf=0;W.bi_valid=0};
YmY=function(W,l,V){NES(W);c2(W,V);c2(W,~V);Jv.arraySet(W.pending_buf,W.window,l,V,W.pending);W.pending+=V};
x$8=function(W,l,V,f){var r=l*2,R=V*2;return W[r]<W[R]||W[r]===W[R]&&f[l]<=f[V]};
esU=function(W,l,V){for(var f=W.heap[V],r=V<<1;r<=W.heap_len;){r<W.heap_len&&x$8(l,W.heap[r+1],W.heap[r],W.depth)&&r++;if(x$8(l,f,W.heap[r],W.depth))break;W.heap[V]=W.heap[r];V=r;r<<=1}W.heap[V]=f};
$$z=function(W,l,V){var f=0;if(W.last_lit!==0){do{var r=W.pending_buf[W.d_buf+f*2]<<8|W.pending_buf[W.d_buf+f*2+1];var R=W.pending_buf[W.l_buf+f];f++;if(r===0)d8(W,R,l);else{var y=Ds[R];d8(W,y+256+1,l);var P=qmU[y];P!==0&&(R-=hsz[y],B2(W,R,P));r--;y=r<256?Uw[r]:Uw[256+(r>>>7)];d8(W,y,V);P=SmJ[y];P!==0&&(r-=EV6[y],B2(W,r,P))}}while(f<W.last_lit)}d8(W,256,l)};
Wz6=function(W,l){var V=l.dyn_tree,f=l.stat_desc.static_tree,r=l.stat_desc.has_stree,R=l.stat_desc.elems,y,P=-1;W.heap_len=0;W.heap_max=573;for(y=0;y<R;y++)V[y*2]!==0?(W.heap[++W.heap_len]=P=y,W.depth[y]=0):V[y*2+1]=0;for(;W.heap_len<2;){var n=W.heap[++W.heap_len]=P<2?++P:0;V[n*2]=1;W.depth[n]=0;W.opt_len--;r&&(W.static_len-=f[n*2+1])}l.max_code=P;for(y=W.heap_len>>1;y>=1;y--)esU(W,V,y);n=R;do y=W.heap[1],W.heap[1]=W.heap[W.heap_len--],esU(W,V,1),f=W.heap[1],W.heap[--W.heap_max]=y,W.heap[--W.heap_max]=
f,V[n*2]=V[y*2]+V[f*2],W.depth[n]=(W.depth[y]>=W.depth[f]?W.depth[y]:W.depth[f])+1,V[y*2+1]=V[f*2+1]=n,W.heap[1]=n++,esU(W,V,1);while(W.heap_len>=2);W.heap[--W.heap_max]=W.heap[1];y=l.dyn_tree;n=l.max_code;f=l.stat_desc.static_tree;r=l.stat_desc.has_stree;R=l.stat_desc.extra_bits;var B=l.stat_desc.extra_base,d=l.stat_desc.max_length,J,D=0;for(J=0;J<=15;J++)W.bl_count[J]=0;y[W.heap[W.heap_max]*2+1]=0;for(l=W.heap_max+1;l<573;l++){var u=W.heap[l];J=y[y[u*2+1]*2+1]+1;J>d&&(J=d,D++);y[u*2+1]=J;if(!(u>
n)){W.bl_count[J]++;var H=0;u>=B&&(H=R[u-B]);var p=y[u*2];W.opt_len+=p*(J+H);r&&(W.static_len+=p*(f[u*2+1]+H))}}if(D!==0){do{for(J=d-1;W.bl_count[J]===0;)J--;W.bl_count[J]--;W.bl_count[J+1]+=2;W.bl_count[d]--;D-=2}while(D>0);for(J=d;J!==0;J--)for(u=W.bl_count[J];u!==0;)f=W.heap[--l],f>n||(y[f*2+1]!==J&&(W.opt_len+=(J-y[f*2+1])*y[f*2],y[f*2+1]=J),u--)}aJz(V,P,W.bl_count)};
lrz=function(W,l,V){var f,r=-1,R=l[1],y=0,P=7,n=4;R===0&&(P=138,n=3);l[(V+1)*2+1]=65535;for(f=0;f<=V;f++){var B=R;R=l[(f+1)*2+1];++y<P&&B===R||(y<n?W.bl_tree[B*2]+=y:B!==0?(B!==r&&W.bl_tree[B*2]++,W.bl_tree[32]++):y<=10?W.bl_tree[34]++:W.bl_tree[36]++,y=0,r=B,R===0?(P=138,n=3):B===R?(P=6,n=3):(P=7,n=4))}};
V3U=function(W,l,V){var f,r=-1,R=l[1],y=0,P=7,n=4;R===0&&(P=138,n=3);for(f=0;f<=V;f++){var B=R;R=l[(f+1)*2+1];if(!(++y<P&&B===R)){if(y<n){do d8(W,B,W.bl_tree);while(--y!==0)}else B!==0?(B!==r&&(d8(W,B,W.bl_tree),y--),d8(W,16,W.bl_tree),B2(W,y-3,2)):y<=10?(d8(W,17,W.bl_tree),B2(W,y-3,3)):(d8(W,18,W.bl_tree),B2(W,y-11,7));y=0;r=B;R===0?(P=138,n=3):B===R?(P=6,n=3):(P=7,n=4)}}};
frY=function(W){var l=4093624447,V;for(V=0;V<=31;V++,l>>>=1)if(l&1&&W.dyn_ltree[V*2]!==0)return 0;if(W.dyn_ltree[18]!==0||W.dyn_ltree[20]!==0||W.dyn_ltree[26]!==0)return 1;for(V=32;V<256;V++)if(W.dyn_ltree[V*2]!==0)return 1;return 0};
ui=function(W,l,V){W.pending_buf[W.d_buf+W.last_lit*2]=l>>>8&255;W.pending_buf[W.d_buf+W.last_lit*2+1]=l&255;W.pending_buf[W.l_buf+W.last_lit]=V&255;W.last_lit++;l===0?W.dyn_ltree[V*2]++:(W.matches++,l--,W.dyn_ltree[(Ds[V]+256+1)*2]++,W.dyn_dtree[(l<256?Uw[l]:Uw[256+(l>>>7)])*2]++);return W.last_lit===W.lit_bufsize-1};
v2=function(W,l){W.msg=ks[l];return l};
H2=function(W){for(var l=W.length;--l>=0;)W[l]=0};
KR=function(W){var l=W.state,V=l.pending;V>W.avail_out&&(V=W.avail_out);V!==0&&(Jv.arraySet(W.output,l.pending_buf,l.pending_out,V,W.next_out),W.next_out+=V,l.pending_out+=V,W.total_out+=V,W.avail_out-=V,l.pending-=V,l.pending===0&&(l.pending_out=0))};
bi=function(W,l){var V=W.block_start>=0?W.block_start:-1,f=W.strstart-W.block_start,r=0;if(W.level>0){W.strm.data_type===2&&(W.strm.data_type=frY(W));Wz6(W,W.l_desc);Wz6(W,W.d_desc);lrz(W,W.dyn_ltree,W.l_desc.max_code);lrz(W,W.dyn_dtree,W.d_desc.max_code);Wz6(W,W.bl_desc);for(r=18;r>=3&&W.bl_tree[rav[r]*2+1]===0;r--);W.opt_len+=3*(r+1)+5+5+4;var R=W.opt_len+3+7>>>3;var y=W.static_len+3+7>>>3;y<=R&&(R=y)}else R=y=f+5;if(f+4<=R&&V!==-1)B2(W,l?1:0,3),YmY(W,V,f);else if(W.strategy===4||y===R)B2(W,2+(l?
1:0),3),$$z(W,FR,Gd);else{B2(W,4+(l?1:0),3);V=W.l_desc.max_code+1;f=W.d_desc.max_code+1;r+=1;B2(W,V-257,5);B2(W,f-1,5);B2(W,r-4,4);for(R=0;R<r;R++)B2(W,W.bl_tree[rav[R]*2+1],3);V3U(W,W.dyn_ltree,V-1);V3U(W,W.dyn_dtree,f-1);$$z(W,W.dyn_ltree,W.dyn_dtree)}zs4(W);l&&NES(W);W.block_start=W.strstart;KR(W.strm)};
pR=function(W,l){W.pending_buf[W.pending++]=l};
ol=function(W,l){W.pending_buf[W.pending++]=l>>>8&255;W.pending_buf[W.pending++]=l&255};
Roj=function(W,l){var V=W.max_chain_length,f=W.strstart,r=W.prev_length,R=W.nice_match,y=W.strstart>W.w_size-262?W.strstart-(W.w_size-262):0,P=W.window,n=W.w_mask,B=W.prev,d=W.strstart+258,J=P[f+r-1],D=P[f+r];W.prev_length>=W.good_match&&(V>>=2);R>W.lookahead&&(R=W.lookahead);do{var u=l;if(P[u+r]===D&&P[u+r-1]===J&&P[u]===P[f]&&P[++u]===P[f+1]){f+=2;for(u++;P[++f]===P[++u]&&P[++f]===P[++u]&&P[++f]===P[++u]&&P[++f]===P[++u]&&P[++f]===P[++u]&&P[++f]===P[++u]&&P[++f]===P[++u]&&P[++f]===P[++u]&&f<d;);
u=258-(d-f);f=d-258;if(u>r){W.match_start=l;r=u;if(u>=R)break;J=P[f+r-1];D=P[f+r]}}}while((l=B[l&n])>y&&--V!==0);return r<=W.lookahead?r:W.lookahead};
Il=function(W){var l=W.w_size,V;do{var f=W.window_size-W.lookahead-W.strstart;if(W.strstart>=l+(l-262)){Jv.arraySet(W.window,W.window,l,l,0);W.match_start-=l;W.strstart-=l;W.block_start-=l;var r=V=W.hash_size;do{var R=W.head[--r];W.head[r]=R>=l?R-l:0}while(--V);r=V=l;do R=W.prev[--r],W.prev[r]=R>=l?R-l:0;while(--V);f+=l}if(W.strm.avail_in===0)break;r=W.strm;V=W.window;R=W.strstart+W.lookahead;var y=r.avail_in;y>f&&(y=f);y===0?V=0:(r.avail_in-=y,Jv.arraySet(V,r.input,r.next_in,y,R),r.state.wrap===
1?r.adler=t3Y(r.adler,V,y,R):r.state.wrap===2&&(r.adler=jS(r.adler,V,y,R)),r.next_in+=y,r.total_in+=y,V=y);W.lookahead+=V;if(W.lookahead+W.insert>=3)for(f=W.strstart-W.insert,W.ins_h=W.window[f],W.ins_h=(W.ins_h<<W.hash_shift^W.window[f+1])&W.hash_mask;W.insert&&!(W.ins_h=(W.ins_h<<W.hash_shift^W.window[f+3-1])&W.hash_mask,W.prev[f&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=f,f++,W.insert--,W.lookahead+W.insert<3););}while(W.lookahead<262&&W.strm.avail_in!==0)};
s1S=function(W,l){for(var V;;){if(W.lookahead<262){Il(W);if(W.lookahead<262&&l===0)return 1;if(W.lookahead===0)break}V=0;W.lookahead>=3&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,V=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);V!==0&&W.strstart-V<=W.w_size-262&&(W.match_length=Roj(W,V));if(W.match_length>=3)if(V=ui(W,W.strstart-W.match_start,W.match_length-3),W.lookahead-=W.match_length,W.match_length<=W.max_lazy_match&&W.lookahead>=3){W.match_length--;
do W.strstart++,W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart;while(--W.match_length!==0);W.strstart++}else W.strstart+=W.match_length,W.match_length=0,W.ins_h=W.window[W.strstart],W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+1])&W.hash_mask;else V=ui(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++;if(V&&(bi(W,!1),W.strm.avail_out===0))return 1}W.insert=W.strstart<2?W.strstart:2;return l===4?(bi(W,
!0),W.strm.avail_out===0?3:4):W.last_lit&&(bi(W,!1),W.strm.avail_out===0)?1:2};
ii=function(W,l){for(var V,f;;){if(W.lookahead<262){Il(W);if(W.lookahead<262&&l===0)return 1;if(W.lookahead===0)break}V=0;W.lookahead>=3&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,V=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);W.prev_length=W.match_length;W.prev_match=W.match_start;W.match_length=2;V!==0&&W.prev_length<W.max_lazy_match&&W.strstart-V<=W.w_size-262&&(W.match_length=Roj(W,V),W.match_length<=5&&(W.strategy===1||W.match_length===3&&
W.strstart-W.match_start>4096)&&(W.match_length=2));if(W.prev_length>=3&&W.match_length<=W.prev_length){f=W.strstart+W.lookahead-3;V=ui(W,W.strstart-1-W.prev_match,W.prev_length-3);W.lookahead-=W.prev_length-1;W.prev_length-=2;do++W.strstart<=f&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);while(--W.prev_length!==0);W.match_available=0;W.match_length=2;W.strstart++;if(V&&(bi(W,!1),W.strm.avail_out===0))return 1}else if(W.match_available){if((V=
ui(W,0,W.window[W.strstart-1]))&&bi(W,!1),W.strstart++,W.lookahead--,W.strm.avail_out===0)return 1}else W.match_available=1,W.strstart++,W.lookahead--}W.match_available&&(ui(W,0,W.window[W.strstart-1]),W.match_available=0);W.insert=W.strstart<2?W.strstart:2;return l===4?(bi(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(bi(W,!1),W.strm.avail_out===0)?1:2};
Lzg=function(W,l){for(var V,f,r,R=W.window;;){if(W.lookahead<=258){Il(W);if(W.lookahead<=258&&l===0)return 1;if(W.lookahead===0)break}W.match_length=0;if(W.lookahead>=3&&W.strstart>0&&(f=W.strstart-1,V=R[f],V===R[++f]&&V===R[++f]&&V===R[++f])){for(r=W.strstart+258;V===R[++f]&&V===R[++f]&&V===R[++f]&&V===R[++f]&&V===R[++f]&&V===R[++f]&&V===R[++f]&&V===R[++f]&&f<r;);W.match_length=258-(r-f);W.match_length>W.lookahead&&(W.match_length=W.lookahead)}W.match_length>=3?(V=ui(W,1,W.match_length-3),W.lookahead-=
W.match_length,W.strstart+=W.match_length,W.match_length=0):(V=ui(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++);if(V&&(bi(W,!1),W.strm.avail_out===0))return 1}W.insert=0;return l===4?(bi(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(bi(W,!1),W.strm.avail_out===0)?1:2};
yaU=function(W,l){for(var V;;){if(W.lookahead===0&&(Il(W),W.lookahead===0)){if(l===0)return 1;break}W.match_length=0;V=ui(W,0,W.window[W.strstart]);W.lookahead--;W.strstart++;if(V&&(bi(W,!1),W.strm.avail_out===0))return 1}W.insert=0;return l===4?(bi(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(bi(W,!1),W.strm.avail_out===0)?1:2};
mu=function(W,l,V,f,r){this.good_length=W;this.max_lazy=l;this.nice_length=V;this.max_chain=f;this.func=r};
g7F=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 Jv.Buf16(1146);this.dyn_dtree=new Jv.Buf16(122);this.bl_tree=new Jv.Buf16(78);H2(this.dyn_ltree);H2(this.dyn_dtree);H2(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Jv.Buf16(16);this.heap=new Jv.Buf16(573);H2(this.heap);this.heap_max=this.heap_len=0;this.depth=new Jv.Buf16(573);H2(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};
Pmv=function(W,l){if(!W||!W.state||l>5||l<0)return W?v2(W,-2):-2;var V=W.state;if(!W.output||!W.input&&W.avail_in!==0||V.status===666&&l!==4)return v2(W,W.avail_out===0?-5:-2);V.strm=W;var f=V.last_flush;V.last_flush=l;if(V.status===42)if(V.wrap===2)W.adler=0,pR(V,31),pR(V,139),pR(V,8),V.gzhead?(pR(V,(V.gzhead.text?1:0)+(V.gzhead.hcrc?2:0)+(V.gzhead.extra?4:0)+(V.gzhead.name?8:0)+(V.gzhead.comment?16:0)),pR(V,V.gzhead.time&255),pR(V,V.gzhead.time>>8&255),pR(V,V.gzhead.time>>16&255),pR(V,V.gzhead.time>>
24&255),pR(V,V.level===9?2:V.strategy>=2||V.level<2?4:0),pR(V,V.gzhead.os&255),V.gzhead.extra&&V.gzhead.extra.length&&(pR(V,V.gzhead.extra.length&255),pR(V,V.gzhead.extra.length>>8&255)),V.gzhead.hcrc&&(W.adler=jS(W.adler,V.pending_buf,V.pending,0)),V.gzindex=0,V.status=69):(pR(V,0),pR(V,0),pR(V,0),pR(V,0),pR(V,0),pR(V,V.level===9?2:V.strategy>=2||V.level<2?4:0),pR(V,3),V.status=113);else{var r=8+(V.w_bits-8<<4)<<8;r|=(V.strategy>=2||V.level<2?0:V.level<6?1:V.level===6?2:3)<<6;V.strstart!==0&&(r|=
32);V.status=113;ol(V,r+(31-r%31));V.strstart!==0&&(ol(V,W.adler>>>16),ol(V,W.adler&65535));W.adler=1}if(V.status===69)if(V.gzhead.extra){for(r=V.pending;V.gzindex<(V.gzhead.extra.length&65535)&&(V.pending!==V.pending_buf_size||(V.gzhead.hcrc&&V.pending>r&&(W.adler=jS(W.adler,V.pending_buf,V.pending-r,r)),KR(W),r=V.pending,V.pending!==V.pending_buf_size));)pR(V,V.gzhead.extra[V.gzindex]&255),V.gzindex++;V.gzhead.hcrc&&V.pending>r&&(W.adler=jS(W.adler,V.pending_buf,V.pending-r,r));V.gzindex===V.gzhead.extra.length&&
(V.gzindex=0,V.status=73)}else V.status=73;if(V.status===73)if(V.gzhead.name){r=V.pending;do{if(V.pending===V.pending_buf_size&&(V.gzhead.hcrc&&V.pending>r&&(W.adler=jS(W.adler,V.pending_buf,V.pending-r,r)),KR(W),r=V.pending,V.pending===V.pending_buf_size)){var R=1;break}R=V.gzindex<V.gzhead.name.length?V.gzhead.name.charCodeAt(V.gzindex++)&255:0;pR(V,R)}while(R!==0);V.gzhead.hcrc&&V.pending>r&&(W.adler=jS(W.adler,V.pending_buf,V.pending-r,r));R===0&&(V.gzindex=0,V.status=91)}else V.status=91;if(V.status===
91)if(V.gzhead.comment){r=V.pending;do{if(V.pending===V.pending_buf_size&&(V.gzhead.hcrc&&V.pending>r&&(W.adler=jS(W.adler,V.pending_buf,V.pending-r,r)),KR(W),r=V.pending,V.pending===V.pending_buf_size)){R=1;break}R=V.gzindex<V.gzhead.comment.length?V.gzhead.comment.charCodeAt(V.gzindex++)&255:0;pR(V,R)}while(R!==0);V.gzhead.hcrc&&V.pending>r&&(W.adler=jS(W.adler,V.pending_buf,V.pending-r,r));R===0&&(V.status=103)}else V.status=103;V.status===103&&(V.gzhead.hcrc?(V.pending+2>V.pending_buf_size&&KR(W),
V.pending+2<=V.pending_buf_size&&(pR(V,W.adler&255),pR(V,W.adler>>8&255),W.adler=0,V.status=113)):V.status=113);if(V.pending!==0){if(KR(W),W.avail_out===0)return V.last_flush=-1,0}else if(W.avail_in===0&&(l<<1)-(l>4?9:0)<=(f<<1)-(f>4?9:0)&&l!==4)return v2(W,-5);if(V.status===666&&W.avail_in!==0)return v2(W,-5);if(W.avail_in!==0||V.lookahead!==0||l!==0&&V.status!==666){f=V.strategy===2?yaU(V,l):V.strategy===3?Lzg(V,l):Td[V.level].func(V,l);if(f===3||f===4)V.status=666;if(f===1||f===3)return W.avail_out===
0&&(V.last_flush=-1),0;if(f===2&&(l===1?(B2(V,2,3),d8(V,256,FR),V.bi_valid===16?(c2(V,V.bi_buf),V.bi_buf=0,V.bi_valid=0):V.bi_valid>=8&&(V.pending_buf[V.pending++]=V.bi_buf&255,V.bi_buf>>=8,V.bi_valid-=8)):l!==5&&(B2(V,0,3),YmY(V,0,0),l===3&&(H2(V.head),V.lookahead===0&&(V.strstart=0,V.block_start=0,V.insert=0))),KR(W),W.avail_out===0))return V.last_flush=-1,0}if(l!==4)return 0;if(V.wrap<=0)return 1;V.wrap===2?(pR(V,W.adler&255),pR(V,W.adler>>8&255),pR(V,W.adler>>16&255),pR(V,W.adler>>24&255),pR(V,
W.total_in&255),pR(V,W.total_in>>8&255),pR(V,W.total_in>>16&255),pR(V,W.total_in>>24&255)):(ol(V,W.adler>>>16),ol(V,W.adler&65535));KR(W);V.wrap>0&&(V.wrap=-V.wrap);return V.pending!==0?0:1};
n7j=function(W){if(!(this instanceof n7j))return new n7j(W);W=this.options=Jv.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},W||{});W.raw&&W.windowBits>0?W.windowBits=-W.windowBits:W.gzip&&W.windowBits>0&&W.windowBits<16&&(W.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new Cmg;this.strm.avail_out=0;var l=this.strm;var V=W.level,f=W.method,r=W.windowBits,R=W.memLevel,y=W.strategy;if(l){var P=1;V===-1&&(V=6);r<0?(P=0,r=-r):r>15&&
(P=2,r-=16);if(R<1||R>9||f!==8||r<8||r>15||V<0||V>9||y<0||y>4)l=v2(l,-2);else{r===8&&(r=9);var n=new g7F;l.state=n;n.strm=l;n.wrap=P;n.gzhead=null;n.w_bits=r;n.w_size=1<<n.w_bits;n.w_mask=n.w_size-1;n.hash_bits=R+7;n.hash_size=1<<n.hash_bits;n.hash_mask=n.hash_size-1;n.hash_shift=~~((n.hash_bits+3-1)/3);n.window=new Jv.Buf8(n.w_size*2);n.head=new Jv.Buf16(n.hash_size);n.prev=new Jv.Buf16(n.w_size);n.lit_bufsize=1<<R+6;n.pending_buf_size=n.lit_bufsize*4;n.pending_buf=new Jv.Buf8(n.pending_buf_size);
n.d_buf=n.lit_bufsize;n.l_buf=3*n.lit_bufsize;n.level=V;n.strategy=y;n.method=f;if(l&&l.state){l.total_in=l.total_out=0;l.data_type=2;V=l.state;V.pending=0;V.pending_out=0;V.wrap<0&&(V.wrap=-V.wrap);V.status=V.wrap?42:113;l.adler=V.wrap===2?0:1;V.last_flush=0;if(!caq){f=Array(16);for(R=y=0;R<28;R++)for(hsz[R]=y,r=0;r<1<<qmU[R];r++)Ds[y++]=R;Ds[y-1]=R;for(R=y=0;R<16;R++)for(EV6[R]=y,r=0;r<1<<SmJ[R];r++)Uw[y++]=R;for(y>>=7;R<30;R++)for(EV6[R]=y<<7,r=0;r<1<<SmJ[R]-7;r++)Uw[256+y++]=R;for(r=0;r<=15;r++)f[r]=
0;for(r=0;r<=143;)FR[r*2+1]=8,r++,f[8]++;for(;r<=255;)FR[r*2+1]=9,r++,f[9]++;for(;r<=279;)FR[r*2+1]=7,r++,f[7]++;for(;r<=287;)FR[r*2+1]=8,r++,f[8]++;aJz(FR,287,f);for(r=0;r<30;r++)Gd[r*2+1]=5,Gd[r*2]=Oaq(r,5);B_Y=new Mrg(FR,qmU,257,286,15);d6S=new Mrg(Gd,SmJ,0,30,15);Jax=new Mrg([],D6F,0,19,7);caq=!0}V.l_desc=new ZaS(V.dyn_ltree,B_Y);V.d_desc=new ZaS(V.dyn_dtree,d6S);V.bl_desc=new ZaS(V.bl_tree,Jax);V.bi_buf=0;V.bi_valid=0;zs4(V);V=0}else V=v2(l,-2);V===0&&(l=l.state,l.window_size=2*l.w_size,H2(l.head),
l.max_lazy_match=Td[l.level].max_lazy,l.good_match=Td[l.level].good_length,l.nice_match=Td[l.level].nice_length,l.max_chain_length=Td[l.level].max_chain,l.strstart=0,l.block_start=0,l.lookahead=0,l.insert=0,l.match_length=l.prev_length=2,l.match_available=0,l.ins_h=0);l=V}}else l=-2;if(l!==0)throw Error(ks[l]);W.header&&(l=this.strm)&&l.state&&l.state.wrap===2&&(l.state.gzhead=W.header);if(W.dictionary){var B;typeof W.dictionary==="string"?B=U6Y(W.dictionary):uIn.call(W.dictionary)==="[object ArrayBuffer]"?
B=new Uint8Array(W.dictionary):B=W.dictionary;W=this.strm;R=B;y=R.length;if(W&&W.state)if(B=W.state,l=B.wrap,l===2||l===1&&B.status!==42||B.lookahead)l=-2;else{l===1&&(W.adler=t3Y(W.adler,R,y,0));B.wrap=0;y>=B.w_size&&(l===0&&(H2(B.head),B.strstart=0,B.block_start=0,B.insert=0),V=new Jv.Buf8(B.w_size),Jv.arraySet(V,R,y-B.w_size,B.w_size,0),R=V,y=B.w_size);V=W.avail_in;f=W.next_in;r=W.input;W.avail_in=y;W.next_in=0;W.input=R;for(Il(B);B.lookahead>=3;){R=B.strstart;y=B.lookahead-2;do B.ins_h=(B.ins_h<<
B.hash_shift^B.window[R+3-1])&B.hash_mask,B.prev[R&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=R,R++;while(--y);B.strstart=R;B.lookahead=2;Il(B)}B.strstart+=B.lookahead;B.block_start=B.strstart;B.insert=B.lookahead;B.lookahead=0;B.match_length=B.prev_length=2;B.match_available=0;W.next_in=f;W.input=r;W.avail_in=V;B.wrap=l;l=0}else l=-2;if(l!==0)throw Error(ks[l]);this._dict_set=!0}};
kSU=function(W,l){l=l||{};l.gzip=!0;l=new n7j(l);l.push(W,!0);if(l.err)throw l.msg||ks[l.err];return l.result};
HGq=function(W,l){var V=v7v();V&&V.publish.call(V,W.toString(),W,l)};
pVJ=function(W,l,V){var f=v7v();if(!f)return 0;var r=f.subscribe(W.toString(),function(R,y){var P=_.Y2("ytPubsub2Pubsub2SkipSubKey");P&&P==r||(P=function(){if(KzY[r])try{if(y&&W instanceof FzS&&W!=R)try{var n=W.dataClass,B=y;if(!B.args||!B.version)throw Error("ad");try{if(!n.version_){var d=new n;n.version_=d.version}var J=n.version_}catch(D){}if(!J||B.version!=J)throw Error("bd");try{y=Reflect.construct(n,_.z6(B.args))}catch(D){throw D.message="yt.pubsub2.Data.deserialize(): "+D.message,D;}}catch(D){throw D.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+W.toString()+": "+D.message,D;}l.call(V||window,y)}catch(D){_.OJ(D)}},GSz[W.toString()]?_.Y2("yt.scheduler.instance")?_.w8.addLowPriorityJob(P):_.cA(P,0):P())});
KzY[r]=!0;bGY[W.toString()]||(bGY[W.toString()]=[]);bGY[W.toString()].push(r);return r};
iGU=function(){var W=o7n,l=pVJ(j1x,function(V){W.apply(void 0,arguments);Ir6(l)});
return l};
Ir6=function(W){var l=v7v();l&&(typeof W==="number"&&(W=[W]),_.q4(W,function(V){l.unsubscribeByKey(V);delete KzY[V]}))};
v7v=function(){return _.Y2("ytPubsub2Pubsub2Instance")};
m6z=function(W,l,V){V=V===void 0?{sampleRate:.1}:V;Math.random()<Math.min(.02,V.sampleRate/100)&&HGq("meta_logging_csi_event",{timerName:W,timelineData:l})};
_.XV4=function(W){return W?(W=W.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.rI(W):null:null};
_.Av=function(W){return W?(W=W.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.i7(W):null:null};
wV8=function(){T_Y||(T_Y=_.Av(_.M4("WORKER_SERIALIZATION_URL")));return T_Y||void 0};
_.Q1z=function(){var W=wV8();Aaz||W===void 0||(Aaz=new Worker(_.m7(W),void 0));return Aaz};
_.M3F=function(){return typeof Worker==="function"&&wV8()?!0:!1};
_.zov=function(){if(_.M3F()&&!ZG8){var W=function(V){V=V.data;if(V.op==="gzippedGelBatch"){var f=OGF.get(V.key);f&&(arF(V.gzippedBatch,f.latencyPayload,f.url,f.options,f.sendFn),OGF.delete(V.key))}},l=_.Q1z();
l&&(l.addEventListener("message",W),l.onerror=function(){OGF.clear()},ZG8=!0)}};
SDj=function(W,l,V,f,r){r=r===void 0?!1:r;var R={startTime:(0,_.tv)(),ticks:{},infos:{}};if(Qy)try{var y=N_n(l);if(y!=null&&(y>YD8||y<x6z))f(W,V);else{if(_.U("gzip_gel_with_worker")&&(_.U("initial_gzip_use_main_thread")&&!eo4||!_.U("initial_gzip_use_main_thread"))){ZG8||_.zov();var P=_.Q1z();if(P&&!r){OGF.set(qDj,{latencyPayload:R,url:W,options:V,sendFn:f});P.postMessage({op:"gelBatchToGzip",serializedBatch:l,key:qDj});qDj++;return}}var n=kSU(ho6(l));arF(n,R,W,V,f)}}catch(B){_.x2(B),f(W,V)}else f(W,
V)};
arF=function(W,l,V,f,r){eo4=!1;var R=(0,_.tv)();l.ticks.gelc=R;Mt++;_.U("disable_compression_due_to_performance_degredation")&&R-l.startTime>=E7Y&&($6n++,_.U("abandon_compression_after_N_slow_zips")?Mt===_.yS("compression_disable_point")&&$6n>WKz&&(Qy=!1):Qy=!1);ld6(l);f.headers||(f.headers={});f.headers["Content-Encoding"]="gzip";f.postBody=W;f.postParams=void 0;r(V,f)};
VMF=function(W){var l=l===void 0?!1:l;var V=V===void 0?!1:V;var f=(0,_.tv)(),r={startTime:f,ticks:{},infos:{}},R=l?_.Y2("yt.logging.gzipForFetch",!1):!0;if(Qy&&R){if(!W.body)return W;try{var y=V?W.body:typeof W.body==="string"?W.body:JSON.stringify(W.body);R=y;if(!V&&typeof y==="string"){var P=N_n(y);if(P!=null&&(P>YD8||P<x6z))return W;V=l?{level:1}:void 0;R=kSU(ho6(y),V);var n=(0,_.tv)();r.ticks.gelc=n;if(l){Mt++;if((_.U("disable_compression_due_to_performance_degredation")||_.U("disable_compression_due_to_performance_degradation_lr"))&&
n-f>=E7Y)if($6n++,_.U("abandon_compression_after_N_slow_zips")||_.U("abandon_compression_after_N_slow_zips_lr")){l=$6n/Mt;var B=WKz/_.yS("compression_disable_point");Mt>0&&Mt%_.yS("compression_disable_point")===0&&l>=B&&(Qy=!1)}else Qy=!1;ld6(r)}}W.headers=Object.assign({},{"Content-Encoding":"gzip"},W.headers||{});W.body=R;return W}catch(d){return _.x2(d),W}}else return W};
N_n=function(W){try{return(new Blob(W.split(""))).size}catch(l){return _.x2(l),null}};
ld6=function(W){_.U("gel_compression_csi_killswitch")||!_.U("log_gel_compression_latency")&&!_.U("log_gel_compression_latency_lr")||m6z("gel_compression",W,{sampleRate:.1})};
fd6=function(){this.blockSize=-1};
Zs=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var W=1;W<this.blockSize;++W)this.pad_[W]=0;this.total_=this.inbuf_=0;this.reset()};
RWS=function(W){W=Object.assign({},W);delete W.Authorization;var l=_.rGz();if(l){var V=new Zs;V.update(_.M4("INNERTUBE_API_KEY"));V.update(l);W.hash=_.Xw(V.digest(),3)}return W};
al=function(){tMn||(tMn=new _.Ow("yt.innertube"));return tMn};
sJn=function(W,l,V,f){if(f)return null;f=al().get("nextId",!0)||1;var r=al().get("requests",!0)||{};r[f]={method:W,request:l,authState:RWS(V),requestTime:Math.round((0,_.tv)())};al().set("nextId",f+1,86400,!0);al().set("requests",r,86400,!0);return f};
LKv=function(W){var l=al().get("requests",!0)||{};delete l[W];al().set("requests",l,86400,!0)};
gJ4=function(W){var l=al().get("requests",!0);if(l){for(var V in l){var f=l[V];if(!(Math.round((0,_.tv)())-f.requestTime<6E4)){var r=f.authState,R=RWS(_.A5F(!1));_.MC.equals(r,R)&&(r=f.request,"requestTimeMs"in r&&(r.requestTimeMs=Math.round((0,_.tv)())),yGY(W,f.method,r,{}));delete l[V]}}al().set("requests",l,86400,!0)}};
PDg=function(W){var l;return(W=W==null?void 0:(l=W.error)==null?void 0:l.code)&&W>=400&&W<=599?!1:!0};
nJx=function(W){var l;W=W==null?void 0:(l=W.error)==null?void 0:l.code;return!(W!==400&&W!==415)};
cGJ=function(){if(CDS)return CDS();var W={};CDS=Rl("LogsDatabaseV2",{objectStores:(W.LogsRequestsStore={addedAtVersion:2},W),shared:!1,upgrade:function(l,V,f){V(2)&&zd(l,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});V(3);V(5)&&(f=f.objectStore("LogsRequestsStore"),f.JSC$10677_wrapped.indexNames.contains("newRequest")&&f.JSC$10677_wrapped.deleteIndex("newRequest"),Nt(f,"newRequestV2",["status","interface","timestamp"]));V(7)&&l.JSC$10662_wrapped.objectStoreNames.contains("sapisid")&&l.JSC$10662_wrapped.deleteObjectStore("sapisid");
V(9)&&l.JSC$10662_wrapped.objectStoreNames.contains("SWHealthLog")&&l.JSC$10662_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return CDS()};
Ys=function(W){return _.SF(cGJ(),W)};
daq=function(W,l){var V,f,r,R;return _.g(function(y){if(y.nextAddress==1)return V={startTime:(0,_.tv)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},y.yield(Ys(l),2);if(y.nextAddress!=3)return f=y.yieldResult,r=Object.assign({},W,{options:JSON.parse(JSON.stringify(W.options)),interface:_.M4("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),y.yield(f.put("LogsRequestsStore",r),3);R=y.yieldResult;V.ticks.tc=(0,_.tv)();BmU(V);return y.return(R)})};
JGF=function(W,l){var V,f,r,R,y,P,n,B,d;return _.g(function(J){if(J.nextAddress==1)return V={startTime:(0,_.tv)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},J.yield(Ys(l),2);if(J.nextAddress!=3)return f=J.yieldResult,r=_.M4("INNERTUBE_CONTEXT_CLIENT_NAME",0),R=[W,r,0],y=[W,r,(0,_.tv)()],P=IDBKeyRange.bound(R,y),n="prev",_.U("use_fifo_for_networkless")&&(n="next"),B=void 0,d=W==="NEW"?"readwrite":"readonly",_.U("use_readonly_for_get_most_recent_by_status_killswitch")&&(d="readwrite"),
J.yield(_.E6(f,["LogsRequestsStore"],{mode:d,enableRetries:!0},function(D){return _.sw(D.objectStore("LogsRequestsStore").index("newRequestV2"),{query:P,direction:n},function(u){u.getValue()&&(B=u.getValue(),W==="NEW"&&(B.status="QUEUED",u.update(B)))})}),3);
V.ticks.tc=(0,_.tv)();BmU(V);return J.return(B)})};
DaS=function(W,l){var V;return _.g(function(f){if(f.nextAddress==1)return f.yield(Ys(l),2);V=f.yieldResult;return f.return(_.E6(V,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(r){var R=r.objectStore("LogsRequestsStore");return R.get(W).then(function(y){if(y)return y.status="QUEUED",R.put(y).then(function(){return y})})}))})};
Uan=function(W,l,V,f){V=V===void 0?!0:V;var r;return _.g(function(R){if(R.nextAddress==1)return R.yield(Ys(l),2);r=R.yieldResult;return R.return(_.E6(r,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(y){var P=y.objectStore("LogsRequestsStore");return P.get(W).then(function(n){return n?(n.status="NEW",V&&(n.sendCount+=1),f!==void 0&&(n.options.compress=f),P.put(n).then(function(){return n})):z4.resolve(void 0)})}))})};
uYF=function(W,l){var V;return _.g(function(f){if(f.nextAddress==1)return f.yield(Ys(l),2);V=f.yieldResult;return f.return(V.delete("LogsRequestsStore",W))})};
kGn=function(W){var l,V;return _.g(function(f){if(f.nextAddress==1)return f.yield(Ys(W),2);l=f.yieldResult;V=(0,_.tv)()-2592E6;return f.yield(_.E6(l,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(r){return W2(r.objectStore("LogsRequestsStore"),{},function(R){if(R.getValue().timestamp<=V)return R.delete().then(function(){return R.continue()})})}),0)})};
vJY=function(){_.g(function(W){return W.yield(P0q("LogsDatabaseV2"),0)})};
BmU=function(W){_.U("nwl_csi_killswitch")||m6z("networkless_performance",W,{sampleRate:1})};
_.KKq=function(W){return _.SF(HkY(),W)};
FKY=function(W){var l,V;_.g(function(f){if(f.nextAddress==1)return f.yield(_.KKq(W),2);l=f.yieldResult;V=(0,_.tv)()-2592E6;return f.yield(_.E6(l,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(r){return W2(r.objectStore("SWHealthLog"),{},function(R){if(R.getValue().timestamp<=V)return R.delete().then(function(){return R.continue()})})}),0)})};
GGF=function(W){var l;return _.g(function(V){if(V.nextAddress==1)return V.yield(_.KKq(W),2);l=V.yieldResult;return V.yield(l.clear("SWHealthLog"),0)})};
_.xs=function(W,l,V,f,r,R,y){r=r===void 0?"":r;R=R===void 0?!1:R;y=y===void 0?!1:y;if(W)if(V&&!QS("cobalt"))_.x2(new _.bP("Legacy referrer-scrubbed ping detected")),W&&bkx(W,void 0,{scrubReferrer:!0});else if(r)WLS(W,l,"POST",r,f);else if(_.M4("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||f||y)WLS(W,l,"GET","",f,void 0,R,y);else{b:{try{c:{var P=new pEY({url:W});if(P.urlParamValues_.dsh==="1")var n=null;else{var B=P.urlParamValues_.ae;if(B==="1"){var d=P.urlParamValues_.adurl;if(d)try{n={version:3,directUrl:decodeURIComponent(d),
asyncUrl:o2U(P.JSC$9471_url_,"act=1","ri=1",oJv(P))};break c}catch(H){}}n=B==="2"?{version:4,directUrl:o2U(P.JSC$9471_url_,"dct=1","suid="+P.suid_,""),asyncUrl:o2U(P.JSC$9471_url_,"act=1","ri=1","suid="+P.suid_)}:null}}if(n){var J=_.JY(W);var D=!(!J||!J.endsWith("/aclk")||_.qs(W,"ri")!=="1");break b}}catch(H){}D=!1}if(D){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(W,"")){var u=!0;break b}}catch(H){}u=!1}u?(l&&l(),V=!0):V=!1}else V=!1;V||bkx(W,l)}};
bkx=function(W,l,V){V=V===void 0?{}:V;var f=new Image,r=""+jJ8++;Idz[r]=f;f.onload=f.onerror=function(){l&&Idz[r]&&l();delete Idz[r]};
V.scrubReferrer&&(f.referrerPolicy="no-referrer");f.src=W};
eS=function(W,l){ik8(W,l==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
mav=function(W){var l;return((l=document.featurePolicy)==null?0:l.allowedFeatures().includes("attribution-reporting"))?W+"&nis=6":W+"&nis=5"};
XE6=function(W){if(!W)return!1;try{var l;if(((l=_.hC(W))==null?void 0:l.asm)==="4")return!0}catch(V){_.OJ(V)}return!1};
ik8=function(W,l){l?(W=mav(W),_.xs(W,void 0,void 0,void 0,"",!0,!0)):_.xs(W)};
wEJ=function(){TmS||(TmS=new _.Ow("yt.offline"));return TmS};
AGn=function(W){if(_.U("offline_error_handling")){var l=wEJ().get("errors",!0)||{};l[W.message]={name:W.name,stack:W.stack};W.level&&(l[W.message].level=W.level);wEJ().set("errors",l,2592E3,!0)}};
MMS=function(W,l,V,f){f=f===void 0?!1:f;l=_.U("web_fp_via_jspb")?Object.assign({},l):l;_.U("use_cfr_monitor")&&QJz(W,l);if(_.U("use_request_time_ms_header"))l.headers&&f7(W)&&(l.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.tv)())));else{var r;if((r=l.postParams)==null?0:r.requestTimeMs)l.postParams.requestTimeMs=Math.round((0,_.tv)())}V&&Object.keys(l).length===0?_.xs(W):l.compress?l.postBody?(typeof l.postBody!=="string"&&(l.postBody=JSON.stringify(l.postBody)),SDj(W,l.postBody,
l,_.Dj,f)):SDj(W,JSON.stringify(l.postParams),l,rWj,f):_.Dj(W,l)};
Zk6=function(W,l){_.U("use_event_time_ms_header")&&f7(W)&&(l.headers||(l.headers={}),l.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.tv)())));return l};
_.ad4=function(){Okv||(Okv=new _.qt({logOfflineErrors:!0,enablePolling:!0}));return Okv};
QJz=function(W,l){var V=l.onError?l.onError:function(){};
l.onError=function(r,R){hv().requestComplete(W,!1);V(r,R)};
var f=l.onSuccess?l.onSuccess:function(){};
l.onSuccess=function(r,R){hv().requestComplete(W,!0);f(r,R)}};
_.zW4=function(){return _.lP(document.location.toString())!=="www.youtube-nocookie.com"};
_.xax=function(){return _.Y2("ytNetworklessLoggingInitializationOptions")?_.Nmq.isNwlInitialized:_.YUU};
eWz=function(W,l){if(_.U("polymer_on_demand_shady_dom")){var V;var f=(V=W.__shady_native_firstElementChild)!=null?V:W.firstElementChild}else f=W.firstElementChild;for(;f;){if(W=l(f)?f:eWz(f,l))return W;f=f.nextElementSibling}return null};
hW6=function(){var W=document;if("visibilityState"in W)return W.visibilityState;var l=qUF+"VisibilityState";if(l in W)return W[l]};
_.SUY=function(W,l){var V;SS(W,function(f){V=l[f];return!!V});
return V};
_.$s=function(W){var l=EJJ(W);l?l.focus(void 0):_.Ew(W)};
EJJ=function(W){return(W=eWz(W,function(l){return _.Wq(l)?$aS(l)&&!!l.offsetParent:!1}))?W:null};
_.Ew=function(W,l){W.hasAttribute("tabindex")||W.setAttribute("tabindex","-1");W.focus(l)};
Wrn=function(W,l,V,f){f=f===void 0?{}:f;W.addEventListener&&(l!="mouseenter"||"onmouseenter"in document?l!="mouseleave"||"onmouseenter"in document?l=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(l="MozMousePixelScroll"):l="mouseout":l="mouseover");return _.MC.findKey(lT,function(r){var R=typeof r[4]==="boolean"&&r[4]==!!f,y=_.ev(r[4])&&_.ev(f)&&_.MC.equals(r[4],f);return!!r.length&&r[0]==W&&r[1]==l&&r[2]==V&&(R||y)})};
_.rv=function(W,l,V,f){f=f===void 0?{}:f;if(!W||!W.addEventListener&&!W.attachEvent)return"";var r=Wrn(W,l,V,f);if(r)return r;r=++lNF.count+"";var R=!(l!="mouseenter"&&l!="mouseleave"||!W.addEventListener||"onmouseenter"in document);var y=R?function(P){P=new Ve(P);if(!_.YN(P.relatedTarget,function(n){return n==W},!0))return P.currentTarget=W,P.type=l,V.call(W,P)}:function(P){P=new Ve(P);
P.currentTarget=W;return V.call(W,P)};
y=_.ah(y);W.addEventListener?(l=="mouseenter"&&R?l="mouseover":l=="mouseleave"&&R?l="mouseout":l=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(l="MozMousePixelScroll"),V1v()||typeof f==="boolean"?W.addEventListener(l,y,f):W.addEventListener(l,y,!!f.capture)):W.attachEvent("on"+l,y);lT[r]=[W,l,V,y,f];return r};
_.r2F=function(W,l,V){var f=f===void 0?{}:f;var r=_.rv(W,l,function(){_.fNz(r);V.apply(W,arguments)},f)};
_.fNz=function(W){W&&(typeof W=="string"&&(W=[W]),_.q4(W,function(l){if(l in lT){var V=lT[l],f=V[0],r=V[1],R=V[3];V=V[4];f.removeEventListener?V1v()||typeof V==="boolean"?f.removeEventListener(r,R,V):f.removeEventListener(r,R,!!V.capture):f.detachEvent&&f.detachEvent("on"+r,R);delete lT[l]}}))};
Ro=function(W){this.callback_=W;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(W=0;W<4;W++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.rv(window,"mousemove",(0,_.ml)(this.onMouseMove_,this));this.timerId_=_.BA((0,_.ml)(this.checkPosition_,this),25)};
t1v=function(){var W={};var l=W.preferMobileEvents===void 0?!1:W.preferMobileEvents;W=W.enableScrollEventListener===void 0?!0:W.enableScrollEventListener;if(_.Y2("_lact",window)==null){var V=parseInt(_.M4("LACT"),10);V=isFinite(V)?Date.now()-Math.max(V,0):-1;_.fR("_lact",V,window);_.fR("_fact",V,window);V==-1&&_.tr();_.rv(document,"keydown",_.tr);_.rv(document,"keyup",_.tr);_.rv(document,"mousedown",_.tr);_.rv(document,"mouseup",_.tr);l?_.rv(window,"touchmove",function(){Rwg("touchmove",200)},{passive:!0}):
(_.rv(window,"resize",function(){Rwg("resize",200)}),W&&_.rv(window,"scroll",function(){Rwg("scroll",200)}));
new Ro(function(){Rwg("mouse",100)});
_.rv(document,"touchstart",_.tr,{passive:!0});_.rv(document,"touchend",_.tr,{passive:!0})}};
Rwg=function(W,l){sfz[W]||(sfz[W]=!0,_.w8.addLowPriorityJob(function(){_.tr();sfz[W]=!1},l))};
_.tr=function(){_.Y2("_lact",window)==null&&t1v();var W=Date.now();_.fR("_lact",W,window);_.Y2("_fact",window)==-1&&_.fR("_fact",W,window);(W=_.Y2("ytglobal.ytUtilActivityCallback_"))&&W()};
_.sL=function(){var W=_.Y2("_lact",window);return W==null?-1:Math.max(Date.now()-W,0)};
_.nS=function(W,l,V){var f=_.LS();if(f&&l){var r=f.subscribe(W,function(){var R=arguments,y=function(){gv[r]&&l.apply&&typeof l.apply=="function"&&l.apply(V||window,R)};
try{_.Lr4[W]?y():_.cA(y,0)}catch(P){_.OJ(P)}},V);
gv[r]=!0;Pq[W]||(Pq[W]=[]);Pq[W].push(r);return r}return 0};
_.y26=function(W){var l=_.LS();l&&(typeof W==="number"?W=[W]:typeof W==="string"&&(W=[parseInt(W,10)]),_.q4(W,function(V){l.unsubscribeByKey(V);delete gv[V]}))};
_.gh8=function(W,l){var V=_.LS();V&&V.publish.apply(V,arguments)};
_.nhv=function(W){var l=_.LS();if(l)if(l.clear(W),W)Pp4(W);else for(var V in Pq)Pp4(V)};
_.LS=function(){return _.rS.ytPubsubPubsubInstance};
Pp4=function(W){Pq[W]&&(W=Pq[W],_.q4(W,function(l){gv[l]&&delete gv[l]}),W.length=0)};
CpJ=function(){var W,l;return"h5vcc"in CS&&((W=CS.h5vcc.traceEvent)==null?0:W.traceBegin)&&((l=CS.h5vcc.traceEvent)==null?0:l.traceEnd)?1:"performance"in CS&&CS.performance.mark&&CS.performance.measure?2:0};
c2v=function(W){var l=CpJ();switch(l){case 1:CS.h5vcc.traceEvent.traceBegin("YTLR",W);break;case 2:CS.performance.mark(W+"-start");break;case 0:break;default:_.Yc(l,"unknown trace type")}};
BN6=function(W){var l=CpJ();switch(l){case 1:CS.h5vcc.traceEvent.traceEnd("YTLR",W);break;case 2:l=W+"-start";var V=W+"-end";CS.performance.mark(V);CS.performance.measure(W,l,V);break;case 0:break;default:_.Yc(l,"unknown trace type")}};
deF=function(W){var l,V;(V=(l=window).onerror)==null||V.call(l,W.message,"",0,0,W)};
J2z=function(W){if(_.U("web_lifecycle_error_handling_killswitch"))return W();try{return W()}catch(l){deF(l)}};
De6=function(W){return[W.auth===void 0?"undefined":W.auth,W.isJspb===void 0?"undefined":W.isJspb,W.cttAuthInfo===void 0?"undefined":W.cttAuthInfo,W.tier===void 0?"undefined":W.tier].join("/")};
_.k=function(W,l){if(W)return W[l.name]};
Bq=function(){var W=_.Y2("yt.logging.ims");W||(W=new cq,_.fR("yt.logging.ims",W));return W};
bPj=function(W,l){if(W.endpoint==="log_event"){UeU(W);var V=u3F(W),f=kmU(W.payload)||"",r=vh6(f),R=200;if(r){if(r.enabled===!1&&!_.U("web_payload_policy_disabled_killswitch"))return;R=HP6(r.tier);if(R===400){Kr6(W,l);return}}dv[V]=!0;V={cttAuthInfo:V,isJspb:!1,tier:R};Bq().storePayload(V,W.payload);FrJ(l,!1,V,GmU(f))}};
oh6=function(W,l,V){if(l.endpoint==="log_event"){UeU(void 0,l);var f=u3F(l,!0),r=vh6(W),R=200;if(r){if(r.enabled===!1&&!_.U("web_payload_policy_disabled_killswitch"))return;R=HP6(r.tier);if(R===400){pIz(W,l,V);return}}dv[f]=!0;f={cttAuthInfo:f,isJspb:!0,tier:R};Bq().storePayload(f,QL(l.payload));FrJ(V,!0,f,GmU(W))}};
FrJ=function(W,l,V,f){l=l===void 0?!1:l;f=f===void 0?!1:f;W&&(Jr=new W);W=_.yS("tvhtml5_logging_max_batch_ads_fork")||_.yS("tvhtml5_logging_max_batch")||_.yS("web_logging_max_batch")||100;var r=(0,_.tv)(),R=jfz(l,V.tier),y=R.lastDebounceQueueFromLogTimeMs;f&&(R.useVideoStatsEndPoint=!0);f=0;V&&(f=Bq().getSequenceCount(V));var P=function(){INj({writeThenSend:!0},l,V.tier)};
f>=1E3?P():f>=W?iPj||(iPj=mev(function(){P();iPj=void 0},0)):r-y>=10&&(XI8(l,V.tier),R.lastDebounceQueueFromLogTimeMs=r)};
Kr6=function(W,l){if(W.endpoint==="log_event"){_.U("more_accurate_gel_parser")&&Bq().storePayload({isJspb:!1},W.payload);UeU(W);var V=u3F(W),f=new Map;f.set(V,[W.payload]);var r=kmU(W.payload)||"";l&&(Jr=new l);return new _.Dx(function(R,y){Jr&&Jr.isReady()?TNY(f,Jr,R,y,{bypassNetworkless:!0},!0,GmU(r)):R()})}};
pIz=function(W,l,V){if(l.endpoint==="log_event"){UeU(void 0,l);var f=u3F(l,!0),r=new Map;r.set(f,[QL(l.payload)]);V&&(Jr=new V);return new _.Dx(function(R){Jr&&Jr.isReady()?wI4(r,Jr,R,{bypassNetworkless:!0},!0,GmU(W)):R()})}};
u3F=function(W,l){var V="";if(W.dangerousLogToVisitorSession)V="visitorOnlyApprovedKey";else if(W.cttAuthInfo){if(l===void 0?0:l){l=W.cttAuthInfo.token;V=W.cttAuthInfo;var f=new A2S;V.videoId?f.setVideoId(V.videoId):V.playlistId&&UL(f,2,Qf4,kZ(V.playlistId));M16[l]=f}else l=W.cttAuthInfo,V={},l.videoId?V.videoId=l.videoId:l.playlistId&&(V.playlistId=l.playlistId),ZPU[W.cttAuthInfo.token]=V;V=W.cttAuthInfo.token}return V};
INj=function(W,l,V){W=W===void 0?{}:W;l=l===void 0?!1:l;new _.Dx(function(f,r){var R=jfz(l,V),y=R.useVideoStatsEndPoint;R.useVideoStatsEndPoint=!1;OPz(R.queueTimer);OPz(R.queueMaxTimer);R.queueMaxTimer=0;Jr&&Jr.isReady()?V===void 0&&_.U("enable_web_tiered_gel")?aN8(f,r,W,l,300,y):aN8(f,r,W,l,V,y):(XI8(l,V),f())})};
aN8=function(W,l,V,f,r,R){var y=Jr;V=V===void 0?{}:V;f=f===void 0?!1:f;r=r===void 0?200:r;R=R===void 0?!1:R;var P=new Map,n=new Map,B={isJspb:f,cttAuthInfo:void 0,tier:r},d={isJspb:f,cttAuthInfo:void 0};if(f){l=_.L(Object.keys(dv));for(r=l.next();!r.done;r=l.next())r=r.value,n=_.U("enable_web_tiered_gel")?Bq().smartExtractMatchingEntries({keys:[B,d],sizeLimit:1E3}):Bq().extractMatchingEntries({isJspb:!0,cttAuthInfo:r}),n.length>0&&P.set(r,n),(_.U("web_fp_via_jspb_and_json")&&V.writeThenSend||!_.U("web_fp_via_jspb_and_json"))&&
delete dv[r];wI4(P,y,W,V,!1,R)}else{P=_.L(Object.keys(dv));for(B=P.next();!B.done;B=P.next())B=B.value,d=_.U("enable_web_tiered_gel")?Bq().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:B,tier:r},{isJspb:!1,cttAuthInfo:B}],sizeLimit:1E3}):Bq().extractMatchingEntries({isJspb:!1,cttAuthInfo:B}),d.length>0&&n.set(B,d),(_.U("web_fp_via_jspb_and_json")&&V.writeThenSend||!_.U("web_fp_via_jspb_and_json"))&&delete dv[B];TNY(n,y,W,l,V,!1,R)}};
XI8=function(W,l){W=W===void 0?!1:W;l=l===void 0?200:l;var V=function(){INj({writeThenSend:!0},W,l)},f=jfz(W,l),r=f===zwJ||f===NNz?5E3:YZ4;
_.U("web_gel_timeout_cap")&&!f.queueMaxTimer&&(r=mev(function(){V()},r),f.queueMaxTimer=r);
OPz(f.queueTimer);r=_.M4("LOGGING_BATCH_TIMEOUT",_.yS("web_gel_debounce_ms",1E4));_.U("shorten_initial_gel_batch_timeout")&&xeS&&(r=ewq);r=mev(function(){_.yS("gel_min_batch_size")>0?Bq().getSequenceCount({cttAuthInfo:void 0,isJspb:W,tier:l})>=qZq&&V():V()},r);
f.queueTimer=r};
TNY=function(W,l,V,f,r,R,y){r=r===void 0?{}:r;var P=Math.round((0,_.tv)()),n=W.size,B=hwz(y);W=_.L(W);var d=W.next();for(y={};!d.done;y={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},d=W.next()){var J=_.L(d.value);d=J.next().value;J=J.next().value;y.batchRequest=_.MC.unsafeClone({context:_.plg(l.config_||_.LR())});if(!_.Ng(J)&&!_.U("throw_err_when_logevent_malformed_killswitch")){f();break}y.batchRequest.events=J;
(J=ZPU[d])&&SZz(y.batchRequest,d,J);delete ZPU[d];y.dangerousLogToVisitorSession=d==="visitorOnlyApprovedKey";EhJ(y.batchRequest,P,y.dangerousLogToVisitorSession);$ev(r);y.onSuccess$jscomp$3=function(D){_.U("start_client_gcf")&&_.w8.addLowPriorityJob(function(){return _.g(function(u){return u.yield(W$U(D),0)})});
n--;n||V()};
y.networkFailures=0;y.onError$jscomp$5=function(D){return function(){D.networkFailures++;if(r.bypassNetworkless&&D.networkFailures===1)try{yGY(l,B,D.batchRequest,lyz({writeThenSend:!0},D.dangerousLogToVisitorSession,D.onSuccess$jscomp$3,D.onError$jscomp$5,R)),xeS=!1}catch(u){_.OJ(u),f()}n--;n||V()}}(y);
try{yGY(l,B,y.batchRequest,lyz(r,y.dangerousLogToVisitorSession,y.onSuccess$jscomp$3,y.onError$jscomp$5,R)),xeS=!1}catch(D){_.OJ(D),f()}}};
wI4=function(W,l,V,f,r,R){f=f===void 0?{}:f;var y=Math.round((0,_.tv)()),P={value:W.size},n=new Map([].concat(_.QK(W)));n=_.L(n);for(var B=n.next();!B.done;B=n.next()){var d=_.L(B.value).next().value,J=W.get(d);B=new VJg;var D=l.config_||_.LR(),u=new uT,H=new fyv;_.mY(H,1,D.innertubeContextHostLanguage);_.mY(H,2,D.innertubeContextGeoLocation);_.g8(H,16,D.innertubeContextClientNameFieldNumber);_.mY(H,17,D.innertubeContextClientVersion);if(D.innertubeContextClientConfigInfo){var p=D.innertubeContextClientConfigInfo,
X=new nR;p.coldConfigData&&_.mY(X,1,p.coldConfigData);p.appInstallData&&_.mY(X,6,p.appInstallData);p.coldHashData&&_.mY(X,3,p.coldHashData);p.hotHashData&&X.setHotHashData(p.hotHashData);_.b7(H,62,X)}(p=_.rS.devicePixelRatio)&&p!=1&&_.P2(H,65,_.xc(p));p=Ngz();p!==""&&_.mY(H,54,p);p=Yex();if(p.length>0){X=new ryY;for(var w=0;w<p.length;w++){var O=new k_;O.setKey(p[w].key);UL(O,2,RPx,kZ(p[w].value));vq(X,15,k_,O)}_.b7(u,5,X)}vVz(D,H);HaF(u);KgF(H);Fg6(D,H);GLq(H);_.U("start_client_gcf")&&baj(H);_.M4("DELEGATED_SESSION_ID")&&
!_.U("pageid_as_header_web")&&(D=new Hq,_.mY(D,3,_.M4("DELEGATED_SESSION_ID")));!_.U("fill_delegate_context_in_gel_killswitch")&&(p=_.M4("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(X=_.yy(u,Hq,3)||new Hq,D=u,p=_.mY(X,18,p),_.b7(D,3,p));D=H;p=_.L(Object.entries(_.hC(_.M4("DEVICE",""))));for(X=p.next();!X.done;X=p.next())w=_.L(X.value),X=w.next().value,w=w.next().value,X==="cbrand"?_.mY(D,12,w):X==="cmodel"?_.mY(D,13,w):X==="cbr"?_.mY(D,87,w):X==="cbrver"?_.mY(D,88,w):X==="cos"?_.mY(D,18,
w):X==="cosver"?_.mY(D,19,w):X==="cplatform"&&_.g8(D,42,kT6(w));u.setClient(H);_.b7(B,1,u);if(H=M16[d])a:{if(_.F7(H,KS(H,Qf4,1)))u=1;else if(H.getPlaylistId())u=2;else break a;_.b7(B,4,H);H=B.getContext()||new uT;D=_.yy(H,Hq,3)||new Hq;p=new FC;p.setToken(d);_.g8(p,1,u);vq(D,12,FC,p);_.b7(H,3,D)}delete M16[d];d=d==="visitorOnlyApprovedKey";tJj()||_.Gs(B,2,y);!d&&(u=_.M4("EVENT_ID"))&&(H=s$z(),D=new L$z,_.mY(D,1,u),_.Gs(D,2,H),_.b7(B,5,D));$ev(f);if(_.U("jspb_serialize_with_worker")&&(u=_.Q1z())&&
f.writeThenSend){_.yyF.set(gwv,{client:l,resolve:V,networklessOptions:f,isIsolated:r,useVSSEndpoint:R,dangerousLogToVisitorSession:d,requestsOutstanding:P});u.postMessage({op:"gelBatchToSerialize",batchRequest:QL(B),clientEvents:J,key:gwv});gwv++;break}if(J){u=[];for(H=0;H<J.length;H++)try{u.push(new bT(J[H]))}catch(S){_.OJ(new _.bP("Transport failed to deserialize "+String(J[H])))}J=u}else J=[];J=_.L(J);for(u=J.next();!u.done;u=J.next())vq(B,3,bT,u.value);J={startTime:(0,_.tv)(),ticks:{},infos:{}};
B=B.serialize();J.ticks.geljspc=(0,_.tv)();_.U("log_jspb_serialize_latency")&&m6z("gel_jspb_serialize",J,{sampleRate:.1});_.P$Y(B,l,V,f,r,R,d,P)}};
_.P$Y=function(W,l,V,f,r,R,y,P){f=f===void 0?{}:f;P=P===void 0?{value:0}:P;R=hwz(R);f=lyz(f,y,function(n){_.U("start_client_gcf")&&_.w8.addLowPriorityJob(function(){return _.g(function(B){return B.yield(W$U(n),0)})});
P.value--;P.value||V()},function(){P.value--;
P.value||V()},r);
f.headers["Content-Type"]="application/json+protobuf";f.postBodyFormat="JSPB";f.postBody=W;yGY(l,R,"",f);xeS=!1};
$ev=function(W){_.U("always_send_and_write")&&(W.writeThenSend=!1)};
lyz=function(W,l,V,f,r){W={retry:!0,onSuccess:V,onError:f,networklessOptions:W,dangerousLogToVisitorSession:l,bypassMonitoring:!!r,headers:{},postBodyFormat:"",postBody:"",compress:_.U("compress_gel")||_.U("compress_gel_lr")};tJj()&&(W.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.tv)())));return W};
EhJ=function(W,l,V){tJj()||(W.requestTimeMs=String(l));_.U("unsplit_gel_payloads_in_logs")&&(W.unsplitGelPayloadsInLogs=!0);!V&&(l=_.M4("EVENT_ID"))&&(V=s$z(),W.serializedClientEventId={serializedEventId:l,clientCounter:String(V)})};
s$z=function(){var W=_.M4("BATCH_CLIENT_COUNTER")||0;W||(W=Math.floor(Math.random()*65535/2));W++;W>65535&&(W=1);_.Qj("BATCH_CLIENT_COUNTER",W);return W};
SZz=function(W,l,V){if(V.videoId)var f="VIDEO";else if(V.playlistId)f="PLAYLIST";else return;W.credentialTransferTokenTargetId=V;W.context=W.context||{};W.context.user=W.context.user||{};W.context.user.credentialTransferTokens=[{token:l,scope:f}]};
UeU=function(W,l){var V=_.gU("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Y2("yt.logging.transport.enableScrapingForTest"))if(V)nwS=[],_.fR("yt.logging.transport.enableScrapingForTest",!0),_.fR("yt.logging.transport.scrapedPayloadsForTesting",nwS),_.fR("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.fR("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.fR("yt.logging.transport.scrapeClientEvent",!0);else return;V=_.Y2("yt.logging.transport.scrapedPayloadsForTesting");var f=_.Y2("yt.logging.transport.payloadToScrape");l&&(l=_.Y2("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(l.payload)())&&V.push(l);l=_.Y2("yt.logging.transport.scrapeClientEvent");if(f&&f.length>=1)for(var r=0;r<f.length;r++)if(W&&W.payload[f[r]])if(l)V.push(W.payload);else{var R=void 0;V.push(((R=W)==null?void 0:R.payload)[f[r]])}_.fR("yt.logging.transport.scrapedPayloadsForTesting",
V)};
tJj=function(){return _.U("use_request_time_ms_header")||_.U("lr_use_request_time_ms_header")};
mev=function(W,l){return _.U("transport_use_scheduler")===!1?_.cA(W,l):_.U("logging_avoid_blocking_during_navigation")||_.U("lr_logging_avoid_blocking_during_navigation")?_.pS(_.w8,function(){if(_.C$z().currentState==="none")W();else{var V={};_.C$z().install((V.none={callback:W},V))}},l):_.pS(_.w8,W,l)};
OPz=function(W){_.U("transport_use_scheduler")?_.w8.cancelJob(W):_.dU(W)};
W$U=function(W){var l,V,f,r,R,y,P,n,B,d;return _.g(function(J){return J.nextAddress==1?(f=(l=W)==null?void 0:(V=l.responseContext)==null?void 0:V.globalConfigGroup,r=_.k(f,cy8),y=(R=f)==null?void 0:R.hotHashData,P=_.k(f,BHn),B=(n=f)==null?void 0:n.coldHashData,(d=_.tY().resolve(_.R0(oo)))?y?r?J.yield(dBn(d,y,r),2):J.yield(dBn(d,y),2):J.jumpTo(2):J.return()):B?P?J.yield(Jyg(d,B,P),0):J.yield(Jyg(d,B),0):J.jumpTo(0)})};
jfz=function(W,l){l=l===void 0?200:l;return W?l===300?zwJ:DBg:l===300?NNz:UB6};
vh6=function(W){if(_.U("enable_web_tiered_gel")){W=uxY[W||""];var l,V,f,r=_.tY().resolve(_.R0(oo))==null?void 0:(l=jC())==null?void 0:(V=l.loggingHotConfig)==null?void 0:(f=V.eventLoggingConfig)==null?void 0:f.payloadPolicies;if(r)for(l=0;l<r.length;l++)if(r[l].payloadNumber===W)return r[l]}};
kmU=function(W){W=Object.keys(W);W=_.L(W);for(var l=W.next();!l.done;l=W.next())if(l=l.value,uxY[l])return l};
HP6=function(W){switch(W){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}};
GmU=function(W){return W==="gelDebuggingEvent"};
hwz=function(W){return(W===void 0?0:W)&&_.U("vss_through_gel_video_stats")?"video_stats":"log_event"};
iT=function(W,l,V,f){f=f===void 0?{}:f;var r={},R=Math.round(f.timestamp||(0,_.tv)());r.eventTimeMs=R<Number.MAX_SAFE_INTEGER?R:0;r[W]=l;W=_.sL();r.context={lastActivityMs:String(f.timestamp||!isFinite(W)?-1:W)};f.sequenceGroup&&!_.U("web_gel_sequence_info_killswitch")&&(W=r.context,l=f.sequenceGroup,l={index:kYU(l),groupKey:l},W.sequence=l,f.endOfSequence&&delete Io[f.sequenceGroup]);_.U("web_tag_automated_log_events")&&(r.context.automatedLogEventSource=f.automatedLogEventSource);(f.sendIsolatedPayload?
Kr6:bPj)({endpoint:"log_event",payload:r,cttAuthInfo:f.cttAuthInfo,dangerousLogToVisitorSession:f.dangerousLogToVisitorSession},V)};
kYU=function(W){Io[W]=W in Io?Io[W]+1:0;return Io[W]};
_.XC=function(W,l,V){V=V===void 0?{}:V;var f=my;_.ZL("ytLoggingEventsDefaultDisabled",!1)&&my===my&&(f=null);iT(W,l,f,V)};
_.Ts=function(){if(_.U("web_fp_via_jspb")){var W=!0;W=W===void 0?!1:W;var l=vwJ;vwJ=[];if(l){l=_.L(l);for(var V=l.next();!V.done;V=l.next())V=V.value,W?iT(V.payloadName,V.payload,my,V.options):_.XC(V.payloadName,V.payload,V.options)}INj(void 0,!0);if(!_.U("web_fp_via_jspb_and_json"))return}INj(void 0,!1)};
Hv4=function(W,l){var V;if((V=l)==null?0:V.componentStack)return l;if(W=W.componentStack)l||(l={}),l.componentStack=W;return l};
K$U=function(){_.q4(_.M4("ERRORS")||[],function(W){_.wv.apply(null,W)});
_.Qj("ERRORS",[])};
_.Ar=function(W){_.wv(W)};
_.Qe=function(W){_.wv(W,"WARNING")};
F$F=function(W){W instanceof Error?_.wv(W):(W=_.ev(W)?JSON.stringify(W):String(W),W=new _.bP(W),W.name="RejectedPromiseError",_.Qe(W))};
GY4=function(W,l,V,f,r,R){l=l===void 0?"Unknown file":l;V=V===void 0?0:V;var y=!1,P=HN8("log_window_onerror_fraction");if(P&&Math.random()<P)y=!0;else{P=document.getElementsByTagName("script");for(var n=0,B=P.length;n<B;n++)if(P[n].src.indexOf("/debug-")>0){y=!0;break}}y&&(y=!1,r?y=!0:(typeof W==="string"?P=W:ErrorEvent&&W instanceof ErrorEvent?(y=!0,P=W.message,l=W.filename,V=W.lineno,f=W.colno):(P="Unknown error",l="Unknown file",V=0),r=new _.bP(P),r.name="UnhandledWindowError",r.message=P,r.fileName=
l,r.lineNumber=V,isNaN(f)?delete r.columnNumber:r.columnNumber=f),_.U("wiz_enable_component_stack_propagation_killswitch")||(R=Hv4(r,R)),R&&_.MJ(r,R),y?_.wv(r):_.Qe(r))};
_.wv=function(W,l,V,f,r,R,y,P){R=R===void 0?{}:R;R.name=V||_.M4("INNERTUBE_CONTEXT_CLIENT_NAME",1);R.version=f||_.M4("INNERTUBE_CONTEXT_CLIENT_VERSION");V=R;l=l===void 0?"ERROR":l;y=y===void 0?!1:y;l=l===void 0?"ERROR":l;y=y===void 0?!1:y;if(W&&(W.hasOwnProperty("level")&&W.level&&(l=W.level),_.U("console_log_js_exceptions")&&(f=[],f.push("Name: "+W.name),f.push("Message: "+W.message),W.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(W.params)),W.hasOwnProperty("args")&&f.push("Error args: "+
JSON.stringify(W.args)),f.push("File name: "+W.fileName),f.push("Stacktrace: "+W.stack),f=f.join("\n"),window.console.log(f,W)),!(bvU>=5))){f=[];r=_.L(ppj);for(R=r.next();!R.done;R=r.next()){R=R.value;try{R()&&f.push(R())}catch(X){}}f=[].concat(_.QK(owU),_.QK(f));var n=j$F(W);r=n.message||"Unknown Error";R=n.name||"UnknownError";var B=n.stack||W.stacktrace||"Not available";if(B.startsWith(R+": "+r)){var d=B.split("\n");d.shift();B=d.join("\n")}d=n.lineNumber||"Not available";n=n.fileName||"Not available";
var J=0;if(W.hasOwnProperty("args")&&W.args&&W.args.length)for(var D=0;D<W.args.length&&!(J=uyg(W.args[D],"params."+D,V,J),J>=500);D++);else if(W.hasOwnProperty("params")&&W.params){var u=W.params;if(typeof W.params==="object")for(D in u){if(u[D]){var H="params."+D,p=kY(u[D]);V[H]=p;J+=H.length+p.length;if(J>500)break}}else V.params=kY(u)}if(f.length)for(D=0;D<f.length&&!(J=uyg(f[D],"params.context."+D,V,J),J>=500);D++);navigator.vendor&&!V.hasOwnProperty("vendor")&&(V["device.vendor"]=navigator.vendor);
D={message:r,name:R,lineNumber:d,fileName:n,stack:B,params:V,sampleWeight:1};V=Number(W.columnNumber);isNaN(V)||(D.lineNumber=D.lineNumber+":"+V);if(W.level==="IGNORED")W=0;else a:{W=Iyz();V=_.L(W.messageWeights);for(f=V.next();!f.done;f=V.next())if(f=f.value,D.message&&D.message.match(f.messageRegExp)){W=f.weight;break a}W=_.L(W.callbackWeights);for(V=W.next();!V.done;V=W.next())if(V=V.value,V.callback(D)){W=V.weight;break a}W=1}D.sampleWeight=W;W=_.L(iv4);for(V=W.next();!V.done;V=W.next())if(V=
V.value,V.patternsForType[D.name])for(r=_.L(V.patternsForType[D.name]),f=r.next();!f.done;f=r.next())if(R=f.value,f=D.message.match(R.regexp)){D.params["params.error.original"]=f[0];r=R.groups;R={};for(d=0;d<r.length;d++)R[r[d]]=f[d+1],D.params["params.error."+r[d]]=f[d+1];D.message=V.messageFn(R);break}D.params||(D.params={});W=Iyz();D.params["params.errorServiceSignature"]="msg="+W.messageWeights.length+"&cb="+W.callbackWeights.length;D.params["params.serviceWorker"]="false";_.rS.document&&_.rS.document.querySelectorAll&&
(D.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Zx(mB6,"sample")).constructor!==Zx&&(D.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(D);if(D.sampleWeight!==0&&!Xpn.has(D.message)){if(y&&_.U("web_enable_error_204"))TH4(l===void 0?"ERROR":l,D);else{l=l===void 0?"ERROR":l;l==="ERROR"?(wp4.publish("handleError",D),_.U("record_app_crashed_web")&&Ay8===0&&D.sampleWeight===1&&(Ay8++,y={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.U("report_client_error_with_app_crash_ks")||(y.systemHealth={crashData:{clientError:{logMessage:{message:D.message}}}}),_.XC("appCrashed",y)),Q$z++):l==="WARNING"&&wp4.publish("handleWarning",D);if(_.U("kevlar_gel_error_routing")){y=l;P=P===void 0?{}:P;b:{W=_.L(MJg);for(V=W.next();!V.done;V=W.next())if(QS(V.value.toLowerCase())){W=!0;break b}W=!1}if(W)P=void 0;else{V={stackTrace:D.stack};D.fileName&&(V.filename=D.fileName);W=D.lineNumber&&D.lineNumber.split?D.lineNumber.split(":"):[];W.length!==
0&&(W.length!==1||isNaN(Number(W[0]))?W.length!==2||isNaN(Number(W[0]))||isNaN(Number(W[1]))||(V.lineNumber=Number(W[0]),V.columnNumber=Number(W[1])):V.lineNumber=Number(W[0]));W={level:"ERROR_LEVEL_UNKNOWN",message:D.message,errorClassName:D.name,sampleWeight:D.sampleWeight};y==="ERROR"?W.level="ERROR_LEVEL_ERROR":y==="WARNING"&&(W.level="ERROR_LEVEL_WARNNING");V={isObfuscated:!0,browserStackInfo:V};P.pageUrl=window.location.href;P.kvPairs=[];_.M4("FEXP_EXPERIMENTS")&&(P.experimentIds=_.M4("FEXP_EXPERIMENTS"));
f=_.M4("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!HN8("web_disable_gel_stp_ecatcher_killswitch")&&f)for(r=_.L(Object.keys(f)),R=r.next();!R.done;R=r.next())R=R.value,P.kvPairs.push({key:R,value:String(f[R])});if(f=D.params)for(r=_.L(Object.keys(f)),R=r.next();!R.done;R=r.next())R=R.value,P.kvPairs.push({key:"client."+R,value:String(f[R])});f=_.M4("SERVER_NAME");r=_.M4("SERVER_VERSION");f&&r&&(P.kvPairs.push({key:"server.name",value:f}),P.kvPairs.push({key:"server.version",value:r}));P={errorMetadata:P,
stackTrace:V,logMessage:W}}P&&(_.XC("clientError",P),(y==="ERROR"||_.U("errors_flush_gel_always_killswitch"))&&_.Ts())}_.U("suppress_error_204_logging")||TH4(l,D)}try{Xpn.add(D.message)}catch(X){}bvU++}}};
TH4=function(W,l){var V=l.params||{};W={urlParams:{a:"logerror",t:"jserror",type:l.name,msg:l.message.substr(0,250),line:l.lineNumber,level:W,"client.name":V.name},postParams:{url:_.M4("PAGE_NAME",window.location.href),file:l.fileName},method:"POST"};V.version&&(W["client.version"]=V.version);if(W.postParams){l.stack&&(W.postParams.stack=l.stack);l=_.L(Object.keys(V));for(var f=l.next();!f.done;f=l.next())f=f.value,W.postParams["client."+f]=V[f];if(V=_.M4("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(l=
_.L(Object.keys(V)),f=l.next();!f.done;f=l.next())f=f.value,W.postParams[f]=V[f];(V=_.M4("LAVA_VERSION"))&&(W.postParams["lava.version"]=V);V=_.M4("SERVER_NAME");l=_.M4("SERVER_VERSION");V&&l&&(W.postParams["server.name"]=V,W.postParams["server.version"]=l)}_.Dj(_.M4("ECATCHER_REPORT_HOST","")+"/error_204",W)};
_.Zvn=function(W,l){l=l===void 0?"ERROR":l;var V=V===void 0?{}:V;var f=_.Y2("ytbin.polymer.shared.lib.tampering.info");f&&(f=f())&&(V["params.tamperingInfo"]=f.sort().join(","));_.wv(W,l,void 0,void 0,!0,V)};
_.MJ=function(W){var l=_.xk.apply(1,arguments);W.args||(W.args=[]);Array.isArray(W.args)&&W.args.push.apply(W.args,_.QK(l))};
OvU=function(W){W.level="IGNORED"};
ay8=function(W,l){owU.push(W);l();owU.pop()};
ao=function(W,l){for(var V in l)l.hasOwnProperty(V)&&(W=_.OL(W,V,l[V]));return W};
_.zPv=function(W,l,V){V=V===void 0?!1:V;if(!W)return null;if(W.adInfoDialogEndpoint||W.backstageImageUploadEndpoint||W.confirmDialogEndpoint||W.clientActionEndpoint||W.createBackstagePostDialogEndpoint||W.createCommentReplyDialogEndpoint||W.flowEndpoint||W.guideBuilderEndpoint||W.liveChatDialogEndpoint||W.modalEndpoint||W.openPopupAction||W.shareEndpoint||W.shareEntityEndpoint||W.showLiveChatItemEndpoint||W.subscriptionManagerEndpoint||W.unlimitedCreateFamilyEndpoint||W.unlimitedFamilyFlowEndpoint||
W.updateCommentDialogEndpoint||W.updateCommentReplyDialogEndpoint||W.userFeedbackEndpoint||W.videoEditorEndpoint||W.ypcCancelSurveyEndpoint)return l=_.yS("polymer_report_client_url_requested_rate"),!V&&Math.random()<l&&_.Qe(new _.bP("urlForEndpoint used on client endpoint",W)),null;var f=_.yS("polymer_report_missing_web_navigation_endpoint_rate");if(W.liveChatEndpoint||W.liveChatReplayEndpoint)f=0;if(!W.commandMetadata&&!W.clickTrackingParams&&Math.random()<f){var r={},R;for(R in W)r[R]="1";_.Qe(new _.bP("Missing navigation data",
r))}r="";if(W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.url)r=W.commandMetadata.webCommandMetadata.url;else if(W.searchEndpoint)Math.random()<f&&_.Qe(new _.bP("Should not manually handle search",W)),r="/results?search_query="+encodeURIComponent(W.searchEndpoint.query).replace(/%20/g,"+"),W.searchEndpoint.params&&(r+="&sp="+W.searchEndpoint.params);else if(W.watchEndpoint)Math.random()<f&&_.Qe(new _.bP("Should not manually handle watch",W)),r="/watch?v="+
W.watchEndpoint.videoId,W.watchEndpoint.playlistId&&(r+="&list="+W.watchEndpoint.playlistId),W.watchEndpoint.index&&(r+="&index="+W.watchEndpoint.index),W.watchEndpoint.startTimeSeconds&&(r+="&t="+W.watchEndpoint.startTimeSeconds);else if(W.browseEndpoint)f=W.browseEndpoint.browseId,(R=W.browseEndpoint.canonicalBaseUrl)?r=R:f&&(r=f.substr(0,2),r=r==="FE"?f==="FEwhat_to_watch"?"/":f==="FEmy_videos"?"/my_videos":"/feed/"+f.substr(2):r==="VL"?"/playlist?list="+f.substr(2):"/channel/"+f),r&&W.browseEndpoint.query&&
(r=ao(r+"/search",{query:W.browseEndpoint.query})),r&&W.browseEndpoint.params&&(r=ao(r,{params:W.browseEndpoint.params}));else{if(W.urlEndpoint)return W.urlEndpoint.url;W.signInEndpoint?(r="https://accounts.google.com/ServiceLogin",f={},_.MC.extend(f,l||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),l=f):W.uploadEndpoint?r="//www.youtube.com/upload":W.liveChatEndpoint?(r=W.liveChatEndpoint,f=_.MC.clone(r),_.ev(r.continuation)&&(R=Object.keys(r.continuation)[0],
f.continuation=r.continuation[R].continuation),r=ao("/youtubei/v1/live_chat/get_live_chat",f)):W.liveChatReplayEndpoint?(r=_.MC.clone(W.liveChatReplayEndpoint),r.currentPlayerState&&(_.MC.extend(r,r.currentPlayerState),delete r.currentPlayerState),r=ao("/youtubei/v1/live_chat/get_live_chat_replay",r)):W.liveChatItemContextMenuEndpoint?r=ao("/youtubei/v1/live_chat/get_item_context_menu",W.liveChatItemContextMenuEndpoint):W.liveChatPurchaseMessageEndpoint?r=ao("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
W.liveChatPurchaseMessageEndpoint):W.openSuperStickerBuyFlowCommand?r=ao("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",W.openSuperStickerBuyFlowCommand):W.videoEditEndpoint?r=ao("/edit",{video_id:W.videoEditEndpoint.videoId}):W.liveDashboardEndpoint?r=W.liveDashboardEndpoint.videoId?ao("/live_dashboard",{v:W.liveDashboardEndpoint.videoId}):"/live_dashboard":W.signalNavigationEndpoint&&W.signalNavigationEndpoint.signal&&W.signalNavigationEndpoint.signal==="WEBCAM"?r="/webcam":W.getPdgBuyFlowCommand&&
(r=ao(W.getPdgBuyFlowCommand.buyflowApiPath,{params:W.getPdgBuyFlowCommand.params}))}return r||V?ao(r,l||{}):(_.Qe(new _.bP("Error: Can't construct url for endpoint","keys:"+Object.keys(W).sort().join(","),W)),null)};
NHY=function(W){if(W){if(W.browseEndpoint)return!!W.browseEndpoint.nofollow;if(W.watchEndpoint)return!!W.watchEndpoint.nofollow;if(W.urlEndpoint)return!!W.urlEndpoint.nofollow}return!1};
_.xBn=function(W,l){var V=l+W,f=Y_S.get(V);if(f)return f;W=l+"-"+W.replace(/([A-Z])/g,"-$1").toLowerCase();Y_S.set(V,W);return W};
ePg=function(W){var l=_.T3(W,"action")||_.T3(W,"command")||_.T3(W,"endpoint");if(!l)return null;l=_.xBn(l,"yt");_.k(W,_.zs)&&(l+="-"+_.k(W,_.zs).signal.toLowerCase().replace(/_/g,"-"));return l};
Ew6=function(W){try{var l=Object.keys(W)}catch(r){return[]}for(var V=0;V<l.length;V++){var f=l[V];if(q_z.test(f)||hPU.test(f))return S_8(W[f])}return[]};
S_8=function(W){return W.command?[W.command]:W.onExecutionAction?[W.onExecutionAction]:W.onResponseReceivedCommand?[W.onResponseReceivedCommand]:W.updateFlowCommand?[W.updateFlowCommand]:W.clientActions?W.clientActions:W.action?[W.action]:W.actions||W.commands||W.onResponseReceivedActions||W.onResponseReceivedCommands||W.onResponseReceivedEndpoints||[]};
W2z=function(W,l){l=l===void 0?!1:l;var V=_.tY().resolve(_.R0(NJ));V||(V=new $Bx,_.tY().addProvider({provide:NJ,useValue:V}));return V&&W&&!_.MC.isEmpty(W)?V.getUrl(W,l):""};
lpz=function(W,l,V){V=V===void 0?"":V;if(l){W.data=l;var f=W2z(l);f?(hO(W,f),NHY(l)||!f7(f)?W.rel="nofollow":W.removeAttribute("rel"),_.k(l,_.x_)&&_.k(l,_.x_).target==="TARGET_NEW_WINDOW"?W.target="_blank":V?W.target=V:W.removeAttribute("target")):(W.removeAttribute("href"),W.removeAttribute("rel"),W.removeAttribute("target"))}};
_.$_=function(W,l){var V=r9;if(jm())V$U(W,function(){var R=_.xk.apply(0,arguments);Q_(V,function(){l.apply(null,_.QK(R))})});
else{var f=_.eC.getInstance(),r=vuJ(l);Pjv(function(){r.value=l});
_.mw(function(){var R={},y=_.qJ(f,(R[W]=function(){var P=_.xk.apply(0,arguments);Q_(V,function(){r.value.apply(r,_.QK(P))})},R));
return function(){var P={};_.EL(f,(P[W]="",P),y)}})}};
_.WS=function(W,l){return fpx(W,!1,l)};
_.lN=function(W,l){return fpx(W,!0,l)};
fpx=function(W,l,V){return jm()?r$F(W,l,V):R2z(W,l,V)};
R2z=function(W,l,V){return XW(function(){return r$F(W,l,V)})};
r$F=function(W,l,V){var f=sgz(function(r){f.value=r;var R=function(){var y=nW(null);try{return V==null?void 0:V(r)}finally{nW(y)}}();
return function(){R==null||R()}});
f.__expectedTagName=W;f.__optional=l;f.isIdom=!jm();return f};
t$6=function(W){var l=r9,V=pW;return{getFn:function(){return function(f){l.isDisposed||iW(function(){return d9(function(){return W(f)})},V)!==!0&&f.stopPropagation()}}}};
V6=function(W){if(typeof W.children==="function")return W.children(),null;W=_.L(W.children);for(var l=W.next();!l.done;l=W.next())l=l.value,l();return null};
spv=function(W){var l;return((l=W.prototype)==null?void 0:l.render)===void 0};
L2J=function(W){return W.items.map(W.children)};
_.g14=function(W,l,V){V=V===void 0?!1:V;iW(function(){return y$U(W,l,V)})};
y$U=function(W,l,V){var f=null;Fc++;V=(V===void 0?0:V)?PEq:n18;try{f=V(W,function(){fj(l)}),bW(!1)}catch(r){throw bW(!0),r;
}return f===null?W:f};
fj=function(W){if(W!==void 0&&W!==null)if(W instanceof uz)for(var l=q_;h4()!=null&&YCz in h4()&&l.contains(h4());)$W();else if(Array.isArray(W))for(l=_.L(W),W=l.next();!W.done;W=l.next())fj(W.value);else if(W instanceof Iv||W instanceof PG||"function"==typeof _.tC&&W instanceof _.tC)Yun(W.toString());else if(_.gK(W)){if(h4()!==W){var V,f;l=(f=(V=pW)==null?void 0:V.name)!=null?f:"unknown";throw Error("hc`"+W.tagName+"`"+l);}$W()}else if(W!=null&&W.contentKind===Cp||W instanceof Se||Ltz(W))for(l=gGS(W),
l=Array.from(l.childNodes),l=_.L(l),W=l.next();!W.done;W=l.next())q_.appendChild(W.value),$W();else if(QP(W)&&(W=W.toString()),V=typeof W,V==="boolean"||V==="number"||V==="string")Yun(W);else if(typeof W==="function"){l=q_;var r=h4();r&&(r._isSignalTextNode||r._isSafeOrSanitizedHtmlNode)||Tcx(l,r,W);$W()}else if(W.type===L2J)fj(W.type(Object.assign({},W.props,{children:W.children[0]})));else{HP.beforeVisit(W);if(typeof W.type==="string"){a:{W.__open||wSv(W.type,W.props.idomKey);r=q_;for(l in W.props)if(W.props[l]!==
CEJ){var R=W.props[l];V=Vj;V.push(l);V.push(R)}l=y_.attributes;l=l===void 0?r6:l;R=q_;V=YW(R);N6z(R,V,l);XjF(r,W.props,!0);if((W.props.skip||W.props.skipchildren)&&q_.hasChildNodes())Q_4();else{if(W.type==="style"&&Dc4(W.children)===null){Q_4();l=void 0;break a}fj(W.children)}AHj();W.__open&&(W.__open=!1);WtS(r,W.props);l=r}return l}if(W.type===_.Lp)fj(W.children);else if(!c$q(W)){l=W;try{BC4(l)}catch(y){W=y,(R=y_.handleError)==null||R.call.apply(R,[y_].concat(_.QK(M_(W,(r=l.type)==null?void 0:r.TAG_NAME))))}l.__open&&
(AHj(),l.__open=!1)}}};
drJ=function(W,l){var V;spv(W)?V=new Kp(l,W):V=new W(l);V.__type=W;V.__updateContext={nextState:V.state,isForced:!1};return V};
BC4=function(W){var l=W.type,V=l.TAG_NAME;if(l===V6)W.props.children=W.children,l(W.props);else{W.children.length>0&&(W.props.children=W.children);var f;(f=W.props).idomKey||(f.idomKey=l);if(V){var r=wSv(V,W.props.idomKey);W.__open=!0;var R=r.__instance}R||(R=drJ(l,W.props),R.props=null,r&&(r.__instance=R,R.el=r));var y;V=((y=R.__updateContext)!=null?y:{nextState:R.state,isForced:!1}).nextState;R.__updateContext=void 0;l.getDerivedStateFromProps&&(V=l.getDerivedStateFromProps(W.props,V));R.props=
W.props;R.state=V;y=function(){var P=R;HP.beforeRender(P);var n=P.render(P.props);HP.afterRender(P,n);n?(P.props.idomKey&&(n.props.idomKey=P.props.idomKey),P=n):P=void 0;if(n=P)if(n.__open=W.__open,P=fj(n),W.__open=n.__open,!l.TAG_NAME)if(P)l.TAG_NAME=P.tagName.toLowerCase(),P.__instance=R,R.el=P;else{var B;if((B=R.hooks)==null?0:B.length){var d;(d=y_.handleError)==null||d.call.apply(d,[y_].concat(_.QK(M_(Error("od")))))}}R.didPatch();HP.didPatch(R)};
(V=R.functionComponent)?Vng(V,y,R.props.debugInstance):y()}};
c$q=function(W){var l=W.type;if(!spv(l)||l===V6||l.componentType===_.oi)return!1;W.props.children=W.children.length>1?W.children:W.children[0];var V,f=(V=W.props.idomKey)!=null?V:W.type,r;if(h4()&&((r=h4()[dK])==null?void 0:r.key)===f){var R=h4(),y=R[dK];if(!y)throw Error("gc`"+R.tagName);var P;(P=y.updateSignalsFromIdomProps)==null||P.call(y,W.props);J$v(y);return!0}if(Dr8.has(l.name))throw P=l.name,l=(y=(R=pW)==null?void 0:R.name)!=null?y:"unknown",Error("fc`"+P+"`"+l);MQz(W.type,W.props,W.children);
W.props.renderedFromIdom=!0;(P=Vng(W.type,function(){return pj8(W.type,W.props)},W.props.debugInstance))&&Urz(P);
return!0};
uJS=function(W){for(var l=0;l<UJ(W).length;l++)$W()};
J$v=function(W){var l=kbq();if(l)uJS(l);else for(var V=0;V<W.numNodes;V++)(l=kbq())?uJS(l):$W()};
kbq=function(){var W;return(W=h4()[dK])==null?void 0:W.sourceDynamicRange};
Urz=function(W){W=f0J(W);W=Array.isArray(W)?W:[W];W=_.L(W);for(var l=W.next();!l.done;l=W.next())q_.insertBefore(l.value,h4()),$W()};
R_=function(W,l){var V=r9,f=function(r){Q_(V,function(){l(r)})};
window.addEventListener(W,f,void 0);_.Xc(function(){window.removeEventListener(W,f,void 0)})};
_.su=function(W){var l=r9;return function(V){var f,r=(f=W.observer)!=null?f:_.tY().resolve(tH);f=v1j(V);var R=[];W.showOption&&R.push(r.observe(V,function(){Q_(l,function(){W.visibilityCallback(!0,V)})},W.showOption));
W.hideOption&&R.push(r.observe(V,function(){Q_(l,function(){W.visibilityCallback(!1,V)})},W.hideOption));
W.prescanOption&&W.prescanCallback&&R.push(r.observe(V,function(){Q_(l,function(){W.prescanCallback()})},W.prescanOption));
var y;f.visibilityMonitorKeys=((y=f.visibilityMonitorKeys)!=null?y:[]).concat(R)}};
v1j=function(W){var l;return(l=W.polymerController)!=null?l:W};
Gbx=function(W,l){var V=Hhz;return _.C(_.Lp,null,kdv(y_.enableLazyTsx,function(){return _.C(K2v,{id:V,value:W,children:l})},function(){var f=F28(V,W);
LW(f);f=_.Ri(f);try{return l()}finally{_.Ri(f)}}))};
K2v=function(W){var l=W.children;W=F28(W.id,W.value);LW(W);W=_.Ri(W);try{return _.C(_.Lp,null,k2(l()))}finally{_.Ri(W)}};
F28=function(W,l){return Object.assign(Object.create(bh4),{id:W,contextValue:l})};
pfY=function(W){var l,V=r9;_.A4(function(){var f=_.Ri(V),r=yj(!l);try{if(l)_.g14(l,W.children(),!0);else if(l=k2(W.children()),!(l instanceof Element))throw Error("pd");}finally{yj(r),_.Ri(f)}});
return l};
_.o1U=function(W,l){var V;l=T_(function(){var f=yj(!0);Fc++;try{V=UJ(W()),bW(!1)}catch(r){throw bW(!0),r;}finally{yj(f)}},l===void 0?!1:l);
return[V,l]};
IpY=function(W){var l=new jpx;l.abort(W);return l.signal};
ihY=function(){if(this.aborted){var W;throw(W=this.reason)!=null?W:new DOMException("signal is aborted without reason","AbortError");}};
TCS=function(W){var l=new jpx;W=_.L(W);for(var V=W.next();!V.done;V=W.next())if(V=V.value,V.aborted){l.abort(V.reason);break}else mrU.set(l.signal,l),Xfj.add(V,l.signal);return l.signal};
wfz=function(){for(var W=_.L(Xfj.get(this)),l=W.next();!l.done;l=W.next())mrU.get(l.value).abort(this.reason)};
A$g=function(W){var l=new jpx;setTimeout(function(){l.abort(new DOMException("signal timed out","TimeoutError"))},W);
return l.signal};
M$8=function(W){W=W.buf.charCodeAt(W.pos++);return Qpv[W]};
Lj=function(W){var l=0,V=0;do{var f=M$8(W);l|=(f&31)<<V;V+=5}while(f&32);return l<0?l+4294967296:l};
OhS=function(){var W=!0;W=W===void 0?!1:W;var l=l===void 0?!1:l;var V=V===void 0?{}:V;var f=V.cssRowKey||"",r=V.combinedSignature||"";!f&&window&&window._F_cssRowKey&&(f=window._F_cssRowKey,!r&&window._F_combinedSignature&&(r=window._F_combinedSignature));if(f&&typeof window._F_installCss!=="function")throw Error("yd");var R=V.loaderClass||_.y6,y=ORv("base-js");W=new R(cLg(zj4("",y)),f,r,W,l);l=V.useCors||y&&y.hasAttribute("crossorigin");y=V.corsMode||y&&y.getAttribute("crossorigin");l&&(W.useCors_=
l);y&&(W.corsMode_=y);V.urlMaxLength&&(W.urlMaxLength=V.urlMaxLength);V.fetchPriority&&(W.fetchPriority=V.fetchPriority);var P=Q7();P.JSC$10048_loader_=W;P.setBatchModeEnabled(!0);_.Zhq=function(n){return Promise.resolve(P.load(n))}};
NCq=function(W,l,V){apF(W,l);W[l][z2J].unshift(V)};
apF=function(W,l){if(!W[l]||!W[l][z2J]){var V=W[l],f=V?[V]:[];W[l]=function(){for(var r=_.L(f),R=r.next();!R.done;R=r.next())R.value.apply(this,arguments)};
W[l][z2J]=f}};
YgU=function(W){if(!W)return[];var l=[];W=_.L(W);for(var V=W.next();!V.done;V=W.next())V=V.value,Array.isArray(V)?l.push.apply(l,_.QK(YgU(V))):l.push(V);return l};
_.PS=function(W,l){if(W&&xrq.test(W)||W==="//")return W;if(e2F===void 0){e2F=!1;try{var V=new URL("b","http://a");V.pathname="c%20d";e2F=V.href==="http://a/c%20d"}catch(f){}}l||(l=document.baseURI||window.location.href);if(e2F)try{return(new URL(W,l)).href}catch(f){return W}g6||(g6=document.implementation.createHTMLDocument("temp"),g6.base=g6.createElement("base"),g6.head.appendChild(g6.base),g6.anchor=g6.createElement("a"),g6.body.appendChild(g6.anchor));g6.base.href=l;g6.anchor.href=W;return g6.anchor.href||
W};
h2j=function(W,l){return W.replace(qgz,function(V,f,r,R){return f+"'"+_.PS(r.replace(/["']/g,""),l)+"'"+R})};
Sgz=function(W){return W.substring(0,W.lastIndexOf("/")+1)};
WHj=function(){E1U=!1;for(var W=nj.length,l=0;l<W;l++){var V=nj[l];if(V)try{V()}catch(f){setTimeout(function(){throw f;})}}nj.splice(0,W);
$rJ+=W};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(W){console.log("["+W.is+"]: registered")};
Vlv=function(W){lmv.push(W)};
Cj=function(W){return fmF[W]||(fmF[W]=W.indexOf("-")<0?W:W.replace(rmJ,function(l){return l[1].toUpperCase()}))};
cS=function(W){return fmF[W]||(fmF[W]=W.replace(RDU,"-$1").toLowerCase())};
tl4=function(W,l){var V=l.parentInfo&&tl4(W,l.parentInfo);if(V)for(W=V.firstChild,V=0;W;W=W.nextSibling){if(l.parentIndex===V++)return W}else return W};
smF=function(W,l){W=W._methodHost||W;return function(V){if(W[l])W[l](V,V.detail);else console.warn("listener method `"+l+"` not defined")}};
BS=function(W){return W.indexOf(".")>=0};
d6=function(W){var l=W.indexOf(".");return l===-1?W:W.slice(0,l)};
LHS=function(W,l){return W.indexOf(l+".")===0};
JH=function(W,l){return l.indexOf(W+".")===0};
D5=function(W,l,V){return l+V.slice(W.length)};
ymg=function(W,l){return W===l||LHS(W,l)||JH(W,l)};
Uu=function(W){if(Array.isArray(W)){for(var l=[],V=0;V<W.length;V++)for(var f=W[V].toString().split("."),r=0;r<f.length;r++)l.push(f[r]);return l.join(".")}return W};
gPF=function(W){return Array.isArray(W)?Uu(W).split("."):W.toString().split(".")};
uN=function(W,l,V){l=gPF(l);for(var f=0;f<l.length;f++){if(!W)return;W=W[l[f]]}V&&(V.path=l.join("."));return W};
P4J=function(W,l,V){var f=gPF(l),r=f[f.length-1];if(f.length>1){for(l=0;l<f.length-1;l++)if(W=W[f[l]],!W)return;W[r]=V}else W[l]=V;return f.join(".")};
nPv=function(W,l,V){var f=W[l];if(!f)f=W[l]={};else if(!W.hasOwnProperty(l)&&(f=W[l]=Object.create(W[l]),V))for(var r in f)for(W=f[r],l=f[r]=Array(W.length),V=0;V<W.length;V++)l[V]=W[V];return f};
vS=function(W,l,V,f,r,R){if(l){var y=!1,P=kB++,n;for(n in V){var B=r?d6(n):n;if(B=l[B])for(var d=0,J=B.length,D=void 0;d<J&&(D=B[d]);d++)D.info&&D.info.lastRun===P||r&&!C4z(n,D.trigger)||(D.info&&(D.info.lastRun=P),D.fn(W,n,V,f,D.info,r,R),y=!0)}return y}return!1};
C4z=function(W,l){if(l){var V=l.name;return V==W||!(!l.structured||!LHS(V,W))||!(!l.wildcard||!JH(V,W))}return!0};
cm6=function(W,l,V,f,r){l=typeof r.method==="string"?W[r.method]:r.method;V=r.property;l?l.call(W,W.__data[V],f[V]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")};
Bl4=function(W,l,V,f){V={value:V,queueProperty:!0};f&&(V.path=f);(0,_.HS)(W).dispatchEvent(new CustomEvent(l,{detail:V}))};
dPF=function(W,l,V,f,r,R){R=(f=(R?d6(l):l)!=l?l:null)?uN(W,f):W.__data[l];f&&R===void 0&&(R=V[l]);Bl4(W,r.eventName,R,f)};
JmF=function(W,l,V,f,r){V=W.__data[l];Kj&&(V=Kj(V,r.attrName,"attribute",W));W._propertyToAttribute(l,r.attrName,V)};
UP8=function(W){var l=W.constructor.__orderedComputedDeps;if(!l){l=new Map;for(var V=W.__computeEffects,f=DP4(W),r=f.counts,R=f.ready,y=f.total;f=R.shift();)l.set(f,l.size),(f=V[f])&&f.forEach(function(P){P=P.info.methodInfo;--y;--r[P]===0&&R.push(P)});
y!==0&&console.warn("Computed graph for "+W.localName+" incomplete; circular?");W.constructor.__orderedComputedDeps=l}return l};
DP4=function(W){var l=W.__computeInfo,V={};W=W.__computeEffects;var f=[],r=0,R;for(R in l){var y=l[R];r+=V[R]=y.args.filter(function(n){return!n.literal}).length+(y.dynamicFn?1:0)}for(var P in W)l[P]||f.push(P);
return{counts:V,ready:f,total:r}};
kkz=function(W,l,V,f,r){l=uAq(W,l,V,f,r);if(l===FL)return!1;r=r.methodInfo;if(W.__dataHasAccessor&&W.__dataHasAccessor[r])return W._setPendingProperty(r,l,!0);W[r]=l;return!1};
KHj=function(W,l,V,f,r,R,y){V.bindings=V.bindings||[];f={kind:f,target:r,parts:R,literal:y,isCompound:R.length!==1};V.bindings.push(f);f.target&&f.kind!="attribute"&&f.kind!="text"&&!f.isCompound&&f.parts[0].mode==="{"&&(V=f.parts[0],R=V.negate,f.listenerEvent=V.event||cS(r)+"-changed",f.listenerNegate=R);r=l.nodeInfoList.length;for(V=0;V<f.parts.length;V++){var P=f.parts[V];P.compoundIndex=V;R=W;y=l;var n=f,B=P,d=r;if(!B.literal)if(n.kind==="attribute"&&n.target[0]==="-")console.warn("Cannot set attribute "+
n.target+' because "-" is not a valid attribute starting character');else for(P=B.dependencies,n={index:d,binding:n,part:B,evaluator:R},B=0;B<P.length;B++)d=P[B],typeof d=="string"&&(d=vPU(d),d.wildcard=!0),R._addTemplatePropertyEffect(y,d.rootProperty,{fn:Htv,info:n,trigger:d})}};
Htv=function(W,l,V,f,r,R,y){y=y[r.index];var P=r.binding,n=r.part;R&&n.source&&l.length>n.source.length&&P.kind=="property"&&!P.isCompound&&y.__isPropertyEffectsClient&&y.__dataHasAccessor&&y.__dataHasAccessor[P.target]?(V=V[l],l=D5(n.source,P.target,l),y._setPendingPropertyOrPath(l,V,!1,!0)&&W._enqueueClient(y)):(l=r.evaluator._evaluateBinding(W,n,l,V,f,R),l!==FL&&(P.isCompound&&(V=y.__dataCompoundStorage[P.target],V[n.compoundIndex]=l,l=V.join("")),P.kind==="attribute"||P.target!=="textContent"&&
(P.target!=="value"||y.localName!=="input"&&y.localName!=="textarea")||(l=l==void 0?"":l),n=l,Kj&&(n=Kj(n,P.target,P.kind,y)),P.kind=="attribute"?W._valueToNodeAttribute(y,n,P.target):(P=P.target,y.__isPropertyEffectsClient&&y.__dataHasAccessor&&y.__dataHasAccessor[P]?y.__readOnly&&y.__readOnly[P]||y._setPendingProperty(P,n)&&W._enqueueClient(y):W._setUnmanagedPropertyToNode(y,P,n))))};
FHz=function(W,l,V){if(V.listenerEvent){var f=V.parts[0];W.addEventListener(V.listenerEvent,function(r){var R=V.target,y=f.source,P=f.negate,n=r.detail,B=n&&n.path;B?(y=D5(R,y,B),r=n&&n.value):r=r.currentTarget[R];l.__readOnly&&l.__readOnly[y]||!l._setPendingPropertyOrPath(y,P?!r:r,!0,!!B)||n&&n.queueProperty||l._invalidateProperties()})}};
Gkg=function(W,l,V,f,r,R){R=l.static||R&&(typeof R!=="object"||R[l.methodName]);r={methodName:l.methodName,args:l.args,methodInfo:r,dynamicFn:R};for(var y=0,P=void 0;y<l.args.length&&(P=l.args[y]);y++)P.literal||W._addPropertyEffect(P.rootProperty,V,{fn:f,info:r,trigger:P});R&&W._addPropertyEffect(l.methodName,V,{fn:f,info:r});return r};
uAq=function(W,l,V,f,r){f=W._methodHost||W;var R=f[r.methodName];if(R)return W=W._marshalArgs(r.args,l,V),W===FL?FL:R.apply(f,W);r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")};
btj=function(W){for(var l="",V=0;V<W.length;V++)l+=W[V].literal||"";return l};
jmn=function(W){if(W=W.match(/([^\s]+?)\(([\s\S]*)\)/)){var l={methodName:W[1],static:!0,args:p06};return W[2].trim()?oPU(W[2].replace(/\\,/g,"&comma;").split(","),l):l}return null};
oPU=function(W,l){l.args=W.map(function(V){V=vPU(V);V.literal||(l.static=!1);return V},this);
return l};
vPU=function(W){W=W.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var l={name:W,value:"",literal:!1},V=W[0];V==="-"&&(V=W[1]);V>="0"&&V<="9"&&(V="#");switch(V){case "'":case '"':l.value=W.slice(1,-1);l.literal=!0;break;case "#":l.value=Number(W),l.literal=!0}l.literal||(l.rootProperty=d6(W),l.structured=BS(W),l.structured&&(l.wildcard=W.slice(-2)==".*",l.wildcard&&(l.name=W.slice(0,-2))));return l};
Img=function(W,l,V){W=uN(W,V);W===void 0&&(W=l[V]);return W};
itF=function(W,l,V,f){f={indexSplices:f};Gi&&!W._overrideLegacyUndefined&&(l.splices=f);W.notifyPath(V+".splices",f);W.notifyPath(V+".length",l.length);Gi&&!W._overrideLegacyUndefined&&(f.indexSplices=[])};
bN=function(W,l,V,f,r,R){itF(W,l,V,[{index:f,addedCount:r,removed:R,object:l,type:"splice"}])};
mPz=function(W){W=h2j((W.body?W.body:W).textContent,W.baseURI);var l=document.createElement("style");l.textContent=W;return l};
Tlx=function(W){W=W.trim().split(/\s+/);for(var l=[],V=0;V<W.length;V++)l.push.apply(l,_.QK(X0q(W[V])));return l};
X0q=function(W){var l=pj.import(W);if(!l)return console.warn("Could not find style data in module named",W),[];if(l._styles===void 0){W=[];W.push.apply(W,_.QK(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(l)));var V=l.querySelector("template");V&&W.push.apply(W,_.QK(w06(V,l.assetpath)));l._styles=W}return l._styles};
w06=function(W,l){if(!W._styles){for(var V=[],f=W.content.querySelectorAll("style"),r=0;r<f.length;r++){var R=f[r],y=R.getAttribute("include");y&&V.push.apply(V,_.QK(Tlx(y).filter(function(P,n,B){return B.indexOf(P)===n})));
l&&(R.textContent=h2j(R.textContent,l));V.push(R)}W._styles=V}return W._styles};
Amq=function(W){return(W=pj.import(W))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(W){var l=[];W=W.querySelectorAll("link[rel=import][type~=css]");for(var V=0;V<W.length;V++){var f=W[V];if(f.import){var r=f.import;if((f=f.hasAttribute("shady-unscoped"))&&!r._unscopedStyle){var R=mPz(r);R.setAttribute("shady-unscoped","");r._unscopedStyle=R}else r._style||(r._style=mPz(r));l.push(f?r._unscopedStyle:r._style)}}return l};
Mln=function(W){W=W.trim().split(/\s+/);for(var l="",V=0;V<W.length;V++)l+=QmJ(W[V]);return l};
QmJ=function(W){var l=pj.import(W);if(l&&l._cssText===void 0){var V=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(l),f=l.querySelector("template");f&&(V+=Zt8(f,l.assetpath));l._cssText=V||null}l||console.warn("Could not find style data in module named",W);return l&&l._cssText||""};
Zt8=function(W,l){var V="";W=w06(W,l);for(l=0;l<W.length;l++){var f=W[l];f.parentNode&&f.parentNode.removeChild(f);V+=f.textContent}return V};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(W){var l="";W=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W);for(var V=0;V<W.length;V++)l+=W[V].textContent;return l};
o_=function(W,l){return{index:W,removed:[],addedCount:l}};
amS=function(W,l,V,f){var r=0,R=0,y=0,P=0,n=Math.min(l-r,f-R);if(r==0&&R==0)a:{for(y=0;y<n;y++)if(W[y]!==V[y])break a;y=n}if(l==W.length&&f==V.length){P=W.length;for(var B=V.length,d=0;d<n-y&&Otg(W[--P],V[--B]);)d++;P=d}r+=y;R+=y;l-=P;f-=P;if(l-r==0&&f-R==0)return[];if(r==l){for(l=o_(r,0);R<f;)l.removed.push(V[R++]);return[l]}if(R==f)return[o_(r,l-r)];n=r;y=R;f=f-y+1;P=l-n+1;l=Array(f);for(B=0;B<f;B++)l[B]=Array(P),l[B][0]=B;for(B=0;B<P;B++)l[0][B]=B;for(B=1;B<f;B++)for(d=1;d<P;d++)if(W[n+d-1]===
V[y+B-1])l[B][d]=l[B-1][d-1];else{var J=l[B-1][d]+1,D=l[B][d-1]+1;l[B][d]=J<D?J:D}n=l.length-1;y=l[0].length-1;f=l[n][y];for(W=[];n>0||y>0;)n==0?(W.push(2),y--):y==0?(W.push(3),n--):(P=l[n-1][y-1],B=l[n-1][y],d=l[n][y-1],J=B<d?B<P?B:P:d<P?d:P,J==P?(P==f?W.push(0):(W.push(1),f=P),n--,y--):J==B?(W.push(3),n--,f=B):(W.push(2),y--,f=d));W.reverse();l=void 0;n=[];for(y=0;y<W.length;y++)switch(W[y]){case 0:l&&(n.push(l),l=void 0);r++;R++;break;case 1:l||(l=o_(r,0));l.addedCount++;r++;l.removed.push(V[R]);
R++;break;case 2:l||(l=o_(r,0));l.addedCount++;r++;break;case 3:l||(l=o_(r,0)),l.removed.push(V[R]),R++}l&&n.push(l);return n};
zD8=function(W,l){return amS(W,W.length,l,l.length)};
Otg=function(W,l){return W===l};
YHg=function(W){if(W instanceof Nln)return W.value;throw Error("Gd`"+W);};
xPz=function(W,l){for(var V in l)V===null?W.style.removeProperty(V):W.style.setProperty(V,l[V])};
eD6=function(W,l){return(W=window.getComputedStyle(W).getPropertyValue(l))?W.trim():""};
EPY=function(W){requestAnimationFrame(function(){qH4?qH4(W):(hD4||(hD4=new Promise(function(l){SHg=l}),document.readyState==="complete"?SHg():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&SHg()})),hD4.then(function(){W&&W()}))})};
lbj=function(W){$PS=W&&W.shimcssproperties?!1:WZJ||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
tPv=function(W){if(!(VPv.indexOf(W)>-1)&&W!=="touchend"&&fbz&&rjU&&Rpv)return{passive:!0}};
gtU=function(W){for(var l=sQJ?["click"]:VPv,V=0,f;V<l.length;V++)f=l[V],W?(LZ6.length=0,document.addEventListener(f,yjU,!0)):document.removeEventListener(f,yjU,!0)};
I_=function(W){var l=W.type;return VPv.indexOf(l)>-1?l==="mousemove"?(l=W.buttons===void 0?1:W.buttons,W instanceof window.MouseEvent&&!PKz&&(l=ntz[W.which]||0),!!(l&1)):(W.button===void 0?0:W.button)===0:!1};
CKv=function(W){if(W.type==="click"){if(W.detail===0)return!0;var l=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);if(!l.nodeType||l.nodeType!==Node.ELEMENT_NODE)return!0;l=l.getBoundingClientRect();var V=W.pageX;W=W.pageY;return!(V>=l.left&&V<=l.right&&W>=l.top&&W<=l.bottom)}return!1};
cjF=function(W,l,V){W.movefn=l;W.upfn=V;document.addEventListener("mousemove",l);document.addEventListener("mouseup",V)};
iN=function(W){document.removeEventListener("mousemove",W.movefn);document.removeEventListener("mouseup",W.upfn);W.movefn=null;W.upfn=null};
B5j=function(W,l){for(var V=document.elementFromPoint(W,l),f=V;f&&f.shadowRoot&&!window.ShadyDOM;){var r=f;f=f.shadowRoot.elementFromPoint(W,l);if(r===f)break;f&&(V=f)}return V};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){var l=dGq(W);return l.length>0?l[0]:W.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){var l=W.type,V=W.currentTarget.__polymerGestures;if(V&&(V=V[l])){if(!W.__polymerGesturesHandled&&(W.__polymerGesturesHandled={},l.slice(0,5)==="touch")){var f=W.changedTouches[0];l==="touchstart"&&W.touches.length===1&&(Jjz=f.identifier);if(Jjz!==f.identifier)return;fbz||(l==="touchstart"||l==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W)}f=
W.__polymerGesturesHandled;if(!f.skip){for(var r=0,R;r<me.length;r++)R=me[r],V[R.name]&&!f[R.name]&&R.flow&&R.flow.start.indexOf(W.type)>-1&&R.reset&&R.reset();for(r=0;r<me.length;r++)R=me[r],V[R.name]&&!f[R.name]&&(f[R.name]=!0,R[l](W))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){var l=W.changedTouches[0],V=W.type;if(V==="touchstart")DGj=l.clientX,UGY=l.clientY,ueY=!1;else if(V==="touchmove"&&!ueY){ueY=!0;V="auto";for(var f=dGq(W),r=0,R;r<f.length;r++)if(R=f[r],R.__polymerGesturesTouchAction){V=R.__polymerGesturesTouchAction;break}f=!1;r=Math.abs(DGj-l.clientX);l=Math.abs(UGY-l.clientY);W.cancelable&&(V==="none"?f=!0:V==="pan-x"?f=l>r:V==="pan-y"&&(f=r>l));f?W.preventDefault():
XL("track")}};
w6=function(W,l,V){return Ti[l]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,l,V),!0):!1};
MS=function(W,l,V){return Ti[l]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,l,V),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W,l,V){var f=Ti[l],r=f.deps,R=f.name,y=W.__polymerGestures;y||(W.__polymerGestures=y={});for(var P=0,n,B;P<r.length;P++)n=r[P],sQJ&&VPv.indexOf(n)>-1&&n!=="click"||((B=y[n])||(y[n]=B={_count:0}),B._count===0&&W.addEventListener(n,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,tPv(n)),B[R]=(B[R]||0)+1,B._count=(B._count||0)+1);W.addEventListener(l,V);f.touchAction&&_.Z5(W,f.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W,l,V){var f=Ti[l],r=f.deps;f=f.name;var R=W.__polymerGestures;if(R)for(var y=0,P,n;y<r.length;y++)P=r[y],(n=R[P])&&n[f]&&(n[f]=(n[f]||1)-1,n._count=(n._count||1)-1,n._count===0&&W.removeEventListener(P,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,tPv(P)));W.removeEventListener(l,V)};
kyv=function(W){me.push(W);for(var l=0;l<W.emits.length;l++)Ti[W.emits[l]]=W};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){for(var l=0,V;l<me.length;l++){V=me[l];for(var f=0,r;f<V.emits.length;f++)if(r=V.emits[f],r===W)return V}return null};
_.Z5=function(W,l){fbz&&W instanceof HTMLElement&&Ou.run(function(){W.style.touchAction=l});
W.__polymerGesturesTouchAction=l};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W,l,V){l=new Event(l,{bubbles:!0,cancelable:!0,composed:!0});l.detail=V;(0,_.HS)(W).dispatchEvent(l);l.defaultPrevented&&(W=V.preventer||V.sourceEvent)&&W.preventDefault&&W.preventDefault()};
XL=function(W){W=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);W.info&&(W.info.prevent=!0)};
a_=function(W,l,V,f){l&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l,W,{x:V.clientX,y:V.clientY,sourceEvent:V,preventer:f,prevent:function(r){return XL(r)}})};
vtY=function(W,l,V){if(W.prevent)return!1;if(W.started)return!0;V=Math.abs(W.y-V);return Math.abs(W.x-l)>=5||V>=5};
H4q=function(W,l,V){if(l){var f=W.moves[W.moves.length-2],r=W.moves[W.moves.length-1],R=r.x-W.x,y=r.y-W.y,P=0;if(f){var n=r.x-f.x;P=r.y-f.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l,"track",{state:W.state,x:V.clientX,y:V.clientY,dx:R,dy:y,ddx:n,ddy:P,sourceEvent:V,hover:function(){return B5j(V.clientX,V.clientY)}})}};
FZ4=function(W,l,V){var f=Math.abs(l.clientX-W.x),r=Math.abs(l.clientY-W.y),R=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(V||l);!R||KZz[R.localName]&&R.hasAttribute("disabled")||!(isNaN(f)||isNaN(r)||f<=25&&r<=25||CKv(l))||W.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R,"tap",{x:l.clientX,y:l.clientY,sourceEvent:l,preventer:V})};
Gyq=function(W,l,V,f,r){var R;r&&(R=typeof V==="object"&&V!==null)&&(f=W.__dataTemp[l]);f=f!==V&&(f===f||V===V);R&&f&&(W.__dataTemp[l]=V);return f};
pFx=function(){if(zi&&!NS){if(!b4q){b4q=!0;var W=document.createElement("style");W.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(W)}return!0}return!1};
jQ6=function(){return otq};
Ibq=function(W,l){otq=W;Object.setPrototypeOf(W,l.prototype);new l;otq=null};
i4v=function(W,l){for(var V=0;V<l.length;V++){var f=l[V];if(!!W!=!!f.__hideTemplateChildren__)if(f.nodeType===Node.TEXT_NODE)W?(f.__polymerTextContent__=f.textContent,f.textContent=""):f.textContent=f.__polymerTextContent__;else if(f.localName==="slot")if(W)f.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.HS)((0,_.HS)(f).parentNode).replaceChild(f.__polymerReplaced__,f);else{var r=f.__polymerReplaced__;r&&(0,_.HS)((0,_.HS)(r).parentNode).replaceChild(f,r)}else f.style&&(W?(f.__polymerDisplay__=
f.style.display,f.style.display="none"):f.style.display=f.__polymerDisplay__);f.__hideTemplateChildren__=W;f._showHideChildren&&f._showHideChildren(W)}};
mG8=function(W){return(W=W.__dataHost)&&W._methodHost||W};
wF8=function(W,l,V){var f=V.mutableData?XFq:YB;xB.mixin&&(f=xB.mixin(f));var r=function(){return f.apply(this,arguments)||this};
_.v(r,f);r.prototype.__templatizeOptions=V;r.prototype._bindTemplate(W);T5U(r,W,l,V);return r};
O4Y=function(W,l,V,f){var r=V.forwardHostProp;if(r&&l.hasHostProps){var R=W.localName=="template",y=l.templatizeTemplateClass;if(!y){if(R){var P=V.mutableData?AjJ:QQx;y=function(){return P.apply(this,arguments)||this};
_.v(y,P);y=l.templatizeTemplateClass=y}else{var n=W.constructor;y=function(){return n.apply(this,arguments)||this};
_.v(y,n);y=l.templatizeTemplateClass=y}var B=l.hostProps,d;for(d in B)y.prototype._addPropertyEffect("_host_"+d,y.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:MPz(r)}),y.prototype._createNotifyingProperty("_host_"+d);en&&f&&Z4F(l,V,f)}W.__dataProto&&Object.assign(W.__data,W.__dataProto);if(R)Ibq(W,y),W.__dataTemp={},W.__dataPending=null,W.__dataOld=null,W._enableProperties();else{Object.setPrototypeOf(W,y.prototype);l=l.hostProps;for(var J in l)J="_host_"+J,J in W&&(l=W[J],delete W[J],W.__data[J]=
l)}}};
MPz=function(W){return function(l,V,f){W.call(l.__templatizeOwner,V.substring(6),f[V])}};
T5U=function(W,l,V,f){var r=V.hostProps||{},R;for(R in f.instanceProps){delete r[R];var y=f.notifyInstanceProp;y&&W.prototype._addPropertyEffect(R,W.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:abj(y)})}if(f.forwardHostProp&&l.__dataHost)for(var P in r)V.hasHostProps||(V.hasHostProps=!0),W.prototype._addPropertyEffect(P,W.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:zpx()})};
abj=function(W){return function(l,V,f){W.call(l.__templatizeOwner,l,V,f[V])}};
zpx=function(){return function(W,l,V){W.__dataHost._setPendingPropertyOrPath("_host_"+l,V[l],!0,!0)}};
xB=function(W,l,V){if(qS&&!mG8(W))throw Error("Md");V=V||{};if(W.__templatizeOwner)throw Error("Nd");W.__templatizeOwner=l;var f=(l?l.constructor:YB)._parseTemplate(W),r=f.templatizeInstanceClass;r||(r=wF8(W,f,V),f.templatizeInstanceClass=r);var R=mG8(W);O4Y(W,f,V,R);V=function(){return r.apply(this,arguments)||this};
_.v(V,r);V.prototype._methodHost=R;V.prototype.__dataHost=W;V.prototype.__templatizeOwner=l;V.prototype.__hostProps=f.hostProps;return V};
Z4F=function(W,l,V){V=V.constructor._properties;W=W.propertyEffects;l=l.instanceProps;for(var f in W)if(!(V[f]||l&&l[f]))for(var r=W[f],R=0;R<r.length;R++){var y=r[R].info.part;if(!y.signature||!y.signature.static){console.warn("Property '"+f+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
N5Y=function(W,l){for(var V;l;)if(V=l.__dataHost?l:l.__templatizeInstance)if(V.__dataHost!=W)l=V.__dataHost;else return V;else l=(0,_.HS)(l).parentNode;return null};
hH=function(W){return W.localName==="slot"};
Ylz=function(){for(var W=Sn.prototype,l="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),V={},f=0;f<l.length;V={method$jscomp$33:void 0},f++)V.method$jscomp$33=l[f],W[V.method$jscomp$33]=function(r){return function(){return this.node[r.method$jscomp$33].apply(this.node,arguments)}}(V)};
xGU=function(W,l){for(var V={},f=0;f<l.length;V={name$jscomp$448:void 0},f++)V.name$jscomp$448=l[f],Object.defineProperty(W,V.name$jscomp$448,{get:function(r){return function(){return this.node[r.name$jscomp$448]}}(V),
configurable:!0})};
ep8=function(){for(var W=Sn.prototype,l=["textContent","innerHTML","className"],V={},f=0;f<l.length;V={name$jscomp$449:void 0},f++)V.name$jscomp$449=l[f],Object.defineProperty(W,V.name$jscomp$449,{get:function(r){return function(){return this.node[r.name$jscomp$449]}}(V),
set:function(r){return function(R){this.node[r.name$jscomp$449]=R}}(V),
configurable:!0})};
qln=function(){Eu=document.documentElement.getAttribute("dir");Eu=document.documentElement.getAttribute("dir");for(var W=0;W<$B.length;W++){var l=$B[W];l.__autoDirOptOut||l.setAttribute("dir",Eu)}};
$G4=function(){Wj=!0;requestAnimationFrame(function(){Wj=!1;hpj(SlJ);setTimeout(function(){for(var W=0,l=lw.length;W<l;W++)EtU(lw.shift())})})};
hpj=function(W){for(;W.length;)EtU(W.shift())};
EtU=function(W){var l=W[0],V=W[1];W=W[2];try{V.apply(l,W)}catch(f){setTimeout(function(){throw f;})}};
_.WJj=function(W,l,V){Wj||$G4();SlJ.push([W,l,V])};
_.V9=function(W,l,V){Wj||$G4();lw.push([W,l,V])};
fh8=function(W,l){l=l===void 0?!1:l;if(!lhS||!Vgg||!lhS.handlesDynamicScoping)return null;var V=Vgg.ScopingShim;if(!V)return null;var f=V.scopeForNode(W),r=(0,_.HS)(W).getRootNode(),R=function(y){if((0,_.HS)(y).getRootNode()===r){var P=Array.from(lhS.nativeMethods.querySelectorAll.call(y,"*"));P.push(y);for(y=0;y<P.length;y++){var n=P[y];if((0,_.HS)(n).getRootNode()===r){var B=V.currentScopeForNode(n);B!==f&&(B!==""&&V.unscopeNode(n,B),V.scopeNode(n,f))}}}};
R(W);return l?(l=new MutationObserver(function(y){for(var P=0;P<y.length;P++)for(var n=y[P],B=0;B<n.addedNodes.length;B++){var d=n.addedNodes[B];d.nodeType===Node.ELEMENT_NODE&&R(d)}}),l.observe(W,{childList:!0,
subtree:!0}),l):null};
rI4=function(){document.body.removeAttribute("unresolved")};
yIS=function(W){var l=W=W.replace(REx,"").replace(tgn,""),V=new snY;V.start=0;V.end=l.length;for(var f=V,r=0,R=l.length;r<R;r++)if(l[r]==="{"){f.rules||(f.rules=[]);var y=f,P=y.rules[y.rules.length-1]||null;f=new snY;f.start=r+1;f.parent=y;f.previous=P;y.rules.push(f)}else l[r]==="}"&&(f.end=r+1,f=f.parent||V);return LJJ(V,W)};
LJJ=function(W,l){var V=l.substring(W.start,W.end-1);W.parsedCssText=W.cssText=V.trim();W.parent&&(V=l.substring(W.previous?W.previous.end:W.parent.start,W.start-1),V=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(V),V=V.replace(gR6," "),V=V.substring(V.lastIndexOf(";")+1),V=W.parsedSelector=W.selector=V.trim(),W.atRule=V.indexOf("@")===0,W.atRule?V.indexOf("@media")===0?W.type=4:V.match(PkY)&&(W.type=7,W.keyframesName=W.selector.split(gR6).pop()):V.indexOf("--")===
0?W.type=1E3:W.type=1);if(V=W.rules)for(var f=0,r=V.length,R=void 0;f<r&&(R=V[f]);f++)LJJ(R,l);return W};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(W){return W.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var l=arguments[1],V=6-l.length;V--;)l="0"+l;return"\\"+l})};
nRq=function(W,l,V){V=V===void 0?"":V;var f="";if(W.cssText||W.rules){var r=W.rules;if(r&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(r))for(var R=0,y=r.length,P=void 0;R<y&&(P=r[R]);R++)f=nRq(P,l,f);else l?l=W.cssText:(l=W.cssText,l=l.replace(CkF,"").replace(cIU,""),l=l.replace(Bej,"").replace(d7F,"")),(f=l.trim())&&(f="  "+f+"\n")}f&&(W.selector&&(V+=W.selector+" {\n"),V+=f,W.selector&&(V+="}\n\n"));return V};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(W){W=W[0];return!!W&&!!W.selector&&W.selector.indexOf("--")===0};
D7g=function(W){if(W=JI6[W])W._applyShimCurrentVersion=W._applyShimCurrentVersion||0,W._applyShimValidatingVersion=W._applyShimValidatingVersion||0,W._applyShimNextVersion=(W._applyShimNextVersion||0)+1};
U7j=function(W){return W._applyShimCurrentVersion===W._applyShimNextVersion};
kQz=function(W){W._applyShimValidatingVersion=W._applyShimNextVersion;W._validating||(W._validating=!0,uzF.then(function(){W._applyShimCurrentVersion=W._applyShimNextVersion;W._validating=!1}))};
HVF=function(W){if(!W)return"";typeof W==="string"&&(W=yIS(W));return nRq(W,vRz)};
KJF=function(W){!W.__cssRules&&W.textContent&&(W.__cssRules=yIS(W.textContent));return W.__cssRules||null};
GQ6=function(W,l,V,f){if(W){var r=!1,R=W.type;if(f&&R===4){var y=W.selector.match(FJz);y&&(window.matchMedia(y[1]).matches||(r=!0))}R===1?l(W):V&&R===7?V(W):R===1E3&&(r=!0);if((W=W.rules)&&!r)for(r=0,R=W.length,y=void 0;r<R&&(y=W[r]);r++)GQ6(y,l,V,f)}};
bVg=function(W,l){var V=W.indexOf("var(");if(V===-1)return l(W,"","","");a:{var f=0;var r=V+3;for(var R=W.length;r<R;r++)if(W[r]==="(")f++;else if(W[r]===")"&&--f===0)break a;r=-1}f=W.substring(V+4,r);V=W.substring(0,V);W=bVg(W.substring(r+1),l);R=f.indexOf(",");if(R===-1)return l(V,f.trim(),"",W);r=f.substring(0,R).trim();f=f.substring(R+1).trim();return l(V,r,f,W)};
psS=function(W){if(fX!==void 0)return fX;if(W.__cssBuild===void 0){var l=W.getAttribute("css-build");if(l)W.__cssBuild=l;else{a:{l=W.localName==="template"?W.content.firstChild:W.firstChild;if(l instanceof Comment&&(l=l.textContent.trim().split(":"),l[0]==="css-build")){l=l[1];break a}l=""}if(l!==""){var V=W.localName==="template"?W.content.firstChild:W.firstChild;V.parentNode.removeChild(V)}W.__cssBuild=l}}return W.__cssBuild||""};
jnS=function(W,l,V,f){for(var r=l._noAccessors,R=Object.getOwnPropertyNames(l),y=0;y<R.length;y++){var P=R[y];if(!(P in f))if(r)W[P]=l[P];else{var n=Object.getOwnPropertyDescriptor(l,P);n&&(n.configurable=!0,Object.defineProperty(W,P,n))}}for(var B in oRq)l[B]&&(V[B]=V[B]||[],V[B].push(l[B]))};
Ihj=function(W,l,V){l=l||[];for(var f=W.length-1;f>=0;f--){var r=W[f];r?Array.isArray(r)?Ihj(r,l):l.indexOf(r)<0&&(!V||V.indexOf(r)<0)&&l.unshift(r):console.warn("behavior is null, check for missing or 404 import")}return l};
iVz=function(W,l){for(var V in l){var f=W[V],r=l[V];W[V]=!("value"in r)&&f&&"value"in f?Object.assign({value:f.value},r):r}};
Te6=function(W,l,V){var f={},r=function(){return l.apply(this,arguments)||this};
_.v(r,l);r._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(y)for(var n=0,B;n<y.length;n++)B=y[n],B.properties&&this.createProperties(B.properties),B.observers&&this.createObservers(B.observers,B.properties);W.properties&&this.createProperties(W.properties);W.observers&&this.createObservers(W.observers,W.properties);this._prepareTemplate()}else l._finalizeClass.call(this)};
r.prototype.created=function(){l.prototype.created.call(this);var n=f.created;if(n)for(var B=0;B<n.length;B++)n[B].call(this)};
r.prototype._registered=function(){var n=r.prototype;if(!n.hasOwnProperty("__hasRegisterFinished")){n.__hasRegisterFinished=!0;l.prototype._registered.call(this);zi&&P(n);n=Object.getPrototypeOf(this);var B=f.beforeRegister;if(B)for(var d=0;d<B.length;d++)B[d].call(n);if(B=f.registered)for(d=0;d<B.length;d++)B[d].call(n)}};
r.prototype._applyListeners=function(){l.prototype._applyListeners.call(this);var n=f.listeners;if(n)for(var B=0;B<n.length;B++){var d=n[B];if(d)for(var J in d)this._addMethodEventListenerToNode(this,J,d[J])}};
r.prototype._ensureAttributes=function(){var n=f.hostAttributes;if(n)for(var B=n.length-1;B>=0;B--){var d=n[B],J;for(J in d)this._ensureAttribute(J,d[J])}l.prototype._ensureAttributes.call(this)};
r.prototype.ready=function(){l.prototype.ready.call(this);var n=f.ready;if(n)for(var B=0;B<n.length;B++)n[B].call(this)};
r.prototype.attached=function(){l.prototype.attached.call(this);var n=f.attached;if(n)for(var B=0;B<n.length;B++)n[B].call(this)};
r.prototype.detached=function(){l.prototype.detached.call(this);var n=f.detached;if(n)for(var B=0;B<n.length;B++)n[B].call(this)};
r.prototype.attributeChanged=function(n,B,d){l.prototype.attributeChanged.call(this);var J=f.attributeChanged;if(J)for(var D=0;D<J.length;D++)J[D].call(this,n,B,d)};
_.rc.Object.defineProperties(r,{properties:{configurable:!0,enumerable:!0,get:function(){var n={};if(y)for(var B=0;B<y.length;B++)iVz(n,y[B].properties);iVz(n,W.properties);return n}},
observers:{configurable:!0,enumerable:!0,get:function(){var n=[];if(y)for(var B=0,d;B<y.length;B++)d=y[B],d.observers&&(n=n.concat(d.observers));W.observers&&(n=n.concat(W.observers));return n}}});
if(V){Array.isArray(V)||(V=[V]);var R=l.prototype.behaviors;var y=Ihj(V,null,R);r.prototype.behaviors=R?R.concat(V):y}var P=function(n){if(y)for(var B=y,d=0;d<B.length;d++)jnS(n,B[d],f,m7Y);jnS(n,W,f,Xsg)};
zi||P(r.prototype);r.generatedFrom=W;return r};
MgJ=function(W){var l=typeof W!=="string"?W:{is:W,notifyObserversOnUndefined:!0};l.fastInit===void 0&&(l.fastInit=!0);return function(V){if(!l.disableInheritanceCheck&&Object.getPrototypeOf(V.prototype).constructor!==_.RA)throw Error("Rd");var f=V.prototype;f.is=l.is;NCq(f,"created",function(){this.hostElement=this;this.polymerController=this});
wsx(f,V,l.fastInit);l.notifyObserversOnUndefined&&(f._overrideLegacyUndefined=!0);if(AIJ)for(var r=_.L(Object.getOwnPropertyNames(f)),R=r.next();!R.done;R=r.next()){R=R.value;var y=Object.getOwnPropertyDescriptor(f,R);y.enumerable===!1&&(y.enumerable=!0,Object.defineProperty(f,R,y))}if("template"in V)var P=function(){return V.template};
else l.template!==void 0&&(P=l.template);if(P!==void 0){var n;Object.defineProperty(f,"_template",{get:function(){n===void 0&&(n=P());return n},
set:function(B){n=B},
configurable:!0,enumerable:!0})}Polymer(f);V[Qnn]=f}};
ZVx=function(W){W=W===void 0?{}:W;W.fastInit===void 0&&(W.fastInit=!0);return function(l){if(!W.disableInheritanceCheck&&Object.getPrototypeOf(l.prototype).constructor!==t6)throw Error("Sd");wsx(l.prototype,l,W.fastInit)}};
wsx=function(W,l,V){V=V===void 0?!1:V;OVF(l);V?NCq(W,"created",function(){this.disableEnforceFastDefaultValuesCheck||ahz(l,this)}):NCq(W,"ready",function(){for(var f={},r=_.L(YgU(this.behaviors)),R=r.next();!R.done;R=r.next())R=R.value,R.properties&&Object.assign(f,zE6(this,R.properties));
Object.assign(f,zE6(this,this.properties));ahz(l,this);r=_.L(Object.keys(f));for(R=r.next();!R.done;R=r.next())R=R.value,this[R]=f[R]})};
ahz=function(W,l){if(AIJ){W=new W;for(var V=_.L(Object.getOwnPropertyNames(W)),f=V.next();!f.done;f=V.next())f=f.value,l[f]=W[f];for(V=l;V&&V!==Object.prototype;V=Object.getPrototypeOf(V)){f=_.L(Object.getOwnPropertyNames(V));for(var r=f.next();!r.done;r=f.next())r=r.value,W.hasOwnProperty(r)||Object.defineProperty(W,r,Nez(l,r))}}else W.apply(l)};
Nez=function(W,l){return{get:function(){var V=W[l];return V instanceof Function?V.bind(W):V},
set:function(V){W[l]=V}}};
zE6=function(W,l){if(!l)return{};for(var V={},f=_.L(Object.keys(l)),r=f.next();!r.done;r=f.next())if(r=r.value,!l[r].readOnly){var R=W[r];R!==void 0&&(V[r]=R)}return V};
OVF=function(W){var l=new W;W=W.prototype.properties||{};for(var V=_.L(Object.keys(W)),f=V.next();!f.done;f=V.next())if(f=f.value,l.hasOwnProperty(f)){var r=W[f];typeof r==="function"&&(W[f]=r={type:r});l[f]!=null&&r.type===Object&&(r.type=Ydz(l[f].constructor))}};
Ydz=function(W){for(var l=_.L(x7q),V=l.next();!V.done;V=l.next())if(V=V.value,W===V)return V;return Object};
eEg=function(W){return function(l,V){l.behaviors=l.behaviors||[];l.behaviors.push(W||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",l,V).prototype:void 0));Object.defineProperty(l,V,{get:function(){return this},
enumerable:!0,configurable:!0})}};
qdY=function(W){W=W===void 0?{}:W;return function(l,V){l.properties=l.properties||{};W.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?W.type=Ydz(Reflect.getMetadata("design:type",l,V)):W.type=String);var f=W,r=l.properties[V];l.properties[V]=r?Object.assign({},r,f):f}};
hEj=function(W){return function(l,V){l.listeners=l.listeners||{};l.listeners[W]=V}};
SdS=function(){var W=_.xk.apply(0,arguments);if(W.length===0)throw Error("Td");return function(l,V){l.observers=l.observers||[];l.observers.push(V+"("+W.join(",")+")")}};
ERj=function(){var W=_.xk.apply(0,arguments);return function(l,V,f){var r=Object.getOwnPropertyDescriptor(l,V).get,R="__compute__"+V;Object.defineProperty(l,R,{value:r,enumerable:!0});l.properties=l.properties||{};r=l.properties[V];r||(r={},l.properties[V]=r);r.computed=R+"("+W.join(",")+")";f.get=void 0}};
_.sC=function(W,l,V){_.iI.call(this);this.JSC$11310_id_=null;this.usingListeners_=!1;this.JSC$11310_listener_=W;this.handler_=V;this.JSC$11310_win_=l||window;this.callback_=(0,_.ml)(this.JSC$11312_doAction_,this)};
LX=function(W){this.range_=W};
y9=function(W){this.range_=W};
CX=function(W,l,V){_.iI.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=W;this.scrollTimer_=new _.Pj(50);this.JSC$11389_eventHandler_=new _.nX(this);this.scrollDelta_=new _.O1;this.containerIsActuallyContent_=W.tagName==="BODY"||W.tagName==="HTML";this.containerBounds_=$7g(W);this.containerIsActuallyContent_&&(W=_.oU(),this.containerBounds_.height=W.height,this.containerBounds_.width=W.width);this.margin_=l||0;if(l){if(l=this.containerBounds_.clone(),W=this.margin_){var f=
Math.min(W,l.height*.25);l.top+=f;l.height-=2*f;W=Math.min(W,l.width*.25);l.left+=W;l.width-=2*W}}else l=this.containerBounds_;this.scrollBounds_=l;V||this.JSC$11389_eventHandler_.listen(_.z7(this.containerNode_),"mousemove",this.JSC$11391_onMouseMove);this.JSC$11389_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11391_onTick_)};
_.Bj=function(W){this.mechanism=W};
dc=function(W,l){this.JSC$11487_key_=W;this.JSC$11487_value_=l};
lnq=function(W){if(W>=55296&&W<=57343||W>1114111)return"\ufffd";W in WM8&&(W=WM8[W]);var l="";W>65535&&(W-=65536,l+=String.fromCharCode(W>>>10&1023|55296),W=56320|W&1023);return l+=String.fromCharCode(W)};
Vkz=function(W,l){return W<l?1:-1};
rSn=function(){return function(W){return W.charAt(1)==="#"?W.charAt(2)==="X"||W.charAt(2)==="x"?lnq(parseInt(W.substr(3),16)):lnq(parseInt(W.substr(2),10)):fnU[W.slice(1,-1)]}};
sjj=function(W){return W.slice(1,W.length-1).trim().replace(RN6,function(l){return tk4[l]||" "})};
J6=function(W){return W===32||W===9};
D0=function(W,l){return l<W.length?W.charCodeAt(l):-1};
LMz=function(W){for(;W;){if(W._lastLineBlank)return!0;var l=W.type;if(l==="list"||l==="item")W=W._lastChild;else break}return!1};
UC=function(W){if(ySn.test(W)){var l=1,V=0,f=0;for(W[V]=="|"&&V++;V<W.length;){switch(W[V]){case "|":f=1;break;case " ":break;case "\t":break;default:f&&(f=0,l++)}V++}return gSz.test(W)?-l:l}return 0};
Pl6=function(W){return W=="table"||W=="row"||W=="cell"};
nSS=function(){return new uw("document",[[1,1],[0,0]])};
Cl4=function(){};
kG=function(){var W={safe:!1};W=W||{};W.softbreak=W.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=W};
UR8=function(W,l){var V="";if(W)if(W=W.toLowerCase(),W===" "||cSz.test(W))V="space";else if(dRU.test(W))V="esc";else if(W.length==1){if(!l||JSS.test(W))V=W}else V=DR8.test(W)?W.replace("arrow",""):W=="multiply"?"*":W;return V};
HUx=function(W,l){var V=W.hasModifiers;if(l.key)V=UR8(l.key,V);else if(l.detail&&l.detail.key)V=UR8(l.detail.key,V);else{V=l.keyIdentifier;var f="";V&&(V in ud8?f=ud8[V]:kRj.test(V)?(V=parseInt(V.replace("U+","0x"),16),f=String.fromCharCode(V).toLowerCase()):f=V.toLowerCase());(V=f)||(V=l.keyCode,f="",Number(V)&&(V>=65&&V<=90?f=String.fromCharCode(32+V):V>=112&&V<=123?f="f"+(V-112+1):V>=48&&V<=57?f=String(V-48):V>=96&&V<=105?f=String(V-96):f=vSq[V]),V=f);V=V||""}return V===W.key&&(!W.hasModifiers||
!!l.shiftKey===!!W.shiftKey&&!!l.ctrlKey===!!W.ctrlKey&&!!l.altKey===!!W.altKey&&!!l.metaKey===!!W.metaKey)};
FMz=function(W){return W.length===1?{combo:W,key:W,event:"keydown"}:W.split("+").reduce(function(l,V){var f=V.split(":");V=f[0];f=f[1];V in KMz?(l[KMz[V]]=!0,l.hasModifiers=!0):(l.key=V,l.event=f||"keydown");return l},{combo:W.split(":").shift()})};
GRY=function(W){return W.trim().split(" ").map(function(l){return FMz(l)})};
bUv=function(W,l){if(W&&W.fn){var V=W.fn;W.fn=function(){try{V.apply(this,arguments)}catch(f){if(f instanceof vj)console.warn("Argument '"+f.arg+"'"+(l?" for method '"+l+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw f;}}}return W};
oSn=function(W,l,V){pWJ.set(W,setTimeout(function(){pWJ.has(W)&&W.dispatchEvent(new Hj("toggle",{cancelable:!1,oldState:l,newState:V}))},0))};
jjF=function(W){return KX.get(W)||"hidden"};
Fo=function(W){return[].concat(_.QK(W)).pop()};
mRS=function(W){var l=W.popoverTargetElement;if(l instanceof HTMLElement){var V=jjF(l);if(W.popoverTargetAction!=="show"||V!=="showing")if(W.popoverTargetAction!=="hide"||V!=="hidden")V==="showing"?G$(l,!0,!0):bw(l,!1)&&(InY.set(l,W),iUq(l))}};
bw=function(W,l){return W.popover!=="auto"&&W.popover!=="manual"&&W.popover!=="hint"||!W.isConnected||l&&jjF(W)!=="showing"||!l&&jjF(W)!=="hidden"||W instanceof XWU&&W.hasAttribute("open")||document.fullscreenElement===W?!1:!0};
T3n=function(W){if(!W)return 0;var l=pX.get(document)||new Set,V=oA.get(document)||new Set;return V.has(W)?[].concat(_.QK(V)).indexOf(W)+l.size+1:l.has(W)?[].concat(_.QK(l)).indexOf(W)+1:0};
jQ=function(W){var l=oA.get(W)||new Set;var V=pX.get(W)||new Set;return(V=l.size>0?l:V.size>0?V:null)?(l=Fo(V),l.isConnected?l:(V.delete(l),jQ(W))):null};
wWU=function(W){for(var l=_.L(W||[]),V=l.next();!V.done;V=l.next()){V=V.value;if(V.isConnected)return V;W.delete(V)}return null};
IA=function(W){return typeof W.getRootNode==="function"?W.getRootNode():W.parentNode?IA(W.parentNode):W};
Qj8=function(W){for(;W;){if(W instanceof HTMLElement&&W.popover==="auto"&&KX.get(W)==="showing")return W;W=W instanceof Element&&W.assignedSlot||W.parentElement||IA(W);W instanceof ASF&&(W=W.host);if(W instanceof Document)break}};
MkJ=function(W,l){var V=new Map,f=0;l=_.L(l||[]);for(var r=l.next();!r.done;r=l.next())V.set(r.value,f),f+=1;V.set(W,f);f=null;a:if(r=W.parentElement||IA(W)){var R=!1;for(l=null;!R;){l=Qj8(r)||null;if(l===null||!V.has(l))break a;if(W.popover==="hint"||l.popover==="auto")R=!0;R||(r=l.parentElement)}W=V.get(l);if(f===null||V.get(f)<W)f=l}return f};
ZUS=function(W){if(W.shadowRoot&&W.shadowRoot.delegatesFocus!==!0)return null;var l=W;l.shadowRoot&&(l=l.shadowRoot);var V=l.querySelector("[autofocus]");if(V)return V;var f=l.querySelectorAll("slot");f=_.L(f);for(var r=f.next();!r.done;r=f.next())for(r=r.value.assignedElements({flatten:!0}),r=_.L(r),V=r.next();!V.done;V=r.next())if(V=V.value,V.hasAttribute("autofocus")||(V=V.querySelector("[autofocus]")))return V;W=W.ownerDocument.createTreeWalker(l,NodeFilter.SHOW_ELEMENT);for(l=W.currentNode;l;){if(l.hidden||
l instanceof ASF||(l instanceof HTMLButtonElement||l instanceof HTMLInputElement||l instanceof HTMLSelectElement||l instanceof HTMLTextAreaElement||l instanceof HTMLOptGroupElement||l instanceof HTMLOptionElement||l instanceof HTMLFieldSetElement)&&l.disabled||l instanceof HTMLInputElement&&l.type==="hidden"||l instanceof HTMLAnchorElement&&l.href===""?0:typeof l.tabIndex==="number"&&l.tabIndex!==-1)return l;l=W.nextNode()}return null};
iUq=function(W){if(bw(W,!1)){var l=W.ownerDocument;if(W.dispatchEvent(new Hj("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))&&bw(W,!1)){var V=!1,f=W.popover,r=null,R=MkJ(W,pX.get(l)||new Set),y=MkJ(W,oA.get(l)||new Set);f==="auto"&&(OUn(oA.get(l)||new Set,V,!0),iw(R||l,V,!0),r="auto");f==="hint"&&(y?(iw(y,V,!0),r="hint"):(OUn(oA.get(l)||new Set,V,!0),R?(iw(R,V,!0),r="auto"):r="hint"));if(f==="auto"||f==="hint"){if(f!==W.popover||!bw(W,!1))return;jQ(l)||(V=!0);r==="auto"?(pX.has(l)||
pX.set(l,new Set),pX.get(l).add(W)):r==="hint"&&(oA.has(l)||oA.set(l,new Set),oA.get(l).add(W))}ang.delete(W);f=l.activeElement;W.classList.add(":popover-open");KX.set(W,"showing");zN6.has(l)||zN6.set(l,new Set);zN6.get(l).add(W);N3Y(InY.get(W),!0);var P;(P=ZUS(W))==null||P.focus();V&&f&&W.popover==="auto"&&ang.set(W,f);oSn(W,"closed","open")}}};
G$=function(W,l,V){l=l===void 0?!1:l;V=V===void 0?!1:V;if(bw(W,!0)){var f=W.ownerDocument;if(["auto","hint"].includes(W.popover)&&(iw(W,l,V),!bw(W,!0)))return;var r=pX.get(f)||new Set,R=r.has(W)&&Fo(r)===W;N3Y(InY.get(W),!1);InY.delete(W);if(V&&(W.dispatchEvent(new Hj("beforetoggle",{oldState:"open",newState:"closed"})),R&&Fo(r)!==W&&iw(W,l,V),!bw(W,!0)))return;var y;(y=zN6.get(f))==null||y.delete(W);r.delete(W);var P;(P=oA.get(f))==null||P.delete(W);W.classList.remove(":popover-open");KX.set(W,"hidden");
V&&oSn(W,"open","closed");if(V=ang.get(W))ang.delete(W),l&&V.focus()}};
OUn=function(W,l,V){l=l===void 0?!1:l;V=V===void 0?!1:V;for(var f=wWU(W);f;)G$(f,l,V),f=wWU(W)};
Yfx=function(W,l,V,f){for(var r=!1,R=!1;r||!R;){R=!0;for(var y=null,P=!1,n=_.L(l),B=n.next();!B.done;B=n.next())if(B=B.value,B===W)P=!0;else if(P){y=B;break}if(!y)break;for(;jjF(y)==="showing"&&l.size;)G$(Fo(l),V,f);l.has(W)&&Fo(l)!==W&&(r=!0);r&&(f=!1)}};
iw=function(W,l,V){var f=W.ownerDocument||W;if(W instanceof Document)for(W=l,W=W===void 0?!1:W,V=V===void 0?!1:V,l=jQ(f);l;)G$(l,W,V),l=jQ(f);else{var r;if((r=oA.get(f))==null?0:r.has(W))Yfx(W,oA.get(f),l,V);else{OUn(oA.get(f)||new Set,l,V);var R;(R=pX.get(f))!=null&&R.has(W)&&Yfx(W,pX.get(f),l,V)}}};
eNq=function(W){if(W.isTrusted){var l=W.composedPath()[0];if(l){var V=l.ownerDocument;if(jQ(V)){var f=Qj8(l);a:{for(;l;){var r=l.popoverTargetElement;if(r instanceof HTMLElement){l=r;break a}l=l.parentElement||IA(l);l instanceof ASF&&(l=l.host);if(l instanceof Document)break}l=void 0}(f=T3n(f)>T3n(l)?f:l)&&W.type==="pointerdown"?xRj.set(V,f):W.type==="pointerup"&&(W=xRj.get(V)===f,xRj.delete(V),W&&iw(f||V,!1,!0))}}}};
N3Y=function(W,l){l=l===void 0?!1:l;if(W){qfj.has(W)||qfj.set(W,W.getAttribute("aria-expanded"));var V=W.popoverTargetElement;V instanceof HTMLElement&&V.popover==="auto"?W.setAttribute("aria-expanded",String(l)):(l=qfj.get(W))?W.setAttribute("aria-expanded",l):W.removeAttribute("aria-expanded")}};
mt=function(W,l,V){var f=W[l];Object.defineProperty(W,l,{value:function(r){return f.call(this,V(r))}})};
ESU=function(W){var l=typeof globalThis.CSSLayerBlockRule==="function"?new PG(hNq[0]):new PG(SfU[0]);if(Xo===null)try{Xo=new CSSStyleSheet,Xo.replaceSync(l.toString())}catch(f){Xo=!1}if(Xo===!1){var V=document.createElement("style");V.textContent=ndJ(l);W instanceof Document?W.head.prepend(V):W.prepend(V)}else W.adoptedStyleSheets=[Xo].concat(_.QK(W.adoptedStyleSheets))};
lRY=function(){function W(R){var y;if((y=R)==null?0:y.includes(":popover-open"))R=R.replace($Rx,"$1.\\:popover-open");return R}
function l(R){Object.defineProperties(R.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set:function(y){if(y===null)this.removeAttribute("popovertarget"),r.delete(this);else if(y instanceof Element)this.setAttribute("popovertarget",""),r.set(this,y);else throw new TypeError("De");},
get:function(){if(this.localName!=="button"&&this.localName!=="input"||this.localName==="input"&&this.type!=="reset"&&this.type!=="image"&&this.type!=="button"||this.disabled||this.form&&this.type==="submit")return null;var y=r.get(this);if(y&&y.isConnected)return y;if(y&&!y.isConnected)return r.delete(this),null;y=IA(this);var P=this.getAttribute("popovertarget");return(y instanceof Document||y instanceof Wxn)&&P?y.getElementById(P)||null:null}},
popoverTargetAction:{enumerable:!0,configurable:!0,get:function(){var y=(this.getAttribute("popovertargetaction")||"").toLowerCase();return y==="show"||y==="hide"?y:"toggle"},
set:function(y){this.setAttribute("popovertargetaction",y)}}})}
if(typeof window!=="undefined"){window.ToggleEvent=window.ToggleEvent||Hj;mt(Document.prototype,"querySelector",W);mt(Document.prototype,"querySelectorAll",W);mt(Element.prototype,"querySelector",W);mt(Element.prototype,"querySelectorAll",W);mt(Element.prototype,"matches",W);mt(Element.prototype,"closest",W);mt(DocumentFragment.prototype,"querySelectorAll",W);Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get:function(){if(!this.hasAttribute("popover"))return null;
var R=(this.getAttribute("popover")||"").toLowerCase();return R===""||R=="auto"?"auto":R=="hint"?"hint":"manual"},
set:function(R){R===null?this.removeAttribute("popover"):this.setAttribute("popover",R)}},
showPopover:{enumerable:!0,configurable:!0,value:function(){iUq(this)}},
hidePopover:{enumerable:!0,configurable:!0,value:function(){G$(this,!0,!0)}},
togglePopover:{enumerable:!0,configurable:!0,value:function(R){R=R===void 0?{}:R;typeof R==="boolean"&&(R={force:R});KX.get(this)==="showing"&&R.force===void 0||R.force===!1?G$(this,!0,!0):(R.force===void 0||R.force===!0)&&iUq(this);return KX.get(this)==="showing"}}});
var V=Element.prototype.attachShadow;V&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value:function(R){R=V.call(this,R);ESU(R);return R}}});
var f=HTMLElement.prototype.attachInternals;f&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value:function(){var R=f.call(this);R.shadowRoot&&ESU(R.shadowRoot);return R}}});
var r=new WeakMap;l(HTMLButtonElement);l(HTMLInputElement);document.addEventListener("click",function(R){if(!R.defaultPrevented){var y=R.composedPath(),P=y[0];P instanceof Element&&(P==null||!P.shadowRoot)&&(P=IA(P),P instanceof Wxn||P instanceof Document)&&(y=y.find(function(n){var B;return(B=n.matches)==null?void 0:B.call(n,"[popovertargetaction],[popovertarget]")}))&&(mRS(y),R.preventDefault())}});
document.addEventListener("keydown",function(R){var y=R.key,P=R.target;R.defaultPrevented||!P||y!=="Escape"&&y!=="Esc"||iw(P.ownerDocument,!0,!0)});
document.addEventListener("pointerdown",eNq);document.addEventListener("pointerup",eNq);ESU(document)}};
Vhv=function(){var W=_.xk.apply(0,arguments);return W.length===0?function(l){return l}:W.length===1?W[0]:W.reduce(function(l,V){return function(){return l(V.apply(null,_.QK(_.xk.apply(0,arguments))))}})};
fRz=function(){var W=_.xk.apply(0,arguments);return function(l){return function(V,f){V=l(V,f);var r=function(){throw Error("Ee");},R={getState:V.getState,
dispatch:function(y){return r.apply(null,[y].concat(_.QK(_.xk.apply(1,arguments))))}};
f=W.map(function(y){return y(R)});
r=Vhv.apply(null,_.QK(f))(V.dispatch);return Object.assign({},V,{dispatch:r})}}};
thJ=function(W){Object.keys(W).forEach(function(l){var V=W[l];if(typeof V(void 0,{type:rdS})==="undefined")throw Error("Fe`"+l);if(typeof V(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Rd6()})==="undefined")throw Error("Ge`"+l+"`"+rdS);})};
T$=function(W){for(var l=Object.keys(W),V={},f=0;f<l.length;f++){var r=l[f];typeof W[r]==="function"&&(V[r]=W[r])}var R=Object.keys(V);try{thJ(V)}catch(P){var y=P}return function(P,n){P=P===void 0?{}:P;if(y)throw y;for(var B=!1,d={},J=0;J<R.length;J++){var D=R[J],u=P[D],H=(0,V[D])(u,n);if(typeof H==="undefined")throw P=n&&n.type,Error("He`"+(P?'"'+String(P)+'"':"(unknown type)")+"`"+D);d[D]=H;B=B||H!==u}return(B=B||R.length!==Object.keys(P).length)?d:P}};
srz=function(W,l,V){function f(){if(d)throw Error("Ie");return P}
function r(u){if(typeof u!=="function")throw Error("Je`"+typeof u);if(d)throw Error("Ke");var H=!0;B===n&&(B=n.slice());B.push(u);return function(){if(H){if(d)throw Error("Le");H=!1;B===n&&(B=n.slice());var p=B.indexOf(u);B.splice(p,1);n=null}}}
function R(u){if(typeof u!=="object"||u===null)var H=!1;else{for(H=u;Object.getPrototypeOf(H)!==null;)H=Object.getPrototypeOf(H);H=Object.getPrototypeOf(u)===H}if(!H)throw Error("Me`"+typeof u);if(typeof u.type==="undefined")throw Error("Ne");if(d)throw Error("Oe");try{d=!0,P=y(P,u)}finally{d=!1}H=n=B;for(var p=0;p<H.length;p++)(0,H[p])();return u}
if(typeof l==="function"&&typeof V==="function"||typeof V==="function"&&typeof arguments[3]==="function")throw Error("Pe");typeof l==="function"&&typeof V==="undefined"&&(V=l,l=void 0);if(typeof V!=="undefined"){if(typeof V!=="function")throw Error("Qe`"+typeof V);return V(srz)(W,l)}if(typeof W!=="function")throw Error("Re`"+typeof W);var y=W,P=l,n=[],B=n,d=!1;R({type:rdS});var J={},D=(J.dispatch=R,J.subscribe=r,J.getState=f,J.replaceReducer=function(u){if(typeof u!=="function")throw Error("Se`"+
typeof u);y=u;R({type:Lxg});return D},J[yd6]=function(){var u={};
return u.subscribe=function(H){function p(){H.next&&H.next(f())}
if(typeof H!=="object"||H===null)throw new TypeError("Te`"+typeof H);p();return{unsubscribe:r(p)}},u[yd6]=function(){return this},u},J);
return D};
gg4=function(W){function l(){r&&(r=!1,W());R&&f()}
function V(){requestAnimationFrame(l)}
function f(){var P=Date.now();if(r){if(P-y<2)return;R=!0}else r=!0,R=!1,setTimeout(V,20);y=P}
var r=!1,R=!1,y=0;return f};
wc=function(W){return typeof W==="number"?W:parseFloat(W)||0};
PcS=function(W){return _.xk.apply(1,arguments).reduce(function(l,V){return l+wc(W["border-"+V+"-width"])},0)};
_.K=function(W,l){l=$k(EP(l));W.innerHTML=l};
cdF=function(W){var l=ngn;l||(l=Ccn(),l=ngn=_.MC.transpose(l));l=l[W];return typeof l==="string"?l:_.A6(W)};
BwY=function(W){W=String(W).toLowerCase();var l=Ccn()[W];return typeof l==="string"?l:_.Q9(W)};
dXJ=function(W){W=W.toLowerCase();W=Ccn()[W];return typeof W==="string"?W:null};
Ccn=function(){if(!Jd6){for(var W=Object.assign({},DXz),l=_.L(UX8),V=l.next();!V.done;V=l.next())V=V.value,W[V.toLowerCase()]=V;Jd6=W}return Jd6};
vgz=function(W,l){var V=window.customElements;return V&&V.get(W)||ugJ[W]===!0?2:l.name==="HTMLUnknownElement"?1:l.name==="HTMLElement"&&kW4.test(W)?3:0};
Fx4=function(W,l){switch(l){case "innerHTML":return HCz(W)===1?2:null;case "textContent":return W=HCz(W),W===1||W===6?1:null;default:var V,f;return(f=(V=Kxv[W.localName])==null?void 0:V[l])!=null?f:null}};
HCz=function(W){var l=W.localName,V=vgz(l,W.constructor);switch(V){case 0:case 1:return GW6(l,W);case 3:case 2:return 1;default:_.Yc(V,"got an unknown element classification")}};
GW6=function(W,l){var V=Object.hasOwnProperty.call(bCg,W)?bCg[W]:null;return V!==null?V:Object.hasOwnProperty.call(pDU,W)&&l instanceof SVGElement?pDU[W]:null};
ogz=function(W,l){return l};
IR4=function(W){return(W=W.split(jrz,2))?{url:W[0],metadata:W[1]}:null};
mX6=function(W){var l=String(W.url).replace(iCS,encodeURIComponent);if(W=W.metadata){iCS.lastIndex=0;if(iCS.test(W))return null;l+=" "+W}return l};
Adv=function(W){function l(B){var d=B.localName;if(!B.getAttribute("is")&&vgz(d,B.constructor)===2){var J;return(J=n)!=null?J:n=document.createElement("polyresinuncustomized")}(B=P[d])||(B=P[d]=document.createElement(d));return B}
var V=W.reportHandler||void 0,f=W.safeTypesBridge||XDg,r=/^$/;if(W=W.allowedIdentifierPrefixes){W=_.L(W);for(var R=W.next();!R.done;R=W.next())r=new RegExp(r.source+"|^"+_.Twg(R.value))}V&&V(!1,"initResin",null);var y=wDg(r,f,V),P={},n=null;return function(B,d,J){var D=B.nodeType;if(D!==Node.ELEMENT_NODE){if(D===Node.TEXT_NODE){d=B.parentElement;J=!d;if(d&&d.nodeType===Node.ELEMENT_NODE){D=d.localName;var u=vgz(D,d.constructor);switch(u){case 0:case 1:d=GW6(D,d);J=d===1||d===6;break;case 3:case 2:J=
!0;break;default:_.Yc(u,"got an unknown element classification")}}if(J)return function(w){return""+f(w,"STRING",w)}}return function(w){if(!w&&w!==document.all)return w;
V&&V(!0,"Failed to sanitize "+(B.parentElement&&B.parentElement.nodeName)+" #text node to value "+w,B.parentElement);return Mc}}var H=B.localName;
D=l(B);var p=null;switch(J){case "attribute":if(BwY(d)in D)break;return function(w){return w};
case "property":if(d in D){p=Fx4(D,d);break}if((u=dXJ(d))&&u in D)break;return function(w){return w};
default:_.Yc(J,"got an unknown resin type, expected either 'property' or 'attribute'")}var X=J==="attribute"?d.toLowerCase():cdF(d);p||(p=cHU(H,X,function(w){var O=B.getAttribute(w);return!O||/[\[\{]/.test(w)?null:O}));
return function(w){var O=Z0,S=null;if(!w&&w!==document.all)return w;if(p!=null){var N=y[p],x=N.safeType;S=N.safeReplacement;x&&(O=f(w,x,Z0));O===Z0&&(N.filterString?(O=String(f(w,"STRING",w)),O=N.filterString(H,X,O)):N.filterRaw&&(O=N.filterRaw(H,X,w,B)),O===S&&(O=Z0))}O===Z0&&(O=S||Mc,V&&V(!0,"Failed to sanitize attribute of <"+H+">: <"+H+" "+X+'="'+w+'">',B));return O}}};
wDg=function(W,l,V){return[,{filterRaw:function(f,r,R){return R},
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:Qrn,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Qrn,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Mc,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:MhY,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(f,r,R){R=
String(R).toLowerCase();return JHS(f,r,R)?R:Mc},
safeReplacement:Mc,safeType:void 0},,{filterRaw:void 0,filterString:function(f,r,R){return W.test(R)?R:Mc},
safeReplacement:Mc,safeType:"CONSTANT"},{filterRaw:function(f,r,R,y){if(typeof R==="string")var P=(P=R.match(ZCz))?P.map(IR4).filter(Boolean):[];else if(Array.isArray(R))P=R;else return Qrn;var n=P;P=[];var B=[],d={};if(Array.isArray(n))for(var J=0,D=n.length;J<D;++J){var u=n[J],H=u&&u.url;if(H){var p=l(H,"URL",d);if(p){var X=p!==d;(X?P:B).push({url:X?p:H,metadata:u.metadata})}}}else B.push(n);n=B.length?JSON.stringify(B):null;B=Z0;if(P.length){if(!Array.isArray(P))throw Error();B=P.map(mX6).filter(Boolean).join(" , ")||
Z0}n&&V&&V(!0,"Failed to sanitize attribute value of <"+f+">: <"+f+" "+r+'="'+R+'">: '+n,y);return B===Z0?Qrn:B},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
OCJ=function(W){var l=Adv(W);return function(V,f,r,R){return R||R===document.all?l(V,f,r)(R):R}};
OC=function(W,l){function V(){function r(P,n,B){for(n=Reflect.getMetadata("parameters",P)||[];n.length<=B;)n.push(null);n[B]=n[B]||[];n[B].push(y);Reflect.defineMetadata(n,P);return P}
var R=_.xk.apply(0,arguments);if(this instanceof V)return f.apply(this,R),this;var y=new (Function.prototype.bind.apply(V,[null].concat(_.QK(R))));r.annotation=y;return r}
var f=aRj(l);V.prototype.toString=function(){return"@"+W};
return V.annotationCls=V};
aRj=function(W){return function(){var l=_.xk.apply(0,arguments),V=this;W.forEach(function(f,r){r=l[r];if(Array.isArray(f))V[f[0]]=r&&r!==void 0?r:f[1];else for(var R in f)V[R]=r&&r[R]!==void 0?r[R]:f[R]})}};
zdv=function(W){return W!==void 0&&W!==null};
aA=function(W){if(typeof W==="string")return W;if(W===void 0||W===null)return""+W;if(W.overriddenName)return W.overriddenName;if(W.name)return W.name;W=W.toString();var l=W.indexOf("\n");return l===-1?W:W.substring(0,l)};
NwU=function(W){W.__forward_ref__=NwU;W.toString=function(){return aA(this())};
return W};
z$=function(W){return typeof W==="function"&&W.hasOwnProperty("__forward_ref__")&&W.__forward_ref__===NwU?W():W};
YrS=function(W){return W?W.map(function(l){return new (Function.prototype.bind.apply(l.type.annotationCls,[null].concat(_.QK(l.args?l.args:[]))))}):[]};
xXY=function(W){for(var l=[],V=0;V<W.length;++V){if(l.indexOf(W[V])>-1){l.push(W[V]);break}l.push(W[V])}return l};
edj=function(W){return W.length>1?" ("+xXY(W.slice().reverse()).map(function(l){return aA(l.token)}).join(" -> ")+")":""};
hd4=function(W,l,V,f){if(f){var r=Error("$e``"+(f instanceof Error?f.message:f));r.ngOriginalError=f}else r=Error();r.addKey=qrz;r.keys=[l];r.injectors=[W];r.constructResolvingMessage=V;r.message=r.constructResolvingMessage();r.ngOriginalError=f;return r};
qrz=function(W,l){this.injectors.push(W);this.keys.push(l);this.message=this.constructResolvingMessage()};
Srj=function(W,l){return hd4(W,l,function(){return"No provider for "+aA(this.keys[0].token)+"!"+edj(this.keys)})};
Eg6=function(W,l){return hd4(W,l,function(){return"Cannot instantiate cyclic dependency!"+edj(this.keys)})};
$X4=function(W,l,V){return hd4(W,V,function(){var f=aA(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+f+"!"+edj(this.keys)+"."},l)};
WEg=function(W,l){for(var V=[],f=0,r=l.length;f<r;f++){var R=l[f];R&&R.length!=0?V.push(R.map(aA).join(" ")):V.push("?")}return Error("df`"+aA(W)+"`"+V.join(", ")+"`"+aA(W))};
s9Y=function(W){var l=void 0,V=void 0;if(W&&W.useClass!==void 0){l=W.useClass;var f=z$(W.useClass);var r=lvz.factory(f);f=VaF(f)}else W&&W.useExisting!==void 0?(r=function(R){return R},f=[fvx(Nc.get(z$(W.useExisting)))]):W&&W.useFactory!==void 0?(r=W.useFactory,f=rUF(W.useFactory,W.deps)):(V=W.useValue,r=function(){return W.useValue},f=RCv);
return new taY(r,f,l,V)};
yU6=function(W){return new LES(Nc.get(z$(W.provide)),[s9Y(W)],W.multi)};
PCz=function(W){W=g$j(W,[]).map(yU6);for(var l=new Map,V=0;V<W.length;V++){var f=W[V],r=l.get(f.key.id);if(r){if(f.multiProvider!==r.multiProvider)throw Error("ff`"+r+"`"+f);if(f.multiProvider)for(var R=0;R<f.resolvedFactories.length;R++)r.resolvedFactories.push(f.resolvedFactories[R]);else l.set(f.key.id,f)}else r=void 0,f.multiProvider?r=new LES(f.key,f.resolvedFactories.slice(),f.multiProvider):r=f,l.set(f.key.id,r)}return Array.from(l.values())};
g$j=function(W,l){W.forEach(function(V){if(V instanceof n$J)l.push({provide:V,useClass:V});else if(V&&typeof V=="object"&&V.provide!==void 0)l.push(V);else if(V instanceof Array)g$j(V,l);else throw Error("cf`"+V);});
return l};
rUF=function(W,l){if(l){var V=l.map(function(f){return[f]});
return l.map(function(f){return CCJ(W,f,V)})}return VaF(W)};
VaF=function(W){var l=lvz.parameters(W);if(!l)return[];if(l.some(function(V){return V==null}))throw WEg(W,l);
return l.map(function(V){return CCJ(W,V,l)})};
CCJ=function(W,l,V){var f=null,r=!1;if(!Array.isArray(l))return l instanceof cU6?BAv(l.token,r,null):BAv(l,r,null);for(var R=null,y=0;y<l.length;++y){var P=l[y];if(P instanceof n$J)f=P;else if(P instanceof cU6)f=P.token;else if(P instanceof d3U)r=!0;else if(P instanceof JUJ||P instanceof D34)R=P}f=z$(f);if(f!=null)return BAv(f,r,R);throw WEg(W,V);};
BAv=function(W,l,V){return new U3q(Nc.get(z$(W)),l,V)};
uZ6=function(W,l){for(var V=Array(W.providers.length),f=0;f<W.providers.length;++f){var r=f;if(f<0||f>=W.providers.length)throw Error("ef`"+f);V[r]=l(W.providers[f])}return V};
kr8=function(W){return typeof W==="function"&&lvz.parameters(W).every(function(l){return!!l})};
KEn=function(W){var l=v$n;Hiz.get(W)||Hiz.set(W,new l);return Hiz.get(W)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(W)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(W)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W,l){var V,f;if(W.contains(l))return!0;W=_.YG(W).querySelectorAll("content,slot");for(V=0;V<W.length;++V){var r=_.YG(W[V]).getDistributedNodes();for(f=0;f<r.length;++f)if(r[f].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(r[f],l))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){W.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(W)&&W.preventDefault();W.targetTouches&&(W=W.targetTouches[0],FE8=W.pageX,Gr4=W.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 W=0,l=xG.length;W<l;W++)document.addEventListener(xG[W],_._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 W=0,l=xG.length;W<l;W++)document.removeEventListener(xG[W],_._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(W){var l=_.YG(W).rootTarget;W.type!=="touchmove"&&biv!==l&&(biv=l,pdz=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.YG(W).path));if(!pdz.length)return!0;if(W.type==="touchstart")return!1;W=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(W);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(pdz,W.deltaX,W.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){for(var l=[],V=W.indexOf(o$v),f=0;f<=V;f++)if(W[f].nodeType===Node.ELEMENT_NODE){var r=W[f],R=r.style;R.overflow!=="scroll"&&R.overflow!=="auto"&&(R=window.getComputedStyle(r));R.overflow!=="scroll"&&R.overflow!=="auto"||l.push(r)}return l};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W,l,V){if(l||V)for(var f=Math.abs(V)>=Math.abs(l),r=0;r<W.length;r++){var R=W[r];if(f?V<0?R.scrollTop>0:R.scrollTop<R.scrollHeight-R.clientHeight:l<0?R.scrollLeft>0:R.scrollLeft<R.scrollWidth-R.clientWidth)return R}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){var l={deltaX:W.deltaX,deltaY:W.deltaY};"deltaX"in W||("wheelDeltaX"in W&&"wheelDeltaY"in W?(l.deltaX=-W.wheelDeltaX,l.deltaY=-W.wheelDeltaY):"wheelDelta"in W?(l.deltaX=0,l.deltaY=-W.wheelDelta):"axis"in W?(l.deltaX=W.axis===1?W.detail:0,l.deltaY=W.axis===2?W.detail:0):W.targetTouches&&(W=W.targetTouches[0],l.deltaX=FE8-W.pageX,l.deltaY=Gr4-W.pageY));return l};
j9Y=function(W){this.element=W;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
iiF=function(W){this.element=W;this.color=window.getComputedStyle(W).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");_.YG(this.waveContainer).appendChild(this.wave);Ivn(this)};
eQ=function(W,l){for(var V in W)if(V.toLowerCase()===l.toLowerCase())return W[V]};
m3z=function(W,l){for(var V in W)if(V.toLowerCase()===l.toLowerCase()){delete W[V];break}};
TA4=function(W){W=_.MC.clone(W);for(var l=0;l<Xdz.length;++l){var V=Xdz[l],f=eQ(W,V);f&&(W["X-Goog-Upload-Header-"+V]=f,m3z(W,V))}return W};
wd4=function(W){W=_.MC.clone(W);m3z(W,"X-Goog-Upload-Status")};
Q96=function(W){return AUz.some(function(l){return l.test(W)})};
av8=function(W,l){var V;var f=(V=W.formContent)==null?void 0:V.locale;V=f==null?void 0:f.split("-")[0];f=f&&Maz.includes(f)?f:V&&Maz.includes(V)?V:void 0;f=(f!=null?f:"en").replaceAll("-","_").toLowerCase();var r;W=((r=W.initializationData)==null?0:r.useNightlyRelease)?"nightly":"live";var R;return(l==null?0:(R=l.getEnableAlohaBinarySplit)==null?0:R.call(l))?_.dO(ZiF,W):_.dO(OiF,W,f)};
YYS=function(W,l,V,f){if(zCz&&NAz===l)return zCz;NAz=l;var r=av8(W,f);return zCz=l.feedbackV2GlobalObject?Promise.resolve(l.feedbackV2GlobalObject):new Promise(function(R,y){var P=_.Gz("SCRIPT");_.tL(P,r);P.onload=function(){l.feedbackV2GlobalObject?R(l.feedbackV2GlobalObject):y(Error("jf"))};
P.onerror=function(){y(Error("kf`"+r.toString()))};
V.body.appendChild(P)})};
qYj=function(W,l,V,f){if(x36&&eCv===l)return x36;eCv=l;var r=av8(W,f);return x36=l.feedbackV2GlobalObject?Promise.resolve(l.feedbackV2GlobalObject):new Promise(function(R,y){var P=_.Gz("SCRIPT");_.tL(P,r);P.onload=function(){l.feedbackV2GlobalObject?R(l.feedbackV2GlobalObject):y(Error("jf"))};
P.onerror=function(){y(Error("kf`"+r.toString()))};
V.body.appendChild(P)})};
hCF=function(W,l,V,f,r){r=r===void 0?!0:r;var R,y,P,n,B;return _.g(function(d){switch(d.nextAddress){case 1:return R=Date.now(),d.yield(YYS(W,V,f,l),2);case 2:y=d.yieldResult;if(!(r||((n=W.initializationData)==null?0:n.useNightlyRelease)||((B=W.initializationData)==null?0:B.isLocalServer))){P=y.initializeFeedbackClient(W,R,l);d.jumpTo(3);break}return d.yield(y.initializeFeedbackClientAsync(W,R,l),4);case 4:P=d.yieldResult;case 3:return P.initiateAloha(),d.return(P)}})};
SYz=function(W,l,V,f){var r,R,y;return _.g(function(P){if(P.nextAddress==1)return r=Date.now(),P.yield(qYj(W,V,f.document,l),2);if(P.nextAddress!=3)return R=P.yieldResult,P.yield(R.initializeFeedbackClientAsync(W,r,l,f),3);y=P.yieldResult;y.initiateAloha();return P.return(y)})};
E$J=function(W,l,V){var f=!0;f=f===void 0?!0:f;var r,R,y,P,n,B,d,J,D,u;return _.g(function(H){r=V||_.rS;if((R=l)==null?0:(P=(y=R).getEnableAlohaBinarySplit)==null?0:P.call(y)){n=r;if(n.isFormOpened)throw B=Error("lf"),B.name="DuplicateFormError",B;n.isFormOpened=!0;W.callbacks=W.callbacks||{};d=W.callbacks.onClose||function(){};
W.callbacks.onClose=function(p){n.isFormOpened=!1;d(p)};
try{return H.return(SYz(W,l,n,r))}catch(p){throw n.isFormOpened=!1,p;}}else{J=r;if(J.isFormOpened)throw D=Error("lf"),D.name="DuplicateFormError",D;J.isFormOpened=!0;W.callbacks=W.callbacks||{};u=W.callbacks.onClose||function(){};
W.callbacks.onClose=function(p){J.isFormOpened=!1;u(p)};
try{return H.return(hCF(W,l,J,r.document,f))}catch(p){throw J.isFormOpened=!1,p;}}_.ju(H)})};
fiF=function(W,l){return _.g(function(V){return V.return(new Promise(function(f){var r=$3F(l!=null?l:"")+"/aloha_form_properties?productId="+W;W38(r,function(R){R=R.target;var y=null;try{var P=JSON,n=P.stringify;if(R.JSC$9791_xhr_){var B=R.JSC$9791_xhr_.responseText;B.indexOf(")]}'\n")==0&&(B=B.substring(5));var d=(0,_.qc)(B)}else d=void 0;y=OMU(li8,n.call(P,d))}catch(J){n=new li8,d=VN8(),d=_.h6(d,13,!1),d=_.h6(d,14,!0),d=_.h6(d,15,!0),d=_.h6(d,20,!1),y=_.b7(n,1,d)}f(y)},"GET","",{},2E3,!0)}))})};
$3F=function(W){return Q96(W)?W:"https://www.google.com/tools/feedback"};
s3q=function(W){W=W.match(new RegExp(rkU,"gi"))||[];W=_.L(W);for(var l=W.next();!l.done;l=W.next()){l=l.value;a:{var V=_.L(R8Y);for(var f=V.next();!f.done;f=V.next())if(f.value.test(l)){V=!1;break a}V=!0}if(!V)a:{V=_.L(tNU);for(f=V.next();!f.done;f=V.next())if(f.value.test(l)){V=!0;break a}V=!1}if(V)return!0}return!1};
L3F=function(W,l){var V={},f=Object.keys(W);f=_.L(f);for(var r=f.next();!r.done;r=f.next())r=r.value,V[r]=l(r,W[r]);return V};
ykS=function(W){switch(W){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"}};
PZn=function(W){if(window.crypto&&window.crypto.getRandomValues)try{var l=Array(W),V=new Uint8Array(W);window.crypto.getRandomValues(V);for(var f=0;f<l.length;f++)l[f]=V[f];return l}catch(R){}l=Array(W);for(V=0;V<W;V++){f=Date.now();for(var r=0;r<f%23;r++)l[V]=Math.random();l[V]=Math.floor(Math.random()*256)}if(gDF)for(V=1,f=0;f<gDF.length;f++)l[V%W]^=l[(V-1)%W]/4^gDF.charCodeAt(f),V++;return l};
SQ=function(W){W=PZn(W);for(var l=[],V=0;V<W.length;V++)l.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(W[V]&63));return l.join("")};
nDU=function(){var W=_.rS.ytLoggingDocDocumentNonce_;W||(W=SQ(16),_.fR("ytLoggingDocDocumentNonce_",W));return W};
ckU=function(W){W&&_.XC("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:CZn,clientScreenNonce:W})};
BPj=function(W){return _.M4("client-screen-nonce-store",{})[W===void 0?0:W]};
dVj=function(W,l){l=l===void 0?0:l;var V=_.M4("client-screen-nonce-store");V||(V={},_.Qj("client-screen-nonce-store",V));V[l]=W};
JkY=function(W){W=W===void 0?0:W;return W===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+W};
DVg=function(W){return _.M4(JkY(W===void 0?0:W))};
_.$G=function(W){return(W=DVg(W===void 0?0:W))?new EC({veType:W,youtubeData:void 0,jspbYoutubeData:void 0}):null};
UVY=function(){var W=_.M4("csn-to-ctt-auth-info");W||(W={},_.Qj("csn-to-ctt-auth-info",W));return W};
ubx=function(){return Object.values(_.M4("client-screen-nonce-store",{})).filter(function(W){return W!==void 0})};
_.Wh=function(W){W=BPj(W===void 0?0:W);if(!W&&!_.ZL("USE_CSN_FALLBACK",!0))return null;W||(W="UNDEFINED_CSN");return W?W:null};
vD4=function(W){for(var l=_.L(Object.values(kX8)),V=l.next();!V.done;V=l.next())if(_.Wh(V.value)===W)return!0;return!1};
Hzx=function(W,l,V){var f=UVY();(V=_.Wh(V))&&delete f[V];l&&(f[W]=l)};
lj=function(W){return UVY()[W]};
_.VW=function(W,l,V,f){V=V===void 0?0:V;if(W!==BPj(V)||l!==_.M4(JkY(V)))if(Hzx(W,f,V),dVj(W,V),_.Qj(JkY(V),l),l=function(){setTimeout(function(){ckU(W)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(l)}catch(r){l()}else l()};
K3v=function(W,l){l=l===void 0?"":l;var V=[],f;for(f in W)if(W.hasOwnProperty(f)){var r=l!==""?l+"."+f:f;typeof W[f]==="object"?V.push.apply(V,_.QK(K3v(W[f],r))):V.push([r,W[f]])}V.sort();return V};
_.rg=function(W){var l=_.xk.apply(1,arguments);if(!fN(W)||l.some(function(f){return!fN(f)}))throw Error("mf");
l=_.L(l);for(var V=l.next();!V.done;V=l.next())F36(W,V.value)};
F36=function(W,l){for(var V in l)if(fN(l[V])){if(V in W&&!fN(W[V]))throw Error("nf");V in W||(W[V]={});F36(W[V],l[V])}else if(GXv(l[V])){if(V in W&&!GXv(W[V]))throw Error("of");V in W||(W[V]=[]);bzq(W[V],l[V])}else W[V]=l[V];return W};
bzq=function(W,l){l=_.L(l);for(var V=l.next();!V.done;V=l.next())V=V.value,fN(V)?W.push(F36({},V)):GXv(V)?W.push(bzq([],V)):W.push(V);return W};
fN=function(W){return typeof W==="object"&&!Array.isArray(W)};
GXv=function(W){return typeof W==="object"&&Array.isArray(W)};
oD6=function(W){for(var l=_.L(Object.entries(pwY)),V=l.next();!V.done;V=l.next())if(V=_.L(V.value),V.next(),V=V.next().value,V==="SLI_STATUS_"+W)return V;return"SLI_STATUS_UNKNOWN"};
_.Rg=function(W,l,V,f){return j3S(W,l,function(){return new _.Ii6(W,l,V,f)})};
_.izj=function(){return _.Rg("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
mVj=function(){return _.Rg("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
tg=function(){return _.Rg("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
Xwv=function(){return _.Rg("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
TPv=function(){return _.Rg("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
wwj=function(){return _.Rg("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
MNg=function(W){W&&(W.dataset?W.dataset[AkJ()]="true":_.yK([_.n5(Q34)],W,"data-loaded","true".toString()))};
Zzg=function(W){return W?W.dataset?W.dataset[AkJ()]:W.getAttribute("data-loaded"):null};
AkJ=function(){return Ozx.loaded||(Ozx.loaded="loaded".replace(/\-([a-z])/g,function(W,l){return l.toUpperCase()}))};
_.se=function(W,l,V){aiJ(W,l,V===void 0?null:V)};
_.NPz=function(W,l){W&&l&&(W=""+_.qg(l),(W=z8z[W])&&_.y26(W))};
aiJ=function(W,l,V){V=V===void 0?null:V;var f=_.YsJ(typeof W==="string"?W:W.toString()),r=document.getElementById(f),R=r&&Zzg(r),y=r&&!R;R?l&&l():(l&&(R=_.nS(f,l),l=""+_.qg(l),z8z[l]=R),y||(r=xVx(W,f,function(){Zzg(r)||(MNg(r),_.gh8(f),_.cA(function(){_.nhv(f)},0))},V)))};
xVx=function(W,l,V,f){f=f===void 0?null:f;var r=_.Gz("SCRIPT");r.id=l;r.onload=function(){V&&setTimeout(V,0)};
r.onreadystatechange=function(){switch(r.readyState){case "loaded":case "complete":r.onload()}};
f&&r.setAttribute("nonce",f);_.tL(r,typeof W==="string"?_.Tz(W):W);W=document.getElementsByTagName("head")[0]||document.body;W.insertBefore(r,W.firstChild);return r};
_.YsJ=function(W){var l=document.createElement("a");hO(l,W);return"js-"+LN(l.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
e8z=function(W){var l=_.M4("INNERTUBE_HOST_OVERRIDE");l&&(W=String(l)+String(_.yW(W)));return W};
qsv=function(W){var l={};_.U("json_condensed_response")&&(l.prettyPrint="false");return W=iNF(W,l)};
_.gg=function(W){return f7(W)?"same-origin":"include"};
_.Ph=function(W){return f7(W)?"same-origin":"cors"};
CN=function(W,l,V){V=V===void 0?{}:V;W={method:l===void 0?"POST":l,mode:_.Ph(W),credentials:_.gg(W)};l={};for(var f=_.L(Object.keys(V)),r=f.next();!r.done;r=f.next())r=r.value,V[r]&&(l[r]=V[r]);Object.keys(l).length>0&&(W.headers=l);return W};
_.ch=function(W,l){l=l===void 0?{}:l;return"service:"+W+"/"+Object.keys(l).sort().map(function(V){return V+":"+l[V]}).join("/")};
h8J=function(W){var l,V,f,r;W=(l=_.k(W,_.Bh))==null?void 0:(V=l.watchEndpointSupportedOnesieConfig)==null?void 0:(f=V.html5PlaybackOnesieConfig)==null?void 0:(r=f.commonConfig)==null?void 0:r.url;if(!W)return[];l=new _.dg(W);return l.JSC$10026_domain_?["https://"+l.JSC$10026_domain_+"/generate_204"]:[]};
_.$VJ=function(){return Ss8()||Qsj()||EDU&&QS("version/")?!0:_.M4("EOM_VISITOR_DATA")?!1:!0};
WpF=function(W){var l=W.docid||W.video_id||W.videoId||W.id;if(l)return l;l=W.raw_player_response;l||(W=W.player_response)&&(l=JSON.parse(W));return l&&l.videoDetails&&l.videoDetails.videoId||null};
l3z=function(W){return W.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Jg=function(W){return!isNaN(Number(W))&&!_.gS(W)};
_.Ue=function(W,l,V,f){f=f===void 0?!0:f;var r=_.M4("VALID_SESSION_TEMPDATA_DOMAINS",[]),R=_.lP(window.location.href);R&&r.push(R);R=_.lP(W);if(_.Oz(r,R)||!R&&_.sz(W,"/"))if(r=document.createElement("a"),hO(r,W),W=r.href)if(W=_.yW(W),W=_.DY(W))f&&!l.csn&&(l.itct||l.ved)&&(l=Object.assign({csn:_.Wh()},l)),V?(V=parseInt(V,10),isFinite(V)&&V>0&&VqJ(W,l,V)):VqJ(W,l)};
rug=function(W){var l=_.M4("VALID_SESSION_TEMPDATA_DOMAINS",[]),V=_.lP(window.location.href);V&&l.push(V);V=_.lP(W);if(!(_.Oz(l,V)||!V&&_.sz(W,"/")))return null;W=_.yW(W);(W=_.DY(W))?(W=f3z(W),W=(W=_.vA.get(W,void 0)||null)?_.hC(W):{}):W=null;return W};
VqJ=function(W,l,V){W=f3z(W);l=l?_.U6(l):"";V=V||5;_.$VJ()&&_.HA(W,l,V)};
f3z=function(W){for(var l=_.L(Riv),V=l.next();!V.done;V=l.next())W=_.uj(W,V.value);return"ST-"+LN(W).toString(36)};
_.tqq=function(W){if(W.requestFullscreen)W=W.requestFullscreen(void 0);else if(W.webkitRequestFullscreen)W=W.webkitRequestFullscreen();else if(W.mozRequestFullScreen)W=W.mozRequestFullScreen();else if(W.msRequestFullscreen)W=W.msRequestFullscreen();else if(W.webkitEnterFullscreen)W=W.webkitEnterFullscreen();else return Promise.reject(Error("xf"));return W instanceof Promise?W:Promise.resolve()};
_.vh=function(W){var l;_.SUY(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.ku()==W&&(l=document):l=W;if(l&&(W=_.SUY(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],l))){W.call(l)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.ku=function(){var W=W===void 0?!1:W;var l=_.SUY(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(W)for(;l&&l.shadowRoot;)l=l.shadowRoot.fullscreenElement;return l?l:null};
_.Hh=function(W,l){l=l===void 0?!0:l;W.addEventListener("wheel",sMz);W.overscrollConfig={cooldown:l}};
_.KN=function(W){W.overscrollConfig=void 0;W.removeEventListener("wheel",sMz)};
sMz=function(W){var l=W.deltaY,V=W.target,f=null;if(window.Polymer&&window.Polymer.Element){if(V=W.path||W.composedPath&&W.composedPath()){V=_.L(V);for(var r=V.next();!r.done&&(r=r.value,!LpU(r,l));r=V.next())if(r.overscrollConfig){f=r;break}}}else for(;V&&!LpU(V,l);){if(V.overscrollConfig){f=V;break}V=V.parentElement}f&&(l=f.overscrollConfig,l.cooldown?(f=W.deltaY,V=l.lastDeltaY||0,l.lastDeltaY=f,r=l.lastStopped||0,V&&r&&V>0==f>0?Math.abs(V)>=Math.abs(f)?(f=r+1200,V=!1):(f=r+600,V=!0):(f=Date.now()+
600,V=!0),f>Date.now()&&(W.preventDefault(),V&&(l.lastStopped=Date.now()))):W.preventDefault())};
LpU=function(W,l){return l<0&&W.scrollTop>0||l>0&&W.scrollTop<W.scrollHeight-W.clientHeight-1?(W=getComputedStyle(W).overflowY,W=="auto"||W=="scroll"):!1};
_.FN=function(W,l,V,f){f||(f={bubbles:!0,cancelable:!1,composed:!0});V!==null&&V!==void 0&&(f.detail=V);var r=new CustomEvent(l,f);_.U("untrack_fire_custom_event_killswitch")?W.dispatchEvent(r):d9(function(){return void W.dispatchEvent(r)});
return r};
yux=function(W){var l=window,V=function(f){l.removeEventListener("yt-navigate-start",V);return W.call(l,f)};
l.addEventListener("yt-navigate-start",V,void 0)};
_.Gt=function(W,l,V,f){l=new g6v(l,!(f===void 0||!f),V);_.FN(W,"yt-action",l);return l.returnValue};
_.bj=function(W,l,V){return _.Gt(W,l,V,!0)};
_.og=function(W,l,V,f){l&&l.length&&l.forEach(function(r){var R=ePg(r);R&&(_.U("handle_service_request_actions")&&r.commandMetadata&&r.commandMetadata.webCommandMetadata&&r.commandMetadata.webCommandMetadata.sendPost?_.pN(V?V:W,[r]):_.bj(W,R,[r,V,f]))})};
_.pN=function(W,l){var V=[W];l&&V.push.apply(V,l);l=_.Gt(W,"yt-service-request",V);return l.length>0&&(l=l[0],_.FN(W,"yt-service-request-sent",l),l&&l.ajaxPromise)?(l.ajaxPromise.then(function(f){_.FN(W,"yt-service-request-completed",f)},function(f){_.FN(W,"yt-service-request-error",{error:f,
params:V})},W),l.ajaxPromise):_.jy()};
_.ij=function(W,l){if(_.U("handle_service_request_actions"))_.og(l,W,l);else{W=_.L(W);for(var V=W.next();!V.done;V=W.next()){V=V.value;var f=void 0;((f=_.k(V,_.Ig))==null?0:f.commands)?_.ij(_.k(V,_.Ig).commands,l):(f=void 0,((f=_.k(V,_.mA))==null?0:f.actions)?_.ij(_.k(V,_.mA).actions,l):(f=void 0,((f=_.k(V.commandMetadata,_.XN))==null?0:f.sendPost)?_.pN(l,[V]):_.og(l,[V],l)))}}};
_.n6n=function(W,l,V){l=l===void 0?{}:l;typeof l==="function"&&(l={callback:l});V||l._c&&l._c.jsl&&l._c.jsl.h||_.MC.extend(l,{_c:{jsl:{h:_.M4("GAPI_HINT_PARAMS")}}});(l.gapiHintOverride||_.M4("GAPI_HINT_OVERRIDE"))&&(V=_.Si(document.location.href).gapi_jsh)&&_.MC.extend(l,{_c:{jsl:{h:V}}});P9v(W,l)};
_.wg=function(W,l,V){l=l===void 0?{}:l;W=(W=W in Tt?Tt[W]:V)||"";V={};for(var f in l){V={key$jscomp$839:V.key$jscomp$839};V.key$jscomp$839=f;var r=function(R){return function(){return String(l[R.key$jscomp$839])}}(V);
W=W.replace(new RegExp("\\$\\{"+V.key$jscomp$839+"\\}","gi"),r);W=W.replace(new RegExp("\\$"+V.key$jscomp$839,"gi"),r)}return W};
_.Ag=function(W,l){return C9F(W in Tt?Tt[W]:{},l)};
C9F=function(W,l){var V=_.M4("I18N_PLURAL_RULES");V||(V=function(f){return f==1?"one":"other"});
return(W=W["case"+l]||W[V(l)])?W.replace("#",l.toString()):l+""};
dNn=function(W){var l=cuF(W),V=document.getElementById(l),f=V&&Zzg(V);f||V&&!f||(V=Bkz(W,l,function(){if(!Zzg(V)){MNg(V);_.gh8(l);var r=_.QW(_.nhv,l);_.cA(r,0)}}))};
Bkz=function(W,l,V){var f=document.createElement("link");f.id=l;f.onload=function(){V&&setTimeout(V,0)};
W=_.Tz(W);_.gI(f,W,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(f);return f};
cuF=function(W){var l=_.Gz("A");hO(l,AO(W));return"css-"+LN(l.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.DN4=function(W){var l=JuF();W!==l&&(l=_.MT(),!_.U("web_autonav_allow_off_by_default")&&W||_.ZY(0,141,!0),_.ZY(0,140,!W),l.save())};
JuF=function(){var W=_.MT();return _.U("web_autonav_allow_off_by_default")&&!W.getFlag(141)&&_.M4("AUTONAV_OFF_BY_DEFAULT")?!1:!W.getFlag(140)};
UNn=function(W,l){var V,f;W=((V=W.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(f=V.videoAuthorizationToken)==null?void 0:f.credentialTransferTokens)||[];for(V=0;V<W.length;++V)if(W[V].scope===l)return W[V].token||void 0};
uSq=function(W){for(var l=0,V=0;V<W.length;V++)l=l*31+W.charCodeAt(V),V<W.length-1&&(l%=0x800000000000);return l%1E5};
_.Oe=function(W){return _.Y2("ytcsi."+(W||"")+"data_")||kpg(W)};
_.v6j=function(W){W=_.Oe(W);W.metadata||(W.metadata={});return W.metadata};
_.HdF=function(W){W=_.Oe(W);W.tick||(W.tick={});return W.tick};
_.ag=function(W){W=_.Oe(W);if(W.gel){var l=W.gel;l.gelInfos||(l.gelInfos={});l.gelTicks||(l.gelTicks={})}else W.gel={gelTicks:{},gelInfos:{}};return W.gel};
_.Kpx=function(W){W=_.ag(W);W.gelInfos||(W.gelInfos={});return W.gelInfos};
Fpn=function(W){var l=_.Oe(W).nonce;l||(l=SQ(16),_.Oe(W).nonce=l);return l};
kpg=function(W){var l={tick:{},info:{}};_.fR("ytcsi."+(W||"")+"data_",l);return l};
Gp6=function(){var W=_.Y2("ytcsi.debug");W||(W=[],_.fR("ytcsi.debug",W),_.fR("ytcsi.reference",{}));return W};
_.zt=function(W){W=W||"";var l=bdU();if(l[W])return l[W];var V=Gp6(),f={timerName:W,info:{},tick:{},span:{},jspbInfo:[]};V.push(f);return l[W]=f};
pOg=function(W){W=W||"";var l=bdU();l[W]&&delete l[W];var V=Gp6(),f={timerName:W,info:{},tick:{},span:{},jspbInfo:[]};V.push(f);l[W]=f};
bdU=function(){var W=_.Y2("ytcsi.reference");if(W)return W;Gp6();return _.Y2("ytcsi.reference")};
_.jMn=function(W){return o6z[W]||"LATENCY_ACTION_UNKNOWN"};
XO6=function(W,l,V){V=V===void 0?{}:V;var f=!1;_.ZL("ytLoggingEventsDefaultDisabled",!1)&&(f=!0);f=f?null:my;V=V===void 0?{}:V;var r=Math.round(V.timestamp||(0,_.tv)());_.Gs(l,1,r<Number.MAX_SAFE_INTEGER?r:0);r=new I3S;if(V.lact)_.Gs(r,1,isFinite(V.lact)?V.lact:-1);else if(V.timestamp)_.Gs(r,1,-1);else{var R=_.sL();_.Gs(r,1,isFinite(R)?R:-1)}if(V.sequenceGroup&&!_.U("web_gel_sequence_info_killswitch")){R=V.sequenceGroup;var y=kYU(R),P=new idq;_.Gs(P,2,y);_.mY(P,1,R);_.b7(r,3,P);V.endOfSequence&&delete mNS[V.sequenceGroup]}_.b7(l,
33,r);(V.sendIsolatedPayload?pIz:oh6)(W,{endpoint:"log_event",payload:l,cttAuthInfo:V.cttAuthInfo,dangerousLogToVisitorSession:V.dangerousLogToVisitorSession},f)};
_.Yu=function(){return(_.U("csi_use_time_origin")||_.U("csi_use_time_origin_tvhtml5"))&&_.NT.timeOrigin?Math.floor(_.NT.timeOrigin):_.NT.timing.navigationStart};
_.Tkz=function(W,l){_.xu("_start",W,l)};
_.ey=function(W,l){if(!_.U("web_csi_action_sampling_enabled")||!_.Oe(l).actionDisabled){var V=_.zt(l||"");_.rg(V.info,W);W.loadType&&(V=W.loadType,_.v6j(l).loadType=V);_.rg(_.Kpx(l),W);V=Fpn(l);l=_.Oe(l).cttAuthInfo;wO8().info(W,V,l)}};
Auj=function(){var W,l,V,f;return((f=_.tY().resolve(_.R0(oo))==null?void 0:(W=jC())==null?void 0:(l=W.loggingHotConfig)==null?void 0:(V=l.csiConfig)==null?void 0:V.debugTicks)!=null?f:[]).map(function(r){return Object.values(r)[0]})};
_.xu=function(W,l,V){if(!_.U("web_csi_action_sampling_enabled")||!_.Oe(V).actionDisabled){var f=Fpn(V),r;if(r=_.U("web_csi_debug_sample_enabled")&&f){(_.tY().resolve(_.R0(oo))==null?0:jC())&&!QMv&&(QMv=!0,_.xu("gcfl",(0,_.tv)(),V));var R,y,P;r=(_.tY().resolve(_.R0(oo))==null?void 0:(R=jC())==null?void 0:(y=R.loggingHotConfig)==null?void 0:(P=y.csiConfig)==null?void 0:P.debugSampleWeight)||0;if(R=r!==0)b:{R=Auj();if(R.length>0)for(y=0;y<R.length;y++)if(W===R[y]){R=!0;break b}R=!1}R?(r=uSq(f)%r!==0,
_.Oe(V).debugTicksExcludedLogged||(R={},R.debugTicksExcluded=r,_.ey(R,V)),_.Oe(V).debugTicksExcludedLogged=!0):r=!1}if(!r){W[0]!=="_"&&MqJ(W,V,l);r=_.zt(V||"");r.tick[W]=l||(0,_.tv)();if(r.callback&&r.callback[W])for(r=_.L(r.callback[W]),R=r.next();!R.done;R=r.next())R=R.value,R();r=_.ag(V);r.gelTicks&&(r.gelTicks[W]=!0);R=_.HdF(V);r=l||(0,_.tv)();_.U("log_repeated_ytcsi_ticks")?W in R||(R[W]=r):R[W]=r;R=_.Oe(V).cttAuthInfo;W==="_start"?wO8().baseline(f,l,R):wO8().tick(W,f,l,R);_.ZdS(V);return r}}};
MqJ=function(W,l,V){if(_.NT.mark)if(W.startsWith("mark_")||(W="mark_"+W),l&&(W+=" ("+l+")"),V===void 0||_.U("web_csi_disable_alt_time_performance_mark"))_.NT.mark(W);else{V=_.U("csi_use_performance_navigation_timing")?V-_.NT.timeOrigin:V-(_.NT.timeOrigin||_.NT.timing.navigationStart);try{_.NT.mark(W,{startTime:V})}catch(f){}}};
Od4=function(){var W,l=(W=_.NT.getEntriesByType)==null?void 0:W.call(_.NT,"mark");l&&l.forEach(function(V){if(V.name.startsWith("mark_")){var f;(f=_.NT.clearMarks)==null||f.call(_.NT,V.name)}})};
_.a3z=function(){switch(hW6()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.ziY=function(W){var l={},V=function(R,y,P){y=y.match("_rid")?y.split("_rid")[0]:y;typeof P==="number"&&(P=JSON.stringify(P));R.requestIds?R.requestIds.push({endpoint:y,id:P}):R.requestIds=[{endpoint:y,id:P}]};
W=_.L(Object.entries(W));for(var f=W.next();!f.done;f=W.next()){var r=_.L(f.value);f=r.next().value;r=r.next().value;switch(f){case "GetBrowse_rid":V(l,f,r);break;case "GetGuide_rid":V(l,f,r);break;case "GetHome_rid":V(l,f,r);break;case "GetPlayer_rid":V(l,f,r);break;case "GetSearch_rid":V(l,f,r);break;case "GetSettings_rid":V(l,f,r);break;case "GetTrending_rid":V(l,f,r);break;case "GetWatchNext_rid":V(l,f,r);break;case "yt_red":l.isRedSubscriber=!!r;break;case "yt_ad":l.isMonetized=!!r}}return l};
Y2j=function(W,l,V,f,r,R){if(!_.U("web_csi_action_sampling_enabled")||!_.Oe(R).actionDisabled){var y=_.ag(R);if(y.gelSpans)y.gelSpans[W]=!0;else{var P={};y.gelSpans=(P[W]=!0,P)}Nkj++;W={spanName:W,spanLengthUsec:String(Math.round(l*1E3)),spanNonce:Nkj};f&&(W.spanInfo=f);r&&(W.parentSpanNonce=r);V&&(W.spanStartTimeUsec=String(Math.round(V*1E3)));_.zt(R||"").span[String(W.spanName)]=W;V=_.ag(R);V.gelSpans||(V.gelSpans={});_.rg(V.gelSpans,W);V=Fpn(R);R=_.Oe(R).cttAuthInfo;wO8().span(W,V,R);return W.spanNonce}};
_.xNq=function(W){var l=_.qT("aft",W);if(l)return l;l=_.M4((W||"")+"TIMING_AFT_KEYS",["ol"]);for(var V=l.length,f=0;f<V;f++){var r=_.qT(l[f],W);if(r)return r}return NaN};
_.eiq=function(W,l){_.fR("ytglobal.timing"+(l||"")+"ready_",W)};
_.qT=function(W,l){if(W=_.HdF(l)[W])return typeof W==="number"?W:W[W.length-1]};
_.ZdS=function(W){var l=_.qT("_start",W),V=_.xNq(W),f=!q2Y;l&&V&&f&&(HGq(hiS,new S26(Math.round(V-l),W)),q2Y=!0)};
$NU=function(W){kpg(W);E6x();Od4();W||(_.M4("TIMING_ACTION")&&_.Qj("PREVIOUS_ACTION",_.M4("TIMING_ACTION")),_.Qj("TIMING_ACTION",""))};
_.W98=function(W){W=W===void 0?{}:W;_.ah(function(){hg();pOg();$NU();_.eiq(!1);W.cttAuthInfo&&(_.Oe().cttAuthInfo=W.cttAuthInfo);_.Qj("TIMING_AFT_KEYS",[]);W.isHot?_.Sy({loadType:"hot"}):_.Sy({loadType:"warm"});_.Qj("TIMING_ACTION","");delete _.M4("TIMING_INFO",{}).yt_lt;_.ah(_.Tkz)(W.startTime,void 0)})()};
_.$u=function(W,l,V,f){l=l===void 0?{}:l;_.ah(function(){var r=V?V:W;Ee(r);var R=l.sampleRate;if(!_.U("web_csi_action_sampling_enabled")||R===void 0||R<=1)R=!1;else{var y=Fpn(r);R=uSq(y)%R!==0}R&&(_.Oe(r).actionDisabled=!0);_.zt(r||"").info.actionType=W;l.cttAuthInfo&&(_.Oe(r).cttAuthInfo=l.cttAuthInfo);_.Qj(r+"TIMING_ACTION",W);_.ah(_.Tkz)(l.startTime,r);R={actionType:f||_.jMn(W)};l.logPreviousAction&&(R.previousAction=_.jMn(_.M4("TIMING_ACTION")));(y=_.Wh())&&y!=="UNDEFINED_CSN"&&(R.clientScreenNonce=
y);_.Sy(R,r);_.eiq(!0,r)})()};
Ee=function(W){_.ah(function(){hg(W);pOg(W);$NU(W)})()};
lu4=function(){_.ah(function(){var W=[],l;for(l in _.Y2("ytcsi.".slice(0,-1)))l.endsWith("data_")&&W.push(l.slice(0,-5));W=_.L(W);for(l=W.next();!l.done;l=W.next())Ee(l.value);hg()})()};
_.fuz=function(W){return _.ah(function(){return _.VsY("_start",W)})()};
_.Sy=function(W,l,V){_.ah(_.ey)(W,l,V===void 0?!1:V)};
_.Wy=function(W,l,V){return _.ah(_.xu)(W,l,V)};
_.VsY=function(W,l){return _.ah(function(){var V=_.HdF(l);return W in V})()};
R5U=function(W){if(!_.U("universal_csi_network_ticks"))return"";W=_.JY(W)||"";for(var l=Object.keys(rej),V=0;V<l.length;V++){var f=l[V];if(W.includes(f))return f}return""};
szj=function(W){if(!_.U("universal_csi_network_ticks"))return function(){};
var l=rej[W];return l?(_.l_(l),function(){var V=_.U("universal_csi_network_ticks")?(V=tsJ[W])?_.l_(V):!1:!1;return V}):function(){}};
_.l_=function(W,l,V){return _.ah(function(){if(_.VsY(W,V))return!1;_.Wy(W,l,V);return!0})()};
_.VE=function(W,l,V){_.ah(function(){if(!_.fuz(V)||_.VsY(W,V))return!1;_.Wy(W,l,V);return!0})()};
_.f0=function(W){return _.ah(_.qT)(W,void 0)};
hg=function(W){_.fuz(W)&&_.Wy("aa",void 0,W)};
_.n0F=function(W,l,V,f,r,R,y,P,n){var B=L9F();P=new EC({veType:l,youtubeData:R,jspbYoutubeData:P});R=rJ({},B);r&&(R.cttAuthInfo=r);r={csn:B,pageVe:P.getAsJson()};_.U("expectation_logging")&&n&&n.screenCreatedLoggingExpectations&&(r.screenCreatedLoggingExpectations=n.screenCreatedLoggingExpectations);V&&V.visualElement?(r.implicitGesture={parentCsn:V.clientScreenNonce,gesturedVe:V.visualElement.getAsJson()},y&&(r.implicitGesture.gestureType=y)):V&&_.Qe(new _.bP("newScreen() parent element does not have a VE - rootVe",
l));f&&(r.cloneCsn=f);W?iT("screenCreated",r,W,R):_.XC("screenCreated",r,R);HGq(j1x,new yex(B));Rs.clear();g0n.clear();PGF.clear();return B};
tW=function(W,l,V,f,r,R){R=R===void 0?{}:R;CG6(W,l,V,[f],r===void 0?!1:r,R)};
CG6=function(W,l,V,f,r,R){r=r===void 0?!1:r;R=R===void 0?{}:R;Object.assign(R,rJ({cttAuthInfo:lj(l)||void 0},l));for(var y=_.L(f),P=y.next();!P.done;P=y.next()){P=P.value;var n=P.getAsJson();(_.MC.isEmpty(n)||!n.trackingParams&&!n.veType)&&_.Qe(Error("yf"));if(_.U("no_client_ve_attach_unless_shown")){var B=ce6(P,l);if(n.veType&&!g0n.has(B)&&!PGF.has(B)&&!r){if(!_.U("il_attach_cache_limit")||Rs.size<1E3){Rs.set(B,[W,l,V,P]);return}_.U("il_attach_cache_limit")&&Rs.size>1E3&&_.Qe(new _.bP("IL Attach cache exceeded limit"))}P=
ce6(V,l);Rs.has(P)?Btg(V,l):PGF.set(P,!0)}}f=f.filter(function(d){d.csn!==l?(d.csn=l,d=!0):d=!1;return d});
V={csn:l,parentVe:V.getAsJson(),childVes:_.Zl(f,function(d){return d.getAsJson()})};
l==="UNDEFINED_CSN"?sK("visualElementAttached",R,V):W?iT("visualElementAttached",V,W,R):_.XC("visualElementAttached",V,R)};
Je4=function(W,l,V,f,r){d06(W,l,V,r)};
d06=function(W,l,V,f){D0S(V,l);var r=rJ({cttAuthInfo:lj(l)||void 0},l);V={csn:l,ve:V.getAsJson(),eventType:1};f&&(V.clientData=f);l==="UNDEFINED_CSN"?sK("visualElementShown",r,V):W?iT("visualElementShown",V,W,r):_.XC("visualElementShown",V,r)};
U08=function(W,l,V,f){D0S(V,l);var r=rJ({cttAuthInfo:lj(l)||void 0},l);V={csn:l,ve:V.getAsJson(),eventType:4};f&&(V.clientData=f);l==="UNDEFINED_CSN"?sK("visualElementShown",r,V):W?iT("visualElementShown",V,W,r):_.XC("visualElementShown",V,r)};
u5q=function(W,l,V,f,r){var R=(f=f===void 0?!1:f)?16:8;f=rJ({cttAuthInfo:lj(l)||void 0,endOfSequence:f},l);V={csn:l,ve:V.getAsJson(),eventType:R};r&&(V.clientData=r);l==="UNDEFINED_CSN"?sK("visualElementHidden",f,V):W?iT("visualElementHidden",V,W,f):_.XC("visualElementHidden",V,f)};
v04=function(W,l,V,f,r){kfz(W,l,V,void 0,f,r)};
kfz=function(W,l,V,f,r){D0S(V,l);f=f||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var R=rJ({cttAuthInfo:lj(l)||void 0},l);V={csn:l,ve:V.getAsJson(),gestureType:f};r&&(V.clientData=r);l==="UNDEFINED_CSN"?sK("visualElementGestured",R,V):W?iT("visualElementGestured",V,W,R):_.XC("visualElementGestured",V,R)};
HBz=function(W,l,V,f){var r=rJ({cttAuthInfo:lj(l)||void 0},l);V={csn:l,ve:V.getAsJson(),clientData:f};l==="UNDEFINED_CSN"?sK("visualElementStateChanged",r,V):W?iT("visualElementStateChanged",V,W,r):_.XC("visualElementStateChanged",V,r)};
K9S=function(){var W=PZn(16);for(var l=[],V=0;V<W.length;V++)l.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(W[V]&63));return l.join("")};
sK=function(W,l,V){F9v.push({payloadName:W,payload:V,jspbPayload:void 0,options:l});Gfv||(Gfv=iGU())};
o7n=function(W){if(F9v){for(var l=_.L(F9v),V=l.next();!V.done;V=l.next())V=V.value,V.payload&&(V.payload.csn=W.csn,_.XC(V.payloadName,V.payload,V.options));F9v.length=0}Gfv=0};
ce6=function(W,l){return""+W.getAsJson().veType+W.getAsJson().veCounter+l};
D0S=function(W,l){if(_.U("no_client_ve_attach_unless_shown")){var V=ce6(W,l);g0n.set(V,!0);Btg(W,l)}};
Btg=function(W,l){W=ce6(W,l);Rs.has(W)&&(l=Rs.get(W)||[],tW(l[0],l[1],l[2],l[3],!0),Rs.delete(W))};
rJ=function(W,l){_.U("log_sequence_info_on_gel_web")&&(W.sequenceGroup=l);return W};
_.L0=function(W,l,V){_.ah(tW)(void 0,W,l,V)};
_.yE=function(W,l,V){_.ah(CG6)(void 0,W,l,V)};
_.gJ=function(W,l){_.ah(Je4)(void 0,W,l,void 0,void 0,void 0)};
_.Py=function(W,l,V){_.ah(function(){_.q4(l,function(f){U08(void 0,W,f,V)})})()};
_.n0=function(W,l,V,f){_.ah(function(){_.q4(l,function(r){u5q(void 0,W,r,V,f)})})()};
_.C0=function(W,l,V){_.ah(v04)(void 0,W,l,V,void 0)};
_.cy=function(W,l,V,f){_.ah(kfz)(void 0,W,l,V,f,void 0)};
_.By=function(W,l,V){_.ah(HBz)(void 0,W,l,V,void 0)};
bBF=function(W,l){DA.set(W,l)};
pog=function(W){return UK.initialized?UK.enabledSpans?UK.enabledSpans[W]:!0:!1};
o0x=function(W,l){if(W){l=l===void 0?1:l;if(W){W.endTime=(0,_.tv)();l&&(W.status=l);l=_.L(UK.processors);for(var V=l.next();!V.done;V=l.next()){var f=void 0,r=void 0;(r=(f=V.value).onSpanEnd)==null||r.call(f,W)}}W!==UK.stack[UK.stack.length-1]&&_.Qe(Error("Bf`"+W.name));UK.stack.pop()}};
jz8=function(W,l,V){if(pog(W)){var f=UK.nextSpanId++,r=UK.stack[UK.stack.length-1];W={id:f,parentId:r==null?void 0:r.id,name:W,attributes:l,traceId:r?r.traceId:f,sessionId:UK.sessionId,startTime:(0,_.tv)(),status:0};r&&(r.children||(r.children=[]),r.children.push(W));r=_.L(UK.processors);for(l=r.next();!l.done;l=r.next()){var R=f=void 0;(R=(f=l.value).onSpanStart)==null||R.call(f,W)}}else W=void 0;W?UK.stack.push(W):W=void 0;if(!W)return V();try{var y=V(W);o0x(W);return y}catch(P){throw o0x(W,2),
P;}};
IuY=function(){};
iBj=function(W,l){var V=Object.keys(W);W=new _.bP("[Command Handler] "+l,{filteredCommandNames:V,originalCommand:W});_.wv(W)};
m0J=function(W,l){iBj(W,l+" was called but not set")};
Xo6=function(W){return function(){return new W}};
u_=function(W){return function(){return _.tY().resolve(W)}};
Ttx=function(W,l){var V=_.k(W,_.zs);if(V&&(V=l[V.signal]))return V();W=_.L(Object.keys(W));for(V=W.next();!V.done;V=W.next())if(V=V.value,l[V]&&(V=l[V]))return V()};
_.kH=function(W,l,V,f){return{browseEndpoint:{browseId:W},commandMetadata:{webCommandMetadata:{url:l,rootVe:V,webPageType:f===void 0?"WEB_PAGE_TYPE_BROWSE":f}}}};
woS=function(W,l,V){var f=l=l===void 0?0:l;V=V===void 0?0:V;var r=V-f;return _.vy(W,"PPSV",void 0,void 0,(r>600?0:r<60||V<=0||f/V>.9)?0:l)};
_.vy=function(W,l,V,f,r){var R="/watch?v="+W;W={videoId:W};l&&(W.playlistId=l,R+="&list="+l);f&&(R+="&pp="+f);r&&(W.startTimeSeconds=r,R+="&t="+r+"s");l={watchEndpoint:W,commandMetadata:{webCommandMetadata:{url:R,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};V&&(l.clickTrackingParams=V);f&&(_.k(l,_.Bh).playerParams=f);return l};
Aeq=function(W){return{browseEndpoint:{browseId:"VL"+W},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+W,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
Qz4=function(W){if(W){var l;if(W){var V=(l=_.k(W.commandMetadata,_.XN))==null?void 0:l.url;l=!(!V||V==="/service_ajax")}else l=!1;if(l)return W;var f;if(W=(f=_.k(W,_.Ig))==null?void 0:f.commands)for(f=_.L(W),W=f.next();!W.done;W=f.next())if(W=Qz4(W.value))return W}};
_.Hy=function(W){return{runs:[{text:W}]}};
MsY=function(W,l){return W&&l?{runs:[{text:W,navigationEndpoint:l}]}:void 0};
K0=function(W){return W?_.Hy(W):void 0};
_.Fy=function(W){return W?{simpleText:W}:void 0};
_.GT=function(W){var l=W.type;W=W.payload;l={type:l};W!==void 0&&(l.payload=W);return l};
ZBU=function(W,l,V){for(var f=Object.assign({},W),r=_.L(Object.keys(l)),R=r.next();!R.done;R=r.next()){R=R.value;var y=W[R],P=l[R];if(P===void 0)delete f[R];else if(y===void 0)f[R]=P;else if(Array.isArray(P)&&Array.isArray(y))f[R]=V?[].concat(_.QK(y),_.QK(P)):P;else if(!Array.isArray(P)&&_.ev(P)&&!Array.isArray(y)&&_.ev(y))f[R]=ZBU(y,P,V);else if(typeof P===typeof y)f[R]=P;else return l=new _.bP("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:R,originalValue:y,updateValue:P}),
_.wv(l),W}return f};
z5z=function(W){if(!W.length)return"";try{if(OBJ)return OBJ.decode(W);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(W)}catch(y){}for(var l=0,V=[],f=W.length;l<f;){for(var r=0;r<1024&&l<f;){var R=W[l++];if(R<128)auv[r++]=R;else{if(R<224)R=(R&31)<<6|W[l++]&63;else if(R<240)R=(R&15)<<12|(W[l++]&63)<<6|W[l++]&63;else{if(r+1===1024){--l;break}R=(R&7)<<18|(W[l++]&63)<<12|(W[l++]&63)<<6|W[l++]&63;R-=65536;auv[r++]=55296|R>>10;R=56320|R&1023}auv[r++]=R}}R=String.fromCharCode.apply(String,
auv);r<1024&&(R=R.substring(0,r));V.push(R)}return V.join("")};
Yj8=function(W,l){var V;if((V=NtJ)==null?0:V.encodeInto)return l=NtJ.encodeInto(W,l),l.read<W.length?W.length*4:l.written;for(var f=V=0;f<W.length;f++){var r=W.charCodeAt(f);r<128?l[V++]=r:(r<2048?l[V++]=r>>6|192:((r&64512)===55296&&f+1<W.length&&(W.charCodeAt(f+1)&64512)===56320?(r=65536+((r&1023)<<10)+(W.charCodeAt(++f)&1023),l[V++]=r>>18|240,l[V++]=r>>12&63|128):l[V++]=r>>12|224,l[V++]=r>>6&63|128),l[V++]=r&63|128)}return V};
x0Y=function(W,l,V){if(l&&V&&V.buffer===l.exports.memory.buffer){var f=l.realloc(V.byteOffset,W);if(f)return new Uint8Array(l.exports.memory.buffer,f,W)}W=l?new Uint8Array(l.exports.memory.buffer,l.malloc(W),W):new Uint8Array(W);V&&W.set(V);return W};
_.p0=function(W){W=new e5Y(new qjn([_.$z(decodeURIComponent(W))]));if(h5U(W,2)){var l=b_(W);var V=W.pos;var f=W.arrayView;V=V===void 0?0:V;var r=l===void 0?-1:l;V=V===void 0?0:V;r=r===void 0?-1:r;if(f.totalLength&&r){r<0&&(r=f.totalLength-V);f.focus(V);if(!(V-f.arrayPos+r<=f.arrays[f.arrayIdx].length)){var R=f.arrayIdx,y=f.arrayPos;f.focus(V+r-1);y=new Uint8Array(f.arrayPos+f.arrays[f.arrayIdx].length-y);for(var P=0,n=R;n<=f.arrayIdx;n++)y.set(f.arrays[n],P),P+=f.arrays[n].length;f.arrays.splice(R,
f.arrayIdx-R+1,y);f.arrayIdx=0;f.arrayPos=0;f.focus(V)}R=f.arrays[f.arrayIdx];f=new DataView(R.buffer,R.byteOffset+V-f.arrayPos,r)}else f=new DataView(new ArrayBuffer(0));f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength);W.pos+=l;l=f}else l=void 0;l=l?z5z(l):void 0;W=h5U(W,4)?b_(W):void 0;f=Sjv[W];if(typeof f==="undefined")throw W=new _.bP("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:W}),_.wv(W),W;return{entityTypeFieldNumber:W,entityType:f,entityId:l}};
_.i_=function(W,l,V){V=V===void 0?0:V;var f=new E0n;if(NtJ)W=NtJ.encode(W);else{var r=new Uint8Array(Math.ceil(W.length*1.2)),R=Yj8(W,r);r.length<R&&(r=new Uint8Array(R),R=Yj8(W,r));r.length>R&&(r=r.subarray(0,R));W=r}W!==void 0&&(jE(f,18),r=W.length,jE(f,r),Is(f,r),f.buf.set(W,f.pos),f.pos+=r);W=$06[l];if(typeof W==="undefined")throw V=new _.bP("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:l}),_.wv(V),V;W!==void 0&&(jE(f,32),jE(f,W));jE(f,40);jE(f,1);l=new Uint8Array(f.buf.buffer,
f.buf.byteOffset,f.pos);return encodeURIComponent(_.Xw(l,V))};
Wmj=function(W){W=W.key||W.id;if(!W)throw Error("Df");return W};
Vbn=function(W,l){W=W===void 0?{}:W;return lkz(W,l)};
fkz=function(W,l,V,f){if(f===void 0)return f=Object.assign({},W[l]||{}),V=(delete f[V],f),f={},Object.assign({},W,(f[l]=V,f));var r={},R={};return Object.assign({},W,(R[l]=Object.assign({},W[l],(r[V]=f,r)),R))};
rJ6=function(W,l,V,f,r){var R=W[l];if(R==null||!R[V])return W;f=ZBU(R[V],f,r==="REPEATED_FIELDS_MERGE_OPTION_APPEND");r={};R={};return Object.assign({},W,(R[l]=Object.assign({},W[l],(r[V]=f,r)),R))};
_.mL=function(W,l,V){return W[l]?W[l][V]||null:null};
tb8=function(){if(R18)return R18();var W={};R18=Rl("PersistentEntityStoreDb",{objectStores:(W.EntityStore={addedAtVersion:1},W.EntityAssociationStore={addedAtVersion:2},W),shared:!1,upgrade:function(l,V){V(1)&&Nt(zd(l,"EntityStore",{keyPath:"key"}),"entityType","entityType");V(2)&&(l=zd(l,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),Nt(l,"byParentEntityKey","parentEntityKey"),Nt(l,"byChildEntityKey","childEntityKey"))},
version:3});return R18()};
sHn=function(W){return _.SF(tb8(),W)};
Xy=function(W){return window.Int32Array?new Int32Array(W):Array(W)};
yJj=function(W){return _.SF(LmJ(),W)};
gQz=function(W){return new TT("WRONG_DATA_TYPE",{encoderVersion:W})};
POq=function(W){return W instanceof Error?new TT("UNKNOWN_ENCODE_ERROR",{originalMessage:W.message}):new TT("UNKNOWN_ENCODE_ERROR")};
nQz=function(W){return W instanceof Error?new TT("UNKNOWN_DECODE_ERROR",{originalMessage:W.message}):new TT("UNKNOWN_DECODE_ERROR")};
COU=function(W,l){W=W instanceof TT?W:l(W);_.wv(W);throw W;};
cJ8=function(W){W=(new TextEncoder).encode(W).subarray(0,16);var l=new Uint8Array(16);l.set(W);return l};
dl8=function(W){var l=BTq[W];if(l)return l;_.Qe(new _.bP("Entity model not found.",{entityType:W}))};
_.wJ=function(){JJ4||(JJ4=Dlv());return JJ4};
Dlv=function(){var W,l,V;return _.g(function(f){if(f.nextAddress==1)return _.HG(f,2),f.yield(_.r8(),4);if(f.nextAddress!=2){W=f.yieldResult;if(!W||!_.G4()||typeof _.rS.BroadcastChannel==="undefined")return f.return();l=new UlY;return f.return(new AW(W,l))}V=_.pc(f);V instanceof Error&&_.wv(V);return f.return()})};
_.QE=function(W,l){var V;return _.g(function(f){if(f.nextAddress==1){V=W.mutations;if(!V||V.length<=0)return f.return();l&&l.dispatch(_.GT({type:"ENTITY_LOADED",payload:V}));return f.yield(u6j(V),2)}V.length=0;_.ju(f)})};
u6j=function(W){var l;return _.g(function(V){return V.nextAddress==1?V.yield(_.wJ(),2):(l=V.yieldResult)?V.yield(_.Md(l,"readwrite",function(f){for(var r={},R=_.L(W),y=R.next(),P={};!y.done;P={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},y=R.next())P.mutation$jscomp$4=y.value,P.mutation$jscomp$4.entityKey&&kPS(P.mutation$jscomp$4)&&(P.mutationEntityType$jscomp$3=(0,_.MC.getAnyKey)(P.mutation$jscomp$4.payload),y=void 0,P.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(y=function(n){return function(){return _.vQY(f,
n.mutation$jscomp$4.payload[n.mutationEntityType$jscomp$3],n.mutationEntityType$jscomp$3)}}(P)),P.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(y=function(n){return function(){return HEU(f,n.mutation$jscomp$4.entityKey)}}(P)),P.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(y=function(n){return function(){return Km4(f,n.mutation$jscomp$4.entityKey,n.mutation$jscomp$4.payload[n.mutationEntityType$jscomp$3],n.mutationEntityType$jscomp$3)}}(P)),y&&(r[P.mutation$jscomp$4.entityKey]=
r[P.mutation$jscomp$4.entityKey]?r[P.mutation$jscomp$4.entityKey].then(y):y()));
return z4.all(Object.values(r))}),0):V.return()})};
kPS=function(W){var l;W=(l=W.options)==null?void 0:l.persistenceOption;return W==="ENTITY_PERSISTENCE_OPTION_PERSIST"||W==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
bE4=function(W,l){var V,f;_.g(function(r){if(r.nextAddress==1)return r.yield(_.wJ(),2);if(r.nextAddress!=3)return(V=r.yieldResult)?r.yield(_.Md(V,"readonly",function(R){var y={},P=Object.keys(l).map(function(n){var B=l[n]?[].concat(_.QK(l[n])):[];return Fmj(R,n,B,y)});
return z4.all(P).then(function(){return y})}),3):r.return();
f=r.yieldResult;Object.keys(f).length>0&&W.dispatch(GPJ(f));_.ju(r)})};
Fmj=function(W,l,V,f){return ZA(W,l,V).then(function(r){f[l]=pmn(V,r)})};
pmn=function(W,l){if(l.length!==W.length)throw Error("Gf");return l.reduce(function(V,f,r){V[W[r]]=f;return V},{})};
Ikz=function(W){var l=W.filter(function(r){var R;return(r==null?void 0:(R=r.transferEntity)==null?void 0:R.transferState)==="TRANSFER_STATE_COMPLETE"}).length,V=W.filter(function(r){var R;
return(r==null?void 0:(R=r.transferEntity)==null?void 0:R.transferState)==="TRANSFER_STATE_FAILED"}).length,f=W.filter(function(r){var R;
return(r==null?void 0:(R=r.transferEntity)==null?void 0:R.transferState)&&oQz.includes(r.transferEntity.transferState)});
if(!(l||f!=null&&f.length))return 0;l=_.jHx(f)+l;W=W.length-V;return W===0?0:Math.round(l*100/W)/100};
_.jHx=function(W){var l=[];l=l.concat.apply(l,_.QK(W.filter(function(R){return R.streamEntity}).map(function(R){var y=Object.assign({},R.streamEntity),P,n=(P=R.transferEntity)==null?void 0:P.transferState;
y.streamsProgress=y.streamsProgress||[];y.streamsProgress=y.streamsProgress.map(function(B){var d=Object.assign({},B);d.numBytesDownloaded=n==="TRANSFER_STATE_COMPLETE"?B.numTotalBytes:B.numBytesDownloaded;return d});
return y}).map(function(R){return R.streamsProgress})));
var V=W=0;l=_.L(l);for(var f=l.next();!f.done;f=l.next()){var r=f.value;f=Number(r.numBytesDownloaded);r=Number(r.numTotalBytes);V+=isNaN(f)?0:f;W+=isNaN(r)?0:r}return W===0?0:Math.round(V*100/W)/100};
iEY=function(W){if(!W||!W.expirationTimestamp||!W.action)return!1;var l=(0,_.tv)()/1E3;return Number(W.expirationTimestamp)>=l};
OK=function(W){return W&&W.expirationTimestamp&&W.action?iEY(W)&&W.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.as=function(W){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(W||"TRANSFER_STATE_UNKNOWN")};
mlg=function(W){var l=new E0n;if(W!==void 0){var V=Math.ceil(Math.log2(W.length*4+2)/7);V=V===void 0?2:V;jE(l,10);l.submessagePosStack.push(l.pos);l.submessagePosStack.push(V);l.pos+=V;Is(l,W.length*1.2);V=Yj8(W,l.buf.subarray(l.pos));l.pos+V>l.buf.length&&(Is(l,V),V=Yj8(W,l.buf.subarray(l.pos)));l.pos+=V;W=l.submessagePosStack.pop();V=l.submessagePosStack.pop();for(var f=l.pos-V-W;W--;){var r=W?128:0;l.view.setUint8(V++,f&127|r);f>>=7}}l=new Uint8Array(l.buf.buffer,l.buf.byteOffset,l.pos);return(new TextDecoder("utf-8")).decode(l)};
_.zT=function(W){var l=0;W=_.L(W);for(var V=W.next(),f={};!V.done;f={transferState$jscomp$3:void 0},V=W.next()){var r=V.value,R=void 0;V=(R=r.streamEntity)!=null?R:{};R=void 0;f.transferState$jscomp$3=(R=r.transferEntity)==null?void 0:R.transferState;R=r=void 0;((r=V)==null?0:(R=r.streamsProgress)==null?0:R.length)&&V.streamsProgress.forEach(function(y){return function(P){P=Number(y.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?P.numTotalBytes:P.numBytesDownloaded);isFinite(P)&&(l+=P)}}(f))}return l};
Xmq=function(W){return W.some(function(l){var V;if(!(l==null?0:(V=l.transferEntity)==null?0:V.transferState)){var f;return!(l==null?0:(f=l.policyEntity)==null?0:f.action)||l.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return oQz.includes(l.transferEntity.transferState)})};
TTS=function(W,l){if(!l)return!1;if(_.U("of_pb_en_po_ks"))return!0;var V;W=(V=_.mL(W,"offlineVideoPolicy",_.i_(l,"offlineVideoPolicy")))!=null?V:void 0;return!!W&&OK(W)};
_.AJx=function(W){var l=["TRANSFER_STATE_COMPLETE"];l=l===void 0?wmS:l;return W.filter(function(V){var f,r;return l.includes((r=(f=V.transferEntity)==null?void 0:f.transferState)!=null?r:"TRANSFER_STATE_UNKNOWN")})};
QHn=function(W,l){if(l){var V,f=(V=_.mL(W,"playbackData",_.i_(l,"playbackData")))!=null?V:null,r;V=(r=_.mL(W,"transfer",_.i_(l,"transfer")))!=null?r:null;var R;r=(R=_.mL(W,"offlineVideoStreams",_.i_(l,"offlineVideoStreams")))!=null?R:null;var y;W=(y=_.mL(W,"offlineVideoPolicy",_.i_(l,"offlineVideoPolicy")))!=null?y:null;if(f||V||r||W)return{playbackDataEntity:f,transferEntity:V,streamEntity:r,policyEntity:W}}};
_.Nd=function(W){var l=W.playbackData;if(!l)return[];var V=[];l=_.L(Object.keys(l));for(var f=l.next();!f.done;f=l.next()){var r=f.value;if(!Mbv(W,_.p0(r).entityId)&&(f=QHn(W,_.p0(r).entityId))){var R=void 0,y=void 0;r=(y=Number((R=_.mL(W,"playbackData",r))==null?void 0:R.streamDownloadTimestampSeconds))!=null?y:(0,_.tv)();V.push({entity:f,streamDownloadTimestamp:r})}}return V.sort(function(P,n){var B=P.streamDownloadTimestamp,d=n.streamDownloadTimestamp;return d===B?P.entity.streamEntity&&!n.entity.streamEntity?
1:-1:d-B}).map(function(P){return P.entity})};
ZE4=function(W){return _.AJx(_.Nd(W))};
_.OES=function(W){return _.Nd(W).filter(function(l){var V;if(((V=l.policyEntity)==null?0:V.action)&&l.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var f;if((f=l.transferEntity)==null?0:f.transferState){var r;return oQz.includes((r=l.transferEntity)==null?void 0:r.transferState)}return!0})};
Mbv=function(W,l){var V;return((V=_.mL(W,"downloadStatusEntity",_.i_(l,"downloadStatusEntity")))==null?void 0:V.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
akS=function(W){var l;if(W==null?0:(l=W.playbackDataEntity)==null?0:l.key)return _.p0(W.playbackDataEntity.key).entityId;var V;if(W==null?0:(V=W.transferEntity)==null?0:V.key)return _.p0(W.transferEntity.key).entityId;var f;if(W==null?0:(f=W.streamEntity)==null?0:f.key)return _.p0(W.streamEntity.key).entityId;var r;if(W==null?0:(r=W.policyEntity)==null?0:r.key)return _.p0(W.policyEntity.key).entityId};
NTq=function(W){var l=new Set,V;W=(V=W.mainDownloadsListEntity)==null?void 0:V[z1q];var f;if(!(W==null?0:(f=W.downloads)==null?0:f.length))return l;var r;W==null||(r=W.downloads)==null||r.forEach(function(R){(R==null?0:R.videoItem)&&l.add(R.videoItem)});
return l};
YH=function(W,l){if(l){var V=_.mL(W,"mainVideoEntity",_.i_(l,"mainVideoEntity")),f=_.mL(W,"downloadStatusEntity",_.i_(l,"downloadStatusEntity")),r=_.mL(W,"ytMainChannelEntity",_.i_(l,"ytMainChannelEntity")),R={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};W=QHn(W,l);f=(f==null?void 0:f.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.U("woffle_render_failed_download_state_ks")&&(f==null?void 0:f.downloadState)==="DOWNLOAD_STATE_FAILED";!W&&f&&(W=R);if(W&&V&&
r)return Object.assign({},{videoEntity:V,channelEntity:r},W)}};
xlJ=function(W,l){return Ybz(W,l)==="TRANSFER_STATE_COMPLETE"&&TTS(W,l)};
e1Y=function(W,l){if(!l)return!1;var V;W=(V=_.mL(W,"playbackData",_.i_(l,"playbackData")))!=null?V:void 0;return!!W&&!!W.playerResponseJson};
Ybz=function(W,l){if(!l)return"TRANSFER_STATE_UNKNOWN";var V=_.mL(W,"transfer",_.i_(l,"transfer"));if(V){var f;return(f=V.transferState)!=null?f:"TRANSFER_STATE_UNKNOWN"}V=_.mL(W,"offlineOrchestrationActionWrapperEntity",_.i_(l,"offlineOrchestrationActionWrapperEntity"));W=_.mL(W,"mainVideoEntity",_.i_(l,"mainVideoEntity"));return V||W?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
qbY=function(W,l){if(!l)return"TRANSFER_STATE_UNKNOWN";if(W=_.mL(W,"transfer",_.i_(l,"transfer"))){var V;return(V=W.transferState)!=null?V:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
h1F=function(W,l){return l&&(W=_.mL(W,"videoPlaybackPositionEntity",_.i_(l,"videoPlaybackPositionEntity")),W==null?0:W.lastPlaybackPositionSeconds)?Number(W.lastPlaybackPositionSeconds):0};
EQJ=function(W,l){return Sb4(W).some(function(V){var f;return(V==null?void 0:(f=V.mainPlaylistEntity)==null?void 0:f.playlistId)===l})};
WVS=function(W,l,V){var f=$lU(W,l);if(!f.length)return[];l=[];f=_.L(f);for(var r=f.next();!r.done;r=f.next()){r=r.value;var R=YH(W,r);V&&Ybz(W,r)!=="TRANSFER_STATE_COMPLETE"||R&&l.push(R)}return l};
$lU=function(W,l){if(!l)return[];var V=_.i_(l,"mainPlaylistEntity"),f;l=(f=W.mainPlaylistEntity)==null?void 0:f[V];f=[];if(l==null||!l.videos)return f;l=_.L(l.videos);for(V=l.next();!V.done;V=l.next()){V=V.value;var r=void 0,R=void 0,y=void 0,P=(r=W)==null?void 0:(R=r.mainPlaylistVideoEntity)==null?void 0:(y=R[V])==null?void 0:y.video;P&&(V=_.p0(P).entityId)&&f.push(V)}return f};
lI6=function(W,l){if(l){var V=_.mL(W,"mainPlaylistEntity",_.i_(l,"mainPlaylistEntity")),f=_.mL(W,"mainPlaylistDownloadStateEntity",_.i_(l,"mainPlaylistDownloadStateEntity"));W=_.mL(W,"ytMainChannelEntity",_.i_(l,"ytMainChannelEntity"));if(f&&V)return Object.assign({},{mainPlaylistEntity:V,mainPlaylistDownloadStateEntity:f},!!W&&{channelEntity:W})}};
Sb4=function(W){return V7j(W).sort(function(l,V){return V.addedTimestampMillis-l.addedTimestampMillis}).map(function(l){return l.downloadedPlaylistEntities})};
V7j=function(W){var l=W.mainPlaylistDownloadStateEntity,V=[];if(!l)return V;for(var f=_.L(Object.keys(l)),r=f.next();!r.done;r=f.next()){var R=r.value;r=lI6(W,_.p0(R).entityId);var y=void 0;R=Number((y=l[R])==null?void 0:y.addedTimestampMillis);y=isNaN(R)?(0,_.tv)():R;r!==void 0&&V.push({downloadedPlaylistEntities:r,addedTimestampMillis:y})}return V};
fIq=function(W){var l,V=(l=W.mainPlaylistVideoEntity)!=null?l:{};return new Set(Sb4(W).reduce(function(f,r){f=f===void 0?[]:f;var R,y;r==null||(R=r.mainPlaylistEntity)==null||(y=R.videos)==null||y.forEach(function(P){var n;(P=(n=V[P])==null?void 0:n.video)&&f.push(P)});
return f},[]))};
rzz=function(W){return"downloadedMusicPlaylistEntities"in W};
RmU=function(W){return"mainPlaylistEntity"in W&&"mainPlaylistDownloadStateEntity"in W};
t7j=function(W){return"videoEntity"in W&&"channelEntity"in W};
sBF=function(W){var l=W.musicPlaylistDownloadMetadataEntity,V=[];if(!l)return V;for(var f=_.L(Object.keys(l)),r=f.next();!r.done;r=f.next()){r=r.value;a:{var R=W,y=_.p0(r).entityId;if(y){var P=_.mL(R,"musicPlaylist",_.i_(y,"musicPlaylist"));R=_.mL(R,"musicPlaylistDownloadMetadataEntity",_.i_(y,"musicPlaylistDownloadMetadataEntity"));if(P&&R){P={musicPlaylistEntity:P,musicPlaylistDownloadStateEntity:R};break a}}P=void 0}R=void 0;r=Number((R=l[r])==null?void 0:R.addedTimestampMillis);r=isNaN(r)?(0,_.tv)():
r;P!==void 0&&V.push({downloadedMusicPlaylistEntities:P,addedTimestampMillis:r})}return V};
LVn=function(W){var l=new Set;W=_.L(W);for(var V=W.next();!V.done;V=W.next())if(V=V.value,"musicPlaylistEntity"in V&&"musicPlaylistDownloadStateEntity"in V){V=_.L(V.musicPlaylistEntity.tracks);for(var f=V.next();!f.done;f=V.next())l.add(f.value)}return l};
yz6=function(W,l){if(l){var V=_.mL(W,"musicTrack",_.i_(l,"musicTrack")),f=_.mL(W,"musicArtist",_.i_(l,"musicArtist"))||{};if((W=QHn(W,l))&&V&&f)return Object.assign({},{musicTrackEntity:V,musicArtistEntity:f},W)}};
gCx=function(W){var l=W.musicTrackDownloadMetadataEntity,V=[];if(!l)return[];l=_.L(Object.keys(l));for(var f=l.next();!f.done;f=l.next()){var r=f.value;f=yz6(W,_.p0(r).entityId);var R=void 0;r=Number((R=_.mL(W,"musicTrackDownloadMetadataEntity",r))==null?void 0:R.addedTimestampMillis);R=isNaN(r)?(0,_.tv)():r;f!==void 0&&V.push({downloadedMusicEntities:f,addedTimestampMillis:R})}return V};
CLg=function(W,l){if(!l)return[];if(Object.values(PLS).includes(l))return nCz(W,l);l=_.i_(l,"musicPlaylist");var V;W=(V=W.musicPlaylist)==null?void 0:V[l];V=[];if(W==null||!W.tracks)return V;W=_.L(W.tracks);for(l=W.next();!l.done;l=W.next())(l=_.p0(l.value).entityId)&&V.push(l);return V};
nCz=function(W,l){var V=new Set,f=sBF(W).map(function(R){return R.downloadedMusicPlaylistEntities});
f=LVn(f);f=_.L(f);for(var r=f.next();!r.done;r=f.next())(r=_.p0(r.value).entityId)&&V.add(r);return czF(W).downloadedMusicEntities.filter(function(R){var y;if((y=R.musicTrackEntity)!=null&&y.videoId){R=R.musicTrackEntity;if(y=l==="PPOM"?!0:!V.has(R.videoId))b:switch(R=R.musicVideoType,l){case "PPSE":y=R==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:y=R!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}R=y}else R=!1;return R}).map(function(R){var y;
return(y=R.musicTrackEntity)==null?void 0:y.videoId})};
czF=function(W){var l=gCx(W).sort(function(V,f){return f.addedTimestampMillis-V.addedTimestampMillis}).map(function(V){return"downloadedMusicEntities"in V?V.downloadedMusicEntities:rzz(V)?V.downloadedMusicPlaylistEntities:{}});
W=sBF(W).sort(function(V,f){return f.addedTimestampMillis-V.addedTimestampMillis}).map(function(V){return"downloadedMusicEntities"in V?V.downloadedMusicEntities:rzz(V)?V.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:l,downloadedMusicPlaylistEntities:W}};
d5z=function(W,l){l=_.M4("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?CLg(W,l):$lU(W,l);if(!l.length)return"TRANSFER_STATE_UNKNOWN";l=l.map(function(V){return qbY(W,V)});
return BZn(l)};
BZn=function(W){var l=new Set(W);if(l.has("TRANSFER_STATE_FAILED")&&l.size===1)return"TRANSFER_STATE_FAILED";l.delete("TRANSFER_STATE_FAILED");if(l.has("TRANSFER_STATE_UNKNOWN")&&l.size===1)return"TRANSFER_STATE_PRE_TRANSFER";l.delete("TRANSFER_STATE_UNKNOWN");if(l.has("TRANSFER_STATE_PRE_TRANSFER")&&l.size===1||l.size===0)return"TRANSFER_STATE_PRE_TRANSFER";W=l.has("TRANSFER_STATE_TRANSFERRING");l=l.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return W||l?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
xH=function(W){var l=W.mainVideoDownloadStateEntity,V=[];if(!l)return[];l=_.L(Object.keys(l));for(var f=l.next();!f.done;f=l.next()){var r=f.value;if(!Mbv(W,_.p0(r).entityId)){f=YH(W,_.p0(r).entityId);var R=void 0,y=void 0;r=(y=Number((R=_.mL(W,"mainVideoDownloadStateEntity",r))==null?void 0:R.addedTimestampMillis))!=null?y:(0,_.tv)();f!==void 0&&V.push({downloadedVideoEntities:f,addedTimestampMillis:r})}}return V};
JzY=function(W){return xH(W).sort(function(l,V){return V.addedTimestampMillis-l.addedTimestampMillis}).map(function(l){return l.downloadedVideoEntities})};
_.U58=function(W){var l=fIq(W),V=_.eE(W),f=NTq(W),r=xH(W).filter(function(y){var P,n;if((y==null?void 0:(P=y.downloadedVideoEntities)==null?void 0:(n=P.transferEntity)==null?void 0:n.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var B,d;y=y==null?void 0:(B=y.downloadedVideoEntities)==null?void 0:(d=B.videoEntity)==null?void 0:d.key;return _.U("kevlar_use_library_entity")?y&&(f.has(y)||V[y]):y&&!l.has(y)}),R=V7j(W).filter(function(y){return d5z(W,y.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.QK(r),_.QK(R)).sort(function(y,P){return P.addedTimestampMillis-y.addedTimestampMillis}).map(function(y){return D5v(y)})};
uUg=function(W,l){if(l&&TTS(W,l)){var V,f,r=(f=(V=_.mL(W,"playbackData",_.i_(l,"playbackData")))!=null?V:void 0)==null?void 0:f.playerResponseJson;if(r){try{var R=JSON.parse(r);var y=_.mL(W,"transfer",_.i_(l,"transfer")),P=h1F(W,l);P&&(R=Object.assign({},R,{playerConfig:Object.assign({},R.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+P*1E3}}})}));R.cotn=y==null?void 0:y.cotn}catch(n){}return R}}};
_.vCj=function(W){var l,V,f;W=(f=(V=((l=W.downloadsPageViewConfigurationEntity)!=null?l:{})[_.qd])==null?void 0:V.smartDownloadsOptInBannerVisibility)!=null?f:{};var r;return(r=_.k(W,koS))!=null?r:{}};
_.eE=function(W){var l,V,f;W=(f=(V=((l=W.mainDownloadsListEntity)!=null?l:{})[_.H6q])==null?void 0:V.downloads)!=null?f:[];l={};V=_.L(W);for(f=V.next();!f.done;f=V.next())W=void 0,l[(W=f.value.videoItem)!=null?W:""]=!0;return l};
KVU=function(W){var l=_.eE(W);if(Object.keys(l).length===0)return!1;var V=W.mainVideoEntity;if(!V)return!0;V=_.L(Object.keys(V));for(var f=V.next();!f.done;f=V.next()){f=f.value;var r=_.p0(f).entityId;if(l[f]&&!Mbv(W,r))return!1}return!0};
_.hW=function(W){var l=_.eE(W);return xH(W).sort(function(V,f){return V.addedTimestampMillis-f.addedTimestampMillis}).map(function(V){return V.downloadedVideoEntities}).filter(function(V){var f;
return(V=V==null?void 0:(f=V.videoEntity)==null?void 0:f.key)&&!!l[V]})};
_.GoJ=function(W){var l,V,f;W=(f=(V=((l=W.downloadsPageViewConfigurationEntity)!=null?l:{})[_.qd])==null?void 0:V.downloadsUpsellBannerVisibility)!=null?f:{};var r;return(r=_.k(W,FVv))!=null?r:{}};
D5v=function(W){return"downloadedVideoEntities"in W?W.downloadedVideoEntities:"downloadedPlaylistEntities"in W?W.downloadedPlaylistEntities:{}};
b68=function(W){var l=_.eE(W),V=fIq(W),f=xH(W).filter(function(r){var R,y;return(r=r==null?void 0:(R=r.downloadedVideoEntities)==null?void 0:(y=R.videoEntity)==null?void 0:y.key)&&!l[r]&&!V.has(r)});
W=V7j(W);return[].concat(_.QK(f),_.QK(W)).sort(function(r,R){return R.addedTimestampMillis-r.addedTimestampMillis}).map(function(r){return D5v(r)})};
_.SE=function(W){if(!_.U("kevlar_use_library_entity"))return b68(W);var l=xH(W).filter(function(f){var r,R;if(r=f=f==null?void 0:(r=f.downloadedVideoEntities)==null?void 0:(R=r.videoEntity)==null?void 0:R.key){var y,P,n;r=((P=(y=W.mainDownloadsListEntity)==null?void 0:y[z1q])==null?0:(n=P.downloads)==null?0:n.length)?NTq(W).has(f):!1}return r}),V=V7j(W);
return[].concat(_.QK(l),_.QK(V)).sort(function(f,r){return r.addedTimestampMillis-f.addedTimestampMillis}).map(function(f){return D5v(f)})};
p3J=function(W){var l=_.eE(W),V=fIq(W);return JzY(W).filter(function(f){var r;return(f=f==null?void 0:(r=f.videoEntity)==null?void 0:r.key)&&!l[f]&&!V.has(f)})};
oCz=function(W){if(!_.U("kevlar_use_library_entity"))return p3J(W);var l=_.eE(W),V=NTq(W);return JzY(W).filter(function(f){var r;return(f=f==null?void 0:(r=f.videoEntity)==null?void 0:r.key)&&!l[f]&&V.has(f)})};
jBx=function(W,l){l=_.i_(l,"settingEntity");var V,f,r;return!!((r=(f=((V=W.settingEntity)!=null?V:{})[l])==null?void 0:f.settingOptionValue)!=null?r:{}).boolValue};
_.EK=function(W){var l=_.hW(W);if(Xmq(l))return 0;var V=[];l=_.L(l);for(var f=l.next();!f.done;f=l.next()){f=f.value;var r=void 0,R=void 0;if((r=f)==null?0:(R=r.videoEntity)==null?0:R.key)r=_.p0(f.videoEntity.key).entityId,f=W,r=_.i_(r,"mainVideoDownloadStateEntity"),f=_.mL(f,"mainVideoDownloadStateEntity",r),(f=Number(f==null?void 0:f.addedTimestampMillis))&&V.push(f)}return Math.max.apply(Math,_.QK(V))};
_.$H=function(W){return W.ui.richGridMiniMode};
_.Wl=function(W){return W.ui.richGridItemsPerRow};
_.II6=function(W){return W.ui.richGridSlimItemsPerRow};
_.i6n=function(W){return W.ui.guideIsExpanded};
_.l0=function(W){return W.ui.miniplayerIsActive};
m5U=function(W){return W.ui.singleOptionSurveyIsActive};
_.V1=function(W){var l;return((l=W.ui)==null?void 0:l.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.X3j=function(W){return _.V1(W)==="WEB_PAGE_TYPE_WATCH"};
_.TZU=function(W){return _.V1(W)==="WEB_PAGE_TYPE_SHORTS"};
_.w3g=function(W){return W.ui.inlinePreviewIsActive};
_.Azj=function(W){return W.ui.inlinePreviewIsEnabled};
_.QBS=function(W){return W.ui.miniplayerPlaybackState};
_.fa=function(W){return W.ui.isOnline};
_.M7q=function(W){return W.ui.frostedGlassMode};
_.rE=function(W,l){return Ybz(W.entities,l)};
_.RD=function(W,l){return d5z(W.entities,l)};
Z6U=function(W,l){var V;if(l){var f;W=(f=_.mL(W.entities,"offlineVideoPolicy",_.i_(l,"offlineVideoPolicy")))==null?void 0:f.action}else W=void 0;return(V=W)!=null?V:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
O6F=function(W,l){var V;l?(W=_.mL(W.entities,"offlineVideoPolicy",_.i_(l,"offlineVideoPolicy")),W=Number(W==null?void 0:W.expirationTimestamp)):W=void 0;return(V=W)!=null?V:0};
_.aI8=function(W){return _.Nd(W.entities).length};
zmS=function(W,l){return YH(W.entities,l)};
NZx=function(W,l){return lI6(W.entities,l)};
t5=function(W,l){return(W=YH(W.entities,l))?_.jHx([W]):0};
_.Y7g=function(W,l){var V=_.M4("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(V){var f=W.entities;var r=CLg(f,l);if(r.length){var R=[];r=_.L(r);for(var y=r.next();!y.done;y=r.next())(y=yz6(f,y.value))&&R.push(y);f=R}else f=[]}else f=WVS(W.entities,l);var P;if(V){var n=W.entities;l?(l=_.i_(l,"musicPlaylist"),n=(P=n.musicPlaylist)==null?void 0:P[l],P=n!=null&&n.tracks?n.tracks.length:0):P=0}else P=W.entities,l?(l=_.i_(l,"mainPlaylistEntity"),P=(n=P.mainPlaylistEntity)==null?void 0:n[l],P=P!=null&&P.videos?
P.videos.length:0):P=0;return f.length!==P?0:f?Ikz(f):0};
_.x5S=function(W){return W.download.isLeaderTab};
_.emj=function(W,l,V){if(!l&&V){var f=W.entities;if(V){var r=mlg(V),R,y;l=(y=(R=_.mL(f,"offlineabilityEntity",_.i_(r,"offlineabilityEntity")))==null?void 0:R.addToOfflineButtonState)!=null?y:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else l="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else R=W.entities,l?(y=mlg(l),l=(r=(f=_.mL(R,"offlineabilityEntity",_.i_(y,"offlineabilityEntity")))==null?void 0:f.addToOfflineButtonState)!=null?r:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):l="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return l};
q76=function(W,l){W=W.entities;if(l){l=mlg(l);var V,f;l=(f=(V=_.mL(W,"offlineabilityEntity",_.i_(l,"offlineabilityEntity")))==null?void 0:V.addToOfflineButtonState)!=null?f:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else l="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return l};
_.hmj=function(W){var l=W.entities;W=_.fa(W);var V=jBx(l,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.U("kevlar_modern_downloads_page")&&V)var f=!1;else{var r,R;l=(R=(r=((f=l.downloadsPageViewConfigurationEntity)!=null?f:{})[_.qd])==null?void 0:r.smartDownloadsOptInBannerVisibility)!=null?R:{};f=W?!!l.visibleWithConnection:!!l.visibleWithoutConnection}return f};
_.S7U=function(W){return jBx(W.entities,"SMART_DOWNLOADS_ENABLED")};
_.ECF=function(W){return KVU(W.entities)};
$5S=function(W){return _.hW(W.entities).every(function(l){var V;return(l==null?void 0:(V=l.transferEntity)==null?void 0:V.transferState)&&!oQz.includes(l.transferEntity.transferState)})};
_.WBU=function(W){var l,V,f,r=(f=(V=((l=W.entities.downloadsPageViewConfigurationEntity)!=null?l:{})[_.qd])==null?void 0:V.downloadsUpsellBannerVisibility)!=null?f:{};return _.fa(W)?!!r.visibleWithConnection:!!r.visibleWithoutConnection};
_.lSx=function(W,l){return Mbv(W.entities,l)};
VXz=function(W,l){if(l){var V,f;W=(f=(V=_.mL(W.entities,"downloadStatusEntity",_.i_(l,"downloadStatusEntity")))==null?void 0:V.downloadState)!=null?f:"DOWNLOAD_STATE_UNKNOWN"}else W="DOWNLOAD_STATE_UNKNOWN";return W};
sm=function(W,l){return h1F(W.entities,l)};
tXv=function(W){W=_.fS4(W);var l=W.hours===void 0?0:W.hours,V=W.minutes===void 0?0:W.minutes,f=W.seconds===void 0?0:W.seconds,r=l>0;W=[];r&&(l=_.rpq(l),W.push(l));l=r;l=l===void 0?!1:l;V=(["af","be","lt"].includes(_.La)||l)&&V<10?Rlx().format(V):(new Intl.NumberFormat("en-u-nu-latn")).format(V);W.push(V);V=Rlx().format(f);W.push(V);V=":";"da fi id si sr sr-Latn".split(" ").includes(_.La)&&(V=".");return W.join(V)};
_.fS4=function(W){var l=W.hours||0,V=W.minutes||0,f=W.seconds||0;l=f+V*60+l*3600+(W.days||0)*86400+(W.weeks||0)*604800+(W.months||0)*2629800+(W.years||0)*31557600;if(l<=0)return{hours:0,minutes:0,seconds:0};W=l;l=Math.floor(W/3600);W%=3600;V=Math.floor(W/60);f=Math.floor(W%60);return{hours:l,minutes:V,seconds:f}};
_.rpq=function(W){W=(new Intl.NumberFormat("en-u-nu-latn")).format(W);var l=["fr"],V="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(_.La)?W.replace(",","\u00a0"):l.includes(_.La)?W.replace(",","\u202f"):V.includes(_.La)?W.replace(",","."):W};
Rlx=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
skz=function(W){try{return(new _.y1(5)).format(W)}catch(l){}};
gE=function(W){return{thumbnailOverlayDownloadingRenderer:{state:W}}};
LBv=function(W){if(W=skz(W))return{thumbnailOverlaySidePanelRenderer:{text:_.Hy(W),icon:{iconType:"PLAYLISTS"}}}};
yp6=function(){var W=_.wg("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Hy(W),icon:{iconType:"PLAY_ALL"}}}};
grY=function(W){W=_.Pl(W,2);return _.La!=="ru"&&_.La!=="es_419"&&_.La!=="es-419"&&_.La!=="es"&&_.La!=="es_US"&&_.La!=="es-US"&&_.La!=="fr"&&_.La!=="pl"&&_.La!=="it"&&_.La!=="nl"&&_.La!=="uk"&&_.La!=="fr_CA"&&_.La!=="fr-CA"||W===""?W:W[0].toLocaleUpperCase()+W.substring(1)};
nrY=function(W){return function(l){var V=W(),f=_.Pl(l,V.dateFormat);l=_.Pl(l,V.timeFormat);var r=PHU.DATETIMEFORMATS[V.joinerStyle];r=r.replace(/'(?!')/g,"");r=r.replace("{0}",l);r=r.replace("{1}",f);return V.capitalize(r)}};
CHn=function(W){return W?typeof W.seconds==="string"&&(W.nanos===void 0||typeof W.nanos==="number"):!1};
cpq=function(W){return new Date(Number(W.seconds)*1E3+(W.nanos||0)*1E-6)};
_.Pl=function(W,l){if(typeof W.getTime==="function")W={date:W};else if(CHn(W))W={date:cpq(W)};else if(typeof CHn(W.timestamp)&&typeof W.i18nInternalSecondsEastOfUtc==="number")W={date:cpq(W.timestamp),timeZone:na(-W.i18nInternalSecondsEastOfUtc/60)};else throw Error("Hf`"+JSON.stringify(W));var V=W;W=V.date;V=V.timeZone;l=BYg(l).format(W,V);_.La==="zh-TW"&&(W=V?Number(BYg("H").format(W,V)):W.getHours(),l=W<5?l.replace("\u4e0a\u5348","\u51cc\u6668"):W<8?l.replace("\u4e0a\u5348","\u65e9\u4e0a"):W<12?
l.replace("\u4e0a\u5348","\u4e0a\u5348"):W<13?l.replace("\u4e0b\u5348","\u4e2d\u5348"):W<19?l.replace("\u4e0b\u5348","\u4e0b\u5348"):l.replace("\u4e0b\u5348","\u665a\u4e0a"));return l};
BYg=function(W){if(dqq.has(W))return dqq.get(W);var l=Jpv(W);l=DqY(l);Uqx!==!0&&(Uqx=!0);uEz=!0;uEz=!1;l=new Ca(l,PHU);dqq.set(W,l);return l};
Jpv=function(W){return(new Ca(W,PHU)).patternParts_.map(function(l){return l.type===0?"'"+l.text+"'":l.text}).join("")};
DqY=function(W){return _.La==="en"||_.La==="es_US"||_.La==="es-US"?W:W.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(l,V,f){return"H".repeat(V.length)+f})};
RfY=function(W,l){kvJ||(_.cl=_.vrj,kvJ=new HAq);var V=kvJ;a:if(W=KBJ(W),l=KBJ(l||new Date),W>l)V=W.getTime()-l.getTime()>6048E5?_.Pl(W,1):FBv(W);else{for(var f=0;Gvv(W,12*(f+1))<l;)++f;if(f>0)V=V.format(-f,0);else{for(f=0;Gvv(W,f+1)<l;)++f;if(f>0)V=V.format(-f,2);else{W=l.getTime()-W.getTime();l=_.L(bAY);for(f=l.next();!f.done;f=l.next()){f=f.value;var r=f.unit,R=Math.floor(W/f.unitDuration);if(R>=(f.threshold===void 0?1:f.threshold)){V=V.format(-R,r);break a}}V=V.format(-0,7)}}}return V};
KBJ=function(W){if(typeof W.getTime==="function")return W;if(CHn(W))return cpq(W);throw Error("If`"+JSON.stringify(W));};
Gvv=function(W,l){for(var V=0,f;;++V)if(f=new Date(W.getFullYear(),W.getMonth()+l,W.getDate()-V,W.getHours(),W.getMinutes(),W.getSeconds()),f.getMonth()===(W.getMonth()+l)%12)return f};
_.Bl=function(W){return{runs:[{text:W}]}};
_.dE=function(W){if(W&&W.simpleText)return W.simpleText;var l="";if(W&&W.runs)for(var V=0;V<W.runs.length;V++)W.runs[V].text&&(l+=W.runs[V].text);return l};
s8S=function(W,l,V,f){return W.videoEntity&&!W.policyEntity&&V!=="DOWNLOAD_STATE_FAILED"?[gE("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:OK(W.policyEntity)&&l!=="TRANSFER_STATE_FAILED"&&l!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?l==="TRANSFER_STATE_PAUSED_BY_USER"?[gE("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.as(l)?[gE("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:W.videoEntity.lengthSeconds?t6Y(W.videoEntity.lengthSeconds,f):[]:
[gE("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
t6Y=function(W,l){var V=[{thumbnailOverlayTimeStatusRenderer:{text:_.Hy(tXv({seconds:W})),style:"DEFAULT"}}];l&&(W=l<=0||W<=0?0:l>=W?100:Math.ceil(l*100/W),W>0&&V.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:W}}));return V};
LT6=function(W,l,V,f,r){if(l==="TRANSFER_STATE_UNKNOWN"||!W)return{};if(_.as(l)||l==="TRANSFER_STATE_PRE_TRANSFER")var R=[gE("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var y,P;if(l==="TRANSFER_STATE_COMPLETE"&&((y=W.mainPlaylistEntity)==null?0:(P=y.videos)==null?0:P.length)){if(_.U("web_modern_collections_v2")){var n;var B=(R=W.mainPlaylistEntity)==null?void 0:(n=R.videos)==null?void 0:n.length;R=(R=skz(B))?{thumbnailOverlayBottomPanelRenderer:{text:_.Hy(R),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var d;R=LBv((B=W.mainPlaylistEntity)==null?void 0:(d=B.videos)==null?void 0:d.length)}var J;R=[yp6(),Object.assign({},(J=R)!=null?J:{})]}else R=[]}J=R;a:if(l==="TRANSFER_STATE_PRE_TRANSFER")V=K0(_.wg("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(l==="TRANSFER_STATE_TRANSFER_IN_QUEUE")V=K0(_.wg("WAITING_TO_DOWNLOAD"));else if(_.as(l))V=Math.floor(V*100).toString(),V=K0(_.wg("DOWNLOADING_PERCENT",{percent:V},"Downloading... "+V+"%"));else{if(f&&(_.U("playlist_is_offline_selector_killswitch")&&
(r=_.tY().resolve(_.qt).isNetworkAvailable()),r)){V=MsY(_.wg("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),Aeq(f));break a}V=void 0}l=l==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.wg("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},J.length?{thumbnailOverlays:J}:{},V?{viewPlaylistText:V}:{viewPlaylistText:_.Bl("")},l.length?{badges:l}:{})};
yPU=function(W,l,V,f,r,R){if(l==="TRANSFER_STATE_UNKNOWN"||!W)return{};if(f==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var y=s8S(W,l,f);if(W.videoEntity&&!W.policyEntity&&f!=="DOWNLOAD_STATE_FAILED"){var P=_.wg("WAITING_TO_DOWNLOAD");if(P)return{shortViewCountText:_.Bl(P),publishedTimeText:void 0,thumbnailOverlays:y}}if(!OK(W.policyEntity)){R=W.policyEntity&&!iEY(W.policyEntity)?_.wg("DOWNLOAD_EXPIRED",{},"Download expired"):
_.wg("TRANSFER_FAILED",{},"Download failed");var n;if((n=W.policyEntity)==null?0:n.shortMessageForDisabledAction)R=W.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:K0(R),publishedTimeText:void 0,thumbnailOverlays:y}}if(l==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Bl(_.wg("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:y};if(l==="TRANSFER_STATE_FAILED"||l==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Bl(_.wg("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:y};if(l==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(n=_.wg("WAITING_TO_DOWNLOAD"),f==="DOWNLOAD_STATE_PAUSED"&&(n=_.wg("DOWNLOAD_PAUSED",{},"Download paused")),n))return{shortViewCountText:_.Bl(n),publishedTimeText:void 0,thumbnailOverlays:y};if(_.as(l))return W=Math.floor(V*100).toString(),{shortViewCountText:_.Bl(_.wg("DOWNLOADING_PERCENT",{percent:W},"Downloading... "+W+"%")),publishedTimeText:void 0,thumbnailOverlays:y};l=void 0;W.videoEntity.publishedTimestampMillis&&
(l=new Date,r&&(l=new Date(r)),l=K0(RfY(new Date(Number(W.videoEntity.publishedTimestampMillis)),l)));r=[];_.U("kevlar_woffle_badge_killswitch")||(r=[{metadataBadgeRenderer:{label:_.wg("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var B;W=K0((B=W.videoEntity.localizedStrings)==null?void 0:B.viewCount);return Object.assign({},R?{shortViewCountText:void 0}:{shortViewCountText:W},R?{}:{publishedTimeText:l},{badges:r,thumbnailOverlays:y})};
P5F=function(W,l){W=W===void 0?gIz:W;switch(l.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:l.payload.playlistId,inviteLinkURL:l.payload.inviteLinkUrl};default:return W}};
C5S=function(W,l){W=W===void 0?nIv:W;switch(l.type){case "SET_CURRENT_FORM_ID":return l=l.payload.formId,W.currentFormId===l?W:{currentFormId:l,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var V=l.payload;l=V.groupId;V=V.command;if(W.currentFormId){var f=Object.assign({},W.commandsMap);f[l]=V;W=Object.assign({},W,{commandsMap:f})}return W;case "RESET_COMMAND_MAP":return Object.assign({},W,{commandsMap:{}});default:return W}};
Byx=function(W,l){W=W===void 0?cP6:W;switch(l.type){case "UPDATE_CANVAS_MODE":return Object.assign({},W,{currentMode:l.payload.currentMode});default:return W}};
JPJ=function(W,l){W=W===void 0?dD6:W;switch(l.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},W,{guideIsExpanded:l.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},W,{scrollAtTop:l.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},W,{guideIsVisibleButNotPersistent:l.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},W,{miniplayerIsActive:l.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},W,{singleOptionSurveyIsActive:l.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},W,{slimlineSurveyRatingSelectedIndex:l.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},W,{richGridMiniMode:l.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},W,{richGridItemsPerRow:l.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},W,{richGridSlimItemsPerRow:l.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},W,{richGridContainerWidth:l.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},W,{richGridStyle:l.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},W,{currentPageType:l.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},W,{inlinePreviewIsActive:l.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},W,{inlinePreviewIsEnabled:l.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},W,{darkModeIsEnabled:l.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
W,{miniplayerPlaybackState:l.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},W,{tabGesturesIsActive:l.payload});case "SET_ONLINE_STATUS":return Object.assign({},W,{isOnline:l.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},W,{chipBarIsSticky:l.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},W,{frostedGlassMode:l.payload});default:return W}};
UDz=function(W,l){W=W===void 0?DD8:W;switch(l.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},W,{transcription:l.payload});case "SET_OVERLAY_STATE":return Object.assign({},W,{overlay:l.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return W}};
oIF=function(){return T$(Object.assign({},{continuation:ujF,download:kDg,canvas:Byx,reportChannelAbuse:vI6,share:HfF,talkToRecs:KTg,ui:JPJ,voiceSearch:UDz,watch:FTq,ypc:GD6,shorts:bfF,radioButtonGroup:C5S,collabInviteLink:P5F},pBF))};
ifY=function(){return _.U("web_player_entities_middleware")?new J5(oIF(),[j8z,IPz]):new J5(oIF(),[j8z])};
_.DJ=function(){mDn||(mDn=ifY());return mDn};
XBz=function(W,l,V){if(W.length)return{titleText:_.Hy(l!=null?l:_.wg("DOWNLOADS",void 0,"Downloads")),contents:W.map(function(f){var r=f.videoEntity;f={videoId:r.videoId,title:K0(r.title),shortBylineText:K0(f.channelEntity.title),thumbnail:r.thumbnail};var R=r.videoId?sm(_.DJ().getState(),r.videoId):0;r.videoId&&V?f.navigationEndpoint=_.vy(r.videoId,V,void 0,void 0,R):r.videoId&&(f.navigationEndpoint=woS(r.videoId,R,r.lengthSeconds));r.lengthSeconds&&(f.thumbnailOverlays=t6Y(r.lengthSeconds,R));return{playlistPanelVideoRenderer:f}}),
totalVideos:W.length}};
Tyz=function(W){return(W=(0,_.MC.getValueByKeys)(W,"playlistId"))?{playlistId:W}:null};
wBF=function(){return{}};
APz=function(W,l){return new _.Dx(function(V,f){W.then(function(r){if(r){if(r=l(r))return V(r);f()}},f)})};
Q8F=function(W){var l,V,f,r=(l=W.contents)==null?void 0:(V=l.twoColumnWatchNextResults)==null?void 0:(f=V.autoplay)==null?void 0:f.autoplay,R,y,P;l=(R=W.contents)==null?void 0:(y=R.twoColumnWatchNextResults)==null?void 0:(P=y.playlist)==null?void 0:P.playlist;return r&&l&&l.playlistId?{rawResponse:W,autoplayRenderer:r,playlistPanelRenderer:l,playlistId:l.playlistId}:null};
Zfz=function(W){var l=l===void 0?"UNKNOWN_INTERFACE":l;if(W.length===1)return W[0];var V=M6v[l];if(V){V=new RegExp(V);for(var f=_.L(W),r=f.next();!r.done;r=f.next())if(r=r.value,V.exec(r))return r}var R=[];Object.entries(M6v).forEach(function(y){var P=_.L(y);y=P.next().value;P=P.next().value;l!==y&&R.push(P)});
V=new RegExp(R.join("|"));W.sort(function(y,P){return y.length-P.length});
f=_.L(W);for(r=f.next();!r.done;r=f.next())if(r=r.value,!V.exec(r))return r;return W[0]};
_.Um=function(W){return"/youtubei/v1/"+Zfz(W)};
_.u0=function(W){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:W}}}}};
_.kV=function(W){return _.u0(_.Bl(W))};
Ofq=function(W,l){var V={mode:"NORMAL"};W&&(V.autoplayVideo=W.navigationEndpoint,V.nextButtonVideo=W.navigationEndpoint);l&&(V.previousButtonVideo=l.navigationEndpoint);return V};
Ny4=function(W,l,V){if(!V||!V.sets)return{sets:[Ofq(W,l)]};var f=V.sets.find(function(y){return y.mode==="NORMAL"}),r=(0,_.MC.unsafeClone)(V);
if(!f)return r.sets.push(Ofq(W,l)),r;if(!W)return V;f=_.MC.getValueByKeys.apply(null,[f].concat(_.QK(aPx)));var R=_.MC.getValueByKeys.apply(null,[W].concat(_.QK(zfx)));if(f===R)return V;r.sets=r.sets.filter(function(y){return y.mode!=="NORMAL"});
r.sets.push(Ofq(W,l));return r};
YBg=function(W){return!!W.playlistPanelVideoRenderer&&!W.playlistPanelVideoRenderer.unplayableText};
xD8=function(W){return!!W.playlistPanelVideoRenderer&&!!W.playlistPanelVideoRenderer.title};
efx=function(W,l){if(l.contents&&!(W>=l.contents.length)&&(W=l.contents.slice(W).find(YBg)))return W.playlistPanelVideoRenderer};
qBx=function(W,l){if(l.contents)return(l=l.contents.find(function(V){return!!V.playlistPanelVideoRenderer&&V.playlistPanelVideoRenderer.videoId===W}))?l.playlistPanelVideoRenderer:void 0};
hfY=function(W,l){return l.contents?l.contents.findIndex(function(V){return!!V.playlistPanelVideoRenderer&&V.playlistPanelVideoRenderer.videoId===W}):-1};
SBz=function(W,l){return l.contents?l.contents.findIndex(function(V){return!!V.playlistPanelVideoRenderer&&V.playlistPanelVideoRenderer.playlistSetVideoId===W}):-1};
EIz=function(W,l){W.contents&&l!==-1&&W.contents.splice(l,1).length===1&&W.totalVideos!==void 0&&(--W.totalVideos,delete W.videoCountText)};
_.$D4=function(W){var l=[];if(!W||!W.contents)return l;W=_.L(W.contents);for(var V=W.next();!V.done;V=W.next())V=V.value,V.playlistPanelVideoRenderer&&V.playlistPanelVideoRenderer.videoId&&l.push(V.playlistPanelVideoRenderer.videoId);return l};
_.W4v=function(W){if(W&&W.contents)return(W=W.contents.find(function(l){return!!l.playlistPanelVideoRenderer&&!!l.playlistPanelVideoRenderer.selected})||W.contents[W.currentIndex])?W.playlistPanelVideoRenderer:void 0};
lXS=function(W,l,V,f,r,R,y){r=r===void 0?!1:r;R=R===void 0?!1:R;y=y===void 0?!1:y;if(W.contents&&W.contents.length!==0){f&&(W.contents=W.contents.filter(f));f=W.contents.length;for(var P=0;P<f;P++){var n=W.contents[P].playlistPanelVideoRenderer;n&&(P===l?(R&&delete n.menu,n.indexText=_.Bl("\u25b6")):r||W.isInfinite||n.indexText===void 0?delete n.indexText:n.indexText=_.Bl((P+1+V).toString()))}W.currentIndex=l+V;y&&(delete W.videoCountText,W.totalVideos=f)}};
_.vl=function(W){W=VKS(W);if(W){var l=W.length;var V=-51%l;V<0&&(V=l+V);W=W.slice(l-V)+W.slice(0,l-V)}else W="";V="";for(l=0;l<W.length&&W[l]!==fXz;l++)V+=W[l];return V};
_.rM4=function(W,l){var V=document.body;l=l===void 0?function(P){return P}:l;
var f,r=null;W=_.L(W);for(f=W.next();!f.done;f=W.next()){var R=f.value;f="div";R[2]&&(f=l(R[2]));f=document.createElement(f);r||(r=f);var y=R[0];R=R[1];y&&(f.id=l(y));if(R)for(R=_.L(R),y=R.next();!y.done;y=R.next())f.classList.add(l(y.value));V.appendChild(f);V=f}return[r,V]};
Rnx=function(W,l){for(var V="",f=0;f<l;f++)V+=W.charAt(Math.floor(Math.random()*W.length));return V};
Hl=function(W){return Rnx("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",W)};
F2=function(W){return Rnx("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",W)};
GL=function(W){return Rnx("0123456789",W)};
b0=function(){var W=performance.now(),l=new Date;var V="2."+l.getFullYear()+String(l.getMonth()+1).padStart(2,"0")+String(l.getDate()).padStart(2,"0");for(var f,r=Math.floor(Math.random()*11)+15,R=[],y=0;y<r;y++)R.push(Math.floor(Math.random()*26476865)+24547720);f=R.join(",");var P=Hl(10),n=Hl(100),B=Hl(102),d=Hl(106),J=Hl(108),D=Hl(11),u=Hl(1140),H=Hl(123),p=Hl(14),X=Hl(16),w=Hl(1900),O=Hl(23),S=Hl(26),N=Hl(34),x=Hl(397),Y=Hl(44),W8=Hl(5),c8=Hl(72),B8=Hl(74),Jx=Hl(75),H8=Hl(88),Kq=Hl(91),Z4="rr5---sn-ntqe6nel rr4---sn-hgn7yn7z rr1---sn-q4fl6nsd rr4---sn-4g5lznes rr5---sn-q4flrnez rr3---sn-t0a7sn7d rr4---sn-t0a7ln7d rr2---sn-q4flrnss rr1---sn-t0a7ln7d rr3---sn-aigl6nl7 rr4---sn-q4flrney rr1---sn-ntqe6n7r rr2---sn-q4flrney rr4---sn-q4fl6n6r rr2---sn-q4fzen7e rr3---sn-ntq7yns7 rr2---sn-q4fl6nsl rr3---sn-hgn7yn7s rr3---sn-q4fl6nsk rr4---sn-aigzrnz7".split(" ");
var Ax=Z4[Math.floor(Math.random()*Z4.length)];var sM=(new Date("2010-01-01")).getTime();var Ta=(new Date(sM+Math.random()*((new Date).getTime()-sM))).toISOString().split("T")[0];for(var ck,Wk=[],D$=0;D$<4;D$++)Wk.push(Math.floor(Math.random()*100));ck=Wk.join(".");var Bk=Number(GL(5)),iB=Number(GL(6)),p2=Number(GL(7)),SL=Number(GL(9)),RY=GL(1),lB=GL(10),kc=GL(16),n2=GL(19),vk=GL(2),VL=GL(20),Lc=GL(21),ls=GL(3),Pk=GL(4),q1=GL(5),Dc=GL(6),pe=GL(7),oX=GL(8),ve=GL(9);var dI=Rnx("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var J1=[F2(5),F2(5),F2(5)].join("%2C"),ih=[GL(3),GL(5),GL(5)].join("%2C"),jn=F2(0),aX=F2(1),A1=F2(10),xZ=F2(108),$Z=F2(11),ai=F2(12),F4=F2(13),fS=F2(14),ML=F2(15),zu=F2(16),cj=F2(17),pq=F2(18),QU=F2(19),Yz=F2(2),uB=F2(20),C2=F2(22),XX=F2(23),Fw=F2(24),Ke=F2(266),Hk=F2(3),T1=F2(30),u7=F2(34),JZ=F2(35),G7=F2(36),wK=F2(4),Za=F2(40),z_=F2(43),Y_=F2(47),b$=F2(5),bh=F2(6),pv=F2(7),G5=F2(75),Sv=F2(8),U5=F2(80),mN=F2(9),L2="https://www."+F2(12)+".com",C5={},qC={},aZ={},EU={},o$={},Th={},w0={responseContext:{serviceTrackingParams:[{service:"GFEEDBACK",
params:[{key:"ipcc",value:"0"},{key:"is_viewed_live",value:"False"},{key:"is_alc_surface",value:"false"},{key:"premium_membership",value:"non_member"},{key:"has_unlimited_entitlement",value:"False"},{key:"has_alc_entitlement",value:"false"},{key:"logged_in",value:"1"},{key:"e",value:f}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:V},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+F2(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:V},{key:"client.name",value:"WEB"},{key:"client.fexp",value:f}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:Lc+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+F2(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Za,ypcGetOfflineUpsellEndpoint:{params:U5}},trackingParams:JZ+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+ih+"&mn="+J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fmp4&ns="+Fw+"&cnr="+vk+"&ratebypass=yes&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&c=WEB&txp="+pe+"&n="+X+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:iB,width:640,height:360,lastModified:kc,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:pe,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+ih+"&mn="+
J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fmp4&ns="+Fw+"&cnr="+vk+"&ratebypass=yes&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&c=WEB&txp="+pe+"&n="+X+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+xZ+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:iB,width:1280,
height:720,lastModified:kc,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:pe,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&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="+ih+"&mn="+J1+"&ms="+
J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fmp4&ns="+Fw+"&gir="+Hk+"&clen="+ve+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:p2,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:ve,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:p2,approxDurationMs:pe},{itag:248,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&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="+ih+"&mn="+J1+"&ms="+J1+"&mv="+
aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fwebm&ns="+Fw+"&gir="+Hk+"&clen="+ve+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/webm; codecs="vp9"',bitrate:p2,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:ve,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:p2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:pe},{itag:399,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&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="+
ih+"&mn="+J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fmp4&ns="+Fw+"&gir="+Hk+"&clen="+ve+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:p2,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:ve,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:p2,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:pe},{itag:136,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&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="+
ih+"&mn="+J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fmp4&ns="+Fw+"&gir="+Hk+"&clen="+ve+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:p2,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:ve,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:iB,approxDurationMs:pe},{itag:247,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&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="+ih+"&mn="+
J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fwebm&ns="+Fw+"&gir="+Hk+"&clen="+ve+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/webm; codecs="vp9"',bitrate:p2,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:ve,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:iB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:pe},{itag:398,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&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="+
ih+"&mn="+J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fmp4&ns="+Fw+"&gir="+Hk+"&clen="+ve+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:p2,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:ve,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:iB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:pe},{itag:135,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&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="+
ih+"&mn="+J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fmp4&ns="+Fw+"&gir="+Hk+"&clen="+oX+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:iB,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:oX,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:iB,approxDurationMs:pe},{itag:244,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&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="+ih+"&mn="+
J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fwebm&ns="+Fw+"&gir="+Hk+"&clen="+oX+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+xZ+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/webm; codecs="vp9"',bitrate:iB,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:oX,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:iB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:pe},{itag:397,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&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="+
ih+"&mn="+J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fmp4&ns="+Fw+"&gir="+Hk+"&clen="+oX+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:iB,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:oX,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:iB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:pe},{itag:134,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&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="+
ih+"&mn="+J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fmp4&ns="+Fw+"&gir="+Hk+"&clen="+oX+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:iB,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:oX,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:iB,highReplication:!0,approxDurationMs:pe},{itag:243,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&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="+
ih+"&mn="+J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fwebm&ns="+Fw+"&gir="+Hk+"&clen="+oX+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/webm; codecs="vp9"',bitrate:iB,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:oX,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:iB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:pe},{itag:396,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&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="+
ih+"&mn="+J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fmp4&ns="+Fw+"&gir="+Hk+"&clen="+oX+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:iB,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:oX,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:iB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:pe},{itag:133,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&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="+
ih+"&mn="+J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fmp4&ns="+Fw+"&gir="+Hk+"&clen="+oX+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:iB,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:oX,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:iB,approxDurationMs:pe},{itag:242,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&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="+ih+"&mn="+
J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fwebm&ns="+Fw+"&gir="+Hk+"&clen="+oX+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/webm; codecs="vp9"',bitrate:iB,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:oX,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:iB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:pe},{itag:395,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&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="+
ih+"&mn="+J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fmp4&ns="+Fw+"&gir="+Hk+"&clen="+oX+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:iB,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:oX,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:iB,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:pe},{itag:160,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&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="+
ih+"&mn="+J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fmp4&ns="+Fw+"&gir="+Hk+"&clen="+oX+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:iB,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:oX,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Bk,approxDurationMs:pe},{itag:278,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&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="+ih+"&mn="+
J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fwebm&ns="+Fw+"&gir="+Hk+"&clen="+oX+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/webm; codecs="vp9"',bitrate:iB,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:oX,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Bk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:pe},{itag:394,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&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="+
ih+"&mn="+J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=video%2Fmp4&ns="+Fw+"&gir="+Hk+"&clen="+oX+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Bk,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:oX,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Bk,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:pe},{itag:140,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
ih+"&mn="+J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=audio%2Fmp4&ns="+Fw+"&gir="+Hk+"&clen="+oX+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:iB,
initRange:{start:"0",end:"631"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:oX,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:iB,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:pe,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+ih+"&mn="+J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+
vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=audio%2Fwebm&ns="+Fw+"&gir="+Hk+"&clen="+pe+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'audio/webm; codecs="opus"',bitrate:Bk,initRange:{start:"0",end:"265"},indexRange:{start:ls,
end:Pk},lastModified:kc,contentLength:pe,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Bk,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:pe,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+ih+"&mn="+J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=audio%2Fwebm&ns="+
Fw+"&gir="+Hk+"&clen="+pe+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'audio/webm; codecs="opus"',bitrate:Bk,initRange:{start:"0",end:"265"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:pe,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Bk,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:pe,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Ax+".googlevideo.com/videoplayback?expire="+lB+"&ei="+O+"&ip="+ck+"&id=o-AF"+z_+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+ih+"&mn="+J1+"&ms="+J1+"&mv="+aX+"&mvi="+RY+"&pl="+vk+"&initcwndbps="+pe+"&siu="+RY+"&spc="+Y+"&vprv="+RY+"&svpuc="+RY+"&mime=audio%2Fwebm&ns="+Fw+"&gir="+Hk+"&clen="+oX+"&dur="+oX+"&lmt="+kc+"&mt="+lB+"&fvip=3&keepalive="+Hk+"&c=WEB&txp="+
pe+"&n="+zu+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+J,mimeType:'audio/webm; codecs="opus"',bitrate:iB,initRange:{start:"0",end:"265"},indexRange:{start:ls,end:Pk},lastModified:kc,contentLength:oX,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:iB,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:pe,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="+ve+"&docid="+D+"&ei="+O+"&feature="+P+"&fexp="+jn+"&ns="+Yz+"&plid="+X+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+aX+"&el="+A1+"&len="+Pk+"&of="+C2+
"&uga="+vk+"&vm="+Ke},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+ve+"&docid="+D+"&ei="+O+"&feature="+P+"&fexp="+jn+"&ns="+Yz+"&plid="+X+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+aX+"&el="+A1+"&len="+Pk+"&of="+C2+"&uga="+vk+"&vm="+Ke},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+ve+"&docid="+D+"&ei="+O+"&feature="+P+"&fexp="+jn+"&ns="+Yz+"&plid="+X+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
aX+"&el="+A1+"&len="+Pk+"&of="+C2+"&uga="+vk+"&vm="+Ke},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+O+"&m="+H8+"&oid="+C2+"&plid="+X+"&pltype="+pv+"&ptchn="+C2+"&ptk="+p+"&video_id="+D},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+ve+"&docid="+D+"&ei="+O+"&event="+fS+"&feature="+P+"&fexp="+jn+"&ns="+Yz+"&plid="+X+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+aX},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+D+"&ei="+O+"&feature="+
P+"&len="+Pk+"&ns="+Yz+"&plid="+X+"&ver="+RY,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+D+"&caps="+Hk+"&opi="+ve+"&xoaf="+RY+"&hl="+Yz+"&ip="+ck+"&ipbits="+RY+"&expire="+lB+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+ck+"&key="+Hk+"&lang="+W8,name:{simpleText:wK},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+D+"&caps="+Hk+"&opi="+ve+"&xoaf="+RY+"&hl="+Yz+"&ip="+ck+"&ipbits="+RY+"&expire="+lB+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+ck+"&key="+Hk+"&kind="+Hk+"&lang="+Yz,name:{simpleText:A1},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:$Z,title:cj,lengthSeconds:"1155",keywords:[mN,pv,fS,pv],
channelId:Fw,isOwnerViewing:!1,shortDescription:zu,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+G7+"G&rs="+u7,width:168,height:94},{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+G7+"G&rs="+u7,width:196,height:110},{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+G7+"G&rs="+N,width:246,height:138},{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+G7+"G&rs="+N,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
D+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:pe,author:F4,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:pe,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+C2+"/featured_channel.jpg?v="+Sv,width:40,height:40}]},trackingParams:JZ+"=",navigationEndpoint:{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{url:"/channel/"+Fw,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Fw}},channelName:F4,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:ML}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Fw,showPreferences:!1,subscribedButtonText:{runs:[{text:fS}]},unsubscribedButtonText:{runs:[{text:b$}]},trackingParams:JZ+"=",unsubscribeButtonText:{runs:[{text:Sv}]},serviceEndpoints:[{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[Fw],params:Sv}},{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Za,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:JZ+"=",dialogMessages:[{runs:[{text:Sv},{text:pq},{text:zu}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:b$}]},serviceEndpoint:{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Fw],params:Sv}},accessibility:{label:mN},trackingParams:JZ+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:F4}]},accessibility:{label:uB},trackingParams:JZ+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:$Z}},unsubscribeAccessibility:{accessibilityData:{label:b$}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:oX},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Fw],params:Sv}},unsubscribeCommand:{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Fw],params:Sv}},addToWatchLaterCommand:{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:$Z,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:$Z}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+D+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+G7+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
D+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+$Z,width:1280,height:720},title:{simpleText:F4},description:{simpleText:$Z},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+pv,externalChannelId:Fw,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:pe,category:"Travel & Events",publishDate:Ta,ownerChannelName:F4,uploadDate:Ta}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:mN},trackingParams:JZ+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Za,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:JZ+"="}}],headerText:{simpleText:b$},icon:{infoCardIconRenderer:{trackingParams:JZ+"="}},closeButton:{infoCardIconRenderer:{trackingParams:JZ+"="}},trackingParams:JZ+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:JZ+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+$Z+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:dI,interpreterSafeUrl:(C5.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+T1+".js",C5),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:pv},{text:ai,bold:!0}]},endpoint:{clickTrackingParams:Za,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:JZ+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:ai}]},actionButton:{buttonRenderer:{text:{runs:[{text:mN}]},navigationEndpoint:{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+D,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
D,target:"TARGET_NEW_WINDOW"}},trackingParams:JZ+"="}},trackingParams:JZ+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+c8+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+c8+"=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:pe,endMs:pe,title:{accessibility:{accessibilityData:{label:QU}},simpleText:$Z},metadata:{simpleText:ML},callToAction:{simpleText:b$},dismiss:{simpleText:wK},endpoint:{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{url:"/channel/"+Fw,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Fw}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:cj}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Fw,showPreferences:!1,
subscribedButtonText:{runs:[{text:$Z}]},unsubscribedButtonText:{runs:[{text:zu}]},trackingParams:JZ+"=",unsubscribeButtonText:{runs:[{text:pq}]},serviceEndpoints:[{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Fw],params:Sv}},{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Za,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:JZ+
"=",dialogMessages:[{runs:[{text:$Z},{text:$Z},{text:b$}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:pv}]},serviceEndpoint:{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Fw],params:Sv}},accessibility:{label:$Z},trackingParams:JZ+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:pv}]},
accessibility:{label:zu},trackingParams:JZ+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:bh}},unsubscribeAccessibility:{accessibilityData:{label:A1}}}},trackingParams:JZ+"=",isSubscribe:!0,id:VL}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+G7+"G&rs="+N,width:168,height:94},{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+G7+"G&rs="+u7,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+G7+"G&rs="+N,width:246,height:138},{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+G7+"G&rs="+N,width:336,height:188},{url:"https://i.ytimg.com/vi/"+D+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:pe,endMs:pe,title:{accessibility:{accessibilityData:{label:$Z}},simpleText:$Z},metadata:{simpleText:Sv},endpoint:{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
$Z,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:$Z,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Ax+".googlevideo.com/videoplayback?source=youtube&oeis="+RY+"&c=WEB&oad="+Pk+"&ovd="+Pk+"&oaad="+q1+"&oavd="+q1+"&ocs="+ls+"&oewis="+RY+"&oputc="+RY+"&ofpcc="+RY+"&siu="+RY+"&msp="+RY+"&odepv="+RY+
"&id=o-AF"+z_+"&ip="+ck+"&initcwndbps="+pe+"&mt="+lB+"&oweuc="+jn}}}}},trackingParams:JZ+"=",id:VL,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:QU}},simpleText:uB},style:"DEFAULT"}}]}}],startMs:pe,trackingParams:JZ+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:RY,offsetEndMilliseconds:q1},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ve+";dc_trk_cid="+ve+";dc_dbm_token="+J+";ord="+lB+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RY+";dc_rui="+RY+";dc_exteid="+VL+";dc_av="+ls+";dc_sk="+RY+";dc_ctype="+vk+";dc_ref=http://www.youtube.com/video/"+$Z+";dc_pubid="+RY+";dc_btype=23?gclid="+Kq+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+S+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+RY+"&ns="+RY+"&event="+RY+"&device="+RY+"&content_v="+D+"&el="+A1+"&ei="+O+"&devicever="+V+"&bti="+pe+"&format="+Dc+"&break_type="+RY+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+RY+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+ck+"&slot_pos="+RY+"&slot_len="+RY+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+ih+"&ad_len="+q1+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
$Z+"&aqi="+O+"&ad_rmp="+RY+"&sli="+RY}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+D+"&cid="+S+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+D+"&cid="+S+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+
";etm1="+RY+";eid1="+vk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+D+"&cid="+S+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+Dc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
u+"____________"+H+"AxAA&sigh="+D+"&cid="+S+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+vk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+D+"&cid="+S+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+D+"&cid="+S+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+vk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+D+"&cid="+S+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+pe+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+D+"&cid="+S+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
u+"____________"+H+"AxAA&sigh="+D+"&cid="+S+"&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"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&ctype="+ls+"&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"+
u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_engaged_view&ctype="+ls+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+Dc+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
ve+";dc_trk_cid="+ve+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RY+";ord="+ve+";dc_rui="+RY+";dc_exteid="+n2+";dc_av="+RY+";dc_sk="+RY+";dc_ctype="+vk+";dc_pubid="+RY+";dc_btype=3?gclid="+Kq+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+D+"&cid="+S+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+vk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+B+"&sig="+XX+"&ad_cpn=[AD_CPN]&id="+bh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+bh+"&dc_pubid="+RY+"&dc_exteid="+VL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+D+"&cid="+S+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+B+"&sig="+XX+"&ad_cpn=[AD_CPN]&id="+bh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+RY},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+bh+"&avm="+RY+"&dc_pubid="+RY+"&dc_exteid="+
VL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+D+"&cid="+S+"&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="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+vk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
B+"&sig="+XX+"&ad_cpn=[AD_CPN]&id="+bh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+RY},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+bh+"&dc_pubid="+RY+"&dc_exteid="+VL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+vk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+Dc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+vk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+Dc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+D+"&cid="+S+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+vk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Za,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+
ls+"&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/"+D+"/mqdefault.jpg",width:320,height:180}]},trackingParams:JZ+"="},trackingParams:JZ+
"=",templatedCountdown:{templatedAdText:{text:ML,isTemplated:!0,trackingParams:JZ+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:ML,isTemplated:!1,trackingParams:JZ+"="},trackingParams:JZ+"="}},trackingParams:JZ+"=",skipOffsetMilliseconds:5E3}},trackingParams:JZ+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:cj},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:JZ+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:zu,isTemplated:!1,trackingParams:JZ+"="},trackingParams:JZ+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Sv,isTemplated:!0,trackingParams:JZ+"="}},trackingParams:JZ+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Za,openPopupAction:{popup:{aboutThisAdRenderer:{url:(qC.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+w+"&hl="+Yz+"&origin=www.youtube.com&ata_theme="+wK,qC),trackingParams:JZ+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:JZ+"="}},hoverText:{runs:[{text:$Z}]},trackingParams:JZ+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Y_+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:JZ+"="},headline:{text:uB,isTemplated:!1,trackingParams:JZ+"="},description:{text:QU,
trackingParams:JZ+"="},actionButton:{buttonRenderer:{text:{simpleText:cj},navigationEndpoint:{clickTrackingParams:Za,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ve+";dc_trk_cid="+ve+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RY+";ord="+ve+";dc_rui="+RY+";dc_exteid="+VL+";dc_av="+RY+";dc_sk="+RY+";dc_ctype="+vk+";dc_pubid="+RY+";dc_btype=3?gclid="+Kq+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:JZ+"="}},startMs:RY,trackingParams:JZ+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:QU},elementId:b$}},elementId:A1,trackingParams:JZ+"=",legacyInfoCardVastExtension:ML,sodarExtensionData:{siub:ML,bgub:uB,scs:wK,bgp:bh},externalVideoId:$Z,adLayoutLoggingData:{serializedAdServingDataEntry:uB},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Y_+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:JZ+"="},
headline:{text:ai,isTemplated:!1,trackingParams:JZ+"="},description:{text:pq,isTemplated:!1,trackingParams:JZ+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:fS},navigationEndpoint:{clickTrackingParams:Za,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ve+";dc_trk_cid="+ve+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RY+";ord="+ve+";dc_rui="+RY+";dc_exteid="+
VL+";dc_av="+RY+";dc_sk="+RY+";dc_ctype="+vk+";dc_pubid="+RY+";dc_btype=3?gclid="+Kq+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+
RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:JZ+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:JZ+"="}},navigationEndpoint:{clickTrackingParams:Za,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ve+";dc_trk_cid="+
ve+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RY+";ord="+ve+";dc_rui="+RY+";dc_exteid="+VL+";dc_av="+RY+";dc_sk="+RY+";dc_ctype="+vk+";dc_pubid="+RY+";dc_btype=3?gclid="+Kq+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+D+"&cid="+S+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+
H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:JZ+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:JZ+"="},abandonCommands:{commands:[{clickTrackingParams:Za,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+D+"&cid="+S+"&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="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+
RY+"="+RY+";etm1="+RY+";eid1="+vk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Za,commandExecutorCommand:{commands:[{clickTrackingParams:Za,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+D+"&cid="+S+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:A1,isTemplated:!1,trackingParams:JZ+
"="},trackingParams:JZ+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:cj},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+D+"&cid="+S+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+pe+";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="+ve+";dc_trk_cid="+ve+";ord="+lB+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RY+";dc_rui="+RY+";dc_exteid="+VL+";dc_av="+ls+";dc_sk="+RY+";dc_ctype="+vk+";dc_ref=http://www.youtube.com/video/"+$Z+";dc_pubid="+RY+";dc_btype=23?gclid="+Kq+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+S+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+RY+"&ns="+RY+"&event="+RY+"&device="+RY+"&content_v="+D+"&el="+A1+"&ei="+O+"&devicever="+V+"&bti="+pe+"&format="+Dc+"&break_type="+RY+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+RY+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+ck+"&slot_pos="+RY+"&slot_len="+RY+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
ih+"&ad_len="+q1+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+$Z+"&aqi="+O+"&ad_rmp="+RY+"&sli="+RY}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+S+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+S+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+vk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+S+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+Dc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+S+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+vk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+
S+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+S+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+vk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+S+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+pe+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+S+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+S+"&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"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&ctype="+ls+"&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"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_engaged_view&ctype="+ls+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+Dc+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+S+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+vk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+B+"&sig="+XX+"&ad_cpn=[AD_CPN]&id="+
bh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+bh+"&dc_pubid="+RY+"&dc_exteid="+VL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+S+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+B+
"&sig="+XX+"&ad_cpn=[AD_CPN]&id="+bh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+RY},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+bh+"&avm="+RY+"&dc_pubid="+RY+"&dc_exteid="+VL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+S+"&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="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+vk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+B+"&sig="+XX+"&ad_cpn=[AD_CPN]&id="+bh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+RY},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+bh+"&dc_pubid="+RY+"&dc_exteid="+VL+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+vk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+Dc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+vk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+Dc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+S+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+vk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+
ls+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&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/"+D+"/mqdefault.jpg",width:320,height:180}]},trackingParams:JZ+"="},trackingParams:JZ+"=",templatedCountdown:{templatedAdText:{text:ai,isTemplated:!0,trackingParams:JZ+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:cj,isTemplated:!1,trackingParams:JZ+"="},trackingParams:JZ+"="}},
trackingParams:JZ+"=",skipOffsetMilliseconds:5E3}},trackingParams:JZ+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:QU},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:JZ+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:QU,isTemplated:!1,trackingParams:JZ+"="},trackingParams:JZ+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:bh,
isTemplated:!0,trackingParams:JZ+"="}},trackingParams:JZ+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Za,openPopupAction:{popup:{aboutThisAdRenderer:{url:(aZ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+w+"&hl="+Yz+"&origin=www.youtube.com&ata_theme="+wK,aZ),trackingParams:JZ+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:JZ+"="}},hoverText:{runs:[{text:mN}]},trackingParams:JZ+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+B8+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:JZ+"="},headline:{text:ai,isTemplated:!1,trackingParams:JZ+"="},description:{text:$Z,trackingParams:JZ+"="},actionButton:{buttonRenderer:{text:{simpleText:A1},navigationEndpoint:{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:JZ+"="}},startMs:RY,trackingParams:JZ+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ai},elementId:A1}},elementId:zu,trackingParams:JZ+"=",legacyInfoCardVastExtension:fS,sodarExtensionData:{siub:$Z,bgub:pq,scs:zu,bgp:ai},externalVideoId:$Z,adLayoutLoggingData:{serializedAdServingDataEntry:ai},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+B8+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:JZ+"="},headline:{text:pq,
isTemplated:!1,trackingParams:JZ+"="},description:{text:wK,isTemplated:!1,trackingParams:JZ+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:cj},navigationEndpoint:{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:JZ+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:JZ+"="}},navigationEndpoint:{clickTrackingParams:Za,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+S+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+
RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:JZ+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:JZ+"="},abandonCommands:{commands:[{clickTrackingParams:Za,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+S+"&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="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+vk+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Za,commandExecutorCommand:{commands:[{clickTrackingParams:Za,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+S+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:pv,isTemplated:!1,trackingParams:JZ+"="},trackingParams:JZ+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:wK},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+S+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+RY+";dc_exteid="+VL+";met="+RY+";ecn"+RY+"="+RY+";etm1="+RY+";eid1="+
pe+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:ai}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:A1}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:q1,offsetEndMilliseconds:Dc},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+vk+"&token=ALHj"+x+"&index="+RY+"&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="+V+"&m_pos_ms="+q1}},adSlotLoggingData:{serializedSlotAdServingDataEntry:uB}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:Dc,offsetEndMilliseconds:Dc},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+ls+"&token=ALHj"+x+"&index="+RY+"&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="+
V+"&m_pos_ms="+Dc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:bh}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Dc,offsetEndMilliseconds:Dc},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+ls+"&token=ALHj"+x+"&index="+RY+"&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="+
V+"&m_pos_ms="+Dc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:wK}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Dc,offsetEndMilliseconds:Dc},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+ls+"&token=ALHj"+x+"&index="+RY+"&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="+
V+"&m_pos_ms="+Dc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:zu}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Dc,offsetEndMilliseconds:vk},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+ls+"&token=ALHj"+x+"&index="+RY+"&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="+
V+"&m_pos_ms="+Dc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:QU}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:vk,offsetEndMilliseconds:vk},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+vk+"&token=ALHj"+x+"&index="+RY+"&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="+
V+"&m_pos_ms="+vk}},adSlotLoggingData:{serializedSlotAdServingDataEntry:QU}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:mN,isTemplated:!1,trackingParams:JZ+"="},description:{text:pq,isTemplated:!1,trackingParams:JZ+"="},actionButton:{buttonRenderer:{text:{simpleText:Sv},navigationEndpoint:{clickTrackingParams:Za,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
ve+";dc_trk_cid="+ve+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RY+";ord="+ve+";dc_rui="+RY+";dc_exteid="+VL+";dc_av="+RY+";dc_sk="+RY+";dc_ctype="+vk+";dc_pubid="+RY+";dc_btype=3?gclid="+Kq+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:JZ+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Y_+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:JZ+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Jx+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:JZ+"="},navigationEndpoint:{clickTrackingParams:Za,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ve+";dc_trk_cid="+ve+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RY+";ord="+ve+
";dc_rui="+RY+";dc_exteid="+VL+";dc_av="+RY+";dc_sk="+RY+";dc_ctype="+vk+";dc_pubid="+RY+";dc_btype=3?gclid="+Kq+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:JZ+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Za,openPopupAction:{popup:{aboutThisAdRenderer:{url:(EU.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+w+"&hl="+Yz+"&origin=www.youtube.com&ata_theme="+wK,EU),trackingParams:JZ+"="}},popupType:"DIALOG"}},trackingParams:JZ+"="}},hoverText:{runs:[{text:zu}]},trackingParams:JZ+"="}},adVideoId:$Z,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+D+"&cid="+S+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:A1},associatedCompositePlayerBytesLayoutId:zu}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:fS}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:ML,isTemplated:!1,trackingParams:JZ+"="},description:{text:$Z,isTemplated:!1,trackingParams:JZ+"="},actionButton:{buttonRenderer:{text:{simpleText:ai},navigationEndpoint:{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+
H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:JZ+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+B8+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:JZ+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+G5+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:JZ+"="},navigationEndpoint:{clickTrackingParams:Za,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+
RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:JZ+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Za,openPopupAction:{popup:{aboutThisAdRenderer:{url:(o$.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+w+"&hl="+Yz+"&origin=www.youtube.com&ata_theme="+wK,o$),trackingParams:JZ+"="}},popupType:"DIALOG"}},trackingParams:JZ+"="}},
hoverText:{runs:[{text:cj}]},trackingParams:JZ+"="}},adVideoId:$Z,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+$Z+"&cid="+S+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:mN},associatedCompositePlayerBytesLayoutId:zu}},adSlotLoggingData:{serializedSlotAdServingDataEntry:$Z}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:F4,
isTemplated:!1,trackingParams:JZ+"="},description:{text:A1,isTemplated:!1,trackingParams:JZ+"="},actionButton:{buttonRenderer:{text:{simpleText:bh},navigationEndpoint:{clickTrackingParams:Za,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ve+";dc_trk_cid="+ve+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RY+";ord="+ve+";dc_rui="+RY+";dc_exteid="+VL+";dc_av="+RY+";dc_sk="+RY+";dc_ctype="+
vk+";dc_pubid="+RY+";dc_btype=3?gclid="+Kq+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+
N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:JZ+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Y_+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:JZ+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Jx+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:JZ+
"="},navigationEndpoint:{clickTrackingParams:Za,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ve+";dc_trk_cid="+ve+";dc_dbm_token="+J+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+RY+";ord="+ve+";dc_rui="+RY+";dc_exteid="+VL+";dc_av="+RY+";dc_sk="+RY+";dc_ctype="+vk+";dc_pubid="+RY+";dc_btype=3?gclid="+Kq+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+u+"____________"+H+"AxAA&ase=2&num="+RY+"&cid="+S+"&ad_cpn=%5BAD_CPN%5D&sig="+N+"&adurl="+L2+"&label=video_click_to_advertiser_site&ctype="+ls+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:JZ+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Za,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Th.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+w+"&hl="+Yz+"&origin=www.youtube.com&ata_theme="+wK,Th),trackingParams:JZ+"="}},popupType:"DIALOG"}},trackingParams:JZ+
"="}},hoverText:{runs:[{text:bh}]},trackingParams:JZ+"="}},adVideoId:$Z,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+u+"____________"+H+"AxAA&sigh="+D+"&cid="+S+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:b$},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:zu}},adSlotLoggingData:{serializedSlotAdServingDataEntry:F4}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:T1,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:T1,command:{innertubeCommand:{clickTrackingParams:Za,ypcGetOfflineUpsellEndpoint:{params:U5}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:JZ+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:lB,nanos:SL}}}},B3F=JSON.stringify(w0),An=performance.now()-W;return{objectRepresentation:w0,jsonRepresentation:B3F,generationTime:An}};
tKJ=function(W,l){if(W===l)return!0;if(!W||!l||typeof W!==typeof l)return!1;if(W instanceof Array&&l instanceof Array){if(W.length!==l.length)return!1;for(var V=0;V<W.length;V++)if(!tKJ(W[V],l[V]))return!1;return!0}if(typeof W==="object"&&typeof l==="object"&&W&&l){for(V in W)if(!(V in l&&tKJ(W[V],l[V])))return!1;for(var f in l)if(!(f in W))return!1;return!0}return!1};
_.oD=function(){if(!pa){pa=new Ht(new sRv);var W=_.yS("client_streamz_web_flush_count",-1);W!==-1&&(pa.invocationLimit=W)}return pa};
jr=function(W,l,V,f){if(W===l)return!0;if(Array.isArray(W)&&Array.isArray(l)){if(W.length!==l.length)return!1;for(var r=0;r<W.length;r++)if(!jr(W[r],l[r],V,f))return!1;return!0}if(W instanceof Set||l instanceof Set){if(W instanceof Set&&l instanceof Set){if(W.size!==l.size)return!1;f=_.L(W.values());for(r=f.next();!r.done;r=f.next())if(!l.has(r.value))return!1;return!0}return!1}if(W instanceof Function){if(f)return!0;W.name===""&&_.wv(Error("Mf"),"ERROR");return!1}if(W instanceof Date&&l instanceof
Date)return W.getTime()===l.getTime();if(W instanceof Object&&l instanceof Object){if(L48(W)&&L48(l))try{return W.equals(l)}catch(y){_.wv(Error("Nf`"+y),"ERROR")}r=Object.getOwnPropertyNames(W).filter(function(y){return V?W[y]!==void 0:!0});
var R=Object.getOwnPropertyNames(l).filter(function(y){return V?l[y]!==void 0:!0});
if(r.length!==R.length)return!1;r=_.L(r);for(R=r.next();!R.done;R=r.next())if(R=R.value,!jr(W[R],l[R],V,f))return!1;return!0}return!1};
L48=function(W){W=Object.getPrototypeOf(W).equals;return W instanceof Function&&W.length===1};
_.PyY=function(){return _.g(function(W){if(W.nextAddress==1)return yMj!==2?W.jumpTo(2):W.yield(gMF(),3);W.nextAddress!=2&&(yMj=W.yieldResult);return W.return(yMj)})};
_.cM4=function(){return _.g(function(W){if(W.nextAddress==1)return _.U("ab_pl_man")?nMz!==2?W.jumpTo(2):W.yield(Cy8(),3):W.return(1);W.nextAddress!=2&&(nMz=W.yieldResult);return W.return(nMz)})};
JMz=function(){return _.g(function(W){if(W.nextAddress==1)return _.U("ab_fk_sk_cl")?Bxv!==2?W.jumpTo(2):W.yield(dzx(),3):W.return(1);W.nextAddress!=2&&(Bxv=W.yieldResult);return W.return(Bxv)})};
_.uKx=function(){return _.g(function(W){if(W.nextAddress==1)return _.U("ab_det_apb_b")?Dz4!==2?W.jumpTo(2):W.yield(UzF(),3):W.return(1);W.nextAddress!=2&&(Dz4=W.yieldResult);return W.return(Dz4)})};
HZn=function(){var W;return _.g(function(l){if(l.nextAddress==1)return l.yield(Promise.all([_.PyY(),_.uKx(),_.cM4(),JMz()]),2);if(l.nextAddress!=3)return kJg()?l.return(!0):l.yield(_.vMj(),3);W=l.yieldResult;return l.return(W===0)})};
kJg=function(){var W=!1,l=function(V,f){K4x.increment(f,V);V===0&&(W=!0)};
l(_.F46(),"j.s_");l(yMj,"f.i_");l(Dz4,"a.b_");l(nMz,"p.m_");l(Bxv,"i.f_");GJg===2&&(GJg=_.bZz(pZz));l(GJg,"e.h_");_.U("ks_det_gpbl")||l(_.oMn(),"p.i_");_.U("ks_get_o_pp")||l(_.jR8(),"g.o_");_.U("ab_deg_unex_thr")||l(_.IX4(),"a.o_");l(iZF,"s.t_");_.U("ab_det_sc_inj_enf")&&l(_.mz6(),"s.i_");l(XZF,"d.p_");l(_.Txq(_.ID),"o.p_");l(_.wZY()===0?0:_.AMF(),"o.a_");return _.U("debug_sk_em_precheck")?!0:W};
MKU=function(){var W=[].concat(_.QK(QRJ));try{var l=b0();W.push({jsonRepresentation:l.jsonRepresentation,objectRepresentation:l.objectRepresentation})}catch(V){W=[].concat(_.QK(QRJ))}return W};
ZZS=function(){var W=["adPlacements","adSlots"];try{return W.filter(function(){return!0}).length!==W.length?0:1}catch(l){return 0}};
_.jR8=function(){if(ZZS()===0)return 0;var W=b0(),l=W.objectRepresentation,V=(0,_.MC.unsafeClone)(l),f=[];if(l&&typeof l==="object")for(var r in l)f.push(r);else return 4;W=W.objectRepresentation.adPlacements;if(!(W&&W.length>0))return 4;try{if(!tKJ(f,Object.getOwnPropertyNames(l)))return 0}catch(R){return 0}return tKJ(V,l)?1:0};
_.Txq=function(W){if(!W||!W.length||typeof W==="string")return 0;for(var l=Object.getOwnPropertyNames(Object.prototype),V=0;V<W.length;V++)for(var f=_.vl(W[V]),r=_.L(l),R=r.next();!R.done;R=r.next())if(f===R.value)return 0;return 1};
OZU=function(W){var l=_.vl(W[1]);if(W[0]===null)return l;W=W[0];for(var V={},f=0;f<W.length;f++){var r=_.vl(W[f]);if(f===0)V[r]=l;else{var R={};R[r]=V;V=R}}return V};
_.wZY=function(){for(var W=_.i0,l=0;l<W.length;l++){var V=OZU(W[l]),f=[];f.push(V);if(f.length===0)return 0}return 1};
_.AMF=function(){for(var W=_.i0,l={},V=0;V<W.length;l={zqK:void 0},V++){var f=[OZU(W[V])];l.zqK=[];f.forEach(function(r){return function(R){r.zqK[r.zqK.length]=R}}(l));
if(l.zqK.length===0)return 0}return 1};
_.F46=function(){for(var W=_.L(MKU()),l=W.next();!l.done;l=W.next()){var V=l.value;l=V.jsonRepresentation;V=V.objectRepresentation;try{var f=JSON.parse(l);if(!jr(f,V,!1,!1))return 0}catch(r){return 0}}return 1};
_.mz6=function(){try{var W=_.n7("ab_det_sc_inj_val");W.length===1&&W[0]===""&&(W=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var l=document.querySelectorAll("script"),V=_.L(l),f=V.next();!f.done;f=V.next())for(var r=f.value,R=_.L(W),y=R.next();!y.done;y=R.next()){var P=y.value;l=void 0;if((l=r.textContent)==null?0:l.includes(P))return 0}}catch(n){return 4}return 1};
_.vMj=function(){var W,l,V,f,r,R,y;return _.g(function(P){switch(P.nextAddress){case 1:_.HG(P,2),W=_.L(QRJ),l=W.next();case 4:if(l.done)return P.return(1);f=V=l.value;r=f.jsonRepresentation;R=f.objectRepresentation;return P.yield((new Response(r,{status:200})).json(),7);case 7:y=P.yieldResult;if(!jr(y,R,!1,!1))return P.return(0);l=W.next();P.jumpTo(4);break;case 2:return _.pc(P),P.return(4)}})};
_.IX4=function(){try{btoa("abc")}catch(W){return 0}return 1};
gMF=function(){var W,l,V,f,r,R,y,P,n,B,d;return _.g(function(J){switch(J.nextAddress){case 1:_.HG(J,2),W=_.L(MKU()),l=W.next();case 4:if(l.done)return J.return(1);f=V=l.value;r=f.jsonRepresentation;R=f.objectRepresentation;y=btoa(r);P="data:application/json;base64,"+y;n=new Request(P);Object.defineProperty(n,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(n,"method",{get:function(){return"POST"}});
Object.defineProperty(n,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(n,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(n,"body",{get:function(){return new ReadableStream}});
return J.yield(fetch(n),7);case 7:return B=J.yieldResult,J.yield(B.json(),8);case 8:d=J.yieldResult;if(!jr(d,R,!1,!1))return J.return(0);l=W.next();J.jumpTo(4);break;case 2:return _.pc(J),J.return(4)}})};
_.bZz=function(W){if(!W||!W.length||typeof W==="string")return 0;for(var l=function(r){return _.vl(r)},V=2,f=0;f<W.length&&(V=_.aXY(_.rM4(W[f],l)),V!==0);f++);
return V};
_.aXY=function(W){var l=_.L(W);W=l.next().value;l=l.next().value;try{var V=document.createElement("div");document.body.appendChild(V);var f=getComputedStyle(V).display;document.body.removeChild(V);if(f==="none")return 4;var r=getComputedStyle(l).display==="none"?0:1;document.body.removeChild(W);return r}catch(R){return 4}};
dzx=function(){var W,l,V;return _.g(function(f){W=new _.mg;l=document.createElement("button");l.classList.add("ytp-ad-skip-button");l.style.opacity="0";l.style.height="0px";l.style.width="0px";l.style.padding="0px";l.style.border="none";V=function(){l.parentElement&&l.parentElement.removeChild(l)};
l.onclick=function(){W.resolve(0);V()};
document.body.appendChild(l);setTimeout(function(){V();W.resolve(1)},50);
return f.return(W.promise)})};
Cy8=function(){var W,l,V,f,r,R,y;return _.g(function(P){W=new _.mg;l=document.createElement("ytd-player");try{document.body.prepend(l)}catch(n){return P.return(4)}V=function(){l.parentElement&&l.parentElement.removeChild(l)};
l.getElementsByTagName("div").length>0?f=l.getElementsByTagName("div")[0]:(f=document.createElement("div"),l.appendChild(f));r=document.createElement("div");f.appendChild(r);R=document.createElement("video");y=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"});R.src=_.MI(_.Yk(y));R.ontimeupdate=function(){V();W.resolve(0)};
r.appendChild(R);R.classList.add("html5-main-video");setTimeout(function(){r.classList.add("ad-interrupting")},200);
setTimeout(function(){V();W.resolve(1)},5E3);
return P.return(W.promise)})};
znq=function(W,l){var V,f;return _.g(function(r){switch(r.nextAddress){case 1:V=[],f=0;case 2:if(!(f<3)){r.jumpTo(4);break}return r.yield(fetch(W,{cache:"no-store",method:l}).then(function(R){V.push(R.status)}).catch(function(){V.push(-1)}),3);
case 3:f++;r.jumpTo(2);break;case 4:return r.return(V)}})};
NxF=function(W){return W.domainLookupStart===0&&W.domainLookupEnd===0&&W.connectStart===0&&W.connectEnd===0};
Yhg=function(W,l,V){V=V===void 0?"GET":V;var f,r,R,y,P,n,B,d,J,D;return _.g(function(u){if(u.nextAddress==1)return u.yield(Promise.all([znq(W,V),znq(l,V)]),2);f=u.yieldResult;r=_.L(f);R=r.next().value;y=r.next().value;P=R;n=y;if(Math.min.apply(Math,_.QK(n))!==Math.max.apply(Math,_.QK(n))||Math.min.apply(Math,_.QK(P))!==Math.max.apply(Math,_.QK(P)))return u.return(2);if(Math.min.apply(Math,_.QK(n))===Math.min.apply(Math,_.QK(P)))return u.return(1);d=(B=performance.getEntriesByName(W))==null?void 0:
B[0];D=(J=performance.getEntriesByName(l))==null?void 0:J[0];return d&&D?NxF(D)?u.return(1):NxF(d)?u.return(0):u.return(1):u.return(2)})};
UzF=function(){var W;return _.g(function(l){var V=[];var f;var r,R,y;(r=f=(r=b0().objectRepresentation.streamingData)==null?void 0:(R=r.formats)==null?void 0:(y=R[0])==null?void 0:y.url)&&r&&!f.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(r=r.replace("initcwndbps","ctier=L&initcwndbps"),r=r.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),f={testUrl:r,baseUrl:f,method:"GET"}):f=void 0;f&&V.push(f);_.U("ab_net_tp_e")&&V.push({testUrl:_.rS.location.origin+"/ad_companion",baseUrl:_.rS.location.origin+
"/generate_204",method:"OPTIONS"});if(_.U("ad_net_pb_ab")){var P;b:{f=/api\/stats\/ads/;var n,B,d,J;r=(P=b0().objectRepresentation.adPlacements)==null?void 0:(n=P[0])==null?void 0:(B=n.adPlacementRenderer)==null?void 0:(d=B.renderer)==null?void 0:(J=d.linearAdSequenceRenderer)==null?void 0:J.linearAds;if(r!=null&&r.length&&(P=_.k(r[0],xzS))&&(P=P.pings,P!=null&&P.impressionPings))for(n=[].concat(_.QK(P.impressionPings)),P.progressPings&&(n=[].concat(_.QK(n),_.QK(P.progressPings))),P=_.L(n),n=P.next();!n.done;n=
P.next())if(n=n.value,n.baseUrl&&f.test(n.baseUrl)){P=n.baseUrl.replace("https://www.youtube.com","");break b}P=void 0}P&&V.push({testUrl:_.rS.location.origin+P,baseUrl:_.rS.location.origin+"/feed/download",method:"GET"})}if(_.U("ad_net_pb_pbp")){var D;b:{P=/api\/stats\/qoe/;if(n=b0().objectRepresentation.playbackTracking){B=[];B.push(n==null?void 0:(D=n.videostatsPlaybackUrl)==null?void 0:D.baseUrl);var u;B.push(n==null?void 0:(u=n.videostatsDelayplayUrl)==null?void 0:u.baseUrl);var H;B.push(n==
null?void 0:(H=n.videostatsWatchtimeUrl)==null?void 0:H.baseUrl);var p;B.push(n==null?void 0:(p=n.ptrackingUrl)==null?void 0:p.baseUrl);var X;B.push(n==null?void 0:(X=n.qoeUrl)==null?void 0:X.baseUrl);var w;B.push(n==null?void 0:(w=n.atrUrl)==null?void 0:w.baseUrl);D=_.L(B);for(u=D.next();!u.done;u=D.next())if((u=u.value)&&P.test(u)){D=u.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}D=void 0}D&&V.push({testUrl:_.rS.location.origin+D,baseUrl:_.rS.location.origin+
"/feed/download",method:"GET"})}V=V.length!==0?V[Math.floor(Math.random()*V.length)]:void 0;return(W=V)?l.return(Yhg(W.testUrl,W.baseUrl,W.method)):l.return(4)})};
_.oMn=function(){if(_.rS.qGS===void 0||_.rS.qGS===null||typeof _.rS.qGS!=="function")return 2;try{return _.rS.qGS()===!0?0:1}catch(W){return 0}};
enx=function(W){switch(W){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Yc(W,"unknown result type")}};
_.qhj=function(W,l){var V=Number(_.M4("CATSTAT",0));if(l.wrq===void 0)return V;l=l.wrq;W=enx(W);return V&~(3<<l)|W<<l};
hnv=function(W){var l,V;if((W=(l=W.auxiliaryUi)==null?void 0:(V=l.messageRenderers)==null?void 0:V.bkaEnforcementMessageViewModel)&&W.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return W};
EMJ=function(){for(var W=_.L(Object.values(_.Shv)),l=W.next();!l.done;l=W.next())l=l.value,l.isAsync&&l.wrq&&_.Qj("CATSTAT",_.qhj(2,l))};
_.A5=function(W,l){W=_.X2("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",W);(l===void 0?0:l)?_.$zz(W,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.TL(_.wE(),W,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
lBS=function(){if(!Waz){if(Polymer.Base){var W=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{W.apply(this,arguments)}catch(J){_.OJ(J)}};
var l=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{l.apply(this,arguments)}catch(J){_.OJ(J)}};
var V=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{V.apply(this,arguments)}catch(J){_.OJ(J)}};
var f=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{f.apply(this,arguments)}catch(J){_.OJ(J)}};
var r=Polymer.Base._listen,R=new WeakMap;Polymer.Base._listen=function(J,D,u){var H=function(){try{u.apply(this,arguments)}catch(p){_.OJ(p)}};
R.set(u,H);r.call(this,J,D,H)};
var y=Polymer.Base._unlisten;Polymer.Base._unlisten=function(J,D,u){y.call(this,J,D,R.get(u))}}if(Polymer.Async){var P=Polymer.Async,n=P._atEndOfMicrotask;
P._atEndOfMicrotask=function(){try{n.apply(P,arguments)}catch(J){_.OJ(J)}}}if(Polymer.RenderStatus){var B=Polymer.RenderStatus,d=B.afterNextRender;
B.afterNextRender=function(J,D,u){d.call(B,J,function(){try{D.apply(this,arguments)}catch(H){_.OJ(H)}},u)}}Waz=!0}};
_.Q1=function(W){var l=W?_.JY(W):"";if(l){if(l.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(l.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(l.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(l.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(l.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.U("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(l.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";l=l.toLowerCase();if(l==="/")return"home";if(l==="/channel_memberships")return"channel-memberships-shopfront";if(l.indexOf("/feed/trending")===0)return"trending";if(l.indexOf("/feed/explore")===0)return"explore";if(l.indexOf("/live")===0)return"live";if(l.indexOf("/results")===0)return"search";if(l.indexOf("/sports")===0)return"sports";if(l.indexOf("/fashion")===0||l.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(l))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(l))return _.U("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(l.indexOf("/channel/")===0||l.indexOf("/user/")===0||l.indexOf("/gaming")===0||l.indexOf("/post/")===0)return"channel";if(VWF(W))return"show";if(l==="/playlist"||l.indexOf("/playlist/")===0||l==="/view_play_list"||l.indexOf("/view_play_list/")===0||l.indexOf("/show/")===0)return"playlist";if(l==="/feed/history"||l.indexOf("/feed/history/")===0)return"history";if(l===
"/new")return"labs";if(l==="/feed/subscriptions")return"subscriptions";if(l.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(l==="/history_controls")return"standalone";if(l.indexOf("/account")===0||l==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(l.indexOf("/paid_memberships")===0||l.indexOf("/refund")===0||l.indexOf("/purchases")===0||l.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(l.indexOf("/product")===0)return"yts-products";if(l.indexOf("/premium")===
0||l.indexOf("/musicpremium")===0)return l.indexOf("/premium/offers")===0||l.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(l==="/cart/checkout"||l==="/cart")return"ypc-checkout";if(l.indexOf("/feed/downloads")===0||l.indexOf("/redeem")===0||l.indexOf("/reporthistory")===0)return"browse";if(l.indexOf("/hashtag")===0)return"hashtag-landing-page";if(l.indexOf("/handle")===0)return"handle";if(l.indexOf("/source")===0)return"audio-pivot";if(l.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(l.indexOf("/playables")===0)return"playables";if(l.indexOf("/create/live/join")===0)return"open-in-app";if(l.indexOf("/shorts")===0)return"shorts";if(l.indexOf("/feed/channels")===0)return"subscriptions-channels";(l=W?_.JY(W):"")&&l.indexOf("/watch")===0&&_.U("web_watch_enable_learning_journey")?(W=_.Si(W),W=!!W.list&&W.list.indexOf("LJPP")===0):W=!1;if(W)return"learning_journey_watch"}};
_.M$=function(W){var l,V;(W=(V=_.k(W==null?void 0:W.commandMetadata,_.XN))==null?void 0:V.url)&&(l=_.Q1(W));return l};
VWF=function(W){var l=W?_.JY(W):"";if(!l)return!1;l=l.toLowerCase();return l.indexOf("/show/")===0||l.indexOf("/playlist")===0&&(W=_.Si(W),W.list&&W.list.indexOf("EL")===0)?!0:!1};
aD=function(W){var l="unknown",V;var f=((V=_.k(W==null?void 0:W.commandMetadata,_.XN))==null?void 0:V.webPageType)||"";f?(V=f.toLowerCase(),V.startsWith("web_page_type_")&&(V=V.slice(14))):V=f;V&&fBv[V.toUpperCase()]?l=fBv[V.toUpperCase()]:_.k(W,_.ZJ)||_.k(W,rq8)?l="browse":_.k(W,_.Om)?l="search":_.k(W,_.Bh)&&(l="watch");l==="watch"&&_.M$(W||null)==="learning_journey_watch"&&(l="learning_journey_watch");l==="unknown"&&_.Qe(Error("Pf`"+JSON.stringify({clickTrackingParams:W==null?void 0:W.clickTrackingParams,
commandMetadata:W==null?void 0:W.commandMetadata,allEndpointKeys:Object.keys(W||[])})));return l};
_.zL=function(W){if(!_.RB6||W)_.RB6=_.oU();return _.RB6};
_.tWz=function(W){return!!_.k(W,_.Bh)||!!_.k(W,_.N$)&&_.U("kevlar_enable_shorts_prefetch")};
_.s2z=function(W,l){W=_.k(W,_.Bh)||_.k(W,_.N$);return"v"+W.videoId+(W.playlistId?"-pl"+W.playlistId:"")+(l?"-an1":"")+(W.params?"-pr"+W.params:"")};
YV=function(W){return function(){return new W}};
xV=function(W){var l=_.tY();return function(){return l.resolve(W)}};
yq4=function(W){var l=_.yS("web_pbj_log_warning_rate",0);l=l>0&&Math.random()<l;if(!_.k(W,_.N$))return l&&_.Qe(Error("Sf")),!1;var V;return _.U("shorts_controller_retrieve_seedless_sequence_v2")&&((V=_.k(W,_.N$))==null?void 0:V.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:LaF(W)?!0:(l&&_.Qe(Error("Tf")),!1)};
LaF=function(W){var l=(_.k(W,_.Bh)||_.k(W,_.N$)).videoId;if(!l||!gOY.test(l))return!1;var V;return(W=(V=_.k(W.commandMetadata,_.XN))==null?void 0:V.url)&&(W.includes(l)||W.startsWith("/clip"))?!0:!1};
_.nOJ=function(){var W=_.MT();return W.getFlag(192)?W.getFlag(190):!(_.U("web_watch_cinematics_disabled_by_default")||_.U("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&PXz())};
_.er=function(W,l,V){var f={};f.currentUrl=l;f.vis=W.vis!==void 0?W.vis:0;f.splay=!1;l=_.MT();f.autoCaptionsDefaultOn=l.getFlag(66);l.getFlag(141)?l.getFlag(140)?f.autonavState="STATE_OFF":f.autonavState="STATE_ON":f.autonavState="STATE_NONE";f.html5Preference="HTML5_PREF_WANTS";isNaN(_.M4("STS"))||(f.signatureTimestamp=_.M4("STS"));W.autonav&&(f.autoplay=!0,f.autonav=!0);W.mutedAutoplay&&(f.autoplay=!0,f.mutedAutoplay=!0);W.inlinePlayback&&(f.autoplay=!0,f.autonav=!1,f.isInlineUnmutedPlayback=!!W.inlineUnmuted);
f.referer=V;f.lactMilliseconds=W.lact!==void 0?W.lact.toString():"-1";_.U("enable_unknown_lact_fix_on_html5")&&f.lactMilliseconds==="-1"&&_.Qe(new _.bP("Unknown LACT is set in playbackContext.",{"lact in tempData":W.lact||"undefined",autonav:W.autonav||"undefined"}));W={};l.getFlag(194)&&(W.hasShownAmbientMode=!0);l.getFlag(192)&&(W.hasToggledOffAmbientMode=!0);_.nOJ()&&(W.watchAmbientModeEnabled=!0);f.watchAmbientModeContext=W;return f};
CXn=function(W){var l={},V=W.pbis||0;V&&(l.playbackBeginsInSeconds=V);W.prefetch_reason&&W.prefetch_reason==="hc_pbis"&&(l.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return l};
_.h5=function(W){W=W===void 0?!1:W;var l=_.MT(),V="USER_INTERFACE_THEME_LIGHT";l.getFlag(165)?V="USER_INTERFACE_THEME_DARK":l.getFlag(174)?V="USER_INTERFACE_THEME_LIGHT":_.q$()&&(V="USER_INTERFACE_THEME_DARK");return W?V:cqF()||V};
_.BiS=function(){return!_.U("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.q$=function(){return _.BiS()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.Sr=function(){var W=_.MT();return _.BiS()&&!W.getFlag(165)&&!W.getFlag(174)};
cqF=function(){var W=W===void 0?window.location.href:W;if(_.U("kevlar_disable_theme_param"))return null;var l=_.JY(W);if(_.dAn(l))return"USER_INTERFACE_THEME_DARK";try{var V=_.Si(W).theme;return Jq8.get(V)||null}catch(f){}return null};
_.dAn=function(W){return _.U("enable_dark_theme_only_on_shorts")?!(W==null||!W.startsWith("/shorts/")):!1};
_.uVS=function(W,l,V,f,r){l=l===void 0?!1:l;V=V===void 0?!1:V;var R=_.M4("INNERTUBE_CONTEXT");if(!R)return _.wv(Error("Wf")),{};R=(0,_.MC.unsafeClone)(R);_.U("web_no_tracking_params_in_shell_killswitch")||delete R.clickTracking;R.client||(R.client={});var y=R.client;y.clientName==="MWEB"&&y.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(y.clientFormFactor=_.M4("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");y.screenWidthPoints=window.innerWidth;y.screenHeightPoints=window.innerHeight;y.screenPixelDensity=
Math.round(window.devicePixelRatio||1);y.screenDensityFloat=window.devicePixelRatio||1;y.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());y.userInterfaceTheme=_.h5();if(!l){var P=_.GTj();P&&(y.connectionType=P);_.U("web_log_effective_connection_type")&&(P=pyq())&&(R.client.effectiveConnectionType=P)}var n;if(_.U("web_log_memory_total_kbytes")&&((n=_.rS.navigator)==null?0:n.deviceMemory)){var B;n=(B=_.rS.navigator)==null?void 0:B.deviceMemory;R.client.memoryTotalKbytes=""+n*1E6}l&&f&&!_.U("web_it_context_set_original_url_ks")&&
(y.originalUrl=DA4(_.rS.location.href,f).toString());_.U("web_gcf_hashes_innertube")&&(P=QDj())&&(B=P.coldConfigData,n=P.coldHashData,P=P.hotHashData,R.client.configInfo=R.client.configInfo||{},B&&(R.client.configInfo.coldConfigData=B),n&&(R.client.configInfo.coldHashData=n),P&&(R.client.configInfo.hotHashData=P));B=_.Si(_.rS.location.href);!_.U("web_populate_internal_geo_killswitch")&&B.internalcountrycode&&(y.internalGeo=B.internalcountrycode);!_.U("web_populate_client_screen_killswitch")&&r&&(y.clientScreen=
r);y.clientName==="MWEB"||y.clientName==="WEB"?(y.mainAppWebInfo||(y.mainAppWebInfo={}),y.mainAppWebInfo.graftUrl=f||_.rS.location.href,_.U("kevlar_woffle")&&_.Em.instance&&(f=_.Em.instance,y.mainAppWebInfo.pwaInstallabilityStatus=!f.appInstalledEventFired&&f.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),y.mainAppWebInfo.webDisplayMode=jDz(),y.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):y.clientName==="TVHTML5"&&
(!_.U("web_lr_app_quality_killswitch")&&(f=_.M4("LIVING_ROOM_APP_QUALITY"))&&(y.tvAppInfo=Object.assign(y.tvAppInfo||{},{appQuality:f})),f=_.M4("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(y.tvAppInfo=Object.assign(y.tvAppInfo||{},{certificationScope:f}));!_.U("web_populate_time_zone_itc_killswitch")&&(f=KL8())&&(y.timeZone=f);(f=Ngz())?y.experimentsToken=f:delete y.experimentsToken;y=Yex();f=_.UAn();f=(0,_.MC.getValues)(f.tokenJars);R.request=Object.assign({},R.request,{internalExperimentFlags:y,consistencyTokenJars:f});
!_.U("web_prequest_context_killswitch")&&(y=_.M4("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(R.request.externalPrequestContext=y);f=_.MT();y=f.getFlag(58);f=f.get("gsml","");R.user=Object.assign({},R.user);y&&(R.user.enableSafetyMode=y);f&&(R.user.lockedSafetyMode=!0);_.U("warm_op_csn_cleanup")?V&&(l=_.Wh())&&(R.clientScreenNonce=l):!l&&(l=_.Wh())&&(R.clientScreenNonce=l);W&&(R.clickTracking={clickTrackingParams:W});if(W=_.Y2("yt.mdx.remote.remoteClient_"))R.remoteClient=W;_.$V.getInstance().setLocationOnInnerTubeContext(R);
try{var d=VEz(),J=d.bid;delete d.bid;R.adSignalsInfo={params:[],bid:J};for(var D=_.L(Object.entries(d)),u=D.next();!u.done;u=D.next()){var H=_.L(u.value),p=H.next().value,X=H.next().value;d=p;J=X;W=void 0;(W=R.adSignalsInfo.params)==null||W.push({key:d,value:""+J})}var w,O;if(((w=R.client)==null?void 0:w.clientName)==="TVHTML5"||((O=R.client)==null?void 0:O.clientName)==="TVHTML5_UNPLUGGED"){var S=_.M4("INNERTUBE_CONTEXT");S.adSignalsInfo&&(R.adSignalsInfo.advertisingId=S.adSignalsInfo.advertisingId,
R.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",R.adSignalsInfo.limitAdTracking=S.adSignalsInfo.limitAdTracking)}}catch(N){_.wv(N)}return R};
_.kjJ=function(W){var l=new WV(_.M4("ONE_PICK_URL",""));l.urlParamMap_.set("hostId",W);(W=_.M4("GAPI_LOCALE"))&&l.urlParamMap_.set("hl",W);(W=_.M4("SESSION_INDEX"))&&l.urlParamMap_.set("authuser",W);(W=_.M4("DELEGATED_SESSION_ID"))&&l.urlParamMap_.set("groupId",W);return l};
H9Y=function(){var W=_.tY(),l=W.resolve(_.lm);W=W.resolve(_.Vb);return new vOz(l,W)};
FaJ=function(W){if(window.IntersectionObserver)return new Kaz(W,400);throw new TypeError("cg");};
b9z=function(){var W=Hammer.TouchAction,l=W.prototype.preventDefaults;W.prototype.preventDefaults=function(V){var f=this.actions.indexOf("pan-down")>-1;if(!f)return l.call(this,V);if(!Gj4){var r=V.srcEvent;V=V.direction;var R;if((R=this.manager)==null?0:R.session.prevented)r.preventDefault();else if(f&&V&Hammer.DIRECTION_DOWN)return this.preventSrc(r)}}};
pRq=function(W){if(!W||W.size===0)return Hammer.DIRECTION_ALL;if(W.size===2){if(W.has("up")&&W.has("down"))return Hammer.DIRECTION_VERTICAL;if(W.has("right")&&W.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(W.size===1){if(W.has("up"))return Hammer.DIRECTION_UP;if(W.has("down"))return Hammer.DIRECTION_DOWN;if(W.has("right"))return Hammer.DIRECTION_RIGHT;if(W.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.j28=function(){return oOF?Promise.resolve(oOF):new Promise(function(W,l){var V=self.indexedDB.open("swpushnotificationsdb");V.onerror=l;V.onsuccess=function(){var f=V.result;if(f.objectStoreNames.contains("swpushnotificationsstore"))oOF=f,W(oOF);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.j28()};
V.onupgradeneeded=IBg})};
IBg=function(W){W=W.target.result;W.objectStoreNames.contains("swpushnotificationsstore")&&W.deleteObjectStore("swpushnotificationsstore");W.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
mAj=function(W){var l=i9F(),V;return _.g(function(f){switch(f.nextAddress){case 1:return _.HG(f,2),f.yield(W.match(l,{cacheName:"yt-appshell-assets"}),4);case 4:V=f.yieldResult;_.qL(f,3);break;case 2:_.pc(f);case 3:return f.return(V)}})};
i9F=function(){var W=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?XRj.registration.scope:Tiz;W.endsWith("/")&&(W=W.slice(0,-1));return W+"/app_shell_home"};
wRJ=function(W){W.map(function(l){return l.source}).join("|")};
_.Aq4=function(W){return _.g(function(l){return l.return(mAj(W))})};
Q2x=function(){var W=window.caches,l;return _.g(function(V){if(V.nextAddress==1)return V.yield(_.Aq4(W),2);l=V.yieldResult;return V.return(!!l)})};
YTv=function(){_.g(function(W){if(W.nextAddress==1){if(MWz)return W.jumpTo(0);MWz=!0;if(_.U("enable_system_health_primes_monitoring"))return _.BA(Z9j,3E4),O9U(),W.return();if(!(Math.random()<_.yS("web_system_health_fraction")))return W.jumpTo(0);aBj={heightPixels:screen.height,widthPixels:screen.width};fG&&!isNaN(fG.jsHeapSizeLimit)&&(aBj.memoryTotalKbytes=String(Math.round(fG.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(aBj.devicePixelRatio=window.devicePixelRatio);return W.yield(zBq(),4)}_.BA(Z9j,
3E4);return W.yield(Nij(),0)})};
zBq=function(){return _.g(function(W){if(W.nextAddress==1)return r_.intersectionObserverPresent="IntersectionObserver"in window,r_.serviceWorkerPresent="serviceWorker"in navigator,r_.webSharePresent="share"in navigator,r_.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,r_.cacheStoragePresent="caches"in window,r_.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,r_.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
r_.webkitTemporaryStoragePresent="webkitTemporaryStorage"in R1&&R1.webkitTemporaryStorage&&"queryUsageAndQuota"in R1.webkitTemporaryStorage,r_.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",W.yield(r5F(),2);r_.indexedDbPresent=W.yieldResult;r_.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;r_.broadcastChannelPresent="BroadcastChannel"in window;r_.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(r_.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,r_.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.ju(W)})};
Z9j=function(){var W=9E4+Math.random()*2E3;_.sL()>W||(_.U("enable_system_health_primes_monitoring")?O9U():Nij())};
Nij=function(){var W;return _.g(function(l){if(l.nextAddress==1)return l.yield(xAx(),2);W=l.yieldResult;_.XC("systemHealthCaptured",W);_.ju(l)})};
O9U=function(){var W={metric:{}},l=eBq();l.networkEvents.length&&(W.metric.networkEvents=qTj(l));_.XC("systemHealthCaptured",W)};
xAx=function(){var W,l,V,f,r,R,y,P,n,B;return _.g(function(d){switch(d.nextAddress){case 1:W={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)};l=window.screen;_.U("enable_is_extended_monitoring")&&l&&"isExtended"in l&&(W.isExtended=!!l.isExtended);V={metric:{staticContext:aBj,dynamicContext:W,webMetric:hBj,webApiSupport:r_}};
if(f=_.Wh())V.csn=f;fG&&(V.metric.webMetric.currentHeapKbytes=Math.round(fG.usedJSHeapSize/1E3));window.matchMedia&&(V.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,V.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,V.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in R1&&typeof R1.getBattery==="function")){d.jumpTo(2);break}return d.yield(R1.getBattery(),3);case 3:if(r=
d.yieldResult)V.metric.dynamicContext.chargingStatus=r.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(V.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(r_.storageEstimatePresent)return d.yield(navigator.storage.estimate(),8);if(!r_.webkitTemporaryStoragePresent){d.jumpTo(5);break}return d.yield(STS(),7);case 7:R=d.yieldResult;d.jumpTo(5);break;case 8:R=d.yieldResult;case 5:return V.metric.dynamicContext.deviceStorageQuotaMbytes=((y=R)==null?0:y.quota)?String(Math.round(R.quota/
1048576/10)*10):"-1",V.metric.dynamicContext.deviceStorageUsageMbytes=((P=R)==null?0:P.usage)?String(Math.round(R.usage/1048576/10)*10):"-1",n=V.metric.dynamicContext,d.yield(Q2x(),9);case 9:return n.hasAppShell=d.yieldResult,B=eBq(),B.networkEvents.length&&(V.metric.networkEvents=qTj(B)),d.return(V)}})};
STS=function(){return new Promise(function(W){var l;r_.webkitTemporaryStoragePresent&&(l=R1.webkitTemporaryStorage)!=null&&l.queryUsageAndQuota?R1.webkitTemporaryStorage.queryUsageAndQuota(function(V,f){W({usage:V,quota:f})}):W(void 0)})};
_.ta=function(W){W&=16777215;W=[(W&16711680)>>16,(W&65280)>>8,W&255];return EOn(W[0],W[1],W[2])};
_.sD=function(W){W=[(W&16711680)>>>16,(W&65280)>>>8,W&255,(W&4278190080)>>>24];var l=_.$Aq(W,function(V){return V==(V&255)});
W[3]=(W[3]/255).toFixed(3);if(!l)throw Error("dg`"+W.join(","));return"rgba("+W.join(",")+")"};
_.WOJ=function(W){return[(W&16711680)>>>16,(W&65280)>>>8,W&255]};
_.lOJ=function(W){W=W.map(function(l){l/=255;return l<=.03928?l/12.92:Math.pow((l+.05)/1.05,2.4)});
return W[0]*.2126+W[1]*.7152+W[2]*.0722};
LG=function(W,l){W=_.WOJ(W);return"rgba("+W[0]+", "+W[1]+", "+W[2]+", "+l+")"};
_.Voj=function(){try{return!!self.localStorage}catch(W){return!1}};
to8=function(){if(fOz())_.Qe(Error("eg"));else{var W=document.createElement("iframe");W.style.display="none";var l=l===void 0?window.location.href:l;var V=_.Av(_.M4("PERSIST_IDENTITY_IFRAME_URL"));l=V?V:(new URL(l)).host.indexOf("studio")===0?_.dO(r8q,"persist_identity"):_.dO(RTn,"persist_identity");_.stF(W,1,l);W.id="persist_identity";var f;(f=document.body)==null||f.appendChild(W)}};
fOz=function(){var W=suY;W||(W=document.querySelector("#persist_identity"));return W};
LOv=function(){var W=!1;try{W=!!window.sessionStorage.getItem("session_logininfo")}catch(l){W=!0}return(_.M4("INNERTUBE_CLIENT_NAME")==="WEB"||_.M4("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&W};
y8z=function(W,l){if(!LOv())return!1;l||(l=_.M4("LOGIN_INFO"));return l?(W.session_logininfo=l,!0):!1};
Prx=function(W,l){W=W===void 0?!1:W;if((l===void 0||!l)&&gvz!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.ZL("LOG_STICKINESS",!1)){l=_.Wh();var V=_.$G(),f={identityStickinessData:{initialState:gvz}};l&&V&&_.By(l,V,f)}if(l=fOz())if(V=l.src?(new URL(l.src)).origin:"*",W){var r;(r=l.contentWindow)==null||r.postMessage({action:"clear"},V)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(W=window.sessionStorage.getItem("session_logininfo"))){var R;(R=l.contentWindow)==null||R.postMessage({loginInfo:W},V)}};
_.yb=function(W){W=W===void 0?!0:W;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.Qj("LOGIN_INFO",""),W&&window.sessionStorage.setItem("from_switch_account","1"),Prx(!0,W)}catch(l){}};
nvz=function(W){W&&(W.startsWith("https://accounts.google.com/AddSession")?_.yb():W.startsWith("https://accounts.google.com/ServiceLogin")?_.yb():W.startsWith("https://myaccount.google.com")&&_.SV(W).getPath().endsWith("/youtubeoptions")&&_.yb())};
g_=function(W,l){nvz(W);if(_.ZL("LOGGED_IN",!0)&&LOv()){var V=rug(W);V==null&&(V={});y8z(V,l)&&_.Ue(W,V)}};
Cr6=function(){function W(l){for(l=l.target;l&&l.nodeName!=="A";)if(l=l.parentNode,!(l&&l instanceof HTMLElement))return;if(l&&!l.hasAttribute("download")&&l.getAttribute("rel")!=="external"&&l.href)return l.href}
document.addEventListener("mousedown",function(l){l.button!==0&&(l=W(l))&&g_(l)});
document.addEventListener("click",function(l){(l=W(l))&&g_(l)})};
dyg=function(){var W=new c8j;try{if(_.ZL("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(P){W.increment(5,!1);return}if(_.M4("LOGIN_INFO")){var l=Bnz?Bnz:window.location;_.M4("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&to8();var V=rug(l.href);V==null&&(V={});var f=V.session_logininfo,r=Number(window.sessionStorage.getItem("stickiness_reload")),R=f===_.M4("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
r>=2||R)r>=2?W.increment(2,R):R?W.increment(7,R):window.sessionStorage.getItem("session_logininfo")||(W.increment(3,R),gvz="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.M4("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.M4("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))W.increment(4,R),window.sessionStorage.removeItem("stickiness_reload");
else if(r<2){window.sessionStorage.setItem("stickiness_reload",String(r+1));var y=l.href;y=_.uj(y,"sttick");g_(y,window.sessionStorage.getItem("session_logininfo"));y=_.EJ(y,{sttick:r});W.increment(r,R);_.CMF(l,y)}}else W.increment(6,!1)}else _.yb(!1)}catch(P){}};
_.PV=function(W,l,V,f,r){l=l===void 0?{}:l;V=V===void 0?"":V;f=f===void 0?window:f;W=_.$2(W,l);g_(W);V=_.NI(W+V,r);_.CMF(f.location,V)};
_.J8U=function(W,l,V,f,r){r=r===void 0?!1:r;V&&_.Ue(W,V);V=_.NI(W);var R=_.MI(V);W!=R&&_.x2(Error("fg`"+W));W=R;l=l||LN(W).toString(36);try{if(r)return r=W,r=mav(r),g_(r),_.lM(window,r,l,"attributionsrc")}catch(y){_.OJ(y)}g_(W);return _.lM(window,V,l,f)};
Dyx=function(W){if(W.urlEndpoint){if(W=_.Si(W.urlEndpoint.url),W.adurl)return rU(W.adurl)}else if(W.watchEndpoint)return"//www.youtube.com/watch?v="+W.watchEndpoint.videoId;return null};
Uy6=function(W){if(!W||!W.reportingPings)return null;var l={};W.reportingPings.forEach(function(V){V.pingType in l?l[V.pingType].push(V.url):l[V.pingType]=[V.url]});
return{adpings:jgn(l)}};
_.nG=function(){return{isShellLoad:_.ZL("IS_SHELL_LOAD",!1)}};
k2z=function(){navigator.serviceWorker.getRegistrations().then(function(W){W.forEach(uqq)})};
uqq=function(W){W&&_.vvx(H_v,W.scope)};
_.vvx=function(W,l){l={scope:l||_.gU("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.m7(W),l)};
CG=function(W,l,V,f){if(l&&l.serializedYpcCujLoggingParams){if(V){var r={};r.transactionErrorType=V;f&&(r.errorMessage=f);l.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:r}}}V={};V.ypcCujContext=l;W=_.X2("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",W,V);_.TL(_.wE(),W,"FLOW_TYPE_YPC_ACQUISITION")}};
_.KO8=function(W,l,V,f){var r={};r.serializedTransactionFlowLoggingParams=l;V&&(r.errorType=V);f&&(r.errorMessage=f);_.XC(W,r);_.Ts()};
_.FOq=function(W){W&&_.KO8("transactionFlowStarted",W)};
_.G24=function(W){W&&_.KO8("transactionFlowCancelled",W)};
_.cV=function(W,l,V){l&&_.KO8("transactionFlowFailed",l,W,V)};
b_Y=function(W){var l=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");l&&(l.inert=W)};
_.BV=function(){this.megabloxUrl_=null};
_.d_=function(W){try{var l=pxg==null?void 0:pxg.composedPath(W)}catch(V){l=W.composedPath?W.composedPath():[]}return l&&l.length>0?l:W.composedPath?W.composedPath():[]};
_.Ja=function(W){return _.d_(W)[0]};
_.Dr=function(W){if(!(W instanceof Element))return null;W=W.classList?Array.from(W.classList):void 0;if(!W)return null;var l=W.indexOf("style-scope");return l>-1&&l+1<W.length?W[l+1]:null};
UD=function(W){if(!(W instanceof HTMLElement))return null;var l=W&&(W.$$||W.polymerController)?W.tagName.toLowerCase():null;return l?l:_.Dr(W)};
ovq=function(W,l){return W.replace(/[^a-z]*[^\s]+/g,function(V){return V+".style-scope."+l})};
juj=function(W,l){return l?W.split(",").map(function(V){return ovq(V.trim(),l)}).join(", "):W};
_.um=function(W){var l,V,f,r;return(r=(f=(V=(l=W.root)!=null?l:W.shadowRoot)!=null?V:W.__shady_native_shadowRoot)!=null?f:W.__shady_shadowRoot)!=null?r:W};
k7=function(W){return W instanceof ShadowRoot?ShadowRoot:W instanceof DocumentFragment?DocumentFragment:W instanceof Document?Document:HTMLElement};
IOz=function(W){var l,V,f;return(f=(V=(l=W.parentElement)!=null?l:W.__shady_native_parentElement)!=null?V:W.__shady_parentElement)!=null?f:null};
i_6=function(W){var l,V,f;return(f=(V=(l=W.parentNode)!=null?l:W.__shady_native_parentNode)!=null?V:W.__shady_parentNode)!=null?f:null};
myJ=function(W){var l,V,f;return(f=(V=(l=W.__shady_parentNode)!=null?l:W.__shady_native_parentNode)!=null?V:W.parentNode)!=null?f:null};
Xxq=function(W){var l,V;return(V=(l=i_6(W))!=null?l:W.host)!=null?V:null};
Tng=function(W){var l,V,f;return(f=(V=(l=W.nextSibling)!=null?l:W.__shady_native_nextSibling)!=null?V:W.__shady_nextSibling)!=null?f:null};
wx8=function(W){var l,V,f;return(f=(V=(l=W.previousSibling)!=null?l:W.__shady_native_previousSibling)!=null?V:W.__shady_previousSibling)!=null?f:null};
A8v=function(W){var l,V,f;return(f=(V=(l=W.nextElementSibling)!=null?l:W.__shady_native_nextElementSibling)!=null?V:W.__shady_nextElementSibling)!=null?f:null};
QuU=function(W){var l,V,f;return(f=(V=(l=W.previousElementSibling)!=null?l:W.__shady_native_previousElementSibling)!=null?V:W.__shady_previousElementSibling)!=null?f:null};
MoJ=function(W){var l,V,f;return new Set([].concat(_.QK((l=W.children)!=null?l:[]),_.QK((V=W.__shady_native_children)!=null?V:[]),_.QK((f=W.__shady_children)!=null?f:[])))};
Z_Y=function(W){var l,V,f;return new Set([].concat(_.QK((l=W.childNodes)!=null?l:[]),_.QK((V=W.__shady_native_childNodes)!=null?V:[]),_.QK((f=W.__shady_childNodes)!=null?f:[])))};
O_S=function(W){if(!W)return null;var l=_.Dr(W);if(!l){var V;return(V=Node.prototype.getRootNode)==null?void 0:V.call(W)}l=l.toUpperCase();for(W=IOz(W);W&&W.tagName!==l;)W=IOz(W);return W?_.um(W):null};
aO4=function(W){for(;W&&!(W instanceof HTMLElement);)W=Xxq(W);return W};
zTU=function(W){var l=aO4(W);return W===l?_.Dr(W):l?UD(l):null};
Nnx=function(W){return(W=aO4(W))?UD(W):null};
Ypz=function(W){if(W instanceof Comment)return!1;if(W instanceof Text){var l,V;if(((V=(l=W.textContent)==null?void 0:l.trim())!=null?V:"")==="")return!1}return!0};
vV=function(W,l,V){var f=l(W);for(V=V===void 0?Nnx(W):V;f&&(zTU(f)!==V||!Ypz(f));)W=f,f=l(W);return f};
xyY=function(W,l,V){if(!l)return null;W=Nnx(W);return zTU(l)===W&&Ypz(l)?l:vV(l,V,W)};
eTn=function(W){return vV(W,myJ,_.Dr(W))};
qpY=function(W){return vV(W,A8v)};
hTj=function(W){return vV(W,Tng)};
SpU=function(W){return vV(W,QuU)};
EvY=function(W){return vV(W,wx8)};
$yj=function(W){return xyY(W,W.firstChild||W.__shady_native_firstChild||W.__shady_firstChild||null,Tng)};
Wnz=function(W){var l,V,f;var r=(f=(V=(l=W.firstElementChild)!=null?l:W.__shady_native_firstElementChild)!=null?V:W.__shady_firstElementChild)!=null?f:null;return xyY(W,r,A8v)};
loU=function(W){var l,V,f;var r=(f=(V=(l=W.lastChild)!=null?l:W.__shady_native_lastChild)!=null?V:W.__shady_lastChild)!=null?f:null;return xyY(W,r,wx8)};
V9x=function(W){var l,V,f;var r=(f=(V=(l=W.lastElementChild)!=null?l:W.__shady_native_lastElementChild)!=null?V:W.__shady_lastElementChild)!=null?f:null;return xyY(W,r,QuU)};
fox=function(W){var l=Nnx(W);return Array.from(Z_Y(W)).filter(function(V){return zTU(V)===l})};
rTU=function(W){var l=UD(W);return Array.from(MoJ(W)).filter(function(V){return _.Dr(V)===l})};
_.HV=function(W,l,V){if(W instanceof HTMLElement&&_.Dr(W)===V){var f=Array.from(W.classList).indexOf("style-scope");if(f===-1)W.classList.add("style-scope"),W.classList.add(l);else if(!(f+1>=W.classList.length)){f=W.classList[f+1];var r,R;W==null||(r=W.classList)==null||(R=r.replace)==null||R.call(r,f,l)}}if(W instanceof HTMLElement||W instanceof DocumentFragment)for(r=_.L(MoJ(W)),R=r.next();!R.done;R=r.next())_.HV(R.value,l,V);return W};
KG=function(W,l){if(W instanceof HTMLElement&&_.Dr(W)===l){var V=Array.from(W.classList).indexOf("style-scope");V===-1||V+1>=W.classList.length||W.classList.remove("style-scope",W.classList[V+1])}if(W instanceof HTMLElement||W instanceof DocumentFragment){V=_.L(W.children);for(var f=V.next();!f.done;f=V.next())KG(f.value,l)}return W};
_.Rgv=function(W,l){return k7(W).prototype.appendChild.call(W,l)};
t9n=function(W,l){if(W===l)return!0;W=Z_Y(W);return Array.from(W).some(function(V){return t9n(V,l)})};
_.GS=function(W,l){if(W instanceof FI)return W;(l==null?0:l.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(W,"ownerDocument")&&Object.defineProperty(W,"ownerDocument",{get:function(){return window.document}});
return new FI(W)};
Lng=function(){var W=FI.prototype,l=[].concat(_.QK(s4q?[]:["getRootNode"]),["setAttribute","removeAttribute"]);l=_.L(l);for(var V=l.next(),f={};!V.done;f={method$jscomp$51:void 0},V=l.next())f.method$jscomp$51=V.value,W[f.method$jscomp$51]=function(r){return function(){return this.host[r.method$jscomp$51].apply(this.host,arguments)}}(f)};
gF4=function(){var W=FI.prototype,l=[].concat(_.QK(s4q?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.QK(yTz?[]:["querySelector","querySelectorAll"]));l=_.L(l);for(var V=l.next(),f={};!V.done;f={method$jscomp$52:void 0},V=l.next())f.method$jscomp$52=V.value,W[f.method$jscomp$52]=function(r){return function(){return this.root[r.method$jscomp$52].apply(this.root,arguments)}}(f)};
Cng=function(){var W=FI.prototype,l=[].concat(_.QK(Pn4?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.QK(nFj?[]:["parentNode"]));l=_.L(l);for(var V=l.next(),f={};!V.done;f={prop$jscomp$63:void 0},V=l.next())f.prop$jscomp$63=V.value,Object.defineProperty(W,f.prop$jscomp$63,{get:function(r){return function(){return this.host[r.prop$jscomp$63]}}(f),
configurable:!0})};
dQ8=function(){var W=FI.prototype,l=["activeElement"].concat(_.QK(Pn4?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.QK(cTz?[]:["children"]),_.QK(BDU?[]:["lastChild"]));l=_.L(l);for(var V=l.next(),f={};!V.done;f={prop$jscomp$64:void 0},V=l.next())f.prop$jscomp$64=V.value,Object.defineProperty(W,f.prop$jscomp$64,{get:function(r){return function(){return this.root[r.prop$jscomp$64]}}(f),
configurable:!0})};
JTF=function(){for(var W=FI.prototype,l=_.L(["innerHTML","textContent"]),V=l.next(),f={};!V.done;f={prop$jscomp$65:void 0},V=l.next())f.prop$jscomp$65=V.value,Object.defineProperty(W,f.prop$jscomp$65,{get:function(r){return function(){return this.root[r.prop$jscomp$65]}}(f),
set:function(r){return function(R){this.root[r.prop$jscomp$65]=R}}(f),
configurable:!0})};
DQJ=function(W){var l=FI.prototype;W=_.L(Object.entries(W));for(var V=W.next(),f={};!V.done;f={fn$jscomp$401:void 0},V=W.next()){var r=_.L(V.value);V=r.next().value;r=r.next().value;f.fn$jscomp$401=r;l[V]=function(R){return function(){return R.fn$jscomp$401.apply(null,[this.host.node||this.host].concat(_.QK(arguments)))}}(f)}};
uG6=function(){for(var W=FI.prototype,l=_.L(Object.entries(UQg)),V=l.next(),f={};!V.done;f={fn$jscomp$402:void 0},V=l.next()){var r=_.L(V.value);V=r.next().value;r=r.next().value;f.fn$jscomp$402=r;Object.defineProperty(W,V,{get:function(R){return function(){return R.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.QK(arguments)))}}(f),
configurable:!0})}};
_.bm=function(W){return W instanceof kOg||W instanceof Document?W:new kOg(W)};
vFJ=function(){for(var W=kOg.prototype,l=_.L("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),V=l.next(),f={};!V.done;f={method$jscomp$53:void 0},V=l.next())f.method$jscomp$53=V.value,W[f.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(_.QK(arguments)))}}(f)};
HF8=function(){for(var W=kOg.prototype,l=_.L("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),V=l.next(),f={};!V.done;f={prop$jscomp$66:void 0},V=l.next())f.prop$jscomp$66=V.value,Object.defineProperty(W,f.prop$jscomp$66,{get:function(r){return function(){var R;return(R=this.node["__shady_native_"+r.prop$jscomp$66])!=null?R:this.node[r.prop$jscomp$66]}}(f),
configurable:!0})};
_.pG=function(W,l,V){V===void 0&&(V=!W.classList.contains(l));V?W.classList.add(l):W.classList.remove(l)};
_.o1=function(W,l,V){V===void 0&&(V=!W.hasAttribute(l));if(l==="class")throw Error("jg");V?_.bm(W).setAttribute(l,""):_.bm(W).removeAttribute(l)};
Knq=function(W){return(W.localName!=="slot"?[]:(0,_.j3)(W).assignedNodes({flatten:!0})).filter(function(l){return l.nodeType===Node.ELEMENT_NODE})};
_.Fn8=function(W){return(W=_.GS(W).querySelector("slot"))&&W.localName==="slot"?Knq(W):[]};
_.I1=function(W,l){window.ShadyCSS&&window.ShadyCSS.styleSubtree(W,l)};
im=function(W,l){var V=l.bind(W);return function(f){V(f,f.detail)}};
_.mz=function(W,l){var V=GO6.get(W);V||(V=new WeakMap,GO6.set(W,V));if(V.has(l))return V.get(l);if(_.U("web_fi_listen_disable_bound_fn_helper")){var f=l.bind(W);W=function(r){f(r,r==null?void 0:r.detail)}}else W=im(W,l);
V.set(l,W);return W};
oF8=function(W,l){bFU(W);W.created[pHS].push(l)};
bFU=function(W){if(!W.created||!W.created[pHS]){var l=W.created,V=l?[l]:[];W.created=function(){for(var f=_.L(V),r=f.next();!r.done;r=f.next())r.value.apply(this)};
W.created[pHS]=V}};
j48=function(W){return function(){var l=_.xk.apply(0,arguments);return function(V,f,r){W.apply(null,_.QK(l))(V,f,r)}}};
Io6=function(){return function(){var W=_.xk.apply(0,arguments);return function(l,V,f){eEg.apply(null,_.QK(W))(l,V,f)}}};
_.F=function(W){return Io6()(W)};
_.G=function(){return j48(ERj).apply(null,_.QK(_.xk.apply(0,arguments)))};
_.XI=function(W){return _.U("pbcm_fi_listen_decorators")?iFv(W):j48(hEj)(W)};
iFv=function(W){return function(l,V){oF8(l,function(){var f=this[V],r=_.U("web_fi_listen_disable_bound_fn_helper")?function(R){f(R,R.detail)}.bind(this):im(this,f);
mQj.has(W)?w6(this.hostElement,W,r):this.hostElement.addEventListener(W,r)})}};
_.TS=function(){return j48(SdS).apply(null,_.QK(_.xk.apply(0,arguments)))};
_.b=function(W){W=W===void 0?{}:W;return j48(qdY)(W)};
_.w_=function(W){if(W.hostElement&&W!==W.hostElement){var l=_.YG(W.hostElement);l=W.renderIdom?l:l.shadowRoot}l||(W=W.root,l=W instanceof Node?_.YG(W):null);return l};
_.Aa=function(W){return XHz?TD4(W):function(l,V){Object.defineProperty(l,V,{get:function(){var f;return(f=_.w_(this))==null?void 0:f.querySelector(W)},
enumerable:!0,configurable:!0})}};
TD4=function(W){return function(l,V){Object.defineProperty(l,V,{get:function(){var f,r=(f=_.GS(this.hostElement))==null?void 0:f.querySelector(W);if(r)return r;var R;return(R=_.w_(this))==null?void 0:R.querySelector(W)},
enumerable:!0,configurable:!0})}};
_.Qb=function(W){return XHz?wHY(W):function(l,V){Object.defineProperty(l,V,{get:function(){var f;return(f=_.w_(this))==null?void 0:f.querySelectorAll(W)},
enumerable:!0,configurable:!0})}};
wHY=function(W){return function(l,V){Object.defineProperty(l,V,{get:function(){var f,r=(f=_.GS(this.hostElement))==null?void 0:f.querySelectorAll(W);if(r==null?0:r.length)return r;var R;return(R=_.w_(this))==null?void 0:R.querySelectorAll(W)},
enumerable:!0,configurable:!0})}};
AT8=function(W){return function(l){if(![_.RA,_.I].includes(Object.getPrototypeOf(l.prototype).constructor))throw Error("kg");MgJ(Object.assign({},typeof W!=="string"?W:{is:W,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(l)}};
_.a1=function(){var W=W===void 0?{}:W;return function(l){if(![t6,_.OD].includes(Object.getPrototypeOf(l.prototype).constructor))throw Error("lg");ZVx(Object.assign({},W,{disableInheritanceCheck:!0}))(l)}};
M96=function(W,l){Q4S[W]!=null||(Q4S[W]=new Set);Q4S[W].add(l)};
_.zS=function(){var W=_.TS.apply(null,_.QK(_.xk.apply(0,arguments)));return function(l,V){M96(l.is,V);W(l,V)}};
x7=function(W,l,V){if(N6(W)&&!ZFq.has(l)){l=l.replace(/^JSC\$[\d]+_/,"");l=l.replace(/\.\d+(\.|$)/g,function(R,y){return".#"+y});
Y7[W]!=null||(Y7[W]={});var f,r;(f=Y7[W])[r=l]!=null||(f[r]=new Set);Y7[W][l].has(V)||(Y7[W][l].add(V),_.XC("polymerPropertyAccessEvent",{componentName:W,propertyName:l,accessType:V}))}};
OFY=function(){return _.U("polymer_property_access_logging_debug")||_.U("polymer_enable_property_access_logging")};
N6=function(W){if(_.U("polymer_property_access_logging_debug"))return!0;if(!_.U("polymer_enable_property_access_logging"))return!1;aov||(aov=Date.now());return(LN(W)+aov)%100<_.yS("polymer_property_access_logging_percent")};
zgz=function(W,l){return N6(l)&&W.hostElement.loggingStatus?new Proxy(W,{get:function(V,f,r){if(V.hostElement.loggingStatus.bypassProxyController)return V[f];V.hostElement.loggingStatus.isExternalGet=!0;var R=V[f];V.hostElement.loggingStatus.isExternalGet=!1;if(R instanceof Function)return function(){var y=_.xk.apply(0,arguments);try{return V.hostElement.loggingStatus.currentExternalCall=f,x7(l,f,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),R.apply(this===r?V:this,y)}finally{V.hostElement.loggingStatus.currentExternalCall=
void 0}};
x7(l,f,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return R},
set:function(V,f,r){if(V.hostElement.loggingStatus.bypassProxyController)return V[f]=r,!0;V.hostElement.loggingStatus.isRendererStamper?x7(l,f,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):V.hostElement.loggingStatus.isDeclarativeExternal||x7(l,f,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{V.hostElement.loggingStatus.currentExternalSet=f,V[f]=r}finally{V.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):W};
NDj=function(W,l){W&&W.loggingStatus&&!W.loggingStatus.isDeclarativeExternal&&!W.loggingStatus.isExternalGet&&W.loggingStatus.currentExternalSet!==l&&x7(W.tagName.toLowerCase(),l,"PROPERTY_ACCESS_GET_INTERNAL")};
e3=function(W,l,V){W&&(V||W.loggingStatus&&!W.loggingStatus.isInitializing&&!W.loggingStatus.isDefiningPropertyAccessor&&W.loggingStatus.currentExternalSet!==l)&&x7(W.tagName.toLowerCase(),l,"PROPERTY_ACCESS_SET_INTERNAL")};
Y3Y=function(){return{_definePropertyAccessor:function(W,l){var V=this,f=V.hostElement.loggingStatus;f&&(f.isDefiningPropertyAccessor=!0);var r=V[W];r!==void 0&&(V.__data?V._setPendingProperty(W,r):(V.__dataProto!=null||(V.__dataProto={}),V.__dataProto[W]=r));f&&(f.isDefiningPropertyAccessor=!1);Object.defineProperty(this,W,{get:function(){NDj(V.hostElement,W);return this.__data[W]},
set:function(R){l||this._setPendingProperty(W,R,!0)&&this._invalidateProperties()}})},
created:function(){var W=this._setPendingProperty.bind(this);this._setPendingProperty=function(l,V,f){e3(this.hostElement,l);return W.apply(this,[l,V,f])}}}};
xQz=function(W){OFY()&&_.F(q6.prototype)(W.prototype,"__templateBindingLoggingBehavior")};
eg4=function(W,l){if(l.resolvedFactories.length!==W.resolvedFactories.length)return!0;l=_.L(l.resolvedFactories.entries());for(var V=l.next();!V.done;V=l.next()){var f=_.L(V.value);V=f.next().value;f=f.next().value;if(f.providerClass){if(f.providerClass!==W.resolvedFactories[V].providerClass)return!0}else if(f.providerValue){if(f.providerValue!==W.resolvedFactories[V].providerValue)return!0}else if(f.factory!==W.resolvedFactories[V].factory)return!0}return!1};
q38=function(W,l){W=_.L(W);for(var V=W.next();!V.done;V=W.next())if(V=V.value,V.constructor===Array)q38(V,l);else{var f=l;f.has(V)||(V.inject&&f.add(V),V.behaviors&&q38(V.behaviors,f))}};
ha=function(W,l){var V=W[l];W[l]=function(){var f=_.xk.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(V)return V.apply(this,f)}};
$QF=function(){_.S3.Class=function(V,f){V=hgj(V,f);ha(V.prototype,"created");return V};
ha(ED.prototype,"_initializeProperties");ha(_.$7.prototype,"_initializeProperties");if(S34)ha(EF6,"created");else{var W=function(){ha(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))W();else{var l=customElements.define;customElements.define=function(V,f,r){l.call(customElements,V,f,r);V==="tp-yt-iron-list"&&(W(),customElements.define=l)}}}};
l8q=function(W,l){W.prototype.behaviors=W.prototype.behaviors||[];W.prototype.behaviors.unshift(WWS.InjectBehavior);W.prototype.provide=l};
_.Vq=function(W){return function(l){if(!W.disableElementRegistration){W.noInjection||l8q(l,W.providers);var V=l.prototype;V.__templateHelpers||eEg(WE.prototype)(V,"__templateHelpers");V=W.is;VZx||(VZx=Date.now());(LN(V)+VZx)%100<_.yS("polymer_log_prop_change_observer_percent")&&eEg(lD.prototype)(l.prototype,"__propertyObserverObserver");l.prototype.behaviors=l.prototype.behaviors||[];l.prototype.behaviors.unshift(_.f8Y.YtHostElementBehavior);xQz(l);AT8({is:W.is,notifyObserversOnUndefined:W.notifyObserversOnUndefined!==
!1,fastInit:W.fastInit,template:W.template,disableEnforceFastDefaultValuesCheck:!0})(l)}}};
_.A=function(W){return _.Vq({is:W.is,template:W.template,disableElementRegistration:W.disableElementRegistration,cssBuildOptOut:W.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
tZJ=function(W,l){if(rRx){W=new W;for(var V=_.L(Object.getOwnPropertyNames(W)),f=V.next();!f.done;f=V.next())f=f.value,l[f]=W[f];for(V=l;V&&V!==Object.prototype;V=Object.getPrototypeOf(V)){f=_.L(Object.getOwnPropertyNames(V));for(var r=f.next();!r.done;r=f.next())r=r.value,W.hasOwnProperty(r)||Object.defineProperty(W,r,RbF(l,r))}}else W.apply(l)};
RbF=function(W,l){return{get:function(){var V=W[l];return V instanceof Function?V.bind(W):V},
set:function(V){W[l]=V}}};
LWz=function(W,l){for(var V=W._noAccessors,f=_.L(Object.getOwnPropertyNames(W)),r=f.next();!r.done;r=f.next())if(r=r.value,!sW6.has(r))if(V)l[r]=W[r];else{var R=Object.getOwnPropertyDescriptor(W,r);R&&(R.configurable=!0,Object.defineProperty(l,r,R))}};
yR4=function(W,l,V){return function(f){if(V){var r=V();f.model=r}if(W[l])W[l](f,f.detail)}};
fk=function(W){var l=[];if(typeof W==="string")W.length>0&&l.push.apply(l,_.QK(W.split(".")));else{W=_.L(W);for(var V=W.next();!V.done;V=W.next())V=V.value,typeof V==="string"?l.push.apply(l,_.QK(V.split("."))):l.push(V)}return l};
gaz=function(W,l){if(l[l.length-1]!=="*"&&l[l.length-1]!=="splices"){for(var V=0;V<l.length;V++){if(!W)return;W=W[l[V]]}return W}};
Ptj=function(W,l){if(W.length>l.length)return!1;for(var V=0;V<W.length;V++)if(W[V]!==l[V])return!1;return!0};
CtU=function(W,l,V){if(l.type==="compute"){var f=l.getter.bind(V);var r=l.args}else f=function(){return V[l.method.methodName].apply(V,_.QK(_.xk.apply(0,arguments)))},r=l.method.args;
naU(W,l.propertyKey,f,r,l.value)};
BWU=function(W,l){if(l.readOnly){var V=Object.getOwnPropertyDescriptor(W.model,l.propertyKey);Object.defineProperty(W.model,l.propertyKey,{get:V.get,set:function(){}});
W.model[cR6(l.propertyKey)]=V.set}};
dvg=function(W,l,V){if(V){var f=l.propertyKey,r=l.selector;l=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.QK(l.selectorArgs.map(function(R){return{type:"path",path:R}})));
naU(W,f,function(R){var y=_.xk.apply(1,arguments);return r.apply(null,[V.getState()].concat(_.QK(y)))},l)}};
Dvx=function(W,l,V){var f=_.A6(l.propertyKey)+"-changed";JR4(W,function(r){var R={value:r.value,queueProperty:!0};r.path.split(".").length>1&&(R.path=r.path);V.dispatchEvent(new CustomEvent(f,{detail:R}))},[{type:"wildcard",
path:l.propertyKey}])};
Uvz=function(W,l,V){JR4(W,function(){V[l.method.methodName].apply(V,_.QK(_.xk.apply(0,arguments)))},l.method.args)};
cR6=function(W){return"_set"+(W.charAt(0).toUpperCase()+W.slice(1))};
u1S=function(){var W,l=T_(function(V){W=V},!1);
return[W,l]};
FW8=function(W){W=W.trim().replace(kMJ,",").replace(vaz,"$1");var l=W[0];l==="-"&&(l=W[1]);if(l>="0"&&l<="9")return{type:"literal",value:Number(W)};if(l==="'"||l==='"')return{type:"literal",value:W.slice(1,-1)};if(l=W.match(HxS)){l=l[1];var V=KWv[l];if(V)return{type:V,path:W.slice(0,-(l.length+1))}}return{type:"path",path:W}};
oaq=function(W){var l=W.match(GMq);if(l)return W={methodName:l[1],args:bxj},l[2].trim()&&(l=l[2].replace(p7z,"&comma;").split(","),W.args=l.map(FW8)),W};
jWj=function(W,l,V,f){f=f===void 0?!1:f;l=_.A6(l);var r=Kj;r&&(V=r(V,l,"attribute",W));rm(W,V,l,f)};
rm=function(W,l,V,f){l=I8U(l,f===void 0?!1:f);l===void 0?W.removeAttribute(V):W.setAttribute(V,l)};
I8U=function(W,l){switch(typeof W){case "object":case "function":if(W instanceof Date)return W.toString();if(W){if((l===void 0?0:l)&&!_.U("polymer_reflect_objects_as_boolean_killswitch"))return W?"":void 0;l=window.trustedTypes?window.trustedTypes.isHTML(W)||window.trustedTypes.isScript(W)||window.trustedTypes.isScriptURL(W):void 0;if(l)return W;try{return JSON.stringify(W)}catch(V){_.Qe(Error("Hg`"+W))}}break;case "boolean":return W?"":void 0;default:return W!==null&&W!==void 0?W.toString():void 0}};
ixS=function(W){if(W===void 0)throw Error("Ig");return W};
ARJ=function(W,l,V,f){var r=mvU(f);if(r.length){f=V;var R="property";X7j.test(V)?R="attribute":V[V.length-1]==="$"&&(V=V.slice(0,-1),R="attribute");var y=TWz(r);y&&R==="attribute"&&(V==="class"&&W.hasAttribute("class")&&(y+=" "+W.getAttribute(V)),rm(W,y,V));R==="attribute"&&f==="disable-upgrade$"&&W.setAttribute("disable-upgrade","");W.localName==="input"&&f==="value"&&W.setAttribute("value","");W.removeAttribute(f);R==="property"&&(V=_.Q9(V));l=ixS(l);w7S(l,R,V,r);return!0}return V.slice(0,3)===
"on-"?(W.removeAttribute(V),(R=l).events!=null||(R.events=[]),l.events.push({name:V.slice(3),value:f}),!0):V==="id"?(l.id=f,!0):!1};
mvU=function(W){for(var l=[],V=0,f;(f=QWJ.exec(W))!==null;){f.index>V&&l.push({type:"literal",value:W.slice(V,f.index)});var r=f[1][0];V=!!f[2];f=f[3].trim();if(r==="{")throw Error("Jg");(r=oaq(f))?l.push({type:"method",negate:V,signature:r}):l.push({type:"path",negate:V,path:f});V=QWJ.lastIndex}V&&V<W.length&&(W=W.substring(V))&&l.push({type:"literal",value:W});return l};
TWz=function(W){for(var l="",V=0;V<W.length;V++){var f=W[V];f.type==="literal"&&(l+=f.value)}return l};
w7S=function(W,l,V,f){W.bindings!=null||(W.bindings=[]);W.bindings.push({kind:l,target:V,parts:f})};
zbS=function(W,l,V){var f=!1;if(W.localName==="template"){f=V;var r=l.stripWhitespace;r=MZ4(W,r===void 0?!1:r);var R=W.content.ownerDocument.createDocumentFragment();r.content=R;R.appendChild(W.content);f&&(f.templateInfo=r);f=!0}else W.localName==="slot"&&(l.hasInsertionPoint=!0);if(W.firstChild&&(r=V,W.localName!=="script"&&W.localName!=="style")){R=0;for(var y=W.firstChild;y;){var P=y;if(P.localName==="template"){var n=P.getAttribute("is");if((y=n==="dom-if")||n==="dom-repeat"){P.removeAttribute("is");
n=P.ownerDocument.createElement("ps-"+n);P.parentNode.replaceChild(n,P);n.appendChild(P);var B=Array.from(P.attributes);B=_.L(B);for(var d=B.next();!d.done;d=B.next())d=d.value,y?ZxU.has(d.name)&&rm(n,d.value,d.name):Ox6.has(d.name)?rm(n,d.value,d.name):a8z.has(d.name),P.removeAttribute(d.name);y=n}else y=P}if(y.nodeType===Node.TEXT_NODE){P=void 0;n=W;for(B=y;((P=B.nextSibling)==null?void 0:P.nodeType)===Node.TEXT_NODE;)d=void 0,(d=B).textContent!=null||(d.textContent=""),B.nextSibling.textContent&&
(B.textContent+=B.nextSibling.textContent),n.removeChild(B.nextSibling);if(l.stripWhitespace&&y.textContent&&!y.textContent.trim()){W.removeChild(y);y=y.nextSibling;continue}}zbS(y,l,{parentIndex:R,parentInfo:r});y.parentNode&&R++;y=y.nextSibling}}var J;if((J=W.hasAttributes)==null?0:J.call(W)){J=V=ixS(V);r=!1;R=Array.from(W.attributes);R=_.L(R);for(P=R.next();!P.done;P=R.next())P=P.value,r=ARJ(W,J,P.name,P.value)||r;f=r||f}W.nodeType===Node.TEXT_NODE&&(J=mvU(W.textContent),J.length&&(W.textContent=
TWz(J)||" ",V=ixS(V),w7S(V,"text","textContent",J),f=!0));V&&f&&(V.infoIndex=l.nodeInfoList.push(V)-1)};
MZ4=function(W,l){l={nodeInfoList:[],stripWhitespace:(l===void 0?!1:l)||W.hasAttribute("strip-whitespace")};zbS(W.content,l);return l};
NWn=function(W){Object.assign(W,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
xvv=function(W,l,V){l.signalCache!=null||(l.signalCache={});var f=l.signalCache[V];if(!f){var r=V.split(".");f=!Y8z(W,r[0]);if(r.length>1&&f){var R=W.getPathMutationSignal(r);f=function(){var y=Q_(W.owner,function(){return W.getWithPath([r[0]])}),P,n=(P=R())==null?void 0:P.value;
return{rootWasDefined:y!==void 0,value:n}}}else f=function(){var y=W.getWithPath(r);
return{rootWasDefined:y!==void 0,value:y}};
l.signalCache[V]=f}return f()};
q8Y=function(W,l,V,f,r){l=l.parts.map(function(y,P){if(y.type==="literal"){V.partWasDefined!=null||(V.partWasDefined=[]);var n;(n=V.partWasDefined)[P]||(n[P]=y.value!==void 0);return y.value}var B;if(y.type==="method"){var d,J=(d=(B=V.partWasDefined)==null?void 0:B[P])!=null?d:!1;J||(J=y.signature.args.every(function(H){return H.type==="literal"}));
var D=!1,u=!0;B=y.signature.args.map(function(H){if(H.type==="literal")return H.value;if(H.type!=="path")throw Error("Kg`"+H.type);var p=xvv(W,V,H.path);H=p.value;p=p.rootWasDefined;D||(D=p);u&&(u=p);return H});
J||(J=r===1?u:D);V.partWasDefined!=null||(V.partWasDefined={});V.partWasDefined[P]=J;if(!J)return;B=(P=xvv(W,V,y.signature.methodName).value)&&typeof P==="function"?P.apply(f,B):void 0}else d=xvv(W,V,y.path),B=d.value,V.partWasDefined!=null||(V.partWasDefined={}),(J=V.partWasDefined)[P]||(J[P]=B!==void 0||d.rootWasDefined);y.negate&&(B=!B);return B});
if(l.length===1){var R;return((R=V.partWasDefined)==null?0:R[0])?l[0]:ebS}return l.join("")};
hbU=function(W){return typeof W==="object"&&!!W&&"notifyPath"in W&&"canNotifyPath"in W};
S8g=function(W){return typeof W==="object"&&!!W&&"notifyPath"in W};
Eaq=function(W){return"polymerController"in W};
$v4=function(W,l){l=""+fk(l)[0];if(hbU(W))return W.canNotifyPath(l);if(Eaq(W)&&hbU(W.polymerController))return W.polymerController.canNotifyPath(l);if(S8g(W)){var V;return!((V=W.properties)==null||!V[l])}if(Eaq(W)&&S8g(W.polymerController)){var f;return!((f=W.polymerController.properties)==null||!f[l])}return!1};
WbJ=function(W,l,V){hbU(W)||S8g(W)?W.notifyPath(l,V):Eaq(W)&&(hbU(W.polymerController)||S8g(W.polymerController))&&W.polymerController.notifyPath(l,V)};
Vc4=function(W,l,V){if(V!==ebS){W.kind==="attribute"||W.target!=="textContent"&&(W.target!=="value"||l.localName!=="input"&&l.localName!=="textarea")||(V=V===void 0?"":V);var f,r=(f=l9g.Polymer)==null?void 0:f.sanitizeDOMValue;r&&(V=r(V,W.target,W.kind,l));if(W.kind==="attribute"){W=W.target;if(W==="class"||W==="name"||W==="slot")l=(0,_.j3)(l);rm(l,V,W)}else if(W=W.target,V!==l[W]||typeof V==="object")l.loggingStatus&&(l.loggingStatus.isDeclarativeExternal=!0,x7(l.localName,W,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
l[W]=V,l.loggingStatus&&(l.loggingStatus.isDeclarativeExternal=!1)}};
f9x=function(W,l,V,f){var r=l.parts[0];if(l.parts.length!==1||r.type!=="path"||!$v4(V,l.target))return!1;var R=_.L(r.path.split(".")),y=R.next().value,P=V_(R);if(Y8z(W,y))return!1;f.signalCache!=null||(f.signalCache={});R=f.signalCache[r.path];var n;R=(n=R)==null?void 0:n().value;if((R==null?void 0:R.path)!==void 0){f=fk(R.path);var B=fk(r.path);f=[l.target].concat(_.QK(f.slice(B.length-1)));WbJ(V,f,r.negate?!R.value:R.value);return!0}var d=RJ(W,y);var J=d.getChangeRecordSignal(P),D=!1;R=function(){if(!D){var H=
Q_(W.owner,function(){return d.getWithPath([])});
D||(D=H!==void 0)}return{value:J(),rootWasDefined:D}};
f.signalCache[r.path]=R;f.partWasDefined!=null||(f.partWasDefined={});R=R();(B=f.partWasDefined)[0]||(B[0]=R.rootWasDefined);var u=Q_(W.owner,function(){return d.getWithPath(P)});
f.partWasDefined[0]&&Q_(W.owner,function(){return void Vc4(l,V,r.negate?!u:u)});
return!0};
rhJ=function(W,l,V,f,r,R){if(!f9x(W,l,V,f)){var y=q8Y(W,l,f,r,R);Q_(W.owner,function(){return void Vc4(l,V,y)})}};
RxU=function(W,l,V,f,r,R){V=_.L(V);for(var y=V.next(),P={};!y.done;P={infoIndex:void 0},y=V.next()){y=y.value;var n=y.bindings;P.infoIndex=y.infoIndex;y=y.parentInfo;if(n){n=_.L(n);for(var B=n.next(),d={};!B.done;d={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},B=n.next()){d.b$jscomp$253=B.value;if(P.infoIndex===void 0)throw Error("Lg");d.bindingCtx$jscomp$4={};W.effect(function(J,D){return function(){r&&!r()||rhJ(W,J.b$jscomp$253,l[D.infoIndex],J.bindingCtx$jscomp$4,f,R)}}(d,P))}}y&&RxU(W,l,[y],
f,r,R)}};
tcx=function(W,l){W=(l.parentInfo?tcx(W,l.parentInfo):W).firstChild;for(var V=0;W;W=W.nextSibling)if(l.parentIndex===V++)return W;throw Error("Mg");};
Lbz=function(W,l,V,f){W=document.importNode(W.content,!0);W.__noInsertionPoint=!(f==null?0:f.hasInsertionPoint);for(var r=Array(l.length),R={},y=0;y<l.length;y++){var P=l[y],n=tcx(W,P);r[y]=n;P.id&&(R[P.id]=n);if(P.templateInfo){var B=n.parentElement;B&&(B.templateInfo=P.templateInfo,B.parentSignalProxy=V,B.eventListenerHost=f.eventListenerHost,B.stampingEnabled=f.enabledSignal)}B=void 0;if((B=P.events)==null?0:B.length)for(B=0;B<P.events.length;B++){var d=P.events[B];sbS(f.eventListenerHost,n,d.name,
d.value,f.getModel)}}RxU(V,r,l,f.thisCtx,f.enabledSignal,f.methodInvocationRequirement);return{root:W,nodes:r,nodesById:R}};
gUS=function(W,l){W=W();var V;(V=yhx.ShadyCSS)==null||V.prepareTemplate(W,l);l=MZ4(W);return{template:W,nodeInfoList:l.nodeInfoList,hasInsertionPoint:l.hasInsertionPoint}};
CUz=function(){PUx=!1;for(var W=tG.length,l=0;l<W;l++){var V=tG[l];if(V)try{V()}catch(f){Promise.resolve().then(function(){throw f;})}}tG.splice(0,W);
nUz+=W};
JhS=function(W){PUx||(PUx=!0,chx.textContent=(Bsq++).toString());tG.push(W);return dxg++};
_.yq=function(W,l,V){sU++;W=l?new Dxj(sU,W,l,V):new UxU(sU,W);Lk.set(sU,W);return sU};
utz=function(W){(W=Lk.get(W))&&W.cancel()};
vU4=function(W,l){W=kEx.get(W);return W?(l=W.get(l))?l:null:null};
_.gm=function(W,l,V,f){var r=vU4(W,l);if(!r){r=new H3Y;var R=kEx.get(W);R||(R=new Map,kEx.set(W,R));R.set(l,r)}W=V.bind(W);r.run(W,f,void 0)};
_.Kbz=function(W,l){var V;(V=vU4(W,l))==null||V.cancel()};
Fb6=function(W){var l;(l=vU4(W,"doRender"))==null||l.flush()};
PE=function(W){var l;return(l=W.hostElement)!=null?l:W};
GEz=function(W){var l=W.indexOf(".");return l===-1?W:W.slice(0,l)};
b3J=function(W,l,V,f,r,R){R=(r=(f=R?GEz(l):l)?l:null)?W.get(r):W.__data[l];r&&R===void 0&&(R=V[l]);_.FN(W.hostElement,l3z(f)+"-changed",{value:R,queueProperty:!0,path:r!=null?r:void 0},{bubbles:!1,composed:!1})};
pcS=function(W,l){W.__isReflecting=!0;jWj(W.hostElement,l,W.__data[l]);W.__isReflecting=!1};
oUU=function(W){if(W._onIronRequestResizeNotifications){var l=W._onIronRequestResizeNotifications.bind(W);W._onIronRequestResizeNotifications=function(V){_.Ja(V)!==W.hostElement&&l(V)}}W._ariaActiveAttributeChanged&&(W._ariaActiveAttributeChanged=W._ariaActiveAttributeChanged.bind(W.hostElement));
W._activeChanged&&(W._activeChanged=function(V){W.toggles?rm(W.hostElement,V?"true":"false",W.ariaActiveAttribute):W.hostElement.removeAttribute(W.ariaActiveAttribute);W._changedButtonState()});
W._asyncClick&&(W._asyncClick=function(){_.yq(function(){W.hostElement.click()},1)});
!W.keyEventTarget||W.keyEventTarget instanceof EventTarget||(W.keyEventTarget=PE(W.keyEventTarget));W._disabledChanged&&(W._disabledChanged=W._disabledChanged.bind(W.hostElement));W._observeItems&&(W._observeItems=function(V){var f=PE(V);return _.YG(f).observeNodes(function(r){W._updateItems();W._updateSelected();_.FN(f,"iron-items-changed",r,{bubbles:!1,cancelable:!1})})});
W._updateItems&&W._updateItems===_.nk._updateItems&&(W._updateItems=function(){var V=_.YG(W.hostElement).queryDistributedElements(W.selectable||"*");V=Array.prototype.filter.call(V,W._bindFilterItem);W._setItems(V)});
W._computeKeyboardClass&&(W._computeKeyboardClass=function(V){_.pG(W.hostElement,"keyboard-focus",V)});
W.ensureRipple&&(W.ensureRipple=function(V){if(W.hasRipple&&!W.hasRipple()){if(!W._createRipple)return;W._ripple=W._createRipple();W._ripple.noink=W.noink;var f=W._rippleContainer||W.hostElement;f&&_.GS(f).appendChild(W._ripple)}var r;if(V&&((r=W._ripple)==null?0:r.uiDownAction)){f=_.GS(W._rippleContainer||W.hostElement);var R;r=(R=V.composedPath())==null?void 0:R[0];f.contains(r)&&W._ripple.uiDownAction(V)}});
W._updateMultiselectable&&(W._updateMultiselectable=function(V){V?W.hostElement.setAttribute("aria-multiselectable","true"):W.hostElement.removeAttribute("aria-multiselectable")})};
jbz=function(W,l,V){V=_.L(V);for(var f=V.next();!f.done;f=V.next())tZJ(f.value.constructor,W);tZJ(l.constructor,W)};
i38=function(W,l){W=_.L(W);for(var V=W.next();!V.done;V=W.next())if(V=V.value,V.type==="signal"){var f=V.propertyKey;if(l.hasOwnProperty(f)&&l[f]!=null&&V.attributeType===Object){a:{f=l[f].constructor;for(var r=_.L(I9z),R=r.next();!R.done;R=r.next())if(R=R.value,f===R){f=R;break a}f=Object}V.attributeType=f}}};
mxU=function(){};
XcJ=function(W){var l;return(l=W.hostElement)!=null?l:W};
Tsq=function(){throw Error("Qg");};
wcY=function(W,l){W.constructor.prototype.useSignals=!0;var V=new W.constructor;jbz(V,W,l.behaviors);i38(l.reactiveSchemas,V);V={};for(var f=_.L(l.reactiveSchemas),r=f.next();!r.done;r=f.next())r=r.value,r.type==="signal"&&(V[r.propertyKey]=r.attributeType);var R={copyPropertiesToProto:Tsq,didRegister:!1,typesForSignals:V},y=["disable-upgrade"].concat(_.QK(l.observedAttributes)),P=function(n){Ck.call(this,W,l,R,n)};
_.v(P,Ck);_.rc.Object.defineProperties(P,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return y}}});
R.copyPropertiesToProto=function(){for(var n=0;n<l.behaviors.length;n++)LWz(l.behaviors[n],P.prototype);LWz(W,P.prototype)};
l.legacyOptimizations||R.copyPropertiesToProto();P.prototype.is=W.is;return P};
AhU=function(W,l){if(Object.getPrototypeOf(l.prototype).constructor!==_.I)throw Error("Rg");l.prototype.is=W.is;return wcY(l.prototype,W)};
Qbz=function(W){return W.type==="compute"||W.type==="computeWithMethod"};
McY=function(W){for(var l=W.reactiveSchemas.filter(Qbz),V=new Map,f=new Map,r=new Map,R=_.L(l),y=R.next();!y.done;y=R.next())y=y.value,V.set(y.propertyKey,y),f.set(y.propertyKey,[]),r.set(y.propertyKey,0);R=0;l=_.L(l);for(y=l.next();!y.done;y=l.next()){y=y.value;for(var P=_.L(y.type==="computeWithMethod"?y.method.args:y.args),n=P.next();!n.done;n=P.next())n=n.value,n.type!=="literal"&&(n=n.path.split(".")[0],f.has(n)&&(f.get(n).push(y.propertyKey),r.set(y.propertyKey,r.get(y.propertyKey)+1),R++))}y=
[].concat(_.QK(f.keys())).filter(function(B){return r.get(B)===0});
for(l=[];y.length;)for(P=y.shift(),l.push(V.get(P)),P=_.L(f.get(P)),n=P.next();!n.done;n=P.next())n=n.value,r.set(n,r.get(n)-1),R--,r.get(n)===0&&y.push(n);V=W.reactiveSchemas.filter(function(B){return!Qbz(B)});
W.reactiveSchemas=[].concat(_.QK(V),_.QK(l))};
Z3x=function(W,l){if(l.properties)for(var V=_.L(Object.entries(l.properties)),f=V.next();!f.done;f=V.next()){var r=_.L(f.value);f=r.next().value;r=r.next().value;W.properties[f]=typeof r==="function"?{type:r}:r}l.observers&&W.observers.push.apply(W.observers,_.QK(l.observers));l.disabledPolySiReactions&&W.disabledPolySiReactions.push.apply(W.disabledPolySiReactions,_.QK(l.disabledPolySiReactions))};
O3J=function(W,l){for(var V=l.length-1;V>=0;V--){var f=l[V];Array.isArray(f)?O3J(W,f):W.indexOf(f)<0&&W.unshift(f)}};
a9S=function(W,l){W.reactiveSchemas=W.reactiveSchemas.filter(function(V){return V.type==="observe"&&l.includes(V.method.methodName)||Qbz(V)&&l.includes(V.propertyKey)?!1:!0})};
Ns6=function(W,l){var V=l.prototype,f,r,R={is:W.is,reactiveSchemas:[],observedAttributes:[],behaviors:[WWS.InjectBehavior,WE.prototype],disableElementRegistration:W.disableElementRegistration,provide:(f=W.providers)!=null?f:[],reactivityMode:W.reactivityMode,signalProperties:(r=V.signalProperties)!=null?r:[]};"template"in l?R.templateGetter=function(){return l.template}:W.getTemplate&&(R.templateGetter=W.getTemplate);
V.behaviors&&O3J(R.behaviors,V.behaviors);zxj(R,l);return R};
zxj=function(W,l){for(var V=l.prototype,f={properties:{},observers:[],disabledPolySiReactions:[]},r=_.L(W.behaviors),R=r.next();!R.done;R=r.next())Z3x(f,R.value);Z3x(f,V);if(W.signalProperties)for(V=_.L(W.signalProperties),r=V.next();!r.done;r=V.next())delete f.properties[r.value];V=_.L(Object.entries(f.properties));for(r=V.next();!r.done;r=V.next()){R=_.L(r.value);r=R.next().value;R=R.next().value;var y=void 0;if((y=W.signalProperties)==null||!y.includes(r)){y=void 0;var P=W,n=R.type;if(!n)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{n=Reflect.getMetadata("design:type",l,r);for(var B=_.L(Yyg),d=B.next();!d.done;d=B.next())if(d=d.value,n===d){n=d;break a}n=Object}else n=String;R.computed||R.selector||(P.reactiveSchemas.push({type:"signal",propertyKey:r,value:R.value,attributeType:n,readOnly:R.readOnly}),P.observedAttributes.push(_.A6(r)));R.reflectToAttribute&&P.reactiveSchemas.push({type:"reflect",propertyKey:r});if(R.computed){n=oaq(R.computed);if(!n)throw Error("Sg");P.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:r,method:n,value:R.value})}R.observer&&P.reactiveSchemas.push({type:"observe",method:{methodName:R.observer,args:[{type:"path",path:r}]}});R.notify&&P.reactiveSchemas.push({type:"notify",propertyKey:r});R.selector&&P.reactiveSchemas.push({type:"redux",propertyKey:r,selector:R.selector,selectorArgs:(y=R.selectorArgs)!=null?y:[]})}}xxU&&McY(W);l=_.L(f.observers);for(r=l.next();!r.done;r=l.next())V=W,r=r.value,(R=oaq(r))?V.reactiveSchemas.push({type:"observe",method:R}):console.log('Warning: unable to parse observe declaration: "'+
r+'"');a9S(W,f.disabledPolySiReactions)};
exF=function(W,l){for(var V=0;V<l.length;V++){var f=l[V],r=void 0;(r=f).showHideApi!=null||(r.showHideApi={});r=void 0;!!W!==!((r=f.showHideApi)==null||!r.hideTemplateChildren)&&(f.nodeType===Node.TEXT_NODE?W?(f.showHideApi.polymerTextContent=f.textContent,f.textContent=""):(r=void 0,f.textContent=(r=f.showHideApi.polymerTextContent)!=null?r:null):f instanceof Element&&f.localName==="slot"?W?(f.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.j3)((0,_.j3)(f).parentNode).replaceChild(f.showHideApi.polymerReplaced,
f)):(r=f.showHideApi.polymerReplaced)&&(0,_.j3)((0,_.j3)(r).parentNode).replaceChild(f,r):f instanceof HTMLElement&&f.style&&(W?(f.showHideApi.polymerDisplay=f.style.display,f.style.display="none"):f.style.display=f.showHideApi.polymerDisplay));f.showHideApi.hideTemplateChildren=W;f.showHideChildren&&f.showHideChildren(W)}};
hxz=function(){if(!qyU){var W=document.createElement("style");W.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(W);qyU=!0}};
cE=function(){return _.U("disable_hidden_dom_if_using_stamper")};
SyS=function(W,l){var V=_.BE().getState();return l?W.apply(null,[V].concat(_.QK(l))):W(V)};
WIJ=function(){if(EUj)return EUj;var W=_.L(_.J4(0,void 0,"MB1Hb")),l=W.next().value;W.next();var V=W.next().value;_.BE().subscribe(function(){$xn(V)});
return EUj=l};
$xn=function(W){lw8||(lw8=!0,Promise.resolve().then(function(){W(function(l){return l+1});
lw8=!1}))};
_.BE=function(){return Vjq.getAppStore()};
fwU=function(W,l){return Vjq.getSelectFn()(W,l)};
_.dm=function(W){Vjq.getDispatchFn()(W)};
rQv=function(W,l){var V={},f;for(f in W)V[f]=l(W[f],f);return V};
_.JG=function(W,l){return function(){var V;return(V=_.w9(W))!=null?V:l}};
_.Dd=function(W,l){var V=Object.assign({},W),f;for(f in l)l.hasOwnProperty(f)&&(V[f]=_.JG(W[f],l[f]));return V};
Rzz=function(W,l,V){W instanceof Element&&(V.debugName||(V.debugName="<"+W.tagName.toLowerCase()+(W.tagName.includes("-")?">":"."+W.className+">")),_.U("ytwiz_enable_debug_component_props")&&(W.debugProps||(W.debugProps=rQv(l,function(f){return function(){return f()}}))))};
sT6=function(W){var l;return tjv.value.traceAllComponents||((l=UK.stack[UK.stack.length-1])==null?void 0:l.name)!=="ytComponent"?jz8("ytComponent",{},W):W()};
_.Q=function(W,l){var V=function(f){return sT6(function(r){var R=LIY={};var y;if(((y=V)==null?0:y.idomCompat)&&f.renderedFromIdom){var P;y=typeof V.idomCompat==="object"?(P=V)==null?void 0:P.idomCompat.callbacks:{};y=_.L(yQ4(f,y,V.debugName));P=y.next().value;y.next();y=y.next().value;var n=gxq(W,P);R.privateValue=n;LIY=void 0;Rzz(n,P,V);R={debugName:V.debugName};r&&R&&Object.assign(r.attributes,R);r=f0J(n);r=Array.isArray(r)?r[0]:r;r[dK]||(r[dK]={});r[dK].updateSignalsFromIdomProps=y;P1F(P,n);return n}y=
rQv(f,nxg);P=gxq(W,y);R.privateValue=P;LIY=void 0;Rzz(P,y,V);R={debugName:V.debugName};r&&R&&Object.assign(r.attributes,R);P1F(y,P);return P})};
V.debugName=l===void 0?"":l;return V};
gxq=function(W,l){W=W(l);return k2(W)};
C18=function(W,l){W[l]||(W=new _.bP("IDOM interop setter undefined. Key:",l),_.wv(W))};
nxg=function(W,l){return l==="children"||l==="ref"||typeof W==="function"||W===void 0?W:function(){return _.w9(W)}};
yQ4=function(W,l,V){var f={},r={},R={},y={},P;for(P in W){y={key$jscomp$948:y.key$jscomp$948};y.key$jscomp$948=P;var n=W[y.key$jscomp$948];if(y.key$jscomp$948==="children"||y.key$jscomp$948==="ref")f[y.key$jscomp$948]=n;else if(typeof n==="function")y.key$jscomp$948 in l||n.length>0?(R[y.key$jscomp$948]=n,f[y.key$jscomp$948]=function(d){return function(){return R[d.key$jscomp$948].apply(R,_.QK(_.xk.apply(0,arguments)))}}(y)):f[y.key$jscomp$948]=n;
else if(!(W[y.key$jscomp$948]===void 0&&y.key$jscomp$948 in l)){var B=_.L(_.J4(W[y.key$jscomp$948],{debugName:y.key$jscomp$948+":cwis:"+V},"rvrjQe"));n=B.next().value;B=B.next().value;f[y.key$jscomp$948]=n;r[y.key$jscomp$948]=B}}return[f,r,function(d){var J={},D;for(D in d)J={key$jscomp$949:J.key$jscomp$949,val$jscomp$123:void 0},J.key$jscomp$949=D,J.val$jscomp$123=d[J.key$jscomp$949],J.key$jscomp$949!=="children"&&J.key$jscomp$949!=="ref"&&(typeof J.val$jscomp$123==="function"?J.key$jscomp$949 in
l?R[J.key$jscomp$949]=J.val$jscomp$123:J.val$jscomp$123.length>0&&(R[J.key$jscomp$949]=J.val$jscomp$123,_.Qe(new _.bP("Callback detected that was not set in the idomCompat callbacks map. Key:",J.key$jscomp$949))):J.key$jscomp$949 in l&&J.val$jscomp$123===void 0||(C18(r,J.key$jscomp$949),H4(function(u){return function(){r[u.key$jscomp$949](u.val$jscomp$123)}}(J))))}]};
djS=function(W,l,V){var f=Te6(W.prototype,cQn,W.prototype.behaviors);f.prototype.is=l;f.prototype.localName=l;V&&B2U(f,V);return function(r){r&&(f.prototype.hostElement=r);var R=new f;R.root=R;R.hostElement=r;return R}};
B2U=function(W,l){var V;Object.defineProperty(W.prototype,"_template",{get:function(){V===void 0&&(V=l());return V},
set:function(f){V=f},
configurable:!0,enumerable:!0})};
kxn=function(W,l,V,f){function r(){if(!u){for(var H=new Set,p=_.L(d),X=p.next();!X.done;X=p.next()){X=X.value;for(var w=_.L(Object.getOwnPropertyNames(X)),O=w.next();!O.done;O=w.next()){O=O.value;var S=void 0,N=(S=Object.getOwnPropertyDescriptor(X,O))==null?void 0:S.value;N&&N instanceof Function&&!UU(O)&&(!P[O]||_.U("polymer_forward_method_killswitch"))&&H.add(O)}}p=_.L(Object.entries(Object.getOwnPropertyDescriptors(W.prototype)));for(X=p.next();!X.done;X=p.next())w=_.L(X.value),X=w.next().value,
w=w.next().value,w.value instanceof Function&&!UU(X)&&H.add(X);u=H}return u}
JQ4(W,l,f==null?void 0:f.providers);wsx(W.prototype,W,!0);var R=djS(W,l,V),y,P=(y=W.prototype.properties)!=null?y:{},n,B,d=(B=(n=W.prototype.behaviors)==null?void 0:n.flat(Infinity))!=null?B:[];V=_.L(d);for(y=V.next();!y.done;y=V.next())P=Object.assign({},y.value.properties,P);var J=[].concat(_.QK(Djz),_.QK(Object.keys(P).map(function(H){return _.A6(H)}))),D=!1,u;
return{ctor:function(H,p){var X=R(H),w,O;H=[].concat(_.QK((w=f==null?void 0:f.allowedProps)!=null?w:[]),_.QK((O=f==null?void 0:f.allowedPropsFromBehaviors)!=null?O:[]));X.allowedProps=H.length>0?H:void 0;w={};O=_.L(J);for(H=O.next();!H.done;H=O.next())H=H.value,w[H]=_.Q9(H);X.__dataAttributes=w;var S=X.ready.bind(X);X.ready=function(){p.beforeReady();S();if(N6(l)&&!D){var N=X.__templateInfo;if(N==null?0:N.hostProps){N=_.L(Object.keys(N.hostProps));for(var x=N.next();!x.done;x=N.next())x7(l,x.value,
"PROPERTY_ACCESS_GET_INTERNAL")}D=!0}};
X._overrideLegacyUndefined=!0;return X},
props:P,observedAttributes:J,getInitialMethods:r,getPropsToForwardBeforeRegister:function(){for(var H=[],p=new Set,X=_.L(Object.keys(P)),w=X.next();!w.done;w=X.next())w=w.value,H.push([w,P[w].readOnly]),p.add(w);X=r();w=_.L(Object.keys(Object.getOwnPropertyDescriptors(W.prototype)));for(var O=w.next();!O.done;O=w.next())O=O.value,!Ujz(O)||X.has(O)||p.has(O)||(H.push([O,!1]),p.add(O));p=_.L(u_q);for(X=p.next();!X.done;X=p.next())H.push([X.value,!0]);return H},
getPropsToForwardBeforeReady:function(H){for(var p=[],X=_.L(Object.entries(H)),w=X.next();!w.done;w=X.next()){var O=_.L(w.value);w=O.next().value;O=O.next().value;if(Ujz(w)&&!(O instanceof Function)&&(p.push([w,!1]),N6(l))){var S=O=void 0;(S=(O=H)._createPropertyAccessor)==null||S.call(O,w)}}return p},
shouldForwardProp:Ujz,shouldLog:N6}};
JQ4=function(W,l,V){l8q(W,V);W.prototype.behaviors.unshift(vxF);if(OFY()){if(N6(l)){var f;(f=W.prototype).behaviors!=null||(f.behaviors=[]);W.prototype.behaviors.unshift(Y3Y())}xQz(W)}_.F(WE.prototype)(W.prototype,"__templateHelpers")};
UU=function(W){return H1Y.has(W)||W.startsWith("__compute__")};
Ujz=function(W){return!UU(W)&&!W.startsWith("_")&&!W.endsWith("_")};
p9F=function(W,l){function V(){var D=n();D=_.L(D);for(var u=D.next();!u.done;u=D.next()){var H=_.L(u.value);u=H.next().value;H=H.next().value;KI4(J.prototype,u,H)}f=!0}
var f=!1,r=W.ctor,R=W.getInitialMethods,y=W.observedAttributes,P=W.getPropsToForwardBeforeReady,n=W.getPropsToForwardBeforeRegister,B=W.shouldForwardProp,d=W.shouldLog,J=function(){var D=HTMLElement.call(this)||this;D.didForwardDynamicProps=!1;D.loggingStatus={};f||V();D.inst=r(D,{beforeReady:function(){D.didForwardDynamicProps||(D.forwardDynamicProps(),D.didForwardDynamicProps=!0)}});
D.controllerProxy=zgz(D.inst,l);D.forwardMethods();return D};
_.v(J,HTMLElement);J.prototype.forwardMethods=function(){for(var D=this,u=_.L(this.inst.getExtraMethodsToForward()),H=u.next(),p={};!H.done;p={method$jscomp$63:void 0},H=u.next()){var X=_.L(H.value);H=X.next().value;X=X.next().value;p.method$jscomp$63=X;this[H]=function(w){return function(){return w.method$jscomp$63.call.apply(w.method$jscomp$63,[D.inst].concat(_.QK(_.xk.apply(0,arguments))))}}(p)}u=_.L(R());
for(p=u.next();!p.done;p=u.next())p=p.value,B(p)&&FI4(this,p),d(l)&&!UU(p)&&Gxq(this.inst,p)};
J.prototype.forwardDynamicProps=function(){var D=P(this.inst);D=_.L(D);for(var u=D.next();!u.done;u=D.next()){var H=_.L(u.value);u=H.next().value;H=H.next().value;KI4(this,u,H);d(l)&&!UU(u)&&b16(this.inst,u)}};
J.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
J.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
J.prototype.attributeChangedCallback=function(D,u,H){this.inst.attributeChangedCallbackWrapper(D,u,H)};
_.rc.Object.defineProperties(J.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return l}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.rc.Object.defineProperties(J,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return y}}});
customElements.define(l,J)};
KI4=function(W,l,V){W.hasOwnProperty(l)||Object.defineProperty(W,l,{get:function(){var f,r=((f=W.is)!=null?f:W.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||x7(r,l,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,f=this.polymerController[l],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,f},
set:function(f){if(!V){var r,R=((r=W.is)!=null?r:W.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||x7(R,l,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=l,this.loggingStatus.bypassProxyController=!0,this.polymerController[l]!==f&&(r={},this.polymerController.setProperties((r[l]=f,r)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
FI4=function(W,l,V){var f=W.polymerController;W[l]=function(){var r=_.xk.apply(0,arguments);W.loggingStatus.currentExternalCall=l;W.loggingStatus.bypassProxyController=!0;var R,y=((R=W.is)!=null?R:W.tagName).toLowerCase();x7(y,l,"PROPERTY_ACCESS_CALL_EXTERNAL");var P;R=(P=V!=null?V:f[l])==null?void 0:P.call.apply(P,[f].concat(_.QK(r)));W.loggingStatus.currentExternalCall=void 0;W.loggingStatus.bypassProxyController=!1;return R}};
Gxq=function(W,l){var V=W.hostElement,f=W[l];W[l]=function(){var r=_.xk.apply(0,arguments);if(V.loggingStatus.currentExternalCall!==l){var R,y=((R=V.is)!=null?R:V.tagName).toLowerCase();x7(y,l,"PROPERTY_ACCESS_CALL_INTERNAL")}return f==null?void 0:f.apply(W,r)}};
b16=function(W,l){var V=Object.getOwnPropertyDescriptor(W,l);V&&!V.get&&Object.defineProperty(W,l,{get:function(){NDj(W.hostElement,l);return V.value},
set:function(f){e3(W.hostElement,l);V.value=f}})};
oxn=function(W){return _.U("poly_si_dom_repeat_detached_fix_killswitch")||W.tagName!=="PS-DOM-REPEAT"?W.tagName==="DOM-REPEAT":!0};
IwF=function(W,l){var V=jTj(W);W instanceof Element&&V.unshift(W);W=_.L(V.filter(oxn));for(var f=W.next();!f.done;f=W.next()){var r=void 0;f=_.L((r=f.value.__instances)!=null?r:[]);for(r=f.next();!r.done;r=f.next())if(r=r.value,r.root){r=Array.from(r.root.children);r=_.L(r);for(var R=r.next();!R.done;R=r.next())V.push.apply(V,_.QK(IwF(R.value,l)))}}return V.filter(function(y){return y.usePatchedLifecycles&&y.lifecycleIsConnected===l})};
jTj=function(W){var l=null;W instanceof Element?l=Element.prototype.querySelectorAll:W instanceof DocumentFragment&&(l=DocumentFragment.prototype.querySelectorAll);return l?Array.from(l.call(W,"*")):[]};
uD=function(W){d9(function(){for(var l=_.L(IwF(W,!1)),V=l.next();!V.done;V=l.next()){V=V.value;V.lifecycleIsConnected=!0;try{var f=void 0,r=void 0,R=void 0,y=void 0;(f=(y=V.polymerController)!=null?y:V)==null||(R=(r=f).connectedCallback)==null||R.call(r)}catch(P){_.wv(P)}}})};
kJ=function(W){d9(function(){for(var l=_.L(IwF(W,!0)),V=l.next();!V.done;V=l.next()){V=V.value;V.lifecycleIsConnected=!1;try{var f=void 0,r=void 0,R=void 0,y=void 0;(f=(y=V.polymerController)!=null?y:V)==null||(R=(r=f).disconnectedCallback)==null||R.call(r)}catch(P){_.wv(P)}}})};
QTn=function(){if(!i1x){i1x=!0;var W=[Node];vE&&W.push(vE.Wrapper);var l=Node.prototype.insertBefore,V=Node.prototype.removeChild;W=_.L(W);for(var f=W.next(),r={};!f.done;r={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},f=W.next())f=f.value,r.nativeInsertBefore=f.prototype.insertBefore,f.prototype.insertBefore=function(y){return function(P,n){if(P instanceof DocumentFragment){var B=Array.from(P.children);P=y.nativeInsertBefore.call(this,P,n);
if(this.isConnected&&y.nativeInsertBefore===l)for(n=_.L(B),B=n.next();!B.done;B=n.next())uD(B.value);return P}B=P instanceof Element&&P.isConnected;n=y.nativeInsertBefore.call(this,P,n);B&&kJ(P);this.isConnected&&uD(P);return n}}(r),r.nativeAppendChild=f.prototype.appendChild,f.prototype.appendChild=function(y){return function(P){if(P instanceof DocumentFragment){var n=Array.from(P.children);
P=y.nativeAppendChild.call(this,P);if(this.isConnected){n=_.L(n);for(var B=n.next();!B.done;B=n.next())uD(B.value)}return P}n=P instanceof Element&&P.isConnected;B=y.nativeAppendChild.call(this,P);n&&kJ(P);this.isConnected&&uD(P);return B}}(r),r.nativeRemoveChild=f.prototype.removeChild,f.prototype.removeChild=function(y){return function(P){var n=P instanceof Element&&P.isConnected,B=y.nativeRemoveChild.call(this,P);
n&&V===y.nativeRemoveChild&&kJ(P);return B}}(r),r.nativeReplaceChild=f.prototype.replaceChild,f.prototype.replaceChild=function(y){return function(P,n){if(P instanceof DocumentFragment){var B=Array.from(P.children);
P=y.nativeReplaceChild.call(this,P,n);if(this.isConnected)for(kJ(n),n=_.L(B),B=n.next();!B.done;B=n.next())uD(B.value);return P}B=P instanceof Element&&P.isConnected;var d=this.isConnected,J=y.nativeReplaceChild.call(this,P,n);d&&kJ(n);B&&kJ(P);d&&uD(P);return J}}(r);
W=[Element];vE&&W.push(vE.Wrapper);W=_.L(W);f=W.next();for(r={};!f.done;r={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},f=W.next())f=f.value,f.prototype.before=mjq(f.prototype.before),f.prototype.after=mjq(f.prototype.after),r.nativeReplaceWith=f.prototype.replaceWith,f.prototype.replaceWith=function(y){return function(){var P=_.xk.apply(0,arguments),n=_.L(X9v(P)),B=n.next().value,
d=n.next().value;n=this.isConnected;y.nativeReplaceWith.apply(this,P);P=_.L(d);for(d=P.next();!d.done;d=P.next())kJ(d.value);if(n)for(kJ(this),B=_.L(B),n=B.next();!n.done;n=B.next())n=n.value,n instanceof Element&&uD(n)}}(r),r.nativeRemove=f.prototype.remove,f.prototype.remove=function(y){return function(){var P=this.isConnected;
y.nativeRemove.call(this);P&&kJ(this)}}(r),r.nativeInsertAdjacentElement=f.prototype.insertAdjacentElement,f.prototype.insertAdjacentElement=function(y){return function(P,n){var B=n.isConnected;
P=y.nativeInsertAdjacentElement.call(this,P,n);B&&kJ(n);P.isConnected&&uD(P);return P}}(r),r.nativeSetAttribute=f.prototype.setAttribute,f.prototype.setAttribute=function(y){return function(P,n){var B=T2S(this);
if(!B.usePatchedLifecycles)return y.nativeSetAttribute.call(this,P,n);var d=this.getAttribute(P);y.nativeSetAttribute.call(this,P,n);n=this.getAttribute(P);w9U(B,P,d,n)}}(r),r.nativeRemoveAttribute=f.prototype.removeAttribute,f.prototype.removeAttribute=function(y){return function(P){var n=T2S(this);
if(!n.usePatchedLifecycles)return y.nativeRemoveAttribute.call(this,P);var B=this.getAttribute(P);y.nativeRemoveAttribute.call(this,P);B!==null&&w9U(n,P,B,null)}}(r),r.nativeToggleAttribute=f.prototype.toggleAttribute,f.prototype.toggleAttribute=function(y){return function(P,n){var B=T2S(this);
if(!this.usePatchedLifecycles)return y.nativeToggleAttribute.call(this,P,n);var d=this.getAttribute(P),J=d!==null;n=y.nativeToggleAttribute.call(this,P,n);n!==J&&w9U(B,P,d,n?"":null);return n}}(r);
W=[Document,DocumentFragment,Element,ShadowRoot];vE&&W.push(vE.Wrapper);W=_.L(W);for(r=W.next();!r.done;r=W.next())r=r.value,r.prototype.prepend=mjq(r.prototype.prepend),r.prototype.append=mjq(r.prototype.append);(vE==null?void 0:vE.noPatch)===!0&&AQx();document.readyState==="complete"?uD(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&uD(document.body)});
var R=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");R&&R.get&&R.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:R.enumerable,configurable:!0,get:R.get,set:function(y){y||kJ(this);R.set.call(this,y);return y}})}};
mjq=function(W){return function(){var l=_.xk.apply(0,arguments),V=_.L(X9v(l)),f=V.next().value;V=V.next().value;W.apply(this,l);l=_.L(V);for(V=l.next();!V.done;V=l.next())kJ(V.value);if(this.isConnected)for(f=_.L(f),l=f.next();!l.done;l=f.next())l=l.value,l instanceof Element&&uD(l)}};
AQx=function(){for(var W=_.L(Mj8),l=W.next();!l.done;l=W.next()){l=l.value.prototype;for(var V=_.L(Z1U),f=V.next();!f.done;f=V.next()){f=f.value;var r=Object.getOwnPropertyDescriptor(l,f);r&&Object.defineProperty(l,"__shady_native_"+f,r)}}};
w9U=function(W,l,V,f){var r,R;if((r=W.polymerController)==null?0:(R=r.observedAttributes)==null?0:R.includes(l))if(W=W.polymerController,W.attributeChangedCallbackWrapper)W.attributeChangedCallbackWrapper.call(W,l,V,f);else{var y;(y=W.attributeChangedCallback)==null||y.call(W,l,V,f)}};
X9v=function(W){var l=[],V=[];W=_.L(W);for(var f=W.next();!f.done;f=W.next())f=f.value,f instanceof Element&&f.isConnected&&V.push(f),f instanceof DocumentFragment?l.push.apply(l,_.QK(Array.from(f.children))):l.push(f);return[l,V]};
T2S=function(W){return!(W instanceof Element)&&W.node instanceof Element?W.node:W};
O1x=function(W,l){var V=l?["children"].concat(_.QK(l)):["children"];l=[];V=_.L(V);for(var f=V.next();!f.done;f=V.next()){var r=f.value;if(W.hasOwnProperty(r)){f=W[r];f=typeof f==="function"?f():f;f=Array.isArray(f)?f:[f];f=k2(f).flat();if(r!=="children"){r=l3z(r);for(var R=_.L(f),y=R.next();!y.done;y=R.next())y=y.value,y instanceof Element&&y.setAttribute("slot",r)}l.push(f)}}l.length===0?W=[]:(W=k2(_.C("div",null,l)),W=Array.from(W.childNodes));return W};
zzx=function(W,l,V){var f={};_.A4(function(){var r={},R;for(R in l)if(l.hasOwnProperty(R)){var y=void 0,P=void 0;if(!(((y=V.slotProps)==null?0:y.includes(R))||R==="children"||((P=V.callbackProps)==null?0:P.includes(R))||R==="ref")&&(y=_.w9(l[R]),f[R]!==y)){f[R]=y;P=void 0;var n=(P=W.hostElement)!=null?P:W;awj.has(R)&&(n[R]=y);r[R]=y}}H4(function(){if(W.setProperties)W.setProperties(r);else for(var B=_.L(Object.entries(r)),d=B.next();!d.done;d=B.next()){var J=_.L(d.value);d=J.next().value;J=J.next().value;
W[d]=J}})})};
YI4=function(W,l,V,f){var r=O1x(V,f.slotProps),R=(0,_.j3)(W);r=_.L(r);for(var y=r.next();!y.done;y=r.next())R.appendChild(y.value);zzx(l,V,f);f=_.L(f.callbackProps||[]);r=f.next();for(R={};!r.done;R={kebabEventName:void 0,eventListener:void 0},r=f.next())y=r=r.value,String(r).substring(0,2)==="on"&&V[y]?(R.kebabEventName=l3z(String(r).substring(2)),R.eventListener=V[y],W.addEventListener(R.kebabEventName,R.eventListener),_.Xc(function(d){return function(){W.removeEventListener(d.kebabEventName,d.eventListener)}}(R))):
l[y]=V[y];
if(V.ref){V=_.L(N2j(V.ref));var P=V.next().value,n=V.next().value,B=l.attached.bind(l);l.attached=function(){P(W);B()};
_.Xc(function(){n()})}};
N2j=function(W){if(typeof W==="function"){var l;return[function(V){l=W(V)},
function(){var V;(V=l)==null||V()}]}if(!W.onRender||!W.onUnmount)throw Error("Wg");
return[W.onRender,W.onUnmount]};
hzU=function(W,l,V,f,r){f=f===void 0?{}:f;var R=xjU,y=!1;R?(y=!0,xjU=void 0):(ezz=l,R=document.createElement(l),ezz=void 0);var P=R;P.usePatchedLifecycles=!0;P.lifecycleIsConnected=!1;R.loggingStatus={};var n=qIz(W,l,R,f,r);_.Xc(function(){P.lifecycleIsConnected&&(P.lifecycleIsConnected=!1,n.disconnectedCallback())});
y||(R.__noInsertionPoint=!0,YI4(R,n,V,f));return R};
qIz=function(W,l,V,f,r){r=r===void 0?kxn:r;SI8[l]!=null||(SI8[l]=r(W,l,f==null?void 0:f.getTemplate,f));var R=SI8[l],y=R.ctor;r=R.getInitialMethods;var P=R.getPropsToForwardBeforeReady;W=R.getPropsToForwardBeforeRegister;f=R.shouldForwardProp;var n=R.observedAttributes,B=R.shouldLog,d=y(V,{beforeReady:function(){var J=d;J._takeAttributes?J._takeAttributes():J.setPropertiesFromInitialAttributeValues&&J.setPropertiesFromInitialAttributeValues();J=_.L(P(V.polymerController));for(var D=J.next();!D.done;D=
J.next()){var u=_.L(D.value);D=u.next().value;u=u.next().value;KI4(V,D,u);B(l)&&!UU(D)&&b16(V.polymerController,D)}V.polymerController=zgz(d,l)}});
V.polymerController=d;V.polymerController.observedAttributes=n;R=_.L(d.getExtraMethodsToForward());for(y=R.next();!y.done;y=R.next())n=_.L(y.value),y=n.next().value,n=n.next().value,FI4(V,y,n);r=_.L(r());for(R=r.next();!R.done;R=r.next())R=R.value,f(R)&&FI4(V,R),B(l)&&!UU(R)&&Gxq(d,R);W=_.L(W());for(f=W.next();!f.done;f=W.next())r=_.L(f.value),f=r.next().value,r=r.next().value,KI4(V,f,r);return d};
Exx=function(W){var l=HE;HE=W;return l};
lFU=function(W){if(_.Kk.has(W))_.$j8=W;else if(FY.has(W)&&HE&&W8S(HE)===W){var l;(l=HE)._numRenders!=null||(l._numRenders=0);HE._numRenders++;if(HE._numRenders>1)throw Error("Xg");return HE}};
Vx6=function(W){_.Kk.has(W8S(W))?_.$j8=W8S(W):FY.has(W8S(W))&&HE!==W&&(W._isInert=!0)};
W8S=function(W){var l;return(l=W==null?void 0:W.tagName.toLowerCase())!=null?l:""};
fFg=function(W,l){if(W.componentType===_.oi)throw Error("Yg");FY.add(l);var V=function(){var f=HTMLElement.call(this)||this;f.is=l;if(ezz===l)return f.isInert=!0,f;f.createElement();return f};
_.v(V,HTMLElement);V.prototype.createElement=function(){if(!this.isInert){xjU=this;var f=_.L(_.o1U(function(){return _.C(W,null)})).next().value;
xjU=void 0;NWn(this);return f}};
customElements.define(l,V)};
RhJ=function(W,l,V,f,r){W.prototype.is=l;(f==null?0:f.useSink)?rBS(W,l,V,f,r):(V=kxn(W,l,V,f),p9F(V,l));return W};
rBS=function(W,l,V,f,r){QTn();var R=_.Q(function(y){return hzU(W,l,y,Object.assign({},f,{getTemplate:V}),r)},"a");
R.debugName=l+" (CoW wrapped)";fFg(R,l);return R};
sax=function(W){return!txU.has(W)};
gq8=function(W,l,V,f){function r(){if(!J){for(var D=new Set(L8z),u=_.L(R.behaviors),H=u.next();!H.done;H=u.next()){H=H.value;for(var p=_.L(Object.getOwnPropertyNames(H)),X=p.next();!X.done;X=p.next()){X=X.value;var w=void 0,O=(w=Object.getOwnPropertyDescriptor(H,X))==null?void 0:w.value;O&&O instanceof Function&&(!B[X]||_.U("polymer_forward_method_killswitch"))&&D.add(X)}}u=_.L(Object.entries(Object.getOwnPropertyDescriptors(W.prototype)));for(H=u.next();!H.done;H=u.next())p=_.L(H.value),H=p.next().value,
p=p.next().value,p.value instanceof Function&&D.add(H);J=D}return J}
var R=Ns6({is:l,disableElementRegistration:!1,getTemplate:V,providers:f==null?void 0:f.providers,reactivityMode:f==null?void 0:f.reactivityMode},W);if((f==null?0:f.allowedProps)||(f==null?0:f.allowedPropsFromBehaviors)){var y,P;R.allowedProps=[].concat(_.QK((y=f.allowedProps)!=null?y:[]),_.QK((P=f.allowedPropsFromBehaviors)!=null?P:[]))}var n=AhU(R,W);l=n.observedAttributes;var B={};V=_.L(R.reactiveSchemas);for(f=V.next();!f.done;f=V.next())if(f=f.value,f.type==="signal")B[f.propertyKey]={readOnly:f.readOnly},
f.readOnly&&(B[cR6(f.propertyKey)]={readOnly:!0});else if(f.type==="compute"||f.type==="computeWithMethod"||f.type==="redux")B[f.propertyKey]={readOnly:!0};var d=R.reactiveSchemas.length,J;return{ctor:function(D,u){D=new n(D);D.beforeReady=u.beforeReady;return D},
props:B,observedAttributes:l,getInitialMethods:r,getPropsToForwardBeforeRegister:function(){for(var D=[],u=new Set,H=_.L(yBU),p=H.next();!p.done;p=H.next())p=p.value,D.push([p,p!=="observers"&&p!=="properties"]),u.add(p);H=_.L(Object.keys(B));for(p=H.next();!p.done;p=H.next())p=p.value,D.push([p,B[p].readOnly]),u.add(p);H=r();p=_.L(Object.keys(Object.getOwnPropertyDescriptors(W.prototype)));for(var X=p.next();!X.done;X=p.next())X=X.value,!sax(X)||H.has(X)||u.has(X)||(D.push([X,!1]),u.add(X));D.push(["allowedProps",
!0]);return D},
getPropsToForwardBeforeReady:function(D){var u=[];D=_.L(Object.keys(D));for(var H=D.next();!H.done;H=D.next()){H=H.value;var p=r();sax(H)&&!p.has(H)&&u.push([H,!1])}D=_.L(R.reactiveSchemas.slice(d));for(H=D.next();!H.done;H=D.next())H=H.value,H.type!=="compute"&&H.type!=="computeWithMethod"&&H.type!=="redux"&&H.type!=="signal"||u.push([H.propertyKey,H.type==="signal"?H.readOnly:!0]);return u},
shouldForwardProp:sax,shouldLog:N6}};
_.Z=function(W,l,V,f){var r,R,y=(R=(r=f)==null?void 0:r.mode)!=null?R:0;f!=null||(f={});var P;(P=f).reactivityMode!=null||(P.reactivityMode=0);y===1&&_.n7("creator_poly_si_disable_list").includes(l)&&(y=2);return y===1?RhJ(W,l,V,Object.assign({},f,{useSink:!0}),gq8):RhJ(W,l,V,Object.assign({},f,{useSink:y===2}))};
_.GG=function(){return function(W,l,V,f){var r,R,y=(R=(r=f)==null?void 0:r.mode)!=null?R:2;f!=null||(f={});var P;(P=f).reactivityMode!=null||(P.reactivityMode=0);if(y===0)throw Error("Zg`"+y);return rBS(W,l,V,f,y===1?gq8:void 0)}};
_.bD=function(W){return _.U("creator_poly_si_killswitch")?!1:_.U("force_all_poly_si_batches")&&(W==="poly_si_all_on_test_check"||W==="creator_poly_si_batch_050"?0:W)||document.documentElement.hasAttribute("use-signals")?!0:!W||_.U(W+"_holdback_enabled")&&_.U("kevlar_polysi_holdback")?!1:_.U(W)};
pk=function(W){return W?W.icon?W.icon.iconType.toLowerCase():W.customThumbnail?"member":"":""};
Pfz=function(W){if(!W)return"";W=_.L(W);for(var l=W.next();!l.done;l=W.next())if((l=l.value)&&l.liveChatAuthorBadgeRenderer&&(l=pk(l.liveChatAuthorBadgeRenderer))&&l!=="verified")return l;return""};
nqJ=function(W,l){if(!W)return null;var V;return((V=W.find(function(f){return f&&f.liveChatAuthorBadgeRenderer?pk(f.liveChatAuthorBadgeRenderer)===l:!1}))==null?void 0:V.liveChatAuthorBadgeRenderer)||null};
_.DOg=function(W){var l=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;W=Cf4(W);l=Cf4(l);var V=cBg(W.hex);l=cBg(l.hex);var f=l[0]/255;var r=l[1]/255,R=l[2]/255,y=Math.max(f,r,R),P=Math.min(f,r,R),n=0,B=0,d=.5*(y+P);y!=P&&(y==f?n=60*(r-R)/(y-P):y==r?n=60*(R-f)/(y-P)+120:y==R&&(n=60*(f-r)/(y-P)+240),B=0<d&&d<=.5?(y-P)/(2*d):(y-P)/(2-2*d));f=[Math.round(n+360)%360,B,d];V=BRg(V,l);for(W=dOU(W.hex);V<4.5;){W=f[2]>=.5?W.darker((4.5-V)/2):W.brighter((4.5-V)/2);V=W.toString();
r=JBq(V);if(!r.length)throw Error("Vd`"+V);V=r;V=BRg(V,l)}return W.hex()};
BRg=function(W,l){W=_.lOJ(W);l=_.lOJ(l);return(Math.max(W,l)+.05)/(Math.min(W,l)+.05)};
_.oJ=function(W){return"#"+("000000"+(W&16777215).toString(16)).slice(-6)};
_.UOx=function(W){for(var l=0,V=0;V<W.length;V++)l=W.charCodeAt(V)+((l<<5)-l);W="#";for(V=0;V<3;V++)W+=("00"+(l>>V*8&255).toString(16)).slice(-2);return W};
uFz=function(W){W=(W||"").split(":");W.length===1&&W.unshift("yt-icons");W[1]=W[1].toLowerCase();return W};
GqJ=function(W,l){var V=(l=l===void 0?!1:l)?kqJ:vqq,f=l?HDn:K8z;W.getIconNames().forEach(function(r){r=l?r:r.substring(r.indexOf(":")+1);W.name==="yt-icons"?F8v.add(r):r.includes("-filled")?V.add(r):f.add(r)})};
jM=function(W,l,V,f){V=V===void 0?!1:V;f=f===void 0?!1:f;var r,R,y;return _.g(function(P){if(P.nextAddress==1)return P.yield(bDY,2);if(f)return P.return(F8v.has(W));r=V?kqJ:vqq;R=V?HDn:K8z;return l?(y=W.includes("-filled")?W:W.concat("-filled"),P.return(r.has(y))):P.return(R.has(W))})};
_.ja4=function(W){if(prv(W))return W;var l=W=W.toLowerCase();(W=oq4.get(W))&&(l=W);return l};
_.IJ=function(W){if(prv(W))return W.toString();var l=IFz.get(W);if(l)return l;l=W.toLowerCase();var V="yt-icons",f=l.replace(/_/g,"-");switch(W){case "MY_CHANNEL":l="account_circle";break;case "ADD_TO_LIBRARY":l="add";break;case "ALERT_WARN_RED":l="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":l="person_music";break;case "BLOCK_USER":l="block";break;case "CAPTIONS":l="closed_caption";break;case "CLOSED_CAPTION":V="av";l="closed-caption";break;case "COLLECTION":V="maps";l="layers";break;case "CONTACT":V=
"icons";l="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":V="ytcp-icons";l=f.split("creator-studio-")[1];break;case "DISMISSAL":l="close";break;case "DO_NOT_DISTURB":l="block";break;case "DOGFOOD":V="icons";l="pets";break;case "DRAFT":l="paper_corner_folded";break;
case "EMPTY_LIKE":l="like_outline";break;case "EXIT_APP":l="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":l=f;break;case "GAMES":V="ytg";l="my-games";break;case "GO_TO_PAGE":l="arrow-forward";break;case "GROUP":V="social";break;case "HIDE":l="not_interested";break;case "INPUT_COMPONENT":V="icons";l="settings-input-component";break;case "KIDS_BLOCK":l="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":V="ytg";l="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":V=
"ytg";l="membership-post-purchase";break;case "MULTIVIEW":l="screen_multi_view";break;case "MY_LOCATION":V="maps";l=f;break;case "NOTIFICATIONS_INBOX":l="NOTIFICATIONS";break;case "NEXT":l="chevron_right";break;case "OFFLINE":l="power-settings-new";break;case "PAUSE":V="miniplayer";break;case "PAYMENT":V="icons";break;case "PHONE_DOWNLOAD":l="phone_download";break;case "PREMIUM_STANDALONE":V="yt-logos";l="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":V="yt-logos";l="premium_standalone_cairo";
break;case "QUESTION_ANSWER":l="question_answer";break;case "REDEEM":V="icons";l="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":l="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":l="library_add";break;case "SCHOOL":V="yt-sys-icons";l="creator_academy";break;case "SETTINGS_LIGHT":l="settings_applications";break;case "SETTINGS_MATERIAL":l="settings";break;case "SEARCH_HISTORY":l="watch_history";break;case "SHOPPING_BAG":l="bag";break;case "SOCIAL":case "PEOPLE":V=
"yt-icons";l="people";break;case "STAFF_PICK":V="ytg";l="spotlight";break;case "START_DVR":l="add";break;case "STOP_DVR":V="av";l="stop";break;case "TAB_LIKED":l="like";break;case "TAB_INBOX":l="mail";break;case "TERMS_OF_SERVICE":V="icons";l="description";break;case "TRENDING":l="fire";break;case "UNBLOCK_USER":l="remove";break;case "UNPLUGGED_DARK_THEME":V="image";l="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":l="live";break;case "UNPLUGGED_SPORTS":V="ytu";l="visibility-off";break;
case "VIDEOS":V="av";l="play-circle-filled";break;case "YOUTUBE":V="yt-logos";l="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":V="yt-logos-ext";l="yt-logo-red-updated";break;case "YOUTUBE_LOGO":V="yt-logos-ext";l="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":V="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":V="shorts";l=f;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":V="yt-sys-icons";l="youtube_improve_tv";break;case "OUTLINE_BAG":V=
"yt-sys-icons";l="bag";break;case "QUEUE_PLAY_LAST":V="yt-sys-icons";l="list_queue_last";break;case "SLASH_CIRCLE_LEFT":l="slash_circle_left";break;case "SPEED_1_POINT_2X":l="1_point_2x";break;case "SPEED_1_POINT_5X":l="1_point_5x";break;case "SPEED_1_POINT_8X":l="1_point_8x";break;case "SPEED_POINT_2X":l="point_2x";break;case "SPEED_POINT_5X":l="point_5x";break;case "SPEED_POINT_8X":l="point_8x";break;case "SPEED_1X":l="1x";break;case "SPEED_2X":l="2x";break;case "TAB_BOOKMARK":l="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":V="yt-sys-icons";l="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":V="yt-sys-icons";l="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":V="yt-sys-icons",l="tic_tac_toe"}l=V+":"+l;IFz.set(W,l);return l};
prv=function(W){var l;_.U("kevlar_use_wil_icons")?l=!!_.tY().resolve(_.iD).resolveIcon({iconName:W.toString()}):l=!1;return l};
_.XY=function(W,l,V,f){V=V===void 0?{}:V;f=f===void 0?!1:f;V===null&&(V={});var r=_.n7("kevlar_command_handler_command_banlist");r=_.L(r);for(var R=r.next();!R.done;R=r.next())if(R=W?W.hasOwnProperty(R.value):void 0,R)return!1;r=_.k(W.commandMetadata,_.XN);return f&&r!=null&&r.url?!1:!l.disableCommandHandlerOverride&&_.mK.instance?(f=_.mK.instance,V.form||(V.form={element:l}),V.form.element||(V.form.element=l),!V.clickedVisualElement&&l.visualElement&&(V.clickedVisualElement=l.visualElement),f.resolveCommand(W,
V),!0):!1};
iDj=function(W,l){W=TG(W);for(var V=_.L(W.visibilityMonitorKeys||[]),f=V.next();!f.done;f=V.next())l.unobserveByKey(f.value);W.visibilityMonitorKeys=void 0};
wrj=function(W,l){if(_.Wh()){if(_.U("kevlar_vimio_use_shared_monitor"))mOq(W,l.data);else if(!mOq(W,l.data))return;var V=l.data,f=XrY(V);if(_.U("enable_client_ve_spec_logging"))iDj(W,l.observer);else{var r=TG(W);r.trackedParams&&r.trackedParams!==f&&iDj(W,l.observer)}r=TG(W);!V||r.data&&r.data===V||(r.data=V);TRq(W,l);r.trackedParams=f}};
TRq=function(W,l){var V=l.observer;if(!V&&_.U("web_skip_missing_vimio_observer")){var f,r;_.Qe(new _.bP("VisibilityObserver is not defined.",W.tagName,W.trackedParams,(f=l.data)==null?void 0:f.trackingParams,(r=l.data)==null?void 0:r.loggingDirectives))}else{var R=l.layer,y=l.visibilityCallback||function(){},P=l.prescanCallback,n=TG(W);
f=[];l.showOption&&f.push(V.observe(W,function(){l.skipLogging&&l.skipLogging()||_.wm().reportShown(n,void 0,R);y(!0)},l.showOption));
l.hideOption&&f.push(V.observe(W,function(){_.wm().reportHidden(n,void 0,R);y(!1)},l.hideOption));
l.prescanOption&&P&&f.push(V.observe(W,function(){P()},l.prescanOption));
n.visibilityMonitorKeys=f}};
mOq=function(W,l){W=TG(W);if(W.visualElement&&!l)return!0;if(!l)return!1;var V=!1;if(_.U("enable_client_ve_spec_logging")){var f,r;V=!!((f=l.loggingDirectives)==null?0:(r=f.clientVeSpec)==null?0:r.uiType)}f=XrY(l);if(!f&&!V)return!1;_.U("mweb_component_visibility_logging")&&(W.veContainer||(W.veContainer={}),W.veContainer.trackingParams=f);if(W.trackedParams&&W.trackedParams===f)return!1;var R;if(_.U("enable_client_ve_spec_logging")&&((R=W.visualElement)==null?0:R.isClientVe())){var y;R=(y=W.visualElement)==
null?void 0:y.getAsJspb();var P,n,B,d;if(_.Cs(R,2)===((P=l.loggingDirectives)==null?void 0:(n=P.clientVeSpec)==null?void 0:n.uiType)&&_.Cs(R,3,-1)===((B=l.loggingDirectives)==null?void 0:(d=B.clientVeSpec)==null?void 0:d.elementIndex))return!1}if(_.U("enable_client_ve_spec_logging")){var J,D;!W.visualElement&&((J=l.loggingDirectives)==null?0:(D=J.clientVeSpec)==null?0:D.uiType)&&(P=l.loggingDirectives.clientVeSpec,l=P.uiType,y=P.elementIndex,P=P.clientYoutubeData,W.visualElement=_.AG(_.Qq(),{veType:l,
elementIndex:y,clientYouTubeData:P}))}return!0};
XrY=function(W){if(W==null?0:W.rendererContext){var l=_.k(W.rendererContext,_.Ma);if(l==null?0:l.loggingDirectives)return l.loggingDirectives.trackingParams}return(W==null?0:W.loggingDirectives)?W.loggingDirectives.trackingParams:W==null?void 0:W.trackingParams};
TG=function(W){var l;return(l=W.polymerController)!=null?l:W};
ZDJ=function(W){_.wm();if(_.ah(Zd().JSC$12575_elementShouldLogGesture).bind(Zd())(W,4)){AB6(W);var l=QaF(W);Mxj.set(W,l)}};
AB6=function(W){Mxj.has(W)&&(Mxj.get(W).cancel("untrack hover element"),Mxj.delete(W))};
QaF=function(W){var l,V=[],f=!1,r=new _.Dx(function(R,y){OU(W,"mouseenter",_.ah(function(){var P,n,B;return _.g(function(d){if(d.nextAddress==1)return l=(0,_.tv)(),P=ODF(W),V.push(P),n=aF6(W,function(){f=!0;y(Error("$g"))}),d.yield(P,2);
if(d.nextAddress!=3)return n&&aJ(n),B=zhx(W),V.push(B),d.yield(B,3);R();_.ju(d)})}))});
r.then(function(){var R=(0,_.tv)()-l;R=Math.round(R);if(!(500>R||6E5<=R)){var y=W.getScreenLayer?W.getScreenLayer():void 0;y=_.Wh(y)||"";var P=NR4(_.wm(),W);_.cy(y,W.visualElement?W.visualElement:_.zG(P),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:R}})}ZDJ(W)},function(){Na&&(Na(),Na=null);
f&&(AB6(W),ZDJ(W))});
return r};
ODF=function(W){var l;return(new _.Dx(function(V,f){Na=function(){f(Error("ah"))};
l=_.w8.debounce(_.ah(function(){aJ(r);V()}),1,100);
var r=_.YJ(W,"mousemove",l)})).thenCatch(function(){var V=_.w8.cancelDebouncedJobMap.get(l);
V&&_.w8.cancelJob(V)})};
zhx=function(W){var l;return(new _.Dx(function(V,f){Na=function(){f(Error("bh"))};
l=OU(W,"mouseleave",_.ah(function(){V()}))})).thenCatch(function(){aJ(l)})};
aF6=function(W,l){return OU(W,"mouseleave",_.ah(l))};
xOx=function(W){YN8&&_.xJ.cancel(YN8);YN8=_.xJ.run(function(){_.FN(W,"yt-visibility-refresh");YN8=0})};
ehg=function(W){W=Number(W);return"rgba("+[W>>16&255,W>>8&255,W&255,(W>>24&255)/255].join()+")"};
hh6=function(W){if(!W)return!1;if(_.k(W,_.qN8))return!0;var l;if(W=(l=_.k(W,_.Ig))==null?void 0:l.commands)for(l=_.L(W),W=l.next();!W.done;W=l.next())if(_.k(W.value,_.qN8))return!0;return!1};
SNF=function(W){var l=!0;l=l===void 0?!0:l;if(!W.useSignals&&!W.experimentalPropertiesChanged||_.U("experimental_templating_behavior_nopatch_killswitch")){var V=W._propertiesChanged;W._propertiesChanged=function(f,r,R){l?W.debounceRender():W.doRender();V&&V.call(W,f,r,R)}}};
Eqn=function(W,l){if(W.useSignals||W.experimentalPropertiesChanged)if(_.U("experimental_templating_behavior_nopatch_killswitch"))W.experimentalPropertiesChanged=function(){};
else return;var V=new Set,f=[W].concat(_.QK(W.behaviors));f=_.L(f);for(var r=f.next();!r.done;r=f.next()){r=r.value;for(var R in r.properties)V.has(R)||(W._addPropertyEffect(R,"function",l),V.add(R))}};
$O8=function(){var W=Polymer.Element,l=W._prepareTemplate;W._prepareTemplate=function(){l.call(this);var V=this.prototype;if(V.experimentalTemplatingInUse&&V.experimentalTemplatingInUse()&&V.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.wv(Error("ch"));else{V=this.template.content.childNodes;for(var f=V.length-1;f>=0;f--){var r=V[f];r.nodeName!=="STYLE"&&r.nodeName!=="LINK"&&r.nodeName!=="SCRIPT"&&r.nodeName!=="#comment"&&r.remove()}}}};
W54=function(W){var l=!0;l=l===void 0?!0:l;$O8();var V=W.ready;W.ready=function(){this._template=null;V.call(this)};
Eqn(W,l?W.debounceRender:W.doRender)};
V8j=function(W,l,V){if(V===null||V===void 0)return V;var f=cHU(W.tagName.toLowerCase(),l,function(){throw Error("Tb");});
if(f===null)return V;f=lfz[f];var r;if((r=f.isUnwrappable)==null?0:r.call(f,V)){if(f.unwrap)return f.unwrap(V);throw Error("fh");}return f.filterString?f.filterString(W.tagName,l,String(V)):V};
ffv=function(W,l,V){var f=l[l.length-1]!=="$",r=V8j(W,l,V);if(f)if(typeof r==="function"&&l.startsWith("reactiveon")&&l===l.toLowerCase()){var R=r9;Hjx(W,l.slice(8),function(y){Q_(R,function(){r(y)})})}else W[l]=r;
else V=r==null?null:String(r),OR(W,l.slice(0,-1),V)};
qa=function(W){r38.length===0&&requestAnimationFrame(function(){setTimeout(function(){var l=r38.slice();r38.length=0;l=_.L(l);for(var V=l.next();!V.done;V=l.next()){V=V.value;try{V()}catch(f){_.eM(f)}}})});
r38.push(W)};
R36=function(W){if(W){var l=W.component;if(l){var V;l==null||(V=l.events)==null||V.publish("DISCONNECTED");var f;l==null||(f=l.onDisconnected)==null||f.call(l)}var r,R;(r=W.__spec)==null||(R=r.didUnmount)==null||R.call(r);for(l=0;l<W.childNodes.length;l++)R36(W.childNodes[l])}};
t8n=function(W,l,V){var f=l&&l.key,r=lz;r[0]=W;r[1]=f;r[2]=void 0;for(var R in l)l.hasOwnProperty(R)&&(W=l[R],f=Vj,f.push(R),f.push(W));l=lz;a:{if(R=lz[2])for(W=0;W<R.length;W+=2)if(R[W]==="nonce"){R=R[W+1];break a}R=""}R=wSv(l[0],l[1],R);W=YW(R);f=l[2];if(!W.staticsApplied&&(W.staticsApplied=!0,f&&f.length))if((r=W._attrsArr)&&r.length){for(r=0;r<f.length;r+=2)hG[f[r]]=r+1;r=W._attrsArr||(W._attrsArr=vBz(0));for(var y=0,P=0;P<r.length;P+=2){var n=r[P],B=r[P+1],d=hG[n];d?f[d]===B&&delete hG[n]:(r[y]=
n,r[y+1]=B,y+=2)}Zz(r,y);for(var J in hG)pSj(R,J,f[hG[J]],r6),delete hG[J]}else for(J=0;J<f.length;J+=2)pSj(R,f[J],f[J+1],r6);N6z(R,W,r6);Zz(l,0);V&&V(q_);AHj()};
_.SM=function(W,l,V){V===void 0?delete W[l.name]:W[l.name]=V};
_.$J=function(W){var l={androidIncludeFontPadding:!1},V=0,f=[],r=[],R=[];if(W.simpleText)return l.content=W.simpleText,l;if(W.runs===void 0)return l.content="",l;W=_.L(W.runs);for(var y=W.next();!y.done;y=W.next()){y=y.value;var P=y.text,n=void 0,B=(n=P)==null?void 0:n.length;if(P&&B){f.push(P);if(y.bold||y.italics||y.strikethrough||y.underline||y.textColor!=null&&y.textColor!==0||y.deemphasize){P=r;n=P.push;var d={startIndex:V,length:B};y.bold&&(d.weightLabel="FONT_WEIGHT_MEDIUM");y.italics&&(d.italic=
!0);y.strikethrough&&(d.strikethrough="LINE_STYLE_SINGLE");y.underline&&(d.underline="LINE_STYLE_SINGLE");y.textColor!=null&&y.textColor!==0?document.documentElement.hasAttribute("dark")?d.fontColor=y.darkModeTextColor||y.textColor:d.fontColor=y.textColor:y.deemphasize&&(document.documentElement.hasAttribute("dark")?d.fontColor=parseInt("ff"+s5v("#aaa").substring(1),16):d.fontColor=parseInt("ff"+s5v("#606060").substring(1),16));n.call(P,d)}y.navigationEndpoint&&(P=R,n=P.push,d={startIndex:V,length:B,
onTap:{innertubeCommand:y.navigationEndpoint}},y.loggingDirectives&&_.SM(d,L5j,y.loggingDirectives),n.call(P,d));V+=B}}l.content=f.join("");l.styleRuns=r.length?r:void 0;l.commandRuns=R.length?R:void 0;return l};
g4U=function(W){if(W==null||!W.runs)return!0;W=_.L(W.runs);for(var l=W.next();!l.done;l=W.next())if(l=l.value,l.bracket||l.errorUnderline||l.deemphasize||_.k(l,WI)||_.k(l,y3S))return!1;return!0};
PYv=function(W,l){return function(V){var f=l.unit;if(f!==V)throw Error("ih`"+W+"`"+f+"`"+V);return l}};
lp=function(W){if(!((W==null?0:W.value)&&(W==null?0:W.unit)))return"";switch(W.unit){case "DIMENSION_UNIT_FRACTION":var l="%";break;default:l="px"}W=W.value;l==="%"&&(W*=100);return""+W+l};
n4q=function(W){try{return W()}catch(l){_.Qe(l)}};
_.fP=function(W){var l=_.k(W,_.VY);if(l)return l;if((l=_.k(W,CYx))&&l.commands)return c3n(l.commands);if((l=_.k(W,Bbn))&&l.commands)return c3n(l.commands);if((W=_.k(W,dfz))&&W.identifier&&W.command&&(J3x||(J3x=[]),!J3x.includes(W.identifier)))return J3x.push(W.identifier),_.k(W.command,_.VY)};
c3n=function(W){if(W.length!==0){var l=[];W=_.L(W);for(var V=W.next();!V.done;V=W.next())(V=_.fP(V.value))&&l.push(V);return{commandExecutorCommand:{commands:l}}}};
_.Rf=function(W){var l=W.defaultTarget,V=W.elementConfig,f=W.elementsCommand,r=W.skipOnClick,R=W.forceNewState,y=W.additionalCommandArgs,P=W.innertubeCommand||_.fP(f);if(P){W={};var n=Dfj(P);f=n.navigatingCommand;n=n.href;f&&n?(W.href$=n,Uf8(W,f,n,l),_.U("web_atagconfig_pointerdown")&&uQn(W,f),R&&(W["force-new-state$"]=!0)):(W.role$="button",W.href$="javascript:void(0);");_.k(P,knS)&&(W["aria-haspopup$"]=!0);r||(W.onclick=function(B){var d={};if(v4F(B)){var J=(y==null?void 0:y.clickedVisualElement)||
(y==null?void 0:y.getClickedVisualElement)&&y.getClickedVisualElement();J&&(d={clickedVisualElement:J});d=Object.assign({},{form:{element:B.target,event:B,createScreenConfig:d}},y);B.preventDefault();_.rN(P,d)}});
return Object.assign({},V,W)}};
HQz=function(W){if(W.length){if(W.length===1)return W[0];var l={};_.SM(l,_.Ig,{commands:W});return l}};
t2=function(W){return W&&W.href$!=="javascript:void(0);"};
Dfj=function(W){var l,V=((l=_.k(W,_.Ig))==null?void 0:l.commands)||[W];W=_.L(V);for(l=W.next();!l.done;l=W.next()){l=l.value;var f=void 0,r=void 0;V=(r=_.k((f=l)==null?void 0:f.commandMetadata,_.XN))==null?void 0:r.url;_.U("web_remove_web_navigation_endpoint_data")||(f=void 0,V=V||((f=_.k(l,K5v))==null?void 0:f.url));if(V&&V!=="/service_ajax"){if(f=_.av(V,F5x))return W=_.MI(f),{navigatingCommand:l,href:W};_.Qe(new _.bP("AttributedString URL could not be sanitized",V))}}return{}};
v4F=function(W){return W.button!==void 0?W.button===0&&!(W.shiftKey||W.altKey||W.metaKey||W.ctrlKey):!(W.shiftKey||W.altKey||W.metaKey||W.ctrlKey)};
Uf8=function(W,l,V,f){V=!f7(V);var r,R,y;if((r=_.k(l,_.ZJ))!=null&&r.nofollow||(R=_.k(l,_.Bh))!=null&&R.nofollow||(y=_.k(l,_.x_))!=null&&y.nofollow||V)W.rel$="nofollow";var P;l=((P=_.k(l,_.x_))==null?void 0:P.target)==="TARGET_NEW_WINDOW"?"_blank":f===void 0?"":f;W.target$=l};
uQn=function(W,l){l.clickTrackingParams&&(W.params={itct:l.clickTrackingParams});W.onpointerdown=function(V){Gnz(V)};
W._data=l};
bQg=function(W){(W.loggingUrls||[]).forEach(function(l){eS(l.baseUrl,l.attributionSrcMode)})};
Gnz=function(W){var l=W.currentTarget;W=n4q(function(){return l.href});
var V=l.params;W&&_.Ue(W,V||{},8,!0)};
_.sZ=function(W,l){(W=_.fP(W))&&_.rN(W,l)};
_.rN=function(W,l){aYF(function(V){l?V.resolveCommand(W,l):V.resolveCommand(W)})};
Ifv=function(W,l){var V=["yt-core-attributed-string__link"];l!=null&&l.noLinkColor||((l==null?0:l.isOverlay)?V.push("yt-core-attributed-string__link--overlay-call-to-action-color"):V.push("yt-core-attributed-string__link--call-to-action-color"),(l==null?0:l.linkInheritColor)&&V.push("yt-core-attributed-string--link-inherit-color"));V={className:V.join(" "),tabindex$:"0"};var f=W.onTap||W.onLongPress;if(!f)return V;var r=pC6(W);r&&(V["aria-label$"]=r);l=_.Rf({elementsCommand:f,elementConfig:V,skipOnClick:!(l==
null||!l.skipOnClick),forceNewState:!0});W.onLongPress&&(f=new o4j(function(){var R=_.fP(W.onLongPress);R&&_.tY().resolve(_.s6).resolveCommand(R)}),l&&j5g(f,l));
return l||V};
pC6=function(W){var l,V;return(l=W.onTapOptions)==null?void 0:(V=l.accessibilityInfo)==null?void 0:V.accessibilityLabel};
iQz=function(W){var l=W;W<=16777215&&(l+=parseInt("ff000000",16));return _.sD(l)};
mfj=function(W){var l=W.isDarkTheme;var V=W.extension;W=W.runColor;var f=void 0;if(V=V==null?void 0:V.colorMap){l=l?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";V=_.L(V);for(var r=V.next();!r.done;r=V.next())if(r=r.value,l===r.key){f=r.value;break}}f==null&&W&&(f=W);if(f)return iQz(f)};
LP=function(W){var l=W.config;var V=W.image;var f=W.imageConfig;var r=W.imageWrapperConfig;var R=W.run;var y=W.tag;var P=W.textLength;var n=W.startIndex===void 0?0:W.startIndex;W=W.length;n===void 0&&(n=0);R={run:R,startIndex:n,endIndex:W!==void 0?n+W:P,tag:y};V&&(R.image=V);f&&(R.imageConfig=f);r&&(R.imageWrapperConfig=r);l&&(R.config=l);return R};
Tbg=function(W,l){var V=[];V.push("yt-core-attributed-string");(l==null?0:l.className)&&V.push(l==null?void 0:l.className);(l==null?0:l.ellipsisTruncate)?V.push("yt-core-attributed-string--ellipsis-truncate"):(l==null?0:l.noWrap)?V.push("yt-core-attributed-string--white-space-no-wrap"):(l==null?0:l.noPreWrap)||V.push("yt-core-attributed-string--white-space-pre-wrap");(l==null?0:l.linkInheritColor)&&V.push("yt-core-attributed-string--link-inherit-color");W.alignment&&V.push(XCj(W.alignment));W.lineBreakMode&&
V.push("yt-core-attributed-string--word-wrapping");return V.join(" ")};
wCx=function(W,l){if(W.weight)return W.weight;switch(W.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 l?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
A3U=function(W){switch(W){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"}};
XCj=function(W){switch(W){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"}};
PI=function(W,l,V){var f=l;W.content&&V&&(V=W.content.indexOf("\n"),V!==-1&&(f=Math.min(l,V)));if(!W.content||W.content.length<=f)l=W;else if(W.attachmentRuns||W.commandRuns||W.decorationRuns||W.styleRuns||W.paragraphStyleRuns){l=yY(W.content,f);V=f;var r=W.attachmentRuns;if(r){var R=[];r=_.L(r);for(var y=r.next();!y.done;y=r.next())y=Object.assign({},y.value),y.startIndex===void 0||y.startIndex>=V||(y.length||(y.length=0),y.length+y.startIndex>V&&(y.length=V-y.startIndex),R.push(y));V=R}else V=void 0;
R=Q5S(f,W.commandRuns);r=f;var P=W.decorationRuns;if(P){y=[];P=_.L(P);for(var n=P.next();!n.done;n=P.next()){n=n.value;var B=_.k(n.textDecorator,gN);if(B&&B.startIndex!==void 0&&!(B.startIndex>=r)){n=Object.assign({},n,{textDecorator:{highlightTextDecorator:Object.assign({},B)}});B=_.k(n.textDecorator,gN);if(!B.length||B.length+B.startIndex>r)B.length=r-B.startIndex;y.push(n)}}r=y}else r=void 0;y=Q5S(f,W.styleRuns);if(P=W.paragraphStyleRuns)for(W=[],P=_.L(P),n=P.next();!n.done;n=P.next()){var d=n.value;
n=Object.assign({},d);if(!(n.startIndex===void 0||n.startIndex>=f)){if(!n.length||n.length+n.startIndex>f)n.length=f-n.startIndex;B=[];var J=void 0,D=void 0;if((J=d)==null?0:(D=J.listGroup)==null?0:D.listItems)for(d=_.L(d.listGroup.listItems),J=d.next();!J.done;J=d.next())if(J=Object.assign({},J.value),!(J.startIndex===void 0||J.startIndex>=f)){if(!J.length||J.length+J.startIndex>f)J.length=f-J.startIndex;B.push(J)}B.length>0&&(n.listGroup||(n.listGroup={}),n.listGroup=Object.assign({},n.listGroup,
{listItems:B}));W.push(n)}}else W=void 0;l={content:l,attachmentRuns:V,commandRuns:R,decorationRuns:r,styleRuns:y,paragraphStyleRuns:W}}else l=Object.assign({},W,{content:yY(W.content,f)});return l};
Q5S=function(W,l){if(l){var V=[];l=_.L(l);for(var f=l.next();!f.done;f=l.next())if(f=Object.assign({},f.value),!(f.startIndex===void 0||f.startIndex>=W)){if(!f.length||f.length+f.startIndex>W)f.length=W-f.startIndex;V.push(f)}return V}};
yY=function(W,l){var V=l,f;if(f=V>0)f=W.charCodeAt(V-1),f=f>=55296&&f<=56319;f&&(V=W.charCodeAt(V),f=V>=56320&&V<=57343);f&&--l;return W.substring(0,l)};
afq=function(W,l,V){V=V===void 0?M8z:V;if(W){var f=_.tY().resolve(tH);f||_.U("mweb_no_observer_killswitch")?wrj(W,{data:l,observer:f,visibilityCallback:V,hideOption:ZQq,showOption:OQY,layer:W.layer}):_.Qe(new _.bP("Warning: monitorVisibility called with null observer",W.tagName,l==null?void 0:l.loggingDirectives,l==null?void 0:l.trackingParams))}else _.Qe(new _.bP("Warning: monitorVisibility called with null element",l==null?void 0:l.loggingDirectives,l==null?void 0:l.trackingParams,l==null?void 0:
l.rendererContext))};
h3U=function(W,l){var V=[],f=W.content.length,r,R=(r=_.tY().resolve(_.R0(_.nP)))==null?void 0:r();if(W.paragraphStyleRuns){r=_.L(W.paragraphStyleRuns);for(var y=r.next();!y.done;y=r.next()){var P=V.push,n=P.apply;var B=void 0;y=y.value;if((B=y.listGroup)!=null&&B.listItems){B=[];b:switch(y.listGroup.listType){case "LIST_TYPE_BULLET":var d="ul";break b;default:d="span"}B.push(LP({run:y,textLength:f,tag:d,config:{className:"yt-core-attributed-string__list-group"},startIndex:y.startIndex,length:y.length}));
d=_.L(y.listGroup.listItems);for(var J=d.next();!J.done;J=d.next()){J=J.value;b:switch(y.listGroup.listType){case "LIST_TYPE_BULLET":var D="li";break b;default:D="span"}B.push(LP({run:y,textLength:f,tag:D,startIndex:J.startIndex,length:J.length}))}y=B}else y=[];n.call(P,V,_.QK(y))}}if(W.styleRuns&&(l==null||!l.noStyleRuns))for(r=_.L(W.styleRuns),P=r.next();!P.done;P=r.next()){y=P=P.value;B=R;n=l;B=mfj({extension:_.k(y.styleRunExtensions,z3q),isDarkTheme:B===void 0?!1:B,runColor:y.fontColor});J=y;
d=[];B&&d.push("yt-core-attributed-string--link-inherit-color");J.italic&&d.push("yt-core-attributed-string--italicized");J.underline&&J.strikethrough?d.push("yt-core-attributed-string--underline-strikethrough",A3U(J.underline)):J.underline?d.push("yt-core-attributed-string--underlined",A3U(J.underline)):J.strikethrough&&d.push("yt-core-attributed-string--strikethrough",A3U(J.strikethrough));if(J.baselineOffset){a:switch(J.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":J="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":J="yt-core-attributed-string--baseline-offset-superscript";break a;default:J="yt-core-attributed-string--baseline-offset-unknown"}d.push(J)}d=d.join(" ");J={};if(y.weight||y.weightLabel)J.fontWeight=wCx(y,n==null?void 0:n.isHeadline).toString();B&&(J.color=B);V.push(LP({run:P,textLength:f,tag:"span",config:{className:d,style:J},startIndex:P.startIndex,length:P.length}))}if(W.decorationRuns)for(r=_.L(W.decorationRuns),P=r.next();!P.done;P=r.next())P=P.value,
n={},P.textDecorator&&(d=P.textDecorator,y=R===void 0?!1:R,J=[],B=_.k(d,gN),d=_.k(d,Nb6),B?(d=J,J=d.concat,D=[],(y=mfj({extension:_.k(B.highlightTextDecoratorExtensions,Yav),isDarkTheme:y,runColor:B.backgroundColor}))&&D.push("background-color: "+y+";"),B.backgroundCornerRadius!==void 0&&D.push("border-radius: "+B.backgroundCornerRadius+"px;"),B.leftPadding!==void 0&&D.push("padding-left: "+B.leftPadding+"px;"),B.rightPadding!==void 0&&D.push("padding-right: "+B.rightPadding+"px;"),B.topPadding!==
void 0&&D.push("padding-top: "+B.topPadding+"px;"),B.bottomPadding!==void 0&&D.push("padding-bottom: "+B.bottomPadding+"px;"),J=J.call(d,D)):d&&(B=J,J=B.concat,y=y?"#2ba640":"#107516",y=d.color?iQz(d.color):y,y=["padding: 2px;","border-top: solid "+y+" 2px;","border-bottom: solid "+y+" 2px;","background: linear-gradient(135deg, "+y+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+y+" 3px, rgba(0, 0, 0, 0) 3px);"],J=J.call(B,y)),y=J.join(" "),n.style$=y,y=P.textDecorator,B=[],d=_.k(y,
Nb6),_.k(y,gN)?B.push("yt-core-attributed-string--highlight-text-decorator"):d&&B.push("yt-core-attributed-string--bracket-text-decorator"),y=B.join(" "),n.className=y,n.dir="auto"),y=_.k(P.textDecorator,gN),B=_.k(P.textDecorator,Nb6),d=_.k(P.textDecorator,gN),J=_.k(P.textDecorator,Nb6),V.push(LP({run:P,textLength:f,tag:"span",config:n,startIndex:(y==null?void 0:y.startIndex)||(B==null?void 0:B.startIndex)||0,length:(d==null?void 0:d.length)||(J==null?void 0:J.length)||0}));if(W.commandRuns&&(l==
null||!l.noEndpoints))for(R=_.L(W.commandRuns),r=R.next();!r.done;r=R.next())r=r.value,P=Ifv(r,l),V.push(LP({run:r,textLength:f,tag:"a",config:P,startIndex:r.startIndex,length:r.length}));if(W.attachmentRuns)for(W=_.L(W.attachmentRuns),R=W.next();!R.done;R=W.next()){R=R.value;n=P=void 0;r={className:"yt-core-attributed-string--inline-block-mod"};if((n=R.element)==null?0:n.properties){n=(P=R.element)==null?void 0:P.properties;P=[];n=_.k(n,xfj);if(n==null?0:n.margin)n=n.margin,n.left&&P.push("margin-left: "+
lp(n.left)+";"),n.right&&P.push("margin-right: "+lp(n.right)+";"),n.top&&P.push("margin-top: "+lp(n.top)+";"),n.bottom&&P.push("margin-bottom: "+lp(n.bottom)+";");P=P.length!==0?P.join(" "):void 0;r.style$=P}y=void 0;P={alt:"",preserveHeight:!0,preserveWidth:!0};n=["yt-core-attributed-string__image-element"];if(R.alignment){a:switch(R.alignment){case "ALIGNMENT_BASELINE":B="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":B="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:B="yt-core-attributed-string__image-element--image-alignment-bottom"}n.push(B)}if((y=R.element)==null?0:y.properties)y=[],B=_.k(R.element.properties,xfj),(B==null?0:B.height)&&y.push("height: "+lp(B.height)+";"),(B==null?0:B.width)&&y.push("width: "+lp(B.width)+";"),y=y.length!==0?y.join(" "):void 0,P.style$=y,B=void 0,y=((B=_.k(R.element.properties,e3S))==null?void 0:B.label)||"",P.alt=y;P.className=n.join(" ");n=void 0;d=B=void 0;y=((d=R.element)==null?0:d.type)?(B=_.k(R.element.type,
qav))==null?void 0:B.image:void 0;V.push(LP({run:R,textLength:f,tag:"img",image:y,imageConfig:P,imageWrapperConfig:r,startIndex:R.startIndex,length:(n=R.length)!=null?n:0}))}if(l==null?0:l.headerRuns)for(l=_.L(l.headerRuns),W=l.next();!W.done;W=l.next())if(W=W.value,W.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(W.headerMapping)){a:{switch(W.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":R=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":R="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":R="yt-core-attributed-string--heading-3";break a}R=void 0}V.push(LP({run:W,textLength:f,tag:"span",config:R?{className:R}:void 0,startIndex:W.startIndex,length:W.length}))}return V};
_.CP=function(W){return(W==null?void 0:W.content)!==void 0};
SaJ=function(W){return _.CP(W)?W:_.$J(W)};
E46=function(W){return W.image!==void 0&&W.imageConfig!==void 0};
$fx=function(W,l){if(l==null?0:l.userInput)for(W=_.L(W),l=W.next();!l.done;l=W.next())if(l=l.value,l.tag!=="a"&&l.tag!=="li"){var V=void 0;(V=l).config||(V.config={});l.config.dir=l.tag==="ul"?_.tY().resolve(_.cI):"auto"}};
WRF=function(W){return function(l){var V=W.run;(V.onTap!==void 0||V.onLongPress!==void 0)&&_.k(V,L5j)&&afq(l,{loggingDirectives:_.k(V,L5j)})}};
lVz=function(W){return function(l){for(var V in W)(r6[V]||r6[N_["default"]])(l,V,W[V])}};
R9q=function(W,l){V0v(l);var V={data:null,start:0,end:W.length,parts:[]};l=_.L(l);for(var f=l.next();!f.done;f=l.next())f=f.value,fVJ(V,f.startIndex,f.endIndex,f);ri6(W,V);return V};
fVJ=function(W,l,V,f){for(var r=_.L(W.parts),R=r.next();!R.done;R=r.next()){R=R.value;if(typeof R==="string")throw Error("kh");if(R.start<=l&&V<=R.end){fVJ(R,l,V,f);return}}W.parts.push({data:f,parts:[],start:l,end:V})};
ri6=function(W,l){for(var V=l.parts.length;V>=0;V--){var f=l.parts[V],r=l.parts[V-1],R=V===l.parts.length?l.end:f.start;r=V===0?l.start:r.end;R!==r&&l.parts.splice(V,0,W.slice(r,R));f&&ri6(W,f)}};
V0v=function(W){W.sort(function(l,V){if(l.startIndex<V.startIndex)return-1;if(V.startIndex<l.startIndex)return 1;l=l.endIndex-l.startIndex;V=V.endIndex-V.startIndex;return l>V?-1:V>l?1:0})};
_.t0j=function(W){var l=W.thumbnails;if(l){W={sources:[]};l=_.L(l);for(var V=l.next();!V.done;V=l.next()){V=V.value;var f={};f.url=V.url;f.width=V.width;f.height=V.height;W.sources.push(f)}return W}};
sdx=function(W,l,V,f){if(!l)return W.length>=1?W[W.length-1]:null;if(f)for(var r=_.L(W),R=r.next();!R.done;R=r.next()){R=R.value;var y=void 0,P=(y=R.url)==null?void 0:y.indexOf(f);if(P!==void 0&&P>=0)return R}f=_.L(W);for(r=f.next();!r.done;r=f.next())if(r=r.value,r.width&&r.height&&(V&&r.width>=l||!V&&r.height>=l))return r;for(l=W.length-1;l>=0;l--)if(V&&W[l].width||!V&&W[l].height)return W[l];return W[0]};
_.LRz=function(W){var l;return(W=(l=W.sources)==null?void 0:l[0])?W.width/W.height:0};
_.yiq=function(W){if(W.sources){W=_.L(W.sources);for(var l=W.next();!l.done;l=W.next()){l=l.value;var V=void 0;if((V=l.clientResource)==null?0:V.imageName)return l}}};
gKq=function(W){var l;if((l=W.clientResource)!=null&&l.imageColor)return _.sD(W.clientResource.imageColor)};
_.nKg=function(W,l,V,f,r,R,y){if(!l||l.length===0||l[0].clientResource)return null;if(V&&l[0].url)return l[0].url;f===void 0&&(f=!0);if(f){var P;W=Pqn*(r||(W==null?void 0:(P=W.getBoundingClientRect())==null?void 0:P.width)||0)}else{var n;W=Pqn*(R||(W==null?void 0:(n=W.getBoundingClientRect())==null?void 0:n.height)||0)}l=sdx(l,W,f,y);return(l==null?0:l.url)?l.url:(l==null?0:l.imageData)?l.imageData:null};
Cqn=function(W,l,V){V=V?[V]:[];W.opacity&&V.push("opacity: "+W.opacity+";");l&&W.placeholderColor?(W=_.sD(W.placeholderColor),V.push("background-color: "+W+";")):V.push("background-color: transparent;");return V.join(" ")};
civ=function(W,l,V,f,r){var R=["ytCoreImageHost"];l&&R.push(l);V||R.push("ytCoreImageFillParentHeight");f||R.push("ytCoreImageFillParentWidth");switch(W.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":R.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":R.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":R.push("ytCoreImageContentModeCenter");break;default:R.push("ytCoreImageContentModeScaleToFill")}W.flipForRtlLayout&&R.push("ytCoreImageFlipRtl");
switch(r){case "TOP_START":var y;R.push(((y=document.body)==null?void 0:y.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return R.join(" ")};
d9q=function(W){var l;if(W==null?0:(l=W.clientResource)==null?0:l.imageName){var V;W=(V=W.clientResource)==null?void 0:V.imageName;a:{switch(W){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":V="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":V="yt-logos-ext:yt-logo-updated";break a}V=void 0}return V||Bpq.get(W)||W}};
U9j=function(W){return _.U("mweb_wiz_skip_render")?Ji8(W):D9z(W)};
Ji8=function(W){return function(l){var V=wSv("wink-root");Q_4();AHj();_.g14(V,_.C(W,l))}};
D9z=function(W){var l=l===void 0?!1:l;return function(V){if(!l||!_.U("mweb_skip_keto_to_c3_if_no_data")||V.data!==void 0){var f=yj(!1);try{var r=V.children;_.U("mweb_render_outside_patch_killswitch")||q_?r?fj(_.C(W,V,r)):fj(_.C(W,V)):_.Qe(new _.bP("ketoToC3 called outside of a patch",{tagName:W.TAG_NAME}))}finally{yj(f)}}}};
uiU=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
vK6=function(W,l){W.onViewportEntered=l;k58.observe(W)};
HOS=function(){var W={rootMargin:"10%",threshold:.01};_.U("mweb_enable_set_io_root_to_null_safari")?W.root=null:_.U("mweb_enable_set_io_root_to_body_safari")&&(W.root=document.body);return new IntersectionObserver(function(l,V){l.filter(function(f){return f.intersectionRect.height>0}).forEach(function(f){f=f.target;
if(!_.U("mweb_enable_only_update_image_when_connected")||f.isConnected!==!1){var r;(r=f.onViewportEntered)==null||r.call(f);V.unobserve(f)}})},W)};
KRY=function(W,l,V,f,r){function R(){if(f){var P=f.loadedClass,n=f.notifyOnUnloaded;P&&_.BI(W,P);n&&W.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function y(){var P=V(l,W);P&&W.getAttribute("src")!==P&&(_.U("mweb_enable_only_update_image_when_connected")&&W.isConnected===!1||P===W.src||(W.src=P),R())}
r=r===void 0?!0:r;W.removeAttribute("src");R();l&&(r?vK6(W,y):y())};
FRg=function(W,l,V){if(!l)return!1;l=V(l,W);V=W.getAttribute("src");return l&&l===V&&W.complete};
G5n=function(W,l){for(var V in l)V==="className"?W.className=l[V]:(r6[V]||r6[N_.default])(W,V,l[V])};
bOY=function(W,l,V,f){U9j(_.dN)({contentMode:l.contentMode,loadedClass:l.loadedClass,isPreloaded:l.isPreloaded,notifyOnLoaded:l.notifyOnLoaded,notifyOnUnloaded:l.notifyOnUnloaded,preferredThumbnail:l.preferredThumbnail,preserveHeight:l.preserveHeight,preserveWidth:l.preserveWidth,objectPosition:l.objectPosition,targetWidth:l.targetWidth,targetHeight:l.targetHeight,shouldShowPlaceholder:l.shouldShowPlaceholder,useWidth:l.useWidth,isToggled:l.isToggled,alt:l.alt,className:l.className,onerror:l.onerror,
onload:l.onload,style$:l.style$,color:l.color,width:l.width,height:l.height,"aria-hidden$":l["aria-hidden$"],draggable:l.draggable,"data-disabled$":l["data-disabled$"],data:W,callback:V,renderLazy:f===void 0?!0:f,hideOn404:!1})};
oKg=function(W,l,V){V=V===void 0?!1:V;var f=W.sources!==void 0?W:_.t0j(W);if(f){var r=l.onload;l.onload=function(n){var B=n.target;V&&B.naturalWidth===120||_.J2(B,"ytCoreImageLoaded");l.notifyOnLoaded&&B.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));r==null||r(n)};
l.targetWidth&&l.preserveWidth&&(l.width=l.targetWidth);l.targetHeight&&l.preserveHeight&&(l.height=l.targetHeight);var R=_.yiq(f),y=R&&d9q(R);if(y)return(W=gKq(R))&&(l.color=W),{type:"icon",iconName:y,config:Object.assign({},l,l.alt?{}:{"aria-hidden$":"true"},{"aria-label$":l.alt,role:"img"})};if(W.sources===void 0){l.alt=W.accessibility&&W.accessibility.accessibilityData&&W.accessibility.accessibilityData.label||l.alt;l.style$=Cqn(W,l.shouldShowPlaceholder,l.style$);var P;l.isPreloaded=!((P=_.k(W,
pKS))==null||!P.isPreloaded)}l.contentMode&&!f.contentMode&&(f.contentMode=l.contentMode);l.className=civ(f,l.className,l.preserveHeight,l.preserveWidth,l.objectPosition);l.loadedClass="ytCoreImageLoaded";return{type:"image",image:f,config:l}}};
_.DN=function(){var W=_.xk.apply(0,arguments);return _.lN(jdF,function(l){var V=W.map(function(f){return f==null?void 0:f(l)});
return function(){return void V.forEach(function(f){return void(f==null?void 0:f())})}})};
UZ=function(W,l){var V=l==null?void 0:l.initial;return _.v4(function(){_.w9(!0);return V=W(V)},{equals:l==null?void 0:l.isEqual},"rSlKsc")};
IVz=function(W,l){if(W===l)return!0;if(W===void 0||l===void 0)return!1;var V,f,r,R,y,P,n,B;return W.content===l.content&&((V=W.styleRuns)==null?void 0:V.length)===((f=l.styleRuns)==null?void 0:f.length)&&((r=W.commandRuns)==null?void 0:r.length)===((R=l.commandRuns)==null?void 0:R.length)&&((y=W.attachmentRuns)==null?void 0:y.length)===((P=l.attachmentRuns)==null?void 0:P.length)&&((n=W.decorationRuns)==null?void 0:n.length)===((B=l.decorationRuns)==null?void 0:B.length)};
XKz=function(W,l){if(W){var V=SaJ(W);if(V!=null&&V.content)if(_.U("attr_string_reactive"))U9j(iO4)({text:W,config:l});else{var f=!(l==null||!l.ariaLabel)||!(V.commandRuns&&V.commandRuns.length!==0||V.paragraphStyleRuns&&V.paragraphStyleRuns.length!==0);W=f?l==null?void 0:l.ariaLabel:null;f=f?"text":null;t8n("span",{className:Tbg(V,l),dir$:(l==null?0:l.userInput)?"auto":void 0,"aria-label$":W,role$:f},function(){if(V.styleRuns||V.commandRuns||V.attachmentRuns||V.decorationRuns||V.paragraphStyleRuns){var r=
h3U(V,l);$fx(r,l);r=R9q(V.content,r);r=_.L(r.parts);for(var R=r.next();!R.done;R=r.next())m9F(R.value)}else Yun(V.content)})}}};
m9F=function(W){typeof W==="string"?Yun(W):E46(W.data)?t8n("span",W.data.imageWrapperConfig,function(){bOY(W.data.image,W.data.imageConfig)}):t8n(W.data.tag,W.data.config,function(l){WRF(W.data)(l);
l=_.L(W.parts);for(var V=l.next();!V.done;V=l.next())m9F(V.value)})};
wKU=function(W){return W.parts.map(Tp6)};
Tp6=function(W){if(typeof W==="string")return W;W=E46(W.data)?_.C("span",{el:_.DN(lVz(W.data.imageWrapperConfig))},_.C(_.dN,Object.assign({},{data:W.data.image},W.data.imageConfig))):_.C(W.data.tag,{el:_.DN(WRF(W.data),lVz(W.data.config))},W.parts.map(Tp6));return k2(W)};
AiS=function(W,l){return W===l?!0:W===void 0||l===void 0?!1:W.noStyleRuns===l.noStyleRuns&&W.noLinkColor===l.noLinkColor&&W.noEndpoints===l.noEndpoints&&W.headerRuns===l.headerRuns&&W.isOverlay===l.isOverlay&&W.linkInheritColor===l.linkInheritColor&&W.userInput===l.userInput&&W.isHeadline===l.isHeadline};
Qdj=function(W){return function(){var l,V,f,r,R,y,P,n,B,d,J,D,u,H;return{ariaLabel:(l=W.ariaLabel)==null?void 0:l.call(W),className:(V=W.className)==null?void 0:V.call(W),ellipsisTruncate:(f=W.ellipsisTruncate)==null?void 0:f.call(W),isOverlay:(r=W.isOverlay)==null?void 0:r.call(W),linkInheritColor:(R=W.linkInheritColor)==null?void 0:R.call(W),noEndpoints:(y=W.noEndpoints)==null?void 0:y.call(W),noStyleRuns:(P=W.noStyleRuns)==null?void 0:P.call(W),noLinkColor:(n=W.noLinkColor)==null?void 0:n.call(W),
noPreWrap:(B=W.noPreWrap)==null?void 0:B.call(W),noWrap:(d=W.noWrap)==null?void 0:d.call(W),skipOnClick:(J=W.skipOnClick)==null?void 0:J.call(W),userInput:(D=W.userInput)==null?void 0:D.call(W),headerRuns:(u=W.headerRuns)==null?void 0:u.call(W),isHeadline:(H=W.isHeadline)==null?void 0:H.call(W)}}};
_.M04=function(W){return W.value===""||W.value==="true"?!0:W.value==="false"?!1:isNaN(Number(W.value))?W.value:Number(W.value)};
up=function(W,l){W=new ZO4(W,l);_.wv(W);throw W;};
OOq=function(W,l,V){var f=Exx(W);W._numRenders=0;try{var r=_.o1U(function(){return _.C(l,Object.assign({},V))})}catch(y){var R=function(P){P.args||(P.args=[]);
P.args.push("Error in web component wrapper");P.args.push(W.tagName.toLowerCase());return P};
_.Ar(y instanceof Error?R(y):new ZO4("Wiz rendering error",W.tagName.toLowerCase()));throw y;}finally{Exx(f)}return r};
_.HI=function(W,l,V){function f(d){var J={};d=_.L(d);for(var D=d.next();!D.done;D=d.next()){D=D.value;var u=void 0,H=void 0,p=void 0,X=_.Q9((p=(H=(u=D).getAttribute)==null?void 0:H.call(u,"slot"))!=null?p:"children");if(u=J[X])u.push(D);else if(X in R||X==="children")J[X]=[D]}d=_.L(Object.keys(J));X=d.next();for(D={};!X.done;D={content$jscomp$57:void 0},X=d.next())X=X.value,X!=="children"&&(D.content$jscomp$57=J[X],J[X]=function(w){return function(){return w.content$jscomp$57}}(D));
return J}
V=V===void 0?{}:V;W.componentType!==_.oi||up("Components must be marked reactive to be used from web component wrapper.",l);_.Kk.has(l)&&up("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",l);var r,R=(r=V.props)!=null?r:{};FY.add(l);var y=_.aVJ();r=function(){var d=y.apply(this,arguments)||this;d.rawProps={};d.queuingRender=!1;d.dispose=function(){};
d.isWebComponentWrapper=!0;d.isReparenting=!1;d.hasRendered=!1;return d};
_.v(r,y);r.prototype.render=function(){this.hasRendered=!0;for(var d=_.L([].concat(_.QK(this.attributes))),J=d.next();!J.done;J=d.next())J=J.value,J.name!=="slot"&&J.name!=="hidden"&&this.removeAttribute(J.name);d=Object.assign({},this.componentProps,this.slotProps);J=_.L(OOq(this,W,d));d=J.next().value;J=J.next().value;!(d[0]instanceof Element)||d.length>1?up("Wrapped Wiz components must return a single root element.",l):(d=d[0].tagName.toLowerCase(),d!==l&&up("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(d+" !== '"+l),l),this.dispose=J)};
r.prototype.setUpProps=function(){for(var d=this.rawProps,J=this.attributes,D=_.L(Object.keys(R)),u=D.next();!u.done;u=D.next()){u=u.value;var H=void 0;((H=this)==null?0:H[u])&&this[u]!==z9n&&d[u]===void 0&&(d[u]=this[u],(H=Object.getOwnPropertyDescriptor(this.constructor.prototype,u))&&Object.defineProperty(this,u,H))}D=_.L(J);for(u=D.next();!u.done;u=D.next()){H=u.value;u=_.Q9(H.name);var p=u==="class"&&!J.getNamedItem("class-name");if(u in R||p)H=_.M04(H),u!=="class"||d.className?d[u]=H:d.className=
H}J={};for(var X in R)R[X]!==_.kh&&R[X]!==NpU&&(d[X]instanceof Function&&up("Function props must be configured as STATIC, not SIGNAL.",l),u=_.L(_.J4(d[X],void 0,"Ri8MSe")),D=u.next().value,u=u.next().value,J[X]=u,d[X]=D);d=_.L([d,J]);this.componentProps=d.next().value;this.setters=d.next().value;this.slotProps=f(this.childNodes)};
r.prototype.connectedCallback=function(){_.vI===l&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in R&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
r.prototype.disconnectedCallback=function(){if(!this._isInert){var d;a:{if(_.Yvq)for(d=this;d;){if(_.x9U.has(d)){d=!0;break a}d=d.parentElement}d=!1}if(d)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){d=_.L([].concat(_.QK(this.attributes)));for(var J=d.next();!J.done;J=d.next()){J=J.value;var D=void 0;J.name==="slot"||J.name==="hidden"&&((D=V.unsafeExternallySettableAttributes)==null?0:D.has("hidden"))||this.removeAttribute(J.name)}}this.innerText="";NWn(this)}}};
r.prototype._setPendingPropertyOrPath=function(){};
r.prototype.notifyPath=function(){};
_.rc.Object.defineProperties(r.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var P=_.L(Object.keys(R)),n=P.next(),B={};!n.done;B={prop$jscomp$105:void 0},n=P.next())B.prop$jscomp$105=n.value,n=void 0,((n=V.legacyPolymer)==null?0:n.forwardHostProps)&&awj.has(B.prop$jscomp$105)||Object.defineProperty(r.prototype,B.prop$jscomp$105,{set:function(d){return function(J){var D=this;this._isInert||(this.setters?H4(function(){var u,H;return void((H=(u=D.setters)[d.prop$jscomp$105])==null?void 0:H.call(u,J))}):(this.rawProps[d.prop$jscomp$105]=J,this.queuingRender&&d.prop$jscomp$105===
"data"&&J!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(B),
get:e9q.has(B.prop$jscomp$105)?void 0:function(){return z9n}});
customElements.define(l,r)};
_.qvY=function(W,l){return(W=_.KP(W,l))?_.MI(_.NI(W)):null};
_.F3=function(W){if(W=_.KP(W,Number.MAX_VALUE,void 0,"width"))return _.NI(W)};
_.KP=function(W,l,V,f){f=f===void 0?"width":f;if(!W||!W.length)return null;if(_.U("kevlar_tuner_should_always_use_device_pixel_ratio")){var r=window.devicePixelRatio;_.U("kevlar_tuner_should_clamp_device_pixel_ratio")?r=Math.min(r,_.yS("kevlar_tuner_clamp_device_pixel_ratio")):_.U("kevlar_tuner_should_use_thumbnail_factor")&&(r=_.yS("kevlar_tuner_thumbnail_factor"));h9z=r}else h9z||(h9z=window.devicePixelRatio);r=h9z;_.U("kevlar_tuner_should_always_use_device_pixel_ratio")?l*=r:r>1&&(l*=r);if(_.U("kevlar_tuner_min_thumbnail_quality"))return W[0].url||
null;r=W.length;if(_.U("kevlar_tuner_max_thumbnail_quality"))return W[r-1].url||null;if(V)for(var R=0;R<r;R++)if(W[R].url.indexOf(V)>=0)return W[R].url||null;for(V=0;V<r;V++)if(W[V][f]>=l)return W[V].url||null;for(l=r-1;l>0;l--)if(W[l][f])return W[l].url||null;return W[0].url||null};
$9U=function(){Gm.size?setTimeout(function(){bp(Sv8)},0):EKY=0};
Sv8=function(){var W=(0,_.tv)(),l=null,V=!1;Gm.forEach(function(r){r.loaded=!0;r.loadTime=W;r.pendingPaint=!1;var R=WDY.get(r);R&&R.resolve(W);l=r;V||!r.ftlEligible&&r.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(V=!0)});
var f;((f=l)==null?0:f.markDirty)&&l.markDirty();Gm.clear();EKY=0;V&&lDF(W)};
V5n=function(W){Gm.add(W);W.pendingPaint=!0;EKY||(EKY=_.pP(_.w8,$9U))};
fDz=function(W){W.loaded=!1;W.loadTime=Infinity;var l=WDY.get(W);l&&(l.reject(Error("qh")),WDY.delete(W));W.pendingPaint&&(Gm.delete(W),W.pendingPaint=!1)};
_.rXY=function(W){var l=W.indexOf(":");return l===-1?{originalName:W}:{originalName:W.substring(0,l),datasyncId:W.substring(l+1)}};
_.t5g=function(){return _.g(function(W){if(R0g!==void 0)return W.return(R0g);R0g=new Promise(function(l){var V;return _.g(function(f){switch(f.nextAddress){case 1:return _.HG(f,2),f.yield(_.of.open("test-only"),4);case 4:return f.yield(_.of.delete("test-only"),5);case 5:_.qL(f,3);break;case 2:if(V=_.pc(f),V instanceof Error&&V.name==="SecurityError")return l(!1),f.return();case 3:l("caches"in window),_.ju(f)}})});
return W.return(R0g)})};
yXJ=function(){return _.g(function(W){if(W.nextAddress==1)return W.yield(_.t5g(),2);if(!W.yieldResult)return W.return(void 0);syS||(syS=new LD8);return W.return(syS)})};
gbv=function(W){var l,V,f,r;return _.g(function(R){switch(R.nextAddress){case 1:return R.yield(yXJ(),2);case 2:l=R.yieldResult;if(!l)throw Error("sh");return R.yield(l.open("yt-player-local-img"),3);case 3:return V=R.yieldResult,R.yield(V.match(W),4);case 4:f=R.yieldResult;if(!f)throw Error("th");return R.yield(f.blob(),5);case 5:return r=R.yieldResult,R.return(r)}})};
P8z=function(W,l){for(var V in W)if(W.hasOwnProperty(V)&&l[V])return V;return null};
nbF=function(W){return"stamp"+W.replace("-","_")+"_"};
C86=function(W){var l=W.match(/\[\[([\w\.]+)\]\]/);if(l&&l.length>1)return l[1];_.wv(Error("vh`"+W));return null};
cXY=function(W){return W===void 0?_.ZL("REUSE_COMPONENTS",!1):W||!1};
JXj=function(W,l,V){V&&(l.is?(BXq.has(l)&&(W=BXq.get(l),V=W.listener,delete l[W.property],V.type==="element"&&l.removeEventListener(V.eventName,V.handler),BXq.delete(l)),dEz(l)):l.__proto__==HTMLElement.prototype&&(l=new _.bP("Rendererstamper removed a non custom element","Stamper: "+W+" element: "+(l&&l.nodeName)),_.Qe(l)))};
DEF=function(W,l,V,f){var r=l.node?l.node:l;_.GS(V).parentNode===r&&(l.removeChild(V),JXj(W,V,f));if(W=j1.get(V))j1.delete(V),_.w8.cancelJob(W);V.hidden=!1};
UEz=function(W,l,V,f){if(l&&l.children&&(V=l.children[V]))if(_.ZL("DEFERRED_DETACH"))for(;V&&!j1.has(V);){var r=W,R=l,y=V,P=f;y.hidden=!0;r=_.pS(_.w8,DEF.bind(null,r,R,y,P),0);j1.set(y,r);V=V.nextElementSibling}else for(;(y=l.lastElementChild)&&(l.removeChild(y),JXj(W,y,f),y!=V););};
_.If=function(){for(var W=_.xk.apply(0,arguments),l=!0,V=_.L(W),f=V.next();!f.done;f=V.next())if(typeof f.value!=="string"){l=!1;break}return l?W.join(" ").trim()||void 0:function(){for(var r="",R=_.L(W),y=R.next();!y.done;y=R.next())if(y=y.value,typeof y==="function"&&(y=y()),y)if(typeof y==="string")r+=" "+y;else for(var P in y)if(y.hasOwnProperty(P)){var n=y[P];typeof n==="function"&&(n=n());n&&(r+=" "+P)}r=r.trim()||void 0;return _.w9(r)}};
kZU=function(W){var l;return(l=uhn[W])!=null?l:"EVENT_SPAN_TYPE_UNKNOWN"};
vbx=function(W){var l=W.nodeName;if(W.id)return l+="#"+W.id;if(W.classList)for(var V=_.L(W.classList),f=V.next();!f.done;f=V.next())l+="."+f.value;W.parentElement&&(l=vbx(W.parentElement)+" > "+l);return l};
Hg8=function(W){return function(l){var V=kZU(l.type);return V==="EVENT_SPAN_TYPE_UNKNOWN"?W(l):jz8("event",{type:V,nodepath:l.target instanceof Element?vbx(l.target):void 0},function(){return W(l)})}};
_.ip=function(W){W&&pog("event")&&(W=Hg8(W));return t$6(function(l){var V,f=(V=W)==null?void 0:V(l);return typeof f==="boolean"?f:!0})};
mr=function(W){return function(){return W()?W():void 0}};
bgg=function(W){var l=_.WS("animated-rolling-character"),V=vuJ(),f=Jg(W.character)||Jg(W.previousCharacter);Pjv(function(){if(W.marginMultiplier){var r;(r=V.value)==null||r.cancel();f?(r=W.previousCharacter?Number(W.previousCharacter)+10:W.rollUp?0:30,W.shouldAnimate||(r-=KD4(W,r))):(r=W.rollUp?0:2,W.shouldAnimate||(r-=W.rollUp?-1:1));l.value.style.marginTop="-"+r*W.marginMultiplier+"px";W.shouldAnimate?V.value=FD6(l.value,W,r,f):l.value.style.display=W.character?"":"none"}});
return _.C("animated-rolling-character",{el:l,class:"animatedRollingCharacterHost"},kdv(f,function(){for(var r=[],R=1;R<30;R++)r.push(_.C("div",null,R%10));return _.C(_.Lp,null,_.C("div",null,"\u00a0"),r,_.C("div",null,"\u00a0"))},function(){return GZF(W.character)}))};
GZF=function(W){return _.C(_.Lp,null,_.C("div",null,"\u00a0"),_.C(_.Lp,null,kdv(!W||_.gS(W),function(){return _.C("div",null,"\u00a0")},function(){return _.C("div",null,W)})),_.C("div",null,"\u00a0"))};
FD6=function(W,l,V,f){V=new Animation(new KeyframeEffect(W,[{transform:"translateY(0px)"},{transform:"translateY("+(f?KD4(l,V):l.rollUp?-1:1)*l.marginMultiplier+"px)"}],p6J),document.timeline);l.character?(W.style.display="",V.onfinish=null):V.onfinish=function(){W.style.display="none"};
V.play();return V};
KD4=function(W,l){var V=Number(W.character)+10;if(W.previousCharacter)if(W.character){var f=Number(W.character),r=Number(W.previousCharacter);W=W.rollUp?r<f?V:V+10:r<f?V-10:V}else W=W.rollUp?30:0;else W=W.character==="0"?V:W.rollUp?V-10:V+10;return l-W};
obF=function(W){return function(l){var V={},f;for(f in l){var r=void 0,R=void 0;((r=void 0)==null?0:(R=r.callbacks)==null?0:R[f])||(V[f]=l[f])}return _.C(pfY,null,function(){for(var y in V)l[y]=_.w9(V[y]);l.disableReactiveLogging=!0;return _.C(W,Object.assign({},l))})}};
igq=function(W,l,V,f,r,R,y){V=new Animation(new KeyframeEffect(W,[{transform:"translateY(0px)"},{transform:"translateY("+(R?jy6(l,V,f,r):f?-1:1)*y+"px)"}],IDn),document.timeline);l?(W.style.display="",V.onfinish=null):V.onfinish=function(){W.style.display="none"};
V.play();return V};
jy6=function(W,l,V,f){var r=Number(W)+10;l?W?(W=Number(W),l=Number(l),V=V?l<W?r:r+10:l<W?r-10:r):V=V?30:0:V=W==="0"?r:V?r-10:r+10;return f-V};
X6J=function(W){var l=vuJ(),V=vuJ();Jgz(function(){l.value=W.numberText;V.value=W.numberValue},[W.numberText]);
var f=W.fontSizeMultiplier?W.heightPx*W.fontSizeMultiplier:W.heightPx,r=ktv(function(){if(W.numberText){var y=W.numberText;var P=W.forceRollUp||!V.value||!W.numberValue||V.value<W.numberValue;var n=!!W.shouldAnimate,B=l.value,d=[],J=0,D=0,u=(B?B.replace(/\D/g,"").length:0)-(y?y.replace(/\D/g,"").length:0);B=B?B.split(/(\d)/).filter(Boolean):[];for(y=y.split(/(\d)/).filter(Boolean);u<0;){var H=y[D];d.push({character:H,rollUp:P,marginMultiplier:f,shouldAnimate:n});D++;Jg(H)&&u++}for(;J<u;)H=B[J],d.push({previousCharacter:H,
rollUp:P,marginMultiplier:f,shouldAnimate:n}),J++,Jg(H)||u++;for(;D<y.length;)u=y[D],H=B[J],Jg(u)===Jg(H)?(D++,J++):Jg(u)?(J++,u=void 0):Jg(H)&&(D++,H=void 0),d.push({character:u,previousCharacter:H,rollUp:P,marginMultiplier:f,shouldAnimate:n});P=d}else P=[];return P},[W.numberText]),R=W.numberText?["height: "+f+"px;",
"line-height: "+W.heightPx+"px;"].join(" "):"";return _.C("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:R,dir:"ltr","aria-hidden":"true"},r.map(function(y){return _.C(mEz,Object.assign({},y))}))};
TXJ=function(W){return new KeyframeEffect(W,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
w6q=function(W){return new KeyframeEffect(W,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.X3=function(W){var l=UZ(function(V){V=V?d9(V[0]):void 0;return _.J4(W(V),void 0,"AwTxXe")},{isEqual:function(V,f){return d9(V[0])===d9(f[0])}});
return[function(){return l()[0]()},
function(V){return void l()[1](V)}]};
_.Tm=function(W){return function(){var l="",V;for(V in W){for(var f=W[V];typeof f==="function";)f=f();f!==void 0&&f!==null&&(l+="; "+V+": "+f)}return l.length>0?_.w9(l.slice(2)):_.w9()}};
AXF=function(W){switch(W){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"}};
aDv=function(W,l,V,f,r,R,y){var P=Qyv(W),n=P.disabled,B=P.iconPosition,d=P.style,J=P.focused,D=function(){return!!p()&&B()==="icon-only"},u=function(){return!!p()&&B()==="icon-only-40"},H=function(){return!!p()&&B()==="icon-with-label"},p=function(){return!!l||!(f==null||!f())};
return{type:function(){return d()==="call-to-action-inverse"?"text":d()==="overlay-dark"&&W().type!=="filled"&&W().type!=="tonal"?"tonal":W().type},
shouldFocus:function(){return(J()||(R==null?void 0:R()))&&!n()},
hasIconLeading:function(){return!!p()&&B()==="leading"},
hasIconTrailing:function(){return!!p()&&B()==="trailing"},
hasIconLeadingTrailing:function(){return!!p()&&!!(V||r!=null&&r())&&B()==="leading-trailing"},
hasIconOnly:D,hasIconOnly40:u,hasIconWithLabel:H,iconButton:function(){return D()||u()||H()},
visiblyDisabled:function(){return(n()?"disabled":W().state)==="disabled"||n()},
overrideSmallSizeIcon:function(){return!W().ignoreIconSizeOverride&&M5g(W(),p())},
iconToRender:l?l:function(){return _.C(_.wN,{icon:f,size:function(){return ZgJ(W(),!0,W().ignoreIconSizeOverride)},
active:function(){return W().toggled},
iconFilter:function(){return Ogz(W())},
animateIcon:y})},
secondaryIconToRender:V?V:function(){return _.C(_.wN,{icon:r,size:function(){return ZgJ(W(),!0,W().ignoreIconSizeOverride)},
active:function(){return W().toggled},
iconFilter:function(){return Ogz(W())}})}}};
Qyv=function(W){return{size:function(){return W().size},
style:function(){return W().style},
focused:function(){return W().focused},
disabled:function(){return W().disabled},
onTap:function(l){var V,f;return(f=(V=W()).onTap)==null?void 0:f.call(V,l)},
alignByText:function(){return W().alignByText},
aTagConfig:function(){return W().aTagConfig},
customColors:function(){return W().customColors},
segmentedPosition:function(){return W().segmentedPosition},
toggled:function(){return W().toggled},
toggleable:function(){return W().toggleable},
accessibilityLabel:function(){return W().accessibilityLabel},
onToggle:function(l){var V,f;return(f=(V=W()).onToggle)==null?void 0:f.call(V,l)},
iconPosition:function(){return W().iconPosition},
oneOffCustomTextWrap:function(){return W().oneOffCustomTextWrap},
disableTextEllipsis:function(){return W().disableTextEllipsis},
disableBackdropFilter:function(){return W().disableBackdropFilter},
tooltipText:function(){return W().tooltipText},
ariaHidden:function(){return W().ariaHidden},
tabIndex:function(){return W().tabIndex},
buttonText:function(){return W().buttonText},
formattedButtonText:function(){return W().formattedButtonText},
animatedTextProps:function(){return W().animatedTextProps}}};
M5g=function(W,l){l=(W.iconPosition==="icon-only"||W.iconPosition==="icon-only-40"||W.iconPosition==="icon-with-label")&&l;return!W.segmentedPosition&&l&&W.size==="S"};
ZgJ=function(W,l,V){switch(W.size){case "XS":return 16;case "S":return!V&&M5g(W,l)?24:16;default:return 24}};
z0g=function(W){switch(W){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"}};
NXn=function(W){switch(W){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"}};
YA4=function(W){switch(W){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"}};
Ogz=function(W){if(W.style==="overlay-dark"&&W.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
A2=function(W){return W&&W.endsWith("px")?Number(W.slice(0,-2)):0};
qAq=function(W){var l=l===void 0?{}:l;W=_.L(_.X3(W));var V=W.next().value;return[function(f){var r=_.v4(function(){var P,n,B,d;return{text:(P=V())!=null?P:"",location:(n=l.location)!=null?n:"bottom",offset:(B=l.offset)!=null?B:16,delay:(d=l.delay)!=null?d:1}},void 0,"MgTrkc");
_.m1(function(){var P=r();d9(function(){_.w8.addJob(function(){QY.notify(f,P)},4)})},"WlsgZc");
var R=function(){xEz(f,r())},y=function(){e0Y()};
f.addEventListener("mouseenter",R);f.addEventListener("focus",R);f.addEventListener("mouseleave",y);f.addEventListener("blur",y);f.addEventListener("tap",y);_.Xc(function(){f.removeEventListener("mouseenter",R);f.removeEventListener("mouseleave",y);f.removeEventListener("focus",R);f.removeEventListener("blur",y);f.removeEventListener("tap",y);e0Y()})},
W.next().value]};
SA4=function(W,l){if(!r9){var V;PNv(function(){return V=Gbx(W,l)});
return V}W.parent=h08();return Gbx(W,l)};
h08=function(){var W=_.t4(r9||void 0,Hhz);return _.FuJ(W)?void 0:W};
Me=function(W,l){_.rN(W,Object.assign({},l,{forceClickLogging:!0}))};
$Eq=function(W,l){var V=_.fP(W==null?void 0:W.onTap),f={};V&&(f.getClickedVisualElement=function(){var r;return Ebz(W,V,l==null?void 0:(r=l.value)==null?void 0:r.visualElement)});
f=_.Rf({elementsCommand:W.onTap,forceNewState:!0,additionalCommandArgs:f});return t2(f)?f:void 0};
W_Y=function(W,l,V,f){Me(W,Object.assign({},{form:{element:l,event:V}},f))};
lUS=function(W,l,V,f,r){var R=void 0;return function(y){var P=_.fP(V?W==null?void 0:W.onDisabledTap:W==null?void 0:W.onTap);if(P){var n;R=(n=R)!=null?n:l==null?void 0:l.value;if(P)if(_.U("web_button_vm_click_client_ve_killswitch"))W_Y(P,R,y);else{var B;n=Ebz(W,P,(B=R)==null?void 0:B.visualElement);if(r){W_Y(P,r,y,{clickedVisualElement:n,form:{element:r}});return}W_Y(P,R,y,{clickedVisualElement:n})}}f&&f(y)}};
Ebz=function(W,l,V){l=l==null?void 0:l.clickTrackingParams;var f,r;W=W==null?void 0:(f=W.loggingDirectives)==null?void 0:(r=f.clientVeSpec)==null?void 0:r.uiType;if(V&&W&&!l)return V};
VRU=function(W){switch(W){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"}};
fU6=function(W){switch(W){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"}};
r_U=function(W){switch(W){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"}};
Rk8=function(W){switch(W){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"}};
tR6=function(W,l){return _.mL(W.entities,"engagementToolbarStateEntityPayload",l)};
L_g=function(W){(W=_.zG(W))&&_.sV8(W)};
_.sV8=function(W){var l=_.Wh();l&&_.gJ(l,W)};
y_S=function(W,l,V){_.Gt(W,"yt-open-popup-action",[l,V||W])};
gL8=function(W,l){var V=_.T3(W,"endpoint"),f=_.T3(W,"action");return(V=f?f:V)&&l&&(V=l.navigationEndpointPopupMap[V])&&(W=_.Y2(V,W),(V=_.T3(W,"renderer"))&&l.supportedPopups.hasOwnProperty(V))?{openPopupAction:{popupType:l.popupTypeMap[V],popup:W}}:null};
PgF=function(W,l,V,f){if(f){var r;V=V==null?void 0:(r=V.data)==null?void 0:r.contents;(r=V instanceof Array&&V.length?V[0]:V)&&(V=_.T3(r,"renderer"))&&f.supportedPopups.hasOwnProperty(V)&&(l.stopPropagation(),y_S(W,{openPopupAction:{popupType:f.popupTypeMap[V],popup:r}}))}};
c_8=function(W,l,V,f){f=f===void 0?!1:f;var r=nLx(l);if(r){r.href&&g_(r.href);var R=l.button;R=R!==void 0?R===0&&!ZN(l):!ZN(l);r.data&&R&&Cgq(W,r,l,V,f)}};
Cgq=function(W,l,V,f,r){r=r===void 0?!1:r;var R=_.yS("pbj_navigate_limit",-1)===0;BM8(l);_.tY().resolve(_.R0(NJ));var y=l.data;if(Object.keys(y).length!==0)if(!_.U("unplugged_web_disable_actions_for_cec_endpoint")&&_.k(y,_.Ig))_.U("endpoint_behavior_command_executor_fix_killswitch")||(V.preventDefault(),V.stopPropagation()),_.og(W,[y],W);else if(f=gL8(y,f))y.loggingUrls&&y.loggingUrls.forEach(function(n){n.baseUrl&&_.xs(n.baseUrl)}),V.preventDefault(),V.stopPropagation(),y_S(W,f,l);
else{var P=dYJ(0,l.data,V);if(W=l.getForm)W=W(),P.tempData=P.tempData||{},P.tempData=Object.assign({},P.tempData,W);W=_.d_(V);if(f=W.find(function(n){return!!n.visualElement}))P.createScreenConfig=P.createScreenConfig||{},P.createScreenConfig.clickedVisualElement=f.visualElement;
if(!R)if(V.preventDefault(),V.stopPropagation(),_.k(y,_.J_z)&&!r&&_.mK.instance)_.mK.instance.resolveCommand(y,P);else if(_.U("kevlar_command_handler_formatted_string")&&!r&&_.mK.instance&&DYS(y))r=W.find(function(n){return!!n.is})||V.target,V={form:Object.assign({},P,{event:V,
element:r,originatingNode:l})},_.mK.instance.resolveCommand(y,V);else{y=_.d_(V);V=[];for(r=0;r<y.length;r++)(R=y[r].is)&&V.push(R);ay8({parents:V.join(","),text:l.innerText},function(){_.FN(l,"yt-navigate",P)})}}};
UYn=function(W){if(W=nLx(W))BM8(W),nvz(W.href)};
nLx=function(W){W=_.d_(W);for(var l,V=0;V<W.length;V++)if(l=W[V],l.tagName==="A"&&l.classList.contains("yt-simple-endpoint")){if(!l.data)break;return l}return null};
ZN=function(W){return W.shiftKey||W.altKey||W.metaKey||W.ctrlKey};
urU=function(W,l){var V={itct:l.clickTrackingParams};_.U("kevlar_client_side_screens")&&(!_.k(l,_.N$)||_.U("kevlar_exclude_endpoint_killswitch"))&&(V.endpoint=JSON.stringify(l));_.U("enable_unknown_lact_fix_on_html5")&&_.tY().resolve(_.R0(_.OZ))&&(V.lact=_.sL());y8z(V);_.Ue(W,V)};
BM8=function(W){W.href&&Object.keys(W.data).length!==0&&urU(W.href,W.data)};
DYS=function(W){for(var l=_.L(kUx),V=l.next();!V.done;V=l.next())if(W[V.value])return!1;return!0};
_.vLj=function(W,l){return _.mL(W.entities,"markersEngagementPanelSyncEntity",l)};
HIj=function(W,l){return _.mL(W.entities,"fantasyWinProbabilityEntity",l)};
K_z=function(W,l){return _.mL(W.entities,"fantasyTeamEntity",l)};
F_v=function(W,l){return _.mL(W.entities,"fantasyPlayerEntity",l)};
GU4=function(W,l){return _.mL(W.entities,"booleanEntity",l)};
bIv=function(W,l){return _.mL(W.entities,"qrCodeEntity",l)};
pUU=function(W){return _.mL(W.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
oLY=function(){if(af)return af;if(window.lottie)return af=Promise.resolve(window.lottie);var W=_.Av(_.M4("LOTTIE_URL"));return W?af=new Promise(function(l,V){var f=document.createElement("script");f.addEventListener("load",function(){l(lottie)});
f.addEventListener("error",function(r){var R="Lottie library failed to load.";r?r.message&&(R+=" Original description: "+r.message,_.MJ(r,R)):r=Error(R);_.Qe(r);V(r)});
f.setAttribute("async","");_.tL(f,W);document.head.appendChild(f)}):Promise.reject(Error("wh"))};
jV4=function(){return af?af:oLY()};
IUz=function(W){if(W)switch(W){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.U("kevlar_use_wil_icons"))return W=(W=pUU(_.DJ().getState()))&&W.animationLightUrl&&W.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:W.animationLightUrl,pathDarkTheme:W.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,W?W:zm.get("LIKE");break;case "LIKE_DELHI_PLAYER":return zm.get("LIKE_DELHI_PLAYER")}};
iIq=function(W){var l=IUz(W);if(l)return l;switch(W){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return zm.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return zm.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return zm.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return zm.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return zm.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return zm.get("NOTIFICATION_BELL")}};
mYz=function(W,l){if(!W.closest)return!1;l=!!IUz(l);return _.M4("ID_TOKEN")&&l?!!W.closest("segmented-like-dislike-button-view-model")||!!W.closest("yt-player-quick-action-buttons"):!1};
TMY=function(W,l){if(!W||XUj)l=!1;else{var V;if(!(V=mYz(W,l)))if(W.closest)if(V=!_.M4("ID_TOKEN"),W=W.closest("ytd-subscription-notification-toggle-button-renderer-next"),V||!W)V=!1;else{var f;V=((f=W.data)==null?void 0:f.targetId)==="notification-bell"&&l!=="EXPAND_MORE"}else V=!1;l=V}return l};
wUJ=function(W){var l,V;return _.g(function(f){switch(f.nextAddress){case 1:return _.HG(f,2),f.yield(fetch(W),4);case 4:return l=f.yieldResult,f.yield(l.json(),5);case 5:return f.return(f.yieldResult);case 2:V=_.pc(f),_.Qe(V),_.ju(f)}})};
A_S=function(W,l){var V,f,r;return _.g(function(R){if(R.nextAddress==1)return(V=l?W.pathDarkTheme:W.path)?R.yield(Promise.all([wUJ(V),oLY()]),2):R.return();f=R.yieldResult;r=f[0];Ne.set(V,r);_.ju(R)})};
MRq=function(W,l,V,f){function r(y,P){if(l.value===P&&W!=null&&W.value){for(;W.value.firstChild;)W.value.removeChild(W.value.firstChild);W.value.classList.add("ytSpecIconShapeHost");y(W.value,f)}}
V=_.QVn(_.tY().resolve(_.iD),V);if(typeof V==="function")l.value=null,r(V,null);else{var R=new _.Dx(V.then,V);l.value=R;R.then(function(y){r(y,R)})}};
OIU=function(W,l){var V=document.createElement("div"),f=_.Ih(V,function(){return _.C(_.c,{cond:W,then:function(r){return _.C(ZI8,{data:r,options:l})}})},"D");
return[V,f]};
_.Yh=function(W,l){if(l){var V={};aUJ.forEach(function(f){f=zkv(l,f,"--yt-lightsource-");Object.assign(V,f)});
NMv.forEach(function(f){f=zkv(l,f,"--yt-basic-");Object.assign(V,f)});
_.I1(W,V)}};
zkv=function(W,l,V){var f={};f[V+_.A6(l)]=W&&W[l]?_.sD(W[l]):"";return f};
_.e1=function(W,l,V){xh[W]||(xh[W]={});xh[W][l]=V};
_.qe=function(W){xh[W]||(xh[W]={});return xh[W]};
YVj=function(W){if(!W)return{};var l=W.foregroundTitleColor,V=W.backgroundColor;W=W.borderColor;var f="text";W?f="outline":V&&(f="filled");return{type:f,customColors:{color:l?_.sD(l):void 0,backgroundColor:V?_.sD(V):void 0,borderColor:W?_.sD(W):void 0}}};
SV4=function(W){var l=W.renderer;var V=W.element;var f=W.commandController;var r=W.onTapCallback;var R=W.skipCommandHandling;var y=W.overrides;var P=W.forceIcon;var n=W.forceModernIconButton;var B=W.forceDisabled;var d=W.isSubscribe===void 0?!1:W.isSubscribe;var J=W.isPressed===void 0?!1:W.isPressed;var D=W.useButtonSize===void 0?!1:W.useButtonSize;W=xY6(l);d&&(W.style="mono",W.type="filled");P=!l.icon||!P&&l.text?l.icon?l.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:n?"icon-only":"icon-only-40";P==="icon-only-40"&&(W.type="text");var u;n=Object;d=n.assign;D=ekq(l,D);J=!!l.isSelected||!_.U("web_propagate_is_pressed_killswitch")&&!!J;var H=l.isSelected!==void 0;B=B===void 0?l.isDisabled:B;var p=l.text?_.$J(l.text):void 0;var X,w,O,S=((X=l.accessibilityData)==null?void 0:(w=X.accessibilityData)==null?void 0:w.label)||((O=l.accessibility)==null?void 0:O.label);X=S?S:_.dE(l.text);V=qV8(l,V,f,r,R);f=hkz(l);f!=null&&f.length?(f=_.Rf({innertubeCommand:HQz(f),
forceNewState:!0}),f=t2(f)?f:void 0):f=void 0;return d.call(n,{},W,D,{iconPosition:P},y,{focused:!1,toggled:J,toggleable:H,disabled:B,formattedButtonText:p,accessibilityLabel:X,onTap:V,aTagConfig:f},YVj((u=l.colorData)==null?void 0:u.basicColorPaletteData),{oneOffCustomTextWrap:l.oneOffCustomTextWrap})};
qV8=function(W,l,V,f,r){return function(R){var y=hkz(W);f(y,R);if(!r){y=_.L(y);for(var P=y.next();!P.done;P=y.next())Me(P.value,{form:{element:l,event:R},commandController:V})}}};
hkz=function(W){var l=[];W.command&&l.push(W.command);W.serviceEndpoint&&l.push(W.serviceEndpoint);W.navigationEndpoint&&l.push(W.navigationEndpoint);return l};
ekq=function(W,l){if(l)switch(W.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(W.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
xY6=function(W){switch(W.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"}}};
ELn=function(W,l){return typeof W!=="object"||W===null?!1:Object.keys(l).every(function(V){return V in W})};
$YU=function(W){return Object.fromEntries(Object.keys(W).map(function(l){return[l,l]}))};
WXn=function(W,l,V){return L3F(V,function(f,r){return function(R){var y=_.xk.apply(1,arguments);return ELn(R,W)?r.apply(null,[R[l]].concat(_.QK(y))):r.apply(null,[R].concat(_.QK(y)))}})};
lKS=function(W){return function(l,V){return WXn(W,l,V)}};
_.h2=function(W){return W!=null&&W.watch?W.watch.isTheaterMode:!1};
_.S1=function(W){return W!=null&&W.watch?W.watch.isWatchFullscreen:!1};
_.EZ=function(W){W=_.Vdq(W);return _.U("web_watch_enable_single_column_grid_view")?W:!1};
_.Vdq=function(W){return W.watch.isWatchNarrowWidth};
_.fKg=function(W){return W.watch.openEngagementPanels};
_.$h=function(W){return _.v4(function(){WIJ()();return fwU(W)},{debugName:"d8B62c"},"wfRQAb")};
Wp=function(W,l){return _.mL(W.entities,"likeStatusEntity",l)};
rbg=function(W,l){return _.mL(W.entities,"likeCountEntity",l)};
_.l$=function(W,l){return _.mL(W.entities,"stringEntity",l)};
RAj=function(W,l){if(!W)return!1;var V,f=(V=_.k(W,_.mA))==null?void 0:V.signal;if(f&&l.signalEndpointMap)return!!l.signalEndpointMap[f];var r;if((V=(r=_.k(W,_.VH))==null?void 0:r.request)&&l.continuationEndpointMap)return!!l.continuationEndpointMap[V];for(var R in W)if(l.commandEndpointMap[R])return!0;return!1};
tdU=function(W,l){if(l.streamingEndpointMap)for(var V in W)if(l.streamingEndpointMap[V]&&(W=l.streamingEndpointMap[V]))return W()};
sCn=function(W,l){var V,f=(V=_.k(W,_.mA))==null?void 0:V.signal;if(f&&l.signalEndpointMap&&(V=l.signalEndpointMap[f]))return V();var r;if((V=(r=_.k(W,_.VH))==null?void 0:r.request)&&l.continuationEndpointMap&&(r=l.continuationEndpointMap[V]))return r();for(var R in W)if(l.commandEndpointMap[R]&&(W=l.commandEndpointMap[R]))return W()};
LXS=function(W){var l={"Content-Type":"application/json"};_.M4("EOM_VISITOR_DATA")?l["X-Goog-EOM-Visitor-Id"]=_.M4("EOM_VISITOR_DATA"):_.M4("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=_.M4("VISITOR_DATA"));l["X-Youtube-Bootstrap-Logged-In"]=_.M4("LOGGED_IN",!1);_.M4("DEBUG_SETTINGS_METADATA")&&(l["X-Debug-Settings-Metadata"]=_.M4("DEBUG_SETTINGS_METADATA"));if(W!=="cors"){var V=_.M4("INNERTUBE_CONTEXT_CLIENT_NAME");V&&(l["X-Youtube-Client-Name"]=V);(V=_.M4("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(l["X-Youtube-Client-Version"]=
V);(V=_.M4("CHROME_CONNECTED_HEADER"))&&(l["X-Youtube-Chrome-Connected"]=V);(V=_.M4("DOMAIN_ADMIN_STATE"))&&(l["X-Youtube-Domain-Admin-State"]=V)}_.ZL("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(W=_.M4("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(l["X-YouTube-Lava-Device-Context"]=W):W!=="cors"&&_.ZL("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(W=_.M4("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(l["X-YouTube-Lava-Device-Context"]=W);return l};
ybz=function(W,l){l.watchNextResponse||l.reelItemWatchResponse?l.watchNextResponse?W.content=l.watchNextResponse:W.content=l.reelItemWatchResponse:l.playerResponse?W.player=l.playerResponse:l.reelWatchSequenceResponse&&(W.reelSequence=l.reelWatchSequenceResponse)};
_.fv=function(W){if(!W)return null;for(var l=[],V=0;V<W.textSegments.length;V++){var f=W.textSegments[V];f.text?l.push(f):f.emojiId&&l.push({emoji_id:f.emojiId})}return{text_segments:l}};
cb8=function(W,l,V,f,r,R,y){R=R===void 0?[]:R;var P=new _.rH;P.endpoint=V;if(!V)return _.Ar(new _.bP("handle undefined endpoint",l.tagName)),P;var n=Ew6(V);n.length&&(_.og(W,n,l,f),P.actions=n);V.loggingUrls&&V.loggingUrls.forEach(function(d){d.baseUrl&&eS(d.baseUrl,d.attributionSrcMode)});
n=!_.U("web_skip_impression_click_killswitch")&&f&&f.impression;if(V.clickTrackingParams&&!gXv(V)&&!Pbv(l)&&!n&&(n=_.Qq(),!_.R$(n,l))){var B=l.getScreenLayer&&l.getScreenLayer();B?n.clickCommand(V,null,B):n.clickCommand(V,null)}n=!1;for(B=0;B<R.length;B++)if((0,R[B])(l,V,f)){n=!0;break}!n&&nXY(V)&&(P.ajaxPromise=Cbq(W,l,V,f,r,y));return P};
Pbv=function(W){var l;return(W=(l=W.data)==null?void 0:l.navigationEndpoint)&&!!W.clickTrackingParams};
gXv=function(W){var l=_.k(W,_.mA);if(l&&(l=l.signal)&&Bhn.indexOf(l)>=0)return!0;for(var V in W)if(dZ4.indexOf(V)>=0)return!0;return!1};
nXY=function(W){var l;if(((l=_.k(W,_.mA))==null?void 0:l.signal)==="CLIENT_SIGNAL")return!1;for(var V in W)if(JbF.indexOf(V)>=0)return!1;W=Object.keys(W);return W.length===1&&W[0]==="loggingUrls"?!1:!0};
FXz=function(W,l,V,f,r,R,y){var P=_.ty.instance;if(P&&_.s_(P,f))var n=_.Lv(P,f,r).then(function(d){return(d==null?0:d.data)?d:{data:d}});
else n=W.requestDataForServiceEndpoint(f,r),_.k(f,DZY)||_.k(f,UZY)||_.k(f,_.ukn)||_.k(f,keF)||_.Qe(new _.bP("No RequestBuilder for endpoint",f));var B=_.yH();B.promise.thenCatch(function(){var d=_.T3(f,"action")||_.T3(f,"command")||_.T3(f,"endpoint");d&&(d=f[d],d.hasOwnProperty("onFailureAction")?_.og(l,[d.onFailureAction],V):d.hasOwnProperty("onFailureCommand")&&_.og(l,d.onFailureCommand,V));n.cancel("Resolver promise rejected")});
n.then(function(d){if(d){var J=d.error;if(J){if(R&&R.onServerError)R.onServerError(f,d);B.reject(new _.bP("Response error",f,J))}else if(d=d.data)if(J=d.error){if(R&&R.onServerError)R.onServerError(f,d);B.reject(new _.bP("Returned error",f,J))}else{vXU(l,V,d,f);HlY(d);if(J=S_8(d))for(var D=_.L(J),u=D.next();!u.done;u=D.next()){u=u.value;var H=_.tY().resolve(_.R0(KX8))||gH;if(!_.ty.instance||!H.some(function(X){return!!_.k(f,X)})||_.U("kevlar_response_processor_allowlist_killswitch")){var p=H=void 0;
((p=_.k((H=u)==null?void 0:H.commandMetadata,_.XN))==null?0:p.sendPost)?_.pN(l,[u]):_.og(l,[u],V)}}(D=_.k(d==null?void 0:d.frameworkUpdates,Pp))&&y&&y(D);if(R&&R.onSuccess)R.onSuccess(f,d);B.resolve(new _.nv(d,J))}}else B.reject(new _.bP("Invalid service endpoint provided",f))},function(d){B.reject(d)});
return B.promise};
HlY=function(W){var l;(W=(l=_.k(W==null?void 0:W.onResponseReceivedCommand,_.Gez))==null?void 0:l.continuationItems)&&(W==null?void 0:W.length)===1&&_.k(W[0],bl8)&&_.Wy("so_r",void 0,"search_overview_answer")};
Cbq=function(W,l,V,f,r,R){var y;return(y=l.getNetworkManager&&l.getNetworkManager()?l.getNetworkManager():_.tY().resolve(_.R0(_.lm)))?FXz(y,W,l,V,f,r,R):_.eM("No network manager.")};
vXU=function(W,l,V,f){if(V=V.trackingParams||V.loggingDirectives&&V.loggingDirectives.trackingParams){var r;(_.k(f,pJ6)||_.k(f,oXn)||_.k(f,jCn))&&f.clickTrackingParams?r=_.zG(f.clickTrackingParams):_.U("web_graft_to_parent_command")&&f.clickTrackingParams&&(r=_.zG(f.clickTrackingParams));var R;f=(R=l.getScreenLayer)==null?void 0:R.call(l);l=_.Qq().graftServerVe(V,r,f);_.bj(W,"yt-store-grafted-ve-action",[l])}};
_.IKz=function(W){var l=new Image;return new _.Dx(function(V,f){l.addEventListener("load",function(){V()});
l.addEventListener("error",function(){f()});
l.src=W})};
ilx=function(W){return!!W};
mZ6=function(W){return!!W};
XJx=function(W,l,V){var f=W.rowIndex;f!==void 0&&_.bj(W.hostElement,"yt-section-reactive-dismissal",[f,l,V])};
_.Cv=function(W,l,V){W=_.L(W);for(var f=W.next();!f.done;f=W.next()){f=f.value;if(f===l)break;for(var r=_.L(V),R=r.next();!R.done;R=r.next())if(R=R.value,f.tagName===R||!_.U("web_event_button_role_check_killswitch")&&f.role==="button"&&R==="BUTTON")return!0}return!1};
_.cp=function(W,l,V){W=_.L(W);for(var f=W.next();!f.done;f=W.next()){f=f.value;if(f===l)break;for(var r=_.L(V),R=r.next();!R.done;R=r.next())if(f.id===R.value)return!0}return!1};
Thx=function(W){switch(W){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}};
wJF=function(W,l){if(!W&&!l)return"medium";W=Math.max(W||0,l||0);return W>=256?"large":W>=96?"medium":"small"};
Abj=function(W){switch(W){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.Jy=function(){var W=_.tY().resolve(_.R0(_.Bp));return W?(W=W.getCurrentPage())?_.dH(W):null:null};
_.Dy=function(){var W=_.Jy();if(!W){var l=_.tY().resolve(_.R0(_.Bp)),V=l?typeof l:"no page manager";l=l?l.getCurrentPage():null;V=new _.bP("Player is missing when requested.",V,l?l.tagName:"no page");_.wv(V)}return W};
_.dH=function(W){return W&&W.getPlayer?W.getPlayer():null};
QCg=function(W,l){W={args:{raw_player_response:W}};l&&(W.args=Object.assign({},W.args,l));return W};
MdU=function(W){if(W.args){if(W.args.raw_player_response)return W.args.raw_player_response;if(W.args.player_response)return JSON.parse(W.args.player_response)}};
_.Zlx=function(W,l){var V={url:"/watch?v="+W.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};W.playlistId&&(V.url+="&list="+W.playlistId);W.playerParams&&(V.url+="&pp="+W.playerParams);W={watchEndpoint:W,commandMetadata:{webCommandMetadata:V}};l&&(W.clickTrackingParams=l);return W};
aKv=function(){return OlJ||!!_.Y2("yt.player.Application")};
Nh4=function(){return zAz||!!document.querySelector("link#player-css")};
xZU=function(){function W(){OlJ=!0;YFv.resolve()}
var l,V;return _.g(function(f){YFv||(YFv=new _.mg,aKv()?W():(l=document.createElement("script"),l.addEventListener("load",W),V=_.Tz(_.M4("PLAYER_JS_URL")),_.tL(l,V),document.head.appendChild(l)));return f.return(YFv.promise)})};
qFg=function(){function W(){zAz=!0;eA8.resolve()}
if(!eA8)if(eA8=new _.mg,Nh4())W();else{var l=document.createElement("link");l.id="player-css";l.addEventListener("load",W);var V=_.Tz(_.M4("PLAYER_CSS_URL"));_.gI(l,V,"stylesheet");document.head.appendChild(l)}return eA8.promise};
hAg=function(){return aKv()&&Nh4()?Promise.resolve([]):Promise.all([xZU(),qFg()])};
SF4=function(W,l,V){var f={args:{}};W&&(f.args.raw_player_response=W);l&&(f.args.raw_watch_next_response=l);V&&(f.args=Object.assign({},f.args,V));return f};
lZx=function(W,l,V){var f=!1;f=f===void 0?!0:f;W=typeof W==="string"?_.U_(document,W):W;var r=EXn+"_"+_.qg(W),R=$ZJ[r];if(R&&f)return WGx(l,V)?R.api.loadVideoByPlayerVars(l.args||null):R.loadNewVideoConfig(l),R.api;R=new u$(W,r,l,V,void 0);$ZJ[r]=R;R.addOnDisposeCallback(function(){delete $ZJ[R.getId()]});
return R.api};
WGx=function(W,l){return l&&l.serializedExperimentFlags?l.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):W&&W.args&&W.args.fflags?W.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
VpY=function(){var W=new _.mg;W.resolved=!1;var l=W.resolve;W.resolve=function(V){W.resolved=!0;l(V)};
return W};
rFq=function(W){var l={};fZ6().install((l.document_disposed={callback:W},l))};
kw=function(W,l){if(!W&&Math.random()<=_.yS("kevlar_unified_player_logging_threshold")){W=Error("yh`"+(l?l:"Unspecified error"));if(_.U("kevlar_unified_player_throw_errors"))throw W;_.Qe(W)}};
_.RQv=function(){var W=_.Y2("ytDebugData.callbacks");W||(W={},_.fR("ytDebugData.callbacks",W));return W};
sqv=function(W,l){var V=_.RQv();if(_.U("web_dd_iu")||tp6.includes(W))V[W]=l};
LG4=function(){return _.g(function(W){return W.return({isLeader:_.x5S(_.DJ().getState()),c:_.M4("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.M4("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
yF8=function(){var W;_.g(function(l){if(l.nextAddress==1)return sqv("APP_STATE",LG4),l.yield(_.tY().resolve(_.vp),2);W=l.yieldResult;sqv("PI",function(){return _.g(function(V){return V.return(W.getVideoStats())})});
_.ju(l)})};
gpz=function(W){var l=_.DY(_.yW(_.rS.location.href));W=_.DY(_.yW(W));return _.U("kevlar_clear_non_displayable_url_params")?l==Hp(W):Hp(l)==Hp(W)};
Hp=function(W){var l=_.P34(W);W=W.slice(0);var V=["frags"];_.U("kevlar_hide_pp_url_param")&&V.push("pp");_.U("kevlar_hide_time_continue_url_param")&&V.push("time_continue");V=_.L(V);for(var f=V.next();!f.done;f=V.next())f=f.value,W=_.uj(_.DY(W),f);return _.DY(W)+(l?"#"+l:"")};
Kv=function(W,l){l=Number(l)*1E3;var V=Math.round((0,_.tv)()),f=V.toString();W={innertubeResponse:W,serverDateTimestampMs:f,lastModifiedTimestampMs:f,expireTimestampMs:(V+l).toString()};if(l=_.M4("INNERTUBE_CONTEXT_CLIENT_NAME"))W.clientName=l;return W};
C3S=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++npz};
_.cF8=function(){var W=_.$G(),l=_.Wh();l&&W&&_.n0(l,[W],!0)};
dmn=function(W){return W&&Bzx.some(function(l){return W.includes(l)})};
vpU=function(W){var l=_.k(W,_.x_);if(!l)return!1;var V=l.url,f=l.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!V)return _.wv(Error("Dh")),!1;if(l.target==="TARGET_NEW_WINDOW"){var r={};_.U("resolve_url_parent_tracking_params")&&(!_.lP(V)||VS(window.location.href,V))&&(r={endpoint:W,itct:W.clickTrackingParams});y8z(r);W=null;try{if(f)return W=_.J8U(V,"_blank",r,void 0,f),JF8(_.tY().resolve(DmY),W,V),!0}catch(D){_.wv(D)}_.Ue(V,r);l={target:"_blank",noopener:_.U("set_window_noopener_ks")&&
!l.allowOpener};W=window;f=QP(V)?V:_.NI(typeof V.href!="undefined"?V.href:String(V));r=self.crossOriginIsolated!==void 0;var R="strict-origin-when-cross-origin";window.Request&&(R=(new Request("/")).referrerPolicy);var y=l.noreferrer;if(r&&y&&R==="unsafe-url")throw Error("te");R=y&&!r;y=l.target||V.target;var P=[],n=[],B=!1;for(J in l){var d=l[J];switch(J){case "width":case "height":case "top":case "left":P.push(J+"="+d);break;case "target":break;case "noopener":case "noreferrer":d?n.push(J):(B=!0,
n.push(J+"=false"));break;case "attributionsrc":P.push(J+(d?"="+d:""));break;default:P.push(J+"="+(d?1:0))}}var J=y!==void 0&&!["_blank","_self","_top","_parent",""].includes(y);J=oY()&&J;UmF&&r&&P.length===0&&n.length>0&&!J&&!B?(n.length===2&&(n=["noreferrer"]),_.lM(W,f,y,n[0]),W=uHJ()):(J=P.join(","),_.iF()&&W.navigator&&W.navigator.standalone&&y&&y!="_self"?(J=_.Gz("A"),hO(J,f),J.target=y,R&&(J.rel="noreferrer"),((l=l.attributionsrc)||l==="")&&J.setAttribute("attributionsrc",l),l=document.createEvent("MouseEvent"),
l.initMouseEvent("click",!0,!0,W,1),J.dispatchEvent(l),W=uHJ()):R?(W=_.lM(W,"",y,J),l=_.MI(f),W&&(W.opener=null,l===""&&(l="javascript:''"),l='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Fx(l)+'">',l=EP(l),(f=W.document)&&f.write&&(f.write($k(l)),f.close()))):((W=_.lM(W,f,y,J))&&l.noopener&&(W.opener=null),W&&l.noreferrer&&(W.opener=null)));JF8(_.tY().resolve(DmY),W,V);return!0}l=_.JY(V);l=dmn(l)||V==="https://studio.youtube.com/";f=!(!_.lP(V)||VS(window.location.href,
V));J=V.indexOf("disable_polymer=1")>=0;if(f||J||l)g_(V),hg(),_.PV(V,void 0,void 0,window.top,kcn);else return _.Qe(new _.bP("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",W)),!1;return!0};
_.FGF=function(W,l){l=l===void 0?0:l;if(!(_.k(W,Hmj)||_.k(W,KGq)||_.k(W,_.x_)&&_.k(W,_.x_).url))return!1;var V,f=(V=_.k(W,_.x_))==null?void 0:V.url;V=f?{externalLinkData:{url:f}}:null;return _.Qq().clickCommand(W,V,l)};
GcY=function(W,l){return _.mL(W.entities,"subscriptionStateEntity",l)};
bmn=function(W,l){return _.mL(W.entities,"subscriptionNotificationStateEntity",l)};
pNq=function(W,l){return _.mL(W.entities,"upcomingEventReminderStateEntity",l)};
opv=function(W,l){return _.mL(W.entities,"engagementToolbarSurfaceEntityPayload",l)};
jq8=function(W,l){return _.mL(W.entities,"triStateButtonStateEntityPayload",l)};
IZ6=function(W,l){return _.mL(W.entities,"commerceCartCheckoutButtonEntity",l)};
_.imS=function(W,l){return _.mL(W.entities,"playlistLoopStateEntity",l)};
mmv=function(W,l){return _.mL(W.entities,"commandEntity",l)};
TzS=function(W,l,V,f,r){r=r===void 0?{}:r;return function(R){var y,P;var n=((y=W.loggingDirectives)==null?0:(P=y.clientVeSpec)==null?0:P.uiType)?_.GY(W.loggingDirectives.clientVeSpec.uiType):void 0;r.clickedVisualElement||(r.clickedVisualElement=n);n=XNx(W,l);V(n,R);n=_.L(n);for(y=n.next();!y.done;y=n.next()){y=y.value;P=f;var B=R,d=r;d.form?d.form.event=B:d.form={element:P,event:B};Me(y,d)}}};
XNx=function(W,l){var V=[];l?(W.toggledCommand&&V.push(W.toggledCommand),W.toggledServiceEndpoint&&V.push(W.toggledServiceEndpoint)):(W.defaultCommand&&V.push(W.defaultCommand),W.defaultServiceEndpoint&&V.push(W.defaultServiceEndpoint),W.defaultNavigationEndpoint&&V.push(W.defaultNavigationEndpoint));return V};
wNz=function(W,l){var V=W.toggledStyle||W.style,f;switch((f=l?V:W.style)==null?void 0:f.styleType){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_SUGGESTIVE":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":return{style:"mono",type:"outline",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.jJ=function(){return _.g(function(W){return W.nextAddress==1?W.yield(_.tY().resolve(_.vp),2):W.return(_.tY().resolve(AF8)())})};
_.I$=function(){return _.tY().resolve(AF8)()};
_.i$=function(){return XW(function(){return{lottieEl:void 0}})};
QqJ=function(W,l){return W.startsWith(l.uniqueId)};
MpY=function(W){var l,V;_.g(function(f){if(f.nextAddress==1)return f.yield(_.jJ(),2);l=f.yieldResult;if((V=l)==null||!V.addEventListener)return m$(),f.return();l.addEventListener("onCueRangeEnter",W);_.ju(f)})};
Zmn=function(W){var l,V;_.g(function(f){if(f.nextAddress==1)return f.yield(_.jJ(),2);l=f.yieldResult;if((V=l)==null||!V.removeEventListener)return m$(),f.return();l.removeEventListener("onCueRangeEnter",W);_.ju(f)})};
Omz=function(W){var l,V,f,r,R;_.g(function(y){if(y.nextAddress==1)return y.yield(_.jJ(),2);l=y.yieldResult;if((V=l)==null||!V.addCueRange)return m$(),y.return();f=_.L(W.timings);for(r=f.next();!r.done;r=f.next())R=r.value,l.addCueRange(W.uniqueId+"-"+R,R/1E3,(R+100)/1E3);_.ju(y)})};
aZF=function(W){var l,V,f,r,R;_.g(function(y){if(y.nextAddress==1)return y.yield(_.jJ(),2);l=y.yieldResult;if((V=l)==null||!V.removeCueRange)return m$(),y.return();f=_.L(W.timings);for(r=f.next();!r.done;r=f.next())R=r.value,l.removeCueRange(W.uniqueId+"-"+R);_.ju(y)})};
zQj=function(){var W,l,V;return _.g(function(f){if(f.nextAddress==1)return f.yield(_.jJ(),2);W=f.yieldResult;if((l=W)==null||!l.getPlayerState)return m$(),f.return();V=W.getPlayerState();return f.return(V===2)})};
m$=function(){_.Qe(new _.bP("Smartimation player does not exist or is corrupted"))};
NzS=function(){try{var W;return(W=window.CSS)!=null&&W.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(l){return _.Qe(new _.bP("Smartimation CSS.supports threw an error")),!1}};
EpJ=function(W,l,V,f,r){var R=W.playlistId?YWY:xmz;l=l();V=V();r=!!W.videoId&&r()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.as(l))return eQU({data:W,actionType:R,disabled:r},V);if(W.videoId&&f())return qWv({data:W,actionType:R,disabled:r});switch(l){case "TRANSFER_STATE_UNKNOWN":return qWv({data:W,actionType:R,disabled:r});case "TRANSFER_STATE_FAILED":return W.videoId?hQF({data:W,actionType:R,disabled:r}):SWn({data:W,actionType:R,disabled:r});case "TRANSFER_STATE_COMPLETE":return SWn({data:W,
actionType:R,disabled:r});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return eQU({data:W,actionType:R,disabled:r},V);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return W.videoId?hQF({data:W,actionType:R,disabled:r}):qWv({data:W,actionType:R,disabled:r});default:return qWv({data:W,actionType:R,disabled:r})}};
$m4=function(W,l){var V=W.onTapCommand,f=_.fP(V);if(W.videoId&&_.k(f,_.Xx))return _.k(f,_.Xx).action=l,V;W.playlistId&&_.k(f,_.TY)&&(_.k(f,_.TY).action=l);return V};
qWv=function(W){var l=W.data;var V=W.actionType;W=W.disabled;return{text:Wfj,iconType:"OFFLINE_DOWNLOAD",onTap:$m4(l,V.ACTION_ADD),disabled:W}};
eQU=function(W,l){var V=W.data;var f=W.actionType;W=W.disabled;var r="OFFLINE_DOWNLOAD";l>=0&&l<=.1?r="OFFLINE_DOWNLOADING_ZERO":l>.1&&l<=.3?r="OFFLINE_DOWNLOADING_TWENTY":l>.3&&l<=.5?r="OFFLINE_DOWNLOADING_FORTY":l>.5&&l<=.7?r="OFFLINE_DOWNLOADING_SIXTY":l>.7&&l<1?r="OFFLINE_DOWNLOADING_EIGHTY":l===1&&(r="OFFLINE_PIN");return{text:lqq,iconType:r,onTap:$m4(V,f.ACTION_REMOVE_WITH_PROMPT),disabled:W}};
SWn=function(W){var l=W.data;var V=W.actionType;W=W.disabled;return{text:VBU,iconType:"OFFLINE_PIN",onTap:$m4(l,V.ACTION_REMOVE_WITH_PROMPT),disabled:W}};
hQF=function(W){var l=W.data;var V=W.actionType;W=W.disabled;return{text:fqz,iconType:"OFFLINE_DOWNLOAD",onTap:$m4(l,V.ACTION_RETRY),disabled:W}};
_.wH=function(W,l){var V=WIJ();return _.v4(function(){V();return fwU(W,[_.w9(l)||""])},{debugName:"LUZslf"},"qYSKAc")};
rKS=function(W){var l=_.wH(_.rE,function(){return W().videoId}),V=_.wH(_.RD,function(){return W().playlistId});
return function(){return W().videoId?l:W().playlistId?V:_.L(_.J4("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
Rtn=function(W){var l=_.wH(t5,function(){return W().videoId}),V=_.wH(_.Y7g,function(){return W().playlistId});
return function(){return W().videoId?l:W().playlistId?V:_.L(_.J4(0,void 0,"K4tgOc")).next().value}};
tBS=function(W){var l=_.wH(_.lSx,function(){return W().videoId});
return function(){return W().videoId?l:_.L(_.J4(!1,void 0,"Oaxwcf")).next().value}};
sE8=function(W){var l=_.wH(q76,function(){return W().videoId});
return function(){return W().videoId?l:_.L(_.J4("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
LfF=function(){return{}};
_.CQY=function(W,l,V){return{submitForm:function(){var f;return _.g(function(r){if(r.nextAddress==1){f=yKY(W());if(!f)return r.return();if(f.onSubmit)return f.onSubmit(),r.return();if(!f.submitConfig||!f.formData)return r.jumpTo(0);f.disableDuringSubmission&&giq(W(),!0);PQS(l);return r.yield(niq(f.submitConfig,f.formData()),3)}PQS(V);f.disableDuringSubmission&&giq(W(),!1);return r.return()})},
isValid:function(){var f=yKY(W());if(f){var r;return!((r=f.isValid)==null||!r.call(f))}return!0},
isSubmitting:function(){var f,r;return!!((f=yKY(W()))==null?0:(r=f.isSubmitting)==null?0:r.call(f))}}};
_.div=function(){if(!cKJ){var W=_.L(_.J4(new Map,void 0,"yE61ae"));cKJ=W.next().value;Boq=W.next().value}return cKJ};
_.JKU=function(W){Boq(new Map(W))};
yKY=function(W){if(W)return _.div()().get(W)};
niq=function(W,l){var V;return _.g(function(f){return l?(V=_.tY().resolve(_.R0(DiF)))&&W.submitId?f.yield(V.submitForm(W.submitId,l,Uiz,W.params,W.clickTrackingParams),0):f.return():f.return()})};
giq=function(W,l){if(W){var V=_.div();V().set(W,Object.assign({},V().get(W),{isSubmitting:function(){return l}}));
_.JKU(V())}};
PQS=function(W){if(W){var l=_.tY().resolve(_.s6);l&&(W=_.fP(W()))&&l.resolveCommand(W)}};
kwz=function(W,l){l=l===void 0?{shouldPersist:!0}:l;return{useUpdatableData:function(V,f){var r=[],R=_.L(_.X3(function(){var B=V();if(f!=null&&f.length&&r){var d=r.length>0;for(var J=!1,D=0;D<f.length;D++){var u=f[D]();d&&u!==r[D]&&(J=!0);r[D]=u}d=J}else d=!1;if(d)_.Ay.remove(n());else if(d=_.Ay.get(n()))return d;return B})),y=R.next().value,P=R.next().value,n=_.v4(function(){return W(V())},void 0,"mX326");
_.m1(function(){if(n()!=null){ulY.set(n(),[y,P]);var B=n();_.Xc(function(){ulY.delete(B)})}},"MgKPjb");
return[y,function(B){P(B);l.shouldPersist&&_.Ay.set(n(),B)}]},
getData:function(V){var f;return(f=ulY.get(W(V)))==null?void 0:f[0]()},
updateData:function(V,f){V=W(V);var r=ulY.get(V);if(!r)return!1;var R=_.L(r);r=R.next().value;R=R.next().value;f=f(r());R(f);l.shouldPersist&&_.Ay.set(V,f);return!0}}};
viS=function(W){var l=_.L(_.J4(!0,void 0,"bKtO6d")),V=l.next().value;l.next();return function(){var f=k2(W.children());return _.C(_.c,{cond:V,then:function(){return f},
else:W.fallback})}()};
_.QH=function(W){var l=Hu6(W),V=l.data,f=l.mapping,r=l.wrapper;l=l.pendingFallback;var R=function(){return KfJ(_.w9(V))},y=function(){var P=R(),n=[];
P=_.L(P);for(var B=P.next();!B.done;B=P.next()){var d=void 0;B=B.value;var J=void 0;for(d in B)if(!(!B).hasOwnProperty(d)){J=d;break}(d=J)&&n.push(d)}return n};
return W.data?_.C(viS,{fallback:l},function(){return _.C(_.G3,{each:y},function(P,n){var B=r?function(J){return r(function(){return f[P](J,n)},d,n)}:function(J){return f[P](J,n)};
B.debugName||(B.debugName=String(P));if(!f[String(P)])return document.createComment("");B.componentType!==_.oi&&FfY(String(P));var d=Gwv(R,P,n);return _.C(B,{data:d})})}):_.C(_.Lp,null)};
Hu6=function(W){var l=W.targetId||buU(W.children);if(!W.data||!l||_.U("mweb_new_replaceables_killswitch"))return Object.assign({},W,{mapping:W.children,wrapper:void 0});var V="stamper-"+pTn++,f=function(){var P;return(P=typeof W.targetId==="function"?W.targetId(V):W.targetId)!=null?P:V};
l=_.L(oiF(function(){var P=KfJ(W.data());P.targetId=f;return P})).next().value;
var r=Object.assign({},(_.tY().resolve(_.R0(jEq))||{}).replaceableMapping,W.children);if(W.replacementWrapper){var R=r.notificationTextRenderer,y=r.notificationMultiActionRenderer;R&&(r.notificationTextRenderer=function(P,n){return W.replacementWrapper(R({data:P.data},n))});
y&&(r.notificationMultiActionRenderer=function(P,n){return W.replacementWrapper(y({data:P.data},n))})}return Object.assign({},W,{data:l,
mapping:r,wrapper:function(P,n,B){return SA4({targetId:f,stamperIndex:B},P)}})};
Gwv=function(W,l,V){var f;return _.v4(function(){var r=W()[V()];if(r)f=r[l];else return _.Qe(new _.bP("Stamper failed to find "+String(l)+" at index "+V()+" of data array of length "+(W().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),f;return r[l]},void 0,"wgRPHd")};
buU=function(W){W=_.L(Object.keys(W));for(var l=W.next();!l.done;l=W.next())if(l=l.value,IqU.includes(l)||iu6.includes(l)||mi4.includes(l))return!0;return!1};
KfJ=function(W){return W?Array.isArray(W)?W:[W]:[]};
FfY=function(W){if(_.U("web_enable_renderer_logger")){var l;(l=_.tY().resolve(_.R0(XTz)))!=null&&l.loggingEnabled&&!l.ids.has(W)&&l.ids.add(W)}};
Tox=function(){var W,l;return(l=(W=_.tY().resolve(_.R0(_.nP)))==null?void 0:W())!=null?l:!1};
AKS=function(W,l){W=W===void 0?wTF:W;switch(l.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},W,{isOpen:l.payload});default:return W}};
MBz=function(W,l){W=W===void 0?QEz:W;switch(l.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},W,{isAllowed:l.payload});default:return W}};
OuS=function(W,l){W=W===void 0?Zuq:W;switch(l.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},W,{errorMessage:l.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},W,{title:l.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},W,{privacy:l.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},W,{isDisabled:l.payload});default:return W}};
ztF=function(W,l){W=W===void 0?aqz:W;switch(l.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},W,{isOpen:l.payload});default:return W}};
YXJ=function(W,l){W=W===void 0?NoY:W;switch(l.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},W,{isFullscreen:l.payload});case "SET_NAVIGATION_BUTTON":var V=l.payload.targetId,f=Object.assign({},W.navigationButtons);f[V]=l.payload.button;return Object.assign({},W,{navigationButtons:f});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},W,{topPanelId:l.payload});case "SET_SECONDARY_HEADER":return V=l.payload.panelId,f=Object.assign({},W.secondaryHeader),f[V]=l.payload.secondaryHeader,
Object.assign({},W,{secondaryHeader:f});default:return W}};
htx=function(){return T$(Object.assign({},{voiceSearch:UDz,engagementPanel:YXJ,bottomSheet:AKS,cinematicSetting:MBz,shorts:bfF,drawerLayout:ztF,createPlaylist:OuS,locationCollection:xiJ,reportChannel:etz,reportForm:qXj},pBF))};
SXz=function(W,l){_.w8.addLowPriorityJob(function(){var V,f,r;return _.g(function(R){switch(R.nextAddress){case 1:return _.HG(R,2),R.yield(oLY(),4);case 4:return R.yield(fetch(W),5);case 5:return V=R.yieldResult,R.yield(V.json(),6);case 6:f=R.yieldResult;Ne.set(W,f);requestAnimationFrame(function(){l(f)});
_.qL(R,0);break;case 2:r=_.pc(R),_.Qe(r),_.ju(R)}})})};
Ei8=function(W){var l={animationConfig:{},listeners:{}},V=function(){W(!0)};
l.listeners.data_failed=V;l.listeners.error=V;l.listeners.data_ready=function(){W(!1)};
return l};
lej=function(W){var l=W.model;var V=W.subscribed;var f=W.isOverlay;var r=W.element;var R=W.commandController;var y=W.notificationState;if(V){var P,n;var B=(l==null?void 0:(P=l.buttonStyle)==null?void 0:P.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:l==null?void 0:(n=l.unsubscribeButtonContent)==null?void 0:n.buttonText}else{var d;B=l==null?void 0:(d=l.subscribeButtonContent)==null?void 0:d.buttonText}a:{var J;switch(l==null?void 0:(J=l.buttonStyle)==
null?void 0:J.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":P="S";break a;default:P="M"}}a:if(f)f="overlay";else switch(l.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":f="overlay";break a;default:f="mono"}a:if(V)var D="tonal";else switch((D=l.buttonStyle)==
null?void 0:D.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":D="tonal";break a;default:D="filled"}return{style:f,type:D,state:l.disableSubscribeButton?"disabled":"active",size:P,focused:W.focused,toggled:V,accessibilityLabel:$iF(l,V,y),buttonText:B,iconPosition:l.disableNotificationBell?"none":"leading-trailing",onTap:WC4(l,V,r,R),disableTextEllipsis:!!W.disableTextEllipsis}};
WC4=function(W,l,V,f){return function(r){if(l){var R;var y=W.disableNotificationBell?_.fP(W==null?void 0:(R=W.unsubscribeButtonContent)==null?void 0:R.onTapCommand):_.fP(W==null?void 0:W.onShowSubscriptionOptions)}else{var P;y=_.fP(W==null?void 0:(P=W.subscribeButtonContent)==null?void 0:P.onTapCommand)}y&&Me(y,{form:{element:V==null?void 0:V.value},commandController:f});r.stopPropagation()}};
$iF=function(W,l,V){if(l){if(W==null?0:W.disableNotificationBell){var f;return W==null?void 0:(f=W.unsubscribeButtonContent)==null?void 0:f.accessibilityText}switch(V){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var r;return W==null?void 0:(r=W.bellAccessibilityData)==null?void 0:r.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var R;return W==null?void 0:(R=W.bellAccessibilityData)==null?void 0:R.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var y;return W==null?void 0:(y=
W.bellAccessibilityData)==null?void 0:y.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var P;return W==null?void 0:(P=W.bellAccessibilityData)==null?void 0:P.disabledLabel;default:var n;return W==null?void 0:(n=W.unsubscribeButtonContent)==null?void 0:n.accessibilityText}}else{var B;return W==null?void 0:(B=W.subscribeButtonContent)==null?void 0:B.accessibilityText}};
Vzj=function(W){if(W){switch(W){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":W="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":W="NOTIFICATIONS_OFF";break;default:W="NOTIFICATIONS_NONE"}return W}};
fe6=function(W,l,V){V.subscribed!==l&&((V=V.key)&&_.dm(_.MB("subscriptionStateEntity",V,{key:V,subscribed:l})),W.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:l})),l||_.Gt(W,"yt-unsubscribe-action"))};
R_J=function(W){W=_.k(_.fP(W),_.Zy);var l,V,f,r;return(r=_.k(W==null?void 0:(l=W.panelLoadingStrategy)==null?void 0:(V=l.inlineContent)==null?void 0:(f=V.sheetViewModel)==null?void 0:f.content,rcz))==null?void 0:r.listItems};
tzq=function(W,l){if(W.onShowSubscriptionOptions&&l&&(W=R_J(W.onShowSubscriptionOptions),W!=null&&W.length)){var V=Vzj(l);W.forEach(function(f){f=_.k(f,_.O_);var r,R,y,P,n=f==null?void 0:(r=f.leadingImage)==null?void 0:(R=r.sources)==null?void 0:(y=R[0])==null?void 0:(P=y.clientResource)==null?void 0:P.imageName;f&&n&&(f.isSelected=n===V)})}};
sPz=function(W,l,V,f){l&&V?W.style.width=V+"px":!l&&f&&(W.style.width=f+"px")};
LCz=function(W,l,V){var f;(f=W.lottieEl)==null||f.goToAndPlay(0);var r;(r=l.lottieEl)==null||r.goToAndPlay(0);_.a$(_.w8,function(){var R;(R=V.lottieEl)==null||R.goToAndPlay(0)},300)};
ycz=function(W){return!(W==null||!W.iconName||(W==null?0:W.title))};
gon=function(W,l,V,f){V&&_.w8.cancelJob(V);V=_.w8.addLowPriorityJob(function(){f(void 0)},5E3);
f(V);l&&W!==(l.likeStatus==="LIKE")&&l.key&&_.dm(_.MB("likeStatusEntity",l.key,{key:l.key,likeStatus:W?"LIKE":"INDIFFERENT",hadUserInteraction:W}))};
_.PaF=function(W,l){return _.mL(W.entities,"accountLinkStatusEntity",l)};
noS=function(W,l){return _.mL(W.entities,"hatsSurveyEntity",l)};
Cav=function(W,l){return _.mL(W.entities,"hatsSurveyStateEntity",l)};
cc8=function(W,l){return _.mL(W.entities,"quantityIncrementerEntity",l)};
BGJ=function(W){switch(W){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
dWJ=function(W){switch(W){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}};
Jc6=function(W){switch(W){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"}};
_.UWn=function(W){var l=_.yS("web_generic_client_event_wait_period ",0);l||(l=3E5);var V=DW6.get(W);!_.U("enable_web_client_experiment_event_timeout_killswitch")&&V&&(0,_.tv)()-V<l||(DW6.set(W,(0,_.tv)()),_.XC("genericClientExperimentEvent",{eventType:W}))};
upz=function(W){switch(W){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""}};
kl6=function(W){if(!W)return"";var l,V=(l=_.tY().resolve(_.R0(_.nP)))==null?void 0:l(),f;if(!V&&((f=W.vibrantColorPalette)==null?0:f.iconInactiveColor))return LG(W.vibrantColorPalette.iconInactiveColor,"1");var r;return V&&((r=W.darkColorPalette)==null?0:r.iconInactiveColor)?LG(W.darkColorPalette.iconInactiveColor,"1"):W.color?LG(W.color,"1"):W.sampledThumbnailColor?(W=W.sampledThumbnailColor,"rgba("+W.red+","+W.green+","+W.blue+");"):""};
_.zY=function(W,l){if(!W.includes("DATE_PLACEHOLDER"))return W;var V=new Date(0);V.setUTCSeconds(l);return W.replace("DATE_PLACEHOLDER",voU(V))};
Hbj=function(W,l,V){return function(f){var r=W.command;r&&(Me(r,{form:{element:V}}),l([r],f))}};
FCg=function(W,l,V,f,r){return function(R){var y=KC4(W,l);y&&Me(y,{form:{element:V},commandController:f});r&&R.stopPropagation()}};
KC4=function(W,l){if(W.signInEndpoint&&!_.U("web_subscribe_sign_in_endpoint_killswitch"))return W.signInEndpoint;if(l){if(W.serviceEndpoints)return W.serviceEndpoints[1];if(W.onUnsubscribeEndpoints)return W.onUnsubscribeEndpoints[0]}else{if(W.serviceEndpoints)return W.serviceEndpoints[0];if(W.onSubscribeEndpoints)return W.onSubscribeEndpoints[0]}};
Glq=function(W,l){var V,f,r,R;l=l&&((V=W.unsubscribeAccessibility)==null?void 0:(f=V.accessibilityData)==null?void 0:f.label)||((r=W.subscribeAccessibility)==null?void 0:(R=r.accessibilityData)==null?void 0:R.label);return W.longSubscriberCountText?[l,_.dE(W.longSubscriberCountText)].filter(function(y){return y}).join(" "):l};
NB=function(W,l){return l||(W==null?0:W.isChannelDelegate)?"disabled":"active"};
bb8=function(W,l){var V;switch((V=W.style)==null?void 0:V.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:NB(W)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:NB(W)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:NB(W,!0)};case "OVERLAY":return l?{style:"overlay",type:"tonal",state:NB(W)}:{style:"overlay",type:"filled",state:NB(W)};default:return l?{style:"mono",type:"tonal",state:NB(W)}:{style:"mono",type:"filled",state:NB(W)}}};
_.Yw=function(){for(var W=[],l=_.L(_.xk.apply(0,arguments)),V=l.next();!V.done;V=l.next())if(V=V.value)if(typeof V==="string")W.push(V);else{V=_.L(Object.entries(V));for(var f=V.next();!f.done;f=V.next()){var r=_.L(f.value);f=r.next().value;(r=r.next().value)&&W.push(f)}}return W.join(" ")};
pXS=function(W){switch(W){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
ooF=function(W){switch(W){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
jPY=function(W,l){var V=W.map(function(f){return f.toString()});
return _.ip(function(f){if(V.includes(f.key)){l&&f.preventDefault();var r;(r=f.currentTarget)==null||r.click()}})};
_.Iez=function(){return jPY(["Enter"])};
_.ibv=function(){return jPY(["Enter"," "],!0)};
_.xw=function(W){if(W.composedPath)return W.composedPath();if(!W.__composedPath){for(var l=[],V=W.target;V;)l.push(V),V=V.parentNode;l.push(window);W.__composedPath=l}return W.__composedPath};
_.eJ=function(W,l,V){W=_.L(W);for(var f=W.next();!f.done;f=W.next()){f=f.value;if(f===l)break;for(var r=_.L(V),R=r.next();!R.done;R=r.next())if(R=R.value,f.tagName===R||f.role==="button"&&R==="BUTTON")return!0}return!1};
XXn=function(W,l){var V,f=(V=l.observer)!=null?V:_.tY().resolve(tH);if(W){V=mWU(W);var r=[];l.showOption&&r.push(f.observe(W,function(){l.visibilityCallback(!0,W)},l.showOption));
l.hideOption&&r.push(f.observe(W,function(){l.visibilityCallback(!1,W)},l.hideOption));
l.prescanOption&&l.prescanCallback&&r.push(f.observe(W,function(){l.prescanCallback()},l.prescanOption));
var R;V.visibilityMonitorKeys=((R=V.visibilityMonitorKeys)!=null?R:[]).concat(r)}};
mWU=function(W){var l;return(l=W.polymerController)!=null?l:W};
_.hy=function(W){return!!_.qB(W)};
_.E_=function(W,l,V,f,r){return function(R){var y=h08();_.m1(function(){if(R){TGn(R,W(),r);var P=wXJ(R,W(),l,V,f,y);_.Xc(P)}},"nr377e")}};
TGn=function(W,l,V){var f=Ac8(l),r=QPj(l);l=f&&Mzx;var R=r&&Zbn;(f||r)&&XXn(W,{visibilityCallback:function(y){var P=_.tY().resolve(_.s6);y&&f?P.resolveCommand(f,{form:{element:V?W:void 0},disableClickTracking:!0}):!y&&r&&P.resolveCommand(r,{form:{element:V?W:void 0},disableClickTracking:!0})},
showOption:l,hideOption:R})};
wXJ=function(W,l,V,f,r,R){var y=new Map;if(l=_.qB(l)){var P;W=(f==null?void 0:(P=f.onTap)==null?void 0:P.value)||W;V=Ob4(l,W,V==null?void 0:V.onTap,r,R);W.addEventListener("click",V);y.set("click",V)}return function(){for(var n=_.L(y),B=n.next();!B.done;B=n.next()){var d=_.L(B.value);B=d.next().value;d=d.next().value;W.removeEventListener(B,d)}}};
_.qB=function(W){var l;return(W=(l=_.k(W,aen))==null?void 0:l.onTap)&&_.fP(W)};
Ac8=function(W){var l;return(W=(l=_.k(W,aen))==null?void 0:l.onVisible)&&_.fP(W)};
QPj=function(W){var l;return(W=(l=_.k(W,aen))==null?void 0:l.onHidden)&&_.fP(W)};
Ob4=function(W,l,V,f,r){var R=function(P){_.tY().resolve(_.s6).resolveCommand(W,P)},y=function(P){f&&_.eJ(_.xw(P),l,f)||R(P.target?{form:{element:P.target,
sourceData:W,mutationContext:r}}:void 0)};
V&&(y=function(P){V(P,R)});
return y};
z_q=function(W){switch(W){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}};
NGz=function(W){var l=W.numAvatarsInCluster;switch(W.clusterSize){case "small":return l===2?22:18;case "40":return l===2?24:22;default:return l===2?24:20}};
Ykj=function(W,l){return function(V){var f=Object.keys(l);_.m1(function(){if(W!=null&&W()){for(var r=_.L(f),R=r.next();!R.done;R=r.next())R=R.value,V.addEventListener(R,l[R]);_.Xc(function(){for(var y=_.L(f),P=y.next();!P.done;P=y.next())P=P.value,V.removeEventListener(P,l[P])})}},"bXZGfe")}};
xWg=function(W){switch(NGz(W)){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""}};
e_z=function(W){switch(W){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""}};
qkS=function(W){switch(NGz(W)){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""}};
h_F=function(W){switch(W){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""}};
Skq=function(W){switch(W){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}};
Eog=function(W){return W==="medium"||W==="48"||W==="large"||W==="extra-large"||W==="extra-extra-large"||W==="giant"};
$W4=function(W){return!!((W==null?0:W.includes(3))||(W==null?0:W.includes(5)))};
lCv=function(W){var l=W.data;return{size:WU8(l.avatarImageSize),type:l.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:W.onTap,decorations:W.decorations||[],badgeText:W.badgeText,accessibilityText:W.accessibilityText,avatarButtonCustomClassName:W.avatarButtonCustomClassName,clusterLayoutConfig:W.clusterLayoutConfig}};
WU8=function(W){switch(W){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"}};
VTY=function(W){switch(W){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}};
fCz=function(W){switch(W){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""}};
r0z=function(W){var l=W.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",V,f=W.avatars&&W.avatars.length>0?(V=_.k(W.avatars[0],_.$w))==null?void 0:V.avatarImageSize:"AVATAR_SIZE_UNKNOWN";V=VTY(f)||0;if(l){var r,R=(r=W.avatarClusterSize)!=null?r:"AVATAR_SIZE_M";l=VTY(R);var y,P,n=Math.min((P=(y=W.avatars)==null?void 0:y.length)!=null?P:0,4),B;return{avatars:((B=W.avatars)==null?void 0:B.slice(0,4))||[],avatarSizeInPx:V,avatarStackStyle:{width:l+"px",height:l+"px",position:"relative"},avatarStyle:function(J){var D=
NGz({clusterSize:WU8(R),numAvatarsInCluster:n,avatarIndex:J});var u=VTY(R);n===3&&J===2?(u=(u-D)/2,u=(_.M4("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*u):u=void 0;return{position:"absolute",top:n===2&&J===1||n===3&&J===2||n===4&&J>=2?"0":void 0,bottom:n===2&&J===0||n>2&&J<2?"0":void 0,left:n===2&&J===1||n>2&&(J===1||J===3)?"0":void 0,right:n<=3&&J===0||n===4&&(J===0||J===2)?"0":void 0,transform:u?"translateX("+u+"px)":void 0,width:D+"px",height:D+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(J){return{clusterSize:WU8(W.avatarClusterSize),numAvatarsInCluster:n,avatarIndex:J}},
avatarButtonCustomClassName:void 0}}var d;return{avatars:((d=W.avatars)==null?void 0:d.slice())||[],avatarSizeInPx:V,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:fCz(f),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
RGv=function(W,l,V){return function(){Me(W,{form:{element:l},commandController:V})}};
tTz=function(W){switch(W){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
sSz=function(W){switch(W){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"}};
LUS=function(W){if("accessibilityText"in W)return W.accessibilityText||"";if("title"in W){var l,V,f;return((l=W.title)==null?void 0:(V=l.accessibility)==null?void 0:(f=V.accessibilityData)==null?void 0:f.label)||""}if("accessibility"in W){var r,R;return((r=W.accessibility)==null?void 0:(R=r.accessibilityData)==null?void 0:R.label)||""}return""};
y0n=function(W){return"inlinePlayerData"in W};
Wf=function(W){return new gmz(W)};
P6j=function(W){return function(l){W&&(W.thumbnailElRef=l.thumbnailElRef,W.thumbnail=l.thumbnail,W.thumbnailOverlays=l.thumbnailOverlays,W.thumbnailSize=l.thumbnailSize)}};
nmn=function(W){switch(W){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
c06=function(W){var l=_.L(_.J4(!1,void 0,"RIOonf")),V=l.next().value,f=l.next().value;_.mw(function(){var r=W==null?void 0:W();if(r){var R=_.tY().resolve(_.R0(C6v));if(R){var y={triggeringElement:r,onDwellTriggeredFn:function(){f(!0)},
onDwellEndFn:function(){f(!1)}};
R.registerElement(y);_.Xc(function(){_.lE(R,y)})}}});
return V};
B$F=function(W,l,V){V?V(l):_.sZ(l,W.target?{form:{element:W.target}}:void 0)};
_.Vl=function(W,l,V){return function(f){_.m1(function(){var r=new Map,R,y=(R=W())==null?void 0:R.onTap;y&&(R=function(P){a:{var n=P.composedPath();n=_.L(n);for(var B=n.next();!B.done;B=n.next()){B=B.value;if(B===f)break;if(B.className.indexOf("HostIsClickableAdComponent")>=0||B.tagName==="A".toString()||B.tagName==="BUTTON".toString()){n=!0;break a}}n=!1}n||B$F(P,y,l)},(V==null?0:V())||_.U("enable_web_home_top_landscape_image_layout_level_click")?(f.addEventListener("tap",R),r.set("tap",R)):(f.addEventListener("click",
R),r.set("click",R)));
_.Xc(function(){for(var P=_.L(r),n=P.next();!n.done;n=P.next()){var B=_.L(n.value);n=B.next().value;B=B.next().value;f.removeEventListener(n,B)}})},"NMyqj")}};
dkq=function(W,l){var V,f=(V=W.interaction)==null?void 0:V.onTap;if(W=_.Rf({elementsCommand:f,forceNewState:!0,skipOnClick:!0}))return W.onclick=function(r){v4F(r)&&(r.preventDefault(),f&&B$F(r,f,l))},t2(W)?W:void 0};
J0Y=function(W){switch(W){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
Dk8=function(W){switch(W){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"}};
UkS=function(W){switch(W){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"}};
_.uOz=function(W){return _.U("rich_grid_enable_dynamic_offset")&&W?Math.max(Math.round((W-_.yS("rich_grid_dynamic_offset_anchor_width",1300))/100*_.yS("rich_grid_dynamic_offset_offset_per_100",10)),_.yS("rich_grid_dynamic_offset_lower_bound",-60)):0};
k0U=function(W,l){switch(l){case 4:return 16;case 1:return W<528?16:W<1024?32:48;case 2:return(W>=528?16:8)/2;case 3:return(W<528?16:W<1024?32:48)+(W>=528?16:8)/2;default:return 0}};
vmx=function(W){var l=W.originalContainerWidth;var V=W.sizing;var f=W.standardUnit;if(W.isCompactList&&l<528)return 1;switch(V){case "STANDARD":return f;case "COMPACT":return f+1;case "EXTRA_COMPACT":return _.U("web_responsive_extra_compact_2x")?f*2:_.U("web_responsive_current")?f===1?2:f%2===0?f/2*3:f+2:f<4?f*2:Math.ceil(f*3/2);case "MINI":return f>1?f*2:3;default:return f}};
KUY=function(W){var l=W.containerWidth;var V=W.peek;var f=W.gutter;var r=W.numItems;W=W.ignoreMaxWidthLimit;l=V?Math.max((l-V-f*r)/r,0):Math.max((l-f*(r-1))/r,0);return W?l:Math.min(l,HrU)};
_.fh=function(W){var l=W.containerWidth;var V=W.hasPeek;var f=W.sizing;var r=W.marginSettings;var R=W.isCompactList;var y=W.enableFullBleedForSingleCol;var P=W.standardUnitMinWidth;f=f||"STANDARD";V=!!V;W=l>=528?16:8;var n=V?l>=528?48:24:0;r=k0U(l,r);var B=Math.max(l-r*2,0);P=_.U("kevlar_disable_min_width_override")?void 0:P;P=Math.min(Math.max(Math.floor((B-n+W)/((P!=null?P:FUU)+_.uOz(l)+W)),1),6);var d=(y=!!y&&P===1)||P===1&&f!=="STANDARD";V=V||d?B:Math.min(B,(HrU+W)*P-W);f=vmx({originalContainerWidth:l,
sizing:f,standardUnit:P,isCompactList:R});return{itemWidth:KUY({containerWidth:V,peek:n,gutter:W,numItems:f,ignoreMaxWidthLimit:d}),gutter:W,maxContainerWidth:V,numItems:f,margin:y?0:r,contentMargin:k0U(l,1),typographyBump:KUY({containerWidth:V,peek:n,gutter:W,numItems:P,ignoreMaxWidthLimit:d})>400&&!(R&&l<528),standardUnit:P}};
G0U=function(W){switch(W){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.brJ=function(W){if(W){var l;if((l=W.responsiveContainerConfiguration)==null?0:l.responsiveSize)return G0U(W.responsiveContainerConfiguration.responsiveSize);if(W.layoutSizing)switch(W.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"}}};
p5z=function(W){if(W.fullbleed)return 1;switch(W.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
irv=function(W,l,V,f,r,R,y,P){a:if(W===4&&f==="LOCKUP_CONTENT_TYPE_SOURCE")var n=1;else switch(W){case 3:n=1;break a;default:n=0}a:switch(W){case 4:R=!!(R&&R<100);break a;default:R=!1}a:switch(W){case 3:case 4:var B=f==="LOCKUP_CONTENT_TYPE_CHANNEL"||f==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:B=!1}a:switch(W){case 5:var d=!0;break a;case 4:d=!1;break a;default:d=!1}return{isOverlay:d,isCard:omJ(f,y),sizing:l!=null?l:"STANDARD",typographyBump:V!=null?V:!1,isTiny:R,isCentered:B,isCollection:jS8(f),
arrangement:n,addMarginForFullbleed:W===1&&f!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:W===1&&f==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:ICn(f,r,P),disableRounding:W===5||omJ(f,y)||W===1&&f==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:jS8(f)?2:0,useLegacyTypography:!(P==null||!P.useLegacyTypography),useRichGridLegacyTypography:!(P==null||!P.useRichGridLegacyTypography)&&!_.U("web_enable_typography_bump"),compactMetadata:n===0&&f==="LOCKUP_CONTENT_TYPE_VIDEO"}};
jS8=function(W){switch(W){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}};
omJ=function(W,l){if(l&&W==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(W){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
ICn=function(W,l,V){if(l&&(V==null||!V.alwaysRespectPodcastShowAspectRatio||W!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(W){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}};
mkn=function(W){switch(W){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"}};
X5n=function(W){switch(W){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}};
T$6=function(W){switch(W){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}};
_.rC=function(W){if(W){var l;return((l=_.tY().resolve(_.R0(_.nP)))==null?0:l())?W.darkThemeImage:W.image}};
QSF=function(W,l,V,f,r,R){if(r&&R&&l==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:r,height:R};if(!V)return{};r=V.size;V=V.allowFullWidth;if(l==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&V)return{fullWidth:!0};if(r===void 0)return{};switch(W){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/w5j*r};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:r*
A0U,height:r};default:return(f==null?0:f.height)&&(f==null?0:f.width)?f.width/f.height>1?{maxWidth:r*A0U}:{maxWidth:r}:{maxWidth:r}}};
MTF=function(W){var l;return W&&((l=_.rC(W.themedImage))!=null?l:W.image)};
Zrj=function(W){var l;return W==null?void 0:(l=W.sources)==null?void 0:l[0]};
OrF=function(W){switch(W){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"}};
_.aCU=function(W){if(W)return"content-id-"+W};
zG8=function(W){switch(W.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"}}};
N$z=function(W){var l=_.Rp.currentPageSubTypeSelector(_.BE().getState())||"";return W?W+l:""};
YGz=function(W){switch(W){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
eGF=function(W){var l=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],V=_.L(_.J4(void 0,void 0,"JrqNsb")),f=V.next().value,r=V.next().value,R=_.L(_.J4(void 0,void 0,"rWytse"));V=R.next().value;var y=R.next().value;R=_.L(_.J4(void 0,void 0,"DHRqxe"));var P=R.next().value,n=R.next().value;return{touchFeedbackEvents:{pointerUpEvent:f,pointerDownEvent:V,pointerLeaveEvent:P},touchFeedbackOnPointerUp:_.ip(function(B){xkq(_.xw(B),l)||(r(B),y(void 0),n(void 0))}),
touchFeedbackOnPointerDown:_.ip(function(B){W==null||W(B);xkq(_.xw(B),l)||(y(B),r(void 0),n(void 0))}),
touchFeedbackOnPointerLeave:_.ip(function(B){xkq(_.xw(B),l)||(n(B),y(void 0),r(void 0))})}};
xkq=function(W,l){l=l===void 0?[]:l;l=[].concat(_.QK(l),["BUTTON".toString()]);W=_.L(W);for(var V=W.next();!V.done;V=W.next()){V=V.value;for(var f=_.L(l),r=f.next();!r.done;r=f.next())if(V.tagName===r.value)return!0}return!1};
qGv=function(W){switch(W){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"}};
hGz=function(W){return W.scrollHeight-W.offsetHeight>1};
SG4=function(W,l){var V;return PI(W,((V=W.content)==null?void 0:V.length)||0,!l)};
Wi8=function(W,l,V,f,r,R){if(!l||EmF){var y;return PI(W,((y=W.content)==null?void 0:y.length)||0,!0)}l=f.value;if(!V.value||!l||!W.content)return W;V=0;f=W.content.length;y=0;$k6||($k6=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var P=$k6;for(r=r*R*P;V<=f;)R=Math.floor(V+(f-V)/2),P=PI(W,R)||W,l.firstChild&&(l.firstChild.textContent=P.content),l.scrollHeight>r?f=R-1:(y=R,V=R+1);return PI(W,y)};
lE6=function(W,l){var V,f;return(((V=W.content)==null?void 0:V.length)||0)>(((f=l.content)==null?void 0:f.length)||0)};
VHF=function(W,l,V,f,r,R){var y=_.WS("truncated-text-content"),P=_.WS("truncated-text-content"),n=_.WS("button"),B=_.WS("button"),d=_.WS("button"),J=_.tY().resolve(_.cI),D=_.L(_.X3(function(){return SG4(W(),r())})),u=D.next().value,H=D.next().value;
D=_.L(_.X3(function(){return lE6(W(),u())}));
var p=D.next().value,X=D.next().value,w=null;_.m1(function(){function O(){if(y.value&&n.value&&d.value){var x=R()?W():Wi8(W(),r(),y,P,l(),V());H(x);requestAnimationFrame(function(){if(y.value&&n.value&&d.value){var Y=hGz(y.value)||lE6(W(),x);X(Y);if(!f()){var W8=hGz(y.value),c8=V(),B8=y.value,Jx=n.value,H8=d.value,Kq=J==="rtl";if(B8&&Jx){var Z4=Jx.offsetLeft;Kq&&(Z4=B8.offsetWidth-Jx.offsetWidth-Jx.offsetLeft);if(Y){Y=Jx.offsetWidth;Jx=B8.offsetWidth;var Ax=W8?Jx-Y-70:Z4-70;c8="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
c8+"rem,\n      #000 "+c8+"rem,\n      #000 100%), linear-gradient(\n      to "+((Kq?"left":"right")+",\n      #000 0px,\n      #000 "+Ax+"px,\n      transparent "+(W8?Jx-Y:Ax+70)+"px)");B8.style.setProperty("-webkit-mask-image",c8);B8.style.setProperty("mask-image",c8)}else B8.style.setProperty("-webkit-mask-image",""),B8.style.setProperty("mask-image","");W8?Kq?(H8.style.setProperty("left","0"),H8.style.setProperty("right","unset")):(H8.style.setProperty("left",""),H8.style.setProperty("right",
"0")):Kq?(H8.style.setProperty("left","unset"),H8.style.setProperty("right",Z4+"px")):(H8.style.setProperty("left",Z4+"px"),H8.style.setProperty("right","unset"))}}}})}}
var S,N;(S=w)==null||(N=S.stop)==null||N.call(S);S=new _.t$(O,17);O();w=S},"KjwIxd");
_.mw(function(){H(SG4(W(),r()));X(lE6(W(),u()));var O=function(){$k6=void 0;var N,x;(N=w)==null||(x=N.fire)==null||x.call(N)};
if(window.ResizeObserver){var S=new ResizeObserver(O);S.observe(y.value);_.Xc(function(){var N,x;(N=w)==null||(x=N.stop)==null||x.call(N);S.disconnect()})}else window.addEventListener("resize",O),_.Xc(function(){var N,x;
(N=w)==null||(x=N.stop)==null||x.call(N);window.removeEventListener("resize",O)})});
return{isTruncated:p,displayText:u,contentRef:y,hiddenRef:P,placeholderTruncationTextRef:n,hiddenTruncationTextRef:B,truncationTextRef:d}};
fEj=function(W){return{content:W!=null?W:""}};
roS=function(W){return _.fP(W.onTap)||_.qB(W.rendererContext)};
R7v=function(W){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:W.overflowMenuA11yLabel,onTap:function(l){l.preventDefault();l.stopPropagation();if(W.overflowMenuOnTap){var V=_.Rf({elementsCommand:W.overflowMenuOnTap,forceNewState:!0});if(V==null?0:V.onclick)V.onclick(l)}}}};
_.sg=function(W,l,V,f,r){f=f===void 0?{}:f;if(!r||Math.random()<5E-4){l=l||null;V=V||null;W=W instanceof Error?W:new _.bP(W);if(W.args)for(var R=_.L(W.args),y=R.next();!y.done;y=R.next())y=y.value,y instanceof Object&&(f=Object.assign({},y,f));f.category="H5 Ads Control Flow";l&&(f.slot=l?"slot:  "+l.slotType:"");V&&(f.layout=V?"layout:  "+V.layoutType:"",f.layoutId=V.layoutId);r&&(f.known_error_aggressively_sampled=!0);W.args=[f];_.Qe(W)}};
_.tHn=function(W,l){_.Gt(W,"yt-open-popup-action",[_.u0(l),W])};
_.Lh=function(W,l){_.tHn(W,_.Bl(l))};
Liv=function(W){if(!W)return"";if(se4[W])return se4[W];yl||(yl=_.Gz("A"));yl.href!==W&&hO(yl,W);var l=yl.pathname;se4[W]=l.startsWith("/")?l:"/"+l;return se4[W]};
yoq=function(){var W=Liv(window.location.href);if(W==="/")return"home";if(W.startsWith("/results"))return"search";if(W.startsWith("/watch"))return"watch";if(W.startsWith("/shorts"))return"shorts";if(W.startsWith("/hashtag"))return"hashtag";if(W.startsWith("/create_channel"))return"create_channel";if(W.startsWith("/@")||W.startsWith("/user/")||W.startsWith("/channel/"))return"channel";if(W.startsWith("/experiments"))return"experiments";if(W.startsWith("/sponsor_channel"))return"sponsorship";if(W.startsWith("/select_site"))return"settings";
if(W.startsWith("/locate"))return"locate";if(W.startsWith("/redeem"))return"redeem";if(W.startsWith("/musicpremium")||W.startsWith("/premium")||W.startsWith("/red"))return"premium";if(W.startsWith("/paid_memberships"))return"paid_memberships";if(W.startsWith("/oops"))return"oops";if(W.startsWith("/clip"))return"clip";var l;return(gC==null?void 0:(l=gC.response)==null?void 0:l.page)==="404"?"404":W.startsWith("/feed/history")?"history":W.startsWith("/feed/library")?"library":W.startsWith("/feed/subscriptions")?
"subscriptions":W.startsWith("/feed/trending")?"trending":W.startsWith("/feed/news_destination")?"news":W.startsWith("/playlist")?"playlist":W.startsWith("/minor_moment")?"minor_moment":W.startsWith("/playable/")||W.match("^/playables/(?!saved).")?"mini_app":W.startsWith("/playables")?"playables":W.startsWith("/create/live/join")?"open_in_app":W.startsWith("/feed/explore")?"explore":"browse"};
_.CxJ=function(){var W=gC==null?void 0:gC.response,l=W==null?void 0:W.endpoint;if(!l)return(W==null?void 0:W.page)==="watch"?"watch":yoq();var V;W=(V=_.k(l==null?void 0:l.commandMetadata,_.XN))==null?void 0:V.webPageType;V=!1;if(W&&!g5n.includes(W))switch(W){case "WEB_PAGE_TYPE_SEARCH":return"search";case "WEB_PAGE_TYPE_SHORTS":return"shorts";case "WEB_PAGE_TYPE_CHANNEL":return"channel";case "WEB_PAGE_TYPE_SETTINGS":return"settings";case "WEB_PAGE_TYPE_PLAYLIST":return"playlist";case "WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app";
case "WEB_PAGE_TYPE_MINI_APP":return"mini_app";case "WEB_PAGE_TYPE_WATCH":var f;return((f=_.k(l==null?void 0:l.commandMetadata,_.XN))==null?0:f.url)&&Liv(_.k(l.commandMetadata,_.XN).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var r;return(l=(r=_.k(l,_.ZJ))==null?void 0:r.browseId)?Pxj[l]||"browse":"browse";default:V=!0}if(_.k(l,_.Pf)||_.k(l,n5U))return"sponsorship";r=Liv(window.location.href);if(r.startsWith("/experiments"))return"experiments";if(r.startsWith("/create_channel"))return"create_channel";
if(_.k(l,_.x_)&&r.startsWith("/shorts"))return"shorts";if(_.k(l,_.x_)&&r.startsWith("/watch"))return"watch";V&&(l=new _.bP("Unsupported mWeb page type",{pathname:r,webPageType:W}),_.wv(l));return"browse"};
nh=function(W,l,V,f){return W&&l?W!==V||l!==f?(_.sg(Error("Mh"),void 0,void 0,{"stored-slot":W,"stored-layout":l,"latest-slot":V,"latest-layout":f}),!1):!0:!1};
Bjv=function(W,l,V){return W({targetId:l},function(f){return V.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},f,{contents:[V.continuationItems?_.k(V.continuationItems[0],co8):{}]}):V.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},f,{header:V.continuationItems?V.continuationItems[0]:void 0}):Object.assign({},f,{contents:V.continuationItems?V.continuationItems:[]})})};
d8x=function(W,l,V,f){if(l=l.trackingParams){var r,R=(r=V.getScreenLayer)==null?void 0:r.call(V);V=_.Wh(R);r=_.$G(R);if(V&&r){var y=_.zG(l);_.U("combine_ve_grafts")?W.graftServerVe(l,r,R):_.L0(V,r,y);f==null||f(y)}}};
D8z=function(W){var l;return((l=Jo4.get(W))==null?void 0:l.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
k8g=function(W,l){var V={type:l.slotType,controlFlowManagerLayer:U88.get(l.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};l.slotEntryTrigger&&(V.entryTriggerType=l.slotEntryTrigger.triggerType);l.slotPhysicalPosition!==1&&(V.slotPhysicalPosition=l.slotPhysicalPosition);if(W){V.debugData={slotId:l.slotId};if(W=l.slotEntryTrigger)V.debugData.slotEntryTriggerData=uTx(W);W=l.slotFulfillmentTriggers;V.debugData.fulfillmentTriggerData=[];W=_.L(W);for(var f=W.next();!f.done;f=W.next())V.debugData.fulfillmentTriggerData.push(uTx(f.value));
l=l.slotExpirationTriggers;V.debugData.expirationTriggerData=[];l=_.L(l);for(W=l.next();!W.done;W=l.next())V.debugData.expirationTriggerData.push(uTx(W.value))}return V};
uTx=function(W,l){var V={type:W.triggerType};l!=null&&(V.category=l);W.triggeringSlotId!=null&&(V.triggerSourceData||(V.triggerSourceData={}),V.triggerSourceData.associatedSlotId=W.triggeringSlotId);W.triggeringLayoutId!=null&&(V.triggerSourceData||(V.triggerSourceData={}),V.triggerSourceData.associatedLayoutId=W.triggeringLayoutId);return V};
v5g=function(W,l,V,f){l={opportunityType:l};W&&(f||V)&&(f=_.Zl(f||[],function(r){return k8g(W,r)}),l.debugData=Object.assign({},V&&V.length>0?{associatedSlotId:V}:{},f.length>0?{slots:f}:{}));
return l};
Hw6=function(W){return Ch(W.opportunityAdapterMap).concat(Ch(W.triggerAdapterMap)).concat(Ch(W.fulfillmentAdapterFactoryMap)).concat(Ch(W.slotAdapterFactoryMap)).concat(Ch(W.layoutRenderingAdapterFactoryMap))};
Ch=function(W){var l=[];W=_.L(W.values());for(var V=W.next();!V.done;V=W.next())V=V.value,V.isAdsControlFlowEventListener&&l.push(V);return l};
Bf=function(W){var l=W.slotId,V=W.slotType,f=W.slotPhysicalPosition;return l===void 0?new cf("Cannot construct a slot due to the missing id.",{adSlotMetadata:W}):V===void 0?new cf("Cannot construct a slot due to the missing type.",{adSlotMetadata:W}):f===void 0?new cf("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:W}):{slotId:l,slotType:V,slotPhysicalPosition:f,managerLayer:"external",adSlotLoggingData:W.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new KiU}};
FiU=function(W){var l=W.layoutId,V=W.layoutType;return l===void 0?new dC("Cannot construct a layout due to the missing id.",{adLayoutMetadata:W}):V===void 0?new dC("Cannot construct a layout due to the missing type.",{adLayoutMetadata:W}):{layoutId:l,layoutType:V,managerLayer:"external",adLayoutLoggingData:W.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new KiU,interactionLoggingAdsClientData:{}}};
G8n=function(W){if(W.querySelector("img")){var l=W.querySelector("img");l.addEventListener("error",function(){gbv(l.src).then(function(V){(V=_.Yk(V).toString())?l.src=V:l.removeAttribute("src")}).catch(function(){l.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Dp=function(W,l){if(l&&(bwY(l.viewableCommand)||bwY(l.endOfSessionCommand))){var V=paJ(l==null?void 0:l.viewableCommand);l=paJ(l==null?void 0:l.endOfSessionCommand);if(!J$){var f=_.yS("custom_active_view_tos_timeout_ms");J$=f>0&&f!==36E5?new o5z(jeF(),f):new o5z(jeF())}IEJ(J$,W);iwj(J$,W,V,l)}};
Ug=function(W){J$&&IEJ(J$,W)};
jeF=function(){var W=_.M4("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(W==null?void 0:W.length)===2?W[1]:null};
bwY=function(W){W=_.fP(W);return!(W==null||!W.loggingUrls)&&W.loggingUrls.length>0};
paJ=function(W){if(!W)return[];var l=[],V,f;((f=(V=_.fP(W))==null?void 0:V.loggingUrls)!=null?f:[]).forEach(function(r){r.baseUrl&&l.push(r.baseUrl)});
return l};
m8q=function(W){if(_.U("stop_av_measurement_on_detach"))return function(){Ug(W)}};
Xaj=function(W){return function(){_.U("stop_av_measurement_on_detach")&&Ug(W)}};
TjY=function(W){if(_.U("stop_av_measurement_on_detach"))return function(){Ug(W)}};
waj=function(W){return W.shorts.isDesktopSmallWidth};
_.Aoq=function(W){return W.shorts.isShortsActive};
_.Qeg=function(W){return W.shorts.isWatchWhileMode};
_.uE=function(W){return W.shorts.isFullscreen};
_.k1=function(W){return W.shorts.isShortsPipActive};
Zw6=function(W){var l,V;if(W=(l=_.k(W.reelsAdCardButtoned,MH8))==null?void 0:(V=l.animatedRenderingConfig)==null?void 0:V.easeOutSeconds)return W+"s"};
aEz=function(W,l,V){return _.g(function(f){return f.return(new Promise(function(r){var R=new Image;R.onload=function(){r(new OwS(W,l,V,R.naturalWidth,R.naturalHeight))};
R.src=V.toString()}))})};
z7v=function(W,l){return Math.round(W/1E-5)===Math.round(l/1E-5)};
Njq=function(W,l){return Math.round(W/1E-5)===Math.round(l/1E-5)};
YnJ=function(W,l){return W.year===l.year&&W.month===l.month&&W.day===l.day};
x8U=function(W,l){return W.year!==l.year?W.year<l.year:W.month!==l.month?W.month<l.month:W.day<l.day};
qnx=function(W){return W.day===e76(W.year,W.month)?W.month===11?{year:W.year+1,month:0,day:1}:{year:W.year,month:W.month+1,day:1}:{year:W.year,month:W.month,day:W.day+1}};
h7z=function(){var W=new Date,l={year:W.getFullYear(),month:W.getMonth(),day:W.getDate()};return{start:l,end:{year:W.getFullYear()+2,month:W.getMonth(),day:W.getDate()},selectedDate:qnx(l)}};
SnU=function(W){return(new Ca(2)).format(new Date(W.year,W.month,W.day))};
E5v=function(W){return{year:W.getFullYear(),month:W.getMonth(),day:W.getDate()}};
$8F=function(W,l){W=(W+(Number(l.utcOffsetSec)+(new Date(W*1E3)).getTimezoneOffset()*60))*1E3;l=E5v(new Date(W));return{date:l,secondsSinceMidnight:Math.floor((W-(new Date(l.year,l.month,l.day)).getTime())/1E3)}};
Wh8=function(W,l){l=l.months.findIndex(function(V){return V.year===W.year&&V.month===W.month});
return l>=0?l:void 0};
lMv=function(W){if(!W)return!1;try{if(W.host&&W.host.tagName==="YT-FORMATTED-STRING"&&W.host.id==="contenteditable-textarea"||W.nodeType===Node.ELEMENT_NODE&&W.tagName==="YTD-COMMENTBOX")return!0}catch(l){return!1}return lMv(W.parentNode)};
vf=function(W){return W?!(W.tagName!=="A"||!W.href||!W.classList.contains("yt-simple-endpoint")):!1};
VIU=function(W){return W?W.tagName==="IMG"&&W.classList.contains("emoji"):!1};
fM4=function(W,l,V){if(!W)return null;var f=vf(W);if(f&&V)return l=W.pathname.substring(W.pathname.indexOf("/channel/")+9),document.createTextNode("@"+l);if(f&&!V)return document.createTextNode("");if(VIU(W))return V=W.alt,W=W.dataset.emojiId,!W&&l&&(l=_.Hf(l,V))&&l.isCustomEmoji&&(W=l.emojiId),W?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+W+">"):document.createTextNode(V);f=W.cloneNode(!1);for(var r=0;r<W.childNodes.length;++r){var R=fM4(W.childNodes[r],l,V);R&&f.appendChild(R)}return f};
Kh=function(W){return W?vf(W)?W:Kh(W.lastChild):null};
rtv=function(W){return W?vf(W)?W:rtv(W.firstChild):null};
RHx=function(W){if(!W)return null;for(var l=W.previousSibling;l;)if(l.nodeType===Node.ELEMENT_NODE&&l.nodeName==="BR")l=l.previousSibling;else if(l.nodeType===Node.TEXT_NODE&&/\s+/.test(l.textContent))l=l.previousSibling;else break;(l=Kh(l))?W=l:W=(W=W.parentNode)?Kh(W.previousElementSibling):null;return W};
tIq=function(W){if(!W)return null;for(var l=W.nextSibling;l;)if(l.nodeType===Node.ELEMENT_NODE&&l.nodeName==="BR")l=l.nextSibling;else if(l.nodeType===Node.TEXT_NODE&&/\s+/.test(l.textContent))l=l.nextSibling;else break;return(l=rtv(l))?l:tIq(W.parentNode)};
sIJ=function(W){var l=_.FJ(),V=l.JSC$11343_getStartNode();if(!lMv(V.parentNode))return null;l=l.JSC$11343_getStartOffset();if(V.nodeType===Node.TEXT_NODE){var f=_.YN(V,vf);if(f){if(W&&l===0||!W&&l===V.length)return f}else{if(W&&l===V.length)return!V||V.nodeName==="BR"||V.nextElementSibling&&_.Gb(V.nextElementSibling,"display")==="block"?null:rtv(V.nextElementSibling);if(!W&&l===0)return V?Kh(V.previousElementSibling):null}}if(V.nodeType===Node.ELEMENT_NODE)if(W){if(0<=l&&l<V.childNodes.length)return rtv(V.childNodes[l])}else if(0<
l&&l<=V.childNodes.length)return Kh(V.childNodes[l-1]);return null};
Lhq=function(W,l,V){if(!W)return null;if(W.nodeType===Node.TEXT_NODE)if(V){var f=RHx(W);if(f&&!/^\s+\S/.test(W.wholeText.substr(0,l)))return f}else if((f=tIq(W))&&!/\S\s+/.test(W.wholeText.substr(l,W.wholeText.length)))return f;return W.nodeType===Node.ELEMENT_NODE?V?RHx(W.childNodes[l]):tIq(W.childNodes[l]):Lhq(W.parentNode,l,V)};
ytn=function(W){if(W.hasChildNodes())switch(W.tagName){case "DIV":case "A":case "SPAN":var l="";for(W=W.firstChild;W;W=W.nextSibling)l+=ytn(W);return l;default:return""}else switch(W.nodeType){case 3:return W.textContent;default:return""}};
bE=function(W,l){return W.year===l.year&&W.month===l.month&&W.day===l.day};
ph=function(W,l){return W.year!==l.year?W.year<l.year:W.month!==l.month?W.month<l.month:W.day<l.day};
gln=function(W){return{year:W.getFullYear(),month:W.getMonth(),day:W.getDate()}};
PVz=function(W){var l=grY;l=l===void 0?grY:l;l(new Date(W.year,W.month,W.day))};
op=function(W){return gln(new Date(Number(W.seconds)*1E3))};
nl4=function(W){return W.year!==void 0&&W.month!==void 0&&W.day!==void 0};
CV8=function(W){return W.start!==void 0&&W.end!==void 0};
ct8=function(W){return CV8(W)?W.start:W};
Bfz=function(W){return CV8(W)?W.end:void 0};
JtU=function(W,l){for(var V=[],f=new Date(W.start.year,W.start.month);f.getFullYear()<W.end.year||f.getFullYear()===W.end.year&&f.getMonth()<=W.end.month;){var r=V,R=r.push,y=f.getFullYear(),P=f.getMonth(),n=W,B=l,d=void 0,J=[],D=Object.freeze({extraCssClass:"invisible"}),u=new Date(y,P),H=gln(u);u=u.getDay();for(var p=gln(new Date);H.month===P;){u!==dwq&&d||(d=Array.from({length:7}).fill(D),J.push(d));var X={date:{year:y,month:P,day:H.day},extraCssClass:"",debugClass:""};X.extraCssClass=B(X.date,
H,p,n).trim();d[(u-dwq+7)%7]=X;H=H.day===e76(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};u=(u+1)%7}R.call(r,{weeks:J,monthLabel:j$.SHORTMONTHS[P]+" "+y,year:y,month:P,monthLabelExtraCssClass:J[0][2]===D?"shift-down-label":""});f.setMonth(f.getMonth()+1)}return V};
Dwv=function(W,l){l=l.months.findIndex(function(V){return V.year===W.year&&V.month===W.month});
return l>=0?l:void 0};
uu6=function(W,l){a:{var V=V===void 0?[2,3]:V;V=_.L(V);for(var f=V.next();!f.done;f=V.next()){var r=new Date;if((new Uw6(f.value)).parse(l,r,{validate:!0})){r.setHours(0,0,0,0);l=r;break a}}l=null}if(!l)return{isValid:!1,value:void 0};l=gln(l);V=W.end;return ph(l,W.start)||ph(V,l)?{isValid:!1,value:void 0}:{isValid:!0,value:l}};
Fhg=function(W){var l=kCF;l=l===void 0?vlS:l;var V=W.columnsToShow||[],f=HH6(W.columnDimensions,W.columnsToShow,W.leftFloatingColumns,l);return V.map(function(r,R){var y=W.columns[r];if(y===void 0)throw Error("Sh");var P=f?f[R]:"";var n=W.getCustomTooltip?W.getCustomTooltip(r,y.headerTooltipParagraphs):y.headerTooltipParagraphs;var B=Khz(W,r);return{type:r,index:R,style:P,classes:B,headerName:y.headerName||"",headerIcon:y.headerIcon,headerTooltipParagraphs:n||[],headerTooltipHelpContext:y.headerTooltipHelpContext,
sortOrders:y.sortOrders||[],selectionState:y.isSelectionCheckbox?W.selectionState:void 0}})};
Khz=function(W,l){var V=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],f=W.columns[l];if(f===void 0)return"";var r=V.includes("DEFAULTS")&&f.cssClass?[f.cssClass]:[];if(V.includes("SORTING")){f.sortOrders&&f.sortOrders.length&&r.push("sortable");if(W.sorting&&W.sorting.columnType===l)a:switch(W.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var R="column-sorted";break a;default:R=""}else R="";R&&r.push(R)}V.includes("FLOATING")&&(l=W.columnsToShow.indexOf(l),W.leftFloatingColumns&&l<W.leftFloatingColumns&&
r.push("floating-column"),W.leftFloatingColumns&&l===W.leftFloatingColumns-1&&r.push("last-floating-column"));V.includes("RIGHT_ALIGN")&&f.rightAlignHeader&&r.push("right-align");return r.filter(function(y){return y}).join(" ")};
HH6=function(W,l,V,f){V=V===void 0?0:V;f=f===void 0?vlS:f;if(W){var r=[],R=0;GCz(W,l,f).forEach(function(y,P){var n="min-width:"+y.minWidth+"px;padding-left:"+y.paddingLeft+"px;padding-right:"+y.paddingRight+"px;flex:"+y.flexGrow+" 0 "+y.minWidth+"px;";y.maxWidth!==Infinity&&(n=[n,"max-width:"+y.maxWidth+"px;"].join(""));R>0&&P<V&&(n=[n,"left:"+R+"px;"].join(""));r.push(n);R+=y.minWidth+y.paddingLeft+y.paddingRight});
return r}};
GCz=function(W,l,V){V=V===void 0?vlS:V;return l.map(function(f,r){f=W&&W[f]||{};var R=r===0?V.paddingLeftFirstColumn:V.padding;f.paddingLeft!==void 0&&(R=f.paddingLeft);r=r===l.length-1?V.paddingRightLastColumn:V.padding;f.paddingRight!==void 0&&(r=f.paddingRight);return{paddingLeft:R,paddingRight:r,minWidth:f.minWidth!==void 0?f.minWidth:V.minWidth,maxWidth:f.maxWidth!==void 0?f.maxWidth:V.maxWidth,flexGrow:f.flexGrow!==void 0?f.flexGrow:V.flexGrow}})};
bHx=function(W){var l=W.reduce(function(f,r){var R=r.columnId,y={};r.headerText&&(y.headerName=_.dE(r.headerText));r.rightAlignHeader&&(y.rightAlignHeader=r.rightAlignHeader);var P;if((P=r.headerIcon)==null?0:P.iconType)y.headerIcon=_.IJ(r.headerIcon.iconType);f[R]=y;return f},{}),V=W.filter(function(f){return!f.hideColumn}).map(function(f){return f.columnId});
W=W.filter(function(f){return!!f.dimensions}).reduce(function(f,r){f[r.columnId]=r.dimensions;
return f},{});
return{columns:l,columnsToShow:V,columnDimensions:W}};
_.pY8=function(W){return W?W.simpleText?W.simpleText:W.runs?W.runs.map(function(l){return l.text}).join(""):"":""};
mwS=function(W){var l=W.data;var V=W.onTap;var f=W.isSelected;var r=W.onFocusIn;if(!l)return{};W=olz(l);f===void 0&&(f=l==null?void 0:l.isSelected);var R;return{text:jIU(l,W),startIcon:(R=l.icon)==null?void 0:R.iconType,state:f?0:2,type:0,onTap:IMz(l,V),accessibilityLabel:iHx(l,W),onFocusIn:function(){return r==null?void 0:r()}}};
jIU=function(W,l){if(!l)return W.text?_.pY8(W.text):void 0};
IMz=function(W,l){return function(V){l==null||l(V,W)}};
olz=function(W){W=W.style&&W.style.styleType;return!EmF&&W==="STYLE_EXPLORE_LAUNCHER_CHIP"};
iHx=function(W,l){if(l){var V,f,r;return(r=(V=W.accessibilityData)==null?void 0:(f=V.accessibilityData)==null?void 0:f.label)!=null?r:jIU(W,!1)}};
Ip=function(W){return{signalAction:{signal:W}}};
wY8=function(){return _.M4("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?XYn:_.TfY};
AtJ=function(W,l){W=W===void 0?"SOFT_RELOAD_PAGE":W;l=l===void 0?49504:l;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Hy(_.wg("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:l}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:W}}]}}}};
QIj=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Hy(_.wg("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:wY8()}};
MIF=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Hy(_.wg("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:wY8()}};
ZH6=function(W,l){var V=_.Hy(_.wg("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),f=_.Hy(_.wg("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),r={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Hy(_.wg("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};r.serviceEndpoint=W?W:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Ip("SOFT_RELOAD_PAGE")]}};return{title:V,bodyText:f,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:r},
style:{value:l!=null?l:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
aMv=function(W){W=W===void 0?{}:W;return{title:_.Hy(W.localizedZeroStateTitleText===void 0?"":W.localizedZeroStateTitleText),bodyText:_.Hy(W.localizedZeroStateMessage===void 0?"":W.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Hy(W.localizedZeroStateButtonText===void 0?"":W.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[OHz]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Nfx=function(W){W=W===void 0?{}:W;return{title:_.Hy(W.localizedOptInBannerTitleText===void 0?"":W.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Hy(W.localizedOptInMessage===void 0?"":W.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Hy(_.wg("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:_.Hy(_.wg("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:[zHx]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
eHn=function(W,l){var V=l=l===void 0?{}:l;l=V.offlineTitleText===void 0?"":V.offlineTitleText;var f=V.offlineDescriptionText===void 0?"":V.offlineDescriptionText,r=V.formattedSupplementalText,R=V.actionButtonText===void 0?"":V.actionButtonText,y=V.titleText===void 0?"":V.titleText;V=V.descriptionText===void 0?"":V.descriptionText;var P={title:R,accessibilityText:R,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};W||(y=l,V=f,P={title:R,accessibilityText:R,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:_.Hy(y),titleLength:y.length,overrideTitleMaxFontSize:30,subtitle:_.Hy(V),supplementalText:r,primaryButton:{buttonViewModel:P},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[YiU]},darkTileImage:{thumbnails:[xwz]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.Sin=function(W,l,V,f,r,R,y,P,n,B,d){r=r===void 0?!1:r;R=R===void 0?!1:R;y=y===void 0?0:y;P=P===void 0?-Infinity:P;n=n===void 0?!1:n;B=B===void 0?!1:B;d=d===void 0?!1:d;var J=[],D=_.Hy(_.wg("SMART_DOWNLOADS",void 0,"Smart downloads")),u=_.Hy(qiF(y,P,W.length));P=y=void 0;B?y={statementBannerRenderer:eHn(d,f)}:r?W.length>0?P=hHj(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.U("kevlar_manual_downloads_above"),D,u):n?P={alertBannerViewModel:{heading:{content:V.localizedOptInBannerTitleText===
void 0?"":V.localizedOptInBannerTitleText},body:{content:V.localizedPromptMessage===void 0?"":V.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.wg("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.wg("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:_.H6q}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:R&&(P={backgroundPromoRenderer:{bodyText:_.Hy(_.wg("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"}}}):
R&&(P={alertBannerViewModel:{heading:{content:V.localizedOptInBannerTitleText===void 0?"":V.localizedOptInBannerTitleText},body:{content:V.localizedOptInMessage===void 0?"":V.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.wg("TURN_ON",void 0,"Turn on"),accessibilityText:_.wg("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}}}}}});V=_.Hy(_.wg("YOUR_DOWNLOADS",void 0,"Your downloads"));f=void 0;l.length>0?(f=void 0,_.U("kevlar_display_downloads_numbers")&&(f=_.Hy(_.Ag("VIDEO_COUNT",l.length))),f=hHj(l,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,V,f)):r||W.length||
B||(f={backgroundPromoRenderer:{bodyText:_.Hy(_.wg("VIDEOS_WILL_APPEAR_HERE",void 0,"Videos you download will appear here")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/downloads_empty_state.png"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:120848}}}});y?J.push({richSectionRenderer:{content:y}}):P&&!_.U("kevlar_manual_downloads_above")&&J.push({richSectionRenderer:{content:P,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
f&&J.push({richSectionRenderer:{content:f,loggingDirectives:{clientVeSpec:{uiType:51721}}}});P&&_.U("kevlar_manual_downloads_above")&&J.push({richSectionRenderer:{content:P,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(l.length>0||r&&W.length>0&&!B)&&J.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Hy(_.wg("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:J}};
_.$wU=function(W){return Elx(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.W6q=function(W){return Elx(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
Elx=function(W,l){var V=[];W=hHj(W,l,!0);V.push({richSectionRenderer:{content:W}});return{contents:V}};
hHj=function(W,l,V,f,r){V=V===void 0?!1:V;var R="RESPONSIVE_SIZE_STANDARD";_.U("kevlar_modern_downloads_compact")?R="RESPONSIVE_SIZE_COMPACT":_.U("kevlar_modern_downloads_extra_compact")?R="RESPONSIVE_SIZE_EXTRA_COMPACT":_.U("kevlar_modern_downloads_tiny")&&(R="RESPONSIVE_SIZE_TINY");W={isExpanded:V,contents:iE(W),entitySelectorType:l,responsiveContainerConfiguration:{responsiveSize:R}};f&&(W.title=f);r&&(W.subtitle=r);V||(_.U("kevlar_smart_downloads_show_more_button")?(W.showMoreButton={buttonRenderer:{accessibility:{label:_.wg("SHOW_MORE",
void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Hy(_.wg("SHOW_MORE",void 0,"Show more"))}},W.showLessButton={buttonRenderer:{accessibility:{label:_.wg("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.Hy(_.wg("SHOW_LESS",void 0,"Show less"))}}):(W.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.wg("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}}}},W.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.wg("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}}}},W.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.wg("VIEW_ALL",void 0,"View all"),accessibilityText:_.wg("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:_.kH("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:W}};
iE=function(W){var l=[];W=_.L(W);for(var V=W.next();!V.done;V=W.next())if(V=V.value,t7j(V)){var f=l,r=f.push;var R=void 0;if(V==null?0:(R=V.videoEntity)==null?0:R.videoId){R=sm(_.DJ().getState(),V.videoEntity.videoId);var y=_.DJ().getState();var P=_.i_(V.videoEntity.videoId,"mainVideoEntity");y=!!_.eE(y.entities)[P];y={videoId:V.videoEntity.videoId,title:K0(V.videoEntity.title),shortBylineText:K0(V.channelEntity.title),thumbnail:V.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:y&&_.U("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:woS(V.videoEntity.videoId,R,V.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.wg("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};V.videoEntity.lengthSeconds&&(y.thumbnailOverlays=t6Y(V.videoEntity.lengthSeconds,R));y.isWatched=R>0;_.U("kevlar_modern_downloads_page")&&(y.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:V.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.wg("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},y.badges=void 0);V=y}else V={};r.call(f,{richItemRenderer:{content:{videoRenderer:V},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(RmU(V)){f=l;r=f.push;var n=P=R=void 0,B=void 0,d=void 0,J=void 0,D=void 0,u=void 0,H=void 0,p=void 0,X=void 0,w=void 0;y=V.mainPlaylistEntity.playlistId;var O=V==null?void 0:(w=V.mainPlaylistEntity)==null?void 0:(X=w.thumbnailStyleData)==null?void 0:(p=X[0])==null?void 0:(H=p.value)==null?void 0:(u=H.collageThumbnail)==
null?void 0:u.coverThumbnail;if(y&&O){u=Aeq(y);!_.U("enable_offline_playlist_page")&&(V==null?0:(D=V.mainPlaylistEntity)==null?0:D.videos)&&(D=V==null?void 0:(J=V.mainPlaylistEntity)==null?void 0:(d=J.videos)==null?void 0:d[0],d=_.p0(D).entityId,d=JSON.parse(d).videoId,d!==void 0&&(J=sm(_.DJ().getState(),d),u=_.vy(d,y,void 0,void 0,J)));d=[];if(V==null?0:(B=V.mainPlaylistEntity)==null?0:(n=B.videos)==null?0:n.length)d=[yp6(),Object.assign({},(P=LBv(V==null?void 0:V.mainPlaylistEntity.videos.length))!=
null?P:{})];V={playlistId:y,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:O}},navigationEndpoint:u,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:d,title:K0(V.mainPlaylistEntity.title),shortBylineText:K0(V==null?void 0:(R=V.channelEntity)==null?void 0:R.title),badges:[{metadataBadgeRenderer:{label:_.wg("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.U("kevlar_modern_downloads_page")&&(V.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:lGz,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:y,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.wg("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},V.badges=void 0)}else V=void 0;r.call(f,{richItemRenderer:{content:{playlistRenderer:V},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return l};
qiF=function(W,l,V){W=W?VUj(W):"";l!==void 0&&isFinite(l)?l===0?l=_.wg("UPDATING",void 0,"Updating..."):(l=RfY(new Date(l),new Date),l=_.wg("UPDATED_TIME",{relative_time:l},"Updated "+l)):l="";var f="";W&&l&&(f=" \u2022 ");if(V&&_.U("kevlar_display_downloads_numbers")){V=_.Ag("VIDEO_COUNT",V);if(W||l)f=" \u2022 ";return V+f+W+f+l}return W+f+l};
fGj=function(W){return Sb4(W.entities).length};
_.rnz=function(W,l){var V=G0U(W.responsiveSize),f;W=!((f=W.responsiveMap)==null||!f.some(function(r){return r.containerSize==="CONTAINER_SIZE_NARROW"&&r.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:l,sizing:V,enableFullBleedForSingleCol:!1,isCompactList:V==="COMPACT"&&W}};
R$Y=function(W,l){return _.mL(W.entities,"votingEntity",l)};
m2=function(W){if(W){var l;return((l=_.tY().resolve(_.R0(_.nP)))==null?0:l())?W.darkTheme:W.lightTheme}};
tUn=function(W,l){if(W.simpleText)return Object.assign({},W,{simpleText:yY(W.simpleText,l)});if(!W.runs)return W;for(var V=Object.assign({},W,{runs:[]}),f=0,r=_.L(W.runs),R=r.next();!R.done;R=r.next())if(R=R.value,R.text)if(f+R.text.length<=l)V.runs.push(R),f+=R.text.length;else return V.runs.push(Object.assign({},R,{text:yY(R.text,l-f)})),V;return W};
sL6=function(W,l){return _.mL(W.entities,"chipBarStateEntity",l)};
L6J=function(W,l){return _.mL(W.entities,"chipEntity",l)};
gj4=function(W,l,V,f){return function(){var r=ynS.has(W.displayType)&&W.selected,R=r&&W.deselectCommand?W.deselectCommand:W.tapCommand;!R||r&&f||_.sZ(R,{form:{element:l==null?void 0:l.value}});V==null||V()}};
Pd8=function(W){switch(W){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
nj4=function(W,l){return{triggeringElement:W,onDwellTriggeredFn:function(){var V={triggeringElement:W,loadVideoPreviewEventData:l},f=document.querySelector(".video-preview");f&&f.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:V}))},
onDwellEndFn:function(){var V=document.querySelector(".video-preview");V&&V.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
CdU=function(W,l){var V=_.tY().resolve(_.R0(C6v)),f=function(){var r=l();return V&&r?nj4(W.value,r):null};
_.m1(function(){var r=f();V&&r&&Promise.resolve().then(function(){V.registerElement(r)});
_.Xc(function(){V&&r&&Promise.resolve().then(function(){_.lE(V,r)})})},"csPUge")};
B0U=function(W){var l=W.dataset.resizeObserverId;if(l)return l;l=""+cnz++;return W.dataset.resizeObserverId=l};
d2n=function(W,l){var V=B0U(W);XJ.has(V)||XJ.set(V,new Set);XJ.get(V).add(l);Tb.has(V)&&l(Object.assign({},{target:W},Tb.get(V)))};
Jnj=function(W){W=_.L(W);for(var l=W.next();!l.done;l=W.next()){l=l.value;var V=B0U(l.target),f=Object.assign({},{target:l.target},Tb.get(V));if(f!=null&&f.contentRect?f.contentRect.width!==l.contentRect.width||f.contentRect.height!==l.contentRect.height:1)for(Tb.set(V,{borderBoxSize:l.borderBoxSize,contentBoxSize:l.contentBoxSize,contentRect:l.contentRect,devicePixelContentBoxSize:l.devicePixelContentBoxSize}),V=_.L(XJ.get(V)||[]),f=V.next();!f.done;f=V.next())f=f.value,f(l)}};
U2g=function(){return wC?wC:wC=new D28(Jnj)};
uM8=function(W,l){var V=B0U(W);XJ.has(V)&&(XJ.get(V).delete(l),XJ.get(V).size===0&&(XJ.delete(V),Tb.delete(V),wC.unobserve(W),delete W.dataset.resizeObserverId));XJ.size===0&&wC&&(wC.disconnect(),wC=void 0)};
vjz=function(W,l){var V=_.tY().resolve(tH);return khj.map(function(f){return V.observe(W,l,f)})};
Hyv=function(W){var l=_.tY().resolve(tH);W.forEach(function(V){l.unobserveByKey(V)})};
_.Ghg=function(W,l){var V=Object.assign({},K6n,l);l=_.L(Ixz());var f=l.next().value,r=l.next().value,R=function(y){var P=y.contentRect.height;if((y=y.contentRect.width)||P||V.canHaveZeroSize)f.width()===y&&f.height()===P||r(f,{height:P,width:y})};
_.mw(function(){var y=W instanceof HTMLElement?W:W.value,P=F6n(R,V.throttleMs),n=[];V.useVisibilityObserver&&(n=vjz(y,function(B,d){requestAnimationFrame(function(){d==="visible"?(d2n(y,P),U2g().observe(y)):uM8(y,P)})}));
n.length||(d2n(y,P),U2g().observe(y));_.Xc(function(){n.length&&(Hyv(n),n.length=0);uM8(y,P)})});
return f};
pnF=function(W,l,V,f,r){W=l?W.switchOffCommand:W.switchOnCommand;if(f&&r)by8(W,V,r);else{var R,y;(R=_.Rf({elementsCommand:W}))==null||(y=R.onclick)==null||y.call(R,V)}};
by8=function(W,l,V){W=_.Rf({elementsCommand:W,additionalCommandArgs:{commandController:{onSuccess:function(){V(!1)},
onServerError:function(){V(!1)}}}});
if(W==null?0:W.onclick)W.onclick(l),V(!0)};
jLU=function(W){if(W)return _.k(W,ojz)};
IGz=function(W,l){if(!((l==null?0:l.entitySelectorType)&&(l==null?0:l.entityKey)))return{};switch(l.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":return W=_.l$(W,l.entityKey),W=W==null?void 0:W.value,l=!1,W==="CAPTIONS_UNAVAILABLE"&&(l=!0,W=""),Object.assign({},!!W&&{selectionText:{content:W}},!!W&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:l});case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":return _.U("web_shorts_audio_track_picker")?
(W=_.l$(W,l.entityKey),W=W==null?void 0:W.value,l=!1,W==="ALTERNATE_AUDIO_TRACK_UNAVAILABLE"&&(l=!0,W=""),Object.assign({},!l&&!!W&&{selectionText:{content:W}},!l&&!!W&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}},{isDisabled:l})):{};default:return{}}};
wnz=function(W,l,V){if(l)return[iyg];switch(W){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[A$];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return V?[A$]:[m2g,A$];case "TRANSFER_STATE_PAUSED_BY_USER":return[XnY,A$];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[T0v,A$];default:return[iyg]}};
AnU=function(W,l,V,f){return wnz(W,l,f).map(function(r){var R=r.text,y=r.iconType,P=r.videoAction;r=r.playlistAction;R=R?{content:R}:void 0;y=y&&{sources:[{clientResource:{imageName:y}}]};var n=(0,_.MC.unsafeClone)(V);if(n){var B=_.k(n,_.Xx),d=_.k(n,_.TY);B&&P?B.action=P:d&&r&&(d.action=r)}return{title:R,leadingImage:y,rendererContext:n&&{commandContext:{onTap:{innertubeCommand:n}}}}})};
QLx=function(W){W=_.qB(W.rendererContext);var l;return(l=_.k(W,_.TY))==null?void 0:l.playlistId};
MUg=function(W){var l;return(l=W.listItems)==null?void 0:l.some(function(V){var f;return _.hy((f=_.k(V,_.O_))==null?void 0:f.rendererContext)})};
aG4=function(W){var l;return(l=W.listItems)==null?void 0:l.some(function(V){var f,r,R=(r=(f=_.k(V,Zyj))==null?void 0:f.defaultListItem)!=null?r:V;V=_.k(R,_.O_);return!!_.k(V==null?void 0:V.leadingAccessory,Oy8)})};
YEU=function(W){var l=W.element;var V=W.veType;var f=W.storedVisualElement===void 0?null:W.storedVisualElement;var r=W.elementIndex===void 0?0:W.elementIndex;W=W.clientYouTubeData;var R=_.Wh();R!==z$j&&(N0j.clear(),z$j=R);if(l.visualElement&&N0j.has(l.visualElement))return null;if(f&&N0j.has(f))return l.visualElement=f,null;V=_.AG(_.Qq(),{veType:V,elementIndex:r,clientYouTubeData:W});if(!V)return null;l.visualElement=V;N0j.add(V);return V};
_.Ql=function(W,l,V,f){V=V===void 0?null:V;f=f===void 0?M8z:f;var r=r===void 0?null:r;qa(function(){if(l){V instanceof Function&&(V=V());var R=YEU({element:l,veType:W,storedVisualElement:V,clientYouTubeData:void 0});R&&(afq(l,r),f(R))}})};
Mr=function(W,l){if(W){switch(l){case 0:W=W.primaryTitleColor;break;case 1:W=W.secondaryTitleColor;break;case 2:W=W.surgeColor;break;case 3:W=W.section2Color;break;case 4:W=W.section3Color;break;default:return}if(W)return _.ta(W)}};
Zp=function(W,l){if(W){switch(l){case 0:W=W.primaryTitleColor;break;case 1:W=W.secondaryTitleColor;break;case 2:W=W.surgeColor;break;case 3:W=W.section2Color;break;case 4:W=W.section3Color;break;default:return}if(W)return _.ta(W)}};
x2z=function(W){return W?_.sD(W):""};
e$F=function(W){return(W==null?void 0:W.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
qEF=function(W,l){return _.mL(W.entities,"videoOverviewAsyncDataEntity",l)};
h$j=function(W,l){var V;return"linear-gradient(to bottom, "+((V=l==null?void 0:l.map(function(f){var r=W?f.darkThemeColor:f.lightThemeColor;return r?_.sD(r)+" "+((f==null?void 0:f.startLocation)||0)*100+"%":"transparent"}))==null?void 0:V.join(", "))+")"};
SEz=function(W,l,V,f,r){if(!((f==null?0:f.height)&&(f==null?0:f.width)))return{size:0};var R=f.width;f=f.height;if(r)return l==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||l==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&R>f?{size:312/A0U}:l==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(V!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||W!==1&&W!==2||l!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&l!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&l!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(l==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||l==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||f===R)switch(W){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(l==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||f>R)switch(W){case 1:case 3:return{size:240*w5j};default:return{size:360*w5j}}switch(W){case 1:case 2:return{size:1/A0U*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.Ej8=function(W){if(!("matchMedia"in window))return _.x2(Error("Th")),function(){return!1};
var l=window.matchMedia(W);W=_.L(_.J4(l.matches,void 0,"jLJc8e"));var V=W.next().value,f=W.next().value,r=function(R){f(R.matches)};
l.addEventListener?(l.addEventListener("change",r),_.Xc(function(){l.removeEventListener("change",r)})):l.addListener&&(l.addListener(r),_.Xc(function(){l.removeListener(r)}));
return V};
$2x=function(W){return W==="IMAGE_BANNER_STYLE_INSET"||W==="IMAGE_BANNER_STYLE_UNKNOWN"};
WcS=function(){if(!("matchMedia"in window))return _.x2(Error("Th")),function(){return 0};
var W=XW(function(){return window.matchMedia("(max-width: 527.9px)")}),l=XW(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),V=XW(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),f=XW(function(){return window.matchMedia("(min-width: 1024px)")}),r=_.L(_.J4(W.matches,void 0,"og9kEc")),R=r.next().value,y=r.next().value;
r=_.L(_.J4(l.matches,void 0,"ybDWCb"));var P=r.next().value,n=r.next().value;r=_.L(_.J4(V.matches,void 0,"o0Gfh"));var B=r.next().value,d=r.next().value;r=_.L(_.J4(f.matches,void 0,"yqUUgd"));var J=r.next().value,D=r.next().value,u=XW(function(){return function(w){y(w.matches)}}),H=XW(function(){return function(w){n(w.matches)}}),p=XW(function(){return function(w){d(w.matches)}}),X=XW(function(){return function(w){D(w.matches)}});
_.mw(function(){W.addEventListener?(W.addEventListener("change",u),l.addEventListener("change",H),V.addEventListener("change",p),f.addEventListener("change",X)):W.addListener&&(W.addListener(u),l.addListener(H),V.addListener(p),f.addListener(X));_.Xc(function(){W.removeEventListener?(W.removeEventListener("change",u),l.removeEventListener("change",H),V.removeEventListener("change",p),f.removeEventListener("change",X)):W.removeListener&&(W.removeListener(u),l.removeListener(H),V.removeListener(p),
f.removeListener(X))})});
return function(){return R()?1:P()?2:B()?3:J()?4:0}};
lTU=function(W){var l=0;W=_.L([W.title,W.metadata,W.actions,W.description,W.attribution]);for(var V=W.next();!V.done;V=W.next())V.value&&l++;return l};
Vfx=function(W){return W===1||W===2?1:0};
rwY=function(W){W=(new fTq).parse(W);return(new kG).render(W).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(l){var V=l.split(":").map(Number),f=0,r=0;if(V.length===3)V=_.L(V),f=V.next().value,r=V.next().value,V=V.next().value;else if(V.length===2)V=_.L(V),r=V.next().value,V=V.next().value;else if(V.length===1)V=_.L(V).next().value;else throw Error("Uh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(f*3600+r*60+V)+'" role="button">'+l+"</span>"})};
Ren=function(W){W=_.L(W.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var l=W.next(),V={};!l.done;V={clickHandler$jscomp$5:void 0},l=W.next()){l=l.value;V.clickHandler$jscomp$5=function(r){r=Number(r.target.getAttribute("data-time"));if(isNaN(r))throw Error("Vh");var R;(R=_.I$())==null||R.seekTo(r,!0)};
var f=function(r){return function(R){R.key!=="Enter"&&R.key!=="Space"||(0,r.clickHandler$jscomp$5)(R)}}(V);
l.setAttribute("tabindex","0");l.removeEventListener("click",V.clickHandler$jscomp$5);l.removeEventListener("keydown",f);l.addEventListener("click",V.clickHandler$jscomp$5);l.addEventListener("keydown",f)}};
tfg=function(){return _.C("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.C(Og,{percentWidth:100}),_.C(Og,{animationDelay:200}),_.C(Og,{animationDelay:400}),_.C(Og,{animationDelay:600}),_.C(Og,{animationDelay:800,percentWidth:60}),_.C("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.C(Og,{percentWidth:100}),_.C(Og,{animationDelay:200}),_.C(Og,{animationDelay:400}),_.C(Og,{animationDelay:600,percentWidth:50}))};
Og=function(W){return _.C("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(W.percentWidth===void 0?100:W.percentWidth)+"%"},_.C("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(W.animationDelay===void 0?0:W.animationDelay)+"ms"}))};
scU=function(){var W=_.L(_.J4(function(){return""},void 0,"dXJHWc")),l=W.next().value;
return[function(){return l()()},
W.next().value]};
Lcq=function(W,l){W=W?VUj(W):"";l!==void 0&&isFinite(l)?l===0?l=_.wg("UPDATING",void 0,"Updating..."):(l=RfY(new Date(l),new Date),l=_.wg("UPDATED_TIME",{relative_time:l},"Updated "+l)):l="";var V="";W&&l&&(V=" \u2022 ");return _.Hy(W+V+l)};
P2q=function(W,l,V,f,r,R){l=l===void 0?0:l;var y=ywj[l],P=y.title,n=y.iconType,B=y.topButtonRenderer,d=y.sectionClientVE;y=y.videoClientVE;var J;if(l!==1||W.length){V=[];W=_.L(W);for(f=W.next();!f.done;f=W.next()){var D=f.value;if(t7j(D))V.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:D.videoEntity.videoId,title:K0(D.videoEntity.title),shortBylineText:K0(D.channelEntity.title),thumbnail:D.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:D.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.wg("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:y}}}}}});else if(RmU(D)){f=V;var u=f.push;var H=void 0,p=void 0,X=void 0,w=void 0,O=void 0,S=void 0,N=void 0,x=void 0,Y=D.mainPlaylistEntity.playlistId,W8=D==null?void 0:(x=D.mainPlaylistEntity)==null?void 0:(N=x.thumbnailStyleData)==null?void 0:(S=N[0])==null?void 0:(O=S.value)==null?void 0:(w=O.collageThumbnail)==null?void 0:w.coverThumbnail;w=Aeq(Y);if(!_.U("enable_offline_playlist_page")&&
(D==null?0:(X=D.mainPlaylistEntity)==null?0:X.videos)){b:{X=D==null?void 0:(p=D.mainPlaylistEntity)==null?void 0:p.videos;p=_.DJ().getState().entities;if(X!=null&&X.length&&p)for(X=_.L(X),O=X.next();!O.done;O=X.next())if(O=_.p0(O.value).entityId,(O=JSON.parse(O).videoId)&&qbY(p,O)==="TRANSFER_STATE_COMPLETE"){p=O;break b}p=""}p!==void 0&&(w=sm(_.DJ().getState(),p),w=_.vy(p,Y,void 0,void 0,w))}p=MsY(_.wg("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),Aeq(Y));D=Y&&W8&&p?{playlistId:Y,navigationEndpoint:w,
viewPlaylistText:p,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:W8}},title:K0(D.mainPlaylistEntity.title),shortBylineText:K0(D==null?void 0:(H=D.channelEntity)==null?void 0:H.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:gEz,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:Y,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.wg("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:y}}}:
void 0;u.call(f,{gridPlaylistRenderer:D})}}y={gridRenderer:{items:V}};l===1&&(J=Lcq(r,R))}else if(f){var c8=_.Hy((u=V==null?void 0:V.localizedPromptMessage)!=null?u:"");y={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Hy(_.wg("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.H6q}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Hy(_.wg("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};J=Lcq(r,R)}else c8=_.Hy(_.wg("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
y={};return{contents:[{shelfRenderer:{title:P,titleAnnotation:J,icon:{iconType:n},subtitle:c8,content:y,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:B}]}}}}],loggingDirectives:{clientVeSpec:{uiType:d}}}};
nEz=function(W,l,V,f,r,R,y,P,n,B,d){V=V===void 0?{}:V;f=f===void 0?{}:f;r=r===void 0?!1:r;R=R===void 0?!1:R;y=y===void 0?!1:y;P=P===void 0?!1:P;n=n===void 0?!1:n;B=B===void 0?0:B;d=d===void 0?-Infinity:d;if(!(l.length||W.length||r||P))return R?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:aMv(V)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Hy(_.wg("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 J=[];W.length&&J.push(P2q(W,0));P?J.push({contents:[{statementBannerRenderer:eHn(n,f)}]}):r?J.push(P2q(l,1,V,y,B,d)):R&&J.push({contents:[{statementBannerRenderer:Nfx(V)}]});(r&&l.length||W.length)&&J.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Hy(_.wg("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 J.map(function(D){return{itemSectionRenderer:D}})};
ap=function(W,l){if(typeof W!=="object")return null;W=_.L(Object.entries(W));for(var V=W.next();!V.done;V=W.next()){var f=_.L(V.value);V=f.next().value;f=f.next().value;if(V===l)return V;if(f=ap(f,l))return V+"."+f}return null};
zb=function(W){var l=W.content;return(W=W.styleRuns)&&l?{runs:W.map(function(V){var f={text:l.slice(V.startIndex,V.startIndex+V.length)};V.fontColor&&(f.textColor=V.fontColor);return f})}:{simpleText:l}};
BBq=function(W,l,V,f){var r=C24;f&&(W.quantity=f);if(!W.quantity||!W.maxQuantity)return{};f=W.minusButton;var R=W.plusButton,y,P,n,B;return{value:W.quantity,maxValue:W.maxQuantity,onChangeCallback:function(d){r(W,d)},
minusLabel:(y=_.k(f,cw8))==null?void 0:y.label,minimumReachedLabel:(P=_.k(f,cw8))==null?void 0:P.limitReachedLabel,plusLabel:(n=_.k(R,cw8))==null?void 0:n.label,maximumReachedLabel:(B=_.k(R,cw8))==null?void 0:B.limitReachedLabel,disabled:l,onRemoveCommand:V}};
C24=function(W,l){var V=W.quantityIncrementerEntityKey;if(V){var f={};f.quantity=l;_.dm(_.Nr("quantityIncrementerEntity",V,f));W.onChangeCommand&&_.sZ(W.onChangeCommand)}};
DKU=function(W,l){(W=dK6(W))&&((_.U("enable_mini_app_command_handler_mweb_fix")?0:l)?Jwg.push({command:W,sourceData:{},commandContext:void 0}):_.tY().resolve(_.s6).resolveCommand(W))};
dK6=function(W){return _.k(W,_.VY)};
UKF=function(){var W=window.performance.timeOrigin+window.performance.now(),l=(new _.Y1).setSeconds(W/1E9);return _.VP(l,2,_.Rw(W%1E9),0)};
kVn=function(W,l){var V;W=(V=_.k(_.k(W,_.VY),u86))==null?void 0:V.methodName;var f,r;(V=window.youtubewebview||((f=window.webkit)==null?void 0:(r=f.messageHandlers)==null?void 0:r.youtubewebview))&&W&&(f=new x1,W=_.mY(f,1,W),W=_.Xw(W.JSC$12400_serializeBinary()),l=_.Xw(l),V.postMessage(W+","+l))};
e$=function(W,l){var V=_.k(_.k(W,_.VY),u86);V&&(l&&(V.serializedAdditionalMetadata=_.Xw(l)),DKU(W,!0))};
vEn=function(W){switch(W){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"}};
HLz=function(){return!!_.M4("ID_TOKEN")};
GVg=function(W){return W instanceof Error&&W.cause instanceof Kcn&&W.cause.rpcErrorCode!==void 0?!Fc6.includes(W.cause.rpcErrorCode):!0};
pMF=function(){return _.$2(bLj,{authuser:""+(_.M4("SESSION_INDEX")||0)})};
qr=function(W,l,V,f){V=V===void 0?"MINI_APP_SDK_API_UNSPECIFIED":V;f=f===void 0?"":f;var r=new _.bP;V={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:f,sdkApi:V};W instanceof Error&&(r.message=W.message,r.name=W.name,W.cause instanceof Kcn&&W.cause.rpcErrorCode!==void 0&&(V.rpcErrorCode=W.cause.rpcErrorCode));var R;(R=l.onError)==null||R.call(l,{loggingError:r,metadata:V})};
jcx=function(W,l,V,f){switch(W){case "MINI_APP_SOURCE_GAMESNACKS":return new h$(l,V,f);default:return new oEx(l,V,f)}};
ITq=function(W){switch(W){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"}};
iLF=function(W){switch(W){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"}};
mKJ=function(W){switch(W){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"}};
XMx=function(){return Math.floor(Math.random()*4)+1};
TBF=function(W,l,V,f){W=_.L(Object.entries(W));for(var r=W.next(),R={};!r.done;R={message$jscomp$994:void 0},r=W.next()){var y=_.L(r.value);r=y.next().value;y=y.next().value;R.message$jscomp$994=y;l.push(setTimeout(function(P){return function(){f(!1);V(P.message$jscomp$994.text)}}(R),R.message$jscomp$994.delayMs));
Number(r)>0&&l.push(setTimeout(function(){f(!0)},R.message$jscomp$994.delayMs-400))}};
wMj=function(W,l){var V=V===void 0?M8z:V;_.U("mweb_fix_monitor_visibility_after_render")?W&&qa(function(){afq(W,l,V)}):qa(function(){afq(W,l,V)})};
ZLS=function(W){Awv||(Awv=Qc6(new _.y1(1,void 0,void 0,Mfg),0));var l=Awv.format(Math.floor(W));l=_.La==="be"||_.La==="bg"||_.La==="es"||_.La==="et"||_.La==="hu"||_.La==="ka"||_.La==="lv"||_.La==="pl"||_.La==="pt-PT"||_.La==="sq"?l.replace(new RegExp("^(\\d)"+Mfg.GROUP_SEP.replace(".","\\.")+"(\\d+("+Mfg.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):l;return W>=1E3&&W<=9999&&l[1]==="."&&(_.La==="sl"||_.La==="it")?l.replace(".",""):l};
OLq=function(W,l){t8n("ytd-button-renderer",{data:W,className:l?l.className:"",overrides:l==null?void 0:l.buttonOverrides},Q_4)};
NBn=function(W,l,V,f){if(W)return f=f||W.likeStatus,l?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:f==="LIKE",isDisabled:!W.likesAllowed,defaultIcon:{iconType:V},defaultText:f==="LIKE"?W.likeCountWithUnlikeText:W.likeCountText,toggledText:f==="LIKE"?W.likeCountText:W.likeCountWithLikeText,defaultNavigationEndpoint:aTz(W,"LIKE"),defaultServiceEndpoint:zeF(W,"LIKE"),toggledServiceEndpoint:zeF(W,"INDIFFERENT"),defaultTooltip:_.dE(W.likeCountTooltipText),toggledTooltip:_.dE(W.likeCountTooltipText),
targetId:W.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:f==="DISLIKE",isDisabled:!W.likesAllowed,defaultIcon:{iconType:V},defaultText:f==="DISLIKE"?W.dislikeCountWithUndislikeText:W.dislikeCountText,toggledText:f==="DISLIKE"?W.dislikeCountText:W.dislikeCountWithDislikeText,defaultNavigationEndpoint:aTz(W,"DISLIKE"),defaultServiceEndpoint:zeF(W,"DISLIKE"),toggledServiceEndpoint:zeF(W,"INDIFFERENT"),defaultTooltip:_.dE(W.dislikeCountTooltipText),
toggledTooltip:_.dE(W.dislikeCountTooltipText)}};
aTz=function(W,l){if(l==="LIKE")return W.likeCommand;if(l==="DISLIKE")return W.dislikeNavigationEndpoint};
zeF=function(W,l){var V;return(V=W.serviceEndpoints)==null?void 0:V.find(function(f){var r;return((r=_.k(f,_.S$))==null?void 0:r.status)===l})};
_.eeY=function(W,l,V){return window.spf&&!_.U("web_disable_spfjs_client")?YOF(W,l,V):xK4(W,l)};
YOF=function(W,l,V){var f=null,r=(new _.Dx(function(R,y){var P={};if(l){P.method=l.method;var n=l.postParams||{};Ruq(W,l)&&(n[_.M4("XSRF_FIELD_NAME")]=_.M4("XSRF_TOKEN"));P.postData=_.U6(n);l.type&&(P.type=l.type);n=l.headers}P.headers=$T6(W,n);_.U("debug_forward_web_query_parameters")&&(W=_.fAq(W,window.location.search));P.experimental_headers=P.headers;P.onError=function(B){B.err&&B.xhr&&(B.err.params={url:B.xhr.responseURL,response:B.xhr.responseText.substr(0,64)});y(B.err)};
P.onPartDone=function(B){V&&V.call(null,B.part)};
P.onDone=function(B){var d=qOg(B.response,"xsrf_token");VS(window.location.href,W)&&d&&_.Qj("XSRF_TOKEN",d);if(d=qOg(B.response,"service_worker_killswitch"))_.Qj("SERVICE_WORKER_KILLSWITCH",d),k2z();R(B.response)};
f=spf.request(W,P)})).then(heY);
r.thenCatch(function(R){var y=R instanceof _.Eg,P=R&&R.hasOwnProperty("params")&&R.params.response?R.params.response:"";R instanceof Error&&(P?y?OvU(R):P===')]}\'\n{"reload":"now"}'?OvU(R):(SOz(R,W,P),EE8(R,P)?_.Qe(R):_.wv(R)):OvU(R));f&&f.abort()});
return r};
heY=function(W){if(W.type==="multipart"){var l=W.timing;W=W.parts.reduce(function(V,f){Object.assign(V,f);return V},{});
W.timing=W.timing||{};Object.assign(W.timing,l);W.type="reduced"}return W};
xK4=function(W,l){l=l===void 0?{}:l;var V=null,f=new _.Dx(function(r,R){l.onFinish=function(y){if(y.readyState===XMLHttpRequest.DONE)if(y.status===200){if(y.responseType!=="json"){var P=y.response;P.substring(0,5)===")]}'\n"&&(P=P.substring(5));try{var n=JSON.parse(P)}catch(B){n=B}}else n=y.response;n instanceof Error?R(n):(P=qOg(n,"xsrf_token"),VS(window.location.href,W)&&P&&_.Qj("XSRF_TOKEN",P),y=y.responseURL,window.performance&&window.performance.getEntriesByName?(P=window.performance.getEntriesByName(y).pop())?
y={responseStart:(0,_.tv)()-(P.responseEnd-P.responseStart)}:(Math.random()<.01&&(P=Error("gi"),P.params=y,_.Qe(P)),y={responseStart:-1}):y={responseStart:0},n.timing=n.timing||{},Object.assign(n.timing,y),r(n))}else R(Error("fi`"+y.status))};
(V=_.Dj(W,l))||R(Error("fi`"+V.status))});
f.thenCatch(function(r){r instanceof Error&&(SOz(r,W),EE8(r)&&(r.level="WARNING"))});
_.U("cancel_pending_navs")&&f.thenCatch(function(){V.abort()});
return f};
qOg=function(W,l){var V=W[l],f=W.parts;W.type==="multipart"&&f&&(V=(W=f.find(function(r){return l in r}))&&W[l]);
return V};
SOz=function(W,l,V){var f=W.message||"";l={original:f,url:l};if(V)if(f=f.match(/position:?\s*(\d+)/)){f=f&&Number(f[1])?Number(f[1]):0;var r=Math.max(f-25,0);l.position=f;l.response=V.substring(r,f+25)}else l.response=V.substring(0,50);_.MJ(W,l);try{W.message="JSON parse error"}catch(R){}};
EE8=function(W,l){W=W.message||"";W=!!(W.indexOf("<")>=0||W.indexOf("end of ")>=0||W.indexOf("Unterminated string")>=0||W.indexOf("Unexpected EOF"));if(!W&&l)for(var V=l.length,f=!1,r=0;r<V;r++)if(f&&l[r]==="\\")r++;else if(l[r]==='"')f=!f;else if(l[r]==="<"&&!f){W=!0;break}return W};
$Kz=function(){return document.documentElement.hasAttribute("dark")};
_.WFj=function(W,l){if(W!=="GFEEDBACK"&&W!=="GUIDED_HELP")_.OJ(Error("hi`"+W));else{var V=_.tY().resolve(_.R0(_.Bp));if(V&&(V=V.getCurrentPage())&&V.getServiceTrackingParams&&(V=V.getServiceTrackingParams()))for(var f=0,r;r=V[f++];)if(r.service===W){if(W=r.params)for(V=0;f=W[V++];)l[f.key]=f.value;break}}};
_.lQn=function(W){var l=_.Jy();l&&(l=l.getPlayer())&&(l.pauseVideo(),W.playback_id=l.getVideoData().cpn,W.eid=l.getVideoData().eventId,Object.assign(W,l.getFeedbackProductData()))};
V2F=function(){var W={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.M4("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(W.enableAnonymousFeedback=!0);_.M4("SESSION_INDEX")&&(W.authuser=String(_.M4("SESSION_INDEX")));_.U("enable_pageid_for_feedback")&&_.M4("DELEGATED_SESSION_ID")&&(W.pageId=String(_.M4("DELEGATED_SESSION_ID")));return W};
_.$1=function(W){_.U("enable_ypc_spinners")&&_.Gt(W,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},W])};
_.W0=function(W){_.U("enable_ypc_spinners")&&_.Gt(W,"yt-close-popup-action",["yt-loading-renderer"])};
fQn=function(W){return new Promise(function(l,V){_.rN({verifyCommand:{recaptchaToken:W.recaptchaResponse}},{commandController:{onSuccess:function(f,r){r||V("ChallengeService did not return a response.");var R;l({challengeCompleted:(R=r.verified)!=null?R:!1})},
onServerError:function(f,r){V(r)}}})})};
r7n=function(W,l,V,f){l({recaptchaResponse:f}).then(function(r){r.challengeCompleted?_.K7()?(V(3),_.tY().resolve(_.s6).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:W}})):V(2):V(4)},function(){V(4)})};
t2n=function(W,l,V){_.se(_.dO(RZn,_.M4("HL")),function(){var f;(f=window.grecaptcha)==null||f.ready(function(){var r=window.grecaptcha;r?(V(r.render(W,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:r7n.bind(null,W,fQn,l)})),l(1)):l(4)})})};
sFJ=function(W,l){return function(){switch(l()){case 0:return W().captchaLoadingMessage;case 1:return W().challengeReason;case 3:return W().captchaSuccessfulMessage;case 2:return W().captchaCookieSetFailureMessage;case 4:return W().captchaFailedMessage;default:return W().challengeReason}}()};
_.l4=function(){if(!LFg){var W=document.querySelector("#player.skeleton");W&&(_.bI(W),LFg=!0)}};
_.gf8=function(){return y7x=kJg()};
CRx=function(){return _.g(function(W){return PR6!==void 0?W.return():W.yield(nfF(),0)})};
nfF=function(){return _.g(function(W){if(W.nextAddress==1)return W.yield(HZn(),2);y7x=W.yieldResult;PR6=_.w8.addLowPriorityJob(nfF,5E3);_.ju(W)})};
UU6=function(W){var l=l===void 0?c7S:l;var V,f,r=(V=W.responseContext)==null?void 0:(f=V.mainAppWebResponseContext)==null?void 0:f.trackingParam;if(!r){l.increment("MISSING");var R,y,P,n,B,d;_.Qe(new _.bP("282054944_a",{hzm:!!((R=W.responseContext)==null?0:(y=R.mainAppWebResponseContext)==null?0:y.loggedOut),jhO:((P=W.responseContext)==null?void 0:P.mainAppWebResponseContext)===void 0,ryj:W.responseContext===void 0,cp:(n=W.playabilityStatus)==null?void 0:n.contextParams,f8j:(((B=W.streamingData)==
null?void 0:B.formats)||[]).length>0,x4m:(((d=W.streamingData)==null?void 0:d.adaptiveFormats)||[]).length>0,os:!!W.offlineState,cotn:W.cotn}));return 2}V="";try{V=BVv(r)}catch(u){return l.increment("C_ERROR"),_.wv(u),2}try{var J=_.dUS(V);var D=J7g(J)}catch(u){return l.increment("P_ERROR"),_.wv(u),2}D=_.Pt(D,DUx,1,_.ns());r=[];D=_.L(D);for(J=D.next();!J.done;J=D.next())f=J.value,J=f.getPath(),V=(0,_.MC.getValueByKeys)(W,J.split(".")),V=String(V===void 0||V===null?"":V),f=f.getValue()||"",R=/[+\-\/_]/g,
V.replace(R,"")!==f.replace(R,"")&&(l.increment("MISMATCH"),_.U("ab_mis_log_err")&&(V=new _.bP("282054944_p",{mP0:J,g:String(V),e:String(f)}),_.wv(V)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(J)||(J.match(/enforcementMessageViewModel/i)?r.push(3):r.push(2)));if(r.length>0)return Math.max.apply(Math,_.QK(r));l.increment("SUCCESS");return 1};
vfq=function(W){var l=new Vt;if(W.interpreterJavascript){var V=_.XV4(W.interpreterJavascript);V=LQz(V).toString();var f=new umq;_.mY(f,6,V);_.b7(l,1,f,IX)}else W.interpreterUrl&&(V=_.Av(W.interpreterUrl),V=_.m7(V).toString(),f=new _.kKF,_.mY(f,4,V),_.b7(l,2,f,IX));W.interpreterHash&&_.ft(l,3,W.interpreterHash,IX);W.program&&_.ft(l,4,W.program,IX);W.globalName&&_.ft(l,5,W.globalName,IX);W.clientExperimentsStateBlob&&_.ft(l,7,W.clientExperimentsStateBlob,IX);return l};
rl=function(W){var l={};W=_.L(W.split("&"));for(var V=W.next();!V.done;V=W.next())V=V.value.split("="),V.length===2&&(l[V[0]]=V[1]);return l};
H8S=function(W){return Number(W.t)||7200};
ILg=function(){if(_.U("bg_st_hr"))return"havuokmhhs-0";var W,l=((W=performance)==null?void 0:W.timeOrigin)||0;return"havuokmhhs-"+Math.floor(l)};
KFS=function(){return new Promise(function(W){var l=window;l.ntpevasrs!==void 0?W(new Rm(l.ntpevasrs)):(l.ntpqfbel===void 0&&(l.ntpqfbel=[]),l.ntpqfbel.push(function(V){W(new Rm(V))}))})};
FFg=function(W){var l=W.nHw.bind(W);_.fR("yt.aba.att",l);W=W.sk4.bind(W);_.fR("yt.aba.att2",W)};
b86=function(W){switch(_.JY(W.input)){case _.Um(GKq):var l={};return l.encryptedVideoId=W.innerTubeRequest.externalVideoId,l}return{}};
jFJ=function(W){switch(_.JY(W.input)){case _.Um(GKq):if(_.U("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Um(pzn):if(_.U("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.Um(tm):if(_.U("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&W.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Um(ofj):var l,V;if(_.U("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((V=_.k((l=W.config)==null?void 0:l.command,pJ6))==null?0:V.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.i8v=function(W){var l;if(W.playlistVideoRenderer&&((l=W.playlistVideoRenderer)==null?0:l.engagementBar))return IQ4(W.playlistVideoRenderer.engagementBar);if(_.k(W,sH)){var V;if(W=(V=_.k(W,sH))==null?void 0:V.engagementBar)return IQ4(W)}return""};
IQ4=function(W){if(!W)return"";W=_.k(W,_.mUz);if(W==null||!W.actions)return"";W=_.L(W.actions);for(W=W.next();!W.done;W=W.next()){W=_.k(W.value,_.Xzn);var l=void 0;if((l=W)==null||!l.itemId)break;return W.itemId}return""};
_.TVn=function(W){var l;if(W.playlistVideoRenderer&&((l=W.playlistVideoRenderer)==null?0:l.videoId))return W.playlistVideoRenderer.videoId;if(_.k(W,sH)){var V,f;if(W=(V=_.k(W,sH))==null?void 0:(f=V.playlistItemData)==null?void 0:f.videoId)return W}return""};
_.wzS=function(W){var l;if(W.playlistVideoRenderer&&((l=W.playlistVideoRenderer)==null?0:l.voteCount))return W.playlistVideoRenderer.voteCount;if(_.k(W,sH)){var V,f;if(W=(V=_.k(W,sH))==null?void 0:(f=V.playlistItemData)==null?void 0:f.voteCount)return W}return 0};
_.Lt=function(W,l){return _.mL(W.entities,"flowStateEntity",l)};
QFz=function(W,l,V,f){var r=void 0;W=_.L(W[l.iconName]||[]);for(var R=W.next();!R.done;R=W.next()){R=R.value;var y=l.iconSize;var P=l.iconStyle;y=!y||y===R[2];var n=A7F[R[0]];f&&f!==R[1]||!y||P&&P!==n?P=!1:r?(P=A7F[R[0]],P=!!l.iconStyle||P==="youtube_outline",y=r.version<=R[1],P=(!!l.iconSize||R[2]===24)&&P&&y):P=!0;P&&(r={name:l.iconName,style:A7F[R[0]],size:R[2],version:R[1],allowMirroring:!!R[3],url:V(l.iconName,R)})}return r};
M2j=function(W,l,V,f){return W+(""+A7F[V[0]]+((f===void 0?0:f)?"_experimental":"")+"/"+l+"/v"+V[1]+"/")+(V[2]+"px.svg")};
Z84=function(W){return _.M4("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"||_.M4("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":W};
O8J=function(W,l){return M2j("https://fonts.gstatic.com/s/i/",W,l)};
aQj=function(W,l){return M2j("https://fonts.gstatic.com/s/i/",W,l,!0)};
zZU=function(W,l){return M2j("https://www.gstatic.com/youtube/img/icons/web/",W,l)};
YQU=function(W){var l=W.enabled;var V=W.itemPlaybackModel;var f=W.thumbnailElRef;var r=W.containerElRef;var R=W.options;var y;_.m1(function(){var P=r==null?void 0:r.value;var n,B=(n=f())==null?void 0:n.value;n=V();var d=R();if(l&&n&&P&&B&&(d==null?0:d.thumbnail)){var J={data:n,hostElement:P},D,u,H=_.U("web_explore_hub_on_hover")||_.U("web_client_explore_hub_on_hover")?[].concat(_.QK((D=d.thumbnailOverlays)!=null?D:[]),_.QK((u=n.overlays)!=null?u:[])):d.thumbnailOverlays||[],p,X;P={mediaRenderer:J,
lockupElement:P,thumbnailElement:B,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.fP((p=n.inlinePlayerData)==null?void 0:p.onVisible),navigationEndpoint:_.fP((X=n.inlinePlayerData)==null?void 0:X.onSelect),thumbnail:d.thumbnail,thumbnailOverlays:H,accessibilityText:d.accessibilityText||""},thumbnailSize:d.thumbnailSize,enableRounding:d.enableRounding}}}else P=void 0;if(p=P){var w;(w=y)==null||gl(w);y=Wf(p);var O,S;((O=V())==null?0:(S=O.inlinePlayerData)==null?0:S.forceImpAutoplay)&&
NV4(y)}},"B33dEc");
_.Xc(function(){var P;(P=y)==null||gl(P)})};
xUU=function(W){W=atob(W);for(var l=[],V=0;V<W.length;V++)l.push(W.charCodeAt(V));return new Blob([new Uint8Array(l)],{type:"image/png"})};
qQU=function(W,l,V,f){f=f===void 0?"INSERTION_POSITION_UNSPECIFIED":f;return W({targetId:l},function(r){var R,y=(R=r.contents)!=null?R:[];R=V!=null?V:[];var P=eZq(y);switch(f){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},r,{contents:[].concat(_.QK(y.slice(0,P)),_.QK(R),_.QK(y.slice(P+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},r,{contents:[].concat(_.QK(R),_.QK(y))});case "INSERTION_POSITION_LAST":return Object.assign({},r,{contents:[].concat(_.QK(y),_.QK(R))});
default:return r}})};
SQJ=function(W,l,V,f,r){r=r===void 0?"RELATIVE_INSERTION_POSITION_AFTER":r;return W({targetId:l},function(R){var y,P=(y=R.contents)!=null?y:[];y=hZS(P,V);if(y<0)return R;y=r==="RELATIVE_INSERTION_POSITION_BEFORE"?y:y+1;return Object.assign({},R,{contents:[].concat(_.QK(P.slice(0,y)),_.QK(f),_.QK(P.slice(y)))})})};
eZq=function(W){var l=W.findIndex(function(V){return _.k(V,_.P0)});
return l>=0?l:W.length};
hZS=function(W,l){return W.findIndex(function(V){a:{V=_.L(Object.values(V));for(var f=V.next();!f.done;f=V.next())if((f=f.value)&&f.targetId){V=f.targetId;break a}V=""}return V===l})};
$UJ=function(W,l,V){return W({targetId:l},function(f){var r,R=(r=f.contents)!=null?r:[];return Object.assign({},f,{contents:Efz(R,V)})})};
Efz=function(W,l){return W.filter(function(V){var f=l.includes;a:{V=_.L(Object.values(V));for(var r=V.next();!r.done;r=V.next())if((r=r.value)&&r.targetId){V=r.targetId;break a}V=""}return!f.call(l,V||"")})};
_.WqF=function(W,l){return{engagementPanelSectionListRenderer:{panelIdentifier:W,identifier:l,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
lt6=function(W,l){W=W.getAvailableAudioTracks();if(W.length)return W==null?void 0:W.find(function(V){var f;return(V==null?void 0:(f=V.getLanguageInfo())==null?void 0:f.getId())===l})};
_.ft8=function(W){var l,V=(l=W.getOption("captions","tracklist",{includeAsr:!0}))!=null?l:[];return V=VOS(V,W)};
rD8=function(W){return W.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
VOS=function(W,l){l=rD8(l);if(l==null||!l.length)return W;var V=l.filter(function(y){return y});
l=W.filter(function(y){return y.languageCode.startsWith("en")});
V=_.L(V);for(var f=V.next();!f.done;f=V.next())if(f=f.value,l.length){var r=l[0],R=Object.assign({},r);r.languageCode!==f.languageCode&&(R.displayName=r.languageName+" >> "+f.languageName,R.translationLanguage=f,W.push(R))}return W};
Rv8=function(W,l,V){W=_.ft8(W);if(W.length)return V?W.find(function(f){if(typeof(f==null?void 0:f.translationLanguage)==="object"){var r;return((r=f.translationLanguage)==null?void 0:r.languageCode)===l}return!1}):W==null?void 0:W.find(function(f){return f.languageCode===l})};
tO8=function(W){return W.getOption("captions","tracklist",{includeAsr:!0})};
sOJ=function(W){var l=W.getAvailableAudioTracks();if(l!=null&&l.length){var V=W.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.QK(l.map(function(f){return{listItemViewModel:{title:{content:f.getLanguageInfo().getName()},isSelected:f.getLanguageInfo().getId()===(V==null?void 0:V.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:f.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
LqY=function(W){return W.getOption("captions","tracklist",{includeAsr:!0})};
yDq=function(W){var l=LqY(W);if(l==null?0:l.length)return l;W.loadModule("captions");return LqY(W)};
gTY=function(W){var l=W.getOption("captions","track");if(l)return l;W.loadModule("captions");return W.getOption("captions","track")};
nTz=function(W){var l=yDq(W);if(l!=null&&l.length){var V=gTY(W),f;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.wg("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(V==null?0:V.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.QK(l.map(function(r){return{listItemViewModel:{title:{content:r.displayName},
isSelected:r.displayName===(V==null?void 0:V.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:_.wg("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!V.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!V.translationLanguage&&{selectionText:{content:(V==null?void 0:(f=V.translationLanguage)==null?void 0:f.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Pon(W)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
Pon=function(W){var l=rD8(W);if(l==null||!l.length)throw Error("Gi");var V=gTY(W);W=l.filter(function(f){return!f.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.QK(W.map(function(f){var r;return{listItemViewModel:{title:{content:f.languageName},isSelected:f.languageName===(V==null?void 0:(r=V.translationLanguage)==null?void 0:r.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:f.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
dh8=function(W){return new Promise(function(l,V){if(W===void 0)_.wv(Error("Ki"),"ERROR"),V(Error("Ki"));else{V=new _.Cox;var f=_.cDz();V=V.init();var r=_.BqS(_.M4("YPC_MB_URL"),!0);Promise.all([V,r]).then(function(){var R=payments.business.integration.ClientTokenFactory.createClientToken(W,f);l(R)})}})};
UhU=function(W,l,V,f,r,R,y){var P=_.yH();V=V.replace(/-/g,"+").replace(/_/g,"/");var n=_.MT().get("hl"),B=_.nt(_.BV),d=l==null?void 0:l.element;d&&_.$1(d);JDv(l,!0);_.DhF(B,V,P.resolve,function(){d&&_.W0(d)},function(J){d&&_.W0(d);
P.reject(J)},n,f?function(J){f&&_.Lv(W,f,{backend_analytics:J})}:void 0,P.resolve,r,R,y);
return P.promise};
JDv=function(W,l){!(W=W==null?void 0:W.element)||W.tagName!=="YT-BUTTON-RENDERER"&&W.tagName!=="YTD-BUTTON-RENDERER"||(W.disabled=l)};
uDF=function(){var W=_.wg("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Hy(W),actionButton:{buttonRenderer:MIF()}}},popupType:"TOAST"}};
k9x=function(){var W=_.wg("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Hy(W),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
vT8=function(W){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:W}]}}};
Ct=function(W,l,V,f){var r;return _.g(function(R){if(R.nextAddress==1)return _.HG(R,2),R.yield(W,4);if(R.nextAddress!=2)return(r=_.Nd(l.getState().entities).length>0)?R.return({title:_.Hy(_.wg("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Hy(_.wg("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:QIj()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
R.return(ZH6(V,f));_.pc(R);return R.return(ZH6(V,f))})};
H$n=function(W,l){return l?l==="PPSV"||EQJ(W,l):!1};
KqS=function(W){W.responseContext||(W.responseContext={});W.responseContext.maxAgeSeconds=0;return W};
B0=function(W){var l;return _.g(function(V){return V.nextAddress==1?V.yield(FqJ(W,"service:topbar:fallback"),2):(l=V.yieldResult)&&_.c0(l)?V.return(KqS(_.c0(l))):V.return()})};
G9z=function(W){var l;return _.g(function(V){return V.nextAddress==1?V.yield(FqJ(W,"service:downloads_settings:fallback"),2):(l=V.yieldResult)&&_.c0(l)?V.return(l):V.return()})};
FqJ=function(W,l){var V;return _.g(function(f){if(f.nextAddress==1)return W?f.yield(W.get(l),2):f.return();V=f.yieldResult;return!V||!_.c0(V)||!isNaN(Number(V.data.expireTimestampMs))&&V.isExpired()?f.return():f.return(V)})};
b$Y=function(W){var l=_.tY().resolve(dl).getState().entities;return W.playlistId?H$n(l,W.playlistId):!1};
p_S=function(W,l){var V;if(l==null?0:(V=l.requestTemplate)==null?0:V.panelId)W.panelId=l.requestTemplate.panelId;var f;if(l==null?0:(f=l.requestTemplate)==null?0:f.params)W.params=l.requestTemplate.params};
jOx=function(){if(oTU)return oTU();var W=!_.U("idb_response_store_auth_killswitch"),l={};oTU=Rl("yt-it-response-store",{objectStores:(l.ResponseStore={addedAtVersion:1},l),shared:!W,upgrade:function(V,f){f(1)&&(V=zd(V,"ResponseStore",{keyPath:["key","clientName"]}),Nt(V,"byExpiration","expireTimestampMs"),Nt(V,"byInterface","clientName"))},
version:1});return oTU()};
Itg=function(W){return _.SF(jOx(),W)};
mhz=function(W,l){var V;return _.g(function(f){return f.nextAddress==1?f.yield(_.r8(),2):(V=f.yieldResult)?f.return(new i$j(W,l,V)):f.return()})};
X_j=function(W){var l=Object.keys(W)[0];if(l)return W.screenExit&&(l=l+";"+W.screenExit.screen),l};
Tq8=function(W){var l=new Map;W=_.L(W);for(var V=W.next();!V.done;V=W.next())V=V.value,V!=null&&(l.has(V.taskType)||l.set(V.taskType,[]),l.get(V.taskType).push(V));return l};
w_J=function(W){return!isNaN(W)&&W>0};
ADY=function(W){W=[].concat(_.QK(W)).sort(function(V,f){return V-f});
var l=Math.floor(W.length/2);return W.length%2?W[l]:(W[l-1]+W[l])/2};
Z$x=function(W,l){W=W===void 0?GY4:W;l=l===void 0?{}:l;_.fR("yt.logging.errors.log",_.wv);K$U();QOF(Iyz(),l);window.onerror=W;MOg=F$F;window.addEventListener("unhandledrejection",function(V){if(V.reason instanceof Error){var f=V.reason;_.MJ(f,{source:"unhandledrejection"});f.name==="AbortError"&&(f.level="WARNING")}F$F(V.reason);V.preventDefault()})};
_.O$g=function(W){var l,V,f,r,R,y,P,n,B,d,J,D,u,H,p,X,w,O,S,N,x,Y,W8,c8,B8,Jx,H8,Kq,Z4,Ax,sM,Ta,ck,Wk,D$,Bk,iB,p2,SL,RY;return _.g(function(lB){if(lB.nextAddress==1)return lB.yield(_.Md(W,{mode:"readonly",enableRetries:!0},function(kc){return ZA(kc,"playbackData").then(function(n2){var vk=n2.map(function(Pk){return Pk.transfer}).filter(function(Pk){return!!Pk}),VL=n2.map(function(Pk){return Pk.offlineVideoPolicy}).filter(function(Pk){return!!Pk}),Lc=n2.filter(function(Pk){return!!Pk.key}).map(function(Pk){return _.i_(_.p0(Pk.key).entityId,
"downloadStatusEntity")});
vk=ZA(kc,"transfer",vk);VL=ZA(kc,"offlineVideoPolicy",VL);Lc=ZA(kc,"downloadStatusEntity",Lc);var ls=vk.then(function(Pk){Pk=Pk.reduce(function(q1,Dc){(Dc==null?0:Dc.offlineVideoStreams)&&q1.push.apply(q1,_.QK(Dc.offlineVideoStreams));return q1},[]).filter(function(q1){return!!q1});
return ZA(kc,"offlineVideoStreams",Pk)});
return z4.all([vk,VL,ls,Lc]).then(function(Pk){var q1=_.L(Pk);Pk=q1.next().value;var Dc=q1.next().value;var pe=q1.next().value;q1=q1.next().value;return[n2,Pk,Dc,pe,q1]})})}),2);
if(lB.nextAddress!=3)return l=lB.yieldResult,lB.yield(_.Md(W,{mode:"readonly",enableRetries:!0},function(kc){return ZA(kc,"mainDownloadsListEntity").then(function(n2){var vk,VL;return(VL=(vk=n2[0])==null?void 0:vk.downloads)!=null?VL:[]})}),3);
V=lB.yieldResult;f=_.L(l);r=f.next().value;R=f.next().value;y=f.next().value;P=f.next().value;n=f.next().value;B=r;d=R;J=y;D=P;u=n;H={};p={};X={};w={};O={};S=[];N=_.L(d);for(x=N.next();!x.done;x=N.next())(Y=x.value)&&(H[Y.key]=Y);W8=_.L(J);for(c8=W8.next();!c8.done;c8=W8.next())(B8=c8.value)&&(p[B8.key]=B8);Jx=_.L(u);for(H8=Jx.next();!H8.done;H8=Jx.next())(Kq=H8.value)&&(X[Kq.key]=Kq);Z4=_.L(D);for(Ax=Z4.next();!Ax.done;Ax=Z4.next())(sM=Ax.value)&&(w[sM.key]=sM);Ta=_.L(V);for(ck=Ta.next();!ck.done;ck=
Ta.next())Wk=ck.value,D$=void 0,O[(D$=Wk.videoItem)!=null?D$:""]=!0,Wk.videoItem&&(iB=Bk=void 0,p2=(iB=(Bk=_.p0(Wk.videoItem))==null?void 0:Bk.entityId)!=null?iB:"",S.push({externalVideoId:p2}));SL=B.filter(function(kc){if(!kc||!kc.key||!kc.offlineVideoPolicy)return!1;kc=_.p0(kc.key).entityId;kc=_.i_(kc,"downloadStatusEntity");var n2;return!(kc&&((n2=X[kc])==null?void 0:n2.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
RY=SL.map(function(kc){var n2=H[kc.transfer],vk=[];if(n2==null?0:n2.offlineVideoStreams)for(var VL=_.L(n2.offlineVideoStreams),Lc=VL.next();!Lc.done;Lc=VL.next())(Lc=w[Lc.value])&&vk.push(Lc);VL=p[kc.offlineVideoPolicy];Lc=O;var ls=kc==null?void 0:kc.playerResponseTimestamp,Pk=_.p0(VL.key).entityId;kc=_.i_(Pk,"mainVideoEntity");if(VL.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var q1="OFFLINE_VIDEO_STATE_DISABLED";VL.expirationTimestamp&&Number(VL.expirationTimestamp)<Date.now()/1E3&&(q1="OFFLINE_VIDEO_STATE_EXPIRED")}else if(VL.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")q1="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(n2==null?void 0:n2.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":q1="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":q1="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":q1="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":q1="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":q1="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":q1="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:q1="OFFLINE_VIDEO_STATE_UNKNOWN"}if(q1==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(n2==null?void 0:n2.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":q1="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":q1="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":q1=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Pk={id:Pk,videoState:q1};if(n2==null?0:n2.cotn)Pk.cotn=n2.cotn;if(n2==null?0:n2.maximumDownloadQuality)Pk.selectedVideoQuality=n2==null?void 0:n2.maximumDownloadQuality;if(n2==null?0:n2.lastProgressTimeMs)Pk.lastProgressTimeMs=n2.lastProgressTimeMs;ls&&(Pk.playerResponseSavedTimeMs=String(Number(ls)*1E3));n2=String;ls=0;vk=_.L(vk);for(q1=vk.next();!q1.done;q1=vk.next())if(q1=q1.value,q1.streamsProgress){q1=_.L(q1.streamsProgress);for(var Dc=q1.next();!Dc.done;Dc=
q1.next()){var pe=void 0;ls+=Number((pe=Dc.value.numBytesDownloaded)!=null?pe:0)}}Pk.downloadedBytes=n2(ls);Pk.selectedOfflineMode=Lc[kc]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";VL.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Pk.offlinePlaybackDisabledReason=VL.offlinePlaybackDisabledReason);return Pk});
return lB.return({offlineVideos:RY,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:S}}})})};
atq=function(){var W;return _.g(function(l){return l.nextAddress==1?l.yield(_.wJ(),2):(W=l.yieldResult)?l.return(_.O$g(W)):l.return({state:"PES Unavailable"})})};
YoY=function(){var W,l,V,f;return _.g(function(r){if(r.nextAddress==1)return r.yield(_.wJ(),2);if(r.nextAddress!=3)return(W=r.yieldResult)?r.yield(zvz(W),3):r.return({state:"PES Unavailable"});l=r.yieldResult;V={};f=l.reduce(function(R,y){R[y.key]=y;return R},V);
return r.return(NqY(f))})};
NqY=function(W){for(var l={},V=[],f=_.L(Object.keys(W)),r=f.next();!r.done;r=f.next()){var R=r.value;r=W[R];var y=void 0;if(((y=r)==null?void 0:y.entityType)==="mainVideoEntity"){delete W[R];var P=r.data;r={};if(P){var n=void 0;y=(n=P.videoId)!=null?n:"vid-"+R;R=W;r.video=P;delete r.video.formattedDescription;delete r.video.thumbnail;P.owner&&(n=R[P.owner],n==null?0:n.data)&&(delete R[n.key],r.video.owner=n.data,delete r.video.owner.avatar);if(P=P.downloadState)if(n=R[P],n==null?0:n.data)if(delete R[P],
P=n.data.playbackData)if(n=R[P],n!=null&&n.data){delete R[P];P=n.data;delete P.playerResponseJson;r.playbackData=P;if(P.transfer&&(n=R[P.transfer],n==null?0:n.data)){delete R[n.key];var B=n.data;r.transfer=B;n=[];B=_.L(B.offlineVideoStreams||[]);for(var d=B.next();!d.done;d=B.next())if(d=R[d.value])delete R[d.key],n.push(d.data);n&&(r.streams=n)}(P=P.offlineVideoPolicy)&&(P=R[P])&&P.data&&(delete R[P.key],r.offlineVideoPolicy=P.data)}l[y]=r}}else r&&r.entityType==="offlineOrchestrationActionWrapperEntity"&&
r.data&&(delete W[r.key],y=r.data,R=void 0,V.push({id:y.rootActionId,type:((R=y.actionProto)==null?void 0:R.actionType)||"",entity:r}))}l.wrapperEntities=V;Object.keys(W).length>0&&(l.unknownKeys=W);return l};
xh6=function(){var W,l,V,f,r,R,y,P,n;return _.g(function(B){if(B.nextAddress==1)return W=!!(new _.Ow("")).expiringStorage_,f=!!((l=_.rS.crypto)==null?0:(V=l.subtle)==null?0:V.importKey),r=!!_.rS.BroadcastChannel,R=!!_.rS.navigator.locks,B.yield(r5F(),2);y=B.yieldResult;P=W&&f&&r&&R&&y;n={isSupported:P};if(P)return B.return(n);n.missingBrowserFeatures=[];y||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");W||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
f||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");r||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");R||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return B.return(n)})};
evq=function(){var W;return!((W=Jm?Jm:null)==null||!W.window)};
_.hvS=function(W){if(_.jv()&&_.cxJ("Chromium")>=120){var l=_.qoz().mediaSession;try{l.setActionHandler("enterpictureinpicture",function(){W()})}catch(V){}}};
Soj=function(W){for(var l=[],V=_.L(document.styleSheets),f=V.next(),r={};!f.done;r={node$jscomp$730:void 0},f=V.next())r.node$jscomp$730=f.value.ownerNode,r.node$jscomp$730&&(r.node$jscomp$730 instanceof HTMLStyleElement||r.node$jscomp$730 instanceof HTMLLinkElement)&&l.push(new Promise(function(R){return function(y){var P=R.node$jscomp$730.cloneNode(!0);P.onload=function(){y()};
P.onerror=function(){_.Qe(Error("mj"));y()};
W.document.head.appendChild(P)}}(r)));
return Promise.all(l)};
sGx=function(W){var l=[_.n5(ETU),_.n5($hn),_.n5(Wdx)];l6Y(window.document.documentElement,W.document.documentElement,[_.n5(VAj),_.n5(f6n),_.n5(rEj),_.n5(RYz),_.n5(tAY)]);l6Y(window.document.body,W.document.body,l)};
l6Y=function(W,l,V){W=_.L(W.attributes);for(var f=W.next();!f.done;f=W.next())if(f=f.value)try{_.yK(V,l,f.name,f.value)}catch(r){}};
yEz=function(W,l){W=new _.Dm(W.document.documentElement);W.start(LdF,l);return W};
gy4=function(W){var l=W.document.documentElement;l.addEventListener("click",function(V){c_8(l,V)});
l.addEventListener("touchstart",function(V){UYn(V)});
l.addEventListener("mousedown",function(V){UYn(V)})};
nyz=function(W,l,V,f){f=f===void 0?!1:f;l=new PuY(l||W,V||W);return{x:W.x+((f===void 0?0:f)?l.lengthX*-1:l.lengthX)*.2,y:W.y+((f===void 0?0:f)?l.lengthY*-1:l.lengthY)*.2}};
Cuz=function(W){if(!W)return!1;var l=W.status==="OK"||W.status==="LIVE_STREAM_OFFLINE",V,f,r,R=(r=(V=W.errorScreen)==null?void 0:V.playerLegacyDesktopYpcTrailerRenderer)!=null?r:(f=W.errorScreen)==null?void 0:f.ypcTrailerRenderer;return!!l||!!R};
_.cES=function(W,l){if(!W)return!1;var V,f=(V=W.errorScreen)==null?void 0:V.playerLegacyDesktopYpcOfferRenderer,r;l=!!(l==null?0:(r=l.playerOverlayRenderer)==null?0:r.gatedActionsOverlayRenderer);return!!Cuz(W)||!!f||!!l};
JE6=function(W){return BFq(W,0,"gclid",W.search(do6))>=0||BFq(W,0,"gad_source",W.search(do6))>=0};
Doz=function(W){var l=[],V=0;return{clear:function(){V=l.length=0},
push:function(f){l[V]=f;V=(V+1)%W},
iterate:function(){return function r(){var R,y,P,n;return _.UH(r,function(B){switch(B.nextAddress){case 1:_.Gu(B,2),R=l.length,y=0;case 4:if(!(y<R)){B.jumpTo(2);break}P=V+y;n=_.u4;return B.yield(l[P%R],7);case 7:n(B.yieldResult);y++;B.jumpTo(4);break;case 2:_.Ff(B),_.bM(B,0)}})}()}}};
Uog=function(W){W.eventsToIgnore||(W.eventsToIgnore=[]);var l=W.eventsToIgnore.map(kZU),V=new Set(l),f=Doz(W.bufferSize);return{flush:function(){var r=Array.from(f.iterate());f.clear();r=r.map(function(R){return{name:R.name,timestamp:R.startTime,attributes:R.attributes}});
return JSON.stringify(r)},
onSpanStart:function(r){r.name==="event"&&V.has(r.attributes.type)||f.push(r)}}};
usj=function(W){W=Uog(W);var l=W.flush;UK.processors.push({onSpanStart:W.onSpanStart});wp4.subscribe("handleError",function(V){try{V.params.breadcrumbs=l()}catch(f){_.wv(f,"WARNING")}})};
kHS=function(){Ee("web_tracing_action");_.$u("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
vyJ=function(W,l,V){var f=W.endTime;if(f==null)throw Error("oj");var r=W.name,R={};f-=W.startTime;var y=W.startTime;R={webTracing:(R[r]=W.attributes,R)};V=_.ah(Y2j)(r,f,y,R,V,l);if(W.children)for(W=_.L(W.children),r=W.next();!r.done;r=W.next())vyJ(r.value,l,V)};
HT8=function(W){var l=IuY.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(V){V.data&&typeof V.data==="object"&&(V=V.data,V.from==="extension"&&V.app==="yt.telemetry"&&(l("Received message from extension",V),W.onMessage(V)))});
return function(V,f){V={app:"yt.telemetry",from:"app",key:V,payload:f};l("Sending message to extension",V);window.postMessage(V,"*")}};
Kdz=function(){var W=W===void 0?3E3:W;var l=HT8({onMessage:function(){}}),V=[];
return{onSpanEnd:function(f){f.parentId==null&&V.push(f)===1&&setTimeout(function(){var r=[].concat(_.QK(V));V.length=0;l("spansReported",{spans:r})},W)}}};
GHq=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var W=window.performance.getEntriesByType("navigation");if(W.length>0){var l=W[0];jz8("pageLoad",{navigationType:Fd8(l.type),unloadEventStart:Math.round(l.unloadEventStart),unloadEventEnd:Math.round(l.unloadEventEnd),domInteractive:Math.round(l.domInteractive),domContentLoadedEventStart:Math.round(l.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(l.domContentLoadedEventEnd),
domComplete:Math.round(l.domComplete),loadEventStart:Math.round(l.loadEventStart),loadEventEnd:Math.round(l.loadEventEnd),redirectCount:l.redirectCount},function(){})}}catch(V){}})};
Fd8=function(W){switch(W){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
oyn=function(){for(var W=tjv.value,l={},V=_.L(W.enabledSpansArray),f=V.next();!f.done;f=V.next())l[f.value]=!0;if(W.exportToCsi||W.exportBreadcrumbs)V=nDU(),UK.initialized=!0,UK.sessionId=V||"",UK.enabledSpans=l,pog("pageLoad")&&GHq();W.exportBreadcrumbs&&usj({eventsToIgnore:bTz,bufferSize:W.bufferSize});W.exportToCsi&&UK.processors.push(pvg);W.exportToDevTools&&(W=Kdz(),UK.processors.push(W))};
jG8=function(W){return new Promise(function(l){window.setTimeout(l,W)})};
I68=function(W){var l={bicf:function(R){W.uSR=R},
blc:function(){return W.getLatestChallengeResponse()},
bcr:function(R){W.ygM.push(R)}},V=window;
V.ntpevasrs=l;if(V.ntpqfbel!==void 0)for(var f=_.L(V.ntpqfbel),r=f.next();!r.done;r=f.next())r=r.value,r(l);V.ntpqfbel=void 0};
iTF=function(W){return _.g(function(l){if(l.nextAddress==1)return _.HG(l,2),l.yield(W.drG(),4);if(l.nextAddress!=2)return _.qL(l,0);_.pc(l);_.ju(l)})};
moY=function(W){var l,V;(l=W.ytcsi)==null||(V=l.tick)==null||V.call(l,"pot_ist")};
XvJ=function(W){if(W instanceof Error){var l=_.Y2("yt.logging.errors.log");l&&l(W,"WARNING")}};
TFS=function(W){try{var l=JSON.parse(W);if(l.bgChallenge)return l}catch(V){}};
AEg=function(){var W=window,l={networkStatusManagerPromise:_.tY().resolve(new ONv(_.qt)),initialChallengeSli:_.U("wpo_att_sli")?new _.Ii6("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};W=W===void 0?window:W;var V=W.ytAtR,f;l==null||(f=l.initialChallengeSli)==null||_.kP(f);if(V){if(V=TFS(V)){var r;l==null||(r=l.initialChallengeSli)==null||_.v0(r,"SUCCESS");wvn(V,l)}W.ytAtR=void 0}else W.ytAtRC=function(R){if(R=TFS(R)){var y;l==null||(y=l.initialChallengeSli)==null||
_.v0(y,"SUCCESS");wvn(R,l);W.ytAtRC=void 0}}};
ZTv=function(){if(QG8)return QG8;try{var W=_.Gz("IFRAME");_.WG(W,_.dO(MAJ));W.sandbox.add("allow-same-origin");W.style.display="none";document.body.appendChild(W);return QG8=W}catch(l){W=new _.bP("Failed to create sandbox iframe"),_.wv(W)}};
OT6=function(W){var l,V;return(V=W==null?void 0:(l=W.contentWindow)==null?void 0:l.fetch)!=null?V:window.fetch};
a6z=function(W){var l,V;return(V=W==null?void 0:(l=W.contentWindow)==null?void 0:l.Request)!=null?V:window.Request};
zYx=function(W){var l,V;return(V=W==null?void 0:(l=W.contentWindow)==null?void 0:l.TextDecoder)!=null?V:window.TextDecoder};
NFv=function(){return function(W,l){_.M4("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[W]=l}};
Y0v=function(){return function(W,l){var V={};V[W]=l;W=_.ah(_.ziY)(V);Object.keys(W).length>0&&_.Sy(W)}};
q06=function(){if(hW6()==="hidden")var W="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else hW6()==="visible"&&(W="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",xoj=null);W&&eYg(W)};
eYg=function(W){if(W==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||W==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(hY8===W)return;hY8=W}var l=9E4+Math.random()*2E3;if(W!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.sL()>l)&&hW6()==="visible"){l=-1;xoj&&(l=Math.round((0,_.tv)()-xoj));var V=String;var f=_.Y2("_fact",window);f=f==null||f==-1?-1:Math.max(Date.now()-f,0);_.XC("foregroundHeartbeat",{firstActivityMs:V(f),clientDocumentNonce:CZn,index:String(S0z),lastEventDeltaMs:String(l),trigger:W});
_.fR("_fact",-1,window);S0z++;xoj=(0,_.tv)()}};
_.Eyz=function(){try{return!!self.sessionStorage}catch(W){return!1}};
$oq=function(){var W=navigator;return new Promise(function(l,V){var f;(f=W.webkitTemporaryStorage)!=null&&f.queryUsageAndQuota?W.webkitTemporaryStorage.queryUsageAndQuota(function(r,R){l({usage:r,quota:R})},function(r){V(r)}):V(Error("xj"))})};
WPY=function(W,l){var V={errorSeverity:l.errorSeverity.toString(),wizFeatureFlags:Object.entries(l.featureFlags).join("\n")};Hv4(l,V);l=l.errorSeverity;l===3?_.wv(W,"ERROR",void 0,void 0,void 0,V):l===2&&_.wv(W,"WARNING",void 0,void 0,void 0,V);_.U("cow_if_errors_in_popup")&&l===3&&W.message.indexOf("<If>")!==-1&&window.alert(W.message)};
l2U=function(W,l){var V=DA.get(W)||{layerNode:l};V.layerNode=l;bBF(W,V);W.getScreenLayer=function(){return H0(V.layerNode)}};
V4g=function(W){var l;W=W.parentNode;for(var V;W&&((l=DA.get(W))==null||!l.isRenderer)&&!((V=W.polymerController)!=null?V:W).isRenderer_;)W=W.parentNode||W.host;if(l=W)return DA.get(l)};
f2U=function(W){if(W){DA.delete(W);var l=_.tY().resolve(tH);iDj(W,l)}};
RRS=function(W,l,V){if(V===void 0?0:V){if(V=W.getAttribute("client-ve-type"),l.data&&!l.disableReactiveLogging||V)_.A4(function(){rA6(W,_.w9(l.data))}),_.Xc(function(){return void f2U(W)})}else typeof l.data!=="function"&&rA6(W,l.data)};
rA6=function(W,l){t4J++;s6z(W,l)&&_.w8.addJob(function(){_.Kt(_.w8,function(){if(s6z(W,l)&&W.ownerDocument.documentElement===document.documentElement&&W){var V;if(W.getAttribute("layer")){var f=V=Number(W.getAttribute("layer")),r=DA.get(W);r?r.layerNode.layer=f:l2U(W,new LP8(f));(f=V4g(W))&&(r=DA.get(W))!=null&&(r.layerNode.parent=f.layerNode)}else if(V=DA.get(W))V=H0(V.layerNode);else{V=H0;f=new LP8;if(r=V4g(W))f.parent=r.layerNode;l2U(W,f);V=V(f)}V!=null||(V=0);f=W.getAttribute("client-ve-type");
r=Number(f);var R=!1;f=!1;var y=DA.get(W),P;if((P=y)&&!(P=y[yA4]!==l)&&(P=r)){var n;P=((n=DA.get(W))==null?void 0:n.clientVeType)===void 0}P&&(y[yA4]=l,R=f=y.isRenderer=!0);DA.has(W)&&(DA.get(W).clientVeType=r);W.visualElement&&(f=!0);if(_.U("wiz_next_ld_fix_client_ve_spec")){var B;n=((B=_.k(l==null?void 0:l.rendererContext,_.Ma))==null?void 0:B.loggingDirectives)||(l==null?void 0:l.loggingDirectives)}else n=l==null?void 0:l.loggingDirectives;n&&n.clientVeSpec&&(B=gAg(_.wm(),W),B=_.PSz(_.Qq(),n,B||
void 0,V))&&(W.visualElement=B);!W.visualElement&&r&&R&&(W.veType=r,B=void 0,_.U("wiz_next_client_ve_parent_fix")&&(B=gAg(_.wm(),W)),B=_.AG(_.Qq(),W,B,V),W.visualElement=B);f&&(B=_.tY().resolve(tH),wrj(W,{data:l,observer:B,layer:V,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
s6z=function(W,l){return(l==null?0:l.trackingParams)||(l==null?0:l.loggingDirectives)||_.k(l==null?void 0:l.rendererContext,_.Ma)||W.getAttribute("client-ve-type")?!0:!1};
nAF=function(W,l,V){W.componentType!==_.oi&&V instanceof HTMLElement&&l&&!_.U("cow_logging_in_component_wrapper")&&RRS(V,l,!0)};
dnj=function(){if(!CSU){CSU=!0;var W=Object.assign({},{flushRenderEffectsDuringRender:!0,enableWizQueueEffectAndOnInitInitialRuns:_.U("enable_wiz_queue_effect_and_on_init_initial_runs")},{handleError:WPY,enableComponentStacksInErrorMessages:!1});Object.assign(y_,W);MQz=cAv;B4v();NcJ=lFU;OXz=Vx6}};
B4v=function(){_.U("cow_logging_in_component_wrapper")?(P1F=function(W,l){l instanceof HTMLElement&&RRS(l,W,!0)},bXq=function(){}):(P1F=function(){},bXq=nAF)};
JAz=function(W,l,V){l=l===void 0?{}:l;var f,r=(f=_.k(W.commandMetadata,_.XN))==null?void 0:f.url;f=l.form||{};!V||f.element||f.skipDefaultElement||(l.form=l.form||{},l.form.element=V);if(r&&r!=="/service_ajax")return{type:0,command:W,form:l.form};if(_.U("kevlar_service_command_check")){if(_.s_(_.tY().resolve(_.Vb),W))return Object.assign({},{type:1,command:W},l)}else{var R;if((R=_.k(W.commandMetadata,_.XN))==null?0:R.apiUrl)return Object.assign({},{type:1,command:W},l)}return{type:2,command:W,form:l.form}};
DnJ=function(W){if(W.form){var l=W.form,V=Object.assign({},l);l=l.element;V=(delete V.element,V);if(l)return[_.pN(l,[W.command,V,W.commandController])]}return[]};
Unn=function(W){if(W.form){var l=W.form,V=Object.assign({},l);l=l.element;V=(delete V.element,V);l&&_.og(l,[W.command],l,V)}};
kFz=function(W,l,V){var f=new uvJ(W,l),r=new FA(W,l,V);W={"/youtubei/v1/browse":new Gk(W,l,V),"/youtubei/v1/player":f,"/youtubei/v1/navigation/resolve_url":new b4,"/youtubei/v1/next":r,"/youtubei/v1/guide":new pt(V),"/youtubei/v1/search":new om(W,l,V),"/youtubei/v1/reel/reel_item_watch":new jl(W,l,V),"/youtubei/v1/get_watch":new Im(f,r)};W["/youtubei/v1/account/account_menu"]=new i4;W["/youtubei/v1/notification/get_notification_menu"]=new mH;return W};
Tk=function(){var W=_.tY().resolve(XA);return Promise.resolve(vAU(W,_.rS.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
HJ8=function(W){return W&&(W=_.wl(_.P34(W)))?(new URLSearchParams(W)).get("service"):null};
am=function(W,l){_.pP(_.Am(),function(){_.Wy("adl")});
_.tY().resolve(KPz)(l);W=W.root;W.loadData&&W.loadData(l);(l==null?0:l.response)?_.v0(Xwv(),"SUCCESS"):_.Qe(new _.bP("Lifecycle: No response in data",_.ZL("IS_SHELL_LOAD"),l?l.page:"NO_PAGE",l?l.endpoint:"NO_ENDPOINT"));W.polymerController.$["page-manager"].lazyPrepareCriticalPages((l==null?void 0:l.page)||"",l.endpoint);var V,f;((f=_.k(l==null?void 0:(V=l.endpoint)==null?void 0:V.commandMetadata,_.XN))==null?0:f.webPageType)&&_.DJ().dispatch(_.Qt(_.k(l.endpoint.commandMetadata,_.XN).webPageType))};
FP8=function(){var W,l;return _.g(function(V){switch(V.nextAddress){case 1:W=window;if(!W.getDataPromise){V.jumpTo(2);break}_.HG(V,3);return V.yield(W.getDataPromise(),5);case 5:return V.return(V.yieldResult);case 3:return _.pc(V),V.yield(Tk(),6);case 6:return V.return(V.yieldResult);case 2:if(W.getInitialData)return l=W.getInitialData(),W.getInitialData=void 0,V.return(l);throw Error("zj`"+_.rS.location.href);}})};
bJU=function(){_.Qj("CSI_SERVICE_NAME","youtube");_.Sy({loadType:"cold"});_.U("kevlar_log_lcp")&&GFY(function(W){_.Wy("lcp",W.value)})};
pbJ=function(){var W=_.qs(document.location.href,"enable");W&&W.indexOf("scraper")>-1&&_.Qj("ADD_SCRAPER_ATTRIBUTES",!0)};
mnn=function(W){var l=W.root;W=[oAq,j6F,_.zk];_.U("web_feedback_endpoint_autolog_allowlist_killswitch")&&W.push(_.NP,I28);iJY(function(V,f){return JAz(V,f,l)},function(V){if(!V.command)return[];
var f;((f=V.form)==null?0:f.element)?V.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},V.form,{endpoint:V.command})})):l.handleNavigate(V);return[]},W);
_.tY().addProvider({provide:_.s6,useValue:_.mK.instance})};
T4z=function(){var W={},l={},V;for(V in Xbn){var f=_.L(_.J4(Xbn[V],void 0,"IAtZ7"));W[V]=f.next().value;l[V]=f.next().value}return[W,function(r){for(var R in r){var y=void 0;(y=l[R])==null||y(r[R])}}]};
_.YP=function(W,l,V){l=l===void 0?!1:l;var f=_.MC.getValueByKeys(W,"contents","twoColumnWatchNextResults","results","results","contents"),r=_.MC.getValueByKeys(W,"contents","twoColumnWatchNextResults","playlist","playlist")||null;l&&(r=null);var R=l=null;if(r)l=_.MC.getValueByKeys(r,"titleText"),R=_.MC.unsafeClone(_.MC.getValueByKeys(r,"longBylineText")),f="",R&&(f=_.dE(R)),R=_.Bl(f);else if(f){f=_.L(f);for(var y=f.next();!y.done;y=f.next())y=y.value,y.videoPrimaryInfoRenderer&&(l=_.MC.getValueByKeys.apply(_.MC,
[y].concat(_.QK(wbj)))),y.videoSecondaryInfoRenderer&&(R=_.MC.getValueByKeys.apply(_.MC,[y].concat(_.QK(AAj))))}else _.x2(Error("Ej"));var P;W.currentVideoEndpoint?P=W.currentVideoEndpoint:_.x2(Error("Fj"));var n;V&&(n=_.MC.getValueByKeys(V,"playabilityStatus","miniplayer","miniplayerRenderer"));W={miniplayerTitle:l,miniplayerSubtitle:R,watchEndpoint:P,playlistData:r};n&&(W.miniplayerRenderer=n);return W};
Q6j=function(W){if(W)return _.$J(W)};
_.M4j=function(){return{isFullscreen:function(){throw Error("Gj");},
toggleFullscreen:function(){throw Error("Hj");},
exitFullscreen:function(){throw Error("Ij");},
isAutonavEnabled:function(){throw Error("Jj");},
setAutonavEnabled:function(){throw Error("Kj");},
isAutoplaySetExplicitly:function(){throw Error("Lj");}}};
ZJg=function(W){return W.videoDuration?W.numTaps>1&&W.tapDirection!==0?_.xP(W.draggedTime/W.videoDuration,0,1):_.xP((W.playedTime||0)/W.videoDuration,0,1):0};
OJz=function(W){return W.videoDuration?W.isDragging||W.numTaps>1&&W.tapDirection!==0?_.xP(W.draggedTime/W.videoDuration,0,1):_.xP((W.playedTime||0)/W.videoDuration,0,1):0};
zRz=function(W){var l,V,f;return _.k(W==null?void 0:(l=W.markersMap)==null?void 0:(V=l.find(function(r){return r.key==="HEATSEEKER"}))==null?void 0:(f=V.value)==null?void 0:f.heatmap,a2z)};
N4n=function(W){var l,V;return(V=(l=zRz(W))==null?void 0:l.heatMarkersDecorations)!=null?V:[]};
YS6=function(W){if(_.U("mweb_supported_chapters_killswitch"))return!0;var l;return!!(W==null?0:(l=W.markersMap)==null?0:l.find(function(V){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(V.key)}))};
_.xnU=function(W){var l=Object,V=l.assign,f;W={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(f=W==null?void 0:W.getPlayerState())!=null?f:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return V.call(l,{},{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},W,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
eR8=function(W){return function(l){var V=W(),f,r=(f=V.playerApi)==null?void 0:f.getPlayerState();l&&l!==V.playerState&&(l===1||l===2)&&V.setState({playerState:r})}};
hRU=function(W){return function(l){var V=W(),f=V.playerApi;f&&(l==null?void 0:l.type)==="newdata"&&(qSz&&(clearTimeout(qSz),qSz=void 0),_.U("web_shorts_use_progress_state_for_gapless")?(l=f==null?void 0:f.getProgressState(l==null?void 0:l.playertype),l=l.seekableEnd-l.seekableStart):l=f==null?void 0:f.getDuration(l==null?void 0:l.playertype),V.setState({playedTime:0,videoDuration:l}))}};
SSn=function(W){return function(l){var V=W(),f=V.playerApi;if(f){var r=f.getPresentingPlayerType();_.U("web_shorts_use_progress_state_for_gapless")?(f=f.getProgressState(r),f=f.seekableEnd-f.seekableStart):f=f.getDuration(r);V.setState({playedTime:l,videoDuration:f})}}};
$n6=function(W){_.Ql(112394,W,function(){return EAY},function(l){EAY=l})};
V_z=function(W,l){if(!W)return[];var V,f,r;W=((V=W.markersMap)==null?void 0:(f=V.find(function(R){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(R.key)}))==null?void 0:(r=f.value)==null?void 0:r.chapters)||[];
!W04(W)||(l==null?0:l.ignoreStub)||(W=[lHn()].concat(_.QK(W)));return W};
lHn=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
W04=function(W){if(W.length===0)return!1;var l;return((l=_.k(W[0],el))==null?void 0:l.timeRangeStartMillis)!==0};
qP=function(W){return W?W.timeRangeStartMillis||0:0};
rVz=function(W,l){if(W.isDragging&&l)return W=fH6(W,l),W===-1?lHn():V_z(l)[W]};
fH6=function(W,l){return W.isDragging&&l?V_z(l,{ignoreStub:!0}).findIndex(function(V,f,r){V=RLq(W);return t_n(V,r,f).scrubberHovering}):-1};
RLq=function(W){return Object.assign({},W,{videoDuration:W.videoDuration*1E3,playedTime:W.playedTime*1E3,draggedTime:W.draggedTime*1E3})};
t_n=function(W,l,V){var f=qP(_.k(l[V],el));l=qP(_.k(l[V+1],el))||W.videoDuration;V=W.isDragging;var r;if(r=W.isDragging)r=W.draggedTime,r=r!==null&&r>=f&&r<l;var R=W.playedTime;return R!==null&&R>=f&&R<l?{videoPosition:"active",isScrubbing:V,scrubberHovering:r}:W.playedTime<f?{videoPosition:"pending",isScrubbing:V,scrubberHovering:r}:{videoPosition:"seen",isScrubbing:V,scrubberHovering:r}};
sN8=function(W,l){return W.videoPosition==="seen"||(l===void 0?0:l)>0};
L0x=function(W,l,V){l=W/l.storyboardInterval;var f=V_z(V);if(!f.length)return-l*72;V=0;f=_.L(f);for(var r=f.next();!r.done;r=f.next())if(qP(_.k(r.value,el))/1E3<W)V++;else break;return-(l*72)-V*56};
yVq=function(W){return W?W.width/W.columns:0};
g8v=function(W){return W.isHovering?W.hoveredTime:W.draggedTime};
PvJ=function(W,l){W=W.draggedTime*1E3;return W>=l.visibleTimeRangeStartMillis&&W<=l.visibleTimeRangeEndMillis};
_.n8z=function(W){if(W===void 0||Number.isNaN(W))return"--:--";var l=Math.abs(Math.floor(W)),V=Math.floor(l/86400),f=Math.floor(l%86400/3600),r=Math.floor(l%3600/60);l=Math.floor(l%60);var R="";V>0&&(R+=V+":",f<10&&(R+="0"));if(V>0||f>0)R+=f+":",r<10&&(R+="0");R+=r+":";l<10&&(R+="0");R+=l;return W>=0?R:"-"+R};
CvF=function(W,l){return function(){var V=g8v(W());var f=l();var r=W().playerApi;if(r&&r.getNumberOfStoryboardLevels()!==0){var R=r.getStoryboardFrameIndex(V,1);R!==-1?f=r.getStoryboardFrame(R,1):(V=r.getStoryboardFrameIndex(V,0),r=r.getStoryboardFrame(V,0),f&&r&&(r.height*=3,r.width*=3),f=r)}else f=null;if(!f)return null;l()&&(f.width=90*f.columns,f.height=160*f.rows);return f}};
_.hm=function(W){if(!W||W.getVideoData)return W};
cVS=function(){var W;return{playerApi:(W=_.I$())!=null?W:void 0}};
BQz=function(W){var l;_.g(function(V){if(V.nextAddress==1)return V.yield(_.jJ(),2);if(l=V.yieldResult)l.unMute(!0),l.setVolume(W,!0);_.ju(V)})};
dMq=function(W,l){W&&(W.value=""+l,W.style.setProperty("--gradient-percent",l+"%"))};
JVz=function(W){var l;return(l=W==null?void 0:W.value)!=null?l:0};
DMS=function(){var W;_.g(function(l){if(l.nextAddress==1)return l.yield(_.jJ(),2);W=l.yieldResult;if(!W)return l.return();W.isMuted()?W.unMute(!0):W.mute(!0);_.ju(l)})};
UMz=function(W){var l=_.tY().resolve(_.Sl).getPlayerElement();l&&W&&(W===1?l.pause():l.play())};
u0q=function(W){_.bj(W,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
kBn=function(W){_.bj(W,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
HYF=function(W){return _.Ih(W.document.body,function(){return _.C(v88,null)},"Ef")};
K0S=function(){var W=window.performance.getEntriesByType("navigation");return W?W.map(function(l){return l.type}).includes("reload"):!1};
iY8=function(){EH(EH(EH(EH(EH(EH(EH(_.tY().resolve(_.$P),_.F0J),_.GB6),_.bYS),_.pQU),_.o8F),_.jNU),_.IHx)};
mMx=function(W,l){l=l===void 0?!1:l;var V,f,r,R;return _.g(function(y){if(y.nextAddress==1)return l||!_.U("kevlar_shorts_seedless_retry_initial_load")||(V=window,f=!(!V.getDataPromise&&!V.getInitialData),f)?y.yield(FP8(),2):(setTimeout(mMx.bind(window,W,!0),1E3),y.return());if(y.nextAddress!=3)return r=y.yieldResult,y.yield(XQF(r),3);R=y.yieldResult;am(W,R);_.ju(y)})};
XQF=function(W){var l;if((l=W.response)==null||!l.replacementEndpoint)return _.jy(W);l=_.tY().resolve(XA);W=W.response;_.k(W.replacementEndpoint,_.N$)&&W.sequenceContinuation&&(_.k(W.replacementEndpoint,_.N$).sequenceParams=W.sequenceContinuation);return WF(l,W.replacementEndpoint,{},_.rS.location.href,"shorts",function(){},function(){return!1})};
wQS=function(W){var l=_.tY().resolve(TQJ);W.playerResponse&&l.handleResponse(W.playerResponse);W.response&&l.handleResponse(W.response)};
AV6=function(W){var l=_.DJ(),V,f=_.k((V=W.response)==null?void 0:V.frameworkUpdates,Pp),r;V=_.k((r=W.playerResponse)==null?void 0:r.frameworkUpdates,Pp);var R;W=_.k((R=W.reelWatchSequenceResponse)==null?void 0:R.frameworkUpdates,Pp);f&&_.QE(f,l);V&&_.QE(V,l);W&&_.QE(W,l)};
QNY=function(W){var l;_.U("enable_redirect_linking_for_desktop_web_client")&&((l=window.location.hash)==null?0:l.includes("redirect_state"))&&W.url&&(W.url=W.url.toString()+window.location.hash)};
OYU=function(W){var l=_.tY(),V=l.resolve(XA);l=l.resolve(_.M_z);W.endpoint&&(V=ZYY(V,W.endpoint),V.content&&W.response&&_.lK(l,W.response,V.content),V.player&&W.playerResponse&&_.lK(l,W.playerResponse,V.player),V.reelSequence&&W.reelWatchSequenceResponse&&_.lK(l,W.reelWatchSequenceResponse,V.reelSequence))};
VI=function(W,l){_.U("web_service_params_response_processor")&&wQS(l);AV6(l);var V;(l==null?0:l.url)&&((V=window.location.hash)==null?0:V.includes("redirect_state"))&&(QNY(l),(V=HJ8(l.url))&&_.Gt(W.root,"yt-initialize-third-party",[V,l]));OYU(l);V=_.tY();var f=V.resolve(aHv);l.playerResponse&&V.resolve(zL8).handleResponse(l.playerResponse);if(l.playerResponse){V=void 0;if(_.U("ab_v_vid_sig")&&l.endpoint){var r,R=(r=_.k(l.endpoint,_.Bh))!=null?r:_.k(l.endpoint,_.N$);R&&(V=R.videoId)}NQx(f,l.playerResponse,
V)}l.playerResponse&&hnv(l.playerResponse)&&_.U("web_enable_ab_rsp_cl")?CRx().then(function(){Y$Y(f,l.playerResponse);am(W,l)}):am(W,l)};
eLn=function(W){if(W=W.root.data){var l=_.tY().resolve(xMv);W.endpoint&&(W.response&&l.handleResponse(W.response,void 0,document.querySelector("ytd-app")),W.playerResponse&&l.handleResponse(W.playerResponse),W.reelWatchSequenceResponse&&l.handleResponse(W.reelWatchSequenceResponse))}};
q$z=function(W){var l,V,f,r,R,y;return _.g(function(P){switch(P.nextAddress){case 1:l=window;if(!l.getDataPromise){P.jumpTo(2);break}_.HG(P,3);return P.yield(l.getDataPromise(),5);case 5:V=P.yieldResult;VI(W,V);_.qL(P,4);break;case 3:return _.pc(P),P.yield(Tk(),6);case 6:f=P.yieldResult,am(W,f);case 4:return P.return();case 2:if(!_.U("sw_nav_preload_pbj")){P.jumpTo(7);break}l.fetchInitialData=function(){var n;return _.g(function(B){if(B.nextAddress==1)return B.yield(Tk(),2);n=B.yieldResult;am(W,n);
_.ju(B)})};
if(l.getInitialData){l.loadInitialData=function(n){VI(W,n)};
r=l.getInitialData();l.getInitialData=void 0;VI(W,r);P.jumpTo(8);break}l.fetchInitialData=void 0;return P.yield(Tk(),9);case 9:R=P.yieldResult,am(W,R);case 8:return P.return();case 7:l.getInitialData?(y=l.getInitialData(),l.getInitialData=void 0,VI(W,y)):l.loadInitialData=function(n){VI(W,n)},_.ju(P)}})};
hL8=function(W){var l=0;return function(){return l<W.length?{done:!1,value:W[l++]}:{done:!0}}};
S$n=typeof Object.defineProperties=="function"?Object.defineProperty:function(W,l,V){if(W==Array.prototype||W==Object.prototype)return W;W[l]=V.value;return W};
E86=function(W){W=["object"==typeof globalThis&&globalThis,W,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var l=0;l<W.length;++l){var V=W[l];if(V&&V.Math==Math)return V}throw Error("a");};
_.rc=E86(this);f4=function(W,l){if(l)a:{var V=_.rc;W=W.split(".");for(var f=0;f<W.length-1;f++){var r=W[f];if(!(r in V))break a;V=V[r]}W=W[W.length-1];f=V[W];l=l(f);l!=f&&l!=null&&S$n(V,W,{configurable:!0,writable:!0,value:l})}};
f4("Symbol",function(W){if(W)return W;var l=function(R,y){this.$jscomp$symbol$id_=R;S$n(this,"description",{configurable:!0,writable:!0,value:y})};
l.prototype.toString=function(){return this.$jscomp$symbol$id_};
var V="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",f=0,r=function(R){if(this instanceof r)throw new TypeError("b");return new l(V+(R||"")+"_"+f++,R)};
return r});
f4("Symbol.iterator",function(W){if(W)return W;W=Symbol("c");for(var l="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),V=0;V<l.length;V++){var f=_.rc[l[V]];typeof f==="function"&&typeof f.prototype[W]!="function"&&S$n(f.prototype,W,{configurable:!0,writable:!0,value:function(){return $M6(hL8(this))}})}return W});
f4("Symbol.asyncIterator",function(W){return W?W:Symbol("d")});
var $M6=function(W){W={next:W};W[Symbol.iterator]=function(){return this};
return W},WvS=typeof Object.create=="function"?Object.create:function(W){var l=function(){};
l.prototype=W;return new l},l_8=function(){function W(){function V(){}
new V;Reflect.construct(V,[],function(){});
return new V instanceof V}
if(typeof Reflect!="undefined"&&Reflect.construct){if(W())return Reflect.construct;var l=Reflect.construct;return function(V,f,r){V=l(V,f);r&&Reflect.setPrototypeOf(V,r.prototype);return V}}return function(V,f,r){r===void 0&&(r=V);
r=WvS(r.prototype||Object.prototype);return Function.prototype.apply.call(V,r,f)||r}}(),VGn;
if(typeof Object.setPrototypeOf=="function")VGn=Object.setPrototypeOf;else{var f_F;a:{var r9j={a:!0},Rqz={};try{Rqz.__proto__=r9j;f_F=Rqz.a;break a}catch(W){}f_F=!1}VGn=f_F?function(W,l){W.__proto__=l;if(W.__proto__!==l)throw new TypeError("e`"+W);return W}:null}r5=VGn;
_.v=function(W,l){W.prototype=WvS(l.prototype);W.prototype.constructor=W;if(r5)r5(W,l);else for(var V in l)if(V!="prototype")if(Object.defineProperties){var f=Object.getOwnPropertyDescriptor(l,V);f&&Object.defineProperty(W,V,f)}else W[V]=l[V];W.superClass_=l.prototype};
_.L=function(W){var l=typeof Symbol!="undefined"&&Symbol.iterator&&W[Symbol.iterator];if(l)return l.call(W);if(typeof W.length=="number")return{next:hL8(W)};throw Error("f`"+String(W));};
V_=function(W){for(var l,V=[];!(l=W.next()).done;)V.push(l.value);return V};
_.QK=function(W){return W instanceof Array?W:V_(_.L(W))};
_.tj=function(W){return RQ(W,W)};
RQ=function(W,l){W.raw=l;Object.freeze&&(Object.freeze(W),Object.freeze(l));return W};
sl=function(W,l){return Object.prototype.hasOwnProperty.call(W,l)};
tGq=function(W){if(W==null)throw new TypeError("g");return Object(W)};
s7S=typeof Object.assign=="function"?Object.assign:function(W,l){W=tGq(W);for(var V=1;V<arguments.length;V++){var f=arguments[V];if(f)for(var r in f)sl(f,r)&&(W[r]=f[r])}return W};
f4("Object.assign",function(W){return W||s7S});
var L4=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},LvJ=function(W){if(W.isRunning_)throw new TypeError("i");
W.isRunning_=!0};
L4.prototype.JSC$8717_next_=function(W){this.yieldResult=W};
var y9q=function(W,l){W.abruptCompletion_={exception:l,isException:!0};W.nextAddress=W.catchAddress_||W.finallyAddress_};
L4.prototype.return=function(W){this.abruptCompletion_={return:W};this.nextAddress=this.finallyAddress_};
L4.prototype.yield=function(W,l){this.nextAddress=l;return{value:W}};
L4.prototype.jumpTo=function(W){this.nextAddress=W};
_.ju=function(W){W.nextAddress=0};
_.HG=function(W,l,V){W.catchAddress_=l;V!=void 0&&(W.finallyAddress_=V)};
_.Gu=function(W,l){W.catchAddress_=0;W.finallyAddress_=l||0};
_.qL=function(W,l,V){W.nextAddress=l;W.catchAddress_=V||0};
_.pc=function(W,l){W.catchAddress_=l||0;l=W.abruptCompletion_.exception;W.abruptCompletion_=null;return l};
_.Ff=function(W,l,V,f){f?W.finallyContexts_[f]=W.abruptCompletion_:W.finallyContexts_=[W.abruptCompletion_];W.catchAddress_=l||0;W.finallyAddress_=V||0};
_.bM=function(W,l,V){V=W.finallyContexts_.splice(V||0)[0];(V=W.abruptCompletion_=W.abruptCompletion_||V)?V.isException?W.nextAddress=W.catchAddress_||W.finallyAddress_:V.jumpTo!=void 0&&W.finallyAddress_<V.jumpTo?(W.nextAddress=V.jumpTo,W.abruptCompletion_=null):W.nextAddress=W.finallyAddress_:W.nextAddress=l};
g3v=function(W){this.JSC$8722_context_=new L4;this.program_=W};
n3z=function(W,l){LvJ(W.JSC$8722_context_);var V=W.JSC$8722_context_.yieldAllIterator_;if(V)return PAJ(W,"return"in V?V["return"]:function(f){return{value:f,done:!0}},l,W.JSC$8722_context_.return);
W.JSC$8722_context_.return(l);return yI(W)};
PAJ=function(W,l,V,f){try{var r=l.call(W.JSC$8722_context_.yieldAllIterator_,V);if(!(r instanceof Object))throw new TypeError("h`"+r);if(!r.done)return W.JSC$8722_context_.isRunning_=!1,r;var R=r.value}catch(y){return W.JSC$8722_context_.yieldAllIterator_=null,y9q(W.JSC$8722_context_,y),yI(W)}W.JSC$8722_context_.yieldAllIterator_=null;f.call(W.JSC$8722_context_,R);return yI(W)};
yI=function(W){for(;W.JSC$8722_context_.nextAddress;)try{var l=W.program_(W.JSC$8722_context_);if(l)return W.JSC$8722_context_.isRunning_=!1,{value:l.value,done:!1}}catch(V){W.JSC$8722_context_.yieldResult=void 0,y9q(W.JSC$8722_context_,V)}W.JSC$8722_context_.isRunning_=!1;if(W.JSC$8722_context_.abruptCompletion_){l=W.JSC$8722_context_.abruptCompletion_;W.JSC$8722_context_.abruptCompletion_=null;if(l.isException)throw l.exception;return{value:l.return,done:!0}}return{value:void 0,done:!0}};
CA6=function(W){this.next=function(l){LvJ(W.JSC$8722_context_);W.JSC$8722_context_.yieldAllIterator_?l=PAJ(W,W.JSC$8722_context_.yieldAllIterator_.next,l,W.JSC$8722_context_.JSC$8717_next_):(W.JSC$8722_context_.JSC$8717_next_(l),l=yI(W));return l};
this.throw=function(l){LvJ(W.JSC$8722_context_);W.JSC$8722_context_.yieldAllIterator_?l=PAJ(W,W.JSC$8722_context_.yieldAllIterator_["throw"],l,W.JSC$8722_context_.JSC$8717_next_):(y9q(W.JSC$8722_context_,l),l=yI(W));return l};
this.return=function(l){return n3z(W,l)};
this[Symbol.iterator]=function(){return this}};
_.UH=function(W,l){l=new CA6(new g3v(l));r5&&W.prototype&&r5(l,W.prototype);return l};
c9J=function(W){function l(f){return W.next(f)}
function V(f){return W.throw(f)}
return new Promise(function(f,r){function R(y){y.done?f(y.value):Promise.resolve(y.value).then(l,V).then(R,r)}
R(W.next())})};
_.g=function(W){return c9J(new CA6(new g3v(W)))};
_.Kc=function(W){var l=W[Symbol.asyncIterator];return l!==void 0?l.call(W):new B1z(_.L(W))};
B1z=function(W){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return W};
this.next=function(l){return Promise.resolve(W.next(l))};
this["throw"]=function(l){return new Promise(function(V,f){var r=W["throw"];r!==void 0?V(r.call(W,l)):(V=W["return"],V!==void 0&&V.call(W),f(new TypeError("j")))})};
W["return"]!==void 0&&(this["return"]=function(l){return Promise.resolve(W["return"](l))})};
_.xk=function(){for(var W=Number(this),l=[],V=W;V<arguments.length;V++)l[V-W]=arguments[V];return l};
_.u4=function(W){return W};
f4("globalThis",function(W){return W||_.rc});
f4("Reflect",function(W){return W?W:{}});
f4("Reflect.construct",function(){return l_8});
f4("Reflect.setPrototypeOf",function(W){return W?W:r5?function(l,V){try{return r5(l,V),!0}catch(f){return!1}}:null});
f4("Promise",function(W){function l(){this.batch_=null}
function V(y){return y instanceof r?y:new r(function(P){P(y)})}
if(W&&(typeof _.rc.PromiseRejectionEvent!=="undefined"||!_.rc.Promise||_.rc.Promise.toString().indexOf("[native code]")===-1))return W;l.prototype.asyncExecute=function(y){if(this.batch_==null){this.batch_=[];var P=this;this.asyncExecuteFunction(function(){P.executeBatch_()})}this.batch_.push(y)};
var f=_.rc.setTimeout;l.prototype.asyncExecuteFunction=function(y){f(y,0)};
l.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var y=this.batch_;this.batch_=[];for(var P=0;P<y.length;++P){var n=y[P];y[P]=null;try{n()}catch(B){this.asyncThrow_(B)}}}this.batch_=null};
l.prototype.asyncThrow_=function(y){this.asyncExecuteFunction(function(){throw y;})};
var r=function(y){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var P=this.createResolveAndReject_();try{y(P.resolve,P.reject)}catch(n){P.reject(n)}};
r.prototype.createResolveAndReject_=function(){function y(B){return function(d){n||(n=!0,B.call(P,d))}}
var P=this,n=!1;return{resolve:y(this.resolveTo_),reject:y(this.JSC$8750_reject_)}};
r.prototype.resolveTo_=function(y){if(y===this)this.JSC$8750_reject_(new TypeError("n"));else if(y instanceof r)this.settleSameAsPromise_(y);else{a:switch(typeof y){case "object":var P=y!=null;break a;case "function":P=!0;break a;default:P=!1}P?this.resolveToNonPromiseObj_(y):this.fulfill_(y)}};
r.prototype.resolveToNonPromiseObj_=function(y){var P=void 0;try{P=y.then}catch(n){this.JSC$8750_reject_(n);return}typeof P=="function"?this.settleSameAsThenable_(P,y):this.fulfill_(y)};
r.prototype.JSC$8750_reject_=function(y){this.settle_(2,y)};
r.prototype.fulfill_=function(y){this.settle_(1,y)};
r.prototype.settle_=function(y,P){if(this.state_!=0)throw Error("o`"+y+"`"+P+"`"+this.state_);this.state_=y;this.result_=P;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
r.prototype.scheduleUnhandledRejectionCheck_=function(){var y=this;f(function(){if(y.notifyUnhandledRejection_()){var P=_.rc.console;typeof P!=="undefined"&&P.error(y.result_)}},1)};
r.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var y=_.rc.CustomEvent,P=_.rc.Event,n=_.rc.dispatchEvent;if(typeof n==="undefined")return!0;typeof y==="function"?y=new y("unhandledrejection",{cancelable:!0}):typeof P==="function"?y=new P("unhandledrejection",{cancelable:!0}):(y=_.rc.document.createEvent("CustomEvent"),y.initCustomEvent("unhandledrejection",!1,!0,y));y.promise=this;y.reason=this.result_;return n(y)};
r.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var y=0;y<this.onSettledCallbacks_.length;++y)R.asyncExecute(this.onSettledCallbacks_[y]);this.onSettledCallbacks_=null}};
var R=new l;r.prototype.settleSameAsPromise_=function(y){var P=this.createResolveAndReject_();y.callWhenSettled_(P.resolve,P.reject)};
r.prototype.settleSameAsThenable_=function(y,P){var n=this.createResolveAndReject_();try{y.call(P,n.resolve,n.reject)}catch(B){n.reject(B)}};
r.prototype.then=function(y,P){function n(D,u){return typeof D=="function"?function(H){try{B(D(H))}catch(p){d(p)}}:u}
var B,d,J=new r(function(D,u){B=D;d=u});
this.callWhenSettled_(n(y,B),n(P,d));return J};
r.prototype.catch=function(y){return this.then(void 0,y)};
r.prototype.callWhenSettled_=function(y,P){function n(){switch(B.state_){case 1:y(B.result_);break;case 2:P(B.result_);break;default:throw Error("p`"+B.state_);}}
var B=this;this.onSettledCallbacks_==null?R.asyncExecute(n):this.onSettledCallbacks_.push(n);this.isRejectionHandled_=!0};
r.resolve=V;r.reject=function(y){return new r(function(P,n){n(y)})};
r.race=function(y){return new r(function(P,n){for(var B=_.L(y),d=B.next();!d.done;d=B.next())V(d.value).callWhenSettled_(P,n)})};
r.all=function(y){var P=_.L(y),n=P.next();return n.done?V([]):new r(function(B,d){function J(H){return function(p){D[H]=p;u--;u==0&&B(D)}}
var D=[],u=0;do D.push(void 0),u++,V(n.value).callWhenSettled_(J(D.length-1),d),n=P.next();while(!n.done)})};
return r});
var g5=function(W,l,V){if(W==null)throw new TypeError("q`"+V);if(l instanceof RegExp)throw new TypeError("r`"+V);return W+""};
f4("String.prototype.startsWith",function(W){return W?W:function(l,V){var f=g5(this,l,"startsWith"),r=f.length,R=l.length;V=Math.max(0,Math.min(V|0,f.length));for(var y=0;y<R&&V<r;)if(f[V++]!=l[y++])return!1;return y>=R}});
f4("Object.setPrototypeOf",function(W){return W||r5});
f4("Symbol.dispose",function(W){return W?W:Symbol("s")});
f4("SuppressedError",function(W){function l(V,f,r){if(!(this instanceof l))return new l(V,f,r);r=Error(r);"stack"in r&&(this.stack=r.stack);this.message=r.message;this.error=V;this.suppressed=f}
if(W)return W;_.v(l,Error);l.prototype.name="SuppressedError";return l});
var dbj=function(W,l,V){W instanceof String&&(W=String(W));for(var f=W.length,r=0;r<f;r++){var R=W[r];if(l.call(V,R,r,W))return{i:r,v:R}}return{i:-1,v:void 0}};
f4("Array.prototype.find",function(W){return W?W:function(l,V){return dbj(this,l,V).v}});
f4("WeakMap",function(W){function l(){}
function V(n){var B=typeof n;return B==="object"&&n!==null||B==="function"}
function f(n){if(!sl(n,R)){var B=new l;S$n(n,R,{value:B})}}
function r(n){var B=Object[n];B&&(Object[n]=function(d){if(d instanceof l)return d;Object.isExtensible(d)&&f(d);return B(d)})}
if(function(){if(!W||!Object.seal)return!1;try{var n=Object.seal({}),B=Object.seal({}),d=new W([[n,2],[B,3]]);if(d.get(n)!=2||d.get(B)!=3)return!1;d.delete(n);d.set(B,4);return!d.has(n)&&d.get(B)==4}catch(J){return!1}}())return W;
var R="$jscomp_hidden_"+Math.random();r("freeze");r("preventExtensions");r("seal");var y=0,P=function(n){this.JSC$8757_id_=(y+=Math.random()+1).toString();if(n){n=_.L(n);for(var B;!(B=n.next()).done;)B=B.value,this.set(B[0],B[1])}};
P.prototype.set=function(n,B){if(!V(n))throw Error("t");f(n);if(!sl(n,R))throw Error("u`"+n);n[R][this.JSC$8757_id_]=B;return this};
P.prototype.get=function(n){return V(n)&&sl(n,R)?n[R][this.JSC$8757_id_]:void 0};
P.prototype.has=function(n){return V(n)&&sl(n,R)&&sl(n[R],this.JSC$8757_id_)};
P.prototype.delete=function(n){return V(n)&&sl(n,R)&&sl(n[R],this.JSC$8757_id_)?delete n[R][this.JSC$8757_id_]:!1};
return P});
f4("Map",function(W){if(function(){if(!W||typeof W!="function"||!W.prototype.entries||typeof Object.seal!="function")return!1;try{var P=Object.seal({x:4}),n=new W(_.L([[P,"s"]]));if(n.get(P)!="s"||n.size!=1||n.get({x:4})||n.set({x:4},"t")!=n||n.size!=2)return!1;var B=n.entries(),d=B.next();if(d.done||d.value[0]!=P||d.value[1]!="s")return!1;d=B.next();return d.done||d.value[0].x!=4||d.value[1]!="t"||!B.next().done?!1:!0}catch(J){return!1}}())return W;
var l=new WeakMap,V=function(P){this[0]={};this[1]=R();this.size=0;if(P){P=_.L(P);for(var n;!(n=P.next()).done;)n=n.value,this.set(n[0],n[1])}};
V.prototype.set=function(P,n){P=P===0?0:P;var B=f(this,P);B.list||(B.list=this[0][B.id]=[]);B.entry?B.entry.value=n:(B.entry={next:this[1],previous:this[1].previous,head:this[1],key:P,value:n},B.list.push(B.entry),this[1].previous.next=B.entry,this[1].previous=B.entry,this.size++);return this};
V.prototype.delete=function(P){P=f(this,P);return P.entry&&P.list?(P.list.splice(P.index,1),P.list.length||delete this[0][P.id],P.entry.previous.next=P.entry.next,P.entry.next.previous=P.entry.previous,P.entry.head=null,this.size--,!0):!1};
V.prototype.clear=function(){this[0]={};this[1]=this[1].previous=R();this.size=0};
V.prototype.has=function(P){return!!f(this,P).entry};
V.prototype.get=function(P){return(P=f(this,P).entry)&&P.value};
V.prototype.entries=function(){return r(this,function(P){return[P.key,P.value]})};
V.prototype.keys=function(){return r(this,function(P){return P.key})};
V.prototype.values=function(){return r(this,function(P){return P.value})};
V.prototype.forEach=function(P,n){for(var B=this.entries(),d;!(d=B.next()).done;)d=d.value,P.call(n,d[1],d[0],this)};
V.prototype[Symbol.iterator]=V.prototype.entries;var f=function(P,n){var B=n&&typeof n;B=="object"||B=="function"?l.has(n)?B=l.get(n):(B=""+ ++y,l.set(n,B)):B="p_"+n;var d=P[0][B];if(d&&sl(P[0],B))for(P=0;P<d.length;P++){var J=d[P];if(n!==n&&J.key!==J.key||n===J.key)return{id:B,list:d,index:P,entry:J}}return{id:B,list:d,index:-1,entry:void 0}},r=function(P,n){var B=P[1];
return $M6(function(){if(B){for(;B.head!=P[1];)B=B.previous;for(;B.next!=B.head;)return B=B.next,{done:!1,value:n(B)};B=null}return{done:!0,value:void 0}})},R=function(){var P={};
return P.previous=P.next=P.head=P},y=0;
return V});
f4("Set",function(W){if(function(){if(!W||typeof W!="function"||!W.prototype.entries||typeof Object.seal!="function")return!1;try{var V=Object.seal({x:4}),f=new W(_.L([V]));if(!f.has(V)||f.size!=1||f.add(V)!=f||f.size!=1||f.add({x:4})!=f||f.size!=2)return!1;var r=f.entries(),R=r.next();if(R.done||R.value[0]!=V||R.value[1]!=V)return!1;R=r.next();return R.done||R.value[0]==V||R.value[0].x!=4||R.value[1]!=R.value[0]?!1:r.next().done}catch(y){return!1}}())return W;
var l=function(V){this.JSC$8771_map_=new Map;if(V){V=_.L(V);for(var f;!(f=V.next()).done;)this.add(f.value)}this.size=this.JSC$8771_map_.size};
l.prototype.add=function(V){V=V===0?0:V;this.JSC$8771_map_.set(V,V);this.size=this.JSC$8771_map_.size;return this};
l.prototype.delete=function(V){V=this.JSC$8771_map_.delete(V);this.size=this.JSC$8771_map_.size;return V};
l.prototype.clear=function(){this.JSC$8771_map_.clear();this.size=0};
l.prototype.has=function(V){return this.JSC$8771_map_.has(V)};
l.prototype.entries=function(){return this.JSC$8771_map_.entries()};
l.prototype.values=function(){return this.JSC$8771_map_.values()};
l.prototype.keys=l.prototype.values;l.prototype[Symbol.iterator]=l.prototype.values;l.prototype.forEach=function(V,f){var r=this;this.JSC$8771_map_.forEach(function(R){return V.call(f,R,R,r)})};
return l});
f4("Math.log2",function(W){return W?W:function(l){return Math.log(l)/Math.LN2}});
f4("Object.values",function(W){return W?W:function(l){var V=[],f;for(f in l)sl(l,f)&&V.push(l[f]);return V}});
f4("Object.is",function(W){return W?W:function(l,V){return l===V?l!==0||1/l===1/V:l!==l&&V!==V}});
f4("Array.prototype.includes",function(W){return W?W:function(l,V){var f=this;f instanceof String&&(f=String(f));var r=f.length;V=V||0;for(V<0&&(V=Math.max(V+r,0));V<r;V++){var R=f[V];if(R===l||Object.is(R,l))return!0}return!1}});
f4("String.prototype.includes",function(W){return W?W:function(l,V){return g5(this,l,"includes").indexOf(l,V||0)!==-1}});
f4("Array.from",function(W){return W?W:function(l,V,f){V=V!=null?V:function(P){return P};
var r=[],R=typeof Symbol!="undefined"&&Symbol.iterator&&l[Symbol.iterator];if(typeof R=="function"){l=R.call(l);for(var y=0;!(R=l.next()).done;)r.push(V.call(f,R.value,y++))}else for(R=l.length,y=0;y<R;y++)r.push(V.call(f,l[y],y));return r}});
f4("Object.entries",function(W){return W?W:function(l){var V=[],f;for(f in l)sl(l,f)&&V.push([f,l[f]]);return V}});
f4("Number.isFinite",function(W){return W?W:function(l){return typeof l!=="number"?!1:!isNaN(l)&&l!==Infinity&&l!==-Infinity}});
f4("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
f4("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
f4("Number.isInteger",function(W){return W?W:function(l){return Number.isFinite(l)?l===Math.floor(l):!1}});
f4("Number.isSafeInteger",function(W){return W?W:function(l){return Number.isInteger(l)&&Math.abs(l)<=Number.MAX_SAFE_INTEGER}});
f4("String.prototype.endsWith",function(W){return W?W:function(l,V){var f=g5(this,l,"endsWith");V===void 0&&(V=f.length);V=Math.max(0,Math.min(V|0,f.length));for(var r=l.length;r>0&&V>0;)if(f[--V]!=l[--r])return!1;return r<=0}});
var J96=function(W,l){W instanceof String&&(W+="");var V=0,f=!1,r={next:function(){if(!f&&V<W.length){var R=V++;return{value:l(R,W[R]),done:!1}}f=!0;return{done:!0,value:void 0}}};
r[Symbol.iterator]=function(){return r};
return r};
f4("Array.prototype.entries",function(W){return W?W:function(){return J96(this,function(l,V){return[l,V]})}});
f4("Math.trunc",function(W){return W?W:function(l){l=Number(l);if(isNaN(l)||l===Infinity||l===-Infinity||l===0)return l;var V=Math.floor(Math.abs(l));return l<0?-V:V}});
f4("Number.isNaN",function(W){return W?W:function(l){return typeof l==="number"&&isNaN(l)}});
f4("Array.prototype.keys",function(W){return W?W:function(){return J96(this,function(l){return l})}});
f4("Array.prototype.values",function(W){return W?W:function(){return J96(this,function(l,V){return V})}});
f4("Array.prototype.fill",function(W){return W?W:function(l,V,f){var r=this.length||0;V<0&&(V=Math.max(0,r+V));if(f==null||f>r)f=r;f=Number(f);f<0&&(f=Math.max(0,r+f));for(V=Number(V||0);V<f;V++)this[V]=l;return this}});
var PF=function(W){return W?W:Array.prototype.fill};
f4("Int8Array.prototype.fill",PF);f4("Uint8Array.prototype.fill",PF);f4("Uint8ClampedArray.prototype.fill",PF);f4("Int16Array.prototype.fill",PF);f4("Uint16Array.prototype.fill",PF);f4("Int32Array.prototype.fill",PF);f4("Uint32Array.prototype.fill",PF);f4("Float32Array.prototype.fill",PF);f4("Float64Array.prototype.fill",PF);
f4("Object.fromEntries",function(W){return W?W:function(l){var V={};if(!(Symbol.iterator in l))throw new TypeError("v`"+l);l=l[Symbol.iterator].call(l);for(var f=l.next();!f.done;f=l.next()){f=f.value;if(Object(f)!==f)throw new TypeError("w");V[f[0]]=f[1]}return V}});
f4("String.prototype.replaceAll",function(W){return W?W:function(l,V){if(l instanceof RegExp&&!l.global)throw new TypeError("x");return l instanceof RegExp?this.replace(l,V):this.replace(new RegExp(String(l).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),V)}});
f4("Object.getOwnPropertySymbols",function(W){return W?W:function(){return[]}});
f4("String.prototype.repeat",function(W){return W?W:function(l){var V=g5(this,null,"repeat");if(l<0||l>1342177279)throw new RangeError("y");l|=0;for(var f="";l;)if(l&1&&(f+=V),l>>>=1)V+=V;return f}});
f4("Array.prototype.findIndex",function(W){return W?W:function(l,V){return dbj(this,l,V).i}});
f4("Array.prototype.flatMap",function(W){return W?W:function(l,V){var f=[];Array.prototype.forEach.call(this,function(r,R){r=l.call(V,r,R,this);Array.isArray(r)?f.push.apply(f,r):f.push(r)});
return f}});
f4("String.prototype.codePointAt",function(W){return W?W:function(l){var V=g5(this,null,"codePointAt"),f=V.length;l=Number(l)||0;if(l>=0&&l<f){l|=0;var r=V.charCodeAt(l);if(r<55296||r>56319||l+1===f)return r;l=V.charCodeAt(l+1);return l<56320||l>57343?r:(r-55296)*1024+l+9216}}});
f4("String.fromCodePoint",function(W){return W?W:function(l){for(var V="",f=0;f<arguments.length;f++){var r=Number(arguments[f]);if(r<0||r>1114111||r!==Math.floor(r))throw new RangeError("z`"+r);r<=65535?V+=String.fromCharCode(r):(r-=65536,V+=String.fromCharCode(r>>>10&1023|55296),V+=String.fromCharCode(r&1023|56320))}return V}});
f4("String.prototype.trimLeft",function(W){function l(){return this.replace(/^[\s\xa0]+/,"")}
return W||l});
f4("String.prototype.trimStart",function(W){return W||String.prototype.trimLeft});
f4("String.prototype.padStart",function(W){return W?W:function(l,V){var f=g5(this,null,"padStart");l-=f.length;V=V!==void 0?String(V):" ";return(l>0&&V?V.repeat(Math.ceil(l/V.length)).substring(0,l):"")+f}});
f4("Promise.prototype.finally",function(W){return W?W:function(l){return this.then(function(V){return Promise.resolve(l()).then(function(){return V})},function(V){return Promise.resolve(l()).then(function(){throw V;
})})}});
f4("Math.imul",function(W){return W?W:function(l,V){l=Number(l);V=Number(V);var f=l&65535,r=V&65535;return f*r+((l>>>16&65535)*r+f*(V>>>16&65535)<<16>>>0)|0}});
f4("Object.hasOwn",function(W){return W?W:function(l,V){return Object.prototype.hasOwnProperty.call(l,V)}});
f4("Math.sign",function(W){return W?W:function(l){l=Number(l);return l===0||isNaN(l)?l:l>0?1:-1}});
f4("Array.prototype.flat",function(W){return W?W:function(l){l=l===void 0?1:l;var V=[];Array.prototype.forEach.call(this,function(f){Array.isArray(f)&&l>0?(f=Array.prototype.flat.call(f,l-1),V.push.apply(V,f)):V.push(f)});
return V}});
f4("String.raw",function(W){return W?W:function(l,V){l=tGq(l);for(var f=l.raw,r=f.length,R="",y=0;y<r;++y)R+=f[y],y+1<r&&y+1<arguments.length&&(R+=String(arguments[y+1]));return R}});
f4("Reflect.ownKeys",function(W){return W?W:function(l){var V=[],f=Object.getOwnPropertyNames(l);l=Object.getOwnPropertySymbols(l);for(var r=0;r<f.length;r++)(f[r].substring(0,14)=="jscomp_symbol_"?l:V).push(f[r]);return V.concat(l)}});
f4("Object.getOwnPropertyDescriptors",function(W){return W?W:function(l){for(var V={},f=Reflect.ownKeys(l),r=0;r<f.length;r++)V[f[r]]=Object.getOwnPropertyDescriptor(l,f[r]);return V}});
f4("WeakSet",function(W){if(function(){if(!W||!Object.seal)return!1;try{var V=Object.seal({}),f=Object.seal({}),r=new W([V]);if(!r.has(V)||r.has(f))return!1;r.delete(V);r.add(f);return!r.has(V)&&r.has(f)}catch(R){return!1}}())return W;
var l=function(V){this.JSC$8784_map_=new WeakMap;if(V){V=_.L(V);for(var f;!(f=V.next()).done;)this.add(f.value)}};
l.prototype.add=function(V){this.JSC$8784_map_.set(V,!0);return this};
l.prototype.has=function(V){return this.JSC$8784_map_.has(V)};
l.prototype.delete=function(V){return this.JSC$8784_map_.delete(V)};
return l});
f4("Promise.allSettled",function(W){function l(f){return{status:"fulfilled",value:f}}
function V(f){return{status:"rejected",reason:f}}
return W?W:function(f){var r=this;f=Array.from(f,function(R){return r.resolve(R).then(l,V)});
return r.all(f)}});
f4("Number.parseInt",function(W){return W||parseInt});
_._DumpException=window._DumpException||function(W){throw W;};
window._DumpException=_._DumpException;var DbU=window.ytcsi;DbU&&typeof DbU.tick==="function"&&DbU.tick("rses_dpj");var Ubj,n4,C4,cF,u$S,kAS,v3x,Hoj,jY,KvF;Ubj=Ubj||{};_.rS=this||self;_.fR=function(W,l,V){W=W.split(".");V=V||_.rS;for(var f;W.length&&(f=W.shift());)W.length||l===void 0?V[f]&&V[f]!==Object.prototype[f]?V=V[f]:V=V[f]={}:V[f]=l};
n4=function(W,l){var V=_.Y2("WIZ_global_data.oxN3nb");W=V&&V[W];return W!=null?W:l};
C4=_.rS._F_toggles_default_kevlar_base||[];cF=function(){};
cF.get=function(){return null};
_.Zhq=null;_.Y2=function(W,l){W=W.split(".");l=l||_.rS;for(var V=0;V<W.length;V++)if(l=l[W[V]],l==null)return null;return l};
_.BF=function(W){W.instance_=void 0;W.getInstance=function(){return W.instance_?W.instance_:W.instance_=new W}};
_.EM=function(W){var l=typeof W;return l!="object"?l:W?Array.isArray(W)?"array":l:"null"};
_.Ng=function(W){var l=_.EM(W);return l=="array"||l=="object"&&typeof W.length=="number"};
_.ev=function(W){var l=typeof W;return l=="object"&&W!=null||l=="function"};
_.qg=function(W){return Object.prototype.hasOwnProperty.call(W,u$S)&&W[u$S]||(W[u$S]=++kAS)};
u$S="closure_uid_"+(Math.random()*1E9>>>0);kAS=0;v3x=function(W,l,V){return W.call.apply(W.bind,arguments)};
Hoj=function(W,l,V){if(!W)throw Error();if(arguments.length>2){var f=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(r,f);return W.apply(l,r)}}return function(){return W.apply(l,arguments)}};
_.ml=function(W,l,V){_.ml=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?v3x:Hoj;return _.ml.apply(null,arguments)};
_.QW=function(W,l){var V=Array.prototype.slice.call(arguments,1);return function(){var f=V.slice();f.push.apply(f,arguments);return W.apply(this,f)}};
_.d5=function(){return Date.now()};
jY=function(W){return W};
_.Jj=function(W,l){function V(){}
V.prototype=l.prototype;W.superClass_=l.prototype;W.prototype=new V;W.prototype.constructor=W;W.base=function(f,r,R){for(var y=Array(arguments.length-2),P=2;P<arguments.length;P++)y[P-2]=arguments[P];return l.prototype[r].apply(f,y)}};
KvF=function(W){return W};var FvF,GAj;_.a=function(W,l,V,f){var r=arguments.length,R=r<3?l:f===null?f=Object.getOwnPropertyDescriptor(l,V):f,y;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")R=Reflect.decorate(W,l,V,f);else for(var P=W.length-1;P>=0;P--)if(y=W[P])R=(r<3?y(R):r>3?y(l,V,R):y(l,V))||R;r>3&&R&&Object.defineProperty(l,V,R)};
_.z=function(W,l){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(W,l)};
FvF=function(W,l){if(l!==null&&l!==void 0){if(typeof l!=="object"&&typeof l!=="function")throw new TypeError("A");if(V===void 0){if(!Symbol.dispose)throw new TypeError("C");var V=l[Symbol.dispose]}if(typeof V!=="function")throw new TypeError("D");W.stack.push({value:l,dispose:V,async:!1})}return l};
GAj=function(W){function l(R){W.error=W.hasError?new SuppressedError(R,W.error,"An error was suppressed during disposal."):R;W.hasError=!0}
function V(){for(;f=W.stack.pop();)try{if(!f.async&&r===1)return r=0,W.stack.push(f),Promise.resolve().then(V);if(f.dispose){var R=f.dispose.call(f.value);if(f.async)return r|=2,Promise.resolve(R).then(V,function(y){l(y);return V()})}else r|=1}catch(y){l(y)}if(r===1)return W.hasError?Promise.reject(W.error):Promise.resolve();
if(W.hasError)throw W.error;}
var f,r=0;V()};_.Jj(_.VU,Error);_.VU.prototype.name="CustomError";var bon;var p1g=void 0,o36,j7U=typeof TextDecoder!=="undefined",f4z,Vvq=typeof String.prototype.isWellFormed==="function",l4U=typeof TextEncoder!=="undefined";var I_z;_.IZ=function(W){for(var l=[],V=0,f=0;f<W.length;f++){var r=W.charCodeAt(f);r<128?l[V++]=r:(r<2048?l[V++]=r>>6|192:((r&64512)==55296&&f+1<W.length&&(W.charCodeAt(f+1)&64512)==56320?(r=65536+((r&1023)<<10)+(W.charCodeAt(++f)&1023),l[V++]=r>>18|240,l[V++]=r>>12&63|128):l[V++]=r>>12|224,l[V++]=r>>6&63|128),l[V++]=r&63|128)}return l};
I_z=function(W){for(var l=[],V=0,f=0;V<W.length;){var r=W[V++];if(r<128)l[f++]=String.fromCharCode(r);else if(r>191&&r<224){var R=W[V++];l[f++]=String.fromCharCode((r&31)<<6|R&63)}else if(r>239&&r<365){R=W[V++];var y=W[V++],P=W[V++];r=((r&7)<<18|(R&63)<<12|(y&63)<<6|P&63)-65536;l[f++]=String.fromCharCode(55296+(r>>10));l[f++]=String.fromCharCode(56320+(r&1023))}else R=W[V++],y=W[V++],l[f++]=String.fromCharCode((r&15)<<12|(R&63)<<6|y&63)}return l.join("")};var Cq=String.prototype.trim?function(W){return W.trim()}:function(W){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(W)[1]},ioJ=/&/g,mbJ=/</g,X1g=/>/g,T18=/"/g,w1j=/'/g,A9j=/\x00/g,Q7z=/[\x00&<>"']/;var Db=!!(C4[0]>>15&1),MGj=!!(C4[0]&1024),Zon=!!(C4[0]>>16&1),OoY=!!(C4[0]&8),a_U=!!(C4[0]&2),zqz=!!(C4[0]&4),N16=!!(C4[0]&16),YtS=!!(C4[0]&128);var xbU=n4(1,!0),uF=Db?Zon:n4(610401301,!1),eq4=Db?OoY:n4(772657768,!1),qt6=Db?a_U:n4(513659523,!1),hqn=Db?MGj||!zqz:n4(568333945,!0),UmF=Db?N16:n4(1331761403,!1),B76=Db?MGj||!YtS:n4(748402147,xbU);var kz,StJ=_.rS.navigator;kz=StJ?StJ.userAgentData||null:null;var SS;_.Mg=function(W,l){return Array.prototype.indexOf.call(W,l,void 0)};
_.q4=function(W,l,V){Array.prototype.forEach.call(W,l,V)};
_.Ul=function(W,l,V){return Array.prototype.filter.call(W,l,V)};
_.Zl=function(W,l,V){return Array.prototype.map.call(W,l,V)};
SS=function(W,l,V){return Array.prototype.some.call(W,l,V)};
_.$Aq=function(W,l,V){return Array.prototype.every.call(W,l,V)};var uK=function(W){uK[" "](W);return W};
uK[" "]=function(){};
var G7v=function(W,l){try{return uK(W[l]),!0}catch(V){}return!1},UtJ=function(W,l,V,f){f=f?f(l):l;
return Object.prototype.hasOwnProperty.call(W,f)?W[f]:W[f]=V(l)};var E3q,li,$b8,Wsj,VDJ,fg8,EDU,rNF,RSY,tDJ,EmF,Lsn,yNv,Cev,cN6,Brn;_.qoz=function(){return _.rS.navigator||null};
E3q=sYv();_.kt=Ljv();li=G6("Edge");$b8=li||_.kt;_.vF=G6("Gecko")&&!(_.nq(_.Uz(),"WebKit")&&!G6("Edge"))&&!(G6("Trident")||G6("MSIE"))&&!G6("Edge");_.HF=_.nq(_.Uz(),"WebKit")&&!G6("Edge");Wsj=_.HF&&G6("Mobile");_.lg6=_.Jx6();VDJ=_.DgY();fg8=(IY()?kz.platform==="Linux":G6("Linux"))||_.Ugz();EDU=_.BS4();rNF=dgz();RSY=G6("iPad");tDJ=G6("iPod");_.sxS=_.iF();EmF=_.nq(_.Uz(),"KaiOS");Lsn=function(){var W=_.rS.document;return W?W.documentMode:void 0};
a:{var gen="",PeJ=function(){var W=_.Uz();if(_.vF)return/rv:([^\);]+)(\)|;)/.exec(W);if(li)return/Edge\/([\d\.]+)/.exec(W);if(_.kt)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(W);if(_.HF)return/WebKit\/(\S+)/.exec(W);if(E3q)return/(?:Version)[ \/]?(\S+)/.exec(W)}();
PeJ&&(gen=PeJ?PeJ[1]:"");if(_.kt){var nej=Lsn();if(nej!=null&&nej>parseFloat(gen)){yNv=String(nej);break a}}yNv=gen}Cev=yNv;cN6={};_.K4=function(W){return UtJ(cN6,W,function(){return _.dS(Cev,W)>=0})};
if(_.rS.document&&_.kt){var duF=Lsn();Brn=duF?duF:parseInt(Cev,10)||void 0}else Brn=void 0;_.JNF=Brn;var wyn,AWn,Dun;_.Fe=oY();wyn=dgz()||G6("iPod");AWn=G6("iPad");Dun=_.PFn();_.Gy=_.jv();_.O6=_.gzJ()&&!_.iF();var Uun,bK,NOz,VKS,kNU,uav;Uun={};bK=null;NOz=_.vF||_.HF||typeof _.rS.btoa=="function";_.Xw=function(W,l){l===void 0&&(l=0);uav();l=Uun[l];for(var V=Array(Math.floor(W.length/3)),f=l[64]||"",r=0,R=0;r<W.length-2;r+=3){var y=W[r],P=W[r+1],n=W[r+2],B=l[y>>2];y=l[(y&3)<<4|P>>4];P=l[(P&15)<<2|n>>6];n=l[n&63];V[R++]=B+y+P+n}B=0;n=f;switch(W.length-r){case 2:B=W[r+1],n=l[(B&15)<<2]||f;case 1:W=W[r],V[R]=l[W>>2]+l[(W&3)<<4|B>>4]+n+f}return V.join("")};
VKS=function(W){var l="";kNU(W,function(V){l+=String.fromCharCode(V)});
return l};
_.dUS=function(W){var l=[];kNU(W,function(V){l.push(V)});
return l};
_.$z=function(W){var l=W.length,V=l*3/4;V%3?V=Math.floor(V):_.P8("=.",W[l-1])&&(V=_.P8("=.",W[l-2])?V-2:V-1);var f=new Uint8Array(V),r=0;kNU(W,function(R){f[r++]=R});
return r!==V?f.subarray(0,r):f};
kNU=function(W,l){function V(n){for(;f<W.length;){var B=W.charAt(f++),d=bK[B];if(d!=null)return d;if(!_.gS(B))throw Error("H`"+B);}return n}
uav();for(var f=0;;){var r=V(-1),R=V(0),y=V(64),P=V(64);if(P===64&&r===-1)break;l(r<<2|R>>4);y!=64&&(l(R<<4&240|y>>2),P!=64&&l(y<<6&192|P))}};
uav=function(){if(!bK){bK={};for(var W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),l=["+/=","+/","-_=","-_.","-_"],V=0;V<5;V++){var f=W.concat(l[V].split(""));Uun[V]=f;for(var r=0;r<f.length;r++){var R=f[r];bK[R]===void 0&&(bK[R]=r)}}}};var NSJ=typeof Uint8Array!=="undefined",mgn=!_.kt&&typeof btoa==="function",X8z=/[-_.]/g,I4j={"-":"+",_:"/",".":"="},Ga={};var F9,HKx;F9=function(W,l){if(l!==Ga)throw Error("J");this.JSC$8814_value_=W;if(W!=null&&W.length===0)throw Error("I");};
_.bB=function(){return veg||(veg=new F9(null,Ga))};
HKx=function(W){return new Uint8Array(Qwg(W)||0)};
F9.prototype.isEmpty=function(){return this.JSC$8814_value_==null};
F9.prototype.sizeBytes=function(){var W=Qwg(this);return W?W.length:0};
var Qwg=function(W){if(Ga!==Ga)throw Error("J");var l=W.JSC$8814_value_;l==null||NSJ&&l!=null&&l instanceof Uint8Array||(typeof l==="string"?l=TSz(l):(_.EM(l),l=null));return l==null?l:W.JSC$8814_value_=l},veg;var Axv=void 0;var tZ=typeof Symbol==="function"&&typeof Symbol()==="symbol",Ks6=RX("jas",void 0,!0),TLz=RX(void 0,"0di"),ra=RX(void 0,"1oa"),is=RX(void 0,Symbol()),EcJ=RX(void 0,"0ub"),WNv=RX(void 0,"0ubs"),kIq=RX(void 0,"0ubsb"),J18=RX(void 0,"0actk"),K2=RX("m_m","messagePrototypeMarker",!0),gZS=RX(void 0,"vps"),qMJ=RX();var Zqj,Mvj,qH,Fsn;Zqj={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};Mvj=Object.defineProperties;_.Le=tZ?Ks6:"internalArrayState";Fsn=[];yv(Fsn,7);qH=Object.freeze(Fsn);var G1={},Ce={},GNn=function(W,l,V){this.iterable=W;this.mapper=l;this.thisArg=V};
GNn.prototype.next=function(){var W=this.iterable.next();W.done||(W.value=this.mapper.call(this.thisArg,W.value));return W};
GNn.prototype[Symbol.iterator]=function(){return this};
var bK8=Object.freeze({}),IX={};_.pi8=X9(function(W){return W!==null&&W!==void 0});var SzJ=X9(function(W){return typeof W==="number"}),hJq=X9(function(W){return typeof W==="string"}),$gY=X9(function(W){return typeof W==="boolean"}),oeq=X9(function(W){return W!=null&&typeof W==="object"&&typeof W.then==="function"}),oYJ=X9(function(W){return typeof W==="function"}),g9=X9(function(W){return!!W&&(typeof W==="object"||typeof W==="function")});var Ezx=typeof _.rS.BigInt==="function"&&typeof _.rS.BigInt(0)==="bigint";var ocv=X9(function(W){return Ezx?W>=jxj&&W<=Ig4:W[0]==="-"?Wkq(W,iKv):Wkq(W,muY)}),iKv=Number.MIN_SAFE_INTEGER.toString(),jxj=Ezx?BigInt(Number.MIN_SAFE_INTEGER):void 0,muY=Number.MAX_SAFE_INTEGER.toString(),Ig4=Ezx?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Xix=typeof Uint8Array.prototype.slice==="function",AZ=0,Qv=0,f$S;var yL,ce,$c,Be,ncU;yL=typeof BigInt==="function"?BigInt.asIntN:void 0;_.d7=typeof BigInt==="function"?BigInt.asUintN:void 0;ce=Number.isSafeInteger;$c=Number.isFinite;Be=Math.trunc;ncU=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var PsJ={};var YMF={},Trz=function(){try{var W=function(){return l_8(Map,[],this.constructor)};
_.v(W,Map);uK(new W);return!1}catch(l){return!0}}(),p4=function(){this.JSC$8833_map_=new Map};
_.t=p4.prototype;_.t.get=function(W){return this.JSC$8833_map_.get(W)};
_.t.set=function(W,l){this.JSC$8833_map_.set(W,l);this.size=this.JSC$8833_map_.size;return this};
_.t.delete=function(W){W=this.JSC$8833_map_.delete(W);this.size=this.JSC$8833_map_.size;return W};
_.t.clear=function(){this.JSC$8833_map_.clear();this.size=this.JSC$8833_map_.size};
_.t.has=function(W){return this.JSC$8833_map_.has(W)};
_.t.entries=function(){return this.JSC$8833_map_.entries()};
_.t.keys=function(){return this.JSC$8833_map_.keys()};
_.t.values=function(){return this.JSC$8833_map_.values()};
_.t.forEach=function(W,l){return this.JSC$8833_map_.forEach(W,l)};
p4.prototype[Symbol.iterator]=function(){return this.entries()};
var w7=function(){if(Trz)return Object.setPrototypeOf(p4.prototype,Map.prototype),Object.defineProperties(p4.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),p4;var W=function(){return l_8(Map,[],this.constructor)};
_.v(W,Map);return W}(),ow=function(W,l,V,f){V=V===void 0?Zez:V;
f=f===void 0?Zez:f;var r=w7.call(this)||this;r.arrayState=W[_.Le]|0;r.valueCtor=l;r.keyToApi=V;r.valueToApi=r.valueCtor?a$g:f;for(var R=0;R<W.length;R++){var y=W[R],P=V(y[0],!1,!0),n=y[1];l?n===void 0&&(n=null):n=f(y[1],!1,!0,void 0,void 0,r.arrayState);w7.prototype.set.call(r,P,n)}return r};
_.v(ow,w7);var wiz=function(W){if(W.arrayState&2)throw Error("N");},uwJ=function(W){return Array.from(w7.prototype.entries.call(W))};
_.t=ow.prototype;_.t.clear=function(){wiz(this);w7.prototype.clear.call(this)};
_.t.delete=function(W){wiz(this);return w7.prototype.delete.call(this,this.keyToApi(W,!0,!1))};
_.t.entries=function(){if(this.valueCtor){var W=w7.prototype.keys.call(this);W=new GNn(W,zIg,this)}else W=w7.prototype.entries.call(this);return W};
_.t.values=function(){if(this.valueCtor){var W=w7.prototype.keys.call(this);W=new GNn(W,ow.prototype.get,this)}else W=w7.prototype.values.call(this);return W};
_.t.forEach=function(W,l){this.valueCtor?w7.prototype.forEach.call(this,function(V,f,r){W.call(l,r.get(f),f,r)}):w7.prototype.forEach.call(this,W,l)};
_.t.set=function(W,l){wiz(this);W=this.keyToApi(W,!0,!1);return W==null?this:l==null?(w7.prototype.delete.call(this,W),this):w7.prototype.set.call(this,W,this.valueToApi(l,!0,!0,this.valueCtor,!1,this.arrayState))};
_.t.has=function(W){return w7.prototype.has.call(this,this.keyToApi(W,!1,!1))};
_.t.get=function(W){W=this.keyToApi(W,!1,!1);var l=w7.prototype.get.call(this,W);if(l!==void 0){var V=this.valueCtor;return V?(V=this.valueToApi(l,!1,!0,V,this.callToMutableOnAccess,this.arrayState),V!==l&&w7.prototype.set.call(this,W,V),V):l}};
ow.prototype[Symbol.iterator]=function(){return this.entries()};
ow.prototype.toJSON=void 0;var NLq;var r1S=function(){},VYF=function(W,l){for(var V in W)!isNaN(V)&&l(W,+V,W[V])},R4g=function(W){var l=new r1S;
VYF(W,function(V,f,r){l[f]=N1(r)});
l.reviveUnknownFields=W.reviveUnknownFields;return l},hIF={reviveIntoImmutable:!0};var fcq;var nZn,CsY;var ANY,W$,UL,KS,QxJ,w5,vq,MDU,ZK8,Zb,OKq,Ol,NG,Yt;ANY=_.wL(0);_.oQ={};_.jP=function(W,l,V,f,r){l=W$(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l,V,r);if(l!==null||f&&W.noLegacyNull!==Ce)return l};
W$=function(W,l,V,f){if(l===-1)return null;var r=l+(V?0:-1),R=W.length-1;if(!(R<1+(V?0:-1))){if(r>=R){var y=W[R];if(y!=null&&typeof y==="object"&&y.constructor===Object){V=y[l];var P=!0}else if(r===R)V=y;else return}else V=W[r];if(f&&V!=null){f=f(V);if(f==null)return f;if(!Object.is(f,V))return P?y[l]=f:W[r]=f,f}return V}};
_.P2=function(W,l,V,f){NH(W);var r=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;eY(r,r[_.Le]|0,l,V,f);return W};
_.IQ=function(W,l,V){W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return mH4(W,W[_.Le]|0,l,V)!==void 0};
_.iK=function(W,l,V,f){var r=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return mH4(r,r[_.Le]|0,l,KS(W,f,V))!==void 0};
_.ns=function(W){return W===bK8?2:4};
_.mZ=function(W,l){W=_.jP(W,l,void 0,void 0,b2x);return W==null?_.bB():W};
UL=function(W,l,V,f){NH(W);var r=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=r[_.Le]|0;if(f==null){var y=jwU(r);if(Icx(y,r,R,V)===l)y.set(V,0);else return W}else R=i2n(r,R,V,l);eY(r,R,l,f);return W};
_.Xe=function(W,l,V,f){var r=W[_.Le]|0,R=mk(r);r=i2n(W,r,V,l,R);eY(W,r,l,f,R)};
KS=function(W,l,V){return _.Ty(W,l)===V?V:-1};
_.Ty=function(W,l){W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Icx(jwU(W),W,void 0,l,void 0)};
QxJ=function(W,l,V){var f=W[_.Le]|0,r=mk(f),R=W$(W,V,r);if(R!=null&&R[K2]===G1){if(!UM(R))return z1(R),R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var y=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(R)&&(y=R);if(y){var P=y[_.Le]|0;P&2&&(y=aw(y,P))}y=Zc(y,l,!0);y!==R&&eY(W,f,V,y,r);return y};
_.yy=function(W,l,V,f){var r=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=r[_.Le]|0;l=mH4(r,R,l,V,f);if(l==null)return l;R=r[_.Le]|0;if(!UM(W,R)){var y=Oeg(l);y!==l&&(z1(W)&&(r=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=r[_.Le]|0),l=y,R=eY(r,R,V,l,f),YZ(r,R))}return l};
_.Pt=function(W,l,V,f){var r=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return XeU(W,r,r[_.Le]|0,l,V,f,!1,!0)};
_.b7=function(W,l,V,f){V=T76(V);_.P2(W,l,V,f);V&&!UM(V)&&YZ(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return W};
_.pM=function(W,l,V,f){f=T76(f);UL(W,l,V,f);f&&!UM(f)&&YZ(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return W};
w5=function(W,l,V){NH(W);var f=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,r=f[_.Le]|0;if(V==null)return eY(f,r,l),W;for(var R=V===qH?7:V[_.Le]|0,y=R,P=E5(R),n=P||Object.isFrozen(V),B=!0,d=!0,J=0;J<V.length;J++){var D=V[J];P||(D=UM(D),B&&(B=!D),d&&(d=D))}P||(R=B?13:5,R=d?R&-4097:R|4096);n&&R===y||(V=N1(V),y=0,R=h1(R,r));R!==y&&yv(V,R);r=eY(f,r,l,V);2&R||!(4096&R||16&R)||YZ(f,r);return W};
vq=function(W,l,V,f){A14(W,l,V,f);return W};
MDU=function(W,l,V){A14(W,l,Aj,void 0,V,1,!0);return W};
_.QI=function(W,l,V){W=_.jP(W,l,void 0,V);l=typeof W;W=W==null?W:l==="bigint"?_.wL((0,_.d7)(64,W)):_.We(W)?l==="string"?_.pkn(W):_.Gav(W):void 0;return W};
_.MG=function(W,l){var V=V===void 0?!1:V;var f;return(f=_.PBj(_.jP(W,l)))!=null?f:V};
_.Cs=function(W,l,V){V=V===void 0?0:V;var f;return(f=_.t1(_.jP(W,l)))!=null?f:V};
ZK8=function(W,l){var V=V===void 0?0:V;W=_.cZj(_.jP(W,l));return W!=null?W:V};
Zb=function(W,l,V){V=V===void 0?ANY:V;var f;return(f=_.ieg(_.jP(W,l)))!=null?f:V};
OKq=function(W){var l=l===void 0?ANY:l;var V;return(V=_.QI(W,23))!=null?V:l};
Ol=function(W,l){var V=V===void 0?0:V;var f;return(f=_.jP(W,l,void 0,void 0,_.eL))!=null?f:V};
_.aQ=function(W,l,V,f){V=V===void 0?"":V;var r;return(r=_.He(_.jP(W,l,f)))!=null?r:V};
_.zy=function(W,l){var V=V===void 0?0:V;var f;return(f=_.r7(_.jP(W,l)))!=null?f:V};
NG=function(W,l){var V=V===void 0?"0":V;W=I$z(_.jP(W,l),!0);return W!=null?W:V};
Yt=function(W,l,V){return _.aQ(W,KS(W,V,l))};
_.xt=function(W,l,V,f){return _.yy(W,l,KS(W,f,V),void 0)};
_.F7=function(W,l){return _.He(_.jP(W,l,void 0,_.oQ))};
_.Jl=function(W,l,V){return _.P2(W,l,gcq(V))};
_.h6=function(W,l,V){return _.VP(W,l,gcq(V),!1)};
_.eP=function(W,l,V){return _.P2(W,l,_.Rw(V))};
_.Gs=function(W,l,V){return _.P2(W,l,Pe(V))};
_.mY=function(W,l,V){return _.P2(W,l,kZ(V))};
_.ft=function(W,l,V,f){return _.VP(W,l,kZ(V),"",f)};
_.g8=function(W,l,V){return _.P2(W,l,V==null?V:_.f2(V))};
_.qG=function(W,l,V){return _.VP(W,l,V==null?V:_.f2(V),0)};var Rv=function(W,l,V){this.buffer=W;if(V&&!l)throw Error();this.JSC$8845_isImmutable=l};var agz=function(W,l,V,f){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8848_start_=0;this.init(W,l,V,f)},hj,Nrn,Y9j,xug,eSU,q94,gkJ,zSz;
_.t=agz.prototype;_.t.init=function(W,l,V,f){var r=f===void 0?{}:f;f=r.aliasBytesFields===void 0?!1:r.aliasBytesFields;r=r.treatNewDataAsImmutable===void 0?!1:r.treatNewDataAsImmutable;this.aliasBytesFields=f;this.treatNewDataAsImmutable=r;W&&(W=MYJ(W,this.treatNewDataAsImmutable),this.bytes_=W.buffer,this.bytesAreImmutable_=W.JSC$8845_isImmutable,this.JSC$8848_start_=l||0,this.end_=V!==void 0?this.JSC$8848_start_+V:this.bytes_.length,this.cursor_=this.JSC$8848_start_)};
_.t.free=function(){this.clear();zSz.length<100&&zSz.push(this)};
_.t.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8848_start_=0;this.aliasBytesFields=!1};
_.t.reset=function(){this.cursor_=this.JSC$8848_start_};
_.t.atEnd=function(){return this.cursor_==this.end_};
_.SP=function(W,l){var V=0,f=0,r=0,R=W.bytes_,y=W.cursor_;do{var P=R[y++];V|=(P&127)<<r;r+=7}while(r<32&&P&128);if(r>32)for(f|=(P&127)>>4,r=3;r<32&&P&128;r+=7)P=R[y++],f|=(P&127)<<r;hj(W,y);if(!(P&128))return l(V>>>0,f>>>0);throw Error();};
hj=function(W,l){W.cursor_=l;if(l>W.end_)throw Error();};
_.El=function(W){var l=W.bytes_,V=W.cursor_,f=l[V++],r=f&127;if(f&128&&(f=l[V++],r|=(f&127)<<7,f&128&&(f=l[V++],r|=(f&127)<<14,f&128&&(f=l[V++],r|=(f&127)<<21,f&128&&(f=l[V++],r|=f<<28,f&128&&l[V++]&128&&l[V++]&128&&l[V++]&128&&l[V++]&128&&l[V++]&128)))))throw Error();hj(W,V);return r};
_.$t=function(W){var l=W.bytes_,V=W.cursor_,f=l[V],r=l[V+1],R=l[V+2];l=l[V+3];hj(W,W.cursor_+4);return(f<<0|r<<8|R<<16|l<<24)>>>0};
Nrn=function(W){var l=_.$t(W);W=_.$t(W);return RIJ(l,W)};
Y9j=function(W){var l=_.$t(W);W=(l>>31)*2+1;var V=l>>>23&255;l&=8388607;return V==255?l?NaN:W*Infinity:V==0?W*1.401298464324817E-45*l:W*Math.pow(2,V-150)*(l+8388608)};
xug=function(W){var l=_.$t(W),V=_.$t(W);W=(V>>31)*2+1;var f=V>>>20&2047;l=4294967296*(V&1048575)+l;return f==2047?l?NaN:W*Infinity:f==0?W*4.9E-324*l:W*Math.pow(2,f-1075)*(l+4503599627370496)};
eSU=function(W){for(var l=0,V=W.cursor_,f=V+10,r=W.bytes_;V<f;){var R=r[V++];l|=R;if((R&128)===0)return hj(W,V),!!(l&127)}throw Error();};
q94=function(W,l){if(l<0)throw Error();var V=W.cursor_;l=V+l;if(l>W.end_)throw Error();W.cursor_=l;return V};
gkJ=function(W,l){if(l==0)return _.bB();var V=q94(W,l);W.aliasBytesFields&&W.bytesAreImmutable_?V=W.bytes_.subarray(V,V+l):(W=W.bytes_,l=V+l,V=V===l?new Uint8Array(0):Xix?W.slice(V,l):new Uint8Array(W.subarray(V,l)));return V.length==0?_.bB():new F9(V,Ga)};
zSz=[];var S96=function(W,l,V,f){if(zSz.length){var r=zSz.pop();r.init(W,l,V,f);W=r}else W=new agz(W,l,V,f);this.decoder_=W;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;hS4(this,f)},hS4=function(W,l){l=l===void 0?{}:l;
W.discardUnknownFields=l.discardUnknownFields===void 0?!1:l.discardUnknownFields},C7J=function(W,l,V,f){if(Eex.length){var r=Eex.pop();
hS4(r,f);r.decoder_.init(W,l,V,f);return r}return new S96(W,l,V,f)},svz,yO8,Ws,$un,Eex;
S96.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;Eex.length<100&&Eex.push(this)};
S96.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
svz=function(W){if(W.decoder_.atEnd())return!1;W.fieldCursor_=W.decoder_.cursor_;var l=_.El(W.decoder_)>>>0,V=l>>>3;l&=7;if(!(l>=0&&l<=5))throw Error();if(V<1)throw Error();W.nextField_=V;W.nextWireType_=l;return!0};
yO8=function(W){switch(W.nextWireType_){case 0:W.nextWireType_!=0?yO8(W):eSU(W.decoder_);break;case 1:W=W.decoder_;hj(W,W.cursor_+8);break;case 2:if(W.nextWireType_!=2)yO8(W);else{var l=_.El(W.decoder_)>>>0;W=W.decoder_;hj(W,W.cursor_+l)}break;case 5:W=W.decoder_;hj(W,W.cursor_+4);break;case 3:l=W.nextField_;do{if(!svz(W))throw Error();if(W.nextWireType_==4){if(W.nextField_!=l)throw Error();break}yO8(W)}while(1);break;default:throw Error();}};
Ws=function(W,l,V){var f=W.decoder_.end_,r=_.El(W.decoder_)>>>0;r=W.decoder_.cursor_+r;var R=r-f;R<=0&&(W.decoder_.end_=r,V(l,W,void 0,void 0,void 0),R=r-W.decoder_.cursor_);if(R)throw Error();W.decoder_.cursor_=r;W.decoder_.end_=f;return l};
$un=function(W){var l=_.El(W.decoder_)>>>0;W=W.decoder_;var V=q94(W,l);W=W.bytes_;if(j7U){var f=W,r;(r=o36)||(r=o36=new TextDecoder("utf-8",{fatal:!0}));l=V+l;f=V===0&&l===f.length?f:f.subarray(V,l);try{var R=r.decode(f)}catch(B){if(p1g===void 0){try{r.decode(new Uint8Array([128]))}catch(d){}try{r.decode(new Uint8Array([97])),p1g=!0}catch(d){p1g=!1}}!p1g&&(o36=void 0);throw B;}}else{R=V;l=R+l;V=[];for(var y=null,P,n;R<l;)P=W[R++],P<128?V.push(P):P<224?R>=l?fq():(n=W[R++],P<194||(n&192)!==128?(R--,
fq()):V.push((P&31)<<6|n&63)):P<240?R>=l-1?fq():(n=W[R++],(n&192)!==128||P===224&&n<160||P===237&&n>=160||((r=W[R++])&192)!==128?(R--,fq()):V.push((P&15)<<12|(n&63)<<6|r&63)):P<=244?R>=l-2?fq():(n=W[R++],(n&192)!==128||(P<<28)+(n-144)>>30!==0||((r=W[R++])&192)!==128||((f=W[R++])&192)!==128?(R--,fq()):(P=(P&7)<<18|(n&63)<<12|(r&63)<<6|f&63,P-=65536,V.push((P>>10&1023)+55296,(P&1023)+56320))):fq(),V.length>=8192&&(y=Wj8(y,V),V.length=0);R=Wj8(y,V)}return R};
_.Won=function(W){var l=_.El(W.decoder_)>>>0;return gkJ(W.decoder_,l)};
_.lWq=function(W,l,V){var f=_.El(W.decoder_)>>>0;for(f=W.decoder_.cursor_+f;W.decoder_.cursor_<f;)V.push(l(W.decoder_))};
Eex=[];var VwJ=function(W,l){this.JSC$8855_lo=W>>>0;this.JSC$8855_hi=l>>>0},fWJ=function(W){W=BigInt.asUintN(64,W);
return new VwJ(Number(W&BigInt(4294967295)),Number(W>>BigInt(32)))},acY=function(W){if(!W)return rfF||(rfF=new VwJ(0,0));
if(!/^\d+$/.test(W))return null;za(W);return new VwJ(AZ,Qv)},rfF,GIY=function(W,l){this.JSC$8857_lo=W>>>0;
this.JSC$8857_hi=l>>>0},Z2z=function(W){if(!W)return RFJ||(RFJ=new GIY(0,0));
if(!/^-?\d+$/.test(W))return null;za(W);return new GIY(AZ,Qv)},RFJ;var lk=function(){this.JSC$8859_buffer_=[]},JO,UP,twJ;
lk.prototype.length=function(){return this.JSC$8859_buffer_.length};
lk.prototype.end=function(){var W=this.JSC$8859_buffer_;this.JSC$8859_buffer_=[];return W};
JO=function(W,l,V){for(;V>0||l>127;)W.JSC$8859_buffer_.push(l&127|128),l=(l>>>7|V<<25)>>>0,V>>>=7;W.JSC$8859_buffer_.push(l)};
UP=function(W,l){for(;l>127;)W.JSC$8859_buffer_.push(l&127|128),l>>>=7;W.JSC$8859_buffer_.push(l)};
_.bMS=function(W,l){if(l>=0)UP(W,l);else{for(var V=0;V<9;V++)W.JSC$8859_buffer_.push(l&127|128),l>>=7;W.JSC$8859_buffer_.push(1)}};
twJ=function(W,l){za(l);tLF(function(V,f){JO(W,V>>>0,f>>>0)})};
lk.prototype.writeUint8=function(W){this.JSC$8859_buffer_.push(W>>>0&255)};
_.da=function(W,l){W.JSC$8859_buffer_.push(l>>>0&255);W.JSC$8859_buffer_.push(l>>>8&255);W.JSC$8859_buffer_.push(l>>>16&255);W.JSC$8859_buffer_.push(l>>>24&255)};
lk.prototype.writeInt8=function(W){this.JSC$8859_buffer_.push(W>>>0&255)};var sKx,nM,okz,iMF,xHJ;sKx=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new lk};
nM=function(W,l){l.length!==0&&(W.blocks_.push(l),W.totalLength_+=l.length)};
_.Loj=function(W,l){_.B$(W,l,2);l=W.encoder_.end();nM(W,l);l.push(W.totalLength_);return l};
_.yfq=function(W,l){var V=l.pop();for(V=W.totalLength_+W.encoder_.length()-V;V>127;)l.push(V&127|128),V>>>=7,W.totalLength_++;l.push(V);W.totalLength_++};
_.B$=function(W,l,V){UP(W.encoder_,l*8+V)};
okz=function(W,l,V){if(V!=null)switch(z4z(V),_.B$(W,l,1),typeof V){case "number":W=W.encoder_;l$v(V);_.da(W,AZ);_.da(W,Qv);break;case "bigint":V=fWJ(V);W=W.encoder_;l=V.JSC$8855_hi;_.da(W,V.JSC$8855_lo);_.da(W,l);break;default:V=acY(V),W=W.encoder_,l=V.JSC$8855_hi,_.da(W,V.JSC$8855_lo),_.da(W,l)}};
iMF=function(W,l,V){_.B$(W,l,2);UP(W.encoder_,V.length);nM(W,W.encoder_.end());nM(W,V)};
xHJ=function(W,l,V,f){V!=null&&(l=_.Loj(W,l),f(V,W),_.yfq(W,l))};var N7j,gn8,PJJ,nn4,CJx,BuU,dpU,Dp6,Up8;N7j=tO();gn8=tO();PJJ=tO();nn4=tO();CJx=tO();_.cfY=tO();_.VR=tO();BuU=tO();dpU=tO();_.Jf6=tO();Dp6=tO();Up8=tO();_.uBx=tO();_.kg6=tO();_.yP=function(W,l,V){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W,l,V)};
_.yP.prototype.toJSON=function(){return QL(this)};
_.yP.prototype.serialize=function(W){return JSON.stringify(QL(this,W))};
var OMU=function(W,l){if(l==null||l=="")return new W;l=JSON.parse(l);if(!Array.isArray(l))throw Error("V");return new W(zJ6(l))};
_.yP.prototype.getExtension=function(W){$1Y(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W.fieldIndex);SMj(this,W.fieldIndex);return W.ctor?W.isRepeated?W.getExtensionFn(this,W.ctor,W.fieldIndex,_.ns(),W.JSC$8870_hasMessageId):W.getExtensionFn(this,W.ctor,W.fieldIndex,W.JSC$8870_hasMessageId):W.isRepeated?W.getExtensionFn(this,W.fieldIndex,_.ns(),W.JSC$8870_hasMessageId):W.getExtensionFn(this,W.fieldIndex,W.defaultValue,W.JSC$8870_hasMessageId)};
_.yP.prototype.clone=function(){var W=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=W[_.Le]|0;return H2S(this,W,l)?vZJ(this,W,!0):new this.constructor(aw(W,l,!1))};
_.yP.prototype[K2]=G1;_.yP.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var sP=function(W,l,V){this.$$binaryReaderFn=W;this.$$binaryWriterFn=l;W=jY(N7j);this.$$isMsg=!!W&&V===W||!1},$Hq=Y58(function(W,l,V,f,r){if(W.nextWireType_!==2)return!1;
Ws(W,QxJ(l,f,V),r);return!0},q54),W7v=Y58(function(W,l,V,f,r){if(W.nextWireType_!==2)return!1;
Ws(W,QxJ(l,f,V),r);return!0},q54),Bag=Symbol(),fax=Symbol(),te8=Symbol(),DI4=Symbol(),P7z=Symbol(),h4U,S5z;var Qvx,vnJ,fV,HnS,Kov,FoF,GgJ,Rn,bnz,tI,puU,onS,jK4,IW4,inz,mpU,XuU,wuF,Afj,QKF,Mwn;Qvx=function(W,l){var V=new sKx;UI8(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V,LM(Bag,cOz,dIF,l));nM(V,V.encoder_.end());W=new Uint8Array(V.totalLength_);l=V.blocks_;for(var f=l.length,r=0,R=0;R<f;R++){var y=l[R];W.set(y,r);r+=y.length}V.blocks_=[W];return W};
vnJ=Y58(function(W,l,V,f,r){if(W.nextWireType_!==2)return!1;W=Ws(W,Zc([void 0,void 0],f,!0),r);f=l[_.Le]|0;r=mk(f);if(f&2)throw Error();var R=W$(l,V,r);R instanceof ow?(R.arrayState&2)!=0?(R=uwJ(R),R.push(W),eY(l,f,V,R,r)):(l=R,V=l.keyToApi(W[0],!1,!0),W=W[1],W=l.valueCtor?W===void 0?null:W:l.valueToApi(W,!1,!0,void 0,!1,l.arrayState),w7.prototype.set.call(l,V,W)):Array.isArray(R)?((R[_.Le]|0)&2&&(R=pev(R),eY(l,f,V,R,r)),R.push(W)):eY(l,f,V,[W],r);return!0},function(W,l,V,f,r){if(l instanceof ow)l.forEach(function(P,
n){xHJ(W,V,Zc([n,
P],f,!1),r)});
else if(Array.isArray(l))for(var R=0;R<l.length;R++){var y=l[R];Array.isArray(y)&&xHJ(W,V,Zc(y,f,!1),r)}});
fV=_.CM(function(W,l,V){if(W.nextWireType_!==1)return!1;_.c$(l,V,xug(W.decoder_));return!0},K7g,Up8);
HnS=_.CM(function(W,l,V,f){if(W.nextWireType_!==1)return!1;_.Xe(l,V,f,xug(W.decoder_));return!0},K7g,Up8);
Kov=_.CM(function(W,l,V){if(W.nextWireType_!==5)return!1;_.c$(l,V,Y9j(W.decoder_));return!0},F7g,Dp6);
FoF=_.HMq(function(W,l,V){if(W.nextWireType_!==5&&W.nextWireType_!==2)return!1;l=_.fM(l,l[_.Le]|0,V);W.nextWireType_==2?_.lWq(W,Y9j,l):l.push(Y9j(W.decoder_));return!0},function(W,l,V){l=_.vkz(_.eL,l,!0);
if(l!=null&&l.length)for(_.B$(W,V,2),UP(W.encoder_,l.length*4),V=0;V<l.length;V++){var f=W.encoder_;rZn(l[V]);_.da(f,AZ)}},Dp6);
GgJ=_.CM(function(W,l,V,f){if(W.nextWireType_!==5)return!1;_.Xe(l,V,f,Y9j(W.decoder_));return!0},F7g,Dp6);
_.re=_.CM(function(W,l,V){if(W.nextWireType_!==0)return!1;_.c$(l,V,_.SP(W.decoder_,OM));return!0},_.Da,_.VR);
Rn=_.CM(function(W,l,V){if(W.nextWireType_!==0)return!1;W=_.SP(W.decoder_,OM);_.c$(l,V,W===0?void 0:W);return!0},_.Da,_.VR);
bnz=_.CM(function(W,l,V,f){if(W.nextWireType_!==0)return!1;_.Xe(l,V,f,_.SP(W.decoder_,OM));return!0},_.Da,_.VR);
tI=_.CM(function(W,l,V){if(W.nextWireType_!==0)return!1;_.c$(l,V,_.SP(W.decoder_,RIJ));return!0},function(W,l,V){l=Xk6(l);
if(l!=null&&(z4z(l),l!=null))switch(_.B$(W,V,0),typeof l){case "number":W=W.encoder_;M1(l);JO(W,AZ,Qv);break;case "bigint":V=fWJ(l);JO(W.encoder_,V.JSC$8855_lo,V.JSC$8855_hi);break;default:V=acY(l),JO(W.encoder_,V.JSC$8855_lo,V.JSC$8855_hi)}},BuU);
_.sd=_.CM(function(W,l,V){if(W.nextWireType_!==0)return!1;_.c$(l,V,_.El(W.decoder_));return!0},p$v,nn4);
puU=_.CM(function(W,l,V){if(W.nextWireType_!==0)return!1;W=_.El(W.decoder_);_.c$(l,V,W===0?void 0:W);return!0},p$v,nn4);
onS=_.CM(function(W,l,V,f){if(W.nextWireType_!==0)return!1;_.Xe(l,V,f,_.El(W.decoder_));return!0},p$v,nn4);
jK4=_.CM(function(W,l,V){if(W.nextWireType_!==1)return!1;_.c$(l,V,Nrn(W.decoder_));return!0},_.jvJ,_.Jf6);
IW4=_.HMq(function(W,l,V){if(W.nextWireType_!==1&&W.nextWireType_!==2)return!1;l=_.fM(l,l[_.Le]|0,V);W.nextWireType_==2?_.lWq(W,Nrn,l):l.push(Nrn(W.decoder_));return!0},function(W,l,V){l=_.vkz(Xk6,l,!1);
if(l!=null)for(var f=0;f<l.length;f++)okz(W,V,l[f])},_.Jf6);
_.LV=_.CM(function(W,l,V){if(W.nextWireType_!==0)return!1;_.c$(l,V,eSU(W.decoder_));return!0},Iaz,gn8);
_.yR=_.CM(function(W,l,V){if(W.nextWireType_!==0)return!1;W=eSU(W.decoder_);_.c$(l,V,W===!1?void 0:W);return!0},Iaz,gn8);
inz=_.CM(function(W,l,V,f){if(W.nextWireType_!==0)return!1;_.Xe(l,V,f,eSU(W.decoder_));return!0},Iaz,gn8);
_.ge=_.CM(function(W,l,V){if(W.nextWireType_!==2)return!1;_.c$(l,V,$un(W));return!0},mI6,PJJ);
_.Ps=_.CM(function(W,l,V){if(W.nextWireType_!==2)return!1;W=$un(W);_.c$(l,V,W===""?void 0:W);return!0},mI6,PJJ);
_.nV=_.CM(function(W,l,V,f){if(W.nextWireType_!==2)return!1;_.Xe(l,V,f,$un(W));return!0},mI6,PJJ);
mpU=_.HMq(function(W,l,V){if(W.nextWireType_!==2)return!1;W=$un(W);_.fM(l,l[_.Le]|0,V).push(W);return!0},function(W,l,V){l=_.vkz(_.He,l,!0);
if(l!=null)for(var f=0;f<l.length;f++){var r=W,R=V,y=l[f];y!=null&&iMF(r,R,rxz(y))}},PJJ);
XuU=void 0;XuU=XuU===void 0?N7j:XuU;_.CV=new sP(function(W,l,V,f,r){if(W.nextWireType_!==2)return!1;f=Zc(void 0,f,!0);_.fM(l,l[_.Le]|0,V).push(f);Ws(W,f,r);return!0},function(W,l,V,f,r){if(Array.isArray(l))for(var R=0;R<l.length;R++)X$z(W,l[R],V,f,r)},XuU);
_.cs=Y58(function(W,l,V,f,r,R){if(W.nextWireType_!==2)return!1;var y=l[_.Le]|0;i2n(l,y,R,V,mk(y));l=QxJ(l,f,V);Ws(W,l,r);return!0},X$z);
_.Tu4=_.CM(function(W,l,V){if(W.nextWireType_!==2)return!1;_.c$(l,V,_.Won(W));return!0},_.TaF,_.uBx);
wuF=_.CM(function(W,l,V,f){if(W.nextWireType_!==2)return!1;_.Xe(l,V,f,_.Won(W));return!0},_.TaF,_.uBx);
Afj=_.CM(function(W,l,V){if(W.nextWireType_!==0)return!1;_.c$(l,V,_.El(W.decoder_)>>>0);return!0},w$6,CJx);
QKF=_.CM(function(W,l,V,f){if(W.nextWireType_!==0)return!1;_.Xe(l,V,f,_.El(W.decoder_)>>>0);return!0},w$6,CJx);
_.Bs=_.CM(function(W,l,V){if(W.nextWireType_!==0)return!1;_.c$(l,V,_.El(W.decoder_));return!0},_.AOJ,_.kg6);
_.de=_.CM(function(W,l,V){if(W.nextWireType_!==0)return!1;W=_.El(W.decoder_);_.c$(l,V,W===0?void 0:W);return!0},_.AOJ,_.kg6);
Mwn=_.CM(function(W,l,V){if(W.nextWireType_!==0)return!1;_.c$(l,V,_.SP(W.decoder_,sXz));return!0},function(W,l,V){l=m1v(l);
if(l!=null&&(O2q(l),l!=null))switch(_.B$(W,V,0),typeof l){case "number":W=W.encoder_;V=l;l=V<0;V=Math.abs(V)*2;l$v(V);V=AZ;var f=Qv;l&&(V==0?f==0?f=V=4294967295:(f--,V=4294967295):V--);AZ=V;Qv=f;JO(W,AZ,Qv);break;case "bigint":W=W.encoder_;l=l<<BigInt(1)^l>>BigInt(63);AZ=Number(BigInt.asUintN(32,l));Qv=Number(BigInt.asUintN(32,l>>BigInt(32)));JO(W,AZ,Qv);break;default:twJ(W.encoder_,l)}},dpU);var aWS=function(){var W=Zng,l=Onq;this.fieldIndex=175237375;this.ctor=l;this.isRepeated=0;this.getExtensionFn=_.yy;this.defaultValue=void 0;this.JSC$8870_hasMessageId=W.messageId!=null?IX:void 0};
aWS.prototype.register=function(){uK(this)};var zFx=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(zFx,_.yP);var NuY=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(NuY,_.yP);var Na6=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Na6,_.yP);var Y4Y=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Y4Y,_.yP);var xpz=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(xpz,_.yP);var eFv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(eFv,_.yP);var q4S=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(q4S,_.yP);q4S.prototype.getData=function(){return _.mZ(this,2)};var hFU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(hFU,_.yP);var S4Y=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(S4Y,_.yP);S4Y.prototype.getStyle=function(){return _.yy(this,zFx,1)};var GI=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(GI,_.yP);GI.prototype.getPayloadCase=function(){return _.Ty(this,ov)};
GI.prototype.getStyle=function(){return _.xt(this,S4Y,6,ov)};
var Enz=function(){var W=new GI,l=new xpz;return _.pM(W,7,ov,l)},$pF=function(){var W=new GI,l=new eFv;
return _.pM(W,8,ov,l)},ov=[1,
2,3,4,5,6,7,8];var Wjk=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Wjk,_.yP);var l4v=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(l4v,_.yP);var Vve=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Vve,_.yP);var f4c=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(f4c,_.yP);var rxc=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(rxc,_.yP);var RJX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(RJX,_.yP);var tvZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(tvZ,_.yP);var sYL=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(sYL,_.yP);sYL.prototype.getData=function(){return _.mZ(this,2)};var LjL=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(LjL,_.yP);var zy4=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(zy4,_.yP);zy4.prototype.getPayloadCase=function(){return _.Ty(this,JI)};
var JI=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Dh=function(W,l){W=Error.call(this,W);this.message=W.message;"stack"in W&&(this.stack=W.stack);this.code=l===void 0?2:l};
_.v(Dh,Error);var yx9=Promise;var gzI=function(W){this.channelPromise=W};
gzI.prototype.send=function(W,l,V){this.channelPromise.then(function(f){f.send(W,l,V)})};var PF9=function(W,l){this.data=W;this.channel=l};
PF9.prototype.reply=function(W,l,V){this.channel.send(W,l,V)};var nza=function(W){this.JSC$8936_port_=W};
nza.prototype.send=function(W,l,V){V=V===void 0?[]:V;var f=new MessageChannel;CFk(f.port1,l);this.JSC$8936_port_.postMessage(W,[f.port2].concat(V))};
var cxI=function(W,l){CFk(W,l);return new nza(W)},CFk=function(W,l){l&&(W.onmessage=function(V){l(new PF9(V.data,cxI(V.ports[0])))})};var BS$=function(W){this.verifier_=W};
BS$.prototype.verify=function(W){return this.verifier_(W)};
var dgM=function(W){var l=Object.create(null);(typeof W==="string"?[W]:W).forEach(function(V){if(V==="null")throw Error("X");l[V]=!0});
return function(V){return l[V]===!0}};_.Jxa=function(){if(!_.rS.addEventListener||!Object.defineProperty)return!1;var W=!1,l=Object.defineProperty({},"passive",{get:function(){W=!0}});
try{var V=function(){};
_.rS.addEventListener("test",V,l);_.rS.removeEventListener("test",V,l)}catch(f){}return W}();var DgX;_.Ud=function(W){var l=W.destination;var V=W.iframe;var f=W.origin;var r=W.channelName===void 0?"ZNWN1d":W.channelName;var R=W.onMessage===void 0?void 0:W.onMessage;W=W.onEstablished===void 0?void 0:W.onEstablished;return DgX({destination:l,getSource:function(){return V.contentWindow},
originVerifier:f instanceof BS$?f:typeof f==="function"?new BS$(f):new BS$(dgM(f)),channelName:r,onMessage:R,onEstablished:W})};
DgX=function(W){var l=W.destination;var V=W.getSource;var f=W.originVerifier;var r=W.token===void 0?void 0:W.token;var R=W.channelName;var y=W.onMessage===void 0?void 0:W.onMessage;var P=W.onEstablished===void 0?void 0:W.onEstablished;return new gzI(new yx9(function(n,B){var d=function(J){J.source&&J.source===V()&&f.verify(J.origin)&&(J.data.n||J.data)===R&&(l.removeEventListener("message",d,!1),r&&J.data.t!==r?B(Error("Y`"+R+"`"+r+"`"+J.data.t)):(n(cxI(J.ports[0],y)),P&&P(J)))};
l.addEventListener("message",d,!1)}))};var Ugc=function(W){try{W()}catch(l){tx(l)}};var k6M=function(W){var l=this;var V=W.getMessageType;var f=W.onUnregisteredMessage===void 0?function(){}:W.onUnregisteredMessage;
var r=W.onBeforeRegisteredMessage===void 0?function(){}:W.onBeforeRegisteredMessage;
W=W.onAfterRegisteredMessage===void 0?function(){}:W.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=V;this.onUnregisteredMessage_=f;this.onBeforeRegisteredMessage_=r;this.onAfterRegisteredMessage_=W;this.onMessage=function(R){return unL(l,R)}};
k6M.prototype.register=function(W,l){this.registry_.set(W,l);return this};
var unL=function(W,l){var V=W.getMessageType_(l.data),f=W.registry_.get(V);f?(Ugc(function(){return W.onBeforeRegisteredMessage_(l,V)}),Ugc(function(){return f(l)}),Ugc(function(){return W.onAfterRegisteredMessage_(l,V)})):Ugc(function(){return W.onUnregisteredMessage_(l,V)})};var vzB=function(W){this.JSC$8953_channel_=W},Kj1,Fjv;
vzB.prototype.send=function(W,l,V){this.JSC$8953_channel_.send(QL(W),l,V)};
_.Hq9=function(W,l){return function(V){var f=new W(V.data);return l(new PF9(f,V.channel))}};
Kj1=function(W){return function(l){return W(new PF9(l.data,new vzB(l.channel)))}};
Fjv=function(W,l){return Kj1(_.Hq9(W,l))};var G6c=function(W,l,V,f){this.registry=W;this.delegate=l;this.receiveMessageConstructor=V;this.createInitMessage=f;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},aaF=function(W){var l=new k6M({getMessageType:W.getPayloadCase});
return new G6c(l,new vzB(_.Ud({iframe:W.child,destination:window,origin:W.origin,channelName:W.channelName,onMessage:Fjv(W.receiveMessageConstructor,l.onMessage)})),W.receiveMessageConstructor,W.createInitMessage)},bqL=function(W,l){W.createInitMessage=l};
G6c.prototype.send=function(W){if(!this.initialised)throw new Dh("Attempted to send a message before initialisation.");this.delegate.send(W)};
var p8M=function(W,l){return _.g(function(V){if(!W.initialised)throw new Dh("Attempted to send a message before initialisation.");return V.return(new Promise(function(f){W.delegate.send(l,Fjv(W.receiveMessageConstructor,f))}))})};
G6c.prototype.init=function(){var W=this;return _.g(function(l){if(W.initialised)throw new Dh("Attempted to initialise twice. The SDK can only be initialised once.");if(W.createInitMessage!==void 0){var V=W.delegate,f=V.send,r=W.createInitMessage;var R=new NuY;var y=[].concat(_.QK(W.features));R=_.l7(R,1,y,_.f2);f.call(V,r.call(W,R))}W.initialised=!0;_.ju(l)})};
var uk=function(W,l){if(W.initialised)throw new Dh('Attempted to set up API "'+l+'" after initialisation. All APIs must be set up before initialising the SDK.');W.features.add(l);return W.registry};
_.rc.Object.defineProperties(G6c.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var ozI=function(W){this.channel=W;this.registered=!1};
ozI.prototype.update=function(W){if(this.channel.isInitialised){if(!this.registered)throw new Dh("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var l=new GI;var V=new Y4Y;V=_.Jl(V,1,W);l=_.pM(l,2,ov,V);this.channel.send(l)}else this.register();this.JSC$8967_audioEnabled=W};
ozI.prototype.register=function(){uk(this.channel,1);this.registered=!0};
ozI.prototype.isAudioEnabled=function(){return this.JSC$8967_audioEnabled};var jY$=function(W){this.channel=W};
_.t=jY$.prototype;_.t.onFirstFrameReady=function(W){uk(this.channel,2).register(11,function(l){l=_.xt(l.data,Wjk,11,JI);if(!l)throw new Dh("Unexpectedly nonexistent GameFirstFrameReadyEvent");W(_.aQ(l,1))})};
_.t.onReady=function(W){uk(this.channel,2).register(4,function(l){l=_.xt(l.data,Vve,4,JI);if(!l)throw new Dh("Unexpectedly nonexistent GameReadyEvent");W(_.aQ(l,1))})};
_.t.onLevelComplete=function(W){uk(this.channel,2).register(5,function(l){l=_.xt(l.data,f4c,5,JI);if(!l)throw new Dh("Unexpectedly nonexistent LevelCompleteEvent");W(_.aQ(l,1),_.Cs(l,2))})};
_.t.onGameOver=function(W){uk(this.channel,2).register(6,function(l){l=_.xt(l.data,l4v,6,JI);if(!l)throw new Dh("Unexpectedly nonexistent GameOverEvent");W(_.aQ(l,1))})};
_.t.pause=function(){var W=this;if(!this.channel.isInitialised)return uk(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Dh("Using unregistered Game Feature: pause.");var l=Enz();return new Promise(function(V){return _.g(function(f){if(f.nextAddress==1)return f.yield(p8M(W.channel,l),2);V();_.ju(f)})})};
_.t.resume=function(){var W=this;if(!this.channel.isInitialised)return uk(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new Dh("Using unregistered Game Feature: resume.");var l=$pF();return new Promise(function(V){return _.g(function(f){if(f.nextAddress==1)return f.yield(p8M(W.channel,l),2);V();_.ju(f)})})};var I4k=function(W){this.channel=W};
I4k.prototype.onReady=function(W){uk(this.channel,5).register(8,function(l){if(!_.xt(l.data,rxc,8,JI))throw new Dh("Unexpectedly nonexistent PageReadyEvent");W()})};var iqe=function(W){this.channel=W};
iqe.prototype.onChange=function(W){uk(this.channel,3).register(7,function(l){l=_.xt(l.data,RJX,7,JI);if(!l)throw new Dh("Unexpectedly nonexistent ScoreEvent");W(_.aQ(l,1),_.Cs(l,2))})};var mg9={load:function(){throw new Dh("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new Dh("Storage used, but storage.onSave() listener not set!");}},X8c=function(W){this.channel=W;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},TSM=function(W){uk(W.channel,4).register(2,mg9.load).register(3,mg9.save);
W.initialSetupDone=!0};
X8c.prototype.onLoad=function(W){this.initialSetupDone||TSM(this);this.loadRegistered||(this.loadRegistered=!0,uk(this.channel,4).register(2,function(l){var V,f,r;return _.g(function(R){if(R.nextAddress==1){V=_.xt(l.data,tvZ,2,JI);if(!V)throw new Dh("Unexpectedly nonexistent StorageLoad");f=_.aQ(V,1);return R.yield(W(f),2)}r=R.yieldResult;var y=l.reply,P=new GI;var n=new q4S;n=_.mY(n,1,f);n=_.P2(n,2,_.jL(r,!1));P=_.pM(P,3,ov,n);y.call(l,P);_.ju(R)})}))};
X8c.prototype.onSave=function(W){this.initialSetupDone||TSM(this);this.saveRegistered||(this.saveRegistered=!0,uk(this.channel,4).register(3,function(l){var V,f,r;return _.g(function(R){if(R.nextAddress==1){V=_.xt(l.data,sYL,3,JI);if(!V)throw new Dh("Unexpectedly nonexistent StorageSave");f=_.aQ(V,1);r=HKx(V.getData());return R.yield(W(f,r),2)}var y=l.reply,P=new GI;var n=new hFU;n=_.mY(n,1,f);P=_.pM(P,4,ov,n);y.call(l,P);_.ju(R)})}))};var w8X=function(W){this.channel=W};
w8X.prototype.update=function(W){if(!this.channel.features.has(6))throw new Dh("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var l=new GI,V=new S4Y;W=_.b7(V,1,W);l=_.pM(l,6,ov,W);this.channel.send(l)};
w8X.prototype.register=function(){uk(this.channel,6)};var AxL=function(W){this.channel=W;this.userActivityLoggingIntervalMs=0};
AxL.prototype.onUserActivity=function(W,l){this.userActivityLoggingIntervalMs=l;uk(this.channel,7).register(9,function(V){if(!_.xt(V.data,LjL,9,JI))throw new Dh("Unexpectedly nonexistent ClickEvent");W()})};var QYI=function(W){var l=this;this.channel=W;this.init=this.channel.init.bind(this.channel);this.page=new I4k(this.channel);this.game=new jY$(this.channel);this.audio=new ozI(this.channel);this.score=new iqe(this.channel);this.storage=new X8c(this.channel);this.style=new w8X(this.channel);this.userActivity=new AxL(this.channel);bqL(this.channel,function(V){var f=new Na6;V=_.b7(f,1,V);V=_.eP(V,3,l.userActivity.userActivityLoggingIntervalMs);f=l.audio.isAudioEnabled();f!==void 0&&_.Jl(V,2,f);f=new GI;
return _.pM(f,5,ov,V)})};var Mvk=function(){this.timedFunctionContext=0};
Mvk.prototype.timeExecution=function(W,l){var V=this;return function(){var f=_.xk.apply(0,arguments);V.timedFunctionContext=W;return l.apply(null,_.QK(f))}};var Zqk=function(){var W={};this.priorityTasks=(W[3]=[],W[2]=[],W[1]=[],W);this.isFlushing=!1},vg=function(W,l,V){var f=OqB(W,V);
W.priorityTasks[V].push(l);f&&W.priorityTasks[V].length===1&&W.flush()},OqB=function(W,l){return Object.keys(W.priorityTasks).map(function(V){return Number(V)}).filter(function(V){return!isNaN(V)&&V>l}).every(function(V){return W.priorityTasks[V].length===0})};
Zqk.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(W){return W.length>0});)a4v(this,3),a4v(this,2),a4v(this,1)}catch(W){throw Object.values(this.priorityTasks).forEach(function(l){return void l.splice(0,l.length)}),W;
}finally{this.isFlushing=!1}}};
var a4v=function(W,l){for(;OqB(W,l)&&W.priorityTasks[l].length>0;)W.priorityTasks[l][0](),W.priorityTasks[l].shift()};
_.rc.Object.defineProperties(Zqk.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(W){return W.length>0})}}});var Ekq={};var zJa=globalThis.trustedTypes,xI8=zJa,qPg;var Iv=function(W){this.privateDoNotAccessOrElseWrappedResourceUrl=W};
Iv.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var NSI,Yz1,xgk,eJ9,qz9,hJe,SzI,EzZ;NSI=_.tj([""]);Yz1=RQ(["\x00"],["\\0"]);xgk=RQ(["\n"],["\\n"]);eJ9=RQ(["\x00"],["\\u0000"]);qz9=_.tj([""]);hJe=RQ(["\x00"],["\\0"]);SzI=RQ(["\n"],["\\n"]);EzZ=RQ(["\x00"],["\\u0000"]);_.$gX=SPJ(function(W){return W(NSI)})||SPJ(function(W){return W(Yz1)})||SPJ(function(W){return W(xgk)})||SPJ(function(W){return W(eJ9)});
_.Wke=_.TI(qz9)&&_.TI(hJe)&&_.TI(SzI)&&_.TI(EzZ);var zI;_.wa=function(W,l){this.privateDoNotAccessOrElseWrappedUrl=l};
_.wa.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.l$L=AO("about:blank");zI=AO("about:invalid#zClosurez");var $IJ=function(W){this.isValid=W},VLI=new $IJ(function(W){return/^[^:]*([/?#]|$)/.test(W)}),f$L=OP("data"),rZ9=OP("http"),RII=OP("https"),tLB=OP("ftp"),sXM=OP("mailto"),LkX=OP("intent"),yZ9=OP("vnd.youtube"),WQ4=[f$L,
rZ9,RII,sXM,tLB,VLI],Vu6=je(function(){return typeof URL==="function"}),gce=["data:",
"http:","https:","mailto:","ftp:"],rLz=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Se=function(W){this.privateDoNotAccessOrElseWrappedHtml=W};
Se.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var dt4=je(function(){return new Se(zJa?zJa.emptyHTML:"")});var PBk={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"},tu4=function(W,l){var V=Error.call(this,W+" cannot be used with intent "+PBk[l]);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.type=W;this.intent=l;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.v(tu4,Error);_.fc=function(W){this.privateDoNotAccessOrElseWrappedScript=W};
_.fc.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var gdq=function(W){this.privateDoNotAccessOrElseWrappedAttributePrefix=W};
gdq.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var PMU="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var PG=function(W){this.privateDoNotAccessOrElseWrappedStyleSheet=W};
PG.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var j$F=function(W){var l=_.Y2("window.location.href");W==null&&(W='Unknown Error of type "null/undefined"');if(typeof W==="string")return{message:W,name:"Unknown error",lineNumber:"Not available",fileName:l,stack:"Not available"};var V=!1;try{var f=W.lineNumber||W.line||"Not available"}catch(y){f="Not available",V=!0}try{var r=W.fileName||W.filename||W.sourceURL||_.rS.$googDebugFname||l}catch(y){r="Not available",V=!0}l=ncv(W);if(!(!V&&W.lineNumber&&W.fileName&&W.stack&&W.message&&W.name)){V=W.message;
if(V==null){if(W.constructor&&W.constructor instanceof Function){if(W.constructor.name)V=W.constructor.name;else if(V=W.constructor,kR[V])V=kR[V];else{V=String(V);if(!kR[V]){var R=/function\s+([^\(]+)/m.exec(V);kR[V]=R?R[1]:"[Anonymous]"}V=kR[V]}V='Unknown Error of type "'+V+'"'}else V="Unknown Error of unknown type";typeof W.toString==="function"&&Object.prototype.toString!==W.toString&&(V+=": "+W.toString())}return{message:V,name:W.name||"UnknownError",lineNumber:f,fileName:r,stack:l||"Not available"}}return{message:W.message,
name:W.name,lineNumber:W.lineNumber,fileName:W.fileName,stack:l}},ncv=function(W,l){l||(l={});
l[CBk(W)]=!0;var V=W.stack||"",f=W.cause;f&&!l[CBk(f)]&&(V+="\nCaused by: ",f.stack&&f.stack.indexOf(f.toString())==0||(V+=typeof f==="string"?f:f.message+"\n"),V+=ncv(f,l));W=W.errors;if(Array.isArray(W)){f=1;var r;for(r=0;r<W.length&&!(f>4);r++)l[CBk(W[r])]||(V+="\nInner error "+f++ +": ",W[r].stack&&W[r].stack.indexOf(W[r].toString())==0||(V+=typeof W[r]==="string"?W[r]:W[r].message+"\n"),V+=ncv(W[r],l));r<W.length&&(V+="\n... "+(W.length-r)+" more inner errors")}return V},CBk=function(W){var l=
"";
typeof W.toString==="function"&&(l=""+W);return l+W.stack},kR={};var cZk,rU,Fx,d1c,JZL,BLk,hl,LN,U11;cZk=function(W,l){for(var V=W.split("%s"),f="",r=Array.prototype.slice.call(arguments,1);r.length&&V.length>1;)f+=V.shift()+r.shift();return f+V.join("%s")};
_.ei=function(W){return encodeURIComponent(String(W))};
rU=function(W){return decodeURIComponent(W.replace(/\+/g," "))};
Fx=function(W){Q7z.test(W)&&(W.indexOf("&")!=-1&&(W=W.replace(ioJ,"&amp;")),W.indexOf("<")!=-1&&(W=W.replace(mbJ,"&lt;")),W.indexOf(">")!=-1&&(W=W.replace(X1g,"&gt;")),W.indexOf('"')!=-1&&(W=W.replace(T18,"&quot;")),W.indexOf("'")!=-1&&(W=W.replace(w1j,"&#39;")),W.indexOf("\x00")!=-1&&(W=W.replace(A9j,"&#0;")));return W};
d1c=function(W){var l={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var V=_.rS.document.createElement("div");return W.replace(BLk,function(f,r){var R=l[f];if(R)return R;r.charAt(0)=="#"&&(r=Number("0"+r.slice(1)),isNaN(r)||(R=String.fromCharCode(r)));R||(_.sx(V,EP(f+" ")),R=V.firstChild.nodeValue.slice(0,-1));return l[f]=R})};
JZL=function(W){return W.replace(/&([^;]+);/g,function(l,V){switch(V){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return V.charAt(0)!="#"||(V=Number("0"+V.slice(1)),isNaN(V))?l:String.fromCharCode(V)}})};
BLk=/&([^;\s<&]+);?/g;_.Twg=function(W){return String(W).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.D1e=String.prototype.repeat?function(W,l){return W.repeat(l)}:function(W,l){return Array(l+1).join(W)};
_.vs=function(W,l){if(!Number.isFinite(W))return String(W);W=String(W);var V=W.indexOf(".");V===-1&&(V=W.length);var f=W[0]==="-"?"-":"";f&&(W=W.substring(1));return f+(0,_.D1e)("0",Math.max(0,l-V))+W};
hl=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.d5()).toString(36)};
LN=function(W){for(var l=0,V=0;V<W.length;++V)l=31*l+W.charCodeAt(V)>>>0;return l};
_.Q9=function(W){return String(W).replace(/\-([a-z])/g,function(l,V){return V.toUpperCase()})};
_.A6=function(W){return String(W).replace(/([A-Z])/g,"-$1").toLowerCase()};
U11=function(W){return W.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(l,V,f){return V+f.toUpperCase()})};var u9L=function(){this.names=new Map};
u9L.prototype.getName=function(W){var l=this.names.get(W);if(l)return l;var V;l=(V=W.description)!=null?V:hl();this.names.set(W,l);return l};var kaZ=function(W){var l=Error.call(this,W?W.length+" errors occurred during unsubscription:\n"+W.map(function(V,f){return f+1+") "+V.toString()}).join("\n  "):"");
this.message=l.message;"stack"in l&&(this.stack=l.stack);this.errors=W;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.v(kaZ,Error);var Cc=function(W){this.initialTeardown=W;this.closed=!1;this._teardowns=this._parentage=null};
_.t=Cc.prototype;
_.t.unsubscribe=function(){if(!this.closed){this.closed=!0;var W=this._parentage;if(Array.isArray(W))for(var l=_.L(W),V=l.next();!V.done;V=l.next())V.value.remove(this);else W==null||W.remove(this);l=this.initialTeardown;if(nc(l))try{l()}catch(R){var f=R instanceof kaZ?R.errors:[R]}var r=this._teardowns;if(r)for(this._teardowns=null,l=_.L(r),V=l.next();!V.done;V=l.next()){V=V.value;try{nc(V)?V():V.unsubscribe()}catch(R){V=void 0,f=(V=f)!=null?V:[],R instanceof kaZ?f=[].concat(_.QK(f),_.QK(R.errors)):
f.push(R)}}if(f)throw new kaZ(f);}};
_.t.add=function(W){if(W&&W!==this)if(this.closed)nc(W)?W():W.unsubscribe();else{if(W instanceof Cc){if(W.closed||W._hasParent(this))return;W._addParent(this)}var l;(this._teardowns=(l=this._teardowns)!=null?l:[]).push(W)}};
_.t._hasParent=function(W){var l=this._parentage;return l===W||Array.isArray(l)&&l.includes(W)};
_.t._addParent=function(W){var l=this._parentage;this._parentage=Array.isArray(l)?(l.push(W),l):l?[l,W]:W};
_.t._removeParent=function(W){var l=this._parentage;l===W?this._parentage=null:Array.isArray(l)&&BIU(l,W)};
_.t.remove=function(W){var l=this._teardowns;l&&BIU(l,W);W instanceof Cc&&W._removeParent(this)};
var vck=new Cc;vck.closed=!0;Cc.JSC$9063_EMPTY=vck;var JLz=function(){setTimeout.apply(null,_.QK(_.xk.apply(0,arguments)))};var Hs=function(W){Cc.call(this);this.JSC$9068_isStopped=!1;this.destination=W instanceof Hs?W:new KV(!W||nc(W)?{next:W!=null?W:void 0}:W);dFU(W)&&W.add(this)};
_.v(Hs,Cc);Hs.JSC$9063_EMPTY=Cc.JSC$9063_EMPTY;Hs.create=function(W,l,V){return new Fz(W,l,V)};
_.t=Hs.prototype;_.t.next=function(W){this.JSC$9068_isStopped||this._next(W)};
_.t.error=function(W){this.JSC$9068_isStopped||(this.JSC$9068_isStopped=!0,this._error(W))};
_.t.complete=function(){this.JSC$9068_isStopped||(this.JSC$9068_isStopped=!0,this._complete())};
_.t.unsubscribe=function(){this.closed||(this.JSC$9068_isStopped=!0,Cc.prototype.unsubscribe.call(this))};
_.t._next=function(W){this.destination.next(W)};
_.t._error=function(W){this.destination.error(W);this.unsubscribe()};
_.t._complete=function(){this.destination.complete();this.unsubscribe()};
var KV=function(W){this.partialObserver=W};
KV.prototype.next=function(W){var l=this.partialObserver;if(l.next)try{l.next(W)}catch(V){BG(V)}};
KV.prototype.error=function(W){var l=this.partialObserver;if(l.error)try{l.error(W)}catch(V){BG(V)}else BG(W)};
KV.prototype.complete=function(){var W=this.partialObserver;if(W.complete)try{W.complete()}catch(l){BG(l)}};
var Fz=function(W,l,V){Hs.call(this);var f;nc(W)||!W?f={next:W!=null?W:void 0,error:l!=null?l:void 0,complete:V!=null?V:void 0}:f=W;this.destination=new KV(f)};
_.v(Fz,Hs);Fz.JSC$9063_EMPTY=Hs.JSC$9063_EMPTY;Fz.create=Hs.create;var uM=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Ux=function(W){W&&(this._subscribe=W)};
_.t=Ux.prototype;_.t.lift=function(W){var l=new Ux;l.source=this;l.operator=W;return l};
_.t.subscribe=function(W,l,V){W=W&&W instanceof Hs||W&&nc(W.next)&&nc(W.error)&&nc(W.complete)&&dFU(W)?W:new Fz(W,l,V);l=this.operator;V=this.source;W.add(l?l.call(W,V):V?this._subscribe(W):this._trySubscribe(W));return W};
_.t._trySubscribe=function(W){try{return this._subscribe(W)}catch(l){W.error(l)}};
_.t.forEach=function(W,l){var V=this;l=UFn(l);return new l(function(f,r){var R=V.subscribe(function(y){try{W(y)}catch(P){r(P),R==null||R.unsubscribe()}},r,f)})};
_.t._subscribe=function(W){var l;return(l=this.source)==null?void 0:l.subscribe(W)};
Ux.prototype[uM]=function(){return this};
Ux.prototype.pipe=function(){var W=_.xk.apply(0,arguments);return W.length?DFF(W)(this):this};
Ux.create=function(W){return new Ux(W)};var HeL=function(){var W=Error.call(this,"object unsubscribed");this.message=W.message;"stack"in W&&(this.stack=W.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.v(HeL,Error);var U1=function(){this.observers=[];this.hasError=this.JSC$9084_isStopped=this.closed=!1;this.thrownError=null};
_.v(U1,Ux);_.t=U1.prototype;_.t.lift=function(W){var l=new GQ(this,this);l.operator=W;return l};
_.t._throwIfClosed=function(){if(this.closed)throw new HeL;};
_.t.next=function(W){this._throwIfClosed();if(!this.JSC$9084_isStopped){var l=this.observers.slice();l=_.L(l);for(var V=l.next();!V.done;V=l.next())V.value.next(W)}};
_.t.error=function(W){this._throwIfClosed();if(!this.JSC$9084_isStopped){this.hasError=this.JSC$9084_isStopped=!0;this.thrownError=W;for(var l=this.observers;l.length;)l.shift().error(W)}};
_.t.complete=function(){this._throwIfClosed();if(!this.JSC$9084_isStopped){this.JSC$9084_isStopped=!0;for(var W=this.observers;W.length;)W.shift().complete()}};
_.t.unsubscribe=function(){this.JSC$9084_isStopped=this.closed=!0;this.observers=null};
_.t._trySubscribe=function(W){this._throwIfClosed();return Ux.prototype._trySubscribe.call(this,W)};
_.t._subscribe=function(W){this._throwIfClosed();this._checkFinalizedStatuses(W);return this._innerSubscribe(W)};
_.t._innerSubscribe=function(W){var l=this,V=this.JSC$9084_isStopped,f=this.observers;return this.hasError||V?Cc.JSC$9063_EMPTY:(f.push(W),new Cc(function(){return BIU(l.observers,W)}))};
_.t._checkFinalizedStatuses=function(W){var l=this.thrownError,V=this.JSC$9084_isStopped;this.hasError?W.error(l):V&&W.complete()};
U1.create=function(W,l){return new GQ(W,l)};
var GQ=function(W,l){U1.call(this);this.destination=W;this.source=l};
_.v(GQ,U1);GQ.create=U1.create;GQ.prototype.next=function(W){var l,V;(l=this.destination)==null||(V=l.next)==null||V.call(l,W)};
GQ.prototype.error=function(W){var l,V;(l=this.destination)==null||(V=l.error)==null||V.call(l,W)};
GQ.prototype.complete=function(){var W,l;(W=this.destination)==null||(l=W.complete)==null||l.call(W)};
GQ.prototype._subscribe=function(W){var l,V;return(V=(l=this.source)==null?void 0:l.subscribe(W))!=null?V:Cc.JSC$9063_EMPTY};var St=function(W){U1.call(this);this._value=W};
_.v(St,U1);St.create=U1.create;St.prototype._subscribe=function(W){var l=U1.prototype._subscribe.call(this,W);!l.closed&&W.next(this._value);return l};
St.prototype.getValue=function(){var W=this.thrownError,l=this._value;if(this.hasError)throw W;this._throwIfClosed();return l};
St.prototype.next=function(W){U1.prototype.next.call(this,this._value=W)};
_.rc.Object.defineProperties(St.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var NF=new Ux(function(W){return W.complete()});var Hcq=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var pG4=function(W){return W&&typeof W.length==="number"&&typeof W!=="function"};var KkZ={now:function(){return(KkZ.delegate||Date).now()},
delegate:void 0};var ts=function(W,l,V){W=W===void 0?Infinity:W;l=l===void 0?Infinity:l;V=V===void 0?KkZ:V;U1.call(this);this.bufferSize=W;this.windowTime=l;this.timestampProvider=V;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=l===Infinity;this.bufferSize=Math.max(1,W);this.windowTime=Math.max(1,l)};
_.v(ts,U1);ts.create=U1.create;ts.prototype.next=function(W){var l=this.buffer,V=this.infiniteTimeWindow,f=this.timestampProvider,r=this.windowTime;this.JSC$9084_isStopped||(l.push(W),!V&&l.push(f.now()+r));Fkv(this);U1.prototype.next.call(this,W)};
ts.prototype._subscribe=function(W){this._throwIfClosed();Fkv(this);for(var l=this._innerSubscribe(W),V=this.infiniteTimeWindow,f=this.buffer.slice(),r=0;r<f.length&&!W.closed;r+=V?1:2)W.next(f[r]);this._checkFinalizedStatuses(W);return l};
var Fkv=function(W){var l=W.bufferSize,V=W.timestampProvider,f=W.buffer;W=W.infiniteTimeWindow;var r=(W?1:2)*l;l<Infinity&&r<f.length&&f.splice(0,f.length-r);if(!W){l=V.now();V=0;for(W=1;W<f.length&&f[W]<=l;W+=2)V=W;V&&f.splice(0,V+1)}};var beL=function(W,l){l=l===void 0?GaL:l;this.schedulerActionCtor=W;this.now=l};
beL.prototype.schedule=function(W,l,V){l=l===void 0?0:l;return(new this.schedulerActionCtor(this,W)).schedule(V,l)};
var GaL=KkZ.now;var u46=function(){var W=Error.call(this,"no elements in sequence");this.message=W.message;"stack"in W&&(this.stack=W.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.v(u46,Error);var Tu=function(W,l,V,f,r){Hs.call(this,W);this.onUnsubscribe=r;l&&(this._next=function(R){try{l(R)}catch(y){this.destination.error(y)}});
V&&(this._error=function(R){try{V(R)}catch(y){this.destination.error(y)}this.unsubscribe()});
f&&(this._complete=function(){try{f()}catch(R){this.destination.error(R)}this.unsubscribe()})};
_.v(Tu,Hs);Tu.JSC$9063_EMPTY=Hs.JSC$9063_EMPTY;Tu.create=Hs.create;Tu.prototype.unsubscribe=function(){var W;this.closed||(W=this.onUnsubscribe)!=null&&W.call(this);Hs.prototype.unsubscribe.call(this)};var rO=function(W,l){this.source=W;this.subjectFactory=l;this._subject=null;this._refCount=0;this._connection=null};
_.v(rO,Ux);rO.create=Ux.create;rO.prototype._subscribe=function(W){return pk9(this).subscribe(W)};
var pk9=function(W){var l=W._subject;if(!l||l.JSC$9084_isStopped)W._subject=W.subjectFactory();return W._subject};
rO.prototype._teardown=function(){this._refCount=0;var W=this._connection;this._subject=this._connection=null;W==null||W.unsubscribe()};
rO.prototype.connect=function(){var W=this,l=this._connection;if(!l){l=this._connection=new Cc;var V=pk9(this);l.add(this.source.subscribe(new Tu(V,void 0,function(f){W._teardown();V.error(f)},function(){W._teardown();
V.complete()},function(){return W._teardown()})));
l.closed&&(this._connection=null,l=Cc.JSC$9063_EMPTY)}return l};var ZcS=Array.isArray;var a7q=Array.isArray,ocL=Object,z6z=ocL.getPrototypeOf,NIU=ocL.prototype,YxS=ocL.keys;var Z7=function(W,l,V){Hs.call(this,W);this._next=l;this.shouldComplete=V};
_.v(Z7,Hs);Z7.JSC$9063_EMPTY=Hs.JSC$9063_EMPTY;Z7.create=Hs.create;Z7.prototype._complete=function(){this.shouldComplete()?Hs.prototype._complete.call(this):this.unsubscribe()};var llS=["addListener","removeListener"],WYn=["addEventListener","removeEventListener"],flU=["on","off"];var pV=function(){Cc.call(this)};
_.v(pV,Cc);pV.JSC$9063_EMPTY=Cc.JSC$9063_EMPTY;pV.prototype.schedule=function(){return this};var jXX=function(W,l){return setInterval.apply(null,[W,l].concat(_.QK(_.xk.apply(2,arguments))))};var on=function(W,l){Cc.call(this);this.scheduler=W;this.work=l;this.pending=!1};
_.v(on,pV);on.JSC$9063_EMPTY=pV.JSC$9063_EMPTY;on.prototype.schedule=function(W,l){l=l===void 0?0:l;if(this.closed)return this;this.state=W;W=this.id;var V=this.scheduler;W!=null&&(this.id=I$M(this,W,l));this.pending=!0;this.delay=l;this.id=this.id||this.requestAsyncId(V,this.id,l);return this};
on.prototype.requestAsyncId=function(W,l,V){V=V===void 0?0:V;return jXX(W.flush.bind(W,this),V)};
var I$M=function(W,l,V){V=V===void 0?0:V;if(V!=null&&W.delay===V&&W.pending===!1)return l;clearInterval(l)};
on.prototype.execute=function(W,l){if(this.closed)return Error("ha");this.pending=!1;if(W=this._execute(W,l))return W;this.pending===!1&&this.id!=null&&(this.id=I$M(this,this.id,null))};
on.prototype._execute=function(W){var l=!1;try{this.work(W)}catch(f){l=!0;var V=!!f&&f||Error(f)}if(l)return this.unsubscribe(),V};
on.prototype.unsubscribe=function(){if(!this.closed){var W=this.id,l=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;BIU(l,this);W!=null&&(this.id=I$M(this,W,null));this.delay=null;pV.prototype.unsubscribe.call(this)}};var ie1=function(W,l){l=l===void 0?GaL:l;beL.call(this,W,l);this.actions=[];this.active=!1;this.scheduled=void 0};
_.v(ie1,beL);ie1.prototype.flush=function(W){var l=this.actions;if(this.active)l.push(W);else{var V;this.active=!0;do if(V=W.execute(W.state,W.delay))break;while(W=l.shift());this.active=!1;if(V){for(;W=l.shift();)W.unsubscribe();throw V;}}};var wO=new Ux(cG);var rsz=Array.isArray;var jg=function(W,l){on.call(this,W,l);this.scheduler=W;this.work=l};
_.v(jg,on);jg.JSC$9063_EMPTY=on.JSC$9063_EMPTY;jg.prototype.schedule=function(W,l){l=l===void 0?0:l;if(l>0)return on.prototype.schedule.call(this,W,l);this.delay=l;this.state=W;this.scheduler.flush(this);return this};
jg.prototype.execute=function(W,l){return l>0||this.closed?on.prototype.execute.call(this,W,l):this._execute(W,l)};
jg.prototype.requestAsyncId=function(W,l,V){V=V===void 0?0:V;return V!=null&&V>0||V==null&&this.delay>0?on.prototype.requestAsyncId.call(this,W,l,V):W.flush(this)};var m1L=function(){ie1.apply(this,arguments)};
_.v(m1L,ie1);var Qt6=new m1L(jg);var Xka=function(){this.performanceMonitor=new Mvk;this.queue=new Zqk;this.internalSymbol=Symbol();this.debugNames=new u9L};
Xka.prototype.getOnBackgrounded=function(){return wO};
_.rc.Object.defineProperties(Xka.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var In=function(W,l){l=Error.call(this,l?W+": "+l:String(W));this.message=l.message;"stack"in l&&(this.stack=l.stack);this.code=W;this.__proto__=In.prototype;this.name=String(W)};
_.v(In,Error);var As=function(W){In.call(this,1E3,'sfr:"'+W+'"');this.measurementStrategyFailureReason=W;this.__proto__=As.prototype};
_.v(As,In);var Qr=function(){In.call(this,1003);this.__proto__=Qr.prototype};
_.v(Qr,In);var ik=function(){In.call(this,1009);this.__proto__=ik.prototype};
_.v(ik,In);var TLM=function(){In.call(this,1011);this.__proto__=TLM.prototype};
_.v(TLM,In);var wke=function(){In.call(this,1007);this.__proto__=Qr.prototype};
_.v(wke,In);var X4=function(W){In.call(this,1004,String(W));this.inputObservableIndex=W;this.__proto__=X4.prototype};
_.v(X4,In);var TdU=function(W){In.call(this,1010,W);this.__proto__=wt6.prototype};
_.v(TdU,In);var wt6=function(W){In.call(this,1005,W);this.__proto__=wt6.prototype};
_.v(wt6,In);var AZk=function(W){var l=_.xk.apply(1,arguments),V=this;this.orderedFactories=[];this.orderedFactories.push(W);l.forEach(function(f){V.orderedFactories.push(f)})};
AZk.prototype.isSupported=function(W){return this.orderedFactories.some(function(l){return l.isSupported(W)})};
AZk.prototype.makeBeacon=function(W,l){for(var V=0;V<this.orderedFactories.length;V++)if(this.orderedFactories[V].isSupported(l))return this.orderedFactories[V].makeBeacon(W,l);throw new ik;};var K1v=Symbol("ia"),QXk=Symbol("ja"),hL=function(W,l){this.value=W;this.timeline=l},qF=function(W,l){if(l.timeline!==W.timeline)throw new wke;
return W.value-l.value};
_.t=hL.prototype;_.t.equals=function(W){return qF(this,W)===0};
_.t.maximum=function(W){if(W.timeline!==this.timeline)throw new wke;return this.value>=W.value?this:W};
_.t.round=function(){return new hL(Math.round(this.value),this.timeline)};
_.t.add=function(W){return new hL(this.value+W,this.timeline)};
_.t.toString=function(){return String(this.value)};var mJ=function(W,l){this.context=W;this.JSC$9190_pinger=l};
mJ.prototype.isSupported=function(W){return this.JSC$9190_pinger.isSupported(W)};
mJ.prototype.makeBeacon=function(W,l){if(!this.isSupported(l))throw new ik;return new Xz(this.context,this.JSC$9190_pinger,l!=null?l:void 0,W)};
var Xz=function(W,l,V,f){var r=this;this.JSC$9196_pinger=l;this.properties=V;this.url=f;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var R;this.method=(R=V==null?void 0:V.beaconMethod)!=null?R:"GET";this.backgroundedSubscription=W.getOnBackgrounded().subscribe(function(){r.sendNow()})};
Xz.prototype.deactivate=function(){this.internalIsPending=!1};
Xz.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9196_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var W,l;this.JSC$9196_pinger.pingWithHeadersAndBody((W=this.properties)!=null?W:{},this.customHeaders,(l=this.body)!=null?l:"",this.url)}else this.JSC$9196_pinger.ping(this.url);this.internalIsPending=!1}catch(V){}else this.internalIsPending=!1};
Xz.prototype.setHeader=function(W,l){this.customHeaders.set(W,l)};
_.rc.Object.defineProperties(Xz.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var ZeM=function(){for(var W=_.L(_.xk.apply(0,arguments)),l=W.next();!l.done;l=W.next())if(l=l.value,l.available()){this.timeProvider=l;return}this.timeProvider=new MLa};
_.t=ZeM.prototype;_.t.available=function(){return this.timeProvider.available()};
_.t.now=function(){return this.timeProvider.now()};
_.t.setTimeout=function(W,l){return this.timeProvider.setTimeout(W,l)};
_.t.clearTimeout=function(W){this.timeProvider.clearTimeout(W)};
_.t.interval=function(W,l){var V=this.intervalObservable(W).subscribe(l);return function(){return void V.unsubscribe()}};
_.t.intervalObservable=function(W){return this.timeProvider.intervalObservable(W)};
_.rc.Object.defineProperties(ZeM.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var MLa=function(){this.timeline=Symbol()};
_.t=MLa.prototype;_.t.available=function(){return!1};
_.t.now=function(){return new hL(0,this.timeline)};
_.t.setTimeout=function(){return 0};
_.t.clearTimeout=function(){};
_.t.interval=function(){return function(){}};
_.t.intervalObservable=function(){return wO};var TQ=function(W,l){this.intrinsicFunctionNamespace=W;this.performanceMonitor=l};
_.t=TQ.prototype;_.t.setTimeout=function(W,l){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,W),l)};
_.t.clearTimeout=function(W){this.intrinsicFunctionNamespace.clearTimeout(W)};
_.t.interval=function(W,l){var V=this.intervalObservable(W).subscribe(l);return function(){return void V.unsubscribe()}};
_.t.intervalObservable=function(W){var l=this;return new Ux(function(V){var f=0,r=l.intrinsicFunctionNamespace.setInterval(function(){V.next(f++)},W);
return function(){l.intrinsicFunctionNamespace.clearInterval(r)}})};
_.t.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var Oe1=function(W,l){TQ.call(this,W,l);this.timeline=QXk};
_.v(Oe1,TQ);Oe1.prototype.now=function(){return new hL(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
Oe1.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&TQ.prototype.available.call(this)};var a$1=function(W,l){TQ.call(this,W,l);this.timeline=K1v};
_.v(a$1,TQ);a$1.prototype.now=function(){return new hL(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
a$1.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&TQ.prototype.available.call(this)};var NLe=function(W){this.context=W;if(zI1===void 0)a:{var l,V,f=(l=W.global)==null?void 0:(V=l.document)==null?void 0:V.createElement("meta");if(f)try{f.httpEquiv="origin-trial";f.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";W.global.document.head.append(f);zI1=f;break a}catch(r){}zI1=void 0}},
zI1;
NLe.prototype.isSupported=function(W){return csS(this.context)!==void 0&&!(W==null||!W.endOfSession)&&!we(this.context)&&!(W==null?0:W.attributionEnabled)&&!(W==null?0:W.customHeaders)&&!(W==null?0:W.customBody)};
NLe.prototype.makeBeacon=function(W,l){if(!this.isSupported(l))throw new ik;return new AI(this.context,W,l)};
var AI=function(W,l,V){this.context=W;this.properties=V;this.JSC$9223_urlWithoutToken=l;var f;this.beaconMethod=(f=V==null?void 0:V.beaconMethod)!=null?f:"GET";W=csS(this.context);if(W===void 0)throw Error();this.fetchLater=W;YMB(this,x1L(this))},YMB=function(W,l){W.beaconResult&&W.beaconResult.activated||(W.beaconAbort=new AbortController,W.beaconResult=W.fetchLater(l,{method:W.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:W.beaconAbort.signal,activateAfter:96E4}))},x1L=function(W){W=W.JSC$9223_urlWithoutToken;
return(W.slice(-1)[0]==="&"?W:W+"&")+"flapi=1"};
AI.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
AI.prototype.sendNow=function(){};
AI.prototype.setHeader=function(){};
_.rc.Object.defineProperties(AI.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9223_urlWithoutToken},
set:function(W){this.JSC$9223_urlWithoutToken=W;W=x1L(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);YMB(this,W)}},
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 eIe=function(W){this.context=W};
eIe.prototype.isSupported=function(){return!we(this.context)&&!!this.context.global.fetch};
eIe.prototype.ping=function(){var W=this;return Yd.apply(null,_.QK(_.xk.apply(0,arguments).map(function(l){return vG(W.context.global.fetch(l,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(AL(function(V){return V.status===200}))}))).pipe(k7S(function(l){return l}),H5F())};
eIe.prototype.pingWithHeadersAndBody=function(W,l,V){for(var f=_.xk.apply(3,arguments),r=this,R=new Headers,y=_.L(l.entries()),P=y.next();!P.done;P=y.next()){var n=_.L(P.value);P=n.next().value;n=n.next().value;R.set(P,n)}var B,d=(B=W.keepAlive)!=null?B:!1;Yd.apply(null,_.QK(f.map(function(J){return vG(r.context.global.fetch(J,Object.assign({},{method:String(W.beaconMethod),cache:"no-cache"},d?{keepalive:!0}:{},{mode:"no-cors",headers:R,body:V}))).pipe(AL(function(D){return D.status===200}))}))).pipe(k7S(function(J){return J}),
H5F())};var qMI,F6n;_.QR=function(){};
_.wS=function(W){return W};
qMI=function(W){var l=l||0;return function(){return W.apply(this,Array.prototype.slice.call(arguments,0,l))}};
_.M7=function(W){var l=!1,V;return function(){l||(V=W(),l=!0);return V}};
_.Zh=function(W,l){var V=0;return function(f){_.rS.clearTimeout(V);var r=arguments;V=_.rS.setTimeout(function(){W.apply(void 0,r)},l)}};
F6n=function(W,l){var V=0,f=!1,r=[],R=function(){V=0;f&&(f=!1,y())},y=function(){V=_.rS.setTimeout(R,l);
var P=r;r=[];W.apply(void 0,P)};
return function(P){r=arguments;V?f=!0:y()}};var SMk=function(){return uF&&kz?kz.mobile:!hIB()&&(G6("iPod")||G6("iPhone")||G6("Android")||G6("IEMobile"))},hIB=function(){return uF&&kz?!kz.mobile&&(G6("iPad")||G6("Android")||G6("Silk")):G6("iPad")||G6("Android")&&!G6("Mobile")||G6("Silk")};var EcI;_.MC={};EcI="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.MC.add=function(W,l,V){if(W!==null&&l in W)throw Error("la`"+l);W[l]=V};
_.MC.clear=function(W){for(var l in W)delete W[l]};
_.MC.clone=function(W){var l={},V;for(V in W)l[V]=W[V];return l};
_.MC.contains=function(W,l){return oNg(W,l)};
_.MC.containsKey=function(W,l){return W!==null&&l in W};
_.MC.containsValue=oNg;_.MC.create=i5n;_.MC.createImmutableView=function(W){var l=W;Object.isFrozen&&!Object.isFrozen(W)&&(l=Object.create(W),Object.freeze(l));return l};
_.MC.createSet=mCg;_.MC.equals=function(W,l){for(var V in W)if(!(V in l)||W[V]!==l[V])return!1;for(var f in l)if(!(f in W))return!1;return!0};
_.MC.every=function(W,l,V){for(var f in W)if(!l.call(V,W[f],f,W))return!1;return!0};
_.MC.extend=function(W,l){for(var V,f,r=1;r<arguments.length;r++){f=arguments[r];for(V in f)W[V]=f[V];for(var R=0;R<EcI.length;R++)V=EcI[R],Object.prototype.hasOwnProperty.call(f,V)&&(W[V]=f[V])}};
_.MC.filter=function(W,l,V){var f={},r;for(r in W)l.call(V,W[r],r,W)&&(f[r]=W[r]);return f};
_.MC.findKey=jUv;_.MC.findValue=function(W,l,V){return(l=jUv(W,l,V))&&W[l]};
_.MC.forEach=function(W,l,V){for(var f in W)l.call(V,W[f],f,W)};
_.MC.get=function(W,l,V){return W!==null&&l in W?W[l]:V};
_.MC.getAllPropertyNames=function(W,l,V){if(!W)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return pgY(W);for(var f={};W&&(W!==Object.prototype||l)&&(W!==Function.prototype||V);){for(var r=Object.getOwnPropertyNames(W),R=0;R<r.length;R++)f[r[R]]=!0;W=Object.getPrototypeOf(W)}return pgY(f)};
_.MC.getAnyKey=function(W){for(var l in W)return l};
_.MC.getAnyValue=function(W){for(var l in W)return W[l]};
_.MC.getCount=function(W){var l=0,V;for(V in W)l++;return l};
_.MC.getKeys=pgY;_.MC.getSuperClass=function(W){return(W=Object.getPrototypeOf(W.prototype))&&W.constructor};
_.MC.getValueByKeys=function(W,l){var V=_.Ng(l),f=V?l:arguments;for(V=V?0:1;V<f.length;V++){if(W==null)return;W=W[f[V]]}return W};
_.MC.getValues=function(W){var l=[],V=0,f;for(f in W)l[V++]=W[f];return l};
_.MC.isEmpty=function(W){for(var l in W)return!1;return!0};
_.MC.isImmutableView=function(W){return!!Object.isFrozen&&Object.isFrozen(W)};
_.MC.map=function(W,l,V){var f={},r;for(r in W)f[r]=l.call(V,W[r],r,W);return f};
_.MC.remove=function(W,l){var V;(V=l in W)&&delete W[l];return V};
_.MC.set=function(W,l,V){W[l]=V};
_.MC.setIfUndefined=function(W,l,V){return l in W?W[l]:W[l]=V};
_.MC.setWithReturnValueIfNotSet=function(W,l,V){if(l in W)return W[l];V=V();return W[l]=V};
_.MC.some=function(W,l,V){for(var f in W)if(l.call(V,W[f],f,W))return!0;return!1};
_.MC.transpose=function(W){var l={},V;for(V in W)l[W[V]]=V;return l};
_.MC.unsafeClone=IlU;var Od=function(W,l,V,f,r){this.allowedElements=W;this.elementPolicies=l;this.allowedGlobalAttributes=V;this.globalAttributePolicies=f;this.globallyAllowedAttributePrefixes=r},$1X=function(W,l,V){V=W.elementPolicies.get(V);
return(V==null?0:V.has(l))?V.get(l):W.allowedGlobalAttributes.has(l)?{policyAction:1}:(V=W.globalAttributePolicies.get(l))?V:W.globallyAllowedAttributePrefixes&&[].concat(_.QK(W.globallyAllowedAttributePrefixes)).some(function(f){return l.indexOf(f)===0})?{policyAction:1}:{policyAction:0}};var WNL="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(" "),
lcL=[["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}]])]],VYB="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(" "),
fce=[["dir",{policyAction:3,conditions:je(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:je(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:je(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:je(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],r1L=new Od(new Set(WNL),new Map(lcL),new Set(VYB),new Map(fce)),R41=new Od(new Set(WNL.concat(["BUTTON",
"INPUT"])),new Map(lcL),new Set(je(function(){return VYB.concat(["class","id","name"])})),new Map(je(function(){return fce.concat([["style",
{policyAction:1}]])})));var tYZ,sw1,y19;tYZ=function(W,l,V,f,r){this.JSC$9284_sanitizerTable=W;this.styleElementSanitizer=l;this.styleAttributeSanitizer=V;this.JSC$9284_resourceUrlPolicy=f;this.JSC$9284_navigationUrlPolicy=r;this.changes=[]};
_.LNX=function(W,l){var V=document.implementation.createHTMLDocument("");W=sw1(W,l,V);V=V.body;V.appendChild(W);V=(new XMLSerializer).serializeToString(V);V=V.slice(V.indexOf(">")+1,V.lastIndexOf("</"));return EP(V)};
sw1=function(W,l,V){l=wgJ(l,V);l=document.createTreeWalker(l,5,function(P){if(P.nodeType===3)P=1;else if(QU8(P))if(P=Asv(P),P===null)P=2;else{var n=W.JSC$9284_sanitizerTable;P=P!=="FORM"&&(n.allowedElements.has(P)||n.elementPolicies.has(P))?1:2}else P=2;return P});
for(var f=l.nextNode(),r=V.createDocumentFragment(),R=r;f!==null;){var y=void 0;if(f.nodeType===3)W.styleElementSanitizer&&R.nodeName==="STYLE"?(f=W.styleElementSanitizer(f.data),y=W.createTextNode(f)):y=W.createTextNode(f.data);else if(QU8(f))y=y19(W,f,V);else throw Error("Z");R.appendChild(y);if(f=l.firstChild())R=y;else for(;!(f=l.nextSibling())&&(f=l.parentNode());)R=R.parentNode}return r};
tYZ.prototype.createTextNode=function(W){return document.createTextNode(W)};
y19=function(W,l,V){var f,r=Asv(l);V=V.createElement(r);l=l.attributes;for(var R=_.L(l),y=R.next();!y.done;y=R.next()){var P=y.value;y=P.name;P=P.value;var n=$1X(W.JSC$9284_sanitizerTable,y,r);a:{if(f=n.conditions){f=_.L(f);for(var B=f.next();!B.done;B=f.next()){var d=_.L(B.value);B=d.next().value;d=d.next().value;var J=void 0;if((B=(J=l.getNamedItem(B))==null?void 0:J.value)&&!d.has(B)){f=!1;break a}}}f=!0}if(f)switch(n.policyAction){case 1:cg(V,y,P);break;case 2:throw Error();case 3:cg(V,y,P.toLowerCase());
break;case 4:W.styleAttributeSanitizer?(P=W.styleAttributeSanitizer(P),cg(V,y,P)):cg(V,y,P);break;case 5:W.JSC$9284_resourceUrlPolicy?(n={type:2,attributeName:y,elementName:r},P=TOz(P),(P=W.JSC$9284_resourceUrlPolicy(P,n))&&cg(V,y,P.toString())):cg(V,y,P);break;case 6:if(W.JSC$9284_resourceUrlPolicy){n={type:2,attributeName:y,elementName:r};f=[];P=_.L(P.split(","));for(B=P.next();!B.done;B=P.next())d=_.L(B.value.trim().split(/\s+/,2)),B=d.next().value,d=d.next().value,f.push({url:B,descriptor:d});
P={parts:[]};f=_.L(f);for(B=f.next();!B.done;B=f.next())B=B.value,d=TOz(B.url),(d=W.JSC$9284_resourceUrlPolicy(d,n))&&P.parts.push({url:d.toString(),descriptor:B.descriptor});cg(V,y,Mt4(P))}else cg(V,y,P);break;case 7:n=P;if(W.JSC$9284_navigationUrlPolicy){n={type:2,attributeName:y,elementName:r};P=TOz(P);P=W.JSC$9284_navigationUrlPolicy(P,n);if(P===null)break;n=P.toString()}P=n;n=_.f7F(P);n=n!==void 0&&gce.indexOf(n.toLowerCase())!==-1?P:"about:invalid#zClosurez";cg(V,y,n)}}return V};
_.gZL=je(function(){return new tYZ(r1L)});
_.PsI=je(function(){return new tYZ(R41)});var nZ9=function(){this.calledBuild=!1;this.JSC$9296_sanitizerTable=r1L},CsX=function(){nZ9.apply(this,arguments)};
_.v(CsX,nZ9);CsX.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new tYZ(this.JSC$9296_sanitizerTable,void 0,void 0,this.JSC$9296_resourceUrlPolicy,this.JSC$9296_navigationUrlPolicy)};var c1X=/[^#]*/;var dHv=function(W){var l=B7a;if(l)for(var V in l)Object.prototype.hasOwnProperty.call(l,V)&&W(l[V],V,l)},J1k=function(){var W=[];
dHv(function(l){W.push(l)});
return W},B7a={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"},DHe=_.M7(function(){return J1k()}),uwI=function(){var W=UHI("IFRAME"),
l={};
_.q4(DHe(),function(V){W.sandbox&&W.sandbox.supports&&W.sandbox.supports(V)&&(l[V]=!0)});
return l},UHI=function(W,l){l=l===void 0?document:l;
return l.createElement(String(W).toLowerCase())};var an;_.xP=function(W,l,V){return Math.min(Math.max(W,l),V)};
an=function(W,l,V){return W+V*(l-W)};_.O1=function(W,l){this.x=W!==void 0?W:0;this.y=l!==void 0?l:0};
_.t=_.O1.prototype;_.t.clone=function(){return new _.O1(this.x,this.y)};
_.t.equals=function(W){return W instanceof _.O1&&(this==W?!0:this&&W?this.x==W.x&&this.y==W.y:!1)};
_.t.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.t.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.t.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.t.translate=function(W,l){W instanceof _.O1?(this.x+=W.x,this.y+=W.y):(this.x+=Number(W),typeof l==="number"&&(this.y+=l));return this};
_.t.scale=function(W,l){this.x*=W;this.y*=typeof l==="number"?l:W;return this};_.p5=function(W,l){this.width=W;this.height=l};
_.t=_.p5.prototype;_.t.clone=function(){return new _.p5(this.width,this.height)};
_.t.area=function(){return this.width*this.height};
_.t.aspectRatio=function(){return this.width/this.height};
_.t.isEmpty=function(){return!this.area()};
_.t.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.t.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.t.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.t.scale=function(W,l){this.width*=W;this.height*=typeof l==="number"?l:W;return this};var Zx=function(W,l){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=W===mB6&&l||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=k1Z};
Zx.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var vZI=function(W){return W instanceof Zx&&W.constructor===Zx&&W.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===k1Z?W.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},k1Z={},mB6={};
new Zx(mB6,"");var IU,ps,N7,H2L,G1k,FNB,aU,peL,jwv,oZ9,q7,IcZ,Qw1,A1$,weL,MYI,Z2M,O2e,acX,$aS,z4M,Y5k,xHI,N7k,zQ;IU=function(W){return W?new zQ(_.z7(W)):bon||(bon=new zQ)};
_.U_=function(W,l){return typeof l==="string"?W.getElementById(l):l};
ps=function(W,l){return(l||document).getElementsByTagName(String(W))};
_.KNe=function(W){return H2L("yt-formatted-string","paper-input-input",W)};
N7=function(W,l,V,f){W=f||W;return(l=l&&l!="*"?String(l).toUpperCase():"")||V?W.querySelectorAll(l+(V?"."+V:"")):W.getElementsByTagName("*")};
H2L=function(W,l,V){var f=document,r=W&&W!="*"?String(W).toUpperCase():"";return r||l?(V||f).querySelector(r+(l?"."+l:"")):N7(f,W,l,V)[0]||null};
G1k=function(W,l){_.MC.forEach(l,function(V,f){f=="style"?W.style.cssText=V:f=="class"?W.className=V:f=="for"?W.htmlFor=V:FNB.hasOwnProperty(f)?W.setAttribute(FNB[f],V):_.sz(f,"aria-")||_.sz(f,"data-")?W.setAttribute(f,V):W[f]=V})};
FNB={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"};_.oU=function(W){W=(W||window).document;W=W.compatMode=="CSS1Compat"?W.documentElement:W.body;return new _.p5(W.clientWidth,W.clientHeight)};
_.b2Z=function(W){var l=_.YR(W);W=W.defaultView;return new _.O1(W.pageXOffset||l.scrollLeft,W.pageYOffset||l.scrollTop)};
_.YR=function(W){return W.scrollingElement?W.scrollingElement:_.HF||W.compatMode!="CSS1Compat"?W.body||W.documentElement:W.documentElement};
aU=function(W){return W?W.defaultView:window};
_.xR=function(W,l,V){return peL(document,arguments)};
peL=function(W,l){var V=l[1],f=oZ9(W,String(l[0]));V&&(typeof V==="string"?f.className=V:Array.isArray(V)?f.className=V.join(" "):G1k(f,V));l.length>2&&jwv(W,f,l,2);return f};
jwv=function(W,l,V,f){function r(P){P&&l.appendChild(typeof P==="string"?W.createTextNode(P):P)}
for(;f<V.length;f++){var R=V[f];if(!_.Ng(R)||_.ev(R)&&R.nodeType>0)r(R);else{a:{if(R&&typeof R.length=="number"){if(_.ev(R)){var y=typeof R.item=="function"||typeof R.item=="string";break a}if(typeof R==="function"){y=typeof R.item=="function";break a}}y=!1}_.q4(y?_.z6(R):R,r)}}};
_.Gz=function(W){return oZ9(document,W)};
oZ9=function(W,l){l=String(l);W.contentType==="application/xhtml+xml"&&(l=l.toLowerCase());return W.createElement(l)};
_.eg=function(){return document.createTextNode("\n")};
q7=function(W){if(W.nodeType!=1)return!1;switch(W.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};
IcZ=function(W,l){jwv(_.z7(W),W,arguments,1)};
_.hI=function(W){for(var l;l=W.firstChild;)W.removeChild(l)};
_.Sg=function(W,l){l.parentNode&&l.parentNode.insertBefore(W,l)};
_.Ed=function(W,l){l.parentNode&&l.parentNode.insertBefore(W,l.nextSibling)};
_.bI=function(W){return W&&W.parentNode?W.parentNode.removeChild(W):null};
_.i29=function(W,l){var V=l.parentNode;V&&V.replaceChild(W,l)};
_.mH$=function(W){var l,V=W.parentNode;if(V&&V.nodeType!=11)if(W.removeNode)W.removeNode(!1);else{for(;l=W.firstChild;)V.insertBefore(l,W);_.bI(W)}};
_.$R=function(W){return W.children!=void 0?W.children:Array.prototype.filter.call(W.childNodes,function(l){return l.nodeType==1})};
_.T7a=function(W){return W.nextElementSibling!==void 0?W.nextElementSibling:_.Xev(W.nextSibling,!0)};
_.Xev=function(W,l){for(;W&&W.nodeType!=1;)W=l?W.nextSibling:W.previousSibling;return W};
_.Wq=function(W){return _.ev(W)&&W.nodeType==1};
_.eV=function(W,l){if(!W||!l)return!1;if(W.contains&&l.nodeType==1)return W==l||W.contains(l);if(typeof W.compareDocumentPosition!="undefined")return W==l||!!(W.compareDocumentPosition(l)&16);for(;l&&W!=l;)l=l.parentNode;return l==W};
Qw1=function(W,l){if(W==l)return 0;if(W.compareDocumentPosition)return W.compareDocumentPosition(l)&2?1:-1;if("sourceIndex"in W||W.parentNode&&"sourceIndex"in W.parentNode){var V=W.nodeType==1,f=l.nodeType==1;if(V&&f)return W.sourceIndex-l.sourceIndex;var r=W.parentNode,R=l.parentNode;return r==R?weL(W,l):!V&&_.eV(r,l)?-1*A1$(W,l):!f&&_.eV(R,W)?A1$(l,W):(V?W.sourceIndex:r.sourceIndex)-(f?l.sourceIndex:R.sourceIndex)}f=_.z7(W);V=f.createRange();V.selectNode(W);V.collapse(!0);W=f.createRange();W.selectNode(l);
W.collapse(!0);return V.compareBoundaryPoints(_.rS.Range.START_TO_END,W)};
A1$=function(W,l){var V=W.parentNode;if(V==l)return-1;for(;l.parentNode!=V;)l=l.parentNode;return weL(l,W)};
weL=function(W,l){for(;l=l.previousSibling;)if(l==W)return-1;return 1};
MYI=function(W){var l,V=arguments.length;if(!V)return null;if(V==1)return arguments[0];var f=[],r=Infinity;for(l=0;l<V;l++){for(var R=[],y=arguments[l];y;)R.unshift(y),y=y.parentNode;f.push(R);r=Math.min(r,R.length)}R=null;for(l=0;l<r;l++){y=f[0][l];for(var P=1;P<V;P++)if(y!=f[P][l])return R;R=y}return R};
_.z7=function(W){return W.nodeType==9?W:W.ownerDocument||W.document};
Z2M=function(W){return W.contentDocument||W.contentWindow.document};
_.WW=function(W,l){if("textContent"in W)W.textContent=l;else if(W.nodeType==3)W.data=String(l);else if(W.firstChild&&W.firstChild.nodeType==3){for(;W.lastChild!=W.firstChild;)W.removeChild(W.lastChild);W.firstChild.data=String(l)}else _.hI(W),W.appendChild(_.z7(W).createTextNode(String(l)))};
O2e={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};acX={IMG:" ",BR:"\n"};$aS=function(W){var l;W.tagName=="A"&&W.hasAttribute("href")||W.tagName=="INPUT"||W.tagName=="TEXTAREA"||W.tagName=="SELECT"||W.tagName=="BUTTON"?l=!W.disabled&&(!W.hasAttribute("tabindex")||z4M(W)):l=W.hasAttribute("tabindex")&&z4M(W);return l};
z4M=function(W){W=W.tabIndex;return typeof W==="number"&&W>=0&&W<32768};
Y5k=function(W){var l=[];N7k(W,l,!0);W=l.join("");W=W.replace(/ \xAD /g," ").replace(/\xAD/g,"");W=W.replace(/\u200B/g,"");W=W.replace(/ +/g," ");W!=" "&&(W=W.replace(/^\s*/,""));return W};
xHI=function(W){var l=[];N7k(W,l,!1);return l.join("")};
N7k=function(W,l,V){if(!(W.nodeName in O2e))if(W.nodeType==3)V?l.push(String(W.nodeValue).replace(/(\r\n|\r|\n)/g,"")):l.push(W.nodeValue);else if(W.nodeName in acX)l.push(acX[W.nodeName]);else for(W=W.firstChild;W;)N7k(W,l,V),W=W.nextSibling};
_.e4M=function(W,l,V){if(!l&&!V)return null;var f=l?String(l).toUpperCase():null;return _.YN(W,function(r){return(!f||r.nodeName==f)&&(!V||typeof r.className==="string"&&_.Oz(r.className.split(/\s+/),V))},!0)};
_.YN=function(W,l,V){W&&!V&&(W=W.parentNode);for(V=0;W;){if(l(W))return W;W=W.parentNode;V++}return null};
zQ=function(W){this.JSC$9321_document_=W||_.rS.document||document};
_.t=zQ.prototype;_.t.getElement=function(W){return _.U_(this.JSC$9321_document_,W)};
_.t.$=zQ.prototype.getElement;_.t.getElementsByTagName=function(W,l){return(l||this.JSC$9321_document_).getElementsByTagName(String(W))};
_.t.getElementsByTagNameAndClass=function(W,l,V){return N7(this.JSC$9321_document_,W,l,V)};
_.t.$$=zQ.prototype.getElementsByTagNameAndClass;_.t.setProperties=G1k;_.t.JSC$9323_createDom=function(W,l,V){return peL(this.JSC$9321_document_,arguments)};
_.t.createElement=function(W){return oZ9(this.JSC$9321_document_,W)};
_.t.createTextNode=function(W){return this.JSC$9321_document_.createTextNode(String(W))};
_.t.getWindow=function(){return this.JSC$9321_document_.defaultView};
var jt=function(W){return _.b2Z(W.JSC$9321_document_)};
_.t=zQ.prototype;_.t.appendChild=function(W,l){W.appendChild(l)};
_.t.append=IcZ;_.t.canHaveChildren=q7;_.t.removeNode=_.bI;_.t.getChildren=_.$R;_.t.contains=_.eV;_.t=Dl.prototype;_.t.getWidth=function(){return this.right-this.left};
_.t.getHeight=function(){return this.bottom-this.top};
_.t.clone=function(){return new Dl(this.top,this.right,this.bottom,this.left)};
_.t.contains=function(W){return this&&W?W instanceof Dl?W.left>=this.left&&W.right<=this.right&&W.top>=this.top&&W.bottom<=this.bottom:W.x>=this.left&&W.x<=this.right&&W.y>=this.top&&W.y<=this.bottom:!1};
_.t.expand=function(W,l,V,f){_.ev(W)?(this.top-=W.top,this.right+=W.right,this.bottom+=W.bottom,this.left-=W.left):(this.top-=W,this.right+=Number(l),this.bottom+=Number(V),this.left-=Number(f));return this};
_.t.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};
_.t.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};
_.t.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};
_.t.translate=function(W,l){W instanceof _.O1?(this.left+=W.x,this.right+=W.x,this.top+=W.y,this.bottom+=W.y):(this.left+=W,this.right+=W,typeof l==="number"&&(this.top+=l,this.bottom+=l));return this};
_.t.scale=function(W,l){l=typeof l==="number"?l:W;this.left*=W;this.right*=W;this.top*=l;this.bottom*=l;return this};var ll=function(W,l,V,f){this.left=W;this.top=l;this.width=V;this.height=f};
_.t=ll.prototype;_.t.clone=function(){return new ll(this.left,this.top,this.width,this.height)};
_.t.boundingRect=function(W){var l=Math.max(this.left+this.width,W.left+W.width),V=Math.max(this.top+this.height,W.top+W.height);this.left=Math.min(this.left,W.left);this.top=Math.min(this.top,W.top);this.width=l-this.left;this.height=V-this.top};
_.t.contains=function(W){return W instanceof _.O1?W.x>=this.left&&W.x<=this.left+this.width&&W.y>=this.top&&W.y<=this.top+this.height:this.left<=W.left&&this.left+this.width>=W.left+W.width&&this.top<=W.top&&this.top+this.height>=W.top+W.height};
_.t.distance=function(W){var l=W.x<this.left?this.left-W.x:Math.max(W.x-(this.left+this.width),0);W=W.y<this.top?this.top-W.y:Math.max(W.y-(this.top+this.height),0);return Math.sqrt(l*l+W*W)};
_.t.getSize=function(){return new _.p5(this.width,this.height)};
_.t.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};
_.t.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};
_.t.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};
_.t.translate=function(W,l){W instanceof _.O1?(this.left+=W.x,this.top+=W.y):(this.left+=W,typeof l==="number"&&(this.top+=l));return this};
_.t.scale=function(W,l){l=typeof l==="number"?l:W;this.left*=W;this.width*=W;this.top*=l;this.height*=l;return this};var h4v,r3,nWz,fU,W7L,$He,lak,$7g,VeM,rO9;_.VX=function(W,l,V){if(typeof l==="string")(l=_.q5$(W,l))&&(W.style[l]=V);else for(var f in l){V=W;var r=l[f],R=_.q5$(V,f);R&&(V.style[R]=r)}};
h4v={};_.q5$=function(W,l){var V=h4v[l];if(!V){var f=_.Q9(l);V=f;W.style[f]===void 0&&(f=(_.HF?"Webkit":_.vF?"Moz":null)+U11(f),W.style[f]!==void 0&&(V=f));h4v[l]=V}return V};
_.Gb=function(W,l){var V=_.z7(W);return V.defaultView&&V.defaultView.getComputedStyle&&(W=V.defaultView.getComputedStyle(W,null))?W[l]||W.getPropertyValue(l)||"":""};
_.x9=function(W,l){return _.Gb(W,l)||(W.currentStyle?W.currentStyle[l]:null)||W.style&&W.style[l]};
_.S5c=function(W){return _.x9(W,"position")};
r3=function(W,l,V){if(l instanceof _.O1){var f=l.x;l=l.y}else f=l,l=V;W.style.left=fU(f,!1);W.style.top=fU(l,!1)};
nWz=function(W){try{return W.getBoundingClientRect()}catch(l){return{left:0,top:0,right:0,bottom:0}}};
_.NC=function(W){var l=_.z7(W),V=new _.O1(0,0);if(W==(l?_.z7(l):document).documentElement)return V;W=nWz(W);l=jt(IU(l));V.x=W.left+l.x;V.y=W.top+l.y;return V};
_.EZv=function(W,l,V){if(l instanceof _.p5)V=l.height,l=l.width;else if(V==void 0)throw Error("oa");W.style.width=fU(l,!0);W.style.height=fU(V,!0)};
fU=function(W,l){typeof W=="number"&&(W=(l?Math.round(W):W)+"px");return W};
W7L=function(W){return $He(W)};
$He=function(W){var l=lak;if(_.x9(W,"display")!="none")return l(W);var V=W.style,f=V.display,r=V.visibility,R=V.position;V.visibility="hidden";V.position="absolute";V.display="inline";W=l(W);V.display=f;V.position=R;V.visibility=r;return W};
lak=function(W){var l=W.offsetWidth,V=W.offsetHeight,f=_.HF&&!l&&!V;return(l===void 0||f)&&W.getBoundingClientRect?(W=nWz(W),new _.p5(W.right-W.left,W.bottom-W.top)):new _.p5(l,V)};
$7g=function(W){var l=_.NC(W);W=$He(W);return new ll(l.x,l.y,W.width,W.height)};
VeM=function(W,l){W=W.style;"opacity"in W?W.opacity=l:"MozOpacity"in W?W.MozOpacity=l:"filter"in W&&(W.filter=l===""?"":"alpha(opacity="+Number(l)*100+")")};
_.W4=function(W,l){W.style.display=l?"":"none"};
_.faZ=function(W){return"rtl"==_.x9(W,"direction")};
rO9=function(W){var l=_.Gb(W,"marginLeft"),V=_.Gb(W,"marginRight"),f=_.Gb(W,"marginTop");W=_.Gb(W,"marginBottom");return new Dl(parseFloat(f),parseFloat(V),parseFloat(W),parseFloat(l))};
_.RyZ=function(W){var l=_.Gb(W,"borderLeftWidth"),V=_.Gb(W,"borderRightWidth"),f=_.Gb(W,"borderTopWidth");W=_.Gb(W,"borderBottomWidth");return new Dl(parseFloat(f),parseFloat(V),parseFloat(W),parseFloat(l))};var Rj=function(W){this.context=W};
Rj.prototype.isSupported=function(W){return(W==null?0:W.attributionEnabled)||(W==null?void 0:W.beaconMethod)==="POST"||(W==null?0:W.customHeaders)||(W==null?0:W.customBody)||(W==null?0:W.keepAlive)?!1:!we(this.context)};
Rj.prototype.ping=function(){var W=this;return iM(_.xk.apply(0,arguments).map(function(l){try{var V=W.context.global,f=!1;f=f===void 0?!1:f;V.google_image_requests||(V.google_image_requests=[]);var r=UHI("IMG",V.document);f&&(r.attributionSrc="");r.src=l;V.google_image_requests.push(r);return!0}catch(R){return!1}}).every(function(l){return l}))};
Rj.prototype.pingWithHeadersAndBody=function(W,l,V){this.ping.apply(this,_.QK(_.xk.apply(3,arguments)))};var tek=function(W){this.context=W};
tek.prototype.isSupported=function(W){return svc&&!we(this.context)&&O5q(this.context)!==void 0&&!(W==null?0:W.attributionEnabled)&&(W==null?void 0:W.beaconMethod)!=="POST"&&!(W==null?0:W.customHeaders)&&!(W==null?0:W.customBody)};
tek.prototype.makeBeacon=function(W,l){if(!this.isSupported(l))throw new ik;return new tS(this.context,W)};
var svc=!1,tS=function(W,l){this.context=W;this.JSC$9342_urlWithoutToken=l;W=O5q(this.context);if(W===void 0)throw Error();this.wrappedBeacon=new W(L7Z(this),{})},L7Z=function(W){W=W.JSC$9342_urlWithoutToken;
return(W.slice(-1)[0]==="&"?W:W+"&")+"pbapi=1"};
tS.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
tS.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
tS.prototype.setHeader=function(){};
_.rc.Object.defineProperties(tS.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9342_urlWithoutToken},
set:function(W){this.JSC$9342_urlWithoutToken=W;this.wrappedBeacon.setURL(L7Z(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(W){if(W!=="GET")throw new ik;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var yOk=function(W){this.context=W};
yOk.prototype.isSupported=function(W){if((W==null?0:W.attributionEnabled)||(W==null?void 0:W.beaconMethod)==="GET"||(W==null?0:W.customHeaders)||(W==null?0:W.customBody)||(W==null?0:W.keepAlive))return!1;var l;return!we(this.context)&&((l=this.context.global.navigator)==null?void 0:l.sendBeacon)!==void 0};
yOk.prototype.ping=function(){var W=this;return iM(_.xk.apply(0,arguments).map(function(l){var V;return(V=W.context.global.navigator)==null?void 0:V.sendBeacon(l)}).every(function(l){return l}))};
yOk.prototype.pingWithHeadersAndBody=function(W,l,V){this.ping.apply(this,_.QK(_.xk.apply(3,arguments)))};var Hg=function(W){this.value=W},rd=function(W,l){return iM(W.value).pipe(kN(l))},tl=new Hg(!1),Kwz=new Hg(!0);var xN=function(W){this.value=W;this.releasedSubject=new U1};
xN.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.rc.Object.defineProperties(xN.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9355_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var l1z=["FRAME","IMG","IFRAME"],q1v=/^[01](px)?$/,Wlq=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},$Cx=function(){var W=new Wlq;
W.crossDomainLoadedDefault=!0;W.pendingImagesBlockLoad=!0;return W};var gkI=function(W,l){var V=Llz(W);if(V)if(V.onCreativeLoad)V.onCreativeLoad(l);else{var f=l?[l]:[],r=function(R){for(var y=0;y<f.length;++y)try{f[y](1,R)}catch(P){}f={push:function(P){P(1,R)}}};
V.onCreativeLoad=function(R){f.push(R)};
V.setAttribute("data-creative-load-listener","");V.addEventListener("creativeLoad",function(R){r(R.detail)});
_.rS.addEventListener("message",function(R){sZF(V,r,R)})}};var sf=function(W,l){var V=this;this.global=W;this.parentContext=l;this.JSC$9366_onVisibilityChange=this.document?Yd(iM(!0),at(this.document,"visibilitychange")).pipe(Su(this.parentContext.performanceMonitor,748),AL(function(){return V.getVisibilityState()}),Vr()):iM("visible");
this.document?at(this.document,"DOMContentLoaded").pipe(Su(this.parentContext.performanceMonitor,739),lh(1)):iM(xCF("DOMContentLoaded"))},Hpx=function(W){return W.document!==null&&W.document.visibilityState!==void 0};
sf.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
sf.prototype.querySelector=function(W){return this.document?this.document.querySelector(W):null};
sf.prototype.querySelectorAll=function(W){return this.document?_.z6(this.document.querySelectorAll(W)):[]};
sf.prototype.elementFromPoint=function(W,l){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;W=this.document.elementFromPoint(W,l);return W===null?null:new xN(W)};
var n2z=function(W,l,V){V=V===void 0?!1:V;if(l.ref===void 0||!W.document)return iM(l).pipe(Su(W.parentContext.performanceMonitor,749));var f=new ts(1),r=function(){f.next(l)};
V||gkI(l.ref,r);VVn(l.ref,r);return f.pipe(Su(W.parentContext.performanceMonitor,749),lh(1))};
_.rc.Object.defineProperties(sf.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return G7v(this.global,"document")?this.global.document||null:null}}});var ylx=_.tj(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),g9x=_.tj(["./reach_worklet.js"]),PIY=_.tj(["./reach_worklet.js"]),P7M=_.tj(["./reach_worklet.html"]),nkL=_.tj(["./reach_worklet.js"]),C7I=_.tj(["./reach_worklet.js"]);_.dO(P7M);_.dO(nkL);_.dO(C7I);var E1={left:0,top:0,width:0,height:0};var cOM,Ba1,dIB,JOM,VS,UIk,uXa,kIe,BFq,do6,K71,F71;cOM=function(W,l,V,f,r,R,y){var P="";W&&(P+=W+":");V&&(P+="//",l&&(P+=l+"@"),P+=V,f&&(P+=":"+f));r&&(P+=r);R&&(P+="?"+R);y&&(P+="#"+y);return P};
Ba1=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.WA=function(W){return W.match(Ba1)};
_.wl=function(W,l){return W?l?decodeURI(W):decodeURIComponent(W):W};
dIB=function(W){W=_.WA(W)[1]||null;!W&&_.rS.self&&_.rS.self.location&&(W=_.rS.self.location.protocol.slice(0,-1));return W?W.toLowerCase():""};
_.lP=function(W){return _.wl(_.WA(W)[3]||null,!0)};
_.JY=function(W){return _.wl(_.WA(W)[5]||null,!0)};
_.P34=function(W){var l=W.indexOf("#");return l<0?null:W.slice(l+1)};
JOM=function(W){W=_.WA(W);return cOM(W[1],W[2],W[3],W[4])};
_.DI$=function(W){W=_.WA(W);return cOM(W[1],null,W[3],W[4])};
_.yW=function(W){W=_.WA(W);return cOM(null,null,null,null,W[5],W[6],W[7])};
_.DY=function(W){var l=W.indexOf("#");return l<0?W:W.slice(0,l)};
VS=function(W,l){W=_.WA(W);l=_.WA(l);return W[3]==l[3]&&W[1]==l[1]&&W[4]==l[4]};
UIk=function(W,l){if(W){W=W.split("&");for(var V=0;V<W.length;V++){var f=W[V].indexOf("="),r=null;if(f>=0){var R=W[V].substring(0,f);r=W[V].substring(f+1)}else R=W[V];l(R,r?rU(r):"")}}};
uXa=function(W){var l=W.indexOf("#");l<0&&(l=W.length);var V=W.indexOf("?");if(V<0||V>l){V=l;var f=""}else f=W.substring(V+1,l);return[W.slice(0,V),f,W.slice(l)]};
kIe=function(W,l){return l?W?W+"&"+l:l:W};
_.vkM=function(W,l){if(!l)return W;W=uXa(W);W[1]=kIe(W[1],l);return W[0]+(W[1]?"?"+W[1]:"")+W[2]};
_.HMe=function(W,l,V){if(Array.isArray(l))for(var f=0;f<l.length;f++)_.HMe(W,String(l[f]),V);else l!=null&&V.push(W+(l===""?"":"="+_.ei(l)))};
_.U6=function(W){var l=[],V;for(V in W)_.HMe(V,W[V],l);return l.join("&")};
_.$2=function(W,l){l=_.U6(l);return _.vkM(W,l)};
_.LU=function(W,l,V){V=V!=null?"="+_.ei(V):"";return _.vkM(W,l+V)};
BFq=function(W,l,V,f){for(var r=V.length;(l=W.indexOf(V,l))>=0&&l<f;){var R=W.charCodeAt(l-1);if(R==38||R==63)if(R=W.charCodeAt(l+r),!R||R==61||R==38||R==35)return l;l+=r+1}return-1};
do6=/#|$/;_.qs=function(W,l){var V=W.search(do6),f=BFq(W,0,l,V);if(f<0)return null;var r=W.indexOf("&",f);if(r<0||r>V)r=V;f+=l.length+1;return rU(W.slice(f,r!==-1?r:0))};
K71=/[?&]($|#)/;_.uj=function(W,l){for(var V=W.search(do6),f=0,r,R=[];(r=BFq(W,f,l,V))>=0;)R.push(W.substring(f,r)),f=Math.min(W.indexOf("&",r)+1||V,V);R.push(W.slice(f));return R.join("").replace(K71,"$1")};
_.OL=function(W,l,V){return _.LU(_.uj(W,l),l,V)};
F71=function(W){var l=uXa(window.location.href),V=l[1],f=[];V&&V.split("&").forEach(function(r){var R=r.indexOf("=");R=R>=0?r.slice(0,R):r;W.hasOwnProperty(R)||f.push(r)});
l[1]=kIe(f.join("&"),_.U6(W));return l[0]+(l[1]?"?"+l[1]:"")+l[2]};var I1x=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(I1x,_.yP);I1x.prototype.getVersion=function(){return _.aQ(this,2)};var jZU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(jZU,_.yP);var Klx=function(W,l){return _.mY(W,2,l)},o9U=function(W,l){return _.mY(W,3,l)};
jZU.prototype.getModel=function(){return _.aQ(this,4)};
var Gzn=function(W,l){return _.mY(W,4,l)},Hsn=function(W,l){return _.mY(W,5,l)},ptz=function(W,l){return _.mY(W,9,l)},v9z=function(W,l){return w5(W,10,l)},kzx=function(W,l){return _.Jl(W,11,l)},FlF=function(W,l){return _.mY(W,1,l)},bsq=function(W,l){return _.Jl(W,7,l)};var Usj="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var RZ=function(W,l,V,f){W=W===void 0?window:W;l=l===void 0?null:l;V=V===void 0?new Mvk:V;f=f===void 0?n9z():f;Xka.call(this);var r=this;this.global=W;this.debugChannel=l;this.performanceMonitor=V;this.onPageHide=$Fz(function(){return at(r.global,"pagehide")}).pipe(Su(this.performanceMonitor,941));
this.onLoad=$Fz(function(){return at(r.global,"load")}).pipe(Su(this.performanceMonitor,738),lh(1));
this.onResize=$Fz(function(){return at(r.global,"resize")}).pipe(Su(this.performanceMonitor,741));
this.onMessage=$Fz(function(){return at(r.global,"message")}).pipe(Su(this.performanceMonitor,740));
this.document=new sf(this.global,this);this.timeProvider=new ZeM(new a$1(this.intrinsicFunctionNamespace,this.performanceMonitor),new Oe1(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new AZk(new NLe(this),new tek(this),new mJ(this,new eIe(this)),new mJ(this,new yOk(this)),new mJ(this,new Rj(this)))};
_.v(RZ,Xka);var we=function(W){var l=W.global;return!!W.global.HTMLFencedFrameElement&&!!l.fence&&typeof l.fence.reportEvent==="function"};
_.t=RZ.prototype;_.t.reportFencedFrameEvent=function(W){we(this)&&this.global.fence.reportEvent(W)};
_.t.getOnBackgrounded=function(){return this.onPageHide.pipe(Su(this.performanceMonitor,942),kN(this.queue),AL(function(){}))};
_.t.postMessage=function(W,l,V){V=V===void 0?[]:V;this.global.postMessage(W,l,V)};
_.t.getWidth=function(){return b5q(this.global)?this.global.width:0};
_.t.getHeight=function(){return b5q(this.global)?this.global.height:0};
_.t.isMobile=function(){return hIB()||SMk()};
var et=function(W,l){try{var V=dsU(l,W.global,W.isMobile());return{left:V.left,top:V.top,width:V.getWidth(),height:V.getHeight()}}catch(f){return E1}};
RZ.prototype.validate=function(){var W=this.beaconFactory.isSupported()||we(this);return this.global&&this.timeProvider.available()&&W};
var zK6=function(W){return(W=ms8(W.global))?vG(W):null};
_.rc.Object.defineProperties(RZ.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(W){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!b5q(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}}});_.GIX=!_.kt&&!_.gzJ();var Fwv=function(W){return W};var bpJ=function(W){return W.pipe(eu(function(l){var V=l.endOfSessionReason;var f;return((f=l.viewable)==null?void 0:f.extrapolateToNow().value)||V!=void 0}),lh(1),$d())};var ZsS=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},Osx=function(W){var l=W.sequenceNumber.toString(10).padStart(2,"0");
l=""+W.startTime+l;W.sequenceNumber<99&&W.sequenceNumber++;return l};var v2Y=D7(Pg(function(W){return W.endOfSessionReason===void 0}),AL(function(W){return Object.assign({},W,{timestamps:T7(W)})}),eu(function(W){var l=W.viewable;
W=W.timestamps;var V;return(V=l==null?void 0:l.extrapolateUsingTimestampMap(W).value)!=null?V:!1}),AL(function(W){var l=W.beaconFactory;
var V=W.timestampedExposureHistory;var f=W.timeOnScreen;var r=W.binaryContext;W=W.timestamps;if(l===void 0||V===void 0||f===void 0||r===void 0)return!1;if(f.extrapolateUsingTimestampMap(W).value.every(function(R){return R>=0}))return!0;
V=V.map(function(R){return R.timestamp+":"+R.value}).join(",");
f=a1v({bin:r,tos:f},W);l.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+f+("&eh="+V)).sendNow();return!0}),Pg(function(W){return!W}),$d());var Ndj=function(W){return{id:W.pingId,mcvt:W.maxConsecutiveViewTime,p:W.creativePosition,asp:W.adSpeedPosition,tm:W.totalMeasurementTime,tu:W.totalUnviewedTime,mtos:W.maxTimeOnScreen,tos:W.timeOnScreen,v:W.binaryVersion,bin:W.binaryContext,avms:W.measurementStrategy,bs:W.browserSize,mc:W.maximumExposure,"if":W.crossDomainIframeState,vu:W.delayedImpressionJsState,app:W.inApp,mse:W.mraidError,mtop:W.mraidSituation,itpl:W.injectedTemplateId,adk:W.adKey,exk:W.awbidKey,rs:W.requestSource,la:W.isLargeAd,
cr:W.isContentRecommendationAd,uach:W.userAgentClientHints,vs:W.viewState,r:W.reasonCode,pay:W.hasCpmavUrl,co:W.clientPingOrderCounter,rst:W.adRenderStartTime,rpt:W.adRenderPeriodTime,isd:W.initialScrollDepth,lsd:W.loadedScrollDepth,context:W.errorContext,msg:W.errorMessage,stack:W.errorStack,name:W.errorName,ec:W.hasElementChanged,sfr:W.strategyFailureReasons,met:W.creativeSearchResult,wmsd:W.webMeasurementStartDiagnostic,pv:W.pageVisible,epv:W.eosPageVisible,pbe:W.inStatefulBeaconExperiment,fle:W.inFetchLaterBeaconExperiment,
vae:W.inViewableAttributionExperiment,spb:W.supportsPendingBeacon,sfl:W.supportsFetchLater,ffslot:W.isFencedFrameSlotTurtlex,reach:W.sharedStorageReachMode,io2:W.v2VisibilityBitVector,rxdbg:W.rxDebugger,omida:W.omidAppId,omidp:W.omidPartner,omidpv:W.omidPartnerVersion,omidor:W.omidOcclusionReasons,omidv:W.omidVersion,omids:W.omidSessionType,omidam:W.omidAccessMode,omidct:W.omidCreativeType,omidia:W.omidInApp,omiddc:W.omidDeviceCategory,omidlat:W.omidLastActivity,omiddit:W.omidDeviceIdleTime,qid:W.errorEscapedQueryId}};var G3Y=function(W){var l=[];return W.pipe(AL(function(V){var f=V.beaconFactory,r=V.fetchBeaconFactory,R=V.timeOnScreen,y=V.timeOnScreenUrlPrefixes,P=V.payloadMapper,n=V.timeOnScreenPingId,B=V.timeOnScreenReason,d=V.urlSerializer,J=V.viewable,D=V.hasImpressionFired,u=V.inStatefulBeaconExperiment,H=V.supportsPendingBeacon,p=V.supportsFetchLater,X=V.turtlexReportEventData;if(!V.geometryMeasurable||!D||V.maxTimeOnScreen===void 0||R===void 0||y===void 0||P===void 0||n===void 0||d===void 0||f===void 0)return!1;
if(V.isTurtlex){if(B===void 0)return!1;y=V.reportFencedFrameEvent;if(!y)return!1;y({eventType:"active-view-time-on-screen",eventData:X!=null?X:"",destination:["buyer"]});return!0}if(!(u||p||B))return!1;X=T7(V);var w;J=(w=J==null?void 0:J.extrapolateUsingTimestampMap(X).value)!=null?w:!1;w=d(Object.assign({},V,{pingId:n,viewState:J?4:3,reasonCode:B!=null?B:"u",payloadMapper:P,urlPrefixes:y}),X);if(u){for(;l.length>y.length;)V=void 0,(V=l.shift())==null||V.deactivate();w.forEach(function(S,N){N>=l.length?
l.push(f.makeBeacon(S)):l[N].url=S});
return H&&r&&B!==void 0?(w.forEach(function(S){r.makeBeacon(S).sendNow()}),!0):B!==void 0}if(H&&r&&B!==void 0)return w.forEach(function(S){r.makeBeacon(S).sendNow()}),!0;
if(p&&r){for(;l.length>y.length;)H=void 0,(H=l.shift())==null||H.deactivate();var O=d(Object.assign({},V,{pingId:n,viewState:J?4:3,reasonCode:B!=null?B:"u",payloadMapper:P,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),X)[0];w.forEach(function(S,N){N>=l.length?l.push(f.makeBeacon(O,{endOfSession:!0})):l[N].url=O});
return B!==void 0?(w.forEach(function(S){r.makeBeacon(S).sendNow()}),!0):B!==void 0}return B!==void 0?(w.forEach(function(S){f.makeBeacon(S).sendNow()}),!0):!1}),Pg(function(V){return!V}),$d())};var pPU=D7(eu(function(W){return W.immediateUrlPrefixes!==void 0&&W.payloadMapper!==void 0&&W.urlSerializer!==void 0&&W.inferredPingId!==void 0&&W.beaconFactory!==void 0}),eu(function(W){return $sY(W)!==null}),Scq(function(W){return W.activeViewUnmeasurableEvent},function(W){return W.emit}),AL(function(W){if(W.isTurtlex){var l=W.reportFencedFrameEvent;
if(l){var V;l({eventType:"active-view-unmeasurable",eventData:(V=W.turtlexReportEventData)!=null?V:"",destination:["buyer"]})}}else{V=void 0;var f=$sY(W);if(f==="x"){var r,R=(r=W.geometricMeasurementErrors)!=null?r:W.contextValidationErrors;R&&(l=R.stack,V=R.message)}W.urlSerializer(Object.assign({},W,{urlPrefixes:W.immediateUrlPrefixes,payloadMapper:W.payloadMapper,pingId:W.inferredPingId,viewState:2,reasonCode:f,errorMessage:V,errorStack:l}),T7(W)).forEach(function(y){W.beaconFactory.makeBeacon(y).sendNow()})}}),
lh(1),$d());var W1x=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var k3S=D7(eu(function(W){return W.payloadMapper!==void 0&&W.immediateUrlPrefixes!==void 0&&W.urlSerializer!==void 0&&W.inferredPingId!==void 0&&W.beaconFactory!==void 0}),AL(function(W){return Object.assign({},W,{timestamps:T7(W)})}),eu(function(W){var l=W.viewable;
var V=W.hasImpressionFired;W=W.timestamps;var f;return!!V&&((f=l==null?void 0:l.extrapolateUsingTimestampMap(W).value)!=null?f:!1)}),Scq(function(W){return W.activeViewViewableEvent},function(W){return W.emit}),AL(function(W){var l=W.beaconFactory,V=W.turtlexReportEventData;
if(W.isTurtlex){var f=W.reportFencedFrameEvent;if(!f)return!1;f({eventType:"active-view-viewable",eventData:V!=null?V:"",destination:["buyer"]});return!0}V=W.urlSerializer(Object.assign({},W,{urlPrefixes:W.immediateUrlPrefixes,payloadMapper:W.payloadMapper,pingId:W.inferredPingId,viewState:4,reasonCode:"v"}),W.timestamps);(f=W.cpmavUrls)&&f.length>0&&W.viewUrlSerializer&&W.viewUrlSerializer(f,W).forEach(function(r){l.makeBeacon(r).sendNow()});
(f=W.viewableRelayUrls)&&f.length>0&&W.viewUrlSerializer&&W.viewUrlSerializer(f,W).forEach(function(r){l.makeBeacon(r).sendNow()});
V.forEach(function(r){l.makeBeacon(r,{attributionEnabled:W.isViewableAttributionEnabled}).sendNow()});
return!0}),Pg(function(W){return!W}),$d());var N9Y=AL(function(W){return[W.value.topWindowViewportExternalGeometry.width,W.value.topWindowViewportExternalGeometry.height]});var hs=function(W,l){this.callback=W;this.options=l;this.intersectionObserverV2=this.intersectionObserverV1=null},G_S=function(W,l){l?W.intersectionObserverV2||(l=Object.assign({},W.options,{delay:100,
trackVisibility:!0}),W.intersectionObserverV2=new IntersectionObserver(W.callback,l)):W.intersectionObserverV1||(W.intersectionObserverV1=new IntersectionObserver(W.callback,W.options))},bML=function(W,l){W=l?W.intersectionObserverV2:W.intersectionObserverV1;
if(!W)throw new TLM;return W};
hs.prototype.observe=function(W,l){bML(this,W).observe(l)};
hs.prototype.unobserve=function(W,l){bML(this,W).unobserve(l)};
hs.prototype.disconnect=function(W){bML(this,W).disconnect()};
hs.prototype.takeRecords=function(W){return bML(this,W).takeRecords()};var c4v={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:E1,topWindowViewportExternalGeometry:E1,measurementRequests:new U1,elementGeometrySourceName:"ns",elementGeometry:E1,intersectionGeometry:E1,viewportLocalAppOffset:{x:0,y:0}};var m_x=$N(D7(AL(function(W){var l;return(l=W.exposureOverride)!=null?l:p4x(W)}),AL(function(W){return isFinite(W)?W:0}))),ZWj=$N(D7(AL(function(W){var l;
return(l=W.exposureOverride)!=null?l:p4x(W)}),AL(function(W){return isFinite(W)?W:-1})));var yX=function(W,l){this.a=W;this.b=l;if(W.clock.timeline!==l.clock.timeline)throw Error();};
yX.prototype.equivalentTo=function(W){return W instanceof yX?this.a.equivalentTo(W.a)&&this.b.equivalentTo(W.b):!1};
yX.prototype.extrapolateToTime=function(W){var l=this.a.extrapolateToTime(W).value,V=this.b.extrapolateToTime(W).value;return{timestamp:W,value:[l,V]}};
_.rc.Object.defineProperties(yX.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 W=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),l=this.a.lastMeasurement.timestamp.equals(W)?this.a.lastMeasurement.value:this.a.extrapolateToTime(W).value,V=this.b.lastMeasurement.timestamp.equals(W)?this.b.lastMeasurement.value:this.b.extrapolateToTime(W).value;return{timestamp:W,value:[l,V]}}}});var g3=function(W,l){this.input=W;this.mapFunction=l;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
g3.prototype.equivalentTo=function(W){return W instanceof g3?this.input.equivalentTo(W.input)&&this.mapFunction===W.mapFunction:!1};
g3.prototype.extrapolateToTime=function(W){W=this.input.extrapolateToTime(W);return{timestamp:W.timestamp,value:this.mapFunction(W.value)}};
_.rc.Object.defineProperties(g3.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var PW=function(){};
PW.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
PW.prototype.extrapolateUsingTimestampMap=function(W){var l=this.clock.timeline,V,f=(V=W.get(l))!=null?V:this.clock.now();W.set(l,f);return this.extrapolateToTime(f)};
PW.prototype.map=function(W){return new p$L(this,W)};
PW.prototype.joinWith=function(W){return new okc(this,W)};
var okc=function(){yX.apply(this,arguments);this.map=PW.prototype.map;this.joinWith=PW.prototype.joinWith;this.extrapolateToNow=PW.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=PW.prototype.extrapolateUsingTimestampMap};
_.v(okc,yX);var p$L=function(){g3.apply(this,arguments);this.map=PW.prototype.map;this.joinWith=PW.prototype.joinWith;this.extrapolateToNow=PW.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=PW.prototype.extrapolateUsingTimestampMap};
_.v(p$L,g3);var lI=function(W,l){this.lastMeasurement=l;this.extrapolateToNow=PW.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=PW.prototype.extrapolateUsingTimestampMap;this.map=PW.prototype.map;this.joinWith=PW.prototype.joinWith;this.clock=W};
lI.prototype.equivalentTo=function(W){return W.active};
lI.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.rc.Object.defineProperties(lI.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var zax=AL(function(W){if(W.value.viewportGeometrySourceName==="omid"){if(W.value.elementGeometrySourceName==="nio")return"omio";if(W.value.elementGeometrySourceName==="geo")return"omgeo"}return W.value.elementGeometrySourceName==="geo"||W.value.elementGeometrySourceName==="nio"?W.value.viewportGeometrySourceName:W.value.elementGeometrySourceName});var jiv=D7(eu(function(W){return!isNaN(W)}),L5(function(W,l){return isNaN(W)?l:Math.min(W,l)},NaN),Vr());var X48=$N(D7(AL(function(W){return W.intersectionGeometry.width*W.intersectionGeometry.height/(W.exposedViewportLocalGeometry.width*W.exposedViewportLocalGeometry.height)}),AL(function(W){return isFinite(W)?Math.min(1,W):0})));var azY=D7($N(AL(function(W){W=W.exposureOverride?W.elementGeometry.width*W.elementGeometry.height*W.exposureOverride/(W.topWindowViewportExternalGeometry.width*W.topWindowViewportExternalGeometry.height):W.intersectionGeometry.width*W.intersectionGeometry.height/(W.topWindowViewportExternalGeometry.width*W.topWindowViewportExternalGeometry.height);return isFinite(W)?W:0})));var eav=function(W,l){var V=this;this.timeProvider=W;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=l.pipe(Vr()).subscribe(function(f){haz(V);V.measurementRequestObserver=f})},SRq=function(W,l){haz(W);
W.lastMeasurementRequest=W.timeProvider.setTimeout(function(){var V;return void((V=W.measurementRequestObserver)==null?void 0:V.next())},l)},haz=function(W){W.lastMeasurementRequest!==null&&W.timeProvider.clearTimeout(W.lastMeasurementRequest);
W.lastMeasurementRequest=null};
eav.prototype.dispose=function(){haz(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var jvI=function(){};var D4x=function(W,l){this.context=W;this.strategies=l};
_.v(D4x,jvI);D4x.prototype.buildGeometrySource=function(W,l){var V=this.strategies.map(function(R){return R.buildGeometrySource(W,l)}),f=Vi6(V.map(function(R){return R.geometrySource})),r=f.capturedErrors.pipe(Iac());
return{geometrySource:f.chain.pipe(kN(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:r,strategyErrors:f.capturedErrors}].concat(_.QK(V.map(function(R){return R.additionalOutputs}))))}};
var Iac=function(){return L5(function(W,l){l instanceof As?W.push(l.measurementStrategyFailureReason):W.push(-1);return W},[])};var uWS=function(W,l){this.context=W;this.poller=l};
_.v(uWS,jvI);uWS.prototype.buildGeometrySource=function(W,l){var V=fLJ(Rrx(this.context,this.poller),B96(this.context,l.requestSource));return{geometrySource:lLn(W.measurableCreative.pipe(V),l.inApp),additionalOutputs:{}}};var U4F=function(W,l,V){V=V===void 0?k_x(W,l):V;this.context=W;this.intersectionObserverStrategy=V};
_.v(U4F,jvI);U4F.prototype.buildGeometrySource=function(W,l){var V=this.intersectionObserverStrategy(l.useV2);return{geometrySource:lLn(W.measurableCreative.pipe(V,vW4(this.context)),l.inApp),additionalOutputs:{}}};var iMB=function(W,l,V){var f=f===void 0?Symbol():f;this.element=W;this.immediateUrls=l;this.timeOnScreenUrls=V;this.symbol=f};var x_Y=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),g2U=Object.freeze([1,.75,x_Y.exposureThreshold,x_Y.largeAdExposureThreshold,0]);var o5z=function(W,l){l=l===void 0?36E5:l;var V=V===void 0?!0:V;this.creatives=new U1;this.elementsToUnregister=new U1;this.elementMap=new Map;var f=new RZ(window,null);f.beaconFactory=new mJ(f,new Rj(f));JCn(f,this.creatives,this.elementsToUnregister,W,l,V).subscribe()},iwj=function(W,l,V,f){if(!W.elementMap.has(l)){var r=new xN(l);
W.elementMap.set(l,r);W.creatives.next(new iMB(r,V,f))}},IEJ=function(W,l){W.elementsToUnregister.next(l);
var V=W.elementMap.get(l);V!==void 0&&(V.release(),W.elementMap.delete(l))};var pEY=function(W){var l=W.url;W=W.uaDataValues;this.JSC$9471_url_=l;this.uaDataValues_=W;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var V=/[?&]([^&=]+)=([^&]*)/g;W=V.exec(l);)this.urlParamValues_[W[1]]=W[2]},oJv=function(W){W=W.uaDataValues_;
if(!W)return"";var l=sc("uap",W.platform)+sc("uapv",W.platformVersion)+sc("uafv",W.uaFullVersion)+sc("uaa",W.architecture)+sc("uam",W.model)+sc("uab",W.bitness);W.fullVersionList&&(l+="&uafvl="+encodeURIComponent(W.fullVersionList.map(function(V){return encodeURIComponent(V.brand)+";"+encodeURIComponent(V.version)}).join("|")));
W.wow64!=null&&(l+="&uaw="+Number(W.wow64));return l.slice(1)};var mIa=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(mIa,_.yP);mIa.prototype.getId=function(){return _.aQ(this,1)};var nU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(nU,_.yP);nU.prototype.getSeconds=function(){return Zb(this,1)};
nU.prototype.setSeconds=function(W){return _.VP(this,1,Pe(W),"0")};_.Y1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(_.Y1,_.yP);_.Y1.prototype.getSeconds=function(){return Zb(this,1)};
_.Y1.prototype.setSeconds=function(W){return _.VP(this,1,Pe(W),"0")};
_.X$c=function(W){var l=Number(NG(W,1));W=_.Cs(W,2);return new Date(l*1E3+W/1E6)};var CU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(CU,_.yP);CU.prototype.getUrl=function(){return _.aQ(this,1)};
CU.prototype.setUrl=function(W){return _.ft(this,1,W)};
CU.prototype.getHeight=function(){return _.Cs(this,2)};
CU.prototype.getWidth=function(){return _.Cs(this,3)};var cW=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(cW,_.yP);cW.prototype.getAspectRatio=function(){return Ol(this,1)};
cW.prototype.getDuration=function(){return _.yy(this,nU,2)};var TaB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(TaB,_.yP);var w$a=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(w$a,_.yP);var AOI=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(AOI,_.yP);var QvZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(QvZ,_.yP);var MeL=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(MeL,_.yP);var ZMv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(ZMv,_.yP);var OMv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(OMv,_.yP);var aaB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(aaB,_.yP);var zy$=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(zy$,_.yP);var BW=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(BW,_.yP);var d3=[2,4,5,6,7];var Naa=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Naa,_.yP);var Aj=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Aj,_.yP);_.t=Aj.prototype;_.t.getId=function(){return _.yy(this,mIa,1)};
_.t.getName=function(){return _.aQ(this,2)};
_.t.setDescription=function(W){return _.ft(this,3,W)};
_.t.getUrl=function(){return _.aQ(this,8)};
_.t.setUrl=function(W){return _.ft(this,8,W)};
var JS=function(W){return _.Pt(W,CU,10,_.ns())};
Aj.prototype.getOwner=function(W){var l=_.SY(this,40,_.He,3,!0);Yzg(l,W);return l[W]};
Aj.prototype.getVersion=function(){return Zb(this,45)};
var Dn=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Dn,_.yP);_.Uf=[0,Rn,puU];_.ul=[0,Rn,puU];var YPI=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(YPI,_.yP);var kS=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(kS,_.yP);kS.prototype.getStatus=function(){return _.zy(this,1)};
kS.prototype.removeItem=function(W){return MDU(this,2,W)};var xIk=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(xIk,_.yP);xIk.prototype.getName=function(){return _.aQ(this,8)};var vW=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(vW,_.yP);vW.prototype.getCommand=function(){return _.zy(this,1)};
vW.prototype.getSource=function(){return _.yy(this,xIk,2)};
vW.prototype.setVisible=function(W){return _.h6(this,5,W)};
vW.prototype.removeItem=function(W){return MDU(this,7,W)};var eyv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(eyv,_.yP);eyv.prototype.getCommand=function(){return _.zy(this,1)};
eyv.prototype.removeItem=function(W){return MDU(this,4,W)};
var qP1=_.FX(eyv);var HW=function(W,l,V){V=V===void 0?Error():V;var f=Error.call(this);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.code=W;l+=":";V instanceof Error?(this.message=l+V.message,this.stack=V.stack||""):(this.message=l+String(V),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.v(HW,Error);_.iI=function(){this.JSC$9529_disposed_=this.JSC$9529_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.iI.prototype.JSC$9529_disposed_=!1;_.iI.prototype.isDisposed=function(){return this.JSC$9529_disposed_};
_.iI.prototype.dispose=function(){this.JSC$9529_disposed_||(this.JSC$9529_disposed_=!0,this.disposeInternal())};
_.iI.prototype[Symbol.dispose]=function(){this.dispose()};
_.vt=function(W,l){W.addOnDisposeCallback(_.QW(_.Ls,l))};
_.iI.prototype.addOnDisposeCallback=function(W,l){this.JSC$9529_disposed_?l!==void 0?W.call(l):W():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),l&&(W=W.bind(l)),this.onDisposeCallbacks_.push(W))};
_.iI.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var KU=function(W){_.iI.call(this);this.wpc=W};
_.v(KU,_.iI);KU.prototype.drG=function(){return this.wpc.f()};
KU.prototype.i5o=function(W){return this.wpc.c(W)};
KU.prototype.ho=function(W){return this.wpc.m(m48(W))};
KU.prototype.pFY=function(W){return this.wpc.mws(m48(W))};
var gd=function(W){_.iI.call(this);var l=this;this.vm=W;this.iFF="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.p6G=void 0;this.wwq=this.vm.p;this.wui=this.peN.bind(this);this.addOnDisposeCallback(function(){return void hyZ(l)})};
_.v(gd,_.iI);var SPI=function(W){var l;return _.g(function(V){if(V.nextAddress==1){if(!W.vm.wpc)throw new HW(30,"NWA");return W.bxq?V.return(W.bxq):V.yield(W.vm.wpc(),2)}l=V.yieldResult;W.bxq=new KU(l);return V.return(W.bxq)})};
gd.prototype.snapshot=function(W){return this.vm.s(Object.assign({},W.nf&&{c:W.nf},W.pE6&&{s:W.pE6},W.awT!==void 0&&{p:W.awT}))};
gd.prototype.peN=function(W){this.vm.e(W)};
gd.prototype.yi9=function(W,l){return this.vm.c(W,l,!1)};
var hyZ=function(W){W.p6G!==void 0&&(W.iFF.forEach(function(l){var V;(V=W.p6G)==null||V.removeEventListener(l,W.wui)}),W.p6G=void 0)};
gd.prototype.iDq=function(){return this.vm.l()};var Fd=function(){_.iI.apply(this,arguments);this.h4w=1};
_.v(Fd,_.iI);Fd.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.h4w++;return this};
Fd.prototype.dispose=function(){--this.h4w||_.iI.prototype.dispose.call(this)};var Eke=function(W){this.mX3=W;W.addNewEventMetric("/client_streamz/bg/frs",_.dd("mk"))};
Eke.prototype.record=function(W,l){this.mX3.record("/client_streamz/bg/frs",W,l)};
var $II=function(W){this.oRv=W;W.addNewEventMetric("/client_streamz/bg/wrl",_.dd("mn"),Bt("ac"),Bt("sc"),_.dd("rk"),_.dd("mk"))};
$II.prototype.record=function(W,l,V,f,r,R){this.oRv.record("/client_streamz/bg/wrl",W,l,V,f,r,R)};
var WQ$=function(W){this.tD8=W;W.addNewCounter("/client_streamz/bg/ec",_.dd("en"),_.dd("mk"))};
WQ$.prototype.increment=function(W,l){this.tD8.JSC$9782_incrementCounter("/client_streamz/bg/ec",W,l)};
var l7L=function(W){this.w2U=W;W.addNewEventMetric("/client_streamz/bg/el",_.dd("en"),_.dd("mk"))};
l7L.prototype.record=function(W,l,V){this.w2U.record("/client_streamz/bg/el",W,l,V)};
var Vua=function(W){this.lHj=W;W.addNewCounter("/client_streamz/bg/cec",Bt("ec"),_.dd("mk"))};
Vua.prototype.increment=function(W,l){this.lHj.JSC$9782_incrementCounter("/client_streamz/bg/cec",W,l)};
var f7B=function(W){this.q5R=W;W.addNewCounter("/client_streamz/bg/po/csc",Bt("cs"),_.dd("mk"))};
f7B.prototype.increment=function(W,l){this.q5R.JSC$9782_incrementCounter("/client_streamz/bg/po/csc",W,l)};
var rLM=function(W){this.xXt=W;W.addNewCounter("/client_streamz/bg/po/ctav",_.dd("av"),_.dd("mk"))};
rLM.prototype.increment=function(W,l){this.xXt.JSC$9782_incrementCounter("/client_streamz/bg/po/ctav",W,l)};
var R6B=function(W){this.fH3=W;W.addNewCounter("/client_streamz/bg/po/cwsc",_.dd("su"),_.dd("mk"))};
R6B.prototype.increment=function(W,l){this.fH3.JSC$9782_incrementCounter("/client_streamz/bg/po/cwsc",W,l)};var LS4=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(LS4,_.yP);var s0S=function(W,l){return _.l7(W,3,l,CBj)};var tu$=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(tu$,_.yP);var stB=[1,2,3];var LQc=[0,stB,_.nV,onS,inz];var yL$=[0,_.CV,[0,fV,_.re]];var gde=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(gde,_.yP);var PMv=[1,2,3];var ndI=[0,PMv,bnz,HnS,_.cs,yL$];var CMB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(CMB,_.yP);var cL1=[0,_.CV,LQc,ndI];var BIv=[0,_.ge];var dFv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(dFv,_.yP);var JLM=[0,_.ge,-1,_.LV];var DFB=[0,_.ge,-1,_.sd,_.LV];var UF9=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(UF9,_.yP);var ufI=[1,2,3];var kuB=[0,ufI,_.cs,JLM,_.cs,DFB,_.cs,BIv];var vda=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(vda,_.yP);vda.prototype.JSC$9602_serializeBinary=Mev([0,_.ge,kuB,mpU,_.CV,cL1,jK4,IW4]);var Hce=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Hce,_.yP);var Guk=function(W){var l=new vda;l=_.mY(l,1,W.JSC$9718_metricName);var V=KQc(W);l=_.l7(l,3,V,_.us);V=[];for(var f=[],r=_.L(W.cellMap.keys()),R=r.next();!R.done;R=r.next())f.push(R.value.split(","));for(r=0;r<f.length;r++){R=f[r];for(var y=W.cellType,P=W.getCells(R)||[],n=[],B=0;B<P.length;B++){var d=P[B],J=d&&d.cellValue;d=new gde;switch(y){case 3:J=Number(J);Number.isFinite(J)&&UL(d,1,PMv,Pe(J));break;case 2:UL(d,2,PMv,_.xc(Number(J)))}n.push(d)}y=n;for(P=0;P<y.length;P++){n=y[P];B=new CMB;n=_.b7(B,
2,n);B=[];d=FQa(W);for(J=0;J<d.length;J++){var D=d[J],u=R[J],H=new tu$;switch(D){case 3:UL(H,1,stB,kZ(String(u)));break;case 2:D=Number(u);Number.isFinite(D)&&UL(H,2,stB,_.Rw(D));break;case 1:UL(H,3,stB,gcq(u==="true"))}B.push(H)}w5(n,1,B);V.push(n)}}w5(l,4,V);return l};var bck=function(W){if(!W)return"";if(/^about:(?:blank|srcdoc)$/.test(W))return window.origin||"";W.indexOf("blob:")===0&&(W=W.substring(5));W=W.split("#")[0].split("?")[0];W=W.toLowerCase();W.indexOf("//")==0&&(W=window.location.protocol+W);/^[\w\-]*:\/\//.test(W)||(W=window.location.href);var l=W.substring(W.indexOf("://")+3),V=l.indexOf("/");V!=-1&&(l=l.substring(0,V));V=W.substring(0,W.indexOf("://"));if(!V)throw Error("qa`"+W);if(V!=="http"&&V!=="https"&&V!=="chrome-extension"&&V!=="moz-extension"&&
V!=="file"&&V!=="android-app"&&V!=="chrome-search"&&V!=="chrome-untrusted"&&V!=="chrome"&&V!=="app"&&V!=="devtools")throw Error("ra`"+V);W="";var f=l.indexOf(":");if(f!=-1){var r=l.substring(f+1);l=l.substring(0,f);if(V==="http"&&r!=="80"||V==="https"&&r!=="443")W=":"+r}return V+"://"+l+W};var odk=function(W,l,V){var f=String(_.rS.location.href);return f&&W&&l?[l,pG$(bck(f),W,V||null)].join(" "):null},pG$=function(W,l,V){var f=[],r=[];
if((Array.isArray(V)?2:1)==1)return r=[l,W],_.q4(f,function(P){r.push(P)}),jt1(r.join(" "));
var R=[],y=[];_.q4(V,function(P){y.push(P.key);R.push(P.value)});
V=Math.floor((new Date).getTime()/1E3);r=R.length==0?[V,l,W]:[R.join(":"),V,l,W];_.q4(f,function(P){r.push(P)});
W=jt1(r.join(" "));W=[V,W];y.length==0||W.push(y.join(""));return W.join("_")},jt1=function(W){var l=Opg();
l.update(W);return l.digestString().toLowerCase()};var GR=function(W){this.JSC$9613_document_=W||{cookie:""}},I7c;
_.t=GR.prototype;_.t.isEnabled=function(){if(!_.rS.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};
_.t.set=function(W,l,V){var f=!1;if(typeof V==="object"){var r=V.sameSite;f=V.secure||!1;var R=V.domain||void 0;var y=V.path||void 0;var P=V.maxAge}if(/[;=\s]/.test(W))throw Error("sa`"+W);if(/[;\r\n]/.test(l))throw Error("ta`"+l);P===void 0&&(P=-1);V=R?";domain="+R:"";y=y?";path="+y:"";f=f?";secure":"";P=P<0?"":P==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+P*1E3)).toUTCString();this.JSC$9613_document_.cookie=W+"="+l+V+y+P+f+(r!=null?";samesite="+r:"")};
_.t.get=function(W,l){for(var V=W+"=",f=(this.JSC$9613_document_.cookie||"").split(";"),r=0,R;r<f.length;r++){R=Cq(f[r]);if(R.lastIndexOf(V,0)==0)return R.slice(V.length);if(R==W)return""}return l};
_.t.remove=function(W,l,V){var f=this.containsKey(W);this.set(W,"",{maxAge:0,path:l,domain:V});return f};
_.t.getKeys=function(){return I7c(this).keys};
_.t.getValues=function(){return I7c(this).values};
_.t.isEmpty=function(){return!this.JSC$9613_document_.cookie};
_.t.getCount=function(){return this.JSC$9613_document_.cookie?(this.JSC$9613_document_.cookie||"").split(";").length:0};
_.t.containsKey=function(W){return this.get(W)!==void 0};
_.t.containsValue=function(W){for(var l=I7c(this).values,V=0;V<l.length;V++)if(l[V]==W)return!0;return!1};
_.t.clear=function(){for(var W=I7c(this).keys,l=W.length-1;l>=0;l--)this.remove(W[l])};
I7c=function(W){W=(W.JSC$9613_document_.cookie||"").split(";");for(var l=[],V=[],f,r,R=0;R<W.length;R++)r=Cq(W[R]),f=r.indexOf("="),f==-1?(l.push(""),V.push(r)):(l.push(r.substring(0,f)),V.push(r.substring(f+1)));return{keys:l,values:V}};
_.vA=new GR(typeof document=="undefined"?null:document);var Ss8,icL;Ss8=function(){var W=_.rS.__SAPISID||_.rS.__APISID||_.rS.__3PSAPISID||_.rS.__1PSAPISID||_.rS.__OVERRIDE_SID;if(W)return!0;typeof document!=="undefined"&&(W=new GR(document),W=W.get("SAPISID")||W.get("APISID")||W.get("__Secure-3PAPISID")||W.get("__Secure-1PAPISID"));return!!W};
icL=function(W,l,V,f){(W=_.rS[W])||typeof document==="undefined"||(W=(new GR(document)).get(l));return W?odk(W,V,f):null};
_.rGz=function(W){var l=bck(_.rS==null?void 0:_.rS.location.href),V=[];if(Ss8()){l=l.indexOf("https:")==0||l.indexOf("chrome-extension:")==0||l.indexOf("chrome-untrusted://new-tab-page")==0||l.indexOf("moz-extension:")==0;var f=l?_.rS.__SAPISID:_.rS.__APISID;f||typeof document==="undefined"||(f=new GR(document),f=f.get(l?"SAPISID":"APISID")||f.get("__Secure-3PAPISID"));(f=f?odk(f,l?"SAPISIDHASH":"APISIDHASH",W):null)&&V.push(f);l&&((l=icL("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",W))&&V.push(l),
(W=icL("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",W))&&V.push(W))}return V.length==0?null:V.join(" ")};var mFL=function(){this.minSize=1024};
mFL.prototype.compress=function(W){var l,V,f,r;return _.g(function(R){switch(R.nextAddress){case 1:return l=new CompressionStream("gzip"),V=(new Response(l.readable)).arrayBuffer(),f=l.writable.getWriter(),R.yield(f.write((new TextEncoder).encode(W)),2);case 2:return R.yield(f.close(),3);case 3:return r=Uint8Array,R.yield(V,4);case 4:return R.return(new r(R.yieldResult))}})};
mFL.prototype.isSupported=function(W){return W<this.minSize?!1:typeof CompressionStream!=="undefined"};var XGL=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(XGL,_.yP);var bl=function(W,l){this.intervalMs=W;this.callback=l;this.enabled=!1;this.nowFn=function(){return _.d5()};
this.lastTimeMs=this.nowFn()};
bl.prototype.setInterval=function(W){this.intervalMs=W;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
bl.prototype.start=function(){var W=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){W.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
bl.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
bl.prototype.tick=function(){var W=this;if(this.enabled){var l=Math.max(this.nowFn()-this.lastTimeMs,0);l<this.intervalMs*.8?this.timer=setTimeout(function(){W.tick()},this.intervalMs-l):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var TI9=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(TI9,_.yP);var wG$=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(wG$,_.yP);var ALX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(ALX,_.yP);ALX.prototype.getTransmissionType=function(){return _.zy(this,1)};var YJ6=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(YJ6,_.yP);YJ6.prototype.getVersion=function(){return _.aQ(this,2)};var pU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(pU,_.yP);var NKF=function(W){w5(x4U,1,W)};
pU.prototype.getModel=function(){return _.aQ(this,6)};
var Qta=_.FX(pU);var MuX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(MuX,_.yP);var aLj=["platform","platformVersion","architecture","model","uaFullVersion"],x4U=new pU,zrn=null;var oj=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(oj,_.yP);var ZcL=function(W){return _.g8(W,1,1)};var Oca=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W,4)};
_.v(Oca,_.yP);_.jk=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W,36)};
_.v(_.jk,_.yP);_.jk.prototype.getExperimentIds=function(){return _.yy(this,XGL,16)};var a7e=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W,19)};
_.v(a7e,_.yP);a7e.prototype.setLogSource=function(W){return _.g8(this,2,W)};
a7e.prototype.setScheduler=function(W){return _.g8(this,10,W)};var NIv=function(W,l){this.isServiceWorkerScope=l=l===void 0?!1:l;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new a7e;Number.isInteger(W)&&this.logRequest.setLogSource(W);l||(this.locale=document.documentElement.getAttribute("lang"));z6M(this,new oj)};
NIv.prototype.setLogSource=function(W){this.logRequest.setLogSource(W);return this};
var z6M=function(W,l){_.b7(W.logRequest,1,l);_.zy(l,1)||ZcL(l);W.isServiceWorkerScope||(l=Ij(W),_.aQ(l,5)||_.mY(l,5,W.locale));W.uach&&(l=Ij(W),_.yy(l,pU,9)||_.b7(l,9,W.uach))},YxL=function(W,l){W.transmissionType=l},xFB=function(W){var l=l===void 0?aLj:l;
var V=W.isServiceWorkerScope?void 0:aU();V?er4(V,l).then(function(f){W.uach=Qta(f!=null?f:"[]");f=Ij(W);_.b7(f,9,W.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Ij=function(W){var l=_.yy(W.logRequest,oj,1);
l||(l=new oj,z6M(W,l));W=l;l=_.yy(W,MuX,11);l||(l=new MuX,_.b7(W,11,l));return l};
NIv.prototype.build=function(W,l,V,f,r,R){l=l===void 0?0:l;V=V===void 0?0:V;f=f===void 0?null:f;r=r===void 0?0:r;R=R===void 0?0:R;if(!this.isServiceWorkerScope){var y=Ij(this);var P=new ALX;P=_.g8(P,1,this.transmissionType);P=_.Jl(P,2,this.isFinal);V=_.eP(P,3,V>0?V:void 0);V=_.eP(V,4,r>0?r:void 0);V=_.eP(V,5,R>0?R:void 0);r=V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;R=r[_.Le]|0;V=UM(V,R)?V:H2S(V,r,R)?vZJ(V,r):new V.constructor(aw(r,R,!0));_.b7(y,10,V)}y=this.logRequest.clone();V=Date.now().toString();
y=_.P2(y,4,Pe(V));W=W.slice();W=w5(y,3,W);f&&(y=new TI9,f=_.eP(y,13,f),y=new wG$,f=_.b7(y,2,f),y=new Oca,f=_.b7(y,1,f),f=_.g8(f,2,9),_.b7(W,18,f));l&&_.Gs(W,14,l);return W};D1.prototype.currBackoffCount_=0;D1.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
D1.prototype.getValue=function(){return this.currValue_};
var e61=function(W){W.currBaseValue_=Math.min(W.maxValue_,W.currBaseValue_*W.backoffFactor_);W.currValue_=Math.min(W.maxValue_,W.currBaseValue_+(W.randomFactor_?Math.round(W.randomFactor_*(Math.random()-.5)*2*W.currBaseValue_):0));W.currBackoffCount_++};var Zng=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W,8)};
_.v(Zng,_.yP);var qx9=_.FX(Zng);var Onq=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Onq,_.yP);var il;il=new aWS;var mM=function(W){_.iI.call(this);var l=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9691_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$9691_sendBeaconApiEnabled=!1;this.logSource=W.logSource;this.getAuthHeaderValue=
W.getAuthHeaderValue||function(){};
this.logRequestBuilder=new NIv(W.logSource,W.isServiceWorkerScope);this.network=W.network||null;this.productID=W.productID||null;this.bufferSize=1E3;this.clearcutUrl=W.urlOverride||null;this.sessionIndex=W.sessionIndex||null;this.disableAutomaticFlush=W.disableAutomaticFlush||!1;this.withCredentials=!W.disableWithCredentials;this.isServiceWorkerScope=W.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!aU()&&!!aU().navigator&&aU().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(h6B())).searchParams&&!!(new URL(h6B())).searchParams.set;var V=ZcL(new oj);z6M(this.logRequestBuilder,V);this.flushBackoff=new D1(1E4,3E5,.1);W=Sx1(this,W.backgroundJobDeferrer);this.JSC$9691_flushTimer=new bl(this.flushBackoff.getValue(),W);this.backupTimer=new bl(6E5,W);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){EdZ(l);
var f;(f=l.metalogService)==null||f.flush()}}),document.addEventListener("pagehide",function(){EdZ(l);
var f;(f=l.metalogService)==null||f.flush()}))};
_.v(mM,_.iI);var Sx1=function(W,l){return W.isBrowserSupported?l?function(){l().then(function(){W.flush()})}:function(){W.flush()}:function(){}};
mM.prototype.disposeInternal=function(){EdZ(this);this.JSC$9691_flushTimer.stop();this.backupTimer.stop();_.iI.prototype.disposeInternal.call(this)};
var $Fc=function(W){W.clearcutUrl||(W.clearcutUrl=h6B());try{return(new URL(W.clearcutUrl)).toString()}catch(l){return(new URL(W.clearcutUrl,aU().location.origin)).toString()}};
mM.prototype.dispatch=function(W){if(W instanceof _.jk)this.log(W);else try{var l=new _.jk,V=W.serialize();var f=_.mY(l,8,V);this.log(f)}catch(r){Xd(this,4,1)}};
var Xd=function(W,l,V){W.metalogService&&W.metalogService.increment(l,V)};
mM.prototype.log=function(W){Xd(this,2,1);if(this.isBrowserSupported){W=W.clone();var l=this.sequencePosition++;W=_.Gs(W,21,l);this.componentId&&_.mY(W,26,this.componentId);l=W;if(I$z(_.jP(l,1))==null){var V=Date.now();V=Number.isFinite(V)?V.toString():"0";_.P2(l,1,Pe(V))}_.jXY(_.jP(l,15))!=null||_.Gs(l,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(V=this.experimentIds.clone(),_.b7(l,16,V));Xd(this,1,1);l=this.pendingEvents.length-this.bufferSize+1;l>0&&(this.pendingEvents.splice(0,l),
this.numLogsDroppedSinceLastFlush+=l,Xd(this,3,l));this.pendingEvents.push(W);this.disableAutomaticFlush||this.JSC$9691_flushTimer.enabled||this.JSC$9691_flushTimer.start()}};
mM.prototype.flush=function(W,l){var V=this;if(this.pendingEvents.length===0)W&&W();else if(this.JSC$9691_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,WY9(this);else{var f=Date.now();if(this.noFlushUntilMs>f&&this.startWaitingMs<f)l&&l("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?YxL(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var r=this.pendingEvents.length,
R=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),y=this.getAuthHeaderValue();if(y&&this.lastFailedAuth===y)l&&l("stale-auth-token");else{this.pendingEvents=[];this.JSC$9691_flushTimer.enabled&&this.JSC$9691_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;f=R.serialize();var P;this.JSC$9691_compressor&&this.JSC$9691_compressor.isSupported(f.length)&&
(P=this.JSC$9691_compressor.compress(f));var n=llL(this,f,y),B=function(D){V.flushBackoff.reset();V.JSC$9691_flushTimer.setInterval(V.flushBackoff.getValue());if(D){var u=null;try{var H=JSON.stringify(JSON.parse(D.replace(")]}'\n","")));u=qx9(H)}catch(p){}u&&(D=Number(Zb(u,1,_.wL("-1"))),D>0&&(V.startWaitingMs=Date.now(),V.noFlushUntilMs=V.startWaitingMs+D),$1Y(u.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,il.fieldIndex),SMj(u,il.fieldIndex),u=il.ctor?il.getExtensionFn(u,il.ctor,il.fieldIndex,
il.JSC$8870_hasMessageId):il.getExtensionFn(u,il.fieldIndex,null,il.JSC$8870_hasMessageId),u=u===null?void 0:u)&&(u=_.Cs(u,1,-1),u!==-1&&(V.flushBackoff=new D1(u<1?1:u,3E5,.1),V.JSC$9691_flushTimer.setInterval(V.flushBackoff.getValue())))}W&&W();V.numRetriesSinceLastSuccessfulFlush=0},d=function(D,u){var H=_.Pt(R,_.jk,3,_.ns());
var p=Number(Zb(R,14));e61(V.flushBackoff);V.JSC$9691_flushTimer.setInterval(V.flushBackoff.getValue());D===401&&y&&(V.lastFailedAuth=y);p&&(V.numLogsDroppedSinceLastFlush+=p);u===void 0&&(u=V.isRetryable(D));u&&(V.pendingEvents=H.concat(V.pendingEvents),V.disableAutomaticFlush||V.JSC$9691_flushTimer.enabled||V.JSC$9691_flushTimer.start());Xd(V,7,1);l&&l("net-send-failed",D);++V.numRetriesSinceLastSuccessfulFlush},J=function(){V.network&&V.network.send(n,B,d)};
P?P.then(function(D){Xd(V,5,r);n.requestHeaders["Content-Encoding"]="gzip";n.requestHeaders["Content-Type"]="application/binary";n.body=D;n.bodyType=2;J()},function(){Xd(V,6,r);
J()}):J()}}}};
var llL=function(W,l,V){V=V===void 0?null:V;var f=f===void 0?W.withCredentials:f;var r={},R=new URL($Fc(W));V&&(r.Authorization=V);W.sessionIndex&&(r["X-Goog-AuthUser"]=W.sessionIndex,R.searchParams.set("authuser",W.sessionIndex));W.pageId&&(Object.defineProperty(r,"X-Goog-PageId",{value:W.pageId}),R.searchParams.set("pageId",W.pageId));return{url:R.toString(),body:l,bodyType:1,requestHeaders:r,requestType:"POST",withCredentials:f,timeoutMillis:W.timeoutMillis}},EdZ=function(W){W.logRequestBuilder.isFinal=
!0;
W.flush();W.logRequestBuilder.isFinal=!1},WY9=function(W){Vt1(W,function(l,V){l=new URL(l);
l.searchParams.set("format","json");var f=!1;try{f=aU().navigator.sendBeacon(l.toString(),V.serialize())}catch(r){}f||(W.isSendBeaconSupported=!1);return f})},Vt1=function(W,l){if(W.pendingEvents.length!==0){var V=new URL($Fc(W));
V.searchParams.delete("format");var f=W.getAuthHeaderValue();f&&V.searchParams.set("auth",f);V.searchParams.set("authuser",W.sessionIndex||"0");for(f=0;f<10&&W.pendingEvents.length;++f){var r=W.pendingEvents.slice(0,32),R=W.logRequestBuilder.build(r,W.numLogsDroppedSinceLastFlush,W.numRetriesSinceLastSuccessfulFlush,W.productID,W.persistedLogRecoveredCount,W.persistedLogExpiredCount);if(!l(V.toString(),R)){++W.numRetriesSinceLastSuccessfulFlush;break}W.numLogsDroppedSinceLastFlush=0;W.numRetriesSinceLastSuccessfulFlush=
0;W.persistedLogRecoveredCount=0;W.persistedLogExpiredCount=0;W.pendingEvents=W.pendingEvents.slice(r.length)}W.JSC$9691_flushTimer.enabled&&W.JSC$9691_flushTimer.stop()}};
mM.prototype.isRetryable=function(W){return 500<=W&&W<600||W===401||W===0};
var h6B=function(){return"https://play.google.com/log?format=json&hasfast=true"};var flv=function(){this.abortSupported=typeof AbortController!=="undefined"};
flv.prototype.send=function(W,l,V){var f=this,r,R,y,P,n,B,d,J,D,u;return _.g(function(H){switch(H.nextAddress){case 1:return R=(r=f.abortSupported?new AbortController:void 0)?setTimeout(function(){r.abort()},W.timeoutMillis):void 0,_.HG(H,2,3),y=Object.assign({},{method:W.requestType,
headers:Object.assign({},W.requestHeaders)},W.body&&{body:W.body},W.withCredentials&&{credentials:"include"},{signal:W.timeoutMillis&&r?r.signal:null}),H.yield(fetch(W.url,y),5);case 5:P=H.yieldResult;if(P.status!==200){(n=V)==null||n(P.status);H.jumpTo(3);break}if((B=l)==null){H.jumpTo(7);break}return H.yield(P.text(),8);case 8:B(H.yieldResult);case 7:case 3:_.Ff(H);clearTimeout(R);_.bM(H,0);break;case 2:d=_.pc(H);switch((J=d)==null?void 0:J.name){case "AbortError":(D=V)==null||D(408);break;default:(u=
V)==null||u(400)}H.jumpTo(3)}})};
flv.prototype.getTransmissionType=function(){return 4};_.k9=function(W,l){l=l===void 0?"0":l;_.iI.call(this);this.logSource=W;this.sessionIndex=l;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9709_clearExperimentIds=this.productID=null;this.JSC$9709_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.v(_.k9,_.iI);var rYS=function(W,l){W.buildLabel=l;return W},fjn=function(W,l){W.network=l;
return W},tFF=function(W,l){W.JSC$9709_clearExperimentIds=l},VFj=function(W){W.JSC$9709_sendBeaconApiEnabled=!0;
return W};
_.k9.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.k9.prototype.build=function(){this.network||(this.network=new flv);var W=new mM({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.rGz,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.vt(this,W);if(this.buildLabel){var l=this.buildLabel,V=
Ij(W.logRequestBuilder);_.mY(V,7,l)}W.JSC$9691_compressor=new mFL;this.componentId&&(W.componentId=this.componentId);this.productID&&(W.productID=this.productID);this.pageId&&(W.pageId=this.pageId);this.JSC$9709_clearExperimentIds&&((V=this.JSC$9709_clearExperimentIds)?(W.experimentIds||(W.experimentIds=new XGL),l=W.experimentIds,V=V.serialize(),_.mY(l,4,V)):W.experimentIds&&_.P2(W.experimentIds,4));this.JSC$9709_sendBeaconApiEnabled&&(W.JSC$9691_sendBeaconApiEnabled=W.isSendBeaconSupported);xFB(W.logRequestBuilder);
this.bufferSize&&(W.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(W);return W};var yY4=function(W,l,V,f,r,R,y){W=W===void 0?-1:W;l=l===void 0?"":l;V=V===void 0?"":V;f=f===void 0?!1:f;r=r===void 0?"":r;_.iI.call(this);this.logSource=W;this.componentId=l;R?l=R:(W=new _.k9(W,"0"),W.componentId=l,_.vt(this,W),V!==""&&(W.destinationUrl=V),f&&(W.serviceWorkerScopeEnabled=!0),r&&rYS(W,r),y&&fjn(W,y),l=W.build());this.JSC$9713_transport=l};
_.v(yY4,_.iI);yY4.prototype.flush=function(W){W=W||[];if(W.length){for(var l=new Hce,V=[],f=0;f<W.length;f++){var r=W[f],R=Guk(r);V.push(R);r.clear()}w5(l,1,V);this.JSC$9713_transport.dispatch(l);this.JSC$9713_transport.flush()}};var rsM=function(W){this.cellValue=W};var TR=function(W,l,V){this.JSC$9718_metricName=W;this.cellType=l;this.fields=V||[];this.cellMap=new Map},FQa=function(W){return W.fields.map(function(l){return l.fieldType})},KQc=function(W){return W.fields.map(function(l){return l.fieldName})};
_.t=TR.prototype;_.t.addCell=function(W){var l=_.xk.apply(1,arguments),V=this.getCells(l);V?V.push(new rsM(W)):this.JSC$9718_setCell(W,l)};
_.t.JSC$9718_setCell=function(W){var l=this.JSC$9718_getKey(_.xk.apply(1,arguments));this.cellMap.set(l,[new rsM(W)])};
_.t.getCells=function(){var W=this.JSC$9718_getKey(_.xk.apply(0,arguments));return this.cellMap.has(W)?this.cellMap.get(W):void 0};
_.t.getCell=function(){var W=this.getCells(_.xk.apply(0,arguments));return W&&W.length?W[0]:void 0};
_.t.clear=function(){this.cellMap.clear()};
_.t.JSC$9718_getKey=function(){var W=_.xk.apply(0,arguments);return W?W.join(","):"key"};var RKM=function(W,l){TR.call(this,W,3,l)};
_.v(RKM,TR);RKM.prototype.JSC$9721_incrementCounterBy=function(W){var l=_.xk.apply(1,arguments),V=0,f=this.getCell(l);f&&(V=f.cellValue);this.JSC$9718_setCell(V+W,l)};var ttM=function(W,l){TR.call(this,W,2,l)};
_.v(ttM,TR);ttM.prototype.record=function(W){this.addCell(W,_.xk.apply(1,arguments))};_.w3=function(W){this.id=W};
_.w3.prototype.toString=function(){return this.id};_.AS=function(W,l){this.type=W instanceof _.w3?String(W):W;this.currentTarget=this.target=l;this.defaultPrevented=this.propagationStopped_=!1};
_.AS.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.AS.prototype.preventDefault=function(){this.defaultPrevented=!0};_.QX=function(W,l){_.AS.call(this,W?W.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;W&&this.init(W,l)};
_.Jj(_.QX,_.AS);
_.QX.prototype.init=function(W,l){var V=this.type=W.type,f=W.changedTouches&&W.changedTouches.length?W.changedTouches[0]:null;this.target=W.target||W.srcElement;this.currentTarget=l;l=W.relatedTarget;l||(V=="mouseover"?l=W.fromElement:V=="mouseout"&&(l=W.toElement));this.relatedTarget=l;f?(this.clientX=f.clientX!==void 0?f.clientX:f.pageX,this.clientY=f.clientY!==void 0?f.clientY:f.pageY,this.screenX=f.screenX||0,this.screenY=f.screenY||0):(this.offsetX=_.HF||W.offsetX!==void 0?W.offsetX:W.layerX,
this.offsetY=_.HF||W.offsetY!==void 0?W.offsetY:W.layerY,this.clientX=W.clientX!==void 0?W.clientX:W.pageX,this.clientY=W.clientY!==void 0?W.clientY:W.pageY,this.screenX=W.screenX||0,this.screenY=W.screenY||0);this.button=W.button;this.keyCode=W.keyCode||0;this.key=W.key||"";this.charCode=W.charCode||(V=="keypress"?W.keyCode:0);this.ctrlKey=W.ctrlKey;this.altKey=W.altKey;this.shiftKey=W.shiftKey;this.metaKey=W.metaKey;this.pointerId=W.pointerId||0;this.pointerType=W.pointerType;this.state=W.state;
this.timeStamp=W.timeStamp;this.event_=W;W.defaultPrevented&&_.QX.superClass_.preventDefault.call(this)};
_.QX.prototype.stopPropagation=function(){_.QX.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.QX.prototype.preventDefault=function(){_.QX.superClass_.preventDefault.call(this);var W=this.event_;W.preventDefault?W.preventDefault():W.returnValue=!1};var sUk="closure_listenable_"+(Math.random()*1E6|0),MR=function(W){return!(!W||!W[sUk])};var LYc=0;var ysB=function(W,l,V,f,r){this.listener=W;this.proxy=null;this.src=l;this.type=V;this.capture=!!f;this.handler=r;this.key=++LYc;this.removed=this.callOnce=!1},gNL=function(W){W.removed=!0;
W.listener=null;W.proxy=null;W.src=null;W.handler=null};Uc.prototype.add=function(W,l,V,f,r){var R=W.toString();W=this.listeners[R];W||(W=this.listeners[R]=[],this.typeCount_++);var y=Phv(W,l,f,r);y>-1?(l=W[y],V||(l.callOnce=!1)):(l=new ysB(l,this.src,R,!!f,r),l.callOnce=V,W.push(l));return l};
Uc.prototype.remove=function(W,l,V,f){W=W.toString();if(!(W in this.listeners))return!1;var r=this.listeners[W];l=Phv(r,l,V,f);return l>-1?(gNL(r[l]),_.Hqn(r,l),r.length==0&&(delete this.listeners[W],this.typeCount_--),!0):!1};
var nNc=function(W,l){var V=l.type;if(!(V in W.listeners))return!1;var f=_.aY(W.listeners[V],l);f&&(gNL(l),W.listeners[V].length==0&&(delete W.listeners[V],W.typeCount_--));return f};
Uc.prototype.removeAll=function(W){W=W&&W.toString();var l=0,V;for(V in this.listeners)if(!W||V==W){for(var f=this.listeners[V],r=0;r<f.length;r++)++l,gNL(f[r]);delete this.listeners[V];this.typeCount_--}return l};
Uc.prototype.getListener=function(W,l,V,f){W=this.listeners[W.toString()];var r=-1;W&&(r=Phv(W,l,V,f));return r>-1?W[r]:null};
Uc.prototype.hasListener=function(W,l){var V=W!==void 0,f=V?W.toString():"",r=l!==void 0;return _.MC.some(this.listeners,function(R){for(var y=0;y<R.length;++y)if(!(V&&R[y].type!=f||r&&R[y].capture!=l))return!0;return!1})};
var Phv=function(W,l,V,f){for(var r=0;r<W.length;++r){var R=W[r];if(!R.removed&&R.listener==l&&R.capture==!!V&&R.handler==f)return r}return-1};var Ch$,csL,BOL,Jsv,DC9,OU,aJ,k7L,UCe,u4a,Zn,vNe,dCX;Ch$="closure_lm_"+(Math.random()*1E6|0);csL={};BOL=0;_.YJ=function(W,l,V,f,r){if(f&&f.once)return OU(W,l,V,f,r);if(Array.isArray(l)){for(var R=0;R<l.length;R++)_.YJ(W,l[R],V,f,r);return null}V=dCX(V);return MR(W)?W.listen(l,V,_.ev(f)?!!f.capture:!!f,r):Jsv(W,l,V,!1,f,r)};
Jsv=function(W,l,V,f,r,R){if(!l)throw Error("va");var y=_.ev(r)?!!r.capture:!!r,P=Zn(W);P||(W[Ch$]=P=new Uc(W));V=P.add(l,V,f,y,R);if(V.proxy)return V;f=DC9();V.proxy=f;f.src=W;f.listener=V;if(W.addEventListener)_.Jxa||(r=y),r===void 0&&(r=!1),W.addEventListener(l.toString(),f,r);else if(W.attachEvent)W.attachEvent(UCe(l.toString()),f);else if(W.addListener&&W.removeListener)W.addListener(f);else throw Error("wa");BOL++;return V};
DC9=function(){var W=u4a,l=function(V){return W.call(l.src,l.listener,V)};
return l};
OU=function(W,l,V,f,r){if(Array.isArray(l)){for(var R=0;R<l.length;R++)OU(W,l[R],V,f,r);return null}V=dCX(V);return MR(W)?W.listenOnce(l,V,_.ev(f)?!!f.capture:!!f,r):Jsv(W,l,V,!0,f,r)};
_.Of=function(W,l,V,f,r){if(Array.isArray(l))for(var R=0;R<l.length;R++)_.Of(W,l[R],V,f,r);else f=_.ev(f)?!!f.capture:!!f,V=dCX(V),MR(W)?W.unlisten(l,V,f,r):W&&(W=Zn(W))&&(l=W.getListener(l,V,f,r))&&aJ(l)};
aJ=function(W){if(typeof W==="number"||!W||W.removed)return!1;var l=W.src;if(MR(l))return nNc(l.eventTargetListeners_,W);var V=W.type,f=W.proxy;l.removeEventListener?l.removeEventListener(V,f,W.capture):l.detachEvent?l.detachEvent(UCe(V),f):l.addListener&&l.removeListener&&l.removeListener(f);BOL--;(V=Zn(l))?(nNc(V,W),V.typeCount_==0&&(V.src=null,l[Ch$]=null)):gNL(W);return!0};
k7L=function(W,l,V,f,r){V=dCX(V);f=!!f;return MR(W)?W.getListener(l,V,f,r):W?(W=Zn(W))?W.getListener(l,V,f,r):null:null};
UCe=function(W){return W in csL?csL[W]:csL[W]="on"+W};
u4a=function(W,l){if(W.removed)W=!0;else{l=new _.QX(l,this);var V=W.listener,f=W.handler||W.src;W.callOnce&&aJ(W);W=V.call(f,l)}return W};
Zn=function(W){W=W[Ch$];return W instanceof Uc?W:null};
vNe="__closure_events_fn_"+(Math.random()*1E9>>>0);dCX=function(W){if(typeof W==="function")return W;W[vNe]||(W[vNe]=function(l){return W.handleEvent(l)});
return W[vNe]};_.aj=function(){_.iI.call(this);this.eventTargetListeners_=new Uc(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Jj(_.aj,_.iI);_.aj.prototype[sUk]=!0;_.t=_.aj.prototype;_.t.setParentEventTarget=function(W){this.parentEventTarget_=W};
_.t.addEventListener=function(W,l,V,f){_.YJ(this,W,l,V,f)};
_.t.removeEventListener=function(W,l,V,f){_.Of(this,W,l,V,f)};
_.t.dispatchEvent=function(W){var l,V=this.parentEventTarget_;if(V)for(l=[];V;V=V.parentEventTarget_)l.push(V);V=this.actualEventTarget_;var f=W.type||W;if(typeof W==="string")W=new _.AS(W,V);else if(W instanceof _.AS)W.target=W.target||V;else{var r=W;W=new _.AS(f,V);_.MC.extend(W,r)}r=!0;var R;if(l)for(R=l.length-1;!W.propagationStopped_&&R>=0;R--){var y=W.currentTarget=l[R];r=H5B(y,f,!0,W)&&r}W.propagationStopped_||(y=W.currentTarget=V,r=H5B(y,f,!0,W)&&r,W.propagationStopped_||(r=H5B(y,f,!1,W)&&
r));if(l)for(R=0;!W.propagationStopped_&&R<l.length;R++)y=W.currentTarget=l[R],r=H5B(y,f,!1,W)&&r;return r};
_.t.disposeInternal=function(){_.aj.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.t.listen=function(W,l,V,f){return this.eventTargetListeners_.add(String(W),l,!1,V,f)};
_.t.listenOnce=function(W,l,V,f){return this.eventTargetListeners_.add(String(W),l,!0,V,f)};
_.t.unlisten=function(W,l,V,f){return this.eventTargetListeners_.remove(String(W),l,V,f)};
_.t.removeAllListeners=function(W){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(W):0};
var H5B=function(W,l,V,f){l=W.eventTargetListeners_.listeners[String(l)];if(!l)return!0;l=l.concat();for(var r=!0,R=0;R<l.length;++R){var y=l[R];if(y&&!y.removed&&y.capture==V){var P=y.listener,n=y.handler||y.src;y.callOnce&&nNc(W.eventTargetListeners_,y);r=P.call(n,f)!==!1&&r}}return r&&!f.defaultPrevented};
_.aj.prototype.getListener=function(W,l,V,f){return this.eventTargetListeners_.getListener(String(W),l,V,f)};
_.aj.prototype.hasListener=function(W,l){return this.eventTargetListeners_.hasListener(W!==void 0?String(W):void 0,l)};var zR=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(W){return W&&AsyncContext.Snapshot.wrap(W)}:function(W){return W};var KYB=function(W,l){this.create_=W;this.reset_=l;this.occupants_=0;this.JSC$9753_head_=null};
KYB.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var W=this.JSC$9753_head_;this.JSC$9753_head_=W.next;W.next=null}else W=this.create_();return W};
KYB.prototype.put=function(W){this.reset_(W);this.occupants_<100&&(this.occupants_++,W.next=this.JSC$9753_head_,this.JSC$9753_head_=W)};var FYX=function(){this.workTail_=this.workHead_=null};
FYX.prototype.add=function(W,l){var V=hrz.get();V.set(W,l);this.workTail_?this.workTail_.next=V:this.workHead_=V;this.workTail_=V};
FYX.prototype.remove=function(){var W=null;this.workHead_&&(W=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),W.next=null);return W};
var hrz=new KYB(function(){return new G7L},function(W){return W.reset()}),G7L=function(){this.next=this.scope=this.fn=null};
G7L.prototype.set=function(W,l){this.fn=W;this.scope=l;this.next=null};
G7L.prototype.reset=function(){this.next=this.scope=this.fn=null};var b5e,SJ8,qJz,pgX;SJ8=!1;qJz=new FYX;_.NR=function(W,l){b5e||pgX();SJ8||(b5e(),SJ8=!0);qJz.add(W,l)};
pgX=function(){var W=Promise.resolve(void 0);b5e=function(){W.then(E2v)}};var oN1=function(W){W.prototype.$goog_Thenable=!0},jUL=function(W){if(!W)return!1;
try{return!!W.$goog_Thenable}catch(l){return!1}};var Ilv,i59,mC1,TOM,wgI,AsL,O5e,NOc,q1L,xCB,MOg;_.Dx=function(W,l){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(W!=_.QR)try{var V=this;W.call(l,function(f){V.resolve_(2,f)},function(f){V.resolve_(3,f)})}catch(f){this.resolve_(3,f)}};
Ilv=function(){this.next=this.context=this.JSC$9764_onRejected=this.JSC$9764_onFulfilled=this.child=null;this.always=!1};
Ilv.prototype.reset=function(){this.context=this.JSC$9764_onRejected=this.JSC$9764_onFulfilled=this.child=null;this.always=!1};
i59=new KYB(function(){return new Ilv},function(W){W.reset()});
mC1=function(W,l,V){var f=i59.get();f.JSC$9764_onFulfilled=W;f.JSC$9764_onRejected=l;f.context=V;return f};
_.jy=function(W){if(W instanceof _.Dx)return W;var l=new _.Dx(_.QR);l.resolve_(2,W);return l};
_.eM=function(W){return new _.Dx(function(l,V){V(W)})};
TOM=function(W,l,V){Xg9(W,l,V,null)||_.NR(_.QW(l,W))};
_.YS=function(W){return new _.Dx(function(l,V){var f=W.length,r=[];if(f)for(var R=function(B,d){f--;r[B]=d;f==0&&l(r)},y=function(B){V(B)},P,n=0;n<W.length;n++)P=W[n],TOM(P,_.QW(R,n),y);
else l(r)})};
wgI=function(W){return new _.Dx(function(l){var V=W.length,f=[];if(V)for(var r=function(P,n,B){V--;f[P]=n?{fulfilled:!0,value:B}:{fulfilled:!1,reason:B};V==0&&l(f)},R,y=0;y<W.length;y++)R=W[y],TOM(R,_.QW(r,y,!0),_.QW(r,y,!1));
else l(f)})};
AsL=function(W){return new _.Dx(function(l,V){var f=W.length,r=[];if(f)for(var R=function(B){l(B)},y=function(B,d){f--;
r[B]=d;f==0&&V(r)},P,n=0;n<W.length;n++)P=W[n],TOM(P,R,_.QW(y,n));
else l(void 0)})};
_.yH=function(){var W,l,V=new _.Dx(function(f,r){W=f;l=r});
return new QUk(V,W,l)};
_.Dx.prototype.then=function(W,l,V){return Mt$(this,zR(typeof W==="function"?W:null),zR(typeof l==="function"?l:null),V)};
oN1(_.Dx);O5e=function(W,l,V,f){Z5X(W,mC1(l||_.QR,V||null,f))};
_.xS=function(W,l){l=zR(l);l=mC1(l,l);l.always=!0;Z5X(W,l);return W};
_.Dx.prototype.finally=function(W){var l=this;W=zR(W);return new _.Dx(function(V,f){O5e(l,function(r){W();V(r)},function(r){W();
f(r)})})};
_.Dx.prototype.thenCatch=function(W,l){return Mt$(this,null,zR(W),l)};
_.Dx.prototype.catch=_.Dx.prototype.thenCatch;_.Dx.prototype.cancel=function(W){if(this.state_==0){var l=new _.Eg(W);_.NR(function(){alB(this,l)},this)}};
var alB=function(W,l){if(W.state_==0)if(W.parent_){var V=W.parent_;if(V.callbackEntries_){for(var f=0,r=null,R=null,y=V.callbackEntries_;y&&(y.always||(f++,y.child==W&&(r=y),!(r&&f>1)));y=y.next)r||(R=y);r&&(V.state_==0&&f==1?alB(V,l):(R?(f=R,f.next==V.callbackEntriesTail_&&(V.callbackEntriesTail_=f),f.next=f.next.next):zKa(V),NOc(V,r,3,l)))}W.parent_=null}else W.resolve_(3,l)},Z5X=function(W,l){W.callbackEntries_||W.state_!=2&&W.state_!=3||Y1L(W);
W.callbackEntriesTail_?W.callbackEntriesTail_.next=l:W.callbackEntries_=l;W.callbackEntriesTail_=l},Mt$=function(W,l,V,f){var r=mC1(null,null,null);
r.child=new _.Dx(function(R,y){r.JSC$9764_onFulfilled=l?function(P){try{var n=l.call(f,P);R(n)}catch(B){y(B)}}:R;
r.JSC$9764_onRejected=V?function(P){try{var n=V.call(f,P);n===void 0&&P instanceof _.Eg?y(P):R(n)}catch(B){y(B)}}:y});
r.child.parent_=W;Z5X(W,r);return r.child};
_.Dx.prototype.unblockAndFulfill_=function(W){this.state_=0;this.resolve_(2,W)};
_.Dx.prototype.unblockAndReject_=function(W){this.state_=0;this.resolve_(3,W)};
_.Dx.prototype.resolve_=function(W,l){this.state_==0&&(this===l&&(W=3,l=new TypeError("xa")),this.state_=1,Xg9(l,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=l,this.state_=W,this.parent_=null,Y1L(this),W!=3||l instanceof _.Eg||xCB(this,l)))};
var Xg9=function(W,l,V,f){if(W instanceof _.Dx)return O5e(W,l,V,f),!0;if(jUL(W))return W.then(l,V,f),!0;if(_.ev(W))try{var r=W.then;if(typeof r==="function")return eKI(W,r,l,V,f),!0}catch(R){return V.call(f,R),!0}return!1},eKI=function(W,l,V,f,r){var R=!1,y=function(n){R||(R=!0,V.call(r,n))},P=function(n){R||(R=!0,f.call(r,n))};
try{l.call(W,y,P)}catch(n){P(n)}},Y1L=function(W){W.executing_||(W.executing_=!0,_.NR(W.executeCallbacks_,W))},zKa=function(W){var l=null;
W.callbackEntries_&&(l=W.callbackEntries_,W.callbackEntries_=l.next,l.next=null);W.callbackEntries_||(W.callbackEntriesTail_=null);return l};
_.Dx.prototype.executeCallbacks_=function(){for(var W;W=zKa(this);)NOc(this,W,this.state_,this.result_);this.executing_=!1};
NOc=function(W,l,V,f){if(V==3&&l.JSC$9764_onRejected&&!l.always)for(;W&&W.hadUnhandledRejection_;W=W.parent_)W.hadUnhandledRejection_=!1;if(l.child)l.child.parent_=null,q1L(l,V,f);else try{l.always?l.JSC$9764_onFulfilled.call(l.context):q1L(l,V,f)}catch(r){MOg.call(null,r)}i59.put(l)};
q1L=function(W,l,V){l==2?W.JSC$9764_onFulfilled.call(W.context,V):W.JSC$9764_onRejected&&W.JSC$9764_onRejected.call(W.context,V)};
xCB=function(W,l){W.hadUnhandledRejection_=!0;_.NR(function(){W.hadUnhandledRejection_&&MOg.call(null,l)})};
MOg=tx;_.Eg=function(W){_.VU.call(this,W)};
_.Jj(_.Eg,_.VU);_.Eg.prototype.name="cancel";var QUk=function(W,l,V){this.promise=W;this.resolve=l;this.reject=V};var ek;_.Pj=function(W,l){_.aj.call(this);this.JSC$9776_interval_=W||1;this.timerObject_=l||_.rS;this.boundTick_=(0,_.ml)(this.tick_,this);this.last_=_.d5()};
_.Jj(_.Pj,_.aj);_.t=_.Pj.prototype;_.t.enabled=!1;_.t.JSC$9778_timer_=null;_.t.setInterval=function(W){this.JSC$9776_interval_=W;this.JSC$9778_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9778_timer_&&this.stop()};
_.t.tick_=function(){if(this.enabled){var W=_.d5()-this.last_;W>0&&W<this.JSC$9776_interval_*.8?this.JSC$9778_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9776_interval_-W):(this.JSC$9778_timer_&&(this.timerObject_.clearTimeout(this.JSC$9778_timer_),this.JSC$9778_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.t.start=function(){this.enabled=!0;this.JSC$9778_timer_||(this.JSC$9778_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9776_interval_),this.last_=_.d5())};
_.t.stop=function(){this.enabled=!1;this.JSC$9778_timer_&&(this.timerObject_.clearTimeout(this.JSC$9778_timer_),this.JSC$9778_timer_=null)};
_.t.disposeInternal=function(){_.Pj.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
ek=function(W,l,V){if(typeof W==="function")V&&(W=(0,_.ml)(W,V));else if(W&&typeof W.handleEvent=="function")W=(0,_.ml)(W.handleEvent,W);else throw Error("ya");return Number(l)>2147483647?-1:_.rS.setTimeout(W,l||0)};
_.hKL=function(W){var l=null;return(new _.Dx(function(V,f){l=ek(function(){V(void 0)},W);
l==-1&&f(Error("za"))})).thenCatch(function(V){_.rS.clearTimeout(l);
throw V;})};var Ht=function(W){_.iI.call(this);this.streamzLogger=W;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9782_flushTimer=new _.Pj(this.flushInterval);this.JSC$9782_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.vt(this,this.JSC$9782_flushTimer)};
_.v(Ht,_.iI);Ht.prototype.sendIsolatedPayload=function(W){this.shouldSendIsolatedPayload=W;this.invocationLimit=1};
var S1I=function(W){W.JSC$9782_flushTimer.enabled||W.JSC$9782_flushTimer.start();W.invocationCount++;W.invocationCount>=W.invocationLimit&&W.snapshotAndFlush()};
Ht.prototype.snapshotAndFlush=function(){var W=this.metricMap.values();W=[].concat(_.QK(W)).filter(function(l){return l.cellMap.size});
W.length&&this.streamzLogger.flush(W,this.shouldSendIsolatedPayload);ENB(W);this.invocationCount=0;this.JSC$9782_flushTimer.enabled&&this.JSC$9782_flushTimer.stop()};
Ht.prototype.addNewCounter=function(W){var l=_.xk.apply(1,arguments);this.metricMap.has(W)||this.metricMap.set(W,new RKM(W,l))};
Ht.prototype.addNewEventMetric=function(W){var l=_.xk.apply(1,arguments);this.metricMap.has(W)||this.metricMap.set(W,new ttM(W,l))};
var $CZ=function(W,l){return W.disabledMetrics.has(l)?void 0:W.metricMap.get(l)};
Ht.prototype.JSC$9782_incrementCounter=function(W){this.JSC$9782_incrementCounterBy(W,1,_.xk.apply(1,arguments))};
Ht.prototype.JSC$9782_incrementCounterBy=function(W,l){var V=_.xk.apply(2,arguments),f=$CZ(this,W);f&&f instanceof RKM&&(f.JSC$9721_incrementCounterBy(l,V),S1I(this))};
Ht.prototype.record=function(W,l){var V=_.xk.apply(2,arguments),f=$CZ(this,W);f&&f instanceof ttM&&(f.record(l,V),S1I(this))};
var ENB=function(W){for(var l=0;l<W.length;l++)W[l].clear()};_.qR=function(W,l,V){V=V===void 0?{}:V;l=Error.call(this,l);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.code=W;this.metadata=V;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.v(_.qR,Error);_.qR.prototype.toString=function(){var W="RpcError("+(WSY(this.code)||String(this.code))+")";this.message&&(W+=": "+this.message);return W};_.Wle=_.rS.JSON.parse;_.hS=_.rS.JSON.stringify;_.qc=_.rS.JSON.parse;_.l1c=function(W){switch(W){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 VV9=function(W){switch(W){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var f1k,rlc=function(){};
_.Jj(rlc,_.ljn);rlc.prototype.createInstance=function(){return new XMLHttpRequest};
f1k=new rlc;_.Sk=function(W){_.aj.call(this);this.headers=new Map;this.JSC$9791_xmlHttpFactory_=W||null;this.JSC$9791_active_=!1;this.JSC$9791_xhr_=null;this.JSC$9791_lastUri_="";this.JSC$9791_lastErrorCode_=0;this.JSC$9791_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9791_timeoutId_=null;this.responseType_="";this.JSC$9791_withCredentials_=!1};
_.Jj(_.Sk,_.aj);var RO$=/^https?$/i,tVI=["POST","PUT"],sZB=[],W38=function(W,l,V,f,r,R,y){var P=new _.Sk;sZB.push(P);l&&P.listen("complete",l);P.listenOnce("ready",P.cleanupSend_);R&&(P.timeoutInterval_=Math.max(0,R));y&&(P.JSC$9791_withCredentials_=y);P.send(W,V,f,r)};
_.Sk.prototype.cleanupSend_=function(){this.dispose();_.aY(sZB,this)};
_.Sk.prototype.send=function(W,l,V,f){if(this.JSC$9791_xhr_)throw Error("Aa`"+this.JSC$9791_lastUri_+"`"+W);l=l?l.toUpperCase():"GET";this.JSC$9791_lastUri_=W;this.JSC$9791_lastError_="";this.JSC$9791_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9791_active_=!0;this.JSC$9791_xhr_=this.createXhr();this.JSC$9791_xhr_.onreadystatechange=zR((0,_.ml)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9791_xhr_.open(l,String(W),!0),this.inOpen_=!1}catch(y){Llc(this,y);return}W=V||"";V=new Map(this.headers);
if(f)if(Object.getPrototypeOf(f)===Object.prototype)for(var r in f)V.set(r,f[r]);else if(typeof f.keys==="function"&&typeof f.get==="function"){r=_.L(f.keys());for(var R=r.next();!R.done;R=r.next())R=R.value,V.set(R,f.get(R))}else throw Error("Ba`"+String(f));f=Array.from(V.keys()).find(function(y){return"content-type"==y.toLowerCase()});
r=_.rS.FormData&&W instanceof _.rS.FormData;!_.Oz(tVI,l)||f||r||V.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");l=_.L(V);for(f=l.next();!f.done;f=l.next())V=_.L(f.value),f=V.next().value,V=V.next().value,this.JSC$9791_xhr_.setRequestHeader(f,V);this.responseType_&&(this.JSC$9791_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9791_xhr_&&this.JSC$9791_xhr_.withCredentials!==this.JSC$9791_withCredentials_&&(this.JSC$9791_xhr_.withCredentials=this.JSC$9791_withCredentials_);
try{this.JSC$9791_timeoutId_&&(clearTimeout(this.JSC$9791_timeoutId_),this.JSC$9791_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9791_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9791_xhr_.send(W),this.inSend_=!1}catch(y){Llc(this,y)}};
_.Sk.prototype.createXhr=function(){return this.JSC$9791_xmlHttpFactory_?this.JSC$9791_xmlHttpFactory_.createInstance():f1k.createInstance()};
_.Sk.prototype.timeout_=function(){typeof Ubj!="undefined"&&this.JSC$9791_xhr_&&(this.JSC$9791_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9791_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var Llc=function(W,l){W.JSC$9791_active_=!1;W.JSC$9791_xhr_&&(W.inAbort_=!0,W.JSC$9791_xhr_.abort(),W.inAbort_=!1);W.JSC$9791_lastError_=l;W.JSC$9791_lastErrorCode_=5;ylZ(W);g9Z(W)},ylZ=function(W){W.errorDispatched_||(W.errorDispatched_=!0,W.dispatchEvent("complete"),W.dispatchEvent("error"))};
_.Sk.prototype.abort=function(W){this.JSC$9791_xhr_&&this.JSC$9791_active_&&(this.JSC$9791_active_=!1,this.inAbort_=!0,this.JSC$9791_xhr_.abort(),this.inAbort_=!1,this.JSC$9791_lastErrorCode_=W||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),g9Z(this))};
_.Sk.prototype.disposeInternal=function(){this.JSC$9791_xhr_&&(this.JSC$9791_active_&&(this.JSC$9791_active_=!1,this.inAbort_=!0,this.JSC$9791_xhr_.abort(),this.inAbort_=!1),g9Z(this,!0));_.Sk.superClass_.disposeInternal.call(this)};
_.Sk.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)PIX(this);else this.onReadyStateChangeEntryPoint_()};
_.Sk.prototype.onReadyStateChangeEntryPoint_=function(){PIX(this)};
var PIX=function(W){if(W.JSC$9791_active_&&typeof Ubj!="undefined")if(W.inSend_&&_.Ef(W)==4)setTimeout(W.onReadyStateChange_.bind(W),0);else if(W.dispatchEvent("readystatechange"),W.isComplete()){W.JSC$9791_active_=!1;try{if(W.isSuccess())W.dispatchEvent("complete"),W.dispatchEvent("success");else{W.JSC$9791_lastErrorCode_=6;try{var l=_.Ef(W)>2?W.JSC$9791_xhr_.statusText:""}catch(V){l=""}W.JSC$9791_lastError_=l+" ["+W.getStatus()+"]";ylZ(W)}}finally{g9Z(W)}}},g9Z=function(W,l){if(W.JSC$9791_xhr_){W.JSC$9791_timeoutId_&&
(clearTimeout(W.JSC$9791_timeoutId_),W.JSC$9791_timeoutId_=null);
var V=W.JSC$9791_xhr_;W.JSC$9791_xhr_=null;l||W.dispatchEvent("ready");try{V.onreadystatechange=null}catch(f){}}};
_.Sk.prototype.isActive=function(){return!!this.JSC$9791_xhr_};
_.Sk.prototype.isComplete=function(){return _.Ef(this)==4};
_.Sk.prototype.isSuccess=function(){var W=this.getStatus(),l;if(!(l=VV9(W))){if(W=W===0)W=dIB(String(this.JSC$9791_lastUri_)),W=!RO$.test(W);l=W}return l};
_.Ef=function(W){return W.JSC$9791_xhr_?W.JSC$9791_xhr_.readyState:0};
_.t=_.Sk.prototype;_.t.getStatus=function(){try{return _.Ef(this)>2?this.JSC$9791_xhr_.status:-1}catch(W){return-1}};
_.t.getResponseText=function(){try{return this.JSC$9791_xhr_?this.JSC$9791_xhr_.responseText:""}catch(W){return""}};
_.t.getResponse=function(){try{if(!this.JSC$9791_xhr_)return null;if("response"in this.JSC$9791_xhr_)return this.JSC$9791_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9791_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9791_xhr_)return this.JSC$9791_xhr_.mozResponseArrayBuffer}return null}catch(W){return null}};
_.t.getAllResponseHeaders=function(){return this.JSC$9791_xhr_&&_.Ef(this)>=2?this.JSC$9791_xhr_.getAllResponseHeaders()||"":""};
_.t.getLastError=function(){return typeof this.JSC$9791_lastError_==="string"?this.JSC$9791_lastError_:String(this.JSC$9791_lastError_)};var RVj=function(){};
RVj.prototype.send=function(W,l,V){l=l===void 0?function(){}:l;
V=V===void 0?function(){}:V;
W38(W.url,function(f){f=f.target;f.isSuccess()?l(f.getResponseText()):V(f.getStatus())},W.requestType,W.body,W.requestHeaders,W.timeoutMillis,W.withCredentials)};
RVj.prototype.getTransmissionType=function(){return 1};var n9M=function(W,l){this.ikg=W;this.event=l;this.startTime=Ks()},PP4;
n9M.prototype.done=function(){this.ikg.tC(this.event,Ks()-this.startTime)};
var $S=function(){Fd.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.v($S,Fd);_.WD=function(W,l,V){var f=Ks();l=l();W.tC(V,Ks()-f);return l};
PP4=function(){$S.apply(this,arguments)};
_.v(PP4,$S);_.t=PP4.prototype;_.t.txn=function(){};
_.t.ti=function(){};
_.t.tC=function(){};
_.t.logError=function(){};
_.t.bJ=function(){};
_.t.eB9=function(){};
_.t.c5F=function(){};
_.t.sWu=function(){};
var CIk=function(W){$S.call(this);var l=this;this.c5=W;this.TEST_ONLY={gve:function(){return l.c5},
getExperimentIds:function(){return l.c5.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void l.c5.dispose()})};
_.v(CIk,$S);_.t=CIk.prototype;_.t.update=function(W){this.c5.dispose();this.c5=W};
_.t.ti=function(W){this.c5.ti(W)};
_.t.tC=function(W,l){this.c5.tC(W,l)};
_.t.logError=function(W){this.c5.logError(W)};
_.t.bJ=function(){this.c5.bJ()};
_.t.eB9=function(W){this.c5.eB9(W)};
_.t.c5F=function(W){this.c5.c5F(W)};
_.t.sWu=function(W){this.c5.sWu(W)};
_.t.txn=function(W){this.c5.txn(W)};
var clv=function(W,l){_.iI.call(this);var V=this;this.callback=W;this.iBr=l;this.g2x=-l;this.addOnDisposeCallback(function(){return void clearTimeout(V.timer)})};
_.v(clv,_.iI);var Bde=function(W){if(W.timer===void 0){var l=Math.max(0,W.g2x+W.iBr-Ks());W.timer=setTimeout(function(){try{W.callback()}finally{W.g2x=Ks(),W.timer=void 0}},l)}},dsv=function(W,l){$S.call(this);
this.metrics=W;this.qM=l};
_.v(dsv,$S);_.t=dsv.prototype;_.t.txn=function(W){this.metrics.oOn.record(W,this.qM)};
_.t.ti=function(W){this.metrics.eventCount.increment(W,this.qM)};
_.t.tC=function(W,l){this.metrics.nFr.record(l,W,this.qM)};
_.t.logError=function(W){this.metrics.errorCount.increment(W,this.qM)};
_.t.eB9=function(W){this.metrics.sG9.increment(W,this.qM)};
_.t.c5F=function(W){this.metrics.hZg.increment(W,this.qM)};
_.t.sWu=function(W){this.metrics.cJw.increment(W,this.qM)};
var nYY=function(W,l){l=l===void 0?[]:l;var V={qM:W.qM||"_",mLE:W.mLE||[],cWx:W.cWx|0,destinationUrl:W.destinationUrl,i76:W.i76||function(){},
hO9:W.hO9||function(R,y){return gY8(R,y,V.i76,V.destinationUrl)}},f=V.hO9("51",V.mLE.concat(l));
dsv.call(this,{oOn:new Eke(f),errorCount:new Vua(f),eventCount:new WQ$(f),nFr:new l7L(f),evC:new $II(f),sG9:new f7B(f),hZg:new rLM(f),cJw:new R6B(f)},V.qM);var r=this;this.TEST_ONLY={getExperimentIds:function(){return r.options.mLE.concat(r.nwg).sort(function(R,y){return R-y})}};
this.options=V;this.service=f;this.qjj=!W.hO9;this.flushDebouncer=new clv(function(){return void r.service.snapshotAndFlush()},V.cWx);
this.addOnDisposeCallback(function(){r.flushDebouncer.dispose();r.qjj&&r.service.dispose()});
(this.nwg=l.slice()).sort(_.bqv)};
_.v(nYY,dsv);nYY.prototype.bJ=function(){Bde(this.flushDebouncer)};var umq=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(umq,_.yP);_.kKF=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(_.kKF,_.yP);var Vt=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W,0,Vt.messageId)};
_.v(Vt,_.yP);var JlX=_.ZMU(Vt);Vt.messageId="bfkj";var ACv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(ACv,_.yP);var Dsv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Dsv,_.yP);var Usk=_.FX(Dsv);_.mg=function(){var W=this;this.promise=new Promise(function(l,V){W.resolve=l;W.reject=V})};_.lc=function(W){_.iI.call(this);var l=this;this.q42=Math.floor(Math.random()*200);this.gXN=new Dsv;if("challenge"in W&&JlX(W.challenge)){var V=_.aQ(W.challenge,4,void 0,IX);var f=_.aQ(W.challenge,5,void 0,IX);_.aQ(W.challenge,7,void 0,IX)&&(this.gXN=Usk(_.aQ(W.challenge,7,void 0,IX)))}else V=W.program,f=W.globalName;this.addOnDisposeCallback(function(){var H,p,X;return _.g(function(w){if(w.nextAddress==1)return w.yield(l.dC6,2);H=w.yieldResult;p=H.rFC;(X=p)==null||X();_.ju(w)})});
this.zh=CPz(W.rYJ||{},this.gXN);_.vt(this,this.zh);var r=new _.mg;this.dC6=r.promise;this.zh.ti("t");var R=this.zh.share(),y=new n9M(R,"t"),P=function(H,p,X,w){if(!l.zh.isDisposed()){var O="k";p?O="h":X&&(O="u");O!=="k"?w!==0&&(l.zh.ti(O),l.zh.tC(O,H)):l.q42<=0?(l.zh.ti(O),l.zh.tC(O,H),l.q42=Math.floor(Math.random()*200)):l.q42--}},n=function(H,p,X,w){Promise.resolve().then(function(){y.done();
R.bJ();R.dispose();r.resolve({act:H,rFC:p,cQH:X,zC4:w})})};
if(!_.rS[f])throw this.zh.logError(25),Error("Ca");if(!_.rS[f].a)throw this.zh.logError(26),Error("Da");try{var B=_.rS[f].a;f=[];for(var d=[],J=Qhz(this.gXN),D=0;D<J.length;D++)f.push(J[D]),d.push(1);var u=Mig(this.gXN);for(J=0;J<u.length;J++)f.push(u[J]),d.push(2);this.iFO=_.L(B(V,n,!0,W.fL8,P,[f,d],_.aQ(this.gXN,5))).next().value;this.wwq=r.promise.then(function(){})}catch(H){throw this.zh.logError(28),H;
}};
_.v(_.lc,_.iI);_.lc.prototype.snapshot=function(W){if(this.isDisposed())throw Error("Ea");this.zh.ti("n");var l=this.zh.share();return this.dC6.then(function(V){var f=V.act;return new Promise(function(r){var R=new n9M(l,"n");f(function(y){R.done();l.txn(y.length);l.bJ();l.dispose();r(y)},[W.nf,
W.pE6,W.sMU,W.awT])})})};
_.lc.prototype.peN=function(W){this.dC6.then(function(l){var V;(V=l.cQH)==null||V(W)})};
_.lc.prototype.yi9=function(W,l){return this.dC6.then(function(V){var f;return(f=V.zC4)==null?void 0:f(W,l,!1)})};
_.lc.prototype.iDq=function(){return this.zh.share()};var u7e=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(u7e,_.yP);var Ltz=_.ZMU(u7e);var kzZ=function(){this.promises={};this.on2=null},v9c=function(){kzZ.instance||(kzZ.instance=new kzZ);
return kzZ.instance},KlZ=function(W,l){return Hs9(W,_.yy(l,umq,1,IX),_.yy(l,_.kKF,2,IX),_.aQ(l,3,void 0,IX))},Hs9=function(W,l,V,f){if(!l&&!V)return Promise.resolve();
if(!f)return DL6(l,V);var r;(r=W.promises)[f]||(r[f]=new Promise(function(R,y){DL6(l,V).then(function(){W.on2=f;R()},function(P){delete W.promises[f];
y(P)})}));
return W.promises[f]};var FlB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(FlB,_.yP);var Gz9=function(W,l){return _.ft(W,1,l)},bse=function(W,l){return _.ft(W,2,l)};var V3=function(W){_.iI.call(this);var l=this;this.options=W;this.nbw=new _.mg;this.wwq=this.nbw.promise;this.kb9=new _.mg;this.oHy=1;this.d2n=new _.mg;this.ano=[];this.pCu=W.pCu||function(){};
this.uXu=new CIk(CPz(W.rYJ||{}));ptc(this,W.b3,W.aYi,W.l8C,W.s9j,Object.assign({},o9v,W.vS9||{}));this.addOnDisposeCallback(function(){return void jZv(l)})};
_.v(V3,_.iI);V3.prototype.snapshot=function(W){var l=this;return _.g(function(V){switch(V.nextAddress){case 1:if(l.isDisposed())throw Error("Ea");if(l.cA||l.mN2){V.jumpTo(2);break}return V.yield(l.kb9.promise,2);case 2:if(!l.cA){V.jumpTo(4);break}return V.yield(l.cA.snapshot(W),5);case 5:return V.return(V.yieldResult);case 4:throw l.mN2;}})};
var I1Z=function(W){var l;return _.g(function(V){if(W.isDisposed())throw Error("Ea");(l=W.ib)!=null&&(l.endTimeMs=0,l.resolver(1));return V.yield(W.d2n.promise,0)})},jZv=function(W){W.mN2=Error("Ga");
W.kb9.resolve();Zpq(W.nbw.promise);W.nbw.reject(Error("Ga"));W.uXu.dispose();Promise.all(W.ano).then(function(){var V;return _.g(function(f){(V=W.cA)==null||V.dispose();W.cA=void 0;_.ju(f)})});
W.ano=[];var l;(l=W.ib)!=null&&(l.endTimeMs=0,l.resolver(1));Zpq(W.d2n.promise);W.d2n.reject(Error("Ga"))};
V3.prototype.peN=function(W){var l,V;(l=this.cA)==null||(V=l.peN)==null||V.call(l,W)};
V3.prototype.yi9=function(W,l){var V,f,r;return(r=(V=this.cA)==null?void 0:(f=V.yi9)==null?void 0:f.call(V,W,l))!=null?r:Promise.resolve()};
var isk=function(W,l){var V=W.pCu;W.pCu=function(){V();l()}},msk=function(W,l){W.isDisposed()||(W.cA=l,W.uXu.update(l.iDq()),W.kb9.resolve(),W.nbw.resolve(void 0),W.pCu())};
V3.prototype.handleError=function(W){if(!this.isDisposed()){this.mN2=W;this.kb9.resolve();var l,V;(V=(l=this.options).unO)==null||V.call(l,W)}};
var XtL=function(W,l){l&&(Promise.all(W.ano).then(function(){return void l.dispose()}),W.ano=[])},fC=function(W,l){W.oHy=l;
var V,f;(f=(V=W.options).eJH)==null||f.call(V,l)},Tdv=function(W){W.isDisposed()||(W.d2n.resolve(),W.d2n=new _.mg)},ptc=function(W,l,V,f,r,R){f=f===void 0?v9c():f;
r=r===void 0?Promise.resolve(void 0):r;var y,P,n,B,d,J,D,u,H,p,X,w;_.g(function(O){switch(O.nextAddress){case 1:return O.yield(0,3);case 3:P=null;if(!y){O.jumpTo(6);break}fC(W,7);_.HG(O,7);return O.yield(oZ(y.snapshot({}),R.tQj,function(){return Promise.resolve("E:CTO")}),9);
case 9:P=O.yieldResult;_.qL(O,6);break;case 7:_.pc(O),P="E:UCE";case 6:n=void 0,B=y?R.wLF:R.lWv,d=new D1(B,R.qbt,R.xnw,R.tp3),J=1;case 10:if(!(J<=R.maxAttempts)){O.jumpTo(12);break}if(J===1){O.jumpTo(13);break}fC(W,0);W.ib=new wta(d.getValue(),R.oY8,R.nYt);return O.yield(W.ib.promise,14);case 14:D=O.yieldResult,W.ib=void 0,D===1?(J=1,d.reset()):e61(d);case 13:_.HG(O,15);u=void 0;if(V){u=V;O.jumpTo(17);break}fC(W,5);H=f.on2;return O.yield(oZ(Alk(l,H,P),R.x64,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:u=O.yieldResult;case 17:return fC(W,3),O.yield(oZ(KlZ(f,u),R.znv,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return fC(W,8),O.yield(r,20);case 20:return p=new _.lc({challenge:u,rYJ:W.options.rYJ,fL8:W.options.fL8}),O.yield(oZ(p.wwq,R.aJe,function(){return Promise.reject(Error("Ja"))}),21);
case 21:n=p;O.jumpTo(12);break;case 15:X=_.pc(O),W.handleError(X),Tdv(W);case 11:J++;O.jumpTo(10);break;case 12:if(W.isDisposed()){O.jumpTo(5);break}n&&(V=void 0,XtL(W,y),y=n,msk(W,n),Tdv(W));fC(W,2);W.ib=new wta(R.ggR,R.oY8,R.nYt);return O.yield(W.ib.promise,22);case 22:W.ib=void 0;if(W.isDisposed()){O.jumpTo(5);break}O.jumpTo(3);break;case 5:(w=y)==null||w.dispose(),_.ju(O)}})};
V3.prototype.iDq=function(){return this.uXu.share()};
var o9v={ggR:432E5,oY8:3E5,nYt:10,tQj:1E4,x64:3E4,znv:3E4,aJe:6E4,lWv:1E3,wLF:6E4,qbt:6E5,xnw:.25,tp3:2,maxAttempts:10},wta=function(W,l,V){var f=this;this.endTimeMs=Date.now()+W;this.promise=new Promise(function(R){f.resolver=R});
var r=function(){var R=f.endTimeMs-Date.now();R<=V?f.resolver(0):setTimeout(r,Math.min(R,l))};
r()};var QZ9,k4z=(QZ9=Math.imul)!=null?QZ9:function(W,l){return W*l|0},jV=[196,
200,224,18],rw=function(W,l,V){V=V===void 0?[]:V;this.maxItems=W;this.zK=l===void 0?0:l;this.uc=V},MV9=function(W){var l=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!l)return new rw(W);var V=l.split(",");if(V.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new rw(W);l=V.slice(1);l.length===1&&l[0]===""&&(l=[]);V=Number(V[0]);return isNaN(V)||V<0||V>l.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new rw(W)):new rw(W,V,l)};
rw.prototype.serialize=function(){return String(this.zK)+","+this.uc.join()};
rw.prototype.insert=function(W,l){var V=void 0;if(this.uc[this.zK]!==W){var f=this.uc.indexOf(W);f!==-1?(this.uc.splice(f,1),f<this.zK&&this.zK--,this.uc.splice(this.zK,0,W)):(V=this.uc[this.zK],this.uc[this.zK]=W)}this.zK=(this.zK+1)%this.maxItems;W=ULz("iU5q-!O9@$",this.serialize());V&&W&&l(V);return W};
var ZsL=function(W,l){this.f9Y=l;try{var V=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(f){V=!1}V&&(this.index=MV9(W))},OsZ=function(W,l,V,f,r){var R=W.index?_.WD(W.f9Y,function(){return FSz(W.index,H7U(l),V,f,r)},"W"):"u";
W.f9Y.sWu(R)},a1L=function(W,l,V){var f=_.L(W.index?_.WD(W.f9Y,function(){return G4j(H7U(l),V)},"R"):["u"]),r=f.next().value;
f=f.next().value;W.f9Y.c5F(r);return f};var zOM={toString:function(W){var l=[],V=0;W-=-2147483648;l[V++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(W%52);for(W=Math.floor(W/52);W>0;)l[V++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(W%62),W=Math.floor(W/62);return l.join("")}};var xs9=function(W){W=Ndk(W);for(var l=2654435769,V=2654435769,f=314159265,r=W.length,R=r,y=0,P=function(){l-=V;l-=f;l^=f>>>13;V-=f;V-=l;V^=l<<8;f-=l;f-=V;f^=V>>>13;l-=V;l-=f;l^=f>>>12;V-=f;V-=l;V^=l<<16;f-=l;f-=V;f^=V>>>5;l-=V;l-=f;l^=f>>>3;V-=f;V-=l;V^=l<<10;f-=l;f-=V;f^=V>>>15};R>=12;R-=12,y+=12)l+=Yc$(W,y),V+=Yc$(W,y+4),f+=Yc$(W,y+8),P();
f+=r;switch(R){case 11:f+=W[y+10]<<24;case 10:f+=W[y+9]<<16;case 9:f+=W[y+8]<<8;case 8:V+=W[y+7]<<24;case 7:V+=W[y+6]<<16;case 6:V+=W[y+5]<<8;case 5:V+=W[y+4];case 4:l+=W[y+3]<<24;case 3:l+=W[y+2]<<16;case 2:l+=W[y+1]<<8;case 1:l+=W[y]}P();return zOM.toString(f)},Ndk=function(W){for(var l=[],V=0;V<W.length;V++)l.push(W.charCodeAt(V));
return l},Yc$=function(W,l){return W[l]+(W[l+1]<<8)+(W[l+2]<<16)+(W[l+3]<<24)};var Rr=function(W){_.iI.call(this);this.bR=W;this.tvs=new _.mg};
_.v(Rr,_.iI);var eOL=function(W,l){var V=setTimeout(function(){W.tvs.resolve()},l);
W.addOnDisposeCallback(function(){return void clearTimeout(V)})};
Rr.prototype.pFY=function(W,l){var V=this.ho(W);l==null||l(V);return _.WD(this.bR,function(){return _.Xw(V,2)},this.z19)};
var qcL=function(W,l,V,f){return _.WD(W.bR,function(){return V?W.pFY(l,f):W.ho(l,f)},W.unN)},hOe=function(W,l,V,f){Rr.call(this,W);
this.yb4=l;this.gGg=V;this.unN="m";this.z19="x";this.hzw=0;eOL(this,f)};
_.v(hOe,Rr);hOe.prototype.ho=function(W,l){var V=this;this.bR.ti(this.unN);++this.hzw>=this.gGg&&this.tvs.resolve();var f=W();W=_.WD(this.bR,function(){return V.yb4(f)},"C");
if(W===void 0)throw new HW(17,"YNJ:Undefined");if(!(W instanceof Uint8Array))throw new HW(18,"ODM:Invalid");l==null||l(W);return W};
var Sce=function(W,l,V){Rr.call(this,W);this.wSF=l;this.unN="f";this.z19="z";eOL(this,V)};
_.v(Sce,Rr);Sce.prototype.ho=function(){return this.wSF};
var E9a=function(W,l,V){Rr.call(this,W);this.eMg=l;this.unN="w";this.z19="z";eOL(this,V)};
_.v(E9a,Rr);E9a.prototype.ho=function(){var W=this;return _.WD(this.bR,function(){return _.$z(W.eMg)},"d")};
E9a.prototype.pFY=function(){return this.eMg};
var $sX=function(W,l){Rr.call(this,W);this.error=l;this.unN="e";this.z19="y"};
_.v($sX,Rr);var W1Z=function(W,l){var V=(l(W.error.message)+":"+l(W.error.stack)).substring(0,2048);l=V.length+1;V=b7g(V);var f=new Uint8Array(4+V.length);f.set([42,l&127|128,l>>7,W.error.code]);f.set(V,4);return f};
$sX.prototype.ho=function(){if(this.mno)return this.mno;this.mno=W1Z(this,function(W){return"_"+xs9(W)});
return W1Z(this,function(W){return W})};
var lza=function(W,l,V){Rr.call(this,W);this.bOt=l;this.clientState=V;this.unN="S";this.z19="q"};
_.v(lza,Rr);lza.prototype.ho=function(){var W=Math.floor(Date.now()/1E3),l=[Math.random()*255,Math.random()*255],V=l.concat([this.bOt&255,this.clientState],[W>>24&255,W>>16&255,W>>8&255,W&255]);W=new Uint8Array(2+V.length);W[0]=34;W[1]=V.length;W.set(V,2);V=W.subarray(2);for(var f=l=l.length;f<V.length;++f)V[f]^=V[f%l];this.bR.eB9(this.clientState);return W};var Vme={zXj:3E4,tow:2E4},td=function(W){_.iI.call(this);var l=this;this.vU4=new _.mg;this.eIR=0;this.rB=void 0;this.state=2;this.vm=W.vm;this.b3=W.b3;this.vS9=Object.assign({},Vme,W.vS9||{});this.fS=W.vm.iDq();var V;this.onError=(V=W.onError)!=null?V:function(){};
this.tqR=W.tqR||!1;if(fzX(W)){var f=this.vm;this.gry=function(){return I1Z(f).catch(function(y){y=l.reportError(new HW(l.cd?20:32,"TRG:Disposed",y));l.rB=y;var P;(P=l.cd)==null||P.dispose();l.cd=void 0;l.vU4.reject(y)})};
isk(f,function(){return void r4c(l)});
f.oHy===2&&r4c(this)}else this.gry=W.r6e,r4c(this);var r=this.fS.share();r.ti("o");var R=new n9M(r,"o");this.vU4.promise.then(function(){R.done();r.bJ();r.dispose()},function(){return void r.dispose()});
this.addOnDisposeCallback(function(){l.cd?(l.cd.dispose(),l.cd=void 0):l.rB?l.fS.bJ():(l.rB=l.reportError(new HW(32,"TNP:Disposed")),l.fS.bJ(),l.vU4.reject(l.rB))});
_.vt(this,this.fS)};
_.v(td,_.iI);td.prototype.drG=function(){return this.vU4.promise};
var Rak=function(W,l){if(!(l instanceof HW))if(l instanceof _.qR){var V=Error(l.toString());V.stack=l.stack;l=new HW(11,"EBH:Error",V)}else l=new HW(12,"BSO:Unknown",l);return W.reportError(l)},r4c=function(W){var l,V,f,r,R,y,P,n,B,d,J,D,u,H,p;
return _.g(function(X){switch(X.nextAddress){case 1:l=void 0;W.eIR++;V=new _.mg;W.vm instanceof V3&&W.vm.ano.push(V.promise);if(!W.tqR){X.jumpTo(2);break}f=new _.mg;setTimeout(function(){return void f.resolve()});
return X.yield(f.promise,2);case 2:return r=W.fS.share(),_.HG(X,4,5),W.state=5,R={},y=[],X.yield(oZ(W.vm.snapshot({nf:R,sMU:y}),W.vS9.tow,function(){return Promise.reject(new HW(15,"MDA:Timeout"))}),7);
case 7:P=X.yieldResult;if(W.isDisposed())throw new HW(W.cd?20:32,"MDA:Disposed");n=y[0];W.state=6;return X.yield(oZ(tmI(W.b3,P),W.vS9.zXj,function(){return Promise.reject(new HW(10,"BWB:Timeout"))}),8);
case 8:B=X.yieldResult;if(W.isDisposed())throw new HW(W.cd?20:32,"BWB:Disposed");W.state=7;l=_.WD(r,function(){var O=siL(W,B,V,n);O.tvs.promise.then(function(){return void W.gry()});
return O},"i");
case 5:_.Ff(X);r.dispose();_.bM(X,6);break;case 4:d=_.pc(X);(J=l)==null||J.dispose();if(!W.rB){D=Rak(W,d);V.resolve();var w;if(w=W.vm instanceof V3&&W.eIR<2)a:if(d instanceof HW)w=d.code!==32&&d.code!==20&&d.code!==10;else{if(d instanceof _.qR)switch(d.code){case 2:case 13:case 14:case 4:break;default:w=!1;break a}w=!0}if(w)return u=(1+Math.random()*.25)*(W.cd?6E4:1E3),H=setTimeout(function(){return void W.gry()},u),W.addOnDisposeCallback(function(){return void clearTimeout(H)}),X.return();
W.rB=D}r.logError(W.cd?13:14);W.vU4.reject(W.rB);return X.return();case 6:W.state=8,W.eIR=0,(p=W.cd)==null||p.dispose(),W.cd=l,W.vU4.resolve(),_.ju(X)}})},siL=function(W,l,V,f){var r=ZK8(l,2)*1E3;
if(r<=0)throw new HW(31,"TTM:Invalid");if(_.aQ(l,4))return new E9a(W.fS,_.aQ(l,4),r);if(!ZK8(l,3))return new Sce(W.fS,HKx(_.mZ(l,1)),r);if(!f)throw new HW(4,"PMD:Undefined");f=f(HKx(_.mZ(l,1)));if(!(f instanceof Function))throw new HW(16,"APF:Failed");W.qL4=Math.floor((Date.now()+r)/1E3);W=new hOe(W.fS,f,ZK8(l,3),r);W.addOnDisposeCallback(function(){return void V.resolve()});
return W};
td.prototype.ho=function(W){return L1a(this,Object.assign({},W),!1)};
td.prototype.pFY=function(W){return L1a(this,Object.assign({},W),!0)};
td.prototype.i5o=function(W){if(W>150)return!1;try{return this.cache=new ZsL(W,this.fS),!0}catch(l){return this.reportError(new HW(22,"GBJ:init",l)),!1}};
td.prototype.reportError=function(W){this.fS.logError(W.code);this.onError(W);return W};
var y4c=function(W,l){l=l instanceof HW?l:new HW(5,"TVD:error",l);return W.reportError(l)},L1a=function(W,l,V){try{if(W.isDisposed())throw new HW(21,"BNT:disposed");
if(!W.cd&&W.rB)throw W.rB;var f,r;return(r=(f=gWe(W,l,V))!=null?f:PW$(W,l,V))!=null?r:nWc(W,l,V)}catch(R){if(!l.qmx)throw y4c(W,R);return CWZ(W,V,R)}},gWe=function(W,l,V){var f;
return(f=W.cd)==null?void 0:qcL(f,function(){return c4L(W,l)},V,function(r){var R;
if(W.cd instanceof hOe&&((R=l.zv)==null?0:R.rTw))try{var y;(y=W.cache)==null||OsZ(y,c4L(W,l),r,l.zv.nGq,W.qL4-120)}catch(P){W.reportError(new HW(24,"ELX:write",P))}})},PW$=function(W,l,V){var f;
if((f=l.zv)!=null&&f.uNF)try{var r,R=(r=W.cache)==null?void 0:a1L(r,c4L(W,l),l.zv.nGq);return R?V?_.WD(W.fS,function(){return _.Xw(R,2)},"a"):R:void 0}catch(y){W.reportError(new HW(23,"RXO:read",y))}},nWc=function(W,l,V){var f={stack:[],
error:void 0,hasError:!1};try{if(!l.lMS)throw new HW(29,"SDF:notready");return qcL(FvF(f,new lza(W.fS,0,W.state)),function(){return c4L(W,l)},V)}catch(r){f.error=r,f.hasError=!0}finally{GAj(f)}},CWZ=function(W,l,V){var f={stack:[],
error:void 0,hasError:!1};try{var r=y4c(W,V);return qcL(FvF(f,new $sX(W.fS,r)),function(){return[]},l)}catch(R){f.error=R,f.hasError=!0}finally{GAj(f)}},c4L=function(W,l){return l.y4E?l.y4E:l.nf?_.WD(W.fS,function(){return l.y4E=b7g(l.nf)},"c"):[]},fzX=function(W){return X9(function(l){if(!g9(l))return!1;
for(var V=_.L(Object.entries(W)),f=V.next();!f.done;f=V.next()){var r=_.L(f.value);f=r.next().value;r=r.next().value;if(!(f in l)){if(r.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!r(l[f]))return!1}return!0})}({vm:function(W){return X9(function(l){return l instanceof W})}(V3)},"");var B9a=function(){var W=_.oD();this.JSC$9909_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",ct("cookie_enabled"),ct("cookie_3p_enabled"),_.dd("browser"))};
B9a.prototype.increment=function(W,l,V){this.JSC$9909_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",W,l,V)};
var c8j=function(){var W=_.oD();this.JSC$9933_streamzService=W;W.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",Bt("tick"),ct("from_st_cookie"))};
c8j.prototype.increment=function(W,l){this.JSC$9933_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",W,l)};
var d_I=function(){var W=_.oD();this.JSC$9939_streamzService=W;W.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.dd("status"))};
d_I.prototype.increment=function(W){this.JSC$9939_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",W)};
var J4L=function(){var W=_.oD();this.JSC$9942_streamzService=W;W.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.dd("stage"),ct("is_using_ytd_player"),ct("has_expandable_tiles"))};
J4L.prototype.increment=function(W,l,V){this.JSC$9942_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",W,l,V)};
var D_M=function(){var W=_.oD();this.JSC$9945_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/response_signature",_.dd("check_status"))};
D_M.prototype.increment=function(W){this.JSC$9945_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/web/response_signature",W)};
var U_B=function(){var W=_.oD();this.JSC$9948_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.dd("sig"),Bt("de"))};
U_B.prototype.increment=function(W,l){this.JSC$9948_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/web/e_sig_log",W,l)};
var ucX=function(){var W=_.oD();this.JSC$9951_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.dd("sig"),Bt("de"))};
ucX.prototype.increment=function(W,l){this.JSC$9951_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/web/e_sig_en",W,l)};
_.k_Z=function(){var W=_.oD();this.JSC$9954_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.dd("action"))};
_.k_Z.prototype.increment=function(W){this.JSC$9954_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/web/enforcement_intent",W)};var sr=window;var vW$=(new Date).getTime();_.MC.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.MC.createSet("action","cite","data","formaction","href","manifest","poster","src");var HWe=function(W){this.servicePromise_=W;W.then((0,_.ml)(function(){},this),function(){},this)},K1L=function(W,l,V){W.servicePromise_.then(function(f){var r=f[l];
if(!r)throw Error("Ka`"+l);return r.apply(f,V)})},bWk=function(W,l,V){for(var f=Array(arguments.length-2),r=2;r<arguments.length;r++)f[r-2]=arguments[r];
r=F1M(W,l).then(function(R){return R.apply(null,f)},function(R){R=Error("La`"+l+"`"+W,{cause:R});
delete G_L[l];return _.eM(R)});
return new HWe(r)},G_L={},F1M=function(W,l){var V=G_L[l];
if(V)return V;V=(V=_.Y2(l))?_.jy(V):(new _.Dx(function(f,r){var R=(new zQ(document)).createElement("SCRIPT");R.async=!0;_.tL(R,_.i7(vZI(W)));R.onload=R.onreadystatechange=function(){R.readyState&&R.readyState!="loaded"&&R.readyState!="complete"||f()};
R.onerror=function(y){r(Error("Ma`"+l+"`"+W,{cause:y}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(R)})).then(function(){var f=_.Y2(l);
if(!f)throw Error("Na`"+l+"`"+W);return f});
return G_L[l]=V};var p4Z={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},jiL=function(){var W=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=pAq(function(){return _.g(function(l){if(l.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?l.return(Promise.resolve()):l.yield(oWc(W),2);W.rsaForList.length>
0&&document.addEventListener("click",W.requestAccessForHelpPanel);_.ju(l)})});
this.requestAccessForHelpPanel=function(){if(!(W.rsaForPromises.length>0)){for(var l=_.L(W.rsaForList),V=l.next();!V.done;V=l.next()){V=V.value;try{W.rsaForPromises.push(document.requestStorageAccessFor(V))}catch(f){}}Promise.all(W.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){W.reset()})}}};
jiL.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var oWc=function(W){var l,V,f,r;return _.g(function(R){switch(R.nextAddress){case 1:l=_.L(Object.values(p4Z)),V=l.next();case 2:if(V.done){R.jumpTo(0);break}f=V.value;_.HG(R,5);return R.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:f}),7);case 7:r=R.yieldResult;r.state!=="granted"&&W.rsaForList.push(f);_.qL(R,3);break;case 5:_.pc(R);R.jumpTo(0);break;case 3:V=l.next(),R.jumpTo(2)}})};(new jiL).initialize();var Iza=function(W){this.JSC$9968_loader_=W};
Iza.prototype.startHelp=function(W){K1L(this.JSC$9968_loader_,"startHelp",arguments)};
Iza.prototype.JSC$9970_loadChatSupport=function(W){K1L(this.JSC$9968_loader_,"loadChatSupport",arguments)};
var m_Z=function(W,l){l=l||{};W=bWk(iWk,"help.service.Lazy.create",W,{apiKey:l.apiKey||l.apiKey,asxUiUri:l.asxUiUri||l.asxUiUri,environment:l.environment||l.environment,flow:l.flow||l.flow,frdProductData:l.frdProductData||l.frdProductData,frdProductDataSerializedJspb:l.frdProductDataSerializedJspb||l.frdProductDataSerializedJspb,helpCenterPath:l.helpCenterPath||l.helpCenterPath,locale:l.locale||l.locale||"en-US".replace(/-/g,"_"),nonce:l.nonce||l.nonce,productData:l.productData||l.productData,receiverUri:l.receiverUri||
l.receiverUri,renderApiUri:l.renderApiUri||l.renderApiUri,theme:l.theme||l.theme,window:l.window||l.window});return new Iza(W)},iWk=new Zx(mB6,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var X4k=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(X4k,_.yP);var T9M=_.FX(X4k);var w4L=[0,_.Ps,Rn,puU];_.A4B=new function(W,l,V,f){this.configType=W;this.flagName=V;this.defaultValue=f;this.flagType="bool"}(2,0,"external_fullscreen",!0);
new Uint8Array([10,2,75,82]);new Uint8Array([10,2,78,76,10,2,69,83]);new Uint8Array([]);new Uint8Array([]);new Uint8Array([]);var MmX=function(){this.retriever=_.tY().resolve(Qic)};j0F(Node);j0F(Element);var ZWk=j0F(HTMLElement);j0F(SVGElement);var OWe,azX,gw,zaZ;OWe=function(W){return typeof W.className=="string"?W.className:W.getAttribute&&W.getAttribute("class")||""};
azX=function(W){return W.classList?W.classList:OWe(W).match(/\S+/g)||[]};
_.LC=function(W,l){typeof W.className=="string"?W.className=l:W.setAttribute&&W.setAttribute("class",l)};
_.y3=function(W,l){return W.classList?W.classList.contains(l):_.Oz(azX(W),l)};
_.J2=function(W,l){if(W.classList)W.classList.add(l);else if(!_.y3(W,l)){var V=OWe(W);_.LC(W,V+(V.length>0?" "+l:l))}};
gw=function(W,l){if(W.classList)Array.prototype.forEach.call(l,function(r){_.J2(W,r)});
else{var V={};Array.prototype.forEach.call(azX(W),function(r){V[r]=!0});
Array.prototype.forEach.call(l,function(r){V[r]=!0});
l="";for(var f in V)l+=l.length>0?" "+f:f;_.LC(W,l)}};
_.BI=function(W,l){W.classList?W.classList.remove(l):_.y3(W,l)&&_.LC(W,Array.prototype.filter.call(azX(W),function(V){return V!=l}).join(" "))};
zaZ=function(W,l){W.classList?Array.prototype.forEach.call(l,function(V){_.BI(W,V)}):_.LC(W,Array.prototype.filter.call(azX(W),function(V){return!_.Oz(l,V)}).join(" "))};var N9X=function(W){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=W.document},eaL=function(W,l){YRM(W);
var V=document.createElement("div"),f;(f=l.parentNode)==null||f.insertBefore(V,l);V.tabIndex=0;V.id="fc-focus-trap-pre-div";V=document.createElement("div");var r;(r=l.parentNode)==null||r.insertBefore(V,l.nextSibling);V.tabIndex=0;V.id="fc-focus-trap-post-div";var R=x_X(W,l),y=x_X(W,l,!0);R&&y&&(W.focusChangeHandler=function(){var P=W.document.activeElement;if(P)if(_.eV(l,P))W.previouslyFocusedElement=P;else if(P===W.document.activeElement)switch(W.previouslyFocusedElement){case R:y.focus();W.previouslyFocusedElement=
y;break;default:R.focus(),W.previouslyFocusedElement=R}},W.document.addEventListener("focus",W.focusChangeHandler,!0),W.document.addEventListener("focusin",W.focusChangeHandler))},YRM=function(W){W.focusChangeHandler&&(document.removeEventListener("focus",W.focusChangeHandler,!0),document.removeEventListener("focusin",W.focusChangeHandler),W.focusChangeHandler=null);
var l;(l=document.getElementById("fc-focus-trap-pre-div"))==null||l.remove();var V;(V=document.getElementById("fc-focus-trap-post-div"))==null||V.remove()},qRL=function(W,l,V,f,r){V=V===void 0?!0:V;
var R;r=(R=r===void 0?null:r)!=null?R:x_X(W,l,f===void 0?!1:f);r!==null&&(r.focus(),V&&eaL(W,l))};
N9X.prototype.disableButton=function(W,l){l=l===void 0?null:l;W.disabled=!0;l&&_.J2(W,l)};
var x_X=function(W,l,V){V=V===void 0?!1:V;if($aS(l)&&!V)return l;var f=V?[].slice.call(l.children,0).reverse():l.children;f=_.L(f);for(var r=f.next();!r.done;r=f.next())if(r=r.value,ZWk(r)&&(r=x_X(W,r,V)))return r;return $aS(l)&&V?l:null};var haM=function(W){this.originalBodyOverflow="";this.JSC$9994_domHelper=IU(W)};
haM.prototype.enableScrolling=function(){this.JSC$9994_domHelper.JSC$9321_document_.body.style.overflow=this.originalBodyOverflow};_.Jj(_.X7,_.iI);_.t=_.X7.prototype;_.t.JSC$9997_id_=0;_.t.disposeInternal=function(){_.X7.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$9995_listener_;delete this.handler_};
_.t.start=function(W){this.stop();this.JSC$9997_id_=ek(this.callback_,W!==void 0?W:this.JSC$9995_interval_)};
_.t.stop=function(){this.isActive()&&_.rS.clearTimeout(this.JSC$9997_id_);this.JSC$9997_id_=0};
_.t.fire=function(){this.stop();this.JSC$9997_doAction_()};
_.t.isActive=function(){return this.JSC$9997_id_!=0};
_.t.JSC$9997_doAction_=function(){this.JSC$9997_id_=0;this.JSC$9995_listener_&&this.JSC$9995_listener_.call(this.handler_)};_.nX=function(W){_.iI.call(this);this.handler_=W;this.JSC$9998_keys_={}};
_.Jj(_.nX,_.iI);var SRe=[];_.nX.prototype.listen=function(W,l,V,f){Array.isArray(l)||(l&&(SRe[0]=l.toString()),l=SRe);for(var r=0;r<l.length;r++){var R=_.YJ(W,l[r],V||this.handleEvent,f||!1,this.handler_||this);if(!R)break;this.JSC$9998_keys_[R.key]=R}return this};
_.nX.prototype.listenOnce=function(W,l,V,f){return EWk(this,W,l,V,f)};
var EWk=function(W,l,V,f,r,R){if(Array.isArray(V))for(var y=0;y<V.length;y++)EWk(W,l,V[y],f,r,R);else{l=OU(l,V,f||W.handleEvent,r,R||W.handler_||W);if(!l)return W;W.JSC$9998_keys_[l.key]=l}return W};
_.nX.prototype.unlisten=function(W,l,V,f,r){if(Array.isArray(l))for(var R=0;R<l.length;R++)this.unlisten(W,l[R],V,f,r);else if(W=k7L(W,l,V||this.handleEvent,_.ev(f)?!!f.capture:!!f,r||this.handler_||this))aJ(W),delete this.JSC$9998_keys_[W.key];return this};
_.nX.prototype.removeAll=function(){_.MC.forEach(this.JSC$9998_keys_,function(W,l){this.JSC$9998_keys_.hasOwnProperty(l)&&aJ(W)},this);
this.JSC$9998_keys_={}};
_.nX.prototype.disposeInternal=function(){_.nX.superClass_.disposeInternal.call(this);this.removeAll()};
_.nX.prototype.handleEvent=function(){throw Error("Oa");};var PD=function(){_.iI.call(this);this.services_={}};
_.Jj(PD,_.iI);PD.prototype.connect=function(W){W&&W()};
PD.prototype.isConnected=function(){return!0};
PD.prototype.registerService=function(W,l,V){this.services_[W]={callback:l,objectPayload:!!V}};
PD.prototype.getService=function(W,l){var V=this.services_[W];return V?V:this.defaultService_?{callback:_.QW(this.defaultService_,W),objectPayload:_.ev(l)}:null};
var $_I=function(W,l){if(l&&typeof W==="string")try{return JSON.parse(W)}catch(V){return null}else if(!l&&typeof W!=="string")return(0,_.hS)(W);return W};
PD.prototype.disposeInternal=function(){PD.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 nC=function(W,l){this.sequence_=[];this.onCancelFunction_=W;this.defaultScope_=l||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};
nC.prototype.cancel=function(W){if(this.fired_)this.result_ instanceof nC&&this.result_.cancel();else{if(this.parent_){var l=this.parent_;delete this.parent_;W?l.cancel(W):(l.branches_--,l.branches_<=0&&l.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new CC(this))}};
nC.prototype.continue_=function(W,l){this.blocked_=!1;Ww$(this,W,l)};
var Ww$=function(W,l,V){W.fired_=!0;W.result_=V;W.hadError_=!l;lL9(W)},fLI=function(W){if(W.fired_){if(!W.silentlyCanceled_)throw new Via(W);
W.silentlyCanceled_=!1}};
nC.prototype.callback=function(W){fLI(this);Ww$(this,!0,W)};
nC.prototype.errback=function(W){fLI(this);Ww$(this,!1,W)};
var rCk=function(W,l,V){cD(W,l,null,V)};
nC.prototype.finally=function(W){var l=this;return RrZ(new Promise(function(V,f){cD(l,function(r){W();V(r)},function(r){W();
f(r)})}))};
var cD=function(W,l,V,f){var r=W.fired_;r||(l===V?l=V=zR(l):(l=zR(l),V=zR(V)));W.sequence_.push([l,V,f]);r&&lL9(W)};
nC.prototype.then=function(W,l,V){var f,r,R=new _.Dx(function(y,P){r=y;f=P});
cD(this,r,function(y){y instanceof CC?R.cancel():f(y);return tik},this);
return R.then(W,l,V)};
oN1(nC);var shk=function(W,l){l instanceof nC?rCk(W,(0,_.ml)(l.branch,l)):rCk(W,function(){return l})};
nC.prototype.branch=function(W){var l=new nC;cD(this,l.callback,l.errback,l);W&&(l.parent_=this,this.branches_++);return l};
nC.prototype.isError=function(W){return W instanceof Error};
var Lwk=function(W){return SS(W.sequence_,function(l){return typeof l[1]==="function"})},tik={},lL9=function(W){if(W.unhandledErrorId_&&W.fired_&&Lwk(W)){var l=W.unhandledErrorId_,V=yC9[l];
V&&(_.rS.clearTimeout(V.JSC$10015_id_),delete yC9[l]);W.unhandledErrorId_=0}W.parent_&&(W.parent_.branches_--,delete W.parent_);l=W.result_;for(var f=V=!1;W.sequence_.length&&!W.blocked_;){var r=W.sequence_.shift(),R=r[0],y=r[1];r=r[2];if(R=W.hadError_?y:R)try{var P=R.call(r||W.defaultScope_,l);P===tik&&(P=void 0);P!==void 0&&(W.hadError_=W.hadError_&&(P==l||W.isError(P)),W.result_=l=P);if(jUL(l)||typeof _.rS.Promise==="function"&&l instanceof _.rS.Promise)f=!0,W.blocked_=!0}catch(n){l=n,W.hadError_=
!0,Lwk(W)||(V=!0)}}W.result_=l;f&&(P=(0,_.ml)(W.continue_,W,!0),f=(0,_.ml)(W.continue_,W,!1),l instanceof nC?(cD(l,P,f),l.blocking_=!0):l.then(P,f));V&&(l=new g2v(l),yC9[l.JSC$10015_id_]=l,W.unhandledErrorId_=l.JSC$10015_id_)},RrZ=function(W){var l=new nC;
W.then(function(V){l.callback(V)},function(V){l.errback(V)});
return l},Via=function(){_.VU.call(this)};
_.Jj(Via,_.VU);Via.prototype.message="Deferred has already fired";Via.prototype.name="AlreadyCalledError";var CC=function(){_.VU.call(this)};
_.Jj(CC,_.VU);CC.prototype.message="Deferred was canceled";CC.prototype.name="CanceledError";var g2v=function(W){this.JSC$10015_id_=_.rS.setTimeout((0,_.ml)(this.throwError,this),0);this.JSC$10015_error_=W};
g2v.prototype.throwError=function(){delete yC9[this.JSC$10015_id_];throw this.JSC$10015_error_;};
var yC9={};var Pzk={1:"NativeMessagingTransport"},n2M=["pu","lru","pru","lpu","ppu"],cCk=function(){for(var W=10,l=Czk,V=l.length,f="";W-- >0;)f+=l.charAt(Math.floor(Math.random()*V));return f},Czk="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var BD=function(W){_.iI.call(this);this.JSC$10018_domHelper_=W||IU()};
_.Jj(BD,_.iI);BD.prototype.transportType=0;BD.prototype.getWindow=function(){return this.JSC$10018_domHelper_.getWindow()};
BD.prototype.getName=function(){return Pzk[String(this.transportType)]||""};var dw=function(W,l,V,f,r){BD.call(this,V);this.JSC$10021_channel_=W;this.protocolVersion_=r||2;this.peerHostname_=l||"*";this.JSC$10021_eventHandler_=new _.nX(this);this.maybeAttemptToConnectTimer_=new _.Pj(100,this.getWindow());this.oneSidedHandshake_=!!f;this.setupAckReceived_=new nC;this.setupAckSent_=new nC;this.JSC$10021_connected_=new nC;this.endpointId_=cCk();this.peerEndpointId_=null;this.oneSidedHandshake_?BKX(this.JSC$10021_channel_)==1?shk(this.JSC$10021_connected_,this.setupAckReceived_):
shk(this.JSC$10021_connected_,this.setupAckSent_):(shk(this.JSC$10021_connected_,this.setupAckReceived_),this.protocolVersion_==2&&shk(this.JSC$10021_connected_,this.setupAckSent_));rCk(this.JSC$10021_connected_,this.notifyConnected_,this);this.JSC$10021_connected_.callback(!0);this.JSC$10021_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Jj(dw,BD);dw.prototype.peerProtocolVersion_=null;dw.prototype.initialized_=!1;dw.prototype.transportType=1;var d49={};dw.prototype.sendTimerId_=0;
var U4B=function(W){var l=W.event_.data;if(typeof l!=="string")return!1;var V=l.indexOf("|"),f=l.indexOf(":");if(V==-1||f==-1)return!1;var r=l.substring(0,V);V=l.substring(V+1,f);l=l.substring(f+1);if(f=Jd[r])return f.xpcDeliver(V,l,W.event_.origin),!0;f=JC9(l)[0];for(var R in Jd){var y=Jd[R];if(BKX(y)==1&&!y.isConnected()&&V=="tp"&&(f=="SETUP"||f=="SETUP_NTPV2")&&D4Z(y,W.event_.origin))return delete Jd[y.name],y.name=r,Jd[r]=y,y.xpcDeliver(V,l),!0}return!1},uWL=function(W){W.protocolVersion_!=2||
W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=2||W.send("tp","SETUP_NTPV2,"+W.endpointId_);
W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=1||W.send("tp","SETUP")},k3L=function(W,l){if(W.protocolVersion_!=2||W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=2||l!=2){if(W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=1||l!=1)return;
W.send("tp","SETUP_ACK")}else W.send("tp","SETUP_ACK_NTPV2");W.setupAckSent_.fired_||W.setupAckSent_.callback(!0)},v2X=function(W,l){l>W.peerProtocolVersion_&&(W.peerProtocolVersion_=l);
W.peerProtocolVersion_==1&&(W.setupAckSent_.fired_||W.oneSidedHandshake_||W.setupAckSent_.callback(!0),W.peerEndpointId_=null)};
_.t=dw.prototype;_.t.connect=function(){var W=this.getWindow(),l=_.qg(W),V=d49[l];typeof V!=="number"&&(V=0);V==0&&_.YJ(W.postMessage?W:W.document,"message",U4B,!1,dw);d49[l]=V+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.t.maybeAttemptToConnect_=function(){var W=BKX(this.JSC$10021_channel_)==0;this.oneSidedHandshake_&&W||this.JSC$10021_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),uWL(this))};
_.t.send=function(W,l){var V=this.JSC$10021_channel_.peerWindowObject_;V&&(this.send=function(f,r){var R=this,y=this.JSC$10021_channel_.name;this.sendTimerId_=ek(function(){R.sendTimerId_=0;try{var P=V.postMessage?V:V.document;P.postMessage&&P.postMessage(y+"|"+f+":"+r,R.peerHostname_)}catch(n){}},0)},this.send(W,l))};
_.t.notifyConnected_=function(){var W=this.JSC$10021_channel_,l=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;W.isConnected()||W.connectionDelay_&&W.connectionDelay_.isActive()||(W.state_=2,_.Ls(W.connectionDelay_),l!==void 0?(W.connectionDelay_=new _.X7(W.connectCb_,l),W.connectionDelay_.start()):(W.connectionDelay_=null,W.connectCb_()))};
_.t.disposeInternal=function(){if(this.initialized_){var W=this.getWindow(),l=_.qg(W),V=d49[l];d49[l]=V-1;V==1&&_.Of(W.postMessage?W:W.document,"message",U4B,!1,dw)}this.sendTimerId_&&(_.rS.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Ls(this.JSC$10021_eventHandler_);delete this.JSC$10021_eventHandler_;_.Ls(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10021_connected_.cancel();delete this.JSC$10021_connected_;delete this.send;dw.superClass_.disposeInternal.call(this)};
var JC9=function(W){W=W.split(",");W[1]=W[1]||null;return W};var KwM;_.DR=function(W){if(W.getValues&&typeof W.getValues=="function")return W.getValues();if(typeof Map!=="undefined"&&W instanceof Map||typeof Set!=="undefined"&&W instanceof Set)return Array.from(W.values());if(typeof W==="string")return W.split("");if(_.Ng(W)){for(var l=[],V=W.length,f=0;f<V;f++)l.push(W[f]);return l}return _.MC.getValues(W)};
_.HpZ=function(W){if(W.getKeys&&typeof W.getKeys=="function")return W.getKeys();if(!W.getValues||typeof W.getValues!="function"){if(typeof Map!=="undefined"&&W instanceof Map)return Array.from(W.keys());if(!(typeof Set!=="undefined"&&W instanceof Set)){if(_.Ng(W)||typeof W==="string"){var l=[];W=W.length;for(var V=0;V<W;V++)l.push(V);return l}return _.MC.getKeys(W)}}};
KwM=function(W,l,V){if(W.forEach&&typeof W.forEach=="function")W.forEach(l,V);else if(_.Ng(W)||typeof W==="string")Array.prototype.forEach.call(W,l,V);else for(var f=_.HpZ(W),r=_.DR(W),R=r.length,y=0;y<R;y++)l.call(V,r[y],f&&f[y],W)};var DA4,Fg,pC,IL1,FwL,bpI,G3X,jhI,pPv;
_.dg=function(W,l){this.JSC$10026_domain_=this.userInfo_=this.scheme_="";this.JSC$10026_port_=null;this.fragment_=this.JSC$10026_path_="";this.JSC$10026_ignoreCase_=!1;var V;W instanceof _.dg?(this.JSC$10026_ignoreCase_=l!==void 0?l:W.JSC$10026_ignoreCase_,_.Ur(this,W.scheme_),this.userInfo_=W.userInfo_,_.uc(this,W.JSC$10026_domain_),_.kg(this,W.JSC$10026_port_),_.vD(this,W.getPath()),_.HD(this,W.JSC$10026_queryData_.clone()),_.KC(this,W.fragment_)):W&&(V=_.WA(String(W)))?(this.JSC$10026_ignoreCase_=
!!l,_.Ur(this,V[1]||"",!0),this.userInfo_=Fg(V[2]||""),_.uc(this,V[3]||"",!0),_.kg(this,V[4]),_.vD(this,V[5]||"",!0),_.HD(this,V[6]||"",!0),_.KC(this,V[7]||"",!0)):(this.JSC$10026_ignoreCase_=!!l,this.JSC$10026_queryData_=new _.GW(null,this.JSC$10026_ignoreCase_))};
_.dg.prototype.toString=function(){var W=[],l=this.scheme_;l&&W.push(pC(l,FwL,!0),":");var V=this.JSC$10026_domain_;if(V||l=="file")W.push("//"),(l=this.userInfo_)&&W.push(pC(l,FwL,!0),"@"),W.push(_.ei(V).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),V=this.JSC$10026_port_,V!=null&&W.push(":",String(V));if(V=this.getPath())this.JSC$10026_domain_&&V.charAt(0)!="/"&&W.push("/"),W.push(pC(V,V.charAt(0)=="/"?G3X:bpI,!0));(V=this.JSC$10026_queryData_.toString())&&W.push("?",V);(V=this.fragment_)&&W.push("#",
pC(V,pPv));return W.join("")};
_.dg.prototype.resolve=function(W){var l=this.clone(),V=!!W.scheme_;V?_.Ur(l,W.scheme_):V=!!W.userInfo_;V?l.userInfo_=W.userInfo_:V=!!W.JSC$10026_domain_;V?_.uc(l,W.JSC$10026_domain_):V=W.JSC$10026_port_!=null;var f=W.getPath();if(V)_.kg(l,W.JSC$10026_port_);else if(V=!!W.JSC$10026_path_){if(f.charAt(0)!="/")if(this.JSC$10026_domain_&&!this.JSC$10026_path_)f="/"+f;else{var r=l.getPath().lastIndexOf("/");r!=-1&&(f=l.getPath().slice(0,r+1)+f)}r=f;if(r==".."||r==".")f="";else if(_.P8(r,"./")||_.P8(r,
"/.")){f=_.sz(r,"/");r=r.split("/");for(var R=[],y=0;y<r.length;){var P=r[y++];P=="."?f&&y==r.length&&R.push(""):P==".."?((R.length>1||R.length==1&&R[0]!="")&&R.pop(),f&&y==r.length&&R.push("")):(R.push(P),f=!0)}f=R.join("/")}else f=r}V?_.vD(l,f):V=W.JSC$10026_queryData_.toString()!=="";V?_.HD(l,W.JSC$10026_queryData_.clone()):V=!!W.fragment_;V&&_.KC(l,W.fragment_);return l};
_.dg.prototype.clone=function(){return new _.dg(this)};
_.Ur=function(W,l,V){W.scheme_=V?Fg(l,!0):l;W.scheme_&&(W.scheme_=W.scheme_.replace(/:$/,""));return W};
_.uc=function(W,l,V){W.JSC$10026_domain_=V?Fg(l,!0):l;return W};
_.kg=function(W,l){if(l){l=Number(l);if(isNaN(l)||l<0)throw Error("Pa`"+l);W.JSC$10026_port_=l}else W.JSC$10026_port_=null;return W};
_.dg.prototype.getPath=function(){return this.JSC$10026_path_};
_.vD=function(W,l,V){W.JSC$10026_path_=V?Fg(l,!0):l;return W};
_.HD=function(W,l,V){l instanceof _.GW?(W.JSC$10026_queryData_=l,o2v(W.JSC$10026_queryData_,W.JSC$10026_ignoreCase_)):(V||(l=pC(l,jhI)),W.JSC$10026_queryData_=new _.GW(l,W.JSC$10026_ignoreCase_));return W};
_.$9=function(W,l,V){W.JSC$10026_queryData_.set(l,V);return W};
_.Ec=function(W,l){return W.JSC$10026_queryData_.get(l)};
_.KC=function(W,l,V){W.fragment_=V?Fg(l):l;return W};
_.or=function(W){_.$9(W,"zx",hl());return W};
_.SV=function(W,l){return W instanceof _.dg?W.clone():new _.dg(W,l)};
DA4=function(W,l){W instanceof _.dg||(W=_.SV(W));l instanceof _.dg||(l=_.SV(l));return W.resolve(l)};
Fg=function(W,l){return W?l?decodeURI(W.replace(/%25/g,"%2525")):decodeURIComponent(W):""};
pC=function(W,l,V){return typeof W==="string"?(W=encodeURI(W).replace(l,IL1),V&&(W=W.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),W):null};
IL1=function(W){W=W.charCodeAt(0);return"%"+(W>>4&15).toString(16)+(W&15).toString(16)};
FwL=/[#\/\?@]/g;bpI=/[#\?:]/g;G3X=/[#\?]/g;jhI=/[#\?@]/g;pPv=/#/g;_.GW=function(W,l){this.count_=this.keyMap_=null;this.encodedQuery_=W||null;this.JSC$10027_ignoreCase_=!!l};
_.jh=function(W){W.keyMap_||(W.keyMap_=new Map,W.count_=0,W.encodedQuery_&&UIk(W.encodedQuery_,function(l,V){W.add(rU(l),V)}))};
_.t=_.GW.prototype;_.t.getCount=function(){_.jh(this);return this.count_};
_.t.add=function(W,l){_.jh(this);this.encodedQuery_=null;W=Ir(this,W);var V=this.keyMap_.get(W);V||this.keyMap_.set(W,V=[]);V.push(l);this.count_+=1;return this};
_.t.remove=function(W){_.jh(this);W=Ir(this,W);return this.keyMap_.has(W)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(W).length,this.keyMap_.delete(W)):!1};
_.t.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.t.isEmpty=function(){_.jh(this);return this.count_==0};
_.t.containsKey=function(W){_.jh(this);W=Ir(this,W);return this.keyMap_.has(W)};
_.t.containsValue=function(W){var l=this.getValues();return _.Oz(l,W)};
_.t.forEach=function(W,l){_.jh(this);this.keyMap_.forEach(function(V,f){V.forEach(function(r){W.call(l,r,f,this)},this)},this)};
_.t.getKeys=function(){_.jh(this);for(var W=Array.from(this.keyMap_.values()),l=Array.from(this.keyMap_.keys()),V=[],f=0;f<l.length;f++)for(var r=W[f],R=0;R<r.length;R++)V.push(l[f]);return V};
_.t.getValues=function(W){_.jh(this);var l=[];if(typeof W==="string")this.containsKey(W)&&(l=l.concat(this.keyMap_.get(Ir(this,W))));else{W=Array.from(this.keyMap_.values());for(var V=0;V<W.length;V++)l=l.concat(W[V])}return l};
_.t.set=function(W,l){_.jh(this);this.encodedQuery_=null;W=Ir(this,W);this.containsKey(W)&&(this.count_-=this.keyMap_.get(W).length);this.keyMap_.set(W,[l]);this.count_+=1;return this};
_.t.get=function(W,l){if(!W)return l;W=this.getValues(W);return W.length>0?String(W[0]):l};
_.ipL=function(W,l,V){W.remove(l);V.length>0&&(W.encodedQuery_=null,W.keyMap_.set(Ir(W,l),_.z6(V)),W.count_+=V.length)};
_.GW.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var W=[],l=Array.from(this.keyMap_.keys()),V=0;V<l.length;V++){var f=l[V],r=_.ei(f);f=this.getValues(f);for(var R=0;R<f.length;R++){var y=r;f[R]!==""&&(y+="="+_.ei(f[R]));W.push(y)}}return this.encodedQuery_=W.join("&")};
_.GW.prototype.clone=function(){var W=new _.GW;W.encodedQuery_=this.encodedQuery_;this.keyMap_&&(W.keyMap_=new Map(this.keyMap_),W.count_=this.count_);return W};
var Ir=function(W,l){l=String(l);W.JSC$10027_ignoreCase_&&(l=l.toLowerCase());return l},o2v=function(W,l){l&&!W.JSC$10027_ignoreCase_&&(_.jh(W),W.encodedQuery_=null,W.keyMap_.forEach(function(V,f){var r=f.toLowerCase();
f!=r&&(this.remove(f),_.ipL(this,r,V))},W));
W.JSC$10027_ignoreCase_=l};
_.GW.prototype.extend=function(W){for(var l=0;l<arguments.length;l++)KwM(arguments[l],function(V,f){this.add(f,V)},this)};var ic=function(W,l){PD.call(this);for(var V=0,f;f=n2M[V];V++)if(f in W&&!/^https?:\/\//.test(W[f]))throw Error("Ra`"+W[f]+"`"+f);this.cfg_=W;this.name=this.cfg_.cn||cCk();this.JSC$10022_domHelper_=l||IU();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.nX(this);W.lpu=W.lpu||JOM(this.JSC$10022_domHelper_.getWindow().location.href)+"/robots.txt";W.ppu=W.ppu||JOM(W.pu||"")+"/robots.txt";Jd[this.name]=this;k7L(window,"unload",m4k)||OU(window,"unload",m4k)};
_.Jj(ic,PD);var XPZ=RegExp("^%*tp$"),TKM=RegExp("^%+tp$");_.t=ic.prototype;_.t.connectionDelay_=null;_.t.peerWindowDeferred_=null;_.t.transport_=null;_.t.state_=1;_.t.isConnected=function(){return this.state_==2};
_.t.peerWindowObject_=null;_.t.iframeElement_=null;_.t.connect=function(W){this.connectCb_=W||_.QR;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?rCk(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.t.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10022_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var W=this.iframeElement_.contentWindow;W||(W=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=W}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$10022_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new dw(this,this.cfg_.ph,this.JSC$10022_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()()};
_.t.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Ls(this.transport_);this.connectCb_=this.transport_=null;_.Ls(this.connectionDelay_);this.connectionDelay_=null};
_.t.send=function(W,l){if(this.isConnected()){try{var V=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(r){V=!1}if(V){_.ev(l)&&(l=(0,_.hS)(l));V=this.transport_;var f=V.send;XPZ.test(W)&&(W="%"+W);W=W.replace(/[%:|]/g,encodeURIComponent);f.call(V,W,l)}else this.close()}};
_.t.xpcDeliver=function(W,l,V){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.ml)(this.xpcDeliver,this,W,l,V));else if(D4Z(this,V)&&!this.isDisposed()&&this.state_!=3)if(W&&W!="tp")this.isConnected()&&(W=W.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),W=TKM.test(W)?W.substring(1):W,W=this.getService(W,l))&&(l=$_I(l,W.objectPayload),l!=null&&W.callback(l));else switch(W=this.transport_,V=JC9(l),l=V[1],V[0]){case "SETUP_ACK":v2X(W,1);W.setupAckReceived_.fired_||W.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":W.protocolVersion_==2&&(v2X(W,2),W.setupAckReceived_.fired_||W.setupAckReceived_.callback(!0));break;case "SETUP":v2X(W,1);k3L(W,1);break;case "SETUP_NTPV2":W.protocolVersion_==2&&(V=W.peerProtocolVersion_,v2X(W,2),k3L(W,2),V!=1&&W.peerEndpointId_==null||W.peerEndpointId_==l||uWL(W),W.peerEndpointId_=l)}};
var BKX=function(W){var l=W.cfg_.role;return typeof l==="number"?l:window.parent==W.peerWindowObject_?1:0},D4Z=function(W,l){var V=W.cfg_.ph;
return _.gS(l==null?"":String(l))||_.gS(V==null?"":String(V))||l==W.cfg_.ph};
ic.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Jd[this.name];_.Ls(this.peerLoadHandler_);delete this.peerLoadHandler_;ic.superClass_.disposeInternal.call(this)};
var m4k=function(){for(var W in Jd)_.Ls(Jd[W])},Jd={};var ACL=function(W,l){this.JSC$10036_win=W;this.allowAdsHttpEndpoint=l;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10036_domHelper=IU(W);this.scrollManager=new haM(W);this.accessibilityManager=new N9X(W);wP$(this)},wP$=function(W){var l=function(){W.allowAdsPopup&&W.allowAdsPopup.style.setProperty("display","none","important");
W.wallElement.style.setProperty("display","","important");YRM(W.accessibilityManager);qRL(W.accessibilityManager,W.wallElement.querySelector(".fc-dialog-container"),!1,!1,W.wallElement.querySelector(".fc-button-whitelist"));W.scrollManager.enableScrolling()};
W.allowAdsPopup=W.JSC$10036_domHelper.JSC$9323_createDom("DIV",{"class":"fc-whitelist-root"});W.allowAdsPopup.style.setProperty("display","none","important");W.JSC$10036_domHelper.appendChild(W.JSC$10036_domHelper.JSC$9321_document_.body,W.allowAdsPopup);var V=W.JSC$10036_domHelper.JSC$9323_createDom("DIV",{"class":"fc-dialog-overlay"});W.JSC$10036_domHelper.appendChild(W.allowAdsPopup,V);var f=W.JSC$10036_domHelper.JSC$9323_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:l});W.JSC$10036_domHelper.appendChild(W.allowAdsPopup,
f);V=W.JSC$10036_domHelper.JSC$9323_createDom("IFRAME");V.className="fc-whitelist-dialog";V.frameBorder="0";V.id="fc-whitelist-iframe";V.tabIndex="0";_.WG(V,W.allowAdsHttpEndpoint);W.JSC$10036_domHelper.appendChild(f,V);f={};f.pu=_.m7(W.allowAdsHttpEndpoint).toString();f.tp=1;f.cn="fc-whitelist-channel";f.ifrid=V.id;f.osh=!0;W.allowAdsCrossPageChannel=new ic(f);W.allowAdsCrossPageChannel.registerService("close",l);W.allowAdsCrossPageChannel.registerService("refresh",function(){W.JSC$10036_win.location.reload()});
W.allowAdsCrossPageChannel.registerService("resize",function(r){if(r){var R=W.allowAdsPopup.querySelector(".fc-whitelist-dialog");r.width&&R.style.setProperty("width",r.width,"important");r.height&&R.style.setProperty("height",r.height,"important")}},!0);
W.allowAdsCrossPageChannel.connect()};
ACL.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10036_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var mx=window,Xg=document,QhM=mx.location,Mi1=function(){},Zpe=/\[native code\]/,TW=function(W,l,V){return W[l]=W[l]||V},Op1=function(W){W=W.sort();
for(var l=[],V=void 0,f=0;f<W.length;f++){var r=W[f];r!=V&&l.push(r);V=r}return l},ww=function(){var W;
if((W=Object.create)&&Zpe.test(W))W=W(null);else{W={};for(var l in W)W[l]=void 0}return W},Ad=TW(mx,"gapi",{});var Q3={};Q3=TW(mx,"___jsl",ww());TW(Q3,"I",0);TW(Q3,"hel",10);var aLk=function(){var W=QhM.href;if(Q3.dpo)var l=Q3.h;else{l=Q3.h;var V=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),f=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(W=W&&(V.exec(W)||f.exec(W)))try{l=decodeURIComponent(W[2])}catch(r){}}return l},zr9=function(W){var l=TW(Q3,"PQ",[]);
Q3.PQ=[];var V=l.length;if(V===0)W();else for(var f=0,r=function(){++f===V&&W()},R=0;R<V;R++)l[R](r)},NKB=function(W){return TW(TW(Q3,"H",ww()),W,ww())};var MX=function(W){this.JSC$10038_obj_=W};
MX.prototype.value=function(){return this.JSC$10038_obj_};
MX.prototype.getWidth=function(){return this.JSC$10038_obj_.width};
MX.prototype.getHeight=function(){return this.JSC$10038_obj_.height};
MX.prototype.getStyle=function(){return this.JSC$10038_obj_.style};var YJa=function(W){this.JSC$10041_obj_=W||{}};
_.t=YJa.prototype;_.t.value=function(){return this.JSC$10041_obj_};
_.t.setUrl=function(W){this.JSC$10041_obj_.url=W;return this};
_.t.getUrl=function(){return this.JSC$10041_obj_.url};
_.t.getStyle=function(){return this.JSC$10041_obj_.style};
_.t.getId=function(){return this.JSC$10041_obj_.id};
_.t.getContext=function(){return this.JSC$10041_obj_.context};
var x4v=function(W){W.JSC$10041_obj_.attributes=W.JSC$10041_obj_.attributes||{};return new MX(W.JSC$10041_obj_.attributes)};var er$=function(){YJa.apply(this,arguments)};
_.v(er$,YJa);var qJc=TW(Q3,"perf",ww());TW(qJc,"g",ww());var hrc=TW(qJc,"i",ww());TW(qJc,"r",[]);ww();ww();var E2L=function(W,l,V){l&&l.length>0&&(l=SJk(l),V&&V.length>0&&(l+="___"+SJk(V)),l.length>28&&(l=l.substr(0,28)+(l.length-28)),V=l,l=TW(hrc,"_p",ww()),TW(l,V,ww())[W]=(new Date).getTime(),l=qJc.r,typeof l==="function"?l(W,"_p",V):l.push([W,"_p",V]))},SJk=function(W){return W.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var $41=ww(),WSX=[],ZR=function(W){throw Error("Ua`"+W);};
WSX.push(["jsl",function(W){for(var l in W)if(Object.prototype.hasOwnProperty.call(W,l)){var V=W[l];typeof V=="object"?Q3[l]=TW(Q3,l,[]).concat(V):TW(Q3,l,V)}if(l=W.u)W=TW(Q3,"us",[]),W.push(l),(l=/^https:(.*)$/.exec(l))&&W.push("http:"+l[1])}]);
var lj9=/^(\/[a-zA-Z0-9_\-]+)+$/,VFk=[/\/amp\//,/\/amp$/,/^\/amp$/],fj9=/^[a-zA-Z0-9\-_\.,!]+$/,rYL=/^gapi\.loaded_[0-9]+$/,RVk=/^[a-zA-Z0-9,._-]+$/,yY$=function(W,l,V,f,r){var R=W.split(";"),y=R.shift(),P=$41[y],n=null;P?n=P(R,l,V,f):ZR("no hint processor for: "+y);n||ZR("failed to generate load url");l=n;V=l.match(tFB);(f=l.match(s0L))&&f.length===1&&LS$.test(l)&&V&&V.length===1||ZR("failed sanity: "+W);try{W="?";if(r&&r.length>0){G6z(r);var B=r.join(",");n=n+"?le="+B;W="&"}if(Q3.rol){var d=Q3.ol;
d&&d.length&&(n=""+n+W+"ol="+d.length)}}catch(J){}return n},nYX=function(W,l,V,f){W=gYk(W);
rYL.test(V)||ZR("invalid_callback");l=PP$(l);f=f&&f.length?PP$(f):null;var r=function(R){return encodeURIComponent(R).replace(/%2C/g,",")};
return[encodeURIComponent(W.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",r(W.version),"/m=",r(l),f?"/exm="+r(f):"","/rt=j/sv=1/d=1/ed=1",W.activeMods?"/am="+r(W.activeMods):"",W.resourceSig?"/rs="+r(W.resourceSig):"",W.zcms?"/t="+r(W.zcms):"","/cb=",r(V)].join("")},gYk=function(W){W.charAt(0)!=="/"&&ZR("relative path");
for(var l=W.substring(1).split("/"),V=[];l.length;){W=l.shift();if(!W.length||W.indexOf(".")==0)ZR("empty/relative directory");else if(W.indexOf("=")>0){l.unshift(W);break}V.push(W)}W={};for(var f=0,r=l.length;f<r;++f){var R=l[f].split("="),y=decodeURIComponent(R[0]),P=decodeURIComponent(R[1]);R.length==2&&y&&P&&(W[y]=W[y]||P)}l="/"+V.join("/");lj9.test(l)||ZR("invalid_prefix");V=0;for(f=VFk.length;V<f;++V)VFk[V].test(l)&&ZR("invalid_prefix");V=CPM(W,"k",!0);f=CPM(W,"am");r=CPM(W,"rs");W=CPM(W,"t");
return{pathPrefix:l,version:V,activeMods:f,resourceSig:r,zcms:W}},PP$=function(W){for(var l=[],V=0,f=W.length;V<f;++V){var r=W[V].replace(/\./g,"_").replace(/-/g,"_");
RVk.test(r)&&l.push(r)}return l.join(",")},CPM=function(W,l,V){W=W[l];
!W&&V&&ZR("missing: "+l);if(W){if(fj9.test(W))return W;ZR("invalid: "+l)}return null},LS$=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,s0L=/\/cb=/g,tFB=/\/\//g;
$41.m=function(W,l,V,f){(W=W[0])||ZR("missing_hint");return"https://apis.google.com"+nYX(W,l,V,f)};
var cY1=decodeURI("%73cript"),BUL=/^[-+_0-9\/A-Za-z]+={0,2}$/,dLZ=function(W,l){for(var V=[],f=0;f<W.length;++f){var r=W[f],R;if(R=r){a:{for(R=0;R<l.length;R++)if(l[R]===r)break a;R=-1}R=R<0}R&&V.push(r)}return V},JYa=function(){var W=Q3.nonce;
return W!==void 0?W&&W===String(W)&&W.match(BUL)?W:Q3.nonce=null:Xg.querySelector?(W=Xg.querySelector("script[nonce]"))?(W=W.nonce||W.getAttribute("nonce")||"",W&&W===String(W)&&W.match(BUL)?Q3.nonce=W:Q3.nonce=null):null:null},uPL=function(W){if(Xg.readyState!="loading")DLa(W);
else{var l=JYa(),V="";l!==null&&(V=' nonce="'+l+'"');W="<"+cY1+' src="'+encodeURI(W)+'"'+V+"></"+cY1+">";Xg.write(ULc?ULc.createHTML(W):W)}},DLa=function(W){var l=Xg.createElement(cY1);
l.setAttribute("src",ULc?ULc.createScriptURL(W):W);W=JYa();W!==null&&l.setAttribute("nonce",W);l.async="true";(W=Xg.getElementsByTagName(cY1)[0])?W.parentNode.insertBefore(l,W):(Xg.head||Xg.body||Xg.documentElement).appendChild(l)},vYv=function(W,l,V){k4c(function(){var f=l===aLk()?TW(Ad,"_",ww()):ww();
f=TW(NKB(l),"_",f);W(f)},V)},P9v=function(W,l){var V=l||{};
typeof l=="function"&&(V={},V.callback=l);var f=(l=V)&&l._c;if(f)for(var r=0;r<WSX.length;r++){var R=WSX[r][0],y=WSX[r][1];y&&Object.prototype.hasOwnProperty.call(f,R)&&y(f[R],W,l)}l=[];W?l=W.split(":"):V.features&&(l=V.features);if(!(W=V.h)&&(W=aLk(),!W))throw Error("Va");H7v(l||[],V,W)},H7v=function(W,l,V){W=Op1(W)||[];
var f=l.callback,r=l.config,R=l.timeout,y=l.ontimeout,P=l.onerror,n=void 0;typeof P=="function"&&(n=P);var B=null,d=!1;if(R&&!y||!R&&y)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";P=TW(NKB(V),"r",[]).sort();var J=TW(NKB(V),"L",[]).sort(),D=Q3.le||[],u=[].concat(P),H=function(S,N){if(d)return 0;mx.clearTimeout(B);J.push.apply(J,p);var x=((Ad||{}).config||{}).update;x?x(r):r&&TW(Q3,"cu",[]).push(r);if(N){E2L("me0",S,u);try{vYv(N,V,n)}finally{E2L("me1",S,u)}}return 1};
R>0&&(B=mx.setTimeout(function(){d=!0;y()},R));
var p=dLZ(W,J);if(p.length){p=dLZ(W,P);var X=TW(Q3,"CP",[]),w=X.length;X[w]=function(S){if(!S)return 0;E2L("ml1",p,u);var N=function(Y){X[w]=null;H(p,S)&&zr9(function(){f&&f();Y()})},x=function(){var Y=X[w+1];
Y&&Y()};
w>0&&X[w-1]?X[w]=function(){N(x)}:N(x)};
if(p.length){var O="loaded_"+Q3.I++;Ad[O]=function(S){X[w](S);Ad[O]=null};
W=yY$(V,p,"gapi."+O,P,D);P.push.apply(P,p);E2L("ml0",p,u);l.sync||mx.___gapisync?uPL(W):DLa(W)}else X[w](Mi1)}else H(p)&&f&&f()},KS$;
var FSc=null,G4k=_.rS.trustedTypes;if(G4k&&G4k.createPolicy){try{FSc=G4k.createPolicy("goog#gapi",{createHTML:KvF,createScript:KvF,createScriptURL:KvF})}catch(W){_.rS.console&&_.rS.console.error(W.message)}KS$=FSc}else KS$=FSc;var ULc=KS$,k4c=function(W,l){if(Q3.hee&&Q3.hel>0)try{return W()}catch(V){l&&l(V),Q3.hel--,P9v("debug_error",function(){try{window.___jsl.hefn(V)}catch(f){throw V;}})}else try{return W()}catch(V){throw l&&l(V),V;
}},b71=Ad.load;
b71&&TW(Q3,"ol",[]).push(b71);Ad.load=function(W,l){return k4c(function(){return P9v(W,l)})};var TUv;var oYI=function(W,l){var V=V||[];this.serviceId_=W;this.moduleId_=l||null;this.dependencies_=[];pAe(this,V)};
oYI.prototype.toString=function(){return this.serviceId_};
oYI.prototype.getModuleId=function(){return this.moduleId_};
var pAe=function(W,l){var V=!1;V=V===void 0?!1:V;W.dependencies_=W.dependencies_.concat(l);if(V){if(!W.moduleId_)throw Error("Wa`"+W.serviceId_);l.map(function(f){return f.getModuleId()}).forEach(function(f){wAg(function(r){r.addExtraEdge(W.moduleId_,f)})})}};var Cjz=new oYI("MpJwZc","MpJwZc");var BgS=new _.w3("a"),cgn=function(W,l,V){_.AS.call(this,W,l);this.node=l;this.kind=V};
_.v(cgn,_.AS);var j0B=function(){this.JSC$10054_keys_={};this.urlPrefix_="";this.JSC$10054_queryData_={}};
j0B.prototype.toString=function(){var W=this.urlPrefix_+IjZ(this),l=_.U6(this.JSC$10054_queryData_),V="";l!=""&&(V="?"+l);return W+V};
var i7X=function(W){W=Or(W,"md");return!!W&&W!=="0"},IjZ=function(W){var l=[],V=(0,_.ml)(function(f){this.JSC$10054_keys_[f]!==void 0&&l.push(f+"="+this.JSC$10054_keys_[f])},W);
i7X(W)?(V("md"),V("k"),V("ck"),V("am"),V("rs"),V("gssmodulesetproto"),V("slk"),V("dti")):(V("sdch"),V("k"),V("ck"),V("am"),V("rt"),"d"in W.JSC$10054_keys_||ar(W,"d","0"),V("d"),V("exm"),V("excm"),(W.JSC$10054_keys_.excm||W.JSC$10054_keys_.exm)&&l.push("ed=1"),V("im"),V("dg"),V("sm"),Or(W,"br")!="1"&&Or(W,"br")!="0"||V("br"),V("br-d"),Or(W,"rb")=="1"&&V("rb"),Or(W,"zs")!=="0"&&V("zs"),mLc(W)!==""&&V("wt"),V("gssmodulesetproto"),V("ujg"),V("sp"),V("rs"),V("cb"),V("ee"),V("slk"),V("dti"),V("m"));return l.join("/")},
Or=function(W,l){return W.JSC$10054_keys_[l]?W.JSC$10054_keys_[l]:null},ar=function(W,l,V){V?W.JSC$10054_keys_[l]=V:delete W.JSC$10054_keys_[l]},XAI=function(W,l){W.urlPrefix_=l},TUL=function(W,l){l&&l.length>0?(l.sort(),ar(W,"exm",l.join(","))):ar(W,"exm",null)},wA1=function(W,l){l&&l.length>0?(l.sort(),ar(W,"excm",l.join(","))):ar(W,"excm",null)},AYB=function(W){return(W=Or(W,"m"))?W.split(","):[]},mLc=function(W){switch(Or(W,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},Q0k=function(W,l){var V=Object.keys(l).filter(function(f){return!!Object.keys(l[f]).length}).map(function(f){var r=Object.keys(l[f]);
r.length>1&&r.sort();return f+":"+r.join(",")});
V.sort();ar(W,"ee",V.join(";"))},Ywg=function(W){var l=Or(W,"ee");
if(!l)return{};W={};l=_.L(l.split(";"));for(var V=l.next();!V.done;V=l.next()){var f=_.L(V.value.split(":"));V=f.next().value;f=f.next().value;W[V]={};f=_.L(f.split(","));for(var r=f.next();!r.done;r=f.next())W[V][r.value]=!0}return W},MFB=function(W){delete W.JSC$10054_keys_.m;
delete W.JSC$10054_keys_.exm;delete W.JSC$10054_keys_.ed};
j0B.prototype.clone=function(){var W=new j0B;W.JSC$10054_keys_=Object.assign({},this.JSC$10054_keys_);W.urlPrefix_=this.urlPrefix_;W.JSC$10054_queryData_=Object.assign({},this.JSC$10054_queryData_);return W};
var xtJ=function(W,l){l=l===void 0?!0:l;var V=Z7L(W),f=new j0B,r=_.WA(V)[5];_.MC.forEach(O7$,function(y){var P=r.match("/"+y+"=([^/]+)");P&&ar(f,y,P[1])});
var R="";R=W.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";XAI(f,W.substr(0,W.indexOf(R)+R.length));if(!l)return f;(W=_.WA(V)[6]||null)&&UIk(W,function(y,P){f.JSC$10054_queryData_[y]=P});
return f},as8=function(W){W=_.JY(Z7L(W));
return W===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(W)?/\/k=/.test(W):!1},Z7L=function(W){return W.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?W.substr(65):W},O7$={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"},ajI=RegExp("^loaded_(g|h)?[_\\d]+$");_.zW=function(W){this.JSC$10066_id_=W;this.opts={}};
_.zW.prototype.JSC$10068_setLabel=function(W){this.label_=W||void 0;return this};
_.zW.prototype.addUploadMetadata=function(W,l){var V=this.opts.data||{};V[W]=l;this.opts.data=V;return this};
var zV1=function(W){var l=_.MC.filter(W.opts,function(V){return V!==null});
l=_.MC.isEmpty(l)?null:l;W=[W.JSC$10066_id_,W.label_,l];l=k6z(W);return W=W.slice(0,l+1)};
_.zW.prototype.toString=function(){var W=zV1(this);return"("+_.Zl(W,function(l){return JSON.stringify(l)}).join(",")+")"};
_.zW.prototype.getId=function(){return this.JSC$10066_id_};
_.zW.prototype.getOptions=function(){return _.MC.clone(this.opts)};var NX=function(){_.zW.call(this,"image-search")};
_.v(NX,_.zW);NX.prototype.setSize=function(W){this.opts.imgsz=W;return this};
NX.prototype.JSC$10068_setLabel=function(W){_.zW.prototype.JSC$10068_setLabel.call(this,W);return this};
NX.prototype.addUploadMetadata=function(W,l){_.zW.prototype.addUploadMetadata.call(this,W,l);return this};var Yg=function(){_.zW.call(this,"maps")};
_.v(Yg,_.zW);Yg.prototype.setZoom=function(W){this.opts.zoom=W;return this};
Yg.prototype.JSC$10068_setLabel=function(W){_.zW.prototype.JSC$10068_setLabel.call(this,W);return this};
Yg.prototype.addUploadMetadata=function(W,l){_.zW.prototype.addUploadMetadata.call(this,W,l);return this};_.xg=function(){_.zW.call(this,"photos")};
_.v(_.xg,_.zW);_.xg.prototype.JSC$10068_setLabel=function(W){_.zW.prototype.JSC$10068_setLabel.call(this,W);return this};
_.xg.prototype.addUploadMetadata=function(W,l){_.zW.prototype.addUploadMetadata.call(this,W,l);return this};var eh=function(){_.zW.call(this,"url")};
_.v(eh,_.zW);var NUL=function(){var W=new eh;W.opts.type="video";W.opts.site="youtube.com";return W};
eh.prototype.JSC$10068_setLabel=function(W){_.zW.prototype.JSC$10068_setLabel.call(this,W);return this};
eh.prototype.addUploadMetadata=function(W,l){_.zW.prototype.addUploadMetadata.call(this,W,l);return this};var qX=function(){_.zW.call(this,"video-search")};
_.v(qX,_.zW);var Y6c=function(){var W=new qX;W.opts.site="youtube.com";return W};
qX.prototype.JSC$10068_setLabel=function(W){_.zW.prototype.JSC$10068_setLabel.call(this,W);return this};
qX.prototype.addUploadMetadata=function(W,l){_.zW.prototype.addUploadMetadata.call(this,W,l);return this};var xLe=function(){_.zW.call(this,"web")};
_.v(xLe,_.zW);xLe.prototype.JSC$10068_setLabel=function(W){_.zW.prototype.JSC$10068_setLabel.call(this,W);return this};
xLe.prototype.addUploadMetadata=function(W,l){_.zW.prototype.addUploadMetadata.call(this,W,l);return this};var hd=function(){this.items_=[];this.opts={}},eVL=function(W){switch(W){case "image-search":return new NX;
case "maps":return new Yg;case "photos":return new _.xg;case "url":return new eh;case "video-search":return new qX;case "web":return new xLe}return new _.zW(W)};
hd.prototype.addView=function(W){this.items_.push(typeof W==="string"?eVL(W):W);return this};
var q6B=function(W){return"("+_.Zl(W.items_,function(l){return l.toString()}).join(",")+")"};
hd.prototype.toString=function(){return q6B(this)};
hd.prototype.getViews=function(W,l){l=l===void 0?[]:l;for(var V=this.items_,f=0;f<V.length;f++){var r=V[f];r instanceof hd?r.getViews(W,l):r.getId()==W&&l.push(r)}return l};
hd.prototype.getOptions=function(){return _.MC.clone(this.opts)};var Ns=function(W){this.basePickerUrl_=W||"https://docs.google.com/picker";this.nav_=new hd};
Ns.prototype.nav_=null;Ns.prototype.addView=function(W){this.nav_.addView(W);return this};
Ns.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Ns.prototype.getViews=function(W){return this.nav_.getViews(W)};
_.hVX=function(W,l){W.callback_=l;return W};var S6L=new Map;S6L.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");S6L.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");S6L.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var EY$=new Set;EY$.add("application/vnd.google-apps.kix");EY$.add("application/vnd.google-apps.ritz");EY$.add("application/vnd.google-apps.punch");var gsk=function(W,l,V){var f=V&&_.aQ(V,1);V=$LX(V);var r=W[0].getId();switch(_.zy(r,2)){case 13:return Wuk(W,l,f,V);case 3:return lse(W,l,f,V);case 10:return VS9(W,l,f,V);case 27:return VS9(W,l,f,V);case 12:return fsM(W,l);case 2:return rv9(W,l,f,V);case 5:return RjL(W,l,f,V);case 9:return tSc(W,l,f,V);case 6:return slc(W,l,f,V);case 25:return Lu$(W,l,f,V);case 1:return _.IQ(W[0],TaB,26)?yvk(W,l,f,V):VS9(W,l,f,V);default:return{}}},slc=function(W,l,V,f){W=W.map(function(r){return{id:r.getId().getId(),
serviceId:"youtube",name:r.getName(),description:_.aQ(r,3),type:Sh(r),lastEditedUtc:_.X$c(_.yy(r,_.Y1,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:r.getUrl(),embedUrl:_.aQ(r,13),thumbnails:Er(JS(r))}});
return{action:l,docs:W,viewToken:f,view:V||"youtube",v2Translated:!0}},rv9=function(W,l,V,f){var r=W.map(function(R){var y=R.getId().getId(),P=_.aQ(R,7),n=R.getName(),B=Sh(R),d=_.X$c(_.yy(R,_.Y1,12)).getTime(),J=R.getUrl(),D=Number(OKq(R)),u=_.aQ(R,3),H=_.aQ(R,11),p=Er(JS(R));
var X=_.yy(R,Dn,21);X=_.MG(X,1);var w=_.yy(R,Dn,21);w=_.aQ(w,10);var O=_.aQ(R,13);var S=_.yy(R,Dn,21);S=_.MG(S,9);var N=_.yy(R,Dn,21);N=_.aQ(N,11);y={id:y,serviceId:"docs",mimeType:P,name:n,type:B,lastEditedUtc:d,url:J,sizeBytes:D,description:u,iconUrl:H,thumbnails:p,isShared:X,downloadUrl:w,embedUrl:O,copyable:S,resourceKey:N};P=_.yy(R,Dn,21);_.MG(P,12)&&(y.uploadState="success",y.isNew=!0);P=_.yy(R,Dn,21);_.IQ(P,cW,3)&&(R=_.yy(R,Dn,21),R=_.yy(R,cW,3),_.IQ(R,nU,2)&&(P=Oc(R.getDuration().getSeconds()),
n=R.getDuration(),n=_.Cs(n,2),y.duration=P+n/1E9),y.aspectRatio=R.getAspectRatio());return y});
return{action:l,docs:r,viewToken:f,view:V||"all",extraUserInputs:Pi$(W),v2Translated:!0}},RjL=function(W,l,V,f){W=W.map(function(r){var R=_.yy(r,Naa,15);
R=_.yy(R,CU,1);vq(r,10,CU,R);return{id:r.getId().getId(),serviceId:"web",mimeType:_.aQ(r,7),name:r.getName(),type:Sh(r),url:r.getUrl(),description:_.aQ(r,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Er(JS(r))}});
return{action:l,docs:W,viewToken:f,view:V||"image-search",v2Translated:!0}},tSc=function(W,l,V,f){W=W.map(function(r){return{serviceId:"url",
name:JS(r)[0].getUrl().split("/").pop(),type:Sh(r),mimeType:_.aQ(r,7),url:r.getUrl(),description:_.aQ(r,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Er(JS(r))}});
return{action:l,docs:W,viewToken:f,view:V||"url",v2Translated:!0}},yvk=function(W,l,V,f){W=W.map(function(r){return{id:r.getId().getId(),
serviceId:"picasa",name:r.getName(),type:Sh(r),description:_.aQ(r,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Er(JS(r))}});
return{action:l,docs:W,viewToken:f,view:V||"webcam",v2Translated:!0}},VS9=function(W,l,V,f){return{action:l,
docs:W.map(nsa),viewToken:f,view:Cia(V||"upload",W),extraUserInputs:Pi$(W),v2Translated:!0}},Cia=function(W,l){return l.some(function(V){var f;
return((f=_.yy(V,BW,30))==null?void 0:_.zy(f,3))===9})?W+"/gmailphotos":W},lse=function(W,l,V,f){var r=W.map(function(R){var y={id:R.getId().getId(),
serviceId:"picasa",mimeType:_.aQ(R,7),name:R.getName(),type:Sh(R),lastEditedUtc:_.X$c(_.yy(R,_.Y1,12)).getTime(),url:R.getUrl(),sizeBytes:Number(OKq(R)),description:_.aQ(R,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Er(JS(R)),mediaKey:R.getId().getId(),parentId:_.aQ(R,4)},P,n=(P=_.yy(R,QvZ,18))==null?void 0:_.yy(P,AOI,3);n&&(y.latitude=Ol(n,1),y.longitude=Ol(n,2));var B;R=(B=_.yy(R,QvZ,18))==null?void 0:Zb(B,6);B=R!=null?Oc(R):void 0;B&&(y.version=
B);return y});
return{action:l,docs:r,viewToken:f,view:V||"photos",extraUserInputs:Pi$(W),v2Translated:!0}},Wuk=function(W,l,V,f){W=W.map(function(r){return{id:r.getId().getId(),
serviceId:"et",name:JS(r)[0].getUrl().split("/").pop(),description:_.aQ(r,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Er(JS(r),"etjpg")}});
return{action:l,docs:W,viewToken:f,view:V||"et",v2Translated:!0}},Lu$=function(W,l,V,f){W=W.map(function(r){var R=r.getId().getId(),y=f["2"];
return{id:R,serviceId:y.type!=="gmail_themes"&&y.parent==="6226252643674576769"?"picasa":"static_themes",name:r.getName(),mimeType:_.aQ(r,7),type:Sh(r),description:_.aQ(r,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:r.getUrl(),embedUrl:r.getUrl(),thumbnails:Er(JS(r))}});
return{action:l,docs:W,viewToken:f,view:V||"photos",v2Translated:!0}},fsM=function(W,l){W=W.map(function(V){var f=_.yy(V,w$a,27);
f=_.SY(f,1,_.He,_.ns())[0];return{id:V.getId().getId(),serviceId:"contacts",mimeType:_.aQ(V,7),name:V.getName(),description:_.aQ(V,3),url:"mailto:"+f,thumbnail:[{url:_.aQ(V,11)}],email:f}});
return{action:l,docs:W,view:"contacts",v2Translated:!0}},$LX=function(W){if(!W)return{};
var l=_.aQ(W,3);l=l&&JSON.parse(l)||{};return{0:_.aQ(W,1),1:_.aQ(W,2),2:l}},Er=function(W,l){l=l===void 0?"":l;
if(!W.length)return null;l=="etjpg"&&(W=W.filter(function(V){return V.getUrl().includes("w1200-h300")}));
return W.map(function(V){return{url:V.getUrl(),height:V.getHeight(),width:V.getWidth(),type:l}})},Pi$=function(W){return{isAttachment:W.some(function(l){return _.MG(l,31)})}},nsa=function(W){var l,V={id:(l=W.getId())==null?void 0:l.getId(),
serviceId:cv9(W),mimeType:_.aQ(W,7),name:W.getName(),type:Sh(W),sizeBytes:Number(OKq(W)),description:_.aQ(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Er(JS(W)),isNew:!0};if(l=_.yy(W,BW,30)){V.dataUrl=_.aQ(l,1)||null;a:{var f=_.yy(W,BW,30);switch(_.zy(f,3)){case 9:f=_.xt(f,aaB,2,d3);f={remoteRefs:f&&_.aQ(f,1)};break a;case 10:case 15:f=_.xt(f,OMv,4,d3);var r=JS(W);f={photo_id:f&&_.aQ(f,1),media_key:W.getId().getId(),media_type:_.zy(W,6)===1?1:2,image_url:r&&
r[0].getUrl(),width:r&&String(r[0].getWidth()),height:r&&String(r[0].getHeight())};break a}f=null}V.uploadMetadata=f;V.uploadId=_.aQ(l,9)||null;V.uploadState=B81(l)||null}(f=l&&_.xt(l,OMv,4,d3))&&(V.id=_.aQ(f,1));(f=l&&_.xt(l,zy$,5,d3))&&(V.contentId=_.aQ(f,1));(f=l&&_.xt(l,MeL,7,d3))&&(V.contentId=_.aQ(f,1));(f=l&&_.xt(l,ZMv,6,d3))&&(V.contentId=_.aQ(f,1));(l==null?void 0:_.zy(l,3))===1&&(V.mediaKey=W.getId().getId());return V},cv9=function(W){var l;
switch(((l=_.yy(W,BW,30))==null?void 0:_.zy(l,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},Sh=function(W){switch(_.zy(W,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 _.aQ(W,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},B81=function(W){switch(W==null?void 0:_.zy(W,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 UtI,dt$,Jvk,DtX;_.uRL=function(W,l){var V=l||{};l=V.document||document;var f=_.m7(W).toString(),r=(new zQ(l)).createElement("SCRIPT"),R={script_:r,timeout_:void 0},y=new nC(dt$,R),P=null,n=V.timeout!=null?V.timeout:5E3;n>0&&(P=window.setTimeout(function(){Jvk(r,!0);y.errback(new DtX(1,"Timeout reached for loading script "+f))},n),R.timeout_=P);
r.onload=r.onreadystatechange=function(){r.readyState&&r.readyState!="loaded"&&r.readyState!="complete"||(Jvk(r,V.cleanupWhenDone||!1,P),y.callback(null))};
r.onerror=function(){Jvk(r,!0,P);y.errback(new DtX(0,"Error while loading script "+f))};
R=V.attributes||{};_.MC.extend(R,{type:"text/javascript",charset:"UTF-8"});G1k(r,R);_.tL(r,W);UtI(l).appendChild(r);return y};
UtI=function(W){var l=ps("HEAD",W);return l&&l.length!==0?l[0]:W.documentElement};
dt$=function(){if(this&&this.script_){var W=this.script_;W&&W.tagName=="SCRIPT"&&Jvk(W,!0,this.timeout_)}};
Jvk=function(W,l,V){V!=null&&_.rS.clearTimeout(V);W.onload=function(){};
W.onerror=function(){};
W.onreadystatechange=function(){};
l&&window.setTimeout(function(){_.bI(W)},0)};
DtX=function(W,l){var V="Jsloader error (code #"+W+")";l&&(V+=": "+l);_.VU.call(this,V);this.code=W};
_.Jj(DtX,_.VU);var kdL=_.tj(["https://apis.google.com/js/api.js"]),vsv=_.dO(kdL),Gdk=function(W,l,V){V=V===void 0?{}:V;var f=!1,r=HRL(W,l,V).then(function(y){f=!0;return y}),R=_.hKL(5E3).then(function(){return f?HRL(W,l,V):Kuv(l,V).then(function(y){return FuI(y,W)})});
return AsL([r,R])},HRL=function(W,l,V){V=V===void 0?{}:V;
return bRM(l,V).then(function(f){return FuI(f,W)})},FuI=function(W,l){var V=_.sz(l,"gapi.")?l.slice(5):l;
return W[V]?_.jy(W[V]):new _.Dx(function(f,r){var R=ek(function(){r(Error("Ya"))},3E4);
W.load(l,{callback:function(){_.rS.clearTimeout(R);f(W[V])},
onerror:function(y){_.rS.clearTimeout(R);r(y)}})})},bRM=function(W,l){l=l===void 0?{}:l;
return W.gapi&&W.gapi.load?_.jy(W.gapi):Kuv(W,l)},Kuv=function(W,l){l=l===void 0?{}:l;
return _.uRL(vsv,{document:W.document,attributes:l}).then(function(){return W.gapi})},p2v=function(){};
p2v.prototype.load=function(W,l,V){l=l===void 0?window:l;V=V===void 0?{}:V;var f=Date.now();return Gdk(W,l,V).then(function(r){var R=Date.now();return{library:r,loadStartMs:f,loadEndMs:R}},function(r){throw r instanceof Error?r:Error(String(r));
})};var q6F=function(){_.iI.call(this);this.gapiLoader_=new p2v;this.origin_=null;this.gapiPickerIframeResolver_=_.yH();this.gapiIframesResolver_=_.yH();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.v(q6F,_.iI);var osZ=function(W,l){var V=_.Y2("gapi.iframes",l);return V?(W=Date.now(),_.jy({library:V,loadStartMs:W,loadEndMs:W})):W.gapiLoader_.load("gapi.iframes",l)},jle=function(W,l,V,f,r,R){var y=!1;
y=y===void 0?!1:y;osZ(W,aU(l.ownerDocument)).then(function(P){var n=P.library;W.gapiIframesResolver_.resolve(n);P=W.gapiPickerIframeResolver_;var B=P.resolve,d=y;d=d===void 0?!1:d;var J={};J["host-message-handler"]=V;W.hostMessageHandlerInternal_=J;var D=_.SV(f);D=_.SV(D);D=_.kg(_.uc(_.Ur(new _.dg,D.scheme_),D.JSC$10026_domain_),D.JSC$10026_port_).toString();W.origin_=D;D=(new er$).setUrl(f);D.JSC$10041_obj_.where=l;D.JSC$10041_obj_.allowPost=d;D.JSC$10041_obj_.messageHandlers=J;d=_.Y2("makeWhiteListIframesFilter",
n)([W.origin_]);D.JSC$10041_obj_.messageHandlersFilter=d;r!=null&&(D.JSC$10041_obj_.id=r);R!=null&&(D.JSC$10041_obj_.rpctoken=R);d=x4v(D);d.JSC$10038_obj_.style={display:"block","min-width":"100%",width:"1px"};d.JSC$10038_obj_.height="100%";x4v(D).value().allow="camera 'src' "+W.origin_;n=n.getContext().openChild(D.value());B.call(P,n)},function(P){W.gapiIframesResolver_.reject(P);
W.gapiPickerIframeResolver_.reject(P)});
return W.gapiPickerIframeResolver_.promise},IsL=function(W,l){return _.YS([W.gapiIframesResolver_.promise,
W.gapiPickerIframeResolver_.promise]).then(function(V){var f=_.L(V);V=f.next().value;return(f=f.next().value)?f.send("picker-message-handler",l,void 0,_.Y2("makeWhiteListIframesFilter",V)([W.origin_])):_.eM(Error("Za"))})};
q6F.prototype.disposeInternal=function(){iRk(this);_.iI.prototype.disposeInternal.call(this)};
var iRk=function(W){W.gapiPickerIframeResolver_.promise.then(function(l){l&&(l.unregister("host-message-handler"),delete W.hostMessageHandlerInternal_["host-message-handler"])})};var mtB=function(){this.JSC$10128_nextId=0};var T89=function(W,l){switch(W.action){case "select-contacts":W=X2L(W.contacts);break;case "visibility":W=W.visible;var V=new vW;W=_.qG(V,1,7).setVisible(W);V={};V["iframe-command"]=W.serialize();W=V;break;default:W=null}return W?IsL(l,W):_.jy()},X2L=function(W){if(!W||W.length==0)return null;
var l=new vW;_.qG(l,1,11);var V=new mtB;W.forEach(function(f){if(f.email){var r=new Aj;r=_.ft(r,2,f.name?f.name:f.email);var R=new w$a;f=_.wev(R,1,_.us,f.email,_.He);f=_.b7(r,27,f);r=new mIa;R=":"+(V.JSC$10128_nextId++).toString(36);r=_.ft(r,1,R);r=_.qG(r,2,12);f=_.b7(f,1,r)}else f=null;f&&vq(l,7,Aj,f)});
W={};W["iframe-command"]=l.serialize();return W};_.w2c=function(){if(VDJ){var W=/Windows NT ([0-9.]+)/;return(W=W.exec(_.Uz()))?W[1]:"0"}return _.lg6?(W=/1[0|1][_.][0-9_.]+/,(W=W.exec(_.Uz()))?W[0].replace(/_/g,"."):"10"):EDU?(W=/Android\s+([^\);]+)(\)|;)/,(W=W.exec(_.Uz()))?W[1]:""):rNF||RSY||tDJ?(W=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(W=W.exec(_.Uz()))?W[1].replace(/_/g,"."):""):""}();var $g;$g=function(W){return(W=W.exec(_.Uz()))?W[1]:""};
_.Avv=function(){if(_.Fe)return $g(/Firefox\/([0-9.]+)/);if(_.kt||li||E3q)return Cev;if(_.Gy){if(_.iF()||_.Jx6()){var W=$g(/CriOS\/([0-9.]+)/);if(W)return W}return $g(/Chrome\/([0-9.]+)/)}if(_.O6&&!_.iF())return $g(/Version\/([0-9.]+)/);if(wyn||AWn){if(W=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Uz()))return W[1]+"."+W[2]}else if(Dun)return(W=$g(/Android\s+([0-9.]+)/))?W:$g(/Version\/([0-9.]+)/);return""}();var QlM=function(){};
_.BF(QlM);QlM.prototype.nextId_=0;_.Wd=function(W){return":"+(W.nextId_++).toString(36)};var lC=function(W){_.aj.call(this);this.JSC$10136_dom_=W||IU();this.JSC$10136_id_=null;this.inDocument_=!1;this.JSC$10136_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Jj(lC,_.aj);lC.prototype.idGenerator_=QlM.getInstance();lC.prototype.getId=function(){return this.JSC$10136_id_||(this.JSC$10136_id_=_.Wd(this.idGenerator_))};
lC.prototype.getElement=function(){return this.JSC$10136_element_};
var VT=function(W){W.googUiComponentHandler_||(W.googUiComponentHandler_=new _.nX(W));return W.googUiComponentHandler_},MSI=function(W,l){if(W==l)throw Error("$a");
var V;if(V=l&&W.parent_&&W.JSC$10136_id_){V=W.parent_;var f=W.JSC$10136_id_;V=V.childIndex_&&f?_.MC.get(V.childIndex_,f)||null:null}if(V&&W.parent_!=l)throw Error("$a");W.parent_=l;lC.superClass_.setParentEventTarget.call(W,l)};
lC.prototype.setParentEventTarget=function(W){if(this.parent_&&this.parent_!=W)throw Error("ab");lC.superClass_.setParentEventTarget.call(this,W)};
lC.prototype.JSC$10138_createDom=function(){this.JSC$10136_element_=this.JSC$10136_dom_.createElement("DIV")};
lC.prototype.render=function(W){ZRB(this,W)};
var ZRB=function(W,l,V){if(W.inDocument_)throw Error("bb");W.JSC$10136_element_||W.JSC$10138_createDom();l?l.insertBefore(W.JSC$10136_element_,V||null):W.JSC$10136_dom_.JSC$9321_document_.body.appendChild(W.JSC$10136_element_);W.parent_&&!W.parent_.inDocument_||W.enterDocument()};
_.t=lC.prototype;_.t.decorate=function(W){if(this.inDocument_)throw Error("bb");if(W&&this.canDecorate(W)){this.wasDecorated_=!0;var l=_.z7(W);this.JSC$10136_dom_&&this.JSC$10136_dom_.JSC$9321_document_==l||(this.JSC$10136_dom_=IU(W));this.decorateInternal(W);this.enterDocument()}else throw Error("cb");};
_.t.canDecorate=function(){return!0};
_.t.decorateInternal=function(W){this.JSC$10136_element_=W};
_.t.enterDocument=function(){this.inDocument_=!0;ORL(this,function(W){!W.inDocument_&&W.getElement()&&W.enterDocument()})};
_.t.exitDocument=function(){ORL(this,function(W){W.inDocument_&&W.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.t.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);ORL(this,function(W){W.dispose()});
!this.wasDecorated_&&this.JSC$10136_element_&&_.bI(this.JSC$10136_element_);this.parent_=this.model_=this.JSC$10136_element_=this.childIndex_=this.children_=null;lC.superClass_.disposeInternal.call(this)};
_.t.getModel=function(){return this.model_};
_.t.addChild=function(W,l){var V=this.children_?this.children_.length:0;if(W.inDocument_&&(l||!this.inDocument_))throw Error("bb");if(V<0||V>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);W.parent_==this?(_.MC.set(this.childIndex_,W.getId(),W),_.aY(this.children_,W)):_.MC.add(this.childIndex_,W.getId(),W);MSI(W,this);_.FjU(this.children_,V,0,W);W.inDocument_&&this.inDocument_&&W.parent_==this?(l=this.getContentElement(),
(l.childNodes[V]||null)!=W.getElement()&&(W.getElement().parentElement==l&&l.removeChild(W.getElement()),V=l.childNodes[V]||null,l.insertBefore(W.getElement(),V))):l?(this.JSC$10136_element_||this.JSC$10138_createDom(),V=this.children_?this.children_[V+1]||null:null,ZRB(W,this.getContentElement(),V?V.JSC$10136_element_:null)):this.inDocument_&&!W.inDocument_&&W.JSC$10136_element_&&W.JSC$10136_element_.parentNode&&W.JSC$10136_element_.parentNode.nodeType==1&&W.enterDocument()};
_.t.getContentElement=function(){return this.JSC$10136_element_};
var ORL=function(W,l){W.children_&&W.children_.forEach(l,void 0)};
lC.prototype.removeChild=function(W,l){if(W){var V=typeof W==="string"?W:W.getId();W=this.childIndex_&&V?_.MC.get(this.childIndex_,V)||null:null;V&&W&&(_.MC.remove(this.childIndex_,V),_.aY(this.children_,W),l&&(W.exitDocument(),W.JSC$10136_element_&&_.bI(W.JSC$10136_element_)),MSI(W,null))}if(!W)throw Error("eb");return W};_.Jj(MFF,Q0j);_.Jj(Z7v,Q0j);var ask;_.MC.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var zj$=function(W,l){l?W.setAttribute("role",l):W.removeAttribute("role")},fi=function(W,l,V){Array.isArray(V)&&(V=V.join(" "));
var f="aria-"+l;V===""||V==void 0?(ask||(V={},ask=(V.atomic=!1,V.autocomplete="none",V.dropeffect="none",V.haspopup=!1,V.live="off",V.multiline=!1,V.multiselectable=!1,V.orientation="vertical",V.readonly=!1,V.relevant="additions text",V.required=!1,V.sort="none",V.busy=!1,V.disabled=!1,V.hidden=!1,V.invalid="false",V)),V=ask,l in V?W.setAttribute(f,V[l]):W.removeAttribute(f)):W.setAttribute(f,V)};var N8k;_.rA=function(W,l,V){_.aj.call(this);this.target=W;this.handle=l||W;this.limits=V||new ll(NaN,NaN,NaN,NaN);this.JSC$10141_document_=_.z7(W);this.JSC$10141_eventHandler_=new _.nX(this);_.vt(this,this.JSC$10141_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;_.YJ(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=N8k};
_.Jj(_.rA,_.aj);N8k=_.rS.document&&_.rS.document.documentElement&&!!_.rS.document.documentElement.setCapture&&!!_.rS.document.releaseCapture;_.Yw1=function(W,l){W.hysteresisDistanceSquared_=Math.pow(l,2)};
_.t=_.rA.prototype;_.t.setEnabled=function(W){this.enabled_=W};
_.t.disposeInternal=function(){_.rA.superClass_.disposeInternal.call(this);_.Of(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10141_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10141_document_.releaseCapture();this.handle=this.target=null};
_.t.startDrag=function(W){var l=W.type=="mousedown";if(!this.enabled_||this.dragging_||l&&(W.event_.button!=0||_.lg6&&W.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new R9("start",this,W.clientX,W.clientY,W)))this.dragging_=!0,l&&W.preventDefault();else return;else l&&W.preventDefault();l=this.JSC$10141_document_;var V=l.documentElement,f=!this.useSetCapture_;this.JSC$10141_eventHandler_.listen(l,["touchmove","mousemove"],this.handleMove_,
{capture:f,passive:!1});this.JSC$10141_eventHandler_.listen(l,["touchend","mouseup"],this.endDrag,f);this.useSetCapture_?(V.setCapture(!1),this.JSC$10141_eventHandler_.listen(V,"losecapture",this.endDrag)):this.JSC$10141_eventHandler_.listen(aU(l),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10141_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,f);this.clientX=this.startX=W.clientX;this.clientY=this.startY=W.clientY;this.screenX=W.screenX;this.screenY=W.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=jt(IU(this.JSC$10141_document_))}};
_.t.endDrag=function(W,l){this.JSC$10141_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10141_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new R9("end",this,W.clientX,W.clientY,W,xtI(this,this.deltaX),ejM(this,this.deltaY),l||W.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.t.handleMove_=function(W){if(this.enabled_){var l=W.clientX-this.clientX,V=W.clientY-this.clientY;this.clientX=W.clientX;this.clientY=W.clientY;this.screenX=W.screenX;this.screenY=W.screenY;if(!this.dragging_){var f=this.startX-this.clientX,r=this.startY-this.clientY;if(f*f+r*r>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new R9("start",this,W.clientX,W.clientY,W)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(W);return}}V=qwe(this,l,V);l=V.x;V=V.y;this.dragging_&&this.dispatchEvent(new R9("beforedrag",
this,W.clientX,W.clientY,W,l,V))&&(hje(this,W,l,V),W.preventDefault())}};
var qwe=function(W,l,V){var f=jt(IU(W.JSC$10141_document_));l+=f.x-W.pageScroll.x;V+=f.y-W.pageScroll.y;W.pageScroll=f;W.deltaX+=l;W.deltaY+=V;return new _.O1(xtI(W,W.deltaX),ejM(W,W.deltaY))};
_.rA.prototype.onScroll_=function(W){var l=qwe(this,0,0);W.clientX=this.clientX;W.clientY=this.clientY;hje(this,W,l.x,l.y)};
var hje=function(W,l,V,f){W.target.style.left=V+"px";W.target.style.top=f+"px";W.dispatchEvent(new R9("drag",W,l.clientX,l.clientY,l,V,f))},xtI=function(W,l){var V=W.limits;
W=isNaN(V.left)?null:V.left;V=isNaN(V.width)?0:V.width;return Math.min(W!=null?W+V:Infinity,Math.max(W!=null?W:-Infinity,l))},ejM=function(W,l){var V=W.limits;
W=isNaN(V.top)?null:V.top;V=isNaN(V.height)?0:V.height;return Math.min(W!=null?W+V:Infinity,Math.max(W!=null?W:-Infinity,l))};
_.rA.prototype.isDragging=function(){return this.dragging_};
var R9=function(W,l,V,f,r,R,y){_.AS.call(this,W);this.clientX=V;this.clientY=f;this.browserEvent=r;this.left=R!==void 0?R:l.deltaX;this.top=y!==void 0?y:l.deltaY};
_.Jj(R9,_.AS);var tU=function(W){this.JSC$10148_map_=new Map;var l=arguments.length;if(l>1){if(l%2)throw Error("ka");for(var V=0;V<l;V+=2)this.set(arguments[V],arguments[V+1])}else W&&this.addAll(W)};
_.t=tU.prototype;_.t.getCount=function(){return this.JSC$10148_map_.size};
_.t.getValues=function(){return Array.from(this.JSC$10148_map_.values())};
_.t.getKeys=function(){return Array.from(this.JSC$10148_map_.keys())};
_.t.containsKey=function(W){return this.JSC$10148_map_.has(W)};
_.t.containsValue=function(W){return this.getValues().some(function(l){return l==W})};
_.t.equals=function(W,l){var V=this;l=l===void 0?function(f,r){return f===r}:l;
return this===W?!0:this.JSC$10148_map_.size!=W.getCount()?!1:this.getKeys().every(function(f){return l(V.JSC$10148_map_.get(f),W.get(f))})};
_.t.isEmpty=function(){return this.JSC$10148_map_.size==0};
_.t.clear=function(){this.JSC$10148_map_.clear()};
_.t.remove=function(W){return this.JSC$10148_map_.delete(W)};
_.t.get=function(W,l){return this.JSC$10148_map_.has(W)?this.JSC$10148_map_.get(W):l};
_.t.set=function(W,l){this.JSC$10148_map_.set(W,l);return this};
_.t.addAll=function(W){if(W instanceof tU){W=_.L(W.JSC$10148_map_);for(var l=W.next();!l.done;l=W.next()){var V=_.L(l.value);l=V.next().value;V=V.next().value;this.JSC$10148_map_.set(l,V)}}else if(W)for(W=_.L(Object.entries(W)),l=W.next();!l.done;l=W.next())V=_.L(l.value),l=V.next().value,V=V.next().value,this.JSC$10148_map_.set(l,V)};
_.t.forEach=function(W,l){var V=this;l=l===void 0?this:l;this.JSC$10148_map_.forEach(function(f,r){return W.call(l,f,r,V)})};
_.t.clone=function(){return new tU(this)};(function(){for(var W=["ms","moz","webkit","o"],l,V=0;l=W[V]&&!_.rS.requestAnimationFrame;++V)_.rS.requestAnimationFrame=_.rS[l+"RequestAnimationFrame"],_.rS.cancelAnimationFrame=_.rS[l+"CancelAnimationFrame"]||_.rS[l+"CancelRequestAnimationFrame"];if(!_.rS.requestAnimationFrame){var f=0;_.rS.requestAnimationFrame=function(r){var R=(new Date).getTime(),y=Math.max(0,16-(R-f));f=R+y;return _.rS.setTimeout(function(){r(R+y)},y)};
_.rS.cancelAnimationFrame||(_.rS.cancelAnimationFrame=function(r){clearTimeout(r)})}})();
var Sw9=[[],[]],Esk=0,$tI=!1,Wyv=0,VCc=function(W,l){var V=Wyv++,f={measureTask:{id:V,fn:W.measure,context:l},mutateTask:{id:V,fn:W.mutate,context:l},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(f.args||(f.args=[]),f.args.length=0,f.args.push.apply(f.args,arguments),f.args.push(f.state)):f.args&&f.args.length!=0?(f.args[0]=f.state,f.args.length=1):f.args=[f.state];f.isScheduled||(f.isScheduled=!0,Sw9[Esk].push(f));$tI||($tI=!0,window.requestAnimationFrame(lxv))}},lxv=
function(){$tI=!1;
var W=Sw9[Esk],l=W.length;Esk=(Esk+1)%2;for(var V,f=0;f<l;++f){V=W[f];var r=V.measureTask;V.isScheduled=!1;r.fn&&r.fn.apply(r.context,V.args)}for(f=0;f<l;++f)V=W[f],r=V.mutateTask,V.isScheduled=!1,r.fn&&r.fn.apply(r.context,V.args),V.state={};W.length=0};var fx9=_.tj(["about:blank"]),rrk=_.tj(["javascript:undefined"]),RXL=_.dO(fx9);_.m7(RXL);var tC9=_.dO(rrk);_.m7(tC9);var sY=function(W){_.aj.call(this);this.JSC$10154_element_=W;this.listenKeyIn_=_.YJ(this.JSC$10154_element_,"focus",this,!0);this.listenKeyOut_=_.YJ(this.JSC$10154_element_,"blur",this,!0)};
_.Jj(sY,_.aj);sY.prototype.handleEvent=function(W){var l=new _.QX(W.event_);l.type=W.type=="focusin"||W.type=="focus"?"focusin":"focusout";this.dispatchEvent(l)};
sY.prototype.disposeInternal=function(){sY.superClass_.disposeInternal.call(this);aJ(this.listenKeyIn_);aJ(this.listenKeyOut_);delete this.JSC$10154_element_};var soa=function(W,l){this.JSC$10157_element_=W;this.JSC$10157_dom_=l};var Li=function(W,l){lC.call(this,l);this.useIframeMask_=!!W;this.lastFocus_=null;this.resizeBackgroundTask_=VCc({mutate:this.resizeBackground_},this);VCc({mutate:this.updateModalAndBackground_},this)};
_.Jj(Li,lC);_.t=Li.prototype;_.t.focusHandler_=null;_.t.visible_=!1;_.t.bgEl_=null;_.t.bgIframeEl_=null;_.t.tabCatcherElement_=null;_.t.backwardTabWrapInProgress_=!1;_.t.getCssClass=function(){return"goog-modalpopup"};
_.t.getBackgroundElement=function(){return this.bgEl_};
_.t.JSC$10138_createDom=function(){Li.superClass_.JSC$10138_createDom.call(this);var W=this.getElement(),l=Cq(this.getCssClass()).split(" ");gw(W,l);W.tabIndex=0;_.W4(W,!1);LyZ(this);yr9(this)};
var LyZ=function(W){if(W.useIframeMask_&&!W.bgIframeEl_){var l=W.JSC$10136_dom_.JSC$9323_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.WG(l,RXL);W.bgIframeEl_=l;W.bgIframeEl_.className=W.getCssClass()+"-bg";_.W4(W.bgIframeEl_,!1);VeM(W.bgIframeEl_,0)}W.bgEl_||(W.bgEl_=W.JSC$10136_dom_.JSC$9323_createDom("DIV",W.getCssClass()+"-bg"),_.W4(W.bgEl_,!1))},yr9=function(W){W.tabCatcherElement_||(W.tabCatcherElement_=W.JSC$10136_dom_.createElement("SPAN"),_.W4(W.tabCatcherElement_,
!1),W.tabCatcherElement_.tabIndex=0,W.tabCatcherElement_.style.position="absolute")};
_.t=Li.prototype;_.t.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.t.canDecorate=function(W){return!!W&&W.tagName=="DIV"};
_.t.decorateInternal=function(W){Li.superClass_.decorateInternal.call(this,W);W=Cq(this.getCssClass()).split(" ");gw(this.getElement(),W);LyZ(this);yr9(this);this.getElement().tabIndex=0;_.W4(this.getElement(),!1)};
_.t.enterDocument=function(){this.bgIframeEl_&&_.Sg(this.bgIframeEl_,this.getElement());_.Sg(this.bgEl_,this.getElement());Li.superClass_.enterDocument.call(this);_.Ed(this.tabCatcherElement_,this.getElement());this.focusHandler_=new sY(this.JSC$10136_dom_.JSC$9321_document_);VT(this).listen(this.focusHandler_,"focusin",this.onFocus);g_9(this,!1)};
_.t.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Ls(this.focusHandler_);Li.superClass_.exitDocument.call(this);_.bI(this.bgIframeEl_);_.bI(this.bgEl_);_.bI(this.tabCatcherElement_)};
_.t.setVisible=function(W){if(W!=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_&&g_9(this,W),W){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10136_dom_.JSC$9321_document_.activeElement}catch(r){}this.updateModalAndBackground_();VT(this).listen(this.JSC$10136_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10136_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);PTB(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)OU(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){VT(this).unlisten(this.JSC$10136_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10136_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)OU(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var l=this.JSC$10136_dom_,V=l.JSC$9321_document_.body,f=l.JSC$9321_document_.activeElement||V;if(!this.lastFocus_||this.lastFocus_==V){this.lastFocus_=null;break a}(f==V||l.contains(this.getElement(),f))&&this.lastFocus_.focus()}catch(r){}this.lastFocus_=
null}}};
var g_9=function(W,l){W.modalAriaVisibilityHelper_||(W.modalAriaVisibilityHelper_=new soa(W.JSC$10136_element_,W.JSC$10136_dom_));W=W.modalAriaVisibilityHelper_;if(l){W.hiddenElements_||(W.hiddenElements_=[]);l=W.JSC$10157_dom_.getChildren(W.JSC$10157_dom_.JSC$9321_document_.body);for(var V=0;V<l.length;V++){var f=l[V],r;if(r=f!=W.JSC$10157_element_)r=f.getAttribute("aria-hidden"),r=!(r==null||r==void 0?0:String(r));r&&(fi(f,"hidden",!0),W.hiddenElements_.push(f))}}else if(W.hiddenElements_){for(l=
0;l<W.hiddenElements_.length;l++)W.hiddenElements_[l].removeAttribute("aria-hidden");W.hiddenElements_=null}};
Li.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var PTB=function(W,l){W.bgIframeEl_&&_.W4(W.bgIframeEl_,l);W.bgEl_&&_.W4(W.bgEl_,l);_.W4(W.getElement(),l);_.W4(W.tabCatcherElement_,l)};
_.t=Li.prototype;_.t.onShow=function(){this.dispatchEvent("show")};
_.t.onHide=function(){PTB(this,!1);this.dispatchEvent("hide")};
_.t.isVisible=function(){return this.visible_};
_.t.focus=function(){this.focusElement_()};
_.t.resizeBackground_=function(){this.bgIframeEl_&&_.W4(this.bgIframeEl_,!1);this.bgEl_&&_.W4(this.bgEl_,!1);var W=this.JSC$10136_dom_.JSC$9321_document_;var l=_.oU(aU(this.JSC$10136_dom_.JSC$9321_document_)||window);var V=Math.max(l.width,Math.max(W.body.scrollWidth,W.documentElement.scrollWidth));W=Math.max(l.height,Math.max(W.body.scrollHeight,W.documentElement.scrollHeight));this.bgIframeEl_&&(_.W4(this.bgIframeEl_,!0),_.EZv(this.bgIframeEl_,V,W));this.bgEl_&&(_.W4(this.bgEl_,!0),_.EZv(this.bgEl_,
V,W))};
_.t.reposition=function(){var W;if(_.S5c(this.getElement())=="fixed")var l=W=0;else l=jt(this.JSC$10136_dom_),W=l.x,l=l.y;var V=W7L(this.getElement());var f=_.oU(aU(this.JSC$10136_dom_.JSC$9321_document_)||window);W=Math.max(W+f.width/2-V.width/2,0);l=Math.max(l+f.height/2-V.height/2,0);r3(this.getElement(),W,l);r3(this.tabCatcherElement_,W,l)};
_.t.onFocus=function(W){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():W.target==this.tabCatcherElement_&&ek(this.focusElement_,0,this)};
_.t.focusElement_=function(){try{this.getElement().focus()}catch(W){}};
_.t.disposeInternal=function(){_.Ls(this.popupShowTransition_);this.popupShowTransition_=null;_.Ls(this.popupHideTransition_);this.popupHideTransition_=null;_.Ls(this.bgShowTransition_);this.bgShowTransition_=null;_.Ls(this.bgHideTransition_);this.bgHideTransition_=null;Li.superClass_.disposeInternal.call(this)};var zz=function(W,l,V){Li.call(this,l,V);this.JSC$10167_class_=W||"modal-dialog";this.buttons_=(new yT).addButton(n_v,!0).addButton(CTM,!1,!0)};
_.Jj(zz,Li);_.t=zz.prototype;_.t.escapeToCancel_=!0;_.t.hasTitleCloseButton_=!0;_.t.modal_=!0;_.t.draggable_=!0;_.t.backgroundElementOpacity_=.5;_.t.title_="";_.t.JSC$10169_dragger_=null;_.t.JSC$10169_disposeOnHide_=!1;_.t.titleEl_=null;_.t.titleTextEl_=null;_.t.titleTextId_=null;_.t.titleCloseEl_=null;_.t.contentEl_=null;_.t.buttonEl_=null;_.t.getCssClass=function(){return this.JSC$10167_class_};
_.t.setTitle=function(W){this.title_=W;this.titleTextEl_&&_.WW(this.titleTextEl_,W)};
_.t.getTitle=function(){return this.title_};
_.t.getContent=function(){return""};
_.t.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var cr9=function(W){W.getElement()||W.render();return W.getElement()};
zz.prototype.getBackgroundElement=function(){this.getElement()||this.render();return zz.superClass_.getBackgroundElement.call(this)};
var Bve=function(W,l){W.backgroundElementOpacity_=l;W.getElement()&&(l=W.getBackgroundElement())&&VeM(l,W.backgroundElementOpacity_)};
zz.prototype.setDraggable=function(W){this.draggable_=W;dJL(this,W&&this.inDocument_)};
zz.prototype.handleDrag=function(){};
var dJL=function(W,l){var V=Cq(W.JSC$10167_class_+"-title-draggable").split(" ");W.getElement()&&(l?gw(W.titleEl_,V):zaZ(W.titleEl_,V));l&&!W.JSC$10169_dragger_?(l=new _.rA(W.getElement(),W.titleEl_),W.JSC$10169_dragger_=l,gw(W.titleEl_,V),_.YJ(W.JSC$10169_dragger_,"start",W.setDraggerLimits_,!1,W),_.YJ(W.JSC$10169_dragger_,"drag",W.handleDrag,!1,W)):!l&&W.JSC$10169_dragger_&&(W.JSC$10169_dragger_.dispose(),W.JSC$10169_dragger_=null)};
_.t=zz.prototype;
_.t.JSC$10138_createDom=function(){zz.superClass_.JSC$10138_createDom.call(this);var W=this.getElement(),l=this.JSC$10136_dom_;this.titleTextId_=this.getId();var V=this.getId()+".contentEl";this.titleEl_=l.JSC$9323_createDom("DIV",this.JSC$10167_class_+"-title",this.titleTextEl_=l.JSC$9323_createDom("SPAN",{className:this.JSC$10167_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=l.JSC$9323_createDom("SPAN",this.JSC$10167_class_+"-title-close"));IcZ(W,this.titleEl_,this.contentEl_=
l.JSC$9323_createDom("DIV",{className:this.JSC$10167_class_+"-content",id:V}),this.buttonEl_=l.JSC$9323_createDom("DIV",this.JSC$10167_class_+"-buttons"));zj$(this.titleTextEl_,"heading");zj$(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;fi(this.titleCloseEl_,"label","Close");zj$(W,"dialog");fi(W,"labelledby",this.titleTextId_||"");_.W4(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(W=this.buttons_,W.JSC$10170_element_=this.buttonEl_,W.render());_.W4(this.buttonEl_,!!this.buttons_);
Bve(this,this.backgroundElementOpacity_)};
_.t.decorateInternal=function(W){zz.superClass_.decorateInternal.call(this,W);W=this.getElement();var l=this.JSC$10167_class_+"-content";this.contentEl_=N7(document,null,l,W)[0];this.contentEl_||(this.contentEl_=this.JSC$10136_dom_.JSC$9323_createDom("DIV",l),W.appendChild(this.contentEl_));l=this.JSC$10167_class_+"-title";var V=this.JSC$10167_class_+"-title-text",f=this.JSC$10167_class_+"-title-close";(this.titleEl_=N7(document,null,l,W)[0])?(this.titleTextEl_=N7(document,null,V,this.titleEl_)[0],
this.titleCloseEl_=N7(document,null,f,this.titleEl_)[0]):(this.titleEl_=this.JSC$10136_dom_.JSC$9323_createDom("DIV",l),W.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=Y5k(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.xR("SPAN",{className:V,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;fi(W,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10136_dom_.JSC$9323_createDom("SPAN",f),this.titleEl_.appendChild(this.titleCloseEl_));_.W4(this.titleCloseEl_,this.hasTitleCloseButton_);l=this.JSC$10167_class_+"-buttons";(this.buttonEl_=N7(document,null,l,W)[0])?(this.buttons_=new yT(this.JSC$10136_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10136_dom_.JSC$9323_createDom("DIV",l),W.appendChild(this.buttonEl_),this.buttons_&&(W=this.buttons_,W.JSC$10170_element_=this.buttonEl_,W.render()),_.W4(this.buttonEl_,
!!this.buttons_));Bve(this,this.backgroundElementOpacity_)};
_.t.enterDocument=function(){zz.superClass_.enterDocument.call(this);VT(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);VT(this).listen(this.buttonEl_,"click",this.onButtonClick_);dJL(this,this.draggable_);VT(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var W=this.getElement();zj$(W,"dialog");this.titleTextEl_.id!==""&&fi(W,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){W=this.JSC$10136_dom_;
var l=this.getBackgroundElement();W.removeNode(this.bgIframeEl_);W.removeNode(l)}this.isVisible()&&g_9(this,!1)}};
_.t.exitDocument=function(){this.isVisible()&&this.setVisible(!1);dJL(this,!1);zz.superClass_.exitDocument.call(this)};
_.t.setVisible=function(W){W!=this.isVisible()&&(this.inDocument_||this.render(),zz.superClass_.setVisible.call(this,W))};
_.t.onShow=function(){zz.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.t.onHide=function(){zz.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10169_disposeOnHide_&&this.dispose()};
_.t.setDraggerLimits_=function(){var W=this.JSC$10136_dom_.JSC$9321_document_,l=_.oU(aU(W)||window),V=Math.max(W.body.scrollWidth,l.width);W=Math.max(W.body.scrollHeight,l.height);var f=W7L(this.getElement());_.S5c(this.getElement())=="fixed"?this.JSC$10169_dragger_.limits=new ll(0,0,Math.max(0,l.width-f.width),Math.max(0,l.height-f.height)):this.JSC$10169_dragger_.limits=new ll(0,0,V-f.width,W-f.height)};
_.t.onTitleCloseClick_=function(){JrM(this)};
var JrM=function(W){if(W.hasTitleCloseButton_){var l=W.buttons_,V=l&&l.cancelButton_;V?(l=l.get(V),W.dispatchEvent(new gA(V,l))&&W.setVisible(!1)):W.setVisible(!1)}},DJM=function(W){W.hasTitleCloseButton_=!1;
W.titleCloseEl_&&_.W4(W.titleCloseEl_,W.hasTitleCloseButton_)};
zz.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;zz.superClass_.disposeInternal.call(this)};
zz.prototype.onButtonClick_=function(W){a:{for(W=W.target;W!=null&&W!=this.buttonEl_;){if(W.tagName=="BUTTON")break a;W=W.parentNode}W=null}if(W&&!W.disabled){W=W.name;var l=this.buttons_.get(W);this.dispatchEvent(new gA(W,l))&&this.setVisible(!1)}};
zz.prototype.onKey_=function(W){var l=!1,V=!1,f=this.buttons_,r=W.target;if(W.type=="keydown")if(this.escapeToCancel_&&W.keyCode==27){var R=f&&f.cancelButton_;r=r.tagName=="SELECT"&&!r.disabled;R&&!r?(V=!0,l=f.get(R),l=this.dispatchEvent(new gA(R,l))):r||(l=!0)}else{if(W.keyCode==9&&W.shiftKey&&r==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(d){}ek(this.resetBackwardTabWrap_,0,this)}}else if(W.keyCode==13){if(r.tagName=="BUTTON"&&!r.disabled)R=r.name;
else if(r==this.titleCloseEl_)JrM(this);else if(f){var y=f.defaultButton_,P;if(P=y)a:{P=ps("BUTTON",f.JSC$10170_element_);for(var n,B=0;n=P[B];B++)if(n.name==y||n.id==y){P=n;break a}P=null}r=(r.tagName=="TEXTAREA"||r.tagName=="SELECT"||r.tagName=="A")&&!r.disabled;!P||P.disabled||r||(R=y)}R&&f&&(V=!0,l=this.dispatchEvent(new gA(R,String(f.get(R)))))}else r!=this.titleCloseEl_||W.keyCode!=32&&W.key!=" "||JrM(this);if(l||V)W.stopPropagation(),W.preventDefault();l&&this.setVisible(!1)};
var gA=function(W,l){this.type="dialogselect";this.key=W;this.caption=l};
_.Jj(gA,_.AS);var yT=function(W){tU.call(this);W||IU();this.cancelButton_=this.JSC$10170_element_=this.defaultButton_=null};
_.Jj(yT,tU);_.t=yT.prototype;_.t.clear=function(){tU.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.t.set=function(W,l,V,f){tU.prototype.set.call(this,W,l);V&&(this.defaultButton_=W);f&&(this.cancelButton_=W);return this};
_.t.addButton=function(W,l,V){return this.set(W.key,W.caption,l,V)};
_.t.render=function(){if(this.JSC$10170_element_){_.sx(this.JSC$10170_element_,dt4);var W=IU(this.JSC$10170_element_);this.forEach(function(l,V){l=W.JSC$9323_createDom("BUTTON",{name:V},l);V==this.defaultButton_&&(l.className="goog-buttonset-default");this.JSC$10170_element_.appendChild(l)},this)}};
_.t.decorate=function(W){if(W&&W.nodeType==1){this.JSC$10170_element_=W;W=ps("BUTTON",this.JSC$10170_element_);for(var l,V,f,r=0;l=W[r];r++)if(V=l.name||l.id,f=Y5k(l)||l.value,V){var R=r==0;this.set(V,f,R,l.name=="cancel");R&&_.J2(l,"goog-buttonset-default")}}};
_.t.getElement=function(){return this.JSC$10170_element_};
var n_v={key:"ok",caption:"OK"},CTM={key:"cancel",caption:"Cancel"},UJ1={key:"yes",caption:"Yes"},uCk={key:"no",caption:"No"},ks1={key:"save",caption:"Save"},v_$={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new yT).addButton(n_v,!0,!0),(new yT).addButton(n_v,!0).addButton(CTM,!1,!0),(new yT).addButton(UJ1,!0).addButton(uCk,!1,!0),(new yT).addButton(UJ1).addButton(uCk,!0).addButton(CTM,!1,!0),(new yT).addButton(v_$).addButton(ks1).addButton(CTM,!0,!0));_.Jj(O74,zz);_.Jj(ajJ,Ns);var HSX=_.tj(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),KyL=_.tj(["//apis.google.com/js/rpc.js"]),B8g=_.dO(HSX),cvn=_.dO(KyL),NUv=null;var Y9=function(W,l){_.aj.call(this);this.JSC$10179_element_=W;W=_.Wq(this.JSC$10179_element_)?this.JSC$10179_element_:this.JSC$10179_element_?this.JSC$10179_element_.body:null;this.isRtl_=!!W&&_.faZ(W);this.listenKey_=_.YJ(this.JSC$10179_element_,_.vF?"DOMMouseScroll":"mousewheel",this,l)};
_.Jj(Y9,_.aj);Y9.prototype.handleEvent=function(W){var l=0,V=0,f=W.event_;f.type=="mousewheel"?(W=Fy9(-f.wheelDelta),f.wheelDeltaX!==void 0?(l=Fy9(-f.wheelDeltaX),V=Fy9(-f.wheelDeltaY)):V=W):(W=f.detail,W>100?W=3:W<-100&&(W=-3),f.axis!==void 0&&f.axis===f.HORIZONTAL_AXIS?l=W:V=W);typeof this.maxDeltaX_==="number"&&(l=_.xP(l,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(V=_.xP(V,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(l=-l);l=new GsL(W,f,l,V);this.dispatchEvent(l)};
var Fy9=function(W){return _.HF&&(_.lg6||fg8)&&W%40!=0?W:W/40};
Y9.prototype.disposeInternal=function(){Y9.superClass_.disposeInternal.call(this);aJ(this.listenKey_);this.listenKey_=null};
var GsL=function(W,l,V,f){_.QX.call(this,l);this.type="mousewheel";this.detail=W;this.deltaX=V;this.deltaY=f};
_.Jj(GsL,_.QX);_.nt=function(W){var l="instance_";if(W.instance_&&W.hasOwnProperty(l))return W.instance_;l=new W;return W.instance_=l};var Ci6;var bSk=_.tj(["https://about:blank"]),pqe=_.tj(['javascript:""']),o_9=_.tj(["about:blank"]);_.Jj(lW,O74);_.t=lW.prototype;_.t.JSC$10187_url_="";_.t.JSC$10187_iframe_=null;_.t.iframeLoaded_=!1;_.t.loadedFired_=!1;_.t.callback_=function(){};
_.t.enterDocument=function(){lW.superClass_.enterDocument.call(this);eVv(this.getBackgroundElement(),VT(this))};
_.t.render=function(W){var l=this;lW.superClass_.render.call(this,W);this.useGapi_?osZ(this.iframeManager_,window).then(function(){return joZ(l)}).then(null,function(){l.callback_({action:"error"})}):Ixc(this)};
var joZ=function(W){var l=W.JSC$10136_dom_.JSC$9323_createDom("div",["picker-dialog-content","picker-frame"]);_.W4(l,!1);W.getContentElement().appendChild(l);return jle(W.iframeManager_,l,function(V){var f=qP1(V["iframe-command"]);switch(f.getCommand()){case 1:V=W.callback_;f=_.yy(f,kS,2);var r="";switch(f.getStatus()){case 2:r="cancel";break;case 1:r="picked";break;case 3:r="error"}var R=_.Pt(f,Aj,2,_.ns(bK8));f=R.length===0?{action:r}:gsk(R,r,_.yy(f,YPI,7));V.call(W,f);W.setVisible(!1);break;case 4:DJM(W);
W.callback_({action:"loaded"});break;case 7:case 8:V=W.callback_;a:{r=f.getCommand();R=_.yy(f,kS,2);switch(r){case 7:r="uploadScheduled";break;case 8:r="uploadStateChange";break;default:f={};break a}f=_.Pt(R,Aj,2,_.ns(bK8));if(f.length===0)f={action:r};else{var y=_.yy(R,YPI,7);R=y&&_.aQ(y,1);y=$LX(y);f=VS9(f,r,R,y)}}V.call(W,f)}},W.JSC$10187_url_,W.targetId_,W.rpcToken_).then(function(V){W.JSC$10187_iframe_=V.getIframeEl();
iSZ(W);_.W4(W.JSC$10187_iframe_.parentElement,!0);_.J2(W.getElement(),"picker-dialog");mJa(W);return V})},Ixc=function(W){W.JSC$10187_iframe_=W.JSC$10136_dom_.JSC$9323_createDom("IFRAME",{id:W.targetId_,
name:W.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.WG(W.JSC$10187_iframe_,Xqc(W));_.J2(W.getElement(),"picker-dialog");W.getContentElement().appendChild(W.JSC$10187_iframe_);VT(W).listen(W.JSC$10187_iframe_,"load",function(){return void iSZ(W)});
W.JSC$10187_iframe_.src=W.JSC$10187_url_;mJa(W)},wqB=function(W){TvB(W,(0,_.ml)(function(l){l.setAuthToken(this.targetId_,this.rpcToken_)},W))},mJa=function(W){var l=_.Ec(_.SV(W.JSC$10187_url_),"title");
l&&W.setTitle(l)},Xqc=function(W){return _.cxJ("Internet Explorer")>=7&&_.sz(W.JSC$10187_url_,"https")?_.dO(bSk):_.kt?_.dO(pqe):_.dO(o_9)},iSZ=function(W){wqB(W);
W.iframeLoaded_=!0;W.JSC$10187_iframe_.tabIndex=0;W.isVisible()&&W.focus()};
lW.prototype.handleKeydown_=function(W){W.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),W.stopPropagation(),W.preventDefault())};
var TvB=function(W,l){var V=W.JSC$10185_gadgetsDomHelper_;Y6z(function(){l(V.getWindow().gadgets.rpc)},V)};
lW.prototype.setUrl=function(W){W=_.$9(new _.dg(W),"rpcService",this.targetId_);_.$9(W,"rpctoken",this.rpcToken_);_.KC(W,"rpctoken="+this.rpcToken_);_.Ur(W,"https");this.JSC$10187_url_=W.toString();this.JSC$10187_iframe_&&(this.JSC$10187_iframe_.src=this.JSC$10187_url_)};
var Ara=function(W,l){W.callback_=l;TvB(W,(0,_.ml)(function(V){V.register(this.targetId_,(0,_.ml)(this.handlePickerAction_,this))},W))};
lW.prototype.handlePickerAction_=function(W){var l=W.action;l=="loaded"&&(this.loadedFired_=!0,QoI(this,new Z7v(this.isVisible())),MCa(this),DJM(this),VT(this).unlisten(this.JSC$10136_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10187_iframe_.tabIndex=0);l!="picked"&&l!="cancel"||this.setVisible(!1);this.callback_(W)};
var MCa=function(W){W.JSC$10187_appId_&&QoI(W,new MFF(W.JSC$10187_appId_,window.location.protocol+"//"+window.location.host))};
lW.prototype.setRelayUrl=function(W){TvB(this,(0,_.ml)(function(l){l.setRelayUrl(this.targetId_,W)},this))};
var QoI=function(W,l){W.useGapi_&&T89(l,W.iframeManager_).then(null,function(){W.callback_({action:"error"})});
TvB(W,(0,_.ml)(function(V){V.call(this.targetId_,"picker",null,l)},W))};
lW.prototype.resizePicker_=function(){var W=aU(this.JSC$10136_dom_.JSC$9321_document_)||window;if(_.Ec(_.SV(this.JSC$10187_url_),"ignoreLimits")=="true")W=new _.p5(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Ec(_.SV(this.JSC$10187_url_),"shadeDialog")=="true"){var l=cr9(this);l=rO9(l);var V=_.oU(W);W=V.width-80;V=V.height-40;l&&(W-=l.left?l.left:0,W-=l.right?l.right:0,V-=l.top?l.top:0,V-=l.bottom?l.bottom:0);W=new _.p5(W>0?W:0,V>0?V:0)}else(l=this.preferredDialogWidth_)?(l=Math.max(320,
Math.min(1051,l)),(V=this.preferredDialogHeight_)||(V=_.oU(W).height*.85),V=Math.max(480,Math.min(650,V))):(l=_.oU(W),V=l.width*.618,V=V<l.height?Math.round(Math.max(480,Math.min(650,V*.85))):Math.round(Math.max(480,Math.min(650,l.height*.85))),l=Math.round(V/.618)),W=_.oU(W),l=Math.min(l,Math.max(W.width,320)),V=Math.min(V,Math.max(W.height,480)),W=new _.p5(l,V);_.EZv(this.getContentElement(),W);this.reposition()};
lW.prototype.reposition=function(){if(_.Ec(_.SV(this.JSC$10187_url_),"shadeDialog")=="true"){var W=W7L(this.getElement()),l=_.oU(this.JSC$10136_dom_.getWindow());W=Math.floor(l.width/2-W.width/2);l=cr9(this);if(l=rO9(l)){var V=l.left?l.left:0;V+=l.right?l.right:0;W=Math.floor(W-V/2)}W=W>0?W:0;l=jt(this.JSC$10136_dom_).y;r3(this.getElement(),W,l)}else lW.superClass_.reposition.call(this)};
lW.prototype.setVisible=function(W){if(W!=this.isVisible()&&this.autoSizeDialog_){var l=this.JSC$10136_dom_.getWindow();W?(this.resizePicker_(),VT(this).listen(l,"resize",this.resizePicker_),this.iframeLoaded_||VT(this).listen(l,"keydown",this.handleKeydown_)):(VT(this).unlisten(l,"resize",this.resizePicker_),this.iframeLoaded_||VT(this).unlisten(l,"keydown",this.handleKeydown_))}lW.superClass_.setVisible.call(this,W);QoI(this,new Z7v(W))};
lW.prototype.focus=function(){lW.superClass_.focus.call(this);if(this.JSC$10187_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10187_iframe_.focus()}catch(W){}};var WV=function(W,l){l=l===void 0?lW:l;Ns.call(this,W);this.pickerConstructor=l;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(W=window.location.origin)||(W=window.location.protocol+"//"+window.location.host);W&&this.urlParamMap_.set("origin",W);this.postProcessors_=[]};
_.v(WV,ajJ);WV.prototype.JSC$10192_disposeOnHide_=!1;
WV.prototype.build=function(){this.JSC$10093_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10093_appId_);this.getRelayUrl()||this.setRelayUrl(_.vD(_.KC(_.HD(_.SV(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var W=new this.pickerConstructor(ZSa(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);W.JSC$10169_disposeOnHide_=this.JSC$10192_disposeOnHide_;
W.JSC$10187_appId_=this.JSC$10093_appId_;W.loadedFired_&&MCa(W);Ara(W,this.callback_);return W};
var OSM=function(W){W.urlParamMap_.set("multiselectEnabled","true");return W};
_.t=WV.prototype;_.t.getHeight=function(){return this.dialogHeight_};
_.t.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.t.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.t.getTitle=function(){return this.urlParamMap_.get("title")};
_.t.getWidth=function(){return this.dialogWidth_};
var axv=function(W){W.JSC$10192_disposeOnHide_=void 0;return W};
WV.prototype.setRelayUrl=function(W){this.urlParamMap_.set("parent",W);return this};
var zX9=function(W,l){W.urlParamMap_.set("selectButtonLabel",l);return W};
WV.prototype.setSize=function(W,l){this.dialogWidth_=W;this.dialogHeight_=l;return this};
WV.prototype.setTitle=function(W){this.urlParamMap_.set("title",W);return this};
var ZSa=function(W){W.postProcessors_.length&&W.urlParamMap_.set("pp",JSON.stringify(W.postProcessors_));W.urlParamMap_.set("nav",q6B(W.nav_));var l=new _.dg(W.getBaseUrl());W.urlParamMap_.forEach(function(V,f){_.$9(l,f,V)});
return l};var xJa=function(W,l){W.name!==void 0?(this.name=W.name,this.code=Nv$[W.name]):(this.code=W=W.code,this.name=YLv(W));_.VU.call(this,cZk("%s %s",this.name,l))};
_.Jj(xJa,_.VU);var YLv=function(W){var l=_.MC.findKey(Nv$,function(V){return W==V});
if(l===void 0)throw Error("hb`"+W);return l},Pd={},Nv$=(Pd.AbortError=3,Pd.EncodingError=5,Pd.InvalidModificationError=9,Pd.InvalidStateError=7,Pd.NotFoundError=1,Pd.NotReadableError=4,Pd.NoModificationAllowedError=6,Pd.PathExistsError=12,Pd.QuotaExceededError=10,Pd.SecurityError=2,Pd.SyntaxError=8,Pd.TypeMismatchError=11,Pd);var eXk=function(W,l){_.AS.call(this,W.type,l);this.event_=W};
_.Jj(eXk,_.AS);var qLM=function(W,l,V){V===void 0&&(V=W.size);return W.slice?W.slice(l,V):null};var DtY=new WeakMap,Jv8=function(W,l){W=[W];for(var V=l.length-1;V>=0;--V)W.push(typeof l[V],l[V]);return W.join("\v")};_.uRS(function(){if(!_.rS.Blob)return!1;var W=new Uint8Array(100);try{var l=new Blob([W])}catch(V){return!1}return l.size!=100?!1:!0});
var hXM=_.uRS(function(){if(!_.rS.Blob)return!1;var W=new Uint8Array(100);try{var l=new Blob([W])}catch(V){return!1}return qLM(l,0,1)===null?!1:!0});_.rS.U3bHHf!=null||(_.rS.U3bHHf=0);_.rS.U3bHHf++;_.SLv=new WeakMap;_.E_L=new WeakMap;var vsU={};var r9=void 0;var KuU=Symbol("pb");var AvU=sR("WizInjectionContext_Dispatcher");var r6z=Symbol("qb");var uz,FW;uz=function(){this.afterRenderCallbacks=null};
_.tyz=Symbol("rb");FW=function(W){this.props=W;this.__unmounted=!1};
FW.prototype.didPatch=function(){};
FW.prototype.didMount=function(){};
FW.prototype.didUnmount=function(){};
FW.prototype.didUpdate=function(){};_.iR8=sR("WizInjectionContext_RootElement");var X2S=sR("WizInjectionContext_AppContext"),mtF=sR("WizInjectionContext_ModelRootElement"),T8n=sR("WizInjectionContext_RendererData"),w2z=sR("WizInjectionContext_InjectingConstructor"),IsS=sR("WizInjectionContext_AsyncDeps"),Qlz={};var N88=!1;var qwq={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:qt6,enableLazyTsx:hqn,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:eq4,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var y_=Object.assign({},{attributes:{},handleError:function(W){throw W;}},qwq);var $JZ=Symbol("vb"),KW=Symbol("wb"),Nv4=Symbol("xb"),axU=Symbol("yb"),E_v=X9(function(W){return g9(W)&&$JZ in W});var VCz=Symbol("zb"),ni={},WyU=(ni[VCz]=!0,ni.debugName="[component]",ni.getComponentStack=function(){for(var W=[],l=this;l;)fxn(l)&&W.push(l.debugName),l=l.parent;return W},ni.registerSignal=function(){},ni.registerEffect=function(){},ni);var P4=null,CW=!1,so6=1,dJv=Symbol("Db"),kW={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 Ci=Symbol("Eb"),cd=Symbol("Fb"),B4=Symbol("Gb"),Bvq=Object.assign({},kW,{value:Ci,dirty:!0,error:null,equal:rr8,kind:"computed",producerMustRecompute:function(W){return W.value===Ci||W.value===cd},
producerRecomputeValue:function(W){if(W.value===cd)throw Error("Z");var l=W.value;W.value=cd;var V=n_U(W),f=!1;try{var r=W.computation();nW(null);f=l!==Ci&&l!==B4&&r!==B4&&W.equal(l,r)}catch(R){r=B4,W.error=R}finally{crn(W,V)}f?W.value=l:(W.value=r,W.version++)}});var uCj=function(){throw Error();};var v_4=null,DJz=Object.assign({},kW,{equal:rr8,value:void 0,kind:"signal"});Object.assign({},kW,{value:Ci,dirty:!0,error:null,equal:rr8,kind:"linkedSignal",producerMustRecompute:function(W){return W.value===Ci||W.value===cd},
producerRecomputeValue:function(W){if(W.value===cd)throw Error("Z");var l=W.value;W.value=cd;var V=n_U(W);try{var f=W.source();var r=W.computation(f,l===Ci||l===B4?void 0:{source:W.sourceValue,value:l});W.sourceValue=f}catch(R){r=B4,W.error=R}finally{crn(W,V)}l!==Ci&&r!==B4&&W.equal(l,r)?W.value=l:(W.value=r,W.version++)}});Object.assign({},kW,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(W){W.schedule!==null&&W.schedule(W.ref)},
hasRun:!1,cleanupFn:function(){}});var KyS=Symbol("Hb"),Dz=Symbol("Ib");var UR=Array.isArray;var mJ6;var We$={},TvF=iSx(Object.assign({},{consumerAllowSignalWrites:!0},We$)),vP=iSx(Object.assign({},{consumerAllowSignalWrites:!0},We$));var Fc=0,G_=!1,Bd=function(){this.queue=new Set};
Bd.prototype.schedule=function(W){this.queue.add(W)};
Bd.prototype.remove=function(W){this.queue.delete(W)};
Bd.prototype.clear=function(){this.queue.clear()};
var QoJ=Symbol("Nb"),wqF=Symbol("Ob"),dA=function(){Bd.apply(this,arguments)};
_.v(dA,Bd);dA.prototype.flush=function(){if(this.queue.size){G_=!0;for(var W=_.L(this.queue),l=W.next();!l.done;l=W.next()){l=l.value;this.queue.delete(l);try{l.run()}catch(V){l5L(V)}}G_=!1}};
var Vn1=function(){dA.apply(this,arguments)};
_.v(Vn1,dA);var Ar6=new Vn1,f5B=function(){dA.apply(this,arguments)};
_.v(f5B,dA);f5B.prototype.schedule=function(W){var l=this;return _.g(function(V){if(V.nextAddress==1)return y_.enableQueueEffectAndOnInitInitialRuns?V.jumpTo(2):V.yield(Promise.resolve(),3);if(V.nextAddress!=2)return W.run(),V.return();l.queue.add(W);_.ju(V)})};
var MC6=new f5B,JU=function(){Bd.apply(this,arguments)};
_.v(JU,Bd);JU.prototype.flush=function(){this.queue.size&&$Jx(this.queue)};
var rHZ=function(){JU.apply(this,arguments)};
_.v(rHZ,JU);rHZ.prototype.schedule=function(W){W.hasRun?this.queue.add(W):W.run()};
rHZ.prototype.flush=function(){if(this.queue.size)if(y_.flushRenderEffectsDuringRender){var W=this.queue;this.queue=new Set;$Jx(W)}else $Jx(this.queue)};
var OSz=new rHZ,RUZ=function(){JU.apply(this,arguments)};
_.v(RUZ,JU);RUZ.prototype.schedule=function(W){var l=this;return _.g(function(V){if(V.nextAddress==1)return y_.enableQueueEffectAndOnInitInitialRuns||W.hasRun?V.jumpTo(2):V.yield(Promise.resolve(),3);if(V.nextAddress!=2)return W.run(),V.return();l.queue.add(W);_.ju(V)})};
var YLU=new RUZ,tnL=function(){JU.apply(this,arguments)};
_.v(tnL,JU);var zXn=new tnL,eX8=[OSz,Ar6,zXn],SLU=[MC6,YLU],s_c=[OSz,zXn,YLU],We4=[].concat(_.QK(eX8),_.QK(SLU)),LeL=[];v_4=function(){hXz();for(var W=_.L(LeL),l=W.next();!l.done;l=W.next())l=l.value,l()};
var l5L=tx;_.oi=Symbol("Pb");var pW=null,f5F,rHx=null,RUx;var Dv={},yHL=Object.assign({},kW,(Dv[$JZ]=!0,Dv.effectType=KW,Dv.isResettableContext=!0,Dv.hasRun=!1,Dv.effectFn=null,Dv.consumerIsAlwaysLive=!0,Dv.consumerAllowSignalWrites=!0,Dv.consumerMarkedDirty=xJ6,Dv.kind="effect",Dv.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(CW)throw Error("Qb");this.dirty=!1;if(!this.hasRun||Lyx(this)){this.hasRun=!0;jlq(this);var W=_.Ri(this),l=n_U(this);Swn("effectRun",this.debugName);try{iW(this.effectFn,this.componentStack,this)}catch(V){throw y_.enableContextBasedComponentStacks&&
Ii(V),V;}finally{Es8("effectRun",this.debugName),crn(this,l),_.Ri(W)}}}},Dv.componentStack=void 0,Dv.debugName="[effect]",Dv[Symbol.dispose]=function(){if(c4(this))for(var W=this.producers;W!==void 0;)W=CTz(W);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;W=_.L(s_c);for(var l=W.next();!l.done;l=W.next())l.value.remove(this);osx(this)},Dv));var Lev=Object.assign({},yHL,{effectType:Nv4});var yHS=Symbol("Rb");var gBS=Object.assign({},yHL,{effectType:KW});var xSv=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 CNF={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},nBY=
{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}]}},bCg={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},dSq=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],B6n={"*":{async:1,dir:0,loading:2,target:3}};var gBL=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,UY={},DSg=(UY[1]=null,UY[2]=function(W,l){return l instanceof Se?$k(l):zI.toString()},UY[3]=function(W,l){return QP(l)?_.MI(l):gBL.test(String(l))?String(l):zI.toString()},UY[4]=function(W,l){return l instanceof Iv?_.m7(l):zI.toString()},UY[5]=function(W,l){return String(l)},UY[7]=null,UY[8]=null,UY[10]=null,UY);var CEJ=Symbol("Ub");var VUj=function(W){var l=PNL,V=W,f="",r="",R=1;W<0&&(W=-W);if(W===Infinity)W=(Infinity*Math.sign(V)).toString();else{for(var y=0;y<nBX.length;y++){var P=nBX[y];R=l[P];if(W>=R||R<=1&&W>.1*R){f=P;break}}f?(f+="B",r=" "):R=1;W=Math.round(V/R*10)/10+r+f}return W},nBX="Y Z E P T G M K  m u n".split(" "),PNL={"":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};_.CNB=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 Cp={};RegExp.prototype.hasOwnProperty("sticky");var quU=function(W){W=String(W);for(var l=function(f,r,R){for(var y=Math.min(r.length-R,f.length),P=0;P<y;P++){var n=r[R+P];if(f[P]!==("A"<=n&&n<="Z"?n.toLowerCase():n))return!1}return!0},V=0;(V=W.indexOf("<",V))!=-1;){if(l("\x3c/script",W,V)||l("\x3c!--",W,V))return"zSoyz";
V+=1}return W};var N_={default:"__default"};var KeY=Object.prototype.hasOwnProperty;kiz.prototype=Object.create(null);var r6=bjS();var fp=null;var Mnn=function(W){this.created=[];this.deleted=[];this.node=W};var Zjn=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var W=this,l=W;W;)l=W,W=W.parentNode;return l};var oBS=function(W,l){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=W;this.key=l;this.text=void 0};var Sm=null,ER=null,q_=null,WP=null,XSn=[],mSg=I5z,lz=[],Vj=[],n18=function(W){return Ojx(function(l,V,f){q_=ER=l;ER=null;V(f);ijY(null);ER=q_;q_=q_.parentNode;return l},W)}(),PEq=function(W){return Ojx(function(l,V,f){var r={nextSibling:l};
ER=r;V(f);q_&&ijY(l.nextSibling);return r===ER?null:ER},W)}();var rK=[],zUn=0;var Rh=new kiz;var hG=new kiz;var cHv=bjS(),EBY=cHv[N_.default],SuF=cHv.style,eUv=["focusin","focusout"],l0n="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var MQz=function(){},bXq=function(){},NcJ=function(){},OXz=function(){};var sJ=Symbol("bc");var sA4,tQx=Rcx;var dK=Symbol("cc");var zcJ=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(" ")),
a0z=new Set(["a","font","script","style","title"]);var BP={setUp:uo8,tearDown:uo8,log:uo8,logNodeRange:uo8,graft:function(W,l){l()}};var HP={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var jAj=null,Kp=function(W,l){FW.call(this,W);var V=this;this.functionComponent=l;this.hooks=[];this.hookCounter=0;this.disposeEffects=T_(function(f){V.effectContext=f;_.Xc(function(){iXj(V,V.el)})},y_.alwaysTrackContexts||!!r9)};
_.v(Kp,FW);Kp.prototype.render=function(W){var l=jAj;jAj=this;this.hookCounter=0;var V=nW(vP),f=_.Ri(this.effectContext);try{return Swn("render",this.componentName),this.functionComponent(W)}finally{Es8("render",this.componentName),_.Ri(f),nW(V),jAj=l}};
_.rc.Object.defineProperties(Kp.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return l5v(this.functionComponent)}}});var YCz=Symbol("qc"),A6U=function(W,l,V){this.afterRenderCallbacks=null;this.kind=W;this.props=l;this.children=V};
_.v(A6U,uz);A6U.prototype.render=function(){var W=wjJ(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var l=_.L(this.afterRenderCallbacks),V=l.next();!V.done;V=l.next())V=V.value,W=V(W);return W};
A6U.prototype.getChildren=function(){return this.children};var ecU=[];uCj=function(W){throw Error("ob`"+W.debugName);};
(function(){var W=fp;fp=function(l){W==null||W(l);qCS(l)}})();Object.assign({},yHL,{effectType:KW,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var W=this.elementRef;var l;W.element!=null||(W.element=(l=W.document.getElementById(W.value))!=null?l:void 0);W=W.element;for(l=this.attributes;l;){var V=l.signal();V!==l.prevValue&&(l.prevValue=V,l.namespace===1?W[l.name]=V:xSv.has(l.name)?OR(W,l.name,V?"":null):OR(W,l.name,V));l=l.next}}});Object.assign({},yHL,{effectType:KW,hasRun:!0});_.c.debugName="RlDudd";var hc6={nonNullableCondIsNull:function(){return Error("vc")}};var Vyv=function(){this.map=new Map};
Vyv.prototype.push=function(W,l){var V=this.map;V.has(W)&&(this.multi||(this.multi=new Map),this.multi.set(l,V.get(W)));V.set(W,l)};
Vyv.prototype.pop=function(W){var l=this.map,V=l.get(W),f;V!==void 0&&((f=this.multi)==null?0:f.has(V))?(l.set(W,this.multi.get(V)),this.multi.delete(V)):l.delete(W);return V};_.G3.debugName="nsTGHd";_.bz.debugName="tbhMcf";_.pp.debugName="zyMFzb";_.oh.debugName="vI1rtf";_.LA8={OUT_OF_ORDER_HOOK_CALL:function(W){return Error("wc`"+W)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("xc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("yc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("zc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(W,l){return Error("Ac`"+((l===void 0?0:l)?"IDOM":"Reactive")+"`"+(ji(W)?W.description:W))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(W,l){return Error("Bc`"+(ji(W)?W.description:W)+"`"+l)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(W){return Error("Cc`"+(ji(W)?W.description:W))},
USE_ELEMENT_NOT_ASSIGNED:function(W){return Error("Dc`"+(ji(W)?W.description:W))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(W){return Error("Ec`"+(ji(W)?W.description:W))}};sA4=QAv;var dTF=Symbol("Fc");oGz({beforeRender:function(W){var l=_.Ri(W.effectContext);try{var V;((V=W.__syncEffects)==null?0:V.length)&&UTz(W.__syncEffects)}finally{_.Ri(l)}},
didPatch:function(W){var l=_.Ri(W.effectContext);try{var V;((V=W.__syncEffects)==null?0:V.length)&&UTz(W.__syncEffects)}finally{_.Ri(l)}},
didUnmount:function(W){var l;((l=W.hooks)==null?0:l.length)&&W.hooks.forEach(DTz)}});var B69,dSe,JHL;B69=_.rS.window;_.AC=(B69==null?void 0:(dSe=B69.yt)==null?void 0:dSe.config_)||(B69==null?void 0:(JHL=B69.ytcfg)==null?void 0:JHL.data_)||{};_.fR("yt.config_",_.AC);var DS1={},KAg=[];_.bP=function(W){var l=_.xk.apply(1,arguments);var V=Error.call(this,W);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.args=[].concat(_.QK(l));Object.setPrototypeOf(this,this.constructor.prototype)};
_.v(_.bP,Error);var g6v=function(W,l,V){this.actionName=W;this.optionalAction=l===void 0?!1:l;this.args=V===void 0?null:V;this.returnValue=[]};_.uC=function(W){this.name=W};_.zs=new _.uC("signalAction");var Tgx=/^[\w.]*$/,ouz={q:!0,search_query:!0},phq=String(bNv);var k$;k$=Symbol("Gc");_.vd=function(W){this.name=W};
_.vd.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var whv=function(W){this.key=W},ONv=function(W){this.deferredKey=W},Qgg=function(){var W=this;
this.providers=new Map;this.JSC$10486_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(W.providers)}}};
Qgg.prototype.addProvider=function(W){this.providers.set(W.provide,W);var l=this.JSC$10486_deferred.get(W.provide);if(l)try{l.resolver(this.resolve(W.provide))}catch(V){l.rejector(V)}};
Qgg.prototype.resolve=function(W){return W instanceof ONv?US9(this,W):W instanceof whv?uLc(this,W.key,[],!0):uLc(this,W,[])};
var US9=function(W,l){l=l.deferredKey;if(W.JSC$10486_deferred.has(l))return W.JSC$10486_deferred.get(l).promise;var V={};V.promise=new Promise(function(f,r){V.resolver=f;V.rejector=r});
W.JSC$10486_deferred.set(l,V);return V.promise},uLc=function(W,l,V,f){f=f===void 0?!1:f;
if(V.indexOf(l)>-1)throw Error("Hc`"+l);if(W.cachedValues.has(l))return W.cachedValues.get(l);if(!W.providers.has(l)){if(f)return;throw Error("Ic`"+l);}f=W.providers.get(l);V.push(l);if(f.useValue!==void 0)var r=f.useValue;else if(f.useFactory)r=f[k$]?kiM(W,f[k$],V):[],r=f.useFactory.apply(f,_.QK(r));else if(f.useClass){r=f.useClass;var R=r[k$]?kiM(W,r[k$],V):[];r=new (Function.prototype.bind.apply(r,[null].concat(_.QK(R))))}else throw Error("Jc`"+l);V.pop();f.skipCache||W.cachedValues.set(l,r);return r},
kiM=function(W,l,V){return l?l.map(function(f){return f instanceof whv?uLc(W,f.key,V,!0):uLc(W,f,V)}):[]};var AgY;var NJ=new _.vd("ENDPOINT_HANDLER_TOKEN");_.x_=new _.uC("urlEndpoint");var vBc=function(){this.data=[];this.cachedPackedInt52=-1};
vBc.prototype.set=function(W,l){l=l===void 0?!0:l;0<=W&&W<52&&Number.isInteger(W)&&this.data[W]!==l&&(this.data[W]=l,this.cachedPackedInt52=-1)};
vBc.prototype.get=function(W){return!!this.data[W]};
var HjZ=function(W){W.cachedPackedInt52===-1&&(W.cachedPackedInt52=W.data.reduce(function(l,V,f){return l+(V?Math.pow(2,f):0)},0));
return W.cachedPackedInt52};var VEz=function(W){var l=KeX;W=W===void 0?_.Y2("yt.ads.biscotti.lastId_")||"":W;var V=Object,f=V.assign,r={};r.dt=vW$;r.flash="0";a:{try{var R=l.JSC$10492_win_.top.location.href}catch(W8){R=2;break a}R=R?R===l.doc_.location.href?0:1:2}r=(r.frm=R,r);try{r.u_tz=-(new Date).getTimezoneOffset();try{var y=sr.history.length}catch(W8){y=0}r.u_his=y;var P;r.u_h=(P=sr.screen)==null?void 0:P.height;var n;r.u_w=(n=sr.screen)==null?void 0:n.width;var B;r.u_ah=(B=sr.screen)==null?void 0:B.availHeight;var d;r.u_aw=
(d=sr.screen)==null?void 0:d.availWidth;var J;r.u_cd=(J=sr.screen)==null?void 0:J.colorDepth}catch(W8){}y=l.JSC$10492_win_;try{var D=y.screenX;var u=y.screenY}catch(W8){}try{var H=y.outerWidth;var p=y.outerHeight}catch(W8){}try{var X=y.innerWidth;var w=y.innerHeight}catch(W8){}try{var O=y.screenLeft;var S=y.screenTop}catch(W8){}try{X=y.innerWidth,w=y.innerHeight}catch(W8){}try{var N=y.screen.availWidth;var x=y.screen.availTop}catch(W8){}D=[O,S,D,u,N,x,H,p,X,w];u=Bdq(!1,l.JSC$10492_win_.top);H={};
var Y=Y===void 0?_.rS:Y;p=new vBc;"SVGElement"in Y&&"createElementNS"in Y.document&&p.set(0);X=uwI();X["allow-top-navigation-by-user-activation"]&&p.set(1);X["allow-popups-to-escape-sandbox"]&&p.set(2);Y.crypto&&Y.crypto.subtle&&p.set(3);"TextDecoder"in Y&&"TextEncoder"in Y&&p.set(4);Y=HjZ(p);l=(H.bc=Y,H.bih=u.height,H.biw=u.width,H.brdim=D.join(),H.vis=tij(l.doc_),H.wgl=!!sr.WebGLRenderingContext,H);V=f.call(V,r,l);V.ca_type="image";W&&(V.bid=W);return V},KeX=new function(){var W=window.document;
this.JSC$10492_win_=window;this.doc_=W};
_.fR("yt.ads_.signals_.getAdSignalsString",function(W){return jgn(VEz(W))});_.d5();navigator.userAgent.indexOf(" (CrKey ");var xTS="XMLHttpRequest"in _.rS?function(){return new XMLHttpRequest}:null;var FeB="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),GiI=[].concat(_.QK(FeB),["client_dev_set_cookie"]);var lAq={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"},hMg="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(_.QK(FeB)),P_x=!1,Euq=_.fAq,LLz=WLS;var iv4=[{messageFn:function(W){return"Cannot read property '"+W.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(W){return"Cannot call '"+W.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(W){return W.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var bjL={messageWeights:[],callbackWeights:[{callback:BJq,weight:500},{callback:ddj,weight:500}]};var pSk=function(){this.callbackWeights=[];this.messageWeights=[]},oBL,Iyz=function(){if(!oBL){var W=oBL=new pSk;
W.messageWeights.length=0;W.callbackWeights.length=0;QOF(W,bjL)}return oBL},QOF=function(W,l){l.messageWeights&&W.messageWeights.push.apply(W.messageWeights,l.messageWeights);
l.callbackWeights&&W.callbackWeights.push.apply(W.callbackWeights,l.callbackWeights)};_.Jj(_.uP,_.iI);_.uP.prototype.subscribe=function(W,l,V){var f=this.topics_[W];f||(f=this.topics_[W]=[]);var r=this.JSC$10516_key_;this.subscriptions_[r]=W;this.subscriptions_[r+1]=l;this.subscriptions_[r+2]=V;this.JSC$10516_key_=r+3;f.push(r);return r};
var j_L=function(W){var l=wp4,V=!1,f=l.subscribe("handleError",function(r){V||(V=!0,this.unsubscribeByKey(f),W.apply(void 0,arguments))},l)};
_.uP.prototype.unsubscribe=function(W,l,V){if(W=this.topics_[W]){var f=this.subscriptions_;if(W=W.find(function(r){return f[r+1]==l&&f[r+2]==V}))return this.unsubscribeByKey(W)}return!1};
_.uP.prototype.unsubscribeByKey=function(W){var l=this.subscriptions_[W];if(l){var V=this.topics_[l];this.publishDepth_!=0?(this.pendingKeys_.push(W),this.subscriptions_[W+1]=function(){}):(V&&_.aY(V,W),delete this.subscriptions_[W],delete this.subscriptions_[W+1],delete this.subscriptions_[W+2])}return!!l};
_.uP.prototype.publish=function(W,l){var V=this.topics_[W];if(V){var f=Array(arguments.length-1),r=arguments.length,R;for(R=1;R<r;R++)f[R-1]=arguments[R];if(this.async_)for(R=0;R<V.length;R++)r=V[R],I5c(this.subscriptions_[r+1],this.subscriptions_[r+2],f);else{this.publishDepth_++;try{for(R=0,r=V.length;R<r&&!this.isDisposed();R++){var y=V[R];this.subscriptions_[y+1].apply(this.subscriptions_[y+2],f)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;V=this.pendingKeys_.pop();)this.unsubscribeByKey(V)}}return R!=
0}return!1};
var I5c=function(W,l,V){_.NR(function(){W.apply(l,V)})};
_.uP.prototype.clear=function(W){if(W){var l=this.topics_[W];l&&(l.forEach(this.unsubscribeByKey,this),delete this.topics_[W])}else this.subscriptions_.length=0,this.topics_={}};
_.uP.prototype.getCount=function(W){if(W){var l=this.topics_[W];return l?l.length:0}W=0;for(l in this.topics_)W+=this.getCount(l);return W};
_.uP.prototype.disposeInternal=function(){_.uP.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var wp4=new _.uP;var nR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(nR,_.yP);nR.prototype.getColdHashData=function(){return _.aQ(this,3)};
nR.prototype.getHotHashData=function(){return _.aQ(this,5)};
nR.prototype.setHotHashData=function(W){return _.mY(this,5,W)};var oVz=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(oVz,_.yP);var fyv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(fyv,_.yP);_.t=fyv.prototype;_.t.getDeviceId=function(){return _.aQ(this,6)};
_.t.getExperimentIds=function(W){var l=_.SY(this,9,_.t1,3,!0);Yzg(l,W);return l[W]};
_.t.getPlayerType=function(){return _.zy(this,36)};
_.t.setHomeGroupInfo=function(W){return _.b7(this,81,W)};
_.t.clearLocationPlayabilityToken=function(){return _.P2(this,89)};var k_=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(k_,_.yP);k_.prototype.setKey=function(W){return _.mY(this,1,W)};
k_.prototype.getValue=function(){return Yt(this,2,RPx)};
var RPx=[2,3,4,5,6];var ijX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(ijX,_.yP);ijX.prototype.setTrackingParams=function(W){return _.P2(this,1,_.jL(W,!1))};var ryY=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(ryY,_.yP);var iaS=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(iaS,_.yP);iaS.prototype.getExperimentIds=function(W){var l=_.SY(this,5,_.cZj,3,!0);Yzg(l,W);return l[W]};var FC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(FC,_.yP);FC.prototype.getToken=function(){return _.F7(this,2)};
FC.prototype.setToken=function(W){return _.mY(this,2,W)};var Hq=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Hq,_.yP);Hq.prototype.setSafetyMode=function(W){return _.g8(this,5,W)};var uT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(uT,_.yP);uT.prototype.setClient=function(W){return _.b7(this,1,W)};var IJv={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 jDz;_.Em=function(){var W=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.rS.addEventListener("beforeinstallprompt",function(l){l.preventDefault();W.deferredInstallPrompt=l});
_.rS.addEventListener("appinstalled",function(){W.appInstalledEventFired=!0},{once:!0})};
jDz=function(){if(!_.rS.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.rS.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.rS.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.rS.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.rS.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(W){return"WEB_DISPLAY_MODE_UNKNOWN"}};var TEz=function(){this.syncHeaders=!0},wlJ=function(W){var l={},V=[];
"USER_SESSION_ID"in _.AC&&V.push({key:"u",value:_.M4("USER_SESSION_ID")});if(V=_.rGz(V))l.Authorization=V,V=W=W==null?void 0:W.sessionIndex,V===void 0&&(V=Number(_.M4("SESSION_INDEX",0)),V=isNaN(V)?0:V),_.U("voice_search_auth_header_removal")||(l["X-Goog-AuthUser"]=V.toString()),"INNERTUBE_HOST_OVERRIDE"in _.AC||(l["X-Origin"]=window.location.origin),W===void 0&&"DELEGATED_SESSION_ID"in _.AC&&(l["X-Goog-PageId"]=_.M4("DELEGATED_SESSION_ID"));return l};var mS1={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Hd=_.Y2("ytglobal.prefsUserPrefsPrefs_")||{},XS9;_.fR("ytglobal.prefsUserPrefsPrefs_",Hd);_.Ki=function(){this.cookieName=_.M4("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.M4("ALT_PREF_COOKIE_DOMAIN","youtube.com");var W=_.vA.get(this.cookieName,void 0);W&&this.parse(W)};
_.MT=function(){XS9||(XS9=new _.Ki);return XS9};
_.Ki.prototype.get=function(W,l){T6$(W);wSL(W);W=Hd[W]!==void 0?Hd[W].toString():null;return W!=null?W:l?l:""};
_.Ki.prototype.set=function(W,l){T6$(W);wSL(W);if(l==null)throw Error("Mc");Hd[W]=l.toString()};
_.Ki.prototype.getFlag=function(W){return!!((AHk("f"+(Math.floor(W/31)+1))||0)&1<<W%31)};
_.ZY=function(W,l,V){W="f"+(Math.floor(l/31)+1);l=1<<l%31;var f=AHk(W)||0;f=V?f|l:f&~l;f===0?delete Hd[W]:(V=f.toString(16),Hd[W]=V.toString())};
_.Ki.prototype.remove=function(W){T6$(W);wSL(W);delete Hd[W]};
_.Ki.prototype.save=function(){var W=!0;_.U("web_secure_pref_cookie_killswitch")&&(W=!1);_.HA(this.cookieName,this.dump(),63072E3,this.cookieDomain,W)};
_.Ki.prototype.clear=function(){_.MC.clear(Hd)};
_.Ki.prototype.dump=function(){var W=[],l;for(l in Hd)Hd.hasOwnProperty(l)&&W.push(l+"="+encodeURIComponent(String(Hd[l])));return W.join("&")};
var wSL=function(W){if(/^f([1-9][0-9]*)$/.test(W))throw Error("Nc`"+W);},T6$=function(W){if(!/^\w+$/.test(W))throw Error("Oc`"+W);
},AHk=function(W){W=Hd[W]!==void 0?Hd[W].toString():null;
return W!=null&&/^[A-Fa-f0-9]+$/.test(W)?parseInt(W,16):null};
_.Ki.prototype.parse=function(W){W=decodeURIComponent(W).split("&");for(var l=0;l<W.length;l++){var V=W[l].split("="),f=V[0];(V=V[1])&&(Hd[f]=V.toString())}};var FLv={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"},m$j={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},Xlz={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},b0F={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var bp;_.FZ=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.pS=function(W,l,V){return W.addJob(l,0,V)};
_.FZ.prototype.addLowPriorityJob=function(W,l){return this.addJob(W,1,l)};
_.a$=function(W,l,V){return W.addJob(l,2,V)};
_.Kt=function(W,l,V){return W.addJob(l,3,V)};
_.pP=function(W,l,V){return W.addJob(l,4,V)};
bp=function(W){var l=_.Y2("yt.scheduler.instance.addImmediateJob");l?l(W):W()};
_.FZ.prototype.debounce=function(W,l,V){var f=this,r=0,R=function(){r&&f.cancelJob(r);r=f.addJob(W,l,V);f.cancelDebouncedJobMap.set(R,r)};
return R};
_.FZ.prototype.cancelThrottle=function(W){(W=this.cancelThrottledJobMap.get(W))&&W()};var Gr=function(){_.FZ.apply(this,arguments)};
_.v(Gr,_.FZ);_.Am=function(){Gr.instance||(Gr.instance=new Gr);return Gr.instance};
Gr.prototype.addJob=function(W,l,V){V!==void 0&&Number.isNaN(Number(V))&&(V=void 0);var f=_.Y2("yt.scheduler.instance.addJob");return f?f(W,l,V):V===void 0?(W(),NaN):_.cA(W,V||0)};
Gr.prototype.cancelJob=function(W){if(W===void 0||!Number.isNaN(Number(W))){var l=_.Y2("yt.scheduler.instance.cancelJob");l?l(W):_.dU(W)}};
Gr.prototype.start=function(){var W=_.Y2("yt.scheduler.instance.start");W&&W()};
Gr.prototype.pause=function(){var W=_.Y2("yt.scheduler.instance.pause");W&&W()};
_.w8=_.Am();_.p7.prototype.set=function(W,l){l===void 0?this.mechanism.remove(W):this.mechanism.set(W,(0,_.hS)(l))};
_.p7.prototype.get=function(W){try{var l=this.mechanism.get(W)}catch(V){return}if(l!==null)try{return JSON.parse(l)}catch(V){throw"Storage: Invalid value was encountered";}};
_.p7.prototype.remove=function(W){this.mechanism.remove(W)};var bC=function(W){this.mechanism=W};
_.Jj(bC,_.p7);var Q_$=function(W){this.data=W},Mn9=function(W){return W===void 0||W instanceof Q_$?W:new Q_$(W)};
bC.prototype.set=function(W,l){bC.superClass_.set.call(this,W,Mn9(l))};
bC.prototype.getWrapper=function(W){W=bC.superClass_.get.call(this,W);if(W===void 0||W instanceof Object)return W;throw"Storage: Invalid value was encountered";};
bC.prototype.get=function(W){if(W=this.getWrapper(W)){if(W=W.data,W===void 0)throw"Storage: Invalid value was encountered";}else W=void 0;return W};_.Jj(o0,bC);_.Zj9=function(W){var l=W.creation;W=W.expiration;return!!W&&W<_.d5()||!!l&&l>_.d5()};
o0.prototype.set=function(W,l,V){if(l=Mn9(l)){if(V){if(V<_.d5()){o0.prototype.remove.call(this,W);return}l.expiration=V}l.creation=_.d5()}o0.superClass_.set.call(this,W,l)};
o0.prototype.getWrapper=function(W,l){var V=o0.superClass_.getWrapper.call(this,W);if(V)if(!l&&_.Zj9(V))o0.prototype.remove.call(this,W);else return V};var pi=function(){};
pi.prototype.next=function(){return o9};
var o9={done:!0,value:void 0},ja=function(W){return{value:W,done:!1}};
pi.prototype.__iterator__=function(){return this};
_.OjZ=function(W){if(W instanceof pi)return W;if(typeof W.__iterator__=="function")return W.__iterator__(!1);if(_.Ng(W)){var l=0,V=new pi;V.next=function(){for(;;){if(l>=W.length)return o9;if(l in W)return ja(W[l++]);l++}};
return V}throw Error("Pc");};var a5L=function(W){if(W instanceof I9||W instanceof iC||W instanceof mE)return W;if(typeof W.next=="function")return new I9(function(){return W});
if(typeof W[Symbol.iterator]=="function")return new I9(function(){return W[Symbol.iterator]()});
if(typeof W.__iterator__=="function")return new I9(function(){return W.__iterator__()});
throw Error("Qc");},I9=function(W){this.func_=W};
I9.prototype.__iterator__=function(){return new iC(this.func_())};
I9.prototype[Symbol.iterator]=function(){return new mE(this.func_())};
I9.prototype.toEs6=function(){return new mE(this.func_())};
var iC=function(W){this.JSC$10600_iter_=W};
_.v(iC,pi);iC.prototype.next=function(){return this.JSC$10600_iter_.next()};
iC.prototype[Symbol.iterator]=function(){return new mE(this.JSC$10600_iter_)};
iC.prototype.toEs6=function(){return new mE(this.JSC$10600_iter_)};
var mE=function(W){I9.call(this,function(){return W});
this.JSC$10603_iter_=W};
_.v(mE,I9);mE.prototype.next=function(){return this.JSC$10603_iter_.next()};var zU9=function(){};var XZ=function(){};
_.Jj(XZ,zU9);XZ.prototype.getCount=function(){for(var W=0,l=_.L(this),V=l.next();!V.done;V=l.next())W++;return W};
XZ.prototype[Symbol.iterator]=function(){return a5L(this.__iterator__(!0)).toEs6()};
XZ.prototype.clear=function(){var W=Array.from(this);W=_.L(W);for(var l=W.next();!l.done;l=W.next())this.remove(l.value)};_.Jj(jF,XZ);_.t=jF.prototype;_.t.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var W=this.storage_;if(W)try{W.setItem("__sak","1");W.removeItem("__sak");var l=!0}catch(V){l=V instanceof DOMException&&(V.name==="QuotaExceededError"||V.code===22||V.code===1014||V.name==="NS_ERROR_DOM_QUOTA_REACHED")&&W&&W.length!==0}else l=!1;this.cachedIsStorageAvailable_=l}return this.cachedIsStorageAvailable_};
_.t.set=function(W,l){Tr(this);try{this.storage_.setItem(W,l)}catch(V){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.t.get=function(W){Tr(this);W=this.storage_.getItem(W);if(typeof W!=="string"&&W!==null)throw"Storage mechanism: Invalid value was encountered";return W};
_.t.remove=function(W){Tr(this);this.storage_.removeItem(W)};
_.t.getCount=function(){Tr(this);return this.storage_.length};
_.t.__iterator__=function(W){Tr(this);var l=0,V=this.storage_,f=new pi;f.next=function(){if(l>=V.length)return o9;var r=V.key(l++);if(W)return ja(r);r=V.getItem(r);if(typeof r!=="string")throw"Storage mechanism: Invalid value was encountered";return ja(r)};
return f};
_.t.clear=function(){Tr(this);this.storage_.clear()};
_.t.key=function(W){Tr(this);return this.storage_.key(W)};
var Tr=function(W){if(W.storage_==null)throw Error("Rc");W.isAvailable()||tx(Error("Rc"))};_.Jj(oH8,jF);_.Jj(js8,jF);_.Jj(I0,XZ);I0.prototype.set=function(W,l){this.mechanism_.set(this.JSC$10618_prefix_+W,l)};
I0.prototype.get=function(W){return this.mechanism_.get(this.JSC$10618_prefix_+W)};
I0.prototype.remove=function(W){this.mechanism_.remove(this.JSC$10618_prefix_+W)};
I0.prototype.__iterator__=function(W){var l=this.mechanism_[Symbol.iterator](),V=this,f=new pi;f.next=function(){var r=l.next();if(r.done)return r;for(r=r.value;r.slice(0,V.JSC$10618_prefix_.length)!=V.JSC$10618_prefix_;){r=l.next();if(r.done)return r;r=r.value}return ja(W?r.slice(V.JSC$10618_prefix_.length):V.mechanism_.get(r))};
return f};_.Ow=function(W){this.expiringStorage_=(W=_.IAn(W))?new o0(W):null;this.JSC$10622_domain_=document.domain||window.location.hostname};
_.Ow.prototype.set=function(W,l,V,f){V=V||31104E3;this.remove(W);if(this.expiringStorage_)try{this.expiringStorage_.set(W,l,Date.now()+V*1E3);return}catch(R){}var r="";if(f)try{r=escape((0,_.hS)(l))}catch(R){return}else r=escape(l);_.HA(W,r,V,this.JSC$10622_domain_)};
_.Ow.prototype.get=function(W,l){var V=void 0,f=!this.expiringStorage_;if(!f)try{V=this.expiringStorage_.get(W)}catch(r){f=!0}if(f&&(V=_.vA.get(W,void 0))&&(V=unescape(V),l))try{V=JSON.parse(V)}catch(r){this.remove(W),V=void 0}return V};
_.Ow.prototype.remove=function(W){this.expiringStorage_&&this.expiringStorage_.remove(W);_.vH6(W,"/",this.JSC$10622_domain_)};
_.Ow.prototype.getCreationTime=function(W){return this.expiringStorage_&&(W=(this.expiringStorage_.getWrapper(W)||{}).creation,typeof W==="number")?W:null};var mdz=function(){var W;return function(){W||(W=new _.Ow("ytidb"));return W}}();var TJ6;_.mS=[];TJ6=!1;var Wgz=wyn||AWn;var wA={},N6M=(wA.AUTH_INVALID="No user identifier specified.",wA.EXPLICIT_ABORT="Transaction was explicitly aborted.",wA.IDB_NOT_SUPPORTED="IndexedDB is not supported.",wA.MISSING_INDEX="Index not created.",wA.MISSING_OBJECT_STORES="Object stores not created.",wA.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",wA.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",wA.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",wA.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",wA.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",wA.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",wA.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",wA),AU={},Yu9=(AU.AUTH_INVALID="ERROR",AU.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",AU.EXPLICIT_ABORT="IGNORED",
AU.IDB_NOT_SUPPORTED="ERROR",AU.MISSING_INDEX="WARNING",AU.MISSING_OBJECT_STORES="ERROR",AU.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",AU.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",AU.QUOTA_EXCEEDED="WARNING",AU.QUOTA_MAYBE_EXCEEDED="WARNING",AU.UNKNOWN_ABORT="WARNING",AU.INCOMPATIBLE_DB_VERSION="WARNING",AU),QT={},xSL=(QT.AUTH_INVALID=!1,QT.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,QT.EXPLICIT_ABORT=!1,QT.IDB_NOT_SUPPORTED=!1,QT.MISSING_INDEX=!1,QT.MISSING_OBJECT_STORES=!1,QT.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,QT.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,QT.QUOTA_EXCEEDED=!1,QT.QUOTA_MAYBE_EXCEEDED=!0,QT.UNKNOWN_ABORT=!0,QT.INCOMPATIBLE_DB_VERSION=!1,QT),Zj=function(W,l,V,f,r){l=l===void 0?{}:l;V=V===void 0?N6M[W]:V;f=f===void 0?Yu9[W]:f;r=r===void 0?xSL[W]:r;_.bP.call(this,V,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:W},l));this.type=W;this.message=V;this.level=f;this.retryable=r;Object.setPrototypeOf(this,Zj.prototype)};
_.v(Zj,_.bP);var eUL=function(W,l){Zj.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:l,foundObjectStores:W},N6M.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,eUL.prototype)};
_.v(eUL,Zj);var MEz=function(W,l){var V=Error.call(this);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.index=W;this.objectStore=l;Object.setPrototypeOf(this,MEz.prototype)};
_.v(MEz,Error);var Z0z=["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 NL=function(W){this.executor=W},z4=function(W){var l=this;
this.state={status:"PENDING"};this.JSC$10650_onFulfilled=[];this.JSC$10650_onRejected=[];W=W.executor;var V=function(r){if(l.state.status==="PENDING"){l.state={status:"FULFILLED",value:r};r=_.L(l.JSC$10650_onFulfilled);for(var R=r.next();!R.done;R=r.next())R=R.value,R()}},f=function(r){if(l.state.status==="PENDING"){l.state={status:"REJECTED",
reason:r};r=_.L(l.JSC$10650_onRejected);for(var R=r.next();!R.done;R=r.next())R=R.value,R()}};
try{W(V,f)}catch(r){f(r)}};
z4.all=function(W){return new z4(new NL(function(l,V){var f=[],r=W.length;r===0&&l(f);for(var R={i$jscomp$468:0};R.i$jscomp$468<W.length;R={i$jscomp$468:R.i$jscomp$468},++R.i$jscomp$468)z4.resolve(W[R.i$jscomp$468]).then(function(y){return function(P){f[y.i$jscomp$468]=P;r--;r===0&&l(f)}}(R)).catch(function(y){V(y)})}))};
z4.resolve=function(W){return new z4(new NL(function(l,V){W instanceof z4?W.then(l,V):l(W)}))};
z4.reject=function(W){return new z4(new NL(function(l,V){V(W)}))};
z4.prototype.then=function(W,l){var V=this,f=W!=null?W:zuF,r=l!=null?l:aAz;return new z4(new NL(function(R,y){V.state.status==="PENDING"?(V.JSC$10650_onFulfilled.push(function(){quv(V,V,f,R,y)}),V.JSC$10650_onRejected.push(function(){hU1(V,V,r,R,y)})):V.state.status==="FULFILLED"?quv(V,V,f,R,y):V.state.status==="REJECTED"&&hU1(V,V,r,R,y)}))};
z4.prototype.catch=function(W){return this.then(void 0,W)};
var quv=function(W,l,V,f,r){try{if(W.state.status!=="FULFILLED")throw Error("Uc");var R=V(W.state.value);R instanceof z4?SuB(W,l,R,f,r):f(R)}catch(y){r(y)}},hU1=function(W,l,V,f,r){try{if(W.state.status!=="REJECTED")throw Error("Vc");
var R=V(W.state.reason);R instanceof z4?SuB(W,l,R,f,r):f(R)}catch(y){r(y)}},SuB=function(W,l,V,f,r){l===V?r(new TypeError("Wc")):V.then(function(R){R instanceof z4?SuB(W,l,R,f,r):f(R)},function(R){r(R)})};var M3;M3=window;_.tv=M3.ytcsi&&M3.ytcsi.now?M3.ytcsi.now:M3.performance&&M3.performance.timing&&M3.performance.now&&M3.performance.timing.navigationStart?function(){return M3.performance.timing.navigationStart+M3.performance.now()}:function(){return(new Date).getTime()};var xY=function(W,l){this.JSC$10662_wrapped=W;this.options=l;this.transactionCount=0;this.startedMs=Math.round((0,_.tv)());this.hasUnknownAbortedTransaction=!1},Zv=function(){return _.U("idb_immediate_commit")},WtL,l09,zr,r6M;
xY.prototype.add=function(W,l,V){return _.E6(this,[W],{mode:"readwrite",enableRetries:!0,commit:Zv()},function(f){return f.objectStore(W).add(l,V)})};
xY.prototype.clear=function(W){return _.E6(this,[W],{mode:"readwrite",enableRetries:!0},function(l){return l.objectStore(W).clear()})};
xY.prototype.close=function(){this.JSC$10662_wrapped.close();var W;((W=this.options)==null?0:W.closed)&&this.options.closed()};
xY.prototype.count=function(W,l){return _.E6(this,[W],{mode:"readonly",enableRetries:!0,commit:Zv()},function(V){return V.objectStore(W).count(l)})};
var zd=function(W,l,V){W=W.JSC$10662_wrapped.createObjectStore(l,V);return new OY(W)};
xY.prototype.delete=function(W,l){return _.E6(this,[W],{mode:"readwrite",enableRetries:!0,commit:Zv()&&!(l instanceof IDBKeyRange)},function(V){return V.objectStore(W).delete(l)})};
var EBX=function(W,l){return _.E6(W,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(V){return V.objectStore("ResponseStore").index("byInterface").delete(l)})};
xY.prototype.get=function(W,l){return _.E6(this,[W],{mode:"readonly",enableRetries:!0,commit:Zv()},function(V){return V.objectStore(W).get(l)})};
xY.prototype.getAll=function(W,l,V){return _.E6(this,[W],{mode:"readonly",enableRetries:!0},function(f){return f.objectStore(W).getAll(l,V)})};
xY.prototype.put=function(W,l,V){return _.E6(this,[W],{mode:"readwrite",enableRetries:!0,commit:Zv()},function(f){return f.objectStore(W).put(l,V)})};
xY.prototype.objectStoreNames=function(){return Array.from(this.JSC$10662_wrapped.objectStoreNames)};
_.E6=function(W,l,V,f){var r,R,y,P,n,B,d,J,D,u,H,p;return _.g(function(X){switch(X.nextAddress){case 1:var w={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof V==="string"?w.mode=V:Object.assign(w,V);r=w;W.transactionCount++;R=r.enableRetries?3:1;y=0;case 2:if(P){X.jumpTo(4);break}y++;n=Math.round((0,_.tv)());_.HG(X,5);B=W.JSC$10662_wrapped.transaction(l,r.mode);w=X.yield;var O=!!r.commit;var S=new eF(B);O=$SX(S,f,O);return w.call(X,O,7);case 7:return d=X.yieldResult,J=Math.round((0,_.tv)()),
WtL(W,n,J,y,void 0,l.join(),r),X.return(d);case 5:D=_.pc(X);u=Math.round((0,_.tv)());H=O0x(D,W.JSC$10662_wrapped.name,l.join(),W.JSC$10662_wrapped.version);if((p=H instanceof Zj&&!H.retryable)||y>=R)WtL(W,n,u,y,H,l.join(),r),P=H;X.jumpTo(2);break;case 4:return X.return(Promise.reject(P))}})};
WtL=function(W,l,V,f,r,R,y){l=V-l;r?(r instanceof Zj&&(r.type==="QUOTA_EXCEEDED"||r.type==="QUOTA_MAYBE_EXCEEDED")&&T4("QUOTA_EXCEEDED",{dbName:AY(W.JSC$10662_wrapped.name),objectStoreNames:R,transactionCount:W.transactionCount,transactionMode:y.mode}),r instanceof Zj&&r.type==="UNKNOWN_ABORT"&&(V-=W.startedMs,V<0&&V>=2147483648&&(V=0),T4("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:R,transactionDuration:l,transactionCount:W.transactionCount,dbDuration:V}),W.hasUnknownAbortedTransaction=!0),
l09(W,!1,f,R,l,y.tag),_.XP(r)):l09(W,!0,f,R,l,y.tag)};
l09=function(W,l,V,f,r,R){T4("TRANSACTION_ENDED",{objectStoreNames:f,connectionHasUnknownAbortedTransaction:W.hasUnknownAbortedTransaction,duration:r,isSuccessful:l,tryCount:V,tag:R===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":R})};
xY.prototype.getVersion=function(){return this.JSC$10662_wrapped.version};
xY.prototype.getName=function(){return this.JSC$10662_wrapped.name};
var OY=function(W){this.JSC$10677_wrapped=W};
OY.prototype.add=function(W,l){return YY(this.JSC$10677_wrapped.add(W,l))};
OY.prototype.autoIncrement=function(){return this.JSC$10677_wrapped.autoIncrement};
OY.prototype.clear=function(){return YY(this.JSC$10677_wrapped.clear()).then(function(){})};
var Nt=function(W,l,V){W.JSC$10677_wrapped.createIndex(l,V,{unique:!1})};
OY.prototype.count=function(W){return YY(this.JSC$10677_wrapped.count(W))};
var VQk=function(W,l){return W2(W,{query:l},function(V){return V.delete().then(function(){return V.continue()})}).then(function(){})};
OY.prototype.delete=function(W){return W instanceof IDBKeyRange?VQk(this,W):YY(this.JSC$10677_wrapped.delete(W))};
OY.prototype.get=function(W){return YY(this.JSC$10677_wrapped.get(W))};
OY.prototype.getAll=function(W,l){return"getAll"in IDBObjectStore.prototype?YY(this.JSC$10677_wrapped.getAll(W,l)):f0I(this,W,l)};
var f0I=function(W,l,V){var f=[];return W2(W,{query:l},function(r){if(!(V!==void 0&&f.length>=V))return f.push(r.getValue()),r.continue()}).then(function(){return f})};
OY.prototype.index=function(W){try{return new a9(this.JSC$10677_wrapped.index(W))}catch(l){if(l instanceof Error&&l.name==="NotFoundError")throw new MEz(W,this.JSC$10677_wrapped.name);throw l;}};
OY.prototype.getName=function(){return this.JSC$10677_wrapped.name};
OY.prototype.keyPath=function(){return this.JSC$10677_wrapped.keyPath};
OY.prototype.put=function(W,l){return YY(this.JSC$10677_wrapped.put(W,l))};
var W2=function(W,l,V){W=W.JSC$10677_wrapped.openCursor(l.query,l.direction);return r6M(W).then(function(f){return xdn(f,V)})},eF=function(W){var l=this;
this.JSC$10685_wrapped=W;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(V,f){l.JSC$10685_wrapped.addEventListener("complete",function(){V()});
l.JSC$10685_wrapped.addEventListener("error",function(r){r.currentTarget===r.target&&f(l.JSC$10685_wrapped.error)});
l.JSC$10685_wrapped.addEventListener("abort",function(){var r=l.JSC$10685_wrapped.error;if(r)f(r);else if(!l.aborted){r=Zj;for(var R=l.JSC$10685_wrapped.objectStoreNames,y=[],P=0;P<R.length;P++){var n=R.item(P);if(n===null)throw Error("Xc");y.push(n)}r=new r("UNKNOWN_ABORT",{objectStoreNames:y.join(),dbName:l.JSC$10685_wrapped.db.name,mode:l.JSC$10685_wrapped.mode});f(r)}})})},$SX=function(W,l,V){var f=new Promise(function(r,R){try{var y=l(W);
V&&W.commit();y.then(function(P){r(P)}).catch(R)}catch(P){R(P),W.abort()}});
return Promise.all([f,W.done]).then(function(r){return _.L(r).next().value})};
eF.prototype.abort=function(){this.JSC$10685_wrapped.abort();this.aborted=!0;throw new Zj("EXPLICIT_ABORT");};
eF.prototype.commit=function(){if(!this.aborted){var W,l;(l=(W=this.JSC$10685_wrapped).commit)==null||l.call(W)}};
eF.prototype.objectStore=function(W){W=this.JSC$10685_wrapped.objectStore(W);var l=this.objectStoreCache.get(W);l||(l=new OY(W),this.objectStoreCache.set(W,l));return l};
var a9=function(W){this.JSC$10687_wrapped=W};
a9.prototype.count=function(W){return YY(this.JSC$10687_wrapped.count(W))};
a9.prototype.delete=function(W){return _.sw(this,{query:W},function(l){return l.delete().then(function(){return l.continue()})})};
a9.prototype.get=function(W){return YY(this.JSC$10687_wrapped.get(W))};
a9.prototype.getAll=function(W,l){return"getAll"in IDBIndex.prototype?YY(this.JSC$10687_wrapped.getAll(W,l)):RcZ(this,W,l)};
var RcZ=function(W,l,V){var f=[];return _.sw(W,{query:l},function(r){if(!(V!==void 0&&f.length>=V))return f.push(r.getValue()),r.continue()}).then(function(){return f})};
a9.prototype.keyPath=function(){return this.JSC$10687_wrapped.keyPath};
a9.prototype.unique=function(){return this.JSC$10687_wrapped.unique};
_.sw=function(W,l,V){W=W.JSC$10687_wrapped.openCursor(l.query===void 0?null:l.query,l.direction===void 0?"next":l.direction);return r6M(W).then(function(f){return xdn(f,V)})};
zr=function(W,l){this.request=W;this.cursor=l};
r6M=function(W){return YY(W).then(function(l){return l?new zr(W,l):null})};
zr.prototype.continue=function(W){this.cursor.continue(W);return r6M(this.request)};
zr.prototype.delete=function(){return YY(this.cursor.delete()).then(function(){})};
zr.prototype.getValue=function(){return this.cursor.value};
zr.prototype.update=function(W){return YY(this.cursor.update(W))};var N3=function(W,l){this.name=W;this.options=l;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},tQZ;
N3.prototype.openDb=function(W,l,V){V=V===void 0?{}:V;return qKz(W,l,V)};
N3.prototype.delete=function(W){W=W===void 0?{}:W;return _.hY(this.name,W)};
tQZ=function(W,l){return new Zj("INCOMPATIBLE_DB_VERSION",{dbName:W.name,oldVersion:W.options.version,newVersion:l})};
_.SF=function(W,l){if(!l)throw a0("openWithToken",AY(W.name));return W.open()};
N3.prototype.open=function(){var W=this;if(!this.isCompatible)throw tQZ(this);if(this.connectionPromise)return this.connectionPromise;var l,V=function(){W.connectionPromise===l&&(W.connectionPromise=void 0)},f={blocking:function(R){R.close()},
closed:V,terminated:V,upgrade:this.options.upgrade},r=function(){var R,y,P,n,B,d,J,D,u,H;return _.g(function(p){switch(p.nextAddress){case 1:return y=(R=Error().stack)!=null?R:"",_.HG(p,2),p.yield(W.openDb(W.name,W.options.version,f),4);case 4:for(var X=P=p.yieldResult,w=W.options,O=[],S=_.L(Object.keys(w.objectStores)),N=S.next();!N.done;N=S.next()){N=N.value;var x=w.objectStores[N],Y=x.removedAtVersion===void 0?Number.MAX_VALUE:x.removedAtVersion;!(X.JSC$10662_wrapped.version>=x.addedAtVersion)||
X.JSC$10662_wrapped.version>=Y||X.JSC$10662_wrapped.objectStoreNames.contains(N)||O.push(N)}n=O;if(n.length===0){p.jumpTo(5);break}B=Object.keys(W.options.objectStores);d=P.objectStoreNames();if(W.timesReopenedToFixMissingObjectStore<_.yS("ytidb_reopen_db_retries",0))return W.timesReopenedToFixMissingObjectStore++,P.close(),_.XP(new Zj("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:W.name,expectedObjectStores:B,foundObjectStores:d})),p.return(r());if(!(W.timesDeletedToFixMissingObjectStore<_.yS("ytidb_remake_db_retries",
1))){p.jumpTo(6);break}W.timesDeletedToFixMissingObjectStore++;return p.yield(W.delete(),7);case 7:return _.XP(new Zj("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:W.name,expectedObjectStores:B,foundObjectStores:d})),p.return(r());case 6:throw new eUL(d,B);case 5:return p.return(P);case 2:J=_.pc(p);if(J instanceof DOMException?J.name!=="VersionError":"DOMError"in self&&J instanceof DOMError?J.name!=="VersionError":!(J instanceof Object&&"message"in J)||J.message!=="An attempt was made to open a database using a lower version than the existing version."){p.jumpTo(8);
break}return p.yield(W.openDb(W.name,void 0,Object.assign({},f,{upgrade:void 0})),9);case 9:D=p.yieldResult;u=D.getVersion();if(W.options.version!==void 0&&u>W.options.version+1)throw D.close(),W.isCompatible=!1,tQZ(W,u);return p.return(D);case 8:throw V(),J instanceof Error&&!_.U("ytidb_async_stack_killswitch")&&(J.stack=J.stack+"\n"+y.substring(y.indexOf("\n")+1)),O0x(J,W.name,"",(H=W.options.version)!=null?H:-1);}})};
return this.connectionPromise=l=r()};var huz=new N3("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(W,l){l(1)&&zd(W,"databases",{keyPath:"actualName"})}});var fJv,lJz=new function(){}(new function(){});new _.mg;var sA$=function(W,l){N3.call(this,W,l);this.options=l;wU(W)};
_.v(sA$,N3);var C0F=function(W,l){var V;return function(){V||(V=new sA$(W,l));return V}};
sA$.prototype.openDb=function(W,l,V){V=V===void 0?{}:V;return(this.options.shared?Lgz:sDx)(W,l,Object.assign({},V))};
sA$.prototype.delete=function(W){W=W===void 0?{}:W;return(this.options.shared?nVS:y5q)(this.name,W)};var LtM={},c58=Rl("ytGcfConfig",{objectStores:(LtM.coldConfigStore={addedAtVersion:1},LtM.hotConfigStore={addedAtVersion:1},LtM),shared:!1,upgrade:function(W,l){l(1)&&(Nt(zd(W,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),Nt(zd(W,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var y6k=function(){_.iI.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var W=_.Y2("yt.gcf.config.hotUpdateCallbacks");W?(this.localHotConfigJobQueue=[].concat(_.QK(W)),this.sharedHotConfigJobQueue=W):(this.sharedHotConfigJobQueue=[],_.fR("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.v(y6k,_.iI);y6k.prototype.disposeInternal=function(){for(var W=_.L(this.localHotConfigJobQueue),l=W.next();!l.done;l=W.next()){var V=this.sharedHotConfigJobQueue;l=V.indexOf(l.value);l>=0&&V.splice(l,1)}this.localHotConfigJobQueue.length=0;_.iI.prototype.disposeInternal.call(this)};var oo=function(){var W=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new y6k;this.TEST_ONLY={initializeConfigDb:function(){W.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return W.coldGlobalConfigGroup},
setHotConfigGroup:function(l){gGL(W,l)},
setHotHashData:function(l){W.setHotHashData(l)},
setColdConfigGroup:function(l){PwB(W,l)},
getColdHashData:function(){return W.coldHashData},
getHotHashData:function(){return W.hotHashData},
getHotConfigGroup:function(){return W.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return nGk()},
getExportedHotConfigGroup:function(){return Y$()},
getExportedColdHashData:function(){return _.Y2("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Y2("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){CwL(W)},
resetInstance:function(){W.setHotHashData(void 0);c6k(W);delete oo.instance},
setDebounceTimer:function(l){W.debounceTimer=l},
getDebounceTimer:function(){return W.debounceTimer}}},Bc$=function(){if(!oo.instance){var W=new oo;
oo.instance=W}return oo.instance},Dc$=function(W){var l;
_.g(function(V){if(V.nextAddress==1)return _.U("start_client_gcf")||_.U("delete_gcf_config_db")?_.U("start_client_gcf")?V.yield(_.r8(),3):V.jumpTo(2):V.return();V.nextAddress!=2&&((l=V.yieldResult)&&_.G4()&&!_.U("delete_gcf_config_db")?(W.isConfigDbInitialized=!0,CwL(W)):(dce(W),J6L(W)));return _.U("delete_gcf_config_db")?V.yield(u28(),0):V.jumpTo(0)})},jC=function(){var W;
return(W=Y$())!=null?W:_.M4("RAW_HOT_CONFIG_GROUP")},UcZ=function(W){var l,V,f,r,R,y;
return _.g(function(P){switch(P.nextAddress){case 1:if(W.hotGlobalConfigGroup)return P.return(Y$());if(!W.isConfigDbInitialized)return l=a0("getHotConfig IDB not initialized"),_.x2(l),P.return(Promise.reject(l));V=Vy();f=_.M4("TIME_CREATED_MS");if(!V){r=a0("getHotConfig token error");_.x2(r);P.jumpTo(2);break}return P.yield(U$v(V),3);case 3:if((R=P.yieldResult)&&R.timestamp>f)return gGL(W,R.config),W.setHotHashData(R.hashData),P.return(Y$());case 2:J6L(W);if(!(V&&W.hotGlobalConfigGroup&&W.hotHashData)){P.jumpTo(4);
break}return P.yield(d$j(W.hotGlobalConfigGroup,W.hotHashData,V,f),4);case 4:return W.hotGlobalConfigGroup?P.return(Y$()):(y=new _.bP("Config not available in ytConfig"),_.x2(y),P.return(Promise.reject(y)))}})},k$a=function(W){var l,V,f,r,R,y;
return _.g(function(P){switch(P.nextAddress){case 1:if(W.coldGlobalConfigGroup)return P.return(nGk());if(!W.isConfigDbInitialized)return l=a0("getColdConfig IDB not initialized"),_.x2(l),P.return(Promise.reject(l));V=Vy();f=_.M4("TIME_CREATED_MS");if(!V){r=a0("getColdConfig");_.x2(r);P.jumpTo(2);break}return P.yield(D$S(V),3);case 3:if((R=P.yieldResult)&&R.timestamp>f)return PwB(W,R.config),uok(W,R.configData),c6k(W,R.hashData),P.return(nGk());case 2:dce(W);if(!(V&&W.coldGlobalConfigGroup&&W.coldHashData&&
W.configData)){P.jumpTo(4);break}return P.yield(J56(W.coldGlobalConfigGroup,W.coldHashData,W.configData,V,f),4);case 4:return W.coldGlobalConfigGroup?P.return(nGk()):(y=new _.bP("Config not available in ytConfig"),_.x2(y),P.return(Promise.reject(y)))}})},CwL=function(W){if(!W.hotGlobalConfigGroup||!W.coldGlobalConfigGroup){if(!Vy()){var l=a0("scheduleGetConfigs");
_.x2(l)}W.initJob||(W.initJob=_.w8.addLowPriorityJob(function(){return _.g(function(V){switch(V.nextAddress){case 1:return _.HG(V,2),V.yield(UcZ(W),4);case 4:_.qL(V,3);break;case 2:_.pc(V);case 3:return _.HG(V,5),V.yield(k$a(W),7);case 7:_.qL(V,6);break;case 5:_.pc(V);case 6:W.initJob&&(W.initJob=0),_.ju(V)}})},100))}},dBn=function(W,l,V){var f,r,R;
return _.g(function(y){switch(y.nextAddress){case 1:if(!_.U("start_client_gcf")){y.jumpTo(0);break}V&&gGL(W,V);W.setHotHashData(l);f=Vy();if(!f){y.jumpTo(3);break}if(V){y.jumpTo(4);break}return y.yield(U$v(f),5);case 5:r=y.yieldResult,V=(R=r)==null?void 0:R.config;case 4:return y.yield(d$j(V,l,f),3);case 3:if(V)for(var P=V,n=_.L(W.configUpdateService.sharedHotConfigJobQueue),B=n.next();!B.done;B=n.next())B=B.value,B(P);_.ju(y)}})},Jyg=function(W,l,V){var f,r,R,y;
return _.g(function(P){if(P.nextAddress==1){if(!_.U("start_client_gcf"))return P.jumpTo(0);c6k(W,l);return(f=Vy())?V?P.jumpTo(4):P.yield(D$S(f),5):P.jumpTo(0)}P.nextAddress!=4&&(r=P.yieldResult,V=(R=r)==null?void 0:R.config);if(!V)return P.jumpTo(0);y=V.configData;return P.yield(J56(V,l,y,f),0)})},QDj=function(){var W=Bc$(),l=(0,_.tv)()-W.debounceTimer;
if(!(W.debounceTimer!==0&&l<_.yS("send_config_hash_timer"))){l=_.Y2("yt.gcf.config.coldConfigData");var V=_.Y2("yt.gcf.config.hotHashData"),f=_.Y2("yt.gcf.config.coldHashData");l&&V&&f&&(W.debounceTimer=(0,_.tv)());return{coldConfigData:l,hotHashData:V,coldHashData:f}}},dce=function(W){PwB(W,_.M4("RAW_COLD_CONFIG_GROUP"));
c6k(W,_.M4("SERIALIZED_COLD_HASH_DATA"));var l;uok(W,(l=W.coldGlobalConfigGroup)==null?void 0:l.configData)},J6L=function(W){gGL(W,_.M4("RAW_HOT_CONFIG_GROUP"));
W.setHotHashData(_.M4("SERIALIZED_HOT_HASH_DATA"))},gGL=function(W,l){W.hotGlobalConfigGroup=l;
_.fR("yt.gcf.config.hotConfigGroup",W.hotGlobalConfigGroup||null)},PwB=function(W,l){W.coldGlobalConfigGroup=l;
_.fR("yt.gcf.config.coldConfigGroup",W.coldGlobalConfigGroup||null)};
oo.prototype.setHotHashData=function(W){this.hotHashData=W;_.fR("yt.gcf.config.hotHashData",this.hotHashData||null)};
var c6k=function(W,l){W.coldHashData=l;_.fR("yt.gcf.config.coldHashData",W.coldHashData||null)},uok=function(W,l){W.configData=l;
_.fR("yt.gcf.config.coldConfigData",W.configData||null)},Y$=function(){return _.Y2("yt.gcf.config.hotConfigGroup")},nGk=function(){return _.Y2("yt.gcf.config.coldConfigGroup")};var Jv={},vGL=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Jv.assign=function(W){for(var l=Array.prototype.slice.call(arguments,1);l.length;){var V=l.shift();if(V){if(typeof V!=="object")throw new TypeError("$c`"+V);for(var f in V)Object.prototype.hasOwnProperty.call(V,f)&&(W[f]=V[f])}}return W};
Jv.shrinkBuf=function(W,l){if(W.length===l)return W;if(W.subarray)return W.subarray(0,l);W.length=l;return W};
var HXc={arraySet:function(W,l,V,f,r){if(l.subarray&&W.subarray)W.set(l.subarray(V,V+f),r);else for(var R=0;R<f;R++)W[r+R]=l[V+R]},
flattenChunks:function(W){var l,V;var f=V=0;for(l=W.length;f<l;f++)V+=W[f].length;var r=new Uint8Array(V);f=V=0;for(l=W.length;f<l;f++){var R=W[f];r.set(R,V);V+=R.length}return r}},KtB={arraySet:function(W,l,V,f,r){for(var R=0;R<f;R++)W[r+R]=l[V+R]},
flattenChunks:function(W){return[].concat.apply([],W)}};
Jv.setTyped=function(){vGL?(Jv.Buf8=Uint8Array,Jv.Buf16=Uint16Array,Jv.Buf32=Int32Array,Jv.assign(Jv,HXc)):(Jv.Buf8=Array,Jv.Buf16=Array,Jv.Buf32=Array,Jv.assign(Jv,KtB))};
Jv.setTyped();var Ft9=!0;try{new Uint8Array(1)}catch(W){Ft9=!1}
var U6Y=function(W){var l,V,f=W.length,r=0;for(l=0;l<f;l++){var R=W.charCodeAt(l);if((R&64512)===55296&&l+1<f){var y=W.charCodeAt(l+1);(y&64512)===56320&&(R=65536+(R-55296<<10)+(y-56320),l++)}r+=R<128?1:R<2048?2:R<65536?3:4}var P=new Jv.Buf8(r);for(l=V=0;V<r;l++)R=W.charCodeAt(l),(R&64512)===55296&&l+1<f&&(y=W.charCodeAt(l+1),(y&64512)===56320&&(R=65536+(R-55296<<10)+(y-56320),l++)),R<128?P[V++]=R:(R<2048?P[V++]=192|R>>>6:(R<65536?P[V++]=224|R>>>12:(P[V++]=240|R>>>18,P[V++]=128|R>>>12&63),P[V++]=
128|R>>>6&63),P[V++]=128|R&63);return P};var t3Y={};t3Y=function(W,l,V,f){var r=W&65535|0;W=W>>>16&65535|0;for(var R;V!==0;){R=V>2E3?2E3:V;V-=R;do r=r+l[f++]|0,W=W+r|0;while(--R);r%=65521;W%=65521}return r|W<<16|0};for(var jS={},x$,G$v=[],bXe=0;bXe<256;bXe++){x$=bXe;for(var pjk=0;pjk<8;pjk++)x$=x$&1?3988292384^x$>>>1:x$>>>1;G$v[bXe]=x$}jS=function(W,l,V,f){V=f+V;for(W^=-1;f<V;f++)W=W>>>8^G$v[(W^l[f])&255];return W^-1};var ks={};ks={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 qmU=[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],SmJ=[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],D6F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],rav=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],FR=Array(576);CR(FR);var Gd=Array(60);CR(Gd);var Uw=Array(512);CR(Uw);var Ds=Array(256);CR(Ds);var hsz=Array(29);CR(hsz);var EV6=Array(30);CR(EV6);var B_Y,d6S,Jax,caq=!1;var Td;
Td=[new mu(0,0,0,0,function(W,l){var V=65535;for(V>W.pending_buf_size-5&&(V=W.pending_buf_size-5);;){if(W.lookahead<=1){Il(W);if(W.lookahead===0&&l===0)return 1;if(W.lookahead===0)break}W.strstart+=W.lookahead;W.lookahead=0;var f=W.block_start+V;if(W.strstart===0||W.strstart>=f)if(W.lookahead=W.strstart-f,W.strstart=f,bi(W,!1),W.strm.avail_out===0)return 1;if(W.strstart-W.block_start>=W.w_size-262&&(bi(W,!1),W.strm.avail_out===0))return 1}W.insert=0;if(l===4)return bi(W,!0),W.strm.avail_out===0?3:
4;W.strstart>W.block_start&&bi(W,!1);return 1}),
new mu(4,4,8,4,s1S),new mu(4,5,16,8,s1S),new mu(4,6,32,32,s1S),new mu(4,4,16,16,ii),new mu(8,16,32,32,ii),new mu(8,16,128,128,ii),new mu(8,32,128,256,ii),new mu(32,128,258,1024,ii),new mu(32,258,258,4096,ii)];var Cmg={};Cmg=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 uIn=Object.prototype.toString;
n7j.prototype.push=function(W,l){var V=this.strm,f=this.options.chunkSize;if(this.ended)return!1;var r=l===~~l?l:l===!0?4:0;typeof W==="string"?V.input=U6Y(W):uIn.call(W)==="[object ArrayBuffer]"?V.input=new Uint8Array(W):V.input=W;V.next_in=0;V.avail_in=V.input.length;do{V.avail_out===0&&(V.output=new Jv.Buf8(f),V.next_out=0,V.avail_out=f);W=Pmv(V,r);if(W!==1&&W!==0)return oGM(this,W),this.ended=!0,!1;if(V.avail_out===0||V.avail_in===0&&(r===4||r===2))if(this.options.to==="string"){var R=Jv.shrinkBuf(V.output,
V.next_out);l=R;R=R.length;if(R<65537&&(l.subarray&&Ft9||!l.subarray))l=String.fromCharCode.apply(null,Jv.shrinkBuf(l,R));else{for(var y="",P=0;P<R;P++)y+=String.fromCharCode(l[P]);l=y}this.chunks.push(l)}else l=Jv.shrinkBuf(V.output,V.next_out),this.chunks.push(l)}while((V.avail_in>0||V.avail_out===0)&&W!==1);if(r===4)return(V=this.strm)&&V.state?(f=V.state.status,f!==42&&f!==69&&f!==73&&f!==91&&f!==103&&f!==113&&f!==666?W=v2(V,-2):(V.state=null,W=f===113?v2(V,-3):0)):W=-2,oGM(this,W),this.ended=
!0,W===0;r===2&&(oGM(this,0),V.avail_out=0);return!0};
var oGM=function(W,l){l===0&&(W.result=W.options.to==="string"?W.chunks.join(""):Jv.flattenChunks(W.chunks));W.chunks=[];W.err=l;W.msg=W.strm.msg};var jAk=typeof TextEncoder!=="undefined"?new TextEncoder:null,ho6=jAk?function(W){return jAk.encode(W)}:function(W){W=_.IZ(W);
for(var l=new Uint8Array(W.length),V=0;V<l.length;V++)l[V]=W[V];return l};var rej={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},tsJ={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var ea=function(W,l){this.version=W;this.args=l};
ea.prototype.serialize=function(){return{version:this.version,args:this.args}};var FzS=function(W,l){this.topic=W;this.dataClass=l};
FzS.prototype.toString=function(){return this.topic};var I0L=_.Y2("ytPubsub2Pubsub2Instance")||new _.uP;_.uP.prototype.subscribe=_.uP.prototype.subscribe;_.uP.prototype.unsubscribeByKey=_.uP.prototype.unsubscribeByKey;_.uP.prototype.publish=_.uP.prototype.publish;_.uP.prototype.clear=_.uP.prototype.clear;_.fR("ytPubsub2Pubsub2Instance",I0L);var KzY=_.Y2("ytPubsub2Pubsub2SubscribedKeys")||{};_.fR("ytPubsub2Pubsub2SubscribedKeys",KzY);var bGY=_.Y2("ytPubsub2Pubsub2TopicToKeys")||{};_.fR("ytPubsub2Pubsub2TopicToKeys",bGY);
var GSz=_.Y2("ytPubsub2Pubsub2IsAsync")||{};_.fR("ytPubsub2Pubsub2IsAsync",GSz);_.fR("ytPubsub2Pubsub2SkipSubKey",null);var Aaz=void 0,T_Y=void 0;var YD8=_.yS("max_body_size_to_compress",5E5),x6z=_.yS("min_body_size_to_compress",500),Qy=!0,$6n=0,Mt=0,E7Y=_.yS("compression_performance_threshold_lr",250),WKz=_.yS("slow_compressions_before_abandon_count",4),ZG8=!1,OGF=new Map,qDj=1,eo4=!0;_.Jj(Zs,fd6);Zs.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 iXk=function(W,l,V){V||(V=0);var f=W.W_;if(typeof l==="string")for(var r=0;r<16;r++)f[r]=l.charCodeAt(V)<<24|l.charCodeAt(V+1)<<16|l.charCodeAt(V+2)<<8|l.charCodeAt(V+3),V+=4;else for(r=0;r<16;r++)f[r]=l[V]<<24|l[V+1]<<16|l[V+2]<<8|l[V+3],V+=4;for(l=16;l<80;l++)V=f[l-3]^f[l-8]^f[l-14]^f[l-16],f[l]=(V<<1|V>>>31)&4294967295;l=W.chain_[0];V=W.chain_[1];r=W.chain_[2];for(var R=W.chain_[3],y=W.chain_[4],P,n,B=0;B<80;B++)B<40?B<20?(P=R^V&(r^R),n=1518500249):(P=V^r^R,n=1859775393):B<60?(P=V&r|R&(V|r),
n=2400959708):(P=V^r^R,n=3395469782),P=(l<<5|l>>>27)+P+y+n+f[B]&4294967295,y=R,R=r,r=(V<<30|V>>>2)&4294967295,V=l,l=P;W.chain_[0]=W.chain_[0]+l&4294967295;W.chain_[1]=W.chain_[1]+V&4294967295;W.chain_[2]=W.chain_[2]+r&4294967295;W.chain_[3]=W.chain_[3]+R&4294967295;W.chain_[4]=W.chain_[4]+y&4294967295};
Zs.prototype.update=function(W,l){if(W!=null){l===void 0&&(l=W.length);for(var V=l-this.blockSize,f=0,r=this.buf_,R=this.inbuf_;f<l;){if(R==0)for(;f<=V;)iXk(this,W,f),f+=this.blockSize;if(typeof W==="string")for(;f<l;){if(r[R]=W.charCodeAt(f),++R,++f,R==this.blockSize){iXk(this,r);R=0;break}}else for(;f<l;)if(r[R]=W[f],++R,++f,R==this.blockSize){iXk(this,r);R=0;break}}this.inbuf_=R;this.total_+=l}};
Zs.prototype.digest=function(){var W=[],l=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var V=this.blockSize-1;V>=56;V--)this.buf_[V]=l&255,l/=256;iXk(this,this.buf_);for(V=l=0;V<5;V++)for(var f=24;f>=0;f-=8)W[l]=this.chain_[V]>>f&255,++l;return W};var tMn;var hU=function(W){var l=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(d){l.databaseToken=d},
triggerThrottle:function(){l.throttledSend()},
cancelThrottle:function(){l.cancelThrottledSend()},
immediateSend:function(d){return _.g(function(J){return J.yield(l.immediateSend(d),0)})},
requestWithinAgeLimit:function(d,J){return l.requestWithinAgeLimit(d,J)},
retryQueuedRequests:function(){l.retryQueuedRequests()}};
var V;this.throttleTimeout=(V=W.throttleTimeout)!=null?V:100;var f;this.retryMaxAttempts=(f=W.retryMaxAttempts)!=null?f:1;var r;this.requestAgeLimitMs=(r=W.requestAgeLimitMs)!=null?r:2592E6;var R;this.queuedRequestAgeLimitMs=(R=W.queuedRequestAgeLimitMs)!=null?R:12E4;var y;this.retryDelayMs=(y=W.retryDelayMs)!=null?y:5E3;var P;this.databaseToken=(P=W.databaseToken)!=null?P:void 0;this.enableCleaning=!!W.enableCleaning;var n;this.cleaningRate=(n=W.cleaningRate)!=null?n:.1;var B;this.potentialEsfErrorLimit=
(B=W.potentialEsfErrorLimit)!=null?B:10;W.handleError&&(this.handleError=W.handleError);W.handleWarning&&(this.handleWarning=W.handleWarning);W.disableYtIdbTransactions&&(this.disableYtIdbTransactions=W.disableYtIdbTransactions);W.bypassDbTokenDependency&&(this.bypassDbTokenDependency=W.bypassDbTokenDependency);this.getBooleanFlag=W.getBooleanFlag;this.jobManager=W.jobManager;this.logsStore=W.logsStore;this.networkManager=W.networkManager;this.sendFn=W.sendFn;this.onlineEvent=W.onlineEvent;this.offlineEvent=
W.offlineEvent;q3(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&mcL(this)},mcL=function(W){q3(W)&&!W.disableYtIdbTransactions&&(W.initialized=!0,W.enableCleaning&&Math.random()<=W.cleaningRate&&W.logsStore.cleanLogsStore(W.databaseToken),W.retryQueuedRequests(),W.networkManager.isNetworkAvailable()&&W.throttledSend(),W.networkManager.listen(W.onlineEvent,W.throttledSend.bind(W)),W.networkManager.listen(W.offlineEvent,W.cancelThrottledSend.bind(W)))};
_.t=hU.prototype;_.t.writeThenSend=function(W,l){var V=this;l=l===void 0?{}:l;if(q3(this)&&this.initialized){var f={url:W,options:l,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(f,this.databaseToken).then(function(r){f.id=r;V.networkManager.isNetworkAvailable()&&V.immediateSend(f)}).catch(function(r){V.immediateSend(f);
XjB(V,r)})}else this.sendFn(W,l)};
_.t.sendThenWrite=function(W,l,V){var f=this;l=l===void 0?{}:l;if(q3(this)&&this.initialized){var r={url:W,options:l,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(r.skipRetry=V);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!r.skipRetry){if(!r.skipRetry){var R=l.onError?l.onError:function(){};
l.onError=function(y,P){return _.g(function(n){if(n.nextAddress==1)return n.yield(f.logsStore.set(r,f.databaseToken).catch(function(B){XjB(f,B)}),2);
R(y,P);_.ju(n)})}}this.sendFn(W,l,r.skipRetry)}else this.logsStore.set(r,this.databaseToken).catch(function(y){f.sendFn(W,l,r.skipRetry);
XjB(f,y)})}else this.sendFn(W,l,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&V)};
_.t.sendAndWrite=function(W,l){var V=this;l=l===void 0?{}:l;if(q3(this)&&this.initialized){var f={url:W,options:l,timestamp:this.now(),status:"NEW",sendCount:0},r=!1,R=l.onSuccess?l.onSuccess:function(){};
f.options.onSuccess=function(y,P){f.id!==void 0?V.logsStore.deleteRequest(f.id,V.databaseToken):r=!0;V.networkManager.networkStatusHint&&V.getBooleanFlag&&V.getBooleanFlag("vss_network_hint")&&V.networkManager.networkStatusHint(!0);R(y,P)};
this.sendFn(f.url,f.options,void 0,!0);this.logsStore.set(f,this.databaseToken).then(function(y){f.id=y;r&&V.logsStore.deleteRequest(f.id,V.databaseToken)}).catch(function(y){XjB(V,y)})}else this.sendFn(W,l,void 0,!0)};
_.t.throttledSend=function(){var W=this;if(!q3(this))throw Error("cd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var l;return _.g(function(V){if(V.nextAddress==1)return V.yield(W.logsStore.getMostRecentByStatus("NEW",W.databaseToken),2);if(V.nextAddress!=3)return l=V.yieldResult,l?V.yield(W.immediateSend(l),3):(W.cancelThrottledSend(),V.return());W.intervalJob&&(W.intervalJob=0,W.throttledSend());_.ju(V)})},this.throttleTimeout))};
_.t.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.t.immediateSend=function(W){var l=this,V;return _.g(function(f){switch(f.nextAddress){case 1:if(!q3(l))throw Error("dd");if(W.id===void 0){f.jumpTo(2);break}return f.yield(l.logsStore.markAsQueued(W.id,l.databaseToken),3);case 3:(V=f.yieldResult)||l.handleWarning(Error("ed"));case 2:if(l.requestWithinAgeLimit(W,l.requestAgeLimitMs)){f.jumpTo(4);break}l.handleWarning(Error("fd"));if(W.id===void 0){f.jumpTo(5);break}return f.yield(l.logsStore.deleteRequest(W.id,l.databaseToken),5);case 5:return f.return();
case 4:W.skipRetry||(W=TcZ(l,W));if(!W){f.jumpTo(0);break}if(!W.skipRetry||W.id===void 0){f.jumpTo(8);break}return f.yield(l.logsStore.deleteRequest(W.id,l.databaseToken),8);case 8:l.sendFn(W.url,W.options,!!W.skipRetry),_.ju(f)}})};
var TcZ=function(W,l){if(!q3(W))throw Error("gd");var V=l.options.onError?l.options.onError:function(){};
l.options.onError=function(r,R){var y,P,n,B;return _.g(function(d){switch(d.nextAddress){case 1:y=PDg(R);(P=nJx(R))&&W.getBooleanFlag&&W.getBooleanFlag("web_enable_error_204")&&W.handleError(Error("hd"),l.url,R);if(!(W.getBooleanFlag&&W.getBooleanFlag("nwl_consider_error_code")&&y||W.getBooleanFlag&&!W.getBooleanFlag("nwl_consider_error_code")&&W.potentialEsfErrorCounter<=W.potentialEsfErrorLimit)){d.jumpTo(2);break}if(!W.networkManager.sendNetworkCheckRequest){d.jumpTo(3);break}return d.yield(W.networkManager.sendNetworkCheckRequest(),
3);case 3:if(W.networkManager.isNetworkAvailable()){d.jumpTo(2);break}V(r,R);if(!W.getBooleanFlag||!W.getBooleanFlag("nwl_consider_error_code")||((n=l)==null?void 0:n.id)===void 0){d.jumpTo(6);break}return d.yield(W.logsStore.resetRequest(l.id,W.databaseToken,!1),6);case 6:return d.return();case 2:if(W.getBooleanFlag&&W.getBooleanFlag("nwl_consider_error_code")&&!y&&W.potentialEsfErrorCounter>W.potentialEsfErrorLimit)return d.return();W.potentialEsfErrorCounter++;if(((B=l)==null?void 0:B.id)===void 0){d.jumpTo(8);
break}return l.sendCount<W.retryMaxAttempts?d.yield(W.logsStore.resetRequest(l.id,W.databaseToken,!0,P?!1:void 0),12):d.yield(W.logsStore.deleteRequest(l.id,W.databaseToken),8);case 12:W.jobManager.addLowPriorityJob(function(){W.networkManager.isNetworkAvailable()&&W.throttledSend()},W.retryDelayMs);
case 8:V(r,R),_.ju(d)}})};
var f=l.options.onSuccess?l.options.onSuccess:function(){};
l.options.onSuccess=function(r,R){var y;return _.g(function(P){if(P.nextAddress==1)return((y=l)==null?void 0:y.id)===void 0?P.jumpTo(2):P.yield(W.logsStore.deleteRequest(l.id,W.databaseToken),2);W.networkManager.networkStatusHint&&W.getBooleanFlag&&W.getBooleanFlag("vss_network_hint")&&W.networkManager.networkStatusHint(!0);f(r,R);_.ju(P)})};
return l};
hU.prototype.requestWithinAgeLimit=function(W,l){W=W.timestamp;return this.now()-W>=l?!1:!0};
hU.prototype.retryQueuedRequests=function(){var W=this;if(!q3(this))throw Error("id");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(l){l&&!W.requestWithinAgeLimit(l,W.queuedRequestAgeLimitMs)?W.jobManager.addLowPriorityJob(function(){return _.g(function(V){if(V.nextAddress==1)return l.id===void 0?V.jumpTo(2):V.yield(W.logsStore.resetRequest(l.id,W.databaseToken),2);W.retryQueuedRequests();_.ju(V)})}):W.networkManager.isNetworkAvailable()&&W.throttledSend()})};
var XjB=function(W,l){W.writeError&&!W.networkManager.isNetworkAvailable()?W.writeError(l):W.handleError(l)},q3=function(W){return!!W.databaseToken||W.bypassDbTokenDependency};var CDS;var uxY={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,watchZoomStateChange:528,metadataEditorEvent:529};var wjI={},HkY=Rl("ServiceWorkerLogsDatabase",{objectStores:(wjI.SWHealthLog={addedAtVersion:1},wjI),shared:!0,upgrade:function(W,l){l(1)&&Nt(zd(W,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Idz={},jJ8=0;var TmS;var Sa=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},hv=function(){if(!Sa.instance){var W=_.Y2("yt.networkRequestMonitor.instance")||new Sa;
_.fR("yt.networkRequestMonitor.instance",W);Sa.instance=W}return Sa.instance};
Sa.prototype.requestComplete=function(W,l){l&&(this.anyRequestHasSucceeded=!0);W=this.removeParams(W);this.requestMap.get(W)||this.requestMap.set(W,l)};
Sa.prototype.isEndpointCFR=function(W){W=this.removeParams(W);return(W=this.requestMap.get(W))?!1:W===!1&&this.anyRequestHasSucceeded?!0:null};
Sa.prototype.removeParams=function(W){return W.split("?")[0]};
Sa.prototype.removeParams=Sa.prototype.removeParams;Sa.prototype.isEndpointCFR=Sa.prototype.isEndpointCFR;Sa.prototype.requestComplete=Sa.prototype.requestComplete;Sa.getInstance=hv;var EY=function(W){_.aj.call(this);var l=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=W!=null?W:{addLowPriorityJob:function(r,R){return setTimeout(r,R)},
cancelJob:function(r){clearTimeout(r)}};
var V,f;this.isOnline=(f=(V=window.navigator)==null?void 0:V.onLine)!=null?f:!0;this.onNavigatorChange=function(){return _.g(function(r){return r.yield(A6v(l),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||QAL(this)};
_.v(EY,_.aj);EY.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete EY.instance};
EY.prototype.isNetworkAvailable=function(){return this.isOnline};
var QAL=function(W){W.pollingJob=W.jobManager.addLowPriorityJob(function(){var l;return _.g(function(V){if(V.nextAddress==1)return W.isOnline?((l=window.navigator)==null?0:l.onLine)?V.jumpTo(3):V.yield(A6v(W),3):V.yield(A6v(W),3);QAL(W);_.ju(V)})},3E4)},A6v=function(W,l){return W.networkRequestPromise?W.networkRequestPromise:W.networkRequestPromise=new Promise(function(V){var f,r,R,y;
return _.g(function(P){switch(P.nextAddress){case 1:return f=window.AbortController?new window.AbortController:void 0,R=(r=f)==null?void 0:r.signal,y=!1,_.HG(P,2,3),f&&(W.abortTimeoutKey=W.jobManager.addLowPriorityJob(function(){f.abort()},l||2E4)),P.yield(fetch("/generate_204",{method:"HEAD",
signal:R}),5);case 5:y=!0;case 3:_.Ff(P);W.networkRequestPromise=void 0;W.abortTimeoutKey&&(W.jobManager.cancelJob(W.abortTimeoutKey),W.abortTimeoutKey=0);y!==W.isOnline&&(W.isOnline=y,W.isOnline?W.dispatchEvent("networkstatus-online"):W.dispatchEvent("networkstatus-offline"));V(y);_.bM(P,0);break;case 2:_.pc(P),y=!1,P.jumpTo(3)}})})};var $$=function(){_.aj.call(this);var W=this;this.shouldFlushErrors=!1;EY.instance||(EY.instance=new EY(_.w8));this.sharedNetworkStatusManager=EY.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(W.shouldFlushErrors&&_.U("offline_error_handling")){var l=wEJ().get("errors",!0);if(l){for(var V in l)if(l[V]){var f=new _.bP(V,"sent via offline_errors");f.name=l[V].name;f.stack=l[V].stack;f.level=l[V].level;_.OJ(f)}wEJ().set("errors",{},2592E3,!0)}}})};
_.v($$,_.aj);var MQM=function(){if(!$$.instance){var W=_.Y2("yt.networkStatusManager.instance")||new $$;_.fR("yt.networkStatusManager.instance",W);$$.instance=W}return $$.instance};
_.t=$$.prototype;_.t.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.t.networkStatusHint=function(W){this.sharedNetworkStatusManager.isOnline=W};
_.t.getWindowStatus=function(){var W=window.navigator.onLine;return W===void 0?!0:W};
_.t.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.t.listen=function(W,l){return this.sharedNetworkStatusManager.listen(W,l)};
_.t.sendNetworkCheckRequest=function(W){W=A6v(this.sharedNetworkStatusManager,W);W.then(function(l){_.U("use_cfr_monitor")&&hv().requestComplete("generate_204",l)});
return W};
$$.prototype.sendNetworkCheckRequest=$$.prototype.sendNetworkCheckRequest;$$.prototype.listen=$$.prototype.listen;$$.prototype.enableErrorFlushing=$$.prototype.enableErrorFlushing;$$.prototype.getWindowStatus=$$.prototype.getWindowStatus;$$.prototype.networkStatusHint=$$.prototype.networkStatusHint;$$.prototype.isNetworkAvailable=$$.prototype.isNetworkAvailable;$$.getInstance=MQM;_.qt=function(W){W=W===void 0?{}:W;_.aj.call(this);var l=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=MQM();var V=_.Y2("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);V&&(W.rateLimit?(this.rateLimit=W.rateLimit,V("networkstatus-online",function(){ZX9(l,"publicytnetworkstatus-online")}),V("networkstatus-offline",function(){ZX9(l,"publicytnetworkstatus-offline")})):(V("networkstatus-online",function(){l.dispatchEvent("publicytnetworkstatus-online")}),V("networkstatus-offline",
function(){l.dispatchEvent("publicytnetworkstatus-offline")})))};
_.v(_.qt,_.aj);_.qt.prototype.isNetworkAvailable=function(){var W=_.Y2("yt.networkStatusManager.instance.isNetworkAvailable");return W?W.bind(this.nsmInstance)():!0};
_.qt.prototype.networkStatusHint=function(W){var l=_.Y2("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);l&&l(W)};
_.qt.prototype.sendNetworkCheckRequest=function(W){var l=this,V;return _.g(function(f){V=_.Y2("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(l.nsmInstance);return _.U("skip_network_check_if_cfr")&&hv().isEndpointCFR("generate_204")?f.return(new Promise(function(r){var R;l.networkStatusHint(((R=window.navigator)==null?void 0:R.onLine)||!0);r(l.isNetworkAvailable())})):V?f.return(V(W)):f.return(!0)})};
var ZX9=function(W,l){W.rateLimit?W.lastJobTime?(_.w8.cancelJob(W.schedulerJob),W.schedulerJob=_.w8.addLowPriorityJob(function(){W.lastPublicSignalSent!==l&&(W.dispatchEvent(l),W.lastPublicSignalSent=l,W.lastJobTime=(0,_.tv)())},W.rateLimit-((0,_.tv)()-W.lastJobTime))):(W.dispatchEvent(l),W.lastPublicSignalSent=l,W.lastJobTime=(0,_.tv)()):W.dispatchEvent(l)};var Okv,Ww=function(){hU.call(this,{logsStore:{cleanLogsStore:kGn,deleteRequest:uYF,getMostRecentByStatus:JGF,markAsQueued:DaS,resetRequest:Uan,set:daq},networkManager:_.ad4(),handleError:function(W,l,V){var f,r=V==null?void 0:(f=V.error)==null?void 0:f.code;if(r===400||r===415){var R;W=new _.bP(W.message,l,V==null?void 0:(R=V.error)==null?void 0:R.code);_.x2(W,void 0,void 0,void 0,!0)}else _.OJ(W)},
handleWarning:_.x2,sendFn:MMS,now:_.tv,writeError:AGn,jobManager:_.Am(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.yS("potential_esf_error_limit",10),getBooleanFlag:_.U,disableYtIdbTransactions:!(_.G4()&&_.zW4())});this.initializationPromise=new _.mg;_.U("networkless_immediately_drop_all_requests")&&vJY();nVS("LogsDatabaseV2")};
_.v(Ww,hU);_.a0M=function(){var W=_.Y2("yt.networklessRequestController.instance");W||(W=new Ww,_.fR("yt.networklessRequestController.instance",W),_.U("networkless_logging")&&_.r8().then(function(l){W.databaseToken=l;mcL(W);W.initializationPromise.resolve();W.enableCleaning&&Math.random()<=W.cleaningRate&&W.databaseToken&&FKY(W.databaseToken);_.U("networkless_immediately_drop_sw_health_store")&&OXc(W)}));
return W};
Ww.prototype.writeThenSend=function(W,l){l||(l={});l=Zk6(W,l);_.G4()||(this.initialized=!1);hU.prototype.writeThenSend.call(this,W,l)};
Ww.prototype.sendThenWrite=function(W,l,V){l||(l={});l=Zk6(W,l);_.G4()||(this.initialized=!1);hU.prototype.sendThenWrite.call(this,W,l,V)};
Ww.prototype.sendAndWrite=function(W,l){l||(l={});l=Zk6(W,l);_.G4()||(this.initialized=!1);hU.prototype.sendAndWrite.call(this,W,l)};
Ww.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var OXc=function(W){var l;_.g(function(V){if(!W.databaseToken)throw l=a0("clearSWHealthLogsDb"),l;return V.return(GGF(W.databaseToken).catch(function(f){W.handleError(f)}))})};_.YUU=!1;_.Nmq=_.rS.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.YUU};_.fR("ytNetworklessLoggingInitializationOptions",_.Nmq);var my=function(W){var l=this;this.config_=null;W?this.config_=W:kLY()&&(this.config_=_.LR());_.pS(_.w8,function(){gJ4(l)},5E3)};
my.prototype.isReady=function(){!this.config_&&kLY()&&(this.config_=_.LR());return!!this.config_};
var yGY=function(W,l,V,f){!_.M4("VISITOR_DATA")&&l!=="visitor_id"&&Math.random()<.01&&_.x2(new _.bP("Missing VISITOR_DATA when sending innertube request.",l,V,f));if(!W.isReady()){var r=new _.bP("innertube xhrclient not ready",l,V,f);_.OJ(r);throw r;}var R={headers:f.headers||{},method:"POST",postParams:V,postBody:f.postBody,postBodyFormat:f.postBodyFormat||"JSON",onTimeout:function(){f.onTimeout()},
onFetchTimeout:f.onTimeout,onSuccess:function(J,D){if(f.onSuccess)f.onSuccess(D)},
onFetchSuccess:function(J){if(f.onSuccess)f.onSuccess(J)},
onProgress:function(J){if(f.onProgress)f.onProgress(J)},
onError:function(J,D){if(f.onError)f.onError(D)},
onFetchError:function(J){if(f.onError)f.onError(J)},
timeout:f.timeout,withCredentials:!0,compress:f.compress};R.headers["Content-Type"]||(R.headers["Content-Type"]="application/json");var y="";(r=W.config_.innertubeHostOverride)&&(y=r);var P=W.config_.innertubeUseThirdPartyAuth||!1,n=_.A5F(P,y,f);Object.assign(R.headers,n);R.headers.Authorization&&!y&&P&&(R.headers["x-origin"]=window.location.origin);var B=_.EJ(y+("/youtubei/"+W.config_.innertubeApiVersion+"/"+l),{alt:"json"}),d=function(J){J=J===void 0?!1:J;var D;if(f.retry&&y!="www.youtube-nocookie.com"&&
(J||_.U("skip_ls_gel_retry")||R.headers["Content-Type"]!=="application/json"||(D=sJn(l,V,n,P)),D)){var u=R.onSuccess,H=R.onFetchSuccess;R.onSuccess=function(w,O){LKv(D);u(w,O)};
V.onFetchSuccess=function(w,O){LKv(D);H(w,O)}}try{if(J&&f.retry&&!f.networklessOptions.bypassNetworkless)R.method="POST",f.networklessOptions.writeThenSend?_.a0M().writeThenSend(B,R):_.a0M().sendAndWrite(B,R);
else if(f.compress){var p=!f.networklessOptions.writeThenSend;if(R.postBody){var X=R.postBody;typeof X!=="string"&&(X=JSON.stringify(R.postBody));SDj(B,X,R,_.Dj,p)}else SDj(B,JSON.stringify(R.postParams),R,rWj,p)}else _.U("web_all_payloads_via_jspb")?_.Dj(B,R):rWj(B,R)}catch(w){if(w.name==="InvalidAccessError")D&&(LKv(D),D=0),_.x2(Error("jd"));else throw w;}D&&_.pS(_.w8,function(){gJ4(W)},5E3)};
_.xax()?r5F().then(function(J){d(J)}):d(!1)};var idq=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(idq,_.yP);var zcI=0,qUF=_.HF?"webkit":_.vF?"moz":_.kt?"ms":E3q?"o":"";_.fR("ytDomDomGetNextId",_.Y2("ytDomDomGetNextId")||function(){return++zcI});var NcI={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},Ve=function(W){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(W=
W||window.event){this.event=W;for(var l in W)l in NcI||(this[l]=W[l]);this.scale=W.scale;this.rotation=W.rotation;var V=W.target||W.srcElement;V&&V.nodeType==3&&(V=V.parentNode);this.target=V;var f=W.relatedTarget;if(f)try{f=f.nodeName?f:null}catch(r){f=null}else this.type=="mouseover"?f=W.fromElement:this.type=="mouseout"&&(f=W.toElement);this.relatedTarget=f;this.clientX=W.clientX!=void 0?W.clientX:W.pageX;this.clientY=W.clientY!=void 0?W.clientY:W.pageY;this.keyCode=W.keyCode?W.keyCode:W.which;
this.charCode=W.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=W.altKey;this.ctrlKey=W.ctrlKey;this.shiftKey=W.shiftKey;this.metaKey=W.metaKey;this.pageX_=W.pageX;this.pageY_=W.pageY}}catch(r){}},YCM=function(W){if(document.body&&document.documentElement){var l=document.body.scrollTop+document.documentElement.scrollTop;
W.pageX_=W.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);W.pageY_=W.clientY+l}};
Ve.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Ve.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Ve.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var lT=_.rS.ytEventsEventsListeners||{};_.fR("ytEventsEventsListeners",lT);var lNF=_.rS.ytEventsEventsCounter||{count:0};_.fR("ytEventsEventsCounter",lNF);var V1v=_.M7(function(){var W=!1;try{var l=Object.defineProperty({},"capture",{get:function(){W=!0}});
window.addEventListener("test",null,l)}catch(V){}return W});_.Jj(Ro,_.iI);Ro.prototype.onMouseMove_=function(W){W.pageX_===void 0&&YCM(W);var l=W.pageX_;W.pageY_===void 0&&YCM(W);this.position_=new _.O1(l,W.pageY_)};
Ro.prototype.checkPosition_=function(){if(this.position_){var W=(0,_.tv)();if(this.previousTime_!=0){var l=this.previousPosition_,V=this.position_,f=l.x-V.x;l=l.y-V.y;f=Math.sqrt(f*f+l*l)/(W-this.previousTime_);this.cycles_[this.index_]=Math.abs((f-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(V=l=0;V<4;V++)l+=this.cycles_[V]||0;l>=3&&this.callback_();this.previousVelocity_=f}this.previousTime_=W;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Ro.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.fNz(this.mouseListenerKey_)};var sfz={};var BHn=new _.uC("rawColdConfigGroup");var cy8=new _.uC("rawHotConfigGroup");var xca=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(xca,_.yP);var I3S=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(I3S,_.yP);var bT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W,500)};
_.v(bT,_.yP);bT.prototype.getPayloadCase=function(){return _.Ty(this,ecv)};
bT.prototype.getContext=function(){return _.yy(this,I3S,33)};
var ecv=[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,528,529];var L$z=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(L$z,_.yP);var A2S=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(A2S,_.yP);A2S.prototype.setVideoId=function(W){return UL(this,1,Qf4,kZ(W))};
A2S.prototype.getPlaylistId=function(){return _.F7(this,KS(this,Qf4,2))};
var Qf4=[1,2];var VJg=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(VJg,_.yP);VJg.prototype.getContext=function(){return _.yy(this,uT,1)};
VJg.prototype.getTier=function(){return _.zy(this,7)};var qCL,gv,Pq;qCL=_.rS.ytPubsubPubsubInstance||new _.uP;gv=_.rS.ytPubsubPubsubSubscribedKeys||{};Pq=_.rS.ytPubsubPubsubTopicToKeys||{};_.Lr4=_.rS.ytPubsubPubsubIsSynchronous||{};_.uP.prototype.subscribe=_.uP.prototype.subscribe;_.uP.prototype.unsubscribeByKey=_.uP.prototype.unsubscribeByKey;_.uP.prototype.publish=_.uP.prototype.publish;_.uP.prototype.clear=_.uP.prototype.clear;_.fR("ytPubsubPubsubInstance",qCL);_.fR("ytPubsubPubsubTopicToKeys",Pq);_.fR("ytPubsubPubsubIsSynchronous",_.Lr4);
_.fR("ytPubsubPubsubSubscribedKeys",gv);var CS=window;var lZ=_.U("web_enable_lifecycle_monitoring")&&CpJ()!==0,hca=_.U("web_enable_lifecycle_monitoring");var SCL=function(W){var l=this;var V=V===void 0?0:V;var f=f===void 0?_.Am():f;this.JSC$10884_defaultPriority=V;this.scheduler=f;this.completedResolver=new _.mg;this.scheduledPayloads=W;for(W={i$jscomp$492:0};W.i$jscomp$492<this.scheduledPayloads.length;W={payload$jscomp$20:void 0,i$jscomp$492:W.i$jscomp$492},W.i$jscomp$492++)W.payload$jscomp$20=this.scheduledPayloads[W.i$jscomp$492],V=function(r){return function(){r.payload$jscomp$20.job();l.scheduledPayloads[r.i$jscomp$492].processed=!0;l.scheduledPayloads.every(function(R){return R.processed===
!0})&&l.completedResolver.resolve()}}(W),f=this.getPriority(W.payload$jscomp$20),f=this.scheduler.addJob(V,f),this.scheduledPayloads[W.i$jscomp$492]=Object.assign({},W.payload$jscomp$20,{job:V,
jobId:f})};
SCL.prototype.flushJobs=function(){var W=this,l=Array.from(this.scheduledPayloads.keys()).sort(function(f,r){return W.getPriority(W.scheduledPayloads[r])-W.getPriority(W.scheduledPayloads[f])});
l=_.L(l);for(var V=l.next();!V.done;V=l.next())V=this.scheduledPayloads[V.value],V.jobId===void 0||V.processed||(this.scheduler.cancelJob(V.jobId),this.scheduler.addJob(V.job,10))};
SCL.prototype.cancel=function(){for(var W=_.L(this.scheduledPayloads),l=W.next();!l.done;l=W.next())l=l.value,l.jobId===void 0||l.processed||this.scheduler.cancelJob(l.jobId),l.processed=!0;this.completedResolver.resolve()};
SCL.prototype.getPriority=function(W){var l;return(l=W.priority)!=null?l:this.JSC$10884_defaultPriority};var Vo=function(W){this.state=W;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};lZ&&c2v(this.state)};
Vo.prototype.install=function(W){this.plugins.push(W);return this};
Vo.prototype.uninstall=function(){var W=this;_.xk.apply(0,arguments).forEach(function(l){l=W.plugins.indexOf(l);l>-1&&W.plugins.splice(l,1)})};
Vo.prototype.transition=function(W,l){var V=this;lZ&&BN6(this.state);var f=this.transitions.find(function(R){return Array.isArray(R.from)?R.from.find(function(y){return y===V.state&&R.to===W}):R.from===V.state&&R.to===W});
if(f){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);EGX(this,W,l);this.state=W;lZ&&c2v(this.state);f=f.action.bind(this);var r=this.plugins.filter(function(R){return R[W]}).map(function(R){return R[W]});
f($cB(this,r),l)}else throw Error("kd`"+this.state+"`"+W);};
var $cB=function(W,l){var V=l.filter(function(r){return WAa(W,r)===10}),f=l.filter(function(r){return WAa(W,r)!==10});
return W.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var r=_.xk.apply(0,arguments);return _.g(function(R){if(R.nextAddress==1)return R.yield(W.runImmediateJobsAsync.apply(W,[V].concat(_.QK(r))),2);W.setJobSetWithScheduledJobs.apply(W,[f].concat(_.QK(r)));_.ju(R)})}:function(){var r=_.xk.apply(0,arguments);
W.runImmediateJobsSync.apply(W,[V].concat(_.QK(r)));W.setJobSetWithScheduledJobs.apply(W,[f].concat(_.QK(r)))}};
Vo.prototype.runImmediateJobsSync=function(W){var l=_.xk.apply(1,arguments);_.Am();for(var V=_.L(W),f=V.next(),r={};!f.done;r={lifecycle$jscomp$2:void 0},f=V.next())r.lifecycle$jscomp$2=f.value,bp(function(R){return function(){lY9(R.lifecycle$jscomp$2.name);J2z(function(){return R.lifecycle$jscomp$2.callback.apply(R.lifecycle$jscomp$2,_.QK(l))});
fz(R.lifecycle$jscomp$2.name)}}(r))};
Vo.prototype.runImmediateJobsAsync=function(W){var l=_.xk.apply(1,arguments),V,f,r,R;return _.g(function(y){y.nextAddress==1&&(_.Am(),V=_.L(W),f=V.next(),r={});if(y.nextAddress!=3){if(f.done)return y.jumpTo(0);r.lifecycle$jscomp$3=f.value;r.asyncJobCompletion=void 0;R=function(P){return function(){lY9(P.lifecycle$jscomp$3.name);var n=J2z(function(){return P.lifecycle$jscomp$3.callback.apply(P.lifecycle$jscomp$3,_.QK(l))});
oeq(n)?P.asyncJobCompletion=_.U("web_lifecycle_error_handling_killswitch")?n.then(function(){fz(P.lifecycle$jscomp$3.name)}):n.then(function(){fz(P.lifecycle$jscomp$3.name)},function(B){deF(B);
fz(P.lifecycle$jscomp$3.name)}):fz(P.lifecycle$jscomp$3.name)}}(r);
bp(R);return r.asyncJobCompletion?y.yield(r.asyncJobCompletion,3):y.jumpTo(3)}r={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};f=V.next();return y.jumpTo(2)})};
Vo.prototype.setJobSetWithScheduledJobs=function(W){var l=_.xk.apply(1,arguments),V=this,f=W.map(function(r){return{job:function(){lY9(r.name);J2z(function(){return r.callback.apply(r,_.QK(l))});
fz(r.name)},
priority:WAa(V,r)}});
f.length&&(this.jobSet=new SCL(f))};
var WAa=function(W,l){var V,f;return(f=(V=W.overridePriority)!=null?V:l.priority)!=null?f:0},lY9=function(W){lZ&&W&&c2v(W)},fz=function(W){lZ&&W&&BN6(W)},EGX=function(W,l,V){hca&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+W.constructor.name+"] '"+W.state+"' to '"+l+"'"),console.log("with message: ",V),console.groupEnd())};
_.rc.Object.defineProperties(Vo.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var VyL=function(W){Vo.call(this,W===void 0?"none":W);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(){}}]},fY9;
_.v(VyL,Vo);VyL.prototype.runApplicationNavigationBegin=function(W,l){var V=this;this.navigationTimer=_.pS(_.w8,function(){V.currentState==="application_navigating"&&V.transition("none")},5E3);
W(l==null?void 0:l.event)};
VyL.prototype.runApplicationNavigationEnd=function(W,l){this.navigationTimer&&(_.w8.cancelJob(this.navigationTimer),this.navigationTimer=null);W(l==null?void 0:l.event)};
_.C$z=function(){fY9||(fY9=new VyL);return fY9};var nwS=[];_.fR("yt.logging.transport.getScrapedGelPayloads",function(){return nwS});var cq=function(){var W=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return W.totalEntries}}};
cq.prototype.storePayload=function(W,l){W=De6(W);this.store[W]?this.store[W].push(l):(this.memoizedKeySequences={},this.store[W]=[l]);this.totalEntries++;_.U("more_accurate_gel_parser")&&(l=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(l));return W};
cq.prototype.smartExtractMatchingEntries=function(W){if(!W.keys.length)return[];for(var l=rgL(this,W.keys.splice(0,1)[0]),V=[],f=0;f<l.length;f++)this.store[l[f]]&&W.sizeLimit&&(this.store[l[f]].length<=W.sizeLimit?(V.push.apply(V,_.QK(this.store[l[f]])),delete this.store[l[f]]):V.push.apply(V,_.QK(this.store[l[f]].splice(0,W.sizeLimit))));this.totalEntries-=V.length;(W==null?0:W.sizeLimit)&&V.length<(W==null?void 0:W.sizeLimit)&&(W.sizeLimit-=V.length,V.push.apply(V,_.QK(this.smartExtractMatchingEntries(W))));
return V};
cq.prototype.extractMatchingEntries=function(W){W=rgL(this,W);for(var l=[],V=0;V<W.length;V++)this.store[W[V]]&&(l.push.apply(l,_.QK(this.store[W[V]])),delete this.store[W[V]]);this.totalEntries-=l.length;return l};
cq.prototype.getSequenceCount=function(W){W=rgL(this,W);for(var l=0,V=0;V<W.length;V++){var f=void 0;l+=((f=this.store[W[V]])==null?void 0:f.length)||0}return l};
var rgL=function(W,l){var V=De6(l);if(W.memoizedKeySequences[V])return W.memoizedKeySequences[V];var f=Object.keys(W.store)||[];if(f.length<=1&&De6(l)===f[0])return f;for(var r=[],R=0;R<f.length;R++){var y=f[R].split("/");if(RMa(l.auth,y[0])){var P=l.isJspb;RMa(P===void 0?"undefined":P?"true":"false",y[1])&&RMa(l.cttAuthInfo,y[2])&&(P=l.tier,P=P===void 0?"undefined":JSON.stringify(P),RMa(P,y[3])&&r.push(f[R]))}}return W.memoizedKeySequences[V]=r},RMa=function(W,l){return W===void 0||W==="undefined"?
!0:W===l};
cq.prototype.getSequenceCount=cq.prototype.getSequenceCount;cq.prototype.extractMatchingEntries=cq.prototype.extractMatchingEntries;cq.prototype.smartExtractMatchingEntries=cq.prototype.smartExtractMatchingEntries;cq.prototype.storePayload=cq.prototype.storePayload;var ewq,YZ4,qZq,Jr,tyc,UB6,DBg,NNz,zwJ,iPj,xeS,gwv,ZPU;ewq=_.yS("initial_gel_batch_timeout",2E3);YZ4=_.yS("gel_queue_timeout_max_ms",6E4);qZq=_.yS("gel_min_batch_size",5);Jr=void 0;tyc=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
UB6=new tyc;DBg=new tyc;NNz=new tyc;zwJ=new tyc;xeS=!0;gwv=1;_.yyF=new Map;ZPU=_.rS.ytLoggingTransportTokensToCttTargetIds_||{};_.fR("ytLoggingTransportTokensToCttTargetIds_",ZPU);var M16=_.rS.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.fR("ytLoggingTransportTokensToJspbCttTargetIds_",M16);var dv={};var Io=_.rS.ytLoggingGelSequenceIdObj_||{};_.fR("ytLoggingGelSequenceIdObj_",Io);var vwJ=[];var Xpn=new Set,bvU=0,Q$z=0,Ay8=0,owU=[],ppj=[],MJg=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var $Bx=function(){};
$Bx.prototype.getUrl=function(W,l){l=l===void 0?!1:l;return W.hasOwnProperty("shareEndpoint")?null:_.zPv(W,null,l)};
var dYJ=function(W,l,V){W={endpoint:l,actions:[]};V=(V.path?V.path[0]:V.target).icon||"";l=V.indexOf(":");l>0&&(V=V.substr(l+1));V&&W.actions.push(V);return W};var hPU=/Command$/,q_z=/Endpoint$/,Y_S=new Map;var sgM,LAk;sgM=1;_.eC=function(){this.actionRoutingMap=new Map};
_.eC.prototype.triggerAction=function(W){var l=new g6v(W,!1,_.xk.apply(1,arguments));this.handleAction(l);return l.returnValue};
_.eC.prototype.triggerOptionalAction=function(W){var l=new g6v(W,!0,_.xk.apply(1,arguments));this.handleAction(l);return l.returnValue};
_.rP=function(W,l,V){l.forEach(function(f){var r=ePg(f);r&&W.triggerOptionalAction(r,f,V,void 0)})};
_.eC.prototype.handleAction=function(W){var l=this.actionRoutingMap.get(W.actionName);l&&LAk(W,l);W.optionalAction||W.returnValue.length!==0||(W=new _.bP("Unhandled action",W.actionName),_.x2(W))};
LAk=function(W,l){l.forEach(function(V){var f=null;V?f=V.apply(null,W.args):(V=Error("ld"),V.params=W.actionName,_.OJ(V));W.returnValue.push(f)})};
_.qJ=function(W,l,V){V||(V=sgM++);for(var f=_.L(Object.keys(l)),r=f.next();!r.done;r=f.next()){r=r.value;var R=W.actionRoutingMap.get(r);R||(R=new Map,W.actionRoutingMap.set(r,R));W.registerActionHandler(V,r,l[r],R)}return V};
_.eC.prototype.registerActionHandler=function(W,l,V,f){f.set(W,_.ah(V))};
_.EL=function(W,l,V){l=_.L(Object.keys(l));for(var f=l.next();!f.done;f=l.next())(f=W.actionRoutingMap.get(f.value))&&f.delete(V)};
_.BF(_.eC);var V$U=function(W,l){var V=_.eC.getInstance();_.mw(function(){var f={},r=_.qJ(V,(f[W]=l,f));_.Xc(function(){var R={};_.EL(V,(R[W]="",R),r)})})};var jdF=Symbol("nd");sA4=QAv;var Dr8=new Set(["For","If","Match","Watch"]),ygM={},guX=(ygM[N_.default]=function(){return $SY},ygM.style=function(){return $SY},ygM),PjL;
for(PjL in guX)y_.attributes[PjL]=guX[PjL](y_.attributes[PjL]);var tH=new _.vd("VISIBILITY_OBSERVER");var bh4={retrieve:function(W){return this.id.\u0275prov.token===W.\u0275prov.token?this.contextValue:this?_.t4(this,this.id):KuU}};var cAv=function(W,l,V){if(W!==V6)return!1;W=n18(document.createElement("div"),function(){var f=yj(!1);try{V[0]()}finally{yj(f)}});
W=Array.from(W.childNodes);W.length===1&&(W=W[0]);return W};var nu$=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(W){}var Cjc=typeof WeakRef==="function";var cg9=function(W){this.value=W};
cg9.prototype.deref=function(){return this.value};
var BgL=Cjc?WeakRef:cg9,dTB=function(W){this.newKeyHandler=W;this.map=new WeakMap};
dTB.prototype.add=function(W,l){this.map.has(W)||(this.newKeyHandler(W),this.map.set(W,[]));this.map.get(W).push(new BgL(l))};
dTB.prototype.get=function(W){var l=this;return function f(){var r,R,y,P,n,B,d,J,D,u,H;return _.UH(f,function(p){switch(p.nextAddress){case 1:_.Gu(p,2);r=l.map.get(W);if(!r)return p.return();R=0;y=_.L(r);P=y.next();case 4:if(P.done){p.jumpTo(6);break}n=P.value;B=n.deref();if(!B){p.jumpTo(5);break}R++;d=_.u4;return p.yield(B,8);case 8:d(p.yieldResult);case 5:P=y.next();p.jumpTo(4);break;case 6:if(2*R<r.length){J=0;D=_.L(r);for(u=D.next();!u.done;u=D.next())H=u.value,H.deref()&&(r[J++]=H);r.length=
J}case 2:_.Ff(p),_.bM(p,0)}})}()};var JgM=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},Xfj=new dTB(function(W){W.addEventListener("abort",wfz,{once:!0})}),mrU=new WeakMap,DTc=function(W){W=W===void 0?R3:W;
this.signal=new W};
DTc.prototype.abort=function(W){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=W,W=new Event("abort"),this.signal.dispatchEvent(W))};
var R3=function(){this.target=JgM();this.aborted=!1;this.onabort=null};
R3.prototype.throwIfAborted=function(){ihY.call(this)};
R3.prototype.addEventListener=function(W,l,V){this.target.addEventListener(W,l,V)};
R3.prototype.removeEventListener=function(W,l,V){this.target.removeEventListener(W,l,V)};
R3.prototype.dispatchEvent=function(W){if(this.onabort&&W.type==="abort")this.onabort(W);return this.target.dispatchEvent(W)};
R3.abort=IpY;R3.timeout=A$g;R3.any=TCS;var jpx=nu$?AbortController:DTc,tk=nu$?AbortSignal:R3;typeof tk.abort!=="function"&&(tk.abort=IpY);typeof tk.prototype.throwIfAborted!=="function"&&(tk.prototype.throwIfAborted=ihY);typeof tk.any!=="function"&&(tk.any=TCS);typeof tk.timeout!=="function"&&(tk.timeout=A$g);var UTM=function(W){W=W.clone();MFB(W);ar(W,"dg",null);ar(W,"d","0");TUL(W,null);wA1(W,null);return W},uNa=!0,ktL=function(W,l,V){var f=V===void 0?{}:V;
V=f.cssRowKey===void 0?void 0:f.cssRowKey;var r=f.combinedSignature===void 0?void 0:f.combinedSignature;var R=f.extraEdges===void 0?void 0:f.extraEdges;f=f.callback===void 0?void 0:f.callback;ar(W,"m",l.join(","));R&&Q0k(W,R);V&&(ar(W,"ck",V),r?ar(W,"rs",r):uNa&&(uNa=!1));if(f){if(f!=null&&!ajI.test(f))throw Error("Xa`"+f);ar(W,"cb",f)}W=W.toString();_.sz(W,"/")&&(W=JOM(document.location.href)+W);return _.i7(W)};var HNk=function(W){return vuI(W).then(function(l){return JSON.parse(l.responseText)})},vuI=function(W){var l={},V=l.xmlHttpFactory?l.xmlHttpFactory.createInstance():f1k.createInstance();
return(new _.Dx(function(f,r){var R;try{V.open("GET",W,!0)}catch(n){r(new ss("Error opening XHR: "+n.message,W,V))}V.onreadystatechange=function(){if(V.readyState==4){_.rS.clearTimeout(R);var n;!(n=VV9(V.status))&&(n=V.status===0)&&(n=dIB(W),n=!(n=="http"||n=="https"||n==""));n?f(V):r(new KA1(V.status,W,V))}};
V.onerror=function(){r(new ss("Network error",W,V))};
if(l.headers)for(var y in l.headers){var P=l.headers[y];P!=null&&V.setRequestHeader(y,P)}l.withCredentials&&(V.withCredentials=l.withCredentials);l.responseType&&(V.responseType=l.responseType);l.mimeType&&V.overrideMimeType(l.mimeType);l.timeoutMs>0&&(R=_.rS.setTimeout(function(){V.onreadystatechange=function(){};
V.abort();r(new FAM(W,V))},l.timeoutMs));
try{V.send(null)}catch(n){V.onreadystatechange=function(){},_.rS.clearTimeout(R),r(new ss("Error sending XHR: "+n.message,W,V))}})).thenCatch(function(f){f instanceof _.Eg&&V.abort();
throw f;})},ss=function(W,l,V){_.VU.call(this,W+", url="+l);
this.url=l;this.xhr=V};
_.Jj(ss,_.VU);ss.prototype.name="XhrError";var KA1=function(W,l,V){ss.call(this,"Request Failed, status="+W,l,V);this.status=W};
_.Jj(KA1,ss);KA1.prototype.name="XhrHttpError";var FAM=function(W,l){ss.call(this,"Request timed out",W,l)};
_.Jj(FAM,ss);FAM.prototype.name="XhrTimeoutError";cF=cF||{};var Lz=function(){_.iI.call(this)};
_.Jj(Lz,_.iI);Lz.prototype.initialize=function(){};var Gt1=function(W,l){this.fn_=W;this.handler_=l};
Gt1.prototype.execute=function(W){this.fn_&&(this.fn_.call(this.handler_||null,W),this.fn_=this.handler_=null)};
Gt1.prototype.abort=function(){this.handler_=this.fn_=null};var yo=function(W,l){_.iI.call(this);this.deps_=W;this.JSC$11038_id_=l;this.onloadCallbacks_=[];this.JSC$11038_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Jj(yo,_.iI);yo.prototype.moduleConstructor_=Lz;yo.prototype.module_=null;yo.prototype.getId=function(){return this.JSC$11038_id_};
yo.prototype.registerCallback=function(W,l){return bNL(this.onloadCallbacks_,W,l)};
var phe=function(W,l){bNL(W.JSC$11038_onErrorCallbacks_,l)},bNL=function(W,l,V){l=new Gt1(l,V);
W.push(l);return l};
yo.prototype.isLoaded=function(){return!!this.module_};
yo.prototype.onLoad=function(W){var l=new this.moduleConstructor_;l.initialize(W());this.module_=l;l=(l=ouc(this.earlyOnloadCallbacks_,W()))||ouc(this.onloadCallbacks_,W());l||(this.JSC$11038_onErrorCallbacks_.length=0);return l};
yo.prototype.onError=function(W){(W=ouc(this.JSC$11038_onErrorCallbacks_,W))&&tx(Error("qd`"+W));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var ouc=function(W,l){for(var V=[],f=0;f<W.length;f++)try{W[f].execute(l)}catch(r){tx(r),V.push(r)}W.length=0;return V.length?V:null};
yo.prototype.disposeInternal=function(){yo.superClass_.disposeInternal.call(this);_.Ls(this.module_)};var jg9,whL,Xhk,TgZ,iNB,mTX,ONL,MyB,ZNL;
_.y6=function(W,l,V,f,r){f=f===void 0?!1:f;r=r===void 0?!1:r;var R=R===void 0?!0:R;this.scsReferenceUrl_=xtJ(_.m7(W).toString(),R);this.cssRowKey_=l;this.combinedSignature_=V;this.useNegativeLoading_=f;this.requestedModuleMap_={};this.JSC$11041_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(W=Or(this.scsReferenceUrl_,"excm"))?W.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;ejz();_.gP(this,AYB(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
jg9=function(W,l){if(l.href||l.getAttribute("data-href"))if(l=l.href||l.getAttribute("data-href"),as8(l)&&!xtJ(l).urlPrefix_.endsWith("_/js/")){l=AYB(xtJ(l));l=_.L(l);for(var V=l.next();!V.done;V=l.next())V=V.value,W.loadedCssModuleList_.includes(V)||W.loadedCssModuleList_.push(V)}};
_.y6.prototype.JSC$11043_loadModules=function(W,l,V){var f=V===void 0?{}:V;V=f.extraEdges;var r=f.onError;var R=f.onSuccess;f=f.forceReload;this.JSC$11041_moduleInfoMap_=l;if(!W)throw Error("rd");if(this.shouldScanForCss_){l=_.L(document.getElementsByTagName("style"));for(var y=l.next();!y.done;y=l.next())jg9(this,y.value);l=_.L(document.getElementsByTagName("link"));for(y=l.next();!y.done;y=l.next())jg9(this,y.value)}IYZ(this,iNB(this,W),V,r,R,f)};
var IYZ=function(W,l,V,f,r,R){f=f===void 0?function(){}:f;
r=r===void 0?function(){}:r;
R=R===void 0?!1:R;mTX(W,l,function(y,P,n){n=n===void 0?P:n;W.enableFallbackFetch&&R?W.loadWithFetch(y,P,f,r,n):W.load(y,P,f,r,n,V)},V)||f(-1)};
_.y6.prototype.loadWithFetch=function(){_.g(function(){throw Error("sd");})};
_.y6.prototype.maybeSetAdditionalFields=function(){};
whL=function(W,l,V){if(W.useNegativeLoading_){var f=W.scsReferenceUrl_;W={cssRowKey:W.cssRowKey_,combinedSignature:W.combinedSignature_,extraEdges:V,requestedModuleIds:Xhk(W),requestedCssModuleIds:TgZ(W)};var r=W===void 0?{}:W;W=r.requestedModuleIds===void 0?[]:r.requestedModuleIds;V=r.requestedCssModuleIds===void 0?[]:r.requestedCssModuleIds;var R=r.cssRowKey===void 0?void 0:r.cssRowKey;var y=r.combinedSignature===void 0?void 0:r.combinedSignature;var P=r.extraEdges===void 0?void 0:r.extraEdges;
r=r.callback===void 0?void 0:r.callback;f=UTM(f);ar(f,"d","1");TUL(f,W);wA1(f,V);l=ktL(f,l,{cssRowKey:R,combinedSignature:y,extraEdges:P,callback:r})}else f=W.scsReferenceUrl_,W={cssRowKey:W.cssRowKey_,combinedSignature:W.combinedSignature_,requestedModuleIds:Xhk(W),requestedCssModuleIds:TgZ(W)},P=W===void 0?{}:W,W=P.requestedCssModuleIds===void 0?[]:P.requestedCssModuleIds,V=P.cssRowKey===void 0?void 0:P.cssRowKey,R=P.combinedSignature===void 0?void 0:P.combinedSignature,y=P.extraEdges===void 0?
void 0:P.extraEdges,P=P.callback===void 0?void 0:P.callback,f=UTM(f),wA1(f,W),l=ktL(f,l,{cssRowKey:V,combinedSignature:R,extraEdges:y,callback:P});return l};
_.gP=function(W,l){for(var V=!1,f=[],r=0;r<l.length;++r){var R=l[r];W.requestedModuleMap_[R]||(W.requestedModuleMap_[R]=!0,W.requestedModuleList_.push(R),V=!0,f.push(R))}V&&(W.requestedModuleListSorted_=!1)};
_.Pw=function(W,l){for(var V=[],f=0;f<l.length;++f){var r=l[f];W.requestedModuleMap_[r]&&(delete W.requestedModuleMap_[r],_.aY(W.requestedModuleList_,r),V.push(r))}};
_.y6.prototype.load=function(W,l,V,f,r){r=r===void 0?l:r;_.m7(W);var R=this.useCors_,y=this.corsMode_,P=this.fetchPriority,n=_.Gz("SCRIPT");_.tL(n,W);R&&(n.crossOrigin=y);n.async=!1;P&&n.setAttribute("fetchpriority",P);_.gP(this,l);_.AgX(this,W,n,l,V,f,r)};
_.AgX=function(W,l,V,f,r,R,y){y=y===void 0?f:y;W.lastScript_=V;W.insertPos.insertBefore(V,W.insertPos.firstChild);_.Qg1(V,f,function(){V.parentElement.removeChild(V);W.lastScript_==V&&(W.lastScript_=null);var P=new Set;f.map(function(B){return P.add(B)});
for(var n in W.JSC$11041_moduleInfoMap_)W.JSC$11041_moduleInfoMap_[n].isLoaded()&&P.add(n);Array.from(P);R()},function(P){V.parentElement.removeChild(V);
W.lastScript_==V&&(W.lastScript_=null);_.Pw(W,P);W.pendingModuleGraphUpdate_?W.pendingModuleGraphUpdate_.then(function(){r(-1,l)}):r(-1,l)},y)};
_.Qg1=function(W,l,V,f,r){r=r===void 0?l:r;var R=l.length,y=function(){R=0;W.onload=null;W.onerror=null;P=function(){}},P=function(){y();
var B=r.filter(function(d){return!Q7().getModuleInfo(d).isLoaded()});
B.length!==0?f(B,"Response was successful but was missing module(s) "+B+"."):V()},n=function(){R--;
R==0&&P()};
l.forEach(function(B){B=Q7().getModuleInfo(B);B.isLoaded()?n():(bNL(B.earlyOnloadCallbacks_,n),phe(B,n))});
W.onload=function(){return P()};
W.onerror=function(){y();f(l)}};
Xhk=function(W){W.requestedModuleListSorted_||(W.requestedModuleListSorted_=!0,W.requestedModuleList_.sort());return W.requestedModuleList_};
TgZ=function(W){W=W.loadedCssModuleList_;W.sort();return W};
iNB=function(W,l){return l.filter(function(V){return!W.requestedModuleMap_[V]})};
mTX=function(W,l,V,f){if(W.pendingModuleGraphUpdate_)return W.pendingModuleGraphUpdate_.then(function(){mTX(W,l,V,f)}),!0;
if(!W.useNegativeLoading_){var r=[],R=Object.assign({},W.requestedModuleMap_);MyB(W,l,function(d){r.push(d.getId())},f,function(d){return!d.isLoaded()},R);
l=r}for(R=0;R<l.length;){for(var y=l.length-R,P=R==0?l:l.slice(R,l.length),n=whL(W,P,f),B=_.m7(n).toString();B.length>W.urlMaxLength;)if(y>1)y-=Math.ceil((B.length-W.urlMaxLength)/6),y=Math.max(y,1),P=l.slice(R,R+y),n=whL(W,P,f),B=_.m7(n).toString();else return W.useNegativeLoading_?(W.useNegativeLoading_=!1,W.pendingModuleGraphUpdate_=ZNL(W).then(function(d){ONL(W,d,f)}),mTX(W,l.slice(R),V,f)):!1;
R+=y;W.useNegativeLoading_?V(n,P):V(n,P,R===l.length?l:[])}return!0};
ONL=function(W,l,V){Q7().setAllModuleInfoString((l||{}).moduleGraph);MyB(W,Xhk(W),function(f){_.gP(W,[f.getId()])},V);
W.pendingModuleGraphUpdate_=null};
MyB=function(W,l,V,f,r,R){R=R===void 0?{}:R;var y=Q7();l=_.L(l);for(var P=l.next();!P.done;P=l.next()){P=P.value;var n=y.getModuleInfo(P);if(!(R[P]||r&&!r(n))){R[P]=!0;var B=n.deps_||[];if(f){var d=[];f[P]&&(d=Object.keys(f[P]));B=B.concat(d)}MyB(W,B,V,f,r,R);V(n)}}};
ZNL=function(W){W=W.scsReferenceUrl_.clone();MFB(W);ar(W,"dg",null);ar(W,"md","1");return HNk(W.toString())};var Qpv=new Uint8Array(123);var aYB=[];var zMc=function(){this.JSC$10048_loader_=null};
_.t=zMc.prototype;_.t.setBatchModeEnabled=function(){};
_.t.setAllModuleInfoString=function(){};
_.t.addExtraEdge=function(){throw Error("td");};
_.t.removeExtraEdge=function(){throw Error("ud");};
_.t.getModuleContext=function(){return null};
_.t.isActive=function(){return!1};
_.t.isUserActive=function(){return!1};
_.t.registerCallback=function(){};var nz=function(W,l,V,f,r){var R=Error.call(this);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.name="ModuleLoadFailure";this.type=W;this.status=l;this.requestedModuleIds=V;this.url=f;this.cause=r;this.message=this.toString()};
_.v(nz,Error);nz.prototype.toString=function(){return NgM(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var NgM=function(W){switch(W.type){case nz.Type.UNAUTHORIZED:return"Unauthorized";case nz.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case nz.Type.TIMEOUT:return"Timed out";case nz.Type.OLD_CODE_GONE:return"Out of date module id";case nz.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+W.type}};
cF.ModuleLoadFailure=nz;cF.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Cz=function(){this.moduleIds_=this.JSC$10048_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11056_extraEdges_={};this.JSC$11056_callbackMap_={};this.JSC$11056_currentlyLoadingModule_=this.baseModuleInfo_=new yo([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new nC;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.Jj(Cz,zMc);var YeZ=function(W,l){_.VU.call(this,"Error loading "+W+": "+l)};
_.Jj(YeZ,_.VU);Cz.prototype.setBatchModeEnabled=function(W){this.batchModeEnabled_=W};
Cz.prototype.setAllModuleInfoString=function(W,l){if(!(this instanceof Cz))this.setAllModuleInfoString(W,l);else if(typeof W==="string"){if(W.startsWith("d$")){W=W.substring(2);for(var V=[],f=0,r=W.indexOf("/"),R=0,y=!1,P=0;;){var n=y?W.substring(R):W.substring(R,r);if(n.length===0)f++,R="sy"+f.toString(36),n=[];else{var B=n.indexOf(":");if(B<0)R=n,n=[];else if(B===n.length-1)R=n.substring(0,B),n=Array(V[P-1]);else{R=n.substring(0,B);n=n.substring(B+1).split(",");B=P;for(var d=0;d<n.length;d++)B-=
n[d].length===0?1:Number(n[d]),n[d]=V[B]}B=0;if(R.length===0)B=1;else if(R.charAt(0)==="+"||R.charAt(0)==="-")B=Number(R);B!==0&&(f+=B,R="sy"+f.toString(36))}V.push(R);xTL(this,R,n);if(y)break;R=r+1;r=W.indexOf("/",R);r===-1&&(y=!0);P++}this.moduleIds_=V}else if(W.startsWith("p$"))eML(this,W);else{W=W.split("/");V=[];for(f=0;f<W.length;f++){P=W[f].split(":");r=P[0];y=[];if(P[1])for(y=P[1].split(","),P=0;P<y.length;P++)y[P]=V[parseInt(y[P],36)];V.push(r);xTL(this,r,y)}this.moduleIds_=V}l&&l.length?
(_.xz(this.loadingModuleIds_,l),this.lastInitialModuleId_=_.Xn(l)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11056_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11056_currentlyLoadingModule_=null,(l=this.baseModuleInfo_.onLoad((0,_.ml)(this.getModuleContext,this)))&&l.length&&qe1(this,new cF.ModuleLoadFailure(cF.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,l[0])),cw(this))}};
var eML=function(W,l){var V=l.substring(2);for(l=0;l<64;l++)Qpv["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(l)]=l;var f={buf:V,pos:0};Lj(f);var r=Lj(f),R=Lj(f)+1;l=Array(r);var y=Array(r),P=Array(r);R=Array(R);var n=0,B=0,d=f.pos,J=f.buf.indexOf("|",f.pos);f.pos=J+1;for(J=0;J<r;J++){var D=Lj(f),u=D&2,H=D&1;D>>>=2;H?(n+=D>>>1^-(D&1),D="sy"+n.toString(36)):(H=d,d+=D,D=V.substring(H,d));l[J]=D;u&&(R[B++]=D)}R[B]="";f.pos++;B=r&-2;V=r&1;for(n=0;n<B;n+=2)d=M$8(f),P[n]=
d&7,P[n+1]=d>>>3&7;V&&(V=M$8(f),P[B]=V&7);f.pos++;for(B=0;B<r;B++)P[B]===7&&(P[B]=Lj(f));f.pos++;for(V=B=0;V<r;V++){n=P[V];d=n===0?aYB:Array(n);y[V]=d;J=B;for(u=0;u<n;u++)J-=Lj(f),d[u]=R[J];R[B]===l[V]&&B++}for(f=0;f<l.length;f++)xTL(W,l[f],y[f]);W.moduleIds_=l};
_.t=Cz.prototype;_.t.getModuleInfo=function(W){return this.moduleInfoMap[W]};
_.t.addExtraEdge=function(W,l){var V=this.getModuleInfo(W);V&&V.isLoaded()?this.load(l):(this.JSC$11056_extraEdges_[W]||(this.JSC$11056_extraEdges_[W]={}),this.JSC$11056_extraEdges_[W][l]=!0)};
_.t.removeExtraEdge=function(W,l){if(this.JSC$11056_extraEdges_[W]){delete this.JSC$11056_extraEdges_[W][l];for(var V in this.JSC$11056_extraEdges_[W])return;delete this.JSC$11056_extraEdges_[W]}};
_.t.isActive=function(){return this.loadingModuleIds_.length>0};
_.t.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var cw=function(W){var l=W.lastActive_,V=W.isActive();V!=l&&(W.executeCallbacks_(V?"active":"idle"),W.lastActive_=V);l=W.isUserActive();l!=W.userLastActive_&&(W.executeCallbacks_(l?"userActive":"userIdle"),W.userLastActive_=l)},xTL=function(W,l,V){W.moduleInfoMap[l]?(W=W.moduleInfoMap[l].deps_,W!=V&&W.splice.apply(W,[0,
W.length].concat(_.QK(V)))):W.moduleInfoMap[l]=new yo(V,l)},Se$=function(W,l,V){var f=[];
G6z(l,f);l=[];for(var r={},R=0;R<f.length;R++){var y=f[R],P=W.getModuleInfo(y);if(!P)throw Error("vd`"+y);var n=new nC;r[y]=n;P.isLoaded()?n.callback(null):(hM1(W,y,P,!!V,n),W.isModuleLoading(y)||l.push(y))}l.length>0&&(W.loadingModuleIds_.length===0?W.loadModules_(l):(W.requestedModuleIdsQueue_.push(l),cw(W)));return r},hM1=function(W,l,V,f,r){V.registerCallback(r.callback,r);
phe(V,function(R){r.errback(new YeZ(l,R))});
W.isModuleLoading(l)?f&&(Eue(W,l),cw(W)):f&&Eue(W,l)};
Cz.prototype.loadModules_=function(W,l,V){var f=this;l||(this.consecutiveFailures_=0);var r=$Ta(this,W);this.loadingModuleIds_=r;this.requestedLoadingModuleIds_=this.batchModeEnabled_?W:_.z6(r);cw(this);if(r.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,r);if(Object.keys(this.JSC$11056_extraEdges_).length>0&&!this.JSC$10048_loader_.supportsExtraEdges)throw Error("wd");W=(0,_.ml)(this.JSC$10048_loader_.JSC$11043_loadModules,this.JSC$10048_loader_,_.z6(r),this.moduleInfoMap,
{extraEdges:this.JSC$11056_extraEdges_,forceReload:!!V,onError:function(R,y){var P=f.requestedLoadingModuleIds_;R=R!=null?R:void 0;f.consecutiveFailures_++;var n=_.z6(r);f.requestedLoadingModuleIds_=P;r.forEach(_.QW(_.aY,f.requestedModuleIds_),f);R==401?(qe1(f,new cF.ModuleLoadFailure(cF.ModuleLoadFailure.Type.UNAUTHORIZED,R)),f.requestedModuleIdsQueue_.length=0):R==410?(WLL(f,new cF.ModuleLoadFailure(cF.ModuleLoadFailure.Type.OLD_CODE_GONE,R)),lAe(f)):f.consecutiveFailures_>=3?(WLL(f,new cF.ModuleLoadFailure(cF.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
R,n,y)),lAe(f)):f.loadModules_(f.requestedLoadingModuleIds_,!0,R==8001||!1)},
onTimeout:(0,_.ml)(this.handleLoadTimeout_,this)});(l=Math.pow(this.consecutiveFailures_,2)*5E3)?_.rS.setTimeout(W,l):W()}};
var $Ta=function(W,l){l=l.filter(function(r){return W.moduleInfoMap[r].isLoaded()?(_.rS.setTimeout(function(){return Error("xd`"+r)},0),!1):!0});
for(var V=[],f=0;f<l.length;f++)V=V.concat(VEc(W,l[f]));G6z(V);return!W.batchModeEnabled_&&V.length>1?(l=V.shift(),W.requestedModuleIdsQueue_=V.map(function(r){return[r]}).concat(W.requestedModuleIdsQueue_),[l]):V},VEc=function(W,l){var V=_.MC.createSet(W.requestedModuleIds_),f=[];
V[l]||f.push(l);l=[l];for(var r=0;r<l.length;r++)for(var R=W.getModuleInfo(l[r]).deps_,y=R.length-1;y>=0;y--){var P=R[y];W.getModuleInfo(P).isLoaded()||V[P]||(f.push(P),l.push(P))}f.reverse();G6z(f);return f};
Cz.prototype.JSC$11051_setLoaded=function(){if(this.JSC$11056_currentlyLoadingModule_){var W=this.JSC$11056_currentlyLoadingModule_.getId(),l=[];if(this.JSC$11056_extraEdges_[W]){for(var V=_.L(Object.keys(this.JSC$11056_extraEdges_[W])),f=V.next();!f.done;f=V.next()){f=f.value;var r=this.getModuleInfo(f);r&&!r.isLoaded()&&(this.removeExtraEdge(W,f),l.push(f))}this.loadMultiple(l)}this.isDisposed()||((l=this.moduleInfoMap[W].onLoad((0,_.ml)(this.getModuleContext,this)))&&l.length&&qe1(this,new cF.ModuleLoadFailure(cF.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,l[0])),_.aY(this.userInitiatedLoadingModuleIds_,W),_.aY(this.loadingModuleIds_,W),this.loadingModuleIds_.length===0&&lAe(this),this.lastInitialModuleId_&&W==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),cw(this),this.JSC$11056_currentlyLoadingModule_=null)}};
Cz.prototype.isModuleLoading=function(W){if(_.Oz(this.loadingModuleIds_,W))return!0;for(var l=0;l<this.requestedModuleIdsQueue_.length;l++)if(_.Oz(this.requestedModuleIdsQueue_[l],W))return!0;return!1};
Cz.prototype.load=function(W,l){return Se$(this,[W],l)[W]};
Cz.prototype.loadMultiple=function(W){return Se$(this,W)};
var Eue=function(W,l){_.Oz(W.userInitiatedLoadingModuleIds_,l)||W.userInitiatedLoadingModuleIds_.push(l)};
Cz.prototype.beforeLoadModuleCode=function(W){var l=this;this.JSC$11056_currentlyLoadingModule_&&this.JSC$11056_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11051_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[W]&&fAe(this,this.moduleInfoMap[W].deps_||[],function(V){V.module_=new Lz;_.aY(l.loadingModuleIds_,V.getId())},function(V){return!V.isLoaded()});
this.JSC$11056_currentlyLoadingModule_=this.getModuleInfo(W)};
Cz.prototype.handleLoadTimeout_=function(){WLL(this,new cF.ModuleLoadFailure(cF.ModuleLoadFailure.Type.TIMEOUT));lAe(this)};
var WLL=function(W,l){W.requestedLoadingModuleIds_.length>1?W.requestedModuleIdsQueue_=W.requestedLoadingModuleIds_.map(function(V){return[V]}).concat(W.requestedModuleIdsQueue_):qe1(W,l)},qe1=function(W,l){var V=W.requestedLoadingModuleIds_;
W.loadingModuleIds_.length=0;for(var f=[],r=0;r<W.requestedModuleIdsQueue_.length;r++){var R=W.requestedModuleIdsQueue_[r].filter(function(n){var B=VEc(this,n);return SS(V,function(d){return _.Oz(B,d)})},W);
_.xz(f,R)}for(r=0;r<V.length;r++)_.vzF(f,V[r]);for(r=0;r<f.length;r++){for(R=0;R<W.requestedModuleIdsQueue_.length;R++)_.aY(W.requestedModuleIdsQueue_[R],f[r]);_.aY(W.userInitiatedLoadingModuleIds_,f[r])}if(r=W.JSC$11056_callbackMap_.error)for(R=0;R<r.length;R++)for(var y=r[R],P=0;P<f.length;P++)y("error",f[P],l);for(f=0;f<V.length;f++)if(W.moduleInfoMap[V[f]])W.moduleInfoMap[V[f]].onError(l);W.requestedLoadingModuleIds_.length=0;cw(W)},lAe=function(W){for(;W.requestedModuleIdsQueue_.length;){var l=
W.requestedModuleIdsQueue_.shift().filter(function(V){return!this.getModuleInfo(V).isLoaded()},W);
if(l.length>0){W.loadModules_(l);return}}cw(W)};
Cz.prototype.registerCallback=function(W,l){Array.isArray(W)||(W=[W]);for(var V=0;V<W.length;V++){var f=W[V],r=l,R=this.JSC$11056_callbackMap_;R[f]||(R[f]=[]);R[f].push(r)}};
Cz.prototype.executeCallbacks_=function(W){for(var l=this.JSC$11056_callbackMap_[W],V=0;l&&V<l.length;V++)l[V](W)};
var fAe=function(W,l,V,f,r){f=f===void 0?function(){return!0}:f;
r=r===void 0?{}:r;l=_.L(l);for(var R=l.next();!R.done;R=l.next()){R=R.value;var y=W.getModuleInfo(R);!r[R]&&f(y)&&(r[R]=!0,fAe(W,y.deps_||[],V,f,r),V(y))}};
Cz.prototype.dispose=function(){_.y7(_.MC.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11056_callbackMap_={};this.isDisposed_=!0};
Cz.prototype.isDisposed=function(){return this.isDisposed_};
_.Al=function(){return new Cz};var rWk=[5E3,2E4],Rue=function(){this.JSC$10048_loader_=null;this.JSC$11064_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11064_queue_=[];this.JSC$11064_extraEdges_=Object.create(null);this.JSC$11064_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.v(Rue,zMc);_.t=Rue.prototype;_.t.setAllModuleInfoString=function(){this.JSC$11064_currentlyLoadingModule_&&this.JSC$11064_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11051_setLoaded()};
_.t.getModuleInfo=function(W){var l=this.JSC$11064_moduleInfoMap_[W];l||(l=new yo([],W),this.JSC$11064_moduleInfoMap_[W]=l);return l};
_.t.addExtraEdge=function(W,l){this.getModuleInfo(W).isLoaded()?this.load(l):(this.JSC$11064_extraEdges_[W]||(this.JSC$11064_extraEdges_[W]={}),this.JSC$11064_extraEdges_[W][l]=!0)};
_.t.removeExtraEdge=function(W,l){if(this.JSC$11064_extraEdges_[W]){delete this.JSC$11064_extraEdges_[W][l];for(var V in this.JSC$11064_extraEdges_[W])return;delete this.JSC$11064_extraEdges_[W]}};
_.t.isModuleLoading=function(W){return!!this.loadingModules_[W]};
_.t.load=function(W){tEB(this,[W]);return ssX(this,W)};
_.t.loadMultiple=function(W){var l=this,V=Object.create(null),f=[];W.forEach(function(r){V[r]||(V[r]=ssX(l,r),f.push(r))});
tEB(this,f);return V};
_.t.beforeLoadModuleCode=function(W){var l;((l=this.JSC$11064_currentlyLoadingModule_)==null?void 0:l.getId())==="synthetic_module_overhead"&&this.JSC$11051_setLoaded();var V,f;LLc(this,(f=(V=this.JSC$11064_moduleInfoMap_[W])==null?void 0:V.deps_)!=null?f:[],function(r){r.module_=new Lz},function(r){return!r.isLoaded()});
this.JSC$11064_currentlyLoadingModule_=this.getModuleInfo(W)};
_.t.JSC$11051_setLoaded=function(){if(this.JSC$11064_currentlyLoadingModule_){var W=this.JSC$11064_currentlyLoadingModule_.getId(),l=[];if(this.JSC$11064_extraEdges_[W]){for(var V=_.L(Object.keys(this.JSC$11064_extraEdges_[W])),f=V.next();!f.done;f=V.next())f=f.value,this.getModuleInfo(f).isLoaded()||(this.removeExtraEdge(W,f),l.push(f));this.loadMultiple(l)}this.JSC$11064_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11064_currentlyLoadingModule_=null;(!this.isModuleLoading(W)&&/^sy[0-9a-z]{0,4}$/.test(W)||W==="synthetic_module_overhead")&&delete this.JSC$11064_moduleInfoMap_[W];this.unsetModulesAsLoading(W)}};
_.t.setModulesAsLoading=function(){var W=this;_.xk.apply(0,arguments).forEach(function(l){W.loadingModules_[l]=!0})};
_.t.unsetModulesAsLoading=function(){var W=this;_.xk.apply(0,arguments).forEach(function(l){delete W.loadingModules_[l]})};
var ssX=function(W,l){return new _.Dx(function(V,f){var r=W.getModuleInfo(l);r.isLoaded()?V(null):(r.registerCallback(function(){V(null)}),phe(r,function(R){var y="Error loading "+l+": "+R;
R instanceof cF.ModuleLoadFailure&&R.url&&(y=y+", requested url: "+R.url.toString());f(Error(y))}))})},tEB=function(W,l){l=l.filter(function(V){return!W.isModuleLoading(V)&&!W.getModuleInfo(V).isLoaded()});
l.length>0&&(W.setModulesAsLoading.apply(W,_.QK(l)),W.JSC$11064_queue_.push(l),yWI(W))},yWI=function(W){for(var l={};W.activeLoads_<Infinity&&W.JSC$11064_queue_.length>0;l={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})l.ids$jscomp$36=W.JSC$11064_queue_.shift().filter(function(V){return!W.getModuleInfo(V).isLoaded()}),l.ids$jscomp$36.length>0&&(W.activeLoads_++,l.finishLoad=function(V){return function(){W.activeLoads_--;
yWI(W);V.finishLoad=function(){}}}(l),_.YS(l.ids$jscomp$36.map(function(V){return ssX(W,V)})).then(function(V){return function(){(0,V.finishLoad)()}}(l)),l.attempt$jscomp$6=0,l.load$jscomp$1=function(V){return function(){if(Object.keys(W.JSC$11064_extraEdges_).length>0&&!W.JSC$10048_loader_.supportsExtraEdges)throw Error("wd");
W.JSC$10048_loader_.JSC$11043_loadModules(V.ids$jscomp$36,W.JSC$11064_moduleInfoMap_,{extraEdges:W.JSC$11064_extraEdges_,onError:function(f,r){var R=rWk[V.attempt$jscomp$6++];R!==void 0?setTimeout(function(){(0,V.load$jscomp$1)()},R):(W.unsetModulesAsLoading.apply(W,_.QK(V.ids$jscomp$36)),(0,V.finishLoad)(),V.ids$jscomp$36.forEach(function(y){y=W.getModuleInfo(y);
if(!y.isLoaded())y.onError(new cF.ModuleLoadFailure(cF.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,f,V.ids$jscomp$36,r))}))}})}}(l),(0,l.load$jscomp$1)())},LLc=function(W,l,V,f,r){f=f===void 0?function(){return!0}:f;
r=r===void 0?{}:r;l=_.L(l);for(var R=l.next();!R.done;R=l.next()){R=R.value;var y=W.getModuleInfo(R);!r[R]&&f(y)&&(r[R]=!0,LLc(W,y.deps_||[],V,f,r),V(y))}};var gHe=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var z2J=Symbol("zd");window.JSCompiler_renameProperty=function(W){return W};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var P_Z,nHB,C_$;P_Z=!gHe||HTMLElement.es5Shimmed||_.rS.Reflect===void 0||_.rS.customElements===void 0||_.rS.customElements.polyfillWrapFlushCallback||!1;_.aVJ=function(){var W=HTMLElement;if(P_Z)return W;if(nHB!==void 0)return nHB;var l=_.rS.Reflect,V=function(){return l.construct(W,[],this.constructor)};
V.prototype=W.prototype;V.prototype.constructor=V;V.es5Shimmed=!0;Object.setPrototypeOf(V,W);return nHB=V};
C_$=!1;P_Z||C_$||(C_$=!0,_.rS.HTMLElement=_.aVJ());/*

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 qgz=/(url\()([^)]*)(\))/g,xrq=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,e2F,g6;var NS=!window.ShadyDOM||!window.ShadyDOM.inUse,cWv=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),BJe=!window.customElements.polyfillWrapFlushCallback,ddk;if(ddk=NS&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var JW1=new CSSStyleSheet;JW1.replaceSync("");var Ddk=document.createElement("div");Ddk.attachShadow({mode:"open"});Ddk.shadowRoot.adoptedStyleSheets=[JW1];ddk=Ddk.shadowRoot.adoptedStyleSheets[0]===JW1}catch(W){ddk=!1}
var UdX=ddk,uy1=window.Polymer&&window.Polymer.rootPath||Sgz(document.baseURI||window.location.href),Kj=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Rpv=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,qS=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,kTa=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,zi=window.Polymer&&window.Polymer.legacyOptimizations||!1,en=window.Polymer&&window.Polymer.legacyWarnings||!1,vHa=window.Polymer&&window.Polymer.syncInitialRender||
!1,Gi=window.Polymer&&window.Polymer.legacyUndefined||!1,H0Z=window.Polymer&&window.Polymer.orderedComputed||!1,Bw=window.Polymer&&window.Polymer.removeNestedTemplates||!1,dP=window.Polymer&&window.Polymer.fastDomIf||!1,Jk=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,KLk=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,FLL=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var Di={},GTk={},pj=function(){return HTMLElement.apply(this,arguments)||this};
_.v(pj,HTMLElement);pj.import=function(W,l){return W?(W=Di[W]||GTk[W.toLowerCase()])&&l?W.querySelector(l):W:null};
pj.prototype.attributeChangedCallback=function(W,l,V){l!==V&&this.register()};
pj.prototype.register=function(W){if(W=W||this.id){if(qS&&(Di[W]||GTk[W.toLowerCase()])!==void 0)throw Di[W]=GTk[W.toLowerCase()]=null,Error("Ad`"+W);this.id=W;Di[W]=GTk[W.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.rc.Object.defineProperties(pj.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var W=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;W=_.PS(this.getAttribute("assetpath")||"",W.baseURI);this.__assetpath=Sgz(W)}return this.__assetpath}}});
_.rc.Object.defineProperties(pj,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
pj["import"]=pj.import;pj.prototype.modules=Di;customElements.define("dom-module",pj);var b0B=0,$rJ=0,nj=[],pye=0,E1U=!1,oHk=document.createTextNode(""),jsk,Ou;(new window.MutationObserver(WHj)).observe(oHk,{characterData:!0});_.Us={after:function(W){return{run:function(l){return window.setTimeout(l,W)},
cancel:function(l){window.clearTimeout(l)}}},
run:function(W,l){return window.setTimeout(W,l)},
cancel:function(W){window.clearTimeout(W)}};
_.xJ={run:function(W){return window.requestAnimationFrame(W)},
cancel:function(W){window.cancelAnimationFrame(W)}};
jsk={run:function(W){return window.requestIdleCallback?window.requestIdleCallback(W):window.setTimeout(W,16)},
cancel:function(W){window.cancelIdleCallback?window.cancelIdleCallback(W):window.clearTimeout(W)}};
Ou={run:function(W){E1U||(E1U=!0,oHk.textContent=pye++);nj.push(W);return b0B++},
cancel:function(W){var l=W-$rJ;if(l>=0){if(!nj[l])throw Error("Bd`"+W);nj[l]=null}}};var IA9=0,uZ=function(W){var l=W.__mixinApplications;l||(l=new WeakMap,W.__mixinApplications=l);var V=IA9++;return function(f){var r=f.__mixinSet;if(r&&r[V])return f;var R=l,y=R.get(f);y||(y=W(f),R.set(f,y),f=Object.create(y.__mixinSet||r||null),f[V]=!0,y.__mixinSet=f);return y}};_.HS=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(W){return ShadyDOM.patch(W)}:function(W){return W};var i0a=uZ(function(W){var l=function(){var V=W.call(this)||this;V.__dataEnabled=!1;V.__dataReady=!1;V.__dataInvalid=!1;V.__data={};V.__dataPending=null;V.__dataOld=null;V.__dataInstanceProps=null;V.__dataCounter=0;V.__serializing=!1;V._initializeProperties();return V};
_.v(l,W);l.createProperties=function(V){var f=this.prototype,r;for(r in V)r in f||f._createPropertyAccessor(r)};
l.attributeNameForProperty=function(V){return V.toLowerCase()};
l.typeForProperty=function(){};
l.prototype._createPropertyAccessor=function(V,f){this._addPropertyToAttributeMap(V);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[V]||(this.__dataHasAccessor[V]=!0,this._definePropertyAccessor(V,f))};
l.prototype._addPropertyToAttributeMap=function(V){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var f=this.__dataAttributes[V];f||(f=this.constructor.attributeNameForProperty(V),this.__dataAttributes[f]=V);return f};
l.prototype._definePropertyAccessor=function(V,f){Object.defineProperty(this,V,{get:function(){return this.__data[V]},
set:f?function(){}:function(r){this._setPendingProperty(V,r,!0)&&this._invalidateProperties()}})};
l.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
l.prototype._initializeProperties=function(){for(var V in this.__dataHasAccessor)this.hasOwnProperty(V)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[V]=this[V],delete this[V])};
l.prototype._initializeInstanceProperties=function(V){Object.assign(this,V)};
l.prototype._setProperty=function(V,f){this._setPendingProperty(V,f)&&this._invalidateProperties()};
l.prototype._getProperty=function(V){return this.__data[V]};
l.prototype._setPendingProperty=function(V,f){var r=this.__data[V],R=this._shouldPropertyChange(V,f,r);R&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||V in this.__dataOld||(this.__dataOld[V]=r),this.__data[V]=f,this.__dataPending[V]=f);return R};
l.prototype._isPropertyPending=function(V){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(V))};
l.prototype._invalidateProperties=function(){var V=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Ou.run(function(){V.__dataInvalid&&(V.__dataInvalid=!1,V._flushProperties())}))};
l.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
l.prototype._flushProperties=function(){this.__dataCounter++;var V=this.__data,f=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(V,f,r)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(V,f,r));this.__dataCounter--};
l.prototype._shouldPropertiesChange=function(V,f){return!!f};
l.prototype._propertiesChanged=function(){};
l.prototype._shouldPropertyChange=function(V,f,r){return r!==f&&(r===r||f===f)};
l.prototype.attributeChangedCallback=function(V,f,r,R){f!==r&&this._attributeToProperty(V,r);W.prototype.attributeChangedCallback&&W.prototype.attributeChangedCallback.call(this,V,f,r,R)};
l.prototype._attributeToProperty=function(V,f,r){if(!this.__serializing){var R=this.__dataAttributes;V=R&&R[V]||V;this[V]=this._deserializeValue(f,r||this.constructor.typeForProperty(V))}};
l.prototype._propertyToAttribute=function(V,f,r){this.__serializing=!0;r=arguments.length<3?this[V]:r;this._valueToNodeAttribute(this,r,f||this.constructor.attributeNameForProperty(V));this.__serializing=!1};
l.prototype._valueToNodeAttribute=function(V,f,r){f=this._serializeValue(f);if(r==="class"||r==="name"||r==="slot")V=(0,_.HS)(V);f===void 0?V.removeAttribute(r):V.setAttribute(r,f===""&&window.trustedTypes?window.trustedTypes.emptyScript:f)};
l.prototype._serializeValue=function(V){switch(typeof V){case "boolean":return V?"":void 0;default:return V!=null?V.toString():void 0}};
l.prototype._deserializeValue=function(V,f){switch(f){case Boolean:return V!==null;case Number:return Number(V);default:return V}};
return l});var mdM=0,lmv=[];var XyL=uZ(function(W){function l(R){R=Object.getPrototypeOf(R);return R.prototype instanceof r?R:null}
function V(R){if(!R.hasOwnProperty("__ownProperties")){var y=null;if(R.hasOwnProperty("properties")){var P=R.properties;if(P){y={};for(var n in P){var B=P[n];y[n]=typeof B==="function"?{type:B}:B}}}R.__ownProperties=y}return R.__ownProperties}
var f=i0a(W),r=function(){return f.apply(this,arguments)||this};
_.v(r,f);r.finalize=function(){if(!this.hasOwnProperty("__finalized")){var R=l(this);R&&R.finalize();this.__finalized=!0;this._finalizeClass()}};
r._finalizeClass=function(){var R=V(this);R&&this.createProperties(R)};
r.typeForProperty=function(R){return(R=this._properties[R])&&R.type};
r.prototype._initializeProperties=function(){mdM++;this.constructor.finalize();f.prototype._initializeProperties.call(this)};
r.prototype.connectedCallback=function(){f.prototype.connectedCallback&&f.prototype.connectedCallback.call(this);this._enableProperties()};
r.prototype.disconnectedCallback=function(){f.prototype.disconnectedCallback&&f.prototype.disconnectedCallback.call(this)};
_.rc.Object.defineProperties(r,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var R=this;if(!this.hasOwnProperty("__observedAttributes")){Vlv(this.prototype);var y=this._properties;this.__observedAttributes=y?Object.keys(y).map(function(P){return R.prototype._addPropertyToAttributeMap(P)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var R=l(this);this.__properties=Object.assign({},R&&R._properties,V(this))}return this.__properties}}});
return r});var fmF={},rmJ=/-[a-z]/g,RDU=/([A-Z])/g;for(var TJa={},wy9=HTMLElement.prototype;wy9;){for(var AW9=Object.getOwnPropertyNames(wy9),Qsk=0;Qsk<AW9.length;Qsk++)TJa[AW9[Qsk]]=!0;wy9=Object.getPrototypeOf(wy9)}var MEM=window.trustedTypes?function(W){return trustedTypes.isHTML(W)||trustedTypes.isScript(W)||trustedTypes.isScriptURL(W)}:function(){return!1},Z0M=uZ(function(W){var l=i0a(W);
W=function(){return l.apply(this,arguments)||this};
_.v(W,l);W.createPropertiesForAttributes=function(){for(var V=this.observedAttributes,f=0;f<V.length;f++)this.prototype._createPropertyAccessor(Cj(V[f]))};
W.attributeNameForProperty=function(V){return cS(V)};
W.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);l.prototype._initializeProperties.call(this)};
W.prototype._initializeProtoProperties=function(V){for(var f in V)this._setProperty(f,V[f])};
W.prototype._ensureAttribute=function(V,f){this.hasAttribute(V)||this._valueToNodeAttribute(this,f,V)};
W.prototype._serializeValue=function(V){switch(typeof V){case "object":if(V instanceof Date)return V.toString();if(V){if(MEM(V))return V;try{return JSON.stringify(V)}catch(f){return""}}default:return l.prototype._serializeValue.call(this,V)}};
W.prototype._deserializeValue=function(V,f){switch(f){case Object:try{var r=JSON.parse(V)}catch(R){r=V}break;case Array:try{r=JSON.parse(V)}catch(R){r=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+V)}break;case Date:r=isNaN(V)?String(V):Number(V);r=new Date(r);break;default:r=l.prototype._deserializeValue.call(this,V,f)}return r};
W.prototype._definePropertyAccessor=function(V,f){if(!TJa[V]){var r=this[V];r!==void 0&&(this.__data?this._setPendingProperty(V,r):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[V]=r))}l.prototype._definePropertyAccessor.call(this,V,f)};
W.prototype._hasAccessor=function(V){return this.__dataHasAccessor&&this.__dataHasAccessor[V]};
W.prototype._isPropertyPending=function(V){return!!(this.__dataPending&&V in this.__dataPending)};
return W});var O0Z={"dom-if":!0,"dom-repeat":!0},aAM=!1,zuB=!1,NJZ=function(){var W=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(l){return l}});
return function(l,V,f){V=V.getAttribute(f);W&&f.startsWith("on-")?l.setAttribute(f,W.createScript(V,f)):l.setAttribute(f,V)}}(),YKv=uZ(function(W){var l=function(){return W.apply(this,arguments)||this};
_.v(l,W);l._parseTemplate=function(V,f){if(!V._templateInfo){var r=V._templateInfo={};r.nodeInfoList=[];r.nestedTemplate=!!f;r.stripWhiteSpace=f&&f.stripWhiteSpace||V.hasAttribute&&V.hasAttribute("strip-whitespace");this._parseTemplateContent(V,r,{parent:null})}return V._templateInfo};
l._parseTemplateContent=function(V,f,r){return this._parseTemplateNode(V.content,f,r)};
l._parseTemplateNode=function(V,f,r){var R=!1;V.localName!="template"||V.hasAttribute("preserve-content")?V.localName==="slot"&&(f.hasInsertionPoint=!0):R=this._parseTemplateNestedTemplate(V,f,r)||R;if(!aAM){aAM=!0;var y=document.createElement("textarea");y.placeholder="a";zuB=y.placeholder===y.textContent}zuB&&V.localName==="textarea"&&V.placeholder&&V.placeholder===V.textContent&&(V.textContent=null);V.firstChild&&this._parseTemplateChildNodes(V,f,r);V.hasAttributes&&V.hasAttributes()&&(R=this._parseTemplateNodeAttributes(V,
f,r)||R);return R||r.noted};
l._parseTemplateChildNodes=function(V,f,r){if(V.localName!=="script"&&V.localName!=="style")for(var R=V.firstChild,y=0,P;R;R=P){if(R.localName=="template"){var n=R.getAttribute("is");if(n&&O0Z[n])for(P=R,P.removeAttribute("is"),R=P.ownerDocument.createElement(n),P.parentNode.replaceChild(R,P),R.appendChild(P);P.attributes.length;)n=P.attributes[0].name,NJZ(R,P,n),P.removeAttribute(n)}P=R.nextSibling;if(R.nodeType===Node.TEXT_NODE){for(n=P;n&&n.nodeType===Node.TEXT_NODE;)R.textContent+=n.textContent,
P=n.nextSibling,V.removeChild(n),n=P;if(f.stripWhiteSpace&&!R.textContent.trim()){V.removeChild(R);continue}}n={parentIndex:y,parentInfo:r};this._parseTemplateNode(R,f,n)&&(n.infoIndex=f.nodeInfoList.push(n)-1);R.parentNode&&y++}};
l._parseTemplateNestedTemplate=function(V,f,r){f=this._parseTemplate(V,f);(f.content=V.content.ownerDocument.createDocumentFragment()).appendChild(V.content);r.templateInfo=f;return!0};
l._parseTemplateNodeAttributes=function(V,f,r){for(var R=!1,y=Array.from(V.attributes),P=y.length-1,n;n=y[P];P--)R=this._parseTemplateNodeAttribute(V,f,r,n.name,n.value)||R;return R};
l._parseTemplateNodeAttribute=function(V,f,r,R,y){return R.slice(0,3)==="on-"?(V.removeAttribute(R),r.events=r.events||[],r.events.push({name:R.slice(3),value:y}),!0):R==="id"?(r.id=y,!0):!1};
l._contentForTemplate=function(V){var f=V._templateInfo;return f&&f.content||V.content};
l.prototype._stampTemplate=function(V,f){V&&!V.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(V);f=f||this.constructor._parseTemplate(V);var r=f.nodeInfoList;V=document.importNode(f.content||V.content,!0);V.__noInsertionPoint=!f.hasInsertionPoint;var R=V.nodeList=Array(r.length);V.$={};for(var y=0,P=r.length,n=void 0;y<P&&(n=r[y]);y++){var B=R[y]=tl4(V,n);n.id&&(V.$[n.id]=B);var d=B,J=n,D=f;J.templateInfo&&(d._templateInfo=J.templateInfo,d._parentTemplateInfo=
D);if(n.events&&n.events.length)for(d=0,J=n.events,D=void 0;d<J.length&&(D=J[d]);d++)this._addMethodEventListenerToNode(B,D.name,D.value,this)}return V};
l.prototype._addMethodEventListenerToNode=function(V,f,r,R){r=smF(R||V,r);this._addEventListenerToNode(V,f,r);return r};
l.prototype._addEventListenerToNode=function(V,f,r){V.addEventListener(f,r)};
l.prototype._removeEventListenerFromNode=function(V,f,r){V.removeEventListener(f,r)};
return l});var kB=0,FL=[],xd9={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},euc=/[A-Z]/,qKM=function(W,l,V,f,r){var R=r?d6(W):W;if(l=l[R])for(R=0;R<l.length;R++){var y=l[R];if(y.info.lastRun!==kB&&(!r||C4z(W,y.trigger))){y.info.lastRun=kB;y=y.info;for(var P=V,n=f,B=0,d=P.length-1,J=-1;B<=d;){var D=B+d>>1,u=n.get(P[D].methodInfo)-n.get(y.methodInfo);if(u<0)B=D+1;else if(u>0)d=D-1;else{J=D;break}}J<
0&&(J=d+1);P.splice(J,0,y)}}},p06=[],huM=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"),vw=uZ(function(W){var l=YKv(Z0M(W));
W=function(){var V=l.call(this)||this;V.__isPropertyEffectsClient=!0;return V};
_.v(W,l);W.prototype._initializeProperties=function(){l.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};
W.prototype._registerHost=function(){if(kD.length){var V=kD[kD.length-1];V._enqueueClient(this);this.__dataHost=V}};
W.prototype._initializeProtoProperties=function(V){this.__data=Object.create(V);this.__dataPending=Object.create(V);this.__dataOld={}};
W.prototype._initializeInstanceProperties=function(V){var f=this.__readOnly,r;for(r in V)f&&f[r]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[r]=this.__dataPending[r]=V[r])};
W.prototype._addPropertyEffect=function(V,f,r){this._createPropertyAccessor(V,f=="__readOnly");var R=nPv(this,f,!0)[V];R||(R=this[f][V]=[]);R.push(r)};
W.prototype._removePropertyEffect=function(V,f,r){V=nPv(this,f,!0)[V];r=V.indexOf(r);r>=0&&V.splice(r,1)};
W.prototype._hasPropertyEffect=function(V,f){f=this[f];return!(!f||!f[V])};
W.prototype._hasReadOnlyEffect=function(V){return this._hasPropertyEffect(V,"__readOnly")};
W.prototype._hasNotifyEffect=function(V){return this._hasPropertyEffect(V,"__notifyEffects")};
W.prototype._hasReflectEffect=function(V){return this._hasPropertyEffect(V,"__reflectEffects")};
W.prototype._hasComputedEffect=function(V){return this._hasPropertyEffect(V,"__computeEffects")};
W.prototype._setPendingPropertyOrPath=function(V,f,r,R){if(R||d6(Array.isArray(V)?V[0]:V)!==V){if(!R&&(R=uN(this,V),V=P4J(this,V,f),!V||!l.prototype._shouldPropertyChange.call(this,V,f,R)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(V,f,r)){if(r=this.__dataLinkedPaths)for(var y in r)R=r[y],JH(y,V)?(R=D5(y,R,V),this._setPendingPropertyOrPath(R,f,!0,!0)):JH(R,V)&&(R=D5(R,y,V),this._setPendingPropertyOrPath(R,f,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[V])return this._setPendingProperty(V,
f,r);this[V]=f}return!1};
W.prototype._setUnmanagedPropertyToNode=function(V,f,r){if(r!==V[f]||typeof r=="object")f==="className"&&(V=(0,_.HS)(V)),V[f]=r};
W.prototype._setPendingProperty=function(V,f,r){var R=this.__dataHasPaths&&BS(V);if(this._shouldPropertyChange(V,f,(R?this.__dataTemp:this.__data)[V])){this.__dataPending||(this.__dataPending={},this.__dataOld={});V in this.__dataOld||(this.__dataOld[V]=this.__data[V]);R?this.__dataTemp[V]=f:this.__data[V]=f;this.__dataPending[V]=f;if(R||this.__notifyEffects&&this.__notifyEffects[V])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[V]=r;return!0}return!1};
W.prototype._setProperty=function(V,f){this._setPendingProperty(V,f,!0)&&this._invalidateProperties()};
W.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
W.prototype._enqueueClient=function(V){this.__dataPendingClients=this.__dataPendingClients||[];V!==this&&this.__dataPendingClients.push(V)};
W.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
W.prototype.__enableOrFlushClients=function(){var V=this.__dataPendingClients;if(V){this.__dataPendingClients=null;for(var f=0;f<V.length;f++){var r=V[f];r.__dataEnabled?r.__dataPending&&r._flushProperties():r._enableProperties()}}};
W.prototype._readyClients=function(){this.__enableOrFlushClients()};
W.prototype.setProperties=function(V,f){for(var r in V)!f&&this.__readOnly&&this.__readOnly[r]||this._setPendingPropertyOrPath(r,V[r],!0);this._invalidateProperties()};
W.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
W.prototype._propertiesChanged=function(V,f,r){V=this.__dataHasPaths;this.__dataHasPaths=!1;var R;if(R=this.__computeEffects)if(H0Z){kB++;var y=UP8(this),P=[],n;for(n in f)qKM(n,R,P,y,V);for(;n=P.shift();)kkz(this,"",f,r,n)&&qKM(n.methodInfo,R,P,y,V);Object.assign(r,this.__dataOld);Object.assign(f,this.__dataPending);this.__dataPending=null}else for(y=f;vS(this,R,y,r,V);)Object.assign(r,this.__dataOld),Object.assign(f,this.__dataPending),y=this.__dataPending,this.__dataPending=null;R=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(f,r,V);this._flushClients();vS(this,this.__reflectEffects,f,r,V);vS(this,this.__observeEffects,f,r,V);if(R){y=this.__notifyEffects;P=kB++;for(var B in R)if(R[B]){if(n=y){var d=y;n=P;var J=B,D=f,u=r,H=V,p=!1,X=H?d6(J):J;if(d=d[X]){X=0;for(var w=d.length,O=void 0;X<w&&(O=d[X]);X++)O.info&&O.info.lastRun===n||H&&!C4z(J,O.trigger)||(O.info&&(O.info.lastRun=n),O.fn(this,J,D,u,O.info,H,void 0),p=!0)}n=p}if(n)var S=!0;else{if(n=V)n=B,J=f,D=d6(n),D!==
n?(D=cS(D)+"-changed",Bl4(this,D,J[n],n),n=!0):n=!1;n&&(S=!0)}}var N;S&&(N=this.__dataHost)&&N._invalidateProperties&&N._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
W.prototype._propagatePropertyChanges=function(V,f,r){this.__propagateEffects&&vS(this,this.__propagateEffects,V,f,r);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,V,f,r)};
W.prototype._runEffectsForTemplate=function(V,f,r,R){var y=this,P=function(n,B){vS(y,V.propertyEffects,n,r,B,V.nodeList);for(var d=V.firstChild;d;d=d.nextSibling)y._runEffectsForTemplate(d,n,r,B)};
V.runEffects?V.runEffects(P,f,R):P(f,R)};
W.prototype.linkPaths=function(V,f){V=Uu(V);f=Uu(f);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[V]=f};
W.prototype.unlinkPaths=function(V){V=Uu(V);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[V]};
W.prototype.notifySplices=function(V,f){var r={path:""};V=uN(this,V,r);itF(this,V,r.path,f)};
W.prototype.get=function(V,f){return uN(f||this,V)};
W.prototype.set=function(V,f,r){r?P4J(r,V,f):this.__readOnly&&this.__readOnly[V]||this._setPendingPropertyOrPath(V,f,!0)&&this._invalidateProperties()};
W.prototype.push=function(V){var f=_.xk.apply(1,arguments),r={path:""},R=uN(this,V,r),y=R.length,P=R.push.apply(R,_.QK(f));f.length&&bN(this,R,r.path,y,f.length,[]);return P};
W.prototype.pop=function(V){var f={path:""};V=uN(this,V,f);var r=!!V.length,R=V.pop();r&&bN(this,V,f.path,V.length,0,[R]);return R};
W.prototype.splice=function(V,f,r){var R=_.xk.apply(3,arguments),y={path:""},P=uN(this,V,y);f<0?f=P.length-Math.floor(-f):f&&(f=Math.floor(f));var n=arguments.length===2?P.splice(f):P.splice.apply(P,[f,r].concat(_.QK(R)));(R.length||n.length)&&bN(this,P,y.path,f,R.length,n);return n};
W.prototype.shift=function(V){var f={path:""};V=uN(this,V,f);var r=!!V.length,R=V.shift();r&&bN(this,V,f.path,0,0,[R]);return R};
W.prototype.unshift=function(V){var f=_.xk.apply(1,arguments),r={path:""},R=uN(this,V,r),y=R.unshift.apply(R,_.QK(f));f.length&&bN(this,R,r.path,0,f.length,[]);return y};
W.prototype.notifyPath=function(V,f){if(arguments.length==1){var r={path:""};f=uN(this,V,r);r=r.path}else r=Array.isArray(V)?Uu(V):V;this._setPendingPropertyOrPath(r,f,!0,!0)&&this._invalidateProperties()};
W.prototype._createReadOnlyProperty=function(V,f){this._addPropertyEffect(V,"__readOnly");f&&(this["_set"+(V[0].toUpperCase()+V.substring(1))]=function(r){this._setProperty(V,r)})};
W.prototype._createPropertyObserver=function(V,f,r){var R={property:V,method:f,dynamicFn:!!r};this._addPropertyEffect(V,"__observeEffects",{fn:cm6,info:R,trigger:{name:V}});r&&this._addPropertyEffect(f,"__observeEffects",{fn:cm6,info:R,trigger:{name:f}})};
W.prototype._createMethodObserver=function(V,f){var r=jmn(V);if(!r)throw Error("Cd`"+V);Gkg(this,r,"__observeEffects",uAq,null,f)};
W.prototype._createNotifyingProperty=function(V){this._addPropertyEffect(V,"__notifyEffects",{fn:dPF,info:{eventName:cS(V)+"-changed",property:V}})};
W.prototype._createReflectedProperty=function(V){var f=this.constructor.attributeNameForProperty(V);f[0]==="-"?console.warn("Property "+V+" cannot be reflected to attribute "+f+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(V,"__reflectEffects",{fn:JmF,info:{attrName:f}})};
W.prototype._createComputedProperty=function(V,f,r){var R=jmn(f);if(!R)throw Error("Dd`"+f);f=Gkg(this,R,"__computeEffects",kkz,V,r);nPv(this,"__computeInfo")[V]=f};
W.prototype._marshalArgs=function(V,f,r){for(var R=this.__data,y=[],P=0,n=V.length;P<n;P++){var B=V[P],d=B.name,J=B.structured,D=B.wildcard,u=B.value;B.literal||(D?(B=JH(d,f),J=Img(R,r,B?f:d),u={path:B?f:d,value:J,base:B?uN(R,d):J}):u=J?Img(R,r,d):R[d]);if(Gi&&!this._overrideLegacyUndefined&&u===void 0&&V.length>1)return FL;y[P]=u}return y};
W.addPropertyEffect=function(V,f,r){this.prototype._addPropertyEffect(V,f,r)};
W.createPropertyObserver=function(V,f,r){this.prototype._createPropertyObserver(V,f,r)};
W.createMethodObserver=function(V,f){this.prototype._createMethodObserver(V,f)};
W.createNotifyingProperty=function(V){this.prototype._createNotifyingProperty(V)};
W.createReadOnlyProperty=function(V,f){this.prototype._createReadOnlyProperty(V,f)};
W.createReflectedProperty=function(V){this.prototype._createReflectedProperty(V)};
W.createComputedProperty=function(V,f,r){this.prototype._createComputedProperty(V,f,r)};
W.bindTemplate=function(V){return this.prototype._bindTemplate(V)};
W.prototype._bindTemplate=function(V,f){var r=this.constructor._parseTemplate(V),R=this.__preBoundTemplateInfo==r;if(!R)for(var y in r.propertyEffects)this._createPropertyAccessor(y);f?(r=Object.create(r),r.wasPreBound=R,this.__templateInfo?(V=V._parentTemplateInfo||this.__templateInfo,f=V.lastChild,r.parent=V,V.lastChild=r,(r.previousSibling=f)?f.nextSibling=r:V.firstChild=r):this.__templateInfo=r):this.__preBoundTemplateInfo=r;return r};
W._addTemplatePropertyEffect=function(V,f,r){(V.hostProps=V.hostProps||{})[f]=!0;V=V.propertyEffects=V.propertyEffects||{};(V[f]=V[f]||[]).push(r)};
W.prototype._stampTemplate=function(V,f){f=f||this._bindTemplate(V,!0);kD.push(this);V=l.prototype._stampTemplate.call(this,V,f);kD.pop();f.nodeList=V.nodeList;if(!f.wasPreBound)for(var r=f.childNodes=[],R=V.firstChild;R;R=R.nextSibling)r.push(R);V.templateInfo=f;r=f.nodeList;R=f.nodeInfoList;if(R.length)for(var y=0;y<R.length;y++){var P=r[y],n=R[y].bindings;if(n)for(var B=0;B<n.length;B++){var d=n[B],J=P,D=d;if(D.isCompound){for(var u=J.__dataCompoundStorage||(J.__dataCompoundStorage={}),H=D.parts,
p=Array(H.length),X=0;X<H.length;X++)p[X]=H[X].literal;H=D.target;u[H]=p;D.literal&&D.kind=="property"&&(H==="className"&&(J=(0,_.HS)(J)),J[H]=D.literal)}FHz(P,this,d)}P.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(f,this.__data,null,!1),this._flushClients());return V};
W.prototype._removeBoundDom=function(V){V=V.templateInfo;var f=V.previousSibling,r=V.nextSibling,R=V.parent;f?f.nextSibling=r:R&&(R.firstChild=r);r?r.previousSibling=f:R&&(R.lastChild=f);V.nextSibling=V.previousSibling=null;V=V.childNodes;for(f=0;f<V.length;f++)r=V[f],(0,_.HS)((0,_.HS)(r).parentNode).removeChild(r)};
W._parseTemplateNode=function(V,f,r){var R=l._parseTemplateNode.call(this,V,f,r);if(V.nodeType===Node.TEXT_NODE){var y=this._parseBindings(V.textContent,f);y&&(V.textContent=btj(y)||" ",KHj(this,f,r,"text","textContent",y),R=!0)}return R};
W._parseTemplateNodeAttribute=function(V,f,r,R,y){var P=this._parseBindings(y,f);if(P){y=R;var n="property";euc.test(R)?n="attribute":R[R.length-1]=="$"&&(R=R.slice(0,-1),n="attribute");var B=btj(P);B&&n=="attribute"&&(R=="class"&&V.hasAttribute("class")&&(B+=" "+V.getAttribute(R)),V.setAttribute(R,B));n=="attribute"&&y=="disable-upgrade$"&&V.setAttribute(R,"");V.localName==="input"&&y==="value"&&V.setAttribute(y,"");V.removeAttribute(y);n==="property"&&(R=Cj(R));KHj(this,f,r,n,R,P,B);return!0}return l._parseTemplateNodeAttribute.call(this,
V,f,r,R,y)};
W._parseTemplateNestedTemplate=function(V,f,r){var R=l._parseTemplateNestedTemplate.call(this,V,f,r),y=V.parentNode,P=r.templateInfo,n=y.localName==="dom-if",B=y.localName==="dom-repeat";Bw&&(n||B)&&(y.removeChild(V),r=r.parentInfo,r.templateInfo=P,r.noted=!0,R=!1);V=P.hostProps;if(dP&&n)V&&(f.hostProps=Object.assign(f.hostProps||{},V),Bw||(r.parentInfo.noted=!0));else for(var d in V)KHj(this,f,r,"property","_host_"+d,[{mode:"{",source:d,dependencies:[d],hostProp:!0}]);return R};
W._parseBindings=function(V,f){for(var r=[],R=0,y;(y=huM.exec(V))!==null;){y.index>R&&r.push({literal:V.slice(R,y.index)});R=y[1][0];var P=!!y[2];y=y[3].trim();var n=!1,B="",d=-1;R=="{"&&(d=y.indexOf("::"))>0&&(B=y.substring(d+2),y=y.substring(0,d),n=!0);d=jmn(y);var J=[];if(d){var D=d,u=D.args;D=D.methodName;for(var H=0;H<u.length;H++){var p=u[H];p.literal||J.push(p)}if((u=f.dynamicFns)&&u[D]||d.static)J.push(D),d.dynamicFn=!0}else J.push(y);r.push({source:y,mode:R,negate:P,customEvent:n,signature:d,
dependencies:J,event:B});R=huM.lastIndex}R&&R<V.length&&(V=V.substring(R))&&r.push({literal:V});return r.length?r:null};
W._evaluateBinding=function(V,f,r,R,y,P){V=f.signature?uAq(V,r,R,y,f.signature):r!=f.source?uN(V,f.source):P&&BS(r)?uN(V,r):V.__data[r];f.negate&&(V=!V);return V};
_.rc.Object.defineProperties(W.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return xd9}}});
return W}),kD=[];var SKX=window.ShadyCSS&&window.ShadyCSS.cssBuild,Hw=uZ(function(W){function l(f,r,R,y){if(!SKX){for(var P=r.content.querySelectorAll("style"),n=w06(r),B=Amq(R),d=r.content.firstElementChild,J=0;J<B.length;J++){var D=B[J];D.textContent=f._processStyleText(D.textContent,y);r.content.insertBefore(D,d)}for(d=B=0;d<n.length;d++)J=n[d],D=P[B],D!==J?(J=J.cloneNode(!0),D.parentNode.insertBefore(J,D)):B++,J.textContent=f._processStyleText(J.textContent,y)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(r,
R);if(FLL&&SKX&&UdX&&(r=r.content.querySelectorAll("style"))){var u="";Array.from(r).forEach(function(H){u+=H.textContent;H.parentNode.removeChild(H)});
f._styleSheet=new CSSStyleSheet;f._styleSheet.replaceSync(u)}}
var V=XyL(vw(W));W=function(){return V.call(this)||this};
_.v(W,V);W._finalizeClass=function(){V._finalizeClass.call(this);var f;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(f=this.__ownObservers)&&this.createObservers(f,this._properties);this._prepareTemplate()};
W._prepareTemplate=function(){var f=this.template;f&&(typeof f==="string"?(console.error("template getter must return HTMLTemplateElement"),f=null):zi||(f=f.cloneNode(!0)));this.prototype._template=f};
W.createProperties=function(f){for(var r in f){var R=this.prototype,y=r,P=f[r],n=f;P.computed&&(P.readOnly=!0);P.computed&&(R._hasReadOnlyEffect(y)?console.warn("Cannot redefine computed property '"+y+"'."):R._createComputedProperty(y,P.computed,n));P.readOnly&&!R._hasReadOnlyEffect(y)?R._createReadOnlyProperty(y,!P.computed):P.readOnly===!1&&R._hasReadOnlyEffect(y)&&console.warn("Cannot make readOnly property '"+y+"' non-readOnly.");P.reflectToAttribute&&!R._hasReflectEffect(y)?R._createReflectedProperty(y):
P.reflectToAttribute===!1&&R._hasReflectEffect(y)&&console.warn("Cannot make reflected property '"+y+"' non-reflected.");P.notify&&!R._hasNotifyEffect(y)?R._createNotifyingProperty(y):P.notify===!1&&R._hasNotifyEffect(y)&&console.warn("Cannot make notify property '"+y+"' non-notify.");P.observer&&R._createPropertyObserver(y,P.observer,n[P.observer]);R._addPropertyToAttributeMap(y)}};
W.createObservers=function(f,r){for(var R=this.prototype,y=0;y<f.length;y++)R._createMethodObserver(f[y],r)};
W.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);V.prototype._initializeProperties.call(this);this.rootPath=uy1;this.importPath=this.constructor.importPath;var f=this.constructor;if(!f.hasOwnProperty("__propertyDefaults")){f.__propertyDefaults=null;var r=f._properties,R;for(R in r){var y=r[R];"value"in y&&(f.__propertyDefaults=f.__propertyDefaults||{},f.__propertyDefaults[R]=y)}}if(f=f.__propertyDefaults)for(var P in f)r=f[P],
this._canApplyPropertyDefault(P)&&(r=typeof r.value=="function"?r.value.call(this):r.value,this._hasAccessor(P)?this._setPendingProperty(P,r,!0):this[P]=r)};
W.prototype._canApplyPropertyDefault=function(f){return!this.hasOwnProperty(f)};
W._processStyleText=function(f,r){return h2j(f,r)};
W._finalizeTemplate=function(f){var r=this.prototype._template;if(r&&!r.__polymerFinalized){r.__polymerFinalized=!0;var R=this.importPath;R=R?_.PS(R):"";l(this,r,f,R);this.prototype._bindTemplate(r)}};
W.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);V.prototype.connectedCallback.call(this)};
W.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);V.prototype.ready.call(this)};
W.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));V.prototype._readyClients.call(this)};
W.prototype._attachDom=function(f){var r=(0,_.HS)(this);if(r.attachShadow)return f?(r.shadowRoot||(r.attachShadow({mode:"open",shadyUpgradeFragment:f}),r.shadowRoot.appendChild(f),this.constructor._styleSheet&&(r.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),vHa&&window.ShadyDOM&&window.ShadyDOM.flushInitial(r.shadowRoot),r.shadowRoot):null;throw Error("Fd");};
W.prototype.updateStyles=function(f){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,f)};
W.prototype.resolveUrl=function(f,r){!r&&this.importPath&&(r=_.PS(this.importPath));return _.PS(f,r)};
W._parseTemplateContent=function(f,r,R){r.dynamicFns=r.dynamicFns||this._properties;return V._parseTemplateContent.call(this,f,r,R)};
W._addTemplatePropertyEffect=function(f,r,R){!en||r in this._properties||R.info.part.signature&&R.info.part.signature.static||R.info.part.hostProp||f.nestedTemplate||console.warn("Property '"+r+"' used in template but not declared in 'properties'; attribute will not be observed.");return V._addTemplatePropertyEffect.call(this,f,r,R)};
_.rc.Object.defineProperties(W,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var f=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof f==="function"&&(f=f());if(f===void 0){if(f=this.hasOwnProperty("is")){f=this.is;var r=null;if(f&&(!qS||kTa)&&(r=pj.import(f,"template"),qS&&!r))throw Error("Ed`"+f);f=r}f=f||Object.getPrototypeOf(this.prototype).constructor.template}this._template=f}return this._template},
set:function(f){this._template=f}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var f=this.importMeta;f?this._importPath=Sgz(f.url):this._importPath=(f=pj.import(this.is))&&f.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return W});var EH9=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(W){return W}}),Nln=function(W,l){$dc(W,l);
this.value=l.reduce(function(V,f,r){return V+YHg(f)+W[r+1]},W[0]).toString()},$dc;
Nln.prototype.toString=function(){return this.value};
_.Wgc=function(W){var l=_.xk.apply(1,arguments);$dc(W,l);var V=document.createElement("template");l=l.reduce(function(f,r,R){if(r instanceof HTMLTemplateElement)r=r.innerHTML;else if(r instanceof Nln)r=YHg(r);else throw Error("Hd`"+r);return f+r+W[R+1]},W[0]);
EH9&&(l=EH9.createHTML(l));V.innerHTML=l;return V};
$dc=function(W,l){if(!Array.isArray(W)||!Array.isArray(W.raw)||l.length!==W.length-1)throw new TypeError("Id");};var Kz=Hw(HTMLElement);var lJc=uZ(function(W){var l=Hw(W);W=function(){var V=l.call(this)||this;V.__lastItems=null;V.__lastMulti=null;V.__selectedMap=null;return V};
_.v(W,l);W.prototype.__updateSelection=function(V,f){var r=f.path;r=="items"?(f=f.base||[],r=this.__lastItems,V!==this.__lastMulti&&this.clearSelection(),r&&(r=zD8(f,r),this.__applySplices(r)),this.__lastItems=f,this.__lastMulti=V):f.path=="items.splices"?this.__applySplices(f.value.indexSplices):(V=r.slice(6),f=parseInt(V,10),V.indexOf(".")<0&&V==f&&this.__deselectChangedIdx(f))};
W.prototype.__applySplices=function(V){for(var f=this,r=this.__selectedMap,R={},y=0;y<V.length;R={s$jscomp$109:void 0},y++){R.s$jscomp$109=V[y];r.forEach(function(d){return function(J,D){J<d.s$jscomp$109.index||(J>=d.s$jscomp$109.index+d.s$jscomp$109.removed.length?r.set(D,J+d.s$jscomp$109.addedCount-d.s$jscomp$109.removed.length):r.set(D,-1))}}(R));
for(var P=0;P<R.s$jscomp$109.addedCount;P++){var n=R.s$jscomp$109.index+P;r.has(this.items[n])&&r.set(this.items[n],n)}}this.__updateLinks();var B=0;r.forEach(function(d,J){d<0?(f.multi?f.splice("selected",B,1):f.selected=f.selectedItem=null,r.delete(J)):B++})};
W.prototype.__updateLinks=function(){var V=this;this.__dataLinkedPaths={};if(this.multi){var f=0;this.__selectedMap.forEach(function(r){r>=0&&V.linkPaths("items."+r,"selected."+f++)})}else this.__selectedMap.forEach(function(r){V.linkPaths("selected","items."+r);
V.linkPaths("selectedItem","items."+r)})};
W.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
W.prototype.isSelected=function(V){return this.__selectedMap.has(V)};
W.prototype.isIndexSelected=function(V){return this.isSelected(this.items[V])};
W.prototype.__deselectChangedIdx=function(V){var f=this,r=this.__selectedIndexForItemIndex(V);if(r>=0){var R=0;this.__selectedMap.forEach(function(y,P){r==R++&&f.deselect(P)})}};
W.prototype.__selectedIndexForItemIndex=function(V){if(V=this.__dataLinkedPaths["items."+V])return parseInt(V.slice(9),10)};
W.prototype.deselect=function(V){var f=this.__selectedMap.get(V);if(f>=0){this.__selectedMap.delete(V);var r;this.multi&&(r=this.__selectedIndexForItemIndex(f));this.__updateLinks();this.multi?this.splice("selected",r,1):this.selected=this.selectedItem=null}};
W.prototype.deselectIndex=function(V){this.deselect(this.items[V])};
W.prototype.select=function(V){this.selectIndex(this.items.indexOf(V))};
W.prototype.selectIndex=function(V){var f=this.items[V];this.isSelected(f)?this.toggle&&this.deselectIndex(V):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(f,V),this.__updateLinks(),this.multi?this.push("selected",f):this.selected=this.selectedItem=f)};
_.rc.Object.defineProperties(W,{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 W}),Vrk=lJc(Kz),Fb=function(){return Vrk.apply(this,arguments)||this};
_.v(Fb,Vrk);_.rc.Object.defineProperties(Fb,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Fb.is,Fb);var fJL=window.Polymer;window.Polymer=function(W){return window.Polymer._polymerFn(W)};
fJL&&Object.assign(Polymer,fJL);Polymer._polymerFn=function(){throw Error("Jd");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:h2j,resolveUrl:_.PS,pathFromUrl:Sgz};Polymer.DomModule=pj;Polymer.Async={timeOut:_.Us,animationFrame:_.xJ,idlePeriod:jsk,microTask:Ou};Polymer.dedupingMixin=uZ;Polymer.wrap=_.HS;Polymer.PropertiesChanged=i0a;Polymer.telemetry={instanceCount:mdM,incrementInstanceCount:function(){mdM++},
registrations:lmv,register:Vlv,dumpRegistrations:function(){lmv.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=XyL;Polymer.CaseMap={dashToCamelCase:Cj,camelToDashCase:cS};Polymer.PropertyAccessors=Z0M;Polymer.TemplateStamp=YKv;Polymer.Path={isPath:BS,root:d6,isAncestor:LHS,isDescendant:JH,translate:D5,matches:ymg,normalize:Uu,split:gPF,get:uN,set:P4J,isDeep:BS};Polymer.Settings={useShadow:NS,useNativeCSSProperties:cWv,useNativeCustomElements:BJe,get rootPath(){return uy1},setRootPath:function(W){uy1=W},
get sanitizeDOMValue(){return Kj},setSanitizeDOMValue:function(W){Kj=W},
get passiveTouchGestures(){return Rpv},setPassiveTouchGestures:function(W){Rpv=W},
get strictTemplatePolicy(){return qS},setStrictTemplatePolicy:function(W){qS=W},
get allowTemplateFromDomModule(){return kTa},setAllowTemplateFromDomModule:function(W){kTa=W},
get legacyOptimizations(){return zi},setLegacyOptimizations:function(W){zi=W},
get syncInitialRender(){return vHa},setSyncInitialRender:function(W){vHa=W},
get legacyUndefined(){return Gi},setLegacyUndefined:function(W){Gi=W},
get legacyWarnings(){return en},setLegacyWarnings:function(W){en=W},
get orderedComputed(){return H0Z},setOrderedComputed:function(W){H0Z=W},
get fastDomIf(){return dP},setFastDomIf:function(W){dP=W},
get removeNestedTemplates(){return Bw},setRemoveNestedTemplates:function(W){Bw=W},
get suppressTemplateNotifications(){return Jk},setSuppressTemplateNotifications:Jk};Polymer.rootPath!==void 0&&(uy1=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(Kj=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(Rpv=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(qS=Polymer.strictTemplatePolicy);kTa=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(zi=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(vHa=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(Gi=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(en=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(H0Z=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(dP=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(Bw=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Jk=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return Kj},
set:function(W){Kj=W}});Polymer.PropertyEffects=vw;Polymer.StyleGather={stylesFromModules:Tlx,stylesFromModule:X0q,stylesFromTemplate:w06,stylesFromModuleImports:Amq,cssFromModules:Mln,cssFromModule:QmJ,cssFromTemplate:Zt8,cssFromModuleImports:function(W){return(W=pj.import(W))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W):""}};Polymer.ElementMixin=Hw;Polymer.updateStyles=function(W){window.ShadyCSS&&window.ShadyCSS.styleDocument(W)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:zD8};Polymer.html=_.Wgc;Polymer.htmlLiteral=function(W){return new Nln(W,_.xk.apply(1,arguments))};Polymer.Element=Kz;Polymer.ArraySelectorMixin=lJc;Polymer.ArraySelector=Fb;var r5B=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,RsB=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,FJz=/@media\s(.*)/;var hD4=null,qH4=window.HTMLImports&&window.HTMLImports.whenReady||null,SHg;var trX=null,GX=null,bZ=function(){this.customStyles=[];this.enqueued=!1;EPY(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},sDZ=function(W){!W.enqueued&&GX&&(W.enqueued=!0,EPY(GX))};
bZ.prototype.addCustomStyle=function(W){W.__seenByShadyCSS||(W.__seenByShadyCSS=!0,this.customStyles.push(W),sDZ(this))};
bZ.prototype.getStyleForCustomStyle=function(W){if(W.__shadyCSSCachedStyle)return W.__shadyCSSCachedStyle;var l;W.getStyle?l=W.getStyle():l=W;return l};
bZ.prototype.processStyles=function(){for(var W=this.customStyles,l=0;l<W.length;l++){var V=W[l];if(!V.__shadyCSSCachedStyle){var f=this.getStyleForCustomStyle(V);f&&(f=f.__appliedElement||f,trX&&trX(f),V.__shadyCSSCachedStyle=f)}}return W};
bZ.prototype.addCustomStyle=bZ.prototype.addCustomStyle;bZ.prototype.getStyleForCustomStyle=bZ.prototype.getStyleForCustomStyle;bZ.prototype.processStyles=bZ.prototype.processStyles;Object.defineProperties(bZ.prototype,{transformCallback:{get:function(){return trX},
set:function(W){trX=W}},
validateCallback:{get:function(){return GX},
set:function(W){var l=!1;GX||(l=!0);GX=W;l&&sDZ(this)}}});var WZJ=!(window.ShadyDOM&&window.ShadyDOM.inUse),$PS,fX;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(fX=window.ShadyCSS.cssBuild);var LgM=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?$PS=window.ShadyCSS.nativeCss:window.ShadyCSS?(lbj(window.ShadyCSS),window.ShadyCSS=void 0):lbj(window.WebComponents&&window.WebComponents.flags);var vRz=$PS;var y5e=new bZ;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(W,l){y5e.processStyles();xPz(W,l)},
styleElement:function(){y5e.processStyles()},
styleDocument:function(W){y5e.processStyles();xPz(document.body,W)},
getComputedStyleValue:function(W,l){return eD6(W,l)},
flushCustomStyles:function(){},
nativeCss:vRz,nativeShadow:WZJ,cssBuild:fX,disableRuntime:LgM});window.ShadyCSS.CustomStyleInterface=y5e;var gV9=window.ShadyCSS.CustomStyleInterface,pz=function(){var W=HTMLElement.call(this)||this;W._style=null;gV9.addCustomStyle(W);return W};
_.v(pz,HTMLElement);pz.prototype.getStyle=function(){if(this._style)return this._style;var W=this.querySelector("style");if(!W)return null;this._style=W;var l=W.getAttribute("include");l&&(W.removeAttribute("include"),W.textContent=Mln(l)+W.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
pz.prototype.getStyle=pz.prototype.getStyle;window.customElements.define("custom-style",pz);Polymer.CustomStyle=pz;var o3=function(){this._timer=this._callback=this._asyncModule=null},jN,nVL;
o3.prototype.setConfig=function(W,l){var V=this;this._asyncModule=W;this._callback=l;this._timer=this._asyncModule.run(function(){V._timer=null;jN.delete(V);V._callback()})};
o3.prototype.cancel=function(){this.isActive()&&(P0e(this),jN.delete(this))};
var P0e=function(W){W.isActive()&&(W._asyncModule.cancel(W._timer),W._timer=null)};
o3.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
o3.prototype.isActive=function(){return this._timer!=null};
_.I3=function(W,l,V){W instanceof o3?P0e(W):W=new o3;W.setConfig(l,V);return W};
jN=new Set;_.iZ=function(W){jN.add(W)};
nVL=function(){var W=!!jN.size;jN.forEach(function(l){try{l.flush()}catch(V){setTimeout(function(){throw V;})}});
return W};var fbz=typeof document.head.style.touchAction==="string",VPv=["mousedown","mousemove","mouseup","click"],ntz=[0,1,4,2],C0B;try{C0B=(new MouseEvent("test",{buttons:1})).buttons===1}catch(W){C0B=!1}var PKz=C0B,rjU=!1;(function(){try{var W=Object.defineProperty({},"passive",{get:function(){rjU=!0}});
window.addEventListener("test",null,W);window.removeEventListener("test",null,W)}catch(l){}})();
var sQJ=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),LZ6=[],c5k={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},KZz={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},yjU=function(W){var l=W.sourceCapabilities;if(!l||l.firesTouchEvents)if(W.__polymerGesturesHandled={skip:!0},W.type==="click"){l=!1;for(var V=dGq(W),f=0;f<V.length;f++){if(V[f].nodeType===Node.ELEMENT_NODE)if(V[f].localName==="label")LZ6.push(V[f]);
else if(c5k[V[f].localName]){var r=V[f];var R=Array.prototype.slice.call(r.labels||[]);if(!R.length){R=[];try{var y=r.getRootNode();if(r.id){var P=y.querySelectorAll("label[for = '"+r.id+"']");for(r=0;r<P.length;r++)R.push(P[r])}}catch(n){}}for(r=0;r<R.length;r++)l=l||LZ6.indexOf(R[r])>-1}if(V[f]===BEa)return}l||(W.preventDefault(),W.stopPropagation())}},BEa=null,m3=null,DGj=0,UGY=0,Jjz=-1,ueY=!1;
document.addEventListener("touchend",function(W){m3||gtU(!0);BEa=dGq(W)[0];m3=_.I3(m3,_.Us.after(2500),function(){gtU();m3=BEa=null})},rjU?{passive:!0}:!1);
var dGq=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(W){return W.composedPath&&W.composedPath()||[]},Ti={},me=[];
kyv({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){iN(this.info)},
mousedown:function(W){if(I_(W)){var l=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),V=this;cjF(this.info,function(f){I_(f)||(a_("up",l,f),iN(V.info))},function(f){I_(f)&&a_("up",l,f);
iN(V.info)});
a_("down",l,W)}},
touchstart:function(W){a_("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),W.changedTouches[0],W)},
touchend:function(W){a_("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),W.changedTouches[0],W)}});
kyv({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(W){this.moves.length>2&&this.moves.shift();this.moves.push(W)},
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;iN(this.info)},
mousedown:function(W){if(I_(W)){var l=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),V=this,f=function(r){var R=r.clientX,y=r.clientY;vtY(V.info,R,y)&&(V.info.state=V.info.started?r.type==="mouseup"?"end":"track":"start",V.info.state==="start"&&XL("tap"),V.info.addMove({x:R,y:y}),I_(r)||(V.info.state="end",iN(V.info)),l&&H4q(V.info,l,r),V.info.started=!0)};
cjF(this.info,f,function(r){V.info.started&&f(r);iN(V.info)});
this.info.x=W.clientX;this.info.y=W.clientY}},
touchstart:function(W){W=W.changedTouches[0];this.info.x=W.clientX;this.info.y=W.clientY},
touchmove:function(W){var l=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);W=W.changedTouches[0];var V=W.clientX,f=W.clientY;vtY(this.info,V,f)&&(this.info.state==="start"&&XL("tap"),this.info.addMove({x:V,y:f}),H4q(this.info,l,W),this.info.state="track",this.info.started=!0)},
touchend:function(W){var l=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);W=W.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:W.clientX,y:W.clientY}),H4q(this.info,l,W))}});
kyv({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(W){I_(W)&&(this.info.x=W.clientX,this.info.y=W.clientY)},
click:function(W){I_(W)&&FZ4(this.info,W)},
touchstart:function(W){W=W.changedTouches[0];this.info.x=W.clientX;this.info.y=W.clientY},
touchend:function(W){FZ4(this.info,W.changedTouches[0],W)}});var d$k=uZ(function(W){var l=function(){return W.apply(this,arguments)||this};
_.v(l,W);l.prototype._addEventListenerToNode=function(V,f,r){w6(V,f,r)||W.prototype._addEventListenerToNode.call(this,V,f,r)};
l.prototype._removeEventListenerFromNode=function(V,f,r){MS(V,f,r)||W.prototype._removeEventListenerFromNode.call(this,V,f,r)};
return l});var Xb=uZ(function(W){var l=function(){return W.apply(this,arguments)||this};
_.v(l,W);l.prototype._shouldPropertyChange=function(V,f,r){return Gyq(this,V,f,r,!0)};
return l}),J5a=uZ(function(W){var l=function(){return W.apply(this,arguments)||this};
_.v(l,W);l.prototype._shouldPropertyChange=function(V,f,r){return Gyq(this,V,f,r,this.mutableData)};
_.rc.Object.defineProperties(l,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return l});
Xb._mutablePropertyChange=Gyq;var b4q=!1;var D$L=d$k(J5a(vw(HTMLElement))),TX=function(){var W=D$L.call(this)||this;if(qS)throw Error("Kd");W.root=null;W.$=null;W.__children=null;return W};
_.v(TX,D$L);_.t=TX.prototype;_.t.attributeChangedCallback=function(){this.mutableData=!0};
_.t.connectedCallback=function(){pFx()||(this.style.display="none");this.render()};
_.t.disconnectedCallback=function(){this.__removeChildren()};
_.t.__insertChildren=function(){(0,_.HS)((0,_.HS)(this).parentNode).insertBefore(this.root,this)};
_.t.__removeChildren=function(){if(this.__children)for(var W=0;W<this.__children.length;W++)this.root.appendChild(this.__children[W])};
_.t.render=function(){var W=this;if(!this.__children){var l=l||this.querySelector("template");if(!l){var V=new MutationObserver(function(){if(l=W.querySelector("template"))V.disconnect(),W.render();else throw Error("Ld");});
V.observe(this,{childList:!0});return}this.root=this._stampTemplate(l);this.$=this.root.$;this.__children=[];for(var f=this.root.firstChild;f;f=f.nextSibling)this.__children[this.__children.length]=f;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.rc.Object.defineProperties(TX,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",TX);Polymer.Debouncer=o3;Polymer.Gestures={gestures:Ti,recognizers:me,deepTargetFind:B5j,addListener:w6,removeListener:MS,register:kyv,setTouchAction:_.Z5,prevent:XL,resetMouseCanceller:function(){m3&&m3.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:w6,remove:MS};Polymer.GestureEventListeners=d$k;Polymer.MutableData=Xb;Polymer.OptionalMutableData=J5a;Polymer.DomBind=TX;_.wP=function(){do{var W=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var l=nVL()}while(W||l)};var otq=null;jQ6.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:jQ6,writable:!0}});var QQx=vw(jQ6),AjJ=Xb(QQx),U$L=vw(function(){}),YB=function(W){var l=U$L.call(this)||this;
l._configureProperties(W);l.root=l._stampTemplate(l.__dataHost);var V=[];l.children=V;for(var f=l.root.firstChild;f;f=f.nextSibling)V.push(f),f.__templatizeInstance=l;l.__templatizeOwner&&l.__templatizeOwner.__hideTemplateChildren__&&l._showHideChildren(!0);V=l.__templatizeOptions;(W&&V.instanceProps||!V.instanceProps)&&l._enableProperties();return l};
_.v(YB,U$L);_.t=YB.prototype;_.t._configureProperties=function(W){if(this.__templatizeOptions.forwardHostProp)for(var l in this.__hostProps)this._setPendingProperty(l,this.__dataHost["_host_"+l]);for(var V in W)this._setPendingProperty(V,W[V])};
_.t.forwardHostProp=function(W,l){this._setPendingPropertyOrPath(W,l,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.t._addEventListenerToNode=function(W,l,V){var f=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(W,l,function(R){R.model=f;V(R)});
else{var r=this.__dataHost.__dataHost;r&&r._addEventListenerToNode(W,l,V)}};
_.t._showHideChildren=function(W){i4v(W,this.children)};
_.t._setUnmanagedPropertyToNode=function(W,l,V){W.__hideTemplateChildren__&&W.nodeType==Node.TEXT_NODE&&l=="textContent"?W.__polymerTextContent__=V:U$L.prototype._setUnmanagedPropertyToNode.call(this,W,l,V)};
_.t.dispatchEvent=function(){return!0};
_.rc.Object.defineProperties(YB.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var W=this.__parentModel;if(!W){var l;W=this;do W=W.__dataHost.__dataHost;while((l=W.__templatizeOptions)&&!l.parentModel);this.__parentModel=W}return W}}});
var XFq=Xb(YB);var Ak=function(){var W=Kz.call(this)||this;W.__renderDebouncer=null;W._lastIf=!1;W.__hideTemplateChildren__=!1;return W};
_.v(Ak,Kz);_.t=Ak.prototype;_.t.__debounceRender=function(){var W=this;this.__renderDebouncer=_.I3(this.__renderDebouncer,Ou,function(){return W.__render()});
_.iZ(this.__renderDebouncer)};
_.t.disconnectedCallback=function(){Kz.prototype.disconnectedCallback.call(this);var W=(0,_.HS)(this).parentNode;W&&(W.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.HS)(W).host)||this.__teardownInstance()};
_.t.connectedCallback=function(){Kz.prototype.connectedCallback.call(this);pFx()||(this.style.display="none");this.if&&this.__debounceRender()};
_.t.__ensureTemplate=function(){var W=this;if(!this.__template){var l=this._templateInfo?this:(0,_.HS)(this).querySelector("template");if(!l){var V=new MutationObserver(function(){if((0,_.HS)(W).querySelector("template"))V.disconnect(),W.__render();else throw Error("Od");});
V.observe(this,{childList:!0});return!1}this.__template=l}return!0};
_.t.__ensureInstance=function(){var W=(0,_.HS)(this).parentNode;if(this.__hasInstance()){var l=this.__getInstanceNodes();if(l&&l.length&&(0,_.HS)(this).previousSibling!==l[l.length-1])for(var V=0,f=void 0;V<l.length&&(f=l[V]);V++)(0,_.HS)(W).insertBefore(f,this)}else{if(!W||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(W)}return!0};
_.t.render=function(){_.wP()};
_.t.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Jk&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.t.__hasInstance=function(){};
_.t.__getInstanceNodes=function(){};
_.t.__createAndInsertInstance=function(){};
_.t.__teardownInstance=function(){};
_.t._showHideChildren=function(){};
_.rc.Object.defineProperties(Ak,{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:Ak.prototype.__debounceRender},restamp:{type:Boolean,observer:Ak.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var u2k=function(){var W=Ak.call(this)||this;W.__instance=null;W.__syncInfo=null;return W};
_.v(u2k,Ak);_.t=u2k.prototype;_.t.__hasInstance=function(){return!!this.__instance};
_.t.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.t.__createAndInsertInstance=function(W){var l=this,V=this.__dataHost||this;if(qS&&!this.__dataHost)throw Error("Md");var f=V._bindTemplate(this.__template,!0);f.runEffects=function(r,R,y){var P=l.__syncInfo;if(l.if)P&&(l.__syncInfo=null,l._showHideChildren(),R=Object.assign(P.changedProps,R)),r(R,y);else if(l.__instance)if(P||(P=l.__syncInfo={runEffects:r,changedProps:{}}),y)for(var n in R)r=d6(n),P.changedProps[r]=l.__dataHost[r];else Object.assign(P.changedProps,R)};
this.__instance=V._stampTemplate(this.__template,f);(0,_.HS)(W).insertBefore(this.__instance,this)};
_.t.__syncHostProperties=function(){var W=this.__syncInfo;W&&(this.__syncInfo=null,W.runEffects(W.changedProps,!1))};
_.t.__teardownInstance=function(){var W=this.__dataHost||this;this.__instance&&(W._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.t._showHideChildren=function(){var W=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==W&&(this.__instance.__hidden=W,i4v(W,this.__instance.templateInfo.childNodes));W||this.__syncHostProperties()};
var kLX=function(){var W=Ak.call(this)||this;W.__ctor=null;W.__instance=null;W.__invalidProps=null;return W};
_.v(kLX,Ak);_.t=kLX.prototype;_.t.__hasInstance=function(){return!!this.__instance};
_.t.__getInstanceNodes=function(){return this.__instance.children};
_.t.__createAndInsertInstance=function(W){this.__ctor||(this.__ctor=xB(this.__template,this,{mutableData:!0,forwardHostProp:function(l,V){this.__instance&&(this.if?this.__instance.forwardHostProp(l,V):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[d6(l)]=!0))}}));
this.__instance=new this.__ctor;(0,_.HS)(W).insertBefore(this.__instance.root,this)};
_.t.__teardownInstance=function(){if(this.__instance){var W=this.__instance.children;if(W&&W.length){var l=(0,_.HS)(W[0]).parentNode;if(l){l=(0,_.HS)(l);for(var V=0,f=void 0;V<W.length&&(f=W[V]);V++)l.removeChild(f)}}this.__instance=this.__invalidProps=null}};
_.t.__syncHostProperties=function(){var W=this.__invalidProps;if(W){this.__invalidProps=null;for(var l in W)this.__instance._setPendingProperty(l,this.__dataHost[l]);this.__instance._flushProperties()}};
_.t._showHideChildren=function(){var W=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==W&&(this.__instance.__hidden=W,this.__instance._showHideChildren(W));W||this.__syncHostProperties()};
_.$7=dP?u2k:kLX;customElements.define(_.$7.is,_.$7);Polymer.enqueueDebouncer=_.iZ;Polymer.flush=_.wP;Polymer.Templatize={templatize:xB,modelForElement:N5Y};Polymer.TemplateInstanceBase=YB;Polymer.DomIf=_.$7;var vVc=J5a(Kz),ED=function(){var W=vVc.call(this)||this;W.__instances=[];W.__renderDebouncer=null;W.__itemsIdxToInstIdx={};W.__chunkCount=null;W.__renderStartTime=null;W.__itemsArrayChanged=!1;W.__shouldMeasureChunk=!1;W.__shouldContinueChunking=!1;W.__chunkingId=0;W.__sortFn=null;W.__filterFn=null;W.__observePaths=null;W.__ctor=null;W.__isDetached=!0;W.template=null;return W};
_.v(ED,vVc);_.t=ED.prototype;_.t.disconnectedCallback=function(){vVc.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var W=0;W<this.__instances.length;W++)this.__detachInstance(W);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.t.connectedCallback=function(){vVc.prototype.connectedCallback.call(this);pFx()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var W=(0,_.HS)((0,_.HS)(this).parentNode),l=0;l<this.__instances.length;l++)this.__attachInstance(l,W);this.__chunkingId&&this.__render()}};
_.t.__ensureTemplatized=function(){var W=this;if(!this.__ctor){var l=this.template=this._templateInfo?this:this.querySelector("template");if(!l){var V=new MutationObserver(function(){if(W.querySelector("template"))V.disconnect(),W.__render();else throw Error("Pd");});
V.observe(this,{childList:!0});return!1}var f={};f[this.as]=!0;f[this.indexAs]=!0;f[this.itemsIndexAs]=!0;this.__ctor=xB(l,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:f,forwardHostProp:function(r,R){for(var y=this.__instances,P=0,n=void 0;P<y.length&&(n=y[P]);P++)n.forwardHostProp(r,R)},
notifyInstanceProp:function(r,R,y){ymg(this.as,R)&&(r=r[this.itemsIndexAs],R==this.as&&(this.items[r]=y),R=D5(this.as,"items."+r,R),this.notifyPath(R,y))}})}return!0};
_.t.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.t.__functionFromPropertyValue=function(W){if(typeof W==="string"){var l=this.__getMethodHost();return function(){return l[W].apply(l,arguments)}}return W};
_.t.__sortChanged=function(W){this.__sortFn=this.__functionFromPropertyValue(W);this.items&&this.__debounceRender(this.__render)};
_.t.__filterChanged=function(W){this.__filterFn=this.__functionFromPropertyValue(W);this.items&&this.__debounceRender(this.__render)};
_.t.__computeFrameTime=function(W){return Math.ceil(1E3/W)};
_.t.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.t.__handleObservedPaths=function(W){if(this.__sortFn||this.__filterFn)if(!W)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var l=this.__observePaths,V=0;V<l.length;V++)W.indexOf(l[V])===0&&this.__debounceRender(this.__render,this.delay)};
_.t.__itemsChanged=function(W){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(W.path,W.value)||(W.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.t.__debounceRender=function(W,l){l=l===void 0?0:l;this.__renderDebouncer=_.I3(this.__renderDebouncer,l>0?_.Us.after(l):Ou,W.bind(this));_.iZ(this.__renderDebouncer)};
_.t.render=function(){this.__debounceRender(this.__render);_.wP()};
_.t.__render=function(){var W=this;if(this.__ensureTemplatized()){var l=this.items||[],V=this.__sortAndFilterItems(l),f=this.__calculateLimit(V.length);this.__updateInstances(l,f,V);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){W.__chunkingId=null;W.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Jk&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.t.__sortAndFilterItems=function(W){for(var l=this,V=Array(W.length),f=0;f<W.length;f++)V[f]=f;this.__filterFn&&(V=V.filter(function(r,R,y){return l.__filterFn(W[r],R,y)}));
this.__sortFn&&V.sort(function(r,R){return l.__sortFn(W[r],W[R])});
return V};
_.t.__calculateLimit=function(W){var l=W,V=this.__instances.length;if(this.initialCount){var f;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(l=Math.min(W,this.initialCount),this.__chunkCount=(f=Math.max(l-V,0))||1):(f=Math.min(Math.max(W-V,0),this.__chunkCount),l=Math.min(V+f,W));this.__shouldMeasureChunk=f===this.__chunkCount;this.__shouldContinueChunking=l<W;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return l};
_.t.__continueChunking=function(){if(this.__shouldMeasureChunk){var W=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/W*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.t.__updateInstances=function(W,l,V){var f=this.__itemsIdxToInstIdx={},r;for(r=0;r<l;r++){var R=this.__instances[r],y=V[r],P=W[y];f[y]=r;R?(R._setPendingProperty(this.as,P),R._setPendingProperty(this.indexAs,r),R._setPendingProperty(this.itemsIndexAs,y),R._flushProperties()):this.__insertInstance(P,r,y)}for(W=this.__instances.length-1;W>=r;W--)this.__detachAndRemoveInstance(W)};
_.t.__detachInstance=function(W){W=this.__instances[W];for(var l=(0,_.HS)(W.root),V=0;V<W.children.length;V++)l.appendChild(W.children[V]);return W};
_.t.__attachInstance=function(W,l){l.insertBefore(this.__instances[W].root,this)};
_.t.__detachAndRemoveInstance=function(W){this.__detachInstance(W);this.__instances.splice(W,1)};
_.t.__stampInstance=function(W,l,V){var f={};f[this.as]=W;f[this.indexAs]=l;f[this.itemsIndexAs]=V;return new this.__ctor(f)};
_.t.__insertInstance=function(W,l,V){W=this.__stampInstance(W,l,V);V=(V=this.__instances[l+1])?V.children[0]:this;(0,_.HS)((0,_.HS)(this).parentNode).insertBefore(W.root,V);return this.__instances[l]=W};
_.t._showHideChildren=function(W){for(var l=0;l<this.__instances.length;l++)this.__instances[l]._showHideChildren(W)};
_.t.__handleItemPath=function(W,l){var V=W.slice(6),f=V.indexOf(".");W=f<0?V:V.substring(0,f);if(W==parseInt(W,10)){V=f<0?"":V.substring(f+1);this.__handleObservedPaths(V);if(W=this.__instances[this.__itemsIdxToInstIdx[W]])W._setPendingPropertyOrPath(this.as+(V?"."+V:""),l,!1,!0),W._flushProperties();return!0}};
_.t.itemForElement=function(W){return(W=this.modelForElement(W))&&W[this.as]};
_.t.indexForElement=function(W){return(W=this.modelForElement(W))&&W[this.indexAs]};
_.t.modelForElement=function(W){return N5Y(this.template,W)};
_.rc.Object.defineProperties(ED,{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:ED.prototype.__sortChanged},filter:{type:Function,observer:ED.prototype.__filterChanged},observe:{type:String,observer:ED.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Jk,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.*)"]}}});
ED.prototype._setRenderedItemCount=function(){};
customElements.define(ED.is,ED);Polymer.DomRepeat=ED;var HaB=function(W,l){var V=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=W;this.callback=l;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){V._schedule()};
this.connect();this._schedule()},KgB=function(W){var l=(0,_.HS)(W);
if(hH(W))return l.assignedNodes({flatten:!0});W=[];for(var V=0;V<l.childNodes.length;V++){var f=l.childNodes[V];hH(f)?W.push.apply(W,_.QK((0,_.HS)(f).assignedNodes({flatten:!0}))):W.push(f)}return W};
_.t=HaB.prototype;_.t.connect=function(){var W=this;hH(this._target)?this._listenSlots([this._target]):(0,_.HS)(this._target).children&&(this._listenSlots((0,_.HS)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(l){W._processMutations(l)}):(this._nativeChildrenObserver=new MutationObserver(function(l){W._processMutations(l)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.t.disconnect=function(){hH(this._target)?this._unlistenSlots([this._target]):(0,_.HS)(this._target).children&&(this._unlistenSlots((0,_.HS)(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};
_.t._schedule=function(){var W=this;this._scheduled||(this._scheduled=!0,Ou.run(function(){return W.flush()}))};
_.t._processMutations=function(W){this._processSlotMutations(W);this.flush()};
_.t._processSlotMutations=function(W){if(W)for(var l=0;l<W.length;l++){var V=W[l];V.addedNodes&&this._listenSlots(V.addedNodes);V.removedNodes&&this._unlistenSlots(V.removedNodes)}};
_.t.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 W={target:this._target,addedNodes:[],removedNodes:[]},l=KgB(this._target),V=zD8(l,this._effectiveNodes),f=0,r=void 0;f<V.length&&(r=V[f]);f++)for(var R=0,y=void 0;R<r.removed.length&&(y=r.removed[R]);R++)W.removedNodes.push(y);
f=0;for(r=void 0;f<V.length&&(r=V[f]);f++)for(R=r.index;R<r.index+r.addedCount;R++)W.addedNodes.push(l[R]);this._effectiveNodes=l;l=!1;if(W.addedNodes.length||W.removedNodes.length)l=!0,this.callback.call(this._target,W);return l};
_.t._listenSlots=function(W){for(var l=0;l<W.length;l++){var V=W[l];hH(V)&&V.addEventListener("slotchange",this._boundSchedule)}};
_.t._unlistenSlots=function(W){for(var l=0;l<W.length;l++){var V=W[l];hH(V)&&V.removeEventListener("slotchange",this._boundSchedule)}};var Qo=Element.prototype,Fga=Qo.matches||Qo.matchesSelector||Qo.mozMatchesSelector||Qo.msMatchesSelector||Qo.oMatchesSelector||Qo.webkitMatchesSelector,GLe=function(W,l){return Fga.call(W,l)},Sn=function(W){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(W);
this.node=W},jDc;
_.t=Sn.prototype;_.t.observeNodes=function(W){return new HaB(this.node,W)};
_.t.unobserveNodes=function(W){W.disconnect()};
_.t.notifyObserver=function(){};
_.t.deepContains=function(W){if((0,_.HS)(this.node).contains(W))return!0;var l=W;for(W=W.ownerDocument;l&&l!==W&&l!==this.node;)l=(0,_.HS)(l).parentNode||(0,_.HS)(l).host;return l===this.node};
_.t.getOwnerRoot=function(){return(0,_.HS)(this.node).getRootNode()};
_.t.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.HS)(this.node).assignedNodes({flatten:!0}):[]};
_.t.getDestinationInsertionPoints=function(){for(var W=[],l=(0,_.HS)(this.node).assignedSlot;l;)W.push(l),l=(0,_.HS)(l).assignedSlot;return W};
_.t.importNode=function(W,l){return(0,_.HS)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(W,l)};
_.t.getEffectiveChildNodes=function(){return KgB(this.node)};
_.t.queryDistributedElements=function(W){for(var l=this.getEffectiveChildNodes(),V=[],f=0,r=l.length,R=void 0;f<r&&(R=l[f]);f++)R.nodeType===Node.ELEMENT_NODE&&GLe(R,W)&&V.push(R);return V};
_.rc.Object.defineProperties(Sn.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var W=this.node;return W._activeElement!==void 0?W._activeElement:W.activeElement}}});
var MV=function(W){this.event=W};
_.rc.Object.defineProperties(MV.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 bak=Sn;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var pl1=window.ShadyDOM.Wrapper,oVc=function(){return pl1.apply(this,arguments)||this};
_.v(oVc,pl1);Object.getOwnPropertyNames(Sn.prototype).forEach(function(W){W!="activeElement"&&W!="constructor"&&(oVc.prototype[W]=Sn.prototype[W])});
xGU(oVc.prototype,["classList"]);bak=oVc;Object.defineProperties(MV.prototype,{localTarget:{get:function(){var W=this.event.currentTarget;W=W&&_.YG(W).getOwnerRoot();for(var l=this.path,V=0;V<l.length;V++){var f=l[V];if(_.YG(f).getOwnerRoot()===W)return f}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else Ylz(),xGU(Sn.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),ep8();jDc=bak;_.YG=function(W){W=W||document;if(W instanceof bak)return W;if(W instanceof MV)return W;var l=W.__domApi;l||(W instanceof Event?l=new MV(W):l=new bak(W),W.__domApi=l);return l};var IJL=/:host\(:dir\((ltr|rtl)\)\)/g,iaL=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,m$k=/:dir\((?:ltr|rtl)\)/,XlM=!(!window.ShadyDOM||!window.ShadyDOM.inUse),$B=[],Zi=null,Eu="",TEc=uZ(function(W){XlM||Zi||(Eu=document.documentElement.getAttribute("dir"),Zi=new MutationObserver(qln),Zi.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var l=Z0M(W);W=function(){var V=l.call(this)||this;V.__autoDirOptOut=!1;return V};
_.v(W,l);W._processStyleText=function(V,f){V=l._processStyleText.call(this,V,f);!XlM&&m$k.test(V)&&(V=this._replaceDirInCssText(V),this.__activateDir=!0);return V};
W._replaceDirInCssText=function(V){V=V.replace(IJL,':host([dir="$1"])');return V=V.replace(iaL,':host([dir="$2"]) $1')};
W.prototype.ready=function(){l.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
W.prototype.connectedCallback=function(){l.prototype.connectedCallback&&l.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(Zi&&Zi.takeRecords().length&&qln(),$B.push(this),this.__autoDirOptOut||this.setAttribute("dir",Eu))};
W.prototype.disconnectedCallback=function(){l.prototype.disconnectedCallback&&l.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var V=$B.indexOf(this);V>-1&&$B.splice(V,1)}};
W.__activateDir=!1;return W});var wlI=function(W){for(;W;){var l=Object.getOwnPropertyDescriptor(W,"observedAttributes");if(l)return l.get;W=Object.getPrototypeOf(W.prototype).constructor}return function(){return[]}};
uZ(function(W){var l=Hw(W),V=wlI(l);W=function(){return l.call(this)||this};
_.v(W,l);W.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:l.prototype._initializeProperties.call(this)};
W.prototype._enableProperties=function(){this.__isUpgradeDisabled||l.prototype._enableProperties.call(this)};
W.prototype._canApplyPropertyDefault=function(f){return l.prototype._canApplyPropertyDefault.call(this,f)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(f))};
W.prototype.attributeChangedCallback=function(f,r,R,y){f=="disable-upgrade"?this.__isUpgradeDisabled&&R==null&&(l.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.HS)(this).isConnected&&l.prototype.connectedCallback.call(this)):l.prototype.attributeChangedCallback.call(this,f,r,R,y)};
W.prototype.connectedCallback=function(){this.__isUpgradeDisabled||l.prototype.connectedCallback.call(this)};
W.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||l.prototype.disconnectedCallback.call(this)};
_.rc.Object.defineProperties(W,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return V.call(this).concat("disable-upgrade")}}});
return W});var Wj=!1,SlJ=[],lw=[];var lhS=window.ShadyDOM,Vgg=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",rI4):document.readyState==="interactive"||document.readyState==="complete"?rI4():window.addEventListener("DOMContentLoaded",rI4);var snY=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=""},REx=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,tgn=/@import[^;]*;/gim,CkF=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,cIU=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Bej=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,d7F=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,PkY=/^@[^\s]*keyframes/,
gR6=/\s+/g;var JI6={};var uzF=Promise.resolve();var A5B=new Set;var QDk=/;\s*/m,Mr1=/^\s*(initial)|(inherit)\s*$/,ZaL=/\s*!important/,Oae=function(){this._map={}};
Oae.prototype.set=function(W,l){W=W.trim();this._map[W]={properties:l,dependants:{}}};
Oae.prototype.get=function(W){W=W.trim();return this._map[W]||null};
var aJM=null,Os=function(){this._measureElement=this._currentElement=null;this._map=new Oae};
_.t=Os.prototype;_.t.detectMixin=function(W){W=RsB.test(W)||r5B.test(W);RsB.lastIndex=0;r5B.lastIndex=0;return W};
_.t.transformTemplate=function(W,l){if(W._gatheredStyle===void 0){var V=[];for(var f=W.content.querySelectorAll("style"),r=0;r<f.length;r++){var R=f[r];if(R.hasAttribute("shady-unscoped")){if(!WZJ){var y=R.textContent;if(!A5B.has(y)){A5B.add(y);var P=document.createElement("style");P.setAttribute("shady-unscoped","");P.textContent=y;document.head.appendChild(P)}R.parentNode.removeChild(R)}}else V.push(R.textContent),R.parentNode.removeChild(R)}(V=V.join("").trim())?(f=document.createElement("style"),
f.textContent=V,W.content.insertBefore(f,W.content.firstChild),V=f):V=null;W._gatheredStyle=V}return(W=W._gatheredStyle)?this.JSC$11267_transformStyle(W,l):null};
_.t.JSC$11267_transformStyle=function(W,l){l=l===void 0?"":l;var V=KJF(W);this.transformRules(V,l);W.textContent=HVF(V);return V};
_.t.transformCustomStyle=function(W){var l=this,V=KJF(W);GQ6(V,function(f){f.selector===":root"&&(f.selector="html");l.transformRule(f)});
W.textContent=HVF(V);return V};
_.t.transformRules=function(W,l){var V=this;this._currentElement=l;GQ6(W,function(f){V.transformRule(f)});
this._currentElement=null};
_.t.transformRule=function(W){W.cssText=zs$(this,W.parsedCssText,W);W.selector===":root"&&(W.selector=":host > *")};
var zs$=function(W,l,V){l=l.replace(r5B,function(f,r,R,y){return W._produceCssProperties(f,r,R,y,V)});
return W._consumeCssProperties(l,V)};
_.t=Os.prototype;_.t._getInitialValueForProperty=function(W){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(W)};
_.t._fallbacksFromPreviousRules=function(W){for(var l=this,V=W;V.parent;)V=V.parent;var f={},r=!1;GQ6(V,function(R){(r=r||R===W)||R.selector===W.selector&&Object.assign(f,l._cssTextToMap(R.parsedCssText))});
return f};
_.t._consumeCssProperties=function(W,l){for(var V;V=RsB.exec(W);){var f=V[0],r=V[1];V=V.index;var R=V+f.indexOf("@apply"),y=V+f.length;f=W.slice(0,R);W=W.slice(y);R=l?this._fallbacksFromPreviousRules(l):{};Object.assign(R,this._cssTextToMap(f));r=this._atApplyToCssProperties(r,R);W=f+r+W;RsB.lastIndex=V+r.length}return W};
_.t._atApplyToCssProperties=function(W,l){W=W.replace(QDk,"");var V=[],f=this._map.get(W);f||(this._map.set(W,{}),f=this._map.get(W));if(f){this._currentElement&&(f.dependants[this._currentElement]=!0);var r,R=f.properties;for(r in R){var y=l&&l[r];f=[r,": var(",W,"_-_",r];y&&f.push(",",y.replace(ZaL,""));f.push(")");ZaL.test(R[r])&&f.push(" !important");V.push(f.join(""))}}return V.join("; ")};
_.t._replaceInitialOrInherit=function(W,l){var V=Mr1.exec(l);V&&(l=V[1]?this._getInitialValueForProperty(W):"apply-shim-inherit");return l};
_.t._cssTextToMap=function(W,l){l=l===void 0?!1:l;W=W.split(";");for(var V,f,r={},R=0;R<W.length;R++)if(V=W[R])f=V.split(":"),f.length>1&&(V=f[0].trim(),f=f.slice(1).join(":"),l&&(f=this._replaceInitialOrInherit(V,f)),r[V]=f);return r};
_.t._invalidateMixinEntry=function(W){if(aJM)for(var l in W.dependants)l!==this._currentElement&&aJM(l)};
_.t._produceCssProperties=function(W,l,V,f,r){var R=this;V&&bVg(V,function(H,p){p&&R._map.get(p)&&(f="@apply "+p+";")});
if(!f)return W;var y=this._consumeCssProperties(""+f,r);r=W.slice(0,W.indexOf("--"));var P=y=this._cssTextToMap(y,!0),n=this._map.get(l),B=n&&n.properties;B?P=Object.assign(Object.create(B),y):this._map.set(l,P);var d=[],J,D=!1;for(J in P){var u=y[J];u===void 0&&(u="initial");!B||J in B||(D=!0);d.push(l+"_-_"+J+": "+u)}D&&this._invalidateMixinEntry(n);n&&(n.properties=P);V&&(r=W+";"+r);return r+d.join("; ")+";"};
Os.prototype.detectMixin=Os.prototype.detectMixin;Os.prototype.transformStyle=Os.prototype.JSC$11267_transformStyle;Os.prototype.transformCustomStyle=Os.prototype.transformCustomStyle;Os.prototype.transformRules=Os.prototype.transformRules;Os.prototype.transformRule=Os.prototype.transformRule;Os.prototype.transformTemplate=Os.prototype.transformTemplate;Os.prototype._separator="_-_";Object.defineProperty(Os.prototype,"invalidCallback",{get:function(){return aJM},
set:function(W){aJM=W}});var a3=new Os,NEL=function(){this.customStyleInterface=null;a3.invalidCallback=D7g},zX=function(W){!W.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(W.customStyleInterface=window.ShadyCSS.CustomStyleInterface,W.customStyleInterface.transformCallback=function(l){a3.transformCustomStyle(l)},W.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){W.customStyleInterface.enqueued&&W.flushCustomStyles()})})};
_.t=NEL.prototype;_.t.prepareTemplate=function(W,l){zX(this);psS(W)===""&&(JI6[l]=W,l=a3.transformTemplate(W,l),W._styleAst=l)};
_.t.flushCustomStyles=function(){zX(this);if(this.customStyleInterface){var W=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var l=0;l<W.length;l++){var V=this.customStyleInterface.getStyleForCustomStyle(W[l]);V&&a3.transformCustomStyle(V)}this.customStyleInterface.enqueued=!1}}};
_.t.styleSubtree=function(W,l){zX(this);l&&xPz(W,l);if(W.shadowRoot)for(this.styleElement(W),W=W.shadowRoot.children||W.shadowRoot.childNodes,l=0;l<W.length;l++)this.styleSubtree(W[l]);else for(W=W.children||W.childNodes,l=0;l<W.length;l++)this.styleSubtree(W[l])};
_.t.styleElement=function(W){zX(this);var l=W.localName,V;l?l.indexOf("-")>-1?V=l:V=W.getAttribute&&W.getAttribute("is")||"":V=W.is;l=JI6[V];if(!(l&&psS(l)!==""||!l||U7j(l))){if(U7j(l)||l._applyShimValidatingVersion!==l._applyShimNextVersion)this.prepareTemplate(l,V),kQz(l);if(W=W.shadowRoot)if(W=W.querySelector("style"))W.__cssRules=l._styleAst,W.textContent=HVF(l._styleAst)}};
_.t.styleDocument=function(W){zX(this);this.styleSubtree(document.body,W)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var NV=new NEL,YmX=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(W,l){NV.flushCustomStyles();NV.prepareTemplate(W,l)},
prepareTemplateStyles:function(W,l,V){window.ShadyCSS.prepareTemplate(W,l,V)},
prepareTemplateDom:function(){},
styleSubtree:function(W,l){NV.flushCustomStyles();NV.styleSubtree(W,l)},
styleElement:function(W){NV.flushCustomStyles();NV.styleElement(W)},
styleDocument:function(W){NV.flushCustomStyles();NV.styleDocument(W)},
getComputedStyleValue:function(W,l){return eD6(W,l)},
flushCustomStyles:function(){NV.flushCustomStyles()},
nativeCss:vRz,nativeShadow:WZJ,cssBuild:fX,disableRuntime:LgM};YmX&&(window.ShadyCSS.CustomStyleInterface=YmX)}window.ShadyCSS.ApplyShim=a3;var x$k;x$k=window.ShadyCSS;_.YD=uZ(function(W){W=d$k(Hw(W));var l=SKX?W:TEc(W),V=wlI(l),f={x:"pan-x",y:"pan-y",none:"none",all:"auto"};W=function(){return l.call(this)||this};
_.v(W,l);W.prototype.created=function(){};
W.prototype.__attributeReaction=function(r,R,y){(this.__dataAttributes&&this.__dataAttributes[r]||r==="disable-upgrade")&&this.attributeChangedCallback(r,R,y,null)};
W.prototype.setAttribute=function(r,R){if(KLk&&!this._legacyForceObservedAttributes){var y=this.getAttribute(r);l.prototype.setAttribute.call(this,r,R);this.__attributeReaction(r,y,String(R))}else l.prototype.setAttribute.call(this,r,R)};
W.prototype.removeAttribute=function(r){if(KLk&&!this._legacyForceObservedAttributes){var R=this.getAttribute(r);l.prototype.removeAttribute.call(this,r);this.__attributeReaction(r,R,null)}else l.prototype.removeAttribute.call(this,r)};
W.prototype._enableProperties=function(){this.__isUpgradeDisabled||l.prototype._enableProperties.call(this)};
W.prototype._canApplyPropertyDefault=function(r){return l.prototype._canApplyPropertyDefault.call(this,r)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(r))};
W.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(l.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
W.prototype.attached=function(){};
W.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(l.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
W.prototype.detached=function(){};
W.prototype.attributeChangedCallback=function(r,R,y,P){R!==y&&(r=="disable-upgrade"?this.__isUpgradeDisabled&&y==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.HS)(this).isConnected&&this.connectedCallback()):(l.prototype.attributeChangedCallback.call(this,r,R,y,P),this.attributeChanged(r,R,y)))};
W.prototype.attributeChanged=function(){};
W.prototype._initializeProperties=function(){if(zi&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var r=Object.getPrototypeOf(this);r.hasOwnProperty("__hasRegisterFinished")||(this._registered(),r.__hasRegisterFinished=!0);l.prototype._initializeProperties.call(this);this.root=this;this.created();KLk&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
W.prototype._takeAttributes=function(){for(var r=this.attributes,R=0,y=r.length;R<y;R++){var P=r[R];this.__attributeReaction(P.name,null,P.value)}};
W.prototype._registered=function(){};
W.prototype.ready=function(){this._ensureAttributes();l.prototype.ready.call(this)};
W.prototype._ensureAttributes=function(){};
W.prototype._applyListeners=function(){};
W.prototype.serialize=function(r){return this._serializeValue(r)};
W.prototype.deserialize=function(r,R){return this._deserializeValue(r,R)};
W.prototype.reflectPropertyToAttribute=function(r,R,y){this._propertyToAttribute(r,R,y)};
W.prototype.serializeValueToAttribute=function(r,R,y){this._valueToNodeAttribute(y||this,r,R)};
W.prototype.extend=function(r,R){if(!r||!R)return r||R;for(var y=Object.getOwnPropertyNames(R),P=0,n=void 0;P<y.length&&(n=y[P]);P++){var B=Object.getOwnPropertyDescriptor(R,n);B&&Object.defineProperty(r,n,B)}return r};
W.prototype.mixin=function(r,R){for(var y in R)r[y]=R[y];return r};
W.prototype.chainObject=function(r,R){r&&R&&r!==R&&(r.__proto__=R);return r};
W.prototype.instanceTemplate=function(r){r=this.constructor._contentForTemplate(r);return document.importNode(r,!0)};
W.prototype.fire=function(r,R,y){y=y||{};R=R===null||R===void 0?{}:R;r=new Event(r,{bubbles:y.bubbles===void 0?!0:y.bubbles,cancelable:!!y.cancelable,composed:y.composed===void 0?!0:y.composed});r.detail=R;(0,_.HS)(y.node||this).dispatchEvent(r);return r};
W.prototype.listen=function(r,R,y){r=r||this;var P=this.__boundListeners||(this.__boundListeners=new WeakMap),n=P.get(r);n||(n={},P.set(r,n));P=R+y;n[P]||(n[P]=this._addMethodEventListenerToNode(r,R,y,this))};
W.prototype.unlisten=function(r,R,y){r=r||this;var P=this.__boundListeners&&this.__boundListeners.get(r);y=R+y;var n=P&&P[y];n&&(this._removeEventListenerFromNode(r,R,n),P[y]=null)};
W.prototype.setScrollDirection=function(r,R){_.Z5(R||this,f[r]||"auto")};
W.prototype.$$=function(r){return this.root.querySelector(r)};
W.prototype.distributeContent=function(){var r=_.YG(this);window.ShadyDOM&&r.shadowRoot&&ShadyDOM.flush()};
W.prototype.getEffectiveChildNodes=function(){return _.YG(this).getEffectiveChildNodes()};
W.prototype.queryDistributedElements=function(r){return _.YG(this).queryDistributedElements(r)};
W.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(r){return r.nodeType===Node.ELEMENT_NODE})};
W.prototype.getEffectiveTextContent=function(){for(var r=this.getEffectiveChildNodes(),R=[],y=0,P;P=r[y];y++)P.nodeType!==Node.COMMENT_NODE&&R.push(P.textContent);return R.join("")};
W.prototype.queryEffectiveChildren=function(r){return(r=this.queryDistributedElements(r))&&r[0]};
W.prototype.queryAllEffectiveChildren=function(r){return this.queryDistributedElements(r)};
W.prototype.getContentChildNodes=function(r){return(r=this.root.querySelector(r||"slot"))?_.YG(r).getDistributedNodes():[]};
W.prototype.getContentChildren=function(r){return this.getContentChildNodes(r).filter(function(R){return R.nodeType===Node.ELEMENT_NODE})};
W.prototype.isLightDescendant=function(r){return this!==r&&(0,_.HS)(this).contains(r)&&(0,_.HS)(this).getRootNode()===(0,_.HS)(r).getRootNode()};
W.prototype.isLocalDescendant=function(r){return this.root===(0,_.HS)(r).getRootNode()};
W.prototype.scopeSubtree=function(r,R){return fh8(r,R===void 0?!1:R)};
W.prototype.getComputedStyleValue=function(r){return x$k.getComputedStyleValue(this,r)};
W.prototype.debounce=function(r,R,y){this._debouncers=this._debouncers||{};return this._debouncers[r]=_.I3(this._debouncers[r],y>0?_.Us.after(y):Ou,R.bind(this))};
W.prototype.isDebouncerActive=function(r){this._debouncers=this._debouncers||{};r=this._debouncers[r];return!(!r||!r.isActive())};
W.prototype.flushDebouncer=function(r){this._debouncers=this._debouncers||{};(r=this._debouncers[r])&&r.flush()};
W.prototype.cancelDebouncer=function(r){this._debouncers=this._debouncers||{};(r=this._debouncers[r])&&r.cancel()};
W.prototype.async=function(r,R){return R>0?_.Us.run(r.bind(this),R):~Ou.run(r.bind(this))};
W.prototype.cancelAsync=function(r){r<0?Ou.cancel(~r):_.Us.cancel(r)};
W.prototype.create=function(r,R){r=document.createElement(r);if(R)if(r.setProperties)r.setProperties(R);else for(var y in R)r[y]=R[y];return r};
W.prototype.elementMatches=function(r,R){return GLe(R||this,r)};
W.prototype.toggleAttribute=function(r,R){var y=this;arguments.length===3&&(y=arguments[2]);arguments.length==1&&(R=!y.hasAttribute(r));if(R)return(0,_.HS)(y).setAttribute(r,""),!0;(0,_.HS)(y).removeAttribute(r);return!1};
W.prototype.toggleClass=function(r,R,y){y=y||this;arguments.length==1&&(R=!y.classList.contains(r));R?y.classList.add(r):y.classList.remove(r)};
W.prototype.transform=function(r,R){R=R||this;R.style.webkitTransform=r;R.style.transform=r};
W.prototype.translate3d=function(r,R,y,P){this.transform("translate3d("+r+","+R+","+y+")",P||this)};
W.prototype.arrayDelete=function(r,R){if(Array.isArray(r)){if(R=r.indexOf(R),R>=0)return r.splice(R,1)}else if(R=uN(this,r).indexOf(R),R>=0)return this.splice(r,R,1);return null};
W.prototype._logger=function(r,R){Array.isArray(R)&&R.length===1&&Array.isArray(R[0])&&(R=R[0]);switch(r){case "log":case "warn":case "error":console[r].apply(console,_.QK(R))}};
W.prototype._log=function(){this._logger("log",_.xk.apply(0,arguments))};
W.prototype._warn=function(){this._logger("warn",_.xk.apply(0,arguments))};
W.prototype._error=function(){this._logger("error",_.xk.apply(0,arguments))};
W.prototype._logf=function(r){return["[%s::%s]",this.is,r].concat(_.QK(_.xk.apply(1,arguments)))};
_.rc.Object.defineProperties(W.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var r=(0,_.HS)(this).getRootNode();return r instanceof DocumentFragment?r.host:r}}});
_.rc.Object.defineProperties(W,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return KLk&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],Vlv(this.prototype)),this.__observedAttributes):V.call(this).concat("disable-upgrade")}}});
W.prototype.is="";return W});Polymer.FlattenedNodesObserver=HaB;Polymer.DomApi=jDc;Polymer.EventApi=MV;Polymer.dom=_.YG;Polymer.dom.matchesSelector=GLe;Polymer.dom.flush=_.wP;Polymer.dom.addDebouncer=_.iZ;Polymer.DirMixin=TEc;Polymer.RenderStatus={beforeNextRender:_.WJj,afterNextRender:_.V9,flush:function(){for(;SlJ.length||lw.length;)hpj(SlJ),hpj(lw);Wj=!1}};Polymer.LegacyElementMixin=_.YD;var esv;esv=Xb._mutablePropertyChange;var qmv={properties:{mutableData:Boolean},_shouldPropertyChange:function(W,l,V){return esv(this,W,l,V,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(W,l,V){return esv(this,W,l,V,!0)}};
Polymer.OptionalMutableDataBehavior=qmv;var oRq={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Xsg={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},m7Y=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Xsg),hsM=(0,_.YD)(HTMLElement),hgj=function(W,l){W||console.warn("Polymer.Class requires `info` argument");l=l?l(hsM):hsM;l=Te6(W,l,W.behaviors);l.is=l.prototype.is=
W.is;return l};Polymer.Class=hgj;Polymer.mixinBehaviors=function(W,l){return Te6({},(0,_.YD)(l),W)};
Polymer.GenerateClassFromInfo=Te6;_.S3=function(W){var l=typeof W==="function"?W:_.S3.Class(W);W._legacyForceObservedAttributes&&(l.prototype._legacyForceObservedAttributes=W._legacyForceObservedAttributes);customElements.define(l.is,l);return l};
_.S3.Class=hgj;Polymer._polymerFn=_.S3;var SmI=window.onLegacyPolymerFunctionDefinedCallback;SmI&&SmI();var EF6={templatize:function(W,l){this._templatizerTemplate=W;this.ctor=xB(W,this,{mutableData:!!l,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(W){return new this.ctor(W)},
modelForElement:function(W){return N5Y(this._templatizerTemplate,W)}};Polymer.Templatizer=EF6;_.xD=(0,_.YD)(HTMLElement).prototype;Polymer.Base=_.xD;var AIJ=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.RA=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.v(_.RA,PolymerFakeBaseClass);var t6=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.v(t6,PolymerFakeBaseClass);var Qnn=Symbol("Qd"),x7q=[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 EVa=EVa||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},$$c;(function(W){function l(N,x,Y){var W8=S.get(N);if(!W8){if(!Y)return;W8=new w;S.set(N,W8)}N=W8.get(x);if(!N){if(!Y)return;N=new w;W8.set(x,N)}return N}
function V(N,x,Y){if(f(N,x,Y))return!0;x=D(x);return x!==null?V(N,x,Y):!1}
function f(N,x,Y){x=l(x,Y,!1);return x===void 0?!1:!!x.has(N)}
function r(N,x,Y){if(f(N,x,Y))return R(N,x,Y);x=D(x);if(x!==null)return r(N,x,Y)}
function R(N,x,Y){x=l(x,Y,!1);if(x!==void 0)return x.get(N)}
function y(N,x){var Y=P(N,x);N=D(N);if(N===null)return Y;var W8=y(N,x);if(W8.length<=0)return Y;if(Y.length<=0)return W8;x=new O;N=[];Y=_.L(Y);for(var c8=Y.next();!c8.done;c8=Y.next())c8=c8.value,x.has(c8)||(x.add(c8),N.push(c8));Y=_.L(W8);for(W8=Y.next();!W8.done;W8=Y.next())W8=W8.value,x.has(W8)||(x.add(W8),N.push(W8));return N}
function P(N,x){N=l(N,x,!1);var Y=[];N&&N.forEach(function(W8,c8){return Y.push(c8)});
return Y}
function n(N){return N===void 0}
function B(N){return typeof N==="object"?N!==null:typeof N==="function"}
function d(N){return typeof N==="function"}
function J(N){return typeof N==="symbol"?N:String(N)}
function D(N){var x=Object.getPrototypeOf(N);if(typeof N!=="function"||N===X||x!==X)return x;var Y=Object.getPrototypeOf(N.prototype);if(Y==null||Y===Object.prototype)return x;Y=Y.constructor;return typeof Y!=="function"||Y===N?x:Y}
function u(){function N(){this._keys=[];this._values=[];this._cache=x}
var x={};N.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 W8=this._find(Y);if(W8>=0)return this._cache=Y,this._values[W8]},
set:function(Y,W8){this.delete(Y);this._keys.push(Y);this._values.push(W8);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=x,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=x},
forEach:function(Y){for(var W8=this.size,c8=0;c8<W8;++c8){var B8=this._keys[c8],Jx=this._values[c8];this._cache=B8;Y.call(this,Jx,B8,this)}},
_find:function(Y){for(var W8=this._keys,c8=W8.length,B8=0;B8<c8;++B8)if(W8[B8]===Y)return B8;return-1}};
return N}
function H(){function N(){this._map=new w}
N.prototype={get size(){return this._map.length},has:function(x){return this._map.has(x)},
add:function(x){this._map.set(x,x);return this},
delete:function(x){return this._map.delete(x)},
clear:function(){this._map.clear()},
forEach:function(x,Y){this._map.forEach(x,Y)}};
return N}
function p(){function N(){this._key=Y()}
function x(Kq,Z4){for(var Ax=0;Ax<Z4;++Ax)Kq[Ax]=Math.random()*255|0}
function Y(){do{if(c8)var Kq=c8.randomBytes(16);else typeof Uint8Array==="function"?(Kq=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(Kq):x(Kq,16)):(Kq=Array(16),x(Kq,16));Kq[6]=Kq[6]&79|64;Kq[8]=Kq[8]&191|128;for(var Z4="",Ax=0;Ax<16;++Ax){var sM=Kq[Ax];if(Ax===4||Ax===6||Ax===8)Z4+="-";sM<16&&(Z4+="0");Z4+=sM.toString(16).toLowerCase()}Kq="@@WeakMap@@"+Z4}while(B8.call(Jx,Kq));Jx[Kq]=!0;return Kq}
function W8(Kq,Z4){if(!B8.call(Kq,H8)){if(!Z4)return;Object.defineProperty(Kq,H8,{value:Object.create(null)})}return Kq[H8]}
var c8=typeof global!=="undefined"&&typeof EVa==="object"&&typeof require==="function"&&require("crypto"),B8=Object.prototype.hasOwnProperty,Jx={},H8=Y();N.prototype={has:function(Kq){return(Kq=W8(Kq,!1))?this._key in Kq:!1},
get:function(Kq){if(Kq=W8(Kq,!1))return Kq[this._key]},
set:function(Kq,Z4){W8(Kq,!0)[this._key]=Z4;return this},
delete:function(Kq){return(Kq=W8(Kq,!1))&&this._key in Kq?delete Kq[this._key]:!1},
clear:function(){this._key=Y()}};
return N}
var X=Object.getPrototypeOf(Function),w=typeof Map==="function"?Map:u(),O=typeof Set==="function"?Set:H(),S=new (typeof WeakMap==="function"?WeakMap:p());W.decorate=function(N,x,Y,W8){if(n(W8)){if(n(Y)){if(!Array.isArray(N))throw new TypeError;if(!d(x))throw new TypeError;for(Y=N.length-1;Y>=0;--Y)if(W8=(0,N[Y])(x),!n(W8)){if(!d(W8))throw new TypeError;x=W8}return x}if(!Array.isArray(N))throw new TypeError;if(!B(x))throw new TypeError;Y=J(Y);for(W8=N.length-1;W8>=0;--W8)(0,N[W8])(x,Y)}else{if(Array.isArray(N))if(B(x)){if(n(Y))throw new TypeError;
if(!B(W8))throw new TypeError;}else throw new TypeError;else throw new TypeError;Y=J(Y);for(var c8=N.length-1;c8>=0;--c8){var B8=(0,N[c8])(x,Y,W8);if(!n(B8)){if(!B(B8))throw new TypeError;W8=B8}}return W8}};
W.metadata=function(N,x){return function(Y,W8){if(n(W8)){if(!d(Y))throw new TypeError;l(Y,void 0,!0).set(N,x)}else{if(!B(Y))throw new TypeError;W8=J(W8);l(Y,W8,!0).set(N,x)}}};
W.defineMetadata=function(N,x){var Y;if(B(x))n(Y)||(Y=J(Y));else throw new TypeError;l(x,Y,!0).set("parameters",N)};
W.hasMetadata=function(N,x,Y){if(B(x))n(Y)||(Y=J(Y));else throw new TypeError;return V(N,x,Y)};
W.hasOwnMetadata=function(N,x,Y){if(B(x))n(Y)||(Y=J(Y));else throw new TypeError;return f(N,x,Y)};
W.getMetadata=function(N,x,Y){if(B(x))n(Y)||(Y=J(Y));else throw new TypeError;return r(N,x,Y)};
W.getOwnMetadata=function(N,x,Y){if(B(x))n(Y)||(Y=J(Y));else throw new TypeError;return R(N,x,Y)};
W.getMetadataKeys=function(N,x){if(B(N))n(x)||(x=J(x));else throw new TypeError;return y(N,x)};
W.getOwnMetadataKeys=function(N,x){if(B(N))n(x)||(x=J(x));else throw new TypeError;return P(N,x)};
W.deleteMetadata=function(N,x,Y){if(B(x))n(Y)||(Y=J(Y));else throw new TypeError;var W8=l(x,Y,!1);if(!n(W8)){if(!W8.delete(N))return!1;if(W8.size>0)return!0;N=S.get(x);N.delete(Y);if(N.size>0)return!0;S.delete(x);return!0}};
(function(N){if(typeof N.Reflect!=="undefined"){if(N.Reflect!==W)for(var x in W)N.Reflect[x]=W[x]}else N.Reflect=W})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})($$c||($$c={}));var XRj=self;var Wza=[0,_.sd,_.ge,_.sd];var lrc=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(lrc,_.yP);var V3v=_.v$(lrc,[0,_.Tu4,_.CV,Wza,_.ge,_.Bs]);_.Jj(_.sC,_.iI);_.t=_.sC.prototype;_.t.start=function(){this.stop();this.usingListeners_=!1;var W=frX(this),l=raL(this);W&&!l&&this.JSC$11310_win_.mozRequestAnimationFrame?(this.JSC$11310_id_=_.YJ(this.JSC$11310_win_,"MozBeforePaint",this.callback_),this.JSC$11310_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11310_id_=W&&l?W.call(this.JSC$11310_win_,this.callback_):this.JSC$11310_win_.setTimeout(qMI(this.callback_),20)};
_.t.stop=function(){if(this.isActive()){var W=frX(this),l=raL(this);W&&!l&&this.JSC$11310_win_.mozRequestAnimationFrame?aJ(this.JSC$11310_id_):W&&l?l.call(this.JSC$11310_win_,this.JSC$11310_id_):this.JSC$11310_win_.clearTimeout(this.JSC$11310_id_)}this.JSC$11310_id_=null};
_.t.fire=function(){this.stop();this.JSC$11312_doAction_()};
_.t.isActive=function(){return this.JSC$11310_id_!=null};
_.t.JSC$11312_doAction_=function(){this.usingListeners_&&this.JSC$11310_id_&&aJ(this.JSC$11310_id_);this.JSC$11310_id_=null;this.JSC$11310_listener_.call(this.handler_,_.d5())};
_.t.disposeInternal=function(){this.stop();_.sC.superClass_.disposeInternal.call(this)};
var frX=function(W){W=W.JSC$11310_win_;return W.requestAnimationFrame||W.webkitRequestAnimationFrame||W.mozRequestAnimationFrame||W.oRequestAnimationFrame||W.msRequestAnimationFrame||null},raL=function(W){W=W.JSC$11310_win_;
return W.cancelAnimationFrame||W.cancelRequestAnimationFrame||W.webkitCancelRequestAnimationFrame||W.mozCancelRequestAnimationFrame||W.oCancelRequestAnimationFrame||W.msCancelRequestAnimationFrame||null};_.t$=function(W,l,V){_.iI.call(this);this.JSC$11313_listener_=V!=null?W.bind(V):W;this.JSC$11313_interval_=l;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11313_timer_=null};
_.v(_.t$,_.iI);_.t=_.t$.prototype;_.t.fire=function(W){this.args_=arguments;this.JSC$11313_timer_||this.pauseCount_?this.shouldFire_=!0:Rok(this)};
_.t.stop=function(){this.JSC$11313_timer_&&(_.rS.clearTimeout(this.JSC$11313_timer_),this.JSC$11313_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.t.pause=function(){this.pauseCount_++};
_.t.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11313_timer_||(this.shouldFire_=!1,Rok(this))};
_.t.disposeInternal=function(){_.iI.prototype.disposeInternal.call(this);this.stop()};
var Rok=function(W){W.JSC$11313_timer_=ek(function(){W.JSC$11313_timer_=null;W.shouldFire_&&!W.pauseCount_&&(W.shouldFire_=!1,Rok(W))},W.JSC$11313_interval_);
var l=W.args_;W.args_=null;W.JSC$11313_listener_.apply(null,l)};var t3X=function(W,l){this.childIterator_=W[_.rS.Symbol.iterator]();this.mapFn_=l};
t3X.prototype[Symbol.iterator]=function(){return this};
t3X.prototype.next=function(){var W=this.childIterator_.next();return{value:W.done?void 0:this.mapFn_.call(void 0,W.value),done:W.done}};
var s1L=function(W,l){return new t3X(W,l)};var Lz1={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 Cf4=function(W){var l=yav(W);if(!l)throw Error("Ud`"+W);return l},yav=function(W){var l={};
W=String(W);var V=W.charAt(0)=="#"?W:"#"+W;if(g7B.test(V))return l.hex=s5v(V),l.type="hex",l;V=JBq(W);return V.length?(l.hex=EOn(V[0],V[1],V[2]),l.type="rgb",l):Lz1&&(W=Lz1[W.toLowerCase()])?(l.hex=W,l.type="named",l):null},PmL=/#(.)(.)(.)/,s5v=function(W){if(!g7B.test(W))throw Error("Wd`"+W);
W.length==4&&(W=W.replace(PmL,"#$1$1$2$2$3$3"));return W.toLowerCase()},cBg=function(W){W=s5v(W);
W=parseInt(W.slice(1),16);return[W>>16,W>>8&255,W&255]},EOn=function(W,l,V){W=Number(W);
l=Number(l);V=Number(V);if(W!=(W&255)||l!=(l&255)||V!=(V&255))throw Error("Xd`"+W+"`"+l+"`"+V);l=W<<16|l<<8|V;return W<16?"#"+(16777216|l).toString(16).slice(1):"#"+l.toString(16)},g7B=/^#(?:[0-9a-f]{3}){1,2}$/i,n7k=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,JBq=function(W){var l=W.match(n7k);
if(l){W=Number(l[1]);var V=Number(l[2]);l=Number(l[3]);if(W>=0&&W<=255&&V>=0&&V<=255&&l>=0&&l<=255)return[W,V,l]}return[]};var Cm1={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},j$=Cm1;j$=Cm1;var e76,cae,B_X;e76=function(W,l){switch(l){case 1:return W%4!=0||W%100==0&&W%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
cae=function(W,l,V,f,r){W=new Date(W,l,V);r=r||0;return W.valueOf()+(((f!==void 0?f:3)-r+7)%7-((W.getDay()+6)%7-r+7)%7)*864E5};
_.eN=function(W,l,V){typeof W==="number"?(this.date=B_X(W,l||0,V||1),d6L(this,V||1)):_.ev(W)?(this.date=B_X(W.getFullYear(),W.getMonth(),W.getDate()),d6L(this,W.getDate())):(this.date=new Date(_.d5()),W=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),d6L(this,W))};
B_X=function(W,l,V){l=new Date(W,l,V);W>=0&&W<100&&l.setFullYear(l.getFullYear()-1900);return l};
_.t=_.eN.prototype;_.t.firstDayOfWeek_=j$.FIRSTDAYOFWEEK;_.t.firstWeekCutOffDay_=j$.FIRSTWEEKCUTOFFDAY;_.t.clone=function(){var W=new _.eN(this.date);W.firstDayOfWeek_=this.firstDayOfWeek_;W.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return W};
_.t.getFullYear=function(){return this.date.getFullYear()};
_.t.getYear=function(){return this.getFullYear()};
_.t.getMonth=function(){return this.date.getMonth()};
_.t.getDate=function(){return this.date.getDate()};
_.t.getTime=function(){return this.date.getTime()};
_.t.getDay=function(){return this.date.getDay()};
_.t.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.t.getUTCMonth=function(){return this.date.getUTCMonth()};
_.t.getUTCDate=function(){return this.date.getUTCDate()};
_.t.getUTCDay=function(){return this.date.getDay()};
_.t.getUTCHours=function(){return this.date.getUTCHours()};
_.t.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.t.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.t.set=function(W){this.date=new Date(W.getFullYear(),W.getMonth(),W.getDate())};
_.t.setFullYear=function(W){this.date.setFullYear(W)};
_.t.setYear=function(W){this.setFullYear(W)};
_.t.setMonth=function(W){this.date.setMonth(W)};
_.t.setDate=function(W){this.date.setDate(W)};
_.t.setTime=function(W){this.date.setTime(W)};
_.t.setUTCFullYear=function(W){this.date.setUTCFullYear(W)};
_.t.setUTCMonth=function(W){this.date.setUTCMonth(W)};
_.t.setUTCDate=function(W){this.date.setUTCDate(W)};
_.t.add=function(W){if(W.years||W.months){var l=this.getMonth()+W.months+W.years*12,V=this.getYear()+Math.floor(l/12);l%=12;l<0&&(l+=12);var f=Math.min(e76(V,l),this.getDate());this.setDate(1);this.setFullYear(V);this.setMonth(l);this.setDate(f)}W.days&&(V=this.getYear(),l=V>=0&&V<=99?-1900:0,W=new Date((new Date(V,this.getMonth(),this.getDate(),12)).getTime()+W.days*864E5),this.setDate(1),this.setFullYear(W.getFullYear()+l),this.setMonth(W.getMonth()),this.setDate(W.getDate()),d6L(this,W.getDate()))};
_.t.JSC$11326_toIsoString=function(W){var l=this.getFullYear(),V=l<0?"-":l>=1E4?"+":"";return[V+_.vs(Math.abs(l),V?6:4),_.vs(this.getMonth()+1,2),_.vs(this.getDate(),2)].join(W?"-":"")};
_.t.equals=function(W){return!(!W||this.getYear()!=W.getYear()||this.getMonth()!=W.getMonth()||this.getDate()!=W.getDate())};
_.t.toString=function(){return this.JSC$11326_toIsoString()};
var d6L=function(W,l){W.getDate()!=l&&W.date.setUTCHours(W.date.getUTCHours()+(W.getDate()<l?1:-1))};
_.eN.prototype.valueOf=function(){return this.date.valueOf()};var hk=function(W,l,V,f,r){this.reversed=!!l;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!V;W&&qV(this,W,f);this.depth=r!=void 0?r:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Jj(hk,pi);var qV=function(W,l,V,f){if(W.node=l)W.tagType=typeof V==="number"?V:W.node.nodeType!=1?0:W.reversed?-1:1;typeof f==="number"&&(W.depth=f)};
_.t=hk.prototype;_.t.JSC$11341_copyFrom=function(W){this.node=W.node;this.tagType=W.tagType;this.depth=W.depth;this.reversed=W.reversed;this.constrained=W.constrained};
_.t.clone=function(){return new hk(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.t.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return o9;var W=this.node;var l=this.reversed?-1:1;if(this.tagType==l){var V=this.reversed?W.lastChild:W.firstChild;V?qV(this,V):qV(this,W,l*-1)}else(V=this.reversed?W.previousSibling:W.nextSibling)?qV(this,V):qV(this,W.parentNode,l*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(W=this.node)?ja(W):o9};
_.t.equals=function(W){return W.node==this.node&&(!this.node||W.tagType==this.tagType)};
_.t.splice=function(W){var l=this.node,V=this.reversed?1:-1;this.tagType==V&&(this.tagType=V*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;hk.prototype.next.call(this);this.reversed=!this.reversed;V=_.Ng(arguments[0])?arguments[0]:arguments;for(var f=V.length-1;f>=0;f--)_.Ed(V[f],l);_.bI(l)};var JaZ=function(){},SN=function(W){for(var l=[],V=W.getTextRangeCount(),f=0;f<V;f++)l.push(W.getTextRange(f));
return l};
JaZ.prototype.isReversed=function(){return!1};
JaZ.prototype.getWindow=function(){return aU(_.z7(this.JSC$11343_getStartNode()))};
var D6B=function(W,l){hk.call(this,W,l,!0)};
_.Jj(D6B,hk);var Es=function(W,l,V,f,r){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!r;if(W){this.startNode_=W;this.startOffset_=l;this.endNode_=V;this.endOffset_=f;if(W.nodeType==1&&W.tagName!="BR")if(W=W.childNodes,l=W[l])this.startNode_=l,this.startOffset_=0;else{W.length&&(this.startNode_=_.Xn(W));var R=!0}V.nodeType==1&&((this.endNode_=V.childNodes[f])?this.endOffset_=0:this.endNode_=V)}hk.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);R&&this.next()};
_.Jj(Es,D6B);_.t=Es.prototype;_.t.JSC$11349_getStartNode=function(){return this.startNode_};
_.t.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)};
_.t.next=function(){return this.isLast()?o9:Es.superClass_.next.call(this)};
_.t.JSC$11341_copyFrom=function(W){this.startNode_=W.startNode_;this.endNode_=W.endNode_;this.startOffset_=W.startOffset_;this.endOffset_=W.endOffset_;this.isReversed_=W.isReversed_;Es.superClass_.JSC$11341_copyFrom.call(this,W)};
_.t.clone=function(){var W=new Es(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);W.JSC$11341_copyFrom(this);return W};var U6X=function(){};
U6X.prototype.__iterator__=function(){return new Es(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var $D=function(W){this.range_=W};
_.Jj($D,U6X);var uI9=function(W){var l=_.z7(W).createRange();if(W.nodeType==3)l.setStart(W,0),l.setEnd(W,W.length);else if(q7(W)||W.nodeType==3){for(var V,f=W;(V=f.firstChild)&&(q7(V)||V.nodeType==3);)f=V;l.setStart(f,0);for(f=W;(V=f.lastChild)&&(q7(V)||V.nodeType==3);)f=V;l.setEnd(f,f.nodeType==1?f.childNodes.length:f.length)}else V=W.parentNode,W=Array.prototype.indexOf.call(V.childNodes,W),l.setStart(V,W),l.setEnd(V,W+1);return l},kSv=function(W,l,V,f){var r=_.z7(W).createRange();
r.setStart(W,l);r.setEnd(V,f);return r};
_.t=$D.prototype;_.t.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.t.getContainer=function(){return this.range_.commonAncestorContainer};
_.t.compareBrowserRangeEndpoints=function(W,l,V){return this.range_.compareBoundaryPoints(V==1?l==1?_.rS.Range.START_TO_START:_.rS.Range.START_TO_END:l==1?_.rS.Range.END_TO_START:_.rS.Range.END_TO_END,W)};
_.t.isCollapsed=function(){return this.range_.collapsed};
_.t.select=function(W){this.selectInternal(aU(_.z7(this.range_.startContainer)).getSelection(),W)};
_.t.selectInternal=function(W){W.removeAllRanges();W.addRange(this.range_)};
_.t.insertNode=function(W,l){var V=this.range_.cloneRange();V.collapse(l);V.insertNode(W);V.detach();return W};
_.t.collapse=function(W){this.range_.collapse(W)};_.Jj(LX,$D);LX.prototype.selectInternal=function(W,l){!l||this.isCollapsed()?LX.superClass_.selectInternal.call(this,W,l):(W.collapse(this.range_.endContainer,this.range_.endOffset),W.extend(this.range_.startContainer,this.range_.startOffset))};_.Jj(y9,$D);y9.prototype.compareBrowserRangeEndpoints=function(W,l,V){return y9.superClass_.compareBrowserRangeEndpoints.call(this,W,l,V)};
y9.prototype.selectInternal=function(W,l){l?W.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):W.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var v7L=function(W){return _.HF?new y9(W):_.vF?new LX(W):new $D(W)};var WO=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},HGe;
_.Jj(WO,JaZ);HGe=function(W,l){var V=new WO;V.browserRangeWrapper_=W;V.isReversed_=!!l;return V};
_.KzX=function(W){W=_.HF?new y9(uI9(W)):_.vF?new LX(uI9(W)):new $D(uI9(W));return HGe(W)};
_.l9=function(W,l,V,f){var r=new WO;r.isReversed_=FzL(W,l,V,f);if(_.Wq(W)&&!q7(W)){var R=W.parentNode;l=Array.prototype.indexOf.call(R.childNodes,W);W=R}_.Wq(V)&&!q7(V)&&(R=V.parentNode,f=Array.prototype.indexOf.call(R.childNodes,V),V=R);r.isReversed_?(r.startNode_=V,r.startOffset_=f,r.endNode_=W,r.endOffset_=l):(r.startNode_=W,r.startOffset_=l,r.endNode_=V,r.endOffset_=f);return r};
_.t=WO.prototype;_.t.clone=function(){var W=new WO;W.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();W.startNode_=this.startNode_;W.startOffset_=this.startOffset_;W.endNode_=this.endNode_;W.endOffset_=this.endOffset_;W.isReversed_=this.isReversed_;return W};
_.t.JSC$11343_getType=function(){return"text"};
_.t.getBrowserRangeObject=function(){return Vn(this).range_};
_.t.getTextRangeCount=function(){return 1};
_.t.getTextRange=function(){return this};
var Vn=function(W){var l;if(!(l=W.browserRangeWrapper_)){l=W.JSC$11343_getStartNode();var V=W.JSC$11343_getStartOffset(),f=W.JSC$11343_getEndNode(),r=W.JSC$11343_getEndOffset();l=_.HF?new y9(kSv(l,V,f,r)):_.vF?new LX(kSv(l,V,f,r)):new $D(kSv(l,V,f,r));l=W.browserRangeWrapper_=l}return l};
_.t=WO.prototype;_.t.getContainer=function(){return Vn(this).getContainer()};
_.t.JSC$11343_getStartNode=function(){return this.startNode_||(this.startNode_=Vn(this).range_.startContainer)};
_.t.JSC$11343_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=Vn(this).range_.startOffset};
_.t.JSC$11343_getEndNode=function(){return this.endNode_||(this.endNode_=Vn(this).range_.endContainer)};
_.t.JSC$11343_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=Vn(this).range_.endOffset};
_.t.isReversed=function(){return this.isReversed_};
_.t.JSC$11343_containsRange=function(W,l){if(W.JSC$11343_getType()=="text"){var V=Vn(this);W=Vn(W);l=l&&!W.isCollapsed();W=W.range_;V=l?V.compareBrowserRangeEndpoints(W,0,1)>=0&&V.compareBrowserRangeEndpoints(W,1,0)<=0:V.compareBrowserRangeEndpoints(W,0,0)>=0&&V.compareBrowserRangeEndpoints(W,1,1)<=0}else V=!1;return V};
_.t.isCollapsed=function(){return Vn(this).isCollapsed()};
_.t.JSC$11343_getText=function(){return Vn(this).range_.toString()};
_.t.__iterator__=function(){return new Es(this.JSC$11343_getStartNode(),this.JSC$11343_getStartOffset(),this.JSC$11343_getEndNode(),this.JSC$11343_getEndOffset())};
_.t.select=function(){Vn(this).select(this.isReversed_)};
_.t.JSC$11343_removeContents=function(){var W=Vn(this).range_;W.extractContents();if(W.startContainer.hasChildNodes()&&(W=W.startContainer.childNodes[W.startOffset])){var l=W.previousSibling;xHI(W)==""&&_.bI(W);l&&xHI(l)==""&&_.bI(l)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.t.insertNode=function(W,l){W=Vn(this).insertNode(W,l);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return W};
_.t.collapse=function(W){W=this.isReversed()?!W:W;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(W);W?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var GSM=function(){};
_.Jj(GSM,JaZ);GSM.prototype.JSC$11343_containsRange=function(W,l){var V=SN(this);W=SN(W);return(l?SS:_.$Aq)(W,function(f){return SS(V,function(r){return r.JSC$11343_containsRange(f,l)})})};
GSM.prototype.insertNode=function(W,l){l?_.Sg(W,this.JSC$11343_getStartNode()):_.Ed(W,this.JSC$11343_getEndNode());return W};var bGX,pVI=IU().JSC$9321_document_.documentElement;bGX=pVI.requestFullscreen?"fullscreenchange":pVI.webkitRequestFullscreen?"webkitfullscreenchange":pVI.mozRequestFullScreen?"mozfullscreenchange":pVI.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var o79=function(){var W=IU().JSC$9321_document_;return!!(W.webkitIsFullScreen||W.mozFullScreen||W.msFullscreenElement||W.fullscreenElement)};var fd=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Jj(fd,GSM);_.t=fd.prototype;_.t.clone=function(){var W=new fd;W.browserRanges_=_.z6(this.browserRanges_);return W};
_.t.JSC$11343_getType=function(){return"mutli"};
_.t.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.t.getTextRangeCount=function(){return this.browserRanges_.length};
_.t.getTextRange=function(W){this.ranges_[W]||(this.ranges_[W]=HGe(v7L(this.browserRanges_[W])));return this.ranges_[W]};
_.t.getContainer=function(){if(!this.container_){for(var W=[],l=this.getTextRangeCount(),V=0;V<l;V++)W.push(this.getTextRange(V).getContainer());this.container_=MYI.apply(null,W)}return this.container_};
var rk=function(W){W.sortedRanges_||(W.sortedRanges_=SN(W),W.sortedRanges_.sort(function(l,V){var f=l.JSC$11343_getStartNode();l=l.JSC$11343_getStartOffset();var r=V.JSC$11343_getStartNode();V=V.JSC$11343_getStartOffset();return f==r&&l==V?0:FzL(f,l,r,V)?1:-1}));
return W.sortedRanges_};
_.t=fd.prototype;_.t.JSC$11343_getStartNode=function(){return rk(this)[0].JSC$11343_getStartNode()};
_.t.JSC$11343_getStartOffset=function(){return rk(this)[0].JSC$11343_getStartOffset()};
_.t.JSC$11343_getEndNode=function(){return _.Xn(rk(this)).JSC$11343_getEndNode()};
_.t.JSC$11343_getEndOffset=function(){return _.Xn(rk(this)).JSC$11343_getEndOffset()};
_.t.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.t.JSC$11343_getText=function(){return SN(this).map(function(W){return W.JSC$11343_getText()}).join("")};
_.t.__iterator__=function(){return new RM(this)};
_.t.select=function(){var W=this.getWindow().getSelection();W.removeAllRanges();for(var l=this.getTextRangeCount(),V=0;V<l;V++)W.addRange(this.getTextRange(V).getBrowserRangeObject())};
_.t.JSC$11343_removeContents=function(){SN(this).forEach(function(W){W.JSC$11343_removeContents()})};
_.t.collapse=function(W){if(!this.isCollapsed()){var l=W?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;l.collapse(W);this.ranges_=[l];this.sortedRanges_=[l];this.browserRanges_=[l.getBrowserRangeObject()]}};
var RM=function(W){this.iterators_=null;this.currentIdx_=0;W&&(this.iterators_=rk(W).map(function(l){return _.OjZ(l)}));
hk.call(this,W?this.JSC$11349_getStartNode():null,!1,!0)};
_.Jj(RM,D6B);_.t=RM.prototype;_.t.JSC$11349_getStartNode=function(){return this.iterators_[0].JSC$11349_getStartNode()};
_.t.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.t.next=function(){for(;this.currentIdx_<this.iterators_.length;){var W=this.iterators_[this.currentIdx_],l=W.next();if(l.done)this.currentIdx_++;else return qV(this,W.node,W.tagType,W.depth),l}return o9};
_.t.JSC$11341_copyFrom=function(W){this.iterators_=_.z6(W.iterators_);RM.superClass_.JSC$11341_copyFrom.call(this,W)};
_.t.clone=function(){var W=new RM(null);W.JSC$11341_copyFrom(this);return W};var j1Z,FzL;_.FJ=function(){var W=window.getSelection();return W&&j1Z(W)};
j1Z=function(W){var l=!1;if(W.createRange)try{var V=W.createRange()}catch(r){return null}else if(W.rangeCount){if(W.rangeCount>1){V=new fd;l=W.rangeCount;for(var f=0;f<l;f++)V.browserRanges_.push(W.getRangeAt(f));return V}V=W.getRangeAt(0);l=FzL(W.anchorNode,W.anchorOffset,W.focusNode,W.focusOffset)}else return null;return HGe(v7L(V),l)};
_.tu=function(W,l){return _.l9(W,l,W,l)};
_.s2=function(W,l,V,f){return _.l9(W,l,V,f)};
FzL=function(W,l,V,f){if(W==V)return f<l;var r;if(W.nodeType==1&&l)if(r=W.childNodes[l])W=r,l=0;else if(_.eV(W,V))return!0;if(V.nodeType==1&&f)if(r=V.childNodes[f])V=r,f=0;else if(_.eV(V,W))return!1;return(Qw1(W,V)||l-f)>0};var Ld=function(){_.aj.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.ml)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.ml)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.ml)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.ml)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.ml)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.ml)(this.dispatchProgressEvent_,this)};
_.Jj(Ld,_.aj);Ld.prototype.abort=function(){try{this.reader_.abort()}catch(W){throw new xJa(W,"aborting read");}};
Ld.prototype.getError=function(){return this.reader_.error&&new xJa(this.reader_.error,"reading file")};
Ld.prototype.dispatchProgressEvent_=function(W){this.dispatchEvent(new eXk(W,this))};
Ld.prototype.disposeInternal=function(){Ld.superClass_.disposeInternal.call(this);delete this.reader_};
var iGv=function(W){var l=new Ld,V=Ira(l);l.reader_.readAsArrayBuffer(W);return V},m6M=function(W){var l=new Ld,V=Ira(l);
l.reader_.readAsDataURL(W);return V},Ira=function(W){var l=new nC;
W.listen("loadend",_.QW(function(V,f){var r=f.reader_.result,R=f.getError();r==null||R?V.errback(R):V.callback(r);f.dispose()},l,W));
return l};var yn=function(){_.aj.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11383_eventHandler_=new _.nX(this);this.JSC$11383_isInitialized_=!1};
_.Jj(yn,_.aj);var XV$=new _.w3("d"),T_X=new _.w3("beforedragstart"),wVk=new _.w3("dragstart"),Aac=new _.w3("beforedragmove"),Q1M=new _.w3("dragmove"),M3B=new _.w3("beforedragend"),ZGk=new _.w3("dragend"),OGB=new _.w3("e");yn.prototype.isDragging=function(){return!!this.JSC$11383_dragger_};
var arB=function(W,l){l.dlgGrowthDirection_=0;l.dlgDragHoverClass_=void 0;l.dlgDragPermission=0;W.dragLists_.push(l)},zoL=function(W,l){W.getHandleForDragItem_=l};
yn.prototype.init=function(){if(!this.JSC$11383_isInitialized_){for(var W=this.dragLists_.length,l=0;l<W;l++)for(var V=_.$R(this.dragLists_[l]),f=V.length,r=0;r<f;++r){var R=V[r],y=this.getHandleForDragItem_(R),P=_.qg(y);this.dragItemForHandle_[P]=R;this.dragItemHoverClasses_&&(this.JSC$11383_eventHandler_.listen(R,"mouseover",this.handleDragItemMouseover_),this.JSC$11383_eventHandler_.listen(R,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11383_eventHandler_.listen(y,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11383_eventHandler_.listen(y,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(R);this.JSC$11383_eventHandler_.listen(y,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11383_isInitialized_=!0}};
yn.prototype.disposeInternal=function(){this.JSC$11383_eventHandler_.dispose();for(var W=this.dragLists_.length,l=0;l<W;l++){var V=this.dragLists_[l];V.dlgGrowthDirection_=void 0;V.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;N_9(this);yn.superClass_.disposeInternal.call(this)};
var YDk=function(W,l){for(var V=W.dragLists_.length,f=0;f<V;f++){var r=W.dragLists_[f];r.dlgBounds_=$7g(r)}V=W.dragItems_.length;for(f=0;f<V;f++)r=W.dragItems_[f],r!=l&&(r.dlgBounds_=$7g(r))};
_.t=yn.prototype;
_.t.handlePotentialDragStart_=function(W){var l=_.qg(W.currentTarget);l=this.dragItemForHandle_[l];if(l.parentElement.dlgDragPermission!=2){this.currDragItem_=l;a:{l=this.currDragItem_;for(var V=l.cloneNode(!0),f=ps("TEXTAREA",l),r=ps("TEXTAREA",V),R=0;R<f.length;R++)r[R].value=f[R].value;switch(l.tagName){case "TR":l=_.xR("TABLE",null,_.xR("TBODY",null,V));break a;case "TD":case "TH":l=_.xR("TABLE",null,_.xR("TBODY",null,_.xR("TR",null,V)));break a;case "TEXTAREA":V.value=l.value;default:l=V;break a}l=
void 0}this.draggerEl_=l;this.draggerElClasses_&&gw(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.z7(this.currDragItem_).body.appendChild(this.draggerEl_);V=_.NC(this.currDragItem_);l=this.draggerEl_;f=_.NC(l);if(V instanceof _.O1){var y=V.y;V=V.x}r3(l,l.offsetLeft+(V-f.x),l.offsetTop+(Number(y)-f.y));this.JSC$11383_dragger_=new _.rA(this.draggerEl_);_.Yw1(this.JSC$11383_dragger_,this.hysteresisDistance_);
_.YJ(this.JSC$11383_dragger_,"start",this.handleDragStart_,!1,this);_.YJ(this.JSC$11383_dragger_,"end",this.handleDragEnd_,!1,this);_.YJ(this.JSC$11383_dragger_,"earlycancel",this.JSC$11385_cleanup_,!1,this);this.dispatchEvent(new gk(XV$,this,W,this.currDragItem_,this.draggerEl_,this.JSC$11383_dragger_));this.JSC$11383_dragger_.startDrag(W)}};
_.t.handleDragStart_=function(W){if(this.dispatchEvent(new gk(T_X,this,W.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.T7a(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?gw(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var l=$He(this.draggerEl_);this.draggerEl_.halfWidth=l.width/2;this.draggerEl_.halfHeight=l.height/2;l=this.draggerEl_.getBoundingClientRect();
var V=W.clientY,f=xtI(this.JSC$11383_dragger_,W.clientX);if(f>l.right){var r=this.currDragItem_.getBoundingClientRect();this.JSC$11383_dragger_.deltaX=f-(f-r.left)/r.width*l.width}V=ejM(this.JSC$11383_dragger_,V);V>l.bottom&&(this.JSC$11383_dragger_.deltaY+=V-l.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";YDk(this,this.currDragItem_);this.currDragItem_.style.display="";_.YJ(this.JSC$11383_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new gk(wVk,
this,W.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11383_dragger_))}else W.preventDefault(),this.JSC$11385_cleanup_()};
_.t.handleDragMove_=function(W){var l=_.NC(this.draggerEl_);l=new _.O1(l.x+this.draggerEl_.halfWidth,l.y+this.draggerEl_.halfHeight);a:{var V=null;if(this.currDragItem_.style.display!="none"){V=this.currDragItem_.parentNode;var f=$7g(V);if(x6M(l,f))break a}f=this.dragLists_.length;for(var r=0;r<f;r++){var R=this.dragLists_[r];if(R!=V&&x6M(l,R.dlgBounds_)){V=R;break a}}V=null}if(V){if(V==null)throw Error("Yd");f=0;r=!1;R=void 0;switch(V.dlgGrowthDirection_){case 0:f=l.y;var y=eo$;var P=qDk;break;case 4:r=
!0;case 2:f=l.x;y=hoa;P=qDk;break;case 5:r=!0;case 3:f=l.x,y=SDk,P=E7X}for(var n=null,B,d=_.$R(V),J=d.length,D=0;D<J;D++){var u=d[D];if(u!=this.currDragItem_){var H=y(u.dlgBounds_);if(r){var p=$69(u,l);R===void 0&&(R=p);P(f,H)&&(B==void 0||p<R||p==R&&(P(H,B)||H==B))&&(n=u,B=H);p<R&&(R=p)}else P(f,H)&&(B==void 0||P(H,B))&&(n=u,B=H)}}y=n!==null&&$69(n,l)>R?null:n}else y=null;if(!this.dispatchEvent(new gk(Aac,this,W,this.currDragItem_,this.draggerEl_,this.JSC$11383_dragger_,l,V,y)))return!1;if(V&&V.dlgDragPermission!=
1)this.currDragItem_.parentNode==V&&_.T7a(this.currDragItem_)==y||V.insertBefore(this.currDragItem_,y),this.currDragItem_.style.display="",V.dlgDragHoverClass_&&_.J2(V,V.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",P=this.dragLists_.length,B=0;B<P;B++)f=this.dragLists_[B],f.dlgDragHoverClass_&&_.BI(f,f.dlgDragHoverClass_);V!=this.currHoverList_&&(this.currHoverList_=V,YDk(this,this.currDragItem_));this.dispatchEvent(new gk(Q1M,this,W,this.currDragItem_,this.draggerEl_,this.JSC$11383_dragger_,
l,V,y));return!1};
_.t.JSC$11385_cleanup_=function(){N_9(this);this.JSC$11383_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var W=this.dragLists_.length,l=0;l<W;l++)this.dragLists_[l].dlgBounds_=null;W=this.dragItems_.length;for(l=0;l<W;l++)this.dragItems_[l].dlgBounds_=null};
_.t.handleDragEnd_=function(W){if(!this.dispatchEvent(new gk(M3B,this,W,this.currDragItem_,this.draggerEl_,this.JSC$11383_dragger_)))return!1;N_9(this);this.dispatchEvent(new gk(ZGk,this,W,this.currDragItem_,this.draggerEl_,this.JSC$11383_dragger_));this.JSC$11385_cleanup_();return!0};
var N_9=function(W){_.Ls(W.JSC$11383_dragger_);var l=W.draggerEl_&&W.draggerEl_.parentElement;W.draggerEl_&&_.bI(W.draggerEl_);W.currDragItem_&&W.currDragItem_.style.display=="none"&&(W.origList_.insertBefore(W.currDragItem_,W.origNextItem_),W.currDragItem_.style.display="");W.currDragItemClasses_&&W.currDragItem_?zaZ(W.currDragItem_,W.currDragItemClasses_||[]):W.currDragItem_&&(W.currDragItem_.style.visibility="");for(var V=W.dragLists_.length,f=0;f<V;f++){var r=W.dragLists_[f];r.dlgDragHoverClass_&&
_.BI(r,r.dlgDragHoverClass_)}l&&W.dispatchEvent(new gk(OGB,W,null,W.currDragItem_,W.draggerEl_,W.JSC$11383_dragger_))};
_.t=yn.prototype;_.t.getHandleForDragItem_=function(W){return W};
_.t.handleDragItemMouseover_=function(W){gw(W.currentTarget,this.dragItemHoverClasses_||[])};
_.t.handleDragItemMouseout_=function(W){zaZ(W.currentTarget,this.dragItemHoverClasses_||[])};
_.t.handleDragItemHandleMouseover_=function(W){gw(W.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.t.handleDragItemHandleMouseout_=function(W){zaZ(W.currentTarget,this.dragItemHandleHoverClasses_||[])};
var x6M=function(W,l){return W.x>l.left&&W.x<l.left+l.width&&W.y>l.top&&W.y<l.top+l.height},$69=function(W,l){W=W.dlgBounds_;
return Math.abs(l.y-(W.top+(W.height-1)/2))},eo$=function(W){return W.top+W.height-1},hoa=function(W){return W.left+W.width-1},SDk=function(W){return W.left||0},qDk=function(W,l){return W<l},E7X=function(W,l){return W>l},gk=function(W,l,V,f,r,R){_.AS.call(this,W);
this.event=V;this.currDragItem=f;this.draggerEl=r;this.JSC$11387_dragger=R};
_.Jj(gk,_.AS);_.Jj(CX,_.iI);var WKM=new _.O1(0,0);CX.prototype.JSC$11391_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
CX.prototype.JSC$11391_onMouseMove=function(W){var l=this.containerIsActuallyContent_?WKM:jt(IU(this.containerNode_)),V=this.horizontalScrolling_?this.calculateScrollDelta(W.clientX+l.x,this.scrollBounds_.left,this.scrollBounds_.width):0,f=this.calculateScrollDelta(W.clientY+l.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=V;this.scrollDelta_.y=f;!(V=!V&&!f)&&(V=this.constrainScroll_)&&(V=W.clientX+l.x,W=W.clientY+l.y,l=this.containerBounds_,V=!(l.left<=V&&l.left+l.width>=
V&&l.top<=W&&l.top+l.height>=W));V?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
CX.prototype.calculateScrollDelta=function(W,l,V){var f=0;W<l?f=-8:W>l+V&&(f=8);return f};
CX.prototype.disposeInternal=function(){CX.superClass_.disposeInternal.call(this);this.JSC$11389_eventHandler_.dispose();this.scrollTimer_.dispose()};var lda={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"}}},PO=lda;PO=lda;var nd={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 VMB=function(){},na=function(W){if(typeof W=="number"){var l=new VMB;
l.standardOffset_=W;var V=W;if(V==0)V="Etc/GMT";else{var f=["Etc/GMT",V<0?"-":"+"];V=Math.abs(V);f.push(Math.floor(V/60)%100);V%=60;V!=0&&f.push(":",_.vs(V,2));V=f.join("")}l.timeZoneId_=V;V=W;V==0?V="UTC":(f=["UTC",V<0?"+":"-"],V=Math.abs(V),f.push(Math.floor(V/60)%100),V%=60,V!=0&&f.push(":",V),V=f.join(""));W=fda(W);l.tzNames_=[V,V];l.tzNamesExt_={STD_LONG_NAME_GMT:W,STD_GENERIC_LOCATION:W};l.transitions_=[];return l}l=new VMB;l.timeZoneId_=W.id;l.standardOffset_=-W.std_offset;l.tzNames_=W.names;
l.tzNamesExt_=W.names_ext;l.transitions_=W.transitions;return l},fda=function(W){var l=["GMT"];
l.push(W<=0?"+":"-");W=Math.abs(W);l.push(_.vs(Math.floor(W/60)%100,2),":",_.vs(W%60,2));return l.join("")},rGc=function(W,l){l=Date.UTC(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate(),l.getUTCHours(),l.getUTCMinutes())/36E5;
for(var V=0;V<W.transitions_.length&&l>=W.transitions_[V];)V+=2;return V==0?0:W.transitions_[V-1]},RWL=function(W,l){W=W.standardOffset_-rGc(W,l);
return W===-1440?0:W};var Ca=function(W,l){this.patternParts_=[];this.JSC$11402_dateTimeSymbols_=l||j$;typeof W=="number"?tM9(this,W):sJ9(this,W)},LKL=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],Cd=function(W){return W.getHours?W.getHours():0},sJ9=function(W,l){for(uEz&&(l=l.replace(/\u200f/g,""));l;){for(var V=l,f=0;f<LKL.length;++f){var r=l.match(LKL[f]);
if(r){var R=r[0];l=l.substring(R.length);f==0&&(R=="''"?R="'":(R=R.substring(1,r[1]=="'"?R.length-1:R.length),R=R.replace(/''/g,"'")));W.patternParts_.push({text:R,type:f});break}}if(V===l)throw Error("Zd`"+l);}};
Ca.prototype.format=function(W,l){if(!W)throw Error("$d");var V=l?(W.getTimezoneOffset()-RWL(l,W))*6E4:0,f=V?new Date(W.getTime()+V):W,r=f;l&&f.getTimezoneOffset()!=W.getTimezoneOffset()&&(f=new Date(f.getTime()+(f.getTimezoneOffset()-W.getTimezoneOffset())*6E4),r=new Date(W.getTime()+(V+(V>0?-864E5:864E5))));V=[];for(var R=0;R<this.patternParts_.length;++R){var y=this.patternParts_[R].text;1==this.patternParts_[R].type?V.push(yGX(this,y,W,f,r,l)):V.push(y)}return V.join("")};
var tM9=function(W,l){if(l<4)var V=W.JSC$11402_dateTimeSymbols_.DATEFORMATS[l];else if(l<8)V=W.JSC$11402_dateTimeSymbols_.TIMEFORMATS[l-4];else if(l<12)V=W.JSC$11402_dateTimeSymbols_.DATETIMEFORMATS[l-8],V=V.replace("{1}",W.JSC$11402_dateTimeSymbols_.DATEFORMATS[l-8]),V=V.replace("{0}",W.JSC$11402_dateTimeSymbols_.TIMEFORMATS[l-8]);else if(l===12)V=W.JSC$11402_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(l===13)V=W.JSC$11402_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{tM9(W,10);return}sJ9(W,V)},cO=function(W,l){l=String(l);
W=W.JSC$11402_dateTimeSymbols_||j$;if(W.ZERODIGIT!==void 0&&!Uqx){for(var V=[],f=0;f<l.length;f++){var r=l.charCodeAt(f);V.push(48<=r&&r<=57?String.fromCharCode(W.ZERODIGIT+r-48):l.charAt(f))}l=V.join("")}return l},Uqx=!1,uEz=!1,PD1=function(W,l,V,f){V=V.getFullYear();
V<=0&&f&&(V=1-V);return cO(W,gJ$(V,l))},gJ$=function(W,l){l==2&&(W%=100);
W<0&&l++;return _.vs(W,l)},BO=function(W){if(!(W.getHours&&W.getSeconds&&W.getMinutes))throw Error("ae");
},nJZ=function(W,l){BO(l);
l=Cd(l);return W.JSC$11402_dateTimeSymbols_.AMPMS[l>=12&&l<24?1:0]},yGX=function(W,l,V,f,r,R){var y=l.length;
switch(l.charAt(0)){case "G":return V=f.getFullYear()>0?1:0,y>=4?W.JSC$11402_dateTimeSymbols_.ERANAMES[V]:W.JSC$11402_dateTimeSymbols_.ERAS[V];case "y":return PD1(W,y,f,!0);case "Y":return V=(new Date(cae(f.getFullYear(),f.getMonth(),f.getDate(),W.JSC$11402_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,W.JSC$11402_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),y==2&&(V%=100),cO(W,gJ$(V,y));case "u":return PD1(W,y,f,!1);case "M":a:switch(V=f.getMonth(),y){case 5:y=W.JSC$11402_dateTimeSymbols_.NARROWMONTHS[V];
break a;case 4:y=W.JSC$11402_dateTimeSymbols_.MONTHS[V];break a;case 3:y=W.JSC$11402_dateTimeSymbols_.SHORTMONTHS[V];break a;default:y=cO(W,_.vs(V+1,y))}return y;case "k":return BO(r),cO(W,_.vs(Cd(r)||24,y));case "S":return cO(W,(r.getMilliseconds()/1E3).toFixed(Math.min(3,y)).slice(2)+(y>3?_.vs(0,y-3):""));case "E":return V=f.getDay(),y>=4?W.JSC$11402_dateTimeSymbols_.WEEKDAYS[V]:W.JSC$11402_dateTimeSymbols_.SHORTWEEKDAYS[V];case "a":return nJZ(W,r);case "b":return nJZ(W,r);case "B":return nJZ(W,
r);case "h":return BO(r),cO(W,_.vs(Cd(r)%12||12,y));case "K":return BO(r),cO(W,_.vs(Cd(r)%12,y));case "H":return BO(r),cO(W,_.vs(Cd(r),y));case "c":a:switch(V=f.getDay(),y){case 5:y=W.JSC$11402_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[V];break a;case 4:y=W.JSC$11402_dateTimeSymbols_.STANDALONEWEEKDAYS[V];break a;case 3:y=W.JSC$11402_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[V];break a;default:y=cO(W,_.vs(V,1))}return y;case "L":a:switch(V=f.getMonth(),y){case 5:y=W.JSC$11402_dateTimeSymbols_.STANDALONENARROWMONTHS[V];
break a;case 4:y=W.JSC$11402_dateTimeSymbols_.STANDALONEMONTHS[V];break a;case 3:y=W.JSC$11402_dateTimeSymbols_.STANDALONESHORTMONTHS[V];break a;default:y=cO(W,_.vs(V+1,y))}return y;case "Q":return V=Math.floor(f.getMonth()/3),y<4?W.JSC$11402_dateTimeSymbols_.SHORTQUARTERS[V]:W.JSC$11402_dateTimeSymbols_.QUARTERS[V];case "d":return cO(W,_.vs(f.getDate(),y));case "m":return BO(r),cO(W,_.vs(r.getMinutes?r.getMinutes():0,y));case "s":return BO(r),cO(W,_.vs(r.getSeconds(),y));case "v":return(R||na(V.getTimezoneOffset())).timeZoneId_;
case "V":return W=R||na(V.getTimezoneOffset()),y<=2?W.timeZoneId_:rGc(W,V)>0?W.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?W.tzNamesExt_.DST_GENERIC_LOCATION:W.tzNamesExt_.DST_GENERIC_LOCATION:W.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?W.tzNamesExt_.STD_GENERIC_LOCATION:W.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return V=cae(r.getFullYear(),r.getMonth(),r.getDate(),W.JSC$11402_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,W.JSC$11402_dateTimeSymbols_.FIRSTDAYOFWEEK),cO(W,_.vs(Math.floor(Math.round((V-(new Date((new Date(V)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,y));case "z":return W=R||na(V.getTimezoneOffset()),y<4?W.tzNames_[rGc(W,V)>0?2:0]:W.tzNames_[rGc(W,V)>0?3:1];case "Z":return l=R||na(V.getTimezoneOffset()),y<4?(y=-RWL(l,V),W=[y<0?"-":"+"],y=Math.abs(y),W.push(_.vs(Math.floor(y/60)%100,2),_.vs(y%60,2)),y=W.join("")):y=cO(W,fda(RWL(l,V))),y;default:return""}};var CDL=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,cGI=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,Uw6=function(W){this.patternParts_=[];this.JSC$11411_dateTimeSymbols_=j$;if(typeof W=="number"){W>11&&(W=10);if(W<4)var l=this.JSC$11411_dateTimeSymbols_.DATEFORMATS[W];else W<8?l=this.JSC$11411_dateTimeSymbols_.TIMEFORMATS[W-4]:(l=this.JSC$11411_dateTimeSymbols_.DATETIMEFORMATS[W-8],l=l.replace("{1}",this.JSC$11411_dateTimeSymbols_.DATEFORMATS[W-8]),l=l.replace("{0}",this.JSC$11411_dateTimeSymbols_.TIMEFORMATS[W-
8]));Bmv(this,l)}else Bmv(this,W)},Bmv=function(W,l){for(var V=!1,f="",r=0;r<l.length;r++){var R=l.charAt(r);
if(CDL.test(R))for(f.length>0&&(W.patternParts_.push({text:f,count:0,abutStart:!1,numeric:!1}),f=""),W.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});r<l.length-1&&l.charAt(r+1)==" ";)r++;else if(V)R=="'"?r+1<l.length&&l.charAt(r+1)=="'"?(f+="'",r++):V=!1:f+=R;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(R)>=0){f.length>0&&(W.patternParts_.push({text:f,count:0,abutStart:!1,numeric:!1}),f="");for(var y=l.charAt(r),P=r+1;P<l.length&&l.charAt(P)==y;)P++;y=P-r;y<=0?P=!1:(P="MydhHmsSDkK".indexOf(R),
P=P>0||P==0&&y<3);W.patternParts_.push({text:R,count:y,abutStart:!1,numeric:P});r+=y-1}else R=="'"?r+1<l.length&&l.charAt(r+1)=="'"?(f+="'",r++):V=!0:f+=R}f.length>0&&W.patternParts_.push({text:f,count:0,abutStart:!1,numeric:!1});l=!1;for(V=0;V<W.patternParts_.length;V++)W.patternParts_[V].numeric?!l&&V+1<W.patternParts_.length&&W.patternParts_[V+1].numeric&&(l=!0,W.patternParts_[V].abutStart=!0):l=!1};
Uw6.prototype.parse=function(W,l,V){var f=!1,r=!1;V&&(f=V.predictive||!1,r=V.validate||!1);if(f)for(V=0;V<this.patternParts_.length;V++){var R=this.patternParts_[V];if(R.count>0&&("abBhHkKm".indexOf(R.text.charAt(0))<0||R.count>2||R.abutStart))throw Error("be`"+R.text.charAt(0));}R=new dae;V=[0];R.dayPeriodIndex=-1;for(var y=0;y<this.patternParts_.length&&!(f&&V[0]>=W.length);y++){if(this.patternParts_[y].count==0){a:{var P=W;var n=V,B=this.patternParts_[y],d=f;if(B.text.match(CDL)!=null){if(B=n[0],
JGB(P,n),n[0]>B){P=!0;break a}}else{if(P.indexOf(B.text,n[0])==n[0]){n[0]+=B.text.length;P=!0;break a}if(d&&B.text.indexOf(P.substring(n[0]))==0){n[0]+=P.length-n[0];P=!0;break a}}P=!1}if(P)continue;return 0}if(this.patternParts_[y].abutStart){a:{n=W;B=V;d=y;var J=B[0],D=0;for(P=d;P<this.patternParts_.length;P++){var u=this.patternParts_[P],H=u.count;if(H===0)break;if(P==d&&(H-=D,D++,H==0)){P=0;break a}var p=P>d&&u.numeric,X=B[0];if(!DaL(this,n,B,u,H,R,!1)||p&&B[0]-X<H)P=d-1,B[0]=J}P-=d}if(P<=0)return 0;
y+=P-1}else if(!DaL(this,W,V,this.patternParts_[y],0,R,f))return 0}a:{W=r;if(l==null)throw Error("ce");R.era!=void 0&&R.year!=void 0&&R.era==0&&R.year>0&&(R.year=-(R.year-1));R.year!=void 0&&l.setFullYear(R.year);f=l.getDate();l.setDate(1);R.month!=void 0&&l.setMonth(R.month);R.day!=void 0?l.setDate(R.day):(r=e76(l.getFullYear(),l.getMonth()),l.setDate(f>r?r:f));typeof l.setHours==="function"&&(R.hours==void 0&&(R.hours=l.getHours()),R.hours<12&&(R.ampm!=void 0&&R.ampm>0?R.hours+=12:R.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(R.dayPeriodName)||["night1","night2"].includes(R.dayPeriodName)&&R.hours>=6)&&(R.hours+=12)),l.setHours(R.hours));typeof l.setMinutes==="function"&&R.minutes!=void 0&&l.setMinutes(R.minutes);typeof l.setSeconds==="function"&&R.seconds!=void 0&&l.setSeconds(R.seconds);typeof l.setMilliseconds==="function"&&R.milliseconds!=void 0&&l.setMilliseconds(R.milliseconds);if(W&&(R.year&&R.year!=l.getFullYear()||R.month&&R.month!=
l.getMonth()||R.day&&R.day!=l.getDate()||R.hours&&R.hours>=24||R.minutes&&R.minutes>=60||R.seconds&&R.seconds>=60||R.milliseconds&&R.milliseconds>=1E3))l=!1;else{R.tzOffset!=void 0&&l.setTime(l.getTime()+(R.tzOffset-l.getTimezoneOffset())*60*1E3);R.ambiguousYear&&(W=new Date,W.setFullYear(W.getFullYear()-80),l.getTime()<W.getTime()&&l.setFullYear(W.getFullYear()+100));if(R.dayOfWeek!=void 0)if(R.day==void 0)R=(7+R.dayOfWeek-l.getDay())%7,R>3&&(R-=7),W=l.getMonth(),l.setDate(l.getDate()+R),l.getMonth()!=
W&&l.setDate(l.getDate()+(R>0?-7:7));else if(R.dayOfWeek!=l.getDay()){l=!1;break a}l=!0}}return l?V[0]:0};
var DaL=function(W,l,V,f,r,R,y){JGB(l,V);if(f.numeric&&r>0&&V[0]+r>l.length)return!1;switch(f.text.charAt(0)){case "G":return dk(l,V,[W.JSC$11411_dateTimeSymbols_.ERAS],function(P){return R.era=P}),!0;
case "M":case "L":return Ua9(W,l,V,r,f,R);case "E":return dk(l,V,[W.JSC$11411_dateTimeSymbols_.WEEKDAYS,W.JSC$11411_dateTimeSymbols_.SHORTWEEKDAYS],function(P){return R.dayOfWeek=P});
case "B":case "b":return r=[],W=[[].concat(W.JSC$11411_dateTimeSymbols_.AMPMS)],r.push("isAm"),r.push("isPm"),l=dk(l,V,W,function(P){return R.dayPeriodIndex=P},y),R.dayPeriodName=r[R.dayPeriodIndex],y?l:!0;
case "a":return l=dk(l,V,[W.JSC$11411_dateTimeSymbols_.AMPMS],function(P){return R.ampm=P},y),y?l:!0;
case "y":return uYB(W,l,V,f,r,R);case "Q":return dk(l,V,[W.JSC$11411_dateTimeSymbols_.QUARTERS,W.JSC$11411_dateTimeSymbols_.SHORTQUARTERS],function(P){R.month=P*3;R.day=1});
case "d":return Ju(W,l,V,f,r,function(P){R.day=P}),!0;
case "S":return kG9(W,l,V,r,R);case "h":case "K":case "H":case "k":return l=Ju(W,l,V,f,r,function(P){R.hours=f.text.charAt(0)==="h"&&P===12?0:P},y),y?l:!0;
case "m":return l=Ju(W,l,V,f,r,function(P){R.minutes=P},y),y?l:!0;
case "s":return Ju(W,l,V,f,r,function(P){R.seconds=P}),!0;
case "z":case "Z":case "v":return vJX(W,l,V,R);default:return!1}},uYB=function(W,l,V,f,r,R){var y=V[0];
r=D3(W,l,V,r);r===null&&(r=D3(W,l,V,0,!0));if(r===null)return!1;r>=0&&V[0]-y==2&&f.count==2?(W=r,l=(new Date).getFullYear()-80,V=l%100,R.ambiguousYear=W==V,W+=Math.floor(l/100)*100+(W<V?100:0),R.year=W):R.year=r;return!0},Ua9=function(W,l,V,f,r,R){return r.numeric&&Ju(W,l,V,r,f,function(y){R.month=y-1})?!0:dk(l,V,[W.JSC$11411_dateTimeSymbols_.MONTHS,
W.JSC$11411_dateTimeSymbols_.STANDALONEMONTHS,W.JSC$11411_dateTimeSymbols_.SHORTMONTHS,W.JSC$11411_dateTimeSymbols_.STANDALONESHORTMONTHS],function(y){R.month=y})},kG9=function(W,l,V,f,r){var R=V[0];
W=D3(W,l,V,f);if(W===null)return!1;V=V[0]-R;r.milliseconds=V<3?W*Math.pow(10,3-V):Math.round(W/Math.pow(10,V-3));return!0},vJX=function(W,l,V,f){l.indexOf("GMT",V[0])==V[0]&&(V[0]+=3);
if(V[0]>=l.length)return f.tzOffset=0,!0;var r=V[0],R=D3(W,l,V,0,!0);if(R===null)return!1;if(V[0]<l.length&&l.charAt(V[0])==":"){var y=R*60;V[0]++;R=D3(W,l,V,0);if(R===null)return!1;y+=R}else y=R,y=y<24&&V[0]-r<=3?y*60:y%100+y/100*60;f.tzOffset=-y;return!0},Ju=function(W,l,V,f,r,R,y){y=y||!1;
var P=V[0];W=D3(W,l,V,r);if(W===null)return!1;if(y&&V[0]-P<f.count){if(V[0]<l.length)return!1;W*=Math.pow(10,f.count-(V[0]-P))}R(W);return!0},dk=function(W,l,V,f,r){r=r||!1;
for(var R,y=0;y<V.length;y++){R=l;for(var P=V[y],n=r,B=0,d=null,J=W.substring(R[0]).toLowerCase(),D=0;D<P.length;D++){var u=P[D].toLowerCase();if(n&&u.indexOf(J)==0){B=J.length;d=D;break}P[D].length>B&&J.indexOf(u)==0&&(B=P[D].length,d=D)}d!==null&&(R[0]+=B);R=d;if(R!==null)return f(R),!0}return!1},JGB=function(W,l){(W=W.substring(l[0]).match(cGI))&&(l[0]+=W[0].length)},D3=function(W,l,V,f,r){l=f>0?l.substring(0,V[0]+f):l;
r=r||!1;if(W.JSC$11411_dateTimeSymbols_.ZERODIGIT){f=[];for(var R=V[0];R<l.length;R++){var y=l.charCodeAt(R)-W.JSC$11411_dateTimeSymbols_.ZERODIGIT;f.push(0<=y&&y<=9?String.fromCharCode(y+48):l.charAt(R))}l=f.join("")}else l=l.substring(V[0]);W=l.match(new RegExp("^"+(r?"[+-]?":"")+"\\d+"));if(!W)return null;V[0]+=W[0].length;return parseInt(W[0],10)},dae=function(){};
dae.prototype.ambiguousYear=!1;_.HkX={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 KKe={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"},FKX=KKe,GGB=KKe;GGB=FKX=KKe;var pEX,U2,k6,Qc6,u9,bkZ;
_.y1=function(W,l,V,f){var r;if(r=l){a:if(l&&l.length===3){for(r=0;r<3;r++){var R=l[r];if(R<"A"||R>"Z"&&R<"a"||R>"z"){r=!1;break a}}r=!0}else r=!1;r=!r}if(r)throw new TypeError("de");this.intlCurrencyCode_=l?l.toUpperCase():null;this.currencyStyle_=V||0;this.overrideNumberFormatSymbols_=f||null;this.maximumIntegerDigits_=40;this.minimumIntegerDigits_=1;this.significantDigits_=0;this.maximumFractionDigits_=3;this.minExponentDigits_=this.minimumFractionDigits_=0;this.useSignForPositiveExponent_=!1;
this.positiveSuffix_=this.positivePrefix_="";this.negativePrefix_=U2(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof W==="number")switch(W){case 1:u9(this,U2(this).DECIMAL_PATTERN);break;case 2:u9(this,U2(this).SCIENTIFIC_PATTERN);break;case 3:u9(this,U2(this).PERCENT_PATTERN);break;case 4:W=U2(this).CURRENCY_PATTERN;l=["0"];if(V=
nd[k6(this)]){V=V[0]&7;if(V>0)for(l.push("."),f=0;f<V;f++)l.push("0");W=W.replace(/0.00/g,l.join(""))}u9(this,W);break;case 5:bkZ(this,1);break;case 6:bkZ(this,2);break;default:throw Error("ge");}else u9(this,W)};
pEX=!1;U2=function(W){return W.overrideNumberFormatSymbols_||(pEX?GGB:FKX)};
k6=function(W){return W.intlCurrencyCode_||U2(W).DEF_CURRENCY_CODE};
Qc6=function(W,l){if(l>308)throw Error("fe`"+l);W.maximumFractionDigits_=l;return W};
u9=function(W,l){var V=[0];W.positivePrefix_=oJL(W,l,V);for(var f=V[0],r=-1,R=0,y=0,P=0,n=-1,B=l.length,d=!0;V[0]<B&&d;V[0]++)switch(l.charAt(V[0])){case "#":y>0?P++:R++;n>=0&&r<0&&n++;break;case "0":if(P>0)throw Error("me`"+l);y++;n>=0&&r<0&&n++;break;case ",":n>0&&W.groupingArray_.push(n);n=0;break;case ".":if(r>=0)throw Error("ne`"+l);r=R+y+P;break;case "E":if(W.useExponentialNotation_)throw Error("oe`"+l);W.useExponentialNotation_=!0;W.minExponentDigits_=0;V[0]+1<B&&l.charAt(V[0]+1)=="+"&&(V[0]++,
W.useSignForPositiveExponent_=!0);for(;V[0]+1<B&&l.charAt(V[0]+1)=="0";)V[0]++,W.minExponentDigits_++;if(R+y<1||W.minExponentDigits_<1)throw Error("pe`"+l);d=!1;break;default:V[0]--,d=!1}y==0&&R>0&&r>=0&&(y=r,y==0&&y++,P=R-y,R=y-1,y=1);if(r<0&&P>0||r>=0&&(r<R||r>R+y)||n==0)throw Error("qe`"+l);P=R+y+P;W.maximumFractionDigits_=r>=0?P-r:0;r>=0&&(W.minimumFractionDigits_=R+y-r,W.minimumFractionDigits_<0&&(W.minimumFractionDigits_=0));W.minimumIntegerDigits_=(r>=0?r:P)-R;W.useExponentialNotation_&&(W.maximumIntegerDigits_=
R+W.minimumIntegerDigits_,W.maximumFractionDigits_==0&&W.minimumIntegerDigits_==0&&(W.minimumIntegerDigits_=1));W.groupingArray_.push(Math.max(0,n));W.decimalSeparatorAlwaysShown_=r==0||r==P;f=V[0]-f;W.positiveSuffix_=oJL(W,l,V);V[0]<l.length&&l.charAt(V[0])==";"?(V[0]++,W.multiplier_!=1&&(W.negativePercentSignExpected_=!0),W.negativePrefix_=oJL(W,l,V),V[0]+=f,W.negativeSuffix_=oJL(W,l,V)):(W.negativePrefix_+=W.positivePrefix_,W.negativeSuffix_+=W.positiveSuffix_)};
bkZ=function(W,l){W.compactStyle_=l;u9(W,U2(W).DECIMAL_PATTERN);W.minimumFractionDigits_=0;Qc6(W,2);if(W.minimumFractionDigits_>0)throw Error("ee");W.significantDigits_=2};
_.y1.prototype.parse=function(W,l){l=l||[0];if(this.compactStyle_!==0)throw Error("he");W=W.replace(/ |\u202f/g,"\u00a0");var V=W.indexOf(this.positivePrefix_,l[0])==l[0],f=W.indexOf(this.negativePrefix_,l[0])==l[0];V&&f&&(this.positivePrefix_.length>this.negativePrefix_.length?f=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(V=!1));V?l[0]+=this.positivePrefix_.length:f&&(l[0]+=this.negativePrefix_.length);if(W.indexOf(U2(this).INFINITY,l[0])==l[0]){l[0]+=U2(this).INFINITY.length;var r=
Infinity}else{r=W;var R=!1,y=!1,P=!1,n=-1,B=1,d=U2(this).DECIMAL_SEP,J=U2(this).GROUP_SEP,D=U2(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ie");J=J.replace(/\u202f/g,"\u00a0");for(var u="";l[0]<r.length;l[0]++){var H=r.charAt(l[0]),p=jJk(this,H);if(p>=0&&p<=9)u+=p,P=!0;else if(H==d.charAt(0)){if(R||y)break;u+=".";R=!0}else if(H==J.charAt(0)&&("\u00a0"!=J.charAt(0)||l[0]+1<r.length&&jJk(this,r.charAt(l[0]+1))>=0)){if(R||y)break}else if(H==D.charAt(0)){if(y)break;u+="E";y=!0;n=l[0]}else if(H==
"+"||H=="-"){if(P&&n!=l[0]-1)break;u+=H}else if(this.multiplier_==1&&H==U2(this).PERCENT.charAt(0)){if(B!=1)break;B=100;if(P){l[0]++;break}}else if(this.multiplier_==1&&H==U2(this).PERMILL.charAt(0)){if(B!=1)break;B=1E3;if(P){l[0]++;break}}else break}this.multiplier_!=1&&(B=this.multiplier_);r=parseFloat(u)/B}if(V){if(W.indexOf(this.positiveSuffix_,l[0])!=l[0])return NaN;l[0]+=this.positiveSuffix_.length}else if(f){if(W.indexOf(this.negativeSuffix_,l[0])!=l[0])return NaN;l[0]+=this.negativeSuffix_.length}return f?
-r:r};
_.y1.prototype.format=function(W){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("je");if(isNaN(W))return U2(this).NAN;var l=[];var V=W;if(this.compactStyle_==0)V=vO;else{V=Math.abs(V);var f=Idc(this,V<=1?0:ikk(V)).divisorBase;V=Idc(this,f+ikk(maL(this,HO(V,-f)).intValue))}W=HO(W,-V.divisorBase);(f=W<0||W==0&&1/W<0)?V.negative_prefix?l.push(V.negative_prefix):(l.push(V.prefix),l.push(this.negativePrefix_)):(l.push(V.prefix),l.push(this.positivePrefix_));if(isFinite(W))if(W*=
f?-1:1,W*=this.multiplier_,this.useExponentialNotation_){var r=W;if(r==0)XEa(this,r,this.minimumIntegerDigits_,l),TmL(this,0,l);else{var R=Math.floor(Math.log(r)/Math.log(10)+2E-15);r=HO(r,-R);var y=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(y=R%this.maximumIntegerDigits_,y<0&&(y=this.maximumIntegerDigits_+y),r=HO(r,y),R-=y,y=1):this.minimumIntegerDigits_<1?(R++,r=HO(r,-1)):(R-=this.minimumIntegerDigits_-1,r=HO(r,this.minimumIntegerDigits_-
1));XEa(this,r,y,l);TmL(this,R,l)}}else XEa(this,W,this.minimumIntegerDigits_,l);else l.push(U2(this).INFINITY);f?V.negative_suffix?l.push(V.negative_suffix):(isFinite(W)&&l.push(V.suffix),l.push(this.negativeSuffix_)):(isFinite(W)&&l.push(V.suffix),l.push(this.positiveSuffix_));return l.join("")};
var maL=function(W,l){var V=HO(l,W.maximumFractionDigits_);W.significantDigits_>0&&(V=wEI(V,W.significantDigits_,W.maximumFractionDigits_));V=Math.round(V);if(isFinite(V)){var f=Math.floor(HO(V,-W.maximumFractionDigits_));V=Math.floor(V-HO(f,W.maximumFractionDigits_));if(V<0||V>=HO(1,W.maximumFractionDigits_))f=Math.round(l),V=0}else f=l,V=0;return{intValue:f,fracValue:V}},XEa=function(W,l,V,f){if(W.minimumFractionDigits_>W.maximumFractionDigits_)throw Error("je");
f||(f=[]);l=maL(W,l);var r=l.intValue,R=l.fracValue,y=W.minimumFractionDigits_>0||R>0||!1;l=W.minimumFractionDigits_;y&&(l=W.minimumFractionDigits_);for(var P="",n=r;n>1E20;)P="0"+P,n=Math.round(HO(n,-1));P=n+P;var B=U2(W).DECIMAL_SEP;n=U2(W).ZERO_DIGIT.codePointAt(0);var d=P.length,J=0;if(r>0||V>0){for(r=d;r<V;r++)f.push(String.fromCodePoint(n));if(W.groupingArray_.length>=2)for(V=1;V<W.groupingArray_.length;V++)J+=W.groupingArray_[V];V=d-J;if(V>0){r=W.groupingArray_;J=d=0;for(var D,u=U2(W).GROUP_SEP,
H=P.length,p=0;p<H;p++)if(f.push(String.fromCodePoint(n+Number(P.charAt(p)))),H-p>1)if(D=r[J],p<V){var X=V-p;(D===1||D>0&&X%D===1)&&f.push(u)}else J<r.length&&(p===V?J+=1:D===p-V-d+1&&(f.push(u),d+=D,J+=1))}else{V=P;P=W.groupingArray_;r=U2(W).GROUP_SEP;D=V.length;u=[];for(d=P.length-1;d>=0&&D>0;d--){J=P[d];for(H=0;H<J&&D-H-1>=0;H++)u.push(String.fromCodePoint(n+Number(V.charAt(D-H-1))));D-=J;D>0&&u.push(r)}f.push.apply(f,u.reverse())}}else y||f.push(String.fromCodePoint(n));(W.decimalSeparatorAlwaysShown_||
y)&&f.push(B);R=String(R);y=R.split("e+");y.length==2&&(R=String(wEI(parseFloat(y[0]),W.significantDigits_,1)),R=R.replace(".",""),R+=(0,_.D1e)("0",parseInt(y[1],10)-R.length+1));W.maximumFractionDigits_+1>R.length&&(R="1"+(0,_.D1e)("0",W.maximumFractionDigits_-R.length)+R);for(W=R.length;R.charAt(W-1)=="0"&&W>l+1;)W--;for(l=1;l<W;l++)f.push(String.fromCodePoint(n+Number(R.charAt(l))))},TmL=function(W,l,V){V.push(U2(W).EXP_SYMBOL);
l<0?(l=-l,V.push(U2(W).MINUS_SIGN)):W.useSignForPositiveExponent_&&V.push(U2(W).PLUS_SIGN);l=""+l;for(var f=U2(W).ZERO_DIGIT,r=l.length;r<W.minExponentDigits_;r++)V.push(f);W=f.codePointAt(0)-AG9;for(f=0;f<l.length;f++)V.push(String.fromCodePoint(W+l.codePointAt(f)))},jJk=function(W,l){l=l.codePointAt(0);
if(48<=l&&l<58)return l-48;W=U2(W).ZERO_DIGIT.codePointAt(0);return W<=l&&l<W+10?l-W:-1},AG9="0".codePointAt(0),oJL=function(W,l,V){for(var f="",r=!1,R=l.length;V[0]<R;V[0]++){var y=l.charAt(V[0]);
if(y=="'")V[0]+1<R&&l.charAt(V[0]+1)=="'"?(V[0]++,f+="'"):r=!r;else if(r)f+=y;else switch(y){case "#":case "0":case ",":case ".":case ";":return f;case "\u00a4":if(V[0]+1<R&&l.charAt(V[0]+1)=="\u00a4")V[0]++,f+=k6(W);else switch(W.currencyStyle_){case 0:y=k6(W);f+=y in nd?nd[y][1]:y;break;case 2:y=k6(W);var P=nd[y];f+=P?y==P[1]?y:y+" "+P[1]:y;break;case 1:y=k6(W),f+=y in nd?nd[y][2]:y}break;case "%":if(!W.negativePercentSignExpected_&&W.multiplier_!=1)throw Error("ke");if(W.negativePercentSignExpected_&&
W.multiplier_!=100)throw Error("le");W.multiplier_=100;W.negativePercentSignExpected_=!1;f+=U2(W).PERCENT;break;case "\u2030":if(!W.negativePercentSignExpected_&&W.multiplier_!=1)throw Error("ke");if(W.negativePercentSignExpected_&&W.multiplier_!=1E3)throw Error("le");W.multiplier_=1E3;W.negativePercentSignExpected_=!1;f+=U2(W).PERMILL;break;default:f+=y}}return f},vO={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},Idc=function(W,l){W=W.compactStyle_==1?PO.COMPACT_DECIMAL_SHORT_PATTERN:PO.COMPACT_DECIMAL_LONG_PATTERN;W==null&&(W=PO.COMPACT_DECIMAL_SHORT_PATTERN);if(l<3)return vO;l=Math.min(14,l);var V=W[HO(1,l)];for(--l;!V&&l>=3;)V=W[HO(1,l)],l--;if(!V)return vO;V=V.other;var f=W="",r=V.indexOf(";");r>=0&&(V=V.substring(0,r),r=V.substring(r+1))&&(f=/([^0]*)(0+)(.*)/.exec(r),W=f[1],f=f[3]);return V&&V!="0"?(V=/([^0]*)(0+)(.*)/.exec(V))?{divisorBase:l+
1-(V[2].length-1),negative_prefix:W,negative_suffix:f,prefix:V[1],suffix:V[3]}:vO:vO},ikk=function(W){if(!isFinite(W))return W>0?W:0;
for(var l=0;(W/=10)>=1;)l++;return l},HO=function(W,l){if(!W||!isFinite(W)||l==0)return W;
W=String(W).split("e");return parseFloat(W[0]+"e"+(parseInt(W[1]||0,10)+l))},QJM=function(W,l){return W&&isFinite(W)?HO(Math.round(HO(W,l)),-l):W},wEI=function(W,l,V){if(!W)return W;
l=l-ikk(W)-1;return l<-V?QJM(W,-V):QJM(W,l)};var MML=function(W){return W%10==1&&W%100!=11?"one":W%10==2&&W%100!=12?"two":W%10==3&&W%100!=13?"few":"other"},Zka=MML;
Zka=MML;var OkL;OkL=function(W,l){var V=W|0;if(void 0===l){l=Math;var f=l.min,r=W+"",R=r.indexOf(".");l=f.call(l,R===-1?0:r.length-R-1,3)}f=Math.pow(10,l);W={v:l,f:(W*f|0)%f};return V==1&&W.v==0?"one":"other"};
_.cl=OkL;_.cl=OkL;var ad$,zW$,Nme,xaZ,eWM;_.YUv=function(W){this.JSC$11454_pattern_=W;this.parsedPattern_=this.literals_=this.initialLiterals_=null;W=FKX;var l=PO;if(ad$!==W||zW$!==l)ad$=W,zW$=l,Nme=new _.y1(1);this.numberFormatter_=Nme};
ad$=null;zW$=null;Nme=null;xaZ=RegExp("'([{}#].*?)'","g");eWM=RegExp("''","g");
_.YUv.prototype.format=function(W){if(this.JSC$11454_pattern_){this.initialLiterals_=[];var l=qUB(this,this.JSC$11454_pattern_);this.parsedPattern_=hWa(this,l);this.JSC$11454_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.z6(this.initialLiterals_),l=[],SUX(this,this.parsedPattern_,W,!1,l),W=l.join("");this.literals_.length>0;)W=W.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else W="";return W};
var SUX=function(W,l,V,f,r){for(var R=0;R<l.length;R++)switch(l[R].type){case 4:r.push(l[R].value);break;case 3:var y=l[R].value;var P=W,n=r,B=V[y];B===void 0?n.push("Undefined parameter - "+y):(P.literals_.push(B),n.push(P.buildPlaceholder_(P.literals_)));break;case 2:y=l[R].value;P=W;n=V;B=f;var d=r,J=y.argumentIndex;n[J]===void 0?d.push("Undefined parameter - "+J):(J=y[n[J]],J===void 0&&(J=y.other),SUX(P,J,n,B,d));break;case 0:y=l[R].value;EJI(W,y,V,_.cl,f,r);break;case 1:y=l[R].value,EJI(W,y,
V,Zka,f,r)}},EJI=function(W,l,V,f,r,R){var y=l.argumentIndex,P=l.argumentOffset,n=+V[y];
isNaN(n)?R.push("Undefined or invalid parameter - "+y):(P=n-P,y=l[V[y]],y===void 0&&(f=f(Math.abs(P)),y=l[f],y===void 0&&(y=l.other)),l=[],SUX(W,y,V,r,l),V=l.join(""),r?R.push(V):(W=W.numberFormatter_.format(P),R.push(V.replace(/#/g,W))))},qUB=function(W,l){var V=W.initialLiterals_,f=W.buildPlaceholder_.bind(W);
l=l.replace(eWM,function(){V.push("'");return f(V)});
return l=l.replace(xaZ,function(r,R){V.push(R);return f(V)})},$aL=function(W){var l=0,V=[],f=[],r=/[{}]/g;
r.lastIndex=0;for(var R;R=r.exec(W);){var y=R.index;R[0]=="}"?(V.pop(),V.length==0&&(R={type:1},R.value=W.substring(l,y),f.push(R),l=y+1)):(V.length==0&&(l=W.substring(l,y),l!=""&&f.push({type:0,value:l}),l=y+1),V.push("{"))}W=W.substring(l);W!=""&&f.push({type:0,value:W});return f},Wr9=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,lNB=/^\s*(\w+)\s*,\s*selectordinal\s*,/,V1L=/^\s*(\w+)\s*,\s*select\s*,/,hWa=function(W,l){var V=[];
l=$aL(l);for(var f=0;f<l.length;f++){var r={};if(0==l[f].type)r.type=4,r.value=l[f].value;else if(1==l[f].type){var R=l[f].value;switch(Wr9.test(R)?0:lNB.test(R)?1:V1L.test(R)?2:/^\s*\w+\s*/.test(R)?3:5){case 2:r.type=2;r.value=fNc(W,l[f].value);break;case 0:r.type=0;r.value=r2B(W,l[f].value);break;case 1:r.type=1;r.value=Rw1(W,l[f].value);break;case 3:r.type=3,r.value=l[f].value}}V.push(r)}return V},fNc=function(W,l){var V="";
l=l.replace(V1L,function(P,n){V=n;return""});
var f={};f.argumentIndex=V;l=$aL(l);for(var r=0;r<l.length;){var R=l[r].value;r++;var y=void 0;1==l[r].type&&(y=hWa(W,l[r].value));f[R.replace(/\s/g,"")]=y;r++}return f},r2B=function(W,l){var V="",f=0;
l=l.replace(Wr9,function(n,B,d){V=B;d&&(f=parseInt(d,10));return""});
var r={};r.argumentIndex=V;r.argumentOffset=f;l=$aL(l);for(var R=0;R<l.length;){var y=l[R].value;R++;var P=void 0;1==l[R].type&&(P=hWa(W,l[R].value));r[y.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=P;R++}return r},Rw1=function(W,l){var V="";
l=l.replace(lNB,function(P,n){V=n;return""});
var f={};f.argumentIndex=V;f.argumentOffset=0;l=$aL(l);for(var r=0;r<l.length;){var R=l[r].value;r++;var y=void 0;1==l[r].type&&(y=hWa(W,l[r].value));f[R.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=y;r++}return f};
_.YUv.prototype.buildPlaceholder_=function(W){return"\ufddf_"+(W.length-1).toString(10)+"_"};var t1L;
t1L={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 HAq=function(){this.rdtfSymbols_=sfc||t1L;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
HAq.prototype.format=function(W,l){a:{l=Lr$(this,l);switch(this.style_){case 2:if(l.NARROW!=void 0){l=l.NARROW;break a}case 1:if(l.SHORT!=void 0){l=l.SHORT;break a}default:l=l.LONG;break a}l=void 0}if(!this.alwaysNumeric_&&l&&l.R&&l.R[""+W])W=l.R[""+W];else if(l){var V=Math.abs(W);W=(new _.YUv("{N,plural,"+(W>0||W==0&&1/W==Infinity?l.F:l.P)+"}")).format({N:V})}else W="";return W};
var Lr$=function(W,l){switch(l){default:case 0:return W.rdtfSymbols_.YEAR;case 1:return W.rdtfSymbols_.QUARTER;case 2:return W.rdtfSymbols_.MONTH;case 3:return W.rdtfSymbols_.WEEK;case 4:return W.rdtfSymbols_.DAY;case 5:return W.rdtfSymbols_.HOUR;case 6:return W.rdtfSymbols_.MINUTE;case 7:return W.rdtfSymbols_.SECOND}};var y2a=function(W,l,V,f,r,R,y,P){this.x0=W;this.y0=l;this.x1=V;this.y1=f;this.x2=r;this.y2=R;this.x3=y;this.y3=P};
y2a.prototype.clone=function(){return new y2a(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
y2a.prototype.equals=function(W){return this.x0==W.x0&&this.y0==W.y0&&this.x1==W.x1&&this.y1==W.y1&&this.x2==W.x2&&this.y2==W.y2&&this.x3==W.x3&&this.y3==W.y3};
var ghk=function(W,l){if(l==0)return W.x0;if(l==1)return W.x3;var V=an(W.x0,W.x1,l),f=an(W.x1,W.x2,l);W=an(W.x2,W.x3,l);V=an(V,f,l);f=an(f,W,l);return an(V,f,l)},Pp$=function(W,l){var V=(l-W.x0)/(W.x3-W.x0);
if(V<=0)return 0;if(V>=1)return 1;for(var f=0,r=1,R=0,y=0;y<8;y++){R=ghk(W,V);var P=(ghk(W,V+1E-6)-R)/1E-6;if(Math.abs(R-l)<1E-6)return V;if(Math.abs(P)<1E-6)break;else R<l?f=V:r=V,V-=(R-l)/P}for(y=0;Math.abs(R-l)>1E-6&&y<8;y++)R<l?(f=V,V=(V+r)/2):(r=V,V=(V+f)/2),R=ghk(W,V);return V};var Kd=function(){_.aj.call(this);this.JSC$11475_name_="closure_frame"+nhL++;this.iframesForDisposal_=[];CpI[this.JSC$11475_name_]=this},FS;
_.Jj(Kd,_.aj);var CpI={},nhL=0,c2L=function(W,l){var V=IU(W);KwM(l,function(f,r){Array.isArray(f)||(f=[f]);_.q4(f,function(R){R=V.JSC$9323_createDom("INPUT",{type:"hidden",name:r,value:R});W.appendChild(R)})})};
_.t=Kd.prototype;_.t.JSC$11477_form_=null;_.t.JSC$11477_iframe_=null;_.t.iframeName_=null;_.t.nextIframeId_=0;_.t.JSC$11477_active_=!1;_.t.complete_=!1;_.t.success_=!1;_.t.lastContent_=null;_.t.JSC$11477_lastErrorCode_=0;_.t.iframeDisposalTimer_=null;
_.t.send=function(W,l,V,f){if(this.JSC$11477_active_)throw Error("re");W=new _.dg(W);l=l?l.toUpperCase():"GET";V&&_.or(W);FS||(FS=_.xR("FORM"),FS.acceptCharset="utf-8",V=FS.style,V.position="absolute",V.visibility="hidden",V.top=V.left="-10px",V.width=V.height="10px",V.overflow="hidden",document.body.appendChild(FS));this.JSC$11477_form_=FS;l=="GET"&&c2L(this.JSC$11477_form_,W.JSC$10026_queryData_);f&&c2L(this.JSC$11477_form_,f);V=W.toString();V=Ijx(V);f=this.JSC$11477_form_;V=_.ee(AO(V));V!==void 0&&
(f.action=V);this.JSC$11477_form_.method=l;BNa(this);deB(this)};
_.t.abort=function(W){if(this.JSC$11477_active_){var l=Gp(this);if(l)if(MR(l))l.removeAllListeners(void 0);else if(l=Zn(l)){var V=0,f;for(f in l.listeners)for(var r=l.listeners[f].concat(),R=0;R<r.length;++R)aJ(r[R])&&++V}this.success_=this.JSC$11477_active_=this.complete_=!1;this.JSC$11477_lastErrorCode_=W||7;this.dispatchEvent("abort");J2M(this)}};
_.t.disposeInternal=function(){this.JSC$11477_active_&&this.abort();Kd.superClass_.disposeInternal.call(this);this.JSC$11477_iframe_&&Dea(this);deB(this);this.JSC$11477_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11477_form_=null;this.JSC$11477_lastErrorCode_=0;delete CpI[this.JSC$11475_name_]};
_.t.isComplete=function(){return this.complete_};
_.t.isSuccess=function(){return this.success_};
_.t.isActive=function(){return this.JSC$11477_active_};
_.t.getResponseText=function(){return this.lastContent_};
_.t.getLastError=function(){return _.l1c(this.JSC$11477_lastErrorCode_)};
var BNa=function(W){W.JSC$11477_active_=!0;W.complete_=!1;W.JSC$11477_lastErrorCode_=0;W.iframeName_=W.JSC$11475_name_+"_"+(W.nextIframeId_++).toString(36);W.JSC$11477_iframe_=IU(W.JSC$11477_form_).JSC$9323_createDom("IFRAME",{name:W.iframeName_,id:W.iframeName_});var l=W.JSC$11477_iframe_.style;l.visibility="hidden";l.width=l.height="10px";l.display="none";_.HF?l.marginTop=l.marginLeft="-10px":(l.position="absolute",l.top=l.left="-10px");IU(W.JSC$11477_form_).JSC$9321_document_.body.appendChild(W.JSC$11477_iframe_);
l=W.iframeName_+"_inner";var V=Z2M(W.JSC$11477_iframe_);if(document.baseURI){var f=Fx(l);f='<head><base href="'+Fx(document.baseURI)+'"></head><body><iframe id="'+f+'" name="'+f+'"></iframe>';f=EP(f)}else f=Fx(l),f=EP('<body><iframe id="'+f+'" name="'+f+'"></iframe>');V.write($k(f));_.YJ(V.getElementById(l),"load",W.onIframeLoaded_,!1,W);f=ps("TEXTAREA",W.JSC$11477_form_);for(var r=0,R=f.length;r<R;r++){var y=f[r].value;xHI(f[r])!=y&&(_.WW(f[r],y),f[r].value=y)}f=V.importNode(W.JSC$11477_form_,!0);
f.target=l;f.action=W.JSC$11477_form_.action;V.body.appendChild(f);r=ps("SELECT",W.JSC$11477_form_);R=ps("SELECT",f);y=0;for(var P=r.length;y<P;y++)for(var n=ps("OPTION",r[y]),B=ps("OPTION",R[y]),d=0,J=n.length;d<J;d++)B[d].selected=n[d].selected;r=ps("INPUT",W.JSC$11477_form_);R=ps("INPUT",f);y=0;for(P=r.length;y<P;y++)if(r[y].type=="file"&&r[y].value!=R[y].value){W.JSC$11477_form_.target=l;f=W.JSC$11477_form_;break}try{W.errorHandled_=!1,f.submit(),V.close(),_.vF&&setTimeout(W.testForFirefoxSilentError_.bind(W),
250)}catch(D){_.Of(V.getElementById(l),"load",W.onIframeLoaded_,!1,W),V.close(),b9(W,2)}};
Kd.prototype.onIframeLoaded_=function(){_.Of(Gp(this),"load",this.onIframeLoaded_,!1,this);try{var W=this.JSC$11477_iframe_?Z2M(Gp(this)):null;this.complete_=!0;this.JSC$11477_active_=!1;try{var l=W.body;this.lastContent_=l.textContent||l.innerText}catch(r){var V=1}var f;V||typeof this.errorChecker_!="function"||(f=this.errorChecker_(W))&&(V=4);V?b9(this,V):(this.success_=!0,this.JSC$11477_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),J2M(this))}catch(r){b9(this,1)}};
var b9=function(W,l){W.errorHandled_||(W.success_=!1,W.JSC$11477_active_=!1,W.complete_=!0,W.JSC$11477_lastErrorCode_=l,W.dispatchEvent("complete"),W.dispatchEvent("error"),J2M(W),W.errorHandled_=!0)},J2M=function(W){Dea(W);
deB(W);W.JSC$11477_form_=null;W.dispatchEvent("ready")},Dea=function(W){var l=W.JSC$11477_iframe_;
l&&(l.onreadystatechange=null,l.onload=null,l.onerror=null,W.iframesForDisposal_.push(l));W.iframeDisposalTimer_&&(clearTimeout(W.iframeDisposalTimer_),W.iframeDisposalTimer_=null);_.vF?W.iframeDisposalTimer_=setTimeout(W.disposeIframes_.bind(W),2E3):W.disposeIframes_();W.JSC$11477_iframe_=null;W.iframeName_=null};
Kd.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var W=this.iframesForDisposal_.pop();_.bI(W)}};
var deB=function(W){W.JSC$11477_form_&&W.JSC$11477_form_==FS&&_.hI(W.JSC$11477_form_)},Gp=function(W){return W.JSC$11477_iframe_?Z2M(W.JSC$11477_iframe_).getElementById(W.iframeName_+"_inner"):null};
Kd.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11477_active_){var W=this.JSC$11477_iframe_?Z2M(Gp(this)):null;W&&!G7v(W,"documentUri")?(_.Of(Gp(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?b9(this,3):b9(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.pd=function(W){return W=="\r"||W=="\n"||W==" "||W=="\t"};var Uev;_.oM=function(W){this.errorMessage_=null;this.result_=[];this.JSC$11479_buffer_="";this.stack_=[];this.JSC$11479_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!W||!W.deliverMessageAsRawString)};
Uev={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};_.oM.prototype.isInputValid=function(){return this.streamState_!=3};
_.oM.prototype.done=function(){return this.streamState_===2};
var jq=function(W,l,V){W.streamState_=3;W.errorMessage_="The stream is broken @"+W.JSC$11479_pos_+"/"+V+". With input:\n"+l;throw Error(W.errorMessage_);};
_.oM.prototype.acceptsBinaryInput=function(){return!1};
_.oM.prototype.parse=function(W){function l(){for(;D<W.length;)if(_.pd(W[D]))D++,R.JSC$11479_pos_++;else break;return D<B}
function V(){for(var H;;){H=W[D++];if(!H)break;R.JSC$11479_pos_++;switch(R.state_){case n.INIT:H==="{"?R.state_=n.OBJECT_OPEN:H==="["?R.state_=n.ARRAY_OPEN:_.pd(H)||jq(R,W,D);continue;case n.KEY_START:case n.OBJECT_OPEN:if(_.pd(H))continue;if(R.state_===n.KEY_START)y.push(n.KEY_END);else if(H==="}"){r("{}");R.state_=f();continue}else y.push(n.OBJECT_END);H==='"'?R.state_=n.STRING:jq(R,W,D);continue;case n.KEY_END:case n.OBJECT_END:if(_.pd(H))continue;H===":"?(R.state_===n.OBJECT_END&&(y.push(n.OBJECT_END),
R.depth_++),R.state_=n.VALUE):H==="}"?(R.depth_--,r(),R.state_=f()):H===","?(R.state_===n.OBJECT_END&&y.push(n.OBJECT_END),R.state_=n.KEY_START):jq(R,W,D);continue;case n.ARRAY_OPEN:case n.VALUE:if(_.pd(H))continue;if(R.state_===n.ARRAY_OPEN)if(R.depth_++,R.state_=n.VALUE,H==="]"){R.depth_--;if(R.depth_===0){R.state_=n.ARRAY_END;return}r("[]");R.state_=f();continue}else y.push(n.ARRAY_END);H==='"'?R.state_=n.STRING:H==="{"?R.state_=n.OBJECT_OPEN:H==="["?R.state_=n.ARRAY_OPEN:H==="t"?R.state_=n.TRUE1:
H==="f"?R.state_=n.FALSE1:H==="n"?R.state_=n.NULL1:H!=="-"&&("0123456789".indexOf(H)!==-1?R.state_=n.NUM_DIGIT:jq(R,W,D));continue;case n.ARRAY_END:if(H===",")y.push(n.ARRAY_END),R.state_=n.VALUE,R.depth_===1&&(J=D);else if(H==="]"){R.depth_--;if(R.depth_===0)return;r();R.state_=f()}else if(_.pd(H))continue;else jq(R,W,D);continue;case n.STRING:var p=D;a:for(;;){for(;R.unicodeCount_>0;)if(H=W[D++],R.unicodeCount_===4?R.unicodeCount_=0:R.unicodeCount_++,!H)break a;if(H==='"'&&!R.slashed_){R.state_=
f();break}if(H==="\\"&&!R.slashed_&&(R.slashed_=!0,H=W[D++],!H))break;if(R.slashed_)if(R.slashed_=!1,H==="u"&&(R.unicodeCount_=1),H=W[D++])continue;else break;P.lastIndex=D;H=P.exec(W);if(!H){D=W.length+1;break}D=H.index+1;H=W[H.index];if(!H)break}R.JSC$11479_pos_+=D-p;continue;case n.TRUE1:if(!H)continue;H==="r"?R.state_=n.TRUE2:jq(R,W,D);continue;case n.TRUE2:if(!H)continue;H==="u"?R.state_=n.TRUE3:jq(R,W,D);continue;case n.TRUE3:if(!H)continue;H==="e"?R.state_=f():jq(R,W,D);continue;case n.FALSE1:if(!H)continue;
H==="a"?R.state_=n.FALSE2:jq(R,W,D);continue;case n.FALSE2:if(!H)continue;H==="l"?R.state_=n.FALSE3:jq(R,W,D);continue;case n.FALSE3:if(!H)continue;H==="s"?R.state_=n.FALSE4:jq(R,W,D);continue;case n.FALSE4:if(!H)continue;H==="e"?R.state_=f():jq(R,W,D);continue;case n.NULL1:if(!H)continue;H==="u"?R.state_=n.NULL2:jq(R,W,D);continue;case n.NULL2:if(!H)continue;H==="l"?R.state_=n.NULL3:jq(R,W,D);continue;case n.NULL3:if(!H)continue;H==="l"?R.state_=f():jq(R,W,D);continue;case n.NUM_DECIMAL_POINT:H===
"."?R.state_=n.NUM_DIGIT:jq(R,W,D);continue;case n.NUM_DIGIT:if("0123456789.eE+-".indexOf(H)!==-1)continue;else D--,R.JSC$11479_pos_--,R.state_=f();continue;default:jq(R,W,D)}}}
function f(){var H=y.pop();return H!=null?H:n.VALUE}
function r(H){R.depth_>1||(H||(H=J===-1?R.JSC$11479_buffer_+W.substring(d,D):W.substring(J,D)),R.deliverMessageAsRawString_?R.result_.push(H):R.result_.push(JSON.parse(H)),J=D)}
for(var R=this,y=R.stack_,P=R.stringInputPattern_,n=Uev,B=W.length,d=0,J=-1,D=0;D<B;)switch(R.streamState_){case 3:return jq(R,W,D),null;case 2:return l()&&jq(R,W,D),null;case 0:if(l()){var u=W[D++];R.JSC$11479_pos_++;if(u==="["){R.streamState_=1;d=D;R.state_=n.ARRAY_OPEN;continue}else jq(R,W,D)}return null;case 1:return V(),R.depth_===0&&R.state_==n.ARRAY_END?(R.streamState_=2,R.JSC$11479_buffer_=W.substring(D)):R.JSC$11479_buffer_=J===-1?R.JSC$11479_buffer_+W.substring(d):W.substring(J),R.result_.length>
0?(u=R.result_,R.result_=[],u):null}return null};_.Jj(_.Bj,o0);dc.prototype.getValue=function(){return this.JSC$11487_value_};
dc.prototype.clone=function(){return new dc(this.JSC$11487_key_,this.JSC$11487_value_)};var IM=function(W){this.nodes_=[];if(W)a:{if(W instanceof IM){var l=W.getKeys();W=W.getValues();if(this.getCount()<=0){for(var V=this.nodes_,f=0;f<l.length;f++)V.push(new dc(l[f],W[f]));break a}}else l=_.MC.getKeys(W),W=_.MC.getValues(W);for(V=0;V<l.length;V++)this.insert(l[V],W[V])}};
_.t=IM.prototype;_.t.insert=function(W,l){var V=this.nodes_;V.push(new dc(W,l));W=V.length-1;l=this.nodes_;for(V=l[W];W>0;){var f=W-1>>1;if(l[f].JSC$11487_key_>V.JSC$11487_key_)l[W]=l[f],W=f;else break}l[W]=V};
_.t.remove=function(){var W=this.nodes_,l=W.length,V=W[0];if(!(l<=0)){if(l==1)W.length=0;else{W[0]=W.pop();W=0;l=this.nodes_;for(var f=l.length,r=l[W];W<f>>1;){var R=W*2+1,y=W*2+2;R=y<f&&l[y].JSC$11487_key_<l[R].JSC$11487_key_?y:R;if(l[R].JSC$11487_key_>r.JSC$11487_key_)break;l[W]=l[R];W=R}l[W]=r}return V.getValue()}};
_.t.peek=function(){var W=this.nodes_;if(W.length!=0)return W[0].getValue()};
_.t.getValues=function(){for(var W=this.nodes_,l=[],V=W.length,f=0;f<V;f++)l.push(W[f].getValue());return l};
_.t.getKeys=function(){for(var W=this.nodes_,l=[],V=W.length,f=0;f<V;f++)l.push(W[f].JSC$11487_key_);return l};
_.t.containsValue=function(W){return this.nodes_.some(function(l){return l.getValue()==W})};
_.t.containsKey=function(W){return this.nodes_.some(function(l){return l.JSC$11487_key_==W})};
_.t.clone=function(){return new IM(this)};
_.t.getCount=function(){return this.nodes_.length};
_.t.isEmpty=function(){return this.nodes_.length===0};
_.t.clear=function(){this.nodes_.length=0};_.i9=function(W,l){this.JSC$11493_map_={};this.JSC$11493_keys_=[];this.version_=this.size=0;var V=arguments.length;if(V>1){if(V%2)throw Error("ka");for(var f=0;f<V;f+=2)this.set(arguments[f],arguments[f+1])}else W&&this.addAll(W)};
_.t=_.i9.prototype;_.t.getCount=function(){return this.size};
_.t.getValues=function(){mp(this);for(var W=[],l=0;l<this.JSC$11493_keys_.length;l++)W.push(this.JSC$11493_map_[this.JSC$11493_keys_[l]]);return W};
_.t.getKeys=function(){mp(this);return this.JSC$11493_keys_.concat()};
_.t.containsKey=function(W){return this.has(W)};
_.t.has=function(W){return XS(this.JSC$11493_map_,W)};
_.t.containsValue=function(W){for(var l=0;l<this.JSC$11493_keys_.length;l++){var V=this.JSC$11493_keys_[l];if(XS(this.JSC$11493_map_,V)&&this.JSC$11493_map_[V]==W)return!0}return!1};
_.t.equals=function(W,l){if(this===W)return!0;if(this.size!=W.getCount())return!1;l=l||u3B;mp(this);for(var V,f=0;V=this.JSC$11493_keys_[f];f++)if(!l(this.get(V),W.get(V)))return!1;return!0};
var u3B=function(W,l){return W===l};
_.i9.prototype.isEmpty=function(){return this.size==0};
_.i9.prototype.clear=function(){this.JSC$11493_map_={};this.version_=this.size=this.JSC$11493_keys_.length=0};
_.i9.prototype.remove=function(W){return this.delete(W)};
_.i9.prototype.delete=function(W){return XS(this.JSC$11493_map_,W)?(delete this.JSC$11493_map_[W],--this.size,this.version_++,this.JSC$11493_keys_.length>2*this.size&&mp(this),!0):!1};
var mp=function(W){if(W.size!=W.JSC$11493_keys_.length){for(var l=0,V=0;l<W.JSC$11493_keys_.length;){var f=W.JSC$11493_keys_[l];XS(W.JSC$11493_map_,f)&&(W.JSC$11493_keys_[V++]=f);l++}W.JSC$11493_keys_.length=V}if(W.size!=W.JSC$11493_keys_.length){l={};for(f=V=0;V<W.JSC$11493_keys_.length;){var r=W.JSC$11493_keys_[V];XS(l,r)||(W.JSC$11493_keys_[f++]=r,l[r]=1);V++}W.JSC$11493_keys_.length=f}};
_.t=_.i9.prototype;_.t.get=function(W,l){return XS(this.JSC$11493_map_,W)?this.JSC$11493_map_[W]:l};
_.t.set=function(W,l){XS(this.JSC$11493_map_,W)||(this.size+=1,this.JSC$11493_keys_.push(W),this.version_++);this.JSC$11493_map_[W]=l};
_.t.addAll=function(W){if(W instanceof _.i9)for(var l=W.getKeys(),V=0;V<l.length;V++)this.set(l[V],W.get(l[V]));else for(l in W)this.set(l,W[l])};
_.t.forEach=function(W,l){for(var V=this.getKeys(),f=0;f<V.length;f++){var r=V[f],R=this.get(r);W.call(l,R,r,this)}};
_.t.clone=function(){return new _.i9(this)};
_.t.transpose=function(){for(var W=new _.i9,l=0;l<this.JSC$11493_keys_.length;l++){var V=this.JSC$11493_keys_[l];W.set(this.JSC$11493_map_[V],V)}return W};
_.t.keys=function(){return a5L(this.__iterator__(!0)).toEs6()};
_.t.values=function(){return a5L(this.__iterator__(!1)).toEs6()};
_.t.entries=function(){var W=this;return s1L(this.keys(),function(l){return[l,W.get(l)]})};
_.t.__iterator__=function(W){mp(this);var l=0,V=this.version_,f=this,r=new pi;r.next=function(){if(V!=f.version_)throw Error("se");if(l>=f.JSC$11493_keys_.length)return o9;var R=f.JSC$11493_keys_[l++];return ja(W?R:f.JSC$11493_map_[R])};
return r};
var XS=function(W,l){return Object.prototype.hasOwnProperty.call(W,l)};var vha=function(){this.JSC$11496_map_=new _.i9;this.JSC$11496_head_=new kmv("");this.JSC$11496_head_.next=this.JSC$11496_head_.prev=this.JSC$11496_head_},HPa=function(W,l){if(l=W.JSC$11496_map_.get(l))l.remove(),W.insert_(l);
return l};
_.t=vha.prototype;_.t.get=function(W,l){return(W=HPa(this,W))?W.value:l};
_.t.set=function(W,l){var V=HPa(this,W);V?V.value=l:(V=new kmv(W,l),this.JSC$11496_map_.set(W,V),this.insert_(V))};
_.t.peek=function(){return this.JSC$11496_head_.next.value};
_.t.shift=function(){return Kra(this,this.JSC$11496_head_.next)};
_.t.pop=function(){return Kra(this,this.JSC$11496_head_.prev)};
_.t.remove=function(W){return(W=this.JSC$11496_map_.get(W))?(this.removeNode(W),!0):!1};
_.t.removeNode=function(W){W.remove();this.JSC$11496_map_.remove(W.key)};
_.t.getCount=function(){return this.JSC$11496_map_.getCount()};
_.t.isEmpty=function(){return this.JSC$11496_map_.isEmpty()};
_.t.getKeys=function(){return this.map(function(W,l){return l})};
_.t.getValues=function(){return this.map(function(W){return W})};
_.t.contains=function(W){return this.some(function(l){return l==W})};
_.t.containsKey=function(W){return this.JSC$11496_map_.containsKey(W)};
_.t.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11496_head_.prev)};
_.t.forEach=function(W,l){for(var V=this.JSC$11496_head_.next;V!=this.JSC$11496_head_;V=V.next)W.call(l,V.value,V.key,this)};
_.t.map=function(W,l){for(var V=[],f=this.JSC$11496_head_.next;f!=this.JSC$11496_head_;f=f.next)V.push(W.call(l,f.value,f.key,this));return V};
_.t.some=function(W,l){for(var V=this.JSC$11496_head_.next;V!=this.JSC$11496_head_;V=V.next)if(W.call(l,V.value,V.key,this))return!0;return!1};
_.t.every=function(W,l){for(var V=this.JSC$11496_head_.next;V!=this.JSC$11496_head_;V=V.next)if(!W.call(l,V.value,V.key,this))return!1;return!0};
_.t.insert_=function(W){W.next=this.JSC$11496_head_.next;W.prev=this.JSC$11496_head_;this.JSC$11496_head_.next=W;for(W.next.prev=W;this.getCount()>100;)this.removeNode(this.JSC$11496_head_.prev)};
var Kra=function(W,l){W.JSC$11496_head_!=l&&W.removeNode(l);return l.value},kmv=function(W,l){this.key=W;
this.value=l};
kmv.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var FrI=function(){IM.apply(this,arguments)};
_.v(FrI,IM);FrI.prototype.enqueue=function(W,l){this.insert(W,l)};var Gmv=function(){var W=Error();W.name="SecurityError";throw W;},uHJ=function(){return{get opener(){return null},
get closed(){return!0},get location(){Gmv()},get document(){Gmv()},postMessage:function(){},
close:function(){},
focus:function(){}}};var WM8={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 fnU={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 bPk={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(fnU).join("|");var pIc=function(){function W(P){P.substr(-1)!==";"&&(P+=";");return y(P)}
for(var l=Object.keys(bPk).sort(Vkz),V=Object.keys(fnU).sort(Vkz),f=0,r=0;f<V.length;f++)l[r]===V[f]?(V[f]+=";?",r++):V[f]+=";";var R=new RegExp("&(?:"+V.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),y=rSn();return function(P){return String(P).replace(R,W)}}();/*

 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 oha={};var jfM=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"),INk=/[\\&]/,iPk=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),meL=RegExp('[&<>"]',"g"),XIk=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),TNX=function(W){return W.charCodeAt(0)===92?W.charAt(1):pIc(W)},wI$=function(W){return INk.test(W)?W.replace(iPk,TNX):W},A2L=function(W){try{var l,V="";
if(typeof r!=="string"){var f=r;var r=";/?:@&=+$,-_.!~*'()#"}typeof f==="undefined"&&(f=!0);var R,y=oha[r];if(y)var P=y;else{y=oha[r]=[];for(R=0;R<128;R++){var n=String.fromCharCode(R);/^[0-9a-z]$/i.test(n)?y.push(n):y.push("%"+("0"+R.toString(16).toUpperCase()).slice(-2))}for(R=0;R<r.length;R++)y[r.charCodeAt(R)]=r[R];P=y}var B=0;for(l=W.length;B<l;B++){var d=W.charCodeAt(B);if(f&&d===37&&B+2<l&&/^[0-9a-f]{2}$/i.test(W.slice(B+1,B+3)))V+=W.slice(B,B+3),B+=2;else if(d<128)V+=P[d];else if(d>=55296&&
d<=57343){if(d>=55296&&d<=56319&&B+1<l){var J=W.charCodeAt(B+1);if(J>=56320&&J<=57343){V+=encodeURIComponent(W[B]+W[B+1]);B++;continue}}V+="%EF%BF%BD"}else V+=encodeURIComponent(W[B])}return V}catch(D){return W}},Qf$=function(W){switch(W){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return W}},Tp=function(W,l){return meL.test(W)?l?W.replace(XIk,Qf$):W.replace(meL,Qf$):W};/*

 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 wk;if(String.fromCodePoint)wk=function(W){try{return String.fromCodePoint(W)}catch(l){if(l instanceof RangeError)return String.fromCharCode(65533);throw l;}};
else{var M1a=String.fromCharCode,ZPv=Math.floor;wk=function(){var W=[],l=-1,V=arguments.length;if(!V)return"";for(var f="";++l<V;){var r=Number(arguments[l]);if(!isFinite(r)||r<0||r>1114111||ZPv(r)!==r)return String.fromCharCode(65533);if(r<=65535)W.push(r);else{r-=65536;var R=(r>>10)+55296;r=r%1024+56320;W.push(R,r)}if(l+1===V||W.length>16384)f+=M1a.apply(null,W),W.length=0}return f}};var OPc=function(W){this.root=this.current=W;this.entering=!0};
OPc.prototype.next=function(){var W=this.current,l=this.entering;if(W===null)return null;a:switch(W._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 V=!0;break a;default:V=!1}l&&V?W._firstChild?(this.current=W._firstChild,this.entering=!0):this.entering=!1:W===this.root?this.current=null:W._next===null?(this.current=
W._parent,this.entering=!1):(this.current=W._next,this.entering=!0);return{entering:l,node:W}};
var uw=function(W,l){this._type=W;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=l;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};
uw.prototype.appendChild=function(W){W.unlink();W._parent=this;this._lastChild?(this._lastChild._next=W,W._prev=this._lastChild):this._firstChild=W;this._lastChild=W};
uw.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 aNk=function(W,l){l.unlink();l._next=W._next;l._next&&(l._next._prev=l);l._prev=W;W._next=l;l._parent=W._parent;l._next||(l._parent._lastChild=l)};
uw.prototype.insertBefore=function(W){W.unlink();W._prev=this._prev;W._prev&&(W._prev._next=W);W._next=this;this._prev=W;W._parent=this._parent;W._prev||(W._parent._firstChild=W)};
_.rc.Object.defineProperties(uw.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(W){this._literal=W}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(W){this._destination=W}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(W){this._title=W}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(W){this._info=W}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(W){this._level=W}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(W){this._listData.type=W}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(W){this._listData.tight=W}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(W){this._listData.start=W}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(W){this._onEnter=W}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(W){this._onExit=W}}});var RN6=/[ \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,
tk4={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 zwI=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]/),
NNM=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),YZ$=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),xeL=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),ewe=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),qZe=/`+/,hwM=/^`+/,SZM=/\.\.\./g,EhI=/--+/g,$eL=/^<([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])?)*)>/,
W$v=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,lyc=/^ *(?:\n *)?/,VJ1=/^[ \t\n\x0b\x0c\x0d]/,fyL=/[ \t\n\x0b\x0c\x0d]+/g,ryX=/^\s/,RPZ=/ *$/,tJk=/^ */,s$c=/^ *(?:\n|$)/,L$c=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),yyB=/^[^\n`\[\]\\!<&*_'"]+/m,Au=function(W){var l=new uw("text");l._literal=W;return l},Qn=function(W){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=W||{}};
Qn.prototype.match=function(W){W=W.exec(this.subject.slice(this.pos));if(W===null)return null;this.pos+=W.index+W[0].length;return W[0]};
Qn.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var MN=function(W){W.match(lyc);return!0},gwL=function(W,l,V){var f=0;
var r=W.pos;if(l===39||l===34)f++,W.pos++;else for(;W.peek()===l;)f++,W.pos++;if(f===0)f=null;else{var R=r===0?"\n":W.subject.charAt(r-1);var y=W.peek();y=y===-1?"\n":wk(y);var P=ryX.test(y);y=zwI.test(y);var n=ryX.test(R);var B=zwI.test(R);R=!P&&!(y&&!n&&!B);P=!n&&!(B&&!P&&!y);l===95?(n=R&&(!P||B),y=P&&(!R||y)):(n=l===39||l===34?R&&!P:R,y=P);W.pos=r;f={numdelims:f,can_open:n,can_close:y}}if(!f)return!1;r=f.numdelims;y=W.pos;W.pos+=r;y=l===39?"\u2019":l===34?"\u201c":W.subject.slice(y,W.pos);y=Au(y);
V.appendChild(y);W.delimiters={cc:l,numdelims:r,origdelims:r,node:y,previous:W.delimiters,next:null,can_open:f.can_open,can_close:f.can_close};W.delimiters.previous!==null&&(W.delimiters.previous.next=W.delimiters);return!0},P$X=function(W,l){l.previous!==null&&(l.previous.next=l.next);
l.next===null?W.delimiters=l.previous:l.next.previous=l.previous},nwL=function(W,l){var V,f,r=[],R=!1;
r[95]=l;r[42]=l;r[39]=l;r[34]=l;for(V=W.delimiters;V!==null&&V.previous!==l;)V=V.previous;for(;V!==null;){var y=V.cc;if(V.can_close){var P=V.previous;for(f=!1;P!==null&&P!==l&&P!==r[y];){R=(V.can_open||P.can_close)&&(P.origdelims+V.origdelims)%3===0;if(P.cc===V.cc&&P.can_open&&!R){f=!0;break}P=P.previous}var n=V;if(y===42||y===95)if(f){var B=V.numdelims>=2&&P.numdelims>=2?2:1;var d=P.node;var J=V.node;P.numdelims-=B;V.numdelims-=B;d._literal=d._literal.slice(0,d._literal.length-B);J._literal=J._literal.slice(0,
J._literal.length-B);var D=new uw(B===1?"emph":"strong");for(B=d._next;B&&B!==J;){var u=B._next;B.unlink();D.appendChild(B);B=u}aNk(d,D);B=P;u=V;B.next!==u&&(B.next=u,u.previous=B);P.numdelims===0&&(d.unlink(),P$X(W,P));V.numdelims===0&&(J.unlink(),P=V.next,P$X(W,V),V=P)}else V=V.next;else y===39?(V.node._literal="\u2019",f&&(P.node._literal="\u2018"),V=V.next):y===34&&(V.node._literal="\u201d",f&&(P.node.literal="\u201c"),V=V.next);f||R||(r[y]=n.previous,n.can_open||P$X(W,n))}else V=V.next}for(;W.delimiters!==
null&&W.delimiters!==l;)P$X(W,W.delimiters)},C$M=function(W){W=W.match(NNM);
return W===null?null:wI$(W.substr(1,W.length-2))},cyk=function(W){var l=W.match(YZ$);
if(l===null){l=W.pos;for(var V=0,f;(f=W.peek())!==-1;)if(f===92)W.pos+=1,W.peek()!==-1&&(W.pos+=1);else if(f===40)W.pos+=1,V+=1;else if(f===41)if(V<1)break;else W.pos+=1,--V;else if(VJ1.exec(wk(f))!==null)break;else W.pos+=1;l=W.subject.substr(l,W.pos-l);return A2L(wI$(l))}return A2L(wI$(l.substr(1,l.length-2)))},BH9=function(W){W=W.match(L$c);
return W===null||W.length>1001?0:W.length},dB9=function(W,l,V,f){W.brackets!==null&&(W.brackets.bracketAfter=!0);
W.brackets={node:l,previous:W.brackets,previousDelimiter:W.delimiters,index:V,image:f,active:!0}},Jy1=function(W,l){var V;
return(V=W.match(yyB))?(W.options.smart?l.appendChild(Au(V.replace(SZM,"\u2026").replace(EhI,function(f){var r=0,R=0;f.length%3===0?R=f.length/3:f.length%2===0?r=f.length/2:f.length%3===2?(r=1,R=(f.length-2)/3):(r=2,R=(f.length-4)/3);f="";var y;for(y=0;y<R;y++)f+="\u2014";for(y=0;y<r;y++)f+="\u2013";return f}))):l.appendChild(Au(V)),!0):!1},DB1=function(W,l,V){W.subject=l;
W.pos=0;l=W.pos;var f=BH9(W);if(f===0)return 0;var r=W.subject.substr(0,f);if(W.peek()===58)W.pos++;else return W.pos=l,0;MN(W);f=cyk(W);if(f===null||f.length===0)return W.pos=l,0;var R=W.pos;MN(W);var y=C$M(W);y===null&&(y="",W.pos=R);var P=!0;W.match(s$c)===null&&(y===""?P=!1:(y="",W.pos=R,P=W.match(s$c)!==null));if(!P)return W.pos=l,0;r=sjj(r);if(r==="")return W.pos=l,0;V[r]||(V[r]={destination:f,title:y});return W.pos-l},UBa=function(W,l){var V,f=W.peek();
if(f===-1)return!1;switch(f){case 10:W.pos+=1;if((V=l._lastChild)&&V.type==="text"&&V._literal[V._literal.length-1]===" "){var r=V._literal[V._literal.length-2]===" ";V._literal=V._literal.replace(RPZ,"");l.appendChild(new uw(r?"linebreak":"softbreak"))}else l.appendChild(new uw("softbreak"));W.match(tJk);V=!0;break;case 92:V=W.subject;W.pos+=1;W.peek()===10?(W.pos+=1,V=new uw("linebreak"),l.appendChild(V)):xeL.test(V.charAt(W.pos))?(l.appendChild(Au(V.charAt(W.pos))),W.pos+=1):l.appendChild(Au("\\"));
V=!0;break;case 96:a:if(V=W.match(hwM),V===null)V=!1;else{r=W.pos;for(var R;(R=W.match(qZe))!==null;)if(R===V){R=new uw("code");R._literal=W.subject.slice(r,W.pos-V.length).trim().replace(fyL," ");l.appendChild(R);V=!0;break a}W.pos=r;l.appendChild(Au(V));V=!0}break;case 42:case 95:V=gwL(W,f,l);break;case 39:case 34:V=W.options.smart&&gwL(W,f,l);break;case 91:V=W.pos;W.pos+=1;r=Au("[");l.appendChild(r);dB9(W,r,V,!1);V=!0;break;case 33:V=W.pos;W.pos+=1;W.peek()===91?(W.pos+=1,r=Au("!["),l.appendChild(r),
dB9(W,r,V+1,!0)):l.appendChild(Au("!"));V=!0;break;case 93:var y,P=!1,n;W.pos+=1;var B=W.pos;r=W.brackets;if(r===null)l.appendChild(Au("]"));else if(r.active){V=r.image;var d=W.pos;W.peek()===40&&(W.pos++,MN(W)&&(R=cyk(W))!==null&&MN(W)&&(VJ1.test(W.subject.charAt(W.pos-1))&&(y=C$M(W)),1)&&MN(W)&&W.peek()===41?(W.pos+=1,P=!0):W.pos=d);if(!P){var J=W.pos,D=BH9(W);D>2?n=W.subject.slice(J,J+D):r.bracketAfter||(n=W.subject.slice(r.index,B));D===0&&(W.pos=d);n&&(n=W.refmap[sjj(n)])&&(R=n.destination,y=
n.title,P=!0)}if(P){B=new uw(V?"image":"link");B._destination=R;B._title=y||"";for(R=r.node._next;R;)y=R._next,R.unlink(),B.appendChild(R),R=y;l.appendChild(B);nwL(W,r.previousDelimiter);W.brackets=W.brackets.previous;r.node.unlink();if(!V)for(r=W.brackets;r!==null;)r.image||(r.active=!1),r=r.previous}else W.brackets=W.brackets.previous,W.pos=B,l.appendChild(Au("]"))}else l.appendChild(Au("]")),W.brackets=W.brackets.previous;V=!0;break;case 60:(V=W.match($eL))?(V=V.slice(1,V.length-1),r=new uw("link"),
r._destination=A2L("mailto:"+V),r._title="",r.appendChild(Au(V)),l.appendChild(r),V=!0):(V=W.match(W$v))?(V=V.slice(1,V.length-1),r=new uw("link"),r._destination=A2L(V),r._title="",r.appendChild(Au(V)),l.appendChild(r),V=!0):V=!1;V||(V=W.match(jfM),V===null?V=!1:(r=new uw("html_inline"),r._literal=V,l.appendChild(r),V=!0));break;case 38:(V=W.match(ewe))?(l.appendChild(Au(pIc(V))),V=!0):V=!1;break;default:V=Jy1(W,l)}V||(W.pos+=1,l.appendChild(Au(wk(f))));return!0};
Qn.prototype.parseInlines=function(W){this.subject=W._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;UBa(this,W););W._string_content=null;nwL(this,null)};
Qn.prototype.parse=Qn.prototype.parseInlines;var uxX=[/./,/^<(?: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")],kYv=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],vwI=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,Hv$=/^[#`~*+_=<>0-9-\|]|\|/,K$v=/[^ \t\f\v\r\n]/,F$B=/^[*+-]/,GY$=/^(\d{1,9})([.)])/,bvv=/^#{1,6}(?:[ \t]+|$)/,ppk=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,owv=/^(?:`{3,}|~{3,})(?= *$)/,j$B=/^(?:=+|-+)[ \t]*$/,IyM=/\r\n|\n|\r/,ySn=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,gSz=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,iv$={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(W){return W!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(W,l){for(W=l._firstChild;W;){if(LMz(W)&&W._next){l._listData.tight=!1;break}for(var V=W._firstChild;V;){if(LMz(V)&&(W._next||V._next)){l._listData.tight=!1;break}V=V._next}W=W._next}},
canContain:function(W){return W==="item"},
acceptsLines:!1},block_quote:{continue:function(W){var l=W.currentLine;if(W.indented||D0(l,W.nextNonspace)!==62)return 1;Z3(W);O2(W,1,!1);J6(D0(l,W.offset))&&O2(W,1,!0);return 0},
finalize:function(){},
canContain:function(W){return W!=="item"},
acceptsLines:!1},item:{continue:function(W,l){if(W.blank){if(l._firstChild==null)return 1;Z3(W)}else if(W.indent>=l._listData.markerOffset+l._listData.padding)O2(W,l._listData.markerOffset+l._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(W){return W!=="item"&&!Pl6(W)},
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(W,l){var V=W.currentLine,f=W.indent;if(l._isFenced){if((f=f<=3&&V.charAt(W.nextNonspace)===l._fenceChar&&V.slice(W.nextNonspace).match(owv))&&f[0].length>=l._fenceLength)return W.finalize(l,W.lineNumber),2;for(l=l._fenceOffset;l>0&&J6(D0(V,W.offset));)O2(W,1,!0),l--}else if(f>=4)O2(W,4,!0);else if(W.blank)Z3(W);else return 1;return 0},
finalize:function(W,l){if(l._isFenced){var V=l._string_content,f=V.indexOf("\n");W=V.slice(0,f);V=V.slice(f+1);l.info=wI$(W.trim());l._literal=V}else l._literal=l._string_content.replace(/(\n *)+$/,"\n");l._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(W,l){return!W.blank||l._htmlBlockType!==6&&l._htmlBlockType!==7?0:1},
finalize:function(W,l){l._literal=l._string_content.replace(/(\n *)+$/,"");l._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(W){return W.blank?1:0},
finalize:function(W,l){for(var V,f=!1;D0(l._string_content,0)===91&&(V=DB1(W.inlineParser,l._string_content,W.refmap));)l._string_content=l._string_content.slice(V),f=!0;f&&!K$v.test(l._string_content)&&l.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(W){return UC(W.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(W){return W=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(W,l){if(!l._rowIsDelimiter){W=l._isHeader?"th":"td";for(var V=l._parent._tableColumns,f=l._string_content,r=0,R="",y,P=l._sourcepos[0][0];r<f.length;){switch(f[r]){case "|":y&&(y._string_content=R.trim(),R="",y=null,V--,V<=0&&(r=f.length));break;default:if(!y){y=new uw(W,[[P,r],[P,r]]);var n=l._parent._columnAlignment,B=l._parent._tableColumns-V;n&&B<=n.length&&B>=0&&(y._alignment=n[B]);l.appendChild(y)}R+=f[r];y._sourcepos[1][1]=r}r++}y&&(y._string_content=R.trim());l._string_content=
""}},
canContain:function(W){return W!=="row"},
acceptsLines:!1}},mBa=[function(W){if(W.indented||D0(W.currentLine,W.nextNonspace)!==62)return 0;Z3(W);O2(W,1,!1);J6(D0(W.currentLine,W.offset))&&O2(W,1,!0);aM(W);W.addChild("block_quote",W.nextNonspace);return 1},
function(W){var l;if(!W.indented&&(l=W.currentLine.slice(W.nextNonspace).match(bvv))){Z3(W);O2(W,l[0].length,!1);aM(W);var V=W.addChild("heading",W.nextNonspace);V.level=l[0].trim().length;V._string_content=W.currentLine.slice(W.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");O2(W,W.currentLine.length-W.offset);return 2}return 0},
function(W){var l;if(!W.indented&&(l=W.currentLine.slice(W.nextNonspace).match(ppk))){var V=l[0].length;aM(W);var f=W.addChild("code_block",W.nextNonspace);f._isFenced=!0;f._fenceLength=V;f._fenceChar=l[0][0];f._fenceOffset=W.indent;Z3(W);O2(W,V,!1);return 2}return 0},
function(W,l){if(!W.indented&&D0(W.currentLine,W.nextNonspace)===60){var V=W.currentLine.slice(W.nextNonspace),f;for(f=1;f<=7;f++)if(uxX[f].test(V)&&(f<7||l.type!=="paragraph"))return aM(W),W.addChild("html_block",W.offset)._htmlBlockType=f,2}return 0},
function(W,l){var V;if(!W.indented&&l.type==="paragraph"&&(V=W.currentLine.slice(W.nextNonspace).match(j$B))){aM(W);var f=new uw("heading",l.sourcepos);f.level=V[0][0]==="="?1:2;f._string_content=l._string_content;aNk(l,f);l.unlink();W.tip=f;O2(W,W.currentLine.length-W.offset,!1);return 2}return 0},
function(W){return!W.indented&&vwI.test(W.currentLine.slice(W.nextNonspace))?(aM(W),W.addChild("thematic_break",W.nextNonspace),O2(W,W.currentLine.length-W.offset,!1),2):0},
function(W,l){var V,f;if(!(f=W.indented&&l.type!=="list")){a:{var r=l,R=W.currentLine.slice(W.nextNonspace);f={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:W.indent};if(V=R.match(F$B))f.type="bullet",f.bulletChar=V[0][0];else{if(!(V=R.match(GY$))||r.type==="paragraph"&&V[1]!=="1"){V=null;break a}f.type="ordered";f.start=parseInt(V[1],10);f.delimiter=V[2]}var y=D0(W.currentLine,W.nextNonspace+V[0].length);if(y!==-1&&y!==9&&y!==32||r.type==="paragraph"&&!W.currentLine.slice(W.nextNonspace+
V[0].length).match(K$v))V=null;else{Z3(W);O2(W,V[0].length,!0);r=W.column;R=W.offset;do O2(W,1,!0),y=D0(W.currentLine,W.offset);while(W.column-r<5&&J6(y));y=D0(W.currentLine,W.offset)===-1;var P=W.column-r;P>=5||P<1||y?(f.padding=V[0].length+1,W.column=r,W.offset=R,J6(D0(W.currentLine,W.offset))&&O2(W,1,!0)):f.padding=V[0].length+P;V=f}}f=!V}if(f)return 0;aM(W);(f=W.tip.type!=="list")||(l=l._listData,f=!(l.type===V.type&&l.delimiter===V.delimiter&&l.bulletChar===V.bulletChar));f&&(l=W.addChild("list",
W.nextNonspace),l._listData=V);l=W.addChild("item",W.nextNonspace);l._listData=V;return 1},
function(W){var l;return((l=W.options.shouldParseIndentAsCodeBlock)!=null?l:1)&&W.indented&&W.tip.type!=="paragraph"&&!W.blank?(O2(W,4,!0),aM(W),W.addChild("code_block",W.offset),2):0},
function(W,l){var V=UC(W.currentLine),f=UC(W.lookahead);if(V!==0&&f<0&&Math.abs(V)==Math.abs(f)&&!Pl6(l.type)){aM(W);l=W.addChild("table",W.nextNonspace);l._tableRows=1;l._tableColumns=Math.abs(V);V=W.lookahead;if(gSz.test(V)){f=[];for(var r=0,R=!1,y=0,P=void 0;r<V.length;){var n=y>=3;switch(V[r]){case "-":y++;break;case "|":R&&(f.push(P),P=void 0,y=0);R=!0;break;case ":":P||n||(P="left"),!P&&n&&(P="right"),P==="left"&&n&&(P="center")}r++}V=f}else V=void 0;l._columnAlignment=V;l=W.addChild("row",
W.nextNonspace);l._isHeader=!0;O2(W,W.currentLine.length-W.offset,!1);l._string_content=W.currentLine;return 1}return 0},
function(W,l){if(l.type=="table"&&UC(W.currentLine)!==0){aM(W);var V=l;l=W.addChild("row",W.nextNonspace);UC(W.currentLine)<0?l._rowIsDelimiter=!0:V._tableRows+=1;O2(W,W.currentLine.length-W.offset,!1);l._string_content=W.currentLine;return 2}return 0}],fTq=function(){var W={shouldParseIndentAsCodeBlock:!1};
W=W===void 0?{}:W;this.lastMatchedContainer=this.doc=nSS();this.refmap={};this.lastLineLength=0;this.inlineParser=new Qn(W);this.options=W;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=iv$;this.blockStarts=mBa},Xp9=function(W){W.partiallyConsumedTab&&(W.offset+=1,W.tip._string_content+=" ".repeat(4-W.column%
4));
W.tip._string_content+=W.currentLine.slice(W.offset)+"\n"};
fTq.prototype.addChild=function(W,l){for(;!this.blocks[this.tip.type].canContain(W);)this.finalize(this.tip,this.lineNumber-1);W=new uw(W,[[this.lineNumber,l+1],[0,0]]);W._string_content="";this.tip.appendChild(W);return this.tip=W};
var aM=function(W){if(!W.allClosed){for(;W.oldtip!==W.lastMatchedContainer;){var l=W.oldtip._parent;W.finalize(W.oldtip,W.lineNumber-1);W.oldtip=l}W.allClosed=!0}},O2=function(W,l,V){for(var f=W.currentLine,r,R;l>0&&(R=f[W.offset]);)R==="\t"?(r=4-W.column%4,V?(W.partiallyConsumedTab=r>l,r=r>l?l:r,W.column+=r,W.offset+=W.partiallyConsumedTab?0:1,l-=r):(W.partiallyConsumedTab=!1,W.column+=r,W.offset+=1,--l)):(W.partiallyConsumedTab=!1,W.offset+=1,W.column+=1,--l)},Z3=function(W){W.offset=W.nextNonspace;
W.column=W.nextNonspaceColumn;W.partiallyConsumedTab=!1},TH$=function(W){for(var l=W.currentLine,V=W.offset,f=W.column,r;(r=l.charAt(V))!=="";)if(r===" ")V++,f++;
else if(r==="\t")V++,f+=4-f%4;else break;W.blank=r==="\n"||r==="\r"||r==="";W.nextNonspace=V;W.nextNonspaceColumn=f;W.indent=W.nextNonspaceColumn-W.column;W.indented=W.indent>=4};
fTq.prototype.finalize=function(W,l){var V=W._parent;W._open=!1;W.sourcepos[1]=[l,this.lastLineLength];this.blocks[W.type].finalize(this,W);this.tip=V};
fTq.prototype.parse=function(W){this.tip=this.doc=nSS();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!W)return this.doc;this.options.time&&console.time("preparing input");var l=W.split(IyM),V=l.length;W.charCodeAt(W.length-1)===10&&--V;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(W=0;W<V;W++)a:{var f=void 0,r=l[W],R=l[W+1],y=!0,P=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=R;(f=P._lastChild)&&f._open;){P=f;TH$(this);switch(this.blocks[P.type].continue(this,P)){case 0:break;case 1:y=!1;break;case 2:this.lastLineLength=r.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!y){P=P._parent;break}}this.allClosed=P===this.oldtip;this.lastMatchedContainer=
P;f=P.type!=="paragraph"&&iv$[P.type].acceptsLines;R=this.blockStarts;for(y=R.length;!f;){TH$(this);if(!this.indented&&!Hv$.test(r.slice(this.nextNonspace))){Z3(this);break}for(var n=0;n<y;){var B=R[n](this,P);if(B===1){P=this.tip;break}else if(B===2){P=this.tip;f=!0;break}else n++}if(n===y){Z3(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){aM(this);this.blank&&P.lastChild&&(P.lastChild._lastLineBlank=!0);f=P.type;R=this.blank&&!(f==="block_quote"||f==="code_block"&&P._isFenced||
f==="item"&&!P._firstChild&&P.sourcepos[0][0]===this.lineNumber);for(y=P;y;)y._lastLineBlank=R,y=y._parent;this.blocks[f].acceptsLines?(Xp9(this),f==="html_block"&&P._htmlBlockType>=1&&P._htmlBlockType<=5&&kYv[P._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(P,this.lineNumber)):this.offset<r.length&&!this.blank&&(this.addChild("paragraph",this.offset),Z3(this),Xp9(this))}else Xp9(this);this.lastLineLength=r.length}for(;this.tip;)this.finalize(this.tip,V);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");r=new OPc(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;V=r.next();)l=V.node,W=l.type,V.entering||W!=="paragraph"&&W!=="heading"&&W!=="th"&&W!="td"||this.inlineParser.parse(l);this.options.time&&console.timeEnd("inline parsing");return this.doc};Cl4.prototype.render=function(W){W=new OPc(W);var l;this.buffer="";for(this.lastOut="\n";l=W.next();){var V=l.node.type;if(this[V])this[V](l.node,l.entering)}return this.buffer};
Cl4.prototype.out=function(W){zp(this,W)};
var zp=function(W,l){W.buffer+=l;W.lastOut=l};
Cl4.prototype.cr=function(){this.lastOut!=="\n"&&zp(this,"\n")};var wp$=/^javascript:|vbscript:|file:|data:/i,Ayk=/^data:image\/(?:png|gif|jpeg|webp)/i,Q$c=function(W){return wp$.test(W)&&!Ayk.test(W)};
kG.prototype=Object.create(Cl4.prototype);_.t=kG.prototype;_.t.text=function(W){this.out(W.literal)};
_.t.html_inline=function(W){this.options.safe?zp(this,"\x3c!-- raw HTML omitted --\x3e"):zp(this,W.literal)};
_.t.html_block=function(W){this.cr();this.options.safe?zp(this,"\x3c!-- raw HTML omitted --\x3e"):zp(this,W.literal);this.cr()};
_.t.softbreak=function(){zp(this,this.options.softbreak)};
_.t.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.t.link=function(W,l){var V=this.attrs(W);l?(this.options.safe&&Q$c(W.destination)||V.push(["href",Tp(W.destination,!0)]),W.title&&V.push(["title",Tp(W.title,!0)]),this.tag("a",V)):this.tag("/a")};
_.t.image=function(W,l){l?(this.disableTags===0&&(this.options.safe&&Q$c(W.destination)?zp(this,'<img src="" alt="'):zp(this,'<img src="'+Tp(W.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(W.title&&zp(this,'" title="'+Tp(W.title,!0)),zp(this,'" />')))};
_.t.emph=function(W,l){this.tag(l?"em":"/em")};
_.t.strong=function(W,l){this.tag(l?"strong":"/strong")};
_.t.paragraph=function(W,l){var V=W.parent.parent;W=this.attrs(W);V!==null&&V.type==="list"&&V.listTight||(l?(this.cr(),this.tag("p",W)):(this.tag("/p"),this.cr()))};
_.t.heading=function(W,l){var V="h"+W.level;W=this.attrs(W);l?(this.cr(),this.tag(V,W)):(this.tag("/"+V),this.cr())};
_.t.code=function(W){this.tag("code");this.out(W.literal);this.tag("/code")};
_.t.code_block=function(W){var l=W.info?W.info.split(/\s+/):[],V=this.attrs(W);l.length>0&&l[0].length>0&&V.push(["class","language-"+Tp(l[0],!0)]);this.cr();this.tag("pre");this.tag("code",V);this.out(W.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.t.thematic_break=function(W){W=this.attrs(W);this.cr();this.tag("hr",W,!0);this.cr()};
_.t.block_quote=function(W,l){W=this.attrs(W);l?(this.cr(),this.tag("blockquote",W)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.t.list=function(W,l){var V=W.listType==="bullet"?"ul":"ol",f=this.attrs(W);l?(W=W.listStart,W!==null&&W!==1&&f.push(["start",W.toString()]),this.cr(),this.tag(V,f)):(this.cr(),this.tag("/"+V));this.cr()};
_.t.item=function(W,l){W=this.attrs(W);l?this.tag("li",W):(this.tag("/li"),this.cr())};
_.t.custom_inline=function(W,l){l&&W.onEnter?zp(this,W.onEnter):!l&&W.onExit&&zp(this,W.onExit)};
_.t.custom_block=function(W,l){this.cr();l&&W.onEnter?zp(this,W.onEnter):!l&&W.onExit&&zp(this,W.onExit);this.cr()};
_.t.table=function(W,l){W=this.attrs(W);l?(this.cr(),this.tag("table",W)):(this.tag("/table"),this.cr())};
_.t.row=function(W,l){W._rowIsDelimiter||(W=this.attrs(W),l?this.tag("tr",W):this.tag("/tr"))};
_.t.td=function(W,l){var V=this.attrs(W);W._alignment&&V.push(["align",W._alignment]);l?this.tag("td",V):this.tag("/td")};
_.t.th=function(W,l){var V=this.attrs(W);W._alignment&&V.push(["align",W._alignment]);l?this.tag("th",V):this.tag("/th")};
_.t.out=function(W){zp(this,Tp(W,!1))};
_.t.tag=function(W,l,V){if(!(this.disableTags>0)){this.buffer+="<"+W;if(l&&l.length>0){W=0;for(var f;(f=l[W])!==void 0;)this.buffer+=" "+f[0]+'="'+f[1]+'"',W++}V&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.t.attrs=function(W){var l=[];this.options.sourcepos&&(W=W.sourcepos)&&l.push(["data-sourcepos",String(W[0][0])+":"+String(W[0][1])+"-"+String(W[1][0])+":"+String(W[1][1])]);return l};
kG.prototype.text=kG.prototype.text;kG.prototype.html_inline=kG.prototype.html_inline;kG.prototype.html_block=kG.prototype.html_block;kG.prototype.softbreak=kG.prototype.softbreak;kG.prototype.linebreak=kG.prototype.linebreak;kG.prototype.link=kG.prototype.link;kG.prototype.image=kG.prototype.image;kG.prototype.emph=kG.prototype.emph;kG.prototype.strong=kG.prototype.strong;kG.prototype.paragraph=kG.prototype.paragraph;kG.prototype.heading=kG.prototype.heading;kG.prototype.code=kG.prototype.code;
kG.prototype.code_block=kG.prototype.code_block;kG.prototype.thematic_break=kG.prototype.thematic_break;kG.prototype.block_quote=kG.prototype.block_quote;kG.prototype.list=kG.prototype.list;kG.prototype.item=kG.prototype.item;kG.prototype.custom_inline=kG.prototype.custom_inline;kG.prototype.custom_block=kG.prototype.custom_block;kG.prototype.table=kG.prototype.table;kG.prototype.row=kG.prototype.row;kG.prototype.td=kG.prototype.td;kG.prototype.th=kG.prototype.th;kG.prototype.out=kG.prototype.out;
kG.prototype.tag=kG.prototype.tag;kG.prototype.attrs=kG.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 MJ1,Zv9,dOU;(function(){function W(T,m){return T<m?-1:T>m?1:T>=m?0:NaN}
function l(T){return function(m,M){return W(T(m),M)}}
function V(){for(var T=0,m=arguments.length,M={},lF;T<m;++T){if(!(lF=arguments[T]+"")||lF in M)throw Error("ue`"+lF);M[lF]=[]}return new f(M)}
function f(T){this._=T}
function r(T,m){return T.trim().split(/^|\s+/).map(function(M){var lF="",yU=M.indexOf(".");yU>=0&&(lF=M.slice(yU+1),M=M.slice(0,yU));if(M&&!m.hasOwnProperty(M))throw Error("ve`"+M);return{type:M,name:lF}})}
function R(T,m,M){for(var lF=0,yU=T.length;lF<yU;++lF)if(T[lF].name===m){T[lF]=auY;T=T.slice(0,lF).concat(T.slice(lF+1));break}M!=null&&T.push({name:m,value:M});return T}
function y(T){var m=T,M=m.indexOf(":");M>=0&&(m=T.slice(0,M))!=="xmlns"&&(T=T.slice(M+1));return MP.hasOwnProperty(m)?{space:MP[m],local:T}:T}
function P(T){return function(){var m=this.ownerDocument,M=this.namespaceURI;return M==="http://www.w3.org/1999/xhtml"&&m.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?m.createElement(T):m.createElementNS(M,T)}}
function n(T){return function(){return this.ownerDocument.createElementNS(T.space,T.local)}}
function B(T){T=y(T);return(T.local?n:P)(T)}
function d(){}
function J(T){return T==null?d:function(){return this.querySelector(T)}}
function D(T){return Array(T.length)}
function u(T,m){this.ownerDocument=T.ownerDocument;this.namespaceURI=T.namespaceURI;this._next=null;this._parent=T;this.__data__=m}
function H(T){return function(){return T}}
function p(T,m,M,lF,yU,D4){for(var Fn=0,mj,fe=m.length,Ez=D4.length;Fn<Ez;++Fn)(mj=m[Fn])?(mj.__data__=D4[Fn],lF[Fn]=mj):M[Fn]=new u(T,D4[Fn]);for(;Fn<fe;++Fn)if(mj=m[Fn])yU[Fn]=mj}
function X(T,m,M,lF,yU,D4,Fn){var mj,fe,Ez={},rL=m.length,dL=D4.length,hZ=Array(rL),bs;for(mj=0;mj<rL;++mj)if(fe=m[mj])hZ[mj]=bs="$"+Fn.call(fe,fe.__data__,mj,m),bs in Ez?yU[mj]=fe:Ez[bs]=fe;for(mj=0;mj<dL;++mj)bs="$"+Fn.call(T,D4[mj],mj,D4),(fe=Ez[bs])?(lF[mj]=fe,fe.__data__=D4[mj],Ez[bs]=null):M[mj]=new u(T,D4[mj]);for(mj=0;mj<rL;++mj)(fe=m[mj])&&Ez[hZ[mj]]===fe&&(yU[mj]=fe)}
function w(T,m){return T<m?-1:T>m?1:T>=m?0:NaN}
function O(T){return function(){this.removeAttribute(T)}}
function S(T){return function(){this.removeAttributeNS(T.space,T.local)}}
function N(T,m){return function(){this.setAttribute(T,m)}}
function x(T,m){return function(){this.setAttributeNS(T.space,T.local,m)}}
function Y(T,m){return function(){var M=m.apply(this,arguments);M==null?this.removeAttribute(T):this.setAttribute(T,M)}}
function W8(T,m){return function(){var M=m.apply(this,arguments);M==null?this.removeAttributeNS(T.space,T.local):this.setAttributeNS(T.space,T.local,M)}}
function c8(T){return function(){this.style.removeProperty(T)}}
function B8(T,m,M){return function(){this.style.setProperty(T,m,M)}}
function Jx(T,m,M){return function(){var lF=m.apply(this,arguments);lF==null?this.style.removeProperty(T):this.style.setProperty(T,lF,M)}}
function H8(T,m){return T.style.getPropertyValue(m)||(T.ownerDocument&&T.ownerDocument.defaultView||T.document&&T||T.defaultView).getComputedStyle(T,null).getPropertyValue(m)}
function Kq(T){return function(){delete this[T]}}
function Z4(T,m){return function(){this[T]=m}}
function Ax(T,m){return function(){var M=m.apply(this,arguments);M==null?delete this[T]:this[T]=M}}
function sM(){this.textContent=""}
function Ta(T){return function(){this.textContent=T}}
function ck(T){return function(){var m=T.apply(this,arguments);this.textContent=m==null?"":m}}
function Wk(){this.innerHTML=""}
function D$(T){return function(){this.innerHTML=T}}
function Bk(T){return function(){var m=T.apply(this,arguments);this.innerHTML=m==null?"":m}}
function iB(){return null}
function p2(){var T=this.parentNode;T&&T.removeChild(this)}
function SL(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function RY(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function lB(T,m,M){T=kc(T,m,M);return function(lF){var yU=lF.relatedTarget;yU&&(yU===this||yU.compareDocumentPosition(this)&8)||T.call(this,lF)}}
function kc(T,m,M){return function(){T.call(this,this.__data__,m,M)}}
function n2(T){return T.trim().split(/^|\s+/).map(function(m){var M="",lF=m.indexOf(".");lF>=0&&(M=m.slice(lF+1),m=m.slice(0,lF));return{type:m,name:M}})}
function vk(T){return function(){var m=this.__on;if(m){for(var M=0,lF=-1,yU=m.length,D4;M<yU;++M)(D4=m[M],T.type&&D4.type!==T.type||D4.name!==T.name)?m[++lF]=D4:this.removeEventListener(D4.type,D4.listener,D4.capture);++lF?m.length=lF:delete this.__on}}}
function VL(T,m,M){var lF=b6k.hasOwnProperty(T.type)?lB:kc;return function(yU,D4,Fn){yU=this.__on;var mj;D4=lF(m,D4,Fn);if(yU){Fn=0;for(var fe=yU.length;Fn<fe;++Fn)if((mj=yU[Fn]).type===T.type&&mj.name===T.name){this.removeEventListener(mj.type,mj.listener,mj.capture);this.addEventListener(mj.type,mj.listener=D4,mj.capture=M);mj.value=m;return}}this.addEventListener(T.type,D4,M);mj={type:T.type,name:T.name,value:m,listener:D4,capture:M};yU?yU.push(mj):this.__on=[mj]}}
function Lc(T,m,M){var lF=T.ownerDocument&&T.ownerDocument.defaultView||T.document&&T||T.defaultView,yU=lF.CustomEvent;typeof yU==="function"?yU=new yU(m,M):(yU=lF.document.createEvent("Event"),M?(yU.initEvent(m,M.bubbles,M.cancelable),yU.detail=M.detail):yU.initEvent(m,!1,!1));T.dispatchEvent(yU)}
function ls(T,m){return function(){return Lc(this,T,m)}}
function Pk(T,m){return function(){return Lc(this,T,m.apply(this,arguments))}}
function q1(T,m){this._groups=T;this._parents=m}
function Dc(){return new q1([[document.documentElement]],z5Z)}
function pe(){this._="@"+(++Nt4).toString(36)}
function oX(T,m,M){T.prototype=m.prototype=M;M.constructor=T}
function ve(T,m){T=Object.create(T.prototype);for(var M in m)T[M]=m[M];return T}
function dI(){}
function J1(T){var m;T=(T+"").trim().toLowerCase();return(m=Yje.exec(T))?(m=parseInt(m[1],16),new xZ(m>>8&15|m>>4&240,m>>4&15|m&240,(m&15)<<4|m&15,1)):(m=x0w.exec(T))?ih(parseInt(m[1],16)):(m=e5w.exec(T))?new xZ(m[1],m[2],m[3],1):(m=qjw.exec(T))?new xZ(m[1]*255/100,m[2]*255/100,m[3]*255/100,1):(m=h5L.exec(T))?jn(m[1],m[2],m[3],m[4]):(m=SjY.exec(T))?jn(m[1]*255/100,m[2]*255/100,m[3]*255/100,m[4]):(m=E0w.exec(T))?ai(m[1],m[2]/100,m[3]/100,1):(m=$01.exec(T))?ai(m[1],m[2]/100,m[3]/100,m[4]):p3I.hasOwnProperty(T)?
ih(p3I[T]):T==="transparent"?new xZ(NaN,NaN,NaN,0):null}
function ih(T){return new xZ(T>>16&255,T>>8&255,T&255,1)}
function jn(T,m,M,lF){lF<=0&&(T=m=M=NaN);return new xZ(T,m,M,lF)}
function aX(T){T instanceof dI||(T=J1(T));if(!T)return new xZ;T=T.rgb();return new xZ(T.r,T.g,T.b,T.opacity)}
function A1(T,m,M,lF){return arguments.length===1?aX(T):new xZ(T,m,M,lF==null?1:lF)}
function xZ(T,m,M,lF){this.r=+T;this.g=+m;this.b=+M;this.opacity=+lF}
function $Z(T){T=Math.max(0,Math.min(255,Math.round(T)||0));return(T<16?"0":"")+T.toString(16)}
function ai(T,m,M,lF){lF<=0?T=m=M=NaN:M<=0||M>=1?T=m=NaN:m<=0&&(T=NaN);return new ML(T,m,M,lF)}
function F4(T){if(T instanceof ML)return new ML(T.h,T.s,T.l,T.opacity);T instanceof dI||(T=J1(T));if(!T)return new ML;if(T instanceof ML)return T;T=T.rgb();var m=T.r/255,M=T.g/255,lF=T.b/255,yU=Math.min(m,M,lF),D4=Math.max(m,M,lF),Fn=NaN,mj=D4-yU,fe=(D4+yU)/2;mj?(Fn=m===D4?(M-lF)/mj+(M<lF)*6:M===D4?(lF-m)/mj+2:(m-M)/mj+4,mj/=fe<.5?D4+yU:2-D4-yU,Fn*=60):mj=fe>0&&fe<1?0:Fn;return new ML(Fn,mj,fe,T.opacity)}
function fS(T,m,M,lF){return arguments.length===1?F4(T):new ML(T,m,M,lF==null?1:lF)}
function ML(T,m,M,lF){this.h=+T;this.s=+m;this.l=+M;this.opacity=+lF}
function zu(T,m,M){return(T<60?m+(M-m)*T/60:T<180?M:T<240?m+(M-m)*(240-T)/60:m)*255}
function cj(T){if(T instanceof pq)return new pq(T.l,T.a,T.b,T.opacity);if(T instanceof Ke){if(isNaN(T.h))return new pq(T.l,0,0,T.opacity);var m=T.h*oCc;return new pq(T.l,Math.cos(m)*T.c,Math.sin(m)*T.c,T.opacity)}T instanceof xZ||(T=aX(T));var M=C2(T.r),lF=C2(T.g),yU=C2(T.b);m=QU(.2225045*M+.7168786*lF+.0606169*yU);if(M===lF&&lF===yU)var D4=M=m;else D4=QU((.4360747*M+.3850649*lF+.1430804*yU)/.96422),M=QU((.0139322*M+.0971045*lF+.7141733*yU)/.82521);return new pq(116*m-16,500*(D4-m),200*(m-M),T.opacity)}
function pq(T,m,M,lF){this.l=+T;this.a=+m;this.b=+M;this.opacity=+lF}
function QU(T){return T>WmN?Math.pow(T,1/3):T/jBZ+IIa}
function Yz(T){return T>KI?T*T*T:jBZ*(T-IIa)}
function uB(T){return 255*(T<=.0031308?12.92*T:1.055*Math.pow(T,1/2.4)-.055)}
function C2(T){return(T/=255)<=.04045?T/12.92:Math.pow((T+.055)/1.055,2.4)}
function XX(T){if(T instanceof Ke)return new Ke(T.h,T.c,T.l,T.opacity);T instanceof pq||(T=cj(T));if(T.a===0&&T.b===0)return new Ke(NaN,0,T.l,T.opacity);var m=Math.atan2(T.b,T.a)*i69;return new Ke(m<0?m+360:m,Math.sqrt(T.a*T.a+T.b*T.b),T.l,T.opacity)}
function Fw(T,m,M,lF){return arguments.length===1?XX(T):new Ke(T,m,M,lF==null?1:lF)}
function Ke(T,m,M,lF){this.h=+T;this.c=+m;this.l=+M;this.opacity=+lF}
function Hk(T,m,M,lF){if(arguments.length===1){var yU=T;if(yU instanceof T1)yU=new T1(yU.h,yU.s,yU.l,yU.opacity);else{yU instanceof xZ||(yU=aX(yU));var D4=yU.g/255,Fn=yU.b/255,mj=(m5v*Fn+yU.r/255*-1.7884503806-3.5172982438*D4)/(m5v+-1.7884503806-3.5172982438);Fn-=mj;var fe=(1.97294*(D4-mj)- -.29227*Fn)/-.90649;Fn=(D4=Math.sqrt(fe*fe+Fn*Fn)/(1.97294*mj*(1-mj)))?Math.atan2(fe,Fn)*i69-120:NaN;yU=new T1(Fn<0?Fn+360:Fn,D4,mj,yU.opacity)}}else yU=new T1(T,m,M,lF==null?1:lF);return yU}
function T1(T,m,M,lF){this.h=+T;this.s=+m;this.l=+M;this.opacity=+lF}
function u7(T,m,M,lF,yU){var D4=T*T,Fn=D4*T;return((1-3*T+3*D4-Fn)*m+(4-6*D4+3*Fn)*M+(1+3*T+3*D4-3*Fn)*lF+Fn*yU)/6}
function JZ(T){return function(){return T}}
function G7(T,m){return function(M){return T+M*m}}
function wK(T,m,M){return T=Math.pow(T,M),m=Math.pow(m,M)-T,M=1/M,function(lF){return Math.pow(T+lF*m,M)}}
function Za(T,m){var M=m-T;return M?G7(T,M>180||M<-180?M-360*Math.round(M/360):M):JZ(isNaN(T)?m:T)}
function z_(T){return(T=+T)===1?Y_:function(m,M){return M-m?wK(m,M,T):JZ(isNaN(m)?M:m)}}
function Y_(T,m){var M=m-T;return M?G7(T,M):JZ(isNaN(T)?m:T)}
function b$(T){return function(m){var M=m.length,lF=Array(M),yU=Array(M),D4=Array(M),Fn;for(Fn=0;Fn<M;++Fn){var mj=A1(m[Fn]);lF[Fn]=mj.r||0;yU[Fn]=mj.g||0;D4[Fn]=mj.b||0}lF=T(lF);yU=T(yU);D4=T(D4);mj.opacity=1;return function(fe){mj.r=lF(fe);mj.g=yU(fe);mj.b=D4(fe);return mj+""}}}
function bh(T,m){return T=+T,m-=T,function(M){return T+m*M}}
function pv(T){return function(){return T}}
function G5(T){return function(m){return T(m)+""}}
function Sv(T,m){var M=pLU.lastIndex=orS.lastIndex=0,lF,yU,D4,Fn=-1,mj=[],fe=[];T+="";for(m+="";(lF=pLU.exec(T))&&(yU=orS.exec(m));)(D4=yU.index)>M&&(D4=m.slice(M,D4),mj[Fn]?mj[Fn]+=D4:mj[++Fn]=D4),(lF=lF[0])===(yU=yU[0])?mj[Fn]?mj[Fn]+=yU:mj[++Fn]=yU:(mj[++Fn]=null,fe.push({i:Fn,x:bh(lF,yU)})),M=orS.lastIndex;M<m.length&&(D4=m.slice(M),mj[Fn]?mj[Fn]+=D4:mj[++Fn]=D4);return mj.length<2?fe[0]?G5(fe[0].x):pv(m):(m=fe.length,function(Ez){for(var rL=0,dL;rL<m;++rL)mj[(dL=fe[rL]).i]=dL.x(Ez);return mj.join("")})}
function U5(T,m,M,lF,yU,D4){var Fn,mj,fe;if(Fn=Math.sqrt(T*T+m*m))T/=Fn,m/=Fn;if(fe=T*M+m*lF)M-=T*fe,lF-=m*fe;if(mj=Math.sqrt(M*M+lF*lF))M/=mj,lF/=mj,fe/=mj;T*lF<m*M&&(T=-T,m=-m,fe=-fe,Fn=-Fn);return{translateX:yU,translateY:D4,rotate:Math.atan2(m,T)*X3k,skewX:Math.atan(fe)*X3k,scaleX:Fn,scaleY:mj}}
function mN(T,m,M,lF){function yU(Ez){return Ez.length?Ez.pop()+" ":""}
function D4(Ez,rL,dL,hZ,bs,H$){Ez!==dL||rL!==hZ?(bs=bs.push("translate(",null,m,null,M),H$.push({i:bs-4,x:bh(Ez,dL)},{i:bs-2,x:bh(rL,hZ)})):(dL||hZ)&&bs.push("translate("+dL+m+hZ+M)}
function Fn(Ez,rL,dL,hZ){Ez!==rL?(Ez-rL>180?rL+=360:rL-Ez>180&&(Ez+=360),hZ.push({i:dL.push(yU(dL)+"rotate(",null,lF)-2,x:bh(Ez,rL)})):rL&&dL.push(yU(dL)+"rotate("+rL+lF)}
function mj(Ez,rL,dL,hZ){Ez!==rL?hZ.push({i:dL.push(yU(dL)+"skewX(",null,lF)-2,x:bh(Ez,rL)}):rL&&dL.push(yU(dL)+"skewX("+rL+lF)}
function fe(Ez,rL,dL,hZ,bs,H$){Ez!==dL||rL!==hZ?(bs=bs.push(yU(bs)+"scale(",null,",",null,")"),H$.push({i:bs-4,x:bh(Ez,dL)},{i:bs-2,x:bh(rL,hZ)})):dL===1&&hZ===1||bs.push(yU(bs)+"scale("+dL+","+hZ+")")}
return function(Ez,rL){var dL=[],hZ=[];Ez=T(Ez);rL=T(rL);D4(Ez.translateX,Ez.translateY,rL.translateX,rL.translateY,dL,hZ);Fn(Ez.rotate,rL.rotate,dL,hZ);mj(Ez.skewX,rL.skewX,dL,hZ);fe(Ez.scaleX,Ez.scaleY,rL.scaleX,rL.scaleY,dL,hZ);Ez=rL=null;return function(bs){for(var H$=-1,xd=hZ.length,ot;++H$<xd;)dL[(ot=hZ[H$]).i]=ot.x(bs);return dL.join("")}}}
function L2(T){return function(m,M){var lF=T((m=fS(m)).h,(M=fS(M)).h),yU=Y_(m.s,M.s),D4=Y_(m.l,M.l),Fn=Y_(m.opacity,M.opacity);return function(mj){m.h=lF(mj);m.s=yU(mj);m.l=D4(mj);m.opacity=Fn(mj);return m+""}}}
function C5(T){return function(m,M){var lF=T((m=Fw(m)).h,(M=Fw(M)).h),yU=Y_(m.c,M.c),D4=Y_(m.l,M.l),Fn=Y_(m.opacity,M.opacity);return function(mj){m.h=lF(mj);m.c=yU(mj);m.l=D4(mj);m.opacity=Fn(mj);return m+""}}}
function qC(T){return function lF(M){function yU(D4,Fn){var mj=T((D4=Hk(D4)).h,(Fn=Hk(Fn)).h),fe=Y_(D4.s,Fn.s),Ez=Y_(D4.l,Fn.l),rL=Y_(D4.opacity,Fn.opacity);return function(dL){D4.h=mj(dL);D4.s=fe(dL);D4.l=Ez(Math.pow(dL,M));D4.opacity=rL(dL);return D4+""}}
M=+M;yU.gamma=lF;return yU}(1)}
function aZ(){return VJ||(TZv(EU),VJ=Oo.now()+hVY)}
function EU(){VJ=0}
function o$(){this._call=this._time=this._next=null}
function Th(T,m,M){var lF=new o$;lF.restart(T,m,M);return lF}
function w0(){VJ=(S6v=Oo.now())+hVY;Fr=aO=0;try{aZ();++Fr;for(var T=EY4,m;T;)(m=VJ-T._time)>=0&&T._call.call(null,m),T=T._next;--Fr}finally{Fr=0;T=EY4;for(var M=Infinity;T;)if(T._call){M>T._time&&(M=T._time);var lF=T;T=T._next}else m=T._next,T._next=null,T=lF?lF._next=m:EY4=m;z9=lF;An(M);VJ=0}}
function B3F(){var T=Oo.now(),m=T-S6v;m>1E3&&(hVY-=m,S6v=T)}
function An(T){Fr||(aO&&(aO=clearTimeout(aO)),T-VJ>24?(T<Infinity&&(aO=setTimeout(w0,T-Oo.now()-hVY)),Nh&&(Nh=clearInterval(Nh))):(Nh||(S6v=Oo.now(),Nh=setInterval(B3F,1E3)),Fr=1,TZv(w0)))}
function w31(T,m,M){var lF=new o$;m=m==null?0:+m;lF.restart(function(yU){lF.stop();T(yU+m)},m,M);
return lF}
function jkn(T,m,M,lF,yU,D4){var Fn=T.__transition;if(!Fn)T.__transition={};else if(M in Fn)return;lkZ(T,M,{name:m,index:lF,group:yU,on:Vbw,tween:fk5,time:D4.time,delay:D4.delay,duration:D4.duration,ease:D4.ease,timer:null,state:0})}
function ISz(T,m){T=bc(T,m);if(T.state>0)throw Error("we");return T}
function fx(T,m){T=bc(T,m);if(T.state>2)throw Error("xe");return T}
function bc(T,m){T=T.__transition;if(!T||!(T=T[m]))throw Error("ye");return T}
function lkZ(T,m,M){function lF(fe){var Ez,rL;if(M.state!==1)return D4();for(hZ in Fn){var dL=Fn[hZ];if(dL.name===M.name){if(dL.state===3)return w31(lF);dL.state===4?(dL.state=6,dL.timer.stop(),dL.on.call("interrupt",T,T.__data__,dL.index,dL.group),delete Fn[hZ]):+hZ<m&&(dL.state=6,dL.timer.stop(),delete Fn[hZ])}}w31(function(){M.state===3&&(M.state=4,M.timer.restart(yU,M.delay,M.time),yU(fe))});
M.state=2;M.on.call("start",T,T.__data__,M.index,M.group);if(M.state===2){M.state=3;mj=Array(rL=M.tween.length);var hZ=0;for(Ez=-1;hZ<rL;++hZ)if(dL=M.tween[hZ].value.call(T,T.__data__,M.index,M.group))mj[++Ez]=dL;mj.length=Ez+1}}
function yU(fe){fe=fe<M.duration?M.ease.call(null,fe/M.duration):(M.timer.restart(D4),M.state=5,1);for(var Ez=-1,rL=mj.length;++Ez<rL;)mj[Ez].call(null,fe);M.state===5&&(M.on.call("end",T,T.__data__,M.index,M.group),D4())}
function D4(){M.state=6;M.timer.stop();delete Fn[m];for(var fe in Fn)return;delete T.__transition}
var Fn=T.__transition,mj;Fn[m]=M;M.timer=Th(function(fe){M.state=1;M.timer.restart(lF,M.delay,M.time);M.delay<=fe&&lF(fe-M.delay)},0,M.time)}
function rJ1(T,m){var M,lF;return function(){var yU=fx(this,T),D4=yU.tween;if(D4!==M){lF=M=D4;D4=0;for(var Fn=lF.length;D4<Fn;++D4)if(lF[D4].name===m){lF=lF.slice();lF.splice(D4,1);break}}yU.tween=lF}}
function R1e(T,m,M){var lF,yU;if(typeof M!=="function")throw Error();return function(){var D4=fx(this,T),Fn=D4.tween;if(Fn!==lF){yU=(lF=Fn).slice();Fn={name:m,value:M};for(var mj=0,fe=yU.length;mj<fe;++mj)if(yU[mj].name===m){yU[mj]=Fn;break}mj===fe&&yU.push(Fn)}D4.tween=yU}}
function iAz(T,m,M){var lF=T._id;T.each(function(){var yU=fx(this,lF);(yU.value||(yU.value={}))[m]=M.apply(this,arguments)});
return function(yU){return bc(yU,lF).value[m]}}
function Azk(T,m){var M;return(typeof m==="number"?bh:m instanceof J1?QBL:(M=J1(m))?(m=M,QBL):Sv)(T,m)}
function tbe(T){return function(){this.removeAttribute(T)}}
function sHw(T){return function(){this.removeAttributeNS(T.space,T.local)}}
function Lm4(T,m,M){var lF,yU;return function(){var D4=this.getAttribute(T);return D4===M?null:D4===lF?yU:yU=m(lF=D4,M)}}
function yJN(T,m,M){var lF,yU;return function(){var D4=this.getAttributeNS(T.space,T.local);return D4===M?null:D4===lF?yU:yU=m(lF=D4,M)}}
function gQ5(T,m,M){var lF,yU,D4;return function(){var Fn=M(this);if(Fn==null)return void this.removeAttribute(T);var mj=this.getAttribute(T);return mj===Fn?null:mj===lF&&Fn===yU?D4:D4=m(lF=mj,yU=Fn)}}
function PO2(T,m,M){var lF,yU,D4;return function(){var Fn=M(this);if(Fn==null)return void this.removeAttributeNS(T.space,T.local);var mj=this.getAttributeNS(T.space,T.local);return mj===Fn?null:mj===lF&&Fn===yU?D4:D4=m(lF=mj,yU=Fn)}}
function nQ5(T,m){function M(){var lF=this,yU=m.apply(lF,arguments);return yU&&function(D4){lF.setAttributeNS(T.space,T.local,yU(D4))}}
M._value=m;return M}
function COL(T,m){function M(){var lF=this,yU=m.apply(lF,arguments);return yU&&function(D4){lF.setAttribute(T,yU(D4))}}
M._value=m;return M}
function cJe(T,m){return function(){ISz(this,T).delay=+m.apply(this,arguments)}}
function BT2(T,m){return m=+m,function(){ISz(this,T).delay=m}}
function dle(T,m){return function(){fx(this,T).duration=+m.apply(this,arguments)}}
function JJc(T,m){return m=+m,function(){fx(this,T).duration=m}}
function DlY(T,m){if(typeof m!=="function")throw Error();return function(){fx(this,T).ease=m}}
function Ulw(T){return(T+"").trim().split(/^|\s+/).every(function(m){var M=m.indexOf(".");M>=0&&(m=m.slice(0,M));return!m||m==="start"})}
function u6N(T,m,M){var lF,yU,D4=Ulw(m)?ISz:fx;return function(){var Fn=D4(this,T),mj=Fn.on;if(mj!==lF)(yU=(lF=mj).copy()).on(m,M);Fn.on=yU}}
function kP7(T){return function(){var m=this.parentNode,M;for(M in this.__transition)if(+M!==T)return;m&&m.removeChild(this)}}
function vQw(T,m){var M,lF,yU;return function(){var D4=H8(this,T),Fn=(this.style.removeProperty(T),H8(this,T));return D4===Fn?null:D4===M&&Fn===lF?yU:yU=m(M=D4,lF=Fn)}}
function HEL(T){return function(){this.style.removeProperty(T)}}
function Kmc(T,m,M){var lF,yU;return function(){var D4=H8(this,T);return D4===M?null:D4===lF?yU:yU=m(lF=D4,M)}}
function FmN(T,m,M){var lF,yU,D4;return function(){var Fn=H8(this,T),mj=M(this);mj==null&&(mj=(this.style.removeProperty(T),H8(this,T)));return Fn===mj?null:Fn===lF&&mj===yU?D4:D4=m(lF=Fn,yU=mj)}}
function GP4(T,m,M){function lF(){var yU=this,D4=m.apply(yU,arguments);return D4&&function(Fn){yU.style.setProperty(T,D4(Fn),M)}}
lF._value=m;return lF}
function bEc(T){return function(){this.textContent=T}}
function pmw(T){return function(){var m=T(this);this.textContent=m==null?"":m}}
function l5(T,m,M,lF){this._groups=T;this._parents=m;this._name=M;this._id=lF}
function mqz(T){return{type:T}}
function XLj(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function $LY(){}
function M7e(T,m){var M=new $LY;if(T instanceof $LY)T.each(function(Fn,mj){M.set(mj,Fn)});
else if(Array.isArray(T)){var lF=-1,yU=T.length,D4;if(m==null)for(;++lF<yU;)M.set(lF,T[lF]);else for(;++lF<yU;)M.set(m(D4=T[lF],lF,T),D4)}else if(T)for(lF in T)M.set(lF,T[lF]);return M}
function Wu8(){}
function Z6v(T){return function(m){for(var M={},lF=0;lF<T.length;lF++)M[T[lF]]=m[lF]||"";return M}}
function oQZ(T,m){var M=Z6v(T);return function(lF,yU){return m(M(lF),yU,T)}}
function jH1(T){var m=Object.create(null),M=[];T.forEach(function(lF){for(var yU in lF)yU in m||M.push(m[yU]=yU)});
return M}
function O6B(T){function m(Fn,mj){function fe(){if(H$)return TYx;if(xd)return xd=!1,aIk;var hr,xW=dL,dJ;if(Fn.charCodeAt(xW)===34){for(;dL++<rL&&Fn.charCodeAt(dL)!==34||Fn.charCodeAt(++dL)===34;);(hr=dL)>=rL?H$=!0:(dJ=Fn.charCodeAt(dL++))===10?xd=!0:dJ===13&&(xd=!0,Fn.charCodeAt(dL)===10&&++dL);return Fn.slice(xW+1,hr-1).replace(/""/g,'"')}for(;dL<rL;){if((dJ=Fn.charCodeAt(hr=dL++))===10)xd=!0;else if(dJ===13)xd=!0,Fn.charCodeAt(dL)===10&&++dL;else if(dJ!==D4)continue;return Fn.slice(xW,hr)}return H$=
!0,Fn.slice(xW,rL)}
var Ez=[],rL=Fn.length,dL=0,hZ=0,bs,H$=rL<=0,xd=!1;Fn.charCodeAt(rL-1)===10&&--rL;for(Fn.charCodeAt(rL-1)===13&&--rL;(bs=fe())!==TYx;){for(var ot=[];bs!==aIk&&bs!==TYx;)ot.push(bs),bs=fe();mj&&(ot=mj(ot,hZ++))==null||Ez.push(ot)}return Ez}
function M(Fn){return Fn.map(lF).join(T)}
function lF(Fn){return Fn==null?"":yU.test(Fn)?'"'+Fn.replace(/"/g,'""')+'"':Fn}
var yU=new RegExp('["'+T+"\n\r]"),D4=T.charCodeAt(0);return{parse:function(Fn,mj){var fe,Ez;Fn=m(Fn,function(rL,dL){if(fe)return fe(rL,dL-1);Ez=rL;fe=mj?oQZ(rL,mj):Z6v(rL)});
Fn.columns=Ez||[];return Fn},
parseRows:m,format:function(Fn,mj){mj==null&&(mj=jH1(Fn));return[mj.map(lF).join(T)].concat(Fn.map(function(fe){return mj.map(function(Ez){return lF(fe[Ez])}).join(T)})).join("\n")},
formatRows:function(Fn){return Fn.map(M).join("\n")}}}
function IkZ(T){if(!T.ok)throw Error("ze`"+T.status+"`"+T.statusText);return T.text()}
function zmL(T){return function(m,M,lF){arguments.length===2&&typeof M==="function"&&(lF=M,M=void 0);return fetch(m,M).then(IkZ).then(function(yU){return T(yU,lF)})}}
function NZZ(T,m,M,lF){if(isNaN(m)||isNaN(M))return T;var yU,D4=T._root;lF={data:lF};var Fn=T._x0,mj=T._y0,fe=T._x1,Ez=T._y1,rL,dL,hZ,bs,H$;if(!D4)return T._root=lF,T;for(;D4.length;)if((hZ=m>=(rL=(Fn+fe)/2))?Fn=rL:fe=rL,(bs=M>=(dL=(mj+Ez)/2))?mj=dL:Ez=dL,yU=D4,!(D4=D4[H$=bs<<1|hZ]))return yU[H$]=lF,T;var xd=+T._x.call(null,D4.data);var ot=+T._y.call(null,D4.data);if(m===xd&&M===ot)return lF.next=D4,yU?yU[H$]=lF:T._root=lF,T;do yU=yU?yU[H$]=Array(4):T._root=Array(4),(hZ=m>=(rL=(Fn+fe)/2))?Fn=rL:fe=
rL,(bs=M>=(dL=(mj+Ez)/2))?mj=dL:Ez=dL;while((H$=bs<<1|hZ)===(hZ=(ot>=dL)<<1|xd>=rL));return yU[hZ]=D4,yU[H$]=lF,T}
function M6(T,m,M,lF,yU){this.node=T;this.x0=m;this.y0=M;this.x1=lF;this.y1=yU}
function iEw(T){return T[0]}
function mlH(T){return T[1]}
function wLv(T,m,M,lF,yU,D4){this._x=T;this._y=m;this._x0=M;this._y0=lF;this._x1=yU;this._y1=D4;this._root=void 0}
function Y71(T){for(var m={data:T.data},M=m;T=T.next;)M=M.next={data:T.data};return m}
function lsq(T,m){if((m=(T=m?T.toExponential(m-1):T.toExponential()).indexOf("e"))<0)return null;var M=T.slice(0,m);return[M.length>1?M[0]+M.slice(2):M,+T.slice(m+1)]}
function Xm2(T){return T=lsq(Math.abs(T)),T?T[1]:NaN}
function TT7(T,m){return function(M,lF){for(var yU=M.length,D4=[],Fn=0,mj=T[0],fe=0;yU>0&&mj>0;){fe+mj+1>lF&&(mj=Math.max(1,lF-fe));D4.push(M.substring(yU-=mj,yU+mj));if((fe+=mj+1)>lF)break;mj=T[Fn=(Fn+1)%T.length]}return D4.reverse().join(m)}}
function wm7(T){return function(m){return m.replace(/[0-9]/g,function(M){return T[+M]})}}
function ApU(T){return new Qk6(T)}
function Qk6(T){if(!(m=AJ1.exec(T)))throw Error("Ae`"+T);var m;this.fill=m[1]||" ";this.align=m[2]||">";this.sign=m[3]||"-";this.symbol=m[4]||"";this.zero=!!m[5];this.width=m[6]&&+m[6];this.comma=!!m[7];this.precision=m[8]&&+m[8].slice(1);this.trim=!!m[9];this.type=m[10]||""}
function x5L(T,m){m=lsq(T,m);if(!m)return T+"";T=m[0];m=m[1];return m<0?"0."+Array(-m).join("0")+T:T.length>m+1?T.slice(0,m+1)+"."+T.slice(m+1):T+Array(m-T.length+2).join("0")}
function emk(T){return T}
function QHw(T){function m(mj){function fe(qI){var ye=dJ,O5=SJ,kk,P$;if(xW==="c")O5=em(qI)+O5,qI="";else{qI=+qI;var Iw=qI<0;qI=em(Math.abs(qI),ot);if(hr){var z3=qI.length,AH=1,SC=-1;a:for(;AH<z3;++AH)switch(qI[AH]){case ".":SC=kk=AH;break;case "0":SC===0&&(SC=AH);kk=AH;break;default:if(!+qI[AH])break a;SC>0&&(SC=0)}qI=SC>0?qI.slice(0,SC)+qI.slice(kk+1):qI}Iw&&+qI===0&&(Iw=!1);ye=(Iw?dL==="("?dL:"-":dL==="-"||dL==="("?"":dL)+ye;O5=(xW==="s"?q7a[8+hmk/3]:"")+O5+(Iw&&dL==="("?")":"");if(uI)for(Iw=-1,
kk=qI.length;++Iw<kk;)if(P$=qI.charCodeAt(Iw),48>P$||P$>57){O5=(P$===46?yU+qI.slice(Iw+1):qI.slice(Iw))+O5;qI=qI.slice(0,Iw);break}}xd&&!bs&&(qI=M(qI,Infinity));P$=ye.length+qI.length+O5.length;Iw=P$<H$?Array(H$-P$+1).join(Ez):"";xd&&bs&&(qI=M(Iw+qI,Iw.length?H$-O5.length:Infinity),Iw="");switch(rL){case "<":qI=ye+qI+O5+Iw;break;case "=":qI=ye+Iw+qI+O5;break;case "^":qI=Iw.slice(0,P$=Iw.length>>1)+ye+qI+O5+Iw.slice(P$);break;default:qI=Iw+ye+qI+O5}return D4(qI)}
mj=ApU(mj);var Ez=mj.fill,rL=mj.align,dL=mj.sign,hZ=mj.symbol,bs=mj.zero,H$=mj.width,xd=mj.comma,ot=mj.precision,hr=mj.trim,xW=mj.type;xW==="n"?(xd=!0,xW="g"):S7v[xW]||(ot==null&&(ot=12),hr=!0,xW="g");if(bs||Ez==="0"&&rL==="=")bs=!0,Ez="0",rL="=";var dJ=hZ==="$"?lF[0]:hZ==="#"&&/[boxX]/.test(xW)?"0"+xW.toLowerCase():"",SJ=hZ==="$"?lF[1]:/[%p]/.test(xW)?Fn:"",em=S7v[xW],uI=/[defgprs%]/.test(xW);ot=ot==null?6:/[gprs]/.test(xW)?Math.max(1,Math.min(21,ot)):Math.max(0,Math.min(20,ot));fe.toString=function(){return mj+
""};
return fe}
var M=T.grouping&&T.thousands?TT7(T.grouping,T.thousands):emk,lF=T.currency,yU=T.decimal,D4=T.numerals?wm7(T.numerals):emk,Fn=T.percent||"%";return{format:m,formatPrefix:function(mj,fe){var Ez=m((mj=ApU(mj),mj.type="f",mj));mj=Math.max(-8,Math.min(8,Math.floor(Xm2(fe)/3)))*3;var rL=Math.pow(10,-mj),dL=q7a[8+mj/3];return function(hZ){return Ez(rL*hZ)+dL}}}}
function bk(){this.reset()}
function ECB(T,m,M){var lF=T.s=m+M,yU=lF-m;T.t=m-(lF-yU)+(M-yU)}
function VSn(T){return T>1?Zm:T<-1?-Zm:Math.asin(T)}
function MbY(){}
function $5L(T){var m=T[0];T=T[1];var M=OH(T);return[M*OH(m),M*Ka(m),Ka(T)]}
function WBv(T,m){return[T[1]*m[2]-T[2]*m[1],T[2]*m[0]-T[0]*m[2],T[0]*m[1]-T[1]*m[0]]}
function lSZ(T){var m=fsz(T[0]*T[0]+T[1]*T[1]+T[2]*T[2]);T[0]/=m;T[1]/=m;T[2]/=m}
function ZEc(){var T=[],m;return{point:function(M,lF){m.push([M,lF])},
lineStart:function(){T.push(m=[])},
lineEnd:MbY,rejoin:function(){T.length>1&&T.push(T.pop().concat(T.shift()))},
result:function(){var M=T;T=[];m=null;return M}}}
function rvn(T,m,M,lF){this.x=T;this.z=m;this.o=M;this.e=lF;this.v=!1;this.n=this.p=null}
function OE7(T,m,M,lF,yU){var D4=[],Fn=[];T.forEach(function(dL){if(!((hZ=dL.length-1)<=0)){var hZ,bs=dL[0],H$=dL[hZ],xd=bs;if(VM(xd[0]-H$[0])<1E-6&&VM(xd[1]-H$[1])<1E-6){yU.lineStart();for(mj=0;mj<hZ;++mj)yU.point((bs=dL[mj])[0],bs[1]);yU.lineEnd()}else D4.push(hZ=new rvn(bs,dL,null,!0)),Fn.push(hZ.o=new rvn(bs,null,hZ,!1)),D4.push(hZ=new rvn(H$,dL,null,!1)),Fn.push(hZ.o=new rvn(H$,null,hZ,!0))}});
if(D4.length){Fn.sort(m);VXc(D4);VXc(Fn);var mj=0;for(T=Fn.length;mj<T;++mj)Fn[mj].e=M=!M;M=D4[0];for(var fe;;){for(var Ez=M,rL=!0;Ez.v;)if((Ez=Ez.n)===M)return;m=Ez.z;yU.lineStart();do{Ez.v=Ez.o.v=!0;if(Ez.e){if(rL)for(mj=0,T=m.length;mj<T;++mj)yU.point((fe=m[mj])[0],fe[1]);else lF(Ez.x,Ez.n.x,1,yU);Ez=Ez.n}else{if(rL)for(m=Ez.p.z,mj=m.length-1;mj>=0;--mj)yU.point((fe=m[mj])[0],fe[1]);else lF(Ez.x,Ez.p.x,-1,yU);Ez=Ez.p}Ez=Ez.o;m=Ez.z;rL=!rL}while(!Ez.v);yU.lineEnd()}}}
function VXc(T){if(m=T.length){for(var m,M=0,lF=T[0],yU;++M<m;)lF.n=yU=T[M],yU.p=lF,lF=yU;lF.n=yU=T[0];yU.p=lF}}
function ak7(T){return T.length>1}
function z12(T,m){return((T=T.x)[0]<0?T[1]-Zm-1E-6:Zm-T[1])-((m=m.x)[0]<0?m[1]-Zm-1E-6:Zm-m[1])}
function MXj(){}
function fS$(T){return function(m,M){var lF=OH(m),yU=OH(M);lF=T(lF*yU);return[lF*yU*Ka(m),lF*Ka(M)]}}
function xT(T){return function(m,M){var lF=fsz(m*m+M*M),yU=T(lF),D4=Ka(yU);yU=OH(yU);return[rpe(m*D4,lF*yU),VSn(lF&&M*D4/lF)]}}
function NT2(T){var m=0,M=T.children,lF=M&&M.length;if(lF)for(;--lF>=0;)m+=M[lF].value;else m=1;T.value=m}
function RlZ(T,m){var M=new eO(T);T=+T.value&&(M.value=T.value);var lF,yU=[M],D4,Fn,mj,fe;for(m==null&&(m=YbZ);lF=yU.pop();)if(T&&(lF.value=+lF.data.value),(Fn=m(lF.data))&&(fe=Fn.length))for(lF.children=Array(fe),mj=fe-1;mj>=0;--mj)yU.push(D4=lF.children[mj]=new eO(Fn[mj])),D4.parent=lF,D4.depth=lF.depth+1;return M.eachBefore(xl4)}
function YbZ(T){return T.children}
function e1w(T){T.data=T.data.data}
function xl4(T){var m=0;do T.height=m;while((T=T.parent)&&T.height<++m)}
function eO(T){this.data=T;this.depth=this.height=0;this.parent=null}
function nN(T,m,M,lF){function yU(D4){return T(D4=new Date(+D4)),D4}
yU.floor=yU;yU.ceil=function(D4){return T(D4=new Date(D4-1)),m(D4,1),T(D4),D4};
yU.round=function(D4){var Fn=yU(D4),mj=yU.ceil(D4);return D4-Fn<mj-D4?Fn:mj};
yU.offset=function(D4,Fn){return m(D4=new Date(+D4),Fn==null?1:Math.floor(Fn)),D4};
yU.range=function(D4,Fn,mj){var fe=[],Ez;D4=yU.ceil(D4);mj=mj==null?1:Math.floor(mj);if(!(D4<Fn&&mj>0))return fe;do fe.push(Ez=new Date(+D4)),m(D4,mj),T(D4);while(Ez<D4&&D4<Fn);return fe};
yU.filter=function(D4){return nN(function(Fn){if(Fn>=Fn)for(;T(Fn),!D4(Fn);)Fn.setTime(Fn-1)},function(Fn,mj){if(Fn>=Fn)if(mj<0)for(;++mj<=0;)for(;m(Fn,-1),!D4(Fn););
else for(;--mj>=0;)for(;m(Fn,1),!D4(Fn););})};
M&&(yU.count=function(D4,Fn){ZAn.setTime(+D4);OAU.setTime(+Fn);T(ZAn);T(OAU);return Math.floor(M(ZAn,OAU))},yU.every=function(D4){D4=Math.floor(D4);
return isFinite(D4)&&D4>0?D4>1?yU.filter(lF?function(Fn){return lF(Fn)%D4===0}:function(Fn){return yU.count(0,Fn)%D4===0}):yU:null});
return yU}
function rW(T){return nN(function(m){m.setDate(m.getDate()-(m.getDay()+7-T)%7);m.setHours(0,0,0,0)},function(m,M){m.setDate(m.getDate()+M*7)},function(m,M){return(M-m-(M.getTimezoneOffset()-m.getTimezoneOffset())*6E4)/6048E5})}
function RW(T){return nN(function(m){m.setUTCDate(m.getUTCDate()-(m.getUTCDay()+7-T)%7);m.setUTCHours(0,0,0,0)},function(m,M){m.setUTCDate(m.getUTCDate()+M*7)},function(m,M){return(M-m)/6048E5})}
function qbw(T){if(0<=T.y&&T.y<100){var m=new Date(-1,T.m,T.d,T.H,T.M,T.S,T.L);m.setFullYear(T.y);return m}return new Date(T.y,T.m,T.d,T.H,T.M,T.S,T.L)}
function Rjv(T){if(0<=T.y&&T.y<100){var m=new Date(Date.UTC(-1,T.m,T.d,T.H,T.M,T.S,T.L));m.setUTCFullYear(T.y);return m}return new Date(Date.UTC(T.y,T.m,T.d,T.H,T.M,T.S,T.L))}
function qh(T){return{y:T,m:0,d:1,H:0,M:0,S:0,L:0}}
function h1s(T){function m(O5,kk){return function(P$){var Iw=[],z3=-1,AH=0,SC=O5.length,PA,yO;for(P$ instanceof Date||(P$=new Date(+P$));++z3<SC;)if(O5.charCodeAt(z3)===37){Iw.push(O5.slice(AH,z3));(AH=tXL[PA=O5.charAt(++z3)])!=null?PA=O5.charAt(++z3):AH=PA==="e"?" ":"0";if(yO=kk[PA])PA=yO(P$,AH);Iw.push(PA);AH=z3+1}Iw.push(O5.slice(AH,z3));return Iw.join("")}}
function M(O5,kk){return function(P$){var Iw=qh(1900);if(lF(Iw,O5,P$,0)!=P$.length)return null;if("Q"in Iw)return new Date(Iw.Q);"p"in Iw&&(Iw.H=Iw.H%12+Iw.p*12);if("V"in Iw){if(Iw.V<1||Iw.V>53)return null;"w"in Iw||(Iw.w=1);if("Z"in Iw){P$=Rjv(qh(Iw.y));var z3=P$.getUTCDay();P$=z3>4||z3===0?aSJ.ceil(P$):aSJ(P$);P$=skM.offset(P$,(Iw.V-1)*7);Iw.y=P$.getUTCFullYear();Iw.m=P$.getUTCMonth();Iw.d=P$.getUTCDate()+(Iw.w+6)%7}else P$=kk(qh(Iw.y)),z3=P$.getDay(),P$=z3>4||z3===0?zlS.ceil(P$):zlS(P$),P$=LBL.offset(P$,
(Iw.V-1)*7),Iw.y=P$.getFullYear(),Iw.m=P$.getMonth(),Iw.d=P$.getDate()+(Iw.w+6)%7}else if("W"in Iw||"U"in Iw)"w"in Iw||(Iw.w="u"in Iw?Iw.u%7:"W"in Iw?1:0),z3="Z"in Iw?Rjv(qh(Iw.y)).getUTCDay():kk(qh(Iw.y)).getDay(),Iw.m=0,Iw.d="W"in Iw?(Iw.w+6)%7+Iw.W*7-(z3+5)%7:Iw.w+Iw.U*7-(z3+6)%7;return"Z"in Iw?(Iw.H+=Iw.Z/100|0,Iw.M+=Iw.Z%100,Rjv(Iw)):kk(Iw)}}
function lF(O5,kk,P$,Iw){for(var z3=0,AH=kk.length,SC=P$.length,PA;z3<AH;){if(Iw>=SC)return-1;PA=kk.charCodeAt(z3++);if(PA===37){if(PA=kk.charAt(z3++),PA=ye[PA in tXL?kk.charAt(z3++):PA],!PA||(Iw=PA(O5,P$,Iw))<0)return-1}else if(PA!=P$.charCodeAt(Iw++))return-1}return Iw}
var yU=T.dateTime,D4=T.date,Fn=T.time,mj=T.periods,fe=T.days,Ez=T.shortDays,rL=T.months,dL=T.shortMonths,hZ=hD(mj),bs=SO(mj),H$=hD(fe),xd=SO(fe),ot=hD(Ez),hr=SO(Ez),xW=hD(rL),dJ=SO(rL),SJ=hD(dL),em=SO(dL),uI={a:function(O5){return Ez[O5.getDay()]},
A:function(O5){return fe[O5.getDay()]},
b:function(O5){return dL[O5.getMonth()]},
B:function(O5){return rL[O5.getMonth()]},
c:null,d:ypa,e:ypa,f:Sbc,H:EQ4,I:$lL,j:WV7,L:grX,m:lI1,M:V7N,p:function(O5){return mj[+(O5.getHours()>=12)]},
Q:PHv,s:nrX,S:fI2,u:rz5,U:RmL,V:t7N,w:sBs,W:LVw,x:null,X:null,y:yz1,Y:gC1,Z:PL7,"%":CH9},qI={a:function(O5){return Ez[O5.getUTCDay()]},
A:function(O5){return fe[O5.getUTCDay()]},
b:function(O5){return dL[O5.getUTCMonth()]},
B:function(O5){return rL[O5.getUTCMonth()]},
c:null,d:cpe,e:cpe,f:nC5,H:CLH,I:czs,j:BZw,L:BY1,m:d55,M:Jzw,p:function(O5){return mj[+(O5.getUTCHours()>=12)]},
Q:PHv,s:nrX,S:D5Y,u:U5e,U:uUH,V:ko7,w:vCN,W:H62,x:null,X:null,y:KVL,Y:FVY,Z:Go4,"%":CH9},ye={a:function(O5,kk,P$){return(kk=ot.exec(kk.slice(P$)))?(O5.w=hr[kk[0].toLowerCase()],P$+kk[0].length):-1},
A:function(O5,kk,P$){return(kk=H$.exec(kk.slice(P$)))?(O5.w=xd[kk[0].toLowerCase()],P$+kk[0].length):-1},
b:function(O5,kk,P$){return(kk=SJ.exec(kk.slice(P$)))?(O5.m=em[kk[0].toLowerCase()],P$+kk[0].length):-1},
B:function(O5,kk,P$){return(kk=xW.exec(kk.slice(P$)))?(O5.m=dJ[kk[0].toLowerCase()],P$+kk[0].length):-1},
c:function(O5,kk,P$){return lF(O5,yU,kk,P$)},
d:dqe,e:dqe,f:b6e,H:JpL,I:JpL,j:p34,L:oCZ,m:jB1,M:II1,p:function(O5,kk,P$){return(kk=hZ.exec(kk.slice(P$)))?(O5.p=bs[kk[0].toLowerCase()],P$+kk[0].length):-1},
Q:i6w,s:m5L,S:X3N,u:TZL,U:w3H,V:AzN,w:QB7,W:M72,x:function(O5,kk,P$){return lF(O5,D4,kk,P$)},
X:function(O5,kk,P$){return lF(O5,Fn,kk,P$)},
y:Z6L,Y:O6s,Z:aIe,"%":zm7};uI.x=m(D4,uI);uI.X=m(Fn,uI);uI.c=m(yU,uI);qI.x=m(D4,qI);qI.X=m(Fn,qI);qI.c=m(yU,qI);return{format:function(O5){var kk=m(O5,uI);kk.toString=function(){return O5};
return kk},
parse:function(O5){var kk=M(O5,qbw);kk.toString=function(){return O5};
return kk},
utcFormat:function(O5){var kk=m(O5,qI);kk.toString=function(){return O5};
return kk},
utcParse:function(O5){var kk=M(O5,Rjv);kk.toString=function(){return O5};
return kk}}}
function DL(T,m,M){var lF=T<0?"-":"";T=(lF?-T:T)+"";var yU=T.length;return lF+(yU<M?Array(M-yU+1).join(m)+T:T)}
function NZ1(T){return T.replace(Y7H,"\\$&")}
function hD(T){return new RegExp("^(?:"+T.map(NZ1).join("|")+")","i")}
function SO(T){for(var m={},M=-1,lF=T.length;++M<lF;)m[T[M].toLowerCase()]=M;return m}
function QB7(T,m,M){return(m=JW.exec(m.slice(M,M+1)))?(T.w=+m[0],M+m[0].length):-1}
function TZL(T,m,M){return(m=JW.exec(m.slice(M,M+1)))?(T.u=+m[0],M+m[0].length):-1}
function w3H(T,m,M){return(m=JW.exec(m.slice(M,M+2)))?(T.U=+m[0],M+m[0].length):-1}
function AzN(T,m,M){return(m=JW.exec(m.slice(M,M+2)))?(T.V=+m[0],M+m[0].length):-1}
function M72(T,m,M){return(m=JW.exec(m.slice(M,M+2)))?(T.W=+m[0],M+m[0].length):-1}
function O6s(T,m,M){return(m=JW.exec(m.slice(M,M+4)))?(T.y=+m[0],M+m[0].length):-1}
function Z6L(T,m,M){return(m=JW.exec(m.slice(M,M+2)))?(T.y=+m[0]+(+m[0]>68?1900:2E3),M+m[0].length):-1}
function aIe(T,m,M){return(m=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(m.slice(M,M+6)))?(T.Z=m[1]?0:-(m[2]+(m[3]||"00")),M+m[0].length):-1}
function jB1(T,m,M){return(m=JW.exec(m.slice(M,M+2)))?(T.m=m[0]-1,M+m[0].length):-1}
function dqe(T,m,M){return(m=JW.exec(m.slice(M,M+2)))?(T.d=+m[0],M+m[0].length):-1}
function p34(T,m,M){return(m=JW.exec(m.slice(M,M+3)))?(T.m=0,T.d=+m[0],M+m[0].length):-1}
function JpL(T,m,M){return(m=JW.exec(m.slice(M,M+2)))?(T.H=+m[0],M+m[0].length):-1}
function II1(T,m,M){return(m=JW.exec(m.slice(M,M+2)))?(T.M=+m[0],M+m[0].length):-1}
function X3N(T,m,M){return(m=JW.exec(m.slice(M,M+2)))?(T.S=+m[0],M+m[0].length):-1}
function oCZ(T,m,M){return(m=JW.exec(m.slice(M,M+3)))?(T.L=+m[0],M+m[0].length):-1}
function b6e(T,m,M){return(m=JW.exec(m.slice(M,M+6)))?(T.L=Math.floor(m[0]/1E3),M+m[0].length):-1}
function zm7(T,m,M){return(T=x57.exec(m.slice(M,M+1)))?M+T[0].length:-1}
function i6w(T,m,M){return(m=JW.exec(m.slice(M)))?(T.Q=+m[0],M+m[0].length):-1}
function m5L(T,m,M){return(m=JW.exec(m.slice(M)))?(T.Q=+m[0]*1E3,M+m[0].length):-1}
function ypa(T,m){return DL(T.getDate(),m,2)}
function EQ4(T,m){return DL(T.getHours(),m,2)}
function $lL(T,m){return DL(T.getHours()%12||12,m,2)}
function WV7(T,m){return DL(1+LBL.count(GU(T),T),m,3)}
function grX(T,m){return DL(T.getMilliseconds(),m,3)}
function Sbc(T,m){return grX(T,m)+"000"}
function lI1(T,m){return DL(T.getMonth()+1,m,2)}
function V7N(T,m){return DL(T.getMinutes(),m,2)}
function fI2(T,m){return DL(T.getSeconds(),m,2)}
function rz5(T){T=T.getDay();return T===0?7:T}
function RmL(T,m){return DL(emN.count(GU(T),T),m,2)}
function t7N(T,m){var M=T.getDay();T=M>=4||M===0?NYz(T):NYz.ceil(T);return DL(NYz.count(GU(T),T)+(GU(T).getDay()===4),m,2)}
function sBs(T){return T.getDay()}
function LVw(T,m){return DL(zlS.count(GU(T),T),m,2)}
function yz1(T,m){return DL(T.getFullYear()%100,m,2)}
function gC1(T,m){return DL(T.getFullYear()%1E4,m,4)}
function PL7(T){T=T.getTimezoneOffset();return(T>0?"-":(T*=-1,"+"))+DL(T/60|0,"0",2)+DL(T%60,"0",2)}
function cpe(T,m){return DL(T.getUTCDate(),m,2)}
function CLH(T,m){return DL(T.getUTCHours(),m,2)}
function czs(T,m){return DL(T.getUTCHours()%12||12,m,2)}
function BZw(T,m){return DL(1+skM.count(bg(T),T),m,3)}
function BY1(T,m){return DL(T.getUTCMilliseconds(),m,3)}
function nC5(T,m){return BY1(T,m)+"000"}
function d55(T,m){return DL(T.getUTCMonth()+1,m,2)}
function Jzw(T,m){return DL(T.getUTCMinutes(),m,2)}
function D5Y(T,m){return DL(T.getUTCSeconds(),m,2)}
function U5e(T){T=T.getUTCDay();return T===0?7:T}
function uUH(T,m){return DL(q71.count(bg(T),T),m,2)}
function ko7(T,m){var M=T.getUTCDay();T=M>=4||M===0?YqU(T):YqU.ceil(T);return DL(YqU.count(bg(T),T)+(bg(T).getUTCDay()===4),m,2)}
function vCN(T){return T.getUTCDay()}
function H62(T,m){return DL(aSJ.count(bg(T),T),m,2)}
function KVL(T,m){return DL(T.getUTCFullYear()%100,m,2)}
function FVY(T,m){return DL(T.getUTCFullYear()%1E4,m,4)}
function Go4(){return"+0000"}
function CH9(){return"%"}
function PHv(T){return+T}
function nrX(T){return Math.floor(+T/1E3)}
function Bg(T){for(var m=T.length/6|0,M=Array(m),lF=0;lF<m;)M[lF]="#"+T.slice(lF*6,++lF*6);return M}
function N4(T){return hmN(T[T.length-1])}
function tSz(T){var m=T.length;return function(M){return T[Math.max(0,Math.min(m-1,Math.floor(M*m)))]}}
function DqX(T){this._context=T}
function UqZ(T){this._curve=T}
function uEM(T,m,M){var lF=T._x1-T._x0;m-=T._x1;var yU=(T._y1-T._y0)/(lF||m<0&&-0);T=(M-T._y1)/(m||lF<0&&-0);return((yU<0?-1:1)+(T<0?-1:1))*Math.min(Math.abs(yU),Math.abs(T),.5*Math.abs((yU*m+T*lF)/(lF+m)))||0}
function kvI(T,m){var M=T._x1-T._x0;return M?(3*(T._y1-T._y0)/M-m)/2:m}
function xqx(T,m,M){var lF=T._x0,yU=T._x1,D4=T._y1,Fn=(yU-lF)/3;T._context.bezierCurveTo(lF+Fn,T._y0+Fn*m,yU-Fn,D4-Fn*M,yU,D4)}
function elU(T){this._context=T}
function vrk(T){this._context=T}
function Eo(T,m,M){this.k=T;this.x=m;this.y=M}
(function(T){T.length===1&&(T=l(T));return{left:function(m,M,lF,yU){lF==null&&(lF=0);yU==null&&(yU=m.length);for(;lF<yU;){var D4=lF+yU>>>1;T(m[D4],M)<0?lF=D4+1:yU=D4}return lF},
right:function(m,M,lF,yU){lF==null&&(lF=0);yU==null&&(yU=m.length);for(;lF<yU;){var D4=lF+yU>>>1;T(m[D4],M)>0?yU=D4:lF=D4+1}return lF}}})(W);
var auY={value:function(){}};
f.prototype=V.prototype={constructor:f,on:function(T,m){var M=this._,lF=r(T+"",M),yU,D4=-1,Fn=lF.length;if(arguments.length<2)for(;++D4<Fn;){var mj;if(mj=yU=(T=lF[D4]).type){a:{mj=M[yU];for(var fe=0,Ez=mj.length;fe<Ez;++fe)if((yU=mj[fe]).name===T.name){yU=yU.value;break a}yU=void 0}mj=yU}if(mj)return yU}else{if(m!=null&&typeof m!=="function")throw Error("Be`"+m);for(;++D4<Fn;)if(yU=(T=lF[D4]).type)M[yU]=R(M[yU],T.name,m);else if(m==null)for(yU in M)M[yU]=R(M[yU],T.name,null);return this}},
copy:function(){var T={},m=this._,M;for(M in m)T[M]=m[M].slice();return new f(T)},
call:function(T,m){if((yU=arguments.length-2)>0)for(var M=Array(yU),lF=0,yU,D4;lF<yU;++lF)M[lF]=arguments[lF+2];if(!this._.hasOwnProperty(T))throw Error("ve`"+T);D4=this._[T];lF=0;for(yU=D4.length;lF<yU;++lF)D4[lF].value.apply(m,M)},
apply:function(T,m,M){if(!this._.hasOwnProperty(T))throw Error("ve`"+T);T=this._[T];for(var lF=0,yU=T.length;lF<yU;++lF)T[lF].value.apply(m,M)}};
var MP={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/"},HAe=function(T){return function(){return this.matches(T)}};
if(typeof document!=="undefined"){var $T=document.documentElement;if(!$T.matches){var S7L=$T.webkitMatchesSelector||$T.msMatchesSelector||$T.mozMatchesSelector||$T.oMatchesSelector;HAe=function(T){return function(){return S7L.call(this,T)}}}}var KBI=HAe;
u.prototype={constructor:u,appendChild:function(T){return this._parent.insertBefore(T,this._next)},
insertBefore:function(T,m){return this._parent.insertBefore(T,m)},
querySelector:function(T){return this._parent.querySelector(T)},
querySelectorAll:function(T){return this._parent.querySelectorAll(T)}};
var b6k={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(b6k={mouseenter:"mouseover",mouseleave:"mouseout"}));var z5Z=[null];q1.prototype=Dc.prototype={constructor:q1,select:function(T){typeof T!=="function"&&(T=J(T));for(var m=this._groups,M=m.length,lF=Array(M),yU=0;yU<M;++yU)for(var D4=m[yU],Fn=D4.length,mj=lF[yU]=Array(Fn),fe,Ez,rL=0;rL<Fn;++rL)(fe=D4[rL])&&(Ez=T.call(fe,fe.__data__,rL,D4))&&("__data__"in fe&&(Ez.__data__=fe.__data__),mj[rL]=Ez);return new q1(lF,
this._parents)},
filter:function(T){typeof T!=="function"&&(T=KBI(T));for(var m=this._groups,M=m.length,lF=Array(M),yU=0;yU<M;++yU)for(var D4=m[yU],Fn=D4.length,mj=lF[yU]=[],fe,Ez=0;Ez<Fn;++Ez)(fe=D4[Ez])&&T.call(fe,fe.__data__,Ez,D4)&&mj.push(fe);return new q1(lF,this._parents)},
data:function(T,m){if(!T)return bs=Array(this.size()),Ez=-1,this.each(function(xW){bs[++Ez]=xW}),bs;
var M=m?X:p,lF=this._parents,yU=this._groups;typeof T!=="function"&&(T=H(T));for(var D4=yU.length,Fn=Array(D4),mj=Array(D4),fe=Array(D4),Ez=0;Ez<D4;++Ez){var rL=lF[Ez],dL=yU[Ez],hZ=dL.length,bs=T.call(rL,rL&&rL.__data__,Ez,lF),H$=bs.length,xd=mj[Ez]=Array(H$),ot=Fn[Ez]=Array(H$);hZ=fe[Ez]=Array(hZ);M(rL,dL,xd,ot,hZ,bs,m);dL=rL=0;for(var hr;rL<H$;++rL)if(hZ=xd[rL]){for(rL>=dL&&(dL=rL+1);!(hr=ot[dL])&&++dL<H$;);hZ._next=hr||null}}Fn=new q1(Fn,lF);Fn._enter=mj;Fn._exit=fe;return Fn},
enter:function(){return new q1(this._enter||this._groups.map(D),this._parents)},
exit:function(){return new q1(this._exit||this._groups.map(D),this._parents)},
merge:function(T){var m=this._groups;T=T._groups;for(var M=m.length,lF=Math.min(M,T.length),yU=Array(M),D4=0;D4<lF;++D4)for(var Fn=m[D4],mj=T[D4],fe=Fn.length,Ez=yU[D4]=Array(fe),rL,dL=0;dL<fe;++dL)if(rL=Fn[dL]||mj[dL])Ez[dL]=rL;for(;D4<M;++D4)yU[D4]=m[D4];return new q1(yU,this._parents)},
order:function(){for(var T=this._groups,m=-1,M=T.length;++m<M;)for(var lF=T[m],yU=lF.length-1,D4=lF[yU],Fn;--yU>=0;)if(Fn=lF[yU])D4&&D4!==Fn.nextSibling&&D4.parentNode.insertBefore(Fn,D4),D4=Fn;return this},
sort:function(T){function m(dL,hZ){return dL&&hZ?T(dL.__data__,hZ.__data__):!dL-!hZ}
T||(T=w);for(var M=this._groups,lF=M.length,yU=Array(lF),D4=0;D4<lF;++D4){for(var Fn=M[D4],mj=Fn.length,fe=yU[D4]=Array(mj),Ez,rL=0;rL<mj;++rL)if(Ez=Fn[rL])fe[rL]=Ez;fe.sort(m)}return(new q1(yU,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()),m=-1;this.each(function(){T[++m]=this});
return T},
node:function(){for(var T=this._groups,m=0,M=T.length;m<M;++m)for(var lF=T[m],yU=0,D4=lF.length;yU<D4;++yU){var Fn=lF[yU];if(Fn)return Fn}return null},
size:function(){var T=0;this.each(function(){++T});
return T},
empty:function(){return!this.node()},
each:function(T){for(var m=this._groups,M=0,lF=m.length;M<lF;++M)for(var yU=m[M],D4=0,Fn=yU.length,mj;D4<Fn;++D4)(mj=yU[D4])&&T.call(mj,mj.__data__,D4,yU);return this},
attr:function(T,m){var M=y(T);if(arguments.length<2){var lF=this.node();return M.local?lF.getAttributeNS(M.space,M.local):lF.getAttribute(M)}return this.each((m==null?M.local?S:O:typeof m==="function"?M.local?W8:Y:M.local?x:N)(M,m))},
style:function(T,m,M){return arguments.length>1?this.each((m==null?c8:typeof m==="function"?Jx:B8)(T,m,M==null?"":M)):H8(this.node(),T)},
property:function(T,m){return arguments.length>1?this.each((m==null?Kq:typeof m==="function"?Ax:Z4)(T,m)):this.node()[T]},
text:function(T){return arguments.length?this.each(T==null?sM:(typeof T==="function"?ck:Ta)(T)):this.node().textContent},
html:function(T){return arguments.length?this.each(T==null?Wk:(typeof T==="function"?Bk:D$)(T)):this.node().innerHTML},
append:function(T){var m=typeof T==="function"?T:B(T);return this.select(function(){return this.appendChild(m.apply(this,arguments))})},
insert:function(T,m){var M=typeof T==="function"?T:B(T),lF=m==null?iB:typeof m==="function"?m:J(m);return this.select(function(){return this.insertBefore(M.apply(this,arguments),lF.apply(this,arguments)||null)})},
remove:function(){return this.each(p2)},
clone:function(T){return this.select(T?RY:SL)},
datum:function(T){return arguments.length?this.property("__data__",T):this.node().__data__},
on:function(T,m,M){var lF=n2(T+""),yU=lF.length,D4;if(arguments.length<2){var Fn=this.node().__on;if(Fn)for(var mj=0,fe=Fn.length,Ez;mj<fe;++mj){var rL=0;for(Ez=Fn[mj];rL<yU;++rL)if((D4=lF[rL]).type===Ez.type&&D4.name===Ez.name)return Ez.value}}else{Fn=m?VL:vk;M==null&&(M=!1);for(rL=0;rL<yU;++rL)this.each(Fn(lF[rL],m,M));return this}},
dispatch:function(T,m){return this.each((typeof m==="function"?Pk:ls)(T,m))}};
var Nt4=0;pe.prototype=function(){return new pe}.prototype={constructor:pe,
get:function(T){for(var m=this._;!(m in T);)if(!(T=T.parentNode))return;return T[m]},
set:function(T,m){return T[this._]=m},
remove:function(T){return this._ in T&&delete T[this._]},
toString:function(){return this._}};
var pI=1/.7,Yje=/^#([0-9a-f]{3})$/,x0w=/^#([0-9a-f]{6})$/,e5w=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),qjw=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),h5L=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),SjY=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*\\)$"),
E0w=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),$01=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*\\)$"),p3I={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};
oX(dI,J1,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
oX(xZ,A1,ve(dI,{brighter:function(T){T=T==null?pI:Math.pow(pI,T);return new xZ(this.r*T,this.g*T,this.b*T,this.opacity)},
darker:function(T){T=T==null?.7:Math.pow(.7,T);return new xZ(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"#"+$Z(this.r)+$Z(this.g)+$Z(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+")")}}));
oX(ML,fS,ve(dI,{brighter:function(T){T=T==null?pI:Math.pow(pI,T);return new ML(this.h,this.s,this.l*T,this.opacity)},
darker:function(T){T=T==null?.7:Math.pow(.7,T);return new ML(this.h,this.s,this.l*T,this.opacity)},
rgb:function(){var T=this.h%360+(this.h<0)*360,m=this.l,M=m+(m<.5?m:1-m)*(isNaN(T)||isNaN(this.s)?0:this.s);m=2*m-M;return new xZ(zu(T>=240?T-240:T+120,m,M),zu(T,m,M),zu(T<120?T+240:T-120,m,M),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 oCc=Math.PI/180,i69=180/Math.PI,IIa=4/29,KI=6/29,jBZ=3*KI*KI,WmN=KI*KI*KI;oX(pq,function(T,m,M,lF){return arguments.length===1?cj(T):new pq(T,m,M,lF==null?1:lF)},ve(dI,{brighter:function(T){return new pq(this.l+18*(T==null?1:T),this.a,this.b,this.opacity)},
darker:function(T){return new pq(this.l-18*(T==null?1:T),this.a,this.b,this.opacity)},
rgb:function(){var T=(this.l+16)/116,m=isNaN(this.a)?T:T+this.a/500,M=isNaN(this.b)?T:T-this.b/200;m=.96422*Yz(m);T=1*Yz(T);M=.82521*Yz(M);return new xZ(uB(3.1338561*m-1.6168667*T-.4906146*M),uB(-.9787684*m+1.9161415*T+.033454*M),uB(.0719453*m-.2289914*T+1.4052427*M),this.opacity)}}));
oX(Ke,Fw,ve(dI,{brighter:function(T){return new Ke(this.h,this.c,this.l+18*(T==null?1:T),this.opacity)},
darker:function(T){return new Ke(this.h,this.c,this.l-18*(T==null?1:T),this.opacity)},
rgb:function(){return cj(this).rgb()}}));
var m5v=1.78277*-.29227-.1347134789;oX(T1,Hk,ve(dI,{brighter:function(T){T=T==null?pI:Math.pow(pI,T);return new T1(this.h,this.s,this.l*T,this.opacity)},
darker:function(T){T=T==null?.7:Math.pow(.7,T);return new T1(this.h,this.s,this.l*T,this.opacity)},
rgb:function(){var T=isNaN(this.h)?0:(this.h+120)*oCc,m=+this.l,M=isNaN(this.s)?0:this.s*m*(1-m),lF=Math.cos(T);T=Math.sin(T);return new xZ(255*(m+M*(-.14861*lF+1.78277*T)),255*(m+M*(-.29227*lF+-.90649*T)),255*(m+1.97294*lF*M),this.opacity)}}));
var QBL=function M(m){function lF(D4,Fn){var mj=yU((D4=A1(D4)).r,(Fn=A1(Fn)).r),fe=yU(D4.g,Fn.g),Ez=yU(D4.b,Fn.b),rL=Y_(D4.opacity,Fn.opacity);return function(dL){D4.r=mj(dL);D4.g=fe(dL);D4.b=Ez(dL);D4.opacity=rL(dL);return D4+""}}
var yU=z_(m);lF.gamma=M;return lF}(1),hmN=b$(function(m){var M=m.length-1;
return function(lF){var yU=lF<=0?lF=0:lF>=1?(lF=1,M-1):Math.floor(lF*M),D4=m[yU],Fn=m[yU+1];return u7((lF-yU/M)*M,yU>0?m[yU-1]:2*D4-Fn,D4,Fn,yU<M-1?m[yU+2]:2*Fn-D4)}});
b$(function(m){var M=m.length;return function(lF){var yU=Math.floor(((lF%=1)<0?++lF:lF)*M);return u7((lF-yU/M)*M,m[(yU+M-1)%M],m[yU%M],m[(yU+1)%M],m[(yU+2)%M])}});
var pLU=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,orS=new RegExp(pLU.source,"g"),X3k=180/Math.PI,qq8={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Wv,hlx,FBL,slz,ECs=mN(function(m){if(m==="none")return qq8;Wv||(Wv=document.createElement("DIV"),hlx=document.documentElement,FBL=document.defaultView);Wv.style.transform=m;m=FBL.getComputedStyle(hlx.appendChild(Wv),null).getPropertyValue("transform");hlx.removeChild(Wv);m=m.slice(7,-1).split(",");return U5(+m[0],+m[1],+m[2],+m[3],
+m[4],+m[5])},"px, ","px)","deg)"),$57=mN(function(m){if(m==null)return qq8;
slz||(slz=document.createElementNS("http://www.w3.org/2000/svg","g"));slz.setAttribute("transform",m);if(!(m=slz.transform.baseVal.consolidate()))return qq8;m=m.matrix;return U5(m.a,m.b,m.c,m.d,m.e,m.f)},", ",")",")");
L2(Za);L2(Y_);C5(Za);C5(Y_);qC(Za);var SqJ=qC(Y_),Fr=0,aO=0,Nh=0,EY4,z9,S6v=0,VJ=0,hVY=0,Oo=typeof performance==="object"&&performance.now?performance:Date,TZv=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(m){setTimeout(m,17)};
o$.prototype=Th.prototype={constructor:o$,restart:function(m,M,lF){if(typeof m!=="function")throw new TypeError("Ce");lF=(lF==null?aZ():+lF)+(M==null?0:+M);this._next||z9===this||(z9?z9._next=this:EY4=this,z9=this);this._call=m;this._time=lF;An()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,An())}};
var Vbw=V("start","end","interrupt"),fk5=[],WBL=Dc.prototype.constructor,GvL=0,oV=Dc.prototype;l5.prototype=function(m){return Dc().transition(m)}.prototype={constructor:l5,
select:function(m){var M=this._name,lF=this._id;typeof m!=="function"&&(m=J(m));for(var yU=this._groups,D4=yU.length,Fn=Array(D4),mj=0;mj<D4;++mj)for(var fe=yU[mj],Ez=fe.length,rL=Fn[mj]=Array(Ez),dL,hZ,bs=0;bs<Ez;++bs)(dL=fe[bs])&&(hZ=m.call(dL,dL.__data__,bs,fe))&&("__data__"in dL&&(hZ.__data__=dL.__data__),rL[bs]=hZ,jkn(rL[bs],M,lF,bs,rL,bc(dL,lF)));return new l5(Fn,this._parents,M,lF)},
filter:function(m){typeof m!=="function"&&(m=KBI(m));for(var M=this._groups,lF=M.length,yU=Array(lF),D4=0;D4<lF;++D4)for(var Fn=M[D4],mj=Fn.length,fe=yU[D4]=[],Ez,rL=0;rL<mj;++rL)(Ez=Fn[rL])&&m.call(Ez,Ez.__data__,rL,Fn)&&fe.push(Ez);return new l5(yU,this._parents,this._name,this._id)},
merge:function(m){if(m._id!==this._id)throw Error();var M=this._groups;m=m._groups;for(var lF=M.length,yU=Math.min(lF,m.length),D4=Array(lF),Fn=0;Fn<yU;++Fn)for(var mj=M[Fn],fe=m[Fn],Ez=mj.length,rL=D4[Fn]=Array(Ez),dL,hZ=0;hZ<Ez;++hZ)if(dL=mj[hZ]||fe[hZ])rL[hZ]=dL;for(;Fn<lF;++Fn)D4[Fn]=M[Fn];return new l5(D4,this._parents,this._name,this._id)},
selection:function(){return new WBL(this._groups,this._parents)},
transition:function(){for(var m=this._name,M=this._id,lF=++GvL,yU=this._groups,D4=yU.length,Fn=0;Fn<D4;++Fn)for(var mj=yU[Fn],fe=mj.length,Ez,rL=0;rL<fe;++rL)if(Ez=mj[rL]){var dL=bc(Ez,M);jkn(Ez,m,lF,rL,mj,{time:dL.time+dL.delay+dL.duration,delay:0,duration:dL.duration,ease:dL.ease})}return new l5(yU,this._parents,m,lF)},
call:oV.call,nodes:oV.nodes,node:oV.node,size:oV.size,empty:oV.empty,each:oV.each,on:function(m,M){var lF=this._id;return arguments.length<2?bc(this.node(),lF).on.on(m):this.each(u6N(lF,m,M))},
attr:function(m,M){var lF=y(m),yU=lF==="transform"?$57:Azk;return this.attrTween(m,typeof M==="function"?(lF.local?PO2:gQ5)(lF,yU,iAz(this,"attr."+m,M)):M==null?(lF.local?sHw:tbe)(lF):(lF.local?yJN:Lm4)(lF,yU,M+""))},
attrTween:function(m,M){var lF="attr."+m;if(arguments.length<2)return(lF=this.tween(lF))&&lF._value;if(M==null)return this.tween(lF,null);if(typeof M!=="function")throw Error();var yU=y(m);return this.tween(lF,(yU.local?nQ5:COL)(yU,M))},
style:function(m,M,lF){var yU=m==="transform"?ECs:Azk;return M==null?this.styleTween(m,vQw(m,yU)).on("end.style."+m,HEL(m)):this.styleTween(m,typeof M==="function"?FmN(m,yU,iAz(this,"style."+m,M)):Kmc(m,yU,M+""),lF)},
styleTween:function(m,M,lF){var yU="style."+m;if(arguments.length<2)return(yU=this.tween(yU))&&yU._value;if(M==null)return this.tween(yU,null);if(typeof M!=="function")throw Error();return this.tween(yU,GP4(m,M,lF==null?"":lF))},
text:function(m){return this.tween("text",typeof m==="function"?pmw(iAz(this,"text",m)):bEc(m==null?"":m+""))},
remove:function(){return this.on("end.remove",kP7(this._id))},
tween:function(m,M){var lF=this._id;if(arguments.length<2){lF=bc(this.node(),lF).tween;for(var yU=0,D4=lF.length,Fn;yU<D4;++yU)if((Fn=lF[yU]).name===m)return Fn.value;return null}return this.each((M==null?rJ1:R1e)(lF,m,M))},
delay:function(m){var M=this._id;return arguments.length?this.each((typeof m==="function"?cJe:BT2)(M,m)):bc(this.node(),M).delay},
duration:function(m){var M=this._id;return arguments.length?this.each((typeof m==="function"?dle:JJc)(M,m)):bc(this.node(),M).duration},
ease:function(m){var M=this._id;return arguments.length?this.each(DlY(M,m)):bc(this.node(),M).ease}};
var Erx={time:null,delay:0,duration:250,ease:function(m){return((m*=2)<=1?m*m*m:(m-=2)*m*m+2)/2}};
Dc.prototype.transition=function(m){var M;if(m instanceof l5){var lF=m._id;m=m._name}else lF=++GvL,(M=Erx).time=aZ(),m=m==null?null:m+"";for(var yU=this._groups,D4=yU.length,Fn=0;Fn<D4;++Fn)for(var mj=yU[Fn],fe=mj.length,Ez,rL=0;rL<fe;++rL)if(Ez=mj[rL]){var dL=Ez,hZ=m,bs=lF,H$=rL,xd=mj,ot;if(!(ot=M))a:{ot=void 0;for(var hr=lF;!(ot=Ez.__transition)||!(ot=ot[hr]);)if(!(Ez=Ez.parentNode)){ot=(Erx.time=aZ(),Erx);break a}}jkn(dL,hZ,bs,H$,xd,ot)}return new l5(yU,this._parents,m,lF)};
["e","w"].map(mqz);["n","s"].map(mqz);"n e s w nw ne se sw".split(" ").map(mqz);XLj.prototype=function(){return new XLj}.prototype={constructor:XLj,
moveTo:function(m,M){this._+="M"+(this._x0=this._x1=+m)+","+(this._y0=this._y1=+M)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(m,M){this._+="L"+(this._x1=+m)+","+(this._y1=+M)},
bezierCurveTo:function(m,M,lF,yU,D4,Fn){this._+="C"+ +m+","+ +M+","+ +lF+","+ +yU+","+(this._x1=+D4)+","+(this._y1=+Fn)},
rect:function(m,M,lF,yU){this._+="M"+(this._x0=this._x1=+m)+","+(this._y0=this._y1=+M)+"h"+ +lF+"v"+ +yU+"h"+-lF+"Z"},
toString:function(){return this._}};
$LY.prototype=M7e.prototype={constructor:$LY,has:function(m){return" "+m in this},
get:function(m){return this[" "+m]},
set:function(m,M){this[" "+m]=M;return this},
remove:function(m){m=" "+m;return m in this&&delete this[m]},
clear:function(){for(var m in this)m[0]===" "&&delete this[m]},
keys:function(){var m=[],M;for(M in this)M[0]===" "&&m.push(M.slice(1));return m},
values:function(){var m=[],M;for(M in this)M[0]===" "&&m.push(this[M]);return m},
entries:function(){var m=[],M;for(M in this)M[0]===" "&&m.push({key:M.slice(1),value:this[M]});return m},
size:function(){var m=0,M;for(M in this)M[0]===" "&&++m;return m},
empty:function(){for(var m in this)if(m[0]===" ")return!1;return!0},
each:function(m){for(var M in this)M[0]===" "&&m(this[M],M.slice(1),this)}};
var tR=M7e.prototype;Wu8.prototype=function(m,M){var lF=new Wu8;if(m instanceof Wu8)m.each(function(Fn){lF.add(Fn)});
else if(m){var yU=-1,D4=m.length;if(M==null)for(;++yU<D4;)lF.add(m[yU]);else for(;++yU<D4;)lF.add(M(m[yU],yU,m))}return lF}.prototype={constructor:Wu8,
has:tR.has,add:function(m){this[" "+m]=m;return this},
remove:tR.remove,clear:tR.clear,values:tR.keys,size:tR.size,empty:tR.empty,each:tR.each};var aIk={},TYx={},lS1=O6B(",").parse,VXZ=O6B("\t").parse;zmL(lS1);zmL(VXZ);var Zr=function(m,M,lF){M=new wLv(M==null?iEw:M,lF==null?mlH:lF,NaN,NaN,NaN,NaN);return m==null?M:M.addAll(m)}.prototype=wLv.prototype;
Zr.copy=function(){var m=new wLv(this._x,this._y,this._x0,this._y0,this._x1,this._y1),M=this._root,lF,yU;if(!M)return m;if(!M.length)return m._root=Y71(M),m;for(lF=[{source:M,target:m._root=Array(4)}];M=lF.pop();)for(var D4=0;D4<4;++D4)if(yU=M.source[D4])yU.length?lF.push({source:yU,target:M.target[D4]=Array(4)}):M.target[D4]=Y71(yU);return m};
Zr.add=function(m){var M=+this._x.call(null,m),lF=+this._y.call(null,m);return NZZ(this.cover(M,lF),M,lF,m)};
Zr.addAll=function(m){var M,lF,yU=m.length,D4,Fn,mj=Array(yU),fe=Array(yU),Ez=Infinity,rL=Infinity,dL=-Infinity,hZ=-Infinity;for(lF=0;lF<yU;++lF)isNaN(D4=+this._x.call(null,M=m[lF]))||isNaN(Fn=+this._y.call(null,M))||(mj[lF]=D4,fe[lF]=Fn,D4<Ez&&(Ez=D4),D4>dL&&(dL=D4),Fn<rL&&(rL=Fn),Fn>hZ&&(hZ=Fn));dL<Ez&&(Ez=this._x0,dL=this._x1);hZ<rL&&(rL=this._y0,hZ=this._y1);this.cover(Ez,rL).cover(dL,hZ);for(lF=0;lF<yU;++lF)NZZ(this,mj[lF],fe[lF],m[lF]);return this};
Zr.cover=function(m,M){if(isNaN(m=+m)||isNaN(M=+M))return this;var lF=this._x0,yU=this._y0,D4=this._x1,Fn=this._y1;if(isNaN(lF))D4=(lF=Math.floor(m))+1,Fn=(yU=Math.floor(M))+1;else if(lF>m||m>D4||yU>M||M>Fn){var mj=D4-lF,fe=this._root,Ez;switch(Ez=(M<(yU+Fn)/2)<<1|m<(lF+D4)/2){case 0:do{var rL=Array(4);rL[Ez]=fe;fe=rL}while(mj*=2,D4=lF+mj,Fn=yU+mj,m>D4||M>Fn);break;case 1:do rL=Array(4),rL[Ez]=fe,fe=rL;while(mj*=2,lF=D4-mj,Fn=yU+mj,lF>m||M>Fn);break;case 2:do rL=Array(4),rL[Ez]=fe,fe=rL;while(mj*=
2,D4=lF+mj,yU=Fn-mj,m>D4||yU>M);break;case 3:do rL=Array(4),rL[Ez]=fe,fe=rL;while(mj*=2,lF=D4-mj,yU=Fn-mj,lF>m||yU>M)}this._root&&this._root.length&&(this._root=fe)}else return this;this._x0=lF;this._y0=yU;this._x1=D4;this._y1=Fn;return this};
Zr.data=function(){var m=[];this.visit(function(M){if(!M.length){do m.push(M.data);while(M=M.next)}});
return m};
Zr.extent=function(m){return arguments.length?this.cover(+m[0][0],+m[0][1]).cover(+m[1][0],+m[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Zr.find=function(m,M,lF){var yU=this._x0,D4=this._y0,Fn,mj,fe,Ez,rL=this._x1,dL=this._y1,hZ=[],bs=this._root,H$;bs&&hZ.push(new M6(bs,yU,D4,rL,dL));lF==null?lF=Infinity:(yU=m-lF,D4=M-lF,rL=m+lF,dL=M+lF,lF*=lF);for(;H$=hZ.pop();)if(!(!(bs=H$.node)||(Fn=H$.x0)>rL||(mj=H$.y0)>dL||(fe=H$.x1)<yU||(Ez=H$.y1)<D4))if(bs.length){H$=(Fn+fe)/2;var xd=(mj+Ez)/2;hZ.push(new M6(bs[3],H$,xd,fe,Ez),new M6(bs[2],Fn,xd,H$,Ez),new M6(bs[1],H$,mj,fe,xd),new M6(bs[0],Fn,mj,H$,xd));if(bs=(M>=xd)<<1|m>=H$)H$=hZ[hZ.length-
1],hZ[hZ.length-1]=hZ[hZ.length-1-bs],hZ[hZ.length-1-bs]=H$}else if(H$=m-+this._x.call(null,bs.data),xd=M-+this._y.call(null,bs.data),H$=H$*H$+xd*xd,H$<lF){var ot=Math.sqrt(lF=H$);yU=m-ot;D4=M-ot;rL=m+ot;dL=M+ot;ot=bs.data}return ot};
Zr.remove=function(m){if(isNaN(Ez=+this._x.call(null,m))||isNaN(rL=+this._y.call(null,m)))return this;var M,lF=this._root,yU,D4=this._x0,Fn=this._y0,mj=this._x1,fe=this._y1,Ez,rL,dL,hZ,bs,H$,xd;if(!lF)return this;if(lF.length)for(;;){(bs=Ez>=(dL=(D4+mj)/2))?D4=dL:mj=dL;(H$=rL>=(hZ=(Fn+fe)/2))?Fn=hZ:fe=hZ;if(!(M=lF,lF=lF[xd=H$<<1|bs]))return this;if(!lF.length)break;if(M[xd+1&3]||M[xd+2&3]||M[xd+3&3]){var ot=M;var hr=xd}}for(;lF.data!==m;)if(!(yU=lF,lF=lF.next))return this;(m=lF.next)&&delete lF.next;
if(yU)return m?yU.next=m:delete yU.next,this;if(!M)return this._root=m,this;m?M[xd]=m:delete M[xd];(lF=M[0]||M[1]||M[2]||M[3])&&lF===(M[3]||M[2]||M[1]||M[0])&&!lF.length&&(ot?ot[hr]=lF:this._root=lF);return this};
Zr.removeAll=function(m){for(var M=0,lF=m.length;M<lF;++M)this.remove(m[M]);return this};
Zr.root=function(){return this._root};
Zr.size=function(){var m=0;this.visit(function(M){if(!M.length){do++m;while(M=M.next)}});
return m};
Zr.visit=function(m){var M=[],lF,yU=this._root,D4,Fn,mj,fe,Ez;for(yU&&M.push(new M6(yU,this._x0,this._y0,this._x1,this._y1));lF=M.pop();)if(!m(yU=lF.node,Fn=lF.x0,mj=lF.y0,fe=lF.x1,Ez=lF.y1)&&yU.length){lF=(Fn+fe)/2;var rL=(mj+Ez)/2;(D4=yU[3])&&M.push(new M6(D4,lF,rL,fe,Ez));(D4=yU[2])&&M.push(new M6(D4,Fn,rL,lF,Ez));(D4=yU[1])&&M.push(new M6(D4,lF,mj,fe,rL));(D4=yU[0])&&M.push(new M6(D4,Fn,mj,lF,rL))}};
Zr.visitAfter=function(m){var M=[],lF=[],yU;for(this._root&&M.push(new M6(this._root,this._x0,this._y0,this._x1,this._y1));yU=M.pop();){var D4=yU.node;if(D4.length){var Fn,mj=yU.x0,fe=yU.y0,Ez=yU.x1,rL=yU.y1,dL=(mj+Ez)/2,hZ=(fe+rL)/2;(Fn=D4[0])&&M.push(new M6(Fn,mj,fe,dL,hZ));(Fn=D4[1])&&M.push(new M6(Fn,dL,fe,Ez,hZ));(Fn=D4[2])&&M.push(new M6(Fn,mj,hZ,dL,rL));(Fn=D4[3])&&M.push(new M6(Fn,dL,hZ,Ez,rL))}lF.push(yU)}for(;yU=lF.pop();)m(yU.node,yU.x0,yU.y0,yU.x1,yU.y1);return this};
Zr.x=function(m){return arguments.length?(this._x=m,this):this._x};
Zr.y=function(m){return arguments.length?(this._y=m,this):this._y};
var AJ1=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;ApU.prototype=Qk6.prototype;Qk6.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 hmk,S7v={"%":function(m,M){return(m*100).toFixed(M)},
b:function(m){return Math.round(m).toString(2)},
c:function(m){return m+""},
d:function(m){return Math.round(m).toString(10)},
e:function(m,M){return m.toExponential(M)},
f:function(m,M){return m.toFixed(M)},
g:function(m,M){return m.toPrecision(M)},
o:function(m){return Math.round(m).toString(8)},
p:function(m,M){return x5L(m*100,M)},
r:x5L,s:function(m,M){var lF=lsq(m,M);if(!lF)return m+"";var yU=lF[0];lF=lF[1];lF=lF-(hmk=Math.max(-8,Math.min(8,Math.floor(lF/3)))*3)+1;var D4=yU.length;return lF===D4?yU:lF>D4?yU+Array(lF-D4+1).join("0"):lF>0?yU.slice(0,lF)+"."+yU.slice(lF):"0."+Array(1-lF).join("0")+lsq(m,Math.max(0,M+lF-1))[0]},
X:function(m){return Math.round(m).toString(16).toUpperCase()},
x:function(m){return Math.round(m).toString(16)}},q7a="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),fSc;
(function(m){return fSc=QHw(m)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});bk.prototype={constructor:bk,reset:function(){this.s=this.t=0},
add:function(m){ECB(Lu4,m,this.t);ECB(this,Lu4.s,this.s);this.s?this.t+=Lu4.t:this.s=Lu4.t},
valueOf:function(){return this.s}};
var Lu4=new bk,Q6=Math.PI,Zm=Q6/2,bAX=Q6/4,rp2=Q6*2,$qv=Q6/180,VM=Math.abs,WTn=Math.atan,rpe=Math.atan2,OH=Math.cos,Ka=Math.sin,fsz=Math.sqrt;new bk;new bk;new bk;var lPY=new bk;(function(m,M,lF,yU){return function(D4){function Fn(em,uI){m(em,uI)&&D4.point(em,uI)}
function mj(em,uI){bs.point(em,uI)}
function fe(){SJ.point=mj;bs.lineStart()}
function Ez(){SJ.point=Fn;bs.lineEnd()}
function rL(em,uI){dJ.push([em,uI]);xd.point(em,uI)}
function dL(){xd.lineStart();dJ=[]}
function hZ(){rL(dJ[0][0],dJ[0][1]);xd.lineEnd();var em=xd.clean(),uI=H$.result(),qI=uI.length,ye;dJ.pop();hr.push(dJ);dJ=null;if(qI)if(em&1){if(qI=uI[0],(uI=qI.length-1)>0){ot||(D4.polygonStart(),ot=!0);D4.lineStart();for(em=0;em<uI;++em)D4.point((ye=qI[em])[0],ye[1]);D4.lineEnd()}}else qI>1&&em&2&&uI.push(uI.pop().concat(uI.shift())),xW.push(uI.filter(ak7))}
var bs=M(D4),H$=ZEc(),xd=M(H$),ot=!1,hr,xW,dJ,SJ={point:Fn,lineStart:fe,lineEnd:Ez,polygonStart:function(){SJ.point=rL;SJ.lineStart=dL;SJ.lineEnd=hZ;xW=[];hr=[]},
polygonEnd:function(){SJ.point=Fn;SJ.lineStart=fe;SJ.lineEnd=Ez;var em=xW,uI=em.length;var qI=-1;for(var ye=0,O5,kk;++qI<uI;)ye+=em[qI].length;for(O5=Array(ye);--uI>=0;)for(kk=em[uI],qI=kk.length;--qI>=0;)O5[--ye]=kk[qI];xW=O5;em=hr;uI=yU[0];ye=yU[1];var P$=Ka(ye);qI=[Ka(uI),-OH(uI),0];kk=O5=0;lPY.reset();P$===1?ye=Zm+1E-6:P$===-1&&(ye=-Zm-1E-6);P$=0;for(var Iw=em.length;P$<Iw;++P$)if(AH=(z3=em[P$]).length){var z3,AH,SC=z3[AH-1],PA=SC[0],yO=SC[1]/2+bAX,yvj=Ka(yO),pLv=OH(yO);for(yO=0;yO<AH;++yO,PA=
V6S,yvj=orL,pLv=lu,SC=gsj){var gsj=z3[yO],V6S=gsj[0];lu=gsj[1]/2+bAX;var orL=Ka(lu),lu=OH(lu),jR=V6S-PA,fPJ=jR>=0?1:-1,rPn=fPJ*jR,Pi4=rPn>Q6;yvj*=orL;lPY.add(rpe(yvj*fPJ*Ka(rPn),pLv*lu+yvj*OH(rPn)));O5+=Pi4?jR+fPJ*rp2:jR;Pi4^PA>=uI^V6S>=uI&&(SC=WBv($5L(SC),$5L(gsj)),lSZ(SC),PA=WBv(qI,SC),lSZ(PA),PA=(Pi4^jR>=0?-1:1)*VSn(PA[2]),ye>PA||ye===PA&&(SC[0]||SC[1]))&&(kk+=Pi4^jR>=0?1:-1)}}em=(O5<-1E-6||O5<1E-6&&lPY<-1E-6)^kk&1;xW.length?(ot||(D4.polygonStart(),ot=!0),OE7(xW,z12,em,lF,D4)):em&&(ot||(D4.polygonStart(),
ot=!0),D4.lineStart(),lF(null,null,1,D4),D4.lineEnd());ot&&(D4.polygonEnd(),ot=!1);xW=hr=null},
sphere:function(){D4.polygonStart();D4.lineStart();lF(null,null,1,D4);D4.lineEnd();D4.polygonEnd()}};
return SJ}})(function(){return!0},function(m){var M=NaN,lF=NaN,yU=NaN,D4;
return{lineStart:function(){m.lineStart();D4=1},
point:function(Fn,mj){var fe=Fn>0?Q6:-Q6,Ez=VM(Fn-M);if(VM(Ez-Q6)<1E-6)m.point(M,lF=(lF+mj)/2>0?Zm:-Zm),m.point(yU,lF),m.lineEnd(),m.lineStart(),m.point(fe,lF),m.point(Fn,lF),D4=0;else if(yU!==fe&&Ez>=Q6){VM(M-yU)<1E-6&&(M-=yU*1E-6);VM(Fn-fe)<1E-6&&(Fn-=fe*1E-6);Ez=M;var rL=lF,dL=Fn,hZ,bs,H$=Ka(Ez-dL);lF=VM(H$)>1E-6?WTn((Ka(rL)*(bs=OH(mj))*Ka(dL)-Ka(mj)*(hZ=OH(rL))*Ka(Ez))/(hZ*bs*H$)):(rL+mj)/2;m.point(yU,lF);m.lineEnd();m.lineStart();m.point(fe,lF);D4=0}m.point(M=Fn,lF=mj);yU=fe},
lineEnd:function(){m.lineEnd();M=lF=NaN},
clean:function(){return 2-D4}}},function(m,M,lF,yU){m==null?(lF*=Zm,yU.point(-Q6,lF),yU.point(0,lF),yU.point(Q6,lF),yU.point(Q6,0),yU.point(Q6,-lF),yU.point(0,-lF),yU.point(-Q6,-lF),yU.point(-Q6,0),yU.point(-Q6,lF)):VM(m[0]-M[0])>1E-6?(m=m[0]<M[0]?Q6:-Q6,lF=lF*m/2,yU.point(-m,lF),yU.point(0,lF),yU.point(m,lF)):yU.point(M[0],M[1])},[-Q6,
-Zm]);new bk;new bk;new bk;new bk;MXj.prototype={constructor:MXj,point:function(m,M){this.stream.point(m,M)},
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()}};
OH(30*$qv);(function(m){return function(M){var lF=new MXj,yU;for(yU in m)lF[yU]=m[yU];lF.stream=M;return lF}})({point:function(m,M){this.stream.point(m*$qv,M*$qv)}});
fS$(function(m){return fsz(2/(1+m))}).invert=xT(function(m){return 2*VSn(m/2)});
fS$(function(m){return(m=m>1?0:m<-1?Q6:Math.acos(m))&&m/Ka(m)}).invert=xT(function(m){return m});
fsz(3);xT(WTn);xT(VSn);xT(function(m){return 2*WTn(m)});
eO.prototype=RlZ.prototype={constructor:eO,count:function(){return this.eachAfter(NT2)},
each:function(m){var M,lF=[this],yU;do{var D4=lF.reverse();for(lF=[];M=D4.pop();)if(m(M),M=M.children){var Fn=0;for(yU=M.length;Fn<yU;++Fn)lF.push(M[Fn])}}while(lF.length);return this},
eachAfter:function(m){for(var M,lF=[this],yU=[],D4,Fn;M=lF.pop();)if(yU.push(M),M=M.children)for(D4=0,Fn=M.length;D4<Fn;++D4)lF.push(M[D4]);for(;M=yU.pop();)m(M);return this},
eachBefore:function(m){for(var M,lF=[this],yU;M=lF.pop();)if(m(M),M=M.children)for(yU=M.length-1;yU>=0;--yU)lF.push(M[yU]);return this},
sum:function(m){return this.eachAfter(function(M){for(var lF=+m(M.data)||0,yU=M.children,D4=yU&&yU.length;--D4>=0;)lF+=yU[D4].value;M.value=lF})},
sort:function(m){return this.eachBefore(function(M){M.children&&M.children.sort(m)})},
path:function(m){var M=this;var lF=M;var yU=m;if(lF!==yU){var D4=lF.ancestors(),Fn=yU.ancestors(),mj=null;lF=D4.pop();for(yU=Fn.pop();lF===yU;)mj=lF,lF=D4.pop(),yU=Fn.pop();lF=mj}for(yU=[M];M!==lF;)M=M.parent,yU.push(M);for(M=yU.length;m!==lF;)yU.splice(M,0,m),m=m.parent;return yU},
ancestors:function(){for(var m=this,M=[m];m=m.parent;)M.push(m);return M},
links:function(){var m=this,M=[];m.each(function(lF){lF!==m&&M.push({source:lF.parent,target:lF})});
return M},
copy:function(){return RlZ(this).eachBefore(e1w)}};
(function(m,M){this._=m;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=M}).prototype=Object.create(eO.prototype);
var ZAn=new Date,OAU=new Date,jk9=nN(function(){},function(m,M){m.setTime(+m+M)},function(m,M){return M-m});
jk9.every=function(m){m=Math.floor(m);return isFinite(m)&&m>0?m>1?nN(function(M){M.setTime(Math.floor(M/m)*m)},function(M,lF){M.setTime(+M+lF*m)},function(M,lF){return(lF-M)/m}):jk9:null};
nN(function(m){m.setTime(Math.floor(m/1E3)*1E3)},function(m,M){m.setTime(+m+M*1E3)},function(m,M){return(M-m)/1E3},function(m){return m.getUTCSeconds()});
nN(function(m){m.setTime(Math.floor(m/6E4)*6E4)},function(m,M){m.setTime(+m+M*6E4)},function(m,M){return(M-m)/6E4},function(m){return m.getMinutes()});
nN(function(m){var M=m.getTimezoneOffset()*6E4%36E5;M<0&&(M+=36E5);m.setTime(Math.floor((+m-M)/36E5)*36E5+M)},function(m,M){m.setTime(+m+M*36E5)},function(m,M){return(M-m)/36E5},function(m){return m.getHours()});
var LBL=nN(function(m){m.setHours(0,0,0,0)},function(m,M){m.setDate(m.getDate()+M)},function(m,M){return(M-m-(M.getTimezoneOffset()-m.getTimezoneOffset())*6E4)/864E5},function(m){return m.getDate()-1}),emN=rW(0),zlS=rW(1);
rW(2);rW(3);var NYz=rW(4);rW(5);rW(6);nN(function(m){m.setDate(1);m.setHours(0,0,0,0)},function(m,M){m.setMonth(m.getMonth()+M)},function(m,M){return M.getMonth()-m.getMonth()+(M.getFullYear()-m.getFullYear())*12},function(m){return m.getMonth()});
var GU=nN(function(m){m.setMonth(0,1);m.setHours(0,0,0,0)},function(m,M){m.setFullYear(m.getFullYear()+M)},function(m,M){return M.getFullYear()-m.getFullYear()},function(m){return m.getFullYear()});
GU.every=function(m){return isFinite(m=Math.floor(m))&&m>0?nN(function(M){M.setFullYear(Math.floor(M.getFullYear()/m)*m);M.setMonth(0,1);M.setHours(0,0,0,0)},function(M,lF){M.setFullYear(M.getFullYear()+lF*m)}):null};
nN(function(m){m.setUTCSeconds(0,0)},function(m,M){m.setTime(+m+M*6E4)},function(m,M){return(M-m)/6E4},function(m){return m.getUTCMinutes()});
nN(function(m){m.setUTCMinutes(0,0,0)},function(m,M){m.setTime(+m+M*36E5)},function(m,M){return(M-m)/36E5},function(m){return m.getUTCHours()});
var skM=nN(function(m){m.setUTCHours(0,0,0,0)},function(m,M){m.setUTCDate(m.getUTCDate()+M)},function(m,M){return(M-m)/864E5},function(m){return m.getUTCDate()-1}),q71=RW(0),aSJ=RW(1);
RW(2);RW(3);var YqU=RW(4);RW(5);RW(6);nN(function(m){m.setUTCDate(1);m.setUTCHours(0,0,0,0)},function(m,M){m.setUTCMonth(m.getUTCMonth()+M)},function(m,M){return M.getUTCMonth()-m.getUTCMonth()+(M.getUTCFullYear()-m.getUTCFullYear())*12},function(m){return m.getUTCMonth()});
var bg=nN(function(m){m.setUTCMonth(0,1);m.setUTCHours(0,0,0,0)},function(m,M){m.setUTCFullYear(m.getUTCFullYear()+M)},function(m,M){return M.getUTCFullYear()-m.getUTCFullYear()},function(m){return m.getUTCFullYear()});
bg.every=function(m){return isFinite(m=Math.floor(m))&&m>0?nN(function(M){M.setUTCFullYear(Math.floor(M.getUTCFullYear()/m)*m);M.setUTCMonth(0,1);M.setUTCHours(0,0,0,0)},function(M,lF){M.setUTCFullYear(M.getUTCFullYear()+lF*m)}):null};
var tXL={"-":"",_:" ",0:"0"},JW=/^\s*\d+/,x57=/^%/,Y7H=/[\\^$*+?|[\]().{}]/g,ns6;(function(m){ns6=h1s(m);MJ1=ns6.utcFormat;Zv9=ns6.utcParse;return ns6})({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||MJ1("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Zv9("%Y-%m-%dT%H:%M:%S.%LZ");Bg("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Bg("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Bg("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Bg("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Bg("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Bg("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Bg("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Bg("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Bg("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Bg("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Bg("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Bg("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var Rl1=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Bg);N4(Rl1);var tXY=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Bg);N4(tXY);var sk5=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Bg);N4(sk5);var LBY=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Bg);
N4(LBY);var yp1=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Bg);N4(yp1);var grw=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Bg);N4(grw);var PHL=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Bg);N4(PHL);var nrw=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Bg);N4(nrw);var CHw=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Bg);N4(CHw);var cp2=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Bg);N4(cp2);var BYH=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Bg);N4(BYH);var dq2=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Bg);N4(dq2);var JpY=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Bg);N4(JpY);var Dqw=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Bg);N4(Dqw);var Uq1=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Bg);N4(Uq1);var uE5=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Bg);N4(uE5);var kv4=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Bg);N4(kv4);var vrN=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Bg);N4(vrN);var HA2=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Bg);N4(HA2);var KB4=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Bg);N4(KB4);var FBY=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Bg);N4(FBY);var GvY=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Bg);N4(GvY);var bAw=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Bg);N4(bAw);var pLL=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Bg);N4(pLL);var or7=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Bg);N4(or7);var jkw=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Bg);N4(jkw);var ISZ=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Bg);N4(ISZ);SqJ(Hk(300,.5,0),Hk(-240,.5,1));SqJ(Hk(-100,.75,.35),Hk(80,1.5,.8));SqJ(Hk(260,.75,.35),Hk(80,1.5,.8));Hk();A1();tSz(Bg("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
tSz(Bg("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
tSz(Bg("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
tSz(Bg("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
DqX.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(m,M){m=+m;M=+M;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(m,M):this._context.moveTo(m,M);break;case 1:this._point=2;default:this._context.lineTo(m,M)}}};
(function(m){function M(lF){return new UqZ(m(lF))}
M._curve=m;return M})(function(m){return new DqX(m)});
UqZ.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(m,M){this._curve.point(M*Math.sin(m),M*-Math.cos(m))}};
elU.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:xqx(this,this._t0,kvI(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(m,M){var lF=NaN;m=+m;M=+M;if(m!==this._x1||M!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(m,M):this._context.moveTo(m,M);break;case 1:this._point=2;break;case 2:this._point=3;xqx(this,kvI(this,lF=uEM(this,m,M)),lF);break;default:xqx(this,this._t0,lF=uEM(this,m,M))}this._x0=this._x1;this._x1=m;this._y0=this._y1;this._y1=M;this._t0=lF}}};
(function(m){this._context=new vrk(m)}.prototype=Object.create(elU.prototype)).point=function(m,M){elU.prototype.point.call(this,M,m)};
vrk.prototype={moveTo:function(m,M){this._context.moveTo(M,m)},
closePath:function(){this._context.closePath()},
lineTo:function(m,M){this._context.lineTo(M,m)},
bezierCurveTo:function(m,M,lF,yU,D4,Fn){this._context.bezierCurveTo(M,m,yU,lF,Fn,D4)}};
Eo.prototype={constructor:Eo,scale:function(m){return m===1?this:new Eo(this.k*m,this.x,this.y)},
translate:function(m,M){return m===0&M===0?this:new Eo(this.k,this.x+this.k*m,this.y+this.k*M)},
apply:function(m){return[m[0]*this.k+this.x,m[1]*this.k+this.y]},
invert:function(m){return[(m[0]-this.x)/this.k,(m[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Eo(1,0,0);dOU=J1;MP.svg=MP.svg;MP.xhtml=MP.xhtml;MP.xlink=MP.xlink;MP.xml=MP.xml;MP.xmlns=MP.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 Ovv="hammer_"+(Math.random()*1E6|0),ayk=function(){var W=document||document;if(!W[Ovv]){var l=function(){(function(V,f,r,R){function y(pq,QU,Yz){return setTimeout(D(pq,Yz),QU)}
function P(pq,QU,Yz){return Array.isArray(pq)?(n(pq,Yz[QU],Yz),!0):!1}
function n(pq,QU,Yz){var uB;if(pq)if(pq.forEach)pq.forEach(QU,Yz);else if(pq.length!==R){var C2=0;for(uB=pq.length;C2<uB;C2++)QU.call(Yz,pq[C2],C2,pq)}else for(C2 in pq)pq.hasOwnProperty(C2)&&QU.call(Yz,pq[C2],C2,pq)}
function B(pq,QU,Yz){for(var uB=Object.keys(QU),C2=0,XX=uB.length;C2<XX;C2++)if(!Yz||Yz&&pq[uB[C2]]===R)pq[uB[C2]]=QU[uB[C2]];return pq}
function d(pq,QU){return B(pq,QU,!0)}
function J(pq,QU,Yz){QU=QU.prototype;var uB=pq.prototype=Object.create(QU);uB.constructor=pq;uB._super=QU;Yz&&B(uB,Yz)}
function D(pq,QU){return function(){return pq.apply(QU,arguments)}}
function u(pq,QU){return typeof pq=="function"?pq.apply(QU?QU[0]||R:R,QU):pq}
function H(pq,QU,Yz){n(X(QU),function(uB){pq.addEventListener(uB,Yz,!1)})}
function p(pq,QU,Yz){n(X(QU),function(uB){pq.removeEventListener(uB,Yz,!1)})}
function X(pq){return pq.trim().split(/\s+/g)}
function w(pq,QU,Yz){if(pq.indexOf&&!Yz)return pq.indexOf(QU);for(var uB=0,C2=pq.length;uB<C2;uB++)if(Yz&&pq[uB][Yz]==QU||!Yz&&pq[uB]===QU)return uB;return-1}
function O(pq,QU,Yz){for(var uB=[],C2=[],XX=0,Fw=pq.length;XX<Fw;XX++){var Ke=QU?pq[XX][QU]:pq[XX];w(C2,Ke)<0&&uB.push(pq[XX]);C2[XX]=Ke}Yz&&(uB=QU?uB.sort(function(Hk,T1){return Hk[QU]>T1[QU]}):uB.sort());
return uB}
function S(pq,QU){for(var Yz,uB=QU[0].toUpperCase()+QU.slice(1),C2=0,XX=Pk.length;C2<XX;C2++)if(Yz=(Yz=Pk[C2])?Yz+uB:QU,Yz in pq)return Yz;return R}
function N(pq,QU){var Yz=this;this.manager=pq;this.callback=QU;this.element=pq.element;this.target=pq.options.inputTarget;this.domHandler=function(uB){u(pq.options.enable,[pq])&&Yz.handler(uB)};
this.evEl&&H(this.element,this.evEl,this.domHandler);this.evTarget&&H(this.target,this.evTarget,this.domHandler);this.evWin&&H(V,this.evWin,this.domHandler)}
function x(pq){var QU;ih?QU=Z4:jn?QU=Ax:J1?QU=sM:QU=Kq;return new QU(pq,Y)}
function Y(pq,QU,Yz){var uB=Yz.pointers.length,C2=Yz.changedPointers.length,XX=QU&1&&uB-C2===0;Yz.isFirst=!!XX;Yz.isFinal=!!(QU&12&&uB-C2===0);XX&&(pq.session={});Yz.eventType=QU;QU=pq.session;uB=Yz.pointers;C2=uB.length;QU.firstInput||(QU.firstInput=W8(Yz));C2>1&&!QU.firstMultiple?QU.firstMultiple=W8(Yz):C2===1&&(QU.firstMultiple=!1);XX=QU.firstInput;var Fw=(C2=QU.firstMultiple)?C2.center:XX.center,Ke=Yz.center=c8(uB);Yz.timeStamp=oX();Yz.deltaTime=Yz.timeStamp-XX.timeStamp;Yz.angle=H8(Fw,Ke);Yz.distance=
Jx(Fw,Ke);XX=Yz.center;Fw=QU.offsetDelta||{};Ke=QU.prevDelta||{};var Hk=QU.prevInput||{};if(Yz.eventType===1||Hk.eventType===4)Ke=QU.prevDelta={x:Hk.deltaX||0,y:Hk.deltaY||0},Fw=QU.offsetDelta={x:XX.x,y:XX.y};Yz.deltaX=Ke.x+(XX.x-Fw.x);Yz.deltaY=Ke.y+(XX.y-Fw.y);Yz.offsetDirection=B8(Yz.deltaX,Yz.deltaY);C2?(XX=C2.pointers,XX=Jx(uB[0],uB[1],A1)/Jx(XX[0],XX[1],A1)):XX=1;Yz.scale=XX;C2?(C2=C2.pointers,uB=H8(uB[1],uB[0],A1)-H8(C2[1],C2[0],A1)):uB=0;Yz.rotation=uB;Fw=QU.lastInterval||Yz;uB=Yz.timeStamp-
Fw.timeStamp;Yz.eventType!=8&&(uB>25||Fw.velocity===R)?(XX=Fw.deltaX-Yz.deltaX,Fw=Fw.deltaY-Yz.deltaY,Ke=XX/uB||0,Hk=Fw/uB||0,uB=Ke,C2=Hk,Ke=pe(Ke)>pe(Hk)?Ke:Hk,XX=B8(XX,Fw),QU.lastInterval=Yz):(Ke=Fw.velocity,uB=Fw.velocityX,C2=Fw.velocityY,XX=Fw.direction);Yz.velocity=Ke;Yz.velocityX=uB;Yz.velocityY=C2;Yz.direction=XX;QU=pq.element;a:{for(uB=Yz.srcEvent.target;uB;){if(uB==QU){uB=!0;break a}uB=uB.parentNode}uB=!1}uB&&(QU=Yz.srcEvent.target);Yz.target=QU;pq.emit("hammer.input",Yz);pq.recognize(Yz);
pq.session.prevInput=Yz}
function W8(pq){for(var QU=[],Yz=0;Yz<pq.pointers.length;Yz++)QU[Yz]={clientX:Dc(pq.pointers[Yz].clientX),clientY:Dc(pq.pointers[Yz].clientY)};return{timeStamp:oX(),pointers:QU,center:c8(QU),deltaX:pq.deltaX,deltaY:pq.deltaY}}
function c8(pq){var QU=pq.length;if(QU===1)return{x:Dc(pq[0].clientX),y:Dc(pq[0].clientY)};for(var Yz=0,uB=0,C2=0;C2<QU;C2++)Yz+=pq[C2].clientX,uB+=pq[C2].clientY;return{x:Dc(Yz/QU),y:Dc(uB/QU)}}
function B8(pq,QU){return pq===QU?1:pe(pq)>=pe(QU)?pq>0?2:4:QU>0?8:16}
function Jx(pq,QU,Yz){Yz||(Yz=aX);var uB=QU[Yz[0]]-pq[Yz[0]];pq=QU[Yz[1]]-pq[Yz[1]];return Math.sqrt(uB*uB+pq*pq)}
function H8(pq,QU,Yz){Yz||(Yz=aX);return Math.atan2(QU[Yz[1]]-pq[Yz[1]],QU[Yz[0]]-pq[Yz[0]])*180/Math.PI}
function Kq(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;N.apply(this,arguments)}
function Z4(){this.evEl=F4;this.evWin=fS;N.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Ax(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};N.apply(this,arguments)}
function sM(){N.apply(this,arguments);var pq=D(this.handler,this);this.touch=new Ax(this.manager,pq);this.mouse=new Kq(this.manager,pq)}
function Ta(pq,QU){this.manager=pq;this.set(QU)}
function ck(pq){if(pq.indexOf("none")>-1)return"none";var QU=pq.indexOf("pan-x")>-1,Yz=pq.indexOf("pan-y")>-1;return QU&&Yz?"pan-x pan-y":QU||Yz?QU?"pan-x":"pan-y":pq.indexOf("manipulation")>-1?"manipulation":"auto"}
function Wk(pq){this.id=ve++;this.manager=null;this.options=d(pq||{},this.defaults);pq=this.options.enable;this.options.enable=pq===R?!0:pq;this.state=1;this.simultaneous={};this.requireFail=[]}
function D$(pq){return pq==16?"down":pq==8?"up":pq==2?"left":pq==4?"right":""}
function Bk(pq,QU){return(QU=QU.manager)?QU.get(pq):pq}
function iB(){Wk.apply(this,arguments)}
function p2(){iB.apply(this,arguments);this.pY=this.pX=null}
function SL(){iB.apply(this,arguments)}
function RY(){Wk.apply(this,arguments);this._input=this._timer=null}
function lB(){iB.apply(this,arguments)}
function kc(){iB.apply(this,arguments)}
function n2(){Wk.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function vk(pq,QU){QU=QU||{};var Yz=QU.recognizers;QU.recognizers=Yz===R?vk.defaults.preset:Yz;return new VL(pq,QU)}
function VL(pq,QU){QU=QU||{};this.options=d(QU,vk.defaults);this.options.inputTarget=this.options.inputTarget||pq;this.handlers={};this.session={};this.recognizers=[];this.element=pq;this.input=x(this);this.touchAction=new Ta(this,this.options.touchAction);Lc(this,!0);n(QU.recognizers,function(Yz){var uB=this.add(new Yz[0](Yz[1]));Yz[2]&&uB.recognizeWith(Yz[2]);Yz[3]&&uB.requireFailure(Yz[2])},this)}
function Lc(pq,QU){var Yz=pq.element;n(pq.options.cssProps,function(uB,C2){Yz.style[S(Yz.style,C2)]=QU?uB:""})}
function ls(pq,QU){var Yz=f.createEvent("Event");Yz.initEvent(pq,!0,!0);Yz.gesture=QU;QU.target.dispatchEvent(Yz)}
var Pk=" webkit moz MS ms o".split(" "),q1=f.createElement("div"),Dc=Math.round,pe=Math.abs,oX=Date.now,ve=1,dI=/mobile|tablet|ip(ad|hone|od)|android/i,J1="ontouchstart"in V,ih=S(V,"PointerEvent")!==R,jn=J1&&dI.test(navigator.userAgent),aX=["x","y"],A1=["clientX","clientY"];N.prototype={handler:function(){},
destroy:function(){this.evEl&&p(this.element,this.evEl,this.domHandler);this.evTarget&&p(this.target,this.evTarget,this.domHandler);this.evWin&&p(V,this.evWin,this.domHandler)}};
var xZ={mousedown:1,mousemove:2,mouseup:4};J(Kq,N,{handler:function(pq){var QU=xZ[pq.type];QU&1&&pq.button===0&&(this.pressed=!0);QU&2&&pq.which!==1&&(QU=4);this.pressed&&this.allow&&(QU&4&&(this.pressed=!1),this.callback(this.manager,QU,{pointers:[pq],changedPointers:[pq],pointerType:"mouse",srcEvent:pq}))}});
var $Z={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ai={2:"touch",3:"pen",4:"mouse",5:"kinect"},F4="pointerdown",fS="pointermove pointerup pointercancel";V.MSPointerEvent&&(F4="MSPointerDown",fS="MSPointerMove MSPointerUp MSPointerCancel");J(Z4,N,{handler:function(pq){var QU=this.store,Yz=!1,uB=pq.type.toLowerCase().replace("ms","");uB=$Z[uB];var C2=ai[pq.pointerType]||pq.pointerType;uB&1&&(pq.button===0||C2=="touch")?QU.push(pq):uB&12&&(Yz=!0);var XX=w(QU,pq.pointerId,"pointerId");
XX<0||(QU[XX]=pq,this.callback(this.manager,uB,{pointers:QU,changedPointers:[pq],pointerType:C2,srcEvent:pq}),Yz&&QU.splice(XX,1))}});
var ML={touchstart:1,touchmove:2,touchend:4,touchcancel:8};J(Ax,N,{handler:function(pq){var QU=ML[pq.type];var Yz=Array.prototype.slice.call(pq.touches,0);var uB=this.targetIds;if(QU&3&&Yz.length===1)uB[Yz[0].identifier]=!0,uB=[Yz,Yz];else{var C2,XX=Array.prototype.slice.call(pq.targetTouches,0),Fw=Array.prototype.slice.call(pq.changedTouches,0),Ke=[];if(QU===1)for(Yz=0,C2=XX.length;Yz<C2;Yz++)uB[XX[Yz].identifier]=!0;Yz=0;for(C2=Fw.length;Yz<C2;Yz++)uB[Fw[Yz].identifier]&&Ke.push(Fw[Yz]),QU&12&&
delete uB[Fw[Yz].identifier];uB=Ke.length?[O(XX.concat(Ke),"identifier",!0),Ke]:void 0}uB&&this.callback(this.manager,QU,{pointers:uB[0],changedPointers:uB[1],pointerType:"touch",srcEvent:pq})}});
J(sM,N,{handler:function(pq,QU,Yz){var uB=Yz.pointerType=="mouse";if(Yz.pointerType=="touch")this.mouse.allow=!1;else if(uB&&!this.mouse.allow)return;QU&12&&(this.mouse.allow=!0);this.callback(pq,QU,Yz)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var zu=S(q1.style,"touchAction"),cj=zu!==R;Ta.prototype={set:function(pq){pq=="compute"&&(pq=this.compute());cj&&(this.manager.element.style[zu]=pq);this.actions=pq.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var pq=[];n(this.manager.recognizers,function(QU){u(QU.options.enable,[QU])&&(pq=pq.concat(QU.getTouchAction()))});
return ck(pq.join(" "))},
preventDefaults:function(pq){if(!cj){var QU=pq.srcEvent;pq=pq.offsetDirection;if(this.manager.session.prevented)QU.preventDefault();else{var Yz=this.actions,uB=Yz.indexOf("none")>-1,C2=Yz.indexOf("pan-y")>-1;Yz=Yz.indexOf("pan-x")>-1;if(uB||C2&&Yz||C2&&pq&6||Yz&&pq&24)return this.preventSrc(QU)}}},
preventSrc:function(pq){this.manager.session.prevented=!0;pq.preventDefault()}};
Wk.prototype={defaults:{},set:function(pq){B(this.options,pq);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(pq){if(P(pq,"recognizeWith",this))return this;var QU=this.simultaneous;pq=Bk(pq,this);QU[pq.id]||(QU[pq.id]=pq,pq.recognizeWith(this));return this},
dropRecognizeWith:function(pq){if(P(pq,"dropRecognizeWith",this))return this;pq=Bk(pq,this);delete this.simultaneous[pq.id];return this},
requireFailure:function(pq){if(P(pq,"requireFailure",this))return this;var QU=this.requireFail;pq=Bk(pq,this);w(QU,pq)===-1&&(QU.push(pq),pq.requireFailure(this));return this},
dropRequireFailure:function(pq){if(P(pq,"dropRequireFailure",this))return this;pq=Bk(pq,this);pq=w(this.requireFail,pq);pq>-1&&this.requireFail.splice(pq,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(pq){return!!this.simultaneous[pq.id]},
emit:function(pq){function QU(C2){Yz.manager.emit(Yz.options.event+(C2?uB&16?"cancel":uB&8?"end":uB&4?"move":uB&2?"start":"":""),pq)}
var Yz=this,uB=this.state;uB<8&&QU(!0);QU();uB>=8&&QU(!0)},
tryEmit:function(pq){if(this.canEmit())return this.emit(pq);this.state=32},
canEmit:function(){for(var pq=0;pq<this.requireFail.length;pq++)if(!(this.requireFail[pq].state&33))return!1;return!0},
recognize:function(pq){pq=B({},pq);u(this.options.enable,[this,pq])?(this.state&56&&(this.state=1),this.state=this.process(pq),this.state&30&&this.tryEmit(pq)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
J(iB,Wk,{defaults:{pointers:1},attrTest:function(pq){var QU=this.options.pointers;return QU===0||pq.pointers.length===QU},
process:function(pq){var QU=this.state,Yz=pq.eventType,uB=QU&6;pq=this.attrTest(pq);return uB&&(Yz&8||!pq)?QU|16:uB||pq?Yz&4?QU|8:QU&2?QU|4:2:32}});
J(p2,iB,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var pq=this.options.direction;if(pq===30)return["none"];var QU=[];pq&6&&QU.push("pan-y");pq&24&&QU.push("pan-x");return QU},
directionTest:function(pq){var QU=this.options,Yz=!0,uB=pq.distance,C2=pq.direction,XX=pq.deltaX,Fw=pq.deltaY;C2&QU.direction||(QU.direction&6?(C2=XX===0?1:XX<0?2:4,Yz=XX!=this.pX,uB=Math.abs(pq.deltaX)):(C2=Fw===0?1:Fw<0?8:16,Yz=Fw!=this.pY,uB=Math.abs(pq.deltaY)));pq.direction=C2;return Yz&&uB>QU.threshold&&C2&QU.direction},
attrTest:function(pq){return iB.prototype.attrTest.call(this,pq)&&(this.state&2||!(this.state&2)&&this.directionTest(pq))},
emit:function(pq){this.pX=pq.deltaX;this.pY=pq.deltaY;var QU=D$(pq.direction);QU&&this.manager.emit(this.options.event+QU,pq);this._super.emit.call(this,pq)}});
J(SL,iB,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(pq){return this._super.attrTest.call(this,pq)&&(Math.abs(pq.scale-1)>this.options.threshold||this.state&2)},
emit:function(pq){this._super.emit.call(this,pq);pq.scale!==1&&this.manager.emit(this.options.event+(pq.scale<1?"in":"out"),pq)}});
J(RY,Wk,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(pq){var QU=this.options,Yz=pq.pointers.length===QU.pointers,uB=pq.distance<QU.threshold,C2=pq.deltaTime>QU.time;this._input=pq;if(!uB||!Yz||pq.eventType&12&&!C2)this.reset();else if(pq.eventType&1)this.reset(),this._timer=y(function(){this.state=8;this.tryEmit()},QU.time,this);
else if(pq.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(pq){this.state===8&&(pq&&pq.eventType&4?this.manager.emit(this.options.event+"up",pq):(this._input.timeStamp=oX(),this.manager.emit(this.options.event,this._input)))}});
J(lB,iB,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(pq){return this._super.attrTest.call(this,pq)&&(Math.abs(pq.rotation)>this.options.threshold||this.state&2)}});
J(kc,iB,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return p2.prototype.getTouchAction.call(this)},
attrTest:function(pq){var QU=this.options.direction;if(QU&30)var Yz=pq.velocity;else QU&6?Yz=pq.velocityX:QU&24&&(Yz=pq.velocityY);return this._super.attrTest.call(this,pq)&&QU&pq.direction&&pe(Yz)>this.options.velocity&&pq.eventType&4},
emit:function(pq){var QU=D$(pq.direction);QU&&this.manager.emit(this.options.event+QU,pq);this.manager.emit(this.options.event,pq)}});
J(n2,Wk,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(pq){var QU=this.options,Yz=pq.pointers.length===QU.pointers,uB=pq.distance<QU.threshold,C2=pq.deltaTime<QU.time;this.reset();if(pq.eventType&1&&this.count===0)return this.failTimeout();if(uB&&C2&&Yz){if(pq.eventType!=4)return this.failTimeout();Yz=this.pTime?pq.timeStamp-this.pTime<QU.interval:!0;uB=!this.pCenter||Jx(this.pCenter,pq.center)<QU.posThreshold;this.pTime=pq.timeStamp;this.pCenter=pq.center;uB&&Yz?this.count+=1:this.count=1;this._input=pq;if(this.count%QU.taps===0)return this.hasRequireFailures()?
(this._timer=y(function(){this.state=8;this.tryEmit()},QU.interval,this),2):8}return 32},
failTimeout:function(){this._timer=y(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))}});
vk.VERSION="2.0.2";vk.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[lB,{enable:!1}],[SL,{enable:!1},["rotate"]],[kc,{direction:6}],[p2,{direction:6},["swipe"]],[n2],[n2,{event:"doubletap",taps:2},["tap"]],[RY]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};VL.prototype={set:function(pq){B(this.options,pq);return this},
stop:function(pq){this.session.stopped=pq?2:1},
recognize:function(pq){var QU=this.session;if(!QU.stopped){this.touchAction.preventDefaults(pq);var Yz=this.recognizers,uB=QU.curRecognizer;if(!uB||uB&&uB.state&8)uB=QU.curRecognizer=null;for(var C2=0,XX=Yz.length;C2<XX;C2++){var Fw=Yz[C2];QU.stopped===2||uB&&Fw!=uB&&!Fw.canRecognizeWith(uB)?Fw.reset():Fw.recognize(pq);!uB&&Fw.state&14&&(uB=QU.curRecognizer=Fw)}}},
get:function(pq){if(pq instanceof Wk)return pq;for(var QU=this.recognizers,Yz=0;Yz<QU.length;Yz++)if(QU[Yz].options.event==pq)return QU[Yz];return null},
add:function(pq){if(P(pq,"add",this))return this;var QU=this.get(pq.options.event);QU&&this.remove(QU);this.recognizers.push(pq);pq.manager=this;this.touchAction.update();return pq},
remove:function(pq){if(P(pq,"remove",this))return this;var QU=this.recognizers;pq=this.get(pq);QU.splice(w(QU,pq),1);this.touchAction.update();return this},
on:function(pq,QU){var Yz=this.handlers;n(X(pq),function(uB){Yz[uB]=Yz[uB]||[];Yz[uB].push(QU)});
return this},
off:function(pq,QU){var Yz=this.handlers;n(X(pq),function(uB){QU?Yz[uB].splice(w(Yz[uB],QU),1):delete Yz[uB]});
return this},
emit:function(pq,QU){this.options.domEvents&&ls(pq,QU);var Yz=this.handlers[pq]&&this.handlers[pq].slice();if(Yz&&Yz.length){QU.type=pq;QU.preventDefault=function(){QU.srcEvent.preventDefault()};
pq=0;for(var uB=Yz.length;pq<uB;pq++)Yz[pq](QU)}},
destroy:function(){this.element&&Lc(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
B(vk,{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:VL,Input:N,TouchAction:Ta,Recognizer:Wk,AttrRecognizer:iB,Tap:n2,Pan:p2,Swipe:kc,Pinch:SL,Rotate:lB,Press:RY,on:H,off:p,each:n,merge:d,extend:B,inherit:J,bindFn:D,prefixed:S});
V[r]=vk})(window,document,"Hammer");
return window.Hammer}.call({});
l.DOCUMENT=W;W[Ovv]=l}return W[Ovv]};/*

 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 zPL=function(W,l){if(W.length!==l.length)return!1;for(var V=0;V<W.length;++V)if(W[V]!==l[V])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var NHX=_.L(["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"]),Y_L=NHX.next();!Y_L.done;Y_L=NHX.next()){var xB9=Y_L.value,eP1=document.createElement("link");eP1.rel="stylesheet";eP1.href=xB9;document.head.appendChild(eP1)};var ud8,vSq,KMz,JSS,kRj,DR8,cSz,dRU;ud8={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};vSq={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:"*"};KMz={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};JSS=/[a-z0-9*]/;kRj=/U\+/;DR8=/^arrow/;cSz=/^space(bar)?/;dRU=/^escape$/;_.NN={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(W,l){this._imperativeKeyBindings[W]=l;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(W,l){l=GRY(l);for(var V=0;V<l.length;++V)if(HUx(l[V],W))return!0;return!1},
_collectKeyBindings:function(){var W=this.behaviors.map(function(l){return l.keyBindings});
W.indexOf(this.keyBindings)===-1&&W.push(this.keyBindings);return W},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(V){for(var f in V)this._addKeyBinding(f,V[f])},this);
for(var W in this._imperativeKeyBindings)this._addKeyBinding(W,this._imperativeKeyBindings[W]);for(var l in this._keyBindings)this._keyBindings[l].sort(function(V,f){V=V[0].hasModifiers;return V===f[0].hasModifiers?0:V?-1:1})},
_addKeyBinding:function(W,l){GRY(W).forEach(function(V){this._keyBindings[V.event]=this._keyBindings[V.event]||[];this._keyBindings[V.event].push([V,l])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(W){var l=this._onKeyBindingEvent.bind(this,this._keyBindings[W]);this._boundKeyHandlers.push([this.keyEventTarget,W,l]);this.keyEventTarget.addEventListener(W,l)},this)},
_unlistenKeyEventListeners:function(){for(var W,l,V;this._boundKeyHandlers.length;)W=this._boundKeyHandlers.pop(),l=W[0],V=W[1],W=W[2],l.removeEventListener(V,W)},
_onKeyBindingEvent:function(W,l){this.stopKeyboardEventPropagation&&l.stopPropagation();if(!l.defaultPrevented)for(var V=0;V<W.length;V++){var f=W[V][0],r=W[V][1];if(HUx(f,l)&&(this._triggerKeyHandler(f,r,l),l.defaultPrevented))break}},
_triggerKeyHandler:function(W,l,V){var f=Object.create(W);f.keyboardEvent=V;W=new CustomEvent(W.event,{detail:f,cancelable:!0});this[l].call(this,W);W.defaultPrevented&&V.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
*/
_.S3({is:"iron-a11y-keys",_template:null,behaviors:[_.NN],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(W){this.keyEventTarget=W},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(W){this.fire("keys-pressed",W.detail,{})}});_.Y6={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(W){this._setFocused(W.type==="focus")},
_disabledChanged:function(W){this.setAttribute("aria-disabled",W?"true":"false");this.style.pointerEvents=W?"none":"";W?(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 x6={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(W){this._detectKeyboardFocus(W);W||this._setPressed(!1)},
_detectKeyboardFocus:function(W){this._setReceivedFocusFromKeyboard(!this.pointerDown&&W)},
_userActivate:function(W){this.active!==W&&(this.active=W,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(W){W=W.detail.keyboardEvent;var l=_.YG(W).localTarget;this.isLightDescendant(l)||(W.preventDefault(),W.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(W){W=_.YG(W.detail.keyboardEvent).localTarget;this.isLightDescendant(W)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(W,l){l&&l!=W&&this.hasAttribute(l)&&this.removeAttribute(l)},
_activeChanged:function(W){this.toggles?this.setAttribute(this.ariaActiveAttribute,W?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},q_c=[_.NN,
x6];_.eq={IronButtonState:q_c,IronButtonStateImpl:x6};_.qN={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.hu=function(W){_.hu[" "](W);this.type=W&&W.type||"default";this.key=W&&W.key;W&&"value"in W&&(this.value=W.value)};
_.hu.prototype.byKey=function(W){this.key=W;return this.value};
_.rc.Object.defineProperties(_.hu.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var W=this.type,l=this.key;if(W&&l)return Sq[W]&&Sq[W][l]},
set:function(W){var l=this.type,V=this.key;l&&V&&(l=Sq[l]=Sq[l]||{},W==null?delete l[V]:l[V]=W)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var W=Sq[this.type];return W?Object.keys(W).map(function(l){return Sq[this.type][l]},this):[]}}});
_.hu[" "]=function(){};
var Sq={};_.S3({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(W,l,V){W=new _.hu({type:W,key:l});V!==void 0&&V!==W.value?W.value=V:this.value!==W.value&&(this.value=W.value);return W},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(W){W&&(this.value=this)},
byKey:function(W){return(new _.hu({type:this.type,key:W})).value}});var hPv;hPv=null;_.E2={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){hPv=new _.hu({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return hPv&&hPv.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(W){this.invalid=W===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(W);return!this.invalid},
_getValidity:function(W){return this.hasValidator()?this._validator.validate(W):!0}};var S_k={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"}},Ewa=[_.qN,
_.E2,S_k];_.S3({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 _.hu({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(W){return this.name+":"+W},this)},
applyIcon:function(W,l){this.removeIcon(W);if(l=this._cloneIcon(l,this.rtlMirroring&&this._targetIsRTL(W))){var V=_.YG(W.root||W);V.insertBefore(l,V.childNodes[0]);return W._svgIcon=l}return null},
removeIcon:function(W){W._svgIcon&&(_.YG(W.root||W).removeChild(W._svgIcon),W._svgIcon=null)},
_targetIsRTL:function(W){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(W&&W.nodeType!==Node.ELEMENT_NODE&&(W=W.host),this.__targetIsRTL=W&&window.getComputedStyle(W).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 W=Object.create(null);_.YG(this).querySelectorAll("[id]").forEach(function(l){W[l.id]=l});
return W},
_cloneIcon:function(W,l){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[W],this.size,l)},
_prepareSvgClone:function(W,l,V){if(W){W=W.cloneNode(!0);var f=document.createElementNS("http://www.w3.org/2000/svg","svg");l=W.getAttribute("viewBox")||"0 0 "+l+" "+l;var r="pointer-events: none; display: block; width: 100%; height: 100%;";V&&W.hasAttribute("mirror-in-rtl")&&(r+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");f.setAttribute("viewBox",l);f.setAttribute("preserveAspectRatio","xMidYMid meet");f.setAttribute("focusable","false");f.style&&(f.style.cssText=
r);f.appendChild(W).removeAttribute("id");return f}return null}});var $BZ=function(W){this.multi=!1;this.selection=[];this.selectCallback=W};
_.t=$BZ.prototype;_.t.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.t.clear=function(W){this.selection.slice().forEach(function(l){(!W||W.indexOf(l)<0)&&this.setItemSelected(l,!1)},this)};
_.t.isSelected=function(W){return this.selection.indexOf(W)>=0};
_.t.setItemSelected=function(W,l){if(W!=null&&l!==this.isSelected(W)){if(l)this.selection.push(W);else{var V=this.selection.indexOf(W);V>=0&&this.selection.splice(V,1)}this.selectCallback&&this.selectCallback(W,l)}};
_.t.select=function(W){this.multi?this.toggle(W):this.get()!==W&&(this.setItemSelected(this.get(),!1),this.setItemSelected(W,!0))};
_.t.toggle=function(W){this.setItemSelected(W,!this.isSelected(W))};_.nk={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 $BZ(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.YG(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(W){return this.items?this.items.indexOf(W):-1},
select:function(W){this.selected=W},
selectPrevious:function(){var W=this.items.length,l=W-1;this.selected!==void 0&&(l=(Number(this._valueToIndex(this.selected))-1+W)%W);this.selected=this._indexToValue(l)},
selectNext:function(){var W=0;this.selected!==void 0&&(W=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(W)},
selectIndex:function(W){this.select(this._indexToValue(W))},
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(W){this.listen(this,W,"_activateHandler")},
_removeListener:function(W){this.unlisten(this,W,"_activateHandler")},
_activateEventChanged:function(W,l){this._removeListener(l);this._addListener(W)},
_updateItems:function(){var W=_.YG(this).queryDistributedElements(this.selectable||"*");W=Array.prototype.filter.call(W,this._bindFilterItem);this._setItems(W)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var W=this._valueToItem(this.selected);W?this._selection.select(W):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(W){return!this._excludedLocalNames[W.localName]},
_valueToItem:function(W){return W==null?null:this.items[this._valueToIndex(W)]},
_valueToIndex:function(W){if(this.attrForSelected)for(var l=0,V;V=this.items[l];l++){if(this._valueForItem(V)==W)return l}else return Number(W)},
_indexToValue:function(W){if(this.attrForSelected){if(W=this.items[W])return this._valueForItem(W)}else return W},
_valueForItem:function(W){if(!W)return null;if(!this.attrForSelected)return W=this.indexOf(W),W===-1?null:W;var l=W[Cj(this.attrForSelected)];return l!=void 0?l:W.getAttribute(this.attrForSelected)},
_applySelection:function(W,l){this.selectedClass&&this.toggleClass(this.selectedClass,l,W);this.selectedAttribute&&this.toggleAttribute.call(W,this.selectedAttribute,l);this._selectionChange();this.fire("iron-"+(l?"select":"deselect"),{item:W})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(W){return _.YG(W).observeNodes(function(l){this._updateItems();this._updateSelected();this.fire("iron-items-changed",l,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(W){W=W.target;for(var l=this.items;W&&W!=this;){var V=l.indexOf(W);if(V>=0){l=this._indexToValue(V);this._itemActivate(l,W);break}W=W.parentNode}},
_itemActivate:function(W,l){this.fire("iron-activate",{selected:W,item:l},{cancelable:!0}).defaultPrevented||this.select(W)}};var W2M={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(W){this.multi?this._toggleSelected(W):this.selected=W},
multiChanged:function(W){this._selection.multi=W;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(W){return this._indexToValue(this.indexOf(W))},this).filter(function(W){return W!=null},this)):_.nk._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(W){W=W||[];W=(this._valuesToItems(W)||[]).filter(function(V){return V!==null&&V!==void 0});
this._selection.clear(W);for(var l=0;l<W.length;l++)this._selection.setItemSelected(W[l],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var W=this._selection.get();this.multi?(this._setSelectedItems(W),this._setSelectedItem(W.length?W[0]:null)):W!==null&&W!==void 0?(this._setSelectedItems([W]),this._setSelectedItem(W)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(W){var l=this.selectedValues.indexOf(W);l<0?this.push("selectedValues",W):this.splice("selectedValues",l,1)},
_valuesToItems:function(W){return W==null?null:W.map(function(l){return this._valueToItem(l)},this)}},lpc=[_.nk,
W2M];var V$v;
_.$6={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(W){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var l=this._valueToItem(W);l&&l.hasAttribute("disabled")||(this._setFocusedItem(l),W2M.select.apply(this,arguments))},
_resetTabindices:function(){var W=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(l){l.setAttribute("tabindex",l===W?"0":"-1");l.setAttribute("aria-selected",this._selection.isSelected(l))},this)},
_updateMultiselectable:function(W){W?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(W){if(this._MODIFIER_KEYS.indexOf(W.key)===-1){this.cancelDebouncer("_clearSearchText");var l=this._searchText||"";l+=(W.key&&W.key.length==1?W.key:String.fromCharCode(W.keyCode)).toLocaleLowerCase();W=l.length;for(var V=0,f;f=this.items[V];V++)if(!f.hasAttribute("disabled")){var r=this.attrForItemTitle||"textContent";r=(f[r]||f.getAttribute(r)||"").trim();if(!(r.length<W)&&r.slice(0,W).toLocaleLowerCase()==l){this._setFocusedItem(f);break}}this._searchText=l;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var W=this.items.length,l=Number(this.indexOf(this.focusedItem)),V=1;V<W+1;V++){var f=this.items[(l-V+W)%W];if(!f.hasAttribute("disabled")){var r=_.YG(f).getOwnerRoot()||document;this._setFocusedItem(f);if(_.YG(r).activeElement==f)break}}},
_focusNext:function(){for(var W=this.items.length,l=Number(this.indexOf(this.focusedItem)),V=1;V<W+1;V++){var f=this.items[(l+V)%W];if(!f.hasAttribute("disabled")){var r=_.YG(f).getOwnerRoot()||document;this._setFocusedItem(f);if(_.YG(r).activeElement==f)break}}},
_applySelection:function(W,l){l?W.setAttribute("aria-selected","true"):W.setAttribute("aria-selected","false");_.nk._applySelection.apply(this,arguments)},
_focusedItemChanged:function(W,l){l&&l.setAttribute("tabindex","-1");!W||W.hasAttribute("disabled")||this.disabled||(W.setAttribute("tabindex","0"),W.focus())},
_onIronItemsChanged:function(W){W.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var W=this.getAttribute("tabindex");_.$6._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",W);_.$6._shiftTabPressed=!1},1)},
_onFocus:function(W){!_.$6._shiftTabPressed&&(W=_.YG(W).rootTarget,W===this||typeof W.tabIndex==="undefined"||this.isLightDescendant(W))&&(this._defaultFocusAsync=this.async(function(){var l=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);l?this._setFocusedItem(l):this.items[0]&&this._focusNext()}))},
_onUpKey:function(W){this._focusPrevious();W.detail.keyboardEvent.preventDefault()},
_onDownKey:function(W){this._focusNext();W.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var W=this.focusedItem;W&&W.blur()},
_onKeydown:function(W){this.keyboardEventMatchesKeys(W,"up down esc")||this._focusWithKeyboardEvent(W);W.stopPropagation()},
_activateHandler:function(W){_.nk._activateHandler.call(this,W);W.stopPropagation()},
_disabledChanged:function(W){W?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};V$v=[lpc,_.NN,_.$6];_.fpZ={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(W){this.focusedItem&&(this.focusedItem.click(),W.detail.keyboardEvent.preventDefault())},
_onDownKey:function(W){this.focusedItem&&(this.focusedItem.click(),W.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(W){return W.ctrlKey||W.shiftKey||W.altKey||W.metaKey},
_onLeftKey:function(W){this._isSpecialKey(W.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),W.detail.keyboardEvent.preventDefault())},
_onRightKey:function(W){this._isSpecialKey(W.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),W.detail.keyboardEvent.preventDefault())},
_onKeydown:function(W){this.keyboardEventMatchesKeys(W,"up down left right esc")||this._focusWithKeyboardEvent(W)}};
_.r$B=[V$v,_.fpZ];var R2M;R2M=new Set;_.Wo={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):(R2M.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(W){this.resizerShouldNotify(W)&&this._notifyDescendant(W)},this),this._fireResize())},
assignParentResizable:function(W){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=W)&&W._interestedResizables.indexOf(this)===-1&&(W._interestedResizables.push(this),W._subscribeIronResize(this))},
stopResizeNotificationsFor:function(W){var l=this._interestedResizables.indexOf(W);l>-1&&(this._interestedResizables.splice(l,1),this._unsubscribeIronResize(W))},
_subscribeIronResize:function(W){W.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(W){W.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(W){this._notifyingDescendant?W.stopPropagation():NS||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(W){var l=_.YG(W).rootTarget;l!==this&&(l.assignParentResizable(this),this._notifyDescendant(l),W.stopPropagation())},
_parentResizableChanged:function(W){W&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(W){this.isAttached&&(this._notifyingDescendant=!0,W.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var W=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function V(){document.removeEventListener("readystatechange",V);W()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(l){l!==this&&l._findParent()},this):(R2M.forEach(function(l){l!==this&&l._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?R2M.delete(this):R2M.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
*/
_.t$a={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(W,l){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);l&&(W==="document"?this.scrollTarget=this._doc:typeof W==="string"?this.scrollTarget=(l=this.domHost)&&l.$?l.$[W]:_.YG(this.ownerDocument).querySelector("#"+W):this._isValidScrollTarget()&&(this._oldScrollTarget=W,this._toggleScrollListener(this._shouldHaveListener,W)))},
_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(W){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,W):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
W)},set _scrollLeft(W){this.scrollTarget===this._doc?window.scrollTo(W,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=W)},scroll:function(W,l){if(typeof W==="object"){var V=W.left;l=W.top}else V=W;V=V||0;l=l||0;this.scrollTarget===this._doc?window.scrollTo(V,l):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=V,this.scrollTarget.scrollTop=l)},
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(W,l){l=l===this._doc?window:l;W?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),l.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(l.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(W){this._shouldHaveListener=W;this._toggleScrollListener(W,this.scrollTarget)}};_.S3({is:"iron-selector",_template:null,behaviors:[lpc]});var lG={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(W){if(W.timing)for(var l in W.timing)this.animationTiming[l]=W.timing[l];return this.animationTiming},
setPrefixedProperty:function(W,l,V){for(var f={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[l],r,R=0;r=f[R];R++)W.style[r]=V;W.style[l]=V},
complete:function(){}};_.S3({is:"fade-in-animation",_template:null,behaviors:[lG],configure:function(W){return this._effect=new KeyframeEffect(W.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(W))}});_.S3({is:"fade-out-animation",_template:null,behaviors:[lG],configure:function(W){return this._effect=new KeyframeEffect(W.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(W))}});var spL=[{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(W,l){for(var V in l)W[V]=l[V]},
_cloneConfig:function(W){var l={isClone:!0};this._copyProperties(l,W);return l},
_getAnimationConfigRecursive:function(W,l,V){if(this.animationConfig)if(this.animationConfig.value&&typeof this.animationConfig.value==="function")this._warn(this._logf("playAnimation","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));else{var f=W?this.animationConfig[W]:this.animationConfig;Array.isArray(f)||(f=[f]);if(f)for(var r,R=0;r=f[R];R++)if(r.animatable)r.animatable._getAnimationConfigRecursive(r.type||W,l,V);else if(r.id){var y=l[r.id];
y?(y.isClone||(l[r.id]=this._cloneConfig(y),y=l[r.id]),this._copyProperties(y,r)):l[r.id]=r}else V.push(r)}},
getAnimationConfig:function(W){var l={},V=[];this._getAnimationConfigRecursive(W,l,V);for(var f in l)V.push(l[f]);return V}},
{_configureAnimations:function(W){var l=[],V=[];if(W.length>0)for(var f,r=0;f=W[r];r++){var R=document.createElement(f.name);if(R.isNeonAnimation){var y=null;R.configure||(R.configure=function(){return null});
y=R.configure(f);V.push({result:y,config:f})}else console.warn(this.is+":",f.name,"not found!")}for(W=0;W<V.length;W++){y=V[W].result;f=V[W].config;try{typeof y.cancel!="function"&&(y=document.timeline.play(y))}catch(P){y=null,console.warn("Couldnt play","(",f.name,").",P)}y&&l.push({neonAnimation:R,config:f,animation:y})}return l},
_shouldComplete:function(W){for(var l=!0,V=0;V<W.length;V++)if(W[V].animation.playState!="finished"){l=!1;break}return l},
_complete:function(W){for(var l=0;l<W.length;l++)W[l].neonAnimation.complete(W[l].config);for(l=0;l<W.length;l++)W[l].animation.cancel()},
playAnimation:function(W,l){var V=this.getAnimationConfig(W);if(V){this._active=this._active||{};this._active[W]&&(this._complete(this._active[W]),delete this._active[W]);var f=this._configureAnimations(V);if(f.length==0)this.fire("neon-animation-finish",l,{bubbles:!1});else for(this._active[W]=f,V=0;V<f.length;V++)f[V].animation.onfinish=function(){this._shouldComplete(f)&&(this._complete(f),delete this._active[W],this.fire("neon-animation-finish",l,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var W in this._active){var l=this._active[W],V;for(V in l)l[V].animation&&l[V].animation.cancel&&l[V].animation.cancel()}this._active={}}}];var vj=function(W,l){W=Error.call(this,W);this.message=W.message;"stack"in W&&(this.stack=W.stack);this.arg=l;this.name=this.constructor.name;this.constructor=vj;this.__proto__=vj.prototype};
_.v(vj,Error);var L2I=uZ(function(W){var l=function(){return W.apply(this,arguments)||this};
_.v(l,W);l.prototype._marshalArgs=function(V,f,r){f=W.prototype._marshalArgs.call(this,V,f,r);if(this._legacyUndefinedCheck&&f.length>1)for(r=0;r<f.length;r++)if(f[r]===void 0||V[r].wildcard&&f[r].base===void 0)throw V=V[r].name,new vj("Argument '"+V+"' is undefined.",V);return f};
l.prototype._addPropertyEffect=function(V,f,r){return W.prototype._addPropertyEffect.call(this,V,f,bUv(r,r&&r.info&&r.info.methodName))};
l._addTemplatePropertyEffect=function(V,f,r){return W._addTemplatePropertyEffect.call(this,V,f,bUv(r))};
return l}),y$v=_.S3.Class;
_.S3.Class=function(W,l){return y$v(W,function(V){return l?l(L2I(V)):L2I(V)})};
var g1$=uZ(function(W){var l=L2I(W);W=function(){return l.apply(this,arguments)||this};
_.v(W,l);_.rc.Object.defineProperties(W.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return W}),PEe=xB.mixin;
xB.mixin=PEe?function(W){return g1$(PEe(W))}:g1$;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.VO=_.eq.IronButtonState;var S34=zi;var Hj=function(W,l){var V=l===void 0?{}:l;var f=Object.assign({},V);l=V.oldState===void 0?"":V.oldState;V=V.newState===void 0?"":V.newState;f=(delete f.oldState,delete f.newState,f);W=Event.call(this,W,f)||this;W.oldState=String(l||"");W.newState=String(V||"");return W};
_.v(Hj,Event);var pWJ=new WeakMap;var ASF=globalThis.ShadowRoot||function(){},XWU=globalThis.HTMLDialogElement||function(){},zN6=new WeakMap,pX=new WeakMap,oA=new WeakMap,KX=new WeakMap,InY=new WeakMap,ang=new WeakMap,xRj=new WeakMap,qfj=new WeakMap;var hNq=RQ(["\n    @layer popover-polyfill {\n      :where([popover]) {\n        position: fixed;\n        z-index: 2147483647;\n        inset: 0;\n        padding: 0.25em;\n        width: fit-content;\n        height: fit-content;\n        border-width: initial;\n        border-color: initial;\n        border-image: initial;\n        border-style: solid;\n        background-color: canvas;\n        color: canvastext;\n        overflow: auto;\n        margin: auto;\n      }\n\n      :where([popover]:not(.\\:popover-open)) {\n        display: none;\n      }\n\n      :where(dialog[popover].\\:popover-open) {\n        display: block;\n      }\n\n      :where(dialog[popover][open]) {\n        display: revert;\n      }\n\n      :where([anchor].\\:popover-open) {\n        inset: auto;\n      }\n\n      :where([anchor]:popover-open) {\n        inset: auto;\n      }\n\n      @supports not (background-color: canvas) {\n        :where([popover]) {\n          background-color: white;\n          color: black;\n        }\n      }\n\n      @supports (width: -moz-fit-content) {\n        :where([popover]) {\n          width: -moz-fit-content;\n          height: -moz-fit-content;\n        }\n      }\n\n      @supports not (inset: 0) {\n        :where([popover]) {\n          top: 0;\n          left: 0;\n          right: 0;\n          bottom: 0;\n        }\n      }\n    }\n  "],
["\n    @layer popover-polyfill {\n      :where([popover]) {\n        position: fixed;\n        z-index: 2147483647;\n        inset: 0;\n        padding: 0.25em;\n        width: fit-content;\n        height: fit-content;\n        border-width: initial;\n        border-color: initial;\n        border-image: initial;\n        border-style: solid;\n        background-color: canvas;\n        color: canvastext;\n        overflow: auto;\n        margin: auto;\n      }\n\n      :where([popover]:not(.\\\\:popover-open)) {\n        display: none;\n      }\n\n      :where(dialog[popover].\\\\:popover-open) {\n        display: block;\n      }\n\n      :where(dialog[popover][open]) {\n        display: revert;\n      }\n\n      :where([anchor].\\\\:popover-open) {\n        inset: auto;\n      }\n\n      :where([anchor]:popover-open) {\n        inset: auto;\n      }\n\n      @supports not (background-color: canvas) {\n        :where([popover]) {\n          background-color: white;\n          color: black;\n        }\n      }\n\n      @supports (width: -moz-fit-content) {\n        :where([popover]) {\n          width: -moz-fit-content;\n          height: -moz-fit-content;\n        }\n      }\n\n      @supports not (inset: 0) {\n        :where([popover]) {\n          top: 0;\n          left: 0;\n          right: 0;\n          bottom: 0;\n        }\n      }\n    }\n  "]),
SfU=RQ(["\n    :where([popover]) {\n      position: fixed;\n      z-index: 2147483647;\n      inset: 0;\n      padding: 0.25em;\n      width: fit-content;\n      height: fit-content;\n      border-width: initial;\n      border-color: initial;\n      border-image: initial;\n      border-style: solid;\n      background-color: canvas;\n      color: canvastext;\n      overflow: auto;\n      margin: auto;\n    }\n\n    :where([popover]:not(.\\:popover-open)) {\n      display: none;\n    }\n\n    :where(dialog[popover].\\:popover-open) {\n      display: block;\n    }\n\n    :where(dialog[popover][open]) {\n      display: revert;\n    }\n\n    :where([anchor].\\:popover-open) {\n      inset: auto;\n    }\n\n    :where([anchor]:popover-open) {\n      inset: auto;\n    }\n\n    @supports not (background-color: canvas) {\n      :where([popover]) {\n        background-color: white;\n        color: black;\n      }\n    }\n\n    @supports (width: -moz-fit-content) {\n      :where([popover]) {\n        width: -moz-fit-content;\n        height: -moz-fit-content;\n      }\n    }\n\n    @supports not (inset: 0) {\n      :where([popover]) {\n        top: 0;\n        left: 0;\n        right: 0;\n        bottom: 0;\n      }\n    }\n  "],
["\n    :where([popover]) {\n      position: fixed;\n      z-index: 2147483647;\n      inset: 0;\n      padding: 0.25em;\n      width: fit-content;\n      height: fit-content;\n      border-width: initial;\n      border-color: initial;\n      border-image: initial;\n      border-style: solid;\n      background-color: canvas;\n      color: canvastext;\n      overflow: auto;\n      margin: auto;\n    }\n\n    :where([popover]:not(.\\\\:popover-open)) {\n      display: none;\n    }\n\n    :where(dialog[popover].\\\\:popover-open) {\n      display: block;\n    }\n\n    :where(dialog[popover][open]) {\n      display: revert;\n    }\n\n    :where([anchor].\\\\:popover-open) {\n      inset: auto;\n    }\n\n    :where([anchor]:popover-open) {\n      inset: auto;\n    }\n\n    @supports not (background-color: canvas) {\n      :where([popover]) {\n        background-color: white;\n        color: black;\n      }\n    }\n\n    @supports (width: -moz-fit-content) {\n      :where([popover]) {\n        width: -moz-fit-content;\n        height: -moz-fit-content;\n      }\n    }\n\n    @supports not (inset: 0) {\n      :where([popover]) {\n        top: 0;\n        left: 0;\n        right: 0;\n        bottom: 0;\n      }\n    }\n  "]),
Wxn=globalThis.ShadowRoot||function(){},$Rx=/(^|[^\\]):popover-open\b/g,Xo=null;typeof HTMLElement!=="undefined"&&typeof HTMLElement.prototype==="object"&&"popover"in HTMLElement.prototype||lRY();/*

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 CEI;_.n1k="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");CEI=function(){var W=[],l;var V=V||_.n1k.length;for(l=0;l<8;l++)W[l]=_.n1k[0|Math.random()*V];return W.join("")};var Rd6=function(){return Math.random().toString(36).substring(7).split("").join(".")},rdS="@@redux/INIT"+Rd6(),Lxg="@@redux/REPLACE"+Rd6();var yd6=typeof Symbol==="function"&&Symbol.observable||"@@observable";var c$e=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var BC$="top right bottom left width height size weight".split(" "),drI=typeof MutationObserver!=="undefined",J$L=c$e&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,Drk=function(){this.mutationEventsAdded_=this.JSC$11764_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=gg4(this.refresh.bind(this))},UrM=function(W,
l){var V=W.observers_;
l=V.indexOf(l);~l&&V.splice(l,1);!V.length&&W.JSC$11764_connected_&&c$e&&W.JSC$11764_connected_&&(document.removeEventListener("transitionend",W.onTransitionEnd_),window.removeEventListener("resize",W.refresh),W.mutationsObserver_&&(W.mutationsObserver_.disconnect(),J$L&&(HTMLElement.prototype.attachShadow=J$L)),W.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",W.refresh),W.mutationsObserver_=null,W.mutationEventsAdded_=!1,W.JSC$11764_connected_=!1)};
Drk.prototype.refresh=function(){uJL(this)&&this.refresh()};
var uJL=function(W){W=W.observers_.filter(function(l){return kbe(l),l.activeObservations_.length>0});
W.forEach(function(l){return v1k(l)});
return W.length>0},HhM=function(W){if(c$e&&!W.JSC$11764_connected_){document.addEventListener("transitionend",W.onTransitionEnd_);
window.addEventListener("resize",W.refresh);if(drI){W.mutationsObserver_=new MutationObserver(W.refresh);var l={attributes:!0,childList:!0,characterData:!0,subtree:!0};W.mutationsObserver_.observe(document,l);J$L&&(function r(f){var R=f.shadowRoot;R&&(W.mutationsObserver_.observe(R,l),r(R));for(f=f.firstElementChild;f;)r(f),f=f.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var f=J$L.apply(this,_.xk.apply(0,arguments));
W.mutationsObserver_.observe(f,l);return f})}else document.addEventListener("DOMSubtreeModified",W.refresh),W.mutationEventsAdded_=!0;
W.JSC$11764_connected_=!0}};
Drk.prototype.onTransitionEnd_=function(W){var l=W.propertyName===void 0?"":W.propertyName;BC$.some(function(V){return!!~l.indexOf(V)})&&this.refresh()};
var K2L=null;var F2k=function(W,l){for(var V=_.L(Object.keys(l)),f=V.next();!f.done;f=V.next())f=f.value,Object.defineProperty(W,f,{value:l[f],enumerable:!1,writable:!1,configurable:!0})};var fB=function(W){var l;return(W==null?void 0:(l=W.ownerDocument)==null?void 0:l.defaultView)||globalThis};var GbZ={x:0,y:0,width:0,height:0},bh$=typeof SVGGraphicsElement!=="undefined"?function(W){return W instanceof fB(W).SVGGraphicsElement}:function(W){return W instanceof fB(W).SVGElement&&typeof W.getBBox==="function"};var pfX=function(W){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=W};
pfX.prototype.isActive=function(){var W=this.target;if(c$e)if(bh$(W)){var l=W.getBBox();l={x:0,y:0,width:l.width,height:l.height}}else{var V=W.clientWidth,f=W.clientHeight;if(V||f){var r=fB(W).getComputedStyle(W);l=wc(r["padding-top"]);var R=wc(r["padding-left"]),y=R+wc(r["padding-right"]),P=l+wc(r["padding-bottom"]),n=wc(r.width),B=wc(r.height);r.boxSizing==="border-box"&&(Math.round(n+y)!==V&&(n-=PcS(r,"left","right")+y),Math.round(B+P)!==f&&(B-=PcS(r,"top","bottom")+P));W!==fB(W).document.documentElement&&
(W=Math.round(n+y)-V,f=Math.round(B+P)-f,Math.abs(W)!==1&&(n-=W),Math.abs(f)!==1&&(B-=f));l={x:R,y:l,width:n,height:B}}else l=GbZ}else l=GbZ;this.contentRect_=l;return l.width!==this.broadcastWidth||l.height!==this.broadcastHeight};var o1v=function(W,l){var V=l.x;var f=l.y;var r=l.width;l=l.height;var R=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);F2k(R,{x:V,y:f,width:r,height:l,top:f,right:V+r,bottom:l+f,left:V});F2k(this,{target:W,contentRect:R})};var jpZ=function(W,l){var V=K2L;this.activeObservations_=[];this.observations_=new Map;if(typeof W!=="function")throw new TypeError("Ue");this.callback_=W;this.controller_=V;this.callbackCtx_=l};
jpZ.prototype.observe=function(W){if(W===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(W instanceof fB(W).Element))throw new TypeError("We");var l=this.observations_;l.has(W)||(l.set(W,new pfX(W)),W=this.controller_,~W.observers_.indexOf(this)||W.observers_.push(this),W.JSC$11764_connected_||HhM(W),this.controller_.refresh())}};
jpZ.prototype.unobserve=function(W){if(W===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(W instanceof fB(W).Element))throw new TypeError("We");var l=this.observations_;l.has(W)&&(l.delete(W),l.size||UrM(this.controller_,this))}};
jpZ.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();UrM(this.controller_,this)};
var kbe=function(W){W.activeObservations_.splice(0);W.observations_.forEach(function(l){l.isActive()&&W.activeObservations_.push(l)})},v1k=function(W){if(W.activeObservations_.length>0){var l=W.callbackCtx_,V=W.activeObservations_.map(function(f){var r=f.target,R=f.contentRect_;
f.broadcastWidth=R.width;f.broadcastHeight=R.height;return new o1v(r,R)});
W.callback_.call(l,V,l);W.activeObservations_.splice(0)}};var rt=function(W){if(!(this instanceof rt))throw new TypeError("Xe");if(!arguments.length)throw new TypeError("Ve");K2L||(K2L=new Drk);this.observer_=new jpZ(W,this)};
rt.prototype.observe=function(W){this.observer_.observe(W)};
rt.prototype.unobserve=function(W){this.observer_.unobserve(W)};
rt.prototype.disconnect=function(){this.observer_.disconnect()};var D28=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:rt;var UX8="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(" "),DXz={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},Jd6=null,ngn=null;var ugJ={},kW4=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 pDU={text:1},Kxv={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var IpX=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,ihX={CONSTANT:{isUnwrappable:function(W){return W instanceof Zx},
unwrap:vZI},JAVASCRIPT:{isUnwrappable:function(W){return W instanceof _.fc},
unwrap:LQz},HTML:{isUnwrappable:function(W){return W instanceof Se},
unwrap:function(W){return $k(W)}},
RESOURCE_URL:{isUnwrappable:function(W){return W instanceof Iv},
unwrap:_.m7},STRING:{isUnwrappable:function(W){return W instanceof Object},
unwrap:function(W){return String(W)}},
STYLE:{isUnwrappable:function(W){return typeof W==="string"},
unwrap:function(W){return W}},
URL:{isUnwrappable:function(W){return QP(W)},
unwrap:_.MI}},mrv={CONSTANT:ogz,JAVASCRIPT:ogz,HTML:function(W){W=W instanceof Se?W:EP(String(W).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return $k(W)},
RESOURCE_URL:ogz,STRING:String,STYLE:ogz,URL:function(W,l){W=IpX.test(W)?W:void 0;return W===void 0?l:W}};var ZCz=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,jrz=/[\t\n\f\r ]+/,iCS=/[\t\n\f\r ,]+/g,XDg=function(W,l,V){return V},Z0={},Xfk=function(){var W=function(){var f={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",f):f}(),l=W.createHTML(""),V=W.createScript("");
W=W.createScriptURL("");return{INNOCUOUS_STRING:l,INNOCUOUS_SCRIPT:V,INNOCUOUS_URL:W}}(),Mc=Xfk.INNOCUOUS_STRING,MhY=Xfk.INNOCUOUS_SCRIPT,Qrn=Xfk.INNOCUOUS_URL;var TCL=function(W){var l=OCJ(W);return function(V,f,r,R){return R?l(R,f,r,V):Mc}}({reportHandler:function(W,l){if(W)try{throw Error(l);
}catch(V){_.wv(V)}},
safeTypesBridge:function(W,l,V){var f=ihX[l];return f.isUnwrappable(W)&&(f=f.unwrap(W,V),f!==V)?f:(0,mrv[l])(String(W),V)},
allowedIdentifierPrefixes:[""]});if(Kj!==void 0)throw Error("Ye");Kj=TCL;if(Kj!==TCL)throw Error("Ze");OC("Injectable",[]);var cU6=OC("Inject",[["token",void 0]]),d3U=OC("Optional",[]);OC("Injectable",[]);var JUJ=OC("Self",[]),D34=OC("SkipSelf",[]);OC("Host",[]);var wfc={},A$1=function(){};
A$1.prototype.resolve=function(){throw Error("af");};
A$1.prototype.addProvider=function(){throw Error("af");};var n$J=Function;var QpL=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,M$k=function(){this._reflect=window.Reflect};
_.t=M$k.prototype;_.t.factory=function(W){return function(){return new (Function.prototype.bind.apply(W,[null].concat(_.QK(_.xk.apply(0,arguments)))))}};
_.t._zipTypesAndAnnotations=function(W,l){var V=typeof W==="undefined"?Array(l.length):Array(W.length);for(var f=0;f<V.length;f++)V[f]=typeof W==="undefined"?[]:W[f]!=Object?[W[f]]:[],l&&zdv(l[f])&&(V[f]=V[f].concat(l[f]));return V};
_.t._ownParameters=function(W,l){if(QpL.exec(W.toString()))return null;if(W.parameters&&W.parameters!==l.parameters)return W.parameters;var V=W.ctorParameters;return V&&V!==l.ctorParameters?(l=typeof V==="function"?V():V,W=l.map(function(f){return f&&f.type}),l=l.map(function(f){return f&&YrS(f.decorators)}),this._zipTypesAndAnnotations(W,l)):zdv(this._reflect)&&zdv(this._reflect.getOwnMetadata)&&(l=this._reflect.getOwnMetadata("parameters",W),(V=this._reflect.getOwnMetadata("design:paramtypes",W))||
l)?this._zipTypesAndAnnotations(V,l):Array(W.length).fill(void 0)};
_.t.parameters=function(W){if(!W.prototype)return[];var l=Object.getPrototypeOf(W.prototype).constructor;(W=this._ownParameters(W,l))||l===Object||(W=this.parameters(l));return W||[]};
_.t._ownAnnotations=function(W,l){if(W.annotations&&W.annotations!==l.annotations)return W=W.annotations,typeof W==="function"&&W.annotations&&(W=W.annotations),W;if(W.decorators&&W.decorators!==l.decorators)return YrS(W.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",W)};
_.t.annotations=function(W){var l=Object.getPrototypeOf(W.prototype).constructor;W=this._ownAnnotations(W,l)||[];return(l!==Object?this.annotations(l):[]).concat(W)};
_.t._ownPropMetadata=function(W,l){if(W.propMetadata&&W.propMetadata!==l.propMetadata)return W=W.propMetadata,typeof W==="function"&&W.propMetadata&&(W=W.propMetadata),W;if(W.propDecorators&&W.propDecorators!==l.propDecorators){var V=W.propDecorators,f={};Object.keys(V).forEach(function(r){f[r]=YrS(V[r])});
return f}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",W)};
_.t.propMetadata=function(W){var l=Object.getPrototypeOf(W.prototype).constructor,V={};if(l!==Object){var f=this.propMetadata(l);Object.keys(f).forEach(function(R){V[R]=f[R]})}var r=this._ownPropMetadata(W,l);
r&&Object.keys(r).forEach(function(R){var y=[];V.hasOwnProperty(R)&&y.push.apply(y,_.QK(V[R]));y.push.apply(y,_.QK(r[R]));V[R]=y});
return V};
_.t.getter=function(W){return function(l){return l[W]}};
_.t.setter=function(W){return function(l,V){return l[W]=V}};
_.t.method=function(W){return function(l,V){if(!l[W])throw Error("bf`"+W);return l[W].apply(l,V)}};var Zhe=function(){};var OhL=function(W){this.reflectionCapabilities=W};
_.v(OhL,Zhe);_.t=OhL.prototype;_.t.factory=function(W){return this.reflectionCapabilities.factory(W)};
_.t.parameters=function(W){return this.reflectionCapabilities.parameters(W)};
_.t.annotations=function(W){return this.reflectionCapabilities.annotations(W)};
_.t.propMetadata=function(W){return this.reflectionCapabilities.propMetadata(W)};
_.t.getter=function(W){return this.reflectionCapabilities.getter(W)};
_.t.setter=function(W){return this.reflectionCapabilities.setter(W)};
_.t.method=function(W){return this.reflectionCapabilities.method(W)};var lvz=new OhL(new M$k);var Rz=function(W,l){this.token=W;this.id=l;if(W===void 0||W===null)throw Error("gf");};
_.rc.Object.defineProperties(Rz.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return aA(this.token)}}});
_.rc.Object.defineProperties(Rz,{JSC$11806_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return Nc.JSC$11810_numberOfKeys}}});
var apB=function(){this._allKeys=new Map};
apB.prototype.get=function(W){if(W instanceof Rz)return W;if(this._allKeys.has(W))return this._allKeys.get(W);var l=new Rz(W,Rz.JSC$11806_numberOfKeys);this._allKeys.set(W,l);return l};
_.rc.Object.defineProperties(apB.prototype,{JSC$11810_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var Nc=new apB;var U3q=function(W,l,V){this.key=W;this.optional=l;this.visibility=V},fvx=function(W){return new U3q(W,!1,null)},RCv=[],LES=function(W,l,V){this.key=W;
this.resolvedFactories=l;this.multiProvider=V},taY=function(W,l,V,f){this.factory=W;
this.dependencies=l;this.providerClass=V;this.providerValue=f};var te={},sj=function(W,l){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=l===void 0?null:l;W=_.L(W);for(l=W.next();!l.done;l=W.next())this.addProvider(l.value)};
_.t=sj.prototype;_.t.addProvider=function(W){this.keyIdToIndex.set(W.key.id,this.keyIds.length);this.providers.push(W);this.keyIds.push(W.key.id);this.objs.push(te)};
_.t.resolve=function(W,l){l=l===void 0?wfc:l;return this._getByKey(Nc.get(z$(W)),null,l)};
_.t._new=function(W){if(this.constructedKeyIds[W.key.id])throw Eg6(this,W.key);this.constructedKeyIds[W.key.id]=!0;return this._instantiateProvider(W)};
_.t._instantiateProvider=function(W){if(W.multiProvider){for(var l=Array(W.resolvedFactories.length),V=0;V<W.resolvedFactories.length;++V)l[V]=this._instantiate(W,W.resolvedFactories[V]);return l}return this._instantiate(W,W.resolvedFactories[0])};
_.t._instantiate=function(W,l){var V=this,f=l.factory;try{var r=l.dependencies.map(function(y){return V._getByReflectiveDependency(y)})}catch(y){throw y.addKey&&y.addKey(this,W.key),y;
}try{var R=f.apply(null,_.QK(r))}catch(y){throw $X4(this,y,W.key);}return R};
_.t._getByReflectiveDependency=function(W){return this._getByKey(W.key,W.visibility,W.optional?null:wfc)};
_.t._getByKey=function(W,l,V){return W===z2I?this:l instanceof JUJ?this._getByKeySelf(W,V):this._getByKeyDefault(W,V,l)};
_.t._getObjByKeyId=function(W){for(var l=0;l<this.keyIds.length;l++)if(this.keyIds[l]===W)return this.objs[l]===te&&(this.objs[l]=this._new(this.providers[l])),this.objs[l];return te};
_.t._throwOrNull=function(W,l){if(l!==wfc)return l;throw Srj(this,W);};
_.t._getByKeySelf=function(W,l){var V=this._getObjByKeyId(W.id);return V!==te?V:this._throwOrNull(W,l)};
_.t._getByKeyDefault=function(W,l,V){for(var f=V=V instanceof D34?this.parent:this;V instanceof sj;){var r=V._getObjByKeyId(W.id);if(r!==te)return r;V=V.parent}r=void 0;if(V!==null)try{var R=V.resolve(W.token,l);if(R!==te)return R}catch(y){r=y}if(!(f instanceof sj&&kr8(W.token))){if(r)throw r;return this._throwOrNull(W,l)}for(R=f;R.parent instanceof sj;)R=R.parent;R.addProvider(yU6({provide:W.token,useClass:W.token}));return R.resolve(W.token,l)};
_.t.toString=function(){return this.displayName};
_.rc.Object.defineProperties(sj.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+uZ6(this,function(W){return' "'+W.key.displayName+'" '}).join(", ")+"])"}}});
var z2I=Nc.get(z$(A$1));(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 NCe=window.XRegExp;var Ygv=-1,xre=function(W){addEventListener("pageshow",function(l){l.persisted&&(Ygv=l.timeStamp,W(l))},!0)};var qgM=function(W,l,V){var f=e2B,r,R;return function(y){if(l.value>=0&&(y||V)){var P;if((R=l.value-((P=r)!=null?P:0))||r===void 0)r=l.value,l.delta=R,y=l.value,l.rating=y>f[1]?"poor":y>f[0]?"needs-improvement":"good",W(l)}}};var h2k=function(W){requestAnimationFrame(function(){return requestAnimationFrame(function(){return W()})})};var Sgc=function(){var W=performance.getEntriesByType("navigation")[0];if(W&&W.responseStart>0&&W.responseStart<performance.now())return W};var E1v=function(){var W,l;return(l=(W=Sgc())==null?void 0:W.activationStart)!=null?l:0};var $rI=function(){var W=W===void 0?-1:W;var l=Sgc(),V="navigate";Ygv>=0?V="back-forward-cache":l&&(document.prerendering||E1v()>0?V="prerender":document.wasDiscarded?V="restore":l.type&&(V=l.type.replace(/_/g,"-")));return{name:"LCP",value:W,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:V}};var Hiz=new WeakMap;var WHk=function(W){var l=l===void 0?{}:l;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var V=new PerformanceObserver(function(f){Promise.resolve().then(function(){W(f.getEntries())})});
V.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},l));return V}}catch(f){}};var lmL=function(W){var l=!1;return function(){l||(W(),l=!0)}};var LB=-1,VlL=function(W){document.visibilityState==="hidden"&&LB>-1&&(LB=W.type==="visibilitychange"?W.timeStamp:0,removeEventListener("visibilitychange",VlL,!0),removeEventListener("prerenderingchange",VlL,!0))},fmB=function(){addEventListener("visibilitychange",VlL,!0);
addEventListener("prerenderingchange",VlL,!0)},rmI=function(){if(LB<0){var W=E1v(),l,V;
LB=(V=document.prerendering?void 0:(l=globalThis.performance.getEntriesByType("visibility-state").filter(function(f){return f.name==="hidden"&&f.startTime>W})[0])==null?void 0:l.startTime)!=null?V:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
fmB();xre(function(){setTimeout(function(){LB=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;fmB()})})}return{get firstHiddenTime(){return LB}}};var RDv=function(W){document.prerendering?addEventListener("prerenderingchange",function(){return W()},!0):W()};var tl$=function(W){var l=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?W():(W=lmL(W),document.addEventListener("visibilitychange",W,{once:!0}),l(function(){W();document.removeEventListener("visibilitychange",W)}))};var v$n=function(){};
v$n.prototype._processEntry=function(W){var l;(l=this._onBeforeProcessingEntry)==null||l.call(this,W)};var e2B=[2500,4E3],GFY=function(W){var l=l===void 0?{}:l;RDv(function(){var V=rmI(),f=$rI(),r=KEn(l),R=function(J){l.reportAllChanges||(J=J.slice(-1));J=_.L(J);for(var D=J.next();!D.done;D=J.next())D=D.value,r._processEntry(D),D.startTime<V.firstHiddenTime&&(f.value=Math.max(D.startTime-E1v(),0),f.entries=[D],P())},y=WHk(R);
if(y){var P=qgM(W,f,l.reportAllChanges);for(var n=lmL(function(){R(y.takeRecords());y.disconnect();P(!0)}),B=_.L(["keydown",
"click","visibilitychange"]),d=B.next();!d.done;d=B.next())addEventListener(d.value,function(){return tl$(n)},{capture:!0,
once:!0});xre(function(J){f=$rI();P=qgM(W,f,l.reportAllChanges);h2k(function(){f.value=performance.now()-J.timeStamp;P(!0)})})}})};var smB;var LHL;_.e=function(){return LHL!==void 0?LHL:LHL=document.createElement("template")};
document.head.appendChild(_.e().content);var ym1;_.S3({_template:function(){if(ym1!==void 0)return ym1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
var l=W.content,V=l.insertBefore;smB===void 0&&(smB=document.createElement("template"));var f=smB;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return ym1=W},
is:"tp-yt-app-toolbar"});var gPB;var P4I;_.gt=function(){};
_.gt=_.S3({_template:function(){if(P4I!==void 0)return P4I;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;gPB===void 0&&(gPB=document.createElement("template"));var f=gPB;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return P4I=W},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.gt.instance||(_.gt.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(W){this._text===W&&(W+="\u00a0");this._text="";this.async(function(){this._text=W},this.timeout)},
_onIronAnnounce:function(W){W.detail&&W.detail.text&&this.announce(W.detail.text)}});
_.gt.instance=null;_.gt.requestAvailability=function(){_.gt.instance||(_.gt.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.gt.instance):document.addEventListener("load",function(){document.body.appendChild(_.gt.instance)})};var nPL;var C4M;/*

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

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 Po,uAe,kkM;Po=Element.prototype;uAe=Po.matches||Po.matchesSelector||Po.mozMatchesSelector||Po.msMatchesSelector||Po.oMatchesSelector||Po.webkitMatchesSelector;kkM=function(){};
_.HtL=function(W){var l=vPv,V=[];return l._collectTabbableNodes(W,V)?l._sortByTabIndex(V):V};
_.t=kkM.prototype;_.t._normalizedTabIndex=function(W){return(uAe.call(W,"input, select, textarea, button, object")?uAe.call(W,":not([disabled])"):uAe.call(W,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(W=W.getAttribute("tabindex")||0,Number(W)):-1};
_.t._collectTabbableNodes=function(W,l){if(W.nodeType!==Node.ELEMENT_NODE||!this._isVisible(W))return!1;var V=this._normalizedTabIndex(W),f=V>0;V>=0&&l.push(W);if(W.localName==="content"||W.localName==="slot")V=_.YG(W).getDistributedNodes();else{var r;V=((r=_.YG(W).shadowRoot)!=null?r:_.YG(W.root||W)).children}for(W=0;W<V.length;W++)f=this._collectTabbableNodes(V[W],l)||f;return f};
_.t._isVisible=function(W){var l=W.style;return l.visibility!=="hidden"&&l.display!=="none"?(l=window.getComputedStyle(W),l.visibility!=="hidden"&&l.display!=="none"):!1};
_.t._sortByTabIndex=function(W){var l=W.length;if(l<2)return W;var V=Math.ceil(l/2);l=this._sortByTabIndex(W.slice(0,V));W=this._sortByTabIndex(W.slice(V));return this._mergeSortByTabIndex(l,W)};
_.t._mergeSortByTabIndex=function(W,l){for(var V=[];W.length>0&&l.length>0;)this._hasLowerTabOrder(W[0],l[0])?V.push(l.shift()):V.push(W.shift());return V.concat(W,l)};
_.t._hasLowerTabOrder=function(W,l){W=Math.max(W.tabIndex,0);l=Math.max(l.tabIndex,0);return W===0||l===0?l>W:W>l};
var vPv=new kkM;var KHk;var FHM;_.S3({_template:function(){if(FHM!==void 0)return FHM;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;KHk===void 0&&(KHk=document.createElement("template"));var f=KHk;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return FHM=W},
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&&_.YG(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.YG(this.parentNode).removeChild(this)},
_onTransitionend:function(W){W&&W.target===this&&this.complete()},
_openedChanged:function(W){W?this.prepare():(W=window.getComputedStyle(this),W.transitionDuration!=="0s"&&W.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 nB=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;w6(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)};
nB.prototype._bringOverlayAtIndexToFront=function(W){var l=this._overlays[W];if(l){var V=this._overlays.length-1,f=this._overlays[V];f&&this._shouldBeBehindOverlay(l,f)&&V--;if(!(W>=V)){f=Math.max(this._getZ(_.Gk1(this)),this._minimumZ);for(this._getZ(l)<=f&&this._applyOverlayZ(l,f);W<V;)this._overlays[W]=this._overlays[W+1],W++;this._overlays[V]=l}}};
nB.prototype.addOverlay=function(W){var l=this._overlays.indexOf(W);if(l>=0)this._bringOverlayAtIndexToFront(l);else{l=this._overlays.length;var V=this._overlays[l-1],f=Math.max(this._getZ(V),this._minimumZ),r=this._getZ(W);V&&this._shouldBeBehindOverlay(W,V)&&(this._applyOverlayZ(V,f),l--,f=Math.max(this._getZ(this._overlays[l-1]),this._minimumZ));r<=f&&this._applyOverlayZ(W,f);this._overlays.splice(l,0,W)}this.trackBackdrop()};
nB.prototype.removeOverlay=function(W){W=this._overlays.indexOf(W);W!==-1&&(this._overlays.splice(W,1),this.trackBackdrop())};
_.Gk1=function(W){return W._overlays[W._overlays.length-1]};
_.t=nB.prototype;_.t.trackBackdrop=function(){var W=this._overlayWithBackdrop();if(W||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(W)-1,this.backdropElement.opened=!!W,this.backdropElement.prepare()};
_.t._overlayWithBackdrop=function(){for(var W=this._overlays.length-1;W>=0;W--)if(this._overlays[W].withBackdrop)return this._overlays[W]};
_.t._getZ=function(W){var l=this._minimumZ;if(W){var V,f,r=Number(((V=W.hostElement)!=null?V:W).style.zIndex||window.getComputedStyle((f=W.hostElement)!=null?f:W).zIndex);r===r&&(l=r)}return l};
_.t._setZ=function(W,l){var V;((V=W.hostElement)!=null?V:W).style.zIndex=l};
_.t._applyOverlayZ=function(W,l){this._setZ(W,l+2)};
_.t._overlayInPath=function(W){W=W||[];for(var l=0;l<W.length;l++){var V=void 0;if(((V=W[l].polymerController)!=null?V:W[l])._manager===this)return W[l]}};
_.t._onCaptureClick=function(W){var l=this._overlays.length-1;if(l!==-1)for(var V=_.YG(W).path,f,r;(f=this._overlays[l])&&this._overlayInPath(V)!==((r=f.hostElement)!=null?r:f);)if(f._onCaptureClick(W),f.allowClickThrough)l--;else break};
_.t._onCaptureFocus=function(W){var l=_.Gk1(this);l&&l._onCaptureFocus(W)};
_.t._onCaptureKeyDown=function(W){var l=_.Gk1(this);l&&(_.NN.keyboardEventMatchesKeys(W,"esc")?l._onCaptureEsc(W):_.NN.keyboardEventMatchesKeys(W,"tab")&&l._onCaptureTab(W))};
_.t._shouldBeBehindOverlay=function(W,l){return!W.alwaysOnTop&&l.alwaysOnTop&&!l.contains(W)};
_.rc.Object.defineProperties(nB.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 W=document.activeElement;W&&W instanceof Element!==!1||(W=document.body);for(;W.root&&_.YG(W.root).activeElement;)W=_.YG(W.root).activeElement;return W}}});
_.CB=new nB;var FE8=0,Gr4=0,biv=null,pdz=[],xG=["wheel","mousewheel","DOMMouseScroll"],o$v;_.U("web_no_lock_on_touchstart_killswitch")&&(xG.push("touchstart"),xG.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;_.co={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:_.CB},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var W;return this._focusedChild||_.YG((W=this.hostElement)!=null?W:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var W;return _.HtL((W=this.hostElement)!=null?W: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 W;this._observer=_.YG((W=this.hostElement)!=null?W:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var W;_.YG((W=this.hostElement)!=null?W:this).unobserveNodes(this._observer)}this._observer=null;for(var l in this.__rafs)this.__rafs[l]!==null&&cancelAnimationFrame(this.__rafs[l]);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(W){this.fire("iron-overlay-canceled",W,{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 W;((W=this.hostElement)!=null?W:this).style.outline="none";var l;((l=this.hostElement)!=null?l:this).style.display="none"}},
_openedChanged:function(W){if(W){var l;((l=this.hostElement)!=null?l:this).removeAttribute("aria-hidden")}else{var V;((V=this.hostElement)!=null?V: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 W;if(this.withBackdrop&&!((W=this.hostElement)!=null?W:this).hasAttribute("tabindex")){var l;((l=this.hostElement)!=null?l:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var V;((V=this.hostElement)!=null?V: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 W;((W=this.hostElement)!=null?W:this).style.display="none";var l;((l=this.hostElement)!=null?l:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var W,l;((W=this.hostElement)!=null?W:this).style.transition=((l=this.hostElement)!=null?l:this).style.webkitTransition="none";var V,f;((V=this.hostElement)!=null?V:this).style.transform=((f=this.hostElement)!=null?f:this).style.webkitTransform="none";var r;((r=this.hostElement)!=null?r:this).style.display=""},
_finishPositioning:function(){var W;((W=this.hostElement)!=null?W:this).style.display="none";this.scrollTop=this.scrollTop;var l,V;((l=this.hostElement)!=null?l:this).style.transition=((V=this.hostElement)!=null?V:this).style.webkitTransition="";var f,r;((f=this.hostElement)!=null?f:this).style.transform=((r=this.hostElement)!=null?r:this).style.webkitTransform="";var R;((R=this.hostElement)!=null?R:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var W=this._manager.deepActiveElement,l;if(!(l=W===document.body))a:{for(;W;W=W.assignedSlot||W.parentNode||W.host)if(W===this){l=!0;break a}l=!1}l&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(W){this.noCancelOnOutsideClick||this.cancel(W)},
_onCaptureFocus:function(W){if(this.withBackdrop){var l=_.YG(W).path;l.indexOf(this)===-1?(W.stopPropagation(),this._applyFocus()):this._focusedChild=l[0]}},
_onCaptureEsc:function(W){this.noCancelOnEscKey||this.cancel(W)},
_onCaptureTab:function(W){if(this.withBackdrop){this.__ensureFirstLastFocusables();var l=W.shiftKey,V=l?this.__firstFocusableNode:this.__lastFocusableNode;l=l?this.__lastFocusableNode:this.__firstFocusableNode;if(V===l)V=!0;else{var f=this._manager.deepActiveElement;V=f===V||f===this}V&&(W.preventDefault(),this._focusedChild=l,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 W=this._focusableNodes;this.__firstFocusableNode=W[0];this.__lastFocusableNode=W[W.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(W,l){var V=this.__rafs;V[W]!==null&&cancelAnimationFrame(V[W]);V[W]=requestAnimationFrame(function(){V[W]=null;l.call(this)}.bind(this))},
__updateScrollObservers:function(W,l,V){W&&l&&this.__isValidScrollAction(V)?(V==="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),o$v=_._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()):(W=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),W!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(W,1),o$v=_._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(NS)for(var W=this;W;)W.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&W.host&&this.__rootNodes.push(W),W=W.host||W.assignedSlot||W.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(l){l.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(W){W.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(W){return W==="lock"||W==="refit"||W==="cancel"},
__onCaptureScroll:function(W){if(!(this.__isAnimating||_.YG(W).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(W)}},
__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)}};
_.Bo=[UPk,_.Wo,_.co];_.S3({_template:function(){if(JmB!==void 0)return JmB;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;dPB===void 0&&(dPB=document.createElement("template"));var f=dPB;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return JmB=W},
is:"tp-yt-iron-dropdown",behaviors:[_.Y6,_.NN,_.Bo,spL],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 W=_.YG(this.$.content).getDistributedNodes(),l=0,V=W.length;l<V;l++)if(W[l].nodeType===Node.ELEMENT_NODE)return W[l]},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(),_.co._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.co._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.co._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var W=this.containedElement,l=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),V=0;V<l.length;V++)l[V].node=W;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(W){this._readied&&(W?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var W=this.focusTarget||this.containedElement;W&&this.opened&&!this.noAutoFocus?W.focus():_.co._applyFocus.apply(this,arguments)}});var btk;var p0a;/*

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 oPv=new _.hu({type:"iconset"});
_.S3({_template:function(){if(p0a!==void 0)return p0a;var W=document.createElement("template");_.K(W,"\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");W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;btk===void 0&&(btk=document.createElement("template"));
var f=btk;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return p0a=W},
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(W){W=(W||"").split(":");this._iconName=W.pop();this._iconsetName=W.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&&_.YG(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=oPv.byKey(this._iconsetName)){var W=this._iconset.applyIcon(this,this._iconName,this.theme);W&&W.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,_.YG(this.root).appendChild(this._img)}});var jm9;var Im1;_.S3({_template:function(){if(Im1!==void 0)return Im1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
var l=W.content,V=l.insertBefore;jm9===void 0&&(jm9=document.createElement("template"));var f=jm9;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return Im1=W},
is:"tp-yt-iron-input",behaviors:[_.E2],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(){_.gt.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.YG(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.YG(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 W=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":W=/[0-9.,e-]/}return W},_bindValueChanged:function(W,l){l&&(W===void 0?l.value=null:W!==l.value&&(this.inputElement.value=W),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:W}))},
_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(W){var l=W.keyCode==19||W.keyCode==20||W.keyCode==45||W.keyCode==46||W.keyCode==144||W.keyCode==145||W.keyCode>32&&W.keyCode<41||W.keyCode>111&&W.keyCode<124;return!(W.keyCode==8||W.keyCode==9||W.keyCode==13||W.keyCode==27)&&!(W.charCode==0&&l)},
_onKeypress:function(W){if(this.allowedPattern||this.inputElement.type==="number"){var l=this._patternRegExp;if(l&&!(W.metaKey||W.ctrlKey||W.altKey)){this._patternAlreadyChecked=!0;var V=String.fromCharCode(W.charCode);this._isPrintable(W)&&!l.test(V)&&(W.preventDefault(),this._announceInvalidCharacter("Invalid character "+V+" not entered."))}}},
_checkPatternValidity:function(){var W=this._patternRegExp;if(!W)return!0;for(var l=0;l<this.inputElement.value.length;l++)if(!W.test(this.inputElement.value[l]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var W=this.inputElement.checkValidity();W&&(this.required&&this.bindValue===""?W=!1:this.hasValidator()&&(W=_.E2.validate.call(this,this.bindValue)));this.invalid=!W;this.fire("iron-input-validate");return W},
_announceInvalidCharacter:function(W){this.fire("iron-announce",{text:W})},
_computeValue:function(W){return W}});var itB;var mPc;var X0e=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),TlZ=X0e&&X0e[1]>=8;
_.S3({_template:function(){if(mPc!==void 0)return mPc;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;itB===void 0&&(itB=document.createElement("template"));var f=itB;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return mPc=W},
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:[EF6,_.Wo,_.t$a,qmv],_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 _.YG(_.YG(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var W=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,W-this._physicalCount)},set _virtualStart(W){W=this._clamp(W,0,this._maxVirtualStart);this.grid&&(W-=W%this._itemsPerRow);this._virtualStartVal=W},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(W){W%=this._physicalCount;W<0&&(W=this._physicalCount+W);this.grid&&(W-=W%this._itemsPerRow);this._physicalStartVal=W},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(W){this._physicalCountVal=W},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 W=this._firstVisibleIndexVal;if(W==null){var l=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
W=this._iterateItems(function(V,f){l+=this._getPhysicalSizeIncrement(V);if(l>this._scrollPosition)return this.grid?f-f%this._itemsPerRow:f;if(this.grid&&this._virtualCount-1===f)return f-f%this._itemsPerRow})||0}return W},
get lastVisibleIndex(){var W=this._lastVisibleIndexVal;if(W==null){if(this.grid)W=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var l=this._physicalTop+this._scrollOffset;this._iterateItems(function(V,f){l<this._scrollBottom&&(W=f);l+=this._getPhysicalSizeIncrement(V)})}this._lastVisibleIndexVal=W}return W},
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,_.xJ);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(W){this.style.webkitOverflowScrolling=W===this?"touch":"";this.style.overflowY=W===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.xJ)},
updateViewportBoundaries:function(){var W=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(W["padding-top"],10);this._isRTL=W.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var W=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),l=W-this._scrollPosition,V=l>=0;this._scrollPosition=W;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(l)>this._physicalSize&&this._physicalSize>0?(l-=this._scrollOffset,V=Math.round(l/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=V,this._physicalStart+=V,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(W=this._getReusables(V),V?(this._physicalTop=W.physicalTop,this._virtualStart+=W.indexes.length,this._physicalStart+=W.indexes.length):(this._virtualStart=this._virtualStart-W.indexes.length,this._physicalStart=this._physicalStart-W.indexes.length),this._update(W.indexes,V?null:W.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Ou))},
_getReusables:function(W){var l=[],V=this._hiddenContentSize*this._ratio,f=this._virtualStart,r=this._virtualEnd,R=this._physicalCount,y=this._physicalTop+this._scrollOffset;var P=this._physicalBottom+this._scrollOffset;var n=this._scrollPosition,B=this._scrollBottom;if(W){var d=this._physicalStart;P=n-y}else d=this._physicalEnd,P-=B;for(;;){var J=this._getPhysicalSizeIncrement(d);P-=J;if(l.length>=R||P<=V)break;if(W){if(r+l.length+1>=this._virtualCount)break;if(y+J>=n-this._scrollOffset)break;l.push(d);
y+=J;d=(d+1)%R}else{if(f-l.length<=0)break;if(y+this._physicalSize-J<=B)break;l.push(d);y-=J;d=d===0?R-1:d-1}}return{indexes:l,physicalTop:y-this._scrollOffset}},
_update:function(W,l){if(!(W&&W.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(W);this._updateMetrics(W);if(l)for(;l.length;)W=l.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(W);this._positionItems();this._updateScrollerSize()}},
_createPool:function(W){this._ensureTemplatized();var l,V=Array(W);for(l=0;l<W;l++){var f=this.stamp(null);V[l]=f.root.querySelector("*");this._itemsParent.appendChild(f.root)}return V},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(W){W=this._clamp(this._physicalCount+W,3,this._virtualCount-this._virtualStart);W=this._convertIndexToCompleteRow(W);if(this.grid){var l=W%this._itemsPerRow;l&&W-l<=this._physicalCount&&(W+=this._itemsPerRow);W-=l}W-=this._physicalCount;l=Math.round(this._physicalCount*.5);if(!(W<0)){if(W>0){l=window.performance.now();[].push.apply(this._physicalItems,this._createPool(W));for(var V=0;V<W;V++)this._physicalSizes.push(0);this._physicalCount+=W;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=W);this._update();this._templateCost=(window.performance.now()-l)/W;l=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||l===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,l)),jsk):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,l),Ou))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var W=this._getReusables(!0);this._physicalTop=W.physicalTop;this._virtualStart+=W.indexes.length;this._physicalStart+=W.indexes.length;this._update(W.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 W={__key__:!0};W[this.as]=!0;W[this.indexAs]=!0;W[this.selectedAs]=!0;W.tabIndex=!0;this._instanceProps=W;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(W,l){typeof l!=="undefined"&&(this.notifyResize(),_.wP(),W&&this._updateGridMetrics())},
_itemsChanged:function(W){if(W.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,
_.xJ);else if(W.path==="items.splices"){this._adjustVirtualIndex(W.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(W.value.indexSplices.some(function(V){return V.addedCount>0||V.removed.length>0})){var l=this._getActiveElement();
this.contains(l)&&l.blur()}W=W.value.indexSplices.some(function(V){return V.index+V.addedCount>=this._virtualStart&&V.index<=this._virtualEnd},this);
this._isClientFull()&&!W||this._debounce("_render",this._render,_.xJ)}else W.path!=="items.length"&&this._forwardItemPath(W.path,W.value)},
_forwardItemPath:function(W,l){W=W.slice(6);var V=W.indexOf(".");V===-1&&(V=W.length);var f,r=this.modelForElement(this._offscreenFocusedItem),R=parseInt(W.substring(0,V),10);if(f=this._isIndexRendered(R)){var y=this._getPhysicalIndex(R);var P=this.modelForElement(this._physicalItems[y])}else r&&(P=r);P&&P[this.indexAs]===R&&(W=W.substring(V+1),W=this.as+(W?"."+W:""),P._setPendingPropertyOrPath(W,l,!1,!0),P._flushProperties&&P._flushProperties(),f&&(this._updateMetrics([y]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(W){W.forEach(function(l){l.removed.forEach(this._removeItem,this);l.index<this._virtualStart&&(l=Math.max(l.addedCount-l.removed.length,l.index-this._virtualStart),this._virtualStart+=l,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=l))},this)},
_removeItem:function(W){this.$.selector.deselect(W);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===W&&this._removeFocusedItem()},
_iterateItems:function(W,l){var V,f;if(arguments.length===2&&l)for(f=0;f<l.length;f++){var r=l[f];var R=this._computeVidx(r);if((V=W.call(this,r,R))!=null)return V}else{r=this._physicalStart;for(R=this._virtualStart;r<this._physicalCount;r++,R++)if((V=W.call(this,r,R))!=null)return V;for(r=0;r<this._physicalStart;r++,R++)if((V=W.call(this,r,R))!=null)return V}},
_computeVidx:function(W){return W>=this._physicalStart?this._virtualStart+(W-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+W},
_assignModels:function(W){this._iterateItems(function(l,V){var f=this._physicalItems[l],r=this.items&&this.items[V];if(r!=null){var R=this.modelForElement(f);R.__key__=null;this._forwardProperty(R,this.as,r);this._forwardProperty(R,this.selectedAs,this.$.selector.isSelected(r));this._forwardProperty(R,this.indexAs,V);this._forwardProperty(R,"tabIndex",this._focusedVirtualIndex===V?0:-1);this._physicalIndexForKey[R.__key__]=l;R._flushProperties&&R._flushProperties(!0);f.removeAttribute("hidden")}else f.setAttribute("hidden",
"")},W)},
_updateMetrics:function(W){_.wP();var l=0,V=0,f=this._physicalAverageCount,r=this._physicalAverage;this._iterateItems(function(R){V+=this._physicalSizes[R];this._physicalSizes[R]=this._physicalItems[R].offsetHeight;l+=this._physicalSizes[R];this._physicalAverageCount+=this._physicalSizes[R]?1:0},W);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(V=this._itemsPerRow===1?V:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+l-V,this._itemsPerRow=1);this._physicalAverageCount!==f&&(this._physicalAverage=Math.round((r*f+l)/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 W=this._physicalTop;if(this.grid){var l=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(V,f){var r=Math.floor(f%this._itemsPerRow*this._itemWidth+l);this._isRTL&&(r*=-1);this.translate3d(r+"px",W+"px",0,this._physicalItems[V]);this._shouldRenderNextRow(f)&&(W+=this._rowHeight)})}else this._iterateItems(function(V){this.translate3d(0,W+"px",0,this._physicalItems[V]);
W+=this._physicalSizes[V]})},
_getPhysicalSizeIncrement:function(W){return this.grid?this._computeVidx(W)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[W]},
_shouldRenderNextRow:function(W){return W%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var W=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(W!==0){this._physicalTop=this._physicalTop-W;var l=this._scrollPosition;!TlZ&&l>0&&this._resetScrollPosition(l-W)}},
_resetScrollPosition:function(W){this.scrollTarget&&W>=0&&(this._scrollPosition=this._scrollTop=W)},
_updateScrollerSize:function(W){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((W=(W=(W=W||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(W){return this.scrollToIndex(this.items.indexOf(W))},
scrollToIndex:function(W){if(!(typeof W!=="number"||W<0||W>this.items.length-1)&&(_.wP(),this._physicalCount!==0)){W=this._clamp(W,0,this._virtualCount-1);if(!this._isIndexRendered(W)||W>=this._maxVirtualStart)this._virtualStart=this.grid?W-this._itemsPerRow*2:W-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var l=this._physicalStart,V=this._virtualStart,f=0,r=this._hiddenContentSize;V<W&&
f<=r;)f+=this._getPhysicalSizeIncrement(l),l=(l+1)%this._physicalCount,V++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+f);this._increasePoolIfNeeded(0);this._lastVisibleIndexVal=this._firstVisibleIndexVal=null}},
_resetAverage:function(){this._physicalAverageCount=this._physicalAverage=0},
_resizeHandler:function(){this._debounce("_render",function(){this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},_.xJ)},
selectItem:function(W){return this.selectIndex(this.items.indexOf(W))},
selectIndex:function(W){if(!(W<0||W>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(W)){var l=this.modelForElement(this._physicalItems[this._getPhysicalIndex(W)]);l&&(l[this.selectedAs]=!0);this.updateSizeForIndex(W)}this.$.selector.selectIndex(W)}},
deselectItem:function(W){return this.deselectIndex(this.items.indexOf(W))},
deselectIndex:function(W){W<0||W>=this._virtualCount||(this._isIndexRendered(W)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(W)])[this.selectedAs]=!1,this.updateSizeForIndex(W)),this.$.selector.deselectIndex(W))},
toggleSelectionForItem:function(W){return this.toggleSelectionForIndex(this.items.indexOf(W))},
toggleSelectionForIndex:function(W){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(W):this.$.selector.isSelected(this.items[W]))?this.deselectIndex(W):this.selectIndex(W)},
clearSelection:function(){this._iterateItems(function(W){this.modelForElement(this._physicalItems[W])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(W){(W?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(W){var l=this.modelForElement(W.target);if(l){var V=_.YG(W).path[0];W=this._getActiveElement();var f=this._physicalItems[this._getPhysicalIndex(l[this.indexAs])];if(V.localName!=="input"&&V.localName!=="button"&&V.localName!=="select"){V=l.tabIndex;l.tabIndex=-100;var r=W?W.tabIndex:-1;l.tabIndex=V;W&&f!==W&&f.contains(W)&&r!==-100||this.toggleSelectionForItem(l[this.as])}}},
_multiSelectionChanged:function(W){this.clearSelection();this.$.selector.multi=W},
updateSizeForItem:function(W){return this.updateSizeForIndex(this.items.indexOf(W))},
updateSizeForIndex:function(W){if(!this._isIndexRendered(W))return null;this._updateMetrics([this._getPhysicalIndex(W)]);this._positionItems();return null},
_manageFocus:function(){var W=this._focusedVirtualIndex;W>=0&&W<this._virtualCount?this._isIndexRendered(W)?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(W){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(W/this._itemsPerRow)*this._itemsPerRow:W},
_isIndexRendered:function(W){return W>=this._virtualStart&&W<=this._virtualEnd},
_isIndexVisible:function(W){return W>=this.firstVisibleIndex&&W<=this.lastVisibleIndex},
_getPhysicalIndex:function(W){return(this._physicalStart+(W-this._virtualStart))%this._physicalCount},
focusItem:function(W){this._focusPhysicalItem(W)},
_focusPhysicalItem:function(W){if(!(W<0||W>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(W)||this.scrollToIndex(W);var l=this._physicalItems[this._getPhysicalIndex(W)],V=this.modelForElement(l),f;V.tabIndex=-100;l.tabIndex===-100&&(f=l);f||(f=_.YG(l).querySelector('[tabindex="-100"]'));V.tabIndex=0;this._focusedVirtualIndex=W;f&&f.focus()}},
_removeFocusedItem:function(){this._offscreenFocusedItem&&this._itemsParent.removeChild(this._offscreenFocusedItem);this._focusedItem=this._focusBackfillItem=this._offscreenFocusedItem=null;this._focusedPhysicalIndex=this._focusedVirtualIndex=-1},
_createFocusBackfillItem:function(){var W=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var l=this.stamp(null);this._focusBackfillItem=l.root.querySelector("*");this._itemsParent.appendChild(l.root)}this._offscreenFocusedItem=this._physicalItems[W];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[W]=this._focusBackfillItem;this._focusedPhysicalIndex=W;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var W=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),l=this._physicalItems[W];if(l){var V=this.modelForElement(l),f=this.modelForElement(this._offscreenFocusedItem);V[this.as]===f[this.as]?(this._focusBackfillItem=l,V.tabIndex=-1,this._physicalItems[W]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(W){W=this.modelForElement(W.target);var l=this.modelForElement(this._focusedItem),V=this._offscreenFocusedItem!==null,f=this._focusedVirtualIndex;W&&(l===W?this._isIndexVisible(f)||this.scrollToIndex(f):(this._restoreFocusedItem(),l&&(l.tabIndex=-1),W.tabIndex=0,this._focusedVirtualIndex=f=W[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(f),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],V&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(W){switch(W.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&W.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&&W.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(W)}},
_clamp:function(W,l,V){return Math.min(V,Math.max(l,W))},
_debounce:function(W,l,V){this._debouncers=this._debouncers||{};this._debouncers[W]=_.I3(this._debouncers[W],V,l.bind(this));_.iZ(this._debouncers[W])},
_forwardProperty:function(W,l,V){W._setPendingProperty(l,V)},
_forwardHostPropV2:function(W,l){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(V){V&&this.modelForElement(V).forwardHostProp(W,l)},this)},
_notifyInstancePropV2:function(W,l,V){ymg(this.as,l)&&(W=W[this.indexAs],l==this.as&&(this.items[W]=V),this.notifyPath(D5(this.as,"items."+W,l),V))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(W,l,V){l.indexOf(this.as+".")===0&&this.notifyPath("items."+W.__key__+"."+l.slice(this.as.length+1),V)},
_forwardParentPath:function(W,l){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(V){V&&this.modelForElement(V).notifyPath(W,l)},this)},
_forwardParentProp:function(W,l){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(V){V&&(this.modelForElement(V)[W]=l)},this)},
_getActiveElement:function(){var W=this._itemsParent.node.domHost;return _.YG(W?W.root:document).activeElement},
_scrollTargetChanged:function(W,l){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(l)if(W==="document")this.scrollTarget=this._doc;else if(typeof W==="string"){var V,f;this.scrollTarget=(l=(f=(V=this.domHost)==null?void 0:V.polymerController)!=null?f:this.domHost)&&l.$?l.$[W]:_.YG(this.ownerDocument).querySelector("#"+W)}else this._isValidScrollTarget()&&(this._oldScrollTarget=W,this._toggleScrollListener(this._shouldHaveListener,W))}});var w0a;var Ame;var QmI=function(W,l,V,f){W-=V;l-=f;return Math.sqrt(W*W+l*l)},Ml9=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
j9Y.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var Ivn=function(W){W.maxRadius=0;W.mouseDownStart=0;W.mouseUpStart=0;W.xStart=0;W.yStart=0;W.xEnd=0;W.yEnd=0;W.containerMetrics=new j9Y(W.element)};
iiF.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var W=Ml9()-this.mouseDownStart;this.mouseUpStart&&(W-=this.mouseUpElapsed);return W},get mouseUpElapsed(){return this.mouseUpStart?Ml9()-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 W=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(W*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-W/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 W=this.radius/(this.containerMetrics.size/2);var l=this.xNow-this.containerMetrics.width/2;var V=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+l+"px, "+V+"px)";this.waveContainer.style.transform="translate3d("+l+"px, "+V+"px, 0)";this.wave.style.webkitTransform="scale("+W+","+W+")";this.wave.style.transform="scale3d("+W+","+W+",1)"},
downAction:function(W){var l=this.containerMetrics.width/2,V=this.containerMetrics.height/2;Ivn(this);this.mouseDownStart=Ml9();this.center?(this.xStart=l,this.yStart=V):(this.xStart=W?W.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=W?W.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=l,this.yEnd=V);W=this.containerMetrics;l=this.xStart;V=this.yStart;this.maxRadius=Math.max(QmI(l,V,0,0),QmI(l,V,
W.width,0),QmI(l,V,0,W.height),QmI(l,V,W.width,W.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=Ml9())},
remove:function(){_.YG(_.YG(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.S3({_template:function(){if(Ame!==void 0)return Ame;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;w0a===void 0&&(w0a=document.createElement("template"));var f=w0a;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return Ame=W},
is:"tp-yt-paper-ripple",behaviors:[_.NN],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(){_.YG(this).parentNode.nodeType==11?this.keyEventTarget=_.YG(this).getOwnerRoot().host:this.keyEventTarget=_.YG(this).parentNode;var W=this.keyEventTarget;this.listen(W,"up","uiUpAction");this.listen(W,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(W){W.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var W=0;W<this.ripples.length;++W)if(!this.ripples[W].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(W){this.noink||this.downAction(W)},
downAction:function(W){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(W),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(W){this.noink||this.upAction(W)},
upAction:function(W){this.holdDown||(this.ripples.forEach(function(l){l.upAction(W)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var W=0;W<this.ripples.length;++W){var l=this.ripples[W];l.isOpacityFullyDecayed&&!l.isRestingAtMaxRadius&&this.removeRipple(l)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var W=new iiF(this);_.YG(this.$.waves).appendChild(W.waveContainer);this.$.background.style.backgroundColor=W.color;this.ripples.push(W);this._setAnimating(!0);return W},
removeRipple:function(W){var l=this.ripples.indexOf(W);l<0||(this.ripples.splice(l,1),W.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var W;for(W=0;W<this.ripples.length;++W){var l=this.ripples[W];l.draw();this.$.background.style.opacity=l.outerOpacity;l.isOpacityFullyDecayed&&!l.isRestingAtMaxRadius&&this.removeRipple(l)}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(W,l){l!==void 0&&(W?this.downAction():this.upAction())}});var dt={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(W){x6._downHandler.call(this,W);this.pressed&&this.ensureRipple(W)},
ensureRipple:function(W){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var l=this._rippleContainer||this.root;l&&_.YG(l).appendChild(this._ripple);if(W){l=_.YG(this._rippleContainer||this);var V=_.YG(W).rootTarget;l.deepContains(V)&&this._ripple.uiDownAction(W)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(W){this.hasRipple()&&(this._ripple.noink=W)}};var Ztk={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 W=1;this.disabled?W=0:this.active||this.pressed?W=4:this.receivedFocusFromKeyboard&&(W=3);this._setElevation(W)},
_computeKeyboardClass:function(W){this.toggleClass("keyboard-focus",W)},
_spaceKeyDownHandler:function(W){x6._spaceKeyDownHandler.call(this,W);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(W){x6._spaceKeyUpHandler.call(this,W);this.hasRipple()&&this._ripple.uiUpAction()}},Ot1=[q_c,
_.Y6,dt,Ztk];_.amL={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(W){W&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=W)},
_createRipple:function(){var W=dt._createRipple();W.id="ink";W.setAttribute("center","");W.classList.add("circle");return W}};
_.zDk=[q_c,_.Y6,dt,_.amL];_.Nl9=[_.zDk,Ewa,{_checkedChanged:function(){S_k._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){dt._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var YH1;var xPc;var eDa=function(){};
_.t=eDa.prototype;_.t.registered=function(){};
_.t.addOwnKeyBinding=function(){};
_.t.removeOwnKeyBindings=function(){};
_.t.keyboardEventMatchesKeys=function(){};
_.t._collectKeyBindings=function(){};
_.t._prepKeyBindings=function(){};
_.t._addKeyBinding=function(){};
_.t._resetKeyEventListeners=function(){};
_.t._listenKeyEventListeners=function(){};
_.t._unlistenKeyEventListeners=function(){};
_.t._onKeyBindingEvent=function(){};
_.t._triggerKeyHandler=function(){};
_.t._tapHandler=function(){};
_.t._focusChanged=function(){};
_.t._detectKeyboardFocus=function(){};
_.t._userActivate=function(){};
_.t._upHandler=function(){};
_.t._asyncClick=function(){};
_.t._pressedChanged=function(){};
_.t._ariaActiveAttributeChanged=function(){};
_.t._activeChanged=function(){};
_.t._controlStateChanged=function(){};
_.t._changedButtonState=function(){};
_.t._focusBlurHandler=function(){};
_.t._disabledChanged=function(){};
_.t._changedControlState=function(){};
_.t._buttonStateChanged=function(){};
_.t._downHandler=function(){};
_.t.ensureRipple=function(){};
_.t.getRipple=function(){};
_.t.hasRipple=function(){};
_.t._createRipple=function(){};
_.t._noinkChanged=function(){};
_.t._computeKeyboardClass=function(){};
_.t._spaceKeyDownHandler=function(){};
_.t._spaceKeyUpHandler=function(){};
_.t._setPressed=function(){};
_.t._setPointerDown=function(){};
_.t._setReceivedFocusFromKeyboard=function(){};
_.t._setFocused=function(){};
_.t._setElevation=function(){};
eDa=_.S3({_template:function(){if(xPc!==void 0)return xPc;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
var l=W.content,V=l.insertBefore;YH1===void 0&&(YH1=document.createElement("template"));var f=YH1;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return xPc=W},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[Ot1],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?Ztk._calculateElevation.apply(this):this._setElevation(0)}});var qH$;var hD$;var SH1={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(W){_.U("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(W)},
_onDialogClickWrapped:function(W){_.U("dialog_behavior_no_tap_killswitch")||this._onDialogClick(W)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(W,l){l&&(W?(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(W){if(W){var l;((l=this.hostElement)!=null?l:this).setAttribute("aria-modal","true")}else{var V;((V=this.hostElement)!=null?V:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(W){this.closingReason=this.closingReason||{};this.closingReason.confirmed=W},
_onDialogClick:function(W){for(var l=_.YG(W).path,V=0,f,r=l.indexOf((f=this.hostElement)!=null?f:this);V<r;V++)if(f=l[V],f.hasAttribute&&(f.hasAttribute("dialog-dismiss")||f.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(f.hasAttribute("dialog-confirm"));this.close();W.stopPropagation();break}}},EPX=[_.Bo,
SH1];var $PL=document.createElement("template");_.K($PL,'<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($PL.content);var WZI=document.createElement("template");_.K(WZI,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(WZI.content);_.S3({_template:function(){if(hD$!==void 0)return hD$;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
var l=W.content,V=l.insertBefore;qH$===void 0&&(qH$=document.createElement("template"));var f=qH$;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return hD$=W},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[EPX,spL],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 lbk;var VPL;_.S3({_template:function(){if(VPL!==void 0)return VPL;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;lbk===void 0&&(lbk=document.createElement("template"));var f=lbk;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return VPL=W},
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 W,l,V;if(((W=window.ShadyDOM)==null?void 0:W.noPatch)!==!0&&((l=window.ShadyDOM)==null?void 0:l.noPatch)!=="on-demand"||((V=this.__shady_parentNode)==null?void 0:V.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(SH1)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var fbM=_.tj(['<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>']),rjv=_.Wgc(fbM);rjv.setAttribute("style","display: none;");document.head.appendChild(rjv.content);var RpL;var tPL;var sQI;var LZa;_.S3({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[lG],configure:function(W){var l=W.node,V=l.getBoundingClientRect().height;return this._effect=new KeyframeEffect(l,[{height:V/2+"px"},{height:V+"px"}],this.timingFromConfig(W))}});
_.S3({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[lG],configure:function(W){var l=W.node,V=l.getBoundingClientRect().width;return this._effect=new KeyframeEffect(l,[{width:V/2+"px"},{width:V+"px"}],this.timingFromConfig(W))}});
_.S3({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[lG],configure:function(W){var l=W.node,V=l.getBoundingClientRect().width;return this._effect=new KeyframeEffect(l,[{width:V+"px"},{width:V-V/20+"px"}],this.timingFromConfig(W))}});
_.S3({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[lG],configure:function(W){var l=W.node,V=l.getBoundingClientRect().height;this.setPrefixedProperty(l,"transformOrigin","0 0");return this._effect=new KeyframeEffect(l,[{height:V+"px",transform:"translateY(0)"},{height:V/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(W))}});var Je={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},yjv=function(){};
_.t=yjv.prototype;_.t.registered=function(){};
_.t.addOwnKeyBinding=function(){};
_.t.removeOwnKeyBindings=function(){};
_.t.keyboardEventMatchesKeys=function(){};
_.t._collectKeyBindings=function(){};
_.t._prepKeyBindings=function(){};
_.t._addKeyBinding=function(){};
_.t._resetKeyEventListeners=function(){};
_.t._listenKeyEventListeners=function(){};
_.t._unlistenKeyEventListeners=function(){};
_.t._onKeyBindingEvent=function(){};
_.t._triggerKeyHandler=function(){};
_.t._focusBlurHandler=function(){};
_.t._changedControlState=function(){};
_.t._setFocused=function(){};
yjv=_.S3({_template:function(){if(LZa!==void 0)return LZa;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;sQI===void 0&&(sQI=document.createElement("template"));var f=sQI;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return LZa=W},
is:"tp-yt-paper-menu-button",behaviors:[_.NN,_.Y6],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:Je.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:Je.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:Je.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 W=_.YG(this.$.content).getDistributedNodes(),l=0,V=W.length;l<V;l++)if(W[l].nodeType===Node.ELEMENT_NODE)return W[l]},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(W,l){W?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):l!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(W){_.Y6._disabledChanged.apply(this,arguments);W&&this.opened&&this.close()},
__onIronOverlayCanceled:function(W){var l=this.$.trigger;_.YG(W.detail).path.indexOf(l)>-1&&W.preventDefault()}});
Object.keys(Je).forEach(function(W){yjv[W]=Je[W]});var gtv=_.eq.IronButtonState,PKc=(0,_.YD)(HTMLElement);
_.S3({_template:function(){if(tPL!==void 0)return tPL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;RpL===void 0&&(RpL=document.createElement("template"));var f=RpL;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return tPL=W},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[gtv,_.Y6,dt,_.qN,_.E2],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(W){var l=(0,_.HS)(this);l.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:W});l.shadowRoot.appendChild(W);return PKc.prototype._attachDom.call(this,W)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var W=this.contentElement;W&&W.selectedItem&&this._setSelectedItem(W.selectedItem)},
get contentElement(){for(var W=_.YG(this.$.content).getDistributedNodes(),l=0,V=W.length;l<V;l++)if(W[l].nodeType===Node.ELEMENT_NODE)return W[l]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(W){this._setSelectedItem(W.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(W){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W)===this&&this.open()},
_selectedItemChanged:function(W){var l="";W?l=W.label||W.getAttribute("label")||W.textContent.trim():l="";this.value=l;this._setSelectedItemLabel(l)},
_computeMenuVerticalOffset:function(W,l){return l?l:W?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var W=this.opened?"true":"false",l=this.contentElement;l&&l.setAttribute("aria-expanded",W)},
_computeLabelClass:function(W,l,V){var f="label";if(W)V&&(f+=" label-is-hidden");else if(V||l)f+=" label-is-floating";return f},
_valueChanged:function(){this.$.input&&this.$.input.textContent!==this.value&&(this.$.input.textContent=this.value);this._setHasContent(!!this.value);this.hasContent||(this.$.input.textContent="\u00a0")}});var ntc;var CKL;_.S3({is:"tp-yt-paper-icon-button",_template:function(){if(CKL!==void 0)return CKL;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;ntc===void 0&&(ntc=document.createElement("template"));var f=ntc;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return CKL=W},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.zDk],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(W,l){var V=this.getAttribute("aria-label");V&&l!=V||this.setAttribute("aria-label",W)}});var cjB;var B5k;_.Du=[q_c,_.Y6,{hostAttributes:{role:"option",tabindex:"0"}}];_.S3({_template:function(){if(B5k!==void 0)return B5k;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;cjB===void 0&&(cjB=document.createElement("template"));var f=cjB;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return B5k=W},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.Du]});var dGe;var Jjc;var DGk={attached:function(){this.fire("addon-attached")},
update:function(){}};var UGX=1,ueX=1,kyL=1,vtX=[_.Y6,_.NN,{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();!Kz&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(W,l){W?W=W+" "+l:W=l;return W},
_onAddonAttached:function(W){W=_.YG(W).rootTarget;if(W.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,W.id);else{var l="paper-input-add-on-"+ueX++;W.id=l;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,l)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(W){_.Y6._focusBlurHandler.call(this,W);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var W=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",W);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(W){try{var l=this.inputElement.selectionStart;this.value=W;this.inputElement.selectionStart=l;this.inputElement.selectionEnd=l}catch(V){this.value=W}},
_computeAlwaysFloatLabel:function(W,l){return l||W},
_updateAriaLabelledBy:function(){var W=_.YG(this.root).querySelector("label");if(W){if(W.id)var l=W.id;else l="paper-input-label-"+UGX++,W.id=l;this._ariaLabelledBy=l}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+kyL++)},
_onChange:function(W){this.shadowRoot&&this.fire(W.type,{sourceEvent:W},{node:this,bubbles:W.bubbles,cancelable:W.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var W=document.activeElement;W instanceof HTMLElement&&W!==document.body&&W!==document.documentElement||this._focusableElement.focus()}}}];var H4e;var KZM;_.S3({_template:function(){if(KZM!==void 0)return KZM;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;H4e===void 0&&(H4e=document.createElement("template"));var f=H4e;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return KZM=W},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[DGk],properties:{_charCounterStr:{type:String,value:"0"}},update:function(W){if(W.inputElement){W.value=W.value||"";var l=W.value.toString().length.toString();W.inputElement.hasAttribute("maxlength")&&(l+="/"+W.inputElement.getAttribute("maxlength"));this._charCounterStr=l}}});var FZ$;var Gye;_.S3({_template:function(){if(Gye!==void 0)return Gye;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;FZ$===void 0&&(FZ$=document.createElement("template"));var f=FZ$;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return Gye=W},
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 Cj(this.attrForValue)},get _inputElement(){return _.YG(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(W){this._addons||(this._addons=[]);W=W.target;this._addons.indexOf(W)===-1&&(this._addons.push(W),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(W){this._handleValueAndAutoValidate(W.target)},
_onValueChanged:function(W){var l=W.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,l.value===void 0||l.value===""))return;this._handleValueAndAutoValidate(W.target)},
_handleValue:function(W){var l=this._inputElementValue;l||l===0||W.type==="number"&&!W.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:W,value:l,invalid:this.invalid})},
_handleValueAndAutoValidate:function(W){this.autoValidate&&W&&(this.invalid=!(W.validate?W.validate(this._inputElementValue):W.checkValidity()));this._handleValue(W)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(W){if(this._addons)for(var l,V=0;l=this._addons[V];V++)l.update(W)},
_computeInputContentClass:function(W,l,V,f,r){var R="input-content";W?(r&&(R+=" label-is-hidden"),f&&!this.noUnfloatedLabelError&&(R+=" is-invalid")):(W=this.querySelector("label"),l||r?(R+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",f?R+=" is-invalid":V&&(R+=" label-is-highlighted")):(W&&(this.$.labelAndInputContainer.style.position="relative"),f&&!this.noUnfloatedLabelError&&(R+=" is-invalid")));V&&(R+=" focused");return R},
_computeUnderlineClass:function(W,l){var V="underline";l?V+=" is-invalid":W&&(V+=" is-highlighted");return V},
_computeAddOnContentClass:function(W,l){var V="add-on-content";l?V+=" is-invalid":W&&(V+=" is-highlighted");return V}});var b4e;var pFZ;_.S3({_template:function(){if(pFZ!==void 0)return pFZ;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;b4e===void 0&&(b4e=document.createElement("template"));var f=b4e;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return pFZ=W},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[DGk],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(W){this._setInvalid(W.invalid)}});_.S3({is:"tp-yt-paper-input",_template:function(){if(Jjc!==void 0)return Jjc;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;dGe===void 0&&(dGe=document.createElement("template"));var f=dGe;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return Jjc=W},
behaviors:[vtX,_.qN],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 ote;var jQa;_.S3({_template:function(){if(jQa!==void 0)return jQa;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=
W.content,V=l.insertBefore;ote===void 0&&(ote=document.createElement("template"));var f=ote;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return jQa=W},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.Du]});var Ibe;var i4L;_.S3({_template:function(){if(i4L!==void 0)return i4L;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
var l=W.content,V=l.insertBefore;Ibe===void 0&&(Ibe=document.createElement("template"));var f=Ibe;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return i4L=W},
is:"tp-yt-paper-item-body"});var mGk;var XFe;var T5v=function(){};
_.t=T5v.prototype;_.t.indexOf=function(){};
_.t.selectPrevious=function(){};
_.t.selectNext=function(){};
_.t.selectIndex=function(){};
_.t.forceSynchronousItemUpdate=function(){};
_.t._checkFallback=function(){};
_.t._addListener=function(){};
_.t._removeListener=function(){};
_.t._activateEventChanged=function(){};
_.t._updateItems=function(){};
_.t._selectSelected=function(){};
_.t._filterItem=function(){};
_.t._valueToItem=function(){};
_.t._valueToIndex=function(){};
_.t._indexToValue=function(){};
_.t._valueForItem=function(){};
_.t._observeItems=function(){};
_.t._itemActivate=function(){};
_.t.multiChanged=function(){};
_.t._updateAttrForSelected=function(){};
_.t._updateSelected=function(){};
_.t._selectMulti=function(){};
_.t._selectionChange=function(){};
_.t._toggleSelected=function(){};
_.t._valuesToItems=function(){};
_.t.registered=function(){};
_.t.addOwnKeyBinding=function(){};
_.t.removeOwnKeyBindings=function(){};
_.t.keyboardEventMatchesKeys=function(){};
_.t._collectKeyBindings=function(){};
_.t._prepKeyBindings=function(){};
_.t._addKeyBinding=function(){};
_.t._resetKeyEventListeners=function(){};
_.t._listenKeyEventListeners=function(){};
_.t._unlistenKeyEventListeners=function(){};
_.t._onKeyBindingEvent=function(){};
_.t._triggerKeyHandler=function(){};
_.t.select=function(){};
_.t._resetTabindices=function(){};
_.t._updateMultiselectable=function(){};
_.t._focusWithKeyboardEvent=function(){};
_.t._clearSearchText=function(){};
_.t._focusPrevious=function(){};
_.t._focusNext=function(){};
_.t._applySelection=function(){};
_.t._focusedItemChanged=function(){};
_.t._onIronItemsChanged=function(){};
_.t._onShiftTabDown=function(){};
_.t._onFocus=function(){};
_.t._onUpKey=function(){};
_.t._onDownKey=function(){};
_.t._onEscKey=function(){};
_.t._onKeydown=function(){};
_.t._activateHandler=function(){};
_.t._disabledChanged=function(){};
_.t._setSelectedItem=function(){};
_.t._setItems=function(){};
_.t._setSelectedItems=function(){};
_.t._setFocusedItem=function(){};
T5v=_.S3({_template:function(){if(XFe!==void 0)return XFe;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
var l=W.content,V=l.insertBefore;mGk===void 0&&(mGk=document.createElement("template"));var f=mGk;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return XFe=W},
is:"tp-yt-paper-listbox",behaviors:[V$v],hostAttributes:{role:"listbox"}});var wFk;var AjI;var QQZ={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(W,l){return[W||l?"active":"",l?"cooldown":""].join(" ")},
__activeChanged:function(W,l){this.__setAriaHidden(!W);this.__coolingDown=!W&&l},
__altChanged:function(W){this.setAttribute("aria-label",W||"loading")},
__setAriaHidden:function(W){W?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.S3({_template:function(){if(AjI!==void 0)return AjI;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;wFk===void 0&&(wFk=document.createElement("template"));var f=wFk;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return AjI=W},
is:"tp-yt-paper-spinner",behaviors:[QQZ]});var MPM;var Z4B;_.S3({_template:function(){if(Z4B!==void 0)return Z4B;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;MPM===void 0&&(MPM=document.createElement("template"));var f=MPM;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return Z4B=W},
is:"tp-yt-paper-spinner-lite",behaviors:[QQZ]});var O4X;var abk;_.S3({_template:function(){if(abk!==void 0)return abk;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;O4X===void 0&&(O4X=document.createElement("template"));var f=O4X;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return abk=W},
is:"tp-yt-paper-tab",behaviors:[_.Y6,_.eq.IronButtonState,dt],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 W=_.YG(this).parentNode;return!!W&&!!W.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(W){if(this.link){var l=this.queryEffectiveChildren("a");l&&W.target!==l&&l.click()}}});var zpZ;var N5X;var YlM=_.tj(['<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>']),xGv=_.Wgc(YlM);document.head.appendChild(xGv.content);_.S3({_template:function(){if(N5X!==void 0)return N5X;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;zpZ===void 0&&(zpZ=document.createElement("template"));var f=zpZ;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return N5X=W},
is:"tp-yt-paper-tabs",behaviors:[_.Wo,_.r$B],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(W){_.YG(this).querySelectorAll("tp-yt-paper-tab").forEach(W?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(W){W.setAttribute("noink","")},
_removeNoinkAttribute:function(W){W.removeAttribute("noink")},
_computeScrollButtonClass:function(W,l,V,f){return!l||V?"hidden":W?f?"hidden":"not-visible":""},
_computeTabsContentClass:function(W,l){var V="tabs-content";W&&(V+=" scrollable");if(!W||l)V+=" fit-container";return V},
_computeSelectionBarClass:function(W,l){var V="selection-bar";W?V+=" hidden":l&&(V+=" align-bottom");return V},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(W){return""+W},
_onIronSelect:function(W){this._tabChanged(W.detail.item,this._previousTab);this._previousTab=W.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();_.$6._activateHandler.apply(this,arguments)},
_scheduleActivation:function(W,l){this._pendingActivationItem=W;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,l)},
_delayedActivationHandler:function(){var W=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;W.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(W){W.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(W,l){this.scrollable&&this._affectScroll(l&&-l.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(W){this.$.tabsContainer.scrollLeft+=W;W=this.$.tabsContainer.scrollLeft;this._leftHidden=W===0||this.hideScrollButtons;this._rightHidden=W===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(W,l){if(W){var V=this.$.tabsContent.getBoundingClientRect(),f=V.width,r=W.getBoundingClientRect();V=r.left-V.left;this._pos={width:this._calcPercent(r.width,f),left:this._calcPercent(V,f)};if(this.noSlide||l==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var R=l.getBoundingClientRect();l=this.items.indexOf(l);W=this.items.indexOf(W);this.$.selectionBar.classList.add("expand");
W=l<W;this._isRTL&&(W=!W);W?this._positionBar(this._calcPercent(r.left+r.width-R.left,f)-5,this._left):this._positionBar(this._calcPercent(R.left+R.width-r.left,f)-5,this._calcPercent(V,f)+5);this.scrollable&&this._scrollToSelectedIfNeeded(r.width,V)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(W,l){l-=this.$.tabsContainer.scrollLeft;l<0?this.$.tabsContainer.scrollLeft+=l:(l+=W-this.$.tabsContainer.offsetWidth,l>0&&(this.$.tabsContainer.scrollLeft+=l))},
_calcPercent:function(W,l){return 100*W/l},
_positionBar:function(W,l){W=W||0;l=l||0;this._width=W;this._left=l;this.transform("translateX("+l+"%) scaleX("+W/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var W=this.$.selectionBar.classList;W.contains("expand")?(W.remove("expand"),W.add("contract"),this._positionBar(this._pos.width,this._pos.left)):W.contains("contract")&&W.remove("contract")}});var epk;var ql9;_.S3({_template:function(){if(ql9!==void 0)return ql9;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;epk===void 0&&(epk=document.createElement("template"));var f=epk;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return ql9=W},
is:"tp-yt-paper-textarea",behaviors:[vtX,_.qN],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(W){this.$.input.textarea.selectionStart=W},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(W){this.$.input.textarea.selectionEnd=W},_ariaLabelledByChanged:function(W){this._focusableElement.setAttribute("aria-labelledby",W)},
_ariaDescribedByChanged:function(W){this._focusableElement.setAttribute("aria-describedby",W)},
get _focusableElement(){return this.inputElement.textarea}});var hpk;var SlI;/*

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 Etv=function(){};
_.t=Etv.prototype;_.t.addOwnKeyBinding=function(){};
_.t.removeOwnKeyBindings=function(){};
_.t.keyboardEventMatchesKeys=function(){};
_.t._collectKeyBindings=function(){};
_.t._prepKeyBindings=function(){};
_.t._addKeyBinding=function(){};
_.t._resetKeyEventListeners=function(){};
_.t._listenKeyEventListeners=function(){};
_.t._unlistenKeyEventListeners=function(){};
_.t._onKeyBindingEvent=function(){};
_.t._triggerKeyHandler=function(){};
_.t._tapHandler=function(){};
_.t._focusChanged=function(){};
_.t._detectKeyboardFocus=function(){};
_.t._userActivate=function(){};
_.t._upHandler=function(){};
_.t._spaceKeyDownHandler=function(){};
_.t._spaceKeyUpHandler=function(){};
_.t._asyncClick=function(){};
_.t._pressedChanged=function(){};
_.t._ariaActiveAttributeChanged=function(){};
_.t._activeChanged=function(){};
_.t._controlStateChanged=function(){};
_.t._changedButtonState=function(){};
_.t._focusBlurHandler=function(){};
_.t._disabledChanged=function(){};
_.t._changedControlState=function(){};
_.t._downHandler=function(){};
_.t.ensureRipple=function(){};
_.t.getRipple=function(){};
_.t.hasRipple=function(){};
_.t._noinkChanged=function(){};
_.t._focusedChanged=function(){};
_.t.registered=function(){};
_.t._invalidChanged=function(){};
_.t.hasValidator=function(){};
_.t.validate=function(){};
_.t._getValidity=function(){};
_.t._requiredChanged=function(){};
_.t._valueChanged=function(){};
_.t._checkedChanged=function(){};
_.t._buttonStateChanged=function(){};
_.t._setPressed=function(){};
_.t._setPointerDown=function(){};
_.t._setReceivedFocusFromKeyboard=function(){};
_.t._setFocused=function(){};
Etv=_.S3({is:"tp-yt-paper-toggle-button",_template:function(){if(SlI!==void 0)return SlI;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;hpk===void 0&&(hpk=document.createElement("template"));var f=hpk;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return SlI=W},
behaviors:[_.Nl9],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");_.V9(this,function(){_.Z5(this,"pan-y")})},
_ontrack:function(W){W=W.detail;W.state==="start"?this._trackStart(W):W.state==="track"?this._trackMove(W):W.state==="end"&&this._trackEnd(W)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(W){W=W.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+W:W)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+W:W));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 W=dt._createRipple();W.id="ink";W.setAttribute("recenters","");W.classList.add("circle","toggle-ink");return W}});var $G$;var WJk;_.S3({_template:function(){if(WJk!==void 0)return WJk;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;$G$===void 0&&($G$=document.createElement("template"));var f=$G$;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return WJk=W},
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 W=_.YG(this).parentNode,l=_.YG(this).getOwnerRoot(),V;this.for?V=_.YG(l).querySelector("#"+this.for):V=W.nodeType==Node.DOCUMENT_FRAGMENT_NODE?l.host:W;return V},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(W){W==="entry"?this.show():W==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.YG(this).textContent.trim()===""){for(var W=!0,l=_.YG(this).getEffectiveChildNodes(),V=0;V<l.length;V++)if(l[V].textContent.trim()!==""){W=!1;break}if(W)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 W=this.offset;this.marginTop!=14&&this.offset==14&&(W=this.marginTop);var l=this.offsetParent.getBoundingClientRect(),V=this._target.getBoundingClientRect(),f=this.getBoundingClientRect(),r=(V.width-f.width)/2,R=(V.height-f.height)/2,y=V.left-l.left,P=V.top-l.top;switch(this.position){case "top":var n=y+r;var B=P-f.height-W;break;case "bottom":n=y+r;B=P+V.height+W;break;case "left":n=y-f.width-W;B=P+R;break;case "right":n=y+V.width+
W,B=P+R}this.fitToVisibleBounds?(l.left+n+f.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,n)+"px",this.style.right="auto"),l.top+B+f.height>window.innerHeight?(this.style.bottom=l.height+"px",this.style.top="auto"):(this.style.top=Math.max(-l.top,B)+"px",this.style.bottom="auto")):(this.style.left=n+"px",this.style.top=B+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(W){W!==500&&this.updateStyles({"--paper-tooltip-delay-in":W+"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(W){if(W==="entry"&&this.animationEntry!=="")return this.animationEntry;if(W==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[W]&&typeof this.animationConfig[W][0].name==="string"){if(this.animationConfig[W][0].timing&&this.animationConfig[W][0].timing.delay&&this.animationConfig[W][0].timing.delay!==0){var l=this.animationConfig[W][0].timing.delay;W==="entry"?this.updateStyles({"--paper-tooltip-delay-in":l+"ms"}):W==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":l+
"ms"})}return this.animationConfig[W][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 lhL=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(lhL,_.yP);var Vg1=_.v$(lhL,[0,_.Bs]);var Uj=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Uj,_.yP);var fhk=[3,4],rI$=[5,6];var REZ=[0,fhk,rI$,_.Uf,-1,_.cs,_.ul,-1,wuF,QKF];var tg9=_.v$(Uj,REZ),snX=_.KM(REZ);var LJI=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(LJI,_.yP);var yIL=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(yIL,_.yP);var gRa=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(gRa,_.yP);var PkX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(PkX,_.yP);var nRe=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(nRe,_.yP);var uG=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(uG,_.yP);uG.prototype.getSource=function(){return _.zy(this,1)};
uG.prototype.getMessage=function(){return _.aQ(this,4)};
uG.prototype.getData=function(){return _.yy(this,nRe,8)};var CkB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(CkB,_.yP);var k0=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(k0,_.yP);var vo=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(vo,_.yP);var Ho=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Ho,_.yP);Ho.prototype.getUrl=function(){return _.aQ(this,1)};
Ho.prototype.setUrl=function(W){return _.mY(this,1,W)};
Ho.prototype.hasUrl=function(){return _.He(_.jP(this,1))!=null};var cIv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(cIv,_.yP);var Bek=[3];var d7B=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(d7B,_.yP);var KB=function(W){var l=new d7B;return _.g8(l,2,W)};
d7B.prototype.getLanguage=function(){return Yt(this,4,F5)};
var JIa=function(W){var l=KB(1);return _.pM(l,6,F5,W)},F5=[3,
4,5,6];var D71=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(D71,_.yP);var Gf=function(W){var l=new D71;return _.g8(l,1,W)},bG=function(W,l){return _.pM(W,2,U7k,l)},U7k=[2,
3,4,5];var uzB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(uzB,_.yP);var pB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(pB,_.yP);var kQM=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(kQM,_.yP);var vRM=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(vRM,_.yP);var HVB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(HVB,_.yP);var KJB=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(KJB,_.yP);var FJM=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(FJM,_.yP);var oz=function(W){return _.yy(W,vo,5)};var GQa=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(GQa,_.yP);GQa.prototype.getValue=function(){return Zb(this,1)};var bV1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(bV1,_.yP);var js=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(js,_.yP);js.prototype.getMetadata=function(){return _.xt(this,HVB,7,Iz)};
js.prototype.hasMetadata=function(){return _.iK(this,HVB,7,Iz)};
var psL=_.ZMU(js),Iz=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var iG=function(W){this.JSC$12030_name_=W;this.files_=[];this.directories_=[];this.directoryMap_={}};
iG.prototype.getName=function(){return this.JSC$12030_name_};var X5=function(W,l){this.callback_=l;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new iG("");oRe(this,W,this.rootDirectory_);m9(this)},oRe=function(W,l,V){for(var f=0;f<l.length;f++){var r=l[f];
r.isFile?(W.fileOps_++,r.file((0,_.ml)(W.handleFileSuccess_,W,V),(0,_.ml)(W.handleFileError_,W))):W.unscannedDirectories_.push(new jnL(r,V))}},m9=function(W){if(W.unscannedDirectories_.length>0&&W.directoryOps_<5&&!W.hasError_){W.directoryOps_++;
var l=W.unscannedDirectories_.shift(),V=l.entry,f=new iG(V.name);l=l.parent;l.directoryMap_[f.getName()]=f;l.directories_.push(f);V=V.createReader();V.readEntries((0,_.ml)(W.handleDirectorySuccess_,W,V,f),(0,_.ml)(W.handleDirectoryError_,W))}W.directoryOps_!=0||W.fileOps_!=0||W.unscannedDirectories_.length!=0&&!W.hasError_||W.callback_(W.rootDirectory_.files_,W.rootDirectory_.directories_,W.hasError_)};
X5.prototype.handleDirectorySuccess_=function(W,l,V){oRe(this,V,l);V.length==0?(this.directoryOps_--,m9(this)):W.readEntries((0,_.ml)(this.handleDirectorySuccess_,this,W,l),(0,_.ml)(this.handleDirectoryError_,this))};
X5.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;m9(this)};
X5.prototype.handleFileSuccess_=function(W,l){W.files_.push(l);this.fileOps_--;m9(this)};
X5.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;m9(this)};
var jnL=function(W,l){this.entry=W;this.parent=l};var Tf=function(W){_.aj.call(this);_.YJ(W,"drop",this.onObjectsDropped_,!1,this);_.YJ(W,"dragenter",this.onFilesDragged_,!1,this);_.YJ(W,"dragover",this.onFilesDragged_,!1,this);_.YJ(W,"dragleave",this.onDragLeave_,!1,this);_.YJ(W,"dragend",this.onDragLeave_,!1,this)};
_.Jj(Tf,_.aj);var Ihk=function(W,l){_.AS.call(this,"f");this.files=W;this.directories=l};
_.Jj(Ihk,_.AS);var iVc=function(){_.AS.call(this,"h")};
_.Jj(iVc,_.AS);var m7X=function(){_.AS.call(this,"i")};
_.Jj(m7X,_.AS);var Xs1=function(){_.AS.call(this,"g")};
_.Jj(Xs1,_.AS);Tf.prototype.onObjectsDropped_=function(W){var l=this;W.preventDefault();var V=W.event_.dataTransfer;if((W=V&&V.items)&&W.length>0&&W[0].webkitGetAsEntry){V=[];for(var f=[],r=0;r<W.length;r++){var R=W[r].webkitGetAsEntry();R?V.push(R):f.push(W[r])}new X5(V,function(y,P,n){n?l.dispatchEvent(new Xs1("Error occurred while reading from the file system.")):l.dispatchEvent(new Ihk(y,P,f))})}else(W=V&&V.files)&&this.dispatchEvent(new Ihk(Array.from(W),[]))};
Tf.prototype.onFilesDragged_=function(W){W.type==="dragenter"&&this.dispatchEvent(new iVc);W.preventDefault()};
Tf.prototype.onDragLeave_=function(){this.dispatchEvent(new m7X)};var Tea=function(W,l){this.JSC$12053_name_=W;this.inputElement_=l};
Tea.prototype.getName=function(){return this.JSC$12053_name_};
Tea.prototype.getInputElement=function(){return this.inputElement_};var wt=function(W,l,V){l=l===void 0?"single_file":l;V=V===void 0?[]:V;_.aj.call(this);this.overlayTarget_=W;this.parentOverlay_=W!=null?W.parentNode:_.Gz("scotty-overlay-parent");this.selectorType_=l;this.acceptTypes_=V;this.overlay_=wsZ(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.v(wt,_.aj);
var wsZ=function(W,l,V,f){var r=document.createElement("input");r.setAttribute("type","file");r.setAttribute("name","Filedata");_.YJ(r,"change",W.onFilesSelected_,!1,W);V==="multiple_file"&&(r.multiple="true");V==="single_directory"&&(r.webkitdirectory="true");f.length>0&&r.setAttribute("accept",f.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(W.overlayTarget_!=
null)return r.style.height=l.offsetHeight+"px",r.style.width=l.offsetWidth+"px",W.parentOverlay_&&(W.parentOverlay_.style.position="relative"),_.Ed(r,l),r3(r,new _.O1(l.offsetLeft,l.offsetTop)),r;W.parentOverlay_.appendChild(r);return r};
wt.prototype.click=function(){this.overlay_.click()};
wt.prototype.onFilesSelected_=function(W){a:{try{var l=(new XMLHttpRequest).upload!==void 0;break a}catch(B){}l=!1}if(l){var V;W=Array.from((V=W.target.files)!=null?V:[]);V=[];if(this.selectorType_==="single_directory"&&(_.HF||li||_.vF)){V=new iG("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(l=0;l<W.length;l++)for(var f=W[l],r=f.webkitRelativePath.split("/"),R=V,y=0;y<r.length;y++){var P=r[y];if(y==r.length-1){P!="."&&R.files_.push(f);break}var n=R.directoryMap_[P];n==void 0&&(P=
n=new iG(P),R.directoryMap_[P.getName()]=P,R.directories_.push(P));R=n}V=V.directories_}this.dispatchEvent(new AII(W,V,null))}else W=W.target.value,W.match(/^c:\\fakepath\\/i)&&(W=W.substring(12)),this.dispatchEvent(new AII([],[],new Tea(W,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=wsZ(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var AII=function(W,l){_.AS.call(this,"j");this.files=W;this.directories=l};
_.v(AII,_.AS);var Qn9=function(W){this.uploadUrl_=W};var MgI=function(){_.aj.call(this)};
_.Jj(MgI,_.aj);var Ae=function(W){_.AS.call(this,W)};
_.Jj(Ae,_.AS);var QO=function(W){_.AS.call(this,W)};
_.Jj(QO,_.AS);var ZVZ=function(W,l,V,f,r){_.aj.call(this);V=document.createElement("form");V.setAttribute("method",l);V.setAttribute("enctype","multipart/form-data");V.setAttribute("encoding","multipart/form-data");l=document.createElement("input");l.setAttribute("type","hidden");l.setAttribute("name","metadata");l.setAttribute("value",r);V.appendChild(l);V.appendChild(f);this.JSC$12070_form_=V;W=new _.dg(W);_.$9(W,"upload_protocol","multipart");this.JSC$12070_url_=W.toString();this.JSC$12070_request_=new Kd;this.state_=
"Ready";this.JSC$12070_errorDescription_=null;this.JSC$12070_eventHandler_=new _.nX(this);_.vt(this,this.JSC$12070_eventHandler_);this.JSC$12070_eventHandler_.listen(this.JSC$12070_request_,"success",this.onTransferSuccess_);this.JSC$12070_eventHandler_.listen(this.JSC$12070_request_,"error",this.onTransferError_)};
_.v(ZVZ,MgI);_.t=ZVZ.prototype;_.t.run=function(){this.state_="Transferring";var W=this.JSC$12070_request_,l=this.JSC$12070_form_;if(W.JSC$11477_active_)throw Error("re");var V=new _.dg(this.JSC$12070_url_||l.action);W.JSC$11477_form_=l;l=W.JSC$11477_form_;V=_.ee(V.toString());V!==void 0&&(l.action=V);BNa(W)};
_.t.getResponseCode=function(){return null};
_.t.getResponseText=function(){return this.JSC$12070_request_&&this.JSC$12070_request_.getResponseText()||null};
_.t.JSC$29449_getErrorDescription=function(){return this.JSC$12070_errorDescription_};
_.t.cancel=function(){this.JSC$12070_request_&&this.JSC$12070_request_.abort();this.state_="Cancelled";this.dispatchEvent(new Ae("o"))};
_.t.pause=function(){};
_.t.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new Ae("l"))};
_.t.onTransferError_=function(){this.JSC$12070_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new Ae("n"))};var M0=function(){_.Sk.call(this)};
_.v(M0,_.Sk);M0.prototype.createXhr=function(){var W=_.Sk.prototype.createXhr.call(this);W.upload&&(W.upload.onprogress=(0,_.ml)(this.onProgress_,this));return W};
M0.prototype.onProgress_=function(W){this.dispatchEvent(W)};var OVB=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},zEa=function(W,l){var V=W.attempt_+1;
if(W.maxAttempts_>0&&V>W.maxAttempts_)return!1;V==0?l():W.delayCallId_=ek(function(){W.delayCallId_=null;l()},ahc(W),W);
W.attempt_=V;return!0};
OVB.prototype.reset=function(){this.delayCallId_&&_.rS.clearTimeout(this.delayCallId_);this.attempt_=-1};
var ahc=function(W){var l=250*Math.pow(2,W.attempt_);W.maxDelayMs_>=0&&(l=Math.min(l,W.maxDelayMs_));return l};var Xdz=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var Zu=function(){_.aj.call(this);this.JSC$12080_request_=this.state_=null;this.JSC$12080_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12080_bytesTransferred_=0;this.retryIterator_=new OVB;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12080_errorDescription_=null;this.JSC$12080_eventHandler_=new _.nX(this);_.vt(this,this.JSC$12080_eventHandler_);this.JSC$12080_url_=this.blob_=null;this.JSC$12080_method_=void 0;this.chunkSize_=this.JSC$12080_metadata_=
this.JSC$12080_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12080_responseText_=this.JSC$12080_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Jj(Zu,MgI);_.t=Zu.prototype;_.t.run=function(){Oj(this)};
_.t.getResponseCode=function(){return this.JSC$12080_responseCode_};
_.t.getResponseText=function(){return this.JSC$12080_responseText_};
_.t.JSC$29449_getErrorDescription=function(){return this.JSC$12080_errorDescription_};
_.t.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12080_eventHandler_.removeAll();this.JSC$12080_request_&&this.JSC$12080_request_.abort();this.retryIterator_.reset();var W=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(W==="Upload"||W==="Query")W=new M0,W.JSC$9791_withCredentials_=this.JSC$12080_withCredentials_,W.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12080_bytesTransferred_=
0;this.dispatchEvent(new Ae("o"))}};
_.t.pause=function(){this.pauseRequested_=!0};
var Oj=function(W){var l=W.state_;W.pauseRequested_?(W.pauseRequested_=!1,W.stateAfterUnpausing_=l,W.state_="Paused"):zEa(W.retryIterator_,function(){switch(W.state_){case "Start":W.JSC$12080_request_=new M0;var V=_.MC.clone(W.JSC$12080_headers_);W.blob_.size!=null&&(V["Content-Length"]=W.blob_.size);V=TA4(V);V["X-Goog-Upload-Protocol"]="resumable";V["X-Goog-Upload-Command"]="start";W.JSC$12080_eventHandler_.removeAll();W.JSC$12080_eventHandler_.listen(W.JSC$12080_request_,"complete",W.onStartComplete_);
W.JSC$12080_request_.JSC$9791_withCredentials_=W.JSC$12080_withCredentials_;W.JSC$12080_request_.send(W.JSC$12080_url_,W.JSC$12080_method_,W.JSC$12080_metadata_,V);W.lastCommandResponseCode_=null;W.dispatchEvent(new QO("q"));break;case "Upload":V=W.transferHandle_.uploadUrl_;var f=W.blob_.size;if(hXM()){var r=W.chunkSize_;var R=W.offset_+r>=f;f=qLM(W.blob_,W.offset_,R?f:W.offset_+r)}else W.offset_=0,f=W.blob_,R=!0;W.JSC$12080_request_=new M0;W.JSC$12080_request_.JSC$9791_withCredentials_=W.JSC$12080_withCredentials_;
W.JSC$12080_eventHandler_.removeAll();W.JSC$12080_eventHandler_.listen(W.JSC$12080_request_,"progress",W.onUploadProgress_);r=(0,_.ml)(W.JSC$12082_onUploadComplete_,W,W.offset_+f.size,R);W.JSC$12080_eventHandler_.listen(W.JSC$12080_request_,"complete",r);W.lastCommandResponseCode_=null;W.dispatchEvent(new QO("q"));R=Object.assign({},W.JSC$12080_headers_||{},{"X-Goog-Upload-Command":"upload"+(R?", finalize":""),"X-Goog-Upload-Offset":W.offset_});W.JSC$12080_request_.send(V,"POST",f,R);break;case "Query":W.JSC$12080_request_=
new M0;W.JSC$12080_eventHandler_.removeAll();W.JSC$12080_eventHandler_.listen(W.JSC$12080_request_,"complete",W.onQueryComplete_);V=Object.assign({},W.JSC$12080_headers_||{},{"X-Goog-Upload-Command":"query"});W.JSC$12080_request_.send(W.transferHandle_.uploadUrl_,"POST","",V);W.lastCommandResponseCode_=null;W.dispatchEvent(new QO("q"));break;default:throw Error("hf");}})||az(W,"Transfer encountered too many consecutive failures.")},az=function(W,l){W.state_="Error";
W.JSC$12080_errorDescription_=l;W.dispatchEvent(new Ae("n"))};
Zu.prototype.onStartComplete_=function(W){var l=W.target;this.lastCommandResponseCode_=l.getStatus();this.dispatchEvent(new QO("r"));if(Nec(l))YdM(this,l);else if(x7e(l)){W=fW(W.target.getAllResponseHeaders());for(var V in W)_.sz(V.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new Ae("m"));V=eQ(W,"X-Goog-Upload-URL");W=(W=eQ(W,"X-Goog-Upload-Chunk-Granularity"))?parseInt(W,10):1;V===void 0||isNaN(W)||W<=0?az(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
W)*W,this.transferHandle_=new Qn9(V),this.dispatchEvent(new Ae("p")),this.state_="Upload",this.retryIterator_.reset(),Oj(this))}else Oj(this)};
Zu.prototype.onUploadProgress_=function(W){this.JSC$12080_bytesTransferred_=this.offset_+W.loaded;this.dispatchEvent(new Ae("k"))};
Zu.prototype.JSC$12082_onUploadComplete_=function(W,l,V){var f=this,r,R;return _.g(function(y){switch(y.nextAddress){case 1:r=V.target;f.lastCommandResponseCode_=r.getStatus();f.dispatchEvent(new QO("r"));if(eE1(r)||r.getStatus()==404)return f.JSC$12080_bytesTransferred_=W,YdM(f,r),y.return();if(x7e(r)){y.jumpTo(2);break}if(!(R=f.detectCorruptedBlobEnabled_)){y.jumpTo(3);break}return y.yield(qdX(f),4);case 4:R=y.yieldResult;case 3:if(R)return az(f,"Blob has been modified or corrupted."),y.return();
f.requireUploadRequestModification_=r.getStatus()==400;f.state_="Query";Oj(f);return y.return();case 2:if(l)return az(f,"Got a non-final success response after issuing a finalize command."),y.return();f.JSC$12080_bytesTransferred_=W;f.offset_=W;f.retryIterator_.reset();Oj(f);return y.return()}})};
Zu.prototype.onQueryComplete_=function(W){var l=W.target;this.lastCommandResponseCode_=l.getStatus();this.dispatchEvent(new QO("r"));Nec(l)?(l.getStatus()===200&&(this.JSC$12080_bytesTransferred_=this.blob_.size),YdM(this,l)):x7e(l)?(W=fW(W.target.getAllResponseHeaders()),W=parseInt(eQ(W,"X-Goog-Upload-Size-Received"),10),isNaN(W)?az(this,"Server did not respond with current offset."):W<this.offset_?az(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
W+"."):this.requireUploadRequestModification_&&this.offset_===W?az(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<W&&this.retryIterator_.reset(),this.offset_=this.JSC$12080_bytesTransferred_=W,this.state_="Upload",Oj(this))):Oj(this)};
var YdM=function(W,l){W.JSC$12080_responseCode_=l.getStatus();var V=fW(l.getAllResponseHeaders());wd4(V);W.JSC$12080_responseText_=l.getResponseText();W.state_="Response received";W.dispatchEvent(new Ae("l"))},x7e=function(W){var l=W.getStatus();
W=fW(W.getAllResponseHeaders());W=eQ(W,"X-Goog-Upload-Status");return l===200&&W==="active"},eE1=function(W){W=fW(W.getAllResponseHeaders());
return eQ(W,"X-Goog-Upload-Status")==="final"},Nec=function(W){if(eE1(W))return!0;
W=W.getStatus();return W>=400&&W<500},qdX=function(W){var l;
return _.g(function(V){if(V.nextAddress==1){if(!W.blob_||W.originalBlobSize_<=0)return V.return(!1);if(W.blob_.size!==W.originalBlobSize_)return V.return(!0);_.HG(V,2);if(l=qLM(W.blob_,0,1)){var f=V.yield,r=new Ld,R=Ira(r);r.reader_.readAsBinaryString(l);V=f.call(V,R,4)}else V=V.return(!0);return V}if(V.nextAddress!=2)return V.return(W.blob_.size!==W.originalBlobSize_);_.pc(V);return V.return(!0)})};var hEk=function(W,l,V,f,r,R){_.aj.call(this);this.payload_=f;this.JSC$12083_url_=W;this.JSC$12083_method_=l;this.JSC$12083_headers_=V;this.JSC$12083_metadata_=r;this.encoding_=R||"binary";W=new _.eN;this.boundary_="uploader-"+hl()+"-"+W.JSC$11326_toIsoString();this.JSC$12083_responseText_=this.JSC$12083_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12083_errorDescription_=null;this.JSC$12083_eventHandler_=new _.nX(this);_.vt(this,this.JSC$12083_eventHandler_)};
_.v(hEk,MgI);_.t=hEk.prototype;
_.t.run=function(){var W=_.MC.clone(this.JSC$12083_headers_);this.payload_.length!=null&&(W["Content-Length"]=this.payload_.length);W=TA4(W);W["X-Goog-Upload-Protocol"]="multipart";W["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new M0;this.JSC$12083_eventHandler_.removeAll();this.JSC$12083_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12083_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12083_url_,this.JSC$12083_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12083_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",W)};
_.t.getResponseCode=function(){return this.JSC$12083_responseCode_};
_.t.getResponseText=function(){return this.JSC$12083_responseText_};
_.t.JSC$29449_getErrorDescription=function(){return this.JSC$12083_errorDescription_};
_.t.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12083_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new Ae("o")))};
_.t.pause=function(){};
_.t.onTransferProgress_=function(){this.dispatchEvent(new Ae("k"))};
_.t.onTransferComplete_=function(W){var l=W.target.getStatus();l===void 0||l===-1?(this.JSC$12083_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new Ae("n"))):(this.JSC$12083_responseCode_=l,W=W.target,l=fW(W.getAllResponseHeaders()),wd4(l),this.JSC$12083_responseText_=W.getResponseText(),this.state_="Complete",this.dispatchEvent(new Ae("l")))};_.SdL=function(W,l,V,f){f=f===void 0?!1:f;if(V instanceof Tea)return new ZVZ(W,"POST",l,V.getInputElement(),"");if(typeof V==="string"||V instanceof String)return new hEk(W,"POST",l,V,"");var r=new Zu(void 0);r.JSC$12080_url_=W;r.JSC$12080_method_="POST";r.JSC$12080_headers_=l;r.blob_=V;r.originalBlobSize_=V.size;r.JSC$12080_metadata_="";f&&(r.JSC$12080_withCredentials_=f);r.state_="Start";return r};var zf=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(zf,_.yP);_.t=zf.prototype;_.t.getEnableSsEngine=function(){return _.MG(this,2)};
_.t.getEnableAwr=function(){return _.MG(this,3)};
_.t.getAlohaAutoGaRollout=function(){return _.MG(this,5)};
_.t.getEnableConfigurator=function(){return _.MG(this,6)};
_.t.getEnableMweb=function(){return _.MG(this,7)};
var $71=function(){var W=ERk();return _.h6(W,7,!0)};
zf.prototype.getEnableCtlConsentCheckbox=function(){return _.MG(this,8)};
zf.prototype.getEnableIframe=function(){return _.MG(this,9)};
var ERk=function(){var W=new zf;W=_.h6(W,5,!0);W=_.h6(W,2,!0);W=_.h6(W,4,!1);W=_.h6(W,8,!0);return _.h6(W,9,!0)};
zf.prototype.getEnableScreenshotNudge=function(){return _.MG(this,10)};
var WMk=function(){var W=$71();return _.h6(W,10,!0)};
zf.prototype.getEnableWebStartupConfigEndpoint=function(){return _.MG(this,11)};
zf.prototype.getEnableJunkNudge=function(){return _.MG(this,12)};
var VN8=function(){var W=WMk();return _.h6(W,12,!0)};
_.t=zf.prototype;_.t.getEnableConfiguratorLocale=function(){return _.MG(this,13)};
_.t.getEnableTinyNoPointer=function(){return _.MG(this,14)};
_.t.getEnableSupportSessionLogging=function(){return _.MG(this,15)};
_.t.getEnableFileUploadForScreenshot=function(){return _.MG(this,16)};
_.t.getEnableDirectDeflectionForSingleCategory=function(){return _.MG(this,17)};
_.t.getEnableImageSanitization=function(){return _.MG(this,18)};
_.t.getEnableAlohaBinarySplit=function(){return _.MG(this,19)};
_.t.getEnableDbFeedbackIntents=function(){return _.MG(this,20)};
_.t.getEnableMarkMandatoryFieldsWithRequired=function(){return _.MG(this,21)};
_.t.getEnableFeedbackCategoryCustomUi=function(){return _.MG(this,22)};
_.t.getEnableRealtimeCtl=function(){return _.MG(this,23)};var li8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(li8,_.yP);var AUz=[/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 Maz="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 ZiF=_.tj(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),OiF=_.tj(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var zCz,x36,NAz,eCv;var lne,VkM;
lne=function(W,l,V){W.timeOfStartCall=(new Date).getTime();var f=V||_.rS,r=f.document,R=W.nonce||_.VK(f.document);R&&!W.nonce&&(W.nonce=R);if(W.flow=="help"){var y=_.Y2("document.location.href",f);!W.helpCenterContext&&y&&(W.helpCenterContext=y.substring(0,1200));y=!0;if(l&&JSON&&JSON.stringify){var P=JSON.stringify(l);(y=P.length<=1200)&&(W.psdJson=P)}y||(l={invalidPsd:!0})}l=[W,l,V];f.GOOGLE_FEEDBACK_START_ARGUMENTS=l;V=W.feedbackServerUri||"//www.google.com/tools/feedback";if(y=f.GOOGLE_FEEDBACK_START)y.apply(f,l);
else{f=V+"/load.js?";for(var n in W)l=W[n],l==null||_.ev(l)||(f+=encodeURIComponent(n)+"="+encodeURIComponent(l)+"&");W=IU(r).createElement("SCRIPT");R&&W.setAttribute("nonce",R);_.tL(W,_.i7(f));r.body.appendChild(W)}};
VkM=function(W,l,V,f){var r,R;_.g(function(y){r=V||_.rS;var P=W.serverEnvironment==="DEV",n=V||_.rS;n=W.nonce||_.VK(n.document);P={integrationKeys:{productId:W.productId,feedbackBucket:W.bucket,triggerId:W.triggerId},callbacks:{onClose:W.callback,onLoad:W.onLoadCallback},formContent:{locale:W.locale,disableScreenshot:W.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:W.abuseLink,additionalDataConsent:W.additionalDataConsent},initializationData:{isLocalServer:P,nonce:n,useNightlyRelease:P,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:W.feedbackServerUri,colorScheme:W.colorScheme},extraData:{productVersion:W.productVersion,authUser:W.authuser,configuratorId:W.configuratorId,customZIndex:W.customZIndex,tinyNoPointer:W.tinyNoPointer,
allowNonLoggedInFeedback:W.allowNonLoggedInFeedback,enableAnonymousFeedback:W.enableAnonymousFeedback}};l&&(n=new Map(Object.entries(l)),P.extraData.productSpecificData=n);R=P;return y.yield(E$J(R,f,r),0)})};
_.fnv=function(W,l,V){try{if(W.flow==="help"){var f=W.helpCenterPath.replace(/^\//,"");_.lM(V||window,"https://support.google.com/"+f)}else W.flow==="submit"?lne(W,l,V):fiF(W.productId,W.feedbackServerUri).then(function(r){r=_.yy(r,zf,1);var R=!Wsj||(r==null?void 0:r.getEnableMweb()),y=!W.tinyNoPointer||(r==null?void 0:r.getEnableTinyNoPointer());!r||r.getAlohaAutoGaRollout()&&R&&y?VkM(W,l,V,r):lne(W,l,V)},function(r){r&&r.name!=="DuplicateFormError"&&lne(W,l,V)})}catch(r){VkM(W,l,V,null)}};
_.fR("userfeedback.api.startFeedback",_.fnv);var rkU=/https?:\/\/\S+\.\S+/,R8Y=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],tNU=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var BVv=function(W){var l=W.split(""),V=[-263237435,15,l,function(f,r,R){var y=r.length;R.forEach(function(P,n,B){this.push(B[n]=r[(r.indexOf(P)-r.indexOf(this[n])+n+y--)%r.length])},f.split(""))},
function(f,r){f=(f%r.length+r.length)%r.length;r.splice(-f).reverse().forEach(function(R){r.unshift(R)})},
"response",function(){for(var f=64,r=[];++f-r.length-32;){switch(f){case 58:f-=14;case 91:case 92:case 93:continue;case 123:f=47;case 94:case 95:case 96:continue;case 46:f=95}r.push(String.fromCharCode(f))}return r},
null,12,1540023973,65941107,null,l,function(f,r){for(f=(f%r.length+r.length)%r.length;f--;)r.unshift(r.pop())},
695603893,function(f){for(var r=f.length;r;)f.push(f.splice(--r,1)[0])},
"'[;'[(",function(f,r){f.push(r)},
null,function(f,r,R,y,P){return r(R,y,P)},
"continuation",l,function(f,r){if(f.length!=0){r=(r%f.length+f.length)%f.length;var R=f[0];f[0]=f[r];f[r]=R}},
function(){for(var f=64,r=[];++f-r.length-32;){switch(f){case 91:f=44;continue;case 123:f=65;break;case 65:f-=18;continue;case 58:f=96;continue;case 46:f=95}r.push(String.fromCharCode(f))}return r},
'"),/]];'];V[7]=V;V[11]=V;V[18]=V;try{(((0,V[15])(V[21]),V[22])(V[11],V[9]),V[22])(V[new Date("1970-01-01T04:30:12.000+04:30")/1E3],V[1]),((0,V[22])(V[11],V[23]),V[4])(V[10],V[18]),(0,V[20])(V[21],V[14])<<(0,V[17])(V[18],V[1]),(0,V[4])(V[8],V[21]),(0,V[19])((0,V[19])((0,V[17])(V[7],V[9]),V[3],V[20],(0,V[6])(),V[2]),V[3],V[5],(0,V[15])(),V[2])}catch(f){return"aTlOUOubTO4AP____8P_"+W}return l.join("")};_.rS9=new _.uC("runAttestationCommand");var RNa=new _.uC("verifyCommand");_.N0=new _.uC("accessibilityContext");var tk$=new _.uC("accessibilityData");var sjk=new _.uC("profileCardCommand");var KGq=new _.uC("signInEndpoint");var Hmj=new _.uC("signOutEndpoint");var yS9;_.LMM=new _.uC("accountItemSectionRenderer");yS9=new _.uC("accountItemRenderer");_.gSM=new _.uC("saveCommandToSessionStorageAction");var Pla=new _.uC("crossAccountChannelTransferEndpoint");var UZY=new _.uC("getAccountMenuEndpoint");_.ukn=new _.uC("getAccountSwitcherEndpoint");var DZY=new _.uC("getAccountsListEndpoint");var nSL=new _.uC("getAccountsListInnertubeEndpoint");_.Y0=new _.uC("addToToastAction");var Cl$=new _.uC("hideEnclosingAction");_.x0=new _.uC("replaceEnclosingAction");var cSc=new _.uC("buttonRefreshAction");var B3B=new _.uC("adsControlFlowOpportunityReceivedCommand");var dRv=new _.uC("openAdAllowlistInstructionCommand");var JSL=new _.uC("videoMastheadAdPrimaryVideoRenderer");var DRk=new _.uC("displayAdRenderer");var xzS=new _.uC("instreamVideoAdRenderer");_.URk=new _.uC("inFeedAdLayoutRenderer");var udk=new _.uC("sequenceItemInPlayerAdLayoutRenderer");_.kRk=new _.uC("adSlotRenderer");var vSe=new _.uC("adAvatarViewModel");var HUZ=new _.uC("adBadgeViewModel");var KMM=new _.uC("adButtonViewModel");var FMM=new _.uC("adImageViewModel");var MH8=new _.uC("reelsAdCardButtonedViewModel");var GRX=new _.uC("reelsPlayerOverlayLayoutViewModel");var bUL=new _.uC("showSchedulingPanelCommand");var pWI=new _.uC("backstageCommentsRenderer");var oS9=new _.uC("backstageImageRenderer");var jjB=new _.uC("backstagePostRenderer");var InX=new _.uC("backstageZeroStateRenderer");var iUe=new _.uC("postRenderer");var mRL=new _.uC("sharedPostRenderer");var XWv=new _.uC("createBackstagePostEndpoint");var T39=new _.uC("getPostVideoPreviewEndpoint");var wWv=new _.uC("updateBackstagePostEndpoint");var ASB=new _.uC("filterChipTransformCommand");var Qjk=new _.uC("insertRichSectionCommand");var j6F=new _.uC("talkToRecsDeselectCommand");var MkI=new _.uC("talkToRecsNextCommand");var oAq=new _.uC("talkToRecsSelectCommand");var ZUL=new _.uC("talkToRecsUpdateTextCommand");_.ZJ=new _.uC("browseEndpoint");_.OU9=new _.uC("confirmDialogEndpoint");var an1=new _.uC("expandOnHoverCardRenderer");var zNa=new _.uC("lumiereShelfDetailsRenderer");var N3X=new _.uC("revealBusinessEmailCommand");var YfZ=new _.uC("validateChannelHandleCommand");var xRk=new _.uC("channelCreationFormEndpoint");var eNe=new _.uC("aboutChannelViewModel");var qfk=new _.uC("channelThumbnailWithLinkRenderer");var hNe=new _.uC("channelCreationServiceEndpoint");var Sfv=new _.uC("updateChannelPageSettingsEndpoint");var es=function(W){this.delegate=W},q0=function(){es.apply(this,arguments)};
_.v(q0,es);_.rc.Object.defineProperties(q0.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(W){this.delegate.entityMetadata=W}}});var ESv=function(){q0.apply(this,arguments)};
_.v(ESv,q0);ESv.prototype.getAssociations=function(){return[]};
ESv.prototype.getTypeName=function(){return"channelHandle"};var pKS=new _.uC("webThumbnailDetailsExtensionData");var aen=new _.uC("commandContext");var $RZ=new _.uC("addVideoLinkAction");var Wx9=new _.uC("banAuthorAction");var lRX=new _.uC("createCommentAction");var VhL=new _.uC("createCommentReplyAction");var fRc=new _.uC("createPollAction");var rdL=new _.uC("hideIdentityChipAction");var Rda=new _.uC("openUpdateCommentDialogAction");var thI=new _.uC("pinCommentAction");var src=new _.uC("removeCommentAction");var Lx1=new _.uC("unpinCommentAction");var he=new _.uC("updateBackstagePollAction");var yda=new _.uC("updateCommentVoteAction");var gg$=new _.uC("commentThreadRenderer");var PcL=function(){q0.apply(this,arguments)};
_.v(PcL,q0);PcL.prototype.getAssociations=function(){return[]};
PcL.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var ng9=function(){q0.apply(this,arguments)};
_.v(ng9,q0);ng9.prototype.getAssociations=function(){return[]};
ng9.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.Cc9=new _.uC("commentDialogRenderer");var cdB=new _.uC("reloadCommentsCommand");var BwX=new _.uC("updateCommentsSettingsEndpoint");var dXI=new _.uC("commentViewModel");var Jda=new _.uC("triStateButtonViewModel");var DXc=new _.uC("voiceReplyContainerViewModel");_.Ig=new _.uC("commandExecutorCommand");var WI=new _.uC("emoji");var UXk=new _.uC("updateCreatorChannelInnertubeCommand");_.ugI=new _.uC("appendContinuationItemsAction");_.kW$=new _.uC("changeEngagementPanelVisibilityAction");_.VH=new _.uC("continuationCommand");var vgM=new _.uC("hideReportedCommentAction");var HCc=new _.uC("listMutationCommand");_.Ss=new _.uC("openPopupAction");var KxL=new _.uC("persistSubscriptionsDisplayPreferencesCommand");var iCL;_.Fx$=new _.uC("playlistRemoveVideosAction");_.GWa=new _.uC("updatePlaylistAction");_.bC1=new _.uC("addToPlaylistCommand");_.pDv=new _.uC("endPlaylistCommand");_.ogc=new _.uC("recoverPlaylistCommand");_.jrc=new _.uC("refreshPlaylistCommand");_.IR$=new _.uC("refreshFormCommand");iCL=new _.uC("openOnePickAddVideoModalCommand");_.Gez=new _.uC("reloadContinuationItemsCommand");_.mXa=new _.uC("scrollToEngagementPanelCommand");var XD1=new _.uC("selectCountryCommand");var Tw1=new _.uC("showReloadUiCommand");var wD1=new _.uC("undoFeedbackAction");var AdL=new _.uC("updateButtonAction");var Qr9=new _.uC("updateSubscribeButtonAction");var MhX=new _.uC("updateToggleAction");var ZCM=new _.uC("webNativeShareCommand");_.XN=new _.uC("webCommandMetadata");_.Ej=new _.uC("webHandleServiceEndpointExtension");var K5v=new _.uC("webNavigationEndpointData");var OCI=new _.uC("backgroundAudioPlaybackCommand");var aRk=new _.uC("copyLinkCommand");var zdL=new _.uC("playlistVotingRefreshPopupCommand");var Nwv=new _.uC("selectChipCommand");var YrL=new _.uC("setCookieCommand");var xXX=new _.uC("setLocalStorageCommand");var edk=new _.uC("setPrefStorageEntryCommand");var Ega;_.qrM=new _.uC("settingsUpdateCheckboxCommand");_.hd$=new _.uC("settingsUpdateTextCommand");_.Srk=new _.uC("settingsUpdateOptionsCommand");Ega=new _.uC("settingsUpdateSwitchCommand");_.$X$=new _.uC("settingsUpdateConnectedAppRendererCommand");var WE1=new _.uC("updateTextInputFormFieldRendererCommand");var lvM=new _.uC("updateToggleButtonStateCommand");var VaB=new _.uC("updateUrlParamCommand");var fvZ=new _.uC("webSubmitFormCommand");var rUB=new _.uC("channelSwitcherPageRenderer"),RCL=new _.uC("updateChannelSwitcherPageAction");_.P0=new _.uC("continuationItemRenderer");_.$0=new _.uC("richItemRenderer");var taX=new _.uC("richSectionRenderer");_.s9X=new _.uC("richShelfRenderer");_.LEL=new _.uC("metadataBadgeRenderer");_.yUa=new _.uC("multiPageMenuNotificationSectionRenderer");_.g$k=new _.uC("playlistLoopButtonStateRenderer");var PCc=new _.uC("claimLegacyYoutubeChannelEndpoint");var n$I=new _.uC("getNotificationMenuEndpoint");var CCI=new _.uC("getSearchInVideoCommand");_.cUa=new _.uC("getTranscriptEndpoint");_.mA=new _.uC("signalServiceEndpoint");var BAL=new _.uC("verifyAgeEndpoint");var DUx=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(DUx,_.yP);DUx.prototype.getPath=function(){return _.aQ(this,1)};
DUx.prototype.getValue=function(){return _.aQ(this,2)};var d3v=[0,_.ge,-1];var JUI=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(JUI,_.yP);var J7g=_.v$(JUI,[0,_.CV,d3v]);var D3$=new _.uC("dismissalEndpoint");var U3e=new _.uC("elementsCommand");_.VY=new _.uC("innertubeCommand");var uZa=new _.uC("multipleInlinePlaybackCommand");var L5j=new _.uC("loggingDirectives");var krk=new _.uC("acknowledgeChannelTouStrikeCommand");var v$9=function(){q0.apply(this,arguments)};
_.v(v$9,q0);v$9.prototype.getAssociations=function(){return[]};
v$9.prototype.getTypeName=function(){return"booleanEntity"};var HiM=function(){q0.apply(this,arguments)};
_.v(HiM,q0);HiM.prototype.getAssociations=function(){return[]};
HiM.prototype.getTypeName=function(){return"stringEntity"};var Pp=new _.uC("entityBatchUpdate");_.KE9=new _.uC("entityUpdateCommand");var FEk=function(){q0.apply(this,arguments)};
_.v(FEk,q0);FEk.prototype.getAssociations=function(){var W=[];this.delegate.alternateChannel&&W.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&W.push.apply(W,_.QK(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&W.push(this.delegate.oneofChannelEntity);return[].concat(_.QK(new Set(W)))};
FEk.prototype.getTypeName=function(){return"fakeChannel"};var Gr$=function(){q0.apply(this,arguments)};
_.v(Gr$,q0);Gr$.prototype.getAssociations=function(){var W=[];this.delegate.entryCollection&&W.push(this.delegate.entryCollection);return[].concat(_.QK(new Set(W)))};
Gr$.prototype.getTypeName=function(){return"fakePlaylist"};
var biL=function(){q0.apply(this,arguments)};
_.v(biL,q0);biL.prototype.getAssociations=function(){var W=[];this.delegate.parentPlaylist&&W.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var l=_.L(this.delegate.entries),V=l.next();!V.done;V=l.next())W.push.apply(W,_.QK((new pdM(V.value)).getAssociations()));return[].concat(_.QK(new Set(W)))};
biL.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var pdM=function(){es.apply(this,arguments)};
_.v(pdM,es);pdM.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);return[].concat(_.QK(new Set(W)))};var o$L=function(){q0.apply(this,arguments)};
_.v(o$L,q0);o$L.prototype.getAssociations=function(){var W=[];this.delegate.descriptionEntity&&W.push(this.delegate.descriptionEntity);this.delegate.creators&&W.push.apply(W,_.QK(this.delegate.creators));this.delegate.theBiggestFan&&W.push(this.delegate.theBiggestFan);return[].concat(_.QK(new Set(W)))};
o$L.prototype.getTypeName=function(){return"fakeVideo"};
var j9X=function(){q0.apply(this,arguments)};
_.v(j9X,q0);j9X.prototype.getAssociations=function(){return[]};
j9X.prototype.getTypeName=function(){return"fakeVideoDescription"};var Iv9=new _.uC("fantasyRosterViewModel");var iiB=new _.uC("addFollowUpSurveyCommand");var m3M=new _.uC("getSurveyCommand");var Xdc=new _.uC("ratingSurveyOptionRenderer");_.NP=new _.uC("feedbackEndpoint");var TA$=new _.uC("reportHistoryTableCellRenderer"),wd$=new _.uC("reportHistoryTableTextCellRenderer"),AUc=new _.uC("reportHistoryTableReasonCellRenderer");_.Q9a=new _.uC("flagEndpoint");var MaM=new _.uC("getFlowCommand");var ZiB=new _.uC("submitFormWithValidationFlowCommand");var OiB=function(){q0.apply(this,arguments)};
_.v(OiB,q0);OiB.prototype.getAssociations=function(){return[]};
OiB.prototype.getTypeName=function(){return"flowStateEntity"};var avk=new _.uC("flowFormState");var zCM=new _.uC("gameCardRenderer");var NAc=new _.uC("accountLinkingStateChangedCommand");var YYL=function(){q0.apply(this,arguments)};
_.v(YYL,q0);YYL.prototype.getAssociations=function(){return[]};
YYL.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var x3a=new _.uC("changeMiniAppPlayStateCommand");var eCL=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(eCL,_.yP);var Wm=[1,2,3];var qYk=[0,Wm,inz,_.nV,GgJ];var hCB=_.v$(eCL,qYk),SYM=_.KM(qYk);var E$I=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(E$I,_.yP);var $3B=[0,_.re,_.ge];var W3k=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(W3k,_.yP);var lik=[0,_.ge,_.re,-1];var lO=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(lO,_.yP);var VNk=_.KM([0,1,$3B,_.Bs,lik]);var fiB=new _.uC("miniAppScoreChallengeViewModel");var rkv=new _.uC("miniGameCardViewModel");var R8X=new _.uC("teaserCardViewModel");var tNv=function(){q0.apply(this,arguments)};
_.v(tNv,q0);tNv.prototype.getAssociations=function(){return[]};
tNv.prototype.getTypeName=function(){return"logoEntity"};_.s3e=new _.uC("feedbackItemRenderer");var L3B=function(){q0.apply(this,arguments)};
_.v(L3B,q0);L3B.prototype.getAssociations=function(){return[]};
L3B.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.ykL=new _.uC("playerInterstitialRenderer");var gDB=new _.uC("getKidsBlocklistPickerCommand");_.PZ9=new _.uC("updateKidsBlacklistEndpoint");_.S$=new _.uC("likeEndpoint");var nDv,CZ9,ckv;nDv=new _.uC("addChatItemAction");CZ9=new _.uC("removeChatItemAction");ckv=new _.uC("markChatItemAsDeletedAction");_.BPk=new _.uC("setLiveChatCollapsedStateAction");var dVk=function(){q0.apply(this,arguments)};
_.v(dVk,q0);dVk.prototype.getAssociations=function(){return[]};
dVk.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var JkX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(JkX,_.yP);var DV1=[0,_.CV,[0,[1,2],_.nV,_.cs,[0,_.Ps,1,_.Ps]]];var UVX=[0,_.ge,-1];var ubZ=[0,[1],_.nV];var VB=[0,[1,2],_.nV,_.cs,[0,_.Bs]];var fE=[0,_.ge];var kXk=[0,[0,_.LV,_.sd,[0,_.Ps,_.de,_.Ps]],1,[0,_.LV]];var vD$=[0,Rn];var HzZ=[0,Rn];var K3L=[0,HzZ,vD$];var F3a=[0,_.CV,[0,[1,2],_.nV,-1],_.LV];var GXL=[0,[2],1,_.cs,[0,_.Ps,-1,F3a]];var bze=[0,[1],_.cs,[0,_.Ps,_.ge,_.de,1,F3a]];var pwX=[0,_.sd,-1,FoF,_.Bs];var oDa=[0,[0,fV,-3],-4];var rT=[0,_.LV,-3,_.ge,_.LV,_.Uf,_.LV,DV1,_.LV,-1];var RH=[0,_.CV,[0,[1,2],_.nV,-1],_.LV,_.ge];var j3L=[0,[3],VB,[0,[2,3,4],Mwn,_.nV,-2],_.cs,[0,_.ge],_.re];var Iia=[0,[3,5],_.ge,tI,_.cs,[0,1,_.re,_.Bs],_.Bs,_.cs,[0,_.Bs,_.re]];var izk=[0,2,tI,_.ge,-1];var mVk=[0,jK4];var XwL=[0,[3,4],2,bnz,_.nV,_.ge];var TPL=[0,_.Bs,-2,1,_.ge];var wwk=[0,_.ge,-1,_.Bs];var AkI=[0,fE,function(){return tJ},
fE,_.ge],Q3$=[0,_.Bs,fE,VB,function(){return tJ},
_.ge],tJ=[-159,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158],fE,tI,[0,_.LV,1,_.LV,1,_.LV,1,_.Bs,-1,fE],[0,1,_.LV,2,_.LV,_.Bs,_.LV],1,tI,-1,_.ge,tI,2,fV,[0,fV,tI],_.ge,1,kXk,1,VB,_.Uf,1,[0,[0,_.CV,[0,_.ge,_.LV,_.Bs]]],[0,_.LV,[0,_.re,[0,_.de]],_.re,1,[0,puU,-1]],_.ge,[0,1,_.ge],76,_.cs,[0,VB,RH,kXk,1,[0,_.CV,RH]],1,_.cs,[0,VB,_.ge,_.LV],_.cs,[0,
VB,ubZ],_.cs,[0,VB,ubZ,tI],_.cs,[0,VB,ubZ],_.cs,[0,VB,_.CV,fE,VB,mpU],_.cs,[0,VB,fE,_.ge],_.cs,[0,VB,_.LV,rT,-1,_.LV],4,_.cs,[0,VB,_.LV,tI,rT,_.LV],_.cs,[0,[4,9],VB,_.Bs,tI,_.nV,RH,1,kXk,_.ge,_.nV,TPL],_.cs,[0,VB,fE,VB,_.Bs,_.ge],_.cs,[0,_.LV,VB,rT,_.LV,_.ge],_.cs,[0,VB,fE,VB,_.Bs,_.ge],1,_.cs,[0,VB,_.Bs,_.ge,rT],_.cs,[0,VB,_.Bs,[0,_.ge,tI],_.ge,tI,_.ge,Afj,-2,3,wwk,_.CV,wwk,wwk,TPL],_.cs,[0,VB,_.Bs,bze,_.CV,[0,HzZ,GXL],fE,_.CV,K3L,_.ge,1,_.Bs,pwX,oDa,Kov,-1],_.cs,[0,VB,[0,_.de,-1,bze,_.CV,[0,HzZ,
GXL,vD$],[0,_.ul],1,_.Ps],fE,_.ge],_.cs,[0,VB,RH,_.ge,[0,_.sd]],_.cs,function(){return Q3$},
_.cs,[0,VB,tI,_.ge,-1,_.LV],_.cs,[0,[6,7],VB,_.CV,izk,_.Bs,RH,1,_.cs,XwL,_.cs,mVk],_.cs,[0,_.CV,izk,_.Bs,_.LV],_.cs,[0,_.ge,w4L,-1],_.cs,[0,fE,_.CV,K3L,_.ge],_.cs,[0,VB,fE,_.ge],_.cs,[0,Afj,_.ge],_.cs,[0,UVX],_.cs,[0,UVX],_.cs,[0,RH],_.cs,[0,fE,RH],_.cs,function(){return AkI},
_.cs,[0,fE,_.ge],_.cs,[0,fE,_.ge],1,_.cs,[0,_.LV,VB,rT,_.LV,rT],_.cs,[0,_.ul],1,_.cs,[0],1,_.cs,[0,fE,_.Bs,VB,_.Bs],_.cs,[0,[1,2],_.cs,XwL,_.cs,mVk,tI],_.cs,[0,_.ul,RH,Iia,_.ge,tI],_.cs,[0,Iia,_.ge,tI],_.cs,[0,pwX,RH,_.LV,oDa],_.cs,j3L,_.cs,[0],_.cs,[0,_.ge,-1,_.re],_.cs,[0,fE,_.ge],_.cs,[0,j3L,_.re,_.ge],_.cs,[0,VB,rT,_.LV],_.cs,[0,VB,rT,_.LV],_.cs,[0,pwX,oDa,RH,_.Uf,_.LV,Kov,-1]];var MN1=[0,_.CV,tJ];var Zz1=_.v$(JkX,[0,1,_.re,[0,[18,22,24],MN1,3,[0,MN1],1,_.re,[0,_.CV,[0,tI,fV],tI],1,tJ,-1,[0,_.yR,-2,_.Uf,_.yR,-1,_.Uf,_.yR,DV1,_.yR,-2],vnJ,[!0,_.ge,[0,ubZ,2,_.ge,tI,_.LV,2,_.ge,Afj]],[0,[1,2,3],[5,6],_.cs,[0,_.Ps],_.cs,[0,_.Ps,-1],_.cs,[0,_.Ps],1,_.cs,UVX,_.cs,[0,_.ge]],[0,tJ,-1],_.ul,tJ,_.cs,tJ,[0,MN1],_.re,tJ,_.cs,tJ,_.ge,_.cs,tJ]]);var OzZ=new _.uC("liveChatEndpoint");var aiI=new _.uC("liveChatItemContextMenuEndpoint");var z8c=new _.uC("liveChatReplayEndpoint");_.NPc=new _.uC("emojiPickerRenderer");var YsI=new _.uC("liveChatAuthorBadgeViewModel");var xVZ=new _.uC("deleteLiveChatMessageCommand");var e8M=new _.uC("liveChatActionEndpoint");var qsL=new _.uC("createLiveChatPollEndpoint");var h8I=new _.uC("manageLiveChatUserEndpoint");var Ssk=new _.uC("moderateLiveChatEndpoint");_.EDv=new _.uC("sendLiveChatMessageEndpoint");var $VI=new _.uC("sendLiveChatVoteEndpoint");var WpB=new _.uC("clearLocationCommand");var l3c=new _.uC("resolveLocationCommand");var VqI=new _.uC("interactionLoggingCommandMetadata");var f3M=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(f3M,_.yP);var ru1=function(W,l){return _.Jl(W,1,l)};var RiL=[0,_.LV];var tqe=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(tqe,_.yP);var sMc=function(W,l){return vq(W,1,f3M,l)};tqe.prototype.JSC$12177_serializeBinary=Mev([0,_.CV,RiL]);var pwY={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 Lpv={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"},
yuZ={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 eJn={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"};_.qN8=new _.uC("logFlowLoggingEventCommand");_.Ma=new _.uC("loggingContext");var g6L=new _.uC("audioTrackSelectActionCommand");var P9L=new _.uC("captionLanguageSelectActionCommand");var n69=new _.uC("showAudioTrackPickerActionCommand");var C9B=new _.uC("showCaptionLanguageSelectActionCommand");var cuB=new _.uC("dismissDialogEndpoint");var BkM=new _.uC("dismissPlayerOverlayCommand");var dN9=new _.uC("hideItemSectionVideosByIdCommand");var JuB=new _.uC("showMiniplayerCommand");var DN$=function(){q0.apply(this,arguments)};
_.v(DN$,q0);DN$.prototype.getAssociations=function(){return[]};
DN$.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var UN9=function(){q0.apply(this,arguments)};
_.v(UN9,q0);UN9.prototype.getAssociations=function(){return[]};
UN9.prototype.getTypeName=function(){return"downloadStatusEntity"};var uSe=function(){q0.apply(this,arguments)};
_.v(uSe,q0);uSe.prototype.getAssociations=function(){return[]};
uSe.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var kp1=function(){q0.apply(this,arguments)};
_.v(kp1,q0);kp1.prototype.getAssociations=function(){var W=[];this.delegate.downloadsList&&W.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&W.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&W.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&W.push(this.delegate.refresh);return[].concat(_.QK(new Set(W)))};
kp1.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var v6k=function(){q0.apply(this,arguments)};
_.v(v6k,q0);v6k.prototype.getAssociations=function(){var W=[];this.delegate.refresh&&W.push(this.delegate.refresh);if(this.delegate.downloads)for(var l=_.L(this.delegate.downloads),V=l.next();!V.done;V=l.next())W.push.apply(W,_.QK((new HdB(V.value)).getAssociations()));return[].concat(_.QK(new Set(W)))};
v6k.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var HdB=function(){es.apply(this,arguments)};
_.v(HdB,es);HdB.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);this.delegate.playlist&&W.push(this.delegate.playlist);this.delegate.videoItem&&W.push(this.delegate.videoItem);this.delegate.playlistItem&&W.push(this.delegate.playlistItem);return[].concat(_.QK(new Set(W)))};var KpZ=function(){q0.apply(this,arguments)};
_.v(KpZ,q0);KpZ.prototype.getAssociations=function(){var W=[];this.delegate.localImageEntities&&W.push.apply(W,_.QK(this.delegate.localImageEntities));return[].concat(_.QK(new Set(W)))};
KpZ.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var Fp9=function(){q0.apply(this,arguments)};
_.v(Fp9,q0);Fp9.prototype.getAssociations=function(){var W=[];this.delegate.playbackData&&W.push(this.delegate.playbackData);this.delegate.localImageEntities&&W.push.apply(W,_.QK(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.QK(new Set(W)))};
Fp9.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var Gpa=function(){q0.apply(this,arguments)};
_.v(Gpa,q0);Gpa.prototype.getAssociations=function(){return[]};
Gpa.prototype.getTypeName=function(){return"offlineabilityEntity"};var bdv=function(){q0.apply(this,arguments)};
_.v(bdv,q0);bdv.prototype.getAssociations=function(){var W=[];this.delegate.fakeChildren&&W.push.apply(W,_.QK(this.delegate.fakeChildren));return[].concat(_.QK(new Set(W)))};
bdv.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var pO1=function(){q0.apply(this,arguments)};
_.v(pO1,q0);pO1.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);this.delegate.playbackData&&W.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&W.push(this.delegate.offlineVideoPolicy);return[].concat(_.QK(new Set(W)))};
pO1.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var o6M=function(){q0.apply(this,arguments)};
_.v(o6M,q0);o6M.prototype.getAssociations=function(){return[]};
o6M.prototype.getTypeName=function(){return"continuationTokenEntity"};var jM9=function(){q0.apply(this,arguments)};
_.v(jM9,q0);jM9.prototype.getAssociations=function(){var W=[];this.delegate.channelOwner&&W.push(this.delegate.channelOwner);this.delegate.videos&&W.push.apply(W,_.QK(this.delegate.videos));this.delegate.collaboratorChannels&&W.push.apply(W,_.QK(this.delegate.collaboratorChannels));this.delegate.downloadState&&W.push(this.delegate.downloadState);this.delegate.refresh&&W.push(this.delegate.refresh);return[].concat(_.QK(new Set(W)))};
jM9.prototype.getTypeName=function(){return"mainPlaylistEntity"};var I3L=function(){q0.apply(this,arguments)};
_.v(I3L,q0);I3L.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);this.delegate.channelContributor&&W.push(this.delegate.channelContributor);return[].concat(_.QK(new Set(W)))};
I3L.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var ide=function(){es.apply(this,arguments)};
_.v(ide,es);ide.prototype.getAssociations=function(){var W=[];this.delegate.recommendedVideoMetadata&&W.push.apply(W,_.QK((new mNL(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.QK(new Set(W)))};
var mNL=function(){es.apply(this,arguments)};
_.v(mNL,es);mNL.prototype.getAssociations=function(){var W=[];this.delegate.localImageEntities&&W.push.apply(W,_.QK(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.QK(new Set(W)))};var XOa=function(){es.apply(this,arguments)};
_.v(XOa,es);XOa.prototype.getAssociations=function(){var W=[];this.delegate.playbackPosition&&W.push(this.delegate.playbackPosition);return[].concat(_.QK(new Set(W)))};var TkM=function(){q0.apply(this,arguments)};
_.v(TkM,q0);TkM.prototype.getAssociations=function(){var W=[];this.delegate.owner&&W.push(this.delegate.owner);this.delegate.downloadState&&W.push(this.delegate.downloadState);this.delegate.userState&&W.push.apply(W,_.QK((new XOa(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&W.push.apply(W,_.QK((new ide(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.QK(new Set(W)))};
TkM.prototype.getTypeName=function(){return"mainVideoEntity"};var wOk=function(){q0.apply(this,arguments)};
_.v(wOk,q0);wOk.prototype.getAssociations=function(){var W=[];this.delegate.userChannelDetails&&W.push(this.delegate.userChannelDetails);return[].concat(_.QK(new Set(W)))};
wOk.prototype.getTypeName=function(){return"ytMainChannelEntity"};var Auk=function(){q0.apply(this,arguments)};
_.v(Auk,q0);Auk.prototype.getAssociations=function(){var W=[];this.delegate.channelOwner&&W.push(this.delegate.channelOwner);this.delegate.playbackPosition&&W.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&W.push.apply(W,_.QK(this.delegate.localImageEntities));this.delegate.downloadStatus&&W.push(this.delegate.downloadStatus);return[].concat(_.QK(new Set(W)))};
Auk.prototype.getTypeName=function(){return"ytMainVideoEntity"};var koS=new _.uC("downloadsPageSmartDownloadsOptInBannerParams");var FVv=new _.uC("downloadsPageUpsellBannerParams");var QML=function(){q0.apply(this,arguments)};
_.v(QML,q0);QML.prototype.getAssociations=function(){return[]};
QML.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var MqI=function(){q0.apply(this,arguments)};
_.v(MqI,q0);MqI.prototype.getAssociations=function(){return[]};
MqI.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var ZdL=function(){q0.apply(this,arguments)};
_.v(ZdL,q0);ZdL.prototype.getAssociations=function(){return[]};
ZdL.prototype.getTypeName=function(){return"macroMarkerEntity"};var Od$=function(){q0.apply(this,arguments)};
_.v(Od$,q0);Od$.prototype.getAssociations=function(){return[]};
Od$.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var a3M=function(){q0.apply(this,arguments)};
_.v(a3M,q0);a3M.prototype.getAssociations=function(){return[]};
a3M.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var ziX=function(){q0.apply(this,arguments)};
_.v(ziX,q0);ziX.prototype.getAssociations=function(){return[]};
ziX.prototype.getTypeName=function(){return"playerStateEntity"};var Nkk=function(){q0.apply(this,arguments)};
_.v(Nkk,q0);Nkk.prototype.getAssociations=function(){return[]};
Nkk.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var Y2k=function(){q0.apply(this,arguments)};
_.v(Y2k,q0);Y2k.prototype.getAssociations=function(){return[]};
Y2k.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var xNe=function(){q0.apply(this,arguments)};
_.v(xNe,q0);xNe.prototype.getAssociations=function(){return[]};
xNe.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.sb=new _.uC("dislikeButtonViewModel");_.LE=new _.uC("likeButtonViewModel");var eie=new _.uC("videoSummaryContentViewModel");var q2X=new _.uC("videoSummaryParagraphViewModel");var hiL=new _.uC("changeTimelyActionVisibilityCommand");var S2a=new _.uC("hideEngagementPanelEndpoint");var E6Z=new _.uC("refreshPanelEndpoint");var $Nv=new _.uC("scrollToSectionEndpoint");var W9k=new _.uC("seekToVideoTimestampCommand");_.zk=new _.uC("showEngagementPanelEndpoint");var lu$=new _.uC("showTransientPlayerScrimOverlayCommand");var VsX=new _.uC("toggleEngagementPanelCommand");_.fuc=new _.uC("createBroadcastCommand");var rek=new _.uC("metadataUpdateCommand");var R5v=function(){q0.apply(this,arguments)};
_.v(R5v,q0);R5v.prototype.getAssociations=function(){return[]};
R5v.prototype.getTypeName=function(){return"featuredProductsEntity"};var tsI=function(){q0.apply(this,arguments)};
_.v(tsI,q0);tsI.prototype.getAssociations=function(){return[]};
tsI.prototype.getTypeName=function(){return"pinnedProductEntity"};var szk=function(){q0.apply(this,arguments)};
_.v(szk,q0);szk.prototype.getAssociations=function(){return[]};
szk.prototype.getTypeName=function(){return"trendingOfferEntity"};_.L9B=new _.uC("merchandiseShelfRenderer");var yeZ=new _.uC("gridMovieRenderer");_.g09=new _.uC("movieRenderer");var PGB=function(){q0.apply(this,arguments)};
_.v(PGB,q0);PGB.prototype.getAssociations=function(){var W=[];this.delegate.trackDownloadMetadatas&&W.push.apply(W,_.QK(this.delegate.trackDownloadMetadatas));return[].concat(_.QK(new Set(W)))};
PGB.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var n0B=function(){q0.apply(this,arguments)};
_.v(n0B,q0);
n0B.prototype.getAssociations=function(){var W=[];this.delegate.downloadedTracks&&W.push.apply(W,_.QK(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&W.push.apply(W,_.QK(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&W.push.apply(W,_.QK(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&W.push.apply(W,_.QK(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&W.push.apply(W,_.QK(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
W.push.apply(W,_.QK(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&W.push.apply(W,_.QK(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&W.push.apply(W,_.QK(this.delegate.metadataOnlyTracks));return[].concat(_.QK(new Set(W)))};
n0B.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var CGa=function(){q0.apply(this,arguments)};
_.v(CGa,q0);CGa.prototype.getAssociations=function(){var W=[];this.delegate.trackDownloadMetadatas&&W.push.apply(W,_.QK(this.delegate.trackDownloadMetadatas));return[].concat(_.QK(new Set(W)))};
CGa.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var cea=function(){q0.apply(this,arguments)};
_.v(cea,q0);cea.prototype.getAssociations=function(){var W=[];this.delegate.playbackData&&W.push(this.delegate.playbackData);this.delegate.localImageEntities&&W.push.apply(W,_.QK(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.QK(new Set(W)))};
cea.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var Bt1=function(){q0.apply(this,arguments)};
_.v(Bt1,q0);
Bt1.prototype.getAssociations=function(){var W=[];this.delegate.musicLibraryStatusEntity&&W.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&W.push.apply(W,_.QK(this.delegate.primaryArtists));this.delegate.details&&W.push(this.delegate.details);this.delegate.userDetails&&W.push(this.delegate.userDetails);this.delegate.tracks&&W.push.apply(W,_.QK(this.delegate.tracks));this.delegate.share&&W.push(this.delegate.share);this.delegate.downloadMetadata&&W.push(this.delegate.downloadMetadata);this.delegate.refresh&&
W.push(this.delegate.refresh);return[].concat(_.QK(new Set(W)))};
Bt1.prototype.getTypeName=function(){return"musicAlbumRelease"};
var d0a=function(){q0.apply(this,arguments)};
_.v(d0a,q0);d0a.prototype.getAssociations=function(){var W=[];this.delegate.albumRelease&&W.push(this.delegate.albumRelease);this.delegate.tracks&&W.push.apply(W,_.QK(this.delegate.tracks));return[].concat(_.QK(new Set(W)))};
d0a.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var Je$=function(){q0.apply(this,arguments)};
_.v(Je$,q0);Je$.prototype.getAssociations=function(){var W=[];this.delegate.albumRelease&&W.push(this.delegate.albumRelease);return[].concat(_.QK(new Set(W)))};
Je$.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var D0L=function(){q0.apply(this,arguments)};
_.v(D0L,q0);D0L.prototype.getAssociations=function(){var W=[];this.delegate.details&&W.push(this.delegate.details);this.delegate.userDetails&&W.push(this.delegate.userDetails);return[].concat(_.QK(new Set(W)))};
D0L.prototype.getTypeName=function(){return"musicArtist"};
var U0k=function(){q0.apply(this,arguments)};
_.v(U0k,q0);U0k.prototype.getAssociations=function(){var W=[];this.delegate.parentArtist&&W.push(this.delegate.parentArtist);return[].concat(_.QK(new Set(W)))};
U0k.prototype.getTypeName=function(){return"musicArtistDetail"};
var u5e=function(){q0.apply(this,arguments)};
_.v(u5e,q0);u5e.prototype.getAssociations=function(){var W=[];this.delegate.parentArtist&&W.push(this.delegate.parentArtist);return[].concat(_.QK(new Set(W)))};
u5e.prototype.getTypeName=function(){return"musicArtistUserDetail"};var kfM=function(){q0.apply(this,arguments)};
_.v(kfM,q0);kfM.prototype.getAssociations=function(){return[]};
kfM.prototype.getTypeName=function(){return"musicLibraryEdit"};var v0$=function(){q0.apply(this,arguments)};
_.v(v0$,q0);v0$.prototype.getAssociations=function(){return[]};
v0$.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var HBM=function(){q0.apply(this,arguments)};
_.v(HBM,q0);
HBM.prototype.getAssociations=function(){var W=[];this.delegate.tracks&&W.push.apply(W,_.QK(this.delegate.tracks));this.delegate.refresh&&W.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&W.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&W.push(this.delegate.details);this.delegate.downloadMetadata&&W.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&W.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&W.push(this.delegate.userDetails);this.delegate.entryCollection&&
W.push(this.delegate.entryCollection);this.delegate.share&&W.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&W.push.apply(W,_.QK((new K9L(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.QK(new Set(W)))};
HBM.prototype.getTypeName=function(){return"musicPlaylist"};
var K9L=function(){es.apply(this,arguments)};
_.v(K9L,es);K9L.prototype.getAssociations=function(){var W=[];this.delegate.creatorEntity&&W.push(this.delegate.creatorEntity);return[].concat(_.QK(new Set(W)))};var F9L=function(){q0.apply(this,arguments)};
_.v(F9L,q0);F9L.prototype.getAssociations=function(){return[]};
F9L.prototype.getTypeName=function(){return"musicShare"};var GfL=function(){q0.apply(this,arguments)};
_.v(GfL,q0);
GfL.prototype.getAssociations=function(){var W=[];this.delegate.musicLibraryStatusEntity&&W.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&W.push.apply(W,_.QK(this.delegate.artists));this.delegate.audioModeVersion&&W.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&W.push(this.delegate.videoModeVersion);this.delegate.userDetails&&W.push(this.delegate.userDetails);this.delegate.details&&W.push(this.delegate.details);this.delegate.albumRelease&&W.push(this.delegate.albumRelease);this.delegate.share&&
W.push(this.delegate.share);this.delegate.libraryEdit&&W.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&W.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&W.push(this.delegate.playbackPosition);this.delegate.lyrics&&W.push(this.delegate.lyrics);return[].concat(_.QK(new Set(W)))};
GfL.prototype.getTypeName=function(){return"musicTrack"};
var bBB=function(){q0.apply(this,arguments)};
_.v(bBB,q0);bBB.prototype.getAssociations=function(){var W=[];this.delegate.parentTrack&&W.push(this.delegate.parentTrack);return[].concat(_.QK(new Set(W)))};
bBB.prototype.getTypeName=function(){return"musicTrackDetail"};
var po1=function(){q0.apply(this,arguments)};
_.v(po1,q0);po1.prototype.getAssociations=function(){var W=[];this.delegate.parentTrack&&W.push(this.delegate.parentTrack);return[].concat(_.QK(new Set(W)))};
po1.prototype.getTypeName=function(){return"musicTrackUserDetail"};var sH=new _.uC("musicResponsiveListItemRenderer");var jCn=new _.uC("addToPlaylistEndpoint");var o0Z=new _.uC("captionPickerEndpoint");var jzk=new _.uC("suggestStats");var IuX=new _.uC("backstageImageUploadEndpoint");var iBk=new _.uC("createBackstagePostDialogEndpoint");_.m0I=new _.uC("createCommentReplyDialogEndpoint");_.Xoa=new _.uC("updateCommentDialogEndpoint");_.TtZ=new _.uC("updateCommentReplyDialogEndpoint");var woL=new _.uC("menuEndpoint");var knS=new _.uC("modalEndpoint");var Aee=new _.uC("playlistEditorEndpoint");var Qz$=new _.uC("copyTextEndpoint");var MsX,ZBv;MsX=new _.uC("shareEndpoint");ZBv=new _.uC("shareEntityEndpoint");_.OBI=new _.uC("shareEntityServiceEndpoint");_.J_z=new _.uC("userFeedbackEndpoint");_.Bh=new _.uC("watchEndpoint");var rq8=new _.uC("watchPlaylistEndpoint");var auL=new _.uC("addUpcomingEventReminderEndpoint");_.yB=new _.uC("getCommentsFromInboxCommand");var z5c=new _.uC("notificationOptOutEndpoint");var NtI=new _.uC("recordNotificationInteractionsEndpoint");var Yjk=new _.uC("removeUpcomingEventReminderEndpoint");var pJ6=new _.uC("getDownloadActionCommand");_.x0X=new _.uC("offlineOrchestrationActionCommand");var e5X=function(){q0.apply(this,arguments)};
_.v(e5X,q0);e5X.prototype.getAssociations=function(){return[]};
e5X.prototype.getTypeName=function(){return"captionTrack"};var qj9=function(){q0.apply(this,arguments)};
_.v(qj9,q0);qj9.prototype.getAssociations=function(){return[]};
qj9.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var h5v=function(){q0.apply(this,arguments)};
_.v(h5v,q0);h5v.prototype.getAssociations=function(){return[]};
h5v.prototype.getTypeName=function(){return"offlineVideoPolicy"};var SjL=function(){q0.apply(this,arguments)};
_.v(SjL,q0);SjL.prototype.getAssociations=function(){return[]};
SjL.prototype.getTypeName=function(){return"offlineVideoStreams"};var E09=function(){q0.apply(this,arguments)};
_.v(E09,q0);E09.prototype.getAssociations=function(){var W=[];this.delegate.transfer&&W.push(this.delegate.transfer);this.delegate.adsPlaybackData&&W.push.apply(W,_.QK(this.delegate.adsPlaybackData));this.delegate.drmLicense&&W.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&W.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.QK(new Set(W)))};
E09.prototype.getTypeName=function(){return"playbackData"};var $0a=function(){q0.apply(this,arguments)};
_.v($0a,q0);$0a.prototype.getAssociations=function(){return[]};
$0a.prototype.getTypeName=function(){return"refresh"};var Wmk=function(){q0.apply(this,arguments)};
_.v(Wmk,q0);Wmk.prototype.getAssociations=function(){var W=[];this.delegate.offlineVideoStreams&&W.push.apply(W,_.QK(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&W.push.apply(W,_.QK(this.delegate.captionTrack));return[].concat(_.QK(new Set(W)))};
Wmk.prototype.getTypeName=function(){return"transfer"};var lkc=function(){q0.apply(this,arguments)};
_.v(lkc,q0);lkc.prototype.getAssociations=function(){return[]};
lkc.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var Vb9=new _.uC("showMoreDrawerCommand");var fkM=new _.uC("updateEngagementPanelContentCommand");var rJa=new _.uC("getPdgBuyFlowCommand");var R1k=new _.uC("liveChatPurchaseMessageEndpoint");var tbk=new _.uC("openSuperStickerBuyFlowCommand");var sH9=new _.uC("updatePdgFeatureEnablementCommand");var LmI=function(){q0.apply(this,arguments)};
_.v(LmI,q0);LmI.prototype.getAssociations=function(){return[]};
LmI.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var yJk=function(){q0.apply(this,arguments)};
_.v(yJk,q0);yJk.prototype.getAssociations=function(){return[]};
yJk.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.gQM=new _.uC("pdgCommentChipRenderer");_.POe=new _.uC("permissionRoleBottomBarRenderer");_.nQM=new _.uC("updatePermissionRoleCommand");var COv=new _.uC("prefetchWatchCommand");var cJk=new _.uC("updatePlayerErrorMessageCommand");var keF=new _.uC("toggleCaptionsVisibilityCommand");_.BTe=new _.uC("quickActionsViewModel");var dlk=new _.uC("playerResponse");var JJ$=new _.uC("playlistRenderer");_.DlL=new _.uC("playlistVideoListRenderer");_.gT=new _.uC("playlistEditEndpoint");var UlX=new _.uC("createImagePollCommand");var u6k=new _.uC("createQuizCommand");var kPL=new _.uC("quizRenderer");var vQX=new _.uC("uploadedVideoRenderer");var HEv=new _.uC("decorateMessageEndpoint");var Km$=new _.uC("lpOfferCardOptionViewModel");var Fmk=new _.uC("sfvAudioItemPlaybackCommand");var GPI=function(){q0.apply(this,arguments)};
_.v(GPI,q0);GPI.prototype.getAssociations=function(){return[]};
GPI.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.Pm=new _.uC("reelNonVideoContentEndpoint");_.N$=new _.uC("reelWatchEndpoint");_.nE=new _.uC("reelItemRenderer");_.bE$=new _.uC("reelMetapanelViewModel");_.pm9=new _.uC("reelNonVideoContentRenderer");_.oQc=new _.uC("reelPlayerOverlayRenderer");var jHZ=new _.uC("shortsLockupViewModel");var Ikc=new _.uC("sponsorButtonViewModel");var iEX=new _.uC("reelItemWatchResponse");var ml1=new _.uC("textBadgeRenderer");_.CE=new _.uC("buttonRenderer");_.cm=new _.uC("toggleButtonRenderer");var ojz=new _.uC("switchButtonViewModel");_.Xme=new _.uC("confirmDialogRenderer");var TTL;TTL=new _.uC("menuRenderer");_.wmL=new _.uC("menuFlexibleItemRenderer");var AJZ=new _.uC("pollRenderer");_.QH9=new _.uC("backgroundPromoRenderer");var ZE$;_.MbL=new _.uC("chipCloudRenderer");ZE$=new _.uC("chipCloudChipRenderer");var OEL=new _.uC("dropdownRenderer");var akL=new _.uC("gridVideoRenderer");_.z1e=new _.uC("itemSectionRenderer");_.NTe=new _.uC("messageRenderer");var Ybc=new _.uC("sortFilterHeaderRenderer");_.Bm=new _.uC("videoRenderer");var xlI=new _.uC("resolveUrlCommandMetadata");var e1X=function(){q0.apply(this,arguments)};
_.v(e1X,q0);e1X.prototype.getAssociations=function(){return[]};
e1X.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.qbX=new _.uC("getAnswerCommand");_.Om=new _.uC("searchEndpoint");var h1B=new _.uC("genAiRichTextViewModel");var bl8=new _.uC("overviewAnswerViewModel");var Sb$=new _.uC("videoOverviewViewModel");var EQI=new _.uC("addToPlaylistServiceEndpoint");var $lv=new _.uC("clearSearchHistoryEndpoint");var WVL=new _.uC("clearWatchHistoryEndpoint");var lIa=new _.uC("webSerializedServiceEndpointExtension");_.V7k=new _.uC("createCommentEndpoint");var fIe=new _.uC("createCommentReplyEndpoint");var rzM=new _.uC("performCommentActionEndpoint");var Rmv=new _.uC("updateCommentEndpoint");var t7k=new _.uC("updateCommentReplyEndpoint");_.dT=new _.uC("createPlaylistServiceEndpoint");var sBB=new _.uC("deletePlaylistEndpoint");var LV9=new _.uC("deleteVideoEndpoint");var oXn=new _.uC("getReportFormEndpoint");var yza=new _.uC("modifyChannelNotificationPreferenceEndpoint");var YWY;_.TY=new _.uC("offlinePlaylistEndpoint");YWY={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 xmz;_.Xx=new _.uC("offlineVideoEndpoint");xmz={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 gCZ=new _.uC("pingingEndpoint");_.PLL=new _.uC("selectActiveIdentityEndpoint");var nCM=new _.uC("setSettingEndpoint");var I28=new _.uC("undoFeedbackEndpoint");var CL1=new _.uC("unsubscribeEndpoint");_.czB=new _.uC("updatedMetadataEndpoint");var BZ9=function(){q0.apply(this,arguments)};
_.v(BZ9,q0);BZ9.prototype.getAssociations=function(){return[]};
BZ9.prototype.getTypeName=function(){return"settingEntity"};_.d5M=new _.uC("updateLocalAppSettingCommand");var JzX=new _.uC("saveImageToDeviceEndpoint");var D5L=new _.uC("shareImageCommand");var U5k=new _.uC("sharingProviderDataCommand");var uU1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(uU1,_.yP);var koL=[0,_.ge,-1];uU1.prototype.JSC$12378_serializeBinary=Mev(koL);var vCk=_.KM(koL);var H6e=new _.uC("userMentionSuggestionRenderer");var KVv=new _.uC("liveChatTunnelCommand");var FVL=new _.uC("showSponsorshipsGiftOfferDialogCommand");var GoI=new _.uC("sponsorshipsScrollableShelfViewModel");var ISc=new _.uC("updateUpcomingEventReminderButtonStateCommand");var iAM=new _.uC("upcomingEventReminderButtonStateRenderer");var mqc=new _.uC("subscribeEndpoint");var XLk=new _.uC("registerTasksCommand");var TYZ=new _.uC("hideSnackbarCommand");var wLL=new _.uC("showDialogCommand");_.Zy=new _.uC("showSheetCommand");var Apv=new _.uC("showSnackbarCommand");var Qka=function(){q0.apply(this,arguments)};
_.v(Qka,q0);Qka.prototype.getAssociations=function(){return[]};
Qka.prototype.getTypeName=function(){return"chipEntity"};var MXk=function(){q0.apply(this,arguments)};
_.v(MXk,q0);MXk.prototype.getAssociations=function(){return[]};
MXk.prototype.getTypeName=function(){return"dismissState"};_.$w=new _.uC("avatarViewModel");var ZA9=new _.uC("badgeViewModel");_.JJ=new _.uC("buttonViewModel");_.Dk=new _.uC("chipViewModel");var Oy8=new _.uC("collectionThumbnailViewModel");var OAv=new _.uC("contentPreviewImageViewModel");var aSI=new _.uC("decoratedAvatarViewModel");_.mUz=new _.uC("engagementBarViewModel");_.zlL=new _.uC("imageBannerViewModel");var NYc=new _.uC("lockupContentMetadataRowExtension");_.Yqv=new _.uC("lockupMetadataViewModel");_.xqZ=new _.uC("lockupViewModel");var elv=new _.uC("avatarStackViewModel");_.qqk=new _.uC("contentMetadataViewModel");var hlZ=function(){q0.apply(this,arguments)};
_.v(hlZ,q0);hlZ.prototype.getAssociations=function(){return[]};
hlZ.prototype.getTypeName=function(){return"pageHeaderEntity"};_.SqI=new _.uC("pageHeaderViewModel");var ErZ=new _.uC("snackbarViewModel");var $qL=new _.uC("thumbnailHoverOverlayToggleActionsViewModel");_.Ub=new _.uC("toggleButtonViewModel");var WT9=function(){q0.apply(this,arguments)};
_.v(WT9,q0);WT9.prototype.getAssociations=function(){return[]};
WT9.prototype.getTypeName=function(){return"votingEntity"};_.Xzn=new _.uC("votingViewModel");var lPX=new _.uC("sectionHeaderViewModel");var V6L=new _.uC("notifyDropdownOptionSelectedCommand");var rcz=new _.uC("listViewModel");_.O_=new _.uC("listItemViewModel");var Zyj=new _.uC("toggleableListItemViewModel");var fPI=new _.uC("dialogHeaderViewModel");var rP9=function(){q0.apply(this,arguments)};
_.v(rP9,q0);rP9.prototype.getAssociations=function(){return[]};
rP9.prototype.getTypeName=function(){return"dataFreshnessEntity"};var co8=new _.uC("suspenseViewModel");var RfX=function(){q0.apply(this,arguments)};
_.v(RfX,q0);RfX.prototype.getAssociations=function(){return[]};
RfX.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var t6X=function(){q0.apply(this,arguments)};
_.v(t6X,q0);t6X.prototype.getAssociations=function(){return[]};
t6X.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var s8L=function(){q0.apply(this,arguments)};
_.v(s8L,q0);s8L.prototype.getAssociations=function(){return[]};
s8L.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.LTa=new _.uC("transcriptSubmitCaptionCorrectionCommand");var yPv=function(){q0.apply(this,arguments)};
_.v(yPv,q0);yPv.prototype.getAssociations=function(){return[]};
yPv.prototype.getTypeName=function(){return"buttonEntity"};var y3S=new _.uC("unpluggedStringRunImage");var gIc=new _.uC("tabViewModel");var P5B=new _.uC("tabbedViewModel");var nIL=function(){q0.apply(this,arguments)};
_.v(nIL,q0);nIL.prototype.getAssociations=function(){return[]};
nIL.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.C5L=new _.uC("updateDescriptionAction");var cPa=new _.uC("updateToggleButtonTextAction");_.ByZ=new _.uC("autoplaySwitchButtonRenderer");var el;_.dDa=new _.uC("multiMarkersPlayerBarRenderer");el=new _.uC("chapterRenderer");var JPI=new _.uC("heatMarkerRenderer");var a2z=new _.uC("heatmapRenderer");var DDk=new _.uC("smartSkipPlayerScrimOverlayRenderer");var UDc=new _.uC("timedMarkerDecorationRenderer");var u86=new _.uC("postWebToNativeMessageCommand");var x1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(x1,_.yP);x1.prototype.getMethodName=function(){return _.aQ(this,1)};var ujB=[0,_.ge,-2];x1.prototype.JSC$12400_serializeBinary=Mev(ujB);var kD1=_.v$(x1,ujB);var vIa=new _.uC("whitelistEditEndpoint");var HfB=new _.uC("clearUrlParamCommand");var KT1=new _.uC("commerceActionCommand");_.FTe=new _.uC("getPaymentInstrumentsParamsCommand");var GDa=new _.uC("getPaymentsClientTokenCommand");var bfB=new _.uC("googlePaymentBillingCommand");var pBB=new _.uC("googlePaymentPurchaseManagerCommand");_.oIB=new _.uC("logGtmCommand");var j8c=new _.uC("updateCardItemOnClickCommand");_.IPc=new _.uC("ypcPauseSubscriptionCommand");_.ifX=new _.uC("ypcResumeSubscriptionCommand");var mD9=function(){q0.apply(this,arguments)};
_.v(mD9,q0);mD9.prototype.getAssociations=function(){return[]};
mD9.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var XBM=function(){q0.apply(this,arguments)};
_.v(XBM,q0);XBM.prototype.getAssociations=function(){return[]};
XBM.prototype.getTypeName=function(){return"commerceCartListEntity"};var TyM=function(){q0.apply(this,arguments)};
_.v(TyM,q0);TyM.prototype.getAssociations=function(){return[]};
TyM.prototype.getTypeName=function(){return"iconBadgeEntity"};var wBB=function(){q0.apply(this,arguments)};
_.v(wBB,q0);wBB.prototype.getAssociations=function(){return[]};
wBB.prototype.getTypeName=function(){return"pdpStateEntity"};var APc=function(){q0.apply(this,arguments)};
_.v(APc,q0);APc.prototype.getAssociations=function(){return[]};
APc.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var n5U=new _.uC("ypcOffersEndpoint");var Q8B=new _.uC("cardItemRenderer"),M6L=new _.uC("cardItemTextRenderer");var ZfM=new _.uC("commerceCartItemQuantityPickerRenderer");var Ofe=new _.uC("linkCardRenderer");var cw8=new _.uC("quantityIncrementerButtonViewModel");var aPZ=new _.uC("quantityIncrementerViewModel");var zfZ=new _.uC("themedImageViewModel");_.Ny$=new _.uC("ypcCancelRecurrenceEndpoint");var YB1=new _.uC("ypcCompleteTransactionEndpoint");_.xDk=new _.uC("ypcGetCartEndpoint");_.Pf=new _.uC("ypcGetOffersEndpoint");_.uO=new _.uC("ypcHandleTransactionEndpoint");var efZ=new _.uC("ypcLogWalletAnalyticDataEndpoint");_.qBZ=new _.uC("ypcRedeemCodeEndpoint");var hfX=new _.uC("ypcUpdateFopEndpoint");bG(Gf(1),KB(4));cxI((new MessageChannel).port2);var SBc=function(){this.register=new Map},j3S=function(W,l,V){W=W+"_"+l;
kQ.register.has(W)?V=kQ.register.get(W):(V=V(),kQ.register.set(W,V));return V},EIM=function(W){W=_.L(W.register.values());
for(var l=W.next();!l.done;l=W.next())_.v0(l.value,"ABORTED")};
SBc.prototype.clear=function(){EIM(this);this.register.clear()};
var kQ=new SBc;var gDF=Date.now().toString();var CZn=nDU();var kX8={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 $D$,EC;$D$=1;EC=function(W){this.veData=W};
_.zG=function(W){return new EC({trackingParams:W})};
_.GY=function(W,l,V,f,r,R){var y=$D$++;return new EC({veType:W,veCounter:y,elementIndex:V,dataElement:l,youtubeData:f,jspbYoutubeData:r,loggingDirectives:R})};
_.t=EC.prototype;
_.t.getAsJson=function(){var W={};this.veData.trackingParams!==void 0?W.trackingParams=this.veData.trackingParams:(W.veType=this.veData.veType,this.veData.veCounter!==void 0&&(W.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(W.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(W.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(W.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(W.isCounterfactual=!0);
return W};
_.t.getAsJspb=function(){var W=new ijX;this.veData.trackingParams!==void 0?W.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.eP(W,2,this.veData.veType),this.veData.veCounter!==void 0&&_.eP(W,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.eP(W,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Jl(W,5,!0));if(this.veData.dataElement!==void 0){var l=this.veData.dataElement.getAsJspb();_.b7(W,7,l)}this.veData.youtubeData!==void 0&&_.b7(W,8,this.veData.jspbYoutubeData);
return W};
_.t.toString=function(){return JSON.stringify(this.getAsJson())};
_.t.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.t.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.fR("yt_logging_screen.getRootVeType",DVg);_.fR("yt_logging_screen.getCurrentCsn",_.Wh);_.fR("yt_logging_screen.getCttAuthInfo",lj);_.fR("yt_logging_screen.setCurrentScreen",_.VW);var W4L=function(){this.events=new Map},lXL=function(W){var l=[];
W=_.L(W.events.values());for(var V=W.next();!V.done;V=W.next())l.push(V.value);return l};
W4L.prototype.clear=function(){this.events.clear()};var fXc=function(){this.logTransport=new VKL;this.loggedEventRegister=new W4L;this.unloggedEventRegister=new W4L;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12437_flushTimer=new _.Pj(this.flushInterval);this.JSC$12437_flushTimer.listen("tick",this.flush,!1,this)};
fXc.prototype.flush=function(){if(this.eventsCount){var W={loggedEvents:lXL(this.loggedEventRegister),unloggedEvents:lXL(this.unloggedEventRegister)};if(_.U("export_player_version_to_ytconfig")){var l;(l=_.M4("PLAYER_CLIENT_VERSION"))?(l=l.split("-")[0].replace(/\./g,""),l=isNaN(Number(l))?"0":l):l="";var V=_.M4("PLAYER_CLIENT_VERSION");if(V){V=V.split("-");var f="";V.length>1&&(f=V[V.length-1]);V=ykS(f.startsWith("canary_experiment")?"canary":f.startsWith("canary_control")?"control":"none")}else V=
"CLIENT_CANARY_STATE_UNKNOWN";W.dimensions={playerClientVersion:l,playerCanaryState:V}}this.logTransport.flush(W);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12437_flushTimer.enabled&&this.JSC$12437_flushTimer.stop()}};
var rM$=function(W){Hm==null&&(Hm=new fXc);var l=Hm;var V=l.loggedEventRegister;W.dimensions=W.dimensions||{};W.dimensions.csn=_.Wh()||"";var f=K3v(W.dimensions).join(";");if(W.records!=null)if(V.events.has(f)){var r;(r=V.events.get(f).records)==null||r.push.apply(r,_.QK(W.records))}else V.events.set(f,W);l.JSC$12437_flushTimer.enabled||l.JSC$12437_flushTimer.start();l.eventsCount++;l.eventsCount>=100&&l.flush()};var VKL=function(){};
VKL.prototype.flush=function(W,l){_.U("enable_client_sli_logging")&&_.XC("sliEventBatch",W,{sendIsolatedPayload:!!l})};var Hm;var tKI;tKI=function(W){var l=RnZ;W=W===void 0?{}:W;l=l.name;var V=oD6("SUCCESS");rM$({dimensions:W,records:[{name:l,state:"SLI_STATE_END",status:V}]})};
_.Ii6=function(W,l,V,f){this.name=W;this.sliId=l;this.timeoutMs=V;this.statusOnTimeout=f;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.Ii6.prototype.getId=function(){return this.sliId};
_.kP=function(W,l){l=l===void 0?{}:l;W.ongoing||(W.ongoing=!0,W.dimensions=l,W.logSliId=CEI(),rM$({dimensions:W.dimensions,records:[{name:W.name,state:"SLI_STATE_START",sliId:W.logSliId}]}),W.timeoutMs>0&&(W.timeoutHandle=setTimeout(function(){_.v0(W,W.statusOnTimeout)},W.timeoutMs)))};
_.v0=function(W,l){W.ongoing&&(W.timeoutMs>0&&clearTimeout(W.timeoutHandle),W.ongoing=!1,l={dimensions:W.dimensions,records:[{name:W.name,status:oD6(l),state:"SLI_STATE_END",sliId:W.logSliId}]},kQ.register.delete(W.name+"_"+W.sliId),rM$(l))};var RnZ=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var sRL=function(){q0.apply(this,arguments)};
_.v(sRL,q0);sRL.prototype.getAssociations=function(){return[]};
sRL.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var Yav=new _.uC("highlightTextDecoratorColorMapExtension");var z3q=new _.uC("styleRunColorMapExtension");var Q34=_.tj(["data-"]),Ozx={};var z8z={};var KE=function(W){this.wrappedPromise_=W===void 0?null:W;this.state_=0;this.JSC$12469_value_=null};
KE.prototype.then=function(W,l,V){return this.wrappedPromise_?this.wrappedPromise_.then(W,l,V):this.state_===1&&W?(W=W.call(V,this.JSC$12469_value_))&&typeof W.then==="function"?W:_.F6(W):this.state_===2&&l?(W=l.call(V,this.JSC$12469_value_))&&typeof W.then==="function"?W:_.L4k(W):this};
KE.prototype.getValue=function(){return this.JSC$12469_value_};
KE.prototype.isRejected=function(){return this.state_==2};
oN1(KE);_.L4k=function(W){var l=new KE;W=W===void 0?null:W;l.state_=2;l.JSC$12469_value_=W===void 0?null:W;return l};
_.F6=function(W){var l=new KE;W=W===void 0?null:W;l.state_=1;l.JSC$12469_value_=W===void 0?null:W;return l};var Riv="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var yMk=["load","abort","error"],GP=function(W,l,V){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12489_maxAspectRatio_=W;this.disableAnimation_=l===void 0?!1:l;this.disableExifRotation_=V===void 0?!1:V;this.JSC$12489_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12489_reject_=this.resolve_=null};
GP.prototype.transform=function(W){var l=this;this.mime_=W.type;cD(m6M(W),this.dataUrlRead_,this.readError_,this);cD(iGv(W.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(V,f){l.resolve_=V;l.JSC$12489_reject_=f})};
GP.prototype.dataUrlRead_=function(W){this.dataUrl_=W;this.angle_!=null&&gMB(this)};
GP.prototype.exifRead_=function(W){if(this.disableExifRotation_)this.angle_=0;else{a:if(W=new DataView(W),W.byteLength<2||W.getUint16(0)!==65496)W=-2;else{for(var l=2,V=W.byteLength;l<V;){var f=W.getUint16(l),r=W.getUint16(l+2);if(f===65505){l+=4;f=W.getUint32(l);r=W.getUint16(l+4);if(f!==1165519206||r!==0)break;l+=6;f=W.getUint16(l)===18761;l+=W.getUint32(l+4,f);r=W.getUint16(l,f);l+=2;for(var R=0;R<r;R++){if(W.getUint16(l,f)===274){l+=8;W=W.getUint16(l,f);break a}l+=12}}else if(f>>8!==255)break;
else l+=r+2}W=-1}switch(W){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&&gMB(this)};
GP.prototype.readError_=function(){this.JSC$12489_reject_()};
var gMB=function(W){OU(W.JSC$12489_image_,yMk,W.completeTransform_,!1,W);W.JSC$12489_image_.src=_.NI(W.dataUrl_).toString();W.JSC$12489_image_.src!=zI.toString()&&W.JSC$12489_image_.src.substr(0,11)==="data:image/"||W.JSC$12489_reject_()};
GP.prototype.completeTransform_=function(){if(this.JSC$12489_image_.src!=zI.toString()){var W=_.NI(this.dataUrl_),l=this.JSC$12489_image_.naturalHeight?this.JSC$12489_image_.naturalWidth/this.JSC$12489_image_.naturalHeight:null;this.invalidAspectRatio=l>this.JSC$12489_maxAspectRatio_||l<1/this.JSC$12489_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var V=this.JSC$12489_image_.naturalWidth,f=this.JSC$12489_image_.naturalHeight,r=l=0,R=this.JSC$12489_image_.naturalHeight?this.JSC$12489_image_.naturalWidth/
this.JSC$12489_image_.naturalHeight:null;R>this.JSC$12489_maxAspectRatio_?(V=this.JSC$12489_maxAspectRatio_*f,l=(V-this.JSC$12489_image_.naturalWidth)/2,this.cropped=!0):R<1/this.JSC$12489_maxAspectRatio_?(f=this.JSC$12489_maxAspectRatio_*V,r=(f-this.JSC$12489_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)R=V,V=f,f=R,R=l,l=r,r=R;switch(this.angle_){case 90:r-=V;break;case 180:l-=V;r-=f;break;case 270:l-=
f}this.cropped||this.angle_%360!==0?(W=document.createElement("canvas"),W.width=V||1,W.height=f||1,this.JSC$12489_image_.naturalWidth&&this.JSC$12489_image_.naturalHeight&&(V=W.getContext("2d"),V.rotate(Math.PI/180*this.angle_),V.drawImage(this.JSC$12489_image_,l,r,this.JSC$12489_image_.naturalWidth,this.JSC$12489_image_.naturalHeight)),this.transformedData=_.NI(W.toDataURL(this.mime_))):this.transformedData=W}else this.transformedData=W;this.resolve_(this)}};var bO=function(W,l){_.AS.call(this,W);this.value=l};
_.v(bO,_.AS);
var pE=function(W,l,V,f,r,R,y){y=y===void 0?!1:y;_.aj.call(this);var P=this;this.JSC$12494_url_=W;this.channelId_=l;this.maxFileSizeMb_=V;this.JSC$12494_maxAspectRatio_=f;this.dropZoneEl_=r;this.rejectInvalidAspectRatio_=y;this.selectButtonEl_=R;this.JSC$12494_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new Tf(this.dropZoneEl_);this.selectOverlay_=new wt(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12494_image_=this.transfer_=null;this.handler_=new _.nX(this);_.vt(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(R,"click",function(){P.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.v(pE,_.aj);pE.prototype.disposeInternal=function(){for(var W=this.selectButtonEl_.nextSibling;W&&W.parentNode&&W.tagName=="INPUT";)W.parentNode.removeChild(W),W=this.selectButtonEl_.nextSibling;this.cancel();_.aj.prototype.disposeInternal.call(this)};
pE.prototype.uploadPromise=function(){if(this.JSC$12494_image_==null)return null;this.uploadPromise_||PyX(this);return this.uploadPromise_};
pE.prototype.cancel=function(){nMM(this);this.JSC$12494_image_=null};
var nMM=function(W){W.transfer_&&W.transfer_.cancel();W.transfer_=null;W.uploadPromise_=null;W.resolve_=null;W.JSC$12494_reject_=null},PyX=function(W){nMM(W);
W.transfer_=_.SdL(W.JSC$12494_url_,{"X-YouTube-ChannelId":W.channelId_},W.JSC$12494_image_);W.handler_.listenOnce(W.transfer_,"l",W.JSC$12496_onUploadComplete_);W.handler_.listenOnce(W.transfer_,"n",W.onUploadError_);W.transfer_.run();W.uploadPromise_=new Promise(function(l,V){W.resolve_=l;W.JSC$12494_reject_=V})};
_.t=pE.prototype;_.t.onChange_=function(W){W.files.length&&(this.JSC$12494_image_=W.files[0],this.JSC$12494_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12494_image_=null,this.dispatchEvent(new bO("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(PyX(this),(new GP(this.JSC$12494_maxAspectRatio_)).transform(this.JSC$12494_image_).then((0,_.ml)(this.onPreview_,this),(0,_.ml)(this.onPreviewError_,this))))};
_.t.onPreview_=function(W){if(W.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12494_image_=null),this.dispatchEvent(new bO("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;W.cropped&&this.dispatchEvent(new bO("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new bO("yt.comments.ImageUploadOverlay.CHANGE_EVENT",W.transformedData))};
_.t.onPreviewError_=function(){this.JSC$12494_image_=null;this.dispatchEvent(new bO("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.t.onHover_=function(W){W.stopPropagation();W.preventDefault();if(W.type==="dragover")W=!0;else if(W.type==="dragleave")W=!1;else return;this.dispatchEvent(new bO("yt.comments.ImageUploadOverlay.HOVER_EVENT",W))};
_.t.JSC$12496_onUploadComplete_=function(){var W=(0,_.Wle)(this.transfer_.getResponseText());this.resolve_(W.encryptedBlobId)};
_.t.onUploadError_=function(){this.JSC$12494_reject_();nMM(this)};var Cyk=function(W){W=W||{};var l={},V={};this.url=W.url||"";this.args=W.args||_.MC.clone(l);this.assets=W.assets||{};this.attrs=W.attrs||_.MC.clone(V);this.fallback=W.fallback||null;this.fallbackMessage=W.fallbackMessage||null;this.html5=!!W.html5;this.disable=W.disable||{};this.loaded=!!W.loaded;this.messages=W.messages||{}};
Cyk.prototype.clone=function(){var W=new Cyk,l;for(l in this)if(this.hasOwnProperty(l)){var V=this[l];_.EM(V)=="object"?W[l]=_.MC.clone(V):W[l]=V}return W};var cM$,BxL,dzZ,tm,Dz$,UzB,uKZ,kJ1,vMk,HZ9,K4Z,F4a,GJ1,bZM,pZM,oM9,jRk,IX$,iZB,mza,XZB,Txe,wZX,AMB,QRI,MKv,ZZL,OZv,aXX,ofj,zne,NxB,Yh1,xzL,enZ,qhk,hnL,ShL,EMI,$zc,pzn,WaM,lBL,VWB,fBL,rqk,RBa,tWM,s2M,LaB,yq$,gOX,PXM,nOI,CX9,cqB,oH,BiL,dA9,Jqk,DA$,UA9,uVL,kjI,vOc,H9X,Kac,FaI,Gj$,b9c,pRe,oOB,j2k,IB1,i9B,mAk,GKq,XRk,Tic,wRI,Aq$,Q2Z,MWM,Z9k,O9v,aBk,zBe,Nik,YTL,xAZ,eBe,qTk,hBk,STL,EO9,$Ae,WOI,lOI,Vok,fOc,r8e,RT9;cM$=["account/accounts_list"];BxL=["acknowledge_channel_tou_strike"];dzZ=["notification/add_upcoming_event_reminder"];
_.JMc=["att/get"];tm=["browse","music/browse","unplugged/browse"];Dz$=["channel/claim_legacy_youtube_channel"];UzB=["history/clear_search_history"];uKZ=["history/clear_watch_history"];kJ1=["comment/perform_comment_action"];vMk=["comment/get_comment_replies"];HZ9=["ypc/commerce_action"];K4Z=["backstage/create_post"];F4a=["live/create_broadcast"];GJ1=["channel/create_channel"];bZM=["comment/create_comment_reply"];pZM=["comment/create_comment"];oM9=["live_chat/create_poll"];jRk=["playlist/create"];
IX$=["decorate_message"];iZB=["live_chat/delete_message"];mza=["playlist/delete"];XZB=["video/delete"];Txe=["like/dislike"];wZX=["dismissal/dismiss"];AMB=["flag/flag"];QRI=["flow"];MKv=["account/account_menu"];ZZL=["playlist/get_add_to_playlist"];OZv=["get_answer"];aXX=["channel/get_channel_creation_form"];ofj=["offline/get_download_action"];zne=["kids/get_kids_blocklist_picker"];NxB=["live_chat/get_item_context_menu"];Yh1=["live_chat/get_live_chat_message_buy_flow"];xzL=["live_chat/get_live_chat_replay"];
enZ=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];qhk=["live_chat/get_live_chat_super_sticker_buy_flow"];hnL=["notification/get_notification_menu"];ShL=["playlist/get_settings_editor"];EMI=["backstage/get_post_video_preview"];$zc=["account/get_profile_card"];pzn=["share/get_share_panel"];WaM=["share/get_sharing_provider_data"];lBL=["get_survey"];VWB=["notification/get_unseen_count"];fBL=["get_user_mention_suggestions"];rqk=["get_watch"];RBa=["guide"];
tWM=["feedback"];s2M=["kids/update_blacklist"];LaB=["like/like"];yq$=["live_chat/live_chat_action"];gOX=["live_chat/manage_user"];PXM=["video_manager/metadata_update"];nOI=["live_chat/moderate"];CX9=["notification/modify_channel_preference"];cqB=["notification/opt_out"];oH=["get_panel","get_posts_by_host_panel"];BiL=["player"];dA9=["browse/edit_playlist"];Jqk=["notification/record_interactions"];DA$=["reel/reel_item_watch"];UA9=["reel/reel_watch_sequence"];uVL=["like/removelike"];kjI=["notification/remove_upcoming_event_reminder"];
vOc=["flag/get_form"];H9X=["miniapp/report_value"];Kac=["navigation/resolve_url"];FaI=["channel/reveal_business_email"];Gj$=["in_video/search"];b9c=["search","sfv/search","unplugged/search"];pRe=["live_chat/send_message"];oOB=["live_chat/send_live_chat_vote"];j2k=["account/set_setting"];IB1=["submit_caption_correction"];i9B=["submit_form"];mAk=["subscription/subscribe"];GKq=["get_transcript"];XRk=["resolve_location","unplugged/resolve_location"];Tic=["subscription/unsubscribe"];wRI=["backstage/update_post"];
Aq$=["channel_edit/update_channel_page_settings"];Q2Z=["comment/update_comment_reply"];MWM=["comment/update_comment"];Z9k=["comment/update_comments_settings"];O9v=["creator/update_creator_channel"];aBk=["pdg/update_enablement"];zBe=["updated_metadata"];Nik=["channel_edit/validate_channel_handle"];YTL=["verify_age"];xAZ=["next","unplugged/watch_next"];eBe=["whitelist/edit"];qTk=["ypc/cancel_recurrence"];hBk=["ypc/complete_transaction"];STL=["ypc/get_cart"];EO9=["ypc/get_fix_instrument_params"];
$Ae=["ypc/get_offers"];WOI=["ypc/get_payment_instruments_params"];lOI=["ypc/handle_transaction"];Vok=["ypc/log_payment_server_analytics"];fOc=["ypc/pause_subscription"];r8e=["ypc/redeem_code"];RT9=["ypc/resume_subscription"];var tok=[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,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,
166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,
168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,
211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,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,191390,179556,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,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,
55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,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,273232,82039];var Tt=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.fR("yt.msgs_",Tt);var jb=new _.vd("ACTION_ROUTER_TOKEN");_.IH=function(){this.autonavState_=_.U("kevlar_is_pupi_enabled")?2:JuF()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.IH.prototype.getState=function(){return this.autonavState_};
_.IH.prototype.pause=function(W){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=W):this.autonavState_==1&&(this.disabledAutonavPauseReason_=W)};
_.IH.prototype.setState=function(W,l,V){l&&(this.autoplayChangedByUser=!0);l=this.autonavState_===3||W===3;this.autonavState_!=W&&(this.autonavState_=W,W!=3&&_.DN4(W==2),W=_.U("kevlar_is_pupi_enabled")?V||l:!0,_.eC.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,W,V))};
_.IH.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.BF(_.IH);var iO=function(){this.hasRun=!1};var mm={},o6z=(mm.auto_search="LATENCY_ACTION_AUTO_SEARCH",mm.ad_to_ad="LATENCY_ACTION_AD_TO_AD",mm.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",mm.app_startup="LATENCY_ACTION_APP_STARTUP",mm.browse="LATENCY_ACTION_BROWSE",mm.cast_splash="LATENCY_ACTION_CAST_SPLASH",mm.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",mm.channels="LATENCY_ACTION_CHANNELS",mm.chips="LATENCY_ACTION_CHIPS",mm.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",mm.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
mm.editor="LATENCY_ACTION_EDITOR",mm.embed="LATENCY_ACTION_EMBED",mm.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",mm.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",mm.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",mm.explore="LATENCY_ACTION_EXPLORE",mm.favorites="LATENCY_ACTION_FAVORITES",mm.home="LATENCY_ACTION_HOME",mm.inboarding="LATENCY_ACTION_INBOARDING",mm.landing="LATENCY_ACTION_LANDING",mm.learning="LATENCY_ACTION_LEARNING",
mm.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",mm.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",mm.library="LATENCY_ACTION_LIBRARY",mm.live="LATENCY_ACTION_LIVE",mm.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",mm.management="LATENCY_ACTION_MANAGEMENT",mm.mini_app="LATENCY_ACTION_MINI_APP_PLAY",mm.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",mm.onboarding="LATENCY_ACTION_ONBOARDING",mm.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
mm.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",mm.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",mm.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",mm.prebuffer="LATENCY_ACTION_PREBUFFER",mm.prefetch="LATENCY_ACTION_PREFETCH",mm.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",mm.profile_switcher="LATENCY_ACTION_LOGIN",mm.projects="LATENCY_ACTION_PROJECTS",mm.reel_watch="LATENCY_ACTION_REEL_WATCH",mm.results="LATENCY_ACTION_RESULTS",mm.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
mm.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",mm.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",mm.review="LATENCY_ACTION_REVIEW",mm.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",mm.search_ui="LATENCY_ACTION_SEARCH_UI",mm.search_suggest="LATENCY_ACTION_SUGGEST",mm.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",mm.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",mm.seek="LATENCY_ACTION_PLAYER_SEEK",mm.settings="LATENCY_ACTION_SETTINGS",mm.store="LATENCY_ACTION_STORE",
mm.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",mm.tenx="LATENCY_ACTION_TENX",mm.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",mm.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",mm.watch="LATENCY_ACTION_WATCH",mm.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",mm["watch,watch7"]="LATENCY_ACTION_WATCH",mm["watch,watch7_html5"]="LATENCY_ACTION_WATCH",mm["watch,watch7ad"]="LATENCY_ACTION_WATCH",mm["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",mm.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
mm.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",mm.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",mm.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",mm.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",mm.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",mm.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",mm.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",mm),Nkj=0;var S26=function(W,l){ea.call(this,1,arguments);this.timer=l};
_.v(S26,ea);var hiS=new FzS("aft-recorded",S26);var mNS=_.rS.ytLoggingGelSequenceIdObj_||{};_.fR("ytLoggingGelSequenceIdObj_",mNS);var X6=_.rS.ytLoggingLatencyUsageStats_||{};_.fR("ytLoggingLatencyUsageStats_",X6);var TP=function(){this.cleanupJob=0},wO8=function(){TP.instance||(TP.instance=new TP);
return TP.instance};
_.t=TP.prototype;_.t.baseline=function(W,l,V){wT(this,"baseline_"+W)||_.XC("latencyActionBaselined",{clientActionNonce:W},{timestamp:l,cttAuthInfo:V})};
_.t.tick=function(W,l,V,f){wT(this,"tick_"+W+"_"+l)||_.XC("latencyActionTicked",{tickName:W,clientActionNonce:l},{timestamp:V,cttAuthInfo:f})};
_.t.info=function(W,l,V){var f=Object.keys(W).join("");wT(this,"info_"+f+"_"+l)||(W=Object.assign({},W),W.clientActionNonce=l,_.XC("latencyActionInfo",W,{cttAuthInfo:V}))};
_.t.jspbInfo=function(W,l,V){for(var f="",r=0;r<QL(W).length;r++)QL(W)[r]!==void 0&&(f=r===0?f.concat(""+r):f.concat("_"+r));wT(this,"info_"+f+"_"+l)||(_.mY(W,2,l),l={cttAuthInfo:V},V=_.U("jspb_sparse_encoded_pivot")?new bT([{}]):new bT,_.pM(V,7,ecv,W),XO6("latencyActionInfo",V,l))};
_.t.span=function(W,l,V){var f=Object.keys(W).join("");wT(this,"span_"+f+"_"+l)||(W.clientActionNonce=l,_.XC("latencyActionSpan",W,{cttAuthInfo:V}))};
var wT=function(W,l){X6[l]=X6[l]||{count:0};var V=X6[l];V.count++;V.time=(0,_.tv)();W.cleanupJob||(W.cleanupJob=_.pS(_.w8,function(){var f=(0,_.tv)(),r;for(r in X6)X6[r]&&f-X6[r].time>6E4&&delete X6[r];W&&(W.cleanupJob=0)},5E3));
return V.count>5?(V.count===6&&Math.random()*1E5<1&&(V=new _.bP("CSI data exceeded logging limit with key",l.split("_")),l.indexOf("plev")>=0||_.Qe(V)),!0):!1};var suX,LOL;suX=window;LOL=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.NT=suX.performance||suX.mozPerformance||suX.msPerformance||suX.webkitPerformance||new LOL;var q2Y=!1,QMv=!1,E6x=(0,_.ml)(_.NT.clearResourceTimings||_.NT.webkitClearResourceTimings||_.NT.mozClearResourceTimings||_.NT.msClearResourceTimings||_.NT.oClearResourceTimings||_.QR,_.NT);var y8M=window;y8M.ytcsi&&(y8M.ytcsi.infoGel=_.Sy,y8M.ytcsi.tick=_.Wy);var yex=function(W){ea.call(this,1,arguments);this.csn=W};
_.v(yex,ea);var j1x=new FzS("screen-created",yex),F9v=[],L9F=K9S,Gfv=0,Rs=new Map,g0n=new Map,PGF=new Map;var yA4=Symbol("zf"),DA=new WeakMap;var AJ=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Zd=function(){AJ.instance||(AJ.instance=new AJ);
return AJ.instance};
_.t=AJ.prototype;_.t.setClient=function(W){this.client=W};
_.t.JSC$12575_newScreen=function(){this.clear();this.csn=_.Wh()};
_.t.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.t.reportShown=function(W,l,V){var f=this.JSC$12575_getTrackingParams(W),r=W.visualElement?W.visualElement:f;l=this.shownElements.has(r);var R=this.visibleState.get(r);this.shownElements.add(r);this.visibleState.set(r,!0);W.impressionLog&&!l&&W.impressionLog();if(f||W.visualElement)if(V=gvM(this,W,V))if(r=PrZ(this,W),QB(this,W)||r){f=W.visualElement?W.visualElement:_.zG(f);var y=W.interactionLoggingClientData;r||l?QB(this,W)&4?R||U08(this.client,V,f,y):QB(this,W)&1&&!l&&d06(this.client,V,f,y):d06(this.client,
V,f,y)}};
_.t.reportHidden=function(W,l,V){var f=this.JSC$12575_getTrackingParams(W),r=W.visualElement?W.visualElement:f;l=this.hiddenElements.has(r);var R=this.visibleState.get(r);this.hiddenElements.add(r);this.visibleState.set(r,!1);if(R===!1)return!0;if(!f&&!W.visualElement)return!1;V=gvM(this,W,V);if(!V||!QB(this,W)&&PrZ(this,W))return!1;f=W.visualElement?W.visualElement:_.zG(f);QB(this,W)&8?u5q(this.client,V,f):QB(this,W)&2&&!l&&(W=this.client,l=rJ({cttAuthInfo:lj(V)||void 0},V),f={csn:V,ve:f.getAsJson(),
eventType:2},V==="UNDEFINED_CSN"?sK("visualElementHidden",l,f):W?iT("visualElementHidden",f,W,l):_.XC("visualElementHidden",f,l));return!0};
_.t.JSC$12575_getTrackingParams=function(W){var l=this.getData(W),V,f;if(_.U("il_use_view_model_logging_context")&&(l==null?0:(V=l.context)==null?0:(f=V.loggingContext)==null?0:f.loggingDirectives))return l.context.loggingContext.loggingDirectives.trackingParams||"";var r,R;if(l==null?0:(r=l.rendererContext)==null?0:(R=r.loggingContext)==null?0:R.loggingDirectives)return l.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(l==null?0:l.loggingDirectives)return l.loggingDirectives.trackingParams||
"";var y;return((y=W.veContainer)==null?0:y.trackingParams)?W.veContainer.trackingParams:(l==null?void 0:l.trackingParams)||""};
_.t.JSC$12575_elementShouldLogGesture=function(W,l){W=this.getData(W);return!!((Math.floor(Number(W&&W.loggingDirectives&&W.loggingDirectives.gestures&&W.loggingDirectives.gestures.types||""))||0)&l)};
_.t.JSC$12575_getNearestParentVe=function(W){var l=this.JSC$12575_getTrackingParams(W);return W.visualElement?W.visualElement:l?_.zG(l):W.parentElement?this.JSC$12575_getNearestParentVe(W.parentElement):null};
var gvM=function(W,l,V){var f=_.Wh(V);return W.csn===null||f===W.csn||V?f:(W=new _.bP("VisibilityLogger called before newScreen",{caller:l.tagName,previous_csn:W.csn,current_csn:f}),_.Qe(W),null)};
AJ.prototype.getData=function(W){var l,V=W.data||((l=W.props)==null?void 0:l.data);if(!V||W.isWebComponentWrapper){var f;V=(f=DA.get(W))==null?void 0:f[yA4]}return V};
var PrZ=function(W,l){var V;return!((V=W.getData(l))==null||!V.loggingDirectives)},QB=function(W,l){W=W.getData(l);
return Math.floor(Number(W&&W.loggingDirectives&&W.loggingDirectives.visibility&&W.loggingDirectives.visibility.types||""))||1};var Ml;Ml=function(){};
_.wm=function(){Ml.instance||(Ml.instance=new Ml);return Ml.instance};
Ml.prototype.setClient=function(W){_.ah(Zd().setClient).bind(Zd())(W)};
_.nvc=function(){_.wm();_.ah(Zd().JSC$12575_newScreen).bind(Zd())()};
Ml.prototype.clear=function(){_.ah(Zd().clear).bind(Zd())()};
Ml.prototype.reportShown=function(W,l,V){_.ah(Zd().reportShown).bind(Zd())(W,l,V)};
Ml.prototype.reportHidden=function(W,l,V){return _.ah(Zd().reportHidden).bind(Zd())(W,l,V)};
var NR4=function(W,l){return _.ah(Zd().JSC$12575_getTrackingParams).bind(Zd())(l)},gAg=function(W,l){return _.ah(Zd().JSC$12575_getNearestParentVe).bind(Zd())(l)};var Zk,Cra;Zk=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};
_.Qq=function(){Zk.instance||(Zk.instance=new Zk);return Zk.instance};
Zk.prototype.setClient=function(W){this.client=W};
Cra=function(W,l,V){V=V===void 0?{}:V;_.ah(function(){var f,r,R,y=((f=_.k(l==null?void 0:l.commandMetadata,_.XN))==null?void 0:f.rootVe)||((r=_.k(l==null?void 0:l.commandMetadata,VqI))==null?void 0:(R=r.screenVisualElement)==null?void 0:R.uiType);if(y){f=_.k(l==null?void 0:l.commandMetadata,xlI);if(f==null?0:f.parentTrackingParams){var P=_.zG(f.parentTrackingParams);if(f.parentCsn)var n=f.parentCsn}else V.clickedVisualElement?P=V.clickedVisualElement:l.clickTrackingParams&&(P=_.zG(l.clickTrackingParams));
a:{f=_.k(l,_.Bh);r=_.k(l,rq8);if(f){if(r=UNn(f,"VIDEO")){f={token:r,videoId:f.videoId};break a}}else if(r&&(f=UNn(r,"PLAYLIST"))){f={token:f,playlistId:r.playlistId};break a}f=void 0}V=Object.assign({},{cttAuthInfo:f,parentCsn:n},V);if(_.U("expectation_logging")){var B;V.loggingExpectations=((B=_.k(l==null?void 0:l.commandMetadata,VqI))==null?void 0:B.loggingExpectations)||void 0}_.Ob(W,y,P,V)}else _.Qe(new _.bP("Error: Trying to create a new screen without a rootVeType",l))})()};
_.Ob=function(W,l,V,f){f=f===void 0?{}:f;_.ah(function(){tok.includes(l)||(_.Qe(new _.bP("createClientScreen() called with a non-page VE",l)),l=83769);f.isHistoryNavigation||(W.forwardHistoryStack=[],W.backHistoryStack.push({rootVe:l,key:f.key||""}));W.graftQueue=[];W.stateChangedQueue=[];f.dataPromises?c8k(W,l,V,f):Bnc(W,l,V,f)})()};
_.dy1=function(W,l,V){V=V===void 0?0:V;_.ah(function(){l.then(function(f){W.pendingScreenCreation.has(V)&&W.pendingScreenFn&&W.pendingScreenFn();var r=_.Wh(V),R=_.$G(V);if(r&&R){var y={automatedLogEventSource:3},P;(f==null?0:(P=f.response)==null?0:P.trackingParams)&&tW(W.client,r,R,_.zG(f.response.trackingParams),!1,y);var n;(f==null?0:(n=f.playerResponse)==null?0:n.trackingParams)&&tW(W.client,r,R,_.zG(f.playerResponse.trackingParams),!1,y)}})})()};
Zk.prototype.graftServerVe=function(W,l,V){var f=this;return _.ah(function(){var r=_.zG(W);_.aH(f,r,l,V);return r})()};
_.PSz=function(W,l,V,f){return _.U("enable_client_ve_spec")&&l.clientVeSpec?(l=_.GY(l.clientVeSpec.uiType,void 0,l.clientVeSpec.elementIndex,l.clientVeSpec.clientYoutubeData,void 0,l),_.aH(W,l,V,f)?l:null):l.trackingParams?W.graftServerVe(l.trackingParams,V,f):null};
_.AG=function(W,l,V,f){return _.ah(function(){if(!l.veType)return _.Ar(new _.bP("Error: Trying to graft a client VE without a veType.")),null;if(l.visibilityTypes){var r=l.visibilityTypes.reduce(function(R,y){return R|y});
r={visibility:{types:String(r)}}}r=_.GY(l.veType,l.visualElement,l.elementIndex,l.clientYouTubeData,void 0,r);return _.aH(W,r,V,f)?r:null})()};
_.aH=function(W,l,V,f){f=f===void 0?0:f;return _.ah(function(){if(W.pendingScreenCreation.has(f))return W.graftQueue.push([l,V]),!0;var r=_.Wh(f),R=V||_.$G(f);if(r&&R){if(_.U("combine_ve_grafts")){var y=W.cachedVisualElements.get(R.toString());y?y.push(l):(W.cachedRootVisualElements.set(R.toString(),R),W.cachedVisualElements.set(R.toString(),[l]));W.attachTimeout||(W.attachTimeout=_.pS(_.w8,function(){J8v(W,r)},1200))}else tW(W.client,r,R,l);
return!0}return!1})()};
_.zP=function(W,l,V){V=V===void 0?0:V;var f=W.recurringGrafts.get(V)||new Map;if(_.U("smarter_ve_dedupping"))for(var r=Array.from(f.keys()),R=0;R<r.length;R++){var y=void 0,P=void 0;var n=l;var B=r[R];B.isClientVe()&&n.isClientVe()?(y=n.getAsJson(),P=B.getAsJson(),n=y.veType!==P.veType||y.elementIndex!==P.elementIndex||y.dataElement!==P.dataElement||n.getLoggingDirectives()!==B.getLoggingDirectives()?!1:!0):n=B.veData.trackingParams!==void 0&&n.veData.trackingParams!==void 0?((P=n.veData)==null?void 0:
P.trackingParams)===((y=B.veData)==null?void 0:y.trackingParams):!1;if(n)return}else if(f.has(l))return;f.set(l,void 0);W.recurringGrafts.set(V,f);_.Wh(V)==="UNDEFINED_CSN"||W.pendingScreenCreation.has(V)||_.aH(W,l,void 0,V)};
_.Nl=function(W,l,V,f){f=_.Wh(f===void 0?0:f);if(!f)return!1;v04(W.client,f,l,V);return!0};
_.YQ=function(W,l,V,f){if(!l)return!1;f=_.Wh(f===void 0?0:f);if(!f)return!1;v04(W.client,f,_.zG(l),V);return!0};
_.R$=function(W,l){var V=l.getScreenLayer&&l.getScreenLayer();if(l.visualElement)return _.Nl(W,l.visualElement,void 0,V);l=NR4(_.wm(),l);return _.YQ(W,l,void 0,V)};
Zk.prototype.clickCommand=function(W,l,V){return _.YQ(this,W.clickTrackingParams,l,V===void 0?0:V)};
Zk.prototype.stateChanged=function(W,l,V){this.visualElementStateChanged(_.zG(W),l,V===void 0?0:V)};
Zk.prototype.visualElementStateChanged=function(W,l,V){V=V===void 0?0:V;V===0&&this.pendingScreenCreation.has(V)?this.stateChangedQueue.push([W,l]):this.logStateChanged(W,l,V)};
Zk.prototype.logStateChanged=function(W,l,V){V=V===void 0?0:V;var f=_.Wh(V);W=W||_.$G(V);return f&&W?(HBz(this.client,f,W,l),!0):!1};
var c8k=function(W,l,V,f){f=f===void 0?{}:f;W.pendingScreenCreation.add(f.layer||0);W.pendingScreenFn=function(){Bnc(W,l,V,f);var y=_.$G(f.layer);if(y){for(var P=_.L(W.graftQueue),n=P.next();!n.done;n=P.next())n=n.value,_.aH(W,n[0],n[1]||y,f.layer);y=_.L(W.stateChangedQueue);for(P=y.next();!P.done;P=y.next())P=P.value,W.logStateChanged(P[0],P[1])}};
V||_.Wh(f.layer)||W.pendingScreenFn();if(f.dataPromises)for(var r=_.L(f.dataPromises),R=r.next();!R.done;R=r.next())_.dy1(W,R.value,f.layer);else _.wv(Error("Af"))},Bnc=function(W,l,V,f){f=f===void 0?{}:f;
var r=void 0;f.layer||(f.layer=0);r=f.parentLayer!==void 0?f.parentLayer:f.layer;var R=_.Wh(r);r=_.$G(r);var y=V||r,P;y&&(f.parentCsn!==void 0?P={clientScreenNonce:f.parentCsn,visualElement:y}:R&&R!=="UNDEFINED_CSN"&&(P={clientScreenNonce:R,visualElement:y}));var n,B=_.M4("EVENT_ID");R==="UNDEFINED_CSN"&&B&&(n={servletData:{serializedServletEventId:B}});_.U("combine_ve_grafts")&&R&&J8v(W,R);_.U("no_client_ve_attach_unless_shown")&&y&&R&&Btg(y,R);try{var d=_.n0F(W.client,l,P,f.csnToClone,f.cttAuthInfo,
n,f.implicitGestureType,void 0,f.loggingExpectations)}catch(u){_.MJ(u,{rootVeType:l,rootVe:r,parentVisualElement:V,currentCsn:R,parentEl:P,csnToClone:f.csnToClone});_.wv(u);return}_.VW(d,l,f.layer,f.cttAuthInfo);R&&R!=="UNDEFINED_CSN"&&r&&!vD4(R)&&u5q(W.client,R,r,!0);W.backHistoryStack[W.backHistoryStack.length-1]&&!W.backHistoryStack[W.backHistoryStack.length-1].csn&&(W.backHistoryStack[W.backHistoryStack.length-1].csn=d||"");_.Sy({clientScreenNonce:d});_.nvc();var J=_.$G(f.layer);R&&R!=="UNDEFINED_CSN"&&
J&&(_.U("web_mark_root_visible")||_.U("music_web_mark_root_visible"))&&_.gJ(d,J);W.pendingScreenCreation.delete(f.layer||0);W.pendingScreenFn=void 0;var D;(D=W.recurringGrafts.get(f.layer))==null||D.forEach(function(u,H){u?_.aH(W,H,u,f.layer):J&&_.aH(W,H,J,f.layer)});
DyZ(W)},DyZ=function(W){for(var l=0;l<W.afterNewScreenOneOffJobs.length;l++){var V=W.afterNewScreenOneOffJobs[l];
try{V()}catch(f){_.wv(f)}}for(l=W.afterNewScreenOneOffJobs.length=0;l<W.afterNewScreenRecurringJobs.length;l++){V=W.afterNewScreenRecurringJobs[l];try{V()}catch(f){_.wv(f)}}},J8v=function(W,l){if(l===void 0)for(var V=ubx(),f=0;f<V.length;f++)V[f]!==void 0&&J8v(W,V[f]);
else W.cachedVisualElements.forEach(function(r,R){(R=W.cachedRootVisualElements.get(R))&&CG6(W.client,l,R,r)}),W.cachedVisualElements.clear(),W.cachedRootVisualElements.clear(),W.attachTimeout=void 0};var xQ=function(W){W=W===void 0?{layer:0}:W;this.hasRun=!1;this.createScreenConfig=W;W={};this.lW9=(W.response=!1,W.playerResponse=!1,W)};
_.v(xQ,iO);xQ.prototype.validate=function(W){return!(!W.data||!W.data.response&&!W.data.playerResponse)};
xQ.prototype.handle=function(W){var l=_.Qq(),V=this.createScreenConfig.layer;W.data.response&&W.data.response.trackingParams&&!this.lW9.response&&(l.graftServerVe(W.data.response.trackingParams,void 0,V),this.lW9.response=!0);W.data.playerResponse&&W.data.playerResponse.trackingParams&&!this.lW9.playerResponse&&(l.graftServerVe(W.data.playerResponse.trackingParams,void 0,V),this.lW9.playerResponse=!0)};var eb=function(){this.zM=_.yH();this.un=[];this.lNw=0};
eb.prototype.processChunk=function(W){if(W){for(var l=_.L(this.un),V=l.next();!V.done;V=l.next())V=V.value,V.validate(W)&&(V.handle(W),V.hasRun=!0);_.Wy("np"+this.lNw);this.lNw++}};var UK={initialized:!1,nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[]};var uqe=function(){var W=Uya;this.observers=[];this.value=W};
_.t=uqe.prototype;_.t.subscribe=function(W){var l=this;if(W.idx!=null)throw Error("Cf");W.idx=this.observers.length;this.observers.push(W);return function(){var V=l.observers[l.observers.length-1];l.observers[W.idx]=V;V.idx=W.idx;l.observers.pop()}};
_.t.update=function(W){this.value=W(this.value);this.notify()};
_.t.mutate=function(W){W(this.value);this.notify()};
_.t.set=function(W){this.value=W;this.notify()};
_.t.notify=function(){for(var W=_.L(this.observers),l=W.next();!l.done;l=W.next()){l=l.value;try{l(this.value)}catch(V){}}};var iJY,k2M,KOk;_.mK=function(W,l,V,f,r,R,y){y=y===void 0?[]:y;this.buildCommandPayload=W;this.navigate=l;this.handleServiceRequest=V;this.sendAction=f;this.JSC$12621_screenManager=r;this.commandResolverMap=R;this.autoLogResolverAllowlist=y;this.pendingCommands=new Set;this.isTracingEnabled=!1;k2M(this)};
iJY=function(W,l,V){var f=DnJ,r=Unn,R=_.Qq(),y=vvZ;V=V===void 0?[]:V;_.mK.instance=new _.mK(W,l,f,r,R,y,V)};
k2M=function(W){if(!W.isTracingEnabled&&pog("command")){var l=W.resolveCommand;W.resolveCommand=function(V,f){a:{for(r in V)if(Object.prototype.hasOwnProperty.call(V,r)){var r={commandType:r};break a}r={}}return jz8("command",r,l.bind(this,V,f))};
W.isTracingEnabled=!0}};
KOk=function(W,l,V){if(!W.commandResolverMap)return!1;var f=Ttx(l,W.commandResolverMap);return f?((W.autoLogResolverAllowlist.some(function(r){return!!_.k(l,r)})||(V==null?0:V.forceClickLogging))&&H_L(W,l,V),f instanceof Promise?f.then(function(r){r.resolve(l,V)}):f.resolve(l,V),!0):!1};
_.mK.prototype.resolveCommand=function(W,l){var V=this,f=FOe(W);if(KOk(this,W,l))return!0;if(f)return G2$(this,W,l);if(!this.buildCommandPayload)return iBj(W,"Unhandled command by buildCommandPayload"),!1;var r=this.buildCommandPayload(W,l);if(l==null?0:l.commandController)r.commandController=l.commandController;if(r.type===0){if(!this.navigate)return m0J(W,"navigate"),!1;if(!b_X(r.command))return iBj(W,"Page requests need to specify a url"),!1;_.U("logging_avoid_blocking_during_navigation")&&_.C$z().transition("application_navigating");
W=this.navigate(r)||[];wgI(W).then(function(){V.pendingCommands.delete(r.command)});
return!0}if(r.type===1){if(!this.handleServiceRequest)return m0J(W,"handleServiceRequest"),!1;(l==null?0:l.forceClickLogging)&&H_L(this,r.command,l);W=this.handleServiceRequest(r);wgI(W).then(function(){V.pendingCommands.delete(r.command)});
return!0}if(r.type===2){if(!this.sendAction)return m0J(W,"sendAction"),!1;H_L(this,r.command,l);this.sendAction(r);return!0}return!1};
var H_L=function(W,l,V){if((V==null||!V.disableClickTracking)&&W.JSC$12621_screenManager)if(l.clickTrackingParams&&_.U("log_click_with_layer_from_element_in_command_handler")){var f;V=V==null?void 0:(f=V.form)==null?void 0:f.element;W.JSC$12621_screenManager.clickCommand(l,null,V&&V.getScreenLayer&&V.getScreenLayer())}else l.clickTrackingParams?W.JSC$12621_screenManager.clickCommand(l):!_.U("disable_clicked_visual_element_in_command_handler")&&(V==null?0:V.clickedVisualElement)&&_.Nl(W.JSC$12621_screenManager,
V.clickedVisualElement)},FOe=function(W){var l=!!_.k(W,_.Ig),V;
W=((V=_.k(W,_.mA))==null?void 0:V.signal)==="CLIENT_SIGNAL";return l||W},G2$=function(W,l,V){var f=_.k(l,_.Ig);
if(f)var r=(f==null?void 0:f.commands)||[];else{var R;if(((R=_.k(l,_.mA))==null?void 0:R.signal)==="CLIENT_SIGNAL"){var y;r=((y=_.k(l,_.mA))==null?void 0:y.actions)||[]}}if(r){l=_.L(r);for(r=l.next();!r.done;r=l.next()){r=r.value;try{W.resolveCommand(r,V)}catch(P){P instanceof Error&&_.wv(P)}}return!0}iBj(l,"Could not handle the meta command");return!1},b_X=function(W){var l;
return!((l=_.k(W==null?void 0:W.commandMetadata,_.XN))==null||!l.url)};var ql=function(){iO.apply(this,arguments)};
_.v(ql,iO);ql.prototype.validate=function(W){var l,V;return!this.hasRun&&!!((l=W.data.response)==null?0:(V=l.onResponseReceivedEndpoints)==null?0:V.length)};
ql.prototype.handle=function(W){var l=_.mK.instance;W=_.L(W.data.response.onResponseReceivedEndpoints);for(var V=W.next();!V.done;V=W.next())l.resolveCommand(V.value)};var px1,ove,juk;
px1=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=_.jy();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.hJ=function(){ove||(ove=new px1);return ove};
juk=function(){var W=_.hJ();W.miniplayerButtonActivation=!1;W.userActivation=!1;W.playlistWatchPageActivation=!1;W.productDetailsPageActivation=!1;W.miniAppPageActivation=!1;W.playablesDestPageActivation=!1;W.lockupActivation=!1;W.showMiniplayerCommandActivation=!1;W.playlistSuggestionsShelfActivation=!1;W.mediaSessionPipActivation=!1;W.watchPipActivation=!1;W.watchWhileActivation=!1;W.shortsPipActivation=!1};
_.IOM=function(){var W=_.hJ(),l=W.mediaSessionPipActivation,V=W.watchPipActivation,f=W.watchWhileActivation,r=W.playlistWatchPageActivation,R=W.lockupActivation,y=W.showMiniplayerCommandActivation,P=W.navigatingAwayFromWatchDeletedVideo,n=W.shortsPipActivation,B=W.playlistSuggestionsShelfActivation,d=W.productDetailsPageActivation,J=W.miniAppPageActivation,D=W.playablesDestPageActivation;return!W.miniplayerButtonActivation&&!r&&!B&&!d&&!J&&!D&&!R&&!y&&!l&&!V&&!f&&!n||P};var XYn;_.Sb=_.kH("FEwhat_to_watch","/",3854);_.TfY=_.kH("FEdownloads","/feed/downloads",42352);XYn=_.kH("FEmusic_offline","browse/FEmusic_offline",42352);var J5=function(W,l){l=l===void 0?[]:l;var V=V===void 0?[]:V;l=Vhv.apply(null,[fRz.apply(null,_.QK(l))].concat(_.QK(V)));this.store=srz(W,void 0,l)};
J5.prototype.getState=function(){return this.store.getState()};
J5.prototype.dispatch=function(W){return this.store.dispatch(W)};
J5.prototype.subscribe=function(W){return this.store.subscribe(W)};
J5.prototype.replaceReducer=function(W){return this.store.replaceReducer(W)};
J5.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Eb=function(W,l,V){var f=l(W.getState());return W.subscribe(function(){var r=l(W.getState());if(r!==f){var R=f;f=r;V(r,R)}})};var GPJ;_.MB=function(W,l,V){return _.GT({type:"REPLACE_ENTITY",payload:{entityPayload:V,entityType:W,key:l}})};
GPJ=function(W){return _.GT({type:"REPLACE_ENTITIES",payload:W})};
_.Nr=function(W,l,V,f){return _.GT({type:"UPDATE_ENTITY",payload:{entityPayload:V,entityType:W,key:l,mergeOption:f}})};var qjn=function(W){var l=this;W=W===void 0?[]:W;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;W.forEach(function(V){l.append(V)})};
_.t=qjn.prototype;_.t.getLength=function(){return this.totalLength};
_.t.append=function(W){var l=this.arrays.length===0?!1:(l=this.arrays[this.arrays.length-1])&&l.buffer===W.buffer&&l.byteOffset+l.length===W.byteOffset;l?(l=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(l.buffer,l.byteOffset,l.length+W.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(W);this.totalLength+=W.length};
_.t.split=function(W){for(var l=new qjn,V=new qjn,f=_.L(this.arrays),r=f.next();!r.done;r=f.next())r=r.value,W>=r.length?(l.append(r),W-=r.length):W?(l.append(new Uint8Array(r.buffer,r.byteOffset,W)),V.append(new Uint8Array(r.buffer,r.byteOffset+W,r.length-W)),W=0):V.append(r);return{headView:l,tailView:V}};
_.t.extract=function(W,l){return this.split(W).tailView.split(l).headView};
_.t.isFocused=function(W){return W>=this.arrayPos&&W<this.arrayPos+this.arrays[this.arrayIdx].length};
_.t.focus=function(W){if(!this.isFocused(W))for(W<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=W&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var i_a=function(W,l){W.focus(l);return W.arrays[W.arrayIdx][l-W.arrayPos]};(function(){var W=function(f){return new Uint8Array(f)},l=function(f){for(var r=new Uint8Array(f.length),R=0;R<f.length;R++)r[R]=f[R];
return r},V=new Uint8Array([1]);
return V.length===1&&V[0]===1?W:l})();
var auv=Array(1024),OBJ=window.TextDecoder?new TextDecoder:void 0,NtJ=window.TextEncoder?new TextEncoder:void 0;var e5Y=function(W){this.arrayView=W;this.pos=0;this.pendingTagAndType=-1},b_=function(W){var l=i_a(W.arrayView,W.pos);
++W.pos;if(l<128)return l;for(var V=l&127,f=1;l>=128;)l=i_a(W.arrayView,W.pos),++W.pos,f*=128,V+=(l&127)*f;return V},h5U=function(W,l){var V=W.pendingTagAndType;
for(W.pendingTagAndType=-1;W.pos+1<=W.arrayView.totalLength;){V<0&&(V=b_(W));var f=V>>3,r=V&7;if(f===l)return!0;if(f>l){W.pendingTagAndType=V;break}V=-1;switch(r){case 0:b_(W);break;case 1:W.pos+=8;break;case 2:f=b_(W);W.pos+=f;break;case 5:W.pos+=4}}return!1};var E0n=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=x0Y(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Is=function(W,l){l=W.pos+l;
if(!(W.buf.length>=l)){for(var V=W.buf.length*2;V<l;)V*=2;W.buf=x0Y(V,W.wasm,W.buf.subarray(0,W.pos));W.view=new DataView(W.buf.buffer,W.buf.byteOffset,W.buf.byteLength)}},jE=function(W,l){if(l>268435455){Is(W,4);
for(var V=l&1073741823,f=0;f<4;f++)W.view.setUint8(W.pos,V&127|128),V>>=7,W.pos+=1;l=Math.floor(l/268435456)}for(Is(W,4);l>127;)W.view.setUint8(W.pos,l&127|128),l>>=7,W.pos+=1;W.view.setUint8(W.pos,l);W.pos+=1};for(var $06={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},Sjv={},myI=_.L(Object.entries($06)),Xxe=myI.next();!Xxe.done;Xxe=myI.next()){var Tn1=_.L(Xxe.value),wxk=Tn1.next().value,A8L=Tn1.next().value,Quv=wxk,MoI=A8L;MoI&&(Sjv[MoI]=Quv)};var lkz=function(W,l){W=W===void 0?{}:W;switch(l.type){case "ENTITY_LOADED":return l.payload.reduce(function(f,r){var R,y=(R=r.options)==null?void 0:R.persistenceOption;if(y&&y!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&y!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return f;if(!r.entityKey)return _.wv(Error("Ef")),f;if(r.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!r.payload)return r=new _.bP("REPLACE entity mutation is missing a payload",{entityKey:r.entityKey}),_.wv(r),f;var P=(0,_.MC.getAnyKey)(r.payload);
return fkz(f,P,r.entityKey,r.payload[P])}if(r.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{r=r.entityKey;try{var n=_.p0(r).entityType;P=fkz(f,n,r);break a}catch(J){if(J instanceof Error){r=new _.bP("Failed to deserialize entity key",{entityKey:r,originalMessage:J.message});_.wv(r);P=f;break a}throw J;}P=void 0}return P}if(r.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!r.payload)return r=new _.bP("UPDATE entity mutation is missing a payload",{entityKey:r.entityKey}),_.wv(r),f;P=(0,_.MC.getAnyKey)(r.payload);
var B,d;return rJ6(f,P,r.entityKey,r.payload[P],(B=r.fieldMask)==null?void 0:(d=B.mergeOptions)==null?void 0:d.repeatedFieldsMergeOption)}return f},W);
case "REPLACE_ENTITY":var V=l.payload;return fkz(W,V.entityType,V.key,V.entityPayload);case "REPLACE_ENTITIES":return Object.keys(l.payload).reduce(function(f,r){var R=l.payload[r];return Object.keys(R).reduce(function(y,P){return fkz(y,r,P,R[P])},f)},W);
case "UPDATE_ENTITY":return V=l.payload,rJ6(W,V.entityType,V.key,V.entityPayload,V.mergeOption);default:return W}};var R18;var Z_X=!1,$Q,W3,lL,VC,f6,O_L=function(W){_.iI.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!Z_X){var l,V=new Uint8Array(256),f=new Uint8Array(256);var r=1;for(l=0;l<256;l++)V[r]=l,f[l]=r,r^=r<<1^(r>>7&&283);$Q=new Uint8Array(256);W3=Xy(256);lL=Xy(256);VC=Xy(256);f6=Xy(256);for(var R=0;R<256;R++){r=R?f[255^V[R]]:0;r^=r<<1^r<<2^r<<3^r<<4;r=r&255^r>>>8^99;$Q[R]=r;l=r<<1^(r>>7&&283);var y=l^r;W3[R]=l<<24|r<<16|r<<8|y;lL[R]=y<<24|W3[R]>>>8;VC[R]=r<<24|lL[R]>>>
8;f6[R]=r<<24|VC[R]>>>8}Z_X=!0}r=Xy(44);for(V=0;V<4;V++)r[V]=W[4*V]<<24|W[4*V+1]<<16|W[4*V+2]<<8|W[4*V+3];for(f=1;V<44;V++)W=r[V-1],V%4||(W=($Q[W>>16&255]^f)<<24|$Q[W>>8&255]<<16|$Q[W&255]<<8|$Q[W>>>24],f=f<<1^(f>>7&&283)),r[V]=r[V-4]^W;this.key=r};
_.v(O_L,_.iI);
O_L.prototype.encrypt=function(W){var l=W.length;W=new Uint8Array(W.buffer.slice(W.byteOffset,W.byteOffset+l));for(var V=this.cipherBlock,f=0;f<l&&this.blockOffset<16;)W[f++]^=V[this.blockOffset++];for(var r=l-(l-f)%16;f<r;)aO$(this),W[f++]^=V[0],W[f++]^=V[1],W[f++]^=V[2],W[f++]^=V[3],W[f++]^=V[4],W[f++]^=V[5],W[f++]^=V[6],W[f++]^=V[7],W[f++]^=V[8],W[f++]^=V[9],W[f++]^=V[10],W[f++]^=V[11],W[f++]^=V[12],W[f++]^=V[13],W[f++]^=V[14],W[f++]^=V[15];if(f<l)for(aO$(this),this.blockOffset=0;f<l;)W[f++]^=
V[this.blockOffset++];return W};
var aO$=function(W){for(var l=W.key,V=W.counter[0]^l[0],f=W.counter[1]^l[1],r=W.counter[2]^l[2],R=W.counter[3]^l[3],y=3;y>=0&&!(W.counter[y]=-~W.counter[y]);y--);for(var P,n,B=4;B<40;)y=W3[V>>>24]^lL[f>>16&255]^VC[r>>8&255]^f6[R&255]^l[B++],P=W3[f>>>24]^lL[r>>16&255]^VC[R>>8&255]^f6[V&255]^l[B++],n=W3[r>>>24]^lL[R>>16&255]^VC[V>>8&255]^f6[f&255]^l[B++],R=W3[R>>>24]^lL[V>>16&255]^VC[f>>8&255]^f6[r&255]^l[B++],V=y,f=P,r=n;W=W.cipherBlock;y=l[40];W[0]=$Q[V>>>24]^y>>>24;W[1]=$Q[f>>16&255]^y>>16&255;W[2]=
$Q[r>>8&255]^y>>8&255;W[3]=$Q[R&255]^y&255;y=l[41];W[4]=$Q[f>>>24]^y>>>24;W[5]=$Q[r>>16&255]^y>>16&255;W[6]=$Q[R>>8&255]^y>>8&255;W[7]=$Q[V&255]^y&255;y=l[42];W[8]=$Q[r>>>24]^y>>>24;W[9]=$Q[R>>16&255]^y>>16&255;W[10]=$Q[V>>8&255]^y>>8&255;W[11]=$Q[f&255]^y&255;y=l[43];W[12]=$Q[R>>>24]^y>>>24;W[13]=$Q[V>>16&255]^y>>16&255;W[14]=$Q[f>>8&255]^y>>8&255;W[15]=$Q[r&255]^y&255};var zTv=!1;(function(){var W=function(f){return new Uint8Array(f)},l=function(f){for(var r=new Uint8Array(f.length),R=0;R<f.length;R++)r[R]=f[R];
return r},V=new Uint8Array([1]);
return V.length===1&&V[0]===1?W:l})();
var rZ;var xyX=function(W){a:{if(!zTv&&!li){if(rZ){var l=rZ;break a}rZ=(l=window.crypto)==null?void 0:l.subtle;var V,f,r;if(((V=rZ)==null?0:V.importKey)&&((f=rZ)==null?0:f.sign)&&((r=rZ)==null?0:r.encrypt)){l=rZ;break a}rZ=void 0}l=void 0}l&&(this.nativeEncryptor=new NnZ(W,l));this.encryptorPolyfill=new YpM(W)};
xyX.prototype.encrypt=function(W,l){var V=this,f;return _.g(function(r){switch(r.nextAddress){case 1:if(!V.nativeEncryptor){r.jumpTo(2);break}_.HG(r,3);return r.yield(V.nativeEncryptor.encrypt(W,l),5);case 5:return r.return(r.yieldResult);case 3:f=_.pc(r),_.Qe(f),zTv=!0,V.nativeEncryptor=void 0;case 2:return r.return(V.encryptorPolyfill.encrypt(W,l))}})};
xyX.prototype.decrypt=function(W,l){return this.encrypt(W,l)};
var NnZ=function(W,l){this.JSC$12694_aesKey=W;this.subtleCrypto=l};
NnZ.prototype.encrypt=function(W,l){var V=this,f;return _.g(function(r){if(r.nextAddress==1)return _.HG(r,2),r.yield(eT9(V,W,l),4);if(r.nextAddress!=2)return r.return(r.yieldResult);f=_.pc(r);_.Qe(f);zTv=!0;throw f;})};
var eT9=function(W,l,V){var f,r;return _.g(function(R){switch(R.nextAddress){case 1:if(W.cryptoKey){R.jumpTo(2);break}return R.yield(W.subtleCrypto.importKey("raw",W.JSC$12694_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:W.cryptoKey=R.yieldResult;case 2:return f={name:"AES-CTR",counter:V,length:128},R.yield(W.subtleCrypto.encrypt(f,W.cryptoKey,l),4);case 4:return r=R.yieldResult,R.return(new Uint8Array(r))}})},YpM=function(W){this.JSC$12697_aesKey=W};
YpM.prototype.encrypt=function(W,l){this.encryptor||(this.encryptor=new O_L(this.JSC$12697_aesKey));for(var V=this.encryptor,f=0;f<4;f++)V.counter[f]=l[f*4]<<24|l[f*4+1]<<16|l[f*4+2]<<8|l[f*4+3];V.blockOffset=16;return this.encryptor.encrypt(W)};
YpM.prototype.decrypt=function(W,l){return this.encrypt(W,l)};var qpX={},LmJ=Rl("yt-idb-pref-storage",{objectStores:(qpX.prefs={addedAtVersion:1},qpX),shared:!1,upgrade:function(W,l){l(1)&&Nt(zd(W,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.RB=function(W){this.token=W};
_.RB.getInstance=function(){return _.g(function(W){return W.return(new Promise(function(l){_.r8().then(function(V){V?(_.RB.instance||(_.RB.instance=new _.RB(V)),l(_.RB.instance)):l(void 0)})}))})};
_.RB.prototype.get=function(W){var l=this,V,f,r;return _.g(function(R){if(R.nextAddress==1)return R.yield(yJj(l.token),2);if(R.nextAddress!=3)return V=R.yieldResult,R.yield(V.get("prefs",W),3);f=R.yieldResult;if(!f)return R.return();r=(0,_.tv)();return f.expirationTimestampMs<=r?R.return():R.return(f.value)})};
_.RB.prototype.set=function(W,l,V){V=V===void 0?31536E3:V;var f=this,r,R,y;return _.g(function(P){if(P.nextAddress==1)return r=(0,_.tv)(),R={key:W,value:l,expirationTimestampMs:r+V*1E3},P.yield(yJj(f.token),2);y=P.yieldResult;return P.yield(y.put("prefs",R),0)})};
_.RB.prototype.remove=function(W){var l=this,V;return _.g(function(f){if(f.nextAddress==1)return f.yield(yJj(l.token),2);V=f.yieldResult;return f.yield(V.delete("prefs",W),0)})};var tz={},hTk=(tz.INVALID_ENCODER_VERSION="Invalid encoder version",tz.KEY_CREATION_FAILED="Failed to create encoder key",tz.UNKNOWN_DECODE_ERROR="Failed to decode PES data",tz.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",tz.WRONG_DATA_TYPE="Encoder cannot process the data type",tz),TT=function(W,l){l=l===void 0?{}:l;_.bP.call(this,hTk[W],Object.assign({},{name:"PESEncoderError",type:W},l));this.type=W;this.level="WARNING";Object.setPrototypeOf(this,TT.prototype)};
_.v(TT,_.bP);var s7=function(){};
s7.prototype.encode=function(W,l){try{return this.encodeImpl(W,l)}catch(V){COU(V,POq)}};
s7.prototype.decode=function(W,l){try{return this.decodeImpl(W,l)}catch(V){COU(V,nQz)}};
var Spv=function(W,l,V){var f;return _.g(function(r){if(r.nextAddress==1)return _.HG(r,2),r.yield(W.decodeAsyncImpl(l,V),4);if(r.nextAddress!=2)return r.return(r.yieldResult);f=_.pc(r);COU(f,nQz);_.ju(r)})};
s7.prototype.decodeAsyncImpl=function(W,l){return Promise.resolve(this.decodeImpl(W,l))};var L6=function(W,l){this.aesEncryptor=W;this.aesEncryptorAsync=l};
_.v(L6,s7);L6.prototype.encodeImpl=function(W,l){l=cJ8(l);W=(new TextEncoder).encode(JSON.stringify(W));return this.aesEncryptor.encrypt(W,l)};
L6.prototype.decodeImpl=function(W,l){if(!(W instanceof Uint8Array))throw gQz(1);var V=new TextDecoder;l=cJ8(l);W=this.aesEncryptor.decrypt(W,l);return JSON.parse(V.decode(W))};
L6.prototype.decodeAsyncImpl=function(W,l){var V=this,f,r,R;return _.g(function(y){if(y.nextAddress==1){if(!(W instanceof Uint8Array))throw gQz(1);f=new TextDecoder;r=cJ8(l);return y.yield(V.aesEncryptorAsync.decrypt(W,r),2)}R=y.yieldResult;return y.return(JSON.parse(f.decode(R)))})};var BTq={accountLinkStatusEntity:YYL,booleanEntity:v$9,buttonEntity:yPv,captionTrack:e5X,channelHandle:ESv,chipEntity:Qka,commerceAcquisitionClientPayloadEntity:mD9,commerceCartListEntity:XBM,contextNoteFeedEntityPayload:PcL,contextNoteUserRatingEntityPayload:ng9,continuationTokenEntity:o6M,downloadQualityPickerEntity:DN$,downloadsPageRefreshTokenEntity:uSe,downloadsPageViewConfigurationEntity:QML,downloadStatusEntity:UN9,dismissState:MXk,sfvAudioItemCurrentlyPlayingEntity:GPI,emojiFountainDataEntity:t6X,
emojiCustomizationSetEntity:RfX,fakeChannel:FEk,fakePlaylist:Gr$,fakePlaylistEntryCollection:biL,fakeVideo:o$L,fakeVideoDescription:j9X,featuredProductsEntity:R5v,flowStateEntity:OiB,iconBadgeEntity:TyM,interstitialInteractionStateEntity:L3B,likeButtonAnimationEntity:MqI,liveChatPollStateEntity:dVk,dataFreshnessEntity:rP9,liveViewerLeaderboardChatEntryPointStateEntity:LmI,liveViewerLeaderboardPointsEntity:yJk,liveReactionsDataEntity:s8L,logoEntity:tNv,macroMarkerEntity:ZdL,mainDownloadsLibraryEntity:kp1,
mainDownloadsListEntity:v6k,mainPlaylistDownloadStateEntity:KpZ,mainPlaylistEntity:jM9,mainPlaylistVideoEntity:I3L,mainVideoDownloadStateEntity:Fp9,mainVideoEntity:TkM,markersEngagementPanelSyncEntity:Od$,markersVisibilityOverrideEntity:a3M,musicAlbumReleaseDetail:d0a,musicAlbumReleaseDownloadMetadataEntity:PGB,musicAlbumRelease:Bt1,musicAlbumReleaseUserDetail:Je$,musicArtistDetail:U0k,musicArtist:D0L,musicArtistUserDetail:u5e,musicDownloadsLibraryEntity:n0B,musicLibraryEdit:kfM,musicLibraryStatusEntity:v0$,
musicPlaylist:HBM,musicPlaylistDownloadMetadataEntity:CGa,musicShare:F9L,musicTrackDetail:bBB,musicTrackDownloadMetadataEntity:cea,musicTrack:GfL,musicTrackUserDetail:po1,offlineOrchestrationActionWrapperEntity:qj9,offlineVideoPolicy:h5v,offlineVideoStreams:SjL,offlineabilityEntity:Gpa,orchestrationWebSamplingEntity:bdv,pageHeaderEntity:hlZ,pdpStateEntity:wBB,pinnedProductEntity:tsI,playbackData:E09,playerStateEntity:ziX,quantityIncrementerEntity:APc,refresh:$0a,saveToPlaylistListEntity:e1X,selectedChipIndexEntityPayload:Nkk,
settingEntity:BZ9,stringEntity:HiM,suggestedFeedbackChipStateEntity:Y2k,transfer:Wmk,trendingOfferEntity:szk,videoDownloadContextEntity:lkc,videoOverviewAsyncDataEntity:sRL,videoPlaybackPositionEntity:nIL,votingEntity:WT9,ytMainChannelEntity:wOk,youchatPendingResponseEntity:xNe,ytMainDownloadedVideoEntity:pO1,ytMainVideoEntity:Auk};var EvX,WnM,ZA,HEU,Km4,foZ,RgL,rTv,V9Z;EvX=function(W,l){this.JSC$12716_wrapped=W;this.JSC$12716_encoderRegistry=l;this.changedKeys={}};
WnM=function(W,l){return $yk(W.JSC$12716_encoderRegistry,l.version).decode(l.data,l.key)};
_.lov=function(W,l,V){return W.JSC$12716_wrapped.objectStore("EntityStore").get(l).then(function(f){if(f){if(V&&f.entityType!==V)throw Error("Ff");return WnM(W,f)}})};
ZA=function(W,l,V){return V?(V=V.map(function(f){return _.lov(W,f,l)}),z4.all(V)):W.JSC$12716_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(l)).then(function(f){return f.map(function(r){return WnM(W,r)})})};
_.vQY=function(W,l,V){var f=Wmj(l),r=$yk(W.JSC$12716_encoderRegistry,1),R=Object.assign({},l);return W.JSC$12716_wrapped.objectStore("EntityStore").get(f).then(function(y){if(y){if(y.entityType!==V)throw Error("Ff");R.entityMetadata||(y=WnM(W,y),R.entityMetadata=y.entityMetadata)}}).then(function(){var y={key:f,
entityType:V,data:r.encode(R,f),version:1};return z4.all([W.JSC$12716_wrapped.objectStore("EntityStore").put(y),V9Z(W,R,V)])}).then(function(){foZ(W,f,V);
return f})};
HEU=function(W,l){var V=_.p0(l).entityType;return z4.all([W.JSC$12716_wrapped.objectStore("EntityStore").delete(l),rTv(W,l)]).then(function(){foZ(W,l,V)})};
Km4=function(W,l,V,f){var r=$yk(W.JSC$12716_encoderRegistry,1);return _.lov(W,l,f).then(function(R){if(R){R=ZBU(R,V);var y={key:l,entityType:f,data:r.encode(R,l),version:1};return z4.all([W.JSC$12716_wrapped.objectStore("EntityStore").put(y),V9Z(W,R,f)])}}).then(function(){foZ(W,l,f);
return l})};
foZ=function(W,l,V){var f=W.changedKeys[V];f||(f=new Set,W.changedKeys[V]=f);f.add(l)};
RgL=function(W,l,V){var f=Wmj(l);V=dl8(V);if(!V)return z4.resolve([]);V=new V(l);W=W.JSC$12716_wrapped.objectStore("EntityAssociationStore");l=[];V=_.L(V.getAssociations());for(var r=V.next();!r.done;r=V.next())l.push(W.put({parentEntityKey:f,childEntityKey:r.value}));return z4.all(l).then(function(R){return R.map(function(y){return y[1]})})};
rTv=function(W,l){return W.JSC$12716_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(l))};
V9Z=function(W,l,V){var f=Wmj(l);return rTv(W,f).then(function(){return RgL(W,l,V)})};var t99=function(){};
_.v(t99,s7);t99.prototype.encodeImpl=function(W){return W};
t99.prototype.decodeImpl=function(W){if(W instanceof Uint8Array)throw gQz(0);return W};var UlY=function(){this.cacheMap={};this.cacheMap[0]=new t99;if(!_.U("aes_pes_encoder_killswitch")){var W=this.cacheMap;try{var l=_.FP();var V=cJ8(l);var f=new L6(new YpM(V),new xyX(V))}catch(r){throw W=r instanceof Error?new TT("KEY_CREATION_FAILED",{originalMessage:r.message}):new TT("KEY_CREATION_FAILED"),_.wv(W),W;}W[1]=f}},$yk=function(W,l){l=l===void 0?0:l;
W=W.cacheMap[l];if(!W)throw l=new TT("INVALID_ENCODER_VERSION",{encoderVersion:l}),_.wv(l),l;return W};var AW=function(W,l){_.iI.call(this);this.token=W;this.JSC$12730_encoderRegistry=l;this.observers=[];W=new _.rS.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.FP());W.onmessage=this.handleMessage.bind(this);this.channel=W};
_.v(AW,_.iI);_.Md=function(W,l,V){var f,r,R,y;return _.g(function(P){if(P.nextAddress==1)return P.yield(sHn(W.token),2);if(P.nextAddress!=3)return f=P.yieldResult,P.yield(_.E6(f,["EntityStore","EntityAssociationStore"],l,function(n){r=new EvX(n,W.JSC$12730_encoderRegistry);return V(r)}),3);
R=P.yieldResult;r&&(y=r.changedKeys,Object.keys(y).length>0&&(W.channel.postMessage(y),s4e(W,y)));return P.return(R)})};
AW.prototype.observe=function(W){var l=this;this.observers.push(W);return function(){var V=l.observers.indexOf(W);V>=0&&l.observers.splice(V,1)}};
var zvz=function(W){var l;return _.g(function(V){if(V.nextAddress==1)return V.yield(_.Md(W,{mode:"readonly",enableRetries:!0},function(f){return f.JSC$12716_wrapped.objectStore("EntityStore").getAll()}),2);
l=V.yieldResult;return V.return(Promise.all(l.filter(function(f){return!!f}).map(function(f){var r,R;
return _.g(function(y){if(y.nextAddress==1){r=f.key;R=f.entityType;var P=y.yield;var n=Spv($yk(W.JSC$12730_encoderRegistry,f.version),f.data,f.key);return P.call(y,n,2)}return y.return({key:r,entityType:R,data:y.yieldResult})})})))})};
AW.prototype.handleMessage=function(W){s4e(this,W.data)};
var s4e=function(W,l){W=_.L(W.observers);for(var V=W.next();!V.done;V=W.next())V=V.value,V(l)};
AW.prototype.disposeInternal=function(){this.channel.close()};
var JJ4;var yC,yTc,z1q;yC={};_.Ln1=(yC.mainVideoEntity="mainVideoEntityActionMetadata",yC.mainPlaylistEntity="mainPlaylistEntityActionMetadata",yC.musicTrack="musicTrackEntityActionMetadata",yC.musicPlaylist="musicPlaylistEntityActionMetadata",yC);yTc=new _.vd("DOWNLOADS_ENTITY_TYPE_MAP");_.qd=_.i_("","downloadsPageViewConfigurationEntity");z1q=_.i_("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.H6q=_.i_("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.i_("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.i_("SMART_DOWNLOADS_ENABLED","settingEntity");_.i_("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var oQz=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var wmS=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var PLS={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var gZ,PHU,sfc,Mfg;gZ=window;_.La=gZ.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.vrj=gZ.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.cl;PHU=gZ.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||j$;sfc=gZ.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||t1L;_.gF$=gZ.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.HkX;Mfg=gZ.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||GGB;na({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 FBv=nrY(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(W){return W}}}),voU=nrY(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(W){return W}}}),dqq=new Map;var bAY=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],kvJ;var Pn$=function(W){return _.GT({type:"SET_EPHEMERAL_ACTION",payload:W})};var nFk={ephemeralAction:null};var Cn1={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var pBF={sharedUi:function(W,l){W=W===void 0?Cn1:W;switch(l.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},W,{animatedThumbnailEnabled:l.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},W,{inlinePreviewEnabled:l.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},W,{currentPageType:l.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},W,{currentPageSubType:l.payload});default:return W}},
a11y:T$({ephemeralAction:function(W,l){W=W===void 0?nFk.ephemeralAction:W;switch(l.type){case "SET_EPHEMERAL_ACTION":return l.payload;default:return W}}}),
entities:Vbn};var gIz={playlistId:"",inviteLinkURL:""};var cTc={continuationCommand:{}};var ujF=T$({continuationCommand:function(W,l){W=W===void 0?cTc.continuationCommand:W;switch(l.type){case "SET_CONTINUATION_COMMAND":return l.payload.continuationCommand;default:return W}}});var nIv={currentFormId:"",commandsMap:{}};var kDg=T$({isLeaderTab:function(W,l){W=W===void 0?!0:W;switch(l.type){case "SET_IS_LEADER_TAB":var V,f;return(f=l==null?void 0:(V=l.payload)==null?void 0:V.isLeaderTab)!=null?f:W;default:return W}}});var dQk;_.BDv=function(W){return _.GT({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:W}})};
dQk=function(W){return _.GT({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:W}})};var bfF=T$({isDesktopSmallWidth:function(W,l){switch(l.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return l.payload.isDesktopSmallWidth;default:return W===void 0?!1:W}},
isShortsActive:function(W,l){switch(l.type){case "SET_IS_SHORTS_ACTIVE":return l.payload.isShortsActive;default:return W===void 0?!1:W}},
isWatchWhileMode:function(W,l){switch(l.type){case "SET_IS_WATCH_WHILE_MODE":return l.payload.isWatchWhileMode;default:return W===void 0?!1:W}},
playerState:function(W,l){switch(l.type){case "SET_PLAYER_STATE":return l.payload.playerState;default:return W===void 0?-1:W}},
isFullscreen:function(W,l){switch(l.type){case "SET_IS_FULLSCREEN":return l.payload.isFullscreen;default:return W===void 0?!1:W}},
isSmallScreenSqueezeback:function(W,l){switch(l.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return l.payload.isSmallScreenSqueezeback;default:return W===void 0?!1:W}},
isShortsPipActive:function(W,l){switch(l.type){case "SET_IS_SHORTS_PIP_ACTIVE":return l.payload.isShortsPipActive;default:return W===void 0?!1:W}},
isPlaybackStarted:function(W,l){switch(l.type){case "SET_IS_PLAYBACK_STARTED":return l.payload.isPlaybackStarted;default:return W===void 0?!1:W}}});var cP6={currentMode:"canvas-hidden"};var j8z=function(){return function(W){return function(l){var V=W(l);_.Gt(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[l],!0);return V}}};var JTB,AF8;JTB=new _.mg;_.vp=new _.vd("WATCH_PLAYER_PROMISE_TOKEN");_.DQI=new _.mg;_.UQ1=new _.vd("SHORTS_PLAYER_PROMISE_TOKEN");AF8=new _.vd("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var IPz=function(){return function(W){return function(l){l.type==="ENTITY_LOADED"&&_.tY().resolve(_.vp).then(function(V){var f;(f=V.dispatchReduxAction)==null||f.call(V,l)});
return W(l)}}};var uGa={};var vI6=T$({additionalContext:function(W,l){switch(l.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var V;return(V=l.payload)!=null?V:"";default:return W===void 0?"":W}},
impersonatedChannelUrl:function(W,l){switch(l.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var V;return(V=l.payload)!=null?V:"";default:return W===void 0?"":W}},
selectedVideoIds:function(W,l){W=W===void 0?uGa:W;switch(l.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var V={};return Object.assign({},W,(V[l.payload]=!0,V));case "VIDEO_UNSELECTED":return l=l.payload,W=Object.assign({},W),delete W[l],W;default:return W}}});var HfF=T$({parentClickTrackingParams:function(W,l){switch(l.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return l.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return W===void 0?"":W}}});var kO1=function(W){return _.GT({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:W})};var vFI={};var KTg=T$({stepStates:function(W,l){W=W===void 0?vFI:W;switch(l.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var V=W,f=l.payload,r,R,y;W={};l={selectionStates:Object.assign({},(y=(r=V[f.stepId])==null?void 0:r.selectionStates)!=null?y:{},(W[f.token]={isSelected:f.isSelected},W)),userQuery:(R=V[f.stepId])==null?void 0:R.userQuery};r={};return Object.assign({},V,(r[f.stepId]=l,r));case "TALK_TO_RECS_UPDATE_USER_QUERY":return r=W,R=l.payload,y={selectionStates:Object.assign({},
(f=(V=r[R.stepId])==null?void 0:V.selectionStates)!=null?f:{}),userQuery:{userQuery:R.userQuery,token:R.userQueryToken}},V={},Object.assign({},r,(V[R.stepId]=y,V));default:return W}}});var HFk,Kne,GOa;HFk=function(W){return _.GT({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:W})};
Kne=function(W){return _.GT({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:W})};
_.Qt=function(W){return _.GT({type:"SET_CURRENT_PAGE_TYPE",payload:W})};
_.Fnk=function(W){return _.GT({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:W})};
GOa=function(W){return _.GT({type:"SET_CHIP_BAR_IS_STICKY",payload:W})};var dD6={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"};_.bFv=function(W){return _.GT({type:"SET_PLAYER_STATE",payload:{playerState:W}})};var pHL=[],oFk={width:0,height:0};var FTq=T$({isTheaterMode:function(W,l){W=W===void 0?_.U("kevlar_disable_theater_mode_persistence")?!1:_.ZL("START_IN_THEATER_MODE"):W;switch(l.type){case "SET_IS_THEATER_MODE":return l.payload.isTheaterMode;default:return W}},
isWatchActive:function(W,l){switch(l.type){case "SET_IS_WATCH_ACTIVE":return l.payload.isWatchActive;default:return W===void 0?!1:W}},
isLearningJourneyActive:function(W,l){switch(l.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return l.payload.isLearningJourneyActive;default:return W===void 0?!1:W}},
isWatchFullscreen:function(W,l){switch(l.type){case "SET_IS_WATCH_FULLSCREEN":return l.payload.isWatchFullscreen;default:return W===void 0?!1:W}},
isWatchNarrowWidth:function(W,l){switch(l.type){case "SET_IS_WATCH_NARROW_WIDTH":return l.payload.isWatchNarrowWidth;default:return W===void 0?!1:W}},
isWatchRetroMode:function(W,l){switch(l.type){case "SET_IS_WATCH_RETRO_MODE":return l.payload.isWatchRetroMode;default:return W===void 0?!1:W}},
isLiveChatCollapsed:function(W,l){switch(l.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return l.payload.isLiveChatCollapsed;default:return W===void 0?!1:W}},
openEngagementPanels:function(W,l){W=W===void 0?pHL:W;var V=[].concat(_.QK(W));switch(l.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return V.push(l.payload.panelToAdd),V;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return V.splice(V.indexOf(l.payload.panelToRemove),1),V;default:return W}},
playerState:function(W,l){switch(l.type){case "SET_PLAYER_STATE":return l.payload.playerState;default:return W===void 0?-1:W}},
watchScrollTop:function(W,l){switch(l.type){case "SET_WATCH_SCROLL_TOP":return l.payload.watchScrollTop;default:return W===void 0?0:W}},
watchWindowSize:function(W,l){W=W===void 0?oFk:W;switch(l.type){case "SET_WATCH_WINDOW_SIZE":return l.payload.watchWindowSize;default:return W}}});var j4k={feedbackTokens:[]};var GD6=T$({surveyFeedbackData:function(W,l){W=W===void 0?j4k:W;switch(l.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return l.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},W,l.payload);default:return W}}});var DD8={};var mDn=void 0;_.U("web_enable_redux_store_on_demand")||(mDn=ifY());var Ioa=function(W,l,V){var f=this;this.listId=W;this.JSC$12867_updateCallback=l;this.isOfflineVideoCallback=V;_.DJ().subscribe(function(){f.handleUpdate()})};
Ioa.prototype.getPlaylistData=function(){var W=_.DJ().getState().entities;if(this.listId&&this.listId!=="PPSV"){var l=WVS(W,this.listId,!0),V=_.i_(this.listId,"mainPlaylistEntity"),f,r;W=W==null?void 0:(f=W.mainPlaylistEntity)==null?void 0:(r=f[V])==null?void 0:r.title;return XBz(l,W,this.listId)}l=_.AJx(oCz(W));W=_.AJx(_.hW(W));W=l.concat(W);return XBz(W)};
Ioa.prototype.getPlaylistId=function(){return this.listId};
Ioa.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12867_updateCallback(this.listId,this.getPlaylistData(),{})};var P3=function(W,l,V,f){f=f===void 0?[]:f;this.JSC$12870_playlistNetworkManager=W;this.listId=l;this.JSC$12870_updateCallback=V;this.videoIds=f;this.pendingUpdates=[];this.currentIndex=0};
P3.prototype.JSC$12870_setCurrentIndex=function(W){this.currentIndex=W};
P3.prototype.setListId=function(W){this.listId=W};
var iFL=function(W,l){W.currentCreateRequest&&W.currentCreateRequest.cancel(l);W.currentUpdateRequest&&W.currentUpdateRequest.cancel(l);W.currentRefreshRequest&&W.currentRefreshRequest.cancel(l)};
P3.prototype.delete=function(){iFL(this,"PROXY DELETED")};
P3.prototype.addVideos=function(W,l,V){var f=this;V!==void 0?this.videoIds.splice.apply(this.videoIds,[V,0].concat(_.QK(W))):this.videoIds.push.apply(this.videoIds,_.QK(W));this.listId||this.currentCreateRequest?(W.forEach(function(r,R){r={addedVideoId:r,action:"ACTION_ADD_VIDEO"};V&&(r.addedVideoPosition=V+R);f.pendingUpdates.push(r)}),n6(this)):mQk(this,l.onCreateListCommand)};
var XHM=function(W,l,V,f,r){jY4(W.videoIds,l,V);l>W.currentIndex&&V<=W.currentIndex?W.JSC$12870_setCurrentIndex(W.currentIndex+1):l===W.currentIndex?W.JSC$12870_setCurrentIndex(V):l<W.currentIndex&&V>=W.currentIndex&&W.JSC$12870_setCurrentIndex(W.currentIndex-1);W.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:f,movedSetVideoIdPredecessor:r});n6(W)},mQk=function(W,l){iFL(W,"OBSOLETE");
W.currentCreateRequest=TD$(W.JSC$12870_playlistNetworkManager,l,W.videoIds);_.xS(W.currentCreateRequest,function(){W.currentCreateRequest=void 0}).then(function(V){W.setListId(V.playlistId);
W.pendingUpdates.length>0?n6(W):wHX(W)})},n6=function(W){if(W.pendingUpdates.length!==0&&(W.currentRefreshRequest&&W.currentRefreshRequest.cancel("OBSOLETE"),!W.currentUpdateRequest&&!W.currentCreateRequest)){var l=W.pendingUpdates.splice(0,W.pendingUpdates.length);
W.currentUpdateRequest=W.JSC$12870_playlistNetworkManager.updatePlaylist(W.listId,l);_.xS(W.currentUpdateRequest,function(){W.currentUpdateRequest=void 0}).then(function(){W.pendingUpdates.length>0?n6(W):wHX(W)}).thenCatch(function(){W.pendingUpdates.unshift.apply(W.pendingUpdates,_.QK(l))})}},wHX=function(W){W.currentRefreshRequest=_.ATk(W.JSC$12870_playlistNetworkManager,W.listId,W.currentIndex,W.videoIds[W.currentIndex]);
_.xS(W.currentRefreshRequest,function(){W.currentRefreshRequest=void 0}).then(function(l){W.JSC$12870_updateCallback(l.playlistId,l.playlistPanelRenderer,l.autoplayRenderer)})};
P3.prototype.size=function(){return this.videoIds.length};var Q4L=function(W,l,V,f){f=f===void 0?[]:f;P3.call(this,W,l,V,f);this.JSC$12870_playlistNetworkManager=W;this.listId=l;this.JSC$12870_updateCallback=V;this.videoIds=f};
_.v(Q4L,P3);_.C6=function(W,l,V,f,r,R,y){r=r===void 0?[]:r;y=y===void 0?GR:y;P3.call(this,W,l,V,r);this.JSC$12870_playlistNetworkManager=W;this.listId=l;this.JSC$12870_updateCallback=V;this.onAuthChange=f;this.videoIds=r;this.storage=R;this.cookieReader=y;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.pP(_.w8,this.checkLoggedInStatusChange.bind(this),1E3)};
_.v(_.C6,P3);_.t=_.C6.prototype;_.t.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.pP(_.w8,this.checkLoggedInStatusChange.bind(this),1E3)};
_.t.JSC$12870_setCurrentIndex=function(W){P3.prototype.JSC$12870_setCurrentIndex.call(this,W);this.store()};
_.t.delete=function(){_.w8.cancelJob(this.queueSapisIdJob);P3.prototype.delete.call(this)};
_.t.setListId=function(W){P3.prototype.setListId.call(this,W);this.store()};
_.t.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var M9a=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],ZFe=["playerResponse","videoDetails"],OFX=["response","currentVideoEndpoint","watchEndpoint","videoId"],aoL=["response","currentVideoEndpoint","watchEndpoint","playlistId"],zgc=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],NDk=["response","contents","twoColumnWatchNextResults","playlist","playlist"],Y3X=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
xQM=["response","contents","twoColumnWatchNextResults"];var c3={},M6v=(c3.WEB_UNPLUGGED="^unplugged/",c3.WEB_UNPLUGGED_ONBOARDING="^unplugged/",c3.WEB_UNPLUGGED_OPS="^unplugged/",c3.WEB_UNPLUGGED_PUBLIC="^unplugged/",c3.WEB_CREATOR="^creator/",c3.WEB_KIDS="^kids/",c3.WEB_EXPERIMENTS="^experiments/",c3.WEB_MUSIC="^music/",c3.WEB_REMIX="^music/",c3.WEB_MUSIC_EMBEDDED_PLAYER="^music/",c3.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",c3);var vOz,TD$;vOz=function(W,l){this.networkManager=W;this.innertubeTransportService=l};
TD$=function(W,l,V){if(!_.k(l,_.dT))return _.eM(Error("Jf"));_.k(l,_.dT).videoIds=V;V={create_playlist_title:_.wg("QUEUE",void 0,"Queue")};return APz(_.Lv(W.innertubeTransportService,l,V),Tyz)};
_.ATk=function(W,l,V,f){l={videoId:f,playlistId:l,playlistIndex:V};V=_.Um(xAZ);return APz(_.B3(W.innertubeTransportService,l,V),Q8F)};
vOz.prototype.updatePlaylist=function(W,l){return APz(_.Lv(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:W,actions:l}}),wBF)};var eg$=function(W){this.storage=W},q3k;
eg$.prototype.store=function(W,l){l=l===void 0?0:l;if(this.storage&&W.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",W),this.storage.set("TLPQindex",String(l)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(V){}};
eg$.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
eg$.prototype.getPlaylistId=function(){if(!this.storage)return null;var W=null;try{W=this.storage.get("TLPQplaylist")}catch(l){}return W};var zfx=["navigationEndpoint","watchEndpoint","videoId"],aPx=["nextButtonVideo","watchEndpoint","videoId"];_.lm=new _.vd("NETWORK_TOKEN");_.Bp=new _.vd("PAGE_TOKEN");_.dZ=new _.vd("PLAYLIST_TOKEN");var hgk;hgk=new _.vd("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Vb=new _.vd("INNERTUBE_TRANSPORT_TOKEN");var S3$,Jz,$QB,WWL,VZZ,f8X;S3$=new Set(["ci","cr","carml"]);Jz=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12917_parkedJobs=new Map;this.parkedProcessors=new Map};
_.DI=function(){Jz.instance||(Jz.instance=new Jz);return Jz.instance};
Jz.prototype.onAny=function(W){return _.EFa(this,W,2)};
Jz.prototype.parkOrScheduleJob=function(W,l,V,f,r){_.U7(this,V)?_.Am().addJob(W,l,f):(r&&(W=$QB(W),WWL(this,W,l,V,r)),r=this.JSC$12917_parkedJobs.get(V),r||(this.JSC$12917_parkedJobs.set(V,[]),r=this.JSC$12917_parkedJobs.get(V)),r.push({job:W,priority:l,delay:f}))};
Jz.prototype.addListener=function(W,l,V){V&&(l=$QB(l),WWL(this,l,0,W,V));V=this.parkedProcessors.get(W);V||(this.parkedProcessors.set(W,[]),V=this.parkedProcessors.get(W));V.push(l)};
Jz.prototype.processSignal=function(W){if(!_.U7(this,W)){this.inProgressSignals.add(W);var l=this.JSC$12917_parkedJobs.get(W);if(l){l=_.L(l);for(var V=l.next();!V.done;V=l.next())V=V.value,_.Am().addJob(V.job,V.priority,V.delay);this.JSC$12917_parkedJobs.delete(W)}if(l=this.parkedProcessors.get(W)){l=_.L(l);for(V=l.next();!V.done;V=l.next())V=V.value,V();this.parkedProcessors.delete(W)}this.signals.push(W);this.inProgressSignals.delete(W)}};
_.U7=function(W,l){return S3$.has(l)||_.ZL("IS_HOMEPAGE_COLD")||_.ZL("IS_RESULTS_PAGE_COLD")||_.ZL("IS_WATCH_PAGE_COLD")?W.signals.indexOf(l)>=0:!0};
$QB=function(W){var l=!1;return function(){l||(l=!0,W())}};
WWL=function(W,l,V,f,r){if(l8e.has(f))_.Am().addJob(l,V,r);else{var R=W.compoundSignals.get(f);R&&_.Am().addJob(function(){_.U7(W,f)||(R.isTimeoutConditionSatisfied?_.Am().addJob(l,V):R.timeoutConditionObservers.push(function(){_.Am().addJob(l,V)}))},V,r)}};
_.EFa=function(W,l,V){if(l.length>1){var f=[],r=Object.create(null);l=_.L(l);for(var R=l.next();!R.done;R=l.next())R=R.value,r[R]||(f.push(R),r[R]=!0);l=f}if(l.length===1)return l[0];R=l;f="";r=V===2?"|":"&";R.sort();R=_.L(R);for(var y=R.next();!y.done;y=R.next())f+=y.value+r;if(!W.compoundSignals.get(f)){r=0;R=[];y=_.L(l);for(var P=y.next();!P.done;P=y.next())P=P.value,r++,_.U7(W,P)||R.push(P);(V=V===2)&&r>R.length||!V&&!R.length?W.signals.push(f):VZZ(W,f,V,l,R)}return f};
VZZ=function(W,l,V,f,r){var R=r.length,y=function(){V||--R===0?W.processSignal(l):f8X(W,l)};
r=_.L(r);for(var P=r.next();!P.done;P=r.next())W.addListener(P.value,y);W.compoundSignals.set(l,{signals:f,isOnAny:V,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});f8X(W,l)};
f8X=function(W,l){if(!_.U7(W,l)){var V=W.compoundSignals.get(l);if(V&&!V.isTimeoutConditionSatisfied){for(var f=!1,r=0,R=0,y=_.L(V.signals),P=y.next();!P.done;P=y.next()){var n=P.value;P=!_.U7(W,n);l8e.has(n)?f=!0:(n=W.compoundSignals.get(n))?P&&!n.isTimeoutConditionSatisfied&&(R++,V.isInitialized||n.timeoutConditionObservers.push(function(){f8X(W,l)})):P&&r++}V.isInitialized=!0;
V.isOnAny?f&&(V.isTimeoutConditionSatisfied=!0):r===0&&R===0&&(V.isTimeoutConditionSatisfied=!0);if(V.isTimeoutConditionSatisfied)for(V=_.L(V.timeoutConditionObservers),f=V.next();!f.done;f=V.next())f=f.value,f()}}};
Jz.prototype.processSignal=Jz.prototype.processSignal;Jz.prototype.parkOrScheduleJob=Jz.prototype.parkOrScheduleJob;Jz.prototype.onAny=Jz.prototype.onAny;_.fR("ytsignals.getInstance",_.DI);Jz.prototype.onAny=Jz.prototype.onAny;Jz.prototype.parkOrScheduleJob=Jz.prototype.parkOrScheduleJob;Jz.prototype.processSignal=Jz.prototype.processSignal;var l8e=new Set(["eop","eocs","dl","pcl"]);_.Sl=new _.vd("MINIPLAYER_SERVICE");var uL,rRZ,RbB;uL=function(W,l,V){var f=_.eC.getInstance();if(!q3k){var r=new js8;var R=void 0,y=_.M4("ID_TOKEN");y&&r.isAvailable()&&(R=new I0(r,"yt-queue"+y));q3k=new eg$(R)}r=q3k;R=_.DI();this.JSC$12924_actionRouter=f;this.pageManager=W;this.playlistManager=l;this.JSC$12924_playlistNetworkManager=V;this.storage=r;this.signals=R;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.kC=function(){if(!rRZ){var W=_.tY(),l=W.resolve(_.R0(_.Bp)),V=W.resolve(_.R0(_.lm)),f=W.resolve(_.R0(_.dZ));W=W.resolve(_.Vb);rRZ=new uL(l,f,new vOz(V,W))}return rRZ};
RbB=function(W,l,V){if(V){var f;if(((f=W.responsePlaylistData)==null?void 0:f.playlistId)!==V)return}W.responsePlaylistData&&(V=hfY(l,W.responsePlaylistData),W.responsePlaylistData=(0,_.MC.unsafeClone)(W.responsePlaylistData),EIz(W.responsePlaylistData,V));V=W.temporaryItems.findIndex(function(r){return r.videoId===l});
V>-1&&W.temporaryItems.splice(V,1);_.v3(W,_.H3(W,W.response?W.response.autoplayRenderer:void 0))};
_.tZI=function(W,l){if(W.responsePlaylistData){var V=SBz(l,W.responsePlaylistData);EIz(W.responsePlaylistData,V);if(W.queueProxy){var f=W.queueProxy;V<0||(f.videoIds.splice(V,1),V<f.currentIndex&&f.JSC$12870_setCurrentIndex(f.currentIndex-1),f.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:l}),n6(f))}}_.v3(W,_.H3(W,W.response?W.response.autoplayRenderer:void 0))};
uL.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.v3(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
uL.prototype.setPlaylistData=function(W,l,V){this.temporaryItems=[];this.listId=W;this.responsePlaylistData=l;_.v3(this,_.H3(this,V))};
var sWa=function(W){return(W==null?0:W.playlistId)?W.playlistId:"PPSV"},LWc=function(W){return W&&W.playlistId?W.playlistId==="PPSV"?!0:EQJ(_.DJ().getState().entities,W.playlistId):!1};
uL.prototype.isPlayingOfflineVideo=function(){return this.response?LWc(this.response):!1};
uL.prototype.closeMiniplayer=function(W){var l=this.queueProxy&&this.queueProxy.size()<=1,V=_.tY().resolve(_.Sl);if(!this.queueProxy||l)this.queueProxy&&this.clearQueue(),V.close(!0);else{V.pipController.getWindow()&&window.focus();l=this.responsePlaylistData;var f=this.temporaryItems.length+(l&&l.contents?l.contents.length:0);l=_.wg("QUEUE_CLEARED_UNPLURALIZED")||_.Ag("QUEUE_CLEARED",f);l=_.kV(l);V=_.wg("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");f=_.wg("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.Ag("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",f);var r=_.wg("MINIPLAYER_CLOSE",void 0,"Close"),R=_.wg("CANCEL",void 0,"Cancel");_.rP(this.JSC$12924_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Bl(V),dialogMessages:[_.Bl(f)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Bl(r),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
l]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Bl(R)}}}}}}],W)}};
_.H3=function(W,l){var V={},f=W.response;V.autoplayRenderer=l;if(!W.responsePlaylistData&&!W.temporaryItems.length)return!f||!f.hasRelatedVideoData&&_.U("kevlar_prefetch_data_augments_network_data")||(V.playerData={rvs:f.relatedVideoArgs,endScreenRenderer:f.endScreenRenderer}),V;V.playerData={};if(W.index===void 0)return _.wv(Error("Lf")),V;V.panel=W.responsePlaylistData?(0,_.MC.unsafeClone)(W.responsePlaylistData):{titleText:_.Bl(_.wg("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
l=V.panel;if(l.contents)for(var r=_.L(W.temporaryItems),R=r.next();!R.done;R=r.next())l.contents.push({playlistPanelVideoRenderer:R.value});W.queueProxy&&f&&f.playingVideo&&f.playingVideoId&&!qBx(f.playingVideoId,V.panel)&&(l=f.playingVideo,r=V.panel,R=W.index,r.contents&&r.contents.splice(R===void 0?0:R,0,{playlistPanelVideoRenderer:l}));f&&f.playingVideoId&&(l=W.index,r=V.panel,l=!r.contents||l>=r.contents.length?void 0:r.contents[l].playlistPanelVideoRenderer,l&&l.videoId===f.playingVideoId||(l=
hfY(f.playingVideoId,V.panel),W.index=l!==-1?l:W.index?W.index-1:0));l=efx(W.index+1,V.panel);r=void 0;W.index>0&&(r=efx(W.index-1,V.panel));if(r||l)V.autoplayRenderer=Ny4(l,r,V.autoplayRenderer);!l&&(f==null?0:f.relatedVideoArgs)&&(V.playerData.rvs=f.relatedVideoArgs);f=f?f.playlistIndexOffset:0;W.queueProxy?lXS(V.panel,W.index,f,xD8,!0,!0,!0):lXS(V.panel,W.index,f);V.playerData.playlistPanelRenderer=V.panel;return V};
uL.prototype.openToast=function(W){_.tY().resolve(_.Sl).openToast(W,_.wg("ADDED_TO_QUEUE",void 0,"Added to queue"))};
uL.prototype.isMiniplayerActive=function(){return _.tY().resolve(_.Sl).isMiniplayerActive()};
_.v3=function(W,l){W.playlistManager.setAutoplayRenderer(l.autoplayRenderer||null);W.playlistManager.setPlaylistData(l.panel||null);l.playerData&&W.playlistManager.setPlayerPlaybackControlData(l.playerData)};var fXz="#";var yR$={},gac={},Ptk={},nav={},Ctv={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:(yR$.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",yR$),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:(gac.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",gac),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:(Ptk.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",Ptk),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:(nav.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",nav),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 QRJ=[{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:Ctv},{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:Ctv}}];var pZz;_.i0=[[["a2luZCNmanRhb215a21udGQ=","dWUjdGx5cTZlMW92d2lwdmFs"],"UlQjNmQ2ZDJtb2c2cHh1QURfUExBQ0VNRU5UX0tJTkRfU1RB"]];
pZz=[[["YnVkcjYyZXd6MWZwcmltYXJ5I3U=",null,null],[null,["eXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjNGh4cnh0Zmt1bmow","bGdoc3R5bGUtc2NvcGUjeHl3ZTd5OHFm"],null],["djZvbWFzdGhlYWQtYWQjd2o0MW9hYmFx",["cmVyI2FmeGxleTgyaDBqZnl0ZC1yaWNoLWdyaWQtcmVuZGU="],null],[null,["cmVyI2xnbWpzaGg1YmduNnl0ZC1yaWNoLWdyaWQtcmVuZGU=","NmZvMzBzdHlsZS1zY29wZSMxbmNuOHc="],null],[null,["I3ZhZmZlOWV5MnlqNnl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXI=","YWhsc3R5bGUtc2NvcGUjdnd4MnJhMjdw"],null],[null,["ZGVyZXIjMjd0ZWJnNGtpdmkyeXRkLWFkLXNsb3QtcmVu"],
null]],[["N2gyYmJwbGF5ZXItYWRzI2lvMmFnMno=",null,null]]];_.ID=["bENhbGxiYWNrcyNsZXB6a2w4YzFkcmlnbG9iYQ==","Y3RlZCMyaHJzdmgxYmVpNWhvbkFibm9ybWFsaXR5RGV0ZQ==","dThncjRkbmExb25BZFNraXAjazly","c3BvbnNlI3hra3BvYTF6bTJrZHJhd19wbGF5ZXJfcmU=","OGhpN2p3enNvMGthZFNsb3RzIzc="];_.K6="bENhbGxiYWNrcyNsZXB6a2w4YzFkcmlnbG9iYQ== Y3RlZCMyaHJzdmgxYmVpNWhvbkFibm9ybWFsaXR5RGV0ZQ== dThncjRkbmExb25BZFNraXAjazly c3BvbnNlI3hra3BvYTF6bTJrZHJhd19wbGF5ZXJfcmU= ZTl3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjdTNrdWlsN2tyZQ== bjVyMWU1aW0wYWJfc2FfZWYjMWpx OGhpN2p3enNvMGthZFNsb3RzIzc=".split(" ");var FU;FU=function(W,l,V){this.sTF=W;this.isAsync=l;this.wrq=V};
_.Shv=[new FU("b.f_",!1,0),new FU("j.s_",!1,2),new FU("r.s_",!1,4),new FU("e.h_",!1,6),new FU("i.s_",!0,8),new FU("s.t_",!1,10),new FU("p.h_",!1,12),new FU("s.i_",!1,14),new FU("f.i_",!1,16),new FU("a.b_",!1,18),new FU("a.o_",!1),new FU("g.o_",!1,22),new FU("p.i_",!1,24),new FU("p.m_",!1),new FU("n.k_",!0,20),new FU("i.f_",!1),new FU("a.s_",!0),new FU("m.c_",!1),new FU("n.h_",!1,26),new FU("o.p_",!1),new FU("m.p_",!0,28),new FU("o.a_",!1),new FU("d.p_",!1),new FU("e.i_",!1)].reduce(function(W,l){W[l.sTF]=
l;return W},{});var cRa=function(){};
cRa.prototype.flush=function(W,l){W=W===void 0?[]:W;l=l===void 0?!1:l;if(_.U("enable_client_streamz_web")){W=_.L(W);for(var V=W.next();!V.done;V=W.next())V=Guk(V.value),this.rootSpec&&_.b7(V,2,this.rootSpec),V={serializedIncrementBatch:_.Xw(V.JSC$9602_serializeBinary())},_.XC("streamzIncremented",V,{sendIsolatedPayload:l})}};
var sRv=function(){};
_.v(sRv,cRa);var BWv=function(W){var l=new UF9;var V=new dFv;V=_.mY(V,1,"botguard");W=_.mY(V,2,W);this.rootSpec=_.pM(l,1,ufI,W)};
_.v(BWv,cRa);var pa,dv1=new Map;var iZF,yMj,Dz4,nMz,Bxv,GJg,XZF,K4x;iZF=2;yMj=2;Dz4=2;nMz=2;Bxv=2;GJg=2;XZF=2;K4x=new ucX;var DvZ,Uvc,u1L;DvZ=function(){this.ongoingFlowNonces=new Map};
_.wE=function(){Uvc||(Uvc=new DvZ);return Uvc};
_.X2=function(W,l,V){return{eventType:{flowEventNamespace:W,flowEventType:l},metadata:V,statusCode:void 0,csn:void 0,can:void 0}};
_.$zz=function(W,l){var V=_.wE(),f=u1L(V,l,!0);_.TL(V,W,l,f)};
_.TL=function(W,l,V,f){W={flowNonce:f||u1L(W,V),flowType:V,flowEventType:l.eventType};l.metadata&&(W.flowMetadata=l.metadata);l.statusCode!==void 0&&(W.flowEventStatus=l.statusCode);l.csn&&(W.csn=l.csn);l.can&&(W.can=l.can);_.XC("flowEvent",W,void 0)};
u1L=function(W,l,V){V=V===void 0?!1:V;var f=W.ongoingFlowNonces.get(l);if(!f||V)f=SQ(16),W.ongoingFlowNonces.set(l,f);return f};_.kMI=new U_B;var fBv={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var Go=function(W,l,V,f,r,R,y){V=V===void 0?!1:V;f=f===void 0?!1:f;R=R===void 0?_.kC():R;this.hasRun=!1;this.arw=W;this.dtC=l;this.e3g=V;this.fromHistory=f;this.previousVideoId=r;this.m2b=R;this.tempData=y;this.slU=new _.k_Z};
_.v(Go,iO);Go.prototype.validate=function(W){return!(!W.data.playerResponse||W.data.page!=="watch"&&W.data.page!=="learning_journey_watch"&&W.data.page!=="shorts"||this.hasRun)};
Go.prototype.handle=function(W){var l=this,V=_.k(W.endpoint,_.Bh),f=_.k(W.endpoint,_.N$);if(_.U("kevlar_continue_playback_without_player_response")&&(V==null?0:V.videoId)&&this.previousVideoId&&(V==null?void 0:V.videoId)===this.previousVideoId&&(V==null?0:V.continuePlayback)&&!this.fromHistory)this.arw.resolve();else{var r={};V?r.watch_endpoint=V:f&&(r.watch_endpoint=f,f.endTimeSeconds&&(r.end=f.endTimeSeconds));W.data.page==="watch"?(W.data.filler||this.e3g||(_.l_("cfg"),_.eC.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(r,vac(this,W.endpoint)),_.U("enable_masthead_quartile_ping_fix")&&Object.assign(r,HxL(this)),Object.assign(r,void 0),W.data.forceExternalPlaylist&&(r.external_list=!0)):W.data.page==="shorts"?_.eC.getInstance().triggerAction("yt-start-loading-shorts"):W.data.page==="learning_journey_watch"&&_.eC.getInstance().triggerAction("yt-start-loading-learning-journey");if(V=this.dtC()){try{V.loadVideoWithPlayerResponse(W.data.playerResponse,r),V.getPlayerPromise().then(this.arw.resolve)}catch(R){_.wv(R),
this.arw.resolve()}this.hasRun=!0;V.getPlayerPromise().then(function(R){R.addEventListener("onAbnormalityDetected",function(){var y=W.data.playerResponse,P=R.getVideoData().cpn;XZF=0;_.JR$=P;if(P=hnv(y))l.slU.increment("IN_PLAYER"),_.A5(5),_.U("ab_st_vid_ks")?R.pauseVideo(!0):R.stopVideo(),y.playabilityStatus=Object.assign({},y.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:P}}),y.videoDetails=void 0,_.eC.getInstance().triggerOptionalAction("yt-updated-playability-status",
y.playabilityStatus)})})}else _.Qe(Error("Of"))}};
var vac=function(W,l){var V=_.k(l,_.Bh);if(l&&V&&V.playlistId&&V.videoId&&(W=W.m2b,W.queueProxy?(W=W.queueProxy,V=W.listId===V.playlistId?W.attributionData.get(V.videoId):void 0):V=void 0,V))return{queue_info:V}},HxL=function(W){var l;
if((l=W.tempData)==null?0:l.adpings)return{adpings:W.tempData.adpings}};var bL=function(W,l,V){this.hasRun=!1;this.okU=W;this.fX0=l;this.tYj=V};
_.v(bL,iO);bL.prototype.validate=function(W){return!!_.MC.getValueByKeys.apply(null,[W.data].concat(_.QK(xQM)))};
bL.prototype.handle=function(W){var l=this;this.okU.promise.then(function(){var V=W.data;var f=_.MC.getValueByKeys.apply(null,[V].concat(_.QK(M9a))),r=_.MC.getValueByKeys.apply(null,[V].concat(_.QK(NDk))),R=_.MC.getValueByKeys.apply(null,[V].concat(_.QK(OFX)));var y=(y=_.MC.getValueByKeys.apply(null,[V].concat(_.QK(ZFe))))?{videoId:y.videoId,thumbnail:y.thumbnail,title:y.title?_.Bl(y.title):void 0,shortBylineText:y.author?_.Bl(y.author):void 0}:void 0;var P=void 0;_.U("web_get_playlist_id_from_current_endpoint_ks")||
(P=_.MC.getValueByKeys.apply(null,[V].concat(_.QK(aoL))));var n=_.MC.getValueByKeys.apply(null,[V].concat(_.QK(Y3X))),B=_.MC.getValueByKeys.apply(null,[V].concat(_.QK(zgc))),d=!!n||!!B&&!!B.results&&B.results.length>0,J=0;r&&r.currentIndex&&r.localCurrentIndex&&(J=r.currentIndex-r.localCurrentIndex);r&&r.playlistId&&(P=r.playlistId);V={rawResponse:V,autoplayRenderer:f,hasRelatedVideoData:d,playingVideo:y,playingVideoId:R,playlistPanelRenderer:r,playlistId:P,playlistIndex:r&&r.currentIndex,relatedVideoArgs:n,
endScreenRenderer:B,playlistIndexOffset:J};a:{f=l.tYj;r=l.fX0;f.response=V;if(LWc(V))f.downloadPlaylistProxy&&f.downloadPlaylistProxy.getPlaylistId()===sWa(V)||(f.downloadPlaylistProxy=new Ioa(sWa(V),f.setPlaylistData.bind(f),f.isPlayingOfflineVideo.bind(f))),f.responsePlaylistData=f.downloadPlaylistProxy.getPlaylistData(),f.listId=sWa(V),f.index=0;else if(V.playlistPanelRenderer&&V.playlistId&&V.autoplayRenderer)V.playlistId.startsWith("TLPQ")?f.queueProxy?f.listId===V.playlistId?(f.index=V.playlistIndex,
f.responsePlaylistData=V.playlistPanelRenderer,f.queueProxy.JSC$12870_setCurrentIndex(f.index)):V.playingVideoId&&f.index!==void 0&&r.clientParams.autoSaveToQueue&&(f.index+=1,f.queueProxy.JSC$12870_setCurrentIndex(f.index),f.queueProxy.addVideos([V.playingVideoId],{},f.index)):(f.queueProxy=new _.C6(f.JSC$12924_playlistNetworkManager,V.playlistId,f.setPlaylistData.bind(f),f.clearQueue.bind(f),_.$D4(V.playlistPanelRenderer),f.storage),f.responsePlaylistData=V.playlistPanelRenderer,f.listId=V.playlistId,
f.index=V.playlistIndex):(f.index=V.playlistIndex,f.listId!==V.playlistId&&f.clearQueue(),f.responsePlaylistData=V.playlistPanelRenderer,f.listId=V.playlistId,f.playlistProxy=new Q4L(f.JSC$12924_playlistNetworkManager,V.playlistId,f.setPlaylistData.bind(f),_.$D4(V.playlistPanelRenderer)));else if(!f.queueProxy)f.responsePlaylistData=void 0;else if(V.playingVideoId&&r.clientParams.autoSaveToQueue){if(f.index===void 0){_.wv(Error("Kf"));f.clearQueue();break a}f.queueProxy.videoIds.includes(V.playingVideoId)||
(f.index+=1,f.queueProxy.JSC$12870_setCurrentIndex(f.index),f.queueProxy.addVideos([V.playingVideoId],{},f.index))}_.v3(f,_.H3(f,f.response.autoplayRenderer))}})};var KWL=function(W,l){l=l===void 0?_.kC():l;eb.call(this);this.un.push(new bL(this.zM,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},l));this.un.push(new Go(this.zM,W,!1,!1));_.U("web_response_commands_chunk_processor")&&this.un.push(new ql)};
_.v(KWL,eb);KWL.prototype.processChunk=function(W){W&&W.data.player===void 0&&this.zM.resolve();eb.prototype.processChunk.call(this,W)};var p6=function(W,l){W=W===void 0?{layer:0}:W;this.hasRun=!1;this.createScreenConfig=W;this.xbw=l};
_.v(p6,iO);p6.prototype.validate=function(W){return!(this.hasRun||!W.endpoint)};
p6.prototype.handle=function(W){var l=_.Qq(),V,f,r=(f=_.k((V=W.endpoint)==null?void 0:V.commandMetadata,_.XN))==null?void 0:f.rootVe;this.xbw&&r?_.Ob(l,r,this.xbw,this.createScreenConfig):Cra(l,W.endpoint,this.createScreenConfig);this.hasRun=!0};var oB=function(W,l){this.hasRun=!1;this.weF=W;this.previousVideoId=l};
_.v(oB,iO);oB.prototype.validate=function(W){return _.U("kevlar_continue_playback_without_player_response")&&(W=_.k(W.endpoint,_.Bh),(W==null?0:W.videoId)&&this.previousVideoId&&(W==null?void 0:W.videoId)===this.previousVideoId&&(W==null?0:W.continuePlayback))?!1:this.weF.lNw===0};
oB.prototype.handle=function(W){_.eC.getInstance().triggerAction("yt-stop-old-player",W.data,!0)};var FWk=function(W){W=W===void 0?{layer:0}:W;eb.call(this);this.un.push(new oB(this));this.un.push(new p6(W));this.un.push(new xQ(W))};
_.v(FWk,eb);var j7=function(){iO.apply(this,arguments)};
_.v(j7,iO);j7.prototype.validate=function(W){return!!W.data.preconnect};
j7.prototype.handle=function(W){_.Wy("bc");W=_.L(W.data.preconnect);for(var l=W.next();!l.done;l=W.next())l=l.value,(new Image).src=l};var GMe=function(W,l,V,f,r,R,y){V=V===void 0?{layer:0}:V;R=R===void 0?_.kC():R;eb.call(this);if(f)if(r){r=R;this.un.push(new bL(this.zM,l,r));this.un.push(new j7);var P,n;this.un.push(new Go(this.zM,W,!1,!((P=l.clientParams)==null||!P.fromHistory),(n=l.clientParams)==null?void 0:n.previousVideoId,r,l.tempData));var B;this.un.push(new oB(this,(B=l.clientParams)==null?void 0:B.previousVideoId));var d;(d=l.clientParams)!=null&&d.fromHistory||(V.layer||(V=Object.assign({},V,{layer:0})),this.un.push(new p6(V,
y)),this.un.push(new xQ(V)))}else this.un.push(new bL(this.zM,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},R)),this.un.push(new Go(this.zM,W,!1,!1));else this.un.push(new oB(this)),this.un.push(new p6(V)),this.un.push(new xQ(V));_.U("web_response_commands_chunk_processor")&&f&&this.un.push(new ql)};
_.v(GMe,eb);GMe.prototype.processChunk=function(W){W&&W.data.player===void 0&&this.zM.resolve();eb.prototype.processChunk.call(this,W)};var bxk=function(){this.hasRun=this.hasRun=!1};
_.v(bxk,iO);bxk.prototype.validate=function(W){return!this.hasRun&&!(!W.data.csn||!W.data.rootVe)};
bxk.prototype.handle=function(W){this.hasRun=!0;_.VW(W.data.csn,W.data.rootVe,3)};var p7c=function(W,l,V){V=V===void 0?{layer:0}:V;eb.call(this);this.un.push(new Go(this.zM,W));this.un.push(new p6(V));this.un.push(new xQ(V))};
_.v(p7c,eb);var oae=function(W,l,V,f,r){V=V===void 0?{layer:0}:V;f=f===void 0?_.kC():f;eb.call(this);var R=!!l&&!!l.clientParams&&!!l.clientParams.miniplayer;R&&this.un.push(new bxk);this.un.push(new bL(this.zM,l,f));this.un.push(new j7);var y,P;this.un.push(new Go(this.zM,W,R,!((y=l.clientParams)==null||!y.fromHistory),(P=l.clientParams)==null?void 0:P.previousVideoId,f,l.tempData));var n;this.un.push(new oB(this,(n=l.clientParams)==null?void 0:n.previousVideoId));var B;(B=l.clientParams)!=null&&B.fromHistory||
(V.layer||(V=Object.assign({},V,{layer:R?3:0})),this.un.push(new p6(V,r)),this.un.push(new xQ(V)));_.U("web_response_commands_chunk_processor")&&this.un.push(new ql)};
_.v(oae,eb);var IB,ixL;IB={};
_.jWk=(IB["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},IB["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},IB["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},IB["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},IB["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},IB["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},IB["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},IB);_.iL=new _.Ow("yt-edu");_.I8v=function(){this.JSC$13028_eduDisplayedThisLoad_={}};
ixL=function(W){var l=_.I8v.getInstance();var V=_.yS("kevlar_tooltip_impression_cap");l=V&&parseInt(_.iL.get(W+"-impression")||0,10)>=V||_.iL.get(W+"-dismissed")?!1:(V=_.jWk[W])&&!l.JSC$13028_eduDisplayedThisLoad_[V.setKey||W]&&(V.titleText&&_.wg(V.titleText)||V.bodyText&&_.wg(V.bodyText))?!0:!1;if(!l)return null;l=_.jWk[W];if(!l)return null;V=l.bodyText?_.wg(l.bodyText):void 0;var f=l.titleText?_.wg(l.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:l.position,popup:{bubbleHintRenderer:{text:f?
_.Bl(f):void 0,detailsText:V?_.Bl(V):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Bl(_.wg("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:W}}]}}}}}}}},{eduImpressionAction:{key:W}}]};
_.BF(_.I8v);var Waz=!1;for(var mvv="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),X7k=[],mV=6;mV>=1;mV--)X7k.push({columnCount:mV,query:mV==1?0:mV*2*107-4+32,className:"grid-"+mV+"-columns",width:mV*2*107+"px"});_.w7L=function(W){this.actionRouter_=W=W===void 0?_.eC.getInstance():W;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.TWc(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.TWc=function(W){var l=W.miniGuideVisible_?72:0,V=W.documentWidth_-(W.guidePersistentAndVisible_?240:l);return X7k.find(function(f){return V>f.query})};
_.BF(_.w7L);var ARI=function(){var W=this;this.JSC$13040_keyboardInUse=!1;document.addEventListener("keydown",function(){W.onKeydown()});
document.addEventListener("mousedown",function(){W.JSC$13040_keyboardInUse=!1})},QWI;
ARI.prototype.isKeyBoardInUse=function(){return this.JSC$13040_keyboardInUse};
ARI.prototype.onKeydown=function(){this.JSC$13040_keyboardInUse=!0};var MZ$,wZ;_.XU=new _.Ow("yt-mentions");_.To=function(){};
MZ$=function(W,l){return wZ(l,"drag-to-reorder-edu-displayed")};
wZ=function(W,l,V,f,r,R){V=V===void 0?"OPEN_POPUP_POSITION_TOP":V;if(l){if(_.XU.get(l))return;_.XU.set(l,!0,f)}if(r&&R!==void 0){l=Number(_.XU.get(r)||0);if(l>=R)return;_.XU.set(r,l+1)}return[{openPopupAction:{popupType:"HINT",position:V,popup:{bubbleHintRenderer:{detailsText:W,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.BF(_.To);var Zxv,Oxa,a8c;Zxv=function(W,l,V,f){this.JSC$13050_taskManager_=W;this.onFulfilled_=typeof l==="function"?l:null;this.onRejected_=typeof V==="function"?V:null;this.JSC$13050_context_=f};
Oxa=function(W,l){W.onFulfilled_&&_.a$(W.JSC$13050_taskManager_,function(){W.onFulfilled_.call(W.JSC$13050_context_,l)})};
a8c=function(W,l){W.onRejected_&&_.a$(W.JSC$13050_taskManager_,function(){W.onRejected_.call(W.JSC$13050_context_,l)})};
_.Az=function(W){this.JSC$13053_taskManager_=W;this.callbacks_=[]};
_.Az.prototype.then=function(W,l,V){this.callbacks_.push(new Zxv(this.JSC$13053_taskManager_,W,l,V));return this};
_.Az.prototype.onSuccess=function(W){this.callbacks_.forEach(function(l){Oxa(l,W)})};
_.Az.prototype.onFailure=function(W){this.callbacks_.forEach(function(l){a8c(l,W)})};
_.Az.prototype.cancel=function(){this.callbacks_.length=0};
oN1(_.Az);_.RB6=null;_.OZ=new _.vd("ACTIVITY_TOKEN");var QC=function(W,l){this.serviceId=new oYI(W,l)};
QC.prototype.toString=function(){return this.serviceId.toString()};var zbL=function(){this.internalMap={}};
_.t=zbL.prototype;_.t.contains=function(W){return Object.prototype.hasOwnProperty.call(this.internalMap,W)};
_.t.get=function(W){if(this.contains(W))return this.internalMap[W]};
_.t.set=function(W,l){this.internalMap[W]=l};
_.t.getKeys=function(){return Object.keys(this.internalMap)};
_.t.remove=function(W){delete this.internalMap[W]};var M5=function(){this.mappings=new zbL;this.errorCallbacks=new Set};
M5.prototype.getModuleId=function(W){return W.serviceId.getModuleId()};
M5.prototype.get=function(W){var l=this.mappings.get(W.toString());return NW9(this,l,W)};
M5.prototype.getMultipleAsync=function(){var W=_.xk.apply(0,arguments),l=this,V=W.map(function(n){return l.getModuleId(n)}),f=W.map(function(n){return l.mappings.get(n.toString())}).filter(function(n){return n});
if(f.length===W.length)return _.jy(f.map(function(n,B){return NW9(l,n,W[B])}));
var r=Q7().loadMultiple(V);f=_.YS(V.map(function(n){return r[n]}));
var R=document.hidden,y=-1,P=_.yS("get_async_timeout_ms",-1);P>-1&&(y=setTimeout(function(){_.Qe(new _.bP("Module timeout.",V,R,document.hidden))},P));
return _.xS(f.then(function(){return W.map(function(n){return NW9(l,l.mappings.get(n.toString()),n)})}).thenCatch(function(n){for(var B=_.L(l.errorCallbacks),d=B.next();!d.done;d=B.next())d=d.value,d(n);
throw n;}),function(){clearTimeout(y)})};
M5.prototype.registerService=function(W,l){this.mappings.set(W.toString(),{type:"mapping",value:l});return W};
var NW9=function(W,l,V){switch(l.type){case "mapping":return l.value;case "factory":return l=l.value(),W.mappings.set(V.toString(),{type:"mapping",value:l}),l;default:return _.Yc(l)}};
M5.prototype.onLoadError=function(W){var l=this;this.errorCallbacks.add(W);return function(){l.errorCallbacks.delete(W)}};
_.ZI=new M5;var gOY=/^[a-zA-Z0-9_\-]{11}$/;var PXz=_.M7(function(){var W,l;return(l=(W=window).matchMedia)==null?void 0:l.call(W,"(prefers-reduced-motion: reduce)").matches});var Y8c=_.M7(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 W=_.Y2("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");W||(W=_.Gz("VIDEO"),_.fR("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
W));return!!(W&&W.canPlayType&&W.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var Jq8=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var O7;O7=function(){this.tokenJars={};if(this.cookiesEnabled=_.K7()){var W=_.vA.get("CONSISTENCY",void 0);W&&xvL(this,{encryptedTokenJarContents:W})}};
_.UAn=function(){O7.instance||(O7.instance=new O7);return O7.instance};
O7.prototype.handleResponse=function(W,l){if(!l)throw Error("Uf");var V,f;l=((V=l.innerTubeRequest.context)==null?void 0:(f=V.request)==null?void 0:f.consistencyTokenJars)||[];var r;(W=(r=W.responseContext)==null?void 0:r.consistencyTokenJar)&&this.replace(l,W)};
O7.prototype.replace=function(W,l){W=_.L(W);for(var V=W.next();!V.done;V=W.next())delete this.tokenJars[V.value.encryptedTokenJarContents];xvL(this,l)};
var xvL=function(W,l){if(l.encryptedTokenJarContents&&(W.tokenJars[l.encryptedTokenJarContents]=l,typeof l.expirationSeconds==="string")){var V=Number(l.expirationSeconds);setTimeout(function(){delete W.tokenJars[l.encryptedTokenJarContents]},V*1E3);
W.cookiesEnabled&&_.HA("CONSISTENCY",l.encryptedTokenJarContents,V,void 0,!0)}};var ebL,aB;ebL=window.location.hostname.split(".").slice(-2).join(".");_.$V=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var W=_.M4("LOCATION_PLAYABILITY_TOKEN");_.M4("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=q8X(this))&&(W=this.localStorage.get("yt-location-playability-token"));W&&(this.locationPlayabilityToken=W,this.mostRecentPosition=void 0)};
_.$V.getInstance=function(){aB=_.Y2("yt.clientLocationService.instance");aB||(aB=new _.$V,_.fR("yt.clientLocationService.instance",aB));return aB};
_.$V.prototype.setLocationOnInnerTubeContext=function(W){W.client||(W.client={});if(this.mostRecentPosition)W.client.locationInfo||(W.client.locationInfo={}),W.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),W.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),W.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),W.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)W.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.$V.prototype.handleResponse=function(W){var l;W=(l=W.responseContext)==null?void 0:l.locationPlayabilityToken;W!==void 0&&(this.locationPlayabilityToken=W,this.mostRecentPosition=void 0,_.M4("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=q8X(this))&&this.localStorage.set("yt-location-playability-token",W,15552E3):_.HA("YT_CL",JSON.stringify({loctok:W}),15552E3,ebL,!0))};
var q8X=function(W){return W.localStorage===void 0?new _.Ow("yt-client-location"):W.localStorage};
_.$V.prototype.clearLocationPlayabilityToken=function(W){W==="TVHTML5"?(this.localStorage=q8X(this))&&this.localStorage.remove("yt-location-playability-token"):_.vH6("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.$V.prototype.getCurrentPositionFromGeolocation=function(){var W=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Vf"));var l=!1,V=1E4;_.M4("INNERTUBE_CLIENT_NAME")==="MWEB"&&(l=!0,V=15E3);return new Promise(function(f,r){navigator.geolocation.getCurrentPosition(function(R){W.mostRecentPosition=R;f(R)},function(R){r(R)},{enableHighAccuracy:l,
maximumAge:0,timeout:V})})};
_.$V.prototype.createUnpluggedLocationInfo=function(W){var l={};W=W.coords;if(W==null?0:W.latitude)l.latitudeE7=Math.floor(W.latitude*1E7);if(W==null?0:W.longitude)l.longitudeE7=Math.floor(W.longitude*1E7);if(W==null?0:W.accuracy)l.locationRadiusMeters=Math.round(W.accuracy);return l};
_.$V.prototype.createLocationInfo=function(W){var l={};W=W.coords;if(W==null?0:W.latitude)l.latitudeE7=Math.floor(W.latitude*1E7);if(W==null?0:W.longitude)l.longitudeE7=Math.floor(W.longitude*1E7);return l};var hbv=function(){};
_.t=hbv.prototype;
_.t.JSC$13120_getRequest=function(W,l,V){l=l===void 0?{}:l;V=V===void 0?mS1:V;var f=l;if(this.isNavigationCommand()){var r,R=(r=_.k(W==null?void 0:W.commandMetadata,_.XN))==null?void 0:r.url;f=_.uVS(W.clickTrackingParams,!0,!1,R,this.JSC$13120_getClientScreen(f))}else f=_.uVS(W.clickTrackingParams,!1,this.includeCsn);f={context:f};if(r=this.getExtension(W))return this.JSC$13120_buildRequest(f,r,l),r=this.getApiUrl(W),R=Object.assign({},{command:W},this.getRequestConfig(W,l)),f={input:r,requestShell:CN(r),
innerTubeRequest:f,config:R},f.config.authStrategy?f.config.authStrategy.identity=V:f.config.authStrategy={identity:V},(W=this.JSC$13120_getRequestKey(W,l))&&!f.config.requestKey&&(f.config.requestKey=W),f;W=new _.bP("Error: Failed to create Request from Command.",W);_.wv(W)};
_.t.getApiUrl=function(W){var l=_.Um(this.getApiPaths(W)),V;(W=(V=_.k(W.commandMetadata,_.XN))==null?void 0:V.apiUrl)&&(l=W);return qsv(e8z(l))};
_.t.isNavigationCommand=function(){return!1};
_.t.JSC$13120_getClientScreen=function(){};
_.t.JSC$13120_getRequestKey=function(){};
_.t.getRequestConfig=function(){};
_.rc.Object.defineProperties(hbv.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var zo=function(){};
_.v(zo,hbv);zo.prototype.JSC$13127_getStoreKey=function(){};
zo.prototype.JSC$13120_getRequestKey=function(W,l){l=l===void 0?{}:l;return this.JSC$13127_getStoreKey(W,l)};var Eae;_.N5=function(W,l,V){var f=V&&V>0?V:0;V=f?Date.now()+f*1E3:0;if((f=f?(0,_.S81)():Eae())&&window.JSON){typeof l!=="string"&&(l=JSON.stringify(l,void 0));try{f.set(W,l,V)}catch(r){f.remove(W)}}};
_.YC=function(W){var l=Eae(),V=(0,_.S81)();if(!l&&!V||!window.JSON)return null;try{var f=l.get(W)}catch(r){}if(typeof f!=="string")try{f=V.get(W)}catch(r){}if(typeof f!=="string")return null;try{f=JSON.parse(f,void 0)}catch(r){}return f};
_.xC=function(W){try{var l=Eae(),V=(0,_.S81)();l&&l.remove(W);V&&V.remove(W)}catch(f){}};
_.S81=_.M7(function(){try{var W=new oH8;var l=W.isAvailable()?W:null}catch(V){return null}return l?new _.Bj(l):null});
Eae=_.M7(function(){var W=new js8;return W.isAvailable()?new _.Bj(W):null});var dl=new _.vd("ENTITY_STATE_TOKEN"),e7=new _.vd("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var $v$=XMLHttpRequest.prototype.fetch,WbI=$v$&&$v$.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!li?!0:!1;var q5=function(W){this.JSC$13132_storeWithEntities=W};
_.v(q5,zo);_.t=q5.prototype;_.t.getApiPaths=function(){return BiL};
_.t.getExtension=function(W){return _.k(W,_.Bh)||_.k(W,_.N$)||_.k(W,COv)};
_.t.isNavigationCommand=function(){return!0};
_.t.JSC$13127_getStoreKey=function(W){if((_.U("kevlar_cache_on_ttl_player")||_.U("mweb_enable_shorts_innertube_player_prefetch")||_.U("mweb_use_new_history_manager")||_.U("web_shorts_prefetch_service_enabled"))&&(W=this.getExtension(W))&&W.videoId){var l={videoId:W.videoId};W.playlistId&&(l.playlistId=W.playlistId);W.playerParams&&(l.params=W.playerParams);return _.ch("player",l)}};
_.t.JSC$13120_getClientScreen=function(W){var l;return((l=W.contentPlaybackContext)==null?void 0:l.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.t.JSC$13120_buildRequest=function(W,l,V){if(_.U("enable_interstitial_entity_check")){var f=this.JSC$13132_storeWithEntities;if(l.videoId)for(var r=_.L(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),R=r.next();!R.done;R=r.next()){R=R.value;var y;var P=void 0,n=void 0,B=l.videoId,d=R;(y=f)?(B=_.i_(B+d,"interstitialInteractionStateEntity"),y=(P=(n=_.mL(y.getState().entities,"interstitialInteractionStateEntity",B))==null?void 0:n.primaryButtonClicked)!=null?P:!1):y=!1;if(y)switch(R){case "CONTENT_CHECK_REQUIRED":l.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":l.racyCheckOk=!0}}}l.videoId&&(W.videoId=l.videoId);l.playlistId&&(W.playlistId=l.playlistId);l.index!==void 0&&(W.playlistIndex=l.index+1);l.playerParams&&(W.params=l.playerParams);"startTimeSeconds"in l&&l.startTimeSeconds&&(_.U("enable_player_request_builder_start_time_floor")?W.startTimeSecs=Math.floor(l.startTimeSeconds):W.startTimeSecs=l.startTimeSeconds);V.contentPlaybackContext&&(W.playbackContext={contentPlaybackContext:V.contentPlaybackContext});V.prefetchPlaybackContext&&
(W.playbackContext=Object.assign({},W.playbackContext,{prefetchPlaybackContext:V.prefetchPlaybackContext}),W.context.request||(W.context.request={}),W.context.request.isPrefetch=!0);W.playbackContext||(W.playbackContext={});f=Y8c();W.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!f,supportXhr:WbI};V.overrideMutedAtStart&&(W.overrideMutedAtStart=V.overrideMutedAtStart);W.racyCheckOk=!!l.racyCheckOk;W.contentCheckOk=!!l.contentCheckOk;!_.U("captions_prefs_killswitch")&&(V=(V=_.YC("yt-player-caption-language-preferences"))?
V:[],V==null?0:V.length)&&(W.captionParams={viewerSelectedCaptionLangs:V})};
_.t.getRequestConfig=function(W){W=this.JSC$13127_getStoreKey(W);var l;W&&(l={storeStrategy:{storeKey:W}});_.U("web_log_player_watch_next_ticks")&&(l=l||{},l.requestTick="ps_s",l.responseTick="ps_r");return l};
q5[k$]=[dl];var hz=function(){};
_.v(hz,zo);_.t=hz.prototype;_.t.getApiPaths=function(){return xAZ};
_.t.getExtension=function(W){return _.k(W,_.Bh)};
_.t.isNavigationCommand=function(){return!0};
_.t.JSC$13127_getStoreKey=function(W){if((W=this.getExtension(W))&&W.videoId){var l={videoId:W.videoId};W.playlistId&&(l.playlistId=W.playlistId);W.index&&(l.index=W.index);W.params&&(l.params=W.params);return _.ch("next",l)}};
_.t.JSC$13120_getClientScreen=function(W){var l;return((l=W.contentPlaybackContext)==null?void 0:l.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.t.JSC$13120_buildRequest=function(W,l,V){l.videoId&&(W.videoId=l.videoId);l.playlistId&&(W.playlistId=l.playlistId);l.params&&(W.params=l.params);l.index!==void 0&&(W.playlistIndex=l.index);W.racyCheckOk=!(!V.racyCheckOk&&!l.racyCheckOk);W.contentCheckOk=!!l.contentCheckOk;V.contentPlaybackContext&&(W.autonavState=V.contentPlaybackContext.autonavState,W.playbackContext={vis:V.contentPlaybackContext.vis,lactMilliseconds:V.contentPlaybackContext.lactMilliseconds});V.prefetchPlaybackContext&&(W.context.request||
(W.context.request={}),W.context.request.isPrefetch=!0);_.U("captions_hats_killswitch")||(l=_.MT().getFlag(65),l=l!=null?!l:!1,V=!!_.YC("yt-player-sticky-caption"),W.captionsRequested=l&&V)};
_.t.getRequestConfig=function(W){W=this.JSC$13127_getStoreKey(W);var l;W&&(l={storeStrategy:{storeKey:W}});_.U("web_log_player_watch_next_ticks")&&(l=l||{},l.requestTick="wn_s",l.responseTick="wn_r");return l};
var S7=function(){};
_.v(S7,zo);S7.prototype.getApiPaths=function(){return xAZ};
S7.prototype.getExtension=function(W){return _.k(W,_.VH)};
S7.prototype.JSC$13120_buildRequest=function(W,l){l.token&&(W.continuation=l.token)};var E7=function(W,l){this.playerRequestBuilder=W;this.watchNextRequestBuilder=l};
_.v(E7,zo);E7.prototype.getApiPaths=function(){return rqk};
E7.prototype.getExtension=function(W){return _.k(W,_.Bh)};
E7.prototype.isNavigationCommand=function(){return!0};
E7.prototype.JSC$13120_buildRequest=function(W,l,V){W.playerRequest={};this.playerRequestBuilder.JSC$13120_buildRequest(W.playerRequest,l,V);_.U("web_streaming_watch")&&(W.watchNextRequest={},this.watchNextRequestBuilder.JSC$13120_buildRequest(W.watchNextRequest,l,V))};
E7[k$]=[q5,hz];var l91;_.$C=new _.vd("SHORTS_CONTROLLER_TOKEN");l91=new _.vd("SHORTS_STATE_STORE_TOKEN");var WL=function(W,l){var V=_.xk.apply(2,arguments);W=W===void 0?0:W;_.bP.call(this,l,V);this.errorType=W;Object.setPrototypeOf(this,this.constructor.prototype)};
_.v(WL,_.bP);var Vc$,f9Z,Rxv,vAU,WF,ZYY,yhZ,LbM,Bse,nUM,PUZ;Vc$=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(W){return W+"="}).join("|"));
f9Z=RegExp(".*\\?.*playnext=1.*");_.lH=function(W,l,V,f){this.watchEndpointMap=W;this.reelWatchEndpointMap=l;this.innerTubeTransportService=V;this.fetchPbj=f};
Rxv=function(W,l,V){var f=_.tY().resolve(_.R0(rhI));_.lH.instance=new _.lH(W,l,V,f)};
_.tcZ=function(W,l){var V=_.yS("web_pbj_log_warning_rate",0);V=V>0&&Math.random()<V;var f;if((f=_.k(l.commandMetadata,_.XN))==null||!f.rootVe)return V&&_.Qe(Error("Xf")),!1;var r;f=(r=_.k(l.commandMetadata,_.XN))==null?void 0:r.url;if(!f)return V&&_.Qe(Error("Yf")),!1;if(f9Z.test(f))return!0;if(Vc$.test(f))return V&&_.Qe(Error("Zf`"+f)),!1;if(_.k(l,_.Bh)){if(!(W.watchEndpointMap.watchNext&&W.watchEndpointMap.player||_.U("kevlar_fetch_initial_data_op_watch_client")))return V&&_.Qe(Error("Qf")),!1;
W=_.yS("web_pbj_log_warning_rate",0);W=W>0&&Math.random()<W;_.k(l,_.Bh)?LaF(l)?l=!0:(W&&_.Qe(Error("Rf")),l=!1):(W&&_.Qe(Error("Qf")),l=!1);return l}if(_.k(l,_.N$))return yq4(l);if(_.k(l,_.Pm))return!0;W=_.s_(W.innerTubeTransportService,l);!W&&V&&_.wv(Error("$f"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(l)});return W};
vAU=function(W,l,V,f,r,R){l={url:l};if(V==null?0:V.itct)l.parentTrackingParams=V.itct;var y=_.Um(Kac);return _.B3(W.innerTubeTransportService,l,y).then(function(P){(P=P.endpoint)||(P=_.Sb);(V==null?0:V.itct)&&P&&!P.trackingParams&&(P.trackingParams=V.itct);var n=aD(P);return WF(W,P,V,f,n,r,R)})};
WF=function(W,l,V,f,r,R,y,P){P=P===void 0?{}:P;if(W.fetchPbj&&!_.tcZ(W,l)&&!_.U("force_one_platform")){P=W.fetchPbj(l);var n=_.jy(P.then(function(N){if(!N)throw Error("ag");y(n)||R(l,N);return N}));
return n}var B,d,J={rootVe:(B=_.k(l.commandMetadata,_.XN))==null?void 0:B.rootVe,url:(d=_.k(l.commandMetadata,_.XN))==null?void 0:d.url,endpoint:l,page:r};if(_.k(l,_.Bh)){var D,u={contentPlaybackContext:_.er(V,(D=_.k(l.commandMetadata,_.XN))==null?void 0:D.url,f)},H=_.yH();_.U("web_streaming_watch")&&window.TextDecoderStream?(P=sbL(W.innerTubeTransportService,l,u,function(N){!J.response&&N.content&&(J.response=N.content);!J.playerResponse&&N.player&&(J.playerResponse=N.player);R(l,J)}),B=h8J(l),B.length&&
(J.preconnect=B,R(l,J)),LbM(P,H,J).catch(function(N){N instanceof WL&&N.errorType===2&&_.U("web_streaming_watch_fallback")&&yhZ(W,l,u,J,R,y,H)})):yhZ(W,l,u,J,R,y,H);
return H.promise}if(_.k(l,_.N$)){var p;if(((p=_.k(l,_.N$))==null?void 0:p.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var X=_.yH();_.gUL(_.tY().resolve(_.$C),l).then(function(N){PUZ(W,V,f,r,R,X,N)});
return X.promise}P=_.jy();var w;B={contentPlaybackContext:_.er(V,(w=_.k(l.commandMetadata,_.XN))==null?void 0:w.url,f)};(w=W.reelWatchEndpointMap.player)&&(w=w().JSC$13120_getRequest(l,B))&&(P=_.B3(W.innerTubeTransportService,w.innerTubeRequest,w.input,l.clickTrackingParams,w.config));w=_.jy();(d=W.reelWatchEndpointMap.reelItemWatch)&&(d=d().JSC$13120_getRequest(l))&&(w=_.B3(W.innerTubeTransportService,d.innerTubeRequest,d.input,l.clickTrackingParams,d.config));d=_.jy();_.U("web_enable_delay_shorts_sequence_call_new")||
(D=W.reelWatchEndpointMap.reelWatchSequence)&&_.k(l,_.N$).sequenceParams&&(B=D().JSC$13120_getRequest(l,B))&&(d=_.B3(W.innerTubeTransportService,B.innerTubeRequest,B.input,l.clickTrackingParams,B.config));B=_.jy(J);D=_.yH();nUM(l,B,P,w,d,R,y,D);return D.promise}var O;if(_.k(l,rq8)&&((O=_.k(l.commandMetadata,_.XN))==null?0:O.url))return P=DA4(_.SV(aU().location.href),_.SV(_.k(l.commandMetadata,_.XN).url)).toString(),vAU(W,P,V,f,R,function(){return!1});
if(_.k(l,_.Pm))return R(l,J),_.jy(J);if(_.s_(W.innerTubeTransportService,l)){P=Object.assign({},{tempData:V,disableCache:V.disableCache},P);var S=_.Lv(W.innerTubeTransportService,l,P).then(function(N){J.response=N;y(S)||R(l,J);return J});
return S}return _.jy(J)};
_.chZ=function(W,l,V,f){if(_.k(l,_.Bh)||_.k(l,_.N$)&&(_.U("mweb_enable_shorts_innertube_player_prefetch")||_.U("kevlar_enable_shorts_prefetch_in_sequence"))||_.k(l,COv)&&_.U("web_enable_prefetching_videos_on_home")){var r,R={contentPlaybackContext:_.er(V,(r=_.k(l.commandMetadata,_.XN))==null?void 0:r.url,f),prefetchPlaybackContext:CXn(V)},y,P,n;if(((y=_.k(l,_.Bh))==null?void 0:(P=y.watchEndpointSupportedPrefetchConfig)==null?void 0:(n=P.prefetchHintConfig)==null?void 0:n.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(V=
W.watchEndpointMap.watchNext)if(R=V().JSC$13120_getRequest(l,R))return Promise.resolve(_.B3(W.innerTubeTransportService,R.innerTubeRequest,R.input,void 0,R.config).then(function(J){return J}))}else if(V=W.watchEndpointMap.player)if(R=V().JSC$13120_getRequest(l,R))return Promise.resolve(_.B3(W.innerTubeTransportService,R.innerTubeRequest,R.input,void 0,R.config).then(function(J){return J}))}else if(_.s_(W.innerTubeTransportService,l)){var B={tempData:V},d=CUc(W.innerTubeTransportService,l);
return d?new Promise(function(J,D){var u,H;return _.g(function(p){if(p.nextAddress==1)return p.yield(d,2);if(p.nextAddress!=4)return u=p.yieldResult,u.JSC$13127_getStoreKey(l,B)?p.yield(_.Lv(W.innerTubeTransportService,l,B),4):(D(new _.bP("Prefetching request builder with no store key.",l)),p.jumpTo(0));H=p.yieldResult;J(H);_.ju(p)})}):Promise.reject(new _.bP("Prefetching unregistered request builder.",l))}return Promise.reject(new _.bP("No request builder available to prefetch endpoint.",l))};
ZYY=function(W,l){var V,f,r;if(_.k(l,_.Bh)){var R=W.watchEndpointMap.watchNext;R&&(V=R());(W=W.watchEndpointMap.player)&&(f=W())}else if(_.k(l,_.N$))(R=W.reelWatchEndpointMap.reelItemWatch)&&(V=R()),(R=W.reelWatchEndpointMap.player)&&(f=R()),(W=W.reelWatchEndpointMap.reelWatchSequence)&&(r=W());else{a:{W=sCn(l,W.innerTubeTransportService.endpointMap);if(W!==void 0)if(typeof W.then==="function")_.wv(new _.bP("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",l));else break a;
W=void 0}W&&(V=W)}var y,P,n;return{content:(y=V)==null?void 0:y.JSC$13127_getStoreKey(l),player:(P=f)==null?void 0:P.JSC$13127_getStoreKey(l),reelSequence:(n=r)==null?void 0:n.JSC$13127_getStoreKey(l)}};
yhZ=function(W,l,V,f,r,R,y){var P=_.jy(),n=W.watchEndpointMap.player;_.U("web_streaming_player")&&(n=xV(E7));n&&(n=n().JSC$13120_getRequest(l,V))&&(P=_.B3(W.innerTubeTransportService,n.innerTubeRequest,n.input,l.clickTrackingParams,n.config));n=_.jy();var B=W.watchEndpointMap.watchNext;B&&(V=B().JSC$13120_getRequest(l,V))&&(n=_.B3(W.innerTubeTransportService,V.innerTubeRequest,V.input,l.clickTrackingParams,V.config));W=_.jy(f);Bse(l,W,P,n,r,R,y)};
LbM=function(W,l,V){return _.g(function(f){if(f.nextAddress==1)return f.yield(W,2);l.resolve(V);_.ju(f)})};
Bse=function(W,l,V,f,r,R,y){var P,n,B,d,J;_.g(function(D){switch(D.nextAddress){case 1:return D.yield(l,2);case 2:P=D.yieldResult;if(R(y.promise))return y.resolve(P),D.return();r(W,P);n=h8J(W);if(!n.length){D.jumpTo(3);break}return D.yield(l,4);case 4:P.preconnect=n,r(W,P);case 3:return _.HG(D,5),D.yield(V,7);case 7:B=D.yieldResult;_.qL(D,6);break;case 5:return d=_.pc(D),y.reject(d),D.return();case 6:if(B===void 0)return P.reload=!0,r(W,P),y.resolve(P),D.return();if(R(y.promise))return y.resolve(P),
D.return();P.playerResponse=B;r(W,P);_.HG(D,8);return D.yield(f,10);case 10:J=D.yieldResult;_.qL(D,9);break;case 8:_.pc(D);case 9:if(J===void 0)return P.response={responseContext:{}},y.resolve(P),D.return();if(R(y.promise))return y.resolve(P),D.return();P.response=J;r(W,P);y.resolve(P);_.ju(D)}})};
nUM=function(W,l,V,f,r,R,y,P){var n,B,d,J,D,u;_.g(function(H){switch(H.nextAddress){case 1:return H.yield(l,2);case 2:n=H.yieldResult;if(y(P.promise))return P.resolve(n),H.return();R(W,n);B=h8J(W);if(!B.length){H.jumpTo(3);break}return H.yield(l,4);case 4:n.preconnect=B,R(W,n);case 3:return _.HG(H,5),H.yield(V,7);case 7:d=H.yieldResult;_.qL(H,6);break;case 5:return J=_.pc(H),P.reject(J),H.return();case 6:if(d===void 0)return n.reload=!0,R(W,n),P.resolve(n),H.return();if(y(P.promise))return P.resolve(n),
H.return();n.playerResponse=d;R(W,n);_.HG(H,8);return H.yield(f,10);case 10:D=H.yieldResult;_.qL(H,9);break;case 8:_.pc(H);case 9:if(D===void 0)return n.response={responseContext:{}},P.resolve(n),H.return();if(y(P.promise))return P.resolve(n),H.return();n.response=D;R(W,n);_.HG(H,11);return H.yield(r,13);case 13:u=H.yieldResult;_.qL(H,12);break;case 11:_.pc(H);case 12:if(y(P.promise))return P.resolve(n),H.return();u&&(n.reelWatchSequenceResponse=u);R(W,n);P.resolve(n);_.ju(H)}})};
PUZ=function(W,l,V,f,r,R,y){var P,n,B,d,J,D;_.g(function(u){if((P=y)==null||!P.replacementEndpoint)return R.reject(),u.return();n=y.replacementEndpoint;(B=_.k(n,_.N$))?(y.sequenceContinuation&&(B.sequenceParams=y.sequenceContinuation),d=_.tY().resolve(_.$C),J=B.sequenceParams,dx1(d,n)&&delete B.sequenceParams,D=WF(W,n,l,V,f,r,function(){return!1}),D.then(function(H){return _.g(function(p){if(p.nextAddress==1)return JhL(d,{reelWatchEndpoint:{sequenceParams:J}},H),p.yield(0,2);
R.resolve(H);_.ju(p)})})):R.reject();
_.ju(u)})};_.Dxk=function(W){if(W.validatedFragments_.length==0)return null;if(!W.mergedPrefetchedData_){for(var l=[],V=_.L(W.validatedFragments_),f=V.next();!f.done;f=V.next()){f=_.L(W.fragmentConfiguration_[f.value].graftedKeys);for(var r=f.next();!r.done;r=f.next())(r=W.prefetchedData_[r.value].trackingParams)&&l.push(r)}W.mergedPrefetchedData_={};Object.assign(W.mergedPrefetchedData_,W.prefetchedData_,{clientSideGrafts:l})}return W.mergedPrefetchedData_};var Uxv;_.V5=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
Uxv=function(W,l,V){if(_.tWz(l))return W.prefetchCache_.get(_.s2z(l,V))};_.fA=new _.vd("NAVIGATION_TOKEN");var utc=function(W){var l=this;var V=V===void 0?H9Y():V;var f=f===void 0?_.tY().resolve(_.fA):f;this.onePickCommand=W;this.JSC$13230_playlistNetworkManager=V;this.navigationManager=f;this.videoPickerBuilder=_.kjJ("yt-addtoplaylist");_.hVX(axv(zX9(OSM(this.videoPickerBuilder.setTitle(W.modalTitle).setSize(1E3).addView(Y6c()).addView(NUL())).addView("youtube"),W.selectButtonLabel)),function(r){l.handleAction(r)})};
utc.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
utc.prototype.handleAction=function(W){var l=this;if(W&&this.onePickCommand.listId&&W.action==="picked"&&W.docs){var V=[];W.docs.forEach(function(f){V.push({addedVideoId:f.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13230_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,V).then(function(){_.U("playlist_add_video_hard_reload_killswitch")?l.navigationManager.reload():kEZ(l.navigationManager)})}};var vU$=function(){if(this.constructor===vU$)throw new TypeError("bg");};
_.t=vU$.prototype;_.t.dispose=function(){};
_.t.disconnect=function(){};
_.t.reconnect=function(){};
_.t.observe=function(W,l,V){return{element:W,option:V}};
_.t.unobserveByKey=function(){};var Kaz=function(W,l){l=l===void 0?0:l;vU$.call(this);this.viewroot=W;this.defaultPrescanHeight=l;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),W?{root:W,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.v(Kaz,vU$);_.t=Kaz.prototype;_.t.dispose=function(){this.disconnect();this.handlers.clear()};
_.t.disconnect=function(W){this.isConnected=!1;this.pauseObservingUntilReconnect=W===void 0?!1:W;this.observer.disconnect();W=_.L(this.prescanObservers.values());for(var l=W.next();!l.done;l=W.next())l.value.disconnect()};
_.t.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var W=_.L(this.handlers),l=W.next();!l.done;l=W.next()){var V=_.L(l.value);l=V.next().value;var f=V.next().value;V=!1;f=_.L(f.keys());for(var r=f.next();!r.done;r=f.next())if((r=r.value)&&r.state==="prescan"){V=!0;break}V&&H3X(this,l).observe(l);this.observer.observe(l)}}};
_.t.handleObserveEvent=function(W){W=_.L(W);for(var l=W.next();!l.done;l=W.next()){l=l.value;var V=this.handlers.get(l.target);if(V){var f=l.isIntersecting;V=_.L(V);for(var r=V.next();!r.done;r=V.next()){var R=_.L(r.value);r=R.next().value;R=R.next().value;r&&(r.state==="visible"&&f||r.state==="hidden"&&!f)&&(R(l.target,r.state),r.calledOnce&&this.unobserveByKey({element:l.target,option:r}))}}}};
_.t.handlePrescanEvent=function(W){W=_.L(W);for(var l=W.next();!l.done;l=W.next()){l=l.value;var V=this.handlers.get(l.target);if(V&&l.isIntersecting){V=_.L(V);for(var f=V.next();!f.done;f=V.next()){var r=_.L(f.value);f=r.next().value;r=r.next().value;f&&f.state==="prescan"&&(r(l.target,f.state),f.calledOnce&&this.unobserveByKey({element:l.target,option:f}))}}}};
_.t.observe=function(W,l,V){var f=(f=this.handlers.get(W))&&f.has(V)?{element:W,option:V}:void 0;if(f)return f;f={element:W,option:V};this.handlers.has(W)||this.handlers.set(W,new Map);var r=this.handlers.get(W);r&&!r.has(V)&&r.set(V,l);this.pauseObservingUntilReconnect||(V.state==="prescan"&&H3X(this,W).observe(W),this.observer.observe(W));return f};
_.t.unobserveByKey=function(W){var l=this.handlers.get(W.element);if(l&&l.has(W.option)){l.delete(W.option);if(W&&W.option.state==="prescan")for(var V=_.L(this.prescanObservers.values()),f=V.next();!f.done;f=V.next())f.value.unobserve(W.element);l.size===0&&(this.handlers.delete(W.element),this.observer.unobserve(W.element))}};
var H3X=function(W,l){var V=W.defaultPrescanHeight;l.hasAttribute("prescan-height")&&(l=Number(l.getAttribute("prescan-height")),isNaN(l)||(V=l));if(W.prescanObservers.has(V))return W.prescanObservers.get(V);l="-0.1px -0.1px "+V+"px -0.1px";l=new IntersectionObserver(W.handlePrescanEvent.bind(W),W.viewroot?{root:W.viewroot,rootMargin:l}:{rootMargin:l});W.prescanObservers.set(V,l);return l};var KbM=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],Fba=function(){var W,l=this;this.JSC$13247_actionRouter=W=W===void 0?_.eC.getInstance():W;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return l.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return l.visibilityObservedElementHandlerKeys}}},GEc,pcL,I9c;
Fba.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.U("kevlar_use_vimio_behavior")&&_.M4("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=FaJ())};
Fba.prototype.dispose=function(){this.visibilityMonitor&&_.Of(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
Fba.prototype.handleVisibilityRefreshed=function(){for(var W=_.L(this.targetMap.entries()),l=W.next();!l.done;l=W.next()){var V=_.L(l.value);l=V.next().value;V=V.next().value;_.b3I(this,l,V)}};
_.jbc=function(W,l,V){pcL(W,V);var f=_.oUv(W,l);f.element=V;W.targetedElements.set(V,l);_.b3I(W,l,f)};
pcL=function(W,l){var V=W.targetedElements.get(l);if(V){var f=W.targetMap.get(V);f&&(delete f.element,W.targetMap.set(V,f));W.targetedElements.delete(l);W.visibilityObserver&&W.visibilityObservedElementHandlerKeys&&(V=W.visibilityObservedElementHandlerKeys.get(l))&&(W.visibilityObserver.unobserveByKey(V),W.visibilityObservedElementHandlerKeys.delete(l))}};
_.b3I=function(W,l,V){var f=V.action,r=V.element;r&&f&&(KbM.includes(l)||_.M4("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||W.visibilityMonitor&&W.visibilityMonitor.isNodeVisible(r)?I9c(W,l,V):W.visibilityObserver&&(W.visibilityObservedElementHandlerKeys||(W.visibilityObservedElementHandlerKeys=new WeakMap),f=W.visibilityObserver.observe(r,function(){I9c(W,l,V);W.visibilityObservedElementHandlerKeys.delete(r)},{calledOnce:!0,
state:"visible"}),W.visibilityObservedElementHandlerKeys.set(r,f)))};
I9c=function(W,l,V){var f=V.action;(V=V.element)&&f&&(_.rP(W.JSC$13247_actionRouter,[f],V),W.targetMap.delete(l),W.targetedElements.delete(V),W.triggeredTargets.add(l))};
_.oUv=function(W,l){var V=W.targetMap.get(l);V||(V={},W.targetMap.set(l,V));return V};
_.rY=function(){GEc||(GEc=new Fba);return GEc};var i3k=document.createElement("div");i3k.style.touchAction="pan-down";var Gj4=i3k.style.touchAction==="pan-down";var mxv,XcI;mxv=function(){this.hammerFn=ayk();this.JSC$13255_screenManager=_.Qq();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.GY(83615);_.zP(this.JSC$13255_screenManager,this.ve);b9z()};
_.Rk=function(){XcI||(XcI=new mxv);return XcI};
mxv.prototype.registerTouchEvents=function(W,l,V){var f=_.xk.apply(3,arguments),r=this.hammerFn(W,{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}]]});V&&r.set({touchAction:V});this.nodeManagerMapping.set(W,r);var R=
pRq(l);f=_.L(f);for(var y=f.next();!y.done;y=f.next()){y=y.value;if(y.includes("swipe")||y.includes("pinch")||y.includes("pan"))y.includes("swipe")?r.get("swipe").set({enable:!0,direction:R,velocity:.2}):y.includes("pinch")?r.get("pinch").set({enable:!0}):y.includes("pan")&&(r.get("pan").set({enable:!0,direction:R}),r.get("swipe").set({enable:!0,direction:R,velocity:.2}),r.get("swipe").recognizeWith("pan"));Tse(this,W,r,y)}};
var Tse=function(W,l,V,f){V.on(f,function(r){if(f.includes("pinch"))W.lastPinchTime=Date.now();else if(f.includes("swipe")&&Date.now()-W.lastPinchTime<400)return;r.pointerType!=="mouse"&&(r=f==="doubletap"?{coordinates:r.center}:f.includes("pan")?r:f.includes("swipe")?{target:r.target}:{},l.dispatchEvent(new CustomEvent(f,{bubbles:!0,composed:!0,detail:r})))})};
mxv.prototype.unregisterTouchEvents=function(W){var l=_.xk.apply(1,arguments),V=this.nodeManagerMapping.get(W);if(V){l=_.L(l);for(var f=l.next();!f.done;f=l.next())V.off(f.value);this.nodeManagerMapping.delete(W);W.style.touchAction="unset"}};var wcX=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var oOF=null;var Ahv=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},eBq=function(){Ahv.instance||(Ahv.instance=new Ahv);
return Ahv.instance},qTj=function(W){var l=W.networkEvents;
W.networkEvents=[];return _.U("enable_network_monitoring")?l:[]};var QbM;QbM={};_.McX=Rl("yt-serviceworker-metadata",{objectStores:(QbM.auth={addedAtVersion:1},QbM["resource-manifest-assets"]={addedAtVersion:2},QbM),shared:!0,upgrade:function(W,l){l(1)&&zd(W,"resource-manifest-assets");l(2)&&zd(W,"auth")},
version:2});var Tiz=self.location.origin+"/";wRJ([/\.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\//]);wRJ([/purge_shell=1/]);var Z3Z=void 0;Z3Z=Z3Z===void 0?[]:Z3Z;for(var O3I=[],a9L=_.L(GiI),zxk=a9L.next();!zxk.done;zxk=a9L.next())O3I.push({key:zxk.value});for(var Nsa=_.L(Z3Z),Yy1=Nsa.next();!Yy1.done;Yy1=Nsa.next())O3I.push(Yy1.value);var xxv,fG=_.rS==null?void 0:(xxv=_.rS.performance)==null?void 0:xxv.memory,MWz=!1,hBj={},aBj={},r_={},R1=navigator;var tp=function(W){this.JSC$13299_expiringStorage=new o0(W)};
tp.prototype.set=function(W,l,V){V=V!==void 0?Date.now()+V:void 0;this.JSC$13299_expiringStorage.set(W,l,V)};
tp.prototype.get=function(W){return this.JSC$13299_expiringStorage.get(W)};
tp.prototype.remove=function(W){this.JSC$13299_expiringStorage.remove(W)};var r8q=_.tj(["https://www.youtube.com/",""]),RTn=_.tj(["https://studio.youtube.com/",""]),gvz="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",suY=null,Bnz;var exB=_.tj(["https://www.youtube.com/iframe_api"]),sq=function(){this.playerResolver_=_.yH();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.QR;this.playbackDurationSeconds_=0},qyv=function(W){var l=function(){return window.YT&&typeof window.YT.ready==="function"};
if(l())return _.jy(window.YT);var V=_.yH(),f=_.Gz("SCRIPT");f.onload=f.onreadystatechange=function(){f.readyState&&f.readyState!="loaded"&&f.readyState!="complete"||(f.onload=_.QR,f.onreadystatechange=_.QR,f.onerror=_.QR,l()?V.resolve(window.YT):V.reject(new _.bP("Failed to load the iframe player library","script.onload",f.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
f.onerror=function(r){f.onload=_.QR;f.onreadystatechange=_.QR;f.onerror=_.QR;V.reject(new _.bP("Failed to load the iframe player library","script.onerror",r&&r.target&&r.target.src))};
_.tL(f,_.dO(exB));W.insertBefore(f,W.firstChild);return V.promise},hxM=function(W,l,V){var f,r;
_.g(function(R){switch(R.nextAddress){case 1:return W.playbackEndedCallback_=V,_.HG(R,2),R.yield(qyv(l.parentElement||null),4);case 4:f=R.yieldResult;_.qL(R,3);break;case 2:return r=_.pc(R),r instanceof _.bP&&r.args&&r.args[0]=="script.onerror"?_.Qe(r):_.wv(r),R.return();case 3:f.ready(function(){return new f.Player(l,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:W.onPlayerReady_.bind(W),onStateChange:W.onPlayerStateChange_.bind(W),
onCueRangeExit:W.onCueRangeExit_.bind(W)}})}),_.ju(R)}})};
_.t=sq.prototype;_.t.getPlayerPromise=function(){return this.playerPromise_};
_.t.onPlayerReady_=function(W){this.playerResolver_.resolve(W.target)};
_.t.onPlayerStateChange_=function(W){if(W.data==YT.PlayerState.PLAYING){W=W.target;var l=W.getCurrentTime();W.addCueRange("playback",l,l+this.playbackDurationSeconds_)}};
_.t.onCueRangeExit_=function(W){W.data=="playback"&&(W.target.stopVideo(),this.playbackEndedCallback_())};
_.t.stopVideo=function(){this.playerPromise_.then(function(W){W.stopVideo()})};
var SyL=function(W){W.playerVars_&&W.playerPromise_.then(function(l){typeof l.cueVideoByPlayerVars!="function"?_.Qe(new _.bP("vmh: player API not ready","cueVideoByPlayerVars",typeof l.cueVideoByPlayerVars)):l.cueVideoByPlayerVars(W.playerVars_)})};
sq.prototype.playVideo=function(){var W=this;this.playerVars_&&this.playerPromise_.then(function(l){typeof l.loadVideoByPlayerVars!="function"?(l=new _.bP("vmh: player API not ready","loadVideoByPlayerVars",typeof l.loadVideoByPlayerVars),_.wv(l)):l.loadVideoByPlayerVars(W.playerVars_)})};
var EUk=function(W,l,V,f,r){l&&(V===void 0&&(V=0),f===void 0&&(f=0),W.playbackDurationSeconds_=f/1E3,W.playerVars_={adformat:"17_8",videoId:l,suggestedQuality:"hd720",startSeconds:V/1E3,player_params:r})};
sq.prototype.mute=function(){this.playerPromise_.then(function(W){W.mute()})};
sq.prototype.unMute=function(){this.playerPromise_.then(function(W){W.unMute()})};var $x9=function(W,l){var V=tg();W||(W="unknown");l||(l="unknown");W="MAIN_APP_WEB_PAGE_TYPE_"+W.toUpperCase();W in Lpv||(W="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");l="MAIN_APP_WEB_REQUEST_TYPE_"+l.toUpperCase();l in yuZ||(l="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.kP(V,{mainAppWeb:{pageType:W,requestType:l,isShellLoad:_.ZL("IS_SHELL_LOAD",!1)}})},WII={start:function(){_.kP(mVj(),{mainAppWeb:_.nG()})},
success:function(){_.v0(mVj(),"SUCCESS")},
failure:function(){_.v0(mVj(),"FAILURE")},
cancelled:function(){_.v0(mVj(),"CANCELLED")}};var lwk,Vje,H_v;lwk=_.tj(["/sw.js"]);Vje=_.tj(["/sw.js?0"]);_.fwv=_.dO(lwk);H_v=_.dO(Vje);var rQL=function(){var W=Error.apply(this,arguments);this.message=W.message;"stack"in W&&(this.stack=W.stack)};
_.v(rQL,Error);_.BV.prototype.load=function(W){this.megabloxUrl_=_.M4("YPC_MB_URL");_.se(this.megabloxUrl_,(0,_.ml)(function(){W&&W()},this))};
_.DhF=function(W,l,V,f,r,R,y,P,n,B,d){_.FOq(n);W.load((0,_.ml)(function(){try{var J=R?R:_.M4("HL"),D=_.M4("SESSION_INDEX");_.n6n("client",function(){m_Z("59",{helpCenterPath:"/youtube",locale:J,window:window}).JSC$9970_loadChatSupport({authuser:String(D)})})}catch(u){throw CG(10,d,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),r&&r(u),_.wv(u),u;
}RzM(this,l,V,f,r,R,y,P,n,B,d)},W))};
_.BV.prototype.openFixFlowDialog=function(W,l,V,f){this.load((0,_.ml)(function(){try{tjL(this,_.Y2("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(W).withIntegratorCallback(l).load(V,f)}catch(r){throw _.wv(r),r;}},this))};
var tjL=function(W,l,V,f){var r=l.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.U("enable_window_constrained_buy_flow_dialog")&&(r=r.usingPopupStyle(_.Y2("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));f&&(r=r.usingCloseCallback(f));l.bootstrap.fromPaymentsUrl(W.megabloxUrl_);W=l.bootstrap.asMashupMode(r);V=V?V:_.M4("HL");W.usingGaiaIndex(_.M4("SESSION_INDEX")).usingLocale(V).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.U("enable_google_payments_buyflow_material2_style_web")?
W.usingStyle(":m2;pc=#444;ac=#065fd4"):W.usingStyle(":md;pc=#444;ac=#065fd4");return W},RzM=function(W,l,V,f,r,R,y,P,n,B,d){try{var J=_.Y2("payments.business.integration");
if(!J)throw new rQL("payments.business.integration is undefined");var D=J.standaloneContextAuthId.forUserId(),u=tjL(W,J,R,function(){b_Y(!1);P&&P()});
y&&u.usingServerAnalyticsEventHandler(y);var H=u.inStandaloneContext(D).buyFlow(function(p){if(p&&(!p.integratorData||p.integratorData===""||p.error))if(p.error!=null)if(String(p.error)==="-1")_.G24(n);else{var X=String(p.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";CG(10,d,X,p.debugCode);_.cV(X,n,p.debugCode);X=new _.bP("PAYMENT_ERROR_MESSAGE::"+p.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+p.internalErrorDetails);
_.wv(X)}else CG(10,d,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.cV("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",n,"EMPTY_INTEGRATOR_DATA"),_.wv(Error("gg"));V&&(b_Y(!1),V(p))}).withEncryptedParameters(l);
B&&H.withClientParameters(I_z(_.dUS(B)));H.load(function(){CG(24,d);_.VE("ttc",void 0,"commerce_transaction");Ee("commerce_transaction");f&&(f(),b_Y(!0))},function(p){if(p==null?0:p.debugCode)var X=p==null?void 0:p.debugCode;
else if(!p||(p==null?0:p.debugCode))X="EMPTY_LOAD_FAILURE_ERROR",_.wv(Error(X));else{X="EMPTY_LOAD_FAILURE_DEBUG_CODE";var w=new _.bP("LOAD_FAILURE:"+p.message," DEBUG_CODE:"+X);_.wv(w)}CG(10,d,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",X);_.cV("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",n,X);_.wv(p);r&&r(p)})}catch(p){throw p instanceof rQL&&(CG(10,d,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),r&&r(p)),_.wv(p),p;
}};var sTa;sTa=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.BqS=function(W,l){l=l===void 0?!1:l;W=sTa.test(W)?_.i7(W):null;!l&&window.payments||!W?(W=_.yH(),l=W.promise,W.resolve()):l=_.uRL(W,{attributes:{"data-payments-main":"",id:"payment-lib"}});return l};var LIX;LIX=_.tj(["//www.googletagmanager.com/gtm.js?id=",""]);_.LA=function(W,l){_.U_(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:l}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.M4("GL")}),l=_.Gz("SCRIPT"),l.async=!0,_.tL(l,_.dO(LIX,W)),l.id="gtm",W=document.getElementsByTagName("script"),W.length==0?document.head.appendChild(l):(W=W[0],W.parentNode.insertBefore(l,W)))};
_.y5=function(W){if(W=JSON.parse(W))window.dataLayer=window.dataLayer||[],window.dataLayer.push(W)};var yQ$,gxe;yQ$=_.tj(["https://clients2.google.com/gr/gr_sync.js"]);_.Cox=function(){};
_.Cox.prototype.init=function(){if(gxe()){var W=_.yH();W.resolve();return W.promise}return _.uRL(_.dO(yQ$)).then(function(){if(!gxe())throw Error("hg");},function(){throw Error("ig");
})};
_.cDz=function(){if(!gxe())return"";var W=window.google.gr;W.init({async:{schedule:"sync"},merchantId:"youtube"});W.start();W=W.finish();return W==null?"":W};
gxe=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.I=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.v(_.I,PolymerFakeBaseClassWithoutHtml);_.OD=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.v(_.OD,PolymerFakeBaseClassWithoutHtml);var pxg=window.ShadyDOM;var yTz,s4q,Pn4,nFj,cTz,BDU,gY,FI;yTz=_.U("enable_shadydom_free_scoped_query_methods");s4q=_.U("enable_shadydom_free_scoped_node_methods");Pn4=_.U("enable_shadydom_free_scoped_readonly_properties_batch_one");nFj=_.U("enable_shadydom_free_parent_node");cTz=_.U("enable_shadydom_free_children");BDU=_.U("enable_shadydom_free_last_child");gY=window.ShadyDOM;_.j3=gY&&gY.noPatch&&gY.wrap?gY.wrap:gY?function(W){return gY.patch(W)}:function(W){return W};
FI=function(W){if(W instanceof ShadowRoot)this.host=(0,_.j3)(W.host),this.root=W;else if(W.$$){this.host=(0,_.j3)(W);var l;this.root=(l=W.root)!=null?l:this.host}else if(W.polymerController){this.host=(0,_.j3)(W);var V;this.root=(V=this.host.shadowRoot)!=null?V:this.host}else this.root=this.host=(0,_.j3)(W)};
Lng();gF4();dQ8();JTF();Cng();var P1B={querySelector:function(W,l){l=juj(l,UD(W));W=_.um(W);return k7(W).prototype.querySelector.call(W,l)},
querySelectorAll:function(W,l){l=juj(l,UD(W));W=_.um(W);return k7(W).prototype.querySelectorAll.call(W,l)}},nx1={appendChild:function(W,l){var V=UD(W),f=_.Dr(l);
return _.Rgv(_.um(W),V?_.HV(l,V,f):l)},
cloneNode:function(W,l){var V=_.Dr(W);W=_.um(W);l=k7(W).prototype.cloneNode.call(W,l);return V?KG(l,V):l},
contains:function(W,l){var V=UD(W),f=_.Dr(l);return V!==f?!1:t9n(W,l)},
insertBefore:function(W,l,V){var f=UD(W),r=_.Dr(l);W=_.um(W);l=f?_.HV(l,f,r):l;return k7(W).prototype.insertBefore.call(W,l,V)},
removeChild:function(W,l){var V=UD(W);W=_.um(W);l=V?KG(l,V):l;return k7(W).prototype.removeChild.call(W,l)},
replaceChild:function(W,l,V){var f=UD(W),r=_.Dr(l);l=f?_.HV(l,f,r):r?KG(l,r):l;V=f?KG(V,f):V;W=_.um(W);return k7(W).prototype.replaceChild.call(W,l,V)},
getRootNode:function(W,l){l=l===void 0?{composed:!0}:l;var V;if(((V=l)!=null?V:{}).composed)W=O_S(W);else{l=W;for(W=i_6(W);W;)l=W,W=Xxq(W);W=l}return W}},UQg=Pn4?{firstChild:$yj,
nextSibling:hTj,previousSibling:EvY,firstElementChild:Wnz,lastElementChild:V9x,nextElementSibling:qpY,previousElementSibling:SpU,childNodes:fox}:{};nFj&&(UQg.parentNode=eTn);cTz&&(UQg.children=rTU);BDU&&(UQg.lastChild=loU);yTz&&DQJ(P1B);s4q&&DQJ(nx1);uG6();var kOg=function(W){this.node=W instanceof ShadowRoot?W.host:W};
vFJ();HF8();var GO6=new WeakMap;var pHS=Symbol("zd");var mQj=new Set(["tap","track","down","up"]),XHz=_.U("pbcm_fi_query_decorators");var PL=function(){return _.OD.apply(this,arguments)||this};
_.v(PL,_.OD);_.t=PL.prototype;_.t.getState=function(){return this.store.getState()};
_.t.dispatch=function(W){this.store.dispatch(W)};
_.t.beforeRegister=function(){if(this&&typeof this==="object"){var W;var l=!!this.useSignals||!((W=this.polymerController)==null||!W.useSignals)}else l=!1;if(!l&&this.properties)for(l=_.L(Object.keys(this.properties)),W=l.next();!W.done;W=l.next()){var V=W.value;W=this.properties[V];if(W.selector){if(W.computed)throw Error("og");V=["reduxPropertiesRecomputeTrigger",'"'+V+'"'].concat(_.QK(W.selectorArgs||[])).join(",");W.computed="recomputeReduxSelector("+V+")"}}};
_.t.attached=function(){var W=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){W.reduxPropertiesRecomputeTrigger++}));
_.U("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.t.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.t.recomputeReduxSelector=function(W,l){var V=_.xk.apply(2,arguments),f=this.properties[l].selector;if(!f)throw Error("mg`"+l);return f.apply(null,[this.store.getState()].concat(_.QK(V)))};
_.t.select=function(W){var l=_.xk.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return W.apply(null,[this.store.getState()].concat(_.QK(l)))};
_.rc.Object.defineProperties(PL.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("ng");}}});
PL.prototype.recomputeReduxSelector=PL.prototype.recomputeReduxSelector;_.a([_.b(),_.z("design:type",Number)],PL.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.a([_.a1()],PL);var nA=[],Q4S={},lD=function(){return t6.apply(this,arguments)||this};
_.v(lD,t6);lD.prototype._addPropertyEffect=function(W,l,V){if(l==="__observeEffects"&&V){var f,r=(f=V.info.method)!=null?f:V.info.methodName;if(r){var R=this[r];this[r]=function(){nA.push(r);try{R==null||R.apply(this,arguments)}finally{nA.pop()}}}}_.xD._addPropertyEffect.apply(this,[W,
l,V])};
lD.prototype._setPendingProperty=function(W,l,V){if(nA.length){var f=nA[nA.length-1],r;(r=Q4S[this.is])!=null&&r.has(f)||(M96(this.is,f),_.XC("polymerPropertyChangedInObserver",{componentName:this.is,observerName:f}))}return _.xD._setPendingProperty.apply(this,[W,l,V])};
_.a([ZVx()],lD);var ZFq=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),aov,Y7={};_.U("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Y7);var q6=function(){return _.OD.apply(this,arguments)||this};
_.v(q6,_.OD);q6.prototype._setUnmanagedPropertyToNode=function(W,l,V){W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!0);if(V!==W[l]||typeof V==="object")W[l]=V;W.is&&W.polymerController&&W.polymerController!==W&&x7(W.is,l,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!1)};
_.a([_.a1()],q6);OFY()&&(YB.prototype._setUnmanagedPropertyToNode=(new q6)._setUnmanagedPropertyToNode);_.f8Y={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(W){},set polymerController(W){}}]};var WE=function(){var W=t6.apply(this,arguments)||this;W.json=function(){};
return W};
_.v(WE,t6);WE.prototype.equals=function(W,l){return W===l};
WE.prototype.isEmpty=function(W){var l;(l=!W)||(l=_.Ng(W)&&W.length===0);return l};
_.a([ZVx()],WE);var C1k=function(W){W=PCz(W);sj.call(this,W)};
_.v(C1k,sj);C1k.prototype.addProvider=function(W){W=W.key?W:PCz([W])[0];var l=this.keyIdToIndex.get(W.key.id);if(l){if(eg4(W,this.providers[l]))throw Error("pg`"+W.key.displayName);}else sj.prototype.addProvider.call(this,W)};
var cQ9=new C1k([]);var B2v=!1;var WWS={};B2v||($QF(),B2v=!0);
WWS.InjectBehavior={initializeInjection:function(){var W=this.provide;try{if((W=W!=null?W:[])&&W.length>0)for(var l=PCz(W),V=_.L(l),f=V.next();!f.done;f=V.next())cQ9.addProvider(f.value);var r=new Set;q38(this.behaviors||[],r);l={};for(var R=_.L(r),y=R.next();!y.done;y=R.next()){var P=y.value;P.inject&&Object.assign(l,P.inject)}this.inject&&Object.assign(l,this.inject);for(var n=_.L(Object.keys(l)),B=n.next();!B.done;B=n.next()){var d=B.value,J=l[d];try{this[d]=cQ9.resolve(J)}catch(D){throw D;}}}catch(D){throw Error(D.message);
}}};var VZx;var rRx=/\bclass\b/.test(function(){}.toString()),sW6=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var djL=function(W){this.wasDefined=!0;Array.isArray(W)||W instanceof Array?(this.JSC$13427_getImpl=W[0],this.JSC$13427_setImpl=W[1]):this.JSC$13427_getImpl=W};
_.t=djL.prototype;_.t.getWithPath=function(W){return gaz(this.JSC$13427_getImpl(),W)};
_.t.setWithPath=function(W,l){var V=this;if(W.length)throw Error("qg");if(!this.JSC$13427_setImpl)throw Error("rg");H4(function(){V.JSC$13427_setImpl(l)})};
_.t.notifyPath=function(){throw Error("sg");};
_.t.notifySplices=function(){throw Error("tg");};
_.t.getChangeRecordSignal=function(W,l){var V=this;if(W.length)throw Error("ug");return function(){var f=V.getWithPath(W);return{path:l!=null?l:"",base:f,value:f}}};
_.t.getSplicesSignal=function(){throw Error("vg");};
_.t.getPathMutationSignal=function(){throw Error("wg");};
_.t.pop=function(){throw Error("xg");};
_.t.push=function(){throw Error("yg");};
_.t.splice=function(){throw Error("zg");};
_.t.unshift=function(){throw Error("Ag");};var CA=function(W){var l=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(W)||W instanceof Array?(this.JSC$13432_getImpl=W[0],this.JSC$13432_setImpl=W[1]):this.JSC$13432_getImpl=W;this.wasDefined=!1;d9(function(){l.wasDefined=l.JSC$13432_getImpl()!==void 0})};
CA.prototype.getWithPath=function(W){return gaz(this.JSC$13432_getImpl(),W)};
CA.prototype.setWithPath=function(W,l){var V=this;if(W[W.length-1]!=="*"&&W[W.length-1]!=="splices"){var f=d9(function(){return V.getWithPath([])});
if(W.length===0){if(!this.JSC$13432_setImpl)throw Error("Bg");if(f===l)return;this.wasDefined||(this.wasDefined=l!==void 0);H4(function(){V.JSC$13432_setImpl(l)})}else{for(var r=0;r<W.length-1;r++){if(!f)return;
f=f[W[r]]}r=W[W.length-1];f&&(f[r]=l);this.wasDefined||(this.wasDefined=W.length>1||l!==void 0)}JQ$(this,W,{pathComponents:W,value:l})}};
CA.prototype.notifyPath=function(W,l){W.length===0?l&&this.setWithPath(W,l.value):JQ$(this,W,{pathComponents:W,value:l==null?void 0:l.value,fallbackWhenUndefined:l==null?void 0:l.value})};
var JQ$=function(W,l,V,f){if(W.setMutationSignal){var r=++W.mutationIndex,R=[W.observedPath],y=W.observedPath,P;l.length===0&&(P=y);for(var n=0;n<l.length;n++){var B=y.subPaths[l[n]];if(!B)break;R.push(B);y=B;n===l.length-1&&(P=B)}for(l=!1;R.length;)y=R.shift(),y.data={index:r,mutation:V,spliceMutationIndex:f},l||(l=y===P),l&&R.push.apply(R,_.QK(Object.values(y.subPaths)));H4(function(){W.setMutationSignal(r)})}};
CA.prototype.notifySplices=function(W,l){var V=this,f=d9(function(){return V.getWithPath(W)}),r=[].concat(_.QK(W),["splices"]);
JQ$(this,r,{pathComponents:r,value:{indexSplices:l}});if(f==null?0:f.length)l=this.mutationIndex,r=[].concat(_.QK(W),["length"]),JQ$(this,r,{pathComponents:r,value:f.length},l)};
var Djc=function(W,l,V,f,r,R){W.notifySplices(V,[{index:f,addedCount:r,removed:R,object:l,type:"splice"}])},UjM=function(W,l){W=W.observedPath;
for(var V=0;V<l.length;V++){var f=l[V],r=W.subPaths[f];r||(r={pathComponents:l.slice(0,V+1),subPaths:{}},W.subPaths[f]=r);W=r}},kx9=function(W,l,V){UjM(W,l);
if(!W.getMutationSignal){var f=_.L(_.J4(W.mutationIndex,void 0,"sNBMCd"));W.getMutationSignal=f.next().value;W.setMutationSignal=f.next().value}var r=W.getMutationSignal;return _.v4(function(){r();return V(u_e(W,l))},void 0,"zvsXEd")};
CA.prototype.getChangeRecordSignal=function(W,l){var V=this,f=this.mutationIndex,r;return kx9(this,W,function(R){if(R&&R.index>f){var y=R.mutation;f=R.index;r=void 0}R=d9(function(){return V.getWithPath(W)});
if(y){var P=y.pathComponents[y.pathComponents.length-1],n=[].concat(_.QK(y.pathComponents));if(P==="splices"||P==="length")return{base:R,path:(l?[l].concat(_.QK(n)):n).join("."),value:y.value};var B=W.length>n.length?W:n,d;return{base:R!=null?R:y.fallbackWhenUndefined,path:(l?[l].concat(_.QK(B)):B).join("."),value:(d=d9(function(){return V.getWithPath(B)}))!=null?d:y.fallbackWhenUndefined}}r||(r={base:R,
path:(l?[l].concat(_.QK(W)):W).join("."),value:R});return r})};
CA.prototype.getSplicesSignal=function(W){var l=this.mutationIndex,V;return kx9(this,W,function(f){if(f&&f.index>l&&f.spliceMutationIndex!==l){var r=f.mutation;l=f.index;V=void 0}return r&&r.pathComponents[r.pathComponents.length-1]==="splices"?V=f=r.value:V})};
CA.prototype.getPathMutationSignal=function(W){var l=this;UjM(this,W);if(!this.getMutationSignal){var V=_.L(_.J4(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=V.next().value;this.setMutationSignal=V.next().value}var f=this.getMutationSignal,r=this.mutationIndex,R;return _.v4(function(){f();var y=u_e(l,W);if(y&&y.index>r&&y.mutation&&Ptj(y.mutation.pathComponents,W)){var P=y.mutation;r=y.index}if(!R||r!==R.index){var n,B;y=(B=d9(function(){return l.getWithPath(W)}))!=null?B:(n=P)==null?
void 0:n.fallbackWhenUndefined;
R={index:r,value:y}}return R},void 0,"RXYC9b")};
var u_e=function(W,l){W=W.observedPath;l=_.L(l);for(var V=l.next();!V.done;V=l.next())W=W.subPaths[V.value];return W.data};
CA.prototype.pop=function(W){var l=this,V=d9(function(){return l.getWithPath(W)});
if(!(V instanceof Array))throw Error("Cg");var f=V.length>0,r=V.pop();f&&Djc(this,V,W,V.length,0,[r]);return r};
CA.prototype.push=function(W){var l=_.xk.apply(1,arguments),V=this,f=d9(function(){return V.getWithPath(W)});
if(!(f instanceof Array))throw Error("Dg");var r=f.length,R=f.push.apply(f,_.QK(l));l.length&&Djc(this,f,W,r,l.length,[]);return R};
CA.prototype.splice=function(W,l,V){var f=_.xk.apply(3,arguments),r=this,R=d9(function(){return r.getWithPath(W)});
if(!(R instanceof Array))throw Error("Eg");l<0?l=R.length-Math.floor(-l):l&&(l=Math.floor(l));var y=R.splice.apply(R,[l,V].concat(_.QK(f)));(f.length||y.length)&&Djc(this,R,W,l,f.length,y);return y};
CA.prototype.unshift=function(W){var l=_.xk.apply(1,arguments),V=this,f=d9(function(){return V.getWithPath(W)});
if(!(f instanceof Array))throw Error("Fg");var r=f.unshift.apply(f,_.QK(l));l.length&&Djc(this,f,W,0,l.length,[]);return r};var cL=function(W,l,V){this.model=W;this.unknownSignalResolver=l;this.options=V;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];l=_.L(u1S());W=l.next().value;l=l.next().value;this.owner=W;this.disposeImpl=l};
cL.prototype.dispose=function(){if(!this.isDisposed){for(var W=_.L(this.childSignalProxies),l=W.next();!l.done;l=W.next())l.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var vxB=function(W,l){W=_.Ri(W.owner);try{l()}finally{_.Ri(W)}};
cL.prototype.effect=function(W){vxB(this,function(){_.A4(W)})};
var H1X=function(W,l){W.options!=null||(W.options={});var V;(V=W.options).immutableProps!=null||(V.immutableProps=new Set);W.options.immutableProps.add(l)},Y8z=function(W,l){l=""+l;
KI$(W,l);var V,f;if((V=W.options)==null?0:(f=V.immutableProps)==null?0:f.has(l))return!0;var r;if((r=W.model.__signalCache)==null?0:r.has(l))V=W.model.__signalCache.get(l),Array.isArray(V)&&H1X(W,l);var R,y,P;return(P=(R=W.options)==null?void 0:(y=R.immutableProps)==null?void 0:y.has(l))!=null?P:!1},FI$=function(W,l){var V;
W.unknownSignalResolver&&(V=W.unknownSignalResolver(l));var f,r;((f=W.options)==null?0:(r=f.immutableProps)==null?0:r.has(l))?V!=null||(V=new djL(_.J4(W.model[l],void 0,"By5iP"))):V!=null||(V=new CA(_.J4(W.model[l],void 0,"CXghNc")));var R=W.model.hostElement;Object.defineProperty(W.model,l,{get:function(){NDj(R,l);return V.getWithPath([])},
set:function(y){e3(R,l);W.setWithPath([l],y)},
configurable:!0});return V},KI$=function(W,l){var V,f,r;
((V=W.model.__signalCache)==null||!V.has(l))&&((f=W.options)==null?0:(r=f.externalSignalProps)==null?0:r.has(l))&&W.model[l]},RJ=function(W,l){l=""+l;
var V=W.signalCache[l];if(V!==void 0)return V;V=!1;KI$(W,l);var f;if((f=W.model.__signalCache)==null?0:f.has(l))if(V=W.model.__signalCache.get(l),Array.isArray(V))V=!0,H1X(W,l);else return W.signalCache[l]=W.model.__signalCache.get(l).signal,W.signalCache[l];var r,R;f=(R=(r=W.options)==null?void 0:r.reactivityMode)!=null?R:0;var y,P;if(!((y=W.options)==null?0:(P=y.reactiveProps)==null?0:P.has(l))&&!V&&f===1)throw Error("Gg`"+l);r=V?Gxe(W,l):FI$(W,l);return W.signalCache[l]=r},Gxe=function(W,l){var V=
Object.getOwnPropertyDescriptor(W.model.constructor.prototype,l),f=function(){return W.model[l]};
return new djL(V&&V.get&&!V.set?f:[f,function(r){W.model[l]=r}])};
cL.prototype.getWithPath=function(W){var l=_.L(W);W=l.next().value;l=V_(l);NDj(this.model.hostElement,""+W);return RJ(this,W).getWithPath(l)};
cL.prototype.setWithPath=function(W,l){if(W.length){e3(this.model.hostElement,W.join("."));var V=_.L(W);W=V.next().value;V=V_(V);RJ(this,W).setWithPath(V,l)}};
cL.prototype.getPathMutationSignal=function(W){var l=_.L(W);W=l.next().value;l=V_(l);return RJ(this,W).getPathMutationSignal(l)};
cL.prototype.notifyPath=function(W,l){var V=_.L(W);W=V.next().value;V=V_(V);RJ(this,W).notifyPath(V,l)};
var b1a=function(W,l){if(l.type==="literal")return function(){return{rootWasDefined:!0,value:l.value}};
var V=fk(l.path),f=_.L(V),r=f.next().value;f=V_(f);var R,y;if(l.type==="path"&&(V.length===1||((R=W.options)==null?0:(y=R.immutableProps)==null?0:y.has(r))))return function(){var J=W.getWithPath(V.slice(0,1));J=gaz(J,V.slice(1));return{rootWasDefined:RJ(W,V[0]).wasDefined,value:J}};
var P=RJ(W,r);if(l.type==="path"){var n=P.getPathMutationSignal(f);return function(){var J,D=(J=n())==null?void 0:J.value;return{rootWasDefined:P.wasDefined,value:D}}}if(l.type==="splices"){var B=P.getSplicesSignal(f);
return function(){var J=B();return{rootWasDefined:P.wasDefined,value:J}}}var d=P.getChangeRecordSignal(f,""+r);
return function(){var J=d();return{rootWasDefined:P.wasDefined,value:J}}},JR4=function(W,l,V){var f=V.map(function(P){return b1a(W,P)}),r=V.length===0,R=[],y=V.length!==1||V[0].type!=="path"?!1:!0;
W.effect(function(){for(var P=f.length,n=[],B=!!R.length,d=0;d<P;d++){var J=f[d](),D=J.rootWasDefined;J=J.value;r||(r=D);n[d]=J;y&&(n[d+P]=B?R[d]:n[d],R[d]=J)}r&&Q_(W.owner,function(){return void l.apply(null,_.QK(n))})})},naU=function(W,l,V,f,r){var R=RJ(W,l);
r!==void 0&&R.setWithPath([],r);JR4(W,function(){var y=_.xk.apply(0,arguments);e3(W.model.hostElement,l,!0);R.setWithPath([],V.apply(null,_.QK(y)))},f)};
cL.prototype.arrayPush=function(W){var l=_.xk.apply(1,arguments),V=_.L(W),f=V.next().value;V=V_(V);f=RJ(this,f);return f.push.apply(f,[V].concat(_.QK(l)))};
cL.prototype.arraySplice=function(W,l,V){var f=_.xk.apply(3,arguments),r=_.L(W),R=r.next().value;r=V_(r);R=RJ(this,R);return R.splice.apply(R,[r,l,V].concat(_.QK(f)))};
cL.prototype.arrayUnshift=function(W){var l=_.xk.apply(1,arguments),V=_.L(W),f=V.next().value;V=V_(V);f=RJ(this,f);return f.unshift.apply(f,[V].concat(_.QK(l)))};
cL.prototype.notifySplices=function(W,l){var V=_.L(W);W=V.next().value;V=V_(V);RJ(this,W).notifySplices(V,l)};var p9B=!0,ox9=!1,xxU=!1,jTk=!1,IwB=0;jTk=!1;IwB=0;p9B=!0;ox9=xxU=!1;var GMq=/([^\s]+?)\(([\s\S]*)\)/,HxS=/\.([^.]+)$/,p7z=/\\,/g,kMJ=/&comma;/g,vaz=/\\(.)/g,bxj=[],KWv={"*":"wildcard",splices:"splices"};var QWJ=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"),X7j=/[A-Z]/,i1Z=["class","hidden","id","on-dom-change"],ZxU=new Set([].concat(_.QK(i1Z),
["if","notify-dom-change","restamp"])),Ox6=new Set([].concat(_.QK(i1Z),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),a8z=new Set(["restamp"]);var awj=new Set(["className","id"]);var ebS=Symbol(),l9g=window;var yhx=window;var dxg=0,nUz=0,tG=[],Bsq=0,PUx=!1,chx=document.createTextNode("");(new window.MutationObserver(CUz)).observe(chx,{characterData:!0});var Lk=new Map,sU=0,mje=function(W){this.mappedHandleId=W},Dxj=function(W,l,V,f){this.mappedHandleId=W;
var r=this;this.mappedHandleId=W;this.callback=l;this.waitTime=V;this.schedulerPriority=f;this.handleId=_.w8.addJob(function(){r.callback();Lk.delete(r.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.v(Dxj,mje);Dxj.prototype.cancel=function(){_.w8.cancelJob(this.handleId);Lk.delete(this.mappedHandleId)};
var UxU=function(W,l){this.mappedHandleId=W;var V=this;this.mappedHandleId=W;this.callback=l;this.handleId=JhS(function(){V.callback();Lk.delete(V.mappedHandleId)})};
_.v(UxU,mje);UxU.prototype.cancel=function(){var W=this.handleId-nUz;W<0||tG.length<=W||(tG[W]=null);Lk.delete(this.mappedHandleId)};var H3Y=function(){};
H3Y.prototype.cancel=function(){this.jobHandle!==void 0&&(utz(this.jobHandle),this.jobHandle=void 0)};
H3Y.prototype.run=function(W,l,V){var f=this;this.cancel();this.callback=W;this.jobHandle=_.yq(function(){W();f.callback=void 0},l,V)};
H3Y.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var kEx=new WeakMap;var X9L=uZ(function(W){for(var l=W,V=0;V<3;V++)l=Object.getPrototypeOf(l);delete l.prototype.connectedCallback;var f=function(){return W.apply(this,arguments)||this};
_.v(f,W);f.prototype._attachDom=function(r){if(!r)return null;var R=(0,_.j3)(this.hostElement);R.attachShadow({mode:"open",shadyUpgradeFragment:r});R.shadowRoot.appendChild(r);return R.shadowRoot};
f.prototype._takeAttributes=function(){for(var r=this.hostElement.attributes,R=0;R<r.length;R++){var y=r[R],P=void 0,n=void 0;(n=(P=this).__attributeReaction)==null||n.call(P,y.name,null,y.value)}};
f.prototype._readyClients=function(){W.prototype._readyClients.call(this);this.root=this};
f.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);W.prototype.connectedCallback.call(this)};
_.rc.Object.defineProperties(f,{template:{configurable:!0,enumerable:!0,get:function(){return f.prototype._template}}});
return f}),T2L=uZ(function(W){var l=function(){return W.apply(this,arguments)||this};
_.v(l,W);l.prototype.created=function(){if(this.__notifyEffects)for(var V=_.L(Object.values(this.__notifyEffects)),f=V.next();!f.done;f=V.next()){f=_.L(f.value);for(var r=f.next();!r.done;r=f.next())r.value.fn=b3J}if(this.__reflectEffects)for(V=_.L(Object.values(this.__reflectEffects)),f=V.next();!f.done;f=V.next())for(f=_.L(f.value),r=f.next();!r.done;r=f.next())r.value.fn=pcS};
l.prototype._addEventListenerToNode=function(V,f,r){V=PE(V);w6(V,f,r)||W.prototype._addEventListenerToNode.call(this,V,f,r)};
l.prototype._removeEventListenerFromNode=function(V,f,r){V=PE(V);MS(V,f,r)||W.prototype._removeEventListenerFromNode.call(this,V,f,r)};
l.prototype._propertiesChanged=function(V,f,r){if(this.__dataToNotify&&this.__notifyEffects)for(var R=_.L(Object.keys(this.__dataToNotify)),y=R.next();!y.done;y=R.next()){y=y.value;var P=GEz(y);this.__notifyEffects[P]||delete this.__dataToNotify[y]}else this.__dataToNotify=null;W.prototype._propertiesChanged.call(this,V,f,r)};
l.prototype.fire=function(V,f,r){f=f===void 0?{}:f;var R;return _.FN(PE((R=r==null?void 0:r.node)!=null?R:this),V,f,r)};
l.prototype._ensureAttribute=function(V,f){var r=PE(this);r.hasAttribute(V)||rm(r,f,V)};
l.prototype.isLightDescendant=function(V){var f=PE(this);return PE(f)!==V&&_.GS(f).contains(V)&&_.GS(f).getRootNode()===_.GS(V).getRootNode()};
return l});
_.Y6.ready=function(){var W;((W=this.hostElement)!=null?W:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var l;((l=this.hostElement)!=null?l:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Wo._subscribeIronResize=function(W){var l;((l=W.hostElement)!=null?l:W).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Wo._unsubscribeIronResize=function(W){var l;((l=W.hostElement)!=null?l:W).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var I9z=[Array,Boolean,Date,Number,Object,String],Ck=function(W,l,V,f){this.polySiInfo=W;this.polySiParams=l;this.polySiContext=V;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;f||this instanceof HTMLElement&&(f=this);if(!f)throw Error("Ng");this.allowedProps=l.allowedProps;this.hostElement=f;this.is=W.is;this.upgradeDisabled=!!l.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");W=new Set(l.reactiveSchemas.filter(function(r){return r.type!==
"observe"}).map(function(r){return r.propertyKey}));
this.signalProxy=new cL(this,void 0,{reactiveProps:W,reactivityMode:l.reactivityMode});this.__dataHasAccessor={};l=_.L(l.reactiveSchemas);for(W=l.next();!W.done;W=l.next())W=W.value,W.type==="signal"&&(this.__dataHasAccessor[W.propertyKey]=!0);this.upgradeDisabled||w9v(this)};
Ck.prototype.getExtraMethodsToForward=function(){return[]};
var w9v=function(W){W.polySiContext.didRegister||(W.registered(),W.polySiContext.didRegister=!0);W.polySiContext.finalizedTemplate||(W.polySiContext.finalizedTemplate={},W.polySiParams.templateGetter&&(W.polySiContext.finalizedTemplate.processedTemplate=gUS(W.polySiParams.templateGetter,W.polySiParams.is)));AQZ(W);var l=W.hostElement;l.loggingStatus!=null||(l.loggingStatus={});l.loggingStatus.isInitializing=!0;d9(function(){return void W.created()});
l.loggingStatus.isInitializing=!1;W.isPolySiElementConnected&&QT9(W)},QT9=function(W){W.didCallReady||(d9(function(){return void W.ready()}),W.didCallReady=!0);
W.isAttached=!0;W.attached()};
_.t=Ck.prototype;_.t.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||QT9(this)};
_.t.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.t.attributeChangedCallback=function(W,l,V){if(this.upgradeDisabled)W==="disable-upgrade"&&V===null&&(this.upgradeDisabled=!1,w9v(this));else if(l!==V){var f=_.Q9(W),r=this.polySiContext.typesForSignals[f];if(r&&(!this.reflecting||_.U("polysi_attribute_changed_serializing_killswitch"))){switch(r){case Object:try{var R=JSON.parse(V)}catch(P){R=V}break;case Array:try{R=JSON.parse(V)}catch(P){R=null}break;case Date:R=isNaN(V)?String(V):Number(V);R=new Date(R);break;case Boolean:R=V!==null;break;case Number:R=
Number(V);break;default:R=V}this[f]=R}f=_.L(this.polySiParams.behaviors);for(r=f.next();!r.done;r=f.next())R=void 0,(R=r.value.attributeChanged)==null||R.call(this,W,l,V);var y;(y=this.attributeChanged)==null||y.call(this,W,l,V)}};
_.t.attributeChangedCallbackWrapper=function(W,l,V){this.attributeChangedCallback(W,l,V)};
_.t.setPropertiesFromInitialAttributeValues=function(){for(var W=0;W<this.hostElement.attributes.length;W++){var l=this.hostElement.attributes[W];(l.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(l.name))&&this.attributeChangedCallback(l.name,null,l.value)}};
_.t.created=function(){this.provide=this.polySiParams.provide;var W;(W=this.initializeInjection)==null||W.call(this);W=_.L(this.polySiParams.reactiveSchemas);for(var l=W.next();!l.done;l=W.next())l=l.value,l.type==="signal"&&(this.mutablePropNames.add(l.propertyKey),RJ(this.signalProxy,l.propertyKey));jbz(this,this.polySiInfo,this.polySiParams.behaviors);W=_.L(this.polySiParams.reactiveSchemas);for(l=W.next();!l.done;l=W.next())l=l.value,l.type==="signal"&&l.value!==void 0&&(this.signalProxy.model[l.propertyKey]=
typeof l.value==="function"?l.value.call(this):l.value);if(this.polySiParams.signalProperties)for(W=_.L(this.polySiParams.signalProperties),l=W.next();!l.done;l=W.next()){l=l.value;var V=void 0;((V=this.__signalCache)==null?0:V.has(l))||(this.signalProxy.model[l]=void 0)}jTk||Mjk(this);oUU(this);W=_.L(this.polySiParams.behaviors);for(l=W.next();!l.done;l=W.next())V=void 0,(V=l.value.created)==null||V.call(this);var f;(f=this.polySiInfo.created)==null||f.call(this)};
_.t.registered=function(){var W=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var l=Object.getPrototypeOf(this);l.addReactiveSchema=function(P){W.polySiParams.reactiveSchemas.push(P)};
for(var V=_.L(this.polySiParams.behaviors),f=V.next();!f.done;f=V.next()){var r=void 0;(r=f.value.beforeRegister)==null||r.call(l)}var R;(R=this.polySiInfo.beforeRegister)==null||R.call(l);l.addReactiveSchema=mxU;V=_.L(this.polySiParams.behaviors);for(f=V.next();!f.done;f=V.next())r=void 0,(r=f.value.registered)==null||r.call(l);var y;(y=this.polySiInfo.registered)==null||y.call(l)};
_.t.ready=function(){var W;(W=this.beforeReady)==null||W.call(this);jTk&&Mjk(this);var l;if(W=(l=this.polySiContext.finalizedTemplate)==null?void 0:l.processedTemplate){W=Lbz(W.template,W.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:W.hasInsertionPoint,thisCtx:this});l=W.nodesById;W=W.root;var V=this.hostElement;var f=f===void 0?!1:f;V=(0,_.j3)(V);if(!V.attachShadow)throw Error("Fd");if(!V.shadowRoot||f)V.attachShadow({mode:"open",shadyUpgradeFragment:W}),V.shadowRoot.appendChild(W);
this.root=V.shadowRoot;this.$=l}Z1v(this);f=_.L(this.polySiParams.behaviors);for(l=f.next();!l.done;l=f.next())W=void 0,(W=l.value.ready)==null||W.call(this);var r;(r=this.polySiInfo.ready)==null||r.call(this)};
_.t.attached=function(){for(var W=_.L(this.polySiParams.behaviors),l=W.next();!l.done;l=W.next()){var V=void 0;(V=l.value.attached)==null||V.call(this)}var f;(f=this.polySiInfo.attached)==null||f.call(this)};
_.t.detached=function(){for(var W=_.L(this.polySiParams.behaviors),l=W.next();!l.done;l=W.next()){var V=void 0;(V=l.value.detached)==null||V.call(this)}var f;(f=this.polySiInfo.detached)==null||f.call(this)};
var AQZ=function(W){for(var l=_.L(W.polySiParams.behaviors),V=l.next();!V.done;V=l.next())if(V=V.value,V.listeners)for(var f in V.listeners)sbS(W,W.hostElement,f,V.listeners[f]);if(W.polySiInfo.listeners)for(var r in W.polySiInfo.listeners)sbS(W,W.hostElement,r,W.polySiInfo.listeners[r])},sbS=function(W,l,V,f,r){W=yR4(W,f,r);
w6(l,V,W)||l.addEventListener(V,W);return W},Mjk=function(W){for(var l=_.L(W.polySiParams.reactiveSchemas),V=l.next();!V.done;V=l.next())V=V.value,V.type==="compute"||V.type==="computeWithMethod"?CtU(W.signalProxy,V,W):V.type==="redux"?dvg(W.signalProxy,V,W.store):V.type==="signal"&&V.readOnly&&BWU(W.signalProxy,V)},Z1v=function(W){for(var l=_.L(W.polySiParams.reactiveSchemas),V=l.next(),f={};!V.done;f={schema$jscomp$12:void 0},V=l.next())f.schema$jscomp$12=V.value,f.schema$jscomp$12.type==="notify"?
Dvx(W.signalProxy,f.schema$jscomp$12,W.hostElement):f.schema$jscomp$12.type==="observe"?Uvz(W.signalProxy,f.schema$jscomp$12,W):f.schema$jscomp$12.type==="reflect"&&W.signalProxy.effect(function(R){return function(){var y=W.signalProxy.getWithPath([R.schema$jscomp$12.propertyKey]);
W.reflecting=!0;jWj(W.hostElement,R.schema$jscomp$12.propertyKey,y,!0);W.reflecting=!1}}(f));
if(W.reflectedAttributes)for(l=_.L(Object.entries(W.reflectedAttributes)),f=l.next(),V={};!f.done;V={key$jscomp$935:void 0,value$jscomp$9737:void 0},f=l.next()){var r=_.L(f.value);f=r.next().value;r=r.next().value;V.key$jscomp$935=f;V.value$jscomp$9737=r;W.signalProxy.effect(function(R){return function(){W.reflecting=!0;jWj(W.hostElement,R.key$jscomp$935,(0,R.value$jscomp$9737)(),!0);W.reflecting=!1}}(V))}};
_.t=Ck.prototype;_.t._setPendingProperty=function(W,l){this.set(W,l);return!1};
_.t._enableProperties=function(){};
_.t._setPendingPropertyOrPath=function(W,l){this.notifyPath(W,l);return!1};
_.t._addPropertyEffect=function(){};
_.t._stampTemplate=function(){throw Error("Og");};
_.t.fire=function(W,l,V){l=l===void 0?{}:l;V=V===void 0?{}:V;var f,r,R={bubbles:(f=V.bubbles)!=null?f:!0,cancelable:!!V.cancelable,composed:(r=V.composed)!=null?r:!0},y;return _.FN(XcJ((y=V.node)!=null?y:this.hostElement),W,l,R)};
_.t.get=function(W,l){var V=fk(W);return l?gaz(l,V):W==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(V)};
_.t.linkPaths=function(){};
_.t.listen=function(W,l,V){W=XcJ(W);this.boundListeners!=null||(this.boundListeners=new WeakMap);var f=this.boundListeners.get(W);f||(f={},this.boundListeners.set(W,f));var r=l+V;f[r]||(f[r]=sbS(this,W,l,V))};
_.t.notifyPath=function(W,l){this.signalProxy.notifyPath(fk(W),arguments.length===2?{value:l}:void 0)};
_.t.canNotifyPath=function(W){return this.mutablePropNames.has(W)&&!Y8z(this.signalProxy,W)};
_.t.notifySplices=function(W,l){this.signalProxy.notifySplices(fk(W),l)};
_.t.pop=function(W){var l=this.signalProxy;W=fk(W);var V=_.L(W);W=V.next().value;V=V_(V);return RJ(l,W).pop(V)};
_.t.push=function(W){var l=_.xk.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[fk(W)].concat(_.QK(l)))};
_.t.set=function(W,l,V){if(V)throw Error("Pg");W==="hidden"?this.hostElement.hidden=!!l:this.signalProxy.setWithPath(fk(W),l)};
_.t.setProperties=function(W){W=_.L(Object.entries(W));for(var l=W.next();!l.done;l=W.next()){var V=_.L(l.value);l=V.next().value;V=V.next().value;this[l]=V}};
_.t.splice=function(W,l,V){var f=_.xk.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[fk(W),l,V].concat(_.QK(f)))};
_.t.unlinkPaths=function(){};
_.t.unlisten=function(W,l,V){W=XcJ(W);if(this.boundListeners){var f=this.boundListeners.get(W);if(f){V=l+V;var r=f[V];r&&(MS(W,l,r)||W.removeEventListener(l,r),delete f[V])}}};
_.t.unshift=function(W){var l=_.xk.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[fk(W)].concat(_.QK(l)))};
_.rc.Object.defineProperties(Ck.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 Yyg=[Array,Boolean,Date,Number,Object,String];var qyU=!1;var BL=function(){var W=HTMLElement.apply(this,arguments)||this;W.restamp=!1;W.notifyDomChange=!1;W.JSC$13540_didCallConnected=!1;W.JSC$13540_renderDebouncer=null;W.disableTemplateUpdateSignalImpl=cE()?void 0:_.J4(!1,void 0,"Ofhkwb");var l;W.getDisableTemplateUpdate=(l=W.disableTemplateUpdateSignalImpl)==null?void 0:l[0];var V;W.setDisableTemplateUpdate=(V=W.disableTemplateUpdateSignalImpl)==null?void 0:V[1];return W};
_.v(BL,HTMLElement);var O1Z=function(W){W.conditionSignalImpl!=null||(W.conditionSignalImpl=new CA(_.J4(!1,void 0,"gE52Fb")));return W.conditionSignalImpl};
_.t=BL.prototype;_.t.showHideChildren=function(W){awk(this,W,this.if)};
_.t.attributeChangedCallback=function(W,l,V){if(this.JSC$13540_didCallConnected)throw Error("Tg`"+W);W==="notify-dom-change"?this.notifyDomChange=V!==null:W==="restamp"&&(this.restamp=V!==null)};
_.t.debounceRender=function(){this.JSC$13540_renderDebouncer=_.I3(this.JSC$13540_renderDebouncer,Ou,this.JSC$13540_renderImpl.bind(this));_.iZ(this.JSC$13540_renderDebouncer)};
_.t.disconnectedCallback=function(){var W=(0,_.j3)(this).parentNode;(!W||W.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in W&&!W.host)&&zzZ(this)};
_.t.connectedCallback=function(){var W=this;this.JSC$13540_didCallConnected=!0;p9B?hxz():this.style.display="none";this.parentSignalProxy.effect(function(){O1Z(W).getWithPath([]);W.debounceRender()})};
_.t.render=function(){_.wP()};
_.t.JSC$13540_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var W=this.if,l=!1;if(W){this.hasInstance()||(N2k(this),l=!0);a:{var V=(0,_.j3)(this).parentNode;if(this.hasInstance()){var f=this.instance.children;if((f==null?0:f.length)&&(0,_.j3)(this).previousSibling!==f[f.length-1])for(var r=0;r<f.length;r++)(0,_.j3)(V).insertBefore(f[r],this)}else{if(!V){V=!1;break a}YI$(this,V)}V=!0}if(!V)return}else this.restamp&&zzZ(this);awk(this,!1,W);W&&!l&&N2k(this);ox9&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.t.hasInstance=function(){return!!this.instance};
var YI$=function(W,l){var V=W.parentSignalProxy;if(cE()){var f=_.L(_.J4(!0,void 0,"yf4Yhf"));var r=f.next().value;f=f.next().value;V=W.parentSignalProxy}else{var R;var y=new cL((R=xjv(W))!=null?R:{},function(n){var B=RJ(W.parentSignalProxy,n).getChangeRecordSignal([]);n=_.J4(void 0,void 0,"oT9mkc");var d=new CA(n);y.effect(function(){if(W.getDisableTemplateUpdate&&!W.getDisableTemplateUpdate()){var J=B();d.notifyPath(fk(J.path),{value:J.value})}});
return d});
W.parentSignalProxy.childSignalProxies.push(y);var P=V=y}V=Lbz(W.templateInfo,W.templateInfo.nodeInfoList,V,{eventListenerHost:W.eventListenerHost,hasInsertionPoint:W.templateInfo.hasInsertionPoint,thisCtx:W.eventListenerHost,enabledSignal:cE()?r:void 0,getModel:function(){return xjv(W)}}).root;
W.instance={root:V,children:[],hidden:!1,signalProxy:P,getTemplateUpdatesEnabled:r,setTemplateUpdatesEnabled:f};P=_.L(V.childNodes);for(r=P.next();!r.done;r=P.next())W.instance.children.push(r.value);(0,_.j3)(l).insertBefore(W.instance.root,W)},xjv=function(W){if((W=W.parentSignalProxy.model)&&!W.hostElement){var l={},V;
for(V in W)W.hasOwnProperty(V)&&(l[V]=W[V]);return l}},zzZ=function(W){if(W.instance){var l=W.instance.children;
if(l.length){var V=(0,_.j3)(l[0]).parentNode;if(V){V=(0,_.j3)(V);for(var f=0;f<l.length;f++)V.removeChild(l[f])}}cE()?W.instance.setTemplateUpdatesEnabled(!1):W.instance.signalProxy.dispose();W.instance=void 0}},awk=function(W,l,V){l=l||!V;
W.instance&&W.instance.hidden!==l&&(W.instance.hidden=l,exF(l,W.instance.children))},N2k=function(W){if(cE()){var l=W.instance;
l&&Q_(W.parentSignalProxy.owner,function(){return!l.getTemplateUpdatesEnabled()})&&l.setTemplateUpdatesEnabled(!0)}else W.setDisableTemplateUpdate(!1)};
_.rc.Object.defineProperties(BL.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var W=this;return Q_(this.parentSignalProxy.owner,function(){return O1Z(W).getWithPath([])})},
set:function(W){W||(cE()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));O1Z(this).setWithPath([],!!W)}}});
_.rc.Object.defineProperties(BL,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",BL);var ezM=[],dY=function(){var W=HTMLElement.apply(this,arguments)||this;W.as="item";W.indexAs="index";W.itemsIndexAs="itemsIndex";W.targetFramerate=20;W.notifyDomChange=!1;W.isDetached=!1;W.JSC$13547_renderDebouncer=null;W.instances=[];W.chunkingId=null;W.chunkCount=null;W.shouldMeasureChunk=!1;W.shouldContinueChunking=!1;W.renderStartTime=null;W.JSC$13547_didCallConnected=!1;return W};
_.v(dY,HTMLElement);var qIM=function(W){W.itemSignalImpl!=null||(W.itemSignalImpl=new CA(_.J4(ezM,void 0,"YBrqgf")));return W.itemSignalImpl},hzv=function(W,l){Array.isArray(l)||(l=ezM);
qIM(W).setWithPath([],l)};
_.t=dY.prototype;_.t.showHideChildren=function(W){for(var l=_.L(this.instances),V=l.next();!V.done;V=l.next())exF(W,V.value.children)};
_.t.notifyPath=function(W,l){W=fk(W);W[0]==="items"&&(W.length===1?hzv(this,l):qIM(this).setWithPath(W.slice(1),l))};
_.t.canNotifyPath=function(W){return W==="items"};
_.t.attributeChangedCallback=function(W,l,V){if(this.JSC$13547_didCallConnected)throw Error("Ug`"+W);W==="as"?this.as=V:W==="index-as"?this.indexAs=V:W==="items-index-as"?this.itemsIndexAs=V:W==="initial-count"?this.initialCount=Number(V):W==="notify-dom-change"?this.notifyDomChange=V!==null:W==="target-framerate"&&(this.targetFramerate=Number(V))};
_.t.disconnectedCallback=function(){this.isDetached=!0;for(var W=0;W<this.instances.length;W++)SIk(this,W);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.t.connectedCallback=function(){var W=this,l=qIM(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var r=l(),R=fk(r.path);if(R[0]===void 0||R[0]==="splices"||R[0]==="length")W.debounceRender();else{var y=R[0];if(y=W.instances[typeof y==="string"?Math.floor(Number(y)):y])R=[W.as].concat(_.QK(R.slice(1))),y.signalProxy.notifyPath(R,r)}});
this.JSC$13547_didCallConnected=!0;p9B?hxz():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var V=(0,_.j3)((0,_.j3)(this).parentNode),f=0;f<this.instances.length;f++)V.insertBefore(this.instances[f].root,this);this.chunkingId&&this.render()}};
_.t.debounceRender=function(){this.JSC$13547_renderDebouncer=_.I3(this.JSC$13547_renderDebouncer,Ou,this.JSC$13547_renderImpl.bind(this));_.iZ(this.JSC$13547_renderDebouncer)};
_.t.render=function(){this.debounceRender();_.wP()};
_.t.JSC$13547_renderImpl=function(){var W=this;if(!this.parentSignalProxy.isDisposed){var l=this.items,V=ExZ(this,l.length);$jk(this,l,V);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){W.chunkingId=null;if(W.shouldMeasureChunk){var f=performance.now()-W.renderStartTime;W.chunkCount=Math.round(Math.ceil(1E3/W.targetFramerate)/f*W.chunkCount)||1}W.shouldContinueChunking&&W.debounceRender()}));
ox9&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var ExZ=function(W,l){var V=l,f=W.instances.length;if(W.initialCount){if(W.chunkCount){var r=Math.min(Math.max(l-f,0),W.chunkCount);V=Math.min(f+r,l)}else V=Math.min(l,W.initialCount),r=Math.max(V-f,0),W.chunkCount=r||1;W.shouldMeasureChunk=r===W.chunkCount;W.shouldContinueChunking=V<l;W.renderStartTime=performance.now()}return V},$jk=function(W,l,V){for(var f=0;f<V;f++){var r=W.instances[f],R=l[f];
r?(r.signalProxy.setWithPath([W.as],R),r.signalProxy.setWithPath([W.indexAs],f)):W8L(W,R,f)}for(l=W.instances.length-1;l>=f;l--)V=W,r=l,SIk(V,r),_.L(V.instances.splice(r,1)).next().value.signalProxy.dispose()},SIk=function(W,l){W=W.instances[l];
l=(0,_.j3)(W.root);for(var V=0;V<W.children.length;V++)l.appendChild(W.children[V])},W8L=function(W,l,V){var f={};
l=Object.assign({},lFv(W),(f[W.as]=l,f[W.indexAs]=V,f[W.itemsIndexAs]=V,f));var r=new cL(l,function(y){if(y!==W.as&&y!==W.indexAs){if(y===W.itemsIndexAs)return RJ(r,W.indexAs);var P=RJ(W.parentSignalProxy,y).getChangeRecordSignal([]);y=_.J4(void 0,void 0,"T21Pqc");var n=new CA(y);r.effect(function(){var B=P();n.notifyPath(fk(B.path),{value:B.value})});
return n}});
W.parentSignalProxy.childSignalProxies.push(r);f=Lbz(W.templateInfo,W.templateInfo.nodeInfoList,r,{eventListenerHost:W.eventListenerHost,getModel:function(){var y={};return Object.assign({},lFv(W),(y[W.as]=r.model[W.as],y[W.indexAs]=r.model[W.indexAs],y[W.itemsIndexAs]=r.model[W.indexAs],y))},
hasInsertionPoint:W.templateInfo.hasInsertionPoint,thisCtx:W.eventListenerHost,methodInvocationRequirement:IwB,enabledSignal:W.stampingEnabled}).root;l={root:f,children:[],signalProxy:r};f=_.L(f.childNodes);for(var R=f.next();!R.done;R=f.next())l.children.push(R.value);f=(f=W.instances[V+1])?f.children[0]:W;(0,_.j3)((0,_.j3)(W).parentNode).insertBefore(l.root,f);W.instances[V]=l},lFv=function(W){if((W=W.parentSignalProxy.model)&&!W.hostElement){var l={},V;
for(V in W)W.hasOwnProperty(V)&&(l[V]=W[V]);return l}};
dY.prototype.itemForElement=function(W){var l=this,V=this.instances.find(function(f){return f.children.includes(W)});
if(V)return Q_(this.parentSignalProxy.owner,function(){return V.signalProxy.getWithPath([l.as])})};
dY.prototype.indexForElement=function(W){var l=this.instances.findIndex(function(V){return V.children.includes(W)});
return l>=0?l:void 0};
_.rc.Object.defineProperties(dY.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var W=this;return Q_(this.parentSignalProxy.owner,function(){return qIM(W).getWithPath([])})},
set:function(W){hzv(this,W)}},
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}}});
_.rc.Object.defineProperties(dY,{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",dY);var Vxa,fF1;_.Jp=new _.vd("STATE_STORE_TOKEN");Vxa=new _.vd("SELECT_TOKEN");fF1=new _.vd("DISPATCH_TOKEN");var Vjq={getSelectFn:function(){var W;return(W=_.tY().resolve(_.R0(Vxa)))!=null?W:SyS},
getDispatchFn:function(){var W;return(W=_.tY().resolve(_.R0(fF1)))!=null?W:_.BE().dispatch.bind(_.BE())},
getAppStore:function(){return _.tY().resolve(_.Jp)}},EUj,lw8=!1;var tjv,Uya={traceAllComponents:_.U("web_tracing_all_components"),exportToCsi:_.U("web_tracing_export_to_csi"),exportBreadcrumbs:_.U("web_enable_tracing"),bufferSize:_.yS("web_max_tracing_events"),enabledSpansArray:_.n7("web_tracing_enabled_spans"),exportToDevTools:_.U("web_tracing_export_to_devtools")};tjv=new uqe;var P1F=function(){};var LIY=void 0;var rBL=function(){};
rBL.prototype.hasAttribute=function(W){if(W==="dir")return!1;if(W==="disable-upgrade"){var l,V;return(V=(l=this.hostElement)==null?void 0:l.hasAttribute("disable-upgrade"))!=null?V:!1}throw Error("Vg`"+W);};
rBL.prototype.attributeChangedCallbackWrapper=function(W,l,V){if(W==="disable-upgrade"&&this.__isUpgradeDisabled&&V===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var f;((f=this.hostElement)!=null?f:this).isConnected&&this.connectedCallback()}else l===V||this.__isReflecting||this.attributeChangedCallback(W,l,V)};
rBL.prototype.getExtraMethodsToForward=function(){for(var W=this,l=[],V=_.L(RhI),f=V.next(),r={};!f.done;r={tagName$jscomp$54:void 0,name$jscomp$599:void 0},f=V.next())r.name$jscomp$599=f.value,f=void 0,r.name$jscomp$599==="_setPendingProperty"?(r.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),f=function(R){return function(y,P,n){x7(R.tagName$jscomp$54,y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return W._setPendingProperty(y,P,n)}}(r)):f=function(R){return function(){return W[R.name$jscomp$599].apply(W,
_.QK(_.xk.apply(0,arguments)))}}(r),l.push([r.name$jscomp$599,
f]);return l};
for(var cQn=T2L(X9L((0,_.YD)(rBL))),Djz=["disabled","disable-upgrade"],txv=(0,_.YD)(function(){}),saZ=new Set(Object.getOwnPropertyNames(txv.prototype)),H1Y=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.QK(saZ))),u_q=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),RhI=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),L8c=new Set([].concat(_.QK(u_q),_.QK(RhI),_.QK(saZ))),yBv=_.L(L8c),gqk=yBv.next();!gqk.done;gqk=yBv.next())ZFq.add(gqk.value);var vxF={created:function(){oUU(this);this.initializeInjection()}};var i1x=!1,vE=window.ShadyDOM,Z1U=["appendChild","insertBefore","removeChild","replaceChild"],Mj8=[Node];vE&&Mj8.push(vE.Wrapper);var xjU,ezz,SI8={};_.Kk=new Set;_.vI="";_.$j8="";var HE,FY=new Set;var txU=new Set("context didCallReady is info params signalProxy".split(" ")),L8z="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),yBU="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var Pfc=T$({entities:Vbn}),nqI=new J5(Pfc);var Cf$=function(){return _.OD.apply(this,arguments)||this};
_.v(Cf$,_.OD);_.rc.Object.defineProperties(Cf$.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return nqI}}});
_.a([_.a1()],Cf$);_.DS=[PL.prototype,Cf$.prototype];_.Uq={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var W=this,l={};setTimeout(function(){var V;return _.FN((V=W.hostElement)!=null?V:W,"yt-live-chat-add-tooltip-target",l)},0);
this.handler_=l.handler},
detached:function(){if(this.handler_){var W;this.handler_.removeElementFromSupportingTooltips((W=this.hostElement)!=null?W:this)}this.handler_=null}}};_.iD=new _.vd("ICON_MANAGER_TOKEN");var cB1=[48,20,18,16,15,13,12],IFz=new Map,F8v=new Set,vqq=new Set,K8z=new Set,kqJ=new Set,HDn=new Set,bDY=new Promise(function(W){var l=!1,V=!1,f=!1,r=[],R=function(y){if("detail"in y)if(y=y.detail,y.name==="yt-icons")GqJ(y),l=!0;else if(y.name==="yt-sys-icons")GqJ(y),V=!0;else{var P;((P=y.name)==null?0:P.includes("yt-sys-icons"))&&y.size!==24&&(GqJ(y,!0),r.push(y.size),r.length===cB1.length&&(f=!0))}l&&V&&f&&(window.removeEventListener("iron-iconset-added",R),W())};
window.addEventListener("iron-iconset-added",R)}),oq4=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"]]);_.uH={};_.uH.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.dE,computeHref_:function(W,l){l=l===void 0?!1:l;if(!W||W.commandExecutorCommand)return null;var V=W2z(W,l);return l||V!==null?V?_.U("enable_polymer_resin")?_.NI(V).toString():V:null:(_.Qe(new _.bP("computeHref was null",this.is,W)),null)},
computeOptionalHref_:function(W){return this.computeHref_(W,!0)},
computeNofollow_:function(W){return W?NHY(W)?"nofollow":null:null},
computeIcon_:function(W){return W&&W.iconType?_.IJ(W.iconType):""},
resolveCommand:function(W,l,V){l=l===void 0?{}:l;return _.XY(W,this.hostElement,l,V===void 0?!1:V)}};var dOv,kr;_.BR1={};dOv=null;
kr={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_=FaJ(this.viewroot));_.yq(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var W=this;this.unobserve_();if(_.U("kevlar_vimio_use_shared_monitor"))wrj(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 l=[];this.visibilityOptionVisible_&&l.push(this.visibilityObserver.observe(this.hostElement,function(){return W.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&l.push(this.visibilityObserver.observe(this.hostElement,function(){return W.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&l.push(this.visibilityObserver.observe(this.hostElement,function(){return W.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=l}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){iDj(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 W=_.YN(this.parentNode,function(V){var f,r=(f=V.polymerController)!=null?f:V;return!!r.getVisibilityObserverForChild&&r.getVisibilityObserverForChild()},!0);
if(W){var l;this.localVisibilityObserver_=((l=W.polymerController)!=null?l:W).getVisibilityObserverForChild()}else dOv||(dOv=FaJ()),this.localVisibilityObserver_=dOv;return this.localVisibilityObserver_},visibilityCallback:function(W){W?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.U("kevlar_use_vimio_behavior")||(kr={});kr&&!_.U("kevlar_use_vimio_behavior")&&(delete kr.attached,delete kr.detached);_.BR1.YtVisibilityObserverBehavior=[kr];var JBe={};JBe.YtVisualElementBehavior=[_.BR1.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.U("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.U("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var W=this.getScreenLayer&&this.getScreenLayer(),l=this.getVisibilityLogger();l&&l.reportShown(this,void 0,W)}},
onHidden:function(){if(_.U("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.U("kevlar_vimio_use_shared_monitor")){var W=this.getScreenLayer&&this.getScreenLayer(),l=this.getVisibilityLogger();l&&l.reportHidden(this,void 0,W)}},
getVisibilityLogger:function(){return _.U("kevlar_use_vimio_behavior")?_.wm():null},
shouldSkipLogging:function(){if(_.M4("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var W=this.getParentRenderer&&this.getParentRenderer();if(!W)return!1;var l,V=(l=W.polymerController)!=null?l:W;if(!V.data)return!1;W=this.data.trackingParams;W=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:W;var f;l=(f=V.data)==null?void 0:f.trackingParams;var r,R;l=((r=V.data)==null?0:r.loggingDirectives)?(R=V.data)==null?void 0:R.loggingDirectives.trackingParams:l;return W&&l&&W===
l}}];var Mxj=new Map,Na;var LP8=function(W){this.layer=W},H0=function(W){return W.layer!==void 0?W.layer:W.parent?H0(W.parent):W.layer=0};var YN8;_.q={};YN8=0;_.q.YtRendererBehavior=[_.uH.YtComponentBehavior,JBe.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_:_.U("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var W,l;(l=(W=this.monitorScrollElement)!=null?W:this.hostElement)==null||l.removeEventListener("scroll",_.mz(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();AB6(this.hostElement);pcL(_.rY(),this.hostElement);DA.delete(this.hostElement)},
registerRenderer:function(W){var l;((l=W.polymerController)!=null?l:W).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(W),this.markDirty())},
unregisterRenderer_:function(W){this.useVimio_||(this.childCache_.delete(W),this.markDirty())},
attached:function(){var W=this,l=this.getParentRenderer();if(l){var V,f,r;(f=(V=(r=l.polymerController)!=null?r:l).registerRenderer)==null||f.call(V,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var R,y;(y=(R=this.monitorScrollElement)!=null?R:this.hostElement)==null||y.addEventListener("scroll",_.mz(this,this.onScroll))}_.w8.addJob(function(){ZDJ(W.hostElement)},8);
V=new LP8(this.screenLayer||void 0);(l=DA.get(l))&&l.layerNode&&(V.parent=l.layerNode);l={};bBF(this.hostElement,(l.isRenderer=!0,l.layerNode=V,l[yA4]=this.data,l))},
getParentRenderer:function(){for(var W=this.hostElement.parentNode,l,V;W&&((l=DA.get(W))==null||!l.isRenderer)&&!((V=W.polymerController)!=null?V:W).isRenderer_;)W=W.parentNode||W.host;return W},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.U("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.ZL("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.U("debug_web_ve_data")&&this.data.trackingParams){var W="";try{W=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(V){_.wv(V)}if(W){var l=Ddj(W,1);l!==void 0&&(this.hostElement.dataset.veIndex=String(l));W=Ddj(W,2);
W!==void 0&&(this.hostElement.dataset.ve=String(W))}}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,_.U("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.zG(this.data.loggingDirectives.trackingParams)),this.visualElement=_.AG(_.Qq(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var W=this.data.targetId;_.jbc(_.rY(),W,this.hostElement)}else pcL(_.rY(),this.hostElement)},
onScroll:function(){var W=Date.now();W-this.lastHandledScroll_<50||(this.lastHandledScroll_=W,this.markDirty())},
markDirty:function(){_.U("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():xOx(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var W=this.getParentRenderer();if(W&&(W=DA.get(W))&&W.layerNode)return H0(W.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.QK(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var W=0;W<this.data.impressionEndpoints.length;W++)this.sendImpression(this.data.impressionEndpoints[W]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(W){W.clickTrackingParams&&delete W.clickTrackingParams;var l,V;(W==null?0:(l=W.commandMetadata)==null?0:(V=l.webCommandMetadata)==null?0:V.sendPost)?_.pN(this.hostElement,[W,{impression:!0}]):_.og(this.hostElement,[W],this.hostElement)},
logExplicitClick:function(W){var l=_.Wh(this.getScreenLayer());if(l){var V,f=(V=W.polymerController)!=null?V:W;W=f.visualElement;f=f.trackingParams||f.clickTrackingParams;!W&&f&&(W=_.zG(f));W&&_.C0(l,W)}}}];var DO1={},vL=function(){return _.OD.apply(this,arguments)||this};
_.v(vL,_.OD);vL.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
vL.prototype.onPdgItemBehaviorClick=vL.prototype.onPdgItemBehaviorClick;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],vL.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],vL.prototype,"data",void 0);_.a([_.XI("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],vL.prototype,"onPdgItemBehaviorClick",null);_.a([_.a1()],vL);DO1.YtPdgLiveChatItemBehavior=[vL.prototype,_.q.YtRendererBehavior];var UOZ;var uFc;_.HL={};_.HL.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var KA=function(){var W=t6.apply(this,arguments)||this;W.switchTemplateAtRegistration=!1;return W};
_.v(KA,t6);KA.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||SNF(this),_.Kbz(this,"doRender"),this.doRender())};
KA.prototype.debounceRender=function(){this.templatingFn&&_.gm(this,"doRender",this.doRender)};
KA.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.wv(Error("eh"))};
KA.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.a([ZVx()],KA);var kqI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,FE={},lfz=(FE[1]={filterString:null,isUnwrappable:null,unwrap:null},FE[2]={filterString:function(W,l,V){return Fx(V)},
isUnwrappable:function(W){return W instanceof Se},
unwrap:function(W){return $k(W)}},FE[3]={filterString:function(W,l,V){return kqI.test(V)?V:zI.toString()},
isUnwrappable:function(W){return QP(W)},
unwrap:function(W){return _.MI(W)}},FE[4]={filterString:function(){return zI.toString()},
isUnwrappable:function(W){return W instanceof Iv},
unwrap:function(W){return _.m7(W).toString()}},FE[5]={filterString:function(W,l,V){return V},
isUnwrappable:function(W){return typeof W==="string"},
unwrap:function(W){return W.toString()}},FE[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(W){return W instanceof _.fc},
unwrap:function(W){return LQz(W)}},FE[8]={filterString:function(W,l,V){V=String(V).toLowerCase();
return JHS(W,l,V)?V:"zClosurez"},
isUnwrappable:null,unwrap:null},FE[10]={filterString:null,isUnwrappable:null,unwrap:null},FE);r6[N_["default"]]=ffv;var r38=[];(function(){var W=fp;fp=function(l){W==null||W(l);qa(function(){for(var V=0;V<l.length;V++)R36(l[V])})}})();var vqe=function(){var W=_.OD.apply(this,arguments)||this;W.hasUnmounted=!1;return W};
_.v(vqe,_.OD);_.t=vqe.prototype;_.t.beforeRegister=function(){var W=this.doIdomRender;this.templatingFn?_.wv(Error("dh")):(this.templatingFn=W,this.switchTemplateAtRegistration=!0,W54(this))};
_.t.attached=function(){};
_.t.detached=function(){R36(this.hostElement)};
_.t.renderIdom=function(){throw Error("gh");};
_.t.doIdomRender=function(){var W=this;n18(this.hostElement,function(){W.renderIdom()})};
_.a([_.a1()],vqe);var HD9=[KA.prototype,vqe.prototype];var K8M,F8L=function(){return K8M!==void 0?K8M:K8M=document.createElement("template")};
document.head.appendChild(F8L().content);var GqI;var bDX,prL=function(){return bDX!==void 0?bDX:bDX=document.createElement("template")};
document.head.appendChild(prL().content);var oq$;var ja$=document.head,IFM=ja$.appendChild,iDk;if(oq$===void 0){var mOe=document.createElement("template");_.K(mOe,"\x3c!--css-build:shady--\x3e");mOe.content.insertBefore(prL().content.cloneNode(!0),mOe.content.firstChild);oq$=mOe}iDk=oq$;IFM.call(ja$,iDk.content);var XrX,TRe=function(){return XrX!==void 0?XrX:XrX=document.createElement("template")};
document.head.appendChild(TRe().content);var wrk;var ABa=document.head,QaB=ABa.appendChild,Mxk;if(wrk===void 0){var ZDI=document.createElement("template");_.K(ZDI,"\x3c!--css-build:shady--\x3e");ZDI.content.insertBefore(TRe().content.cloneNode(!0),ZDI.content.firstChild);wrk=ZDI}Mxk=wrk;QaB.call(ABa,Mxk.content);var ODB=document.head,aFa=ODB.appendChild,zhZ;if(GqI===void 0){var NR$=document.createElement("template");_.K(NR$,"\x3c!--css-build:shady--\x3e");NR$.content.insertBefore(F8L().content.cloneNode(!0),NR$.content.firstChild);GqI=NR$}zhZ=GqI;aFa.call(ODB,zhZ.content);var YNk,xOZ=function(){return YNk!==void 0?YNk:YNk=document.createElement("template")};
document.head.appendChild(xOZ().content);var eh1;_.nP=new _.vd("DARK_THEME_TOKEN");var e3S=new _.uC("accessibilityProperties");var xfj=new _.uC("layoutProperties");var qav=new _.uC("imageType");var qNk={};if("ytAttributedStringLinkHoverColor"in qNk)throw Error("jh`ytAttributedStringLinkHoverColor");(function(W,l){qNk[W]="value"in l&&"unit"in l?PYv(W,l):function(V){try{return l(V)}catch(f){throw Error("hh`"+W+"`"+f.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var hha=function(W){var l=this;this.holdTime=W===void 0?500:W;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(V){var f=new CustomEvent("LONG_PRESS"),r;(r=V.changedTouches[0].target)==null||r.dispatchEvent(f)};
this.ontouchstart=function(V){l.longPressTimeout=_.Kt(_.w8,function(){l.onlongpress(V);l.longPressOccurred=!0},l.holdTime)};
this.ontouchmove=function(){_.w8.cancelJob(l.longPressTimeout);l.longPressTimeout=NaN;l.longPressOccurred=!1;l.moveOccurred=!0};
this.ontouchend=function(V){if(l.longPressTimeout&&!l.longPressOccurred&&!l.moveOccurred){var f;(f=V.changedTouches[0].target)==null||f.dispatchEvent(new Event("click"))}_.w8.cancelJob(l.longPressTimeout);l.longPressTimeout=NaN;l.longPressOccurred=!1;l.moveOccurred=!1}};var o4j=function(W,l){hha.call(this,l);var V=this;this.callback=W;this.onlongpress=function(f){var r;(r=V.callback)==null||r.call(V,f)}};
_.v(o4j,hha);var j5g=function(W,l){var V=Object.assign({},l);W=_.L(new Map([["ontouchstart",W.ontouchstart],["ontouchend",W.ontouchend],["ontouchmove",W.ontouchmove]]));for(var f=W.next(),r={};!f.done;r={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},f=W.next()){var R=_.L(f.value);f=R.next().value;R=R.next().value;r.eventName$jscomp$101=f;r.eventHandler$jscomp$1=R;l[r.eventName$jscomp$101]=function(y){return function(P){var n;(n=V[y.eventName$jscomp$101])==null||n.call(V,P);(0,y.eventHandler$jscomp$1)(P)}}(r)}};_.s6=new _.vd("COMMAND_HANDLER_TOKEN");var CYx=new _.uC("parallelCommand");var dfz=new _.uC("performOnceCommand");var Bbn=new _.uC("serialCommand");var J3x=void 0;var SNB=function(){this.data=[];this.consumer=null};
SNB.prototype.push=function(W){this.consumer?this.consumer(W):this.data.push(W)};var gC={};_.J4(gC,void 0,"sgPmTd");_.J4(null,void 0,"jypsq");_.J4(null,void 0,"mWiOof");var Jwg=new SNB;var F5x=[f$L,rZ9,RII,sXM,tLB,VLI,LkX,yZ9];var Nb6=new _.uC("bracketTextDecorator");var gN=new _.uC("highlightTextDecorator");_.cI=new _.vd("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var M8z=function(){},Eq9;
(Eq9=window.requestIdleCallback)==null||Eq9.bind(window);var OQY={calledOnce:!1,state:"visible"},ZQq={calledOnce:!1,state:"hidden"};var $Ok=new _.vd("ICON_WIZ_COMPONENT_TOKEN");_.wN=_.Q(function(W){var l=W.icon;var V=W.active;var f=W.className;var r=W.style;var R=W.dataSelected;var y=W.dataDisabled;var P=W.role;var n=W.animateIcon;var B=W.themeOverride;var d=W.ariaHidden;var J=W.ariaExpanded;var D=W.ariaLabel;var u=W.tabindex;var H=W.id;var p=W.size;var X=W.iconFilter;var w=W.onKeydown;return _.C(_.c,{cond:l,then:function(){var O=_.tY().resolve($Ok);return _.C(O,{icon:l,dataSelected:R,dataDisabled:y,animateIcon:n,themeOverride:B,ariaExpanded:J,tabindex:u,id:H,active:V,size:p,
role:P,className:f,ariaHidden:d,ariaLabel:D,style:function(){return r!=null&&r()||p==null||!p()?r==null?void 0:r():"width: "+(p==null?void 0:p())+"px;height: "+((p==null?void 0:p())+"px;")},
iconFilter:X,onKeydown:w})}})},"b");
_.wN.idomCompat={callbacks:{onKeydown:!0}};var Pqn=window.devicePixelRatio||1;var Bpq=new Map([["yt_outline_bag_black_24","bag"]]);var Gv=function(W){var l=this;this.margin=.1;this.whenInViewportWithMargin=W;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){l.requestScan()});
window.addEventListener("touchend",function(){l.requestScan()});
window.addEventListener("updateui",function(){l.requestScan()});
var V=new _.t$((0,_.ml)(this.requestScan,this),100);window.addEventListener("scroll",function(){V.fire()},!0);
window.addEventListener("resize",(0,_.ml)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){l.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.ml)(this.requestScan,this))};
Gv.prototype.observe=function(W){this.observationTargets.includes(W)||this.observationTargets.push(W)};
Gv.prototype.unobserve=function(W){this.observationTargets=this.observationTargets.filter(function(l){return l!==W})};
Gv.prototype.requestScan=function(){var W=this;this.scanRequested||(qa(function(){W5$(W)}),this.scanRequested=!0)};
var W5$=function(W){var l=(1+W.margin)*(document.documentElement.clientHeight||window.innerHeight);W.observationTargets=W.observationTargets.filter(function(V){var f=V.getBoundingClientRect();(f=l>f.top&&!!f.height)&&W.whenInViewportWithMargin(V);return!f&&V.parentNode});
W.scanRequested=!1};
Gv.prototype.disconnect=function(){this.observationTargets=[]};var lfc,ffL;lfc=_.L(_.J4(uiU(),void 0,"O3X2wd"));_.V8k=lfc.next().value;ffL=lfc.next().value;window.addEventListener("resize",function(){ffL(uiU())});var r3k={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},R3a=void 0,t89=window.innerWidth,s5L=window.innerHeight;window.addEventListener("resize",function(){R3a=void 0});var L5k;if("IntersectionObserver"in window)L5k=HOS();else{if(R3a===void 0){var y3L;y3L="matchMedia"in window?window.matchMedia(r3k.landscape+","+r3k.portrait).matches:void 0;R3a=y3L!==void 0?y3L:t89>=930&&s5L>=550||t89>=550&&s5L>=930}L5k=R3a?{observe:function(W){qa(function(){var l;(l=W.onViewportEntered)==null||l.call(W)})},
unobserve:function(){}}:new Gv(function(W){qa(function(){var l;
(l=W.onViewportEntered)==null||l.call(W)})})}var k58=L5k;var g4v=_.Q(function(W){var l=!1,V=_.WS("img",function(f){_.Xc(function(){l=!0;f.onload=null})});
_.m1(function(){var f,r=(f=W.data)==null?void 0:f.call(W),R,y=(R=W.getSrc)==null?void 0:R.call(W).cb,P;f=(P=W.config)==null?void 0:P.call(W);if(P=V.value)if(R=function(B,d){if(!l)return y?y(B,d):B},G5n(P,f),_.U("web_image_dont_reload_same_src")&&FRg(P,r,R))_.U("web_image_dont_reload_same_src_simulate_load")&&P.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var n;KRY(P,r||null,R,f,(n=W.lazy)==null?void 0:n.call(W))}},"zS0jKb");
return _.C("img",{el:V})},"c");
g4v.idomCompat=!0;_.dN=_.Q(function(W){var l=function(){var V,f=W.data(),r,R,y,P,n,B,d,J,D,u,H,p,X,w,O,S,N,x,Y,W8,c8,B8,Jx,H8,Kq,Z4,Ax,sM,Ta;var ck={contentMode:(r=W.contentMode)==null?void 0:r.call(W),loadedClass:(R=W.loadedClass)==null?void 0:R.call(W),isPreloaded:(y=W.isPreloaded)==null?void 0:y.call(W),notifyOnLoaded:(P=W.notifyOnLoaded)==null?void 0:P.call(W),notifyOnUnloaded:(n=W.notifyOnUnloaded)==null?void 0:n.call(W),preferredThumbnail:(B=W.preferredThumbnail)==null?void 0:B.call(W),preserveHeight:(d=W.preserveHeight)==
null?void 0:d.call(W),preserveWidth:(J=W.preserveWidth)==null?void 0:J.call(W),objectPosition:(D=W.objectPosition)==null?void 0:D.call(W),targetWidth:(u=W.targetWidth)==null?void 0:u.call(W),targetHeight:(H=W.targetHeight)==null?void 0:H.call(W),shouldShowPlaceholder:(p=W.shouldShowPlaceholder)==null?void 0:p.call(W),useWidth:(X=W.useWidth)==null?void 0:X.call(W),isToggled:(w=W.isToggled)==null?void 0:w.call(W),alt:(O=W.alt)==null?void 0:O.call(W),className:(S=W.className)==null?void 0:S.call(W),
onerror:W.onerror,onload:W.onload,style$:((N=W.style$)==null?void 0:N.call(W))||((x=W.style)==null?void 0:x.call(W)),color:(Y=W.color)==null?void 0:Y.call(W),width:(W8=W.width)==null?void 0:W8.call(W),height:(c8=W.height)==null?void 0:c8.call(W),"aria-hidden$":(sM=(B8=W["aria-hidden$"])==null?void 0:B8.call(W))!=null?sM:(Jx=W.ariaHidden)==null?void 0:Jx.call(W),draggable:(H8=W.draggable)==null?void 0:H8.call(W),"data-disabled$":(Ta=(Kq=W["data-disabled$"])==null?void 0:Kq.call(W))!=null?Ta:(Z4=W.dataDisabled)==
null?void 0:Z4.call(W),size:(Ax=W.size)==null?void 0:Ax.call(W)};return oKg(f,ck,(V=W.hideOn404)==null?void 0:V.call(W))};
return _.C(_.oh,null,_.C(_.bz,{when:function(){var V;return((V=l())==null?void 0:V.type)==="image"}},function(){return _.C(g4v,{data:function(){return l().image},
getSrc:{cb:function(V,f){var r=l().image.sources,R=l().config.isPreloaded,y=l().config.useWidth,P=l().config.targetWidth,n=l().config.targetHeight,B=l().config.preferredThumbnail;return _.nKg(f,r,R,y,P,n,B)||""}},
config:function(){var V=l().config,f;for(f in V)V[f]===void 0&&delete V[f];return V},
lazy:W.renderLazy})}),_.C(_.bz,{when:function(){var V;
return((V=l())==null?void 0:V.type)==="icon"}},function(){return _.C(_.wN,{icon:function(){return l().iconName},
role:function(){return l().config.role},
className:function(){return l().config.className},
style:function(){return l().config.style$+";width: "+(l().config.width+"px;height: ")+(l().config.height+"px;color: ")+(l().config.color+";")},
ariaLabel:function(){return l().config["aria-label$"]},
ariaHidden:function(){return l().config["aria-hidden$"]},
dataDisabled:function(){return l().config["data-disabled$"]},
active:function(){return l().config.isToggled},
size:function(){return l().config.size}})}))},"d");
_.dN.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var PYL=function(W){return function(l){return _.C(pfY,null,function(){var V=l.data(),f=_.w9(l.config);return _.C(V6,null,function(){return void W(V,f)})})}}(XKz),iO4=_.Q(function(W){var l=function(f){var r,R=_.DN(function(D){r=T_(function(){for(var u=_.L(d()),H=u.next();!H.done;H=u.next()){H=Tp6(H.value);
H=typeof H==="string"?document.createTextNode(H):H;if(!(H instanceof Node)){u=new _.bP("Part is not a node",H,typeof H);_.wv(u);break}D.appendChild(H)}})}),y=UZ(function(){return SaJ(f())},{isEqual:IVz}),P=_.JG(W.config),n=function(){var D,u=y();
return!((D=P())==null||!D.ariaLabel)||!(u.commandRuns&&u.commandRuns.length!==0||u.paragraphStyleRuns&&u.paragraphStyleRuns.length!==0)},B=UZ(P,{isEqual:AiS}),d=function(){var D=h3U(y(),B());
$fx(D,B());return y().content?R9q(y().content,D).parts:[]},J=!0;
_.m1(function(){y();B();if(J)J=!1;else{var D=d();Promise.resolve().then(function(){var u=R.value;if(u){u.innerText="";var H;(H=r)==null||H();r=_.Ih(u,function(){return _.C(wKU,{parts:D})},"e")}})}},"YlhjWd");
return _.C("span",{el:R,class:function(){return y()&&Tbg(y(),P())},
dir:function(){var D;return((D=P())==null?0:D.userInput)?"auto":void 0},
"aria-label":function(){var D;return n()?(D=P())==null?void 0:D.ariaLabel:void 0},
role:function(){return n()?"text":void 0}})},V;
return((V=W.config)==null?0:V.renderedFromFormattedString)?l(W.text):_.C(_.c,{cond:W.text,then:l})},"f");
iO4.idomCompat=!0;_.bH=_.Q(function(W){var l=_.JG(W.text),V=Qdj(W);W.renderedFromFormattedString!==void 0&&(V.renderedFromFormattedString=!0);return _.U("attr_string_reactive")?_.C(iO4,{text:l,config:V}):_.C(_.c,{cond:function(){var f;return l()&&((f=SaJ(l()))==null?void 0:f.content)},
then:function(){return _.C(PYL,{data:W.text,config:V})},
debugInstance:"Apcuac"})},"g");
_.bH.idomCompat=!0;var ZO4=function(W,l,V){l=l===void 0?"unknown":l;V=V===void 0?{}:V;_.bP.call(this,W+" ("+l+")",Object.assign({},{name:"YtWcwError",tagName:l},V));Object.setPrototypeOf(this,this.constructor.prototype)};
_.v(ZO4,_.bP);_.x9U=new WeakMap;_.Yvq=!1;var NpU,e9q,z9n;_.pA=Symbol("lh");_.kh=Symbol("mh");NpU=Symbol("nh");e9q=new Set(Object.getOwnPropertyNames(Element.prototype));z9n=Symbol("oh");var n4e=_.Q(function(W){return _.C("yt-attributed-string",{"aria-label":W.ariaLabel,hidden:W.hidden,id:W.id,class:W.className,"force-default-style":W.forceDefaultStyle},_.C(_.bH,{text:W.data,ariaLabel:W.ariaLabel,ellipsisTruncate:W.ellipsisTruncate,isOverlay:W.isOverlay,linkInheritColor:W.linkInheritColor,noPreWrap:W.noPreWrap,noWrap:W.noWrap,userInput:W.userInput,noEndpoints:W.noEndpoints,headerRuns:W.headerRuns,isHeadline:W.isHeadline}))},"h");
_.U("web_wiz_attributed_string")&&_.HI(n4e,"yt-attributed-string",{props:{ariaHidden:_.pA,ariaLabel:_.pA,className:_.pA,ellipsisTruncate:_.pA,isOverlay:_.pA,linkInheritColor:_.pA,noEndpoints:_.pA,noStyleRuns:_.pA,noLinkColor:_.pA,noPreWrap:_.pA,noWrap:_.pA,skipOnClick:_.pA,userInput:_.pA,headerRuns:_.pA,isHeadline:_.pA,id:_.pA,data:_.pA,hidden:_.pA,forceDefaultStyle:_.pA,text:_.kh,disableUpgrade:_.kh,disable:_.kh,slot:_.kh}});var ok=function(){return _.I.apply(this,arguments)||this};
_.v(ok,_.I);ok.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},XKz(this.data,this.config))};
_.a([_.F(HD9),_.z("design:type",Object)],ok.prototype,"ytIdomTemplatingBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ok.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ok.prototype,"ariaLabel",void 0);_.a([_.b(),_.z("design:type",Boolean)],ok.prototype,"disable",void 0);_.a([_.b(),_.z("design:type",Boolean)],ok.prototype,"ellipsisTruncate",void 0);_.a([_.b(),_.z("design:type",Boolean)],ok.prototype,"isOverlay",void 0);
_.a([_.b(),_.z("design:type",Boolean)],ok.prototype,"linkInheritColor",void 0);_.a([_.b(),_.z("design:type",Boolean)],ok.prototype,"noPreWrap",void 0);_.a([_.b(),_.z("design:type",Boolean)],ok.prototype,"noWrap",void 0);_.a([_.b(),_.z("design:type",Boolean)],ok.prototype,"userInput",void 0);_.a([_.b(),_.z("design:type",Boolean)],ok.prototype,"noEndpoints",void 0);_.a([_.b(),_.z("design:type",Array)],ok.prototype,"headerRuns",void 0);
_.a([_.Vq({is:"yt-attributed-string",disableElementRegistration:!0})],ok);
_.U("web_wiz_attributed_string")||_.Z(ok,"yt-attributed-string",function(){if(eh1===void 0){var W=document.createElement("template");_.K(W,"\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");W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
W.content.insertBefore(xOZ().content.cloneNode(!0),W.content.firstChild);eh1=W}W=eh1;return W},{mode:2});var CYZ,c39,lDF;CYZ=function(){this.firstThumbnailLoaded=!1};
_.Bb9=function(){c39||(c39=new CYZ);return c39};
lDF=function(W){var l=_.Bb9();l.firstThumbnailLoaded||(l.firstThumbnailLoaded=!0,_.Wy("ftl",W))};
CYZ.prototype.reset=function(){this.firstThumbnailLoaded=!1};var h9z=0,WDY=new WeakMap,EKY=0,Gm=new Set;var dfc,J3Z=function(){return dfc!==void 0?dfc:dfc=document.createElement("template")};
document.head.appendChild(J3Z().content);var Dfk;var R0g,syS,jX;_.of=_.rS.caches;jX=function(){};
jX.prototype.open=function(W){return _.of.open(Ufk(W))};
jX.prototype.has=function(W){return _.of.has(Ufk(W))};
jX.prototype.delete=function(W){return _.of.delete(Ufk(W))};
jX.prototype.match=function(W,l){var V=this,f,r,R,y,P,n;return _.g(function(B){switch(B.nextAddress){case 1:return B.yield(V.keys(),2);case 2:f=B.yieldResult,r=_.L(f),R=r.next();case 3:if(R.done){B.jumpTo(5);break}y=R.value;return B.yield(V.open(y),6);case 6:return P=B.yieldResult,B.yield(P.match(W,l),7);case 7:if(n=B.yieldResult)return B.return(n);R=r.next();B.jumpTo(3);break;case 5:return B.return()}})};
var LD8=function(){};
_.v(LD8,jX);var Ufk=function(W){if(W.includes(":"))throw Error("rh`"+W);return W+":"+_.FP("CacheStorage get")};
LD8.prototype.keys=function(){var W,l,V,f,r,R,y,P,n;return _.g(function(B){if(B.nextAddress==1)return W=[],l=_.FP("CacheStorage keys"),B.yield(_.of.keys(),2);V=B.yieldResult;f=_.L(V);for(r=f.next();!r.done;r=f.next())R=r.value,y=_.rXY(R),P=y.originalName,n=y.datasyncId,n===l&&W.push(P);return B.return(W)})};var Ik=function(){var W=_.I.apply(this,arguments)||this;W.objectURL=null;W.loadTime=Infinity;return W};
_.v(Ik,_.I);_.t=Ik.prototype;_.t.renderIdom=function(){fDz(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("uh");this.setConfig();this.config&&bOY(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.t.objectFitToContentMode=function(W){switch(W){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.t.logThumbnailFailureVe=function(){var W=_.GY(197497);_.aH(_.Qq(),W);var l=_.Wh();l&&W&&l&&_.Py(l,[W])};
_.t.loadImageFromCacheIfExists=function(W){var l=this,V=W.target;(V==null?0:V.src)&&gbv(V.src).then(function(f){l.objectURL=_.Yk(f).toString();l.setSrc(V,l.objectURL)}).catch(function(){})};
_.t.onError=function(W){var l=this;if(_.U("web_use_cache_for_image_fallback")){var V=W.target;V&&gbv(V.src).then(function(f){l.objectURL=_.Yk(f).toString();l.setSrc(V,l.objectURL)}).catch(function(){_.U("kevlar_woffle_log_thumbnail_failure_ve")&&l.logThumbnailFailureVe();
_.U("kevlar_woffle_fallback_image")&&l.setSrc(V,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.t.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.t.setConfig=function(){var W=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(l){W.loadImageFromCacheIfExists(l);W.revokeObjectURL();V5n(W.hostElement)},
onerror:function(l){W.onError(l)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.U("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.t.setSrc=function(W,l){l&&(W.src=l)};
_.a([_.F(HD9),_.z("design:type",Object)],Ik.prototype,"ytIdomTemplatingBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Ik.prototype,"data",void 0);_.a([_.b(),_.z("design:type",String)],Ik.prototype,"alt",void 0);_.a([_.b(),_.z("design:type",Boolean)],Ik.prototype,"ftlEligible",void 0);_.a([_.b(),_.z("design:type",Number)],Ik.prototype,"height",void 0);_.a([_.b(),_.z("design:type",Boolean)],Ik.prototype,"notifyOnLoaded",void 0);
_.a([_.b(),_.z("design:type",Boolean)],Ik.prototype,"notifyOnUnloaded",void 0);_.a([_.b(),_.z("design:type",String)],Ik.prototype,"objectFit",void 0);_.a([_.b(),_.z("design:type",String)],Ik.prototype,"objectPosition",void 0);_.a([_.b(),_.z("design:type",String)],Ik.prototype,"preferredThumbnail",void 0);_.a([_.b(),_.z("design:type",Boolean)],Ik.prototype,"preserveHeight",void 0);_.a([_.b(),_.z("design:type",Boolean)],Ik.prototype,"preserveWidth",void 0);
_.a([_.b({value:!0}),_.z("design:type",Boolean)],Ik.prototype,"useWidth",void 0);_.a([_.b({value:function(){return!_.ZL("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.z("design:type",Boolean)],Ik.prototype,"shouldRenderLazy",void 0);_.a([_.b(),_.z("design:type",Number)],Ik.prototype,"width",void 0);_.a([_.Vq({is:"yt-image",disableElementRegistration:!0})],Ik);
_.Z(Ik,"yt-image",function(){if(Dfk===void 0){var W=document.createElement("template");_.K(W,"\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");W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(J3Z().content.cloneNode(!0),W.content.firstChild);
Dfk=W}W=Dfk;return W},{mode:2});var iH=function(){return _.I.apply(this,arguments)||this};
_.v(iH,_.I);iH.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var W=_.fP(this.data.onVisibleCommand);W&&this.ytComponentBehavior.resolveCommand(W)}};
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],iH.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.HL.YtVisibilityBehavior),_.z("design:type",Object)],iH.prototype,"ytVisibilityBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],iH.prototype,"data",void 0);_.a([_.Vq({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],iH);
_.Z(iH,"yt-bumper-user-edu-content-view-model",function(){if(uFc===void 0){var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;UOZ===void 0&&(UOZ=document.createElement("template"));var f=UOZ;V.call(l,f.content.cloneNode(!0),W.content.firstChild);uFc=W}W=uFc;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var uQ9;var knL,v4B=function(){if(knL!==void 0)return knL;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;uQ9===void 0&&(uQ9=document.createElement("template"));var f=uQ9;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return knL=W};var HQM;_.mB={};HQM=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"]);_.mB.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var W=this.getContext_();return W?W.getTaskManager():_.w8},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var W=_.FN(this.hostElement,"yt-get-context-provider",{});W.detail&&W.detail.contextProvider?this.cachedProviderNode_=W.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return HQM.has(this.hostElement.localName)},
getNetworkManager:function(){var W=this.getContext_();if(W)return W.getNetworkManager()}};var dEz,K5L,GnM,F5Z;_.XE=function(W){var l=K5L.get(W);if(l&&(l=l.pop()))return F5Z++,l;GnM++;try{var V=document.createElement(W)}catch(f){throw new _.bP("ElementPool failed to create element",W,f.message);}return V};
dEz=function(W){var l=W.is;if(l){var V=K5L.get(l);V||(V=[],K5L.set(l,V));var f=_.M4("ELEMENT_POOL_CONFIG")||{};V.length>=(f[l]!==void 0?f[l]:_.M4("ELEMENT_POOL_DEFAULT_CAP",0))||V.push(W)}else _.Qe(new _.bP("Element pool should only handle custom elements:",W.nodeName))};
K5L=new Map;GnM=0;F5Z=0;var j1=new WeakMap,BXq=new WeakMap;var pCa;_.Tv=function(W,l,V){V=V===void 0?_.Am():V;this.JSC$13813_defaultPriority=W;this.signal=l;this.scheduler=V;this.nextJobDescriptor=0;this.JSC$13813_parkedJobs=[];this.scheduledJobs=new Map};
_.wY=function(W,l){if(l){var V=_.DI();W.signal&&!_.U7(V,W.signal)?(V.addListener(W.signal,function(){W.processSignal()}),W.JSC$13813_parkedJobs.push({job:l,
priority:void 0})):bQ1(W,l)}};
pCa=function(W,l){if(l!==W.JSC$13813_defaultPriority){W.JSC$13813_defaultPriority=l;for(var V=_.L(W.scheduledJobs.values()),f=V.next();!f.done;f=V.next())f=f.value,W.scheduler.cancelJob(f.jobId),f.jobId=W.scheduler.addJob(f.jobWrapper,l)}};
_.Tv.prototype.flushJobs=function(){pCa(this,10);this.processSignal()};
_.Tv.prototype.cancel=function(){for(var W=_.L(this.scheduledJobs),l=W.next();!l.done;l=W.next()){var V=_.L(l.value);l=V.next().value;V=V.next().value;this.scheduler.cancelJob(V.jobId);this.scheduledJobs.delete(l)}this.JSC$13813_parkedJobs=[]};
_.Tv.prototype.processSignal=function(){for(var W=_.L(this.JSC$13813_parkedJobs),l=W.next();!l.done;l=W.next())l=l.value,bQ1(this,l.job,l.priority);this.JSC$13813_parkedJobs=[]};
var bQ1=function(W,l,V){V=V||W.JSC$13813_defaultPriority;if(V===10)bp(l);else{var f=W.nextJobDescriptor++,r=function(){l();W.scheduledJobs.delete(f)},R=W.scheduler.addJob(r,V);
W.scheduledJobs.set(f,{jobWrapper:r,jobId:R,priority:V})}};oGz({beforeVisit:function(W){if(_.Kk.has(W.type)){var l;(l=W.props).idomKey!=null||(l.idomKey=W.type)}else W.type.TAG_NAME&&(_.vI=W.type.TAG_NAME)},
afterRender:function(W,l){var V;_.vI=(V=l==null?void 0:l.type)!=null?V:""},
didPatch:function(){_.vI=""}});var o4k;_.Ap={};o4k={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.Ap.YtRendererstamperBehavior=[_.mB.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 W in this.stampDom){var l=this.stampDom[W];l&&l.id&&this.addReactiveSchema({type:"observe",method:{methodName:nbF(l.id),args:[{type:"wildcard",path:W}]}})}else{(W=(this.constructor.generatedFrom||this).observers)||(W=[]);for(l in this.stampDom){var V=this.stampDom[l];V&&V.id&&W.push(nbF(V.id)+"("+l+".*)")}this.constructor.generatedFrom.observers=W}},
addStampDomObserverFns_:function(){for(var W in this.stampDom){var l=this.stampDom[W];l.id?(this[nbF(l.id)]=this.rendererStamperObserver_.bind(this,W,l.id),this.hasDataPath_[W]=!1):(l=new _.bP("Bad rendererstamper config",this.is+":"+W),_.wv(l))}},
rendererStamperObserver_:function(W,l,V){if(V.path==W){if(V.value===void 0&&!this.hasDataPath_[W])return;this.hasDataPath_[W]=V.value!==void 0}this.rendererStamperApplyChangeRecord_(W,l,V)},
rendererStamperApplyChangeRecord_:function(W,l,V){var f=this.renderJobsMap_[l],r=null;W==V.path?(V=V.value,_.Ng(V)||(V=V===void 0||V===null?[]:[V]),W=this.stampDom[W],W.mapping&&(r=this.stampDomArray_.bind(this,V,l,W.mapping,W.reuseComponents,W.events,W.stamperStableList)),f&&f.cancel(),V=W.usePageScheduler?this.getTaskManager():void 0,f||W.initialRenderPriority==void 0)?W.renderPriority==void 0||f||(f=new _.Tv(W.renderPriority,W.waitForSignal,V),this.renderJobsMap_[l]=f):(f=new _.Tv(W.initialRenderPriority,
W.waitForSignal,V),this.renderJobsMap_[l]=f,r=function(R,y){R();pCa(y,10)}.bind(this,r,f)):r=W+".splices"==V.path?this.stampDomArraySplices_.bind(this,W,l,V.value):this.forwardRendererStamperChanges_.bind(this,W,l,V);
f?_.wY(f,r):r()},
forwardRendererStamperChanges_:function(W,l,V){var f=V.path.slice(W.length+1),r=this.getStampContainer_(l),R=f.indexOf("."),y=f.substring(0,R),P=!1,n=0,B=parseInt(y,0);if(y[0]=="#"){P=parseInt(y.substring(1),0);B=this.get(W);var d=this.get([W,y]);B[P]==d?n=P:n=B.indexOf(d);P=!0}else isNaN(B)||(n=B,P=!0);P&&(f=f.substring(y.length+1),R=f.indexOf("."));y=_.YG(r).children[n];var J;if(r=(J=y==null?void 0:y.polymerController)!=null?J:y)f="data"+f.slice(R),typeof r.notifyPath!=="function"?_.Qe(new _.bP("notifyPath missing",
this.is+": "+W+", "+l)):V.value?r.notifyPath(f,V.value):r.notifyPath(f)},
stampDomArraySplices_:function(W,l,V){if(V&&V.indexSplices){var f=this.getStampContainer_(l);if(f){for(var r=_.YG(f),R=cXY(this.stampDom[W].reuseComponents),y=V.indexSplices.length,P=0;P<y;P++){for(var n=V.indexSplices[P],B=r.children[n.index],d=n.removed.length;d>0;d--)B&&B.parentElement&&(_.YG(B.parentElement).removeChild(B),R&&dEz(B),B=r.children[n.index]);d=this.stampDom[W].mapping;for(var J=n.index+n.addedCount,D=document.createDocumentFragment(),u=R,H=n.index;H<J;H++){var p=n.object[H],X=P8z(d,
p);if(X){var w=d[X];p=p[X];X=this.getComponentName_(w,p);var O=B?j1.has(B):!1;u&&B&&B.is==X&&O?(X=B,this.telemetry_.reuse++,B=B.nextElementSibling):u&&B&&O?(X=this.createComponent_(w,p,R),O=_.YG(B).nextElementSibling,r.insertBefore(X,O),DEF(this.is,r,B,R),B=O):(u=!1,X=this.createComponent_(w,p,R),D.appendChild(X));this.deferRenderStamperBinding_(X,w,p)}else w=new _.bP("Unimplemented type",W,l,f.tagName,Object.keys(p)[0]),_.wv(w)}r.insertBefore(D,B)}this.flushRenderStamperComponentBindings_();this.stampDom[W].events&&
_.FN(this.hostElement,"yt-rendererstamper-finished",{container:f})}else W=new _.bP("Container object not found",l,this.hostElement?this.hostElement.is:""),_.wv(W)}},
stampDomArray_:function(W,l,V,f,r,R){var y=this.getStampContainer_(l);if(y)if(l=_.YG(y),f=cXY(f),W){var P=0,n=0,B;if(R=R===void 0?_.ZL("STAMPER_STABLE_LIST",!1):R||!1)for(B=l.firstElementChild;B&&!j1.has(B)&&W.length>n;){R=W[n];var d=P8z(V,R);if(d){if(this.getComponentName_(V[d],R[d])!=B.is){var J=this.createComponent_(V[d],R[d],f),D=_.YG(B).nextElementSibling;D?l.insertBefore(J,D):l.appendChild(J);DEF(this.is,l,B,f);B=J}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(B,V[d],R[d]);P++;
n++;B=_.YG(B).nextElementSibling}else n++}UEz(this.is,l,P,f);P=B;if(W.length>n){R=document.createDocumentFragment();for(d=W.length;n<d;n++)if(J=W[n],D=P8z(V,J))B=this.createComponent_(V[D],J[D],f),this.deferRenderStamperBinding_(B,V[D],J[D]),R.appendChild(B);P&&_.YG(P).parentNode&&B&&!j1.has(B)?l.insertBefore(R,P):l.appendChild(R)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();r&&_.FN(this.hostElement,"yt-rendererstamper-finished",{container:y})}else UEz(this.is,l,0,
f);else W=new _.bP("Container object not found",l,this.hostElement?this.hostElement.is:""),_.wv(W)},
getStampContainer_:function(W){return this.$&&this.$[W]||_.GS(this.hostElement).querySelector("#"+W)},
getComponentName_:function(W,l){return typeof W==="string"?W:W.matcher?W.matcher.call(this,l):W.component},
createComponent_:function(W,l,V){W=this.getComponentName_(W,l);try{var f=FY.has(W)||_.Kk.has(W);if(V&&!f){var r=_.XE(W);try{_.I1(r)}catch(R){V="Failed to clear styles for "+W+".",R.message&&(V+=" Original error: "+R.message),_.Qe(new _.bP(V))}}else r=document.createElement(W)}catch(R){return r="YtRendererStamperBehavior failed to create "+W+".",R.message&&(r+=" Original description: "+R.message),R.message="YtRendererStamperBehavior failed to create element",_.MJ(R,r),o4k.hasOwnProperty(W)?_.Qe(R):
_.wv(R),document.createElement("SPAN")}this.telemetry_.create++;return r},
deferRenderStamperBinding_:function(W,l,V){this.deferredBindingTasks_.push({component:W,typeOrConfig:l,data:V})},
flushRenderStamperComponentBindings_:function(){for(var W=0,l=this.deferredBindingTasks_.length;W<l;W++){var V=this.deferredBindingTasks_[W];if(!V)break;var f=void 0,r=void 0,R=void 0,y=void 0,P=V.component,n=V.typeOrConfig;V=V.data;var B=(y=P.polymerController)!=null?y:P;y=P.loggingStatus;try{y&&(y.isRendererStamper=!0);if(typeof n!=="string"){for(R in n.attributes)n.attributes[R]===!0?P.setAttribute(R,""):n.attributes[R]===!1?P.removeAttribute(R):P.setAttribute(R,n.attributes[R]);for(r in n.params)B[r]=
n.params[r],P!==B&&x7(P.localName,r,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(f in n.properties){var d=n.properties[f];if(d){var J=C86(d);B[f]=this.get(J);P!==B&&x7(P.localName,f,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(f==="on-tap"||f==="on-click"){var D=this.get(J);P.addEventListener("click",D);BXq.set(P,{property:f,listener:{type:"element",eventName:"click",handler:D}})}}else{var u=new _.bP("Undefined property binding",f);_.wv(u)}}}if(n.classListBinding){var H=C86(n.classListBinding),
p=H?this[H]:null;if(p)for(f=0;f<p.length;f++)_.pG(P,p[f],!0)}B.data=V}finally{y&&(y.isRendererStamper=!1)}if(f=j1.get(P))P.hidden=!1,j1.delete(P),_.w8.cancelJob(f)}this.deferredBindingTasks_.length=0}}];_.HI(_.Q(function(W){function l(){V().seconds&&R(tXv({seconds:Number(V().seconds)-Date.now()/1E3}))}
var V=W.targetTimestamp;W=W.className;var f=_.L(_.J4("",void 0,"TM9kjd")),r=f.next().value,R=f.next().value;_.iz(function(){l();var y=setInterval(function(){l()},1E3);
_.Xc(function(){clearInterval(y)})});
return _.C("yt-countdown",{class:_.If("ytCountDownHost",W)},_.C("div",null,r))},"i"),"yt-countdown",{props:{targetTimestamp:_.pA,
className:_.kh}});_.Q5=new _.vd("KEY_MANAGER_TOKEN");var uhn={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"};_.Mq=_.Q(function(W){var l=_.WS("a",W.ref),V=W.aTagConfig?W.aTagConfig:_.v4(function(){var f,r,R,y,P;var n=(P=_.fP((R=W.command)==null?void 0:R.call(W)))!=null?P:(y=W.command)==null?void 0:y.call(W);return _.Rf({innertubeCommand:n,skipOnClick:(f=W.skipOnClick)==null?void 0:f.call(W),defaultTarget:(r=W.target)==null?void 0:r.call(W)})||{}},void 0,"gnrRge");
_.m1(function(){l.value._data=V()._data;l.value.params=V().params},"t2c7fe");
return _.C("a",{el:l,href:function(){return V().href$},
rel:function(){return V().rel$},
class:function(){var f,r;return(r=V().className)!=null?r:(f=W.className)==null?void 0:f.call(W)},
style:function(){var f;if((f=W.style)==null?0:f.call(W))return W.style();var r;return((r=W.disabled)==null?0:r.call(W))?"pointer-events:none":""},
"aria-haspopup":function(){return!!V()["aria-haspopup$"]},
"force-new-state":mr(function(){return V()["force-new-state$"]}),
title:mr(function(){var f,r;return(r=V().title$)!=null?r:(f=W.title)==null?void 0:f.call(W)}),
role:mr(function(){var f;return((f=W.role)==null?void 0:f.call(W))||V().role$}),
target:mr(function(){return V().target$}),
dir:mr(function(){var f;return((f=W.dir)==null?void 0:f.call(W))||V().dir}),
tabindex:function(){var f;return V().tabindex$?Number(V().tabindex$):(f=W.tabIndex)==null?void 0:f.call(W)},
"aria-hidden":function(){var f,r;return(r=V()["aria-hidden$"])!=null?r:(f=W.ariaHidden)==null?void 0:f.call(W)},
"aria-label":function(){var f,r;return(r=V()["aria-label$"])!=null?r:(f=W.ariaLabel)==null?void 0:f.call(W)},
"aria-current":W.ariaCurrent,"aria-disabled":W.disabled,"aria-labelledby":W.ariaLabelledby,"aria-describedby":W.ariaDescribedby,"aria-selected":W.ariaSelected,"tab-identifier":W.tabIdentifier,"on:pointerdown":_.ip(function(f){var r,R;return void((R=(r=V()).onpointerdown)==null?void 0:R.call(r,f))}),
"on:click":_.ip(function(f){var r,R;(R=(r=V()).onclick)==null||R.call(r,f);var y;(y=W.onClick)==null||y.call(W,f)}),
"on:focusin":_.ip(function(f){var r;(r=W.onFocusin)==null||r.call(W,f)}),
"on:focusout":_.ip(function(f){var r;(r=W.onFocusout)==null||r.call(W,f)})},W.children)},"j");var p6J={duration:1E3,easing:"ease",fill:"forwards"};bgg.componentType=_.oi;var IDn={duration:1E3,easing:"ease",fill:"forwards"},iQc=_.Q(function(W){var l=_.WS("animated-rolling-character"),V=void 0,f=function(){var r,R;return Jg((r=W.character)==null?void 0:r.call(W))||Jg((R=W.previousCharacter)==null?void 0:R.call(W))};
_.m1(function(){if(W.marginMultiplier()){var r;(r=V)==null||r.cancel();if(f()){var R;r=((R=W.previousCharacter)==null?0:R.call(W))?Number(W.previousCharacter())+10:W.rollUp()?0:30;var y;if((y=W.shouldAnimate)==null||!y.call(W)){var P,n;r-=jy6((P=W.character)==null?void 0:P.call(W),(n=W.previousCharacter)==null?void 0:n.call(W),W.rollUp(),r)}}else{r=W.rollUp()?0:2;var B;(B=W.shouldAnimate)!=null&&B.call(W)||(R=r,y=W.rollUp()?-1:1,r=R-y)}l.value.style.marginTop="-"+r*W.marginMultiplier()+"px";var d;
if((d=W.shouldAnimate)==null?0:d.call(W)){var J,D;V=igq(l.value,(J=W.character)==null?void 0:J.call(W),(D=W.previousCharacter)==null?void 0:D.call(W),W.rollUp(),r,f(),W.marginMultiplier())}else{var u;l.value.style.display=((u=W.character)==null?0:u.call(W))?"":"none"}}},"EgLkAe");
return _.C("animated-rolling-character",{el:l,class:"animatedRollingCharacterHost"},_.C(_.c,{cond:f,then:function(){return _.C(j51,null)},
else:function(){return _.C(IfL,{character:W.character})}}))},"k");
iQc.idomCompat=!0;var mEz=_.U("web_enable_sink_animated_rolling_character_and_number")?iQc:bgg,mfk=_.U("web_enable_sink_animated_rolling_character_and_number")?iQc:obF(bgg),j51=_.Q(function(){for(var W=[],l=1;l<30;l++)W.push(_.C("div",null,l%10));return _.C(_.Lp,null,_.C("div",null,"\u00a0"),W,_.C("div",null,"\u00a0"))},"l"),IfL=_.Q(function(W){var l=W.character;
return _.C(_.Lp,null,_.C("div",null,"\u00a0"),_.C(_.c,{cond:function(){return!(l==null?0:l())||_.gS(l==null?void 0:l())},
then:function(){return _.C("div",null,"\u00a0")},
else:function(){return _.C("div",null,l)}}),_.C("div",null,"\u00a0"))},"m");X6J.componentType=_.oi;var XCk=_.Q(function(W){var l=void 0,V=void 0,f=function(){var R;return((R=W.fontSizeMultiplier)==null?0:R.call(W))?W.heightPx()*W.fontSizeMultiplier():W.heightPx()},r=_.v4(function(){if(!W.numberText())return[];
var R,y,P=((R=W.forceRollUp)==null?void 0:R.call(W))||!V||!((y=W.numberValue)==null?0:y.call(W))||V<W.numberValue(),n,B=W.numberText();R=f();y=!((n=W.shouldAnimate)==null||!n.call(W));n=[];var d=0,J=0,D=(l?l.replace(/\D/g,"").length:0)-(B?B.replace(/\D/g,"").length:0),u=l?l.split(/(\d)/).filter(Boolean):[];for(B=B.split(/(\d)/).filter(Boolean);D<0;){var H=B[J];n.push({character:H,rollUp:P,marginMultiplier:R,shouldAnimate:y});J++;Jg(H)&&D++}for(;d<D;)H=u[d],n.push({previousCharacter:H,rollUp:P,marginMultiplier:R,
shouldAnimate:y}),d++,Jg(H)||D++;for(;J<B.length;)D=B[J],H=u[d],Jg(D)===Jg(H)?(J++,d++):Jg(D)?(d++,D=void 0):Jg(H)&&(J++,H=void 0),n.push({character:D,previousCharacter:H,rollUp:P,marginMultiplier:R,shouldAnimate:y});l=W.numberText();var p;V=(p=W.numberValue)==null?void 0:p.call(W);return n},void 0,"kWiBv");
return _.C("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return W.numberText()?["height: "+f()+"px;","line-height: "+W.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.C(_.G3,{each:r,keyBy:"INDEX"},function(R){return _.C(mfk,{character:function(){return R().character},
previousCharacter:function(){return R().previousCharacter},
marginMultiplier:function(){return R().marginMultiplier},
rollUp:function(){return R().rollUp},
shouldAnimate:function(){return R().shouldAnimate}})}))},"n");
XCk.idomCompat=!0;_.Tb1=_.U("web_enable_sink_animated_rolling_character_and_number")?XCk:X6J;_.wCZ=_.U("web_enable_sink_animated_rolling_character_and_number")?XCk:obF(X6J);var A3v=function(W,l){this.fillAnimation=new Animation(TXJ(W),document.timeline);this.strokeAnimation=new Animation(w6q(l),document.timeline)};
A3v.prototype.play=function(){var W,l;(l=(W=this.fillAnimation).play)==null||l.call(W);var V,f;(f=(V=this.strokeAnimation).play)==null||f.call(V)};
A3v.prototype.cancel=function(){var W,l;(l=(W=this.fillAnimation).cancel)==null||l.call(W);var V,f;(f=(V=this.strokeAnimation).cancel)==null||f.call(V)};_.ZS=_.Q(function(W){var l=W.model;var V=W.pointerDownEvent;var f=W.pointerUpEvent;var r=W.pointerLeaveEvent;W=_.WS("div");var R=_.Tm({"border-radius":function(){return l().borderRadius}}),y=_.WS("div"),P=_.WS("div"),n=_.L(_.X3(function(){return(f==null?0:f())||(r==null?0:r())?!1:!(V==null||!V())||!1})),B=n.next().value,d=n.next().value,J=void 0,D=function(){!J&&P.value&&y.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(J=new A3v(P.value,y.value));
var O;(O=J)==null||O.play()},u=function(){var O;
(O=J)==null||O.cancel()},H=function(){var O;
(O=J)==null||O.cancel()};
_.m1(function(){(f==null?0:f())&&D()},"T3bfE");
_.m1(function(){(V==null?0:V())&&u()},"C4C6ld");
_.m1(function(){(r==null?0:r())&&H()},"xSCnVb");
n=_.ip(function(){D();d(!1)});
var p=_.ip(function(){u();d(!0)}),X=_.ip(function(){H();
d(!1)});
_.Xc(function(){if(J){var O;(O=J)==null||O.cancel();J=void 0}});
var w={};B=_.If("yt-spec-touch-feedback-shape",function(){return AXF(l().color)},(w["yt-spec-touch-feedback-shape--focused"]=function(){return!!l().focused&&!l().disabled},w["yt-spec-touch-feedback-shape--circular"]=function(){return!!l().circular},w["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!l().isExtended},w["yt-spec-touch-feedback-shape--down"]=B,w["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!l().triggerEvents},w));
return _.C("yt-touch-feedback-shape",{style:_.Tm({"border-radius":"inherit"})},_.C("div",{el:W,class:B,style:_.Tm({"margin-top":function(){return l().customTopExtend?"-"+l().customTopExtend+"px":void 0}}),
"on:mousedown":p,"on:mouseup":n,"on:pointerleave":X,"on:touchstart":p,"on:touchend":n,"aria-hidden":!0},_.C("div",{class:"yt-spec-touch-feedback-shape__stroke",style:R,el:y}),_.C("div",{class:"yt-spec-touch-feedback-shape__fill",style:R,el:P})))},"o");
_.ZS.idomCompat=!0;var Q5L={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 Oq=_.Uz();Oq=Oq.toLowerCase();if(_.P8(Oq,"android")){var M8M=Oq.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);M8M&&parseFloat(M8M[1])<100||Oq.match("("+Object.keys(Q5L).join("|")+")")};var ZQe=_.Q(function(W){return _.C(_.c,{cond:W.aTagConfig,then:function(l){return _.C(_.Mq,{aTagConfig:l,disabled:W.disabled,className:W.className,style:W.style,title:W.title,ariaLabel:W.ariaLabel,ariaCurrent:function(){var V,f;return((V=W.toggleable)==null?void 0:V.call(W))&&((f=W.toggled)==null?void 0:f.call(W))},
ref:W.ref},W.children)},
else:function(){return _.C("button",{el:_.DN(W.ref),"on:click":_.ip(function(l){var V;return(V=W.onClick)==null?void 0:V.call(W,l)}),
class:W.className,title:W.title,style:W.style,disabled:W.disabled,"aria-pressed":function(){var l,V;return((l=W.toggleable)==null?0:l.call(W))?!((V=W.toggled)==null||!V.call(W)):void 0},
"aria-label":W.ariaLabel,"aria-disabled":W.visiblyDisabled,"aria-hidden":W.ariaHidden,tabindex:W.tabIndex},W.children)}})},"p"),afe=_.Q(function(W){var l=W.data;
var V=W.hasIconLeading;var f=W.hasIconLeadingTrailing;var r=W.hasIconTrailing;var R=W.iconButton;var y=W.iconClassName;var P=W.secondaryIconClassName;var n=W.icon;var B=W.secondaryIcon;var d=W.textContentClassName;return _.C(ak,{className:"",style:"display: inherit; justify-content: center"},_.C(_.c,{debugInstance:"V4z1Uc",cond:function(){return n&&(V()||f()||(R==null?void 0:R()))},
then:function(){return _.C(ak,null,_.C("div",{class:y,"aria-hidden":"true"},n==null?void 0:n()))}}),_.C(_.c,{debugInstance:"ok3btb",
cond:function(){return(l().buttonText||l().animatedTextProps||l().formattedButtonText)&&!(R==null?0:R())},
then:function(){return _.C(ak,null,_.C(OQX,{className:d,iconPosition:function(){return l().iconPosition},
text:function(){return l().buttonText},
oneOffCustomTextWrap:function(){return l().oneOffCustomTextWrap},
formattedButtonText:function(){return l().formattedButtonText},
animatedTextProps:function(){return l().animatedTextProps}}))}}),_.C(_.c,{debugInstance:"DO5Rz",
cond:r,then:function(){return _.C(ak,null,_.C("div",{class:y},n==null?void 0:n()))}}),_.C(_.c,{debugInstance:"bnojSc",
cond:f,then:function(){return _.C(ak,null,_.C("div",{class:P},B==null?void 0:B()))}}),_.C(_.c,{debugInstance:"HN3kad",
cond:function(){return!l().disabled&&!0},
then:function(){return _.C(_.ZS,{model:function(){var J=l();return{color:J.style==="overlay-dark"?4:J.style==="overlay"?J.type==="filled"?4:3:J.type==="filled"||J.style==="call-to-action-inverse"||J.style==="mono-inverse"?2:1}}})}}))},"q"),OQX=_.Q(function(W){var l=function(){var V,f;
return((V=W.iconPosition)==null?void 0:V.call(W))==="icon-with-label"||((f=W.oneOffCustomTextWrap)==null?void 0:f.call(W))};
return _.C("div",{class:W.className,"aria-hidden":function(){var V,f,r;return((V=W.ariaHidden)==null?void 0:V.call(W))&&(!((f=W.animatedTextProps)==null||!f.call(W))||!((r=W.formattedButtonText)==null||!r.call(W)))}},_.C(_.oh,null,_.C(_.bz,{when:function(){var V;
return(V=W.animatedTextProps)==null?void 0:V.call(W)}},function(){return _.C(_.wCZ,{numberText:function(){return W.animatedTextProps().numberText},
numberValue:function(){return W.animatedTextProps().numberValue},
heightPx:function(){return W.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return W.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return W.animatedTextProps().shouldAnimate},
forceRollUp:function(){return W.animatedTextProps().forceRollUp}})}),_.C(_.bz,{when:function(){var V;
return(V=W.formattedButtonText)==null?void 0:V.call(W)}},function(){return _.C(_.bH,{text:function(){return Object.assign({},W.formattedButtonText(),{lineBreakMode:l()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":W.formattedButtonText().lineBreakMode,
alignment:l()?"TEXT_ALIGNMENT_CENTER":W.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!l()}})}),_.C(_.bz,{when:function(){var V,f;
return((V=W.iconPosition)==null?void 0:V.call(W))==="icon-with-label"&&((f=W.text)==null?void 0:f.call(W))}},function(){return _.C(_.bH,{text:function(){return{content:W.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.C(_.pp,null,function(){return W.text})))},"r"),z3e=_.Q(function(W){return _.C(_.c,{debugInstance:"kM7Sgc",
cond:W.hasLabel,then:function(){var l;return _.C("label",{class:W.className},W.children,(l=W.textContent)==null?void 0:l.call(W))},
else:function(){return W.children}})},"s"),ak=_.Q(function(W){return W.children},"t");var Nba=_.Q(function(W){var l=_.DN(),V=_.L(_.J4(void 0,void 0,"Z7xOte")),f=V.next().value,r=V.next().value;V=_.L(_.J4(void 0,void 0,"ppqp2e"));var R=V.next().value,y=V.next().value;V=_.L(_.J4(0,void 0,"bD1Mhe"));var P=V.next().value,n=V.next().value;V=_.ip(function(){switch(P()){case 1:n(2);break;case 3:var d,J;(J=(d=l.value).hidePopover)==null||J.call(d);n(0);r(void 0);y(void 0)}});
_.m1(function(){if(W.show()){var d;r((d=W.children)==null?void 0:d.call(W));var J;y((J=W.location)==null?void 0:J.call(W));switch(P()){case 0:var D,u;(u=(D=l.value).showPopover)==null||u.call(D);n(1);break;case 3:n(1);var H,p;(p=(H=l.value).hidePopover)==null||p.call(H);var X,w;(w=(X=l.value).showPopover)==null||w.call(X)}}else switch(P()){case 2:n(3);break;case 1:var O,S;(S=(O=l.value).hidePopover)==null||S.call(O);r(void 0);y(void 0);n(0)}},"vFJRcd");
_.mw(function(){});
var B={};return _.C("yt-popover",{popover:"manual",el:l,style:_.Tm({left:function(){var d;return(d=R())==null?void 0:d.left},
top:function(){var d;return(d=R())==null?void 0:d.top},
bottom:function(){var d;return(d=R())==null?void 0:d.bottom},
right:function(){var d;return(d=R())==null?void 0:d.right}}),
class:_.If("ytPopoverComponentHost",W.classNames,(B.ytPopoverComponentHostClosing=function(){return P()===3},B.ytPopoverComponentHostSeeThrough=function(){var d;
return((d=W.seeThrough)==null?void 0:d.call(W))===!0},B)),
"on:animationend":V},f)},"u");var YaL={left:"0px",right:"auto",top:"0px",bottom:"auto"},xfk=function(){var W=this;this.registerTooltipElement=function(V){var f;W.tooltipElement=(f=V.querySelector("yt-popover"))!=null?f:void 0};
var l=_.L(_.J4(void 0,void 0,"z4iHWd"));this.state=l.next().value;this.setState=l.next().value;l=_.L(_.J4(void 0,void 0,"uKDcaf"));this.schedulerJobID=l.next().value;this.setSchedulerJobID=l.next().value},xEz=function(W,l){var V=QY,f=_.w8.addJob(function(){var r=e3L(V,W,l);
V.setState({text:l.text,location:r,anchor:W,offset:l.offset})},4,l.delay);
V.setSchedulerJobID(f)},e0Y=function(){var W=QY,l=W.schedulerJobID();
l&&(_.w8.cancelJob(l),W.setSchedulerJobID(void 0));W.setState(void 0)};
xfk.prototype.notify=function(W,l){var V;((V=this.state())==null?void 0:V.anchor)===W&&(V=e3L(this,W,l),this.setState({text:l.text,location:V,anchor:W,offset:l.offset}))};
var e3L=function(W,l,V){var f=l.getBoundingClientRect();l=window.innerWidth;var r=window.innerHeight,R=V.location,y=V.offset;V=V.text;if(W=W.tooltipElement){var P=getComputedStyle(W);W=P.font;var n=A2(P.lineHeight),B=A2(P.paddingLeft),d=A2(P.paddingRight),J=A2(P.paddingTop);P=A2(P.paddingBottom);var D=document.createElement("canvas").getContext("2d");D.font=W;V={width:D.measureText(V).width+B+d,height:n+J+P}}else V=void 0;W=V;if(!W)return YaL;V=W.width;W=W.height;B=y+W;J=y+V;n=f.top>=B;B=r-f.bottom>=
B;d=f.left>=J;J=l-f.right>=J;P=R;switch(R){case "top":!n&&B&&(P="bottom");break;case "bottom":!B&&n&&(P="top");break;case "left":!d&&J&&(P="right");break;case "right":!J&&d&&(P="left")}switch(P){case "top":R=f.left+f.width/2-V/2;f=f.top-W-y;break;case "bottom":R=f.left+f.width/2-V/2;f=f.bottom+y;break;case "left":R=f.left-V-y;f=f.top+f.height/2-W/2;break;case "right":R=f.right+y;f=f.top+f.height/2-W/2;break;default:R=f.left+f.width/2-V/2,f=f.bottom+y}y=Object.assign({},YaL);R+V>l?(y.right="0px",y.left=
"auto"):(y.left=Math.round(Math.max(0,R)+window.scrollX)+"px",y.right="auto");f+W>r?(y.bottom="0px",y.top="auto"):(y.top=Math.round(Math.max(0,f)+window.scrollY)+"px",y.bottom="auto");return y};var QY;QY=new xfk;_.qaL=_.Q(function(){var W=_.v4(function(){var V;return(V=QY.state())==null?void 0:V.text},void 0,"jgLmfd"),l=_.v4(function(){var V;
return(V=QY.state())==null?void 0:V.location},void 0,"zV1Udb");
return _.C("yt-tooltip",{class:"ytTooltipContainerHost",el:_.DN(QY.registerTooltipElement),"aria-hidden":"true"},_.C(Nba,{classNames:"ytTooltipContainerContent",location:l,show:function(){return!!W()},
seeThrough:!0},W))},"v");var Hhz=sR("stamper-context");_.zv=_.Q(function(W){var l=W.data;var V=W.icon;var f=W.iconName;var r=W.animateIcon;var R=W.secondaryIcon;var y=W.secondaryIconName;var P=W.focusedOverride;var n=W.clientOnlyWizTooltipsEnabled;h08();var B=Qyv(l),d=B.size,J=B.style;W=B.disabled;var D=B.onTap,u=B.alignByText,H=B.aTagConfig,p=B.customColors,X=B.segmentedPosition,w=B.toggled,O=B.toggleable,S=B.accessibilityLabel,N=B.onToggle,x=B.iconPosition,Y=B.oneOffCustomTextWrap,W8=B.disableTextEllipsis,c8=B.disableBackdropFilter,B8=B.tooltipText,
Jx=B.ariaHidden,H8=B.tabIndex,Kq=B.buttonText,Z4=B.formattedButtonText,Ax=B.animatedTextProps,sM=aDv(l,V,R,f,y,P,r),Ta=sM.type;V=sM.shouldFocus;f=sM.hasIconLeading;r=sM.hasIconTrailing;var ck=sM.hasIconLeadingTrailing,Wk=sM.hasIconOnly;R=sM.hasIconOnly40;var D$=sM.hasIconWithLabel;y=sM.iconButton;var Bk=sM.visiblyDisabled;P=sM.overrideSmallSizeIcon;B=sM.iconToRender;sM=sM.secondaryIconToRender;var iB=_.L(qAq(B8)).next().value,p2={},SL={};return _.C(z3e,{className:_.If("yt-spec-button-shape-with-label",
(p2["yt-spec-button-shape-with-label--is-overlay"]=function(){return J()==="overlay"||J()==="overlay-dark"},p2)),
hasLabel:D$,textContent:function(){return _.C(OQX,{text:Kq,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:Y,iconPosition:x,formattedButtonText:Z4,animatedTextProps:Ax})}},_.C(ZQe,{aTagConfig:H,
className:_.If("yt-spec-button-shape-next",function(){return z0g(Ta())},function(){return Bk()?void 0:NXn(J())},function(){return YA4(d())},(SL["yt-spec-button-shape-next--disabled"]=Bk,SL["yt-spec-button-shape-next--focused"]=V,SL["yt-spec-button-shape-next--icon-trailing"]=r,SL["yt-spec-button-shape-next--icon-leading"]=f,SL["yt-spec-button-shape-next--icon-leading-trailing"]=ck,SL["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return ck()&&!(Kq()||Z4())},SL["yt-spec-button-shape-next--icon-button"]=
function(){return Wk()||D$()},SL["yt-spec-button-shape-next--icon-only-default"]=R,SL["yt-spec-button-shape-next--align-by-text"]=u,SL["yt-spec-button-shape-next--segmented-start"]=function(){return X()==="start"},SL["yt-spec-button-shape-next--segmented-end"]=function(){return X()==="end"},SL["yt-spec-button-shape-next--override-small-size-icon"]=P,SL["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=Y,SL["yt-spec-button-shape-next--disable-text-ellipsis"]=W8,SL["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!c8()&&!_.U("web_disable_backdrop_filter")},SL)),
style:function(){var RY=p();if(RY){var lB=RY.color;var kc=RY.backgroundColor;RY=RY.borderColor;var n2="";lB&&(n2+="color: "+lB+";");kc&&(n2+="background-color: "+kc+";");RY&&(n2+="border-color: "+RY+";");lB={style:n2}}else lB={};return lB.style},
onClick:function(RY){D==null||D(RY);O()&&(N==null||N(RY))},
disabled:W,ariaLabel:S,toggleable:O,toggled:w,title:function(){return(n==null?0:n())||!B8()?"":B8()},
visiblyDisabled:Bk,ariaHidden:Jx,tabIndex:H8,ref:function(RY){(n==null?0:n())&&iB(RY)}},_.C(afe,{data:l,
hasIconLeading:f,hasIconLeadingTrailing:ck,hasIconTrailing:r,iconButton:y,icon:B,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:sM})))},"w");
_.zv.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.Nq=_.Q(function(W){var l=W.data;var V=W.className;var f=W.style;var r=W.useOutlinedIcon;var R=W.buttonOverrides;var y=W.animatedTextProps;var P=W.onClick;var n=W.target;var B=_.WS("button-view-model",function(O){O.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var S=l().targetId;S&&_.jbc(_.rY(),S,O);return function(){pcL(_.rY(),O)}}),d=function(){return l().iconName},J,D=(J=_.tY().resolve(_.R0(_.nP)))==null?void 0:J(),u=function(){var O=l();
var S=R==null?void 0:R(),N=y==null?void 0:y(),x=n==null?void 0:n();if(O){var Y=fU6(O.type);var W8=!!O.title||!!O.titleFormatted;var c8=!(!O.iconName&&!O.iconImage);W8=c8&&!W8?"icon-only":c8?O.iconTrailing||O.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;W8==="icon-only-40"&&(Y="text");var B8,Jx=(B8=S==null?void 0:S.disabled)!=null?B8:O.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||O.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";N=N&&N.numberText&&!isNaN(Number(N.numberValue))?
N:void 0;B8=Object;c8=B8.assign;var H8=O.title,Kq=O.titleFormatted,Z4=O.accessibilityText,Ax=VRU(O.style),sM=r_U(O.state),Ta=Rk8(O.buttonSize);x=lUS(O,B,Jx,P,x);Jx=Jx&&!O.onDisabledTap;var ck=$Eq(O,B),Wk=O.customFontColor,D$=O.customBackgroundColor;var Bk=O.customBorderColor;var iB=O.customDarkThemeFontColor,p2=O.customDarkThemeBackgroundColor,SL=O.customDarkThemeBorderColor;Wk=D&&iB?iB:Wk;D$=D&&p2?p2:D$;Bk=D&&SL?SL:Bk;Bk={color:Wk?_.sD(Wk):void 0,backgroundColor:D$?_.sD(D$):void 0,borderColor:Bk?
_.sD(Bk):void 0};O=c8.call(B8,{},{buttonText:H8,formattedButtonText:Kq,animatedTextProps:N,accessibilityLabel:Z4,style:Ax,type:Y,state:sM,size:Ta,iconPosition:W8,onTap:x,disabled:Jx,aTagConfig:ck,customColors:Bk,tooltipText:O.tooltip},S)}else O={style:"mono",type:"text",state:"active",size:"M"};O.focused=X();return O},H=function(){return ZgJ(u(),!!l().iconName)};
W=_.L(_.J4(!1,void 0,"WVXhrd"));J=W.next().value;var p=W.next().value,X=J;W=_.ip(function(){var O=_.tY().resolve(_.R0(_.Q5));O&&p(O.isKeyBoardInUse());return!1});
J=_.ip(function(){p(!1);return!1});
_.m1(function(){var O,S=_.k(l==null?void 0:(O=l())==null?void 0:O.onVisible,_.VY);S&&_.rN(S,{disableClickTracking:!0})},"w0lGYc");
var w=_.U("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.C("button-view-model",{el:B,class:_.If("ytSpecButtonViewModelHost",V),"on:focusin":W,"on:focusout":J},_.C(_.c,{cond:function(){var O;return(l==null?0:(O=l())==null?0:O.iconImage)?{sources:[l().iconImage]}:void 0},
then:function(O){return _.C(_.zv,{data:u,icon:function(){return _.C(_.dN,{data:O,alt:"",targetWidth:H,targetHeight:H,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:w})},
else:function(){return _.C(_.zv,{data:u,icon:function(){return _.C(_.wN,{icon:d,active:function(){return(r==null?0:r())?!1:u().toggled},
animateIcon:function(){var O;return!!(f==null?0:(O=f())==null?0:O.animateIcon)},
size:H})},
clientOnlyWizTooltipsEnabled:w})}}))},"x");
_.Nq.idomCompat={callbacks:{onClick:!0}};_.HI(_.Q(function(W){return _.C("yt-button-view-model",{id:W.id,class:_.If(W.scopingClassName,W.classes),icon:function(){var l;return(l=W.icon)==null?void 0:l.call(W)},
"dialog-dismiss":function(){var l;return((l=W.dialogDismiss)==null?0:l.call(W))?"":void 0}},_.C(_.Nq,{data:function(){var l;
return(l=W.data)==null?void 0:l.call(W)},
className:function(){var l;return(l=W.className)==null?void 0:l.call(W)},
style:function(){var l;return(l=W.style)==null?void 0:l.call(W)},
useOutlinedIcon:function(){var l;return(l=W.useOutlinedIcon)==null?void 0:l.call(W)},
buttonOverrides:function(){var l;return(l=W.buttonOverrides)==null?void 0:l.call(W)},
animatedTextProps:function(){var l;return(l=W.animatedTextProps)==null?void 0:l.call(W)},
onClick:function(l){var V;return(V=W.onClick)==null?void 0:V.call(W,l)}}))},"y"),"yt-button-view-model",{props:{data:_.pA,
className:_.pA,style:_.pA,useOutlinedIcon:_.pA,buttonOverrides:_.pA,animatedTextProps:_.pA,onClick:_.kh,scopingClassName:_.pA,id:_.pA,icon:_.pA,dialogDismiss:_.pA,classes:_.pA,target:_.kh}});_.HI(_.Q(function(W){var l=W.data;var V=W.id;var f=W.className;var r=W.iconName;var R=W.animateIcon;var y=W.secondaryIconName;W=_.L(_.J4(!1,void 0,"TtJl8"));var P=W.next().value,n=W.next().value,B=function(){var J=_.tY().resolve(_.R0(_.Q5));J&&n(J.isKeyBoardInUse())},d=function(){n(!1)};
W=_.WS("yt-button-shape",function(J){if(_.tY().resolve(_.R0(_.Q5)))return J.addEventListener("focusin",B),J.addEventListener("focusout",d),function(){J.removeEventListener("focusin",B);J.removeEventListener("focusout",d)}});
return _.C("yt-button-shape",{el:W,id:V,class:f},_.C(_.c,{cond:l,then:function(){return _.C(_.zv,{data:l,iconName:r,secondaryIconName:y,focusedOverride:P,animateIcon:R})}}))},"z"),"yt-button-shape",{props:{data:_.pA,
id:_.pA,className:_.pA,iconName:_.pA,animateIcon:_.pA,secondaryIconName:_.pA,clientOnlyWizTooltipsEnabled:_.pA,disableUpgrade:_.pA},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var Yr=function(){var W=_.I.apply(this,arguments)||this;W.isGoalActive=!0;return W};
_.v(Yr,_.I);Yr.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
Yr.prototype.progressBarChanged=function(){var W=_.GS(this.hostElement).querySelector("#progress-bar-progress"),l,V,f,r=(f=Number((l=this.creatorGoalState)==null?void 0:l.currentGoalCount)/Number((V=this.creatorGoalState)==null?void 0:V.totalGoalCount)*100)!=null?f:0,R;W.style.width=((R=Math.min(r,100))!=null?R:0)+"%"};
Yr.prototype.goalStateChanged=function(){var W;this.isGoalActive=((W=this.creatorGoalState)==null?void 0:W.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var l;W={"--yt-progress-bar-color":ehg((l=this.creatorGoalState)==null?void 0:l.progressBarColor)};_.I1(this.hostElement,W)};
Yr.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.rc.Object.defineProperties(Yr.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var W;return this.isGoalActive&&!((W=this.creatorGoalState)==null||!W.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.creatorGoalState)==null?0:W.endTimestampMs){var l;W=Number((l=this.creatorGoalState)==null?void 0:l.endTimestampMs)/1E3;return{seconds:String(W)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.creatorGoalState)==null?0:W.themedTargetImage){var l;W=_.k((l=this.creatorGoalState)==null?void 0:l.themedTargetImage,zfZ);return this.isAppDarkTheme()?W==null?void 0:W.imageDark:W==null?void 0:W.imageLight}}}});
_.rc.Object.defineProperties(Yr,{template:{configurable:!0,enumerable:!0,get:function(){return v4B()}}});
Yr.prototype.goalStateChanged=Yr.prototype.goalStateChanged;Yr.prototype.progressBarChanged=Yr.prototype.progressBarChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Yr.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DS),_.z("design:type",Object)],Yr.prototype,"ytLiveChatReduxBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);
_.a([_.b({selectorArgs:["data.creatorGoalEntityKey"],selector:function(W,l){return _.mL(W.entities,"creatorGoalEntity",l)}}),
_.z("design:type",Object)],Yr.prototype,"creatorGoalState",void 0);_.a([_.b(),_.z("design:type",Object)],Yr.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Yr.prototype,"isGoalActive",void 0);_.a([_.G("creatorGoalState","isGoalActive"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Yr.prototype,"shouldShowCountdown",null);_.a([_.G("creatorGoalState"),_.z("design:type",Object),_.z("design:paramtypes",[])],Yr.prototype,"endTimestamp",null);
_.a([_.G("creatorGoalState"),_.z("design:type",Object),_.z("design:paramtypes",[])],Yr.prototype,"targetIconThemedImage",null);_.a([_.TS("creatorGoalState.currentGoalCount"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yr.prototype,"progressBarChanged",null);_.a([_.TS("creatorGoalState.creatorGoalState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yr.prototype,"goalStateChanged",null);
_.a([_.Vq({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Yr);_.Z(Yr,"yt-creator-goal-progress-flow-view-model",function(){return v4B()},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var h3v;var SaI;var xr=function(){return _.I.apply(this,arguments)||this};
_.v(xr,_.I);xr.prototype.attached=function(){var W,l,V;if(this==null?0:(W=this.data)==null?0:(l=W.pdgPurchasedBumperLoggingDirectives)==null?0:(V=l.loggingDirectives)==null?0:V.trackingParams){var f,r,R;L_g(this==null?void 0:(f=this.data)==null?void 0:(r=f.pdgPurchasedBumperLoggingDirectives)==null?void 0:(R=r.loggingDirectives)==null?void 0:R.trackingParams)}};
xr.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],xr.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],xr.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],xr.prototype,"data",void 0);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],xr);
_.Z(xr,"yt-live-chat-item-bumper-view-model",function(){if(SaI===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;h3v===void 0&&(h3v=document.createElement("template"));var f=h3v;V.call(l,f.content.cloneNode(!0),W.content.firstChild);SaI=W}W=SaI;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var E4a;var $fZ;_.nv=function(W,l){this.data=W;this.actions=l;this.data=W;this.actions=l};
_.rH=function(){};_.eX={};_.eX.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(W,l){y_S(this.hostElement,W,l)},
getNavigationEndpointPopupAction:function(W){return gL8(W,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(W,l){PgF(this.hostElement,W,l,this.openPopupConfig)}};var kUx=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.qq={};
_.qq.YtEndpointBehavior=[_.eX.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.M4("openPopupConfig");(this.useClickHandler=_.ZL("useClickHandler",!1))?this.hostElement.addEventListener("click",im(this,this.onEndpointClick_)):(w6(this.hostElement,"tap",im(this,this.onEndpointTap_)),w6(this.hostElement,"touchend",im(this,this.onEndpointTouchEnd_)));w6(this.hostElement,"touchstart",im(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
im(this,this.onEndpointTapStart_))},
onEndpointClick_:function(W){c_8(this.hostElement,W,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(W){var l=this.hostElement,V=this.openPopupConfig,f=this.disableCommandHandlerOverride;f=f===void 0?!1:f;var r=nLx(W);if(r){r.href&&g_(r.href);var R=W.detail;var y=R.sourceEvent;R=R.preventer;y=y.button!==void 0?y.button===0&&!ZN(y):R?!ZN(R):!0;r.data&&y&&Cgq(l,r,W,V,f)}},
onEndpointTouchEnd_:function(W){ZN(W)||nLx(W)&&W.preventDefault()},
onEndpointTapStart_:function(W){UYn(W)}}];_.hp={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(W){for(var l=_.eC.getInstance(),V=_.L(Object.keys(W)),f=V.next();!f.done;f=V.next()){var r=f.value;f=W[r];if(this&&this[f]){var R=l.actionRoutingMap.get(r);R||(R=new Map,l.actionRoutingMap.set(r,R));l.registerActionHandler(this,r,this[f].bind(this),R)}else r=Error("md"),r.params=f,_.OJ(r)}},
unregisterActionMap:function(W){_.EL(_.eC.getInstance(),W,this)}}]};var zm=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_"+(_.U("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.U("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.U("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:_.U("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:_.U("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:_.U("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var af;var Ne=new Map;var XUj=window.matchMedia("(forced-colors: active)").matches;var WRB;var lVM;var V0L=new _.vd("LOTTIE_LOADER_TOKEN");_.SX=_.Q(function(W){var l=W.data;var V=W.className;var f=W.animationName;var r=W.animationRef;var R=W.elRefForInterop;var y=_.lN("lottie-component"),P;_.Xc(function(){var B;return void((B=P)==null?void 0:B.destroy())});
var n;_.m1(function(){var B=_.w9(f);if(B!==n){n=B;var d=Object.assign({},{animationName:B,animationRef:_.w9(r)},_.w9(l));try{_.tY().resolve(V0L)().then(function(u){var H;(H=P)==null||H.destroy();var p,X;H=(X=R==null?void 0:(p=R())==null?void 0:p.value)!=null?X:y.value;p=d.animationRef;X=d.listeners;u=u.loadAnimation(Object.assign({},{container:H},d.animationConfig));p&&(p.lottieEl=u);if(X)for(H=_.L(Object.entries(X)),p=H.next();!p.done;p=H.next())X=_.L(p.value),p=X.next().value,(X=X.next().value)&&
u.addEventListener(p,X);P=u})}catch(u){B=u;
var J="LottieComponent error.";B.message&&(J+=" Original description: "+B.message);_.MJ(B,J);_.Qe(B);var D;((D=d.listeners)==null?0:D.error)&&d.listeners.error(B)}}},"nrJISd");
return _.C(SCv,{cond:function(){return!(R==null?0:R())},
then:function(){return _.C("lottie-component",{class:_.If("ytLottieComponentHost",V),el:y})}})},"A");_.HI(_.Q(function(W){return _.C("ytd-lottie-player",{id:W.id,hidden:W.hidden,class:W.className,"aria-label":W.ariaLabel,style:"display: block;"},_.C(_.SX,{data:W.data,animationName:function(){var l;return((l=W.data().animationConfig)==null?void 0:l.name)||""},
animationRef:function(){return W.data().animationRef}}))},"B"),"ytd-lottie-player",{props:{data:_.pA,
id:_.pA,hidden:_.pA,className:_.pA,ariaLabel:_.pA}});var Eq=function(){var W=_.I.apply(this,arguments)||this;W.animationRef={};W.delhiIconsEnabled=_.U("enable_web_delhi_icons");return W};
_.v(Eq,_.I);_.t=Eq.prototype;
_.t.handlePropertyChange=function(){var W=this.animatedIcon,l=this.active,V=this.isDarkTheme;if(W){var f=this.previousActive!==l;this.previousActive=l;this.animationRef.lottieEl?f&&this.toggleAnimation(l,W.totalFrames):l?this.initializeAnimationAsToggled(W.lottiePlayerProps,W.totalFrames):this.initializeAnimationAsUntoggled(W.lottiePlayerProps);W.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=W.type;this.lottiePlayerProps=this.computeLottiePlayerProps(W,V)}};
_.t.computeLottiePlayerProps=function(W,l){var V=this.deepCloneLottiePlayerProps(W);l?(l=W.nameDarkTheme,W=W.pathDarkTheme):(l=W.name,W=W.path);V.animationConfig.name=l;(l=Ne.get(W))?V.animationConfig.animationData=l:V.animationConfig.path=W;return V};
_.t.initializeAnimationAsToggled=function(W,l){W.animationConfig.initialSegment=[l-1,l]};
_.t.initializeAnimationAsUntoggled=function(W){W.animationConfig.initialSegment=void 0};
_.t.toggleAnimation=function(W,l){if(W){var V;(V=this.animationRef.lottieEl)==null||V.playSegments([0,l],!0)}else{var f;(f=this.animationRef.lottieEl)==null||f.playSegments([0,1],!0)}};
_.t.deepCloneLottiePlayerProps=function(W){var l=Object.assign({},W.lottiePlayerProps.animationConfig);W=Object.assign({},W.lottiePlayerProps);W.animationConfig=l;return W};
Eq.prototype.handlePropertyChange=Eq.prototype.handlePropertyChange;_.a([_.b(),_.z("design:type",Object)],Eq.prototype,"animatedIcon",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],Eq.prototype,"active",void 0);_.a([_.b(),_.z("design:type",Boolean)],Eq.prototype,"isDarkTheme",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],Eq.prototype,"animatedIconType",void 0);_.a([_.b(),_.z("design:type",Boolean)],Eq.prototype,"previousActive",void 0);
_.a([_.b(),_.z("design:type",Object)],Eq.prototype,"lottiePlayerProps",void 0);_.a([_.b(),_.z("design:type",Object)],Eq.prototype,"animationRef",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Eq.prototype,"delhiIconsEnabled",void 0);_.a([_.TS("animatedIcon","active","isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Eq.prototype,"handlePropertyChange",null);_.a([_.Vq({is:"yt-animated-icon",disableElementRegistration:!0})],Eq);
_.Z(Eq,"yt-animated-icon",function(){if(lVM===void 0){var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;WRB===void 0&&(WRB=document.createElement("template"));var f=WRB;V.call(l,f.content.cloneNode(!0),W.content.firstChild);lVM=W}W=lVM;return W},{mode:2});var fVI;var ria;var ZI8=_.Q(function(W){var l=_.lN("span"),V=XW(function(){return{value:null}});
_.Xc(function(){var r;(r=V.value)==null||r.cancel()});
var f=_.v4(W.data,{equals:function(r,R){return r.iconName===R.iconName&&r.iconStyle===R.iconStyle&&r.iconSize===R.iconSize&&r.iconSetName===R.iconSetName&&r.iconSelected===R.iconSelected}},"AoOoyf");
_.m1(function(){var r,R=(r=W.options)==null?void 0:r.call(W);MRq(l,V,f(),R)},"Tie9e");
return _.C("span",{class:"yt-icon-shape",el:l})},"C");
ZI8.idomCompat=!0;var A7F=["youtube_fill","youtube_outline"];var R9e=new _.hu({type:"iconset",value:void 0}),$r=function(){var W=_.I.apply(this,arguments)||this;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.iconName="";W.iconsetName="yt-icons";W.iconset=null;W.missingIconSet=!1;W.iconType=null;W.iconShapeDataSignal=_.J4(void 0,void 0,"b0v7Ac");W.renderingOptionsSignal=_.J4({iconWidth:"100%",iconHeight:"100%",iconFilter:W.iconFilter},void 0,"Ls6l3e");W.wizHasRendered=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.v($r,_.I);$r.prototype.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W)};
$r.prototype.handlePropertyChange=function(){var W=this,l,V,f,r,R,y,P,n,B,d,J,D,u,H,p,X,w;return _.g(function(O){switch(O.nextAddress){case 1:if(l=!W.icon&&!W.iconName||!W.isAttached)return O.return();V=W;f=V.icon;r=V.size;R=V.defaultToFilled;y=V.active;P=V.targetContainer;W.toggleContainerClass(P);_.U("kevlar_use_wil_icons")&&f&&(n=uFz(f),W.iconType=n.length?n[1]:null);if(f){O.jumpTo(2);break}W.iconsetName="";W.iconName="";return O.yield(W.renderIcon(P,f),3);case 3:return O.return();case 2:B=t0k(f);
d=uFz(B);d.length&&(W.iconsetName=d[0],W.iconName=d[1]);if(!_.U("kevlar_use_wil_icons")){O.jumpTo(4);break}J=$r;D=sdZ;u=W.iconType;H=W.active;p=W.defaultToFilled;X=W.size;w=W.iconsetName;return O.yield(LRc(),6);case 6:return O.yield(D.call(J,u,H,p,X,w,O.yieldResult),5);case 5:W.iconShapeData=O.yieldResult;case 4:if(W.shouldRenderIconShape(P)){O.jumpTo(7);break}return O.yield(W.determineIconSet(B,y,R,r,P),7);case 7:return O.yield(W.renderIcon(P,f),0)}})};
$r.prototype.toggleContainerClass=function(W){W?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var t0k=function(W){return!_.U("default_to_innertube_icon")||W.indexOf(":")>0?W:_.IJ(W)};
_.t=$r.prototype;_.t.determineIconSet=function(W,l,V,f){var r=this;return _.g(function(R){return R.nextAddress==1?_.U("kevlar_system_icons")||_.M4("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.M4("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?R.yield(r.switchToYtSysIconset(W,l,V,f),3):R.jumpTo(2):R.nextAddress!=2?R.return():R.yield(r.useYtSysIconsetForMissingIcons(W,l,V,f),0)})};
_.t.switchToYtSysIconset=function(W,l,V,f){var r=this,R,y,P,n,B,d,J;return _.g(function(D){switch(D.nextAddress){case 1:if(!W||r.iconsetName!=="yt-icons"&&r.iconsetName!=="yt-sys-icons"){D.jumpTo(0);break}R=uFz(W);y=R[1];y=_.ja4(y);_.U("enable_polymer_icons_replace_underscores_dash")&&y.includes("_filled")&&(y=y.replace(/_filled/g,"-filled"));return D.yield(jM(y,!0),3);case 3:return P=D.yieldResult,D.yield(jM(y,!1),4);case 4:if((n=D.yieldResult)||l&&P)r.iconsetName="yt-sys-icons";r.iconName=r.getIconName(y,
l,V,n,P);if(f===24){D.jumpTo(0);break}B="yt-sys-icons"+f+":"+r.iconName;return D.yield(jM(B,!1,!0),6);case 6:return d=D.yieldResult,D.yield(jM(B,!0,!0),7);case 7:J=D.yieldResult;r.iconName=r.getIconName(y,l,V,d,J);if(!l&&d||l&&J)r.iconsetName="yt-sys-icons"+f;_.ju(D)}})};
_.t.getIconName=function(W,l,V,f,r){W.includes("-filled")&&(W=W.replace("-filled",""));return r&&(l||V)?W+"-filled":W};
_.t.useYtSysIconsetForMissingIcons=function(W,l,V,f){var r=this,R,y;return _.g(function(P){if(P.nextAddress==1)return r.iconsetName!=="yt-icons"?P.jumpTo(0):P.yield(jM(r.iconName,!1,!1,!0),3);if(P.nextAddress!=4)return R=P.yieldResult,P.yield(jM(r.iconName,!1),4);y=P.yieldResult;if(R||!y)return P.jumpTo(0);r.iconsetName="yt-sys-icons";return P.yield(r.switchToYtSysIconset(W,l,V,f),0)})};
_.t.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var LRc=function(){return _.g(function(W){try{return W.return(_.tY().resolve(_.iD))}catch(l){return W.return(new Promise(function(V){_.DI().parkOrScheduleJob(function(){V(_.tY().resolve(_.iD))},2,"ci")}))}})},sdZ=function(W,l,V,f,r,R){f=f===void 0?24:f;
if(W){W=W.toLowerCase();var y=W.endsWith("_filled")||W.endsWith("-filled");l={iconName:W,iconStyle:(l===void 0?0:l)||(V===void 0?0:V)||y?"youtube_fill":"youtube_outline",iconSize:f,iconSetName:r===void 0?"yt-icons":r};V=!!R.resolveIcon(l);V||(l.iconSize=void 0,V=!!R.resolveIcon(l));!V&&y&&(l.iconName=W.substring(0,W.length-7),l.iconSize=f,V=!!R.resolveIcon(l),V||(l.iconSize=void 0,V=!!R.resolveIcon(l)));V||(l.iconStyle=void 0,V=!!R.resolveIcon(l));V||_.Qe(new _.bP("Icon not supported",{iconName:l.iconName,
iconStyle:l.iconStyle,iconSize:l.iconSize,iconType:W}));return V?l:void 0}};
_.t=$r.prototype;_.t.shouldRenderIconShape=function(W){if(!_.U("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;W=this.getContainer(W);return!TMY(W,this.icon)};
_.t.renderIcon=function(W,l){var V=this,f,r,R,y,P,n,B,d;return _.g(function(J){switch(J.nextAddress){case 1:if(l&&V.icon!==l)return J.return();f=V.getContainer(W);r=TMY(f,V.icon);if(V.shouldRenderIconShape(W)&&V.iconType)return V.applyIconShape(r,f),J.return();V.removeIconShape();if(!f)return J.return();V.iconName===""&&V.iconset&&f&&(V.removeStaticIcon(V.iconset,f),r&&V.removeAnimatedIcon(f));if(V.iconName===""&&V.iconset||!V.iconsetName||!R9e)return J.return();V.iconset=R9e.byKey(V.iconsetName);
if(!V.iconset)return V.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.mz(V,V.onIconsetAdded)),J.return();V.missingIconSet&&(V.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.mz(V,V.onIconsetAdded)));y=(R=r||V.isAnimatedIcon?iIq(V.icon):void 0)&&!R.lazyLoad;n=R&&((P=R)==null?void 0:P.lazyLoad)&&(R.lottiePlayerProps.animationConfig.animationData?!0:Ne.get(V.isDarkTheme?R.pathDarkTheme:R.path)?!0:!1);if(y||n)return V.applyAnimatedIcon(f,R,V.iconset),J.return();if(n||
(B=R)==null||!B.lazyLoad){J.jumpTo(2);break}d=A_S(R,V.isDarkTheme);V.applyStaticIcon(V.iconset,f,V.iconName,W,r);return J.yield(d,3);case 3:return J.yield(V.renderIcon(V.targetContainer,V.icon),4);case 4:return J.return();case 2:V.applyStaticIcon(V.iconset,f,V.iconName,W,r),_.ju(J)}})};
_.t.getContainer=function(W){var l,V=(l=O_S(this.hostElement))==null?void 0:l.host;l=!!V&&!!V.polymerController;if(!W||l)return W?this.getTargetContainer(W,V):this.hostElement};
_.t.getTargetContainer=function(W,l){var V=_.GS(l).querySelector("#"+W);V||(W=new _.bP("yt-icon container missing",l.is,W),_.wv(W));return V};
_.t.applyStaticIcon=function(W,l,V,f,r){r&&this.removeAnimatedIcon(l);this.removeIconShape();r=r&&!!this.iconType&&!!this.iconShapeData&&_.U("kevlar_use_wil_icons");try{r?this.applyIconShape(!1,l):W.applyIcon(l,V)}catch(R){this.handleError(R,f,l)}};
_.t.applyIconShape=function(W,l){this.iconset&&l&&(this.removeStaticIcon(this.iconset,l),W&&this.removeAnimatedIcon(l));W={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var V=_.L(this.iconShapeDataSignal);l=V.next().value;V=V.next().value;var f=_.L(this.renderingOptionsSignal),r=f.next().value;f=f.next().value;V(this.iconShapeData);f(W);if(!this.wizHasRendered)for(this.wizHasRendered=!0,W=_.L(OIU(l,r)).next().value;W.firstChild;)_.GS(this.hostElement).appendChild(W.firstChild)};
_.t.removeIconShape=function(){if(_.U("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.t.removeStaticIcon=function(W,l){W.removeIcon(l)};
_.t.applyAnimatedIcon=function(W,l,V){this.removeStaticIcon(V,W);this.removeIconShape();var f;V=this.animatedIconElement&&((f=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:f.type)===l.type;if(this.animatedIconElement&&V){this.animatedIconElement.polymerController.animatedIcon=l;var r;((r=this.animatedIconElement)==null?void 0:r.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(W),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=l,this.animatedIconElement.polymerController.active=this.active,_.U("delhi_modern_web_player_icons")?(l=mYz(W,this.icon)&&W.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=l?l.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.U("kevlar_use_wil_icons")?
W.insertBefore(this.animatedIconElement,W.childNodes[0]):(W=_.GS(W),W.insertBefore(this.animatedIconElement,W.childNodes[0]))};
_.t.removeAnimatedIcon=function(W){_.U("kevlar_use_wil_icons")?this.animatedIconElement&&W.contains(this.animatedIconElement)&&W.removeChild(this.animatedIconElement):(W=_.GS(W),this.animatedIconElement&&W.contains(this.animatedIconElement)&&W.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.t.handleError=function(W,l,V){_.MJ(W,this.iconName,l,V);l=TMY(V,this.icon);var f=!1;window.location.href.includes("JpymaW6Lh2w")?f=!0:V._svgIcon&&(V=(V=V._svgIcon.parentNode)?V.tagName:"unknown",_.MJ(W,V),V==="YT-ICON"&&W.name==="NotFoundError"?f=!0:W.name==="NotFoundError"&&l&&(f=!0));f?_.Qe(W):_.wv(W)};
_.rc.Object.defineProperties($r,{template:{configurable:!0,enumerable:!0,get:function(){if(ria===void 0){var W=document.createElement("template");_.K(W,"\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");W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;
fVI===void 0&&(fVI=document.createElement("template"));var f=fVI;V.call(l,f.content.cloneNode(!0),W.content.firstChild);ria=W}W=ria;return W}}});
$r.prototype.handlePropertyChange=$r.prototype.handlePropertyChange;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],$r.prototype,"actionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",String)],$r.prototype,"icon",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],$r.prototype,"active",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],$r.prototype,"defaultToFilled",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],$r.prototype,"isAnimatedIcon",void 0);
_.a([_.b({value:24}),_.z("design:type",Number)],$r.prototype,"size",void 0);_.a([_.b({value:""}),_.z("design:type",String)],$r.prototype,"targetContainer",void 0);_.a([_.b(),_.z("design:type",Object)],$r.prototype,"animatedIconElement",void 0);_.a([_.b(),_.z("design:type",Object)],$r.prototype,"isDarkTheme",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],$r.prototype,"ariaHidden",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],$r.prototype,"ariaLabel",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],$r.prototype,"role",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],$r.prototype,"tabindex",void 0);_.a([_.b(),_.z("design:type",String)],$r.prototype,"style",void 0);_.a([_.b(),_.z("design:type",String)],$r.prototype,"iconFilter",void 0);
_.a([_.TS("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],$r.prototype,"handlePropertyChange",null);_.a([_.Vq({is:"yt-icon",noInjection:!0})],$r);var aUJ="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),NMv=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var yie={};yie.YtPlaintextBehavior=[_.NN,{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(W){W.preventDefault();W=W.clipboardData.getData("text/plain");document.execCommand("insertText",!1,W)},
preventRichTextFormatting_:function(W){_.Gy&&(W=W.detail.keyboardEvent,W.stopImmediatePropagation(),W.preventDefault())}}];var gKe;var Pq9;var WB=function(){var W=_.I.apply(this,arguments)||this;W.ignoreShadyDom=!1;W.hasChange_=!1;W.hasSetTitle_=!1;W.useIOObserverForVisibilityLogging_=_.U("kevlar_use_vimio_behavior")&&_.M4("INNERTUBE_CLIENT_NAME")==="WEB";W.ytFormattedStringObserverHandlerKeys_=void 0;return W};
_.v(WB,_.I);_.t=WB.prototype;_.t.created=function(){this.useIOObserverForVisibilityLogging_=_.U("kevlar_use_vimio_behavior")&&_.M4("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.t.ready=function(){_.M4("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_()};
_.t.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.t.detached=function(){this.unobserveIOObservers_()};
_.t.clearContents_=function(){for(var W=this.getRoot(),l=W.lastChild;l&&l.tagName!=="STYLE";){try{W.removeChild(l)}catch(V){break}l=W.lastChild}};
_.t.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var W=_.L(this.ytFormattedStringObserverHandlerKeys_),l=W.next();!l.done;l=W.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(l.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.t.resetForAttributedString=function(){var W=this.getRoot();!W.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),W.appendChild(this.ytAttributedStringElementRef))};
_.t.resetForFormattedString=function(){var W=this.getRoot(),l=W.querySelector("yt-attributed-string");l&&(this.ytAttributedStringElementRef=W.removeChild(l))};
_.t.textChanged=function(){this.textChanged_(this.text)};
_.t.textChanged_=function(W){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!W||!W.runs&&!W.simpleText;if(_.U("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var l=this.hostElement.firstChild;l&&l.nodeName==="FONT";){var V=l;l=l.nextSibling;this.hostElement.removeChild(V)}l=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
V=W.simpleText;var f;!V&&((f=W.runs)==null?void 0:f.length)===1&&this.isSimpleString_(W.runs[0])&&(V=W.runs[0].text);V!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.M4("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(V!==void 0){try{l.textContent=V}catch(r){}l.textContent||(this.isEmpty=!0)}else W=W.runs,V!==void 0&&(W=[{text:V}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),W&&this.updateText_(W),
l.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.t.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)};
_.t.computeAriaLabel_=function(W){return W};
_.t.computeEllipsisTruncateStyling=function(W,l){return W&&!l};
_.t.computeUseAttributedString=function(W){return _.U("web_replace_formatted_with_attributed_string")&&g4U(W)&&!this.disableAttributedString&&!this.enableContentEditable};
_.t.setNodeStyle_=function(W,l){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.U("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?l.removeAttribute("dir"):l.setAttribute("dir","auto");l.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");l.style.color="";var V=null;this.noStyles||(W.bold&&(l.classList.add("bold"),V="bold"),W.deemphasize&&(l.classList.add("deemphasize"),V="deemphasize"),W.italics&&l.classList.add("italic"),
W.strikethrough&&l.classList.add("strikethrough"),W.errorUnderline&&(l.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),W.bracket&&l.classList.add("bracket"),W.textColor&&(l.style.color=_.ta(W.textColor)));V!==l.getAttribute("style-target")&&(V?l.setAttribute("style-target",V):l.removeAttribute("style-target"))};
_.t.setUpVisibilityLogging_=function(W,l){var V=this;this.setNodeTrackingParams_(W,l);var f;((f=l.data)==null?0:f.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(W=this.ytRendererBehavior.visibilityObserver.observe(l,function(r){var R=V.ytRendererBehavior.getVisibilityLogger();R&&R.reportShown(r)},this.ytRendererBehavior.visibilityOptionVisible_),l=this.ytRendererBehavior.visibilityObserver.observe(l,function(r){var R=V.ytRendererBehavior.getVisibilityLogger();
R&&R.reportHidden(r)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(W),this.ytFormattedStringObserverHandlerKeys_.push(l))};
_.t.setNodeTrackingParams_=function(W,l){l.data||(l.data={});if((W=W.loggingDirectives?W.loggingDirectives.trackingParams:null)||l.data.trackingParams)l.data.trackingParams=W};
_.t.computeHasLinkOnly_=function(W){return!(!W||W.length!==1||this.noEndpoints||!W[0].navigationEndpoint)};
_.t.getRoot=function(){var W=this.buildScopeDomOptions();return this.enableContentEditable?_.GS(_.GS(this.hostElement,W).querySelector("[contenteditable]")):_.GS(this.hostElement,W)};
_.t.fixContenteditableScope=function(){var W=function(l){l&&(l.nodeType===1&&l.classList&&(l.classList.add("style-scope"),l.classList.add("yt-formatted-string")),l.childNodes&&l.childNodes.forEach(function(V){W(V)}))};
W(this.getRoot())};
_.t.updateText_=function(W){for(var l=W.length,V=this.getRoot(),f=V.firstChild;f&&f.nodeName==="STYLE";)f=f.nextSibling;for(var r=0;r<l&&f;){var R=W[r],y=_.U("remove_cr_char")&&R.text?R.text.replace("\r",""):R.text;if(this.isSimpleString_(R)&&!this.useMixedDirectionFormattedStrings)if(f.nodeName==="#text"){f.textContent!=y&&(f.textContent=y);r++;f=f.nextSibling;continue}else break;if(_.k(R,WI))break;else if(!this.noEndpoints&&R.navigationEndpoint){if(f.nodeName!=="A")break;this.setDataOnAnchor_(f,
R.navigationEndpoint)}else if(f.nodeName!=="SPAN")break;this.setNodeStyle_(R,f);this.setUpVisibilityLogging_(R,f);f.textContent!=y&&(f.textContent=y);r++;f=f.nextSibling}if(f)for(R=V.lastChild,f=r?f.previousSibling:null;R&&R!=f;){try{V.removeChild(R)}catch(P){break}R=V.lastChild}r!==l&&this.addTextNodes_(W,r)};
_.t.addTextNodes_=function(W,l){for(var V=document.createDocumentFragment(),f=W.length;l<f;l++){var r=W[l],R=_.U("remove_cr_char")&&r.text?r.text.replace("\r",""):r.text;if(this.isSimpleString_(r)&&!this.useMixedDirectionFormattedStrings)V.appendChild(document.createTextNode(R));else{var y=_.k(r,WI);if(y){if(y.image){var P=document.createElement("img");y.isCustomEmoji||P.classList.add("small-emoji");P.classList.add("emoji");y.isCustomEmoji&&(P.dataset.emojiId=y.emojiId);P.src=_.KP(y.image.thumbnails,
this.emojiSize);(r=this.get("image.accessibility.accessibilityData.label",y))?P.alt=r:y.shortcuts&&y.shortcuts.length>0?P.alt=y.shortcuts[0]:y.emojiId&&(P.alt=y.emojiId);V.appendChild(P);this.hasEmoji=!0}}else!this.noEndpoints&&r.navigationEndpoint?(P=document.createElement("a"),P.classList.add("yt-simple-endpoint"),P.setAttribute("spellcheck","false"),this.setDataOnAnchor_(P,r.navigationEndpoint)):P=document.createElement("span"),this.setNodeStyle_(r,P),this.setUpVisibilityLogging_(r,P),P.appendChild(document.createTextNode(R)),
V.appendChild(P)}}this.getRoot().appendChild(V)};
_.t.isSimpleString_=function(W){return(this.noEndpoints||!W.navigationEndpoint)&&!_.k(W,WI)&&(this.noStyles||!(W.bold||W.deemphasize||W.italics||W.strikethrough||W.errorUnderline||W.bracket||W.textColor))&&!W.loggingDirectives};
_.t.getRawText=function(){return _.dE(this.text)};
_.t.getFirstRunText=function(){var W;if(((W=this.text)==null?0:W.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.t.setFirstRunText=function(W){var l;((l=this.text)==null?0:l.runs)&&this.text.runs[0]&&(this.text.runs[0].text=W,this.textChanged_(this.text))};
_.t.setDataOnAnchor_=function(W,l){var V=this;!_.U("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(l)||this.isSignalServiceEndpoint_(l)?(W.onclick=this.serviceEndpointHandler_(l),hO(W,"#")):ay8({text:this.text,command:l},function(){lpz(W,l,V.target)})};
_.t.isServiceEndpoint_=function(W){var l;return!((l=_.k(W==null?void 0:W.commandMetadata,_.XN))==null||!l.sendPost)};
_.t.isSignalServiceEndpoint_=function(W){return!!_.k(W,_.mA)};
_.t.serviceEndpointHandler_=function(W){var l=this;return function(V){_.pN(l.hostElement,[W]);V.preventDefault()}};
_.t.overrideAriaLabelChanged_=function(){var W=this.getRoot();this.enableContentEditable&&W&&W.setAttribute("aria-label",this.overrideAriaLabel)};
_.t.enableContentEditableChanged_=function(){var W=this,l=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),l=_.GS(this.hostElement,l),!l.lastChild||l.lastChild instanceof HTMLElement&&l.lastChild.id!=="contenteditable-root"){var V=document.createElement("div");V.id="contenteditable-root";V.setAttribute("contenteditable","true");V.setAttribute("dir","auto");V.onfocus=function(){W.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
l.appendChild(V);this.overrideAriaLabel&&V.setAttribute("aria-label",this.overrideAriaLabel)}}else V=_.bm(this.hostElement).firstChild,V instanceof HTMLElement&&V.id==="contenteditable-root"&&_.GS(this.hostElement,l).removeChild(V)};
_.t.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.t.getNodesForVisibilityLogging_=function(){return _.Ul(this.getRoot().childNodes,function(W){var l;return!((l=W.data)==null||!l.trackingParams)})};
_.t.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.t.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var W=this.ytRendererBehavior.getVisibilityLogger();W&&this.getNodesForVisibilityLogging_().forEach(function(l){W.reportShown(l)})}};
_.t.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var W=this.ytRendererBehavior.getVisibilityLogger();W&&this.getNodesForVisibilityLogging_().forEach(function(l){W.reportHidden(l)})}};
_.rc.Object.defineProperties(WB.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.U("enable_mixed_direction_formatted_strings")}}});
WB.prototype.enableContentEditableChanged_=WB.prototype.enableContentEditableChanged_;WB.prototype.overrideAriaLabelChanged_=WB.prototype.overrideAriaLabelChanged_;WB.prototype.ellipsisTruncateChanged_=WB.prototype.ellipsisTruncateChanged_;WB.prototype.textChanged=WB.prototype.textChanged;_.a([_.F(yie.YtPlaintextBehavior),_.z("design:type",Object)],WB.prototype,"ytPlaintextBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],WB.prototype,"ytComponentBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],WB.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],WB.prototype,"text",void 0);_.a([_.b(),_.z("design:type",Boolean)],WB.prototype,"noEndpoints",void 0);_.a([_.b(),_.z("design:type",Boolean)],WB.prototype,"noStyles",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],WB.prototype,"isDarkTheme",void 0);
_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],WB.prototype,"splitLines",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],WB.prototype,"forceDefaultStyle",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],WB.prototype,"ellipsisTruncate",void 0);_.a([_.b(),_.z("design:type",Object)],WB.prototype,"ignoreShadyDom",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.z("design:type",Boolean)],WB.prototype,"ellipsisTruncateStyling",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.z("design:type",String)],WB.prototype,"ariaLabel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],WB.prototype,"isEmpty",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.z("design:type",Boolean)],WB.prototype,"hasLinkOnly_",void 0);_.a([_.b(),_.z("design:type",Boolean)],WB.prototype,"hasEmoji",void 0);_.a([_.b(),_.z("design:type",Boolean)],WB.prototype,"disableAttributedString",void 0);_.a([_.b(),_.z("design:type",Boolean)],WB.prototype,"isOverlay",void 0);_.a([_.b(),_.z("design:type",Boolean)],WB.prototype,"linkInheritColor",void 0);
_.a([_.b(),_.z("design:type",Boolean)],WB.prototype,"noPreWrap",void 0);_.a([_.b(),_.z("design:type",Boolean)],WB.prototype,"userInput",void 0);_.a([_.b({value:16}),_.z("design:type",Number)],WB.prototype,"emojiSize",void 0);_.a([_.b(),_.z("design:type",String)],WB.prototype,"target",void 0);_.a([_.b(),_.z("design:type",Boolean)],WB.prototype,"enableContentEditable",void 0);_.a([_.b(),_.z("design:type",String)],WB.prototype,"overrideAriaLabel",void 0);
_.a([_.b(),_.z("design:type",Boolean)],WB.prototype,"respectHtmlDir",void 0);_.a([_.b(),_.z("design:type",Boolean)],WB.prototype,"respectLangDir",void 0);_.a([_.G("plaintextOnly"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],WB.prototype,"useMixedDirectionFormattedStrings",null);_.a([_.b({computed:"computeUseAttributedString(text)"}),_.z("design:type",Boolean)],WB.prototype,"useYtAttributedString",void 0);
_.a([_.TS("text"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],WB.prototype,"textChanged",null);_.a([_.TS("ellipsisTruncate"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],WB.prototype,"ellipsisTruncateChanged_",null);_.a([_.TS("overrideAriaLabel"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],WB.prototype,"overrideAriaLabelChanged_",null);
_.a([_.TS("enableContentEditable"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],WB.prototype,"enableContentEditableChanged_",null);_.a([_.Vq({is:"yt-formatted-string",disableElementRegistration:!0})],WB);
_.Z(WB,"yt-formatted-string",function(){if(Pq9===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;gKe===void 0&&(gKe=document.createElement("template"));var f=gKe;V.call(l,f.content.cloneNode(!0),W.content.firstChild);Pq9=W}W=Pq9;return W});var nK1;var Cq9;var ciL;var Bpe;var ff=function(){var W=_.I.apply(this,arguments)||this;W.focused=!1;W.disabled=!1;W.isOverlay=!1;return W};
_.v(ff,_.I);ff.prototype.triggerDown=function(){if(!this.disabled){_.pG(this.hostElement,"down",!0);var W;(W=this.currentAnimation)==null||W.cancel()}};
ff.prototype.triggerUp=function(){if(!this.disabled){_.pG(this.hostElement,"down",!1);var W=this.fillElement;var l=this.strokeElement;typeof GroupEffect==="function"?(W=new GroupEffect([TXJ(W),w6q(l)]),W=new Animation(W,document.timeline)):W=new A3v(W,l);this.currentAnimation=W;var V;(V=this.currentAnimation)==null||V.play()}};
_.a([_.Aa(".stroke"),_.z("design:type",HTMLElement)],ff.prototype,"strokeElement",void 0);_.a([_.Aa(".fill"),_.z("design:type",HTMLElement)],ff.prototype,"fillElement",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ff.prototype,"focused",void 0);_.a([_.b(),_.z("design:type",Object)],ff.prototype,"disabled",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ff.prototype,"isOverlay",void 0);_.a([_.Vq({is:"yt-interaction",disableElementRegistration:!0})],ff);
_.Z(ff,"yt-interaction",function(){if(Bpe===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;ciL===void 0&&(ciL=document.createElement("template"));var f=ciL;V.call(l,f.content.cloneNode(!0),W.content.firstChild);Bpe=W}W=Bpe;return W},{mode:2});var ry=function(){return _.I.apply(this,arguments)||this};
_.v(ry,_.I);_.t=ry.prototype;_.t.ready=function(){var W=this,l=_.GS(this.hostElement).querySelector("#button");l.addEventListener("focus",function(){QWI||(QWI=new ARI);W.keyboardFocused=QWI.isKeyBoardInUse()});
l.addEventListener("blur",function(){W.keyboardFocused=!1;W.rippleUp_()})};
_.t.computeTabIndex_=function(W){return W?-1:0};
_.t.computeButtonAriaPressed_=function(W){if(this.toggleable)return W?"true":"false"};
_.t.rippleDown_=function(){_.GS(this.hostElement).querySelector("#interaction").triggerDown()};
_.t.rippleUp_=function(){_.GS(this.hostElement).querySelector("#interaction").triggerUp()};
_.t.onPressedChanged_=function(){var W=_.bm(_.GS(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.bm(_.GS(this.hostElement).querySelector("#button")).children[0];W&&(W.active=this.pressed)};
ry.prototype.onPressedChanged_=ry.prototype.onPressedChanged_;ry.prototype.rippleUp_=ry.prototype.rippleUp_;ry.prototype.rippleDown_=ry.prototype.rippleDown_;_.a([_.b(),_.z("design:type",String)],ry.prototype,"label",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ry.prototype,"disabled",void 0);_.a([_.b(),_.z("design:type",Boolean)],ry.prototype,"pressed",void 0);_.a([_.b(),_.z("design:type",Object)],ry.prototype,"toggleable",void 0);
_.a([_.b(),_.z("design:type",Boolean)],ry.prototype,"untabbable",void 0);_.a([_.b(),_.z("design:type",Boolean)],ry.prototype,"keyboardFocused",void 0);_.a([_.XI("down"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ry.prototype,"rippleDown_",null);_.a([_.XI("up"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ry.prototype,"rippleUp_",null);
_.a([_.TS("pressed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ry.prototype,"onPressedChanged_",null);_.a([_.Vq({is:"yt-icon-button",disableElementRegistration:!0})],ry);
_.Z(ry,"yt-icon-button",function(){if(Cq9===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;nK1===void 0&&(nK1=document.createElement("template"));var f=nK1;V.call(l,f.content.cloneNode(!0),W.content.firstChild);Cq9=W}W=Cq9;return W},{mode:2});var d9e;var Jik=function(){var W=document.body,l=W.appendChild;if(d9e===void 0){var V=document.createElement("template");_.K(V,'\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>');
d9e=V}V=d9e;l.call(W,V.content)};
document.body?Jik():window.addEventListener("DOMContentLoaded",Jik);var D9M=_.tj(["aria-"]),R8={};R8.YtRenderButtonBehavior=[_.q.YtRendererBehavior,_.qq.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!!_.tY().resolve(_.R0(_.Q5))&&_.U("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 W=this.computeHref_(this.endpoint,!0);W?hO(this.elements_.endpoint,W):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){W=this.buttonClass.split(" ");W=_.L(W);for(var l=W.next();!l.done;l=W.next())l=l.value,_.pG(this.hostElement,l,!0),this.elements_.button&&_.pG(this.elements_.button,l,!0),this.elements_.text&&_.pG(this.elements_.text,l,!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&&(W=null,this.buttonAccessibility&&(W=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=W:W?_.yK([_.n5(D9M)],this.elements_.button,"aria-label",W):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var W=_.tY().resolve(_.R0(_.Q5));W&&(this.keyboardFocused=W.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.XE("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,_.YG(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.YG(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(W,l){if(l)for(W=l.split(" "),W=_.L(W),l=W.next();!l.done;l=W.next())l=l.value,_.pG(this.hostElement,l,!1),this.elements_.button&&_.pG(this.elements_.button,l,!1),this.elements_.text&&_.pG(this.elements_.text,l,!1)},
buttonIconChanged_:function(W){this.elements_.icon?W?(this.elements_.icon.icon=W,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.YG(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.o1(this.hostElement,"is-paper-button-with-icon",!1)):W&&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"&&_.YG(this.elements_.button).appendChild(this.elements_.icon):_.YG(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.o1(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(W){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,W){var l=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(W){case "yt_icon_button_with_label":l=!0;_.pG(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();W=_.YG(this.elements_.button).firstElementChild;
this.elements_.icon=W;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.YG(this.elements_.endpoint).appendChild(this.elements_.button);_.YG(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.XE("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;_.YG(this.elements_.button).appendChild(this.elements_.text);_.YG(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":l=!0,this.elements_.button=this.getYtIconButton_(),W=_.YG(this.elements_.button).firstElementChild,this.elements_.icon=W,this.setIconActive_(this.elements_.icon),
_.YG(this.elements_.endpoint).appendChild(this.elements_.button)}_.o1(this.hostElement,"is-icon-button",l);_.o1(this.hostElement,"is-paper-button",!l);_.o1(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 V;_.GS((V=this.container.hostElement)!=null?V:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.YG(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(W){if(W!=void 0||this.disabled)this.disabled=W,this.elements_.button&&(this.elements_.button.disabled=W)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(W){_.U("kevlar_system_icons")&&W&&this.data&&(this.data.isSelected!==void 0?W.active=this.data.isSelected:this.data.isToggled!==void 0&&(W.active=this.data.isToggled))},
observeBasicPalette_:function(W){_.Yh(this.hostElement,W)},
disabledChanged_:function(W){this.data&&this.set("data.isDisabled",W)},
onYtButtonTap_:function(W){if(this.disabled)W.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.pN(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(W=this.disableCommandHandlerOverride,!this.data||!this.data.command||W||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.U("handle_service_request_actions")||_.pN(this.hostElement,[this.serviceEndpoint]),
_.FN(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.U("handle_service_request_actions")?(W=[],this.serviceEndpoint&&W.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&W.push(this.data.command),W.length&&_.og(this.hostElement,W,this.hostElement)):this.data&&this.data.command&&(W=this.data.command,W.accountUnlinkCommand||W.accountLinkCommand||W.insertAdCommand||W.insertHighlightMarkerCommand||
W.createLivestreamHighlightClipCommand||W.getVideoUploadFeedbackCommand||W.musicDeletePrivatelyOwnedEntityCommand||W.ypcCancelRecurrenceEndpoint||W.getMultiSelectCommandEndpoint?_.pN(this.hostElement,[W]):_.og(this.hostElement,[W],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 W,l=_.GS((W=this.container.hostElement)!=null?W:this.container);l.lastChild&&l.lastChild.tagName!="STYLE";)try{l.removeChild(l.lastChild)}catch(V){break}},
getYtIconButton_:function(){var W=this.reuseEnabled_()?_.XE("yt-icon-button"):document.createElement("yt-icon-button"),l=_.YG(W).firstElementChild;if(l&&l.is!="yt-icon"){for(l=_.YG(W);l.lastChild;)l.removeChild(l.lastChild);l=null}l||(l=this.getIcon_(),this.setIconActive_(l),_.YG(W).appendChild(l));return W},
reuseEnabled_:function(){return _.U("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.XE("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.XE("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.U9k={};
_.U9k.YtButtonBehavior=[R8.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var W=this.data;W&&(this._setEndpoint(this.computeEndpoint_(W)),this._setServiceEndpoint(this.computeServiceEndpoint_(W)),this._setCommand(this.computeCommand_(W)),this._setButtonIcon(this.computeButtonIcon_(W)),this._setButtonText(this.computeButtonText_(W,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(W)),this._setButtonTooltip(this.computeTooltip_(W)),this._setButtonClass(this.computeButtonClass_(W)),this._setIconPositionType(this.computeIconPositionType_(W)),this.updateRenderedElements())},
setPressedState:function(W){var l;if((l=this.elements_)==null?0:l.button)this.elements_.button.pressed=!!W},
computeIconPositionType_:function(W){return W&&W.iconPosition||null},
computeEndpoint_:function(W){var l=W&&W.navigationEndpoint,V=this.get("data.command.commandMetadata.webCommandMetadata.url"),f=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return l?l:W&&W.command&&W.command.modalEndpoint?W.command:V&&!f&&W.command?W.command:null},
computeServiceEndpoint_:function(W){var l=W&&W.serviceEndpoint,V=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return l?l:V&&W.command?W.command:null},
computeCommand_:function(W){return W&&W.command||null},
computeButtonIcon_:function(W){return W&&W.icon&&W.icon.iconType?_.IJ(W.icon.iconType):null},
computeButtonText_:function(W,l){return!l&&W&&W.text||null},
computeAccessibility_:function(W){return this.get("accessibilityData.accessibilityData",W)||W&&W.accessibility||(W&&W.text?{label:this.getSimpleString(W.text)}:null)},
computeTooltip_:function(W){return W?W.isDisabled&&W.disabledTooltip||W.tooltip||null:null},
computeButtonClass_:function(W){var l=W&&W.style?W.style.toLowerCase().replace(/_/g,"-")+" ":"";l+=W&&W.size?W.size.toLowerCase().replace(/_/g,"-")+" ":"";W.colorData&&W.colorData.basicColorPaletteData&&W.colorData.basicColorPaletteData.borderColor&&(l+="palette-with-border");return l.trim()}}];var xh={};var uiv;var k5k;var vKa,HOL=function(){return vKa!==void 0?vKa:vKa=document.createElement("template")};
document.head.appendChild(HOL().content);var KRX;var FR1,G59=function(){return FR1!==void 0?FR1:FR1=document.createElement("template")};
document.head.appendChild(G59().content);var bOX;var pKL,oK1=function(){return pKL!==void 0?pKL:pKL=document.createElement("template")};
document.head.appendChild(oK1().content);var jdB;var IVM=document.head,iO$=IVM.appendChild,m9B;if(jdB===void 0){var XKc=document.createElement("template");_.K(XKc,"\x3c!--css-build:shady--\x3e");XKc.content.insertBefore(oK1().content.cloneNode(!0),XKc.content.firstChild);jdB=XKc}m9B=jdB;iO$.call(IVM,m9B.content);var Tpa=document.head,wKv=Tpa.appendChild,AiL;if(bOX===void 0){var Qdk=document.createElement("template");_.K(Qdk,"\x3c!--css-build:shady--\x3e");Qdk.content.insertBefore(G59().content.cloneNode(!0),Qdk.content.firstChild);bOX=Qdk}AiL=bOX;wKv.call(Tpa,AiL.content);var M0$=document.head,ZO$=M0$.appendChild,OOe;if(KRX===void 0){var aVI=document.createElement("template");_.K(aVI,"\x3c!--css-build:shady--\x3e");aVI.content.insertBefore(HOL().content.cloneNode(!0),aVI.content.firstChild);KRX=aVI}OOe=KRX;ZO$.call(M0$,OOe.content);var z99;_.e1("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");z99=_.U("web_button_rework")&&_.ZL("BUTTON_REWORK")||_.U("web_button_rework_with_live");_.tP=function(){return _.I.apply(this,arguments)||this};
_.v(_.tP,_.I);_.tP.prototype.created=function(){this.openPopupConfig=_.M4("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.tP.prototype.onYtNavigate_=function(W){var l=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);l&&(this.ytOpenPopupBehavior.openPopup(l),W.stopPropagation(),W.preventDefault())};
_.rc.Object.defineProperties(_.tP,{template:{configurable:!0,enumerable:!0,get:function(){if(k5k===void 0){var W=document.createElement("template");_.K(W,"\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");W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
var l=W.content,V=l.insertBefore;uiv===void 0&&(uiv=document.createElement("template"));var f=uiv;V.call(l,f.content.cloneNode(!0),W.content.firstChild);k5k=W}W=k5k;return W}}});
_.tP.prototype.onYtNavigate_=_.tP.prototype.onYtNavigate_;_.a([_.F(_.eX.YtOpenPopupBehavior),_.z("design:type",Object)],_.tP.prototype,"ytOpenPopupBehavior",void 0);_.a([_.F(_.U9k.YtButtonBehavior),_.z("design:type",Object)],_.tP.prototype,"ytButtonBehavior",void 0);_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],_.tP.prototype,"onYtNavigate_",null);
_.a([_.Vq({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:z99})],_.tP);var Npv;var Yve=_.U("web_button_rework")&&_.ZL("BUTTON_REWORK")||_.U("web_button_rework_with_live"),sB=function(){var W=_.I.apply(this,arguments)||this;W.isPressed=!1;W.forceIconButton=!1;W.forceIconOnly=!1;W.forceModernIconButton=!1;W.skipCommandHandling=!1;W.alignByText=!1;W.fitToVisibleBounds=!0;W.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};W.onTap=function(l){_.FN(W.hostElement,"yt-service-request-sent-button-renderer",l)};
return W};
_.v(sB,_.I);_.t=sB.prototype;_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.t.onClick=function(W){var l,V=this.disabled||((l=this.data)==null?void 0:l.isDisabled);l=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");V&&l&&W.stopPropagation()};
_.t.computeIcon=function(){var W,l,V=(W=this.data)==null?void 0:(l=W.icon)==null?void 0:l.iconType;if(V)return _.IJ(V)};
_.t.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.t.handleUpdateButtonAction=function(W){W=_.k(W,AdL);var l=_.k(W==null?void 0:W.updatedButton,_.CE);if(this.data&&W&&l){var V=this.data;V.targetId&&W.targetId&&V.targetId===W.targetId&&(this.data=l)}};
_.rc.Object.defineProperties(sB.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var W=this;if(this.data){var l=SV4({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.FN(W.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.FN(W.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});l.alignByText=this.alignByText;return l}}}});
_.rc.Object.defineProperties(sB,{template:{configurable:!0,enumerable:!0,get:function(){if(Npv===void 0){var W=document.createElement("template");_.K(W,'\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>');Npv=W}W=Npv;return W}}});
sB.prototype.onClick=sB.prototype.onClick;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],sB.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],sB.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],sB.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],sB.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],sB.prototype,"isPressed",void 0);
_.a([_.b(),_.z("design:type",Object)],sB.prototype,"forceIconButton",void 0);_.a([_.b(),_.z("design:type",Object)],sB.prototype,"forceIconOnly",void 0);_.a([_.b(),_.z("design:type",Object)],sB.prototype,"forceModernIconButton",void 0);_.a([_.b(),_.z("design:type",Object)],sB.prototype,"skipCommandHandling",void 0);_.a([_.b(),_.z("design:type",Object)],sB.prototype,"alignByText",void 0);_.a([_.b(),_.z("design:type",Object)],sB.prototype,"buttonTooltipPosition",void 0);
_.a([_.b(),_.z("design:type",Object)],sB.prototype,"fitToVisibleBounds",void 0);_.a([_.b({computed:"computeTooltip(data)"}),_.z("design:type",Object)],sB.prototype,"tooltip",void 0);_.a([_.b(),_.z("design:type",Object)],sB.prototype,"overrides",void 0);_.a([_.b(),_.z("design:type",Boolean)],sB.prototype,"disabled",void 0);_.a([_.XI("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],sB.prototype,"onClick",null);
_.a([_.G("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.z("design:type",Object),_.z("design:paramtypes",[])],sB.prototype,"computedButtonShape",null);_.a([_.Vq({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!Yve,cssBuildOptOut:!0}),_.Vq({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!Yve,cssBuildOptOut:!0})],sB);var x9v;var e9e;var Lf=function(){var W=_.I.apply(this,arguments)||this;W.empty_=!0;W.loadTime=Infinity;W.pendingPaint=!1;W.hasChange_=!1;W.oldThumbnail_=null;W.oldDelayedSrc_="";W.objectURL_=null;return W};
_.v(Lf,_.I);_.t=Lf.prototype;_.t.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.t.ready=function(){var W=this.shouldShowPlaceholder_();_.pG(this.hostElement,"no-transition",!0);W&&this.hostElement.classList.add("with-placeholder")};
_.t.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.t.isThumbPreloaded_=function(W){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",W)};
_.t.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||qvX};
_.t.computeThumbnailSrc_=function(W){return W&&W.thumbnails?_.KP(W.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.t.computeAlt_=function(){var W=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&W||""};
_.t.thumbnailChanged_=function(){var W=_.L([this.thumbnail,this.oldThumbnail_]),l=W.next().value;W=W.next().value;this.oldThumbnail_=l;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(W=this.computeThumbnailSrc_(W),this.computeThumbnailSrc_(l)===W))return;_.U("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(l)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):l&&_.ZL("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.V9(this,this.onReload_):_.V9(this,this.onShow_):this.resetImage_();l&&(this.hostElement.style.opacity=""+l.opacity)}};
_.t.delayedSrcChanged_=function(){var W=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===W||this.resetImage_()};
_.t.setSrc_=function(W){W?(_.GS(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.GS(this.hostElement).querySelector("#img").src=W):(_.GS(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.t.resetImage_=function(){fDz(this.hostElement);this.empty_=!0;this.setSrc_(qvX);this.ytRendererBehavior.invalidate(!1)};
_.t.observePlaceholderColor_=function(){var W=this.thumbnail&&this.thumbnail.placeholderColor;W?this.hostElement.style.backgroundColor=_.ta(W):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.t.onLoad_=function(){_.GS(this.hostElement).querySelector("#img").src&&_.GS(this.hostElement).querySelector("#img").src!==qvX&&(V5n(this.hostElement),this.notifyOnLoaded&&_.FN(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.t.onError_=function(){var W=this;if(_.U("web_use_cache_for_image_fallback"))gbv(_.GS(this.hostElement).querySelector("#img").src).then(function(l){W.objectURL_=_.Yk(l).toString();W.setSrc_(W.objectURL_)}).catch(function(){_.U("kevlar_woffle_fallback_image")&&W.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.t.onPrescanVisible=function(){this.onShow_()};
_.t.onVisible=function(){if(_.U("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.t.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var W=this.computeSrc_();W!==_.GS(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(W))}};
_.t.onReload_=function(){this.empty_=!1;var W=this.computeSrc_();W!==_.GS(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(W))};
_.t.shouldShowPlaceholder_=function(){return _.U("kevlar_thumbnail_bg")};
Lf.prototype.observePlaceholderColor_=Lf.prototype.observePlaceholderColor_;Lf.prototype.delayedSrcChanged_=Lf.prototype.delayedSrcChanged_;Lf.prototype.thumbnailChanged_=Lf.prototype.thumbnailChanged_;_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],Lf.prototype,"alt",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Lf.prototype,"ariaHidden",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],Lf.prototype,"ariaLabel",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Lf.prototype,"hidden",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],Lf.prototype,"id",void 0);_.a([_.F(_.HL.YtVisibilityBehavior),_.z("design:type",Object)],Lf.prototype,"ytVisibilityBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Lf.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",String)],Lf.prototype,"delayedSrc",void 0);
_.a([_.b(),_.z("design:type",Object)],Lf.prototype,"thumbnail",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Lf.prototype,"loaded",void 0);_.a([_.b(),_.z("design:type",Boolean)],Lf.prototype,"notifyOnLoaded",void 0);_.a([_.b(),_.z("design:type",Number)],Lf.prototype,"height",void 0);_.a([_.b(),_.z("design:type",Number)],Lf.prototype,"width",void 0);_.a([_.b({value:function(){return"width"}}),
_.z("design:type",String)],Lf.prototype,"dimension",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Lf.prototype,"fit",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Lf.prototype,"fitHeight",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Lf.prototype,"fitWidth",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],Lf.prototype,"objectFit",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],Lf.prototype,"objectPosition",void 0);_.a([_.b(),_.z("design:type",String)],Lf.prototype,"preferredThumbnail",void 0);_.a([_.b({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.z("design:type",String)],Lf.prototype,"alt_",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],Lf.prototype,"sharedTooltipText",void 0);
_.a([_.b(),_.z("design:type",Boolean)],Lf.prototype,"ftlEligible",void 0);_.a([_.b({value:void 0}),_.z("design:type",String)],Lf.prototype,"observeHiddenOption",void 0);_.a([_.b({value:"observe_once"}),_.z("design:type",String)],Lf.prototype,"observePrescanOption",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Lf.prototype,"roundedContainer",void 0);
_.a([_.zS("thumbnail"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lf.prototype,"thumbnailChanged_",null);_.a([_.zS("delayedSrc"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lf.prototype,"delayedSrcChanged_",null);_.a([_.TS("thumbnail.placeholderColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lf.prototype,"observePlaceholderColor_",null);
_.a([_.Vq({is:"yt-img-shadow",disableElementRegistration:!0})],Lf);var qvX=_.ZL("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.GG()(Lf,"yt-img-shadow",function(){if(e9e===void 0){var W=document.createElement("template");_.K(W,'\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">');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;x9v===void 0&&(x9v=document.createElement("template"));var f=x9v;V.call(l,f.content.cloneNode(!0),W.content.firstChild);e9e=W}W=e9e;return W},{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 KPz;_.yM=new _.vd("SCREEN_MANAGER_TOKEN");KPz=new _.vd("LOG_INITIAL_SCREEN_TOKEN");var h9c=$YU({entities:{}});var Svk=lKS(h9c)(h9c.entities,{selectSfvAudioItemPlaybackState:function(W,l){var V,f;W=(f=_.mL(W,"sfvAudioItemCurrentlyPlayingEntity",l))!=null?f:void 0;return(V=W==null?void 0:W.sfvAudioItemPlaybackState)!=null?V:void 0},
playlistLoopStateEntitySelector:function(W,l){var V;return(V=_.mL(W,"playlistLoopStateEntity",l))!=null?V:void 0}});_.gy=_.Q(function(W){function l(W8){return _.k(W8,_.JJ)}
function V(){var W8=f().isTogglingDisabled||p()&&f().toggledIsTogglingDisabled,c8=W8||D()?p():!p();X(c8);O(!1);if(!W8){var B8;(B8=y)==null||B8(!!c8)}var Jx;((Jx=R)==null?0:Jx())||_.YQ(_.tY().resolve(_.yM),f().trackingParams);var H8;if(!c8||!l(f().defaultButtonViewModel)||(H8=R)!=null&&H8()){var Kq;!l(f().toggledButtonViewModel)||((Kq=R)==null?0:Kq())||_.YQ(_.tY().resolve(_.yM),l(f().toggledButtonViewModel).trackingParams)}else _.YQ(_.tY().resolve(_.yM),l(f().defaultButtonViewModel).trackingParams)}
var f=W.data,r=W.buttonShapeOverrides,R=W.disableExplicitClickLogging,y=W.onToggle,P=W.style,n=W.useOutlinedIcon,B=W.className,d=function(){var W8,c8;return p()?(W8=W.animatedTextPropsToggled)==null?void 0:W8.call(W):(c8=W.animatedTextPropsDefault)==null?void 0:c8.call(W)},J=_.v4(function(){return d()?Object.assign({},d(),{shouldAnimate:w()}):void 0},void 0,"Zp4uoe"),D=function(){var W8;
return((W8=x())==null?void 0:W8.isToggled)!==void 0},u=_.L(_.X3(function(){var W8,c8,B8;
return D()?(W8=x())==null?void 0:W8.isToggled:(B8=r==null?void 0:(c8=r())==null?void 0:c8.toggled)!=null?B8:f().isToggled})),H=u.next().value;
u=u.next().value;var p=H,X=u;u=_.L(_.X3(function(){var W8,c8;return(W8=W.animatedTextPropsToggled)==null?void 0:(c8=W8.call(W))==null?void 0:c8.shouldAnimate}));
H=u.next().value;u=u.next().value;var w=H,O=u;H=_.L(_.J4(!1,void 0,"mq3Zfe"));var S=H.next().value,N=H.next().value,x=_.$h(function(W8){a:{var c8=f().entityKey,B8=f().toggledStateEntitySelectorType;if(B8)switch(B8){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!c8)break;W8=Svk.selectSfvAudioItemPlaybackState(W8,c8);if(W8==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){W8={isToggled:!0};break a}if(W8){W8={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":W8=
{isToggled:_.fKg(W8).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":W8={isToggled:_.fKg(W8).includes("engagement-panel-live-chat-item-section")};break a;default:_.Qe(new _.bP("Error: entitySelectorType defined but not matched in selector.",W8,B8))}W8=void 0}return W8}),Y=function(){return Object.assign({},r==null?void 0:r(),{onToggle:V,
toggleable:!0,toggled:p(),focused:S()})};
return _.C("toggle-button-view-model",{"on:focusin":_.ip(function(){var W8=_.tY().resolve(_.R0(_.Q5));W8&&N(W8.isKeyBoardInUse());return!1}),
"on:focusout":_.ip(function(){N(!1);return!1})},_.C(_.c,{cond:function(){return p()?l(f().toggledButtonViewModel):l(f().defaultButtonViewModel)},
then:function(W8){return _.C(_.Nq,{data:W8,className:B,style:P,useOutlinedIcon:n,buttonOverrides:Y,animatedTextProps:J})}}))},"E");
_.gy.idomCompat={callbacks:{onToggle:!0}};_.HI(_.Q(function(W){return _.C("yt-toggle-button-view-model",{class:function(){var l;return(l=W.scopingClassName)==null?void 0:l.call(W)}},_.C(_.gy,{data:function(){var l;
return(l=W.data)==null?void 0:l.call(W)},
buttonShapeOverrides:function(){var l;return(l=W.overrides)==null?void 0:l.call(W)},
animatedTextPropsDefault:function(){var l;return(l=W.animatedTextPropsDefault)==null?void 0:l.call(W)},
animatedTextPropsToggled:function(){var l;return(l=W.animatedTextPropsToggled)==null?void 0:l.call(W)},
disableExplicitClickLogging:function(){var l;return(l=W.disableExplicitClickLogging)==null?void 0:l.call(W)},
onToggle:function(l){var V;return(V=W.onToggle)==null?void 0:V.call(W,l)},
style:function(){var l;return(l=W.style)==null?void 0:l.call(W)},
useOutlinedIcon:function(){var l;return(l=W.useOutlinedIcon)==null?void 0:l.call(W)},
className:function(){var l;return(l=W.className)==null?void 0:l.call(W)}}))},"F"),"yt-toggle-button-view-model",{props:{data:_.pA,
buttonShapeOverrides:_.pA,overrides:_.pA,animatedTextPropsDefault:_.pA,animatedTextPropsToggled:_.pA,disableExplicitClickLogging:_.pA,onToggle:_.kh,style:_.pA,useOutlinedIcon:_.pA,className:_.pA,scopingClassName:_.pA}});var PB=function(){return _.I.apply(this,arguments)||this};
_.v(PB,_.I);PB.prototype.onTap=function(W){W.stopPropagation();W=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.Nr("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:W})):this.ytLiveChatReduxBehavior.dispatch(_.MB("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:W}))};
_.rc.Object.defineProperties(PB.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.engagementState)==null?void 0:W.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=_.k(this.data.toggleButton,_.Ub),l;if(Number(((l=this.likeCountState)==null?void 0:l.likeCountIfIndifferentNumber)||"0")===0){var V;l=((V=this.data.likeCountPlaceholder)==null?void 0:V.content)||""}else{var f,r,R;l=((f=this.likeCountState)==null?void 0:(r=f.likeCountIfIndifferent)==null?void 0:r.content)||((R=this.data.likeCountPlaceholder)==null?void 0:R.content)||""}var y,P;V=((y=this.likeCountState)==null?void 0:(P=
y.likeCountIfLiked)==null?void 0:P.content)||"1";y=_.k(W.toggledButtonViewModel,_.JJ);return Object.assign({},W,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.k(W.defaultButtonViewModel,_.JJ),{title:l})},toggledButtonViewModel:{buttonViewModel:Object.assign({},y,{title:V})}})}}}});
PB.prototype.onTap=PB.prototype.onTap;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],PB.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.DS),_.z("design:type",Object)],PB.prototype,"ytLiveChatReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],PB.prototype,"data",void 0);
_.a([_.b({selectorArgs:["data.likeCountEntityKey"],selector:rbg}),_.z("design:type",Object)],PB.prototype,"likeCountState",void 0);_.a([_.b({selectorArgs:["data.engagementStateKey"],selector:tR6}),_.z("design:type",Object)],PB.prototype,"engagementState",void 0);_.a([_.G("data","engagementState"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],PB.prototype,"isLiked",null);
_.a([_.G("data","likeCountState","isLiked"),_.z("design:type",Object),_.z("design:paramtypes",[])],PB.prototype,"toggleButton",null);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],PB.prototype,"onTap",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],PB);
_.Z(PB,"yt-live-chat-like-button-view-model",function(){if($fZ===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;E4a===void 0&&(E4a=document.createElement("template"));var f=E4a;V.call(l,f.content.cloneNode(!0),W.content.firstChild);$fZ=W}W=$fZ;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var EKX;var $9v;var nf=function(){return _.I.apply(this,arguments)||this};
_.v(nf,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],nf.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],nf.prototype,"data",void 0);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],nf);
_.Z(nf,"yt-live-chat-paid-message-footer-renderer",function(){if($9v===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;EKX===void 0&&(EKX=document.createElement("template"));var f=EKX;V.call(l,f.content.cloneNode(!0),W.content.firstChild);$9v=W}W=$9v;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var WDX;var lDB;var V59;var fDM,rXX=function(){if(fDM!==void 0)return fDM;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;V59===void 0&&(V59=document.createElement("template"));var f=V59;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return fDM=W};var Cf=function(){return _.I.apply(this,arguments)||this};
_.v(Cf,_.I);Cf.prototype.onTap=function(W){W.stopPropagation()};
_.rc.Object.defineProperties(Cf.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=_.k(this.data.replyButton,_.JJ),l,V,f,r,R,y,P,n=Number(((l=this.replyCountState)==null?void 0:l.replyCountNumber)||"0")===0?(V=this.data)==null?void 0:(f=V.replyCountPlaceholder)==null?void 0:f.content:((r=this.replyCountState)==null?void 0:(R=r.replyCount)==null?void 0:R.content)||((y=this.data)==null?void 0:(P=y.replyCountPlaceholder)==null?void 0:P.content)||"",B;return Object.assign({},
W,{title:n,accessibilityText:(B=this.replyCountState)==null?void 0:B.replyButtonAccessibilityText})}}}});
_.rc.Object.defineProperties(Cf,{template:{configurable:!0,enumerable:!0,get:function(){return rXX()}}});
Cf.prototype.onTap=Cf.prototype.onTap;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Cf.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Cf.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.DS),_.z("design:type",Object)],Cf.prototype,"ytLiveChatReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Cf.prototype,"data",void 0);
_.a([_.b({selectorArgs:["data.replyCountEntityKey"],selector:function(W,l){return _.mL(W.entities,"replyCountEntity",l)}}),
_.z("design:type",Object)],Cf.prototype,"replyCountState",void 0);_.a([_.G("data","replyCountState"),_.z("design:type",Object),_.z("design:paramtypes",[])],Cf.prototype,"buttonViewModel",null);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Cf.prototype,"onTap",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],Cf);
_.Z(Cf,"yt-live-chat-reply-button-view-model",function(){return rXX()},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var R01;var t51;var cB=function(){var W=_.I.apply(this,arguments)||this;W.ariaLabel="";return W};
_.v(cB,_.I);
cB.prototype.dataChanged=function(){for(var W=(0,_.j3)(_.GS(this.hostElement).querySelector("#image"));W.firstChild;)W.removeChild(W.firstChild);if(this.data)if(this.data.icon){var l=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(l.polymerController.icon="yt-sys-icons:shield-filled",l.polymerController.defaultToFilled=!0):l.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();W.appendChild(l)}else if(this.data.customThumbnail){l=document.createElement("img");
var V=_.qvY(this.data.customThumbnail.thumbnails,16);V?(l.src=V,W.appendChild(l),l.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Qe(new _.bP("Could not compute URL for thumbnail",this.data.customThumbnail))}};
cB.prototype.identity=function(W){return W};
cB.prototype.computeType=function(W){return pk(W||void 0)};
cB.prototype.dataChanged=cB.prototype.dataChanged;_.a([_.b(),_.z("design:type",Object)],cB.prototype,"data",void 0);_.a([_.b({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.z("design:type",Object)],cB.prototype,"ariaLabel",void 0);_.a([_.b({computed:"computeType(data)",reflectToAttribute:!0}),_.z("design:type",String)],cB.prototype,"type",void 0);
_.a([_.b({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.z("design:type",String)],cB.prototype,"sharedTooltipText",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.U("live_chat_enable_new_moderator_badge")}}),
_.z("design:type",Boolean)],cB.prototype,"enableNewModeratorBadge",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cB.prototype,"dataChanged",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],cB);
_.Z(cB,"yt-live-chat-author-badge-renderer",function(){if(t51===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;R01===void 0&&(R01=document.createElement("template"));var f=R01;V.call(l,f.content.cloneNode(!0),W.content.firstChild);t51=W}W=t51;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var syL;var LDk;var BB=function(){return _.I.apply(this,arguments)||this};
_.v(BB,_.I);_.t=BB.prototype;_.t.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"}}}}};
_.t.computeBadgesInsideChip=function(W){return W?W.filter(function(l){return pk(l.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.t.computeBadgesOutsideChip=function(W){return this.prependChatBadges||!W?[]:W.filter(function(l){l=pk(l.liveChatAuthorBadgeRenderer);return l!=="verified"&&l!=="owner"})};
_.t.computeBadgesBeforeChip=function(W){return this.prependChatBadges&&W?W.filter(function(l){l=pk(l.liveChatAuthorBadgeRenderer);return l!=="verified"&&l!=="owner"}):[]};
_.t.computeIsHighlighted=function(W,l){var V=!!nqJ(W,"owner"),f=!!nqJ(W,"verified");W=!!nqJ(W,"moderator");return(V||f&&!W)&&!l};
_.t.computeAuthorType=function(W){return Pfz(W)};
_.t.computeAuthorClass=function(W,l){return l?(W?W+" ":"")+"single-line":W};
_.t.onSeedColorChanged=function(){_.U("live_chat_author_name_color_usernames")||_.U("live_chat_seed_color_usernames")||_.U("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):_.U("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
BB.prototype.onSeedColorChanged=BB.prototype.onSeedColorChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],BB.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],BB.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],BB.prototype,"authorName",void 0);_.a([_.b(),_.z("design:type",Array)],BB.prototype,"authorBadges",void 0);
_.a([_.b({computed:"computeAuthorType(authorBadges)"}),_.z("design:type",String)],BB.prototype,"authorType",void 0);_.a([_.b({computed:"computeAuthorClass(authorType, singleLine)"}),_.z("design:type",String)],BB.prototype,"authorClass",void 0);_.a([_.b({computed:"computeBadgesInsideChip(authorBadges)"}),_.z("design:type",Array)],BB.prototype,"badgesInsideChip",void 0);_.a([_.b({computed:"computeBadgesOutsideChip(authorBadges)"}),_.z("design:type",Array)],BB.prototype,"badgesOutsideChip",void 0);
_.a([_.b({computed:"computeBadgesBeforeChip(authorBadges)"}),_.z("design:type",Array)],BB.prototype,"badgesBeforeChip",void 0);_.a([_.b({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.z("design:type",Boolean)],BB.prototype,"isHighlighted",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],BB.prototype,"singleLine",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],BB.prototype,"disableHighlighting",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],BB.prototype,"dashboardMoneyFeed",void 0);_.a([_.b({value:_.U("live_chat_prepend_badges"),reflectToAttribute:!0}),_.z("design:type",Boolean)],BB.prototype,"prependChatBadges",void 0);_.a([_.b(),_.z("design:type",String)],BB.prototype,"authorNameColor",void 0);_.a([_.Aa("#author-name"),_.z("design:type",HTMLDivElement)],BB.prototype,"username",void 0);
_.a([_.TS("authorNameColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BB.prototype,"onSeedColorChanged",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],BB);
_.Z(BB,"yt-live-chat-author-chip",function(){if(LDk===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;syL===void 0&&(syL=document.createElement("template"));var f=syL;V.call(l,f.content.cloneNode(!0),W.content.firstChild);LDk=W}W=LDk;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var yXI;var gbL;var dy=function(){var W=_.I.apply(this,arguments)||this;W.debounceCommand=_.Zh(function(l){W.ytComponentBehavior.resolveCommand(l)},1500);
return W};
_.v(dy,_.I);dy.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var W=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",l,V,f=this.isHearted?(l=this.data)==null?void 0:l.unheartCommand:(V=this.data)==null?void 0:V.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.Nr("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:W}));(W=_.fP(f))&&this.debounceCommand(W)}};
_.rc.Object.defineProperties(dy.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var W,l;if(!((W=this.data)==null?0:(l=W.creatorThumbnail)==null?0:l.sources))return{};W={thumbnails:[]};l={};l.url=this.data.creatorThumbnail.sources[0].url;W.thumbnails.push(l);return W}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((l=this.engagementState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((l=this.engagementState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((l=this.engagementState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((V=this.engagementState)==null?void 0:V.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}}});
dy.prototype.onTap=dy.prototype.onTap;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],dy.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.DS),_.z("design:type",Object)],dy.prototype,"ytLiveChatReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],dy.prototype,"data",void 0);
_.a([_.b({selectorArgs:["data.engagementStateKey"],selector:tR6}),_.z("design:type",Object)],dy.prototype,"engagementState",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],dy.prototype,"thumbnailDetails",null);_.a([_.G("data","engagementState"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],dy.prototype,"isHearted",null);_.a([_.G("data","engagementState"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],dy.prototype,"isEditable",null);
_.a([_.G("data","engagementState"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],dy.prototype,"showCreatorView",null);_.a([_.G("data","engagementState"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],dy.prototype,"showButton",null);_.a([_.G("data","isHearted"),_.z("design:type",String),_.z("design:paramtypes",[])],dy.prototype,"label",null);_.a([_.G("data","isHearted"),_.z("design:type",Object),_.z("design:paramtypes",[])],dy.prototype,"heartHoverText",null);
_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dy.prototype,"onTap",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],dy);
_.Z(dy,"yt-live-chat-creator-heart-view-model",function(){if(gbL===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;yXI===void 0&&(yXI=document.createElement("template"));var f=yXI;V.call(l,f.content.cloneNode(!0),W.content.firstChild);gbL=W}W=gbL;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var JP=function(){};
_.v(JP,zo);JP.prototype.JSC$13120_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:CN("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
JP.prototype.getApiPaths=function(){return[]};
JP.prototype.getExtension=function(){};
JP.prototype.JSC$13120_buildRequest=function(){};var P8M={},nbB=(P8M.GET_DATASYNC_IDS=YV(JP),P8M);var C8a,cXX,BXe,sbL,DP,DEB,CUc,JXk,dEc;C8a="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");cXX=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.ty=function(W,l,V,f,r,R,y,P,n){this.endpointMap=W;this.networkManager=l;this.authService=V;this.responseProcessorMap=f;this.innertubeResponseStore=r;this.contextProcessors=R;this.asyncContextProcessors=y;this.localInnertubeRouter=P;this.requestSequencer=n;this.inflightRequests=new Map;W.signalEndpointMap||(W.signalEndpointMap={});W.signalEndpointMap=Object.assign({},nbB,W.signalEndpointMap)};
BXe=function(W,l,V,f,r,R,y,P,n){if(_.ty.instance!==void 0){if(f=_.ty.instance,W=[W!==f.endpointMap,l!==f.networkManager,V!==f.authService,r!==f.innertubeResponseStore,R!==f.contextProcessors,y!==f.asyncContextProcessors,P!==f.localInnertubeRouter],W.some(function(B){return B}))throw new _.bP("InnerTubeTransportService is already initialized",W);
}else _.ty.instance=new _.ty(W,l,V,f,r,R,y,P,n)};
_.Lv=function(W,l,V){var f=f===void 0?mS1:f;var r=CUc(W,l);return r?new _.Dx(function(R,y){var P,n,B,d,J;return _.g(function(D){switch(D.nextAddress){case 1:return D.yield(r,2);case 2:P=D.yieldResult;n=P.JSC$13120_getRequest(l,V,f);if(!n){y(new _.bP("Error: Failed to build request for command.",l));D.jumpTo(0);break}g_(n.input);d=((B=n.requestShell)==null?void 0:B.mode)==="cors"?"cors":void 0;if(W.authService.syncHeaders){J=dEc(n.config,d);D.jumpTo(4);break}return D.yield(JXk(n.config,d),5);case 5:J=
D.yieldResult;case 4:R(DEB(W,n,J)),_.ju(D)}})}):_.eM(new _.bP("Error: No request builder found for command.",l))};
sbL=function(W,l,V,f){var r=r===void 0?mS1:r;var R,y,P,n,B,d,J,D,u,H,p,X,w,O,S,N,x,Y;return _.g(function(W8){switch(W8.nextAddress){case 1:R=tdU(l,W.endpointMap);if(!R)throw new _.bP("Error: No streaming request builder found for command",l);y=R.JSC$13120_getRequest(l,V,r);if(!y)throw new _.bP("Failed to build YtRequest for streaming Command",l);if((P=W.localInnertubeRouter)==null||!P.shouldPreferLocalResponse(y.input,y.innerTubeRequest)){W8.jumpTo(2);break}return W8.yield(W.localInnertubeRouter.localInnertubeResponse(y.input,
y.innerTubeRequest),3);case 3:return n=W8.yieldResult,B={},n.playerResponse&&(DP(W,n.playerResponse,y),B.player=n.playerResponse,(d=f)==null||d(B,n)),n.watchNextResponse&&(DP(W,n.watchNextResponse,y),B.content=n.watchNextResponse,(J=f)==null||J(B,n)),W8.return(B);case 2:u=((D=y.requestShell)==null?void 0:D.mode)==="cors"?"cors":void 0;if(W.authService.syncHeaders){H=dEc(y.config,u);W8.jumpTo(4);break}return W8.yield(JXk(y.config,u),5);case 5:H=W8.yieldResult;case 4:return w=(X=(p=y.requestShell)==
null?void 0:p.headers)!=null?X:{},y.requestShell=Object.assign({},y.requestShell,{headers:Object.assign({},w,H)}),O=Object.assign({},y.requestShell),S=JSON.stringify(y.innerTubeRequest),y.requestShell.method==="POST"&&(O=Object.assign({},O,{body:S})),N=function(c8,B8){DP(W,B8.playerResponse||B8.watchNextResponse||B8.reelItemWatchResponse||B8.reelWatchSequenceResponse,y);f==null||f(c8,B8)},x={},W8.yield(UEM(W.networkManager,y.input,O,N),6);
case 6:return x=W8.yieldResult,((Y=y.config)==null?0:Y.responseTick)&&_.Wy(y.config.responseTick),W8.return(x)}})};
_.B3=function(W,l,V,f,r){r=r===void 0?{authStrategy:{identity:mS1}}:r;var R=R===void 0?!0:R;var y=function(){};
y=szj(R5U(V));l.context||(l.context=_.uVS(f,R));return new _.Dx(function(P){var n,B,d,J,D;return _.g(function(u){if(u.nextAddress==1)return n=e8z(V),B=_.Ph(n),W.authService.syncHeaders?(d=dEc(r,B),u.jumpTo(2)):u.yield(JXk(r,B),3);u.nextAddress!=2&&(d=u.yieldResult);J=qsv(e8z(V));D={input:J,requestShell:CN(J),innerTubeRequest:l,config:r};P(DEB(W,D,d,y));_.ju(u)})})};
DP=function(W,l,V){var f;if(l&&!(l==null?0:(f=l.sequenceMetaData)==null?0:f.skipProcessing)&&W.responseProcessorMap){f=_.L(C8a);for(var r=f.next();!r.done;r=f.next())r=r.value,W.responseProcessorMap[r]&&W.responseProcessorMap[r].handleResponse(l,V)}};
DEB=function(W,l,V,f){f=f===void 0?function(){}:f;
var r,R,y,P,n,B,d,J,D,u,H,p,X,w,O,S,N,x,Y,W8,c8,B8,Jx,H8,Kq,Z4,Ax,sM,Ta,ck,Wk,D$,Bk,iB,p2,SL,RY,lB,kc,n2;return _.g(function(vk){switch(vk.nextAddress){case 1:y=(r=l.config)==null?void 0:(R=r.storeStrategy)==null?void 0:R.storeKey;if(!(y&&W.innertubeResponseStore&&W.innertubeResponseStore.has(y))||((P=l.config)==null?0:(n=P.storeStrategy)==null?0:n.disableCache)){vk.jumpTo(2);break}return vk.yield(W.innertubeResponseStore.get(y),3);case 3:if((B=vk.yieldResult)&&!B.isExpired())return vk.return(Promise.resolve(_.c0(B)));
case 2:if(!((d=l)==null?0:(J=d.innerTubeRequest)==null?0:J.context)){vk.jumpTo(4);break}D=l.innerTubeRequest.context;if(!(W.asyncContextProcessors&&W.asyncContextProcessors.length>0)){vk.jumpTo(5);break}u=[];H=_.L(W.asyncContextProcessors);for(p=H.next();!p.done;p=H.next())X=p.value,w=X.processContext(l),w.wrappedPromise_&&u.push(w.wrappedPromise_);if(!(u.length>0)){vk.jumpTo(5);break}return vk.yield(Promise.all(u),5);case 5:O=_.L(W.contextProcessors||[]),S=O.next();case 8:if(S.done){vk.jumpTo(4);
break}N=S.value;return vk.yield(N.processContext(D),9);case 9:S=O.next();vk.jumpTo(8);break;case 4:if((x=W.localInnertubeRouter)==null||!x.shouldPreferLocalResponse(l.input,l.innerTubeRequest)){vk.jumpTo(12);break}return vk.yield(W.localInnertubeRouter.localInnertubeResponse(l.input,l.innerTubeRequest),13);case 13:return Y=vk.yieldResult,DP(W,Y,l),vk.return(Y);case 12:return(B8=(c8=l.config)==null?void 0:c8.requestKey)&&W.inflightRequests.has(B8)?W8=W.inflightRequests.get(B8):(Jx=JSON.stringify(l.innerTubeRequest),
Z4=(Kq=(H8=l.requestShell)==null?void 0:H8.headers)!=null?Kq:{},l.requestShell=Object.assign({},l.requestShell,{headers:Object.assign({},Z4,V)}),Ax=Object.assign({},l.requestShell),l.requestShell.method==="POST"&&(Ax=Object.assign({},Ax,{body:Jx})),((sM=l.config)==null?0:sM.requestTick)&&_.Wy(l.config.requestTick),Ta=function(){return W.networkManager.fetch(l.input,Ax,l.config)},W8=W.requestSequencer?uh9(W.requestSequencer,l,Ta):Ta(),B8&&W.inflightRequests.set(B8,W8)),vk.yield(W8,14);
case 14:(ck=vk.yieldResult)&&_.U("web_streaming_player")&&Array.isArray(ck)&&(ck=ck[0].playerResponse);if(ck&&"error"in ck&&((Wk=ck)==null?0:(D$=Wk.error)==null?0:D$.details))for(Bk=ck.error.details,iB=_.L(Bk),p2=iB.next();!p2.done;p2=iB.next())SL=p2.value,(RY=SL["@type"])&&cXX.indexOf(RY)>-1&&(delete SL["@type"],ck=SL);B8&&W.inflightRequests.has(B8)&&W.inflightRequests.delete(B8);((lB=l.config)==null?0:lB.responseTick)&&_.Wy(l.config.responseTick);if(ck||(kc=W.localInnertubeRouter)==null||!kc.canProvideFallbackResponse(l.input,
l.innerTubeRequest)){vk.jumpTo(15);break}return vk.yield(W.localInnertubeRouter.localFallbackInnertubeResponse(l.input,l.innerTubeRequest),16);case 16:ck=vk.yieldResult;case 15:return DP(W,ck,l),((n2=l.config)==null?0:n2.processorTick)&&_.Wy(l.config.processorTick),f(),vk.return(ck||void 0)}})};
_.s_=function(W,l){return RAj(l,W.endpointMap)};
CUc=function(W,l){W=sCn(l,W.endpointMap);if(W!==void 0)return Promise.resolve(W)};
JXk=function(W,l){var V,f,r,R;return _.g(function(y){if(y.nextAddress==1){r=(V=W)==null?void 0:(f=V.authStrategy)==null?void 0:f.sessionIndex;var P=y.yield;var n=_.jy(wlJ({sessionIndex:r}));return P.call(y,n,2)}R=y.yieldResult;return y.return(Promise.resolve(Object.assign({},LXS(l),R)))})};
dEc=function(W,l){var V;W=W==null?void 0:(V=W.authStrategy)==null?void 0:V.sessionIndex;V=wlJ({sessionIndex:W});return Object.assign({},LXS(l),V)};var kZv,vbZ,Hgk,KD$,FDa,GZB,obB,jya,kI,ID9,ige,p6I,mEM;kZv=0;vbZ=/tone[1-5]/;Hgk=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");KD$="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
FDa=Number.MAX_SAFE_INTEGER;GZB=RegExp("\ufe0f","g");_.UB=function(W){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;W&&_.bg1(this,W)};
_.bg1=function(W,l){try{_.Dj(l,{context:W,onSuccess:function(f,r){Array.isArray(r)?W.load(r):(f=new _.bP("Emoji manager JSON response was not an array!",{response:r}),_.wv(f))},
onError:function(f){f=new _.bP("Failed to retrieve emoji manager initial JSON data!",{url:l,statusCode:_.C7(f).toString()});_.Qe(f)}})}catch(f){var V=new _.bP("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:l});
_.Qe(V)}};
_.UB.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.UB.prototype.load=function(W,l){if(l)if(W.length)W=W.concat(l.emojis);else{this.emojis=l.emojis;this.emojiMap=l.emojiMap;this.emojiShortcutMap=l.emojiShortcutMap;this.emojiShortcutCharMap=p6I(l);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=l.emojiRegex;return}this.emojis=[].concat(_.QK(new Set(this.emojis.concat(W))));this.hasInitializedShortcutCharMap=!1;W=Array(this.emojis.length);for(l=0;l<this.emojis.length;l++){var V=this.emojis[l];if(V.emojiId){this.emojiMap[V.emojiId]=V;this.emojiMap[V.emojiId].index=
l;for(var f=0;V.shortcuts&&f<V.shortcuts.length;f++)this.emojiShortcutMap[V.shortcuts[f].toLocaleLowerCase()]=V;W[l]=V.isCustomEmoji&&V.shortcuts?V.shortcuts[0]:V.emojiId}}W.sort(function(r,R){return R.length-r.length});
if(W.length)try{this.emojiRegex=new RegExp(W.join("|").replace("*","\\*"),"gi")}catch(r){this.emojiRegex=/$./}else this.emojiRegex=/$./};
obB=function(W,l){l=_.L(l);for(var V=l.next();!V.done;V=l.next()){var f=V.value;if(f.emojiId&&W.emojiMap[f.emojiId]){V=Object.assign({},W.emojiMap[f.emojiId],f);W.emojiMap[f.emojiId]=V;var r=void 0;V.index&&((r=W.emojis[V.index])==null?void 0:r.emojiId)===f.emojiId&&(W.emojis[V.index]=V);f=void 0;if((f=V.shortcuts)==null?0:f.length)for(W.hasInitializedShortcutCharMap=!1,f=_.L(V.shortcuts),r=f.next();!r.done;r=f.next())W.emojiShortcutMap[r.value.toLocaleLowerCase()]=V}}};
jya=function(W){var l,V;_.g(function(f){if(f.nextAddress==1)return f.yield(_.RB.getInstance(),2);if(f.nextAddress!=3)return(l=f.yieldResult)?f.yield(l.get("ytlc-emoji-pref"),3):f.return();(V=f.yieldResult)&&obB(W,Object.keys(V).map(function(r){return{emojiId:r,stickyPrefId:V[r]}}).filter(function(r){return!!r.emojiId&&!!r.stickyPrefId}));
_.ju(f)})};
_.u5=function(W,l,V){return(W=W.emojiMap[l])&&(!W.isLocked||V!==void 0&&V)?W:void 0};
kI=function(W,l,V){V=_.u5(W,l,V===void 0?!1:V);var f=l.match("\u200d");V&&W.skinTone!==0&&(W=(f==null?void 0:f.length)===1?_.u5(W,l.replace("\u200d",Hgk[W.skinTone]+"\u200d")):_.u5(W,l+Hgk[W.skinTone]))&&(V=W);return V};
ID9=function(W,l){var V=W.emojiMap[l];return(V==null?0:V.stickyPrefId)?W.emojiMap[V.stickyPrefId]:kI(W,l)};
_.Hf=function(W,l){W=W.emojiShortcutMap[l.toLocaleLowerCase()];return!W||W.isLocked?null:W};
ige=function(W,l,V){return p6I(W,V===void 0?!1:V)[l]||{}};
p6I=function(W,l){l=l===void 0?!1:l;if(!W.hasInitializedShortcutCharMap){W.hasInitializedShortcutCharMap=!0;for(var V=0;V<W.emojis.length;V++){var f=W.emojis[V];if(!(f.isLocked||l&&f.isCustomEmoji&&f.emojiId&&!W.pickerCustomEmojiIds.includes(f.emojiId)))for(var r=0;f.shortcuts&&r<f.shortcuts.length;r++){var R=f.shortcuts[r];R.startsWith(":_")&&f.isCustomEmoji&&(W.emojiShortcutCharMap[":_"]==null&&(W.emojiShortcutCharMap[":_"]=Object.create(null)),W.emojiShortcutCharMap[":_"][R]=f);if(!(R.length<3||
!f.isCustomEmoji&&vbZ.test(R))){var y=R.substr(0,3).toLocaleLowerCase();W.emojiShortcutCharMap[y]==null&&(W.emojiShortcutCharMap[y]=Object.create(null));W.emojiShortcutCharMap[y][R]=f}}}}return W.emojiShortcutCharMap};
_.UB.prototype.createEmoji=function(W,l){l=l===void 0?!0:l;var V=document.createElement("img");W.isCustomEmoji||V.classList.add("small-emoji");V.classList.add("emoji");V.classList.add("yt-formatted-string");V.src=W.image?_.KP(W.image.thumbnails,this.emojiSize)||"":"";var f=void 0;W.image&&W.image.accessibility&&W.image.accessibility.accessibilityData&&(f=W.image.accessibility.accessibilityData.label);V.alt=f?f:(W.isCustomEmoji&&W.shortcuts?W.shortcuts[0]:W.emojiId)||"";W.isCustomEmoji&&(V.dataset.emojiId=
W.emojiId);_.kt&&(V.setAttribute("contenteditable","false"),V.setAttribute("unselectable","on"));l&&(W.shortcuts&&W.shortcuts.length&&V.setAttribute("shared-tooltip-text",W.shortcuts[0]),V.id="emoji-"+kZv++);return V};
_.UB.prototype.createDocumentFragment=function(W,l,V,f){l=l===void 0?!1:l;V=V===void 0?!0:V;f=f===void 0?!1:f;W=W.replace(GZB,"");for(var r=document.createDocumentFragment(),R=0,y,P=0;(y=this.emojiRegex.exec(W))!=null;){var n=_.u5(this,y[0])||_.Hf(this,y[0]);!n||n.isCustomEmoji&&!l||(n=this.createEmoji(n,V),R!==y.index&&r.appendChild(document.createTextNode(W.substring(R,y.index))),r.appendChild(n),R=y.index+y[0].length,P++)}if(!f||P)return r.appendChild(document.createTextNode(W.substr(R))),r};
mEM=function(W,l,V){var f,r,R,y,P,n,B,d,J;return _.g(function(D){if(D.nextAddress==1){if(!l.emojiId||!W.emojiMap[l.emojiId])return D.return();f=Object.assign({},W.emojiMap[l.emojiId],{stickyPrefId:V});W.emojiMap[l.emojiId]=f;l.index&&((r=W.emojis[l.index])==null?void 0:r.emojiId)===l.emojiId&&(W.emojis[l.index]=f);if((R=l.shortcuts)==null?0:R.length)for(W.hasInitializedShortcutCharMap=!1,y=_.L(l.shortcuts),P=y.next();!P.done;P=y.next())n=P.value,W.emojiShortcutMap[n.toLocaleLowerCase()]=f;return D.yield(_.RB.getInstance(),
2)}if(D.nextAddress!=4)return(B=D.yieldResult)?D.yield(B.get("ytlc-emoji-pref"),4):D.jumpTo(0);J=(d=D.yieldResult)!=null?d:{};J[l.emojiId]=V;return D.yield(B.set("ytlc-emoji-pref",J,FDa),0)})};
_.vB=new _.UB;var w6e;_.HB={};
w6e={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.U("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:_.U("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 Ca(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 W=_.GS(this.hostElement||this).querySelector("#inline-action-button-container");W&&W.setAttribute("aria-hidden","true");this.menuButton=_.GS(this.hostElement).querySelector("#menu-button")},
attached:function(){var W=this.menuButton;W&&(W.addEventListener("focusin",_.mz(this,this.onMenuButtonFocus_)),W.addEventListener("focusout",_.mz(this,this.onMenuButtonBlur_)))},
detached:function(){var W=this.menuButton;W&&(W.removeEventListener("focusin",_.mz(this,this.onMenuButtonFocus_)),W.removeEventListener("focusout",_.mz(this,this.onMenuButtonBlur_)))},
identity:_.wS,truthy:function(W){return!!W},
computeTimestampString:function(W){return W?W.timestampText?this.getSimpleString(W.timestampText):this.TIME_FORMATTER.format(new Date(W.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(W){return W},
computeMenuVisible_:function(W,l){return W||l},
computeHasInlineActionButtons:function(W){if(!W)return!1;var l,V;return!((l=W.inlineActionButtons)==null||!l.length)||!((V=W.additionalInlineActionButtons)==null||!V.length)},
createDocumentFragmentFromString:function(W){var l=_.vB.createDocumentFragment.bind(_.vB),V;if((V=this.participantsManager)==null||!V.viewerRegex)return l(W);V=document.createDocumentFragment();for(var f=0,r;(r=this.participantsManager.viewerRegex.exec(W))!=null;){if(r.index>0){var R=":"+r[0]+":";if((_.u5(_.vB,R)||_.Hf(_.vB,R))&&W.indexOf(R)===r.index-1)continue}V.appendChild(l(W.substring(f,r.index)));f=document.createElement("span");f.appendChild(l(r[0]));f.classList.add("mention");V.appendChild(f);
f=r.index+r[0].length}V.appendChild(l(W.substring(f)));return V},
createDocumentFragment:function(W){var l=document.createDocumentFragment();if(W.simpleText)return l.appendChild(this.createDocumentFragmentFromString(W.simpleText)),l;if(!W.runs)return l;for(var V=0;V<W.runs.length;V++){var f=W.runs[V];if(f.emoji)l.appendChild(_.vB.createEmoji(f.emoji));else if(f.text)if(f.navigationEndpoint){var r=document.createElement("a");r.classList.add("yt-simple-endpoint");lpz(r,f.navigationEndpoint);_.GS(r).appendChild(this.createDocumentFragmentFromString(f.text));l.appendChild(r)}else l.appendChild(this.createDocumentFragmentFromString(f.text))}return l},
hasModerationOverlayVisible:function(){var W;return((W=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:W.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(W){W.composedPath().some(function(l){return(l=l instanceof Element?l:null)?l.tagName&&(l.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||l.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.U("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(W)},
colorFromDecimal:function(W){return ehg(W)},
markAsDeleted:function(W,l){this.set("data.deletedStateMessage",W);this.set("data.showOriginalContentMessage",l)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(W){if(this.data.contextMenuEndpoint){var l=_.tY().resolve(_.lm),V=this.data.contextMenuEndpoint,f;(f=_.ty.instance)&&_.s_(f,V)?(l=X6I(l,V),f=_.B3(f,{},l)):f=_.TXI(l,V);f.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);W&&W.stopPropagation()}},
handleGetContextMenuResponse_:function(W){var l=_.ty.instance;l&&_.s_(l,{liveChatEndpoint:{}})||(W=W.response);W.liveChatItemContextMenuSupportedRenderers&&W.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(W.liveChatItemContextMenuSupportedRenderers.menuRenderer);W.actions&&_.Gt(this.hostElement,"yt-live-chat-actions",[W.actions])},
handleGetContextMenuError:function(W){if(W instanceof Error||W instanceof Object||W instanceof String)var l=W;_.wv(new _.bP("Error encountered calling GetLiveChatItemContextMenu",l))},
showContextMenu_:function(W){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:W}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.FN(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.FN(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.HB.YtLiveChatItemBehavior=[w6e,_.uH.YtComponentBehavior,_.eX.YtOpenPopupBehavior];_.Kf=function(){};var AXB;var QyL;var M51;var ZgI;var Fj=function(){var W=_.I.apply(this,arguments)||this;W.active=!1;W.identity=_.wS;return W};
_.v(Fj,_.I);Fj.prototype.dataChanged=function(){this.active=!1};
Fj.prototype.onClick=function(){_.FN(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
Fj.prototype.dataChanged=Fj.prototype.dataChanged;_.a([_.b(),_.z("design:type",Object)],Fj.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Fj.prototype,"active",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Fj.prototype,"dataChanged",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],Fj);
_.Z(Fj,"yt-live-chat-text-input-field-suggestion",function(){if(ZgI===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;M51===void 0&&(M51=document.createElement("template"));var f=M51;V.call(l,f.content.cloneNode(!0),W.content.firstChild);ZgI=W}W=ZgI;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});_.GD=function(W,l,V){return CustomEvent.call(this,W,{detail:{value:l,path:V}})||this};
_.v(_.GD,CustomEvent);_.b5=function(){var W=_.I.apply(this,arguments)||this;W.viewerName=null;W.actionMap={"yt-live-chat-actions":"onChatMessage_"};W.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];W.PARTICIPANT_TIME_USEC_=3E8;return W};
_.v(_.b5,_.I);_.t=_.b5.prototype;_.t.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.t.addParticipant=function(W){var l=_.p8z(this.participants,W,function(f,r){f=f[Object.keys(f)[0]];r=r[Object.keys(r)[0]];f=String(_.dE(f.authorName)).toLowerCase();r=String(_.dE(r.authorName)).toLowerCase();return f<r?-1:f==r?0:1}.bind(this));
if(l>=0){var V=this.participants[l];V[Object.keys(V)[0]].timestampUsec&&this.splice("participants",l,1,W)}else this.splice("participants",-l-1,0,W);W=W[Object.keys(W)[0]];l=_.dE(W.authorName).toLocaleLowerCase();V=l.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(V)||(this.allParticipantsCharMap_[V]={});this.allParticipantsCharMap_[V][l]=W};
_.t.getAuthorsFromPrefix=function(W){return this.allParticipantsCharMap_.hasOwnProperty(W)?this.allParticipantsCharMap_[W]:null};
_.t.computeViewerRegex_=function(W){if(!W)return null;W=W.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var l=W.indexOf("@")===0&&_.U("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(l+W.replace(/ /g,"\\s*")+"|^"+W.replace(/ /g,"\\s*")+"$|^"+W.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+W.replace(/ /g,"\\s*")+"$|(?<=\\s)"+W.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.t.checkForStaleParticipants_=function(){var W=this;this.trimOldParticipants_();this.asyncHandle_&&utz(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.yq(function(){W.checkForStaleParticipants_()},3E4))};
_.t.onChatMessage_=function(W){var l=this,V=Date.now()*1E3;W.forEach(function(f){if(f=_.k(f,nDv)){f=f.item;var r=Object.keys(f)[0];l.SUPPORTED_ITEM_TYPES_.indexOf(r)!=-1&&f[r].timestampUsec>=V-l.PARTICIPANT_TIME_USEC_&&l.addParticipant(f)}},this);
this.checkForStaleParticipants_()};
_.t.trimOldParticipants_=function(){for(var W=Date.now()*1E3,l=this.participants.length-1;l>=0;l--){var V=this.participants[l];V=V[Object.keys(V)[0]];V.timestampUsec&&V.timestampUsec<W-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",l,1)}};
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],_.b5.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],_.b5.prototype,"viewerName",void 0);_.a([_.b({computed:"computeViewerRegex_(viewerName)"}),_.z("design:type",Object)],_.b5.prototype,"viewerRegex",void 0);_.a([_.b({value:function(){return[]},
notify:!0}),_.z("design:type",Array)],_.b5.prototype,"participants",void 0);_.a([_.Vq({is:"yt-live-chat-participants-manager",noInjection:!0})],_.b5);var Ogc=/.*([:@#].*?)$/,pf=/\u00a0/g,aDL=String.fromCharCode(160),z01={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"},o8=function(){var W=_.I.apply(this,arguments)||this;W.disabled=!1;W.liveChatRichMessageInput=null;W.messageInput=null;W.isValidWithNoInputText=!1;W.suggestions=[];W.emojiManager=_.vB;W.inputMethodEditorActive=
!1;W.suggestionIndex=-1;W.JSC$14124_lastSuggestionRange=null;return W};
_.v(o8,_.I);_.t=o8.prototype;_.t.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.t.attached=function(){_.vF&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.t.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.t.dataChanged=function(){if(!this.ignoreColorMapping){var W=!1,l={},V;for(V in z01)this.data&&this.data.hasOwnProperty(V)&&(l[z01[V]]=this.colorFromDecimal(this.data[V]),W=!0);W&&_.I1(this.hostElement,l)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.t.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.t.colorFromDecimal=function(W){W=Math.floor(Number(W));return"rgba("+[W>>16&255,W>>8&255,W&255,(W>>24&255)/255].join()+")"};
_.t.preventDrag=function(W){W.dataTransfer&&(W.dataTransfer.dropEffect="none");W.preventDefault()};
_.t.preventResize=function(W){W.returnValue=!1};
_.t.onInputChange=function(){var W=this.characterCount,l=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&l&&l.remove();if(!l&&this.characterCount>this.maxCharacterLimit){var V=window.getSelection();if(V){var f=V.getRangeAt(0);V.removeAllRanges();V.addRange(f)}}if(V=this.getCurrentRange())f=this.calculateTextBeforeRange(V),this.completeEmojisInRange(V,f,!0)||this.updateSuggestions(V,f);f=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(f);
_.FN(this.hostElement,"yt-live-chat-message-input-change",f);l&&this.characterCount===0&&l.remove();V&&V.commonAncestorContainer.parentElement.id==="input"&&V.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>W):V&&!V.collapsed&&V.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(W=this.input.childNodes.length-1;W>=0;W--)this.input.childNodes[W].nodeName==="BR"&&this.input.childNodes[W].remove()};
_.t.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.t.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var W=this.getCurrentRange();W&&W.commonAncestorContainer.parentElement.id==="input"&&W.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.t.mergeOverflowText=function(W){if(W){var l=document.createRange();l.selectNodeContents(W);l=l.extractContents();this.input.insertBefore(l,W)}};
_.t.checkRangeAtEndOfInput=function(){var W=this.getCurrentRange();if(W){var l=_.GS(this.hostElement).querySelector("#overflow-text"),V=document.createRange();l&&l.previousSibling?l.previousSibling instanceof HTMLImageElement?V.selectNode(l.previousSibling):V.selectNodeContents(l.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?V.selectNode(this.input.lastChild):V.selectNodeContents(this.input.lastChild));V.collapse(!1);return V.isPointInRange(W.startContainer,
W.startOffset)}return!1};
_.t.handleOverflowText=function(W){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var l=_.GS(this.hostElement).querySelector("#overflow-text"),V=this.getCurrentRange();this.input.normalize();W=this.checkRangeAtEndOfInput()&&W;this.mergeOverflowText(l);for(var f,r=0,R=0,y,P=this.input.childNodes,n=0;n<P.length;n++){var B=P[n];B instanceof Text?(R+=B.textContent.length,R>this.maxCharacterLimit&&(f=B,r=this.maxCharacterLimit+B.textContent.length-R)):B instanceof HTMLImageElement&&
(f=void 0,R=B.dataset.emojiId&&((f=this.data)==null?0:f.emojiCharacterCount)?R+this.data.emojiCharacterCount:R+B.alt.length,f=this.input,r=n);if(R>this.maxCharacterLimit&&f){y=document.createRange();y.collapse(!1);l?(R=this.input.lastChild.previousSibling,R instanceof Text?y.setEnd(this.input.lastChild.previousSibling,R.textContent.length):R instanceof HTMLImageElement&&y.setEnd(this.input,this.input.childNodes.length-1)):y.selectNodeContents(this.input);y.setStart(f,r);break}}y&&(f=!1,V&&(W=y.isPointInRange(V.startContainer,
V.startOffset-1)),l||(l=document.createElement("span"),l.id="overflow-text",l.textContent="",l.setAttribute("contenteditable","true"),_.GS(_.GS(this.hostElement).querySelector("#input")).appendChild(l),f=!0),l&&(V=y.extractContents(),l.insertBefore(V,l.firstChild),W&&l.firstChild&&(V=document.createRange(),f?V.setStartAfter(l.lastChild):V.setStartAfter(l.firstChild),V.collapse(!0),l=window.getSelection(),l.removeAllRanges(),l.addRange(V))))}};
_.t.checkForDuplicateSpans=function(){for(var W=0;W<this.input.childNodes.length;W++){var l=this.input.childNodes[W];if(l.nodeName==="SPAN"){var V=document.createRange();V.selectNodeContents(l);V=V.extractContents();this.input.insertBefore(V,l);l.remove()}}this.handleOverflowText(!0)};
_.t.getCurrentRange=function(){var W=window.getSelection();return W&&W.rangeCount?W.getRangeAt(0).cloneRange():null};
_.t.getInputRange=function(){var W=this.getCurrentRange();if(W){for(var l=W.commonAncestorContainer,V=!1,f=_.GS(this.hostElement).querySelector("#input");l;){if(l===f){V=!0;break}l=l.parentNode}V||(W=null)}W||(W=this.getRangeAtEnd());return W};
_.t.getRangeAtEnd=function(){var W=document.createRange(),l=_.GS(this.hostElement).querySelector("#input").lastChild;!l||l.nodeName!=="#text"&&l.nodeName!=="SPAN"?(W.selectNodeContents(_.GS(this.hostElement).querySelector("#input")),W.collapse(!1)):l.nodeName==="#text"?W.setStart(l,l.textContent.length):W.setStart(l,l.childNodes.length);return W};
_.t.getChatParticipantSuggestions=function(W,l,V,f){var r=_.U("live_chat_enable_handles_web_text_input_update");if(l)for(var R in l)if(R.indexOf(W)===0||r&&R.indexOf(V+W)===0){var y=l[R],P=_.dE(y.authorName);f.push({suggestion:{author:!0,authorType:V,image:y.authorPhoto,alt:P,text:P}});if(f.length>=64)break}};
_.t.getSuggestions=function(W){var l=[],V=W.substring(0,3),f=ige(_.vB,V,!0);if(f)for(var r in f)if(r.toLocaleLowerCase().indexOf(W)===0){var R=f[r];if(R&&R.emojiId){if(R=ID9(_.vB,R.emojiId)){var y=void 0,P=void 0,n=void 0,B=void 0,d=((y=R.image)==null?0:(P=y.accessibility)==null?0:(n=P.accessibilityData)==null?0:n.label)||R.isCustomEmoji?(B=R.shortcuts)==null?void 0:B[0]:R.emojiId;l.push({suggestion:{emoji:!0,image:R.image,alt:d,text:r,textToInsertWhenSelected:R.isCustomEmoji?r:d}})}if(l.length>=
64)break}}if(!this.participantsManager)return null;if(V.indexOf("@")===0||V.indexOf("#")===0)f=V.charAt(0),W=W.substring(1),r=_.U("live_chat_enable_handles_web_text_input_update"),V.indexOf("@")===0&&r&&(r=this.participantsManager.getAuthorsFromPrefix(V.substring(0,2)),this.getChatParticipantSuggestions(W,r,f,l)),V=V.substring(1),V=this.participantsManager.getAuthorsFromPrefix(V),this.getChatParticipantSuggestions(W,V,f,l);return l?l.sort(function(J,D){return D.suggestion.text<J.suggestion.text?-1:
D.suggestion.text===J.suggestion.text?0:1}):null};
_.t.insertSuggestion=function(W){var l=_.U("live_chat_enable_handles_web_text_input_update"),V=W.authorType;l=W.text.indexOf(V)===0&&l?W.text+aDL:V+W.text+aDL;W.emoji?this.insertTextAtRange(this.JSC$14124_lastSuggestionRange,W.textToInsertWhenSelected||""):W.author&&this.insertTextAtRange(this.JSC$14124_lastSuggestionRange,l)};
_.t.updateSuggestionsAtCaret=function(){var W=this.getCurrentRange();W&&this.updateSuggestions(W,this.calculateTextBeforeRange(W))};
_.t.offsetStartOfRangeBy=function(W,l){for(;l>0;)if(W.startOffset-l>=0){W.setStart(W.startContainer,W.startOffset-l);break}else{l=W.startContainer instanceof HTMLImageElement?l-W.startContainer.alt.length:l-W.startOffset;var V=W.startContainer.previousSibling;if(!V){W.setStart(W.startContainer,0);break}if(_.U("live_chat_require_space_for_autocomplete_emoji")){var f=void 0,r=void 0;W.setStart(V,((f=V)==null?void 0:(r=f.textContent)==null?void 0:r.length)||0)}else W.setStart(V,V.childNodes.length||
0)}};
_.t.updateSuggestions=function(W,l){var V=this;this.JSC$14124_lastSuggestionRange&&(this.JSC$14124_lastSuggestionRange.detach(),this.JSC$14124_lastSuggestionRange=null);if((l=Ogc.exec(l))&&l.length&&(l=l[l.length-1].toLocaleLowerCase(),l.length>2&&(this.offsetStartOfRangeBy(W,l.length),this.JSC$14124_lastSuggestionRange=W,(W=this.getSuggestions(l))&&W.length))){this.suggestions=W;_.V9(this,function(){_.GS(V.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(W.length-1);return}this.dropdown.opened=!1};
_.t.completeEmojisInRange=function(W,l,V){var f=l.replace(/[\s\xa0]+$/,"");l=l.length-f.length;f=f.split(" ");f=f[f.length-1].trim().toLocaleLowerCase();var r=f.lastIndexOf(":");if(V&&!l&&r!==f.length-1)return!1;r!==-1&&(V=f.lastIndexOf(":",r-1),V!==-1&&(f=f.substring(V)));if((V=_.Hf(_.vB,f))&&V.emojiId){V=ID9(_.vB,V.emojiId)||null;this.offsetStartOfRangeBy(W,f.length+l);var R,y,P,n;f=(((R=V)==null?0:R.isCustomEmoji)?(y=V)==null?void 0:(P=y.shortcuts)==null?void 0:P[0]:(n=V)==null?void 0:n.emojiId)||
"";l&&(f+=aDL);this.insertTextAtRange(W,f);this.dropdown.opened=!1;return!0}return!1};
_.t.onSuggestion=function(W){this.insertSuggestion(W.detail);this.dropdown.opened=!1};
_.t.onKeyPress=function(W){W.keyCode===13&&(W.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.FN(this.hostElement,"yt-live-chat-send-message"))};
_.t.completeEmojis=function(){var W=document.createRange(),l=_.GS(this.hostElement).querySelector("#input").lastChild;l?W.setStart(l,l.childNodes.length):(W.selectNodeContents(_.GS(this.hostElement).querySelector("#input")),W.collapse(!1));this.completeEmojisInRange(W,this.calculateTextBeforeRange(W),_.U("live_chat_require_space_for_autocomplete_emoji"))};
_.t.maybePreventTextFormatting=function(W){!_.Gy||!W.ctrlKey&&!W.metaKey||W.keyCode!==66&&W.keyCode!==73||(W.stopImmediatePropagation(),W.preventDefault())};
_.t.onKeyDown=function(W){this.maybePreventTextFormatting(W);if(this.dropdown.opened)switch(W.keyCode){case 27:this.dropdown.opened=!1;W.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;W.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);W.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),W.preventDefault()}};
_.t.onKeyUp=function(W){switch(W.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.kt)this.onInputChange()};
_.t.changeSuggestionIndex=function(W){if(this.dropdown.opened){var l=_.GS(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<l.children.length&&(l.children[this.suggestionIndex].active=!1);var V=this.suggestions.length;this.suggestionIndex=(W+V)%V;W=l.children[this.suggestionIndex];W.active=!0;l.scrollTop=W.offsetTop}};
_.t.onInputPaste=function(W){W.preventDefault();(W=W.clipboardData)&&W.types&&(W=W.getData("text/plain")||"",W=W.replace(/\n/g,""),this.insertText(W));(W=this.getCurrentRange())&&W.commonAncestorContainer.parentElement.id==="input"&&W.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.t.onFocus=function(){this._setFocused(!0)};
_.t.onBlur=function(){this._setFocused(!1)};
_.t.insertText=function(W){this.insertTextAtRange(this.getInputRange(),W)};
_.t.insertTextAtRange=function(W,l){if(W&&(W.collapsed||W.deleteContents(),l=_.vB.createDocumentFragment(l,!0,!1))){for(var V=_.L((l==null?void 0:l.childNodes)||[]),f=V.next();!f.done;f=V.next()){f=f.value;var r=void 0,R=void 0,y=void 0,P=void 0,n=void 0;(y=(r=window)==null?void 0:(R=r.ShadyCSS)==null?void 0:R.ScopingShim)==null||(n=(P=y).scopeNode)==null||n.call(P,f,this.hostElement.localName)}V=l.lastChild;W.insertNode(l);this.focused||this.input.focus();if(this.focused){W=W.cloneRange();W.selectNodeContents(V);
W.collapse(!1);if(l=window.getSelection())l.removeAllRanges(),l.addRange(W);W.commonAncestorContainer.parentElement.id==="input"&&W.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}W=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(W);_.FN(this.hostElement,"yt-live-chat-message-input-change",W)}};
_.t.setLiveChatRichMessageInput=function(W){_.GS(_.GS(this.hostElement).querySelector("#input")).textContent="";if(W&&W.textSegments){for(var l=0;l<W.textSegments.length;l++){var V=W.textSegments[l];V.text?_.GS(_.GS(this.hostElement).querySelector("#input")).appendChild(_.vB.createDocumentFragment(V.text,!0,!1)):V.emojiId&&(V=_.u5(_.vB,V.emojiId))&&_.GS(_.GS(this.hostElement).querySelector("#input")).appendChild(_.vB.createEmoji(V,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.t.setText=function(W){this.setLiveChatRichMessageInput(W?{textSegments:[{text:W}]}:null)};
_.t.calculateTextBeforeRange=function(W){var l="",V=W.startContainer;if(V&&V instanceof Text){var f;l=((f=V.textContent)==null?void 0:f.substring(0,W.startOffset))||"";V=V.previousSibling}for(;V&&V instanceof Text;)l=V.textContent+l,V=V.previousSibling;return l.replace(pf," ")};
_.t.calculateLiveChatRichMessageInput=function(){for(var W=[],l="",V=_.GS(_.GS(this.hostElement).querySelector("#input")).childNodes,f=0;f<V.length;f++){var r=V[f];r instanceof Text?l+=r.textContent:r instanceof HTMLImageElement&&(r.dataset.emojiId?(l&&(W.push({text:l.replace(pf," ")}),l=""),W.push({emojiId:r.dataset.emojiId})):l+=r.alt)}l&&W.push({text:l.replace(pf," ")});if(V=_.GS(this.hostElement).querySelector("#overflow-text")){l="";V=V.childNodes;for(f=0;f<V.length;f++)r=V[f],r instanceof Text?
l+=r.textContent:r instanceof HTMLImageElement&&(r.dataset.emojiId?(l&&(W.push({text:l.replace(pf," ")}),l=""),W.push({emojiId:r.dataset.emojiId})):l+=r.alt);l&&W.push({text:l.replace(pf," ")})}return{textSegments:W}};
_.t.computeCharacterCount=function(W){if(!W||!W.textSegments)return 0;for(var l=0,V=0;V<W.textSegments.length;V++){var f=W.textSegments[V];if(f.text)l+=f.text.length;else if(f.emojiId){var r=void 0;if((r=this.data)==null?0:r.emojiCharacterCount)l+=this.data.emojiCharacterCount;else{var R=r=void 0,y=void 0;l+=((R=_.u5(_.vB,(r=f)==null?void 0:r.emojiId))==null?void 0:(y=R.shortcuts)==null?void 0:y[0].length)||0}}}return l};
_.t.characterCountChanged=function(){_.FN(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.t.focusedChanged=function(){this.hostElement.dispatchEvent(new _.GD("focused-changed",this.focused))};
_.t.focus=function(){this.setFocus(!1)};
_.t.focusAtEnd=function(){this.setFocus(!0)};
_.t.setFocus=function(W){W=W?this.getRangeAtEnd():this.getInputRange();_.GS(this.hostElement).querySelector("#input").focus();var l=window.getSelection();l&&(l.removeAllRanges(),l.addRange(W))};
_.t.insertEmoji=function(W){var l,V=((W==null?0:W.isCustomEmoji)?(l=W.shortcuts)==null?void 0:l[0]:W==null?void 0:W.emojiId)||"";this.insertText(V)};
_.t.computeText=function(W){if(!W||!W.textSegments)return"";for(var l="",V=0;V<W.textSegments.length;V++){var f=W.textSegments[V];if(f.text)l+=f.text;else if(f.emojiId){var r=void 0,R=void 0,y=void 0;l+=((R=_.u5(_.vB,(r=f)==null?void 0:r.emojiId))==null?void 0:(y=R.shortcuts)==null?void 0:y[0])||""}}return l};
_.t.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.rc.Object.defineProperties(o8.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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}}});
o8.prototype.focusedChanged=o8.prototype.focusedChanged;o8.prototype.characterCountChanged=o8.prototype.characterCountChanged;o8.prototype.onSuggestion=o8.prototype.onSuggestion;o8.prototype.onMessageSet=o8.prototype.onMessageSet;o8.prototype.dataChanged=o8.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],o8.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],o8.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],o8.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],o8.prototype,"disabled",void 0);_.a([_.G("disabled"),_.z("design:type",Number),_.z("design:paramtypes",[])],o8.prototype,"inputTabIndex",null);_.a([_.G("data.maxCharacterLimit"),_.b({readOnly:!0,notify:!0}),_.z("design:type",Number),_.z("design:paramtypes",[])],o8.prototype,"maxCharacterLimit",null);
_.a([_.G("liveChatRichMessageInput"),_.b({readOnly:!0,notify:!0}),_.z("design:type",Number),_.z("design:paramtypes",[])],o8.prototype,"characterCount",null);_.a([_.G("maxCharacterLimit, characterCount"),_.b({readOnly:!0,notify:!0}),_.z("design:type",Number),_.z("design:paramtypes",[])],o8.prototype,"remainingCharacterCount",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],o8.prototype,"isChatMessageInput",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],o8.prototype,"inputExpanded",void 0);_.a([_.b({readOnly:!0,notify:!0}),_.z("design:type",Object)],o8.prototype,"liveChatRichMessageInput",void 0);_.a([_.b(),_.z("design:type",Object)],o8.prototype,"messageInput",void 0);_.a([_.b(),_.z("design:type",Boolean)],o8.prototype,"ignoreColorMapping",void 0);_.a([_.G("characterCount"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],o8.prototype,"hasText",null);
_.a([_.b(),_.z("design:type",Object)],o8.prototype,"isValidWithNoInputText",void 0);_.a([_.G("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.b(),_.z("design:type",Boolean),_.z("design:paramtypes",[])],o8.prototype,"isInputValid",null);_.a([_.b({readOnly:!0,value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],o8.prototype,"focused",void 0);_.a([_.b(),_.z("design:type",Array)],o8.prototype,"suggestions",void 0);
_.a([_.b(),_.z("design:type",_.UB)],o8.prototype,"emojiManager",void 0);_.a([_.b(),_.z("design:type",_.b5)],o8.prototype,"participantsManager",void 0);_.a([_.b(),_.z("design:type",Boolean)],o8.prototype,"noUnderline",void 0);_.a([_.b(),_.z("design:type",Object)],o8.prototype,"inputMethodEditorActive",void 0);_.a([_.Aa("#dropdown"),_.z("design:type",Object)],o8.prototype,"dropdown",void 0);_.a([_.Aa("#input"),_.z("design:type",HTMLElement)],o8.prototype,"input",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o8.prototype,"dataChanged",null);_.a([_.TS("messageInput"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o8.prototype,"onMessageSet",null);_.a([_.XI("yt-live-chat-select-suggestion"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],o8.prototype,"onSuggestion",null);
_.a([_.TS("characterCount"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o8.prototype,"characterCountChanged",null);_.a([_.TS("focused"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o8.prototype,"focusedChanged",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],o8);
_.NX9=_.Z(o8,"yt-live-chat-text-input-field-renderer",function(){if(QyL===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;AXB===void 0&&(AXB=document.createElement("template"));var f=AXB;V.call(l,f.content.cloneNode(!0),W.content.firstChild);QyL=W}W=QyL;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var j6=function(){var W=_.I.apply(this,arguments)||this;W.buttonOverrides={style:"overlay",type:"filled"};W.allowAnimations=!1;W.modern=_.U("web_button_rework_with_live");W.noPadding=!1;return W};
_.v(j6,_.I);_.t=j6.prototype;_.t.shouldSupportInlineActionButtons=function(){return!0};
_.t.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"}}}}};
_.t.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.t.attached=function(){this.allowAnimations=!1};
_.t.dataChanged=function(){if(this.data){var W={"--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)};_.I1(this.hostElement,W);this.allowAnimations=!0}};
_.t.messageChanged=function(){var W,l=(W=this.data)==null?void 0:W.message;W=_.GS(_.GS(this.hostElement).querySelector("#message"));W.textContent="";l&&W.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(l))};
_.t.computeShowOnlyHeader=function(W,l){return!W||W.pdgLikeButton||W.replyButton||W.buyFlowButton?!1:this.isEmpty(W,l)&&!W.footer};
_.t.computeShowFooterDivider=function(W,l,V){return W?!!W.footer&&!this.isEmpty(W,l)&&!V:!1};
_.t.computeIsUserEditable=function(W){return!!W.inputField};
_.t.computeHasHeartButton=function(W){return(W==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(W==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(W==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.t.computeNoveltyImage=function(W){if(W.headerOverlayImage&&W.headerOverlayImage.thumbnails.length){var l=W.headerOverlayImage.thumbnails[0],V,f;if((V=W.pdgPurchasedNoveltyLoggingDirectives)==null?0:(f=V.loggingDirectives)==null?0:f.trackingParams){var r,R;L_g((r=W.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(R=r.loggingDirectives)==null?void 0:R.trackingParams)}return l.width||0}return 0};
_.t.computeAuthorPhotoSize=function(W){return(W==null?0:W.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.t.inputFocus=function(){var W=_.GS(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");W&&W.focus()};
_.t.inputInsertEmoji=function(W){var l=_.GS(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");l&&l.insertEmoji(W)};
_.t.inputMessage=function(){var W=_.GS(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),l;return W&&((l=this.data)==null?0:l.inputField)?(W.completeEmojis(),_.fv(W.liveChatRichMessageInput)):null};
_.t.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.t.isEmpty=function(W,l){return W?W.empty||!(W.message||W.inputField||l):!0};
_.t.onLowerBuyButtonClick=function(){var W,l=_.k((W=this.data)==null?void 0:W.buyButton,_.CE);l&&l.trackingParams&&!hh6(l.command)&&(W=_.zG(l.trackingParams))&&(l=_.Wh())&&_.C0(l,W)};
_.t.shouldSupportWholeItemClick=function(){return!0};
_.rc.Object.defineProperties(j6.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
j6.prototype.isDeletedChanged=j6.prototype.isDeletedChanged;j6.prototype.messageChanged=j6.prototype.messageChanged;j6.prototype.dataChanged=j6.prototype.dataChanged;_.a([_.F(DO1.YtPdgLiveChatItemBehavior),_.z("design:type",Object)],j6.prototype,"ytPdgLiveChatItemBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],j6.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.DS),_.z("design:type",Object)],j6.prototype,"ytLiveChatReduxBehavior",void 0);
_.a([_.F(_.HB.YtLiveChatItemBehavior),_.z("design:type",_.Kf)],j6.prototype,"ytLiveChatItemBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],j6.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],j6.prototype,"data",void 0);_.a([_.b({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:tR6}),_.z("design:type",Object)],j6.prototype,"engagementState",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.z("design:type",Boolean)],j6.prototype,"isUserEditable",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.z("design:type",Boolean)],j6.prototype,"hasHeartButton",void 0);_.a([_.b({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.z("design:type",Boolean)],j6.prototype,"showOnlyHeader",void 0);
_.a([_.b({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.z("design:type",Boolean)],j6.prototype,"showFooterDivider",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Object)],j6.prototype,"allowAnimations",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],j6.prototype,"dashboardMoneyFeed",void 0);_.a([_.b({computed:"computeNoveltyImage(data)"}),_.z("design:type",Number)],j6.prototype,"noveltyWidth",void 0);
_.a([_.b({computed:"computeAuthorPhotoSize(data)"}),_.z("design:type",Number)],j6.prototype,"authorPhotoSize",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],j6.prototype,"modern",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],j6.prototype,"noPadding",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],j6.prototype,"dataChanged",null);
_.a([_.TS("data.message"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],j6.prototype,"messageChanged",null);_.a([_.G("data","dashboardMoneyFeed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],j6.prototype,"hideLowerBumper",null);_.a([_.TS("isDeleted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],j6.prototype,"isDeletedChanged",null);
_.a([_.A({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],j6);
_.Z(j6,"yt-live-chat-paid-message-renderer",function(){if(lDB===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;WDX===void 0&&(WDX=document.createElement("template"));var f=WDX;V.call(l,f.content.cloneNode(!0),W.content.firstChild);lDB=W}W=lDB;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var YA$;var xEM;var I8=function(){var W=_.OD.apply(this,arguments)||this;W._noAccessors=!0;return W};
_.v(I8,_.OD);I8.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.M4("openPopupConfig")};
_.a([_.F(_.eX.YtOpenPopupBehavior),_.z("design:type",Object)],I8.prototype,"ytOpenPopupBehavior",void 0);_.a([_.a1()],I8);_.i5=[_.eX.YtOpenPopupBehavior,I8.prototype];var e0X;var gH=[_.ZJ,xRk,_.gT,_.Om,_.Bh,_.cUa,_.N$,_.qbX,_.NP,pJ6];_.U("web_watch_get_updated_metadata_response_processing")&&gH.push(_.czB);_.U("web_continuation_response_processing")&&gH.push(_.VH);var xMv=new _.vd("RESPONSE_RECEIVED_COMMANDS"),KX8=new _.vd("RESPONSE_RECEIVED_COMMANDS");var JbF="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),dZ4=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],Bhn=["GET_UNSEEN_NOTIFICATION_COUNT"];var mT=function(){var W=_.OD.apply(this,arguments)||this;W._noAccessors=!0;W.serviceEndpointHandlers=[];return W};
_.v(mT,_.OD);mT.prototype.created=function(){var W=this;this.endpointHandlerActionMap={"yt-service-request":function(l,V,f,r){var R;return cb8(W.hostElement,l,V,f,r,W.serviceEndpointHandlers,(R=W.onEntitiesUpdated)==null?void 0:R.bind(W))}}};
mT.prototype.attached=function(){_.qJ(_.eC.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
mT.prototype.detached=function(){_.EL(_.eC.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.a([_.a1()],mT);_.qAe=[mT.prototype];var h0k,SA$=function(){return h0k!==void 0?h0k:h0k=document.createElement("template")};
document.head.appendChild(SA$().content);var Ebc;var $Ee=document.head,W_X=$Ee.appendChild,lUL;if(Ebc===void 0){var VRv=document.createElement("template");_.K(VRv,"\x3c!--css-build:shady--\x3e");VRv.content.insertBefore(SA$().content.cloneNode(!0),VRv.content.firstChild);Ebc=VRv}lUL=Ebc;W_X.call($Ee,lUL.content);var fUa,r_v=function(){return fUa!==void 0?fUa:fUa=document.createElement("template")};
document.head.appendChild(r_v().content);var Rkk;var tRa=document.head,sVk=tRa.appendChild,L_1;if(Rkk===void 0){var y_L=document.createElement("template");_.K(y_L,"\x3c!--css-build:shady--\x3e");y_L.content.insertBefore(r_v().content.cloneNode(!0),y_L.content.firstChild);Rkk=y_L}L_1=Rkk;sVk.call(tRa,L_1.content);var gLk;_.e1("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.e1("sharingRendererButtons","buttonRenderer","ytd-button-renderer");gLk=_.U("web_button_rework")&&_.ZL("BUTTON_REWORK")||_.U("web_button_rework_with_live");_.Xj=function(){var W=_.I.apply(this,arguments)||this;W.isPressed=!1;W.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return W};
_.v(_.Xj,_.I);_.t=_.Xj.prototype;_.t.created=function(){this.showTooltips=!0};
_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.t.onHintIdChanged=function(){var W=this,l,V,f=(l=this.ytButtonBehavior.data)==null?void 0:(V=l.hint)==null?void 0:V.hintRenderer;if(f&&f.hintId){l=_.bj(this.hostElement,"yt-get-opened-popups-action");l=(l&&l.length===1?l[0]:[]).length>0;var r=null;f.hintId!=="sponsor-pre-purchase"||l?f.hintId.startsWith("sponsor-post-purchase")&&!l?r=ixL("membership-manage"):f.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!l&&(r=ixL("membership-freebie-join")):r=ixL("membership-join");r&&_.w8.addLowPriorityJob(function(){for(var R=
_.L(r),y=R.next();!y.done;y=R.next())W.ytComponentBehavior.resolveCommand(y.value)})}};
_.t.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.t.onYtNavigate=function(W){var l=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);l&&(W.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(l))};
_.t.onYtServiceRequestSent=function(W,l){this.handleServiceRequestActions(l);_.FN(this.hostElement,"yt-service-request-sent-button-renderer")};
_.t.onServiceRequestCompleted=function(W,l){this.handleServiceRequestActions(l);_.FN(this.hostElement,"yt-service-request-completed-button-renderer")};
_.t.updateButton=function(W){var l;if(W=(l=_.k(W,AdL))==null?void 0:l.updatedButton)this.ytButtonBehavior.data=_.k(W,_.CE)};
_.t.handleUpdateButtonAction=function(W){var l=this.ytButtonBehavior.data;l.targetId&&W.updateButtonAction.targetId&&l.targetId===W.updateButtonAction.targetId&&this.updateButton(W)};
_.t.handleServiceRequestActions=function(W){if(W=W.actions)for(var l=0;l<W.length;l++)this.updateButton(W[l])};
_.rc.Object.defineProperties(_.Xj,{template:{configurable:!0,enumerable:!0,get:function(){if(e0X===void 0){var W=document.createElement("template");_.K(W,"\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");W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);e0X=W}W=e0X;return W}}});
_.Xj.prototype.onServiceRequestCompleted=_.Xj.prototype.onServiceRequestCompleted;_.Xj.prototype.onYtServiceRequestSent=_.Xj.prototype.onYtServiceRequestSent;_.Xj.prototype.onYtNavigate=_.Xj.prototype.onYtNavigate;_.Xj.prototype.onPressedStateChanged=_.Xj.prototype.onPressedStateChanged;_.Xj.prototype.onHintIdChanged=_.Xj.prototype.onHintIdChanged;_.a([_.b(),_.z("design:type",Object)],_.Xj.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],_.Xj.prototype,"isPressed",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],_.Xj.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.U9k.YtButtonBehavior),_.z("design:type",Object)],_.Xj.prototype,"ytButtonBehavior",void 0);_.a([_.F(_.i5),_.z("design:type",Object)],_.Xj.prototype,"ytdOpenPopupBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],_.Xj.prototype,"ytComponentBehavior",void 0);
_.a([_.F(R8.YtRenderButtonBehavior),_.z("design:type",Object)],_.Xj.prototype,"ytRenderButtonBehavior",void 0);_.a([_.TS("data.hint.hintRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],_.Xj.prototype,"onHintIdChanged",null);_.a([_.TS("isPressed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],_.Xj.prototype,"onPressedStateChanged",null);
_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],_.Xj.prototype,"onYtNavigate",null);_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],_.Xj.prototype,"onYtServiceRequestSent",null);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],_.Xj.prototype,"onServiceRequestCompleted",null);_.a([_.A({is:"ytd-button-renderer",disableElementRegistration:gLk})],_.Xj);var TD=function(){var W=_.I.apply(this,arguments)||this;W.modern=_.U("web_button_rework_with_live");W.buttonOverrides={style:"overlay",type:"filled"};return W};
_.v(TD,_.I);_.t=TD.prototype;_.t.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"}}}}};
_.t.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.t.dataChanged=function(){if(this.data&&this.data.sticker){var W=_.KP(this.data.sticker.thumbnails,this.stickerWidth);W||_.IKz(W).thenCatch(function(){_.Qe(new _.bP("Failed to load Super Sticker with url",W))})}};
_.t.computeAuthorPhotoSize=function(W){return(W==null?0:W.isV2Style)?32:40};
_.t.computeIsV2Style=function(W){return(W==null?0:W.isV2Style)?!0:!1};
_.t.onStickerLoaded=function(W){var l,V,f;(l=_.Ja(W))==null||(V=l.parentNode)==null||(f=V.classList)==null||f.add("sticker-loaded")};
_.t.computeNoveltyImageWidth=function(W){var l,V;if(W==null?0:(l=W.headerOverlayImage)==null?0:(V=l.thumbnails)==null?0:V.length){l=W.headerOverlayImage.thumbnails[0];var f,r;if((f=W.pdgPurchasedNoveltyLoggingDirectives)==null?0:(r=f.loggingDirectives)==null?0:r.trackingParams){var R,y;L_g((R=W.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(y=R.loggingDirectives)==null?void 0:y.trackingParams)}return l.width||0}return 0};
_.t.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.t.updateStickerStyles=function(){var W=this.data;W&&(W={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.authorNameTextColor)},
_.I1(this.hostElement,W))};
_.t.onBuyButtonClick=function(){var W,l=_.k((W=this.data)==null?void 0:W.buyButton,_.CE);l&&!hh6(l.command)&&this.ytRendererBehavior.logExplicitClick(l)};
_.t.shouldSupportWholeItemClick=function(){return!0};
_.rc.Object.defineProperties(TD.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 W;return((W=this.data)==null?0:W.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
TD.prototype.updateStickerStyles=TD.prototype.updateStickerStyles;TD.prototype.isDeletedChanged=TD.prototype.isDeletedChanged;TD.prototype.onStickerLoaded=TD.prototype.onStickerLoaded;TD.prototype.dataChanged=TD.prototype.dataChanged;_.a([_.F(DO1.YtPdgLiveChatItemBehavior),_.z("design:type",Object)],TD.prototype,"ytPdgLiveChatItemBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],TD.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],TD.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.HB.YtLiveChatItemBehavior),_.z("design:type",_.Kf)],TD.prototype,"ytLiveChatItemBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],TD.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],TD.prototype,"data",void 0);
_.a([_.b({computed:"computeAuthorPhotoSize(data)"}),_.z("design:type",Number)],TD.prototype,"authorPhotoSize",void 0);_.a([_.b(),_.z("design:type",Boolean)],TD.prototype,"isDeleted",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],TD.prototype,"dashboardMoneyFeed",void 0);_.a([_.b({computed:"computeNoveltyImageWidth(data)"}),_.z("design:type",Number)],TD.prototype,"noveltyWidth",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],TD.prototype,"modern",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.z("design:type",Boolean)],TD.prototype,"isV2Style",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TD.prototype,"dataChanged",null);_.a([_.XI("yt-img-shadow-loaded"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],TD.prototype,"onStickerLoaded",null);
_.a([_.G("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],TD.prototype,"stickerWidth",null);_.a([_.G("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],TD.prototype,"stickerHeight",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],TD.prototype,"hasHeartButton",null);_.a([_.G("data","dashboardMoneyFeed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],TD.prototype,"hideLowerBumper",null);
_.a([_.TS("isDeleted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TD.prototype,"isDeletedChanged",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TD.prototype,"updateStickerStyles",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],TD);
_.Z(TD,"yt-live-chat-paid-sticker-renderer",function(){if(xEM===void 0){var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;YA$===void 0&&(YA$=document.createElement("template"));var f=YA$;V.call(l,f.content.cloneNode(!0),W.content.firstChild);xEM=W}W=xEM;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var PgB;var nLZ;var Cge,c_k=function(){return Cge!==void 0?Cge:Cge=document.createElement("template")};
document.head.appendChild(c_k().content);var BMk,dYI=function(){return BMk!==void 0?BMk:BMk=document.createElement("template")};
document.head.appendChild(dYI().content);var J_c;var DYL,UY9=function(){return DYL!==void 0?DYL:DYL=document.createElement("template")};
document.head.appendChild(UY9().content);var urv;var kUZ=document.head,vLk=kUZ.appendChild,HIk;if(urv===void 0){var K_c=document.createElement("template");_.K(K_c,"\x3c!--css-build:shady--\x3e");K_c.content.insertBefore(UY9().content.cloneNode(!0),K_c.content.firstChild);urv=K_c}HIk=urv;vLk.call(kUZ,HIk.content);var F_L=document.head,GU$=F_L.appendChild,bIL;if(J_c===void 0){var wy=document.createElement("template");_.K(wy,"\x3c!--css-build:shady--\x3e");wy.content.insertBefore(dYI().content.cloneNode(!0),wy.content.firstChild);wy.content.insertBefore(c_k().content.cloneNode(!0),wy.content.firstChild);J_c=wy}bIL=J_c;GU$.call(F_L,bIL.content);var AP=function(){var W=_.OD.apply(this,arguments)||this;W.focusedIndex=0;W.verticalOffset=0;W.verticalAlign="top";W.dynamicAlign=!0;return W};
_.v(AP,_.OD);AP.prototype.emojiUrl=function(W){W=_.u5(this.emojiManager,W);if(!W)return"";var l;W=(l=W.image)==null?void 0:l.thumbnails;return _.KP(W,24)||""};
var pUv=function(W){var l;W.emojiVariants&&(l=W.data)!=null&&l.target&&_.V9(W,function(){W.set("verticalOffset",-1*W.hostElement.clientHeight);var V=_.GS(W.hostElement).querySelector("img");V&&V.focus()})};
_.t=AP.prototype;_.t.onKeyboardEnter=function(){};
_.t.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.t.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.t.onKeyDown=function(W){switch(W.keyCode){case 13:this.onKeyboardEnter();W.preventDefault();break;case 40:this.changeFocus(1);W.preventDefault();break;case 38:this.changeFocus(-1);W.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.t.onYtEmojiSelect=function(W){var l=this,V,f,r,R,y,P,n,B;return _.g(function(d){if(d.nextAddress==1)return f=(V=l.data)==null?void 0:V.emoji,y=((r=f)==null?void 0:r.stickyPrefId)||((R=f)==null?void 0:R.emojiId),n=(P=W.detail)==null?void 0:P.emojiId,y&&n&&y!==n?d.yield((B=l.emojiManager)==null?void 0:mEM(B,f,n),2):d.return();_.Gt(l.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[f,n]);_.ju(d)})};
_.t.changeFocus=function(W){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+W+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(W=_.GS(this.hostElement).querySelector("#variants"))&&W.children[this.focusedIndex].focus())};
_.rc.Object.defineProperties(AP.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
AP.prototype.onYtEmojiSelect=AP.prototype.onYtEmojiSelect;AP.prototype.onKeyDown=AP.prototype.onKeyDown;AP.prototype.onEmojiVariantsChanged=AP.prototype.onEmojiVariantsChanged;AP.prototype.onVerticalOffsetOrPositionTargetChanged=AP.prototype.onVerticalOffsetOrPositionTargetChanged;_.a([_.F(_.Bo),_.z("design:type",Object)],AP.prototype,"ironOverlayBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],AP.prototype,"data",void 0);_.a([_.b(),_.z("design:type",_.UB)],AP.prototype,"emojiManager",void 0);
_.a([_.b(),_.z("design:type",Object)],AP.prototype,"emojiVariants",void 0);_.a([_.b(),_.z("design:type",Object)],AP.prototype,"focusedIndex",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],AP.prototype,"positionTarget",null);_.a([_.b({reflectToAttribute:!0}),_.G("verticalOffset","data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],AP.prototype,"isPositioned",null);_.a([_.b(),_.z("design:type",Object)],AP.prototype,"verticalOffset",void 0);
_.a([_.b(),_.z("design:type",Object)],AP.prototype,"verticalAlign",void 0);_.a([_.b(),_.z("design:type",Object)],AP.prototype,"dynamicAlign",void 0);_.a([_.TS("verticalOffset","positionTarget"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],AP.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.a([_.TS("emojiVariants"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],AP.prototype,"onEmojiVariantsChanged",null);
_.a([_.XI("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],AP.prototype,"onKeyDown",null);_.a([_.XI("yt-emoji-select"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype",Promise)],AP.prototype,"onYtEmojiSelect",null);_.a([_.a1()],AP);var oLX=[AP.prototype];var jV$;var IUM;var iIe=/medium-light|medium-dark|light|medium|dark/,mYM=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,XUk=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),QM=function(){var W=_.I.apply(this,arguments)||this;W.userSelection={left:null,right:null};W.scrollAction="lock";W.isEmojiDraftInProgress=!1;return W};
_.v(QM,_.I);_.t=QM.prototype;_.t.onClick=function(W){W=_.Ja(W);W instanceof HTMLImageElement&&this.selectOrUpdateEmoji(W)};
_.t.selectOrUpdateEmoji=function(W){var l=W.getAttribute("selection");l&&(l==="default"?_.FN(this.hostElement,"yt-emoji-select",_.u5(this.emojiManager,W.id)):l==="left"?this.userSelection=Object.assign({},this.userSelection,{left:W.src}):l==="right"?this.userSelection=Object.assign({},this.userSelection,{right:W.src}):l==="user"&&this.userSelection.left&&this.userSelection.right&&_.FN(this.hostElement,"yt-emoji-select",_.u5(this.emojiManager,W.id)))};
_.t.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.t.onMultiSelectorThumbnailRowChanged=function(){var W,l,V;((W=this.data)==null?0:(l=W.emoji)==null?0:(V=l.multiSelectorThumbnailRow)==null?0:V.length)&&this.openSelector()};
_.t.getThumbnailFromEmojiRow=function(W){var l,V;return(W==null?void 0:(l=W.thumbnails)==null?void 0:(V=l[0])==null?void 0:V.url)||""};
_.t.getEmojiAltTextForPartialSelector=function(W){var l;return((l=this.getThumbnailFromEmojiRow(W).match(mYM))==null?void 0:l[0])||""};
_.t.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.t.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.t.getRowSelection=function(W){return["left","right"][W]};
_.t.getIdFromComposedEmoji=function(W){return(W==null?void 0:W.emojiId)||""};
_.t.getEmojiFromPartialSelections=function(W,l){if(!W&&!l)return null;var V,f,r=(V=this.data)==null?void 0:(f=V.emoji)==null?void 0:f.variantIds;if(!r||!r.length)return null;var R;W=(R=W.match(iIe))==null?void 0:R[0];var y;l=(y=l.match(iIe))==null?void 0:y[0];if(!W||!l)return null;var P=XUk.get(W);y=XUk.get(l);if(P===y){y=Array.from(XUk.values()).filter(function(B){return B!==P}).join("|");
var n=new RegExp("^((?!("+y+")).)*"+P+"$")}else n=new RegExp(P+".*"+y);return(r=r.find(function(B){return n.test(B)}))&&_.u5(this.emojiManager,r)||null};
_.t.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var W,l=this.ytEmojiSelectorBehavior.emojiUrl(((W=this.data.emoji)==null?void 0:W.emojiId)||"");_.GS(this.hostElement).querySelector('[selection="user"]').src.includes(l)||(this.isEmojiDraftInProgress=!0)}};
_.t.onDomChange=function(){pUv(this.ytEmojiSelectorBehavior)};
_.t.getFocusableElements=function(){return _.GS(this.hostElement).querySelectorAll("img").filter(function(W){return W.getAttribute("role")==="option"})};
_.t.changeFocus=function(W){var l=this.getFocusableElements();l!=null&&l.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+W+l.length)%l.length,this.ytEmojiSelectorBehavior.focusedIndex<l.length&&(W=l[this.ytEmojiSelectorBehavior.focusedIndex])&&W.focus())};
_.t.onKeyboardEnter=function(){var W=this.getFocusableElements();W!=null&&W.length&&(W=W[this.ytEmojiSelectorBehavior.focusedIndex])&&W instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(W),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.rc.Object.defineProperties(QM.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var W=this,l,V,f;return this.emojiManager&&((l=this.data)==null?0:(V=l.emoji)==null?0:(f=V.variantIds)==null?0:f.length)?this.data.emoji.variantIds.map(function(r){return!!r&&_.u5(W.emojiManager,r)}).filter(function(r){return!!r}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var W,l=(W=this.userSelection)==null?void 0:W.left,V;W=(V=this.userSelection)==null?void 0:V.right;return l&&W?this.getEmojiFromPartialSelections(l,W):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.composedEmojiSelection)==null?0:W.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var l;W=(l=this.userSelection)==null?void 0:l.left;var V;l=(V=this.userSelection)==null?void 0:V.right;if(!W&&!l){var f;return this.ytEmojiSelectorBehavior.emojiUrl(((f=this.data.emoji)==null?void 0:f.emojiId)||"")}return W&&!l?W:!W&&l?l:""}}});
QM.prototype.onMultiSelectorThumbnailRowChanged=QM.prototype.onMultiSelectorThumbnailRowChanged;QM.prototype.onClick=QM.prototype.onClick;_.a([_.F(_.Bo),_.z("design:type",Object)],QM.prototype,"ironOverlayBehavior",void 0);_.a([_.F(oLX),_.z("design:type",Object)],QM.prototype,"ytEmojiSelectorBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],QM.prototype,"data",void 0);_.a([_.b(),_.z("design:type",_.UB)],QM.prototype,"emojiManager",void 0);
_.a([_.b(),_.z("design:type",Object)],QM.prototype,"userSelection",void 0);_.a([_.b(),_.z("design:type",Object)],QM.prototype,"scrollAction",void 0);_.a([_.b(),_.z("design:type",Object)],QM.prototype,"isEmojiDraftInProgress",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],QM.prototype,"emojiVariants",null);_.a([_.G("data","userSelection"),_.z("design:type",Object),_.z("design:paramtypes",[])],QM.prototype,"composedEmojiSelection",null);
_.a([_.XI("click"),_.z("design:type",Function),_.z("design:paramtypes",[MouseEvent]),_.z("design:returntype")],QM.prototype,"onClick",null);_.a([_.TS("data.emoji.multiSelectorThumbnailRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],QM.prototype,"onMultiSelectorThumbnailRowChanged",null);_.a([_.G("data","userSelection","composedEmojiSelection"),_.z("design:type",String),_.z("design:paramtypes",[])],QM.prototype,"draftEmojiUrl",null);
_.a([_.Vq({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],QM);
_.Z(QM,"yt-emoji-multi-person-selector",function(){if(IUM===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;jV$===void 0&&(jV$=document.createElement("template"));var f=jV$;V.call(l,f.content.cloneNode(!0),W.content.firstChild);IUM=W}W=IUM;return W},{mode:2});var TMX;var wUI;var MD=function(){var W=_.I.apply(this,arguments)||this;W.tooltip_=null;return W};
_.v(MD,_.I);_.t=MD.prototype;_.t.dataChanged_=function(){var W;if((W=this.data)==null?0:W.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.GS(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.j3)(this.tooltip_).textContent=this.data.tooltip};
_.t.computeTargetId=function(){var W;return((W=this.data)==null?void 0:W.targetId)||""};
_.t.computeId_=function(W){return W};
_.t.computeIcon_=function(W){return _.IJ(W)};
_.t.onTap_=function(){this.active=!this.active;_.FN(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.t.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.GD("active-changed",this.active))};
_.rc.Object.defineProperties(MD.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var W,l;if((W=this.data)==null?0:(l=W.icon)==null?0:l.iconType)return this.data.icon.iconType==="SUPER_STICKER";var V,f;return((V=this.data)==null?void 0:(f=V.icon)==null?void 0:f.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
MD.prototype.activeChangedForBinding=MD.prototype.activeChangedForBinding;MD.prototype.dataChanged_=MD.prototype.dataChanged_;_.a([_.F(_.Uq.YtLiveChatTooltipTargetingBehavior),_.z("design:type",Object)],MD.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],MD.prototype,"data",void 0);_.a([_.b({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.z("design:type",String)],MD.prototype,"id",void 0);
_.a([_.b({computed:"computeTargetId(data.targetId)"}),_.z("design:type",String)],MD.prototype,"targetId",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],MD.prototype,"active",void 0);_.a([_.b({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.z("design:type",String)],MD.prototype,"icon",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],MD.prototype,"dataChanged_",null);
_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],MD.prototype,"iconFilled",null);_.a([_.TS("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],MD.prototype,"activeChangedForBinding",null);_.a([_.Vq({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],MD);
_.Z(MD,"yt-emoji-picker-category-button-renderer",function(){if(wUI===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;TMX===void 0&&(TMX=document.createElement("template"));var f=TMX;V.call(l,f.content.cloneNode(!0),W.content.firstChild);wUI=W}W=wUI;return W},{mode:2});var A_L;var QV9;var ZP=function(){var W=_.I.apply(this,arguments)||this;W.ariaLabel=null;W.ariaActivedescendant=null;W.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};W.JSC$14189_ignoreNextFocus_=!1;W.longPressTimeoutId=-1;return W};
_.v(ZP,_.I);_.t=ZP.prototype;_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.t.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.t.emojiChanged_=function(){this.changeFocus_(0,!1);for(var W=_.Qq(),l=0;l<this.emoji.length;l++){var V={veType:88013,elementIndex:l},f=this.emoji[l];f.isCustomEmoji&&(f=document.querySelector(("#"+f.emojiId).replace("/","\\/")))&&(V=_.AG(W,V))&&(f.visualElement=V)}};
_.t.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.t.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.t.emojiSkinToneChanged_=function(W){this.skinTone=W};
_.t.dataChanged=function(){this.data&&this.data.emojiData&&obB(this.emojiManager,this.data.emojiData)};
_.t.emojiUrl=function(W){W=this.getEmoji(W);if(!W)return"";var l;W=(l=W.image)==null?void 0:l.thumbnails;return _.KP(W,24)||""};
_.t.emojiAlt=function(W){var l=this.get("image.accessibility.accessibilityData.label",W);return l?l:W.isCustomEmoji?W.shortcuts[0]:W.emojiId};
_.t.emojiAriaLabel=function(W){return W.shortcuts?W.shortcuts[0]:""};
_.t.emojiAriaSelected=function(W,l,V){return W&&V==l?"true":"false"};
_.t.getEmoji=function(W){if(this.emojiManager)return this.shouldUseStickyPreferences?ID9(this.emojiManager,W):kI(this.emojiManager,W)};
_.t.computeId_=function(W){return W.categoryId||""};
_.t.computeEmoji=function(W){var l=this;return this.emojiManager?W.emojiIds?W.emojiIds.map(function(V){return V?_.u5(l.emojiManager,V):null}).filter(ilx):W.emojiData?W.emojiData.map(function(V){var f=!!V.emojiId&&_.u5(l.emojiManager,V.emojiId);
return f?Object.assign({},f,V):null}).filter(ilx):[]:[]};
_.t.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.t.computeAriaLabel_=function(W){return _.dE(W)};
_.t.computeAriaActivedescendant_=function(W,l){return W&&W[l]?W[l].emojiId||"":""};
_.t.handleLongPressEmojiWithVariants=function(W,l){this.changeFocusToEmoji(W.emojiId,!1);this.openVariantSelector(W,l)};
_.t.onMouseDown=function(W){var l=this;this.hostElement!==document.activeElement&&(this.JSC$14189_ignoreNextFocus_=!0);if(W.button===0){var V=_.Ja(W);if(V instanceof HTMLImageElement){var f=_.GS(this.hostElement).querySelector("#repeat").itemForElement(V);this.emojiContainsVariants(f)&&(this.longPressTimeoutId=setTimeout(function(){l.handleLongPressEmojiWithVariants(f,V)},500))}}};
_.t.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.t.onFocus=function(){this.JSC$14189_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14189_ignoreNextFocus_=!1};
_.t.onBlur_=function(){this.showFocus=!1};
_.t.emojiContainsVariants=function(W){return!!(W&&W.variantIds&&W.variantIds.length)};
_.t.onClick=function(W){clearTimeout(this.longPressTimeoutId);W=_.Ja(W);if(W instanceof HTMLImageElement){var l=W.id;this.changeFocusToEmoji(l,!1);var V=this.getEmoji(l),f;if(f=this.shouldUseStickyPreferences&&this.emojiContainsVariants(V)){var r;f=!((r=this.emojiManager.emojiMap[l])!=null&&r.stickyPrefId)}f?(r=_.GS(this.hostElement).querySelector("#repeat").itemForElement(W),this.openVariantSelector(r,W)):_.FN(this.hostElement,"yt-emoji-select",V)}};
_.t.isActiveEmojiWithVariants=function(W,l){return W&&l?l.stickyPrefId?W===l.stickyPrefId:W===l.emojiId:!1};
_.t.onCloseEmojiVariantSelector=function(W){this.activeEmojiWithVariantsId===W&&(this.activeEmojiWithVariantsId="")};
_.t.onMouseOver_=function(W){W=_.Ja(W);W instanceof HTMLImageElement&&_.FN(this.hostElement,"yt-emoji-hover",_.u5(this.emojiManager,W.id))};
_.t.changeFocus_=function(W,l){this.focusedIndex=(this.focusedIndex+W+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(W=this.emoji[this.focusedIndex],l&&(this.showFocus=!0,_.GS(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.FN(this.hostElement,"yt-emoji-hover",W)))};
_.t.changeFocusToEmoji=function(W,l){if(W){var V=this.emoji.findIndex(function(f){return f.emojiId===W});
V!==-1&&this.changeFocus_(V-this.focusedIndex,l)}};
_.t.onKeyDown_=function(W){switch(W.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var l=this.emoji[this.focusedIndex];if(l&&l.emojiId){if(this.emojiContainsVariants(l)){var V=_.GS(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(l,V)}else _.FN(this.hostElement,"yt-emoji-select",kI(this.emojiManager,l.emojiId)),this.hostElement.focus();W.preventDefault()}}break;case 40:this.changeFocus_(1,!0);W.preventDefault();break;case 38:this.changeFocus_(-1,!0),
W.preventDefault()}};
_.t.onEmojiStickyPreferenceChanged=function(W,l){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&W.emojiId&&W.variantIds&&W.variantIds.includes(l)&&this.activeEmojiWithVariantsId!==l&&this.setStickyEmojiPreference(W.emojiId,l)};
_.t.openVariantSelector=function(W,l){this.activeEmojiWithVariantsId=W.stickyPrefId||W.emojiId||"";_.FN(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:W,target:l})};
_.t.setStickyEmojiPreference=function(W,l){if(this.data){var V=this.emoji.findIndex(function(r){return r.emojiId===W});
if(V!==-1){var f=this.emoji[V];f.stickyPrefId=l;this.set("emoji."+V,Object.assign({},f));this.activeEmojiWithVariantsId=l}}};
ZP.prototype.onKeyDown_=ZP.prototype.onKeyDown_;ZP.prototype.onMouseOver_=ZP.prototype.onMouseOver_;ZP.prototype.onClick=ZP.prototype.onClick;ZP.prototype.onBlur_=ZP.prototype.onBlur_;ZP.prototype.onFocus=ZP.prototype.onFocus;ZP.prototype.onMouseUp=ZP.prototype.onMouseUp;ZP.prototype.onMouseDown=ZP.prototype.onMouseDown;ZP.prototype.dataChanged=ZP.prototype.dataChanged;ZP.prototype.disableIncrementalLoadingChanged_=ZP.prototype.disableIncrementalLoadingChanged_;ZP.prototype.emojiManagerChanged_=ZP.prototype.emojiManagerChanged_;
ZP.prototype.emojiChanged_=ZP.prototype.emojiChanged_;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],ZP.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ZP.prototype,"data",void 0);_.a([_.b({computed:"computeId_(data)"}),_.z("design:type",String)],ZP.prototype,"id",void 0);_.a([_.b({computed:"computeEmoji(data)"}),_.z("design:type",Array)],ZP.prototype,"emoji",void 0);_.a([_.b(),_.z("design:type",Number)],ZP.prototype,"skinTone",void 0);
_.a([_.b(),_.z("design:type",_.UB)],ZP.prototype,"emojiManager",void 0);_.a([_.b(),_.z("design:type",Boolean)],ZP.prototype,"disableIncrementalLoading",void 0);_.a([_.b({value:0}),_.z("design:type",Number)],ZP.prototype,"focusedIndex",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],ZP.prototype,"showFocus",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.z("design:type",Object)],ZP.prototype,"ariaLabel",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.z("design:type",Object)],ZP.prototype,"ariaActivedescendant",void 0);_.a([_.b({value:60}),_.z("design:type",Number)],ZP.prototype,"domRepeatTargetFramerate",void 0);_.a([_.b({value:1}),_.z("design:type",Number)],ZP.prototype,"domRepeatInitialCount",void 0);_.a([_.b({value:""}),_.z("design:type",String)],ZP.prototype,"activeEmojiWithVariantsId",void 0);
_.a([_.b({value:!1}),_.z("design:type",Boolean)],ZP.prototype,"shouldUseStickyPreferences",void 0);_.a([_.TS("emoji"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZP.prototype,"emojiChanged_",null);_.a([_.TS("emojiManager"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZP.prototype,"emojiManagerChanged_",null);
_.a([_.TS("disableIncrementalLoading"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZP.prototype,"disableIncrementalLoadingChanged_",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZP.prototype,"dataChanged",null);_.a([_.XI("mousedown"),_.z("design:type",Function),_.z("design:paramtypes",[Object]),_.z("design:returntype")],ZP.prototype,"onMouseDown",null);
_.a([_.XI("mouseup"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZP.prototype,"onMouseUp",null);_.a([_.XI("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZP.prototype,"onFocus",null);_.a([_.XI("blur"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZP.prototype,"onBlur_",null);
_.a([_.XI("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],ZP.prototype,"onClick",null);_.a([_.XI("mouseover"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],ZP.prototype,"onMouseOver_",null);_.a([_.XI("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],ZP.prototype,"onKeyDown_",null);
_.a([_.Vq({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],ZP);
_.Z(ZP,"yt-emoji-picker-category-renderer",function(){if(QV9===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;A_L===void 0&&(A_L=document.createElement("template"));var f=A_L;V.call(l,f.content.cloneNode(!0),W.content.firstChild);QV9=W}W=QV9;return W},{mode:2});var MRe;var ZIk;var OIv;var aUI;var OB=function(){var W=_.I.apply(this,arguments)||this;W.ariaLabel=null;W.ariaActivedescendant=null;W.getFormattedStringRawText=_.dE;W.JSC$14195_ignoreNextFocus_=!1;return W};
_.v(OB,_.I);_.t=OB.prototype;_.t.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")};
_.t.emojiUrl=function(W){var l,V;W=(l=kI(this.emojiManager,W,!0))==null?void 0:(V=l.image)==null?void 0:V.thumbnails;return _.KP(W,24)||""};
_.t.emojiAlt=function(W){var l=this.get("image.accessibility.accessibilityData.label",W);return l?l:W.isCustomEmoji?W.shortcuts[0]:W.emojiId};
_.t.emojiId=function(W){return"emoji"+W};
_.t.computeId_=function(W){return W.categoryId||""};
_.t.computeAriaActivedescendant_=function(W){return this.emoji&&W<this.emoji.length?this.emojiId(W):""};
_.t.emojiChanged_=function(){this.changeFocus_(0,!1);for(var W=_.Qq(),l=0;l<this.emoji.length;l++){var V={veType:88013,elementIndex:l},f=this.emoji[l];f.isCustomEmoji&&(f=document.querySelector(("#"+f.emojiId).replace("/","\\/")))&&(V=_.AG(W,V))&&(f.visualElement=V)}};
_.t.computeEmoji_=function(W){var l=this;return this.emojiManager?W.emojiIds.map(function(V){return _.u5(l.emojiManager,V,!0)}).filter(mZ6):[]};
_.t.titleOffsetChanged_=function(){var W=this.hostElement.getBoundingClientRect(),l=_.GS(this.hostElement).querySelector("#title").getBoundingClientRect();W=Math.max(0,Math.min(this.titleOffset,W.height-l.height));_.GS(this.hostElement).querySelector("#title").style.top=W+"px"};
_.t.onEmojiMouseOver_=function(W){_.FN(this.hostElement,"yt-emoji-hover",W.model.item)};
_.t.onEmojiTap_=function(W){this.data.command&&(W=dYJ(_.tY().resolve(_.R0(NJ)),this.data.command,W),_.FN(this.hostElement,"yt-navigate",W))};
_.t.emojiAriaLabel=function(W){return W.shortcuts[0]};
_.t.emojiAriaSelected=function(W,l,V){return W&&V==l?"true":"false"};
_.t.changeFocus_=function(W,l){var V=this.emoji.length;this.focusedIndex=(this.focusedIndex+W+V)%V;W=this.emoji[this.focusedIndex];if(l){var f;(f=_.GS(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||f.scrollIntoView(!1);_.FN(this.hostElement,"yt-emoji-hover",W)}};
_.t.onMouseDown_=function(){this.JSC$14195_ignoreNextFocus_=!0};
_.t.onFocus_=function(){this.JSC$14195_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14195_ignoreNextFocus_=!1};
_.t.onBlur_=function(){this.showFocus=!1};
_.t.onKeyDown_=function(W){switch(W.keyCode){case 13:this.onEmojiTap_(W);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);W.preventDefault();break;case 38:this.changeFocus_(-1,!0),W.preventDefault()}};
OB.prototype.onKeyDown_=OB.prototype.onKeyDown_;OB.prototype.onBlur_=OB.prototype.onBlur_;OB.prototype.onFocus_=OB.prototype.onFocus_;OB.prototype.onMouseDown_=OB.prototype.onMouseDown_;OB.prototype.onEmojiTap_=OB.prototype.onEmojiTap_;OB.prototype.titleOffsetChanged_=OB.prototype.titleOffsetChanged_;OB.prototype.emojiChanged_=OB.prototype.emojiChanged_;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],OB.prototype,"ytComponentBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],OB.prototype,"data",void 0);_.a([_.b({computed:"computeId_(data)"}),_.z("design:type",String)],OB.prototype,"id",void 0);_.a([_.b({computed:"computeEmoji_(data)"}),_.z("design:type",Array)],OB.prototype,"emoji",void 0);_.a([_.b({value:0}),_.z("design:type",Number)],OB.prototype,"titleOffset",void 0);_.a([_.b({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.z("design:type",Object)],OB.prototype,"ariaLabel",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.z("design:type",Object)],OB.prototype,"ariaActivedescendant",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],OB.prototype,"showFocus",void 0);_.a([_.b({value:0}),_.z("design:type",Number)],OB.prototype,"focusedIndex",void 0);_.a([_.b(),_.z("design:type",_.UB)],OB.prototype,"emojiManager",void 0);
_.a([_.TS("emoji"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OB.prototype,"emojiChanged_",null);_.a([_.TS("titleOffset"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OB.prototype,"titleOffsetChanged_",null);_.a([_.XI("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],OB.prototype,"onEmojiTap_",null);
_.a([_.XI("mousedown"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OB.prototype,"onMouseDown_",null);_.a([_.XI("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OB.prototype,"onFocus_",null);_.a([_.XI("blur"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OB.prototype,"onBlur_",null);
_.a([_.XI("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],OB.prototype,"onKeyDown_",null);_.a([_.Vq({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],OB);
_.Z(OB,"yt-emoji-picker-upsell-category-renderer",function(){if(aUI===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;OIv===void 0&&(OIv=document.createElement("template"));var f=OIv;V.call(l,f.content.cloneNode(!0),W.content.firstChild);aUI=W}W=aUI;return W},{mode:2});var zkL;var NML;var a8=function(){var W=_.I.apply(this,arguments)||this;W.scrollAction="lock";W.verticalAlign="top";return W};
_.v(a8,_.I);_.t=a8.prototype;_.t.onClick=function(W){W=_.Ja(W);W instanceof HTMLImageElement&&_.FN(this.hostElement,"yt-emoji-select",_.u5(this.emojiManager,W.id))};
_.t.openSelector=function(){this.ironOverlayBehavior.open()};
_.t.onDomChange=function(){pUv(this.ytEmojiSelectorBehavior)};
_.t.computeIsFamilySelector=function(W){var l;return(W==null?void 0:(l=W.emoji)==null?void 0:l.emojiId)==="\ud83d\udc6a"};
_.t.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var W=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];W&&W.emojiId&&(_.FN(this.hostElement,"yt-emoji-select",_.u5(this.emojiManager,W.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.rc.Object.defineProperties(a8.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var W=this,l,V,f;return this.emojiManager&&((l=this.data)==null?0:(V=l.emoji)==null?0:(f=V.variantIds)==null?0:f.length)?this.data.emoji.variantIds.map(function(r){return!!r&&_.u5(W.emojiManager,r)}).filter(function(r){return!!r}):[]}}});
a8.prototype.onClick=a8.prototype.onClick;_.a([_.F(_.Bo),_.z("design:type",Object)],a8.prototype,"ironOverlayBehavior",void 0);_.a([_.F(oLX),_.z("design:type",Object)],a8.prototype,"ytEmojiSelectorBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],a8.prototype,"data",void 0);_.a([_.b(),_.z("design:type",_.UB)],a8.prototype,"emojiManager",void 0);_.a([_.b(),_.z("design:type",Object)],a8.prototype,"scrollAction",void 0);_.a([_.b(),_.z("design:type",Object)],a8.prototype,"verticalAlign",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.z("design:type",Boolean)],a8.prototype,"isFamilySelector",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],a8.prototype,"emojiVariants",null);_.a([_.XI("click"),_.z("design:type",Function),_.z("design:paramtypes",[MouseEvent]),_.z("design:returntype")],a8.prototype,"onClick",null);_.a([_.Vq({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],a8);
_.Z(a8,"yt-emoji-variant-selector",function(){if(NML===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;zkL===void 0&&(zkL=document.createElement("template"));var f=zkL;V.call(l,f.content.cloneNode(!0),W.content.firstChild);NML=W}W=NML;return W},{mode:2});var YVk=/:/g,xYa=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],zD=function(){var W=_.I.apply(this,arguments)||this;W.emojiVariantSelector=null;W.emojiMultiPersonSelector=null;W.identity=_.wS;W.lastAnimationTime_=0;W.animationStart_=null;W.animationEnd_=null;return W};
_.v(zD,_.I);_.t=zD.prototype;
_.t.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}}};
_.t.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.vB)};
_.t.attached=function(){_.kt&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&jya(this.emojiManager)};
_.t.dataChanged=function(){var W;if((W=this.data)==null?0:W.categories){W=this.emojiManager;var l=this.getCustomEmojiIds();W.pickerCustomEmojiIds=[].concat(_.QK(KD$),_.QK(l))}};
_.t.getCustomEmojiIds=function(){var W,l=(W=this.data.categories)==null?void 0:W.find(function(R){var y;return((y=R.emojiPickerCategoryRenderer)==null?void 0:y.categoryId)&&xYa.includes(R.emojiPickerCategoryRenderer.categoryId)}),V;
W=(V=this.data.categories)==null?void 0:V.find(function(R){return R.emojiPickerUpsellCategoryRenderer});
var f,r;return[l==null?void 0:(f=l.emojiPickerCategoryRenderer)==null?void 0:f.emojiIds,W==null?void 0:(r=W.emojiPickerUpsellCategoryRenderer)==null?void 0:r.emojiIds].flat().filter(function(R){return!!R})};
_.t.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.t.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.t.updateCategoriesAndPlaceholderInternal=function(W,l){var V=this;W&&l&&(this.categories=W.categories||[],this.categoryButtons=W.categoryButtons||[],this.resetPlaceholder(),this.search="",_.yq(function(){V.updateButtons_()}))};
_.t.computeId_=function(W){return W.id||""};
_.t.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(W){return W.emojiPickerCategoryRenderer&&W.emojiPickerCategoryRenderer.emojiData}):!1};
_.t.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.t.onShowEmojiVariantSelector=function(W){var l=W.detail.emojiData;l.variantIds&&l.variantIds.length&&(l.multiSelectorThumbnailRow&&l.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:l,target:W.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:l,target:W.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.t.onIronOverlayClosed=function(W){var l=ID9(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");l&&W.composedPath&&(W.composedPath().includes(_.GS(this.hostElement).querySelector("#emoji-variant-selector"))||W.composedPath().includes(_.GS(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.Gt(this.hostElement,"yt-close-emoji-variant-selector",[l.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.t.onEmojiVariantSelectorMouseup=function(W){var l=W.target.firstChild;this.variantSelectorOpened&&l&&_.yq(function(){l.noCancelOnOutsideClick=!1},100)};
_.t.onEmojiVariantSelectorMousedown=function(W){W=W.target.firstChild;this.variantSelectorOpened&&W&&(W.noCancelOnOutsideClick=!1)};
_.t.onSelectCategory_=function(W){var l=this.search!="";this.search="";for(var V=_.GS(this.hostElement).querySelector("#categories").children,f=0;f<V.length;f++){var r=V[f];if(r.id==W.detail.categoryId){l?(_.GS(this.hostElement).querySelector("#categories").scrollTop=r.offsetTop,this.updateButtons_()):(this.animationStart_=_.GS(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=r.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.t.onEmojiHover_=function(W){this.placeholder=W.detail.shortcuts?W.detail.shortcuts[0]:""};
_.t.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.t.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.t.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.t.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.t.computeSearchCategory_=function(W){W=W.replace(YVk,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();W=W.split(" ");for(var l=[],V=this.emojiManager.emojis,f=0;f<V.length;f++){var r=V[f];if(r.searchTerms)for(var R=0;R<r.searchTerms.length;R++){for(var y=r.searchTerms[R].toLocaleLowerCase(),P=!1,n=0;n<W.length;n++)if(y.indexOf(W[n])!=-1){P=!0;break}if(P&&(!r.isCustomEmoji||!r.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(r.emojiId))){l.push(r.emojiId);
break}}}return{categoryId:-1,emojiIds:l}};
_.t.computeSearchEmptyMessage_=function(W,l){return W&&l&&l.emojiIds&&l.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.t.computeSearching_=function(W){return this.emojiManager&&W.replace(YVk,"").length>1};
_.t.computeSkinToneHidden=function(){var W;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((W=this.data)==null||!W.hideSkinTonePicker)};
_.t.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.t.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.t.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.t.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.t.selectSkinTone_=function(W){W=Number(W.target.getAttribute("tone"));this.set("emojiManager.skinTone",W);_.Gt(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[W]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.t.skinToneChanged_=function(){_.GS(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var W=_.GS(this.hostElement).querySelector("#dropdown-content").children,l=0;l<W.length;l++)l===this.skinTone?W[l].setAttribute("selected",""):W[l].removeAttribute("selected")};
_.t.animateScroll_=function(W){this.lastAnimationTime_||(this.lastAnimationTime_=W);W-=this.lastAnimationTime_;W<200?(_.GS(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*W/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.GS(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.t.searchChanged_=function(){this.updateButtons_()};
_.t.updateButtons_=function(){var W=null;if(!this.search)for(var l=_.GS(this.hostElement).querySelector("#categories").scrollTop,V=_.GS(this.hostElement).querySelector("#categories").children,f=0;f<V.length;f++){var r=V[f];r.offsetTop<=l&&(W=r.id)}l=_.GS(this.hostElement).querySelector("#category-buttons").children;for(V=0;V<l.length;V++)f=l[V],f.active=f.id===W};
zD.prototype.searchChanged_=zD.prototype.searchChanged_;zD.prototype.skinToneChanged_=zD.prototype.skinToneChanged_;zD.prototype.onEmojiHover_=zD.prototype.onEmojiHover_;zD.prototype.onSelectCategory_=zD.prototype.onSelectCategory_;zD.prototype.onShowEmojiVariantSelector=zD.prototype.onShowEmojiVariantSelector;zD.prototype.updateCategoriesAndPlaceholder_=zD.prototype.updateCategoriesAndPlaceholder_;zD.prototype.dataChanged=zD.prototype.dataChanged;
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],zD.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],zD.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],zD.prototype,"data",void 0);_.a([_.b({value:function(){return[]}}),
_.z("design:type",Array)],zD.prototype,"categories",void 0);_.a([_.b({value:function(){return[]}}),
_.z("design:type",Array)],zD.prototype,"categoryButtons",void 0);_.a([_.b({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.z("design:type",Boolean)],zD.prototype,"disableScroll",void 0);_.a([_.b({computed:"computeId_(data)",reflectToAttribute:!0}),_.z("design:type",String)],zD.prototype,"id",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],zD.prototype,"selected",void 0);
_.a([_.b({value:!1}),_.z("design:type",Boolean)],zD.prototype,"disableIncrementalLoading",void 0);_.a([_.b(),_.z("design:type",String)],zD.prototype,"placeholder",void 0);_.a([_.b({value:""}),_.z("design:type",String)],zD.prototype,"search",void 0);_.a([_.b({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.z("design:type",Boolean)],zD.prototype,"searching",void 0);_.a([_.b({computed:"computeSearchCategory_(search)"}),_.z("design:type",Object)],zD.prototype,"searchCategory",void 0);
_.a([_.b({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.z("design:type",Object)],zD.prototype,"searchEmptyMessage",void 0);_.a([_.b({computed:"identity(emojiManager.skinTone)"}),_.z("design:type",Number)],zD.prototype,"skinTone",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],zD.prototype,"skinToneOpened",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],zD.prototype,"variantSelectorOpened",void 0);
_.a([_.b({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.z("design:type",Boolean)],zD.prototype,"skinToneHidden",void 0);_.a([_.b(),_.z("design:type",_.UB)],zD.prototype,"emojiManager",void 0);_.a([_.b(),_.z("design:type",Object)],zD.prototype,"emojiVariantSelector",void 0);_.a([_.b(),_.z("design:type",Object)],zD.prototype,"emojiMultiPersonSelector",void 0);
_.a([_.b({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.z("design:type",Boolean)],zD.prototype,"shouldUseStickyPreferences",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zD.prototype,"dataChanged",null);_.a([_.TS("data","selected"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zD.prototype,"updateCategoriesAndPlaceholder_",null);
_.a([_.XI("yt-show-emoji-variant-selector"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],zD.prototype,"onShowEmojiVariantSelector",null);_.a([_.XI("yt-emoji-picker-select-category"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],zD.prototype,"onSelectCategory_",null);_.a([_.XI("yt-emoji-hover"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],zD.prototype,"onEmojiHover_",null);
_.a([_.TS("skinTone"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zD.prototype,"skinToneChanged_",null);_.a([_.TS("search"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zD.prototype,"searchChanged_",null);_.a([_.Vq({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],zD);
_.Z(zD,"yt-emoji-picker-renderer",function(){if(ZIk===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;MRe===void 0&&(MRe=document.createElement("template"));var f=MRe;V.call(l,f.content.cloneNode(!0),W.content.firstChild);ZIk=W}W=ZIk;return W},{mode:2});var ND=function(){var W=_.I.apply(this,arguments)||this;W.emojiManager=_.vB;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.selectedIndex=1;W.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return W};
_.v(ND,_.I);_.t=ND.prototype;_.t.handleEmojiCustomizationVisible=function(W){this.emojiPickerRenderer.selected=W;this.selectedIndex=1;W?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.t.emojiCustomizationSetChanged=function(){var W;(W=this.data)!=null&&W.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.hx(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.t.updateSaveButtonState=function(W){var l;(l=this.data)!=null&&l.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.MB("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:W}))};
_.t.emojiUrl=function(W){W=_.u5(this.emojiManager,W);if(!W)return"";var l;W=(l=W.image)==null?void 0:l.thumbnails;return _.KP(W,24)||""};
_.t.emojiAlt=function(W){var l=_.u5(this.emojiManager,W);if(!l)return W;var V,f,r,R=(l==null?void 0:(V=l.image)==null?void 0:(f=V.accessibility)==null?void 0:(r=f.accessibilityData)==null?void 0:r.label)||"";return R?R:l.isCustomEmoji?l.shortcuts[0]:l.emojiId||W};
_.t.emojiAriaLabel=function(W){var l,V;return((l=_.u5(this.emojiManager,W))==null?void 0:(V=l.shortcuts)==null?void 0:V[0])||W};
_.t.onEmojiClick=function(W){W.model.index!==0&&(this.selectedIndex=W.model.index)};
_.t.onEmojiSelect=function(W){W=W.detail;var l,V;((l=this.data)==null?0:l.emojiCustomizationSetEntityKey)&&((V=this.emojiCustomizationSet)==null?0:V.emojiId)&&W.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,W.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.MB("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,W.emojiId,this.selectedIndex)}))};
_.t.canEditEmoji=function(W,l,V){W=W.indexOf(l);return W===V||W===0||V===0?!1:!0};
_.t.getUpdatedEmojiIdList=function(W,l,V){var f=W.indexOf(l);W=[].concat(_.QK(W));f>=0&&(W[f]=W[V]);W[V]=l;return W};
_.rc.Object.defineProperties(ND,{template:{configurable:!0,enumerable:!0,get:function(){if(nLZ===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;PgB===void 0&&(PgB=document.createElement("template"));var f=PgB;V.call(l,f.content.cloneNode(!0),W.content.firstChild);nLZ=W}W=nLZ;return W}}});
ND.prototype.onEmojiSelect=ND.prototype.onEmojiSelect;_.a([_.F(_.DS),_.z("design:type",Object)],ND.prototype,"ytLiveChatReduxBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],ND.prototype,"ytActionHandlerBehavior",void 0);_.a([_.Aa("yt-emoji-picker-renderer"),_.z("design:type",Object)],ND.prototype,"emojiPickerRenderer",void 0);
_.a([_.b({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(W,l){return _.mL(W.entities,"emojiCustomizationSetEntity",l)},
observer:"emojiCustomizationSetChanged"}),_.z("design:type",Object)],ND.prototype,"emojiCustomizationSet",void 0);_.a([_.b(),_.z("design:type",Object)],ND.prototype,"originalEmojiSet",void 0);_.a([_.b(),_.z("design:type",_.UB)],ND.prototype,"emojiManager",void 0);_.a([_.b(),_.z("design:type",Object)],ND.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ND.prototype,"isDarkTheme",void 0);_.a([_.b(),_.z("design:type",Object)],ND.prototype,"selectedIndex",void 0);
_.a([_.XI("yt-emoji-select"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],ND.prototype,"onEmojiSelect",null);_.a([_.Vq({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],ND);var eke;var qVk;var hkc;var SV$;var YI=function(){var W=_.I.apply(this,arguments)||this;W.authorBadges=[];return W};
_.v(YI,_.I);_.t=YI.prototype;_.t.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.t.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]]"}}}}}};
_.t.dataChanged=function(){var W=Pfz(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",W)};
_.t.updateMessage=function(){var W=this.data.message,l=_.GS(_.GS(this.hostElement).querySelector("#message"));l.textContent="";W&&l.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W))};
_.t.shouldSupportWholeItemClick=function(){return!0};
_.t.onShowOriginalClick=function(W){W.preventDefault();this.showOriginal=!0};
_.t.computeShowBar=function(W,l,V){return W&&l||V};
_.t.computeAuthorBadges=function(W){return W.authorBadges||[]};
_.t.computeAuthorIsOwner=function(W){return!!nqJ(W.authorBadges,"owner")};
_.t.computeAuthorNameColor=function(W){var l;if(_.U("live_chat_author_name_color_usernames")&&(W==null?0:(l=W.authorName)==null?0:l.simpleText))return _.DOg(_.UOx(W.authorName.simpleText));if(_.U("live_chat_seed_color_usernames")&&(W==null?0:W.authorSeedColorArgb))return _.DOg(_.oJ(W.authorSeedColorArgb));if(_.U("live_chat_colored_usernames"))return"#cc0000";var V;return _.U("live_chat_simple_color_usernames")&&(W==null?0:(V=W.authorName)==null?0:V.simpleText)&&(W==null?0:W.authorUsernameColorLight)&&
(W==null?0:W.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.oJ(W.authorUsernameColorDark):_.oJ(W.authorUsernameColorLight):""};
YI.prototype.updateMessage=YI.prototype.updateMessage;YI.prototype.dataChanged=YI.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],YI.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.HB.YtLiveChatItemBehavior),_.z("design:type",_.Kf)],YI.prototype,"ytLiveChatItemBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],YI.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],YI.prototype,"data",void 0);
_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],YI.prototype,"showOriginal",void 0);_.a([_.b({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.z("design:type",Boolean)],YI.prototype,"isDimmed",void 0);_.a([_.b({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.z("design:type",Boolean)],YI.prototype,"showBar",void 0);
_.a([_.b({computed:"computeAuthorBadges(data)"}),_.z("design:type",Array)],YI.prototype,"authorBadges",void 0);_.a([_.b({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],YI.prototype,"authorIsOwner",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],YI.prototype,"inCollapsedBanner",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],YI.prototype,"inBanner",void 0);
_.a([_.b({value:_.U("live_chat_hide_avatars"),reflectToAttribute:!0}),_.z("design:type",Boolean)],YI.prototype,"avatarHidden",void 0);_.a([_.b({computed:"computeAuthorNameColor(data)"}),_.z("design:type",String)],YI.prototype,"authorNameColor",void 0);_.a([_.b(),_.z("design:type",_.b5)],YI.prototype,"participantsManager",void 0);_.a([_.b({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.z("design:type",Object)],YI.prototype,"filledButtonOverrides",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YI.prototype,"dataChanged",null);_.a([_.TS("data.message"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YI.prototype,"updateMessage",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],YI);
_.Z(YI,"yt-live-chat-text-message-renderer",function(){if(SV$===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;hkc===void 0&&(hkc=document.createElement("template"));var f=hkc;V.call(l,f.content.cloneNode(!0),W.content.firstChild);SV$=W}W=SV$;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var xI=function(){var W=_.I.apply(this,arguments)||this;W.tonalButtonOverrides={type:"tonal",style:"overlay"};return W};
_.v(xI,_.I);
xI.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]]"}}}}}};
xI.prototype.shouldSupportInlineActionButtons=function(){return!0};
xI.prototype.shouldSupportWholeItemClick=function(){return!0};
_.rc.Object.defineProperties(xI.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],xI.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.HB.YtLiveChatItemBehavior),_.z("design:type",_.Kf)],xI.prototype,"ytLiveChatItemBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],xI.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],xI.prototype,"data",void 0);_.a([_.b(),_.z("design:type",_.b5)],xI.prototype,"participantsManager",void 0);
_.a([_.b(),_.z("design:type",Object)],xI.prototype,"tonalButtonOverrides",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("data.infoDialogButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],xI.prototype,"hasInfoDialogButton",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],xI);
_.Z(xI,"yt-live-chat-auto-mod-message-renderer",function(){if(qVk===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;eke===void 0&&(eke=document.createElement("template"));var f=eke;V.call(l,f.content.cloneNode(!0),W.content.firstChild);qVk=W}W=qVk;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var EL9;var $Yv;var WX9;var lKL=function(){return _.I.apply(this,arguments)||this};
_.v(lKL,_.I);_.a([_.b(),_.z("design:type",Object)],lKL.prototype,"data",void 0);_.a([_.A({is:"ytd-factoid-renderer",disableElementRegistration:!0})],lKL);
_.Z(lKL,"ytd-factoid-renderer",function(){if(WX9!==void 0)return WX9;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return WX9=W},{mode:1});var e6=function(){return _.I.apply(this,arguments)||this};
_.v(e6,_.I);e6.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.a([_.b(),_.z("design:type",Object)],e6.prototype,"data",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],e6.prototype,"ytRendererstamperBehavior",void 0);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],e6);
_.Z(e6,"yt-live-chat-channel-activity-reputation-renderer",function(){if($Yv===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;EL9===void 0&&(EL9=document.createElement("template"));var f=EL9;V.call(l,f.content.cloneNode(!0),W.content.firstChild);$Yv=W}W=$Yv;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var Vde;var fK1;var qD=function(){return _.I.apply(this,arguments)||this};
_.v(qD,_.I);qD.prototype.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],qD.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Boolean)],qD.prototype,"menuFocused",void 0);_.a([_.b(),_.z("design:type",Object)],qD.prototype,"data",void 0);_.a([_.F(_.HB.YtLiveChatItemBehavior),_.z("design:type",_.Kf)],qD.prototype,"ytLiveChatItemBehavior",void 0);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],qD);
_.Z(qD,"yt-live-chat-donation-announcement-renderer",function(){if(fK1===void 0){var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;Vde===void 0&&(Vde=document.createElement("template"));var f=Vde;V.call(l,f.content.cloneNode(!0),W.content.firstChild);fK1=W}W=fK1;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var rb1;var RAk,tdv=function(){if(RAk!==void 0)return RAk;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;rb1===void 0&&(rb1=document.createElement("template"));var f=rb1;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return RAk=W};var hP=function(){return _.I.apply(this,arguments)||this};
_.v(hP,_.I);_.rc.Object.defineProperties(hP,{template:{configurable:!0,enumerable:!0,get:function(){return tdv()}}});
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],hP.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],hP.prototype,"data",void 0);_.a([_.Vq({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],hP);_.Z(hP,"yt-live-chat-empty-feed-view-model",function(){return tdv()},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var sC9;var LXL;var S6=function(){return _.I.apply(this,arguments)||this};
_.v(S6,_.I);S6.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"}}}}}};
_.rc.Object.defineProperties(S6.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var W,l;return{runs:[{text:(W=this.data)==null?void 0:(l=W.channelName)==null?void 0:l.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var W=[],l;if((l=this.data)==null||!l.channelBadges)return W;var V;l=_.L((V=this.data)==null?void 0:V.channelBadges);for(V=l.next();!V.done;V=l.next()){V=_.k(V.value,YsI);var f=void 0,r=void 0;if((f=V)==null?0:(r=f.badgeImage)==null?0:r.sources)f=void 0,r={liveChatAuthorBadgeRenderer:{tooltip:V.tooltip,accessibility:{accessibilityData:{label:(f=_.k(V.rendererContext,_.N0))==null?void 0:f.label}}}},V.badgeImage.sources[0].clientResource?r.liveChatAuthorBadgeRenderer.icon=
{iconType:V.badgeImage.sources[0].clientResource.imageName}:r.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:V.badgeImage.sources},W.push(r)}return W}}});
_.a([_.b(),_.z("design:type",Object)],S6.prototype,"data",void 0);_.a([_.G("data.channelName"),_.z("design:type",Object),_.z("design:paramtypes",[])],S6.prototype,"channelName",null);_.a([_.G("data.channelBadges"),_.z("design:type",Array),_.z("design:paramtypes",[])],S6.prototype,"channelBadges",null);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],S6.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],S6);
_.Z(S6,"yt-live-chat-identity-view-model",function(){if(LXL===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;sC9===void 0&&(sC9=document.createElement("template"));var f=sC9;V.call(l,f.content.cloneNode(!0),W.content.firstChild);LXL=W}W=LXL;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var ybM;var gXL;var PbL;var nXX;var EB=function(){var W=_.I.apply(this,arguments)||this;W.hidden=!1;W.supportsInlineActionButtons=!0;return W};
_.v(EB,_.I);EB.prototype.ready=function(){var W;((W=document.querySelector("yt-live-chat-app"))==null?0:W.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
EB.prototype.dataChanged=function(W){var l=(0,_.j3)(_.GS(this.hostElement).querySelector("#detail-text"));l.textContent="";(W==null?0:W.detailText)&&l.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W.detailText))};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],EB.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.HB.YtLiveChatItemBehavior),_.z("design:type",_.Kf)],EB.prototype,"ytLiveChatItemBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],EB.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b({observer:"dataChanged"}),_.z("design:type",Object)],EB.prototype,"data",void 0);
_.a([_.b({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.z("design:type",Object)],EB.prototype,"hidden",void 0);_.a([_.A({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],EB);
_.Z(EB,"yt-live-chat-legacy-paid-message-renderer",function(){if(nXX===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;PbL===void 0&&(PbL=document.createElement("template"));var f=PbL;V.call(l,f.content.cloneNode(!0),W.content.firstChild);nXX=W}W=nXX;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var Cbe;var cbk;var Bh9={},$I=function(){return _.OD.apply(this,arguments)||this};
_.v($I,_.OD);$I.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
$I.prototype.onLiveChatMembershipItemBehaviorClick=$I.prototype.onLiveChatMembershipItemBehaviorClick;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],$I.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],$I.prototype,"data",void 0);_.a([_.XI("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],$I.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.a([_.a1()],$I);
Bh9.YtLiveChatMembershipItemBehavior=[$I.prototype,_.q.YtRendererBehavior];var WZ=function(){var W=_.I.apply(this,arguments)||this;W.supportsInlineActionButtons=!0;W.hasPrimaryHeaderText=!1;W.showOnlyHeader=!1;W.authorBadges=[];W.modern=_.U("web_button_rework_with_live");W.buttonOverrides={style:"overlay",type:"filled"};return W};
_.v(WZ,_.I);_.t=WZ.prototype;_.t.shouldSupportInlineActionButtons=function(){return!0};
_.t.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.t.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.t.messageChanged=function(){var W=this.data.message,l=(0,_.j3)(_.GS(this.hostElement).querySelector("#message"));l.textContent="";W&&l.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W))};
_.t.computeHasPrimaryHeaderText=function(W){return!(!W||!W.headerPrimaryText)};
_.t.computeShowOnlyHeader=function(W,l){return this.isMessageEmpty(W,l)};
_.t.computeAuthorBadges=function(W){return W.authorBadges||[]};
_.t.isMessageEmpty=function(W,l){return!W||W.empty?!0:!W.message&&!W.inputField&&!l};
_.t.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.t.getInputElement=function(){return _.GS(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.t.inputFocus=function(){var W=this.getInputElement();W&&W.focus()};
_.t.inputInsertEmoji=function(W){var l=this.getInputElement();l&&l.insertEmoji(W)};
_.t.inputMessage=function(){var W=this.getInputElement();return W&&this.data.inputField?(W.completeEmojis(),_.fv(W.liveChatRichMessageInput)):null};
_.t.onFooterButtonClick=function(){this.data.footerButton&&_.FN(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.t.shouldSupportWholeItemClick=function(){return!0};
WZ.prototype.isDeletedChanged=WZ.prototype.isDeletedChanged;WZ.prototype.messageChanged=WZ.prototype.messageChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],WZ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.HB.YtLiveChatItemBehavior),_.z("design:type",_.Kf)],WZ.prototype,"ytLiveChatItemBehavior",void 0);_.a([_.F(Bh9.YtLiveChatMembershipItemBehavior),_.z("design:type",Object)],WZ.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],WZ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],WZ.prototype,"data",void 0);_.a([_.b({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.z("design:type",Object)],WZ.prototype,"hasPrimaryHeaderText",void 0);_.a([_.b({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.z("design:type",Object)],WZ.prototype,"showOnlyHeader",void 0);
_.a([_.b({computed:"computeAuthorBadges(data)"}),_.z("design:type",Array)],WZ.prototype,"authorBadges",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],WZ.prototype,"modern",void 0);_.a([_.TS("data.message"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],WZ.prototype,"messageChanged",null);_.a([_.TS("isDeleted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],WZ.prototype,"isDeletedChanged",null);
_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],WZ);
_.Z(WZ,"yt-live-chat-membership-item-renderer",function(){if(cbk===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;Cbe===void 0&&(Cbe=document.createElement("template"));var f=Cbe;V.call(l,f.content.cloneNode(!0),W.content.firstChild);cbk=W}W=cbk;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var dZ$;var JbB;var ly=function(){return _.I.apply(this,arguments)||this};
_.v(ly,_.I);ly.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ly.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ly.prototype,"data",void 0);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],ly);
_.Z(ly,"yt-live-chat-mode-change-message-renderer",function(){if(JbB===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;dZ$===void 0&&(dZ$=document.createElement("template"));var f=dZ$;V.call(l,f.content.cloneNode(!0),W.content.firstChild);JbB=W}W=JbB;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var DZX;var UZX;var VG=function(){return _.I.apply(this,arguments)||this};
_.v(VG,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],VG.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.HB.YtLiveChatItemBehavior),_.z("design:type",_.Kf)],VG.prototype,"ytLiveChatItemBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],VG.prototype,"data",void 0);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],VG);
_.Z(VG,"yt-live-chat-moderation-message-renderer",function(){if(UZX===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;DZX===void 0&&(DZX=document.createElement("template"));var f=DZX;V.call(l,f.content.cloneNode(!0),W.content.firstChild);UZX=W}W=UZX;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var uk9;var keB;var fZ=function(){var W=_.I.apply(this,arguments)||this;W.modern=_.U("web_button_rework");return W};
_.v(fZ,_.I);fZ.prototype.onClick=function(){var W;if((W=this.data)!=null&&W.onClickCommand){var l;_.mK.instance.resolveCommand((l=this.data)==null?void 0:l.onClickCommand)}};
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],fZ.prototype,"modern",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],fZ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.DS),_.z("design:type",Object)],fZ.prototype,"ytLiveChatReduxBehavior",void 0);_.a([_.F(_.HB.YtLiveChatItemBehavior),_.z("design:type",_.Kf)],fZ.prototype,"ytLiveChatItemBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],fZ.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],fZ.prototype,"data",void 0);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],fZ);
_.Z(fZ,"yt-live-chat-offer-click-count-message-renderer",function(){if(keB===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;uk9===void 0&&(uk9=document.createElement("template"));var f=uk9;V.call(l,f.content.cloneNode(!0),W.content.firstChild);keB=W}W=keB;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var vXv;var HlX=function(){return _.I.apply(this,arguments)||this};
_.v(HlX,_.I);_.a([_.b(),_.z("design:type",Object)],HlX.prototype,"data",void 0);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],HlX);
_.Z(HlX,"yt-live-chat-placeholder-item-renderer",function(){if(vXv===void 0){var W=document.createElement("template");_.K(W,"\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");W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);vXv=W}W=vXv;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var KXk;var FXc;var Gec=new Ca(7),rx=function(){var W=_.I.apply(this,arguments)||this;W.data={};return W};
_.v(rx,_.I);rx.prototype.dataChanged=function(){var W;((W=this.data)==null?0:W.class)&&_.pG(this.hostElement,this.data.class,!0);var l;((l=this.oldData)==null?0:l.class)&&_.pG(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
rx.prototype.computeTimestampString=function(W){return Gec.format(new Date(W/1E3))};
rx.prototype.dataChanged=rx.prototype.dataChanged;_.a([_.b(),_.z("design:type",Object)],rx.prototype,"data",void 0);_.a([_.b({computed:"computeTimestampString(data.timestampUsec)"}),_.z("design:type",String)],rx.prototype,"timestampString",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rx.prototype,"dataChanged",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],rx);
_.Z(rx,"yt-live-chat-server-error-message",function(){if(FXc===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;KXk===void 0&&(KXk=document.createElement("template"));var f=KXk;V.call(l,f.content.cloneNode(!0),W.content.firstChild);FXc=W}W=FXc;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var blk;var pJa;var RR=function(){var W=_.I.apply(this,arguments)||this;W.defaultToFilledIcon=!1;return W};
_.v(RR,_.I);RR.prototype.computeHasPrimaryColorIcon=function(W){return W==="SPARK"||W==="SPONSORSHIP_STAR"};
RR.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.HB.YtLiveChatItemBehavior),_.z("design:type",_.Kf)],RR.prototype,"ytLiveChatItemBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],RR.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],RR.prototype,"defaultToFilledIcon",void 0);_.a([_.b(),_.z("design:type",Object)],RR.prototype,"data",void 0);
_.a([_.b({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.z("design:type",Boolean)],RR.prototype,"hasPrimaryColorIcon",void 0);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],RR);
_.Z(RR,"yt-live-chat-viewer-engagement-message-renderer",function(){if(pJa===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;blk===void 0&&(blk=document.createElement("template"));var f=blk;V.call(l,f.content.cloneNode(!0),W.content.firstChild);pJa=W}W=pJa;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var oX9;var tM=function(){var W=_.I.apply(this,arguments)||this;W.modernUpdate=!1;W.buttonStyle="overlay";W.buttonType="filled";return W};
_.v(tM,_.I);tM.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
tM.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],tM.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],tM.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],tM.prototype,"modernUpdate",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],tM.prototype,"buttonStyle",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],tM.prototype,"buttonType",void 0);
_.a([_.A({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],tM);
_.Z(tM,"ytd-ad-hover-text-button-renderer",function(){if(oX9!==void 0)return oX9;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return oX9=W},{mode:1});var jC9;var sh=function(){var W=_.I.apply(this,arguments)||this;W.buttonOverrides={size:"XS"};W.modern=_.U("web_button_rework");return W};
_.v(sh,_.I);sh.prototype.onHelpTap=function(W){this.data&&this.data.informationDialog&&(_.FN(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),W.preventDefault(),W.stopPropagation())};
_.a([_.b(),_.z("design:type",Object)],sh.prototype,"buttonOverrides",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sh.prototype,"modern",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],sh.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],sh);
_.Z(sh,"ytd-live-chat-purchased-product-message-renderer",function(){if(jC9!==void 0)return jC9;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return jC9=W},{mode:1});var IKc;var ilZ;var LZ=function(){var W=_.I.apply(this,arguments)||this;W.isContainerDeleted=!1;return W};
_.v(LZ,_.I);LZ.prototype.onContextMenuClick=function(W){this.ytLiveChatItemBehavior.showContextMenu(W)};
LZ.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))};
LZ.prototype.isContainerDeletedChanged=LZ.prototype.isContainerDeletedChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],LZ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.HB.YtLiveChatItemBehavior),_.z("design:type",_.Kf)],LZ.prototype,"ytLiveChatItemBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],LZ.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],LZ.prototype,"isContainerDeleted",void 0);
_.a([_.b(),_.z("design:type",String)],LZ.prototype,"deletedStateMessage",void 0);_.a([_.TS("isContainerDeleted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LZ.prototype,"isContainerDeletedChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],LZ);
_.Z(LZ,"ytd-sponsorships-live-chat-header-renderer",function(){if(ilZ!==void 0)return ilZ;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return ilZ=W},{mode:1});var yG=function(){var W=_.I.apply(this,arguments)||this;W.modern=_.U("web_button_rework_with_live");W.buttonOverrides={style:"overlay",type:"filled"};return W};
_.v(yG,_.I);yG.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]]"}}}}}};
yG.prototype.onCtaButtonClick=function(){var W,l=_.k((W=this.data)==null?void 0:W.optInPrompt,_.CE);if(W=this.maybeGetButtonCommand(l)){var V;(V=_.Qq())==null||V.clickCommand(W)}};
yG.prototype.maybeGetButtonCommand=function(W){return!W||!W.command||_.k(W.command,FVL)===void 0&&_.k(W.command,KVv)===void 0?null:W.command};
yG.prototype.shouldHideOptinPrompt=function(W,l){return!W||l};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],yG.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.HB.YtLiveChatItemBehavior),_.z("design:type",_.Kf)],yG.prototype,"ytLiveChatItemBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],yG.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yG.prototype,"modern",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],yG);
_.Z(yG,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(IKc!==void 0)return IKc;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return IKc=W},{mode:1});var mZa;var gx=function(){return _.I.apply(this,arguments)||this};
_.v(gx,_.I);gx.prototype.onContextMenuClick=function(W){this.ytLiveChatItemBehavior.showContextMenu(W)};
gx.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))};
gx.prototype.isDeletedChanged=gx.prototype.isDeletedChanged;_.a([_.F(_.HB.YtLiveChatItemBehavior),_.z("design:type",_.Kf)],gx.prototype,"ytLiveChatItemBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],gx.prototype,"data",void 0);_.a([_.TS("isDeleted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gx.prototype,"isDeletedChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],gx);
_.Z(gx,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(mZa!==void 0)return mZa;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return mZa=W},{mode:1});var PZ=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return W};
_.v(PZ,_.I);_.t=PZ.prototype;
_.t.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"}}}};
_.t.handleLiveChatAction=function(W){_.k(W,ckv)?this.handleMarkChatItemAsDeletedAction(_.k(W,ckv)):_.k(W,CZ9)&&this.handleRemoveChatItemAction(_.k(W,CZ9))};
_.t.handleLiveChatActions=function(W){W.forEach(this.handleLiveChatAction,this)};
_.t.handleMarkChatItemAsDeletedAction=function(W){var l=this,V;((V=this.data)==null?0:V.items)&&this.data.items.forEach(function(f,r){var R=Object.keys(f)[0];Object.values(f)[0].id===W.targetItemId&&l.markAsDeleted("data.items",r,R,W.deletedStateMessage,W.showOriginalContentMessage)})};
_.t.handleRemoveChatItemAction=function(W){var l=this,V;((V=this.data)==null?0:V.items)&&this.data.items.forEach(function(f,r){Object.values(f)[0].id===W.targetItemId&&l.splice("data.items",r,1)})};
_.t.markAsDeleted=function(W,l,V,f,r){W=[W,l,V].join(".");this.set(W+".deletedStateMessage",f);this.set(W+".showOriginalContentMessage",r)};
_.a([_.b(),_.z("design:type",Object)],PZ.prototype,"data",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],PZ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],PZ.prototype,"ytActionHandlerBehavior",void 0);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],PZ);
_.Z(PZ,"yt-live-chat-item-display-list-renderer",function(){if(gXL===void 0){var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;ybM===void 0&&(ybM=document.createElement("template"));var f=ybM;V.call(l,f.content.cloneNode(!0),W.content.firstChild);gXL=W}W=gXL;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var XJZ;var ThZ,wJB=function(){if(ThZ!==void 0)return ThZ;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;XJZ===void 0&&(XJZ=document.createElement("template"));var f=XJZ;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return ThZ=W};var nZ=function(){var W=_.I.apply(this,arguments)||this;W.isHeader=!1;return W};
_.v(nZ,_.I);nZ.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.rc.Object.defineProperties(nZ,{template:{configurable:!0,enumerable:!0,get:function(){return wJB()}}});
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],nZ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],nZ.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],nZ.prototype,"isHeader",void 0);_.a([_.Vq({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],nZ);_.Z(nZ,"yt-live-chat-item-display-renderer",function(){return wJB()},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var Abk,QC1,zAc,aKL;
Abk={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}};QC1={home:"eohps",search:"eosps",watch:"eowps"};_.Mdv=["watch","search","home"];
_.CZ=function(){this.JSC$14306_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14306_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.M4("PRECONSTRUCTION_DELAY",0);this.signals_=_.DI();this.targetPage_=""};
_.CZ.prototype.init=function(W,l){W=W===void 0?"":W;l=l===void 0?null:l;if(this.JSC$14306_isInitialized_)this.abort();else if(this.JSC$14306_isInitialized_=!0,W&&_.ZlZ(this,W),l){var V=_.U7(this.signals_,"pcl")?0:10,f=function(){for(var r=0,R;R=_.Mdv[r++];)R!=W&&R!=l&&this.pendingPages_.push(R);_.OlI(this)}.bind(this);
this.signals_.parkOrScheduleJob(f,V,"pcl")}};
_.CZ.prototype.abort=function(){this.fragmentJobId_&&(_.w8.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);aKL(this)};
_.ZlZ=function(W,l){W.JSC$14306_isInitialized_&&!W.targetPage_&&(W.targetPage_=l,zAc(W,l),W.isInitialPass_=!1,zAc(W,l),W.signals_.processSignal(QC1[W.targetPage_]),aKL(W),_.OlI(W))};
_.OlI=function(W){W.pendingPages_.length&&!W.pagePreparerJobId_&&(W.pagePreparerJobId_=_.pS(_.w8,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.ZlZ(this,this.pendingPages_.shift())}.bind(W),W.DEFAULT_DELAY_))};
zAc=function(W,l){if(l=Abk[l])for(var V in l){var f=!1,r=V;V.charAt(0)=="~"&&(f=!0,r=V.substring(1));var R=l[V];R=typeof R=="object"?R:{count:R};l[V]=R;R.componentName=r;R.count>0&&(W.isInitialPass_?f||W.isSeenDuringInitialPass_[r]||(W.JSC$14306_queue_.push({componentName:r,count:1,signals:R.signals}),W.isSeenDuringInitialPass_[r]=!0,R.count--):W.JSC$14306_queue_.push(R))}};
aKL=function(W){W.JSC$14306_queue_.length=0;W.targetPage_="";W.isInitialPass_=!0;W.signals_.processSignal("eop")};
_.CZ.getInstance=function(){return _.nt(_.CZ)};var Nh$=function(){this.signals=_.DI();this.init()};
Nh$.prototype.startPreconstruction=function(){_.CZ.getInstance().init(_.ZL("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
Nh$.prototype.init=function(){YFL(this);window.Polymer&&DS1&&lBS();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var W=_.rS.ytcsi;if(W&&W.gt&&(W=W.gt())&&W.tick&&(W.tick.aft>0||W.tick.pbs>0)&&(_.ZL("IS_HOMEPAGE_COLD")||_.ZL("IS_RESULTS_PAGE_COLD")||_.ZL("IS_WATCH_PAGE_COLD"))){xZv(this);break a}pVJ(hiS,this.onNotifications,this)}};
var YFL=function(W){var l=function(){W.signals.processSignal("dl")};
document.readyState==="complete"?(_.x2(Error("xh"),"WARNING"),l()):_.r2F(window,"load",l)};
Nh$.prototype.onNotifications=function(W){W.timer||(_.ZL("IS_HOMEPAGE_COLD")||_.ZL("IS_RESULTS_PAGE_COLD")||_.ZL("IS_WATCH_PAGE_COLD"))&&xZv(this)};
var xZv=function(W){W.signals.parkOrScheduleJob(function(){W.signals.processSignal("eocs")},10,"eor")};
new Nh$;var cZ,eAk=function(){return _.OD.apply(this,arguments)||this};
_.v(eAk,_.OD);_.t=eAk.prototype;_.t.enableActiveViewMeasurement=function(W){if(this.isActiveViewEnabled(W)){var l=this.getUrlPrefixesFromCommand(W.viewableCommands);W=this.getUrlPrefixesFromCommand(W.endOfSessionCommands);if(!cZ){var V=_.yS("custom_active_view_tos_timeout_ms");cZ=V>0&&V!==36E5?new o5z(this.getVersion(),V):new o5z(this.getVersion())}IEJ(cZ,this.hostElement);iwj(cZ,this.hostElement,l,W)}};
_.t.stopActiveViewMeasurement=function(){cZ&&IEJ(cZ,this.hostElement)};
_.t.isActiveViewEnabled=function(W){return!!W&&(this.hasAtLeastOneUrl(W.viewableCommands)||this.hasAtLeastOneUrl(W.endOfSessionCommands))};
_.t.hasAtLeastOneUrl=function(W){return!!W&&W.length>0&&W[0].loggingUrls!=null&&W[0].loggingUrls.length>0};
_.t.getVersion=function(){var W=_.M4("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(W==null?void 0:W.length)===2?W[1]:null};
_.t.getUrlPrefixesFromCommand=function(W){if(!W)return[];var l=[];W=_.L(W);for(var V=W.next();!V.done;V=W.next())if(V=V.value,V.loggingUrls){V=_.L(V.loggingUrls);for(var f=V.next();!f.done;f=V.next())f=f.value,f.baseUrl&&l.push(f.baseUrl)}return l};
_.a([_.a1()],eAk);var BZ=[eAk.prototype];var qF1=function(){return _.OD.apply(this,arguments)||this};
_.v(qF1,_.OD);_.rc.Object.defineProperties(qF1.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.U("enable_entity_store_from_dependency_injection")?_.BE():_.DJ()}}});
_.a([_.a1()],qF1);_.dx=[PL.prototype,qF1.prototype];var hA1=["ytd-rich-shelf-renderer"],JM=function(){var W=_.OD.apply(this,arguments)||this;W._noAccessors=!0;W.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";W.followUpDialogPromise=null;W.followUpDialogPromiseResolve=null;W.followUpDialogPromiseReject=null;return W};
_.v(JM,_.OD);_.t=JM.prototype;_.t.dismissibleItemIsDismissedChanged_=function(W){_.U("kevlar_fluid_dismiss")&&(W?_.FN(this.hostElement,"yt-dismissible-item-dismissed"):_.FN(this.hostElement,"yt-dismissible-item-undismissed"))};
_.t.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.t.dismissibleItemReset_=function(){var W=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 _.Dx(function(l,V){W.followUpDialogPromiseResolve=l;W.followUpDialogPromiseReject=V});
_.FN(this.hostElement,"yt-enable-lockup-interaction")};
_.t.dismissibleItemOnYtServiceRequestSent_=function(W,l){l.actions&&this.dismissibleItemProcessActions(l.actions,W)};
_.t.dismissibleItemOnRequestSent=function(W){if(_.U("web_button_rework"))for(var l=_.L(W.detail),V=l.next();!V.done;V=l.next()){var f=void 0;(V=(f=_.k(V.value,_.mA))==null?void 0:f.actions)&&this.dismissibleItemProcessActions(V,W)}};
_.t.dismissibleItemOnCommandSent=function(W,l){l&&this.dismissibleItemProcessActions(l,W)};
_.t.setAndGetDismissedContentId=function(W){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+W};
_.t.replayDismissAction=function(W){this.dismissibleItemProcessActions([W])};
_.t.dismissibleItemProcessActions=function(W,l){for(var V=0;V<W.length;V++){var f=W[V],r=void 0;((r=_.k(f,_.Ig))==null?0:r.commands)&&this.dismissibleItemProcessActions(_.k(f,_.Ig).commands,l);if(_.k(f,_.x0)){if(r=_.k(f,_.x0),!r.replaceParentSection||hA1.includes(this.hostElement.nodeName.toLowerCase()))r.groupDismissal&&XJx(this,r.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(r),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.MB("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:f})),f=void 0,(f=l)==null||f.stopPropagation()}else if(_.k(f,Cl$))this.dismissibleItemHandleHideEnclosingAction_(),f=void 0,(f=l)==null||f.stopPropagation();else if(_.k(f,wD1))f=_.k(f,wD1),r=void 0,((r=f)==null?0:r.targetGroupId)&&XJx(this,{targetGroupId:f.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.MB("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
f=void 0,(f=l)==null||f.stopPropagation();else if(_.k(f,_.mA))(f=_.k(f,_.mA).actions)&&_.og(this.hostElement,f,this.hostElement),f=void 0,(f=l)==null||f.stopPropagation();else{var R=r=void 0;((r=_.k(f,_.zs))==null?void 0:r.signal)!=="TELL_US_WHY"||((R=_.k(f,_.zs))==null?0:R.targetId)&&_.U("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),f=void 0,(f=l)==null||f.stopPropagation())}}};
_.t.dismissibleItemOnYtServiceRequestCompleted_=function(W,l){var V=this.get("feedbackResponses.0.followUpDialog",l.data);V?this.followUpDialogPromiseResolve(V):l.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(l.actions,W)};
_.t.dismissibleItemHandleReplaceEnclosingAction_=function(W){this.dismissedRenderer=W.item;this.isDismissed=!0;var l=null;(l=_.GS(this.hostElement).querySelector("#dismissed"))&&_.V9(this,function(){_.$s(l)});
_.FN(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.t.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.t.dismissibleItemHandleUndoFeedbackAction_=function(){_.FN(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.t.dismissibleItemHandleTellUsWhySignalAction_=function(){var W=this;this.followUpDialogPromise.then(function(l){W.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:l}})})};
JM.prototype.dismissibleItemOnYtServiceRequestCompleted_=JM.prototype.dismissibleItemOnYtServiceRequestCompleted_;JM.prototype.dismissibleItemOnCommandSent=JM.prototype.dismissibleItemOnCommandSent;JM.prototype.dismissibleItemOnRequestSent=JM.prototype.dismissibleItemOnRequestSent;JM.prototype.dismissibleItemOnYtServiceRequestSent_=JM.prototype.dismissibleItemOnYtServiceRequestSent_;JM.prototype.dismissibleItemDataChanged_=JM.prototype.dismissibleItemDataChanged_;
JM.prototype.dismissibleItemIsDismissedChanged_=JM.prototype.dismissibleItemIsDismissedChanged_;_.a([_.F(_.i5),_.z("design:type",Object)],JM.prototype,"ytdOpenPopupBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],JM.prototype,"ytdReduxBehavior",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],JM.prototype,"isDismissed",void 0);_.a([_.b(),_.z("design:type",Object)],JM.prototype,"dismissedRenderer",void 0);
_.a([_.TS("isDismissed"),_.z("design:type",Function),_.z("design:paramtypes",[Boolean]),_.z("design:returntype")],JM.prototype,"dismissibleItemIsDismissedChanged_",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JM.prototype,"dismissibleItemDataChanged_",null);
_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],JM.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.a([_.XI("yt-service-request-sent-button-renderer"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],JM.prototype,"dismissibleItemOnRequestSent",null);
_.a([_.XI("yt-dismissible-item-action"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Array]),_.z("design:returntype")],JM.prototype,"dismissibleItemOnCommandSent",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],JM.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.a([_.a1()],JM);_.DX=[_.i5,_.dx,JM.prototype];var Uh=function(){var W=_.OD.apply(this,arguments)||this;W.disableGridStateAware=!1;W.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};W.currentGridClass="";return W};
_.v(Uh,_.OD);Uh.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.V9(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var W=this.gridStateAwareGetElement();_.pG(W,"grid",!0)}};
Uh.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
Uh.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.GS(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
Uh.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var W="grid-disabled";else{W=_.w7L.getInstance();var l=this.get("pageSubtype");W=l&&mvv.includes(l)?"grid-disabled":W.currentSnapState_?W.currentSnapState_.className:null}(l=this.gridStateAwareGetElement())&&W!==this.currentGridClass&&(W&&_.pG(l,W,!0),this.currentGridClass&&_.pG(l,this.currentGridClass,!1),this.currentGridClass=W)};
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Uh.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",String)],Uh.prototype,"gridStateAwareSizingElementSelector",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Uh.prototype,"disableGridStateAware",void 0);_.a([_.a1()],Uh);_.uy=[Uh.prototype,_.hp.YtActionHandlerBehavior];_.kM=new _.vd("GUIDE_TOKEN");var HZ;_.vZ={};HZ=function(){var W=_.OD.apply(this,arguments)||this;W.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 W};
_.v(HZ,_.OD);_.t=HZ.prototype;_.t.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.t.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var W=_.tY().resolve(_.R0(_.kM));W&&(this.guidePersistentAndVisible=W.getGuidePersistentAndVisible(),this.activeEndpoint=W.getActiveEndpoint(),this.guideOpened=W.getGuideOpened(),this.miniGuideVisible=W.getMiniGuideVisible())};
_.t.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.t.handleGuideStateAction=function(W){this.guidePersistentAndVisible=W};
_.t.handleMiniGuideStateAction=function(W){this.miniGuideVisible=W};
_.t.handleGuideOpenedAction=function(W){this.guideOpened=W};
_.t.handleActiveEndpointAction=function(W){this.activeEndpoint=W};
HZ.prototype.onActiveEndpointChange=HZ.prototype.onActiveEndpointChange;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],HZ.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],HZ.prototype,"guidePersistentAndVisible",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],HZ.prototype,"miniGuideVisible",void 0);_.a([_.b(),_.z("design:type",Object)],HZ.prototype,"activeEndpoint",void 0);
_.a([_.TS("activeEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HZ.prototype,"onActiveEndpointChange",null);_.a([_.b(),_.z("design:type",Boolean)],HZ.prototype,"guideOpened",void 0);_.a([_.a1()],HZ);_.vZ.YtdGuideStateAwareBehavior=[];_.vZ.YtdGuideStateAwareBehavior.push(HZ.prototype,_.hp.YtActionHandlerBehavior);var SF$=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],KZ=function(){var W=_.OD.apply(this,arguments)||this;W.hoverJobId=0;W.JSC$14337_touched=!1;return W};
_.v(KZ,_.OD);_.t=KZ.prototype;_.t.created=function(){this.useExpandableTooltip=!SF$.includes(this.is)};
_.t.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.t.detached=function(){this.useExpandableTooltip=!1};
_.t.lockupOnDown=function(W){this.interactionElement&&!_.Cv(_.d_(W),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.t.lockupOnUp=function(W){this.interactionElement&&!_.Cv(_.d_(W),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.t.onTouchStart=function(){this.JSC$14337_touched=!0};
_.t.lockupOnMouseEnter=function(){var W=this,l=_.yS("kevlar_lockup_hover_delay",-1);this.JSC$14337_touched&&l>=0?(_.w8.cancelJob(this.hoverJobId),this.hoverJobId=_.w8.addJob(function(){W.lockupIsHovered=!0},8,l),this.JSC$14337_touched=!1):this.lockupIsHovered=!0};
_.t.lockupOnMouseLeave=function(){this.hoverJobId&&(_.w8.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.t.lockupOnPopupClosed=function(W,l){var V;((V=l.popupRenderer)==null?void 0:V.is)==="ytd-menu-popup-renderer"&&(W=l.popupRenderer.veData,l=_.Wh(),W&&l&&_.n0(l,[W]))};
_.t.lockupOnLockupRequested=function(W){var l=W.detail.videoIds[0],V;W.detail&&l===((V=this.data)==null?void 0:V.videoId)&&(W.detail.returnValue=[this.data])};
_.t.lockupOnYtServiceRequestSent=function(W,l){if(W=l.actions)for(var V=0;V<W.length;V++){var f=W[V];if(f.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&l.ajaxPromise){var r=void 0,R=(r=_.k(l.endpoint,_.gT))==null?void 0:r.playlistId;r=void 0;f=(r=f.removedVideoId)!=null?r:"";RbB(_.kC(),f,R)}else f.action==="ACTION_REMOVE_VIDEO"&&l.ajaxPromise&&(R=void 0,f=(R=f.setVideoId)!=null?R:"",_.tZI(_.kC(),f))}};
_.t.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.t.lockupOnLockupEnabled=function(){if(!this.$){var W=_.tY().resolve(_.Bp).getCurrentPage(),l=this.getParentRenderer?this.getParentRenderer():void 0;_.Qe(new _.bP("component not ready",this.is,this.isAttached,W==null?void 0:W.is,l==null?void 0:l.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
KZ.prototype.lockupOnLockupEnabled=KZ.prototype.lockupOnLockupEnabled;KZ.prototype.lockupOnLockupDisabled=KZ.prototype.lockupOnLockupDisabled;KZ.prototype.lockupOnYtServiceRequestSent=KZ.prototype.lockupOnYtServiceRequestSent;KZ.prototype.lockupOnLockupRequested=KZ.prototype.lockupOnLockupRequested;KZ.prototype.lockupOnPopupClosed=KZ.prototype.lockupOnPopupClosed;KZ.prototype.lockupOnMouseLeave=KZ.prototype.lockupOnMouseLeave;KZ.prototype.lockupOnMouseEnter=KZ.prototype.lockupOnMouseEnter;
KZ.prototype.onTouchStart=KZ.prototype.onTouchStart;KZ.prototype.lockupOnUp=KZ.prototype.lockupOnUp;KZ.prototype.lockupOnDown=KZ.prototype.lockupOnDown;_.a([_.b(),_.z("design:type",Object)],KZ.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Boolean)],KZ.prototype,"lockupIsHovered",void 0);_.a([_.b(),_.z("design:type",Boolean)],KZ.prototype,"lockupTouchTriggered",void 0);_.a([_.b(),_.z("design:type",Boolean)],KZ.prototype,"useExpandableTooltip",void 0);
_.a([_.Aa("#interaction"),_.z("design:type",Object)],KZ.prototype,"interactionElement",void 0);_.a([_.XI("down"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],KZ.prototype,"lockupOnDown",null);_.a([_.XI("up"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],KZ.prototype,"lockupOnUp",null);
_.a([_.XI("touchstart"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KZ.prototype,"onTouchStart",null);_.a([_.XI("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KZ.prototype,"lockupOnMouseEnter",null);_.a([_.XI("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KZ.prototype,"lockupOnMouseLeave",null);
_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],KZ.prototype,"lockupOnPopupClosed",null);_.a([_.XI("yt-lockup-requested"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],KZ.prototype,"lockupOnLockupRequested",null);
_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],KZ.prototype,"lockupOnYtServiceRequestSent",null);_.a([_.XI("yt-disable-lockup-interaction"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KZ.prototype,"lockupOnLockupDisabled",null);
_.a([_.XI("yt-enable-lockup-interaction"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KZ.prototype,"lockupOnLockupEnabled",null);_.a([_.a1()],KZ);_.FK=[KZ.prototype];_.EX9={YtdReduxBehavior:[]};_.EX9.YtdReduxBehavior.push.apply(_.EX9.YtdReduxBehavior,_.dx);var GJ=function(){var W=_.OD.apply(this,arguments)||this;W._noAccessors=!0;W.disableNowPlaying=!1;W.disableTooltips=!1;W.useHoveredProperty=!1;W.hovered=!1;W.isThumbnailHovered_=!1;W.addBackground=_.U("kevlar_thumbnail_bg");W.nowPlaying=!1;W.disableRounding=!1;W.size="small";return W};
_.v(GJ,_.OD);_.t=GJ.prototype;_.t.computeThumbnailOverlaySidePanelWidth_=function(W,l){return W-l};
_.t.computeSize=function(W,l){if(!this.disableRounding){if(!W&&!l)return"small";W=Math.max(W||0,l||0);return W>=256?"large":W>=96?"medium":"small"}};
_.t.computeFinalHoveredState_=function(W,l,V){return this.nowPlaying?!1:_.U("kevlar_thumbnail_fluid")&&W?l:V};
_.t.computeHoverOverlays_=function(W,l){return W&&l?l:void 0};
_.t.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.t.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.t.checkMiniplayer_=function(){var W;if(((W=this.data)==null?0:W.playlistSetVideoId)&&_.U("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{W=_.hJ();var l=W.currentEndpoint;!this.disableNowPlaying&&l&&_.k(l,_.Bh)&&this.data?(l=_.k(l,_.Bh),this.nowPlaying=this.data.playlistId?l.playlistId===this.data.playlistId:l.videoId===this.data.videoId,this.isVideoPlaying=W==null?void 0:W.isVideoPlaying):this.nowPlaying=!1}};
GJ.prototype.checkMiniplayer_=GJ.prototype.checkMiniplayer_;GJ.prototype.onMouseLeave_=GJ.prototype.onMouseLeave_;GJ.prototype.onMouseEnter_=GJ.prototype.onMouseEnter_;GJ.prototype.computeHoverOverlays_=GJ.prototype.computeHoverOverlays_;GJ.prototype.computeFinalHoveredState_=GJ.prototype.computeFinalHoveredState_;GJ.prototype.computeSize=GJ.prototype.computeSize;GJ.prototype.computeThumbnailOverlaySidePanelWidth_=GJ.prototype.computeThumbnailOverlaySidePanelWidth_;
_.a([_.F(_.dx),_.z("design:type",Object)],GJ.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],GJ.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Number)],GJ.prototype,"height",void 0);_.a([_.b(),_.z("design:type",Boolean)],GJ.prototype,"bottomSidePanel",void 0);_.a([_.b(),_.z("design:type",Number)],GJ.prototype,"width",void 0);_.a([_.b(),_.z("design:type",Object)],GJ.prototype,"disableNowPlaying",void 0);
_.a([_.b({selector:_.l0}),_.z("design:type",Boolean)],GJ.prototype,"miniplayerIsActive",void 0);_.a([_.b(),_.z("design:type",Object)],GJ.prototype,"disableTooltips",void 0);_.a([_.b(),_.z("design:type",Object)],GJ.prototype,"useHoveredProperty",void 0);_.a([_.b(),_.z("design:type",Object)],GJ.prototype,"hovered",void 0);_.a([_.b(),_.z("design:type",Object)],GJ.prototype,"isThumbnailHovered_",void 0);
_.a([_.b({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.z("design:type",Boolean)],GJ.prototype,"finalHoveredState_",void 0);_.a([_.b({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.z("design:type",Number)],GJ.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],GJ.prototype,"addBackground",void 0);
_.a([_.b({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.z("design:type",Object)],GJ.prototype,"hoverOverlays_",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],GJ.prototype,"nowPlaying",void 0);_.a([_.b(),_.z("design:type",Boolean)],GJ.prototype,"isVideoPlaying",void 0);_.a([_.b(),_.z("design:type",Object)],GJ.prototype,"disableRounding",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.z("design:type",Object)],GJ.prototype,"size",void 0);_.a([_.XI("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GJ.prototype,"onMouseEnter_",null);_.a([_.XI("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GJ.prototype,"onMouseLeave_",null);
_.a([_.TS("data","disableNowPlaying","miniplayerIsActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GJ.prototype,"checkMiniplayer_",null);_.a([_.a1()],GJ);var $ZI=[GJ.prototype];_.by={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(W,l){return W+":"+_.qg(l)},
getPlayerListener_:function(W,l,V){W=this.getPlayerListenerKey_(W,l);l=this.playerListeners_.get(W);V&&this.playerListeners_.delete(W);return l},
savePlayerListener_:function(W,l){var V=l.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(W,l),V);return V},
listenToPlayerEvent:function(W,l,V){V=this.savePlayerListener_(l,V);W.addEventListener(l,V)},
listenToPlayerEvents:function(W,l){l.forEach(function(V,f){this.listenToPlayerEvent(W,f,V)}.bind(this))},
unlistenFromPlayerEvent:function(W,l,V){V=this.getPlayerListener_(l,V,!0);W.removeEventListener(l,V)},
unlistenFromPlayerEvents:function(W,l){l.forEach(function(V,f){this.unlistenFromPlayerEvent(W,f,V)}.bind(this))}}};
_.pZ=function(){};_.WGZ=new _.vd("PLAYER_API_TOKEN");var OlJ=!1,YFv,zAz=!1,eA8;var u$=function(W,l,V,f,r){_.iI.call(this);var R=this;this.playerId=l;this.webPlayerContextConfig=f;this.wvj=r;this.qfT=!1;this.api={};this.n1F=this.dbq=null;this.pIE=new _.uP;this.fk={};this.eLn=this.aWJ=this.elementId=this.dXG=this.config=null;this.hWu=!1;this.yD=this.qmn=null;this.lfE={};this.idv=["onReady"];this.lastError=null;this.z44=NaN;this.juq={};this.vAn=0;this.uk=this.targetElement=W;_.vt(this,this.pIE);lZZ(this);V?this.vAn=setTimeout(function(){R.loadNewVideoConfig(V)},0):f&&(VpX(this),
fZa(this))};
_.v(u$,_.iI);u$.prototype.getId=function(){return this.playerId};
u$.prototype.loadNewVideoConfig=function(W){if(!this.isDisposed()){this.vAn&&(clearTimeout(this.vAn),this.vAn=0);var l=W||{};l instanceof Cyk||(l=new Cyk(l));this.config=l;this.setConfig(W);fZa(this);this.isReady()&&rFe(this)}};
var VpX=function(W){var l;W.webPlayerContextConfig?l=W.webPlayerContextConfig.rootElementId:l=W.config.attrs.id;W.elementId=l||W.elementId;W.elementId==="video-player"&&(W.elementId=W.playerId,W.webPlayerContextConfig?W.webPlayerContextConfig.rootElementId=W.playerId:W.config.attrs.id=W.playerId);var V;((V=W.uk)==null?void 0:V.id)===W.elementId&&(W.elementId+="-player",W.webPlayerContextConfig?W.webPlayerContextConfig.rootElementId=W.elementId:W.config.attrs.id=W.elementId)};
u$.prototype.setConfig=function(W){this.dXG=W;this.config=RQL(W);VpX(this);if(!this.aWJ){var l;this.aWJ=tpa(this,((l=this.config.args)==null?void 0:l.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var V;if((V=this.config)==null?0:V.attrs)W=this.config.attrs,(l=W.width)&&this.uk&&(this.uk.style.width=fU(Number(l)||l,!0)),(W=W.height)&&this.uk&&(this.uk.style.height=fU(Number(W)||W,!0))};
var rFe=function(W){if(W.config&&W.config.loaded!==!0)if(W.config.loaded=!0,!W.config.args||W.config.args.autoplay!=="0"&&W.config.args.autoplay!==0&&W.config.args.autoplay!==!1){var l;W.api.loadVideoByPlayerVars((l=W.config.args)!=null?l:null)}else W.api.cueVideoByPlayerVars(W.config.args)},LG$=function(W){var l=!0,V=W.getPlayerElement();
V&&W.config&&(l=V.dataset.version===sqL(W));return l&&!!_.Y2("yt.player.Application.create")},fZa=function(W){if(!W.isDisposed()&&!W.hWu){var l=LG$(W);
if(l&&(W.getPlayerElement()?"html5":null)==="html5")W.eLn="html5",W.isReady()||yFk(W);else if(gpM(W),W.eLn="html5",l&&W.yD&&W.targetElement)W.targetElement.appendChild(W.yD),yFk(W);else{W.config&&(W.config.loaded=!0);var V=!1;W.qmn=function(){V=!0;var f=P3$(W,"player_bootstrap_method")?_.Y2("yt.player.Application.createAlternate")||_.Y2("yt.player.Application.create"):_.Y2("yt.player.Application.create");var r=W.config?RQL(W.config):void 0;f&&f(W.targetElement,r,W.webPlayerContextConfig,W.wvj);yFk(W)};
W.hWu=!0;l?W.qmn():(_.se(sqL(W),W.qmn),(l=npc(W))&&dNn(l||""),C3L(W)&&!V&&_.fR("yt.player.Application.create",null))}}};
u$.prototype.getPlayerElement=function(){var W=_.U_(document,this.elementId);!W&&this.uk&&this.uk.querySelector&&(W=this.uk.querySelector("#"+this.elementId));return W};
var yFk=function(W){if(!W.isDisposed()){var l=W.getPlayerElement(),V=!1;l&&l.getApiInterface&&l.getApiInterface()&&(V=!0);if(V){W.hWu=!1;if(!P3$(W,"html5_remove_not_servable_check_killswitch")){var f;if((l==null?0:l.isNotServable)&&W.config&&(l==null?0:l.isNotServable((f=W.config.args)==null?void 0:f.video_id)))return}cFk(W)}else W.z44=setTimeout(function(){yFk(W)},50)}},cFk=function(W){lZZ(W);
W.qfT=!0;var l=W.getPlayerElement();if(l){W.dbq=BzZ(W,l,"addEventListener");W.n1F=BzZ(W,l,"removeEventListener");var V=l.getApiInterface();V=V.concat(l.getInternalApiInterface());for(var f=W.api,r=0;r<V.length;r++){var R=V[r];f[R]||(f[R]=BzZ(W,l,R))}}for(var y in W.fk)W.fk.hasOwnProperty(y)&&W.dbq&&W.dbq(y,W.fk[y]);rFe(W);W.aWJ&&W.aWJ(W.api);W.pIE.publish("onReady",W.api)},BzZ=function(W,l,V){var f=l[V];
return function(){var r=_.xk.apply(0,arguments);try{return W.lastError=null,f.apply(l,r)}catch(R){if(V!=="sendAbandonmentPing")throw R.params=V,W.lastError=R,r=new _.bP("PlayerProxy error in method call",{error:R,method:V,playerId:W.playerId}),r.level="WARNING",r;}}},lZZ=function(W){W.qfT=!1;
if(W.n1F)for(var l in W.fk)W.fk.hasOwnProperty(l)&&W.n1F(l,W.fk[l]);for(var V in W.juq)W.juq.hasOwnProperty(V)&&clearTimeout(Number(V));W.juq={};W.dbq=null;W.n1F=null;l=W.api;for(var f in l)l.hasOwnProperty(f)&&(l[f]=null);l.addEventListener=function(r,R){W.addEventListener(r,R)};
l.removeEventListener=function(r,R){W.removeEventListener(r,R)};
l.destroy=function(){W.dispose()};
l.getLastError=function(){return W.getLastError()};
l.getPlayerType=function(){return W.getPlayerType()};
l.getCurrentVideoConfig=function(){return W.dXG};
l.loadNewVideoConfig=function(r){W.loadNewVideoConfig(r)};
l.isReady=function(){return W.isReady()}};
u$.prototype.isReady=function(){return this.qfT};
u$.prototype.addEventListener=function(W,l){var V=this;this.isDisposed();var f=tpa(this,l);f&&(_.Oz(this.idv,W)||this.fk[W]||(l=dm9(this,W),this.dbq&&this.dbq(W,l)),this.pIE.subscribe(W,f),W==="onReady"&&this.isReady()&&setTimeout(function(){f(V.api)},0))};
u$.prototype.removeEventListener=function(W,l){this.isDisposed()||(l=tpa(this,l))&&this.pIE.unsubscribe(W,l)};
var tpa=function(W,l){var V=l;if(typeof l==="string"){if(W.lfE[l])return W.lfE[l];V=function(){var f=_.xk.apply(0,arguments),r=_.Y2(l);if(r)try{r.apply(_.rS,f)}catch(R){throw f=new _.bP("PlayerProxy error when executing callback",{error:R}),f.level="ERROR",f;}};
W.lfE[l]=V}return V?V:null},dm9=function(W,l){var V=function(f){var r=function(){W.isDisposed();
if(!W.isDisposed())try{W.pIE.publish(l,f!=null?f:void 0)}catch(P){var y=new _.bP("PlayerProxy error when creating global callback",{error:P.message,event:l,playerId:W.playerId,data:f,originalStack:P.stack,componentStack:P.componentStack});y.level="WARNING";throw y;}};
if(P3$(W,"web_player_publish_events_immediately"))r();else{var R=setTimeout(function(){r();_.MC.remove(W.juq,String(R))},0);
_.MC.add(W.juq,String(R),!0)}};
return W.fk[l]=V};
u$.prototype.getPlayerType=function(){return this.eLn||(this.getPlayerElement()?"html5":null)};
u$.prototype.getLastError=function(){return this.lastError};
var gpM=function(W){W.cancel();lZZ(W);W.eLn=null;W.config&&(W.config.loaded=!1);var l=W.getPlayerElement();l&&(LG$(W)||!C3L(W)?W.yD=l:(l&&l.destroy&&l.destroy(),W.yD=null));W.targetElement&&_.hI(W.targetElement)};
u$.prototype.cancel=function(){this.qmn&&_.NPz(sqL(this),this.qmn);clearTimeout(this.z44);this.hWu=!1};
u$.prototype.disposeInternal=function(){gpM(this);if(this.yD&&this.config&&this.yD.destroy)try{this.yD.destroy()}catch(l){var W=new _.bP("PlayerProxy error during disposal",{error:l});W.level="ERROR";throw W;}this.lfE=null;for(W in this.fk)this.fk.hasOwnProperty(W)&&delete this.fk[W];this.dXG=this.config=this.api=null;delete this.targetElement;delete this.uk;_.iI.prototype.disposeInternal.call(this)};
var C3L=function(W){var l,V;W=(l=W.config)==null?void 0:(V=l.args)==null?void 0:V.fflags;return!!W&&W.indexOf("player_destroy_old_version=true")!==-1},sqL=function(W){return W.webPlayerContextConfig?W.webPlayerContextConfig.jsUrl:(W=W.config.assets)?W.js:""},npc=function(W){return W.webPlayerContextConfig?W.webPlayerContextConfig.cssUrl:(W=W.config.assets)?W.css:""},P3$=function(W,l){if(W.webPlayerContextConfig)var V=W.webPlayerContextConfig.serializedExperimentFlags;
else{var f;if((f=W.config)==null?0:f.args)V=W.config.args.fflags}return(V||"").split("&").includes(l+"=true")},RQL=function(W){for(var l={},V=_.L(Object.keys(W)),f=V.next();!f.done;f=V.next()){f=f.value;
var r=W[f];l[f]=typeof r==="object"?_.MC.clone(r):r}return l};var $ZJ={},EXn="player_uid_"+(Math.random()*1E9>>>0);var oR=function(W,l,V,f,r,R){l=l===void 0?document.createElement("div"):l;this.webPlayerContextConfig=W;this.container=l;this.commandResolver=V;this.apiResolver=VpY();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.mg;f||R?JFk(this):DmX(this);this.pendingPlayerResponse=f;this.pendingWatchNextResponse=r;this.pendingPlayerVars=R;UmB(this)};
oR.prototype.loadVideoWithPlayerResponse=function(W,l,V){this.loadVideo(W,l,V)};
oR.prototype.loadVideoWithPlayerVars=function(W){return this.loadVideo(void 0,void 0,W)};
oR.prototype.destroy=function(W){if(W=_.U_(document,W))W=EXn+"_"+_.qg(W),(W=$ZJ[W])&&W.dispose()};
var kc9=function(W,l){var V;_.g(function(f){if(f.nextAddress==1)return W.pendingWatchNextResponse=l,W.synchronousApi?(V=W.synchronousApi,f.jumpTo(2)):f.yield(W.api,3);f.nextAddress!=2&&(V=f.yieldResult);if(!uHI(W,V))return f.return();W.pendingWatchNextResponse&&(V.updateVideoData({raw_watch_next_response:W.pendingWatchNextResponse}),W.pendingWatchNextResponse=void 0);_.ju(f)})},uHI=function(W,l){var V;
if(!(l==null?0:(V=l.isReady)==null?0:V.call(l))){var f;_.Qe(new _.bP("playerApi is falsey",{synchronousApi:W.synchronousApi,apiResolved:W.apiResolver.resolved,playerApiUndefined:l===void 0,playerApiNull:l===null,playerApiReady:(l==null?void 0:(f=l.isReady)==null?void 0:f.call(l))===!0,playerApiMethods:l?Object.keys(l):[]}));return!1}return!0},vpv=function(W,l){if(typeof W[l]==="function")return W[l]()},Hmk=function(W){var l=window,V,f=(V=l.ytplayer)==null?void 0:V.bootstrapPlayerContainer;
if((V=f==null?void 0:f.firstElementChild)&&_.y3(V,"html5-video-player")){var r,R,y=(r=l.ytplayer)==null?void 0:(R=r.bootstrapWebPlayerContextConfig)==null?void 0:R.contextId;r=W.webPlayerContextConfig.contextId;if(y&&y===r){f!==W.container&&(f=!1,vpv(V,"getPlayerState")===2&&(f=!0),W.container.appendChild(V),f||vpv(V,"playVideo"));var P;if((P=l.ytplayer)==null?0:P.bootstrapPlayerResponse)W.bootstrapPlayerResponse=l.ytplayer.bootstrapPlayerResponse}}},UmB=function(W){var l,V,f,r,R;
_.g(function(y){if(y.nextAddress==1)return W.pageReadyOrDataAvailable?y.jumpTo(2):y.yield(W.pageReadyOrDataAvailableResolver.promise,2);if(y.nextAddress!=4)return!_.U("kevlar_player_unified_player_loading")||aKv()&&Nh4()?y.jumpTo(4):y.yield(hAg(),4);Hmk(W);if(W.pendingPlayerResponse||W.pendingPlayerVars)l=SF4(W.pendingPlayerResponse,W.pendingWatchNextResponse,W.pendingPlayerVars),W.pendingPlayerResponse&&W.pendingPlayerResponse===W.bootstrapPlayerResponse&&(l.loaded=!0),W.bootstrapPlayerResponse=
void 0;V=lZx(W.container,l,W.webPlayerContextConfig);((f=l)==null?0:f.loaded)&&W.pendingWatchNextResponse?(kc9(W,W.pendingWatchNextResponse),W.pendingPlayerResponse=void 0,W.pendingPlayerVars=void 0):KGe(W);r=function(P){V.removeEventListener("onReady",r);W.synchronousApi=P;W.apiResolver.resolve(P)};
V.addEventListener("onReady",r);W.commandResolver!==void 0&&(R=W.commandResolver,V.addEventListener("innertubeCommand",function(P){R(P)}));
_.ju(y)})};
oR.prototype.loadVideo=function(W,l,V){var f=this,r,R,y,P,n,B,d,J,D;return _.g(function(u){if(u.nextAddress==1)return f.pendingPlayerResponse=W,f.pendingWatchNextResponse=l,f.pendingPlayerVars=V,JFk(f),f.synchronousApi?(r=f.synchronousApi,u.jumpTo(2)):u.yield(f.api,3);u.nextAddress!=2&&(r=u.yieldResult);if(!uHI(f,r))return u.return(new Promise(function(){}));
y=new Promise(function(H){R=H});
P=function(){var H=r.getPlayerResponse();H&&(r.removeEventListener("onVideoDataChange",P),R(H))};
r.addEventListener("onVideoDataChange",P);if(f.pendingPlayerResponse||f.pendingPlayerVars)f.pendingPlayerResponse&&f.pendingPlayerResponse===f.bootstrapPlayerResponse?(R(f.pendingPlayerResponse),f.pendingWatchNextResponse&&kc9(f,f.pendingWatchNextResponse)):(n=SF4(f.pendingPlayerResponse,f.pendingWatchNextResponse,f.pendingPlayerVars),(D=(B=f.pendingPlayerResponse)==null?void 0:(d=B.playerConfig)==null?void 0:(J=d.playbackStartConfig)==null?void 0:J.startPaused)?r.cueVideoByPlayerVars(n.args):r.loadVideoByPlayerVars(n.args)),
KGe(f),f.bootstrapPlayerResponse=void 0;return u.return(y)})};
var DmX=function(W){if(document.readyState==="complete"||document.readyState==="interactive")JFk(W);else{var l=function(){document.removeEventListener("DOMContentLoaded",l);JFk(W)};
document.addEventListener("DOMContentLoaded",l)}},JFk=function(W){W.pageReadyOrDataAvailable=!0;
W.pageReadyOrDataAvailableResolver.resolve()},KGe=function(W){W.pendingPlayerResponse=void 0;
W.pendingWatchNextResponse=void 0;W.pendingPlayerVars=void 0};
_.rc.Object.defineProperties(oR.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var jK=function(W){Vo.call(this,W===void 0?"document_active":W);var l=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(V){l.transition("document_disposed",{event:V})});
window.addEventListener("beforeunload",function(V){l.transition("document_disposed_preventable",{event:V})});
window.addEventListener("unload",function(V){l.transition("document_disposed",{event:V});l.hasRun=new Map})};
_.v(jK,Vo);
jK.prototype.runPreventableDispose=function(W,l){if(!this.hasRun.get("document_disposed_preventable")){W(l==null?void 0:l.event);var V,f;if((l==null?0:(V=l.event)==null?0:V.defaultPrevented)||(l==null?0:(f=l.event)==null?0:f.returnValue)){l.event.returnValue||(l.event.returnValue=!0);l.event.defaultPrevented||l.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")};
jK.prototype.runDispose=function(W,l){this.hasRun.get("document_disposed")?this.transition("document_active"):(W(l==null?void 0:l.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
jK.prototype.runFlush=function(W,l){W(l==null?void 0:l.event);this.transition("document_active")};
jK.prototype.runActive=function(){};var IR=function(W){Vo.call(this,W===void 0?"document_visibility_unknown":W);var l=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(V){document.visibilityState==="visible"?l.transition("document_visible",{event:V}):l.transition("document_hidden",
{event:V})});
_.U("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(V){l.transition("document_backgrounded",{event:V})}),window.addEventListener("focus",function(V){l.transition("document_foregrounded",{event:V})}))};
_.v(IR,Vo);IR.prototype.runVisible=function(W,l){W(l==null?void 0:l.event);_.U("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
IR.prototype.runHidden=function(W,l){W(l==null?void 0:l.event);_.U("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
IR.prototype.runBackgrounded=function(W,l){W(l==null?void 0:l.event)};
IR.prototype.runForegrounded=function(W,l){W(l==null?void 0:l.event)};var iy=function(){this.teardownLifecycle=new jK;this.visibilityLifecycle=new IR};
iy.prototype.install=function(){var W=_.xk.apply(0,arguments),l=this;W.forEach(function(V){l.teardownLifecycle.install(V)});
W.forEach(function(V){l.visibilityLifecycle.install(V)})};var m4=function(){iy.call(this);var W={};this.install((W.document_disposed={callback:this.abortSlisAndFlush},W));_.U("combine_ve_grafts")&&(W={},this.install((W.document_disposed={callback:this.flushInteractionLoggingAttachVes},W)));W={};this.install((W.flush_logs={callback:this.logFinalPayload},W));_.U("web_log_cfg_cee_ks")||_.pS(_.w8,FGB)};
_.v(m4,iy);var fZ6=function(){m4.loggingInstance||(m4.loggingInstance=new m4);return m4.loggingInstance};
m4.prototype.logFinalPayload=function(){if(_.U("web_fp_via_jspb")){var W=new xca,l=_.Wh();l&&_.mY(W,1,l);l=_.U("jspb_sparse_encoded_pivot")?new bT([{}]):new bT;_.pM(l,380,ecv,W);XO6("finalPayload",l);_.U("web_fp_via_jspb_and_json")&&_.XC("finalPayload",{csn:_.Wh()})}else _.XC("finalPayload",{csn:_.Wh()})};
m4.prototype.abortSlisAndFlush=function(){EIM(kQ);Hm!=null&&Hm.flush()};
m4.prototype.flushInteractionLoggingAttachVes=function(){J8v(_.Qq())};
var FGB=function(){var W=_.M4("CLIENT_EXPERIMENT_EVENTS");if(W){var l=qzn();W=_.L(W);for(var V=W.next();!V.done;V=W.next())V=V.value,l(V)&&_.XC("genericClientExperimentEvent",{eventType:V});delete _.AC.CLIENT_EXPERIMENT_EVENTS}};var GcX={};
GcX.YtPlayerBehavior=[_.by.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 W=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.mg;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;rFq(function(){W.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Z5(this,"pan-down"),_.U("kevlar_pinch_fullscreen")&&_.Rk().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.U("kevlar_pinch_fullscreen")&&_.Rk().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(W,l,V){var f=this;kw(this.useUnifiedPlayer_());if(this.mainAppPlayer_)kw(!1,"MainAppPlayer already created.");else{var r=_.U("kevlar_player_container_query_killswitch")?this.$.container:_.GS(this.hostElement).querySelector("#container");this.mainAppPlayer_=new oR(this.getWebPlayerContextConfig_(),r,function(R){return _.XY(R,f.hostElement)},W,l,V);
this.mainAppPlayer_.api.then(function(R){f.player_=R;f.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&JTB.resolve(R)})}},
loadVideoWithPlayerResponse:function(W,l){var V=this;if(this.useUnifiedPlayer_()){var f=this.watchNextData,r,R=(r=W.videoDetails)==null?void 0:r.videoId,y,P,n;(r=(y=this.watchNextData)==null?void 0:(P=y.currentVideoEndpoint)==null?void 0:(n=P.watchEndpoint)==null?void 0:n.videoId)&&R!=r&&(f=void 0,_.U("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(W,f,l):this.createMainAppPlayer_(W,f,l);this.mainAppPlayer_.api.then(function(){_.FN(V.hostElement,
"yt-player-updated")})}else this.update(QCg(W,l))},
loadVideoWithPlayerVars:function(W){var l=this;this.useUnifiedPlayer_()?(_.U("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(W):this.createMainAppPlayer_(void 0,void 0,W),this.mainAppPlayer_.api.then(function(){_.FN(l.hostElement,"yt-player-updated")})):this.update({args:W})},
update:function(W){var l=this;if(this.useUnifiedPlayer_())kw(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(W);var V=WpF(W.args);V&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==V&&Object.assign(W.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(W).then(function(f){_.FN(l.hostElement,"yt-player-updated",_.U("kevlar_player_updated_obsolete_player_killswitch")?
f:void 0)})}_.Ar(new _.bP("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(W){var l=this,V;return _.g(function(f){if(f.nextAddress==1)return f.yield(l.getPlayerPromise(),2);V=f.yieldResult;if(!V)throw Error("zh");W&&l.updatePlayerPlaylist_(W);_.ju(f)})},
acquireApi_:function(W){var l=this;if(this.useUnifiedPlayer_())kw(!1,"Invalid method call in kevlar_unified_player.");else return _.w8.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(kw(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(V){l.shouldAutoplay_(W)?V.loadVideoByPlayerVars(W.args):V.cueVideoByPlayerVars(W.args)})):this.initPlayerPromise_=this.initPlayerContainer_(W),this.initPlayerPromise_},
initPlayerContainer_:function(W){var l=this;if(this.useUnifiedPlayer_())kw(!1,"Invalid method call in kevlar_unified_player.");else return kw(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Qe(Error("Ah")),kw(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.U("kevlar_player_container_query_killswitch")?this.$.container:_.GS(this.hostElement).querySelector("#container"),hAg().then(function(){var V=l.initPlayer_(W);l.playerResolver_.resolve(V);
return V})},
onPlayerReady_:function(W,l){this.useUnifiedPlayer_()?kw(!1,"Invalid method call in kevlar_unified_player."):(W.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&JTB.resolve(W),l(W))},
maybeCallApiMethodOnElement_:function(W,l){if(typeof W[l]==="function")return W[l]()},
maybeAdoptBootstrapPlayer_:function(){var W=window,l,V=(l=W.ytplayer)==null?void 0:l.bootstrapPlayerContainer;if((l=V==null?void 0:V.firstElementChild)&&l.classList.contains("html5-video-player")){var f,r,R=(f=W.ytplayer)==null?void 0:(r=f.bootstrapWebPlayerContextConfig)==null?void 0:r.contextId;f=this.getWebPlayerContextConfig_().contextId;if(R&&R===f){V!==this.playerContainer_&&(V=!1,this.maybeCallApiMethodOnElement_(l,"getPlayerState")===2&&(V=!0),this.playerContainer_.appendChild(l),V||this.maybeCallApiMethodOnElement_(l,
"playVideo"));var y;if((y=W.ytplayer)==null?0:y.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=W.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(W){var l=this;if(this.useUnifiedPlayer_())kw(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(V){l.maybeAdoptBootstrapPlayer_();var f=W?MdU(W):void 0;f&&f==l.bootstrapPlayerResponse_&&(W.loaded=!0);f=l.playerContainer_;var r=l.getWebPlayerContextConfig_();f=lZx(f,W,r);l.player_=f;l.onPlayerReadyEvent_=l.onPlayerReady_.bind(l,l.player_,V);l.player_.addEventListener("onReady",l.onPlayerReadyEvent_);l.player_.addEventListener("innertubeCommand",
l.onPlayerInnerTubeCommand_.bind(l))})},
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(W){W.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(W){W.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var W=_.tY().resolve(_.Bp).getCurrentPage();W&&W.getScrollTop()<=0?_.Z5(this,"pan-down"):_.Z5(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(W){W.isFullscreen()||W.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(W){W.isFullscreen()&&W.toggleFullscreen()})},
updatePlayerPlaylist_:function(W){var l=this,V,f,r;return _.g(function(R){if(R.nextAddress==1)return V=_.tY().resolve(_.R0(_.dZ)),f=!!(V&&V.playlistComponent&&V.playlistComponent.loopOn),R.yield(l.getPlayerPromise(),2);var y=r=R.yieldResult,P=y.updatePlaylist,n=[];if(_.U("kevlar_player_playlist_use_local_index")){var B,d;var J=(d=(B=W.localCurrentIndex)!=null?B:W.currentIndex)!=null?d:0}else{var D;J=(D=W.currentIndex)!=null?D:0}if(W.contents)for(B=0;B<W.contents.length;B++)if((d=W.contents[B])&&d.playlistPanelVideoRenderer)if(YBg(d)){d=
d.playlistPanelVideoRenderer;D="";d.shortBylineText&&(D=_.dE(d.shortBylineText));var u="";d.title?u=_.dE(d.title):d.unplayableText&&(u=_.dE(d.unplayableText));n.push({author:D,title:u,encrypted_id:d.videoId})}else B<J&&--J;P.call(y,{index:J,list:W.playlistId?W.playlistId:"",loop:f,playlist_title:W.title,playlist_length:n.length,video:n,fetch:0,external_list:"1",title:W.title?W.title:"",playlist_author:W.ownerName?_.dE(W.ownerName):void 0});_.ju(R)})},
focusOnPlayer:function(){_.V9(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var W=this.playerContainer_.querySelector(".html5-video-player");W&&(_.XK(_.tY().resolve(_.OZ)),W.focus())}})},
preparePlayer:function(){var W=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(l){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")l();else{var V=function(){document.removeEventListener("DOMContentLoaded",V);l()};
document.addEventListener("DOMContentLoaded",V)}})).then(function(){return hAg()}).then(function(){W.initPlayerPromise_||W.preparePlayerJobId_||(W.preparePlayerJobId_=_.pS(_.w8,function(){W.initPlayerPromise_||(W.initPlayerPromise_=W.initPlayerContainer_())}))}):_.Ar(new _.bP("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(W){this.useUnifiedPlayer_()?kw(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(W)||(W.args.autoplay="0")},
shouldAutoplay_:function(W){if(this.useUnifiedPlayer_())kw(!1,"Invalid method call in kevlar_unified_player.");else{var l=this.get("args.el",W);return l&&l!="detailpage"&&this.isMiniplayerActive_()||l&&(l=="sponsorshipsoffer"||l=="handlesclaiming")&&this.get("args.autoplay",W)=="0"?!1:(W=MdU(W))&&this.get("playerConfig.playbackStartConfig.startPaused",W)?!1:!0}},
isMiniplayerActive_:function(){return _.tY().resolve(_.Sl).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var W=this.getPlayer();if(W){var l=W.getPlayerState();_.U("kevlar_player_check_ad_state_on_stop")&&(l=W.getPlayerState(W.getPresentingPlayerType()));l!=5&&W.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(W,l,V){V=V===void 0?!1:V;var f=this,r,R,y,P;return _.g(function(n){if(n.nextAddress==1)return l||(l=f.hostElement),r=f.useUnifiedPlayer_()?!!f.mainAppPlayer_:!!f.initPlayerPromise_,r?n.yield(f.getPlayerPromise(),2):(V?W.insertBefore(l,W.firstChild):W.appendChild(l),n.return());R=n.yieldResult;y=R.getPlayerState(R.getPresentingPlayerType());P=!1;if(y==-1||y==1||y==3)P=!0;V?W.insertBefore(l,W.firstChild):W.appendChild(l);P&&R.playVideo();R.setSize(NaN,NaN);_.ju(n)})},
watchNextDataChanged_:function(W){var l=this;W&&(this.useUnifiedPlayer_()&&_.U("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&kc9(this.mainAppPlayer_,W):this.getPlayerPromise().then(function(V){V.updateVideoData(l.computeWatchNextPlayerVars_(W))}))},
computeWatchNextPlayerVars_:function(W){if(this.useUnifiedPlayer_()&&_.U("kevlar_unified_player_update_watch_next_killswitch"))kw(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:W}},
maybeSendAbandonmentPing_:function(){var W=this.getPlayer();W&&W.getPlayerState()!=5&&W.getPlayerState()!=0&&W.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var W=_.M4("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(W=Object.assign({},W),W.rootElementId=this.playerId);W.serializedExperimentIds&&W.serializedExperimentFlags||_.Qe(Error("Bh"));return W},
hasWebPlayerContextConfig_:function(){return!!_.M4("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(W){this.useUnifiedPlayer_()?kw(!1,"Invalid method call in kevlar_unified_player."):_.XY(W,this.hostElement)},
useUnifiedPlayer_:function(){var W=_.U("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.U("kevlar_unified_player")||W}}];var bm9={};bm9.YtPlaylistPanelBehavior=[_.q.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(W){W=W.detail;if(W.actions.loop!=void 0||W.actions["yt-icons:loop"]!=void 0)this.loopOn=W.actions.loop||W.actions["yt-icons:loop"];if(W.actions.shuffle!=void 0||W.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=W.actions.shuffle||W.actions["yt-icons:shuffle"]},
setMenuData_:function(W){if(!W||!W.playlistButtons||W.isInfinite)return null;for(var l=W.playlistButtons.menuRenderer.topLevelButtons,V=l.length,f=0;f<V;f++)if(l[f].toggleButtonRenderer){var r=l[f].toggleButtonRenderer;r.defaultIcon.iconType=="LOOP"&&this.loopOn?r.isToggled=this.loopOn:r.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(r.isToggled=this.shuffleOn)}return W.playlistButtons}}];var pNe=function(W){CX.call(this,W,132);this.isDocument=W===document.documentElement};
_.v(pNe,CX);pNe.prototype.calculateScrollDelta=function(W,l,V){var f=0;W<l?f=W<l-100?-48:-8:W>l+V&&(f=W>l+V+100?48:8);return f};
pNe.prototype.JSC$11391_onMouseMove=function(W){this.isDocument||(W.clientX=W.event_.pageX,W.clientY=W.event_.pageY);CX.prototype.JSC$11391_onMouseMove.call(this,W)};var TJ=function(){var W=_.OD.apply(this,arguments)||this;W._noAccessors=!0;W.scrollElement=document.documentElement;W.JSC$14396_dragListGroup=null;W.dragScrollSupport=null;W.onDraggerCreated=function(l){var V=l.JSC$11387_dragger;V.scrollTarget_=W.scrollElement;l=l.draggerEl;V&&l.menuOpened&&V.setEnabled(!1)};
W.onDragStart=function(l){var V=l.draggerEl;l=l.currDragItem;var f=Object.assign({},l==null?void 0:l.data);f.trackingParams=void 0;V.data=f;V.style.position="absolute";V.style.width=(l==null?void 0:l.clientWidth)+"px";V.style.zIndex="2030";V.onDrag&&V.onDrag();_.U("web_owner_document_fallback_killswitch")?(l=document.querySelector("ytd-app"))&&_.GS(l).appendChild(V):(l=_.z7(V),(f=l.querySelector("ytd-app"))?_.GS(f).appendChild(V):l.body.appendChild(V));W.dragScrollSupport=new pNe(W.scrollElement);
W.dragScrollSupport.horizontalScrolling_=!1;V=W.dragScrollSupport;V.constrainScroll_=!!V.margin_&&!1};
W.onDrop=function(l){W.handleDrop(l);W.dragScrollSupport&&(_.Ls(W.dragScrollSupport),W.dragScrollSupport=null)};
W.onReorderableScroll=function(){if(W.JSC$14396_dragListGroup){var l=W.JSC$14396_dragListGroup;YDk(l,l.currDragItem_)}};
return W};
_.v(TJ,_.OD);TJ.prototype.detached=function(){_.opL(this)};
_.opL=function(W){W.JSC$14396_dragListGroup&&(_.Of(W.JSC$14396_dragListGroup,wVk,W.onDragStart),_.Of(W.JSC$14396_dragListGroup,ZGk,W.onDragStart),W.JSC$14396_dragListGroup.dispose(),W.JSC$14396_dragListGroup=null);W.dragScrollSupport&&(_.Ls(W.dragScrollSupport),W.dragScrollSupport=null);W.scrollElement.removeEventListener("scroll",W.onReorderableScroll)};
_.jqk=function(W,l,V,f){f=f===void 0?"":f;_.opL(W);V&&(W.scrollElement=V);W.JSC$14396_dragListGroup=new yn;W.JSC$14396_dragListGroup.hysteresisDistance_=2;arB(W.JSC$14396_dragListGroup,l);W.JSC$14396_dragListGroup.draggerElClasses_=Cq("dragging").split(" ");f&&zoL(W.JSC$14396_dragListGroup,function(r){var R=r||document,y=null;R.getElementsByClassName?y=R.getElementsByClassName(f)[0]:y=H2L("*",f,r);return y||r});
_.YJ(W.JSC$14396_dragListGroup,XV$,W.onDraggerCreated);_.YJ(W.JSC$14396_dragListGroup,wVk,W.onDragStart);_.YJ(W.JSC$14396_dragListGroup,ZGk,W.onDrop);W.JSC$14396_dragListGroup.init();W.scrollElement.addEventListener("scroll",W.onReorderableScroll,{passive:!0})};
TJ.prototype.handleDrop=function(){};
_.rc.Object.defineProperties(TJ.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.a([_.b({value:100}),_.z("design:type",Number)],TJ.prototype,"scrollMargin",void 0);_.a([_.a1()],TJ);_.IZa=[TJ.prototype];_.wx={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(W,l,V){var f=this.getClickTarget_(l);if(f&&this.isClickAllowed_(f)){l.preventDefault();W=(0,_.MC.unsafeClone)(W);var r=this.getContainerBoundingRect();l=this.getRelativeClickXy_(l,r);this.expandEndpointUrlMacros_(W,{NX:l[0],NY:l[1],NB:f.code});V&&this.truncateWebCommendMetadataUrl_(W);_.FN(this.hostElement,"yt-navigate",{endpoint:W})}},
getClickTarget_:function(W){if(!this.clickTargetMap)return null;W=_.d_(W)||[];W=_.L(W);for(var l=W.next();!l.done;l=W.next()){l=l.value;if(l===_.GS(this.hostElement).querySelector("#menu"))break;if(l=this.clickTargetMap.get(l.id))return l}return null},
getRelativeClickXy_:function(W,l){var V=W.detail.x,f=W.detail.y;_.U("use_on_click_for_desktop_display_ad")&&W.clientX!=null&&W.clientY!=null&&(V=W.clientX,f=W.clientY);W=Math.round(V-l.left);l=Math.round(f-l.top);return W<0||l<0?[null,null]:[W,l]},
getContainerBoundingRect:function(){return _.GS(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(W,l){for(var V=_.L(W.loggingUrls||[]),f=V.next();!f.done;f=V.next())f=f.value,f.baseUrl&&(f.baseUrl=lz6(f.baseUrl,l));W.urlEndpoint&&W.urlEndpoint.url&&(W.urlEndpoint.url=lz6(W.urlEndpoint.url,l));W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.url&&(W.commandMetadata.webCommandMetadata.url=lz6(W.commandMetadata.webCommandMetadata.url,l))},
truncateWebCommendMetadataUrl_:function(W){if(W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.url){var l=W.commandMetadata.webCommandMetadata.url,V=l.indexOf("&pp=");if(V>0){var f=l.indexOf("&",V+1);W.commandMetadata.webCommandMetadata.url=f>V&&f<l.length?l.slice(0,V)+l.slice(f):l.slice(0,V)}}},
configureClickTargets:function(W,l,V){this.containerId=W;this.clickTargetMap=new Map;W=_.L(l);for(l=W.next();!l.done;l=W.next())if(l=l.value,l.location){var f=V.get(l.location);f&&(_.pG(_.GS(this.hostElement).querySelector("#"+f),"yt-simple-endpoint",this.isClickAllowed_(l)),this.clickTargetMap.set(f,l))}},
isClickAllowed_:function(W){return W.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||W.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||W.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||W.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.AM={};
_.AM.YtLazyListBehavior=[_.mB.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 W=(this.constructor.generatedFrom||this).observers;W||(W=[]);W.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
W}},
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 W=this.renderElementsOutsideVisibleArea_;W&&(pCa(W,4),W.processSignal())},
deepLazyListObserver_:function(W){var l=this;if(W){var V=W.value||[];if(this.itemsPath==W.path){var f=this.nonDeferredItemCount;W=0;f>-1&&V.length>f&&(W=_.M4("REMAINING_DOVA_DEFERRED_CHUNKS",-1));W>0?(f>0&&(f=V.slice(0,f),this.setInitialItemsOnDataChanged(f)),(f=this.renderElementsOutsideVisibleArea_)?f.cancel():(f=this.renderElementsOutsideVisibleArea_=new _.Tv(2,"eocs"),_.r2F(window,"scroll",function(){return l.renderDeferredElements()})),_.wY(f,function(){l.setInitialItemsOnDataChanged(V)}),_.Qj("REMAINING_DOVA_DEFERRED_CHUNKS",
W-1)):this.setInitialItemsOnDataChanged(V)}else if(this.itemsPath+".splices"==W.path)this.onItemsUpdated_(V);
else f="shownItems"+W.path.substr(this.itemsPath.length),this.useSignals&&f==="shownItems.length"||this.notifyPath(f,W.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(W){W&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(W),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(W){W=W.indexSplices;for(var l=0,V=W.length;l<V;l++){var f=W[l];if(f.index<this.shownCount&&(f.removed&&this.splice("shownItems",f.index,f.removed.length),f.addedCount)){var r=f.object.slice(f.index,f.index+f.addedCount);f=["shownItems",f.index,0];f.push.apply(f,r);this.splice.apply(this,f)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(W){this.cancelPendingTasks_();W||(W=[]);this.items_=W;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&&(_.ZL("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.V9(this,this.tryRenderChunk_)))},
fillRange_:function(W,l){this.canShowMore&&this.items_&&(W=this.items_.slice(W,l),W.unshift("shownItems"),this.push.apply(this,W),this.shownCount=l,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var W=this;this.canShowMore&&_.gm(this,"renderChunk",function(){W.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.ZL("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.a$(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var W=this.renderElementsOutsideVisibleArea_;W&&(W.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var W=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(W-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=W;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(W){return Math.ceil(1E3/W)},
onCanShowMoreUpdated_:function(W){this.data&&this.items_!==null&&(W?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(W){!this.shouldUseTaskManager()&&this.data&&(!W&&this.canShowMore?(_.Kbz(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):W&&this.partiallyRenderedItems_.has(this.items_)&&(_.U("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var ZX;_.QG={};
ZX=function(){var W=_.OD.apply(this,arguments)||this;W.atStart=!0;W.atEnd=!0;W.startIndex=0;W.endIndex=0;W.scrollCount=0;W.initialStartIndex=0;W.disableScrollEventListener=!1;W.useFloorScrolling=!1;W.isSearch=!1;W.dragging=!1;W.dragMouseStart=0;W.dragOffsetStart=0;W.disableWheelScroll=!1;W.centerListItems=!1;W.offset=0;W.minComponentWidth=0;W.marginWidthRight=0;W.marginWidthLeft=0;W.setButtonsStateRequested=!1;W.itemsVisibilityObserver=null;W.fullyVisibleItemsIndices=[];W.JSC$14407_onWheelScroll=function(l){if(W.isSearch&&
!W.disableWheelScroll&&_.U("desktop_enable_dmpanel_wheel_scroll")){var V=l.shiftKey?Math.abs(l.deltaY)>Math.abs(l.deltaX)?l.deltaY:l.deltaX:l.deltaX;V!==0&&(l.preventDefault(),W.ytLazyListBehavior.fillRemainingListItems(),W.offset+=V,Mz(W),W.reposition_())}};
W.onPointerDown=function(l){imL(W)&&(W.dragMouseStart=l.clientX,W.dragOffsetStart=W.offset,W.dragging=!0)};
W.onPointerMove=function(l){imL(W)&&W.dragging&&(W.ytLazyListBehavior.fillRemainingListItems(),W.offset=W.dragOffsetStart-(l.clientX-W.dragMouseStart),Mz(W),W.reposition_())};
W.onPointerUp=function(){imL(W)&&(W.dragging=!1)};
return W};
_.v(ZX,_.OD);var mmL=function(W){var l=_.GS(W.hostElement).querySelector("#items").children;if(!l)return 0;var V=0;W=_.L(W.fullyVisibleItemsIndices);for(var f=W.next();!f.done;f=W.next())V+=l[f.value].clientWidth;return V},imL=function(W){return W.isSearch&&_.U("desktop_enable_dmpanel_click_drag_scroll")};
ZX.prototype.created=function(){this.cachedViewportWidth=_.M4("initialInnerWidth")||window.innerWidth;this.JSC$14407_cachedViewportHeight=_.M4("initialInnerHeight")||window.innerHeight;_.M4("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.Qj("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
ZX.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.U("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();XNZ(this)};
ZX.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.U("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var W;(W=this.itemsVisibilityObserver)==null||W.disconnect();this.itemsVisibilityObserver=null;var l;(l=this.itemsObserver)==null||l.disconnect()};
var XNZ=function(W){var l=_.GS(W.hostElement).querySelector("#scroll-container");if(l){if(!W.itemsVisibilityObserver){var V=window.getComputedStyle(l).marginRight;W.itemsVisibilityObserver=new IntersectionObserver(function(f){TzL(W,f)},{root:l,
rootMargin:V,threshold:.98})}if(l=_.GS(W.hostElement).querySelector("#items"))W.itemsObserver=new HaB(l,function(f){wNc(W,f)})}},wNc=function(W,l){AFk(W)&&(Array.from(l.addedNodes).filter(function(V){return V.nodeType===Node.ELEMENT_NODE}).forEach(function(V){W.itemsVisibilityObserver&&W.itemsVisibilityObserver.observe(V)}),Array.from(l.removedNodes).filter(function(V){return V.nodeType===Node.ELEMENT_NODE}).forEach(function(V){W.itemsVisibilityObserver&&W.itemsVisibilityObserver.unobserve(V)}))},
TzL=function(W,l){var V=new Set(W.fullyVisibleItemsIndices);
l=_.L(l);for(var f=l.next();!f.done;f=l.next()){f=f.value;var r=f.target.parentElement;r?(r=Array.from(r.children).indexOf(f.target),f.isIntersecting?V.add(r):V.has(r)&&V.delete(r)):_.Qe(new _.bP("Parent element not found",f.target.nodeName))}W.fullyVisibleItemsIndices=Array.from(V).sort(function(R,y){return R-y});
V.size===0?_.Qe(new _.bP("No visible entries in horizontal list")):(W.startIndex=W.fullyVisibleItemsIndices[0],W.endIndex=W.fullyVisibleItemsIndices[W.fullyVisibleItemsIndices.length-1])},AFk=function(W){W.data?W=(W=W.data)&&W.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===W.itemSizeConstraint:!1:W=!1;
return W};
_.t=ZX.prototype;_.t.addScrollEventListeners=function(){var W=_.GS(this.hostElement).querySelector("#scroll-container");W.style.touchAction="pan-y";W.addEventListener("wheel",this.JSC$14407_onWheelScroll);W.addEventListener("pointerdown",this.onPointerDown);W.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.t.removeScrollEventListeners=function(){var W=_.GS(this.hostElement).querySelector("#scroll-container");W.removeEventListener("wheel",this.JSC$14407_onWheelScroll);W.removeEventListener("pointerdown",this.onPointerDown);W.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.t.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.V9(this,this.setStartIndex,[this.initialStartIndex])};
_.t.reposition_=function(){var W=_.M4("HTML_DIR")=="rtl"?"":"-",l=_.GS(this.hostElement).querySelector("#items");l&&(l.style.transform="translateX("+W+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.t.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.V9(this,this.setButtonsState_))};
_.t.setButtonsState_=function(){this.setButtonsStateRequested=!1;var W=_.GS(this.hostElement).querySelector("#items").firstElementChild;if(W){this.minComponentWidth||(this.minComponentWidth=QqI(this,W));W=_.GS(this.hostElement).querySelector("#scroll-container").clientWidth;var l=_.GS(this.hostElement).querySelector("#items");l=_.U("kevlar_horizontal_list_scroll_width_killswitch")?l.clientWidth:l.scrollWidth;var V=this.get(this.ytLazyListBehavior.itemsPath,this);if(V){var f=Math.round(W/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+f,V.length)-1)}this.ytLazyListBehavior.canShowMore?l+this.minComponentWidth>=this.offset+W&&(this.atEnd=!1):this.atEnd=this.offset+W>=l-20?!0:!1;this.atStart=this.offset<=20}};
_.t.setStartIndex=function(W){if(!this.minComponentWidth){var l=_.GS(this.hostElement).querySelector("#items").firstElementChild;if(!l)return;this.minComponentWidth=QqI(this,l)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*W;Mz(this);this.reposition_()};
_.t.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.wP();var W=_.GS(this.hostElement).querySelector("#scroll-container").clientWidth;_.U("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=QqI(this,_.GS(this.hostElement).querySelector("#items").firstElementChild));W=this.useFloorScrolling?Math.floor(W/this.minComponentWidth)||1:Math.round(W/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&MpX(this);this.offset+=AFk(this)?
mmL(this):W*this.minComponentWidth;Mz(this);this.reposition_();this.scrollCount++};
_.t.prevClick_=function(){var W=_.GS(this.hostElement).querySelector("#scroll-container").clientWidth;W=this.useFloorScrolling?Math.floor(W/this.minComponentWidth)||1:Math.round(W/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=AFk(this)?mmL(this):this.minComponentWidth*this.scrollCount-1):this.offset-=AFk(this)?mmL(this):W*this.minComponentWidth;this.centerListItems&&MpX(this);Mz(this);this.reposition_()};
_.t.onIronResize_=function(){this.resizeSupportEnabled&&_.V9(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.t.onItemsTransitionEnd_=function(W){_.Ja(W)===_.GS(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.t.onChildElementFocus_=function(W){W=W.target.closest("#items > *");var l=_.GS(this.hostElement).querySelector("#scroll-container");if(l.contains(W)){if(_.U("web_horizontal_list_behavior_focus_killswitch"))if(W.offsetLeft<this.offset)this.offset=Math.abs(W.offsetLeft)<W.clientWidth?0:W.offsetLeft;else if(W.offsetLeft+W.clientWidth>this.offset+l.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.wP(),this.offset=W.offsetLeft+W.clientWidth-l.clientWidth;else return;else{var V=_.GS(this.hostElement).querySelector("#items"),
f=_.M4("HTML_DIR")==="rtl",r=f?V.clientWidth-W.offsetLeft:W.offsetLeft;V=f?V.clientWidth-(W.offsetLeft+W.clientWidth):W.offsetLeft+W.clientWidth;var R=f?r>this.offset+l.clientWidth:r<this.offset,y=f?V<this.offset:V>this.offset+l.clientWidth,P=f?R:y;if(f?y:R)l=f?V:r,this.offset=Math.abs(l)<W.clientWidth?0:l;else if(P)this.ytLazyListBehavior.fillRemainingListItems(),_.wP(),this.offset=(f?r:V)-l.clientWidth;else return}Mz(this);this.reposition_()}};
_.t.observeShownItems_=function(){this.reset()};
_.t.checkComponentWidthResize=function(){var W=_.GS(this.hostElement).querySelector("#items").firstElementChild;W&&(W=QqI(this,W),this.centerListItems||W!==this.minComponentWidth)&&(this.minComponentWidth=W,this.offset=W*this.scrollCount,this.centerListItems&&MpX(this),Mz(this),this.reposition_())};
var QqI=function(W,l){var V=window.getComputedStyle(l).marginRight;V=Math.floor(Number(V.replace("px","")));var f=window.getComputedStyle(l).marginLeft;f=Math.floor(Number(f.replace("px","")));W.centerListItems&&!W.marginWidthRight&&(W.marginWidthRight=V,W.marginWidthLeft=f);return W.resizeSupportEnabled?l.getBoundingClientRect().width+V:l.offsetWidth+V},Mz=function(W){var l=_.GS(W.hostElement).querySelector("#scroll-container").clientWidth,V=_.GS(W.hostElement).querySelector("#items").clientWidth;
W.offset<0?W.offset=0:W.offset+l>=V&&(W.offset=V-l)},MpX=function(W){W.offset-=(_.GS(W.hostElement).querySelector("#scroll-container").clientWidth+W.marginWidthRight-W.minComponentWidth)/2-W.marginWidthLeft};
_.rc.Object.defineProperties(ZX.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var W=_.M4("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(W==-1)W=this.JSC$14407_cachedViewportHeight,W=W>1320?5:W>1020?4:W>730?3:W>430?2:1;else if(W==0)return 0;_.Qj("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",W-1);W=_.M4("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(W>-1)return W;W=this.cachedViewportWidth;W=W>1600?6:W>1400?5:W>1300?4:W>1090?5:W>870?4:W>660?3:2;_.Qj("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
W);return W},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.U("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
ZX.prototype.observeShownItems_=ZX.prototype.observeShownItems_;ZX.prototype.onChildElementFocus_=ZX.prototype.onChildElementFocus_;ZX.prototype.onItemsTransitionEnd_=ZX.prototype.onItemsTransitionEnd_;ZX.prototype.onIronResize_=ZX.prototype.onIronResize_;ZX.prototype.prevClick_=ZX.prototype.prevClick_;ZX.prototype.nextClick_=ZX.prototype.nextClick_;ZX.prototype.setButtonsState_=ZX.prototype.setButtonsState_;ZX.prototype.requestButtonsStateUpdate_=ZX.prototype.requestButtonsStateUpdate_;
ZX.prototype.reposition_=ZX.prototype.reposition_;ZX.prototype.reset=ZX.prototype.reset;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.AM.YtLazyListBehavior),_.z("design:type",Object)],ZX.prototype,"ytLazyListBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ZX.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ZX.prototype,"atStart",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ZX.prototype,"atEnd",void 0);_.a([_.b(),_.z("design:type",Object)],ZX.prototype,"startIndex",void 0);_.a([_.b(),_.z("design:type",Object)],ZX.prototype,"endIndex",void 0);_.a([_.b({value:6}),_.z("design:type",Number)],ZX.prototype,"initialCount",void 0);_.a([_.b(),_.z("design:type",Object)],ZX.prototype,"scrollCount",void 0);_.a([_.b(),_.z("design:type",Object)],ZX.prototype,"initialStartIndex",void 0);
_.a([_.b(),_.z("design:type",Object)],ZX.prototype,"disableScrollEventListener",void 0);_.a([_.b(),_.z("design:type",Object)],ZX.prototype,"supportComponentResize",void 0);_.a([_.b({value:function(){var W=this;return function(){return W.prevClick_()}}}),
_.z("design:type",Function)],ZX.prototype,"boundPrevClick",void 0);_.a([_.b({value:function(){var W=this;return function(){return W.nextClick_()}}}),
_.z("design:type",Function)],ZX.prototype,"boundNextClick",void 0);_.a([_.b(),_.z("design:type",Object)],ZX.prototype,"useFloorScrolling",void 0);_.a([_.b(),_.z("design:type",Object)],ZX.prototype,"isSearch",void 0);_.a([_.b(),_.z("design:type",Object)],ZX.prototype,"dragging",void 0);_.a([_.b(),_.z("design:type",Object)],ZX.prototype,"dragMouseStart",void 0);_.a([_.b(),_.z("design:type",Object)],ZX.prototype,"dragOffsetStart",void 0);
_.a([_.b(),_.z("design:type",Object)],ZX.prototype,"disableWheelScroll",void 0);_.a([_.b(),_.z("design:type",Object)],ZX.prototype,"centerListItems",void 0);_.a([_.XI("iron-resize"),_.TS("guideOpened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZX.prototype,"onIronResize_",null);_.a([_.XI("transitionend"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],ZX.prototype,"onItemsTransitionEnd_",null);
_.a([_.XI("focusin"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],ZX.prototype,"onChildElementFocus_",null);_.a([_.TS("shownItems"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZX.prototype,"observeShownItems_",null);_.a([_.a1()],ZX);_.QG.YtdHorizontalListBehavior=[];_.QG.YtdHorizontalListBehavior.push(_.Wo,_.q.YtRendererBehavior,_.AM.YtLazyListBehavior,_.vZ.YtdGuideStateAwareBehavior,ZX.prototype);var tp6=["APP_STATE","PI"];var Zm9=_.tj(["about:blank"]),Omc={pushState:window.history.pushState,replaceState:window.history.replaceState};var Oh=function(W){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=W;this.internalPushState=W.pushState.bind(W);this.internalReplaceState=W.replaceState.bind(W)};
Oh.prototype.init=function(){this.initialized=!0};
Oh.prototype.pushState=function(W,l){this.initialized||this.init();this.internalPushState&&this.internalPushState(W,"",l)};
Oh.prototype.replaceState=function(W,l){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(W,"",l)};
Oh.prototype.getState=function(){return this.history&&this.history.state};var aZB=function(W){var l=function(){var V=W.apply(this,arguments)||this;V.boundHistoryPushState=!1;V.boundHistoryReplaceState=!1;V.debugInfo={};return V};
_.v(l,W);l.prototype.init=function(){var V=_.Gz("IFRAME");_.WG(V,_.dO(Zm9));V.sandbox="allow-same-origin";V.style.display="none";this.iframe=V;document.body.appendChild(V);this.bindHistoryStateFunctions();W.prototype.init.call(this)};
l.prototype.bindHistoryStateFunctions=function(){var V=this,f=[],r;this.iframe&&((r=this.iframe.contentWindow)==null?0:r.history)&&(r=this.iframe.contentWindow.history)&&(f.push(r),Object.getPrototypeOf(r)&&f.push(Object.getPrototypeOf(r)));window.history&&f.push(window.history);r=window.history;Object.getPrototypeOf(r)&&f.push(Object.getPrototypeOf(r));f.push(Omc);r=function(y){for(var P=null,n=0;n<f.length;n++){var B=f[n][y];if(typeof B==="function"){P=B.bind(window.history);V.debugInfo[y]=n;break}}return P};
if(!this.boundHistoryReplaceState){var R=r("replaceState");R&&(this.internalReplaceState=R,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(r=r("pushState"))&&(this.internalPushState=r,this.boundHistoryPushState=!0)};
return l}(Oh),zQk=function(){return aZB.call(this,window.history)||this};
_.v(zQk,aZB);zQk.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var aR=function(W){this.browserHistory=W;this.initialized=!1};
aR.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
aR.prototype.pushState=function(W,l){this.initialized||this.init();this.browserHistory.pushState(W,l)};
aR.prototype.replaceState=function(W,l){this.initialized||this.init();this.browserHistory.replaceState(W,l)};
aR.prototype.handlePopstate=function(W){return W.state};_.NzL=function(W,l,V,f,r){this.endpoint=W;this.forward=l;this.historyEntry=V;this.JSC$30157_savedComponentState=f;this.legacyBorder=r===void 0?!1:r};var YWX=function(W,l){this.rootData=W;this.scrollTop=l};var XA=new _.vd("PAGE_REQUEST_TOKEN"),rhI=new _.vd("FETCH_PBJ_TOKEN");_.zJ=new _.vd("EPHEMERAL_STORE_TOKEN");_.Nz=function(W){this.data=Object.assign({},W);var l;(l=this.data.innertubeResponse)==null||delete l.frameworkUpdates};
_.Nz.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.tv)()};
_.c0=function(W){return Object.assign({},W.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var xmc=function(){this.maxSize=100;this.timeToDataCache=new Map};
xmc.prototype.get=function(W){var l=this.timeToDataCache.get(W);l&&(this.timeToDataCache.delete(W),this.timeToDataCache.set(W,l));if(l&&l.rootData&&(_.U("web_use_response_store_for_history_cache")||_.U("mweb_use_new_history_manager"))){var V=_.tY().resolve(_.zJ),f=eQv(l),r=!!f;if(f){if(f.content){var R=YM(V,f.content);r&&R?l.rootData.response=_.c0(R):r=!1}f.player&&(R=YM(V,f.player),r&&R?l.rootData.playerResponse=_.c0(R):r=!1);f.reelSequence&&(V=YM(V,f.reelSequence),r&&V?l.rootData.reelWatchSequenceResponse=
_.c0(V):r=!1)}r||(this.timeToDataCache.delete(W),l=void 0)}return l};
xmc.prototype.set=function(W,l){if(l.rootData&&(_.U("web_use_response_store_for_history_cache")||_.U("mweb_use_new_history_manager"))){var V=eQv(l),f=Object.assign({},l.rootData);V&&(V.content&&l.rootData.response&&(qWL(this,V.content,l.rootData.response),f.response=null),V.player&&l.rootData.playerResponse&&(qWL(this,V.player,l.rootData.playerResponse),f.playerResponse=null),V.reelSequence&&l.rootData.reelWatchSequenceResponse&&(qWL(this,V.reelSequence,l.rootData.reelWatchSequenceResponse),f.reelWatchSequenceResponse=
null));l=new YWX(f,l.scrollTop)}this.timeToDataCache.has(W)?this.timeToDataCache.delete(W):this.timeToDataCache.size>=this.maxSize&&(V=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(V.value));this.maxSize!==0&&this.timeToDataCache.set(W,l)};
xmc.prototype.clear=function(){this.timeToDataCache.clear()};
var eQv=function(W){var l=_.tY().resolve(_.R0(XA)),V;if((V=W.rootData)==null?0:V.endpoint)return l==null?void 0:ZYY(l,W.rootData.endpoint);var f;_.Qe(new _.bP("History snapshot response data does not contain endpoint",(f=W.rootData)==null?void 0:f.url));return null},qWL=function(W,l,V){if(W.maxSize>0){var f;
(W=(f=V.responseContext)==null?void 0:f.maxAgeSeconds)&&Number(W)>0&&(f=_.tY().resolve(_.zJ),V=Kv(V,W),f.put(l,new _.Nz(V)))}};var hQB=function(W,l,V){this.endpoint=l;this.JSC$30162_savedComponentState=V===void 0?null:V;this.entryTime=W};var npz=1;var xM=function(W){var l=function(){var V=W.apply(this,[].concat(_.QK(_.xk.apply(0,arguments))))||this;V.historyEntryTime=0;V.historySnapshotCache=V.createHistoryCache();return V};
_.v(l,W);l.prototype.createHistoryCache=function(){return new xmc};
l.prototype.saveAndReplace=function(V,f,r){var R=window.location.href;var y=y===void 0?{}:y;var P=(P=this.browserHistory.getState())&&P.entryTime?P.entryTime:C3S();V=this.createNewHistoryEntry(V,y,P);this.saveSnapshot(P,f,r);this.replaceState(V,R||window.location.href)};
l.prototype.saveAndPush=function(V,f,r,R,y){y=y===void 0?{}:y;this.saveSnapshot(this.historyEntryTime,r,R);r=this.historySnapshotCache;R=this.historyEntryTime;var P=r.timeToDataCache.keys();P=_.L(P);for(var n=P.next();!n.done;n=P.next())n=n.value,n>R&&r.timeToDataCache.delete(n);f=this.createNewHistoryEntry(f,y);this.pushState(f,V)};
l.prototype.saveSnapshot=function(V,f,r){this.historySnapshotCache.set(V,new YWX(f,r))};
l.prototype.createNewHistoryEntry=function(V,f,r){r=r===void 0?C3S():r;return new hQB(r,V,f)};
l.prototype.handlePopstate=function(V){var f=W.prototype.handlePopstate.call(this,V),r=null,R=null,y=!1,P=null;f&&f.entryTime&&(P=this.historySnapshotCache.get(f.entryTime)||null,y=f.entryTime>this.historyEntryTime,this.historyEntryTime=f.entryTime,r=f.endpoint,R=f.JSC$30162_savedComponentState);this.handleHistoryCacheLoad(new _.NzL(r,y,P,R),V);return f};
l.prototype.pushState=function(V,f){Number(V==null?void 0:V.entryTime)>=0&&(this.historyEntryTime=V.entryTime);W.prototype.pushState.call(this,V,f)};
l.prototype.replaceState=function(V,f){Number(V==null?void 0:V.entryTime)>=0&&(this.historyEntryTime=V.entryTime);W.prototype.replaceState.call(this,V,f)};
l.prototype.handleHistoryCacheLoad=function(){};
return l}(aR),SW9=function(){var W=xM.call(this,new zQk)||this;
W.dispatchElement=null;W.entryIndex=0;return W};
_.v(SW9,xM);_.t=SW9.prototype;_.t.init=function(W){W=W===void 0?!0:W;xM.prototype.init.call(this);this.initialized||(W||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.t.handlePopstate=function(W){var l=null;W.state||(l="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return xM.prototype.handlePopstate.call(this,W);var V=new CustomEvent("yt-history-pop",{cancelable:!0});_.Gt(this.dispatchElement,"yt-history-pop",[V,{errorMsg:l}]);_.bj(this.dispatchElement,"yt-close-all-popups-action");if(!V.defaultPrevented){V=_.tY().resolve(_.Bp);l=V.getCurrentData();var f=V.getCurrentPage();V=0;f?(f=_.Gt(this.dispatchElement,"yt-get-page-offset",
[f]),f.length>0&&(V=f[0])):_.Qe(new _.bP("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:l?l.page:"undefined"}));l&&(l.csn=_.Wh());this.saveSnapshot(this.historyEntryTime,l,V)}return xM.prototype.handlePopstate.call(this,W)};
_.t.handleHistoryCacheLoad=function(W,l){W.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.L(_.bj(this.dispatchElement,"yt-history-will-navigate",[l])).next().value||_.Gt(this.dispatchElement,"yt-history-load",[l,W]))};
_.t.pushState=function(W,l){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var V=new _.bP("history.pushState is not a function",this.getDebugString());_.wv(V)}xM.prototype.pushState.call(this,W,l)};
_.t.replaceState=function(W,l){if(!this.browserHistory.boundHistoryReplaceState){var V=new _.bP("history.replaceState is not a function",this.getDebugString());_.wv(V)}xM.prototype.replaceState.call(this,W,l)};
_.t.saveAndPush=function(W,l,V,f,r){r=r===void 0?{}:r;V&&(V.csn=_.Wh());xM.prototype.saveAndPush.call(this,W,l,V,f,r)};
_.t.getDebugString=function(){var W=[];this.initialized&&W.push("i");this.browserHistory.boundHistoryReplaceState&&W.push("bhr");this.browserHistory.boundHistoryPushState&&W.push("bhs");"replaceState"in this.browserHistory.debugInfo&&W.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&W.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&W.push("ei:"+String(this.entryIndex));return W.join(",")};
_.eK=function(W,l){W.init(!0);var V=W.browserHistory.getState();W.replaceState(V,Hp(l))};
SW9.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.qz=new _.vd("DESKTOP_HISTORY_MANAGER_TOKEN");var EpI=[10,20,30,40,50,60],hM=function(){this.currentPartitionIndex=0},$m$=function(W){tKI({mainAppWeb:_.nG(),
survivalSli:{partitionMinute:W,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},Wfk=function(W){tKI({mainAppWeb:_.nG(),
survivalSli:{partitionMinute:W,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},lqe=function(W){return W.currentPartitionIndex>=0&&W.currentPartitionIndex<EpI.length?EpI[W.currentPartitionIndex]:-1},VBv=function(W){return W.currentPartitionIndex>0&&W.currentPartitionIndex-1<EpI.length?EpI[W.currentPartitionIndex-1]:-1};
hM.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var W=VBv(this);W>0&&Wfk(W);W=lqe(this);W>0&&$m$(W);fqM(this)}};
var fqM=function(W){var l=lqe(W);if(l>0){var V=VBv(W);V<0&&(V=0);W.intervalId=_.w8.addJob(function(){var f=VBv(W);f>0&&Wfk(f);f=lqe(W);f>0&&$m$(f);fqM(W)},3,(l-V)*6E4);
W.currentPartitionIndex+=1}else W.currentPartitionIndex=-1};var rKL=function(){this.skipNextNavigation=!1},Rt9=function(W,l,V){if(!l)return!1;
if(W.skipNextNavigation)return W.skipNextNavigation=!1;if(_.k(V,_.x_))return!1;var f,r,R;if((f=_.k(V,_.ZJ))==null?0:(r=f.browseEndpointContextSupportedConfigs)==null?0:(R=r.browseEndpointContextMainConfig)==null?0:R.skipConfirmation)return!1;var y;return((y=_.k(l.commandMetadata,_.XN))==null?void 0:y.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
rKL.prototype.showConfirmationDialog=function(W,l){this.navigateParams=l;this.customConfirmationCommand?_.tY().resolve(_.s6).resolveCommand(this.customConfirmationCommand):(l={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Bl(_.wg("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Bl(_.wg("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Bl(_.wg("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Bl(_.wg("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.eC.getInstance().triggerAction("yt-open-popup-action",l,W))};
rKL.prototype.cancelPendingNavigation=function(){var W;((W=this.navigateParams)==null?void 0:W.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var tBL=function(){},LfB=function(W,l,V,f,r,R,y){V=V===void 0?{}:V;
y=y===void 0?{}:y;var P=_.lH.instance,n,B=(n=_.k(l,_.x_))==null?void 0:n.url;return B?vAU(P,B,V,window.location.href,function(d,J){sEk(W,d,J,!1,!0,V,R,f)},function(){return!1}):WF(P,l,V,window.location.href,aD(l),function(d,J){sEk(W,d,J,!1,!0,V,R,f)},r,y)},sEk=function(W,l,V,f,r,R,y,P){if(!W.JSC$14465_chunkHandler)if(V.page==="learning_journey_watch"&&_.U("web_enable_canvas_on_learning_journey")){var n=!_.k(P,_.ZJ);
r=r||f;if(n)if(r){if(_.U("kevlar_continue_playback_without_player_response")){var B;var d=(B=_.k(P,_.Bh))==null?void 0:B.videoId}f={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:f,previousVideoId:d},tempData:R}}else f={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else f={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};W.JSC$14465_chunkHandler=new GMe(_.Jy,f,y,n,r)}else if(V.page==="watch"||V.page==="learning_journey_watch")if(r||f){if(_.U("kevlar_continue_playback_without_player_response")){var J;
n=(J=_.k(P,_.Bh))==null?void 0:J.videoId}W.JSC$14465_chunkHandler=new oae(_.Jy,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:f,previousVideoId:n},tempData:R},y)}else W.JSC$14465_chunkHandler=new KWL(_.Jy);else V.page==="shorts"&&r&&!f?W.JSC$14465_chunkHandler=new p7c(_.Jy,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:R},y):W.JSC$14465_chunkHandler=new FWk(y);W.JSC$14465_chunkHandler.processChunk({endpoint:l,data:V});return W.JSC$14465_chunkHandler.zM.promise},
yKX=function(W,l,V,f,r){(V=_.Dxk(V))&&sEk(W,l,V,!1,!0,f,void 0,r)};var gie=function(){this.pendingNavigationPromise=null};
_.t=gie.prototype;_.t.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.t.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.t.addEventListener=function(){throw Error("Ch");};
_.t.dispatchEvent=function(){throw Error("Ch");};
_.t.removeEventListener=function(){throw Error("Ch");};var PQL=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],SK=function(){_.aj.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];nie(this)};
_.v(SK,_.aj);SK.prototype.verifyUser=function(){var W=nie(this),l=W.logout;if(!W.sessionChange)return!0;this.dispatchEvent("ytsessionchange");l&&this.dispatchEvent("ytuserinvalid");return!1};
var nie=function(W){var l=PQL.map(function(r){var R;return(R=_.vA.get(r))!=null?R:""}),V=l.some(function(r,R){return W.sessionCookies&&W.sessionCookies[R]!==""&&r===""}),f=l.some(function(r,R){return W.sessionCookies&&W.sessionCookies[R]!==r});
W.sessionCookies=l;return{logout:V,sessionChange:f}};
SK.prototype.clearTimeout=function(){this.scheduledJobId&&(_.w8.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var DmY=new _.vd("POSTMESSAGE_TUNNEL_TOKEN");var Bzx=["/parent_tools","/file_download","/artist_roster"],kcn=[f$L,rZ9,RII,sXM,tLB,VLI,LkX,yZ9];var CQX=new _.vd("APP_ROOT");var Eh=new _.vd("NAVIGATION_CONFIRMATION_SERVICE");var cKI="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),Boe=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],$M=function(W,l){this.pendingNavigationPromise=null;this.JSC$14483_clientRoot=W;this.historyManager=l;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 tBL;this.debugString=W.is;W={"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};_.qJ(_.eC.getInstance(),W,this.JSC$14483_clientRoot)},ulX,kwM,viL,Hua,UiM;
_.v($M,gie);$M.prototype.reload=function(){_.PV(window.location.href)};
var kEZ=function(W){W.currentEndpoint&&_.k(W.currentEndpoint,_.N$)?W.reload():W.currentEndpoint&&W.navigate(W.currentEndpoint,!0,void 0,{disableCache:!0})};
$M.prototype.navigate=function(W,l,V,f,r,R,y,P){l=l===void 0?!1:l;V=V===void 0?{}:V;f=f===void 0?{}:f;var n=_.tY().resolve(Eh),B;if(!y&&Rt9(n,(B=this.currentEndpoint)!=null?B:void 0,W))return n.showConfirmationDialog(this.JSC$14483_clientRoot.parentElement,{endpoint:W,reload:l,params:V,tempData:f,requestType:r,createScreenConfig:R}),!1;var d=_.DI();_.U7(d,"eocs")||d.parkOrScheduleJob(function(){d.processSignal("eocs")},10,"eor");
y=aD(W);n=f.autonav==="1";B=_.Wh();SK.instance||(SK.instance=new SK);var J=SK.instance.verifyUser(),D;if(_.U("enable_dark_theme_only_on_shorts")){var u=document.documentElement.hasAttribute("dark"),H=_.h5(!0)==="USER_INTERFACE_THEME_DARK";if(y==="shorts"){if(!u)if(_.U("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var p;_.PV((p=_.k(W==null?void 0:W.commandMetadata,_.XN))==null?void 0:p.url,void 0,void 0,window.top)}}else{var X;_.PV(_.EJ((X=_.k(W==null?
void 0:W.commandMetadata,_.XN))==null?void 0:X.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.U("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!u){var w;_.PV(_.EJ((w=_.k(W==null?void 0:W.commandMetadata,_.XN))==null?void 0:w.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(H!==u){var O;_.PV(_.EJ((O=_.k(W==null?void 0:W.commandMetadata,_.XN))==null?void 0:O.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(y==="watch"){if(diL(_.tY().resolve(_.Sl),
W)&&(J||_.U("fix_miniplayer_navigation_killswitch")))return!1;_.U("block_all_player_prefetch_requests")||(D=Uxv(_.nt(_.V5),W,n))}else{var S,N=(S=_.k(this.currentEndpoint,_.Bh))==null?void 0:S.videoId;N&&_.RB.getInstance().then(function(H8){H8&&H8.set("yt-miniplayer-shown-video-id",N)})}D&&(V.frags=D.missingFragments_.join(","));
p=null;var x;X=(x=_.k(W==null?void 0:W.commandMetadata,_.XN))==null?void 0:x.ignoreNavigation;if(!X)if(_.U("kevlar_command_url")){var Y;p=(Y=_.k(W==null?void 0:W.commandMetadata,_.XN))==null?void 0:Y.url}else p=_.zPv(W,V);if(p&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&p==this.lastNavigationUrl)return _.Sy({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.v0(tg(),"CANCELLED")}p&&(this.lastNavigationUrl=p);EMJ();_.Qj("IS_HOMEPAGE_COLD",
!1);_.Qj("IS_RESULTS_PAGE_COLD",!1);_.Qj("IS_WATCH_PAGE_COLD",!1);W.loggingUrls&&W.loggingUrls.forEach(function(H8){H8.baseUrl&&_.xs(H8.baseUrl)});
_.FGF(W,R?R.layer:0)&&_.U("kevlar_flush_logs_on_away_navigation")&&_.Ts();if(vpU(W))return!1;$x9(y,r);if(!p)return X||_.Qe(new _.bP("Can't construct url for endpoint",W)),_.v0(tg(),"FAILURE"),!1;_.cF8();x=W&&_.k(W,_.ZJ)&&_.k(W,_.ZJ).browseId.startsWith("UC");V=(Y=_.U("enable_dark_theme_only_on_shorts")&&y==="shorts"?!1:_.Sr()&&document.documentElement.hasAttribute("dark")!==_.q$())?{themeRefresh:1}:{};Y&&!_.K7()&&_.h5()==="USER_INTERFACE_THEME_DARK"&&(V.theme="dark");x=Y||JKv(p)&&!x&&!_.U("kevlar_disable_url_allowlist");
J||(x=!0);if(x||_.M4("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var W8;var c8=(W8=window.top)==null?void 0:W8.location.href}catch(H8){var B8;c8=(B8=H8)==null?void 0:B8.message}_.Qe(new _.bP("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:c8}))}W=_.U("kevlar_redirect_on_window_killswitch")?window.top:window;g_(p);_.PV(_.EJ(p,V),void 0,void 0,W);_.v0(tg(),"ABORTED");return!1}_.U("kevlar_early_popup_close")&&_.Gt(this.JSC$14483_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14465_chunkHandler=void 0;var Jx;c8=aD((Jx=this.currentEndpoint)!=null?Jx:void 0);(Jx=y==="shorts"&&c8==="shorts")||_.W98();_.ah(MqJ)("nr",void 0);n&&_.Sy({webInfo:{navigationReason:"an"}});W.clickTrackingParams&&(f.itct=W.clickTrackingParams,f.csn=B);y8z(f);f.endpoint=JSON.stringify(W);_.U("enable_unknown_lact_fix_on_html5")&&(_.tY().resolve(_.OZ),f.lact=_.sL());_.MC.isEmpty(f)||_.Ue(p,f);!_.U("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(R=Object.assign({},{layer:0},R,{parentLayer:3}));this.pendingNavigationPromise=R=LfB(this.pageFetcher,W,f,this.currentEndpoint,this.JSC$14483_isNetworkPromiseStale.bind(this),R,P);R=R.then(this.handleNavigateSuccess.bind(this,R,W,D,f),this.handleNavigateFail.bind(this,R,W));_.hJ().navigationFinishPromise=R;l={endpoint:W,pageType:y,url:Hp(p),reload:!!l,noProgressBar:Jx};r&&(l.type=r);this.fireEvent("yt-navigate-start",l);D&&yKX(this.pageFetcher,W,D,f,this.currentEndpoint);
return!0};
$M.prototype.JSC$14483_isNetworkPromiseStale=function(W){return W!=this.pendingNavigationPromise};
var DiB=function(W,l,V,f,r){var R=aD(l);l={endpoint:l,pageType:R};r&&(l.errorMessage=r);_.Qe(V);l.navigationDoneMs=_.Wy("nd");l.navigationErrorReason=f;W.fireEvent("yt-navigate-error",l)};
$M.prototype.handleNavigateFail=function(W,l,V){var f=void 0;V instanceof _.Eg&&(f=V,OvU(V));if(this.JSC$14483_isNetworkPromiseStale(W))return _.eM(f);_.v0(tg(),"FAILURE");DiB(this,l,V,"101");return _.eM(V)};
$M.prototype.handleNavigateSuccess=function(W,l,V,f,r){if(this.JSC$14483_isNetworkPromiseStale(W))return _.jy();this.pendingNavigationPromise=null;if(!r)return l=new _.bP("Missing data in response for navigation endpoint",l),_.eM(l);if(r.reload)return window.location.reload(!0),_.jy();V&&(W={},_.MC.extend(W,_.Dxk(V),r),r=W);var R,y;V=(R=r)==null?void 0:(y=R.timing)==null?void 0:y.responseStart;V!=null&&_.Wy("srt",V);_.Wy("pdc");var P,n;R=(P=r)==null?void 0:(n=P.timing)==null?void 0:n.info;R!=null&&
(P=_.ah(_.ziY)(R),_.Sy(P));_.v0(tg(),"SUCCESS");UiM(this,l,r,1,f);return _.jy()};
var JKv=function(W){var l=W;_.U("kevlar_no_redirect_to_classic_2_ks")||(l=(new _.dg(W)).getPath());if(l==="/"||l==="/red")return!1;var V=!0;cKI.forEach(function(f){W.indexOf(f)===0&&(V=!1)});
Boe.forEach(function(f){var r=f.url;_.U(f.expFlag)&&W.indexOf(r)===0&&(V=!1)});
return V};
$M.prototype.publishPageData=function(W){this.fireEvent("yt-page-data-fetched",{pageData:W})};
ulX=function(W,l,V,f,r,R){var y=null;l.page!=="watch"&&l.page!=="learning_journey_watch"||f?l.filler||_.Gt(W.JSC$14483_clientRoot,"yt-stop-old-player",[l]):y=sEk(W.pageFetcher,r,l,V,!1,R,void 0,W.currentEndpoint);if(y)return y.then(W.publishPageData.bind(W,l));W.publishPageData(l);return _.jy()};
kwM=function(W,l,V){var f=null;if(!V)return f=new _.bP("Empty data",W.debugString,l);var r=V.response;if(!r)return f;var R={endpointType:aD(l)||"unknown"};r.responseContext?(r=r.responseContext.errors)&&(f=new _.bP("Errors in response context",W.debugString,l,r,R)):f=r.error||r.errorMetadata?new _.bP("Errors in response",W.debugString,l,r.error,r.errorMetadata,R):new _.bP("responseContext missing",W.debugString,l,Object.keys(r).sort().join(","),R);var y,P,n,B;if(W=V==null?void 0:(y=V.response)==null?
void 0:(P=y.responseContext)==null?void 0:(n=P.webResponseContextExtensionData)==null?void 0:(B=n.webResponseContextDebugData)==null?void 0:B.debugErrorMessages)for(y=0;y<W.length;y++);return f};
viL=function(W){var l,V,f,r;return W==null?void 0:(l=W.response)==null?void 0:(V=l.responseContext)==null?void 0:(f=V.errors)==null?void 0:(r=f.error)==null?void 0:r["0"]};
Hua=function(W,l){var V;if(V=l.url&&!l.url.startsWith("/clip"))V=l.url,V=!_.U("webfe_parse_debug_param_in_resolveurl_service")&&W.searchDebugUrlMatcher.test(V)||Se4(V)?!0:!1;if(V)Se4(l.url)&&_.Si(window.location.href).themeRefresh?(l=_.uj(l.url,"themeRefresh"),_.eK(W.historyManager,l)):l.url&&!gpz(l.url)&&_.eK(W.historyManager,l.url);else if(l.endpoint){var f,r,R;(V=(f=l.endpoint)==null?void 0:(r=f.commandMetadata)==null?void 0:(R=r.webCommandMetadata)==null?void 0:R.url)&&!gpz(V)&&_.eK(W.historyManager,
V);V&&l.url&&V!=l.url&&!l.url.match("playnext=1")&&new _.bP("Response url mismatch in response data",W.debugString,V,l.url)}};
_.KfI=function(W,l,V,f,r,R,y,P){R=R===void 0?!1:R;var n=_.tY().resolve(Eh),B;if(!P&&Rt9(n,(B=W.currentEndpoint)!=null?B:void 0,l))return n.showConfirmationDialog(W.JSC$14483_clientRoot.parentElement,{endpoint:l,data:V,navigationType:f,tempData:r,isMiniplayer:R,isForwardHistoryNavigation:y==null?void 0:y.forward}),_.jy();W.pageFetcher.JSC$14465_chunkHandler=void 0;return UiM(W,l,V,f,r,R)};
UiM=function(W,l,V,f,r,R){R=R===void 0?!1:R;W.isMiniplayerExpansion=R;var y=f===2;W.currentEndpoint=l;W.numNavigations++;W.numNavigations&&(hBj.navigationCount=W.numNavigations);_.Qj("NUM_NAV",W.numNavigations);var P=kwM(W,l,V);if(P)return DiB(W,l,P,"102",viL(V)),_.eM(P);var n,B,d,J;P=V.rootVe||(V==null?void 0:(n=V.response)==null?void 0:(B=n.responseContext)==null?void 0:(d=B.webResponseContextExtensionData)==null?void 0:(J=d.ytConfigData)==null?void 0:J.rootVisualElementType);!y&&V&&Hua(W,V);var D,
u;n=V==null?void 0:(D=V.response)==null?void 0:(u=D.responseContext)==null?void 0:u.maxAgeSeconds;if(!y&&!isNaN(n)){var H;_.U("kevlar_use_response_ttl_to_invalidate_cache")?H=(0,_.tv)()+1E3*n:_.U("kevlar_always_invalidate_cache")&&(H=0);isNaN(H)||(V.expirationTime=H)}_.nt(_.V5).prefetchCache_.clear();y||V.page!=="watch"||V.type!=="reduced"&&f!==1?f=ulX(W,V,y,!!R,l,r):(W.publishPageData(V),f=_.jy());r=f.then(function(){var p=aD(l);p={endpoint:l,pageType:p,fromHistory:y,response:V};p.navigationDoneMs=
_.Wy("nd");W.fireEvent("yt-navigate-finish",p)});
V.csn&&P&&V.clientSideGrafts&&f.then(W.attachClientSideGrafts.bind(W,V,_.$G()));return r};
_.t=$M.prototype;_.t.attachClientSideGrafts=function(W,l){W.clientSideGrafts&&l&&W.clientSideGrafts.forEach(function(V){if(l&&V){var f=_.zG(V);_.U("combine_ve_grafts")?_.Qq().graftServerVe(V,l):_.L0(W.csn,l,f)}})};
_.t.handleSignalActionHistoryBack=function(){window.history.back()};
_.t.handleSignalActionCloseWindow=function(){window.close()};
_.t.handleSignalActionReloadPage=function(){this.reload()};
_.t.handleSignalActionSoftReloadPage=function(){kEZ(this)};
_.t.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.t.fireEvent=function(W,l){W=new CustomEvent(W,{bubbles:!0,cancelable:!1,composed:!0,detail:l});this.dispatchEvent(W)};
_.t.addEventListener=function(W,l){this.JSC$14483_clientRoot.addEventListener(W,l)};
_.t.dispatchEvent=function(W){return this.JSC$14483_clientRoot.dispatchEvent(W)};
_.t.removeEventListener=function(W,l){this.JSC$14483_clientRoot.removeEventListener(W,l)};
$M[k$]=[CQX,_.qz];_.F0J=new QC("browse","h8y2qb");_.GB6=new QC("search","JzFVk");_.bYS=new QC("shorts","xwEKAe");_.pQU=new QC("watchFixie","nmfa2d");_.o8F=new QC("watchFlexy","CF909");_.jNU=new QC("watchGrid","Tm0L3c");_.IHx=new QC("watchLearningJourney","L3n37");var FfX;var GwL=function(){return _.I.apply(this,arguments)||this};
_.v(GwL,_.I);_.rc.Object.defineProperties(GwL,{template:{configurable:!0,enumerable:!0,get:function(){if(FfX===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);FfX=W}W=FfX;return W}}});
_.a([_.F(GcX.YtPlayerBehavior),_.z("design:type",Object)],GwL.prototype,"ytPlayerBehavior",void 0);_.a([_.A({is:"ytd-player"})],GwL);var buv;var pT9;var oiB;var WR=function(){var W=_.I.apply(this,arguments)||this;W.forceModernIconButton=!1;W.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return W};
_.v(WR,_.I);WR.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]]"}}}}}};
WR.prototype.handleAccountLinkingStateChangedCommand=function(W){if(W=_.k(W,NAc)){var l,V=(l=this.data)==null?void 0:l.providerKey;l=W.providerKey;V&&l&&V.id===l.id&&V.subject===l.subject&&(W=W.linked,W!==void 0&&(this.set("data.linked",W),this.notifyPath("data.linked"),_.U("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(W)))}};
WR.prototype.setPlayerAccountLinkState=function(W){var l=new tqe;sMc(l,ru1(new f3M,W));var V=_.Jy();V&&V.getPlayerPromise().then(function(f){f.setAccountLinkState(_.Xw(l.JSC$12177_serializeBinary(),4));f.updateAccountLinkingConfig(W)})};
WR.prototype.handleShowAccountLinkDialog=function(){var W=this.get("button.buttonRenderer.command");W&&_.ij([W],this.hostElement)};
_.rc.Object.defineProperties(WR.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}}}});
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],WR.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],WR.prototype,"ytRendererBehavior",void 0);_.a([_.F([_.hp.YtActionHandlerBehavior]),_.z("design:type",Object)],WR.prototype,"actionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],WR.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],WR.prototype,"overrides",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],WR.prototype,"forceModernIconButton",void 0);_.a([_.b({value:"bottom"}),_.z("design:type",String)],WR.prototype,"buttonTooltipPosition",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],WR.prototype,"forceIconButton",void 0);_.a([_.b(),_.z("design:type",Boolean)],WR.prototype,"disableTextTransform",void 0);
_.a([_.G("data","data.linked","data.isWarning"),_.z("design:type",Object),_.z("design:paramtypes",[])],WR.prototype,"button",null);_.a([_.A({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],WR);
_.Z(WR,"ytd-account-link-button-renderer",function(){if(oiB!==void 0)return oiB;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return oiB=W},{mode:1});var jEe;var Iqv=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],lX=function(){return _.I.apply(this,arguments)||this};
_.v(lX,_.I);lX.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
lX.prototype.updateButtonActiveState=function(){var W=this,l=!!Iqv.find(function(V){return W.currentState===V});
this.button&&(this.button.isPressed=l)};
_.rc.Object.defineProperties(lX.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.playlistLoopStateEntity)==null?void 0:W.state)||((l=this.data)==null?void 0:l.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var W=void 0,l;if(this.currentState&&((l=this.data)==null?0:l.states)){l=_.L(this.data.states);for(var V=l.next();!V.done;V=l.next()){V=_.k(V.value,_.g$k);var f=void 0;if(((f=V)==null?void 0:f.state)===this.currentState){W=V;break}}}return W}}});
lX.prototype.updateButtonActiveState=lX.prototype.updateButtonActiveState;_.a([_.F(_.dx),_.z("design:type",Object)],lX.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],lX.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],lX.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.b({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.imS}),_.z("design:type",Object)],lX.prototype,"playlistLoopStateEntity",void 0);_.a([_.b(),_.z("design:type",Object)],lX.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Boolean)],lX.prototype,"forceIconOnly",void 0);_.a([_.Aa("ytd-button-renderer"),_.z("design:type",_.Xj)],lX.prototype,"button",void 0);
_.a([_.G("data","playlistLoopStateEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],lX.prototype,"currentState",null);_.a([_.TS("currentButtonStateRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lX.prototype,"updateButtonActiveState",null);_.a([_.G("currentState"),_.z("design:type",Object),_.z("design:paramtypes",[])],lX.prototype,"currentButtonStateRenderer",null);
_.a([_.A({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],lX);
_.Z(lX,"ytd-playlist-loop-button-renderer",function(){if(jEe!==void 0)return jEe;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return jEe=W},
{mode:1});var iua;var mi$=_.wg("DOWNLOAD",{},"Download"),XTc=_.wg("DOWNLOADING",{},"Downloading"),ToZ=_.wg("DOWNLOADED",{},"Downloaded"),wTB=_.wg("RETRY",{},"Retry"),Vx=function(){var W=_.I.apply(this,arguments)||this;W.forceIconButton=!1;W.forceIconOnly=!1;W.overrides=!1;W.buttonTooltipPosition=!1;W.styleActionButton=!1;W.disableTextTransform=!1;W.downloadProgress=0;W.isDownloadComplete=!1;W.isHidden=!0;W.transferState="TRANSFER_STATE_UNKNOWN";W.isVideoDeletedByUser=!1;W.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return W};
_.v(Vx,_.I);_.t=Vx.prototype;_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.t.dataChanged=function(){var W;(W=this.data)!=null&&W.text||(W=_.rE(_.DJ().getState(),this.videoId),this.updateButtonState(W))};
_.t.computeVideoId=function(W){return W};
_.t.showHideButton=function(){this.updateButtonVisibility()};
_.t.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};
_.t.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.t.updateButtonState=function(W){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==XTc||!_.as(W))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(W){case "TRANSFER_STATE_UNKNOWN":W=mi$;var l="OFFLINE_DOWNLOAD";var V="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":W=wTB;l="OFFLINE_DOWNLOAD";V="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":W=ToZ;l="OFFLINE_PIN";V="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":W=
XTc;l="OFFLINE_DOWNLOADING_ZERO";V="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":W=wTB;l="OFFLINE_DOWNLOAD";V="ACTION_RETRY";break;default:W=mi$,l="OFFLINE_DOWNLOAD",V="ACTION_ADD"}this.isVideoDeletedByUser&&(W=mi$,l="OFFLINE_DOWNLOAD",V="ACTION_ADD");var f=Object.assign({},this.data);f.text=_.Bl(W);f.tooltip=W;f.icon={iconType:l};f.size="SIZE_DEFAULT";f.style="STYLE_DEFAULT";_.k(f.command,_.Xx)&&(_.k(f.command,_.Xx).action=V);this.set("data",f)}};
_.t.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var W="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?W="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?W="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?W="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?W="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?W="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(W="OFFLINE_PIN",this.isDownloadComplete=!0);var l;W!==((l=this.data.icon)==null?void 0:l.iconType)&&(l=Object.assign({},this.data),l.text=_.Bl(XTc),l.tooltip=XTc,l.icon={iconType:W},_.k(l.command,_.Xx)&&(_.k(l.command,_.Xx).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",l))}};
Vx.prototype.updateProgress=Vx.prototype.updateProgress;Vx.prototype.onTransferStateChanged=Vx.prototype.onTransferStateChanged;Vx.prototype.showHideButton=Vx.prototype.showHideButton;Vx.prototype.dataChanged=Vx.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Vx.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],Vx.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Vx.prototype,"forceIconButton",void 0);
_.a([_.b(),_.z("design:type",Object)],Vx.prototype,"forceIconOnly",void 0);_.a([_.b(),_.z("design:type",Object)],Vx.prototype,"overrides",void 0);_.a([_.b(),_.z("design:type",Object)],Vx.prototype,"buttonTooltipPosition",void 0);_.a([_.b(),_.z("design:type",Object)],Vx.prototype,"styleActionButton",void 0);_.a([_.b(),_.z("design:type",Object)],Vx.prototype,"disableTextTransform",void 0);
_.a([_.b({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.z("design:type",String)],Vx.prototype,"videoId",void 0);_.a([_.b(),_.z("design:type",Object)],Vx.prototype,"data",void 0);_.a([_.b({selector:t5,selectorArgs:["videoId"]}),_.z("design:type",Object)],Vx.prototype,"downloadProgress",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Vx.prototype,"isDownloadComplete",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Vx.prototype,"isHidden",void 0);_.a([_.b({selector:_.rE,selectorArgs:["videoId"]}),_.z("design:type",String)],Vx.prototype,"transferState",void 0);_.a([_.b({selector:_.lSx,selectorArgs:["videoId"]}),_.z("design:type",Object)],Vx.prototype,"isVideoDeletedByUser",void 0);_.a([_.b({selector:q76,selectorArgs:["videoId"]}),_.z("design:type",Object)],Vx.prototype,"offlineabilityState",void 0);
_.a([_.b({value:!0}),_.z("design:type",Boolean)],Vx.prototype,"showTooltips",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],Vx.prototype,"sendCommandWhenDisabled",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],Vx.prototype,"disabled",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vx.prototype,"dataChanged",null);
_.a([_.zS("offlineabilityState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vx.prototype,"showHideButton",null);_.a([_.zS("transferState","isVideoDeletedByUser"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vx.prototype,"onTransferStateChanged",null);_.a([_.zS("downloadProgress"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vx.prototype,"updateProgress",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],Vx);
_.Z(Vx,"ytd-download-button-renderer",function(){if(iua!==void 0)return iua;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return iua=W},{mode:2});var AKL;var QEM,MBM=function(){if(QEM!==void 0)return QEM;var W=document.createElement("template");_.K(W,'\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 QEM=W};var Zue=_.U("web_button_rework")&&_.ZL("BUTTON_REWORK")||_.U("web_button_rework_with_live"),OuL=_.yS("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,f9=function(){var W=_.I.apply(this,arguments)||this;W.isPressed=!1;W.forceIconButton=!1;W.forceIconOnly=!1;W.forceModernIconButton=!1;W.alignByText=!1;W.isShorts=!1;W.animatedText=!1;W.shouldAnimate=!1;W.JSC$14520_browserSupportsAnimation=_.U("web_supports_animations_api");W.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};W.onTap=function(){var l;if((l=W.data)==null||!l.defaultNavigationEndpoint){var V;l=!((V=W.data)==null?0:V.isToggled);var f;if((f=W.data)==null||!f.preventAutoToggle){W.shouldAnimate=!1;W.disableTextUpdateJobId&&_.w8.cancelJob(W.disableTextUpdateJobId);W.disableTextUpdateJobId=_.w8.addLowPriorityJob(function(){W.disableTextUpdateJobId=void 0},OuL);
var r;W.set("data.isToggled",!((r=W.data)==null?0:r.isToggled));V=W.getInnertubeIcon();f={toggled:l,actions:{}};V&&(f.actions[V.toLowerCase()]=l);_.FN(W.hostElement,"yt-toggle-button",f)}}};
return W};
_.v(f9,_.I);_.t=f9.prototype;_.t.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.w8.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.t.toggle=function(W){var l;this.set("data.isToggled",W!==void 0?W:!((l=this.data)==null?0:l.isToggled))};
_.t.handleUpdateToggleButtonStateCommand=function(W){if(this.data){W=_.k(W,lvM);var l,V,f,r=(l=this.data)==null?void 0:(V=l.toggleButtonSupportedData)==null?void 0:(f=V.toggleButtonIdData)==null?void 0:f.id;r&&W&&r===(W==null?void 0:W.buttonId)&&this.set("data.isToggled",W.toggled)}};
_.t.handleUpdateToggleButtonTextAction=function(W){if(this.data){W=_.k(W,cPa);var l,V,f,r=(l=this.data)==null?void 0:(V=l.toggleButtonSupportedData)==null?void 0:(f=V.toggleButtonIdData)==null?void 0:f.id;r&&W&&r===(W==null?void 0:W.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=W.defaultNumericalValue,this.set("data.defaultText",W.defaultText),this.set("data.toggledText",W.toggledText),this.shouldAnimate=!1)}};
_.t.getInnertubeIcon=function(){var W=this.data;if(W){var l,V,f=((l=W.defaultIcon)==null?0:l.iconType)?(V=W.defaultIcon)==null?void 0:V.iconType:null,r,R;l=((r=W.toggledIcon)==null?0:r.iconType)?(R=W.toggledIcon)==null?void 0:R.iconType:f;return W.isToggled?l:f}};
_.t.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.rc.Object.defineProperties(f9.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W={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$14520_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var l=W.renderer;var V=W.element;var f=W.toggled;var r=W.onTapCallback;var R=W.commandClientArgs;var y=W.overrides;var P=W.forceIcon;var n=W.forceModernIconButton;var B=W.forceDisabled;var d=W.useAnimatedText;var J=W.animatedTextProps;W=wNz(l,f);P=!l.defaultIcon||!P&&l.defaultText?l.defaultIcon?"leading":void 0:n?"icon-only":"icon-only-40";P==="icon-only-40"&&(W.type="text");var D;n=Object;var u=n.assign,H;a:switch((H=
l.style)==null?void 0:H.styleType){case "STYLE_COMPACT_GRAY":H={size:"S"};break a;default:H={size:"M"}}var p=!!f;var X=(X=f&&l.toggledText||l.defaultText)?_.$J(X):void 0;d?(d=_.dE(f&&l.toggledText||l.defaultText))&&J&&!isNaN(Number(J.numberValue))?(J.numberText=d,f&&(J.numberValue+=1),d=J):d=void 0:d=void 0;var w,O,S,N;var x=(J=((O=f?l.toggledAccessibilityData||((x=l.toggledText)==null?void 0:x.accessibility):l.accessibilityData||((w=l.defaultText)==null?void 0:w.accessibility))==null?void 0:(S=O.accessibilityData)==
null?void 0:S.label)||((N=l.accessibility)==null?void 0:N.label))?J:_.dE(f&&l.toggledText||l.defaultText);B=B===void 0?l.isDisabled:B;V=TzS(l,f,r,V,R);f=XNx(l,f);f!=null&&f.length?(f=_.Rf({innertubeCommand:HQz(f),forceNewState:!0}),f=t2(f)?f:void 0):f=void 0;l=u.call(n,{},W,H,{iconPosition:P},y,{focused:!1,toggled:p,toggleable:!0,formattedButtonText:X,animatedTextProps:d,accessibilityLabel:x,disabled:B,onTap:V,aTagConfig:f},YVj((D=l.colorData)==null?void 0:D.basicColorPaletteData));l.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(l.type="filled");return l}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var W=this.getInnertubeIcon();if(W)return _.IJ(W)}}});
f9.prototype.resetAnimation=f9.prototype.resetAnimation;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],f9.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],f9.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],f9.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],f9.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Object)],f9.prototype,"isPressed",void 0);_.a([_.b(),_.z("design:type",Object)],f9.prototype,"forceIconButton",void 0);_.a([_.b(),_.z("design:type",Object)],f9.prototype,"forceIconOnly",void 0);_.a([_.b(),_.z("design:type",Object)],f9.prototype,"forceModernIconButton",void 0);_.a([_.b(),_.z("design:type",Object)],f9.prototype,"alignByText",void 0);_.a([_.b(),_.z("design:type",Object)],f9.prototype,"overrides",void 0);
_.a([_.b(),_.z("design:type",Boolean)],f9.prototype,"disabled",void 0);_.a([_.b(),_.z("design:type",Object)],f9.prototype,"isShorts",void 0);_.a([_.b(),_.z("design:type",Object)],f9.prototype,"buttonTooltipPosition",void 0);_.a([_.b(),_.z("design:type",Object)],f9.prototype,"animatedText",void 0);_.a([_.b(),_.z("design:type",String)],f9.prototype,"textNumberValue",void 0);_.a([_.b({computed:"computeTooltip(data, data.isToggled)"}),_.z("design:type",Object)],f9.prototype,"tooltip",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],f9.prototype,"resetAnimation",null);_.a([_.G("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.z("design:type",Object),_.z("design:paramtypes",[])],f9.prototype,"computedButtonShape",null);_.a([_.G("data.*"),_.z("design:type",Object),_.z("design:paramtypes",[])],f9.prototype,"computedIcon",null);
_.a([_.A({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],f9);Zue&&_.Z(f9,"ytd-toggle-button-renderer",MBM,{mode:_.bD("kevlar_poly_si_batch_j081")?1:2});var aqc=_.Q(function(W){function l(B){var d;return _.g(function(J){if(J.nextAddress==1)return(d=!QqJ(B,P())||!P().enabled)?J.jumpTo(2):J.yield(zQj(),3);J.nextAddress!=2&&(d=J.yieldResult);if(d)return J.return();V();setTimeout(function(){y(!1)},1500);
_.ju(J)})}
function V(){setTimeout(function(){y(!0);var B;(B=f.lottieEl)==null||B.goToAndPlay(0)},150)}
var f=_.i$(),r=_.L(_.J4(!1,void 0,"UfUosc")),R=r.next().value,y=r.next().value,P=_.JG(W.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.mw(function(){var B,d;((B=W.settings)==null?void 0:(d=B.call(W))==null?void 0:d.uniqueId)==="this is not intended behavior"&&_.Qe(new _.bP("Smartimation Settings is undefined"))});
_.m1(function(){P().experimentEnabled&&(P().enabled?MpY(l):(y(!1),Zmn(l)),_.Xc(function(){Zmn(l)}))},"IHhVmc");
_.m1(function(){P().timings.join("");P().experimentEnabled&&(Omz(P()),_.Xc(function(){aZF(P())}))},"fsfhOe");
var n=_.v4(function(){var B=f,d=P().uniqueId+"-border",J,D;var u="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((D=(J=_.tY().resolve(_.R0(_.nP)))==null?void 0:J())!=null&&D?"dark":"light")+"_v2.json";return{animationRef:B,animationConfig:{name:d,autoplay:!1,loop:!1,path:u}}},void 0,"UWvUGe");
r={};return _.C("yt-smartimation",{class:_.If(W.className,"smartimation",(r["smartimation--experiment-enabled"]=function(){return P().experimentEnabled},r["smartimation--active-border"]=R,r["smartimation--enable-masking"]=NzS(),r))},_.C(_.c,{cond:function(){return P().experimentEnabled},
then:function(){return _.C("div",{class:"smartimation__border"},_.C(_.SX,{className:"smartimation__border-gradient",data:n,animationName:function(){return n().animationConfig.name}}))}}),_.C("div",{class:"smartimation__content"},W.children))},"G");
aqc.idomCompat=!0;_.HI(aqc,"yt-smartimation",{props:{className:_.pA,settings:_.pA}});var ri=function(){var W=_.I.apply(this,arguments)||this;W.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};W.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};W.shouldEnableSmartimation=!1;return W};
_.v(ri,_.I);ri.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
ri.prototype.onDataChanged=function(){var W,l;this.shouldEnableSmartimation=(((W=this.data)==null?void 0:(l=W.timedAnimationData)==null?void 0:l.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
ri.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var W=_.k(this.data.likeButton,_.cm),l=_.k(this.data.dislikeButton,_.cm);return!!((W==null?0:W.isToggled)||(l==null?0:l.isToggled))};
ri.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]]"}}}}}};
_.rc.Object.defineProperties(ri.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var W,l,V=((W=this.data)==null?void 0:(l=W.timedAnimationData)==null?void 0:l.animationTiming)||[];return{uniqueId:"like-dislike",timings:V,enabled:this.shouldEnableSmartimation,experimentEnabled:V.length>0}}}});
ri.prototype.onDataChanged=ri.prototype.onDataChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ri.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ri.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],ri.prototype,"likeButtonOverride",void 0);_.a([_.b(),_.z("design:type",Object)],ri.prototype,"dislikeButtonOverride",void 0);
_.a([_.G("shouldEnableSmartimation"),_.z("design:type",Object),_.z("design:paramtypes",[])],ri.prototype,"smartimationSettings",null);_.a([_.TS("data"),_.XI("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ri.prototype,"onDataChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],ri);
_.Z(ri,"ytd-segmented-like-dislike-button-renderer",function(){if(AKL!==void 0)return AKL;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return AKL=W},{mode:1});var ztB;var NoX;(NoX=document.body)==null||NoX.setAttribute("rounded-container","");var YXI={};YXI.YtToggleButtonBehavior=[_.hp.YtActionHandlerBehavior,R8.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 W=this.data.isToggled;if(!this.isModal_(W)){if(!this.data.preventAutoToggle){this.toggle();var l={toggled:this.data.isToggled,actions:{}};l.actions[this.buttonIcon]=this.data.isToggled;_.FN(this.hostElement,"yt-toggle-button",l)}l=this.data.defaultServiceEndpoint||null;var V=this.data.toggledServiceEndpoint||null;if(l&&V||l&&this.data.preventAutoToggle)W=W?V:l,l=this.disableCommandHandlerOverride,_.U("killswitch_toggle_button_behavior_resolve_command")||l?_.pN(this.hostElement,
[W]):_.XY(W,this.hostElement),_.FN(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:W})}},
stateChanged_:function(){var W=this.data;if(W){var l=W.isToggled;this._setEndpoint(this.computeEndpoint_(W));this._setServiceEndpoint(this.computeServiceEndpoint_(W));this._setButtonIcon(this.computeButtonIcon_(W,l));this._setButtonText(this.computeButtonText_(W,l));this._setButtonAccessibility(this.computeAccessibility_(W,l));this._setButtonTooltip(this.computeTooltip_(W,l));this._setButtonClass(this.computeButtonClass_(W,l));this._setIconPositionType(this.computeIconPositionType_(W));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=l):this.elements_.button.setAttribute("aria-pressed",l));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=l)}},
shouldSetIconActiveState_:function(){return _.U("kevlar_system_icons")},
toggle:function(W){this.set("data.isToggled",W!==void 0?W:!this.data.isToggled);_.U("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(W){if(W){var l,V;return!!((l=this.data)==null?0:(V=l.toggledServiceEndpoint)==null?0:V.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(W){return W&&W.defaultNavigationEndpoint||null},
computeButtonIcon_:function(W,l){var V=W&&W.defaultIcon?_.IJ(W.defaultIcon.iconType):null;W=W&&W.toggledIcon?_.IJ(W.toggledIcon.iconType):V;return l?W:V},
handleUpdateToggleButtonStateCommand_:function(W){W=W.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==W.buttonId&&this.toggle(W.toggled)},
computeButtonText_:function(W,l){return W?l&&W.toggledText||W.defaultText||null:null},
computeAccessibility_:function(W,l){return W?(l?this.get("toggledAccessibilityData.accessibilityData",W):this.get("accessibilityData.accessibilityData",W))||W.accessibility||null:null},
computeTooltip_:function(W,l){return W?l&&W.toggledTooltip||W.defaultTooltip||null:null},
computeButtonClass_:function(W,l){if(!W)return"";var V="",f=W.toggledStyle||W.style;if(l=l?f:W.style){l.styleType&&(l=l.styleType);try{V+=l.toLowerCase().replace(/_/g,"-")+" "}catch(r){_.MJ(r,l,typeof l),_.Qe(r)}}if(W=W.size){W.sizeType&&(W=W.sizeType);try{V+=W.toLowerCase().replace(/_/g,"-")+" "}catch(r){_.MJ(r,W,typeof W),_.Qe(r)}}return V.trim()},
computeIconPositionType_:function(W){return W&&W.iconPosition||null},
computeServiceEndpoint_:function(W){var l=W&&W.serviceEndpoint,V=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return l?l:V&&W.command?W.command:null},
handleUpdateToggleButtonTextAction_:function(W){W=W.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==W.buttonId&&(this.set("data.defaultText",W.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",W.toggledText),this.notifyPath("data.toggledText"))}}];_.e1("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var xiI=_.U("web_button_rework")&&_.ZL("BUTTON_REWORK")||_.U("web_button_rework_with_live"),R2=function(){var W=_.I.apply(this,arguments)||this;W.systemIcons=_.U("kevlar_system_icons");W.roundedContainer=!0;return W};
_.v(R2,_.I);R2.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
R2.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var W=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var l={toggled:!!this.data.isToggled,actions:{}};l.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var V,f;l.actions.playlistId=(V=this.data.defaultServiceEndpoint)==null?void 0:(f=V.playlistEditEndpoint)==null?void 0:f.playlistId;_.FN(this.hostElement,"yt-toggle-button",l)}(W=W?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(W)}};
R2.prototype.onYtNavigate=function(W){var l=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);l&&(W.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(l))};
_.rc.Object.defineProperties(R2,{template:{configurable:!0,enumerable:!0,get:function(){if(ztB===void 0){var W=document.createElement("template");_.K(W,"\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");W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);ztB=W}W=ztB;return W}}});
R2.prototype.onYtNavigate=R2.prototype.onYtNavigate;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],R2.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],R2.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.i5),_.z("design:type",Object)],R2.prototype,"ytdOpenPopupBehavior",void 0);_.a([_.F(YXI.YtToggleButtonBehavior),_.z("design:type",Object)],R2.prototype,"ytToggleButtonBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],R2.prototype,"data",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],R2.prototype,"showTooltips",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],R2.prototype,"systemIcons",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],R2.prototype,"roundedContainer",void 0);_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],R2.prototype,"onYtNavigate",null);
_.a([_.A({is:"ytd-toggle-button-renderer",disableElementRegistration:xiI})],R2);var etc;_.tq=new _.vd("PANEL_CONTROLLER_TOKEN");_.sT=new _.vd("SHEET_CONTROLLER_TOKEN");_.L9=new _.vd("DIALOG_CONTROLLER_TOKEN");etc=new _.vd("DIALOG_CONTAINER_TOKEN");var Wfj=_.wg("DOWNLOAD",{},"Download"),lqq=_.wg("DOWNLOADING",{},"Downloading"),VBU=_.wg("DOWNLOADED",{},"Downloaded"),fqz=_.wg("RETRY",{},"Retry");var qXk=_.Q(function(W){var l=LfF,V=function(){return""},f=rKS(W.data),r=Rtn(W.data),R=tBS(W.data),y=sE8(W.data);
l=function(){var P=W.data(),n=EpJ(P,f(),r(),R(),y()),B=!!P.videoId,d=n.text;return{title:B?d:void 0,tooltip:B?void 0:d,accessibilityText:d,onTap:n.onTap,iconName:n.iconType,style:P.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:n.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:P.buttonSize}};
V={};V=_.If("ytDownloadButtonViewModelHost",(V.ytDownloadButtonViewModelIsHidden=function(){var P=W.data(),n=y();return P.playlistId||n()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||n()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},V));
return _.C("download-button-view-model",{class:V},_.C(_.Nq,{data:l}))},"H");
qXk.idomCompat=!0;var DiF=new _.vd("SUBMIT_API_SERVICE_TOKEN");var cKJ,Boq,Uiz={submitAction:"SUBMIT_ACTION_SUBMISSION"};var XTz=new _.vd("RENDERER_LOGGER_TOKEN");var jEq=new _.vd("RENDERER_STAMPER_OPTIONS_TOKEN");var ulY;_.Ay=new vha;ulY=new Map;var IqU="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),mi4=["notificationTextRenderer","notificationMultiActionRenderer"],
iu6="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),oiF=kwz(function(W){return _.w9(W==null?void 0:W.targetId)}).useUpdatableData;var pTn=0;_.QH.debugName="EjJbCe";var htZ=_.Q(function(W){var l=W.data;W=W.className;_.iz(function(){l().formId||_.wv(Error("Eh"))});
var V=_.CQY(function(){return l().formId},function(){return l().beforeSubmitCommand},function(){return l().afterSubmitCommand}),f=V.submitForm,r=V.isValid,R=V.isSubmitting,y=function(){return{state:l().isDisabled||!r()||R()?"disabled":"active"}};
return _.C("yt-submit-button-view-model",{class:_.If("ytSubmitButtonViewModelHost",W)},_.C(_.QH,{data:function(){return l().button}},{buttonViewModel:function(P){return _.C(_.Nq,{data:P.data,
buttonOverrides:y,onClick:f})}}))},"I");var Eik=_.Q(function(W){var l=W.backgroundLottieRef;var V=W.foregroundLottieRef;var f=W.children;var r=W.wrapperClass;var R=W.disableAnimation;W=function(){return(_.U("web_animated_actions")||_.U("web_animated_actions_v2"))&&!(R==null?0:R())};
return _.C("yt-animated-action",{class:_.If("ytAnimatedActionHost",r)},_.C("div",{class:"ytAnimatedActionContentWithBackground"},_.C(_.c,{cond:W,then:function(){return _.C(SXM,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:l==null?void 0:l(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(Tox()?"dark":"light")+"_v5.json"}}}})}}),f),_.C(_.c,{cond:W,
then:function(){return _.C(SXM,{lottiePlayerProps:function(){return{animationRef:V==null?void 0:V(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(Tox()?"dark":"light")+"_v4.json"}}}})}}))},"J");
Eik.idomCompat=!0;var SXM=_.Q(function(W){var l=W.wrapperClass;var V=W.lottieClass;var f=W.lottiePlayerProps;return _.C("div",{class:_.If("ytAnimatedActionLottie",l),"aria-hidden":"true"},_.C(_.SX,{className:V,data:f,animationName:function(){return f().animationConfig.name}}))},"K");var wTF={isOpen:!1};var QEz={isAllowed:!1};var Zuq={errorMessage:"",title:"",privacy:"",isDisabled:!0};var aqz={isOpen:!1};var NoY={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var $iB={response:void 0};var xiJ=function(W,l){W=W===void 0?$iB:W;switch(l.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},W,{response:l.payload});default:return W}};var WC$={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var etz=function(W,l){W=W===void 0?WC$:W;switch(l.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},W,{nextDisabled:l.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},W,{nextCommand:l.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},W,{footerSubmissionData:l.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},W,{isImpersonationValid:l.payload});default:return W}};var lek={reportFormData:void 0,reportDetailsFormData:void 0};var qXj=function(W,l){W=W===void 0?lek:W;switch(l.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},W,{reportFormData:l.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},W,{reportDetailsFormData:l.payload});default:return W}};var Vzk=void 0;_.U("mweb_enable_redux_store_on_demand")||(Vzk=new J5(htx()));var yx=_.U("enable_web_delhi_icons");var fea=_.Q(function(W){W=_.Dd(W,{themeOverride:void 0,animationRef:{}});var l=W.animatedIconType,V=W.active,f=W.themeOverride,r=W.animationRef;W=W.staticIconFn;var R=_.L(_.J4(void 0,void 0,"l48agc")),y=R.next().value,P=R.next().value,n=function(){a:{var X=l();var w=f==null?void 0:f();var O;w=(w==null?void 0:w.useDarkTheme)||((O=_.tY().resolve(_.R0(_.nP)))==null?void 0:O());switch(X){case "LIKE":Vzk||(Vzk=new J5(htx()));X=(X=pUU(Vzk.getState()))&&X.animationLightUrl&&X.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:w?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:w?X.animationDarkUrl:X.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(X){w=X;break a}w="animated_like_icon_"+(w?"dark":"light")+"_"+(yx?"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"+
(yx?" animated-like-icon-delhi":"")}}},totalFrames:yx?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")+(yx?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(yx?" animated-subscribe-icon-delhi":"")}}},totalFrames:yx?120:79,lazyLoad:!1};break a}w=
void 0}return w},B=function(){var X,w;
return(w=(X=n())==null?void 0:X.lottiePlayerProps.animationConfig.name)!=null?w:""},d=function(){if(n()){var X=n().lottiePlayerProps.animationConfig.path;
return Ne.get(X)||y()}};
R=_.L(_.J4(!1,void 0,"sDrGId"));var J=R.next().value;R=R.next().value;var D=Ei8(R),u=function(){var X=n(),w,O,S;return(S=X==null?void 0:(w=X.lottiePlayerProps.animationConfig)==null?void 0:(O=w.rendererSettings)==null?void 0:O.className)!=null?S:""},H=void 0,p=void 0;
_.m1(function(){var X=n(),w=B(),O=d(),S=J(),N=V();if(X&&(p!==w&&(p=w,H=N,w=r(),D.animationConfig=X.lottiePlayerProps.animationConfig,D.animationRef=w,O&&(D.animationConfig.animationData=O,D.animationConfig.path=void 0),w=X.lottiePlayerProps.animationConfig.path,!Ne.get(w)&&X.lazyLoad&&w&&SXz(w,P)),!(S||X.lazyLoad&&!O))){if(O=!r().lottieEl)N?(S=X.totalFrames,D.animationConfig.initialSegment=[S-1,S]):D.animationConfig.initialSegment=void 0;if(H!==N&&!O)if(O=r(),N){var x;(x=O.lottieEl)==null||x.playSegments([0,
X.totalFrames],!0)}else{var Y;(Y=O.lottieEl)==null||Y.playSegments([0,1],!0)}H=N}},"RQVZ1d");
return _.C("animated-icon",{class:"ytAnimatedIconHost"},_.C(_.c,{cond:function(){var X,w;return!((X=n())==null||!X.lottiePlayerProps.animationConfig.path||((w=n())==null?0:w.lazyLoad)&&!d()||J())},
then:function(){return _.C(_.SX,{data:D,animationName:B,className:u,animationRef:r})},
else:W}))},"L");_.gi=_.Q(function(W){var l=_.WS("yt-subscribe-button-view-model"),V=_.WS("div"),f=_.WS("div"),r=_.i$(),R=_.i$(),y=_.i$(),P=_.wH(GcY,function(){return W.data().stateEntityStoreKey}),n=_.wH(bmn,function(){var Wk,D$;
return(D$=(Wk=W.data().notificationStateEntityStoreKeys)==null?void 0:Wk.subsNotificationStateKey)!=null?D$:""}),B=function(){return!W.data().enableSubscribeButtonPostClickAnimation},d=_.L(_.J4(0,void 0,"YtsSKb")),J=d.next().value,D=d.next().value;
d=_.L(_.J4(0,void 0,"V6JxRe"));var u=d.next().value,H=d.next().value;d=_.L(_.J4(!1,void 0,"JUCSZ"));var p=d.next().value,X=d.next().value;d=_.L(_.J4(!1,void 0,"oV6jwf"));var w=d.next().value,O=d.next().value;d=_.L(_.J4(!1,void 0,"hK1Whe"));var S=d.next().value,N=d.next().value,x;d=_.L(_.J4(!1,void 0,"Asaolf"));var Y=d.next().value,W8=d.next().value,c8=function(){O(!0);_.a$(_.w8,function(){O(!1)},1500)};
_.m1(function(){var Wk=w();d9(function(){Wk&&!B()&&P()&&LCz(r,R,y)})},"Qq6Hsf");
_.m1(function(){var Wk=P();d9(function(){if(!B()&&Wk){var D$;((D$=W.animateWidth)==null?0:D$.call(W))&&sPz(l.value,!!Wk.subscribed,J(),u());var Bk,iB;((Bk=x)==null?0:Bk.subscribed)||!Wk.subscribed||Wk.key!==((iB=x)==null?void 0:iB.key)||c8();x=Wk}})},"hog8te");
d=_.v4(function(){var Wk,D$,Bk,iB=W.data(),p2=!((Wk=P())==null||!Wk.subscribed);Wk=!((D$=W.isOverlay)==null||!D$.call(W));D$=p()?l:void 0;var SL=(Bk=n())==null?void 0:Bk.state;Bk=Y();tzq(iB,SL);return lej({model:iB,subscribed:p2,isOverlay:Wk,element:D$,notificationState:SL,disableTextEllipsis:!0,focused:Bk})},void 0,"hc1PRd");
var B8=function(){var Wk;if(!B()&&((Wk=W.animateWidth)==null?0:Wk.call(W))&&(V==null?0:V.value)&&(f==null?0:f.value)&&!S()){Wk=P();var D$=_.L((Wk==null?0:Wk.subscribed)?[V,f]:[f,V]),Bk=D$.next().value;D$=D$.next().value;Bk=Math.ceil(Bk.value.getBoundingClientRect().width);D$=Math.ceil(D$.value.getBoundingClientRect().width);D(Bk);H(D$);sPz(l.value,!(Wk==null||!Wk.subscribed),Bk,D$);N(!0)}},Jx=_.ip(function(Wk){B8();
var D$=P();D$&&(Wk.detail.endpoint.subscribeEndpoint||Wk.detail.endpoint.unsubscribeEndpoint)&&fe6(l.value,!D$.subscribed,D$)}),H8=function(){var Wk=_.tY().resolve(_.R0(_.Q5));
Wk&&W8(Wk.isKeyBoardInUse())},Kq=function(){W8(!1)};
_.$_("yt-player-subscribe",function(Wk){var D$=P();D$&&Wk===W.data().channelId&&fe6(l.value,!0,D$)});
_.$_("yt-player-unsubscribe",function(Wk){var D$=P();D$&&Wk===W.data().channelId&&fe6(l.value,!1,D$)});
_.$_("yt-update-subscribe-button-action",function(Wk){Wk=_.k(Wk,Qr9);var D$=P();D$&&Wk&&Wk.channelId===W.data().channelId&&fe6(l.value,!!Wk.subscribed,D$)});
_.mw(function(){l.value&&(l.value.addEventListener("focusin",H8),l.value.addEventListener("focusout",Kq));var Wk=_.pS(_.w8,function(){B8()});
X(!0);_.Xc(function(){_.w8.cancelJob(Wk);l.value&&(l.value.removeEventListener("focusin",H8),l.value.removeEventListener("focusout",Kq))})});
var Z4=function(){var Wk,D$,Bk;if(Bk=!((Wk=P())==null||!Wk.subscribed))Wk=!!W.data().disableNotificationBell,Bk=(D$=n())==null?void 0:D$.state,Bk=!Wk&&!!Bk;return Bk},Ax=function(){var Wk;
return!((Wk=P())==null?0:Wk.subscribed)},sM=function(){var Wk,D$;
if(D$=Ax()){D$=!!W.data().disableNotificationBell;var Bk=(Wk=n())==null?void 0:Wk.state;D$=!D$&&!!Bk}return D$},Ta={},ck={};
return _.C("yt-subscribe-button-view-model",{class:_.If(W.className,"ytSubscribeButtonViewModelHost",(Ta.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var Wk,D$;return!((Wk=P())==null||!Wk.subscribed)&&((D$=W.animateWidth)==null?void 0:D$.call(W))&&w()},Ta.ytSubscribeButtonViewModelHostHidden=function(){var Wk;
return!((Wk=P())==null?0:Wk.subscribed)&&W.data().hideWhenUnsubscribed},Ta)),
el:l,"on:yt-service-request-sent":Jx},_.C(Eik,{backgroundLottieRef:r,foregroundLottieRef:R,wrapperClass:_.If("ytSubscribeButtonViewModelAnimatedActionWrapper",(ck.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var Wk;return((Wk=W.animateWidth)==null?void 0:Wk.call(W))&&w()},ck.ytSubscribeButtonViewModelStaticWidth=function(){var Wk;
return!((Wk=W.animateWidth)==null?0:Wk.call(W))},ck)),
disableAnimation:B},_.C("div",{el:V,class:"ytSubscribeButtonViewModelContainer"},_.C(_.zv,{data:d,icon:function(){return _.C(_.c,{cond:Z4,then:function(){var Wk=function(){var D$;return Vzj((D$=n())==null?void 0:D$.state)};
return _.C(_.c,{cond:function(){return B()||Wk()!=="NOTIFICATIONS_NONE"},
then:function(){return _.C(_.wN,{icon:Wk})},
else:function(){return _.C(fea,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:y})}})}})},
secondaryIconName:function(){return Z4()?"EXPAND":void 0}}))),_.C("div",{el:f,
class:"ytSubscribeButtonViewModelInvisible"},_.C(_.c,{cond:function(){var Wk;return((Wk=W.animateWidth)==null?void 0:Wk.call(W))&&!B()&&!S()},
then:function(){return _.C(_.zv,{data:_.v4(function(){var Wk;return lej({model:W.data(),subscribed:Ax(),isOverlay:!((Wk=W.isOverlay)==null||!Wk.call(W)),element:l,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var Wk;return sM()?Vzj((Wk=n())==null?void 0:Wk.state):void 0},
secondaryIconName:function(){return sM()?"EXPAND":void 0}})}})))},"M");
_.gi.idomCompat=!0;var rcc=_.Q(function(W){var l=W.data;var V=_.wH(GcY,function(){return l().subscriptionStateEntityKey});
return _.C(_.c,{cond:function(){var f=l(),r=V();return!f.hideWhenUnsubscribed||(r==null?0:r.subscribed)?_.k(l().button,_.JJ):void 0},
then:function(f){return _.C("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.C(_.Nq,{data:f,buttonOverrides:function(){return{toggled:!0}}}))}})},"N");
rcc.idomCompat=!0;var R_I,PR;R_I=_.Q(function(W){return _.C(_.QH,{data:function(){return W.actionRow().actions}},{buttonViewModel:function(l){var V=l.data;
return _.C(PR,{isRow:W.isRow,isIconOnlyButton:function(){return ycz(V())},
useIntrinsicWidth:W.useIntrinsicWidth},_.C(_.Nq,{data:V}))},
subscribeButtonViewModel:function(l){return _.C(PR,{isRow:W.isRow},_.C(_.gi,{data:l.data,isOverlay:!1,animateWidth:function(){return!W.isRow()}}))},
downloadButtonViewModel:function(l){var V=l.data;return _.C(PR,{isRow:W.isRow,isIconOnlyButton:function(){return!!V().playlistId}},_.C(qXk,{data:V}))},
submitButtonViewModel:function(l){var V=l.data;return _.C(PR,{isRow:W.isRow,isIconOnlyButton:function(){var f=V();return ycz(_.k(f==null?void 0:f.button,_.JJ))}},_.C(htZ,{data:V}))},
toggleButtonViewModel:function(l){var V=l.data;return _.C(PR,{isRow:W.isRow,isIconOnlyButton:function(){var f=V();return ycz(_.k(f.isToggled?f.toggledButtonViewModel:f.defaultButtonViewModel,_.JJ))}},_.C(_.gy,{data:V}))},
subscribePlusButtonViewModel:function(l){return _.C(PR,{isRow:W.isRow},_.C(rcc,{data:l.data}))}})},"O");
PR=_.Q(function(W){var l={};return _.C("div",{class:_.If("ytFlexibleActionsViewModelAction",(l.ytFlexibleActionsViewModelActionRowAction=W.isRow,l.ytFlexibleActionsViewModelActionIntrinsicWidth=W.useIntrinsicWidth,l.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,l.ytFlexibleActionsViewModelActionIconOnlyButton=W.isIconOnlyButton,l))},W.children)},"P");
_.n9=_.Q(function(W){var l=function(){var f;return((f=W.layout)==null?void 0:f.call(W))===1},V={};
return _.C("yt-flexible-actions-view-model",{class:_.If("ytFlexibleActionsViewModelHost",W.className,(V.ytFlexibleActionsViewModelInline=function(){return!l()},V.ytFlexibleActionsViewModelScrollable=function(){return W.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},V))},_.C(_.G3,{each:function(){return W.data().actionsRows||[]}},function(f){return _.C(_.c,{cond:l,
then:function(){return _.C("div",{class:"ytFlexibleActionsViewModelActionRow"},_.C(R_I,{actionRow:f,isRow:l,useIntrinsicWidth:function(){return!!W.data().respectActionIntrinsicWidth}}))},
else:function(){return _.C(R_I,{actionRow:f,isRow:l})}})}))},"Q");_.HI(_.n9,"yt-flexible-actions-view-model",{props:{data:_.pA,layout:_.pA,justifyContentOverride:_.pA,className:_.pA}});_.C9=_.Q(function(W){var l=_.wH(Wp,function(){var r;return(r=W.data().dislikeEntityKey)!=null?r:""}),V=_.v4(function(){var r=l();
return r?r.likeStatus==="DISLIKE":_.k(W.data().toggleButtonViewModel,_.Ub).isToggled},void 0,"fNr9he"),f=_.v4(function(){return Object.assign({},_.k(W.data().toggleButtonViewModel,_.Ub),{isToggled:V()})},void 0,"AezoCc");
return _.C("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.C(_.gy,{data:f,buttonShapeOverrides:W.buttonShapeOverrideables,onToggle:function(r){var R=l();R&&r!==(R.likeStatus==="DISLIKE")&&R.key&&_.dm(_.Nr("likeStatusEntity",R.key,{likeStatus:r?"DISLIKE":"INDIFFERENT",hadUserInteraction:r}))}}))},"R");
_.C9.idomCompat=!0;_.cR=_.Q(function(W){var l=_.U("web_supports_animations_api"),V=UZ(function(D){var u=B();if(!D){var H,p;return{numberText:(p=u==null?void 0:(H=u.likeCountIfIndifferent)==null?void 0:H.content)!=null?p:"",numberValue:Number(u==null?void 0:u.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var X;H=(u==null?void 0:(X=u.likeCountIfIndifferent)==null?void 0:X.content)!==D.numberText;if(P()||!H)return D;var w;return{numberText:(u==null?void 0:(w=u.likeCountIfIndifferent)==null?void 0:w.content)||
"",numberValue:Number(u==null?void 0:u.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!u}}),f=UZ(function(D){var u=B();
if(!D){var H,p;return{numberText:(p=u==null?void 0:(H=u.likeCountIfLiked)==null?void 0:H.content)!=null?p:"",numberValue:Number(u==null?void 0:u.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var X;H=(u==null?void 0:(X=u.likeCountIfIndifferent)==null?void 0:X.content)!==D.numberText;if(P()||!H)return D;var w;return{numberText:(u==null?void 0:(w=u.likeCountIfLiked)==null?void 0:w.content)||"",numberValue:Number(u==null?void 0:u.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!u}}),r=_.L(_.J4(void 0,
void 0,"xldjge")),R=r.next().value,y=r.next().value,P=R,n=_.wH(Wp,function(){var D,u;
return(u=(D=W.data())==null?void 0:D.likeStatusEntityKey)!=null?u:""}),B=_.wH(rbg,function(){var D,u;
return((D=W.likeCountEntity)==null?void 0:(u=D.call(W))==null?void 0:u.key)||""}),d=_.v4(function(){var D;
return((D=n())==null?void 0:D.likeStatus)==="LIKE"},void 0,"B3od5e"),J=function(){var D;
return l&&!((D=W.likeCountEntity)==null||!D.call(W))};
return _.C("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.C(_.gy,{data:function(){var D=Object,u=D.assign,H;var p=_.k((H=W.data())==null?void 0:H.toggleButtonViewModel,_.Ub);return u.call(D,{},p||{},{isToggled:d()})},
buttonShapeOverrides:W.buttonShapeOverrideables,animatedTextPropsDefault:function(){return J()?V():void 0},
animatedTextPropsToggled:function(){return J()?f():void 0},
onToggle:function(D){gon(D,n(),P(),y)},
style:function(){var D;return((D=W.disableIconAnimation)==null?0:D.call(W))?void 0:{animateIcon:"true"}}}))},"S");
_.cR.idomCompat=!0;var tze=_.Q(function(W){var l=function(){return _.k(W.data().likeButtonViewModel,_.LE)},V=function(){var r;
return((r=l())==null?void 0:r.likeStatusEntityKey)||""},f=_.v4(function(){var r,R;
var y=(R=_.wH(Wp,V)())!=null?R:(r=l())==null?void 0:r.likeStatusEntity;r=W.data();var P;r=(r==null?void 0:(P=r.timedAnimationData)==null?void 0:P.animationTiming)||[];return{uniqueId:"like-dislike",timings:r,enabled:(y==null?void 0:y.likeStatus)==="INDIFFERENT"&&r.length>0,experimentEnabled:r.length>0}},void 0,"wEl1fe");
return _.C("segmented-like-dislike-button-view-model",{class:_.If("ytSegmentedLikeDislikeButtonViewModelHost",W.className),"button-renderer":!0},_.C(aqc,{settings:f},_.C("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.C(_.c,{cond:l,then:function(r){return _.C(_.cR,{data:r,likeCountEntity:function(){return W.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.C(_.c,{cond:function(){return _.k(W.data().dislikeButtonViewModel,_.sb)},
then:function(r){return _.C(_.C9,{data:r,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"T");
tze.idomCompat=!0;_.HI(tze,"segmented-like-dislike-button-view-model",{props:{data:_.pA,className:_.pA}});var sPc=_.Q(function(W){var l=W.data;var V=W.className;var f=W.setMinWidth;var r=W.forceIconOnly;var R=_.WS("account-link-button-view-model"),y=_.wH(_.PaF,function(){var D;return(D=l().accountLinkStatusEntityKey)!=null?D:""}),P=_.wH(_.PaF,function(){var D;
return(D=l().accountLinkStatusSecondaryEntityKey)!=null?D:""}),n=function(){if(!_.U("web_account_link_secondary_killswitch")){var D,u;
return((D=y())==null?void 0:D.linked)||((u=P())==null?void 0:u.linked)}var H;return(H=y())==null?void 0:H.linked};
_.m1(function(){var D=y();if(D){var u=sMc(new tqe,ru1(new f3M,!!D.linked));_.jJ().then(function(H){H&&(H.setAccountLinkState(_.Xw(u.JSC$12177_serializeBinary(),4)),H.updateAccountLinkingConfig(!!D.linked))})}},"IvZF7");
var B=function(){return _.k(l().toggleButtonViewModel,_.Ub)};
_.$_("yt-signal-action-show-account-link-dialog",function(){if(B()){var D=n()?B().toggledButtonViewModel:B().defaultButtonViewModel;D=_.k(D,_.JJ);var u;if((u=y())==null?0:u.isWarning){u=_.k(l().warningButtonViewModel,_.JJ);if(!u){_.x2(Error("Fh"));return}D=u}var H;(u=_.fP((H=D)==null?void 0:H.onTap))&&_.ij([u],R.value)}else _.x2(Error("Gh"))});
var d=function(){var D=B();return Object.assign({},D,{isToggled:n()})},J=function(){return(r==null?0:r())?{iconPosition:"icon-only"}:{}};
return _.C("account-link-button-view-model",{class:_.If("ytwAccountLinkButtonViewModelHost",V,function(){return(f==null?0:f())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:R,"button-renderer":!0},_.C("div",null,_.C(_.c,{cond:function(){var D;if((D=y())==null?0:D.isWarning)return(D=_.k(l().warningButtonViewModel,_.JJ))||_.x2(Error("Fh")),D},
then:function(D){return _.C(_.Nq,{data:D,buttonOverrides:J})},
else:function(){return _.C(_.gy,{data:d,buttonShapeOverrides:J})}})))},"U");_.HI(sPc,"account-link-button-view-model",{props:{data:_.pA,className:_.kh,setMinWidth:_.kh,forceIconOnly:_.kh}});_.e1("menuRenderer","menuRenderer","ytd-menu-renderer");
var LCM={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"}},
ycc=_.U("web_fix_missing_action_buttons")?100:200,BR=function(){var W=_.I.apply(this,arguments)||this;W.safeArea=!_.U("kevlar_flex_menu_safe_area_killswitch");W.tonalOverride=!1;W.threeDotSize="M";W.isOverlay=!1;W.useOverlayDark=!1;W.topLevelIconsOnly=!1;W.JSC$14651_lastWidth=0;W.maybeUpdateFlexibleMenu=function(){_.U("web_fix_missing_action_buttons")?requestAnimationFrame(W.maybeUpdateFlexibleMenuImpl):W.maybeUpdateFlexibleMenuImpl()};
W.maybeUpdateFlexibleMenuImpl=function(){var l;if((l=W.data)!=null&&l.flexibleItems){W.maybeFlushDebouncer();l=W.hostElement.clientWidth;var V=l>W.JSC$14651_lastWidth,f,r=((f=W.topLevelButtonsContainer)==null?void 0:f.scrollHeight)||0,R;f=((R=W.flexibleItemButtonsContainer)==null?void 0:R.scrollHeight)||0;R=W.hostElement.scrollHeight>Math.max(r,f)+8;V?(W.resetFlexibleItems(),W.JSC$14651_lastWidth=W.hostElement.clientWidth,W.maybeUpdateFlexibleMenu()):R&&(W.shrinkFlexibleMenu(),W.JSC$14651_lastWidth=
l)}};
W.computeThreeDotButtonShape=function(){if(W.tonalOverride)return Object.assign({},{onTap:function(){W.onOverflowTap()},
iconPosition:"icon-only",style:W.isOverlay?W.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:W.threeDotSize,state:"active",accessibilityLabel:W.computeAccessibilityLabel(W.data)},W.threeDotButtonOverride)};
W.onOverflowTap=function(){if(W.data.fetchMenuCommand)_.tY().resolve(_.s6).resolveCommand(W.data.fetchMenuCommand,{form:{element:W.hostElement}});else if(W.data.isDisabled&&W.data.disabledCommand)_.XY(W.data.disabledCommand,W.hostElement);else{var l=W.createMenuRendererVe(),V={items:W.items};W.data.menuPopupAccessibility&&(V.menuPopupAccessibility=W.data.menuPopupAccessibility);W.data.footer&&(V.footer=W.data.footer);l={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:V},veData:l}};
_.tY().resolve(_.sT).openSheet({openPopupActionCommand:l},W.hostElement)}};
return W};
_.v(BR,_.I);_.t=BR.prototype;_.t.updateButtonOverrides=function(){if(!_.U("menu_renderer_label_update_upkillswitch")){var W=_.GS(this.hostElement).querySelector("yt-button-view-model");W&&(W.buttonOverrides=this.buttonOverrides)}};
_.t.computeHasItems=function(){var W;return((W=this.topLevelButtonData)==null?void 0:W.length)||this.hasFlexibleItems};
_.t.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.t.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.I1(this.hostElement,{"--ytd-menu-renderer-button-color":_.ta(this.data.iconColor)}))};
_.t.onStamperFinished=function(){this.JSC$14651_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.t.setupFlexibleMenu=function(){var W=this,l;(l=this.data)!=null&&l.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.t$(this.maybeUpdateFlexibleMenu,ycc,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){W.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))};
_.t.maybeFlushDebouncer=function(){if(_.U("web_replace_formatted_with_attributed_string")){var W;(W=this.topLevelButtons)==null||W.forEach(function(V){var f;(V=(f=V.getElementsByTagName("yt-attributed-string"))==null?void 0:f[0])&&Fb6(V)});
var l;(l=this.flexibleItemButtons)==null||l.forEach(function(V){var f;(V=(f=V.getElementsByTagName("yt-attributed-string"))==null?void 0:f[0])&&Fb6(V)})}};
_.t.resetFlexibleItems=function(){var W;if((W=this.data)!=null&&W.flexibleItems){_.U("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var l;this.flexAsTopLevelButtons=(l=this.data.flexibleItems)==null?void 0:l.map(function(V){return _.k(V,_.wmL).topLevelButton});
_.U("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.t.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.t.shrinkFlexibleMenu=function(){var W;(W=this.flexAsTopLevelButtons)!=null&&W.length&&(this.flexAsTopLevelButtons=[].concat(_.QK(this.flexAsTopLevelButtons.slice(0,-1))))};
_.t.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:LCM,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:LCM,events:!0}}};
_.t.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.t.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.t.detached=function(){this.icon="MORE_VERT"};
_.t.computeTopLevelButtonData=function(W){if(!W)return[];var l;W=(l=W==null?void 0:W.topLevelButtons)!=null?l:[];return _.MC.unsafeClone([].concat(_.QK(W)))};
_.t.computeItems=function(W,l){if(!W)return[];var V=[];if(l){var f=(W.flexibleItems||[]).map(function(y){return _.k(y,_.wmL)});
f=_.L(f);for(var r=f.next();!r.done;r=f.next())r=r.value,l.includes(r.topLevelButton)||(r=r.menuItem)&&V.push(r)}var R;W=(R=W==null?void 0:W.items)!=null?R:[];return[].concat(_.QK(V),_.QK(W))};
_.t.computeMenuActive=function(W,l){return W||l};
_.t.onPopupOpened=function(){this.overlayOpen=!0;_.FN(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.t.onPopupClosed=function(){this.overlayOpen=!1;_.FN(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.t.onPopupCanceled=function(){this.overlayOpen=!1;_.FN(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.t.computeAccessibilityLabel=function(W){return this.get("accessibility.accessibilityData.label",W)};
_.t.isHidden=function(W,l){return this.tonalOverride||!W?!0:W.fetchMenuCommand||W.isDisabled&&W.disabledCommand?!1:!(l==null?0:l.length)};
_.t.isModernOverflowHidden=function(W,l){return this.tonalOverride&&W?W.fetchMenuCommand?!1:!(l==null?0:l.length):!0};
_.t.createMenuRendererVe=function(){var W=this.data.trackingParams,l=_.Wh(),V=_.$G();return W&&l&&V?(W=_.zG(W),V=_.GY(7591),_.U("combine_ve_grafts")?_.aH(_.Qq(),V,W):_.L0(l,W,V),V):null};
_.rc.Object.defineProperties(BR.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.flexAsTopLevelButtons)==null||!W.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
BR.prototype.onPopupCanceled=BR.prototype.onPopupCanceled;BR.prototype.onPopupClosed=BR.prototype.onPopupClosed;BR.prototype.onPopupOpened=BR.prototype.onPopupOpened;BR.prototype.tonalOverrideChanged=BR.prototype.tonalOverrideChanged;BR.prototype.resetFlexibleItems=BR.prototype.resetFlexibleItems;BR.prototype.setupFlexibleMenu=BR.prototype.setupFlexibleMenu;BR.prototype.iconButtonColorChanged=BR.prototype.iconButtonColorChanged;BR.prototype.updateButtonOverrides=BR.prototype.updateButtonOverrides;
_.a([_.F(_.i5),_.z("design:type",Object)],BR.prototype,"ytdOpenPopupBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],BR.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],BR.prototype,"ytRendererstamperBehavior",void 0);_.a([_.Aa("#button-shape"),_.z("design:type",HTMLElement)],BR.prototype,"buttonShape",void 0);_.a([_.Aa("#button"),_.z("design:type",Object)],BR.prototype,"button",void 0);
_.a([_.b(),_.z("design:type",Object)],BR.prototype,"data",void 0);_.a([_.b({computed:"computeTopLevelButtonData(data)"}),_.z("design:type",Array)],BR.prototype,"topLevelButtonData",void 0);_.a([_.b(),_.z("design:type",Array)],BR.prototype,"flexAsTopLevelButtons",void 0);_.a([_.b({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.z("design:type",Array)],BR.prototype,"items",void 0);_.a([_.b({value:"MORE_VERT"}),_.z("design:type",String)],BR.prototype,"icon",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],BR.prototype,"safeArea",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.z("design:type",Boolean)],BR.prototype,"menuActive",void 0);_.a([_.b(),_.z("design:type",Boolean)],BR.prototype,"menuFocused",void 0);_.a([_.b({value:"bottom"}),_.z("design:type",String)],BR.prototype,"buttonTooltipPosition",void 0);_.a([_.b(),_.z("design:type",Boolean)],BR.prototype,"overlayOpen",void 0);
_.a([_.b({value:!0}),_.z("design:type",Boolean)],BR.prototype,"forceIconButton",void 0);_.a([_.b(),_.z("design:type",Boolean)],BR.prototype,"styleActionButton",void 0);_.a([_.b(),_.z("design:type",Boolean)],BR.prototype,"disableTextTransformOnButtons",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],BR.prototype,"tonalOverride",void 0);_.a([_.b(),_.z("design:type",Object)],BR.prototype,"threeDotSize",void 0);
_.a([_.b(),_.z("design:type",Object)],BR.prototype,"threeDotButtonOverride",void 0);_.a([_.b(),_.z("design:type",Object)],BR.prototype,"isOverlay",void 0);_.a([_.b(),_.z("design:type",Object)],BR.prototype,"useOverlayDark",void 0);_.a([_.b({computed:"computeButtonOverride(tonalOverride)"}),_.z("design:type",Object)],BR.prototype,"buttonOverride",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],BR.prototype,"hasCustomIconColor",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("flexAsTopLevelButtons"),_.z("design:type",Object),_.z("design:paramtypes",[])],BR.prototype,"hasFlexibleItems",null);_.a([_.b({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.z("design:type",Boolean)],BR.prototype,"hasItems",void 0);_.a([_.b(),_.z("design:type",Object)],BR.prototype,"topLevelIconsOnly",void 0);
_.a([_.TS("topLevelIconsOnly"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BR.prototype,"updateButtonOverrides",null);_.a([_.G("topLevelIconsOnly"),_.z("design:type",Object),_.z("design:paramtypes",[])],BR.prototype,"buttonOverrides",null);_.a([_.Aa("#top-level-buttons-computed"),_.z("design:type",HTMLElement)],BR.prototype,"topLevelButtonsContainer",void 0);_.a([_.Qb(".top-level-buttons > *"),_.z("design:type",Array)],BR.prototype,"topLevelButtons",void 0);
_.a([_.Aa("#flexible-item-buttons"),_.z("design:type",HTMLElement)],BR.prototype,"flexibleItemButtonsContainer",void 0);_.a([_.Qb("#flexible-item-buttons > *"),_.z("design:type",Array)],BR.prototype,"flexibleItemButtons",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BR.prototype,"iconButtonColorChanged",null);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BR.prototype,"setupFlexibleMenu",null);_.a([_.zS("topLevelIconsOnly"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BR.prototype,"resetFlexibleItems",null);_.a([_.TS("tonalOverride"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BR.prototype,"tonalOverrideChanged",null);
_.a([_.XI("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BR.prototype,"onPopupOpened",null);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BR.prototype,"onPopupClosed",null);_.a([_.XI("yt-popup-canceled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BR.prototype,"onPopupCanceled",null);
_.Z(BR,"ytd-menu-renderer",function(){if(pT9===void 0){var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);pT9=W}W=pT9;return W},{mode:2});var go9;var PaB;_.di=_.Q(function(W){var l=W.data;var V=function(){if(l().icon)a:{var f={iconName:l().icon};for(var r=_.tY().resolve(_.iD),R=_.L([12,24]),y=R.next();!y.done;y=R.next()){var P=y.value;y=Object.assign({},f,{iconStyle:"youtube_fill",iconSize:P});P=Object.assign({},f,{iconStyle:"youtube_outline",iconSize:P});if(r.resolveIcon(y)){f=y;break a}if(r.resolveIcon(P)){f=P;break a}}f=void 0}else f=void 0;return f};
W={};return _.C("badge-shape",{class:_.If("badge-shape-wiz",function(){return Jc6(l().type)},(W["badge-shape-wiz--overlay"]=function(){return l().isOverlay},W["badge-shape-wiz--ads-include-dot"]=function(){return l().adsIncludeDot},W["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(l().type){case 17:case 18:case 19:var f=!0;
break a;default:f=!1}return f},W["badge-shape-wiz--status-badge"]=function(){a:switch(l().type){case 12:case 13:case 14:case 15:case 16:var f=!0;
break a;default:f=!1}return f},W["badge-shape-wiz--no-text"]=function(){return!l().text},W["badge-shape-wiz--modern"]=function(){return l().modern||_.U("web_modern_badge_shape")},W)),
style:_.Tm({"background-color":function(){var f;return(f=l().customColors)==null?void 0:f.backgroundColor}}),
role:function(){return l().accessibilityText?"img":void 0},
"aria-label":function(){return l().accessibilityText}},_.C(_.c,{cond:function(){return l().animation},
then:function(f){return _.C(_.SX,{className:"badge-shape-wiz__icon",data:f,animationName:function(){return f().animationConfig.name||""}})}}),_.C(_.c,{cond:function(){var f;
return V()&&!((f=l())==null?0:f.animation)},
then:function(){return _.C("div",{class:"badge-shape-wiz__icon"},_.C(ZI8,{data:function(){return V()}}))}}),_.C("div",{class:"badge-shape-wiz__text"},function(){var f;
return(f=l())==null?void 0:f.text}))},"V");
_.di.idomCompat=!0;_.HI(_.di,"badge-shape",{props:{data:_.pA}});var Jq=function(){var W=_.I.apply(this,arguments)||this;W.systemIcons=_.U("kevlar_system_icons");W.animated=_.U("animated_live_badge_icon");W.useBadgeShape=_.U("web_badge_shape_defrag");return W};
_.v(Jq,_.I);_.t=Jq.prototype;_.t.addTooltips=function(){for(var W=_.GS(this.hostElement).querySelectorAll(".badge"),l=0,V;V=W[l++];){var f=this.repeatElement.itemForElement(V);V=_.GS(V);V.lastChild&&V.lastChild.is==="tp-yt-paper-tooltip"&&V.removeChild(V.lastChild);if(f=f.metadataBadgeRenderer&&f.metadataBadgeRenderer.tooltip){var r=_.XE("tp-yt-paper-tooltip");(0,_.j3)(r).textContent=f;r.setAttribute("position","top");r.setAttribute("aria-hidden","true");V.appendChild(r)}}};
_.t.badgesChanged=function(){var W=this;_.DI().parkOrScheduleJob(function(){W.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.t.standaloneRoundedBadgeChanged=function(){var W=this.useRoundedBadge?this.useRoundedBadge:void 0;W&&(this.useRoundedBadge=W)};
_.t.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.t.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.t.computeStyle=function(W){_.U("enable_html5_teal_ad_badge")&&W==="BADGE_STYLE_TYPE_AD"&&(W="badge-style-type-ad-alternate");_.U("kevlar_ytb_live_badges")&&W==="BADGE_STYLE_TYPE_LIVE_NOW"&&(W="badge-style-type-live-now-alternate");return W?W.toLowerCase().replace(/_/g,"-"):""};
_.t.computeRole=function(W){return this.computeAriaLabel(W)?"img":"status"};
_.t.computeAriaLabel=function(W){var l;return(W==null?void 0:(l=W.accessibilityData)==null?void 0:l.label)||(W==null?void 0:W.label)};
_.t.computeBadgeShape=function(W){if(W){var l,V;var f=BGJ(W.style);var r=dWJ(W.style),R=W.label,y=((l=W.accessibilityData)==null?void 0:l.label)||W.label;a:switch(W.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":l=!0;break a;default:l=!1}var P=(V=W.icon)==null?void 0:V.iconType;a:switch(W.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":W=!0;break a;default:W=!1}f={type:f,brNzRatingBadgeType:r,text:R,accessibilityText:y,
isOverlay:l,icon:P!=="PREMIUM"?P:void 0,modern:_.U("web_modern_badge_view_model"),adsIncludeDot:W}}else f={};return f};
_.t.updateComputedBadges=function(W,l,V){var f=this;(l=l?[l]:V?[V]:void 0)?this.computedBadges=l:this.computedBadges=W==null?void 0:W.filter(function(r){var R;if((R=r.metadataBadgeRenderer)==null?0:R.groups){R=!1;r=_.L(r.metadataBadgeRenderer.groups);for(var y=r.next();!y.done;y=r.next()){y=y.value;var P=void 0;R=R||((P=f.hiddenBadgeGroups)==null?void 0:P.includes(y))}return!R}return!0})};
_.t.useFilledIcons=function(W){return _.U("kevlar_system_icons")&&(W==="AUDIO_BADGE"||W==="CHECK_CIRCLE_THICK"||W==="OFFICIAL_ARTIST_BADGE"||W==="SPONSORSHIP_STAR"||W==="PERSON_RADAR_FILLED"||W==="PERSON_RADAR")};
_.t.computeBadgeShapeStyle=function(W){return this.useBadgeShape?W==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||W==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.t.computeIcon=function(W){var l,V;W=W==null?void 0:(l=W.metadataBadgeRenderer)==null?void 0:(V=l.icon)==null?void 0:V.iconType;if(W!=="PREMIUM"&&W)return _.IJ(W)};
_.t.computeStandaloneBadge=function(W){var l;W=W==null?void 0:(l=W.icon)==null?void 0:l.iconType;return W==="PREMIUM_STANDALONE"||W==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
Jq.prototype.hiddenBadgeGroupsChanged=Jq.prototype.hiddenBadgeGroupsChanged;Jq.prototype.standaloneBadgeChanged=Jq.prototype.standaloneBadgeChanged;Jq.prototype.standaloneRoundedBadgeChanged=Jq.prototype.standaloneRoundedBadgeChanged;Jq.prototype.badgesChanged=Jq.prototype.badgesChanged;_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Jq.prototype,"hidden",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Jq.prototype,"componentBehavior",void 0);
_.a([_.b(),_.z("design:type",Array)],Jq.prototype,"badges",void 0);_.a([_.b(),_.z("design:type",Object)],Jq.prototype,"topStandaloneBadge",void 0);_.a([_.b(),_.z("design:type",Object)],Jq.prototype,"bottomStandaloneBadge",void 0);_.a([_.b(),_.z("design:type",Object)],Jq.prototype,"computedBadges",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Jq.prototype,"mediumFontAdBadge",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Jq.prototype,"useRoundedBadge",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Jq.prototype,"largeFontAdBadge",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Jq.prototype,"overlayAd",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Jq.prototype,"overlayPremium",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Jq.prototype,"noDotAdBadge",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Jq.prototype,"collectionTruncate",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Jq.prototype,"isThumbnailBadge",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Jq.prototype,"wrapBadges",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Jq.prototype,"systemIcons",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Jq.prototype,"animated",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Jq.prototype,"useBadgeShape",void 0);_.a([_.b({value:[]}),_.z("design:type",Array)],Jq.prototype,"hiddenBadgeGroups",void 0);_.a([_.Aa("#repeat"),_.z("design:type",ED)],Jq.prototype,"repeatElement",void 0);_.a([_.zS("badges"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Jq.prototype,"badgesChanged",null);
_.a([_.zS("useRoundedBadge"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Jq.prototype,"standaloneRoundedBadgeChanged",null);_.a([_.zS("topStandaloneBadge","bottomStandaloneBadge"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Jq.prototype,"standaloneBadgeChanged",null);_.a([_.zS("hiddenBadgeGroups"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Jq.prototype,"hiddenBadgeGroupsChanged",null);
_.a([_.A({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Jq);
var noL=_.GG()(Jq,"ytd-badge-supported-renderer",function(){if(PaB===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);PaB=W}W=PaB;return W},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.bD("kevlar_poly_si_batch_j053")?1:2});var DB=function(){var W=_.I.apply(this,arguments)||this;W.iconType="STAR";W.standardizeIconSize=_.U("kevlar_system_icons");W.mediaHoverOverlayInitialVisibility=_.U("enable_top_landscape_image_button_command_web");W.noBottomMargin=!1;W.thumbnailObjectFit="CONTAIN";W.thumbnailFitHeight=!0;W.actionMap={"yt-mute-ad-action":"handleMuteAd"};return W};
_.v(DB,_.I);_.t=DB.prototype;
_.t.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"}}}};
_.t.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",DB.JSC$14663_DEFAULT_CLICK_LOCATION_BEHAVIOR,DB.JSC$14663_CLICK_LOCATION_ID_MAP))};
_.t.onTap=function(W){if(!_.U("use_on_click_for_desktop_display_ad"))this.onTapOrClick(W)};
_.t.onClick=function(W){if(_.U("use_on_click_for_desktop_display_ad"))this.onTapOrClick(W)};
_.t.onTapOrClick=function(W){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,W,!1)};
_.t.updateMediaBackgroundImage=function(){var W=this.get("data.image.thumbnail.thumbnails");W&&(W=_.KP(W,0))&&_.I1(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+W+")"})};
_.t.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var W=0;W<this.data.impressionEndpoints.length;W++){var l=this.data.impressionEndpoints[W];l.clickTrackingParams&&delete l.clickTrackingParams;_.tY().resolve(_.s6).resolveCommand(l,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var V;((V=this.data)==null?0:V.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.t.handleMuteAd=function(){};
_.t.attached=function(){var W=this;_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.t.detached=function(){_.U("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.rc.Object.defineProperties(DB.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.titleText)return"";var l;return _.wg("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((l=this.data)==null?void 0:l.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.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 W;return!((W=this.data)==null||!W.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"}}});
DB.prototype.onClick=DB.prototype.onClick;DB.prototype.onTap=DB.prototype.onTap;DB.prototype.dataChanged=DB.prototype.dataChanged;
DB.JSC$14663_CLICK_LOCATION_ID_MAP=_.U("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"]]);
DB.JSC$14663_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.U("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"}];_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],DB.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],DB.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.DX),_.z("design:type",Object)],DB.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],DB.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.wx.YtSparklesClickLocationBehavior),_.z("design:type",Object)],DB.prototype,"ytSparklesClickLocationBehavior",void 0);_.a([_.F(BZ),_.z("design:type",Object)],DB.prototype,"ytdActiveViewBehavior",void 0);_.a([_.F([_.hp.YtActionHandlerBehavior]),_.z("design:type",Object)],DB.prototype,"actionHandlerBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],DB.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],DB.prototype,"clickCommand",void 0);_.a([_.b({reflectToAttribute:!0,selector:_.$H}),_.z("design:type",Boolean)],DB.prototype,"miniMode",void 0);_.a([_.b(),_.z("design:type",String)],DB.prototype,"iconType",void 0);_.a([_.G("data.titleText"),_.z("design:type",String),_.z("design:paramtypes",[])],DB.prototype,"titleAriaLabel",null);
_.a([_.G("data.rating"),_.z("design:type",Object),_.z("design:paramtypes",[])],DB.prototype,"getRating",null);_.a([_.G("data.price"),_.z("design:type",Object),_.z("design:paramtypes",[])],DB.prototype,"getPrice",null);_.a([_.G("data.thirdLine"),_.z("design:type",Object),_.z("design:paramtypes",[])],DB.prototype,"getThirdLine",null);_.a([_.G("data.fourthLine"),_.z("design:type",Object),_.z("design:paramtypes",[])],DB.prototype,"getFourthLine",null);
_.a([_.G("data.fifthLine"),_.z("design:type",Object),_.z("design:paramtypes",[])],DB.prototype,"getFifthLine",null);_.a([_.G("getRating"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],DB.prototype,"computeRatingHidden",null);_.a([_.G("getPrice"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],DB.prototype,"computePriceHidden",null);_.a([_.G("getThirdLine"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],DB.prototype,"computeThirdLineHidden",null);
_.a([_.G("getFourthLine"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],DB.prototype,"computeFourthLineHidden",null);_.a([_.G("getFifthLine"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],DB.prototype,"computeFifthLineHidden",null);_.a([_.b({reflectToAttribute:!0}),_.G("data.energyIcon"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],DB.prototype,"hasEnergyIcon",null);
_.a([_.G("computePriceHidden","computeRatingHidden"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],DB.prototype,"computeSecondaryTextHidden",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],DB.prototype,"standardizeIconSize",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],DB.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],DB.prototype,"noBottomMargin",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("data.layout"),_.z("design:type",String),_.z("design:paramtypes",[])],DB.prototype,"layout",null);_.a([_.G("data.layout"),_.z("design:type",Object),_.z("design:paramtypes",[])],DB.prototype,"mediaThumbnailWidth",null);_.a([_.G("layout"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],DB.prototype,"useRoundedBadge",null);_.a([_.b(),_.z("design:type",String)],DB.prototype,"thumbnailObjectFit",void 0);
_.a([_.b(),_.z("design:type",Object)],DB.prototype,"thumbnailFitHeight",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],DB.prototype,"dataChanged",null);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],DB.prototype,"onTap",null);_.a([_.XI("click"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],DB.prototype,"onClick",null);
_.a([_.A({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],DB);
_.Z(DB,"ytd-display-ad-renderer",function(){if(go9!==void 0)return go9;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return go9=W},{mode:1});var CaL;var cck;var BGI;var DW6=new Map;var dWI=!1;var UT=function(){var W=_.I.apply(this,arguments)||this;W.DEFAULT_TOOLTIP_OFFSET="10";W.TOOLTIP_OFFSET_NO_BANNER="-8";W.badges=null;W.noEndpoints=!1;W.wrapText=!1;W.forceVerified=!1;W.tooltipPosition="top";W.compactStyle=!1;W.height=0;W.lineHeight=0;return W};
_.v(UT,_.I);_.t=UT.prototype;_.t.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.t.attached=function(){var W=this;this.observer=new MutationObserver(function(l,V){W.handleResized();V.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.t.detached=function(){this.observer&&this.observer.disconnect()};
_.t.logTooltipEvent=function(){_.U("kevlar_wiz_tooltip_event_killswitch")||dWI||(_.UWn("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),dWI=!0)};
_.t.handleWindowResized=function(){this.handleResized()};
_.t.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")))};
_.t.onHeightChanged=function(){if(this.verified){var W=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.M4("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=W:this.textContainerEl.style.marginRight=W}};
_.t.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.M4("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.t.handleResized=function(){var W=this;this.verified&&_.w8.addLowPriorityJob(function(){W.fitBackgroundToText();var l=getComputedStyle(W.hostElement).lineHeight;l&&(l=l.match(/\d+/))&&l.length&&(W.lineHeight=Number(l[0]));W.height=W.lineHeight&&!W.wrapText?W.lineHeight:W.textEl.offsetHeight})};
_.t.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var W=document.createRange(),l=_.GS(this.textEl).children;l.length>0?W.selectNodeContents(l[0]):W.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(W.getBoundingClientRect().width)+"px"}};
_.t.computeChannelBadgeStyle=function(W){var l;if((W==null?0:(l=W.runs)==null?0:l.length)&&W.runs[0].textColor)return"--ytd-badge-icon-color:"+_.ta(W.runs[0].textColor)+";"};
_.rc.Object.defineProperties(UT.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"?_.Bl(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var W=this.get("badges.0.metadataBadgeRenderer.tooltip");if(W)return W}return _.dE(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
UT.prototype.onLineHeightChanged=UT.prototype.onLineHeightChanged;UT.prototype.onHeightChanged=UT.prototype.onHeightChanged;UT.prototype.onChannelNameChanged=UT.prototype.onChannelNameChanged;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],UT.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],UT.prototype,"badges",void 0);_.a([_.b(),_.z("design:type",Object)],UT.prototype,"channelName",void 0);
_.a([_.b(),_.z("design:type",Object)],UT.prototype,"noEndpoints",void 0);_.a([_.b(),_.z("design:type",Object)],UT.prototype,"wrapText",void 0);_.a([_.b(),_.z("design:type",Object)],UT.prototype,"forceVerified",void 0);_.a([_.b(),_.z("design:type",Object)],UT.prototype,"tooltipPosition",void 0);_.a([_.b(),_.z("design:type",String)],UT.prototype,"tooltip",void 0);_.a([_.b(),_.z("design:type",Boolean)],UT.prototype,"hasChannelArt",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],UT.prototype,"compactStyle",void 0);_.a([_.Aa("#text-container"),_.z("design:type",HTMLElement)],UT.prototype,"textContainerEl",void 0);_.a([_.Aa("#text"),_.z("design:type",Object)],UT.prototype,"textEl",void 0);_.a([_.Aa("#verified-tooltip"),_.z("design:type",HTMLElement)],UT.prototype,"verifiedTooltip",void 0);_.a([_.b(),_.z("design:type",Object)],UT.prototype,"height",void 0);
_.a([_.b(),_.z("design:type",Object)],UT.prototype,"lineHeight",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("badges","forceVerified"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],UT.prototype,"verified",null);_.a([_.G("badges","verified"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],UT.prototype,"hideBadges",null);_.a([_.G("channelName"),_.z("design:type",Object),_.z("design:paramtypes",[])],UT.prototype,"formattedName",null);
_.a([_.G("badges","verified","formattedName"),_.z("design:type",String),_.z("design:paramtypes",[])],UT.prototype,"tooltipText",null);_.a([_.G("hasChannelArt"),_.z("design:type",String),_.z("design:paramtypes",[])],UT.prototype,"tooltipOffset",null);_.a([_.TS("channelName"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],UT.prototype,"onChannelNameChanged",null);
_.a([_.TS("height"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],UT.prototype,"onHeightChanged",null);_.a([_.TS("lineHeight","height"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],UT.prototype,"onLineHeightChanged",null);_.a([_.A({is:"ytd-channel-name",disableElementRegistration:!0})],UT);
_.Z(UT,"ytd-channel-name",function(){if(BGI!==void 0)return BGI;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return BGI=W},{mode:_.bD("kevlar_poly_si_batch_j036")?1:2});var uX=function(){var W=_.I.apply(this,arguments)||this;W.standardizeIconSize=_.U("kevlar_system_icons");return W};
_.v(uX,_.I);uX.prototype.basicPaletteChanged=function(){var W;(W=this.data.color)!=null&&W.basicColorPaletteData&&_.Yh(this.hostElement,this.data.color.basicColorPaletteData)};
uX.prototype.useFilledIcons=function(W){return _.U("kevlar_system_icons")&&(W==="CHECK_CIRCLE_THICK"||W==="OFFICIAL_ARTIST_BADGE")};
_.rc.Object.defineProperties(uX.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return this.data.authorCreator||((W=this.data)==null?void 0:(l=W.color)==null?void 0:(V=l.basicColorPaletteData)==null?void 0:V.backgroundColor)}}});
uX.prototype.basicPaletteChanged=uX.prototype.basicPaletteChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],uX.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],uX.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],uX.prototype,"standardizeIconSize",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("data.authorUnifiedVerified"),_.z("design:type",Object),_.z("design:paramtypes",[])],uX.prototype,"verified",null);
_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],uX.prototype,"creator",null);_.a([_.TS("data.color.basicColorPaletteData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uX.prototype,"basicPaletteChanged",null);_.a([_.A({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],uX);
_.Z(uX,"ytd-author-comment-badge-renderer",function(){if(cck!==void 0)return cck;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return cck=W},{mode:1});var Jca;var kO=function(){return _.I.apply(this,arguments)||this};
_.v(kO,_.I);kO.prototype.computeThumbnailWidth=function(W){if(W==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],kO.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],kO.prototype,"data",void 0);_.a([_.b({computed:"computeIcon_(data.icon)"}),_.z("design:type",String)],kO.prototype,"icon",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],kO.prototype,"surface",void 0);
_.a([_.b({reflectToAttribute:!0,value:_.U("enable_shrink_image_size_on_web_posts_singleton")}),_.z("design:type",Boolean)],kO.prototype,"searchSxsUx",void 0);_.a([_.A({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],kO);
_.Z(kO,"ytd-backstage-image-renderer",function(){if(Jca!==void 0)return Jca;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Jca=W},{mode:1});var DWa;var vR=function(){var W=_.I.apply(this,arguments)||this;W.isLoading=!1;W.selectedItemIndex=-1;return W};
_.v(vR,_.I);_.t=vR.prototype;_.t.computeIsChannelOwner=function(W){if(!W)return!0;W=W[0];return!(W&&(W.signinEndpoint||W.selectServiceEndpoint))};
_.t.computeIsImagePoll=function(W){return(W==null?void 0:W.type)==="POLL_TYPE_IMAGE"};
_.t.computeIsTotalVotesDisabled=function(W){return!(W==null?0:W.totalVotes)};
_.t.thumbnailSrc=function(W){var l,V,f,r;return(W==null?0:(l=W.thumbnails)==null?0:(V=l[0])==null?0:V.url)?_.NI((f=W.thumbnails)==null?void 0:(r=f[0])==null?void 0:r.url):void 0};
_.t.progressWidth=function(W){return"width:"+(W?W*100:0)+"%;"};
_.t.textAreaWidth=function(W){return this.isImagePoll?null:"width:"+(W?W*100:0)+"%;"};
_.t.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.t.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var W=this.data.choices,l=0;l<W.length;l++)if(W[l].selected){this.selectedItemIndex=l;break}};
_.t.onPopupClosed=function(W,l){W=Number(this.pollVotes.selected);l.confirmed&&(this.selectChoice(W,!1),_.Gt(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.t.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.t.onYtCommentPollRevert=function(W,l){l&&(this.selectChoice(l.selectedChoiceIndex,!0),this.set("data.totalVotes",l.totalVotes))};
_.t.onYtServiceRequestSent=function(W,l){if(l.actions)for(W=0;W<l.actions.length;W++){var V=l.actions[W];_.k(V,he)&&this.set("data.totalVotes",_.k(V,he).totalVotes)}};
_.t.onYtServiceRequestCompleted=function(W){var l=this.get("detail.data.actionResults.0.feedback",W);W=this.get("detail.data.actionResults.0.status",W);if(l==="FEEDBACK_DESELECT"||l==="FEEDBACK_SELECT")this.isLoading=!1,W==="STATUS_FAILED"?_.FN(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.t.getEndpoint=function(W,l){return l===W?this.data.choices[l].deselectServiceEndpoint||null:this.data.choices[W].selectServiceEndpoint||null};
_.t.selectChoice=function(W,l){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var V=0;V<this.data.choices.length;V++){var f;if(W===this.selectedItemIndex){var r=!1;var R=f=null}else f=(r=V===W)?this.data.choices[V].voteRatioIfSelected:this.data.choices[V].voteRatioIfNotSelected,R=r?this.data.choices[V].votePercentageIfSelected:this.data.choices[V].votePercentageIfNotSelected;this.set("data.choices."+V+".voteRatio",f);
this.set("data.choices."+V+".votePercentage",R);this.set("data.choices."+V+".selected",r)}l||(this.isLoading=!0,(l=this.getEndpoint(W,this.selectedItemIndex))&&_.tY().resolve(_.s6).resolveCommand(l,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===W?-1:W};
_.rc.Object.defineProperties(vR.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
vR.prototype.onYtServiceRequestCompleted=vR.prototype.onYtServiceRequestCompleted;vR.prototype.onYtServiceRequestSent=vR.prototype.onYtServiceRequestSent;vR.prototype.onYtCommentPollRevert=vR.prototype.onYtCommentPollRevert;vR.prototype.onPopupClosed=vR.prototype.onPopupClosed;vR.prototype.dataChanged=vR.prototype.dataChanged;_.a([_.F(_.Du),_.z("design:type",Object)],vR.prototype,"paperItemBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.i5),_.z("design:type",Object)],vR.prototype,"ytdOpenPopupBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],vR.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],vR.prototype,"isLoading",void 0);_.a([_.b({computed:"computeIsChannelOwner(data.choices)"}),_.z("design:type",Boolean)],vR.prototype,"isChannelOwner",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.z("design:type",Boolean)],vR.prototype,"isImagePoll",void 0);_.a([_.b({computed:"computeIsTotalVotesDisabled(data)"}),_.z("design:type",Boolean)],vR.prototype,"isTotalVotesDisabled",void 0);_.a([_.b(),_.z("design:type",Object)],vR.prototype,"previousPollInfo",void 0);_.a([_.b(),_.z("design:type",Object)],vR.prototype,"selectedItemIndex",void 0);_.a([_.Aa("#poll-votes"),_.z("design:type",Object)],vR.prototype,"pollVotes",void 0);
_.a([_.G("isChannelOwner"),_.z("design:type",Object),_.z("design:paramtypes",[])],vR.prototype,"endpointStyle",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vR.prototype,"dataChanged",null);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],vR.prototype,"onPopupClosed",null);
_.a([_.XI("yt-comment-poll-revert"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],vR.prototype,"onYtCommentPollRevert",null);_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],vR.prototype,"onYtServiceRequestSent",null);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],vR.prototype,"onYtServiceRequestCompleted",null);_.a([_.A({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],vR);
_.Z(vR,"ytd-backstage-poll-renderer",function(){if(DWa!==void 0)return DWa;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return DWa=W},{mode:2});var UW9;var upc={autoplay:!1,loop:!1},kla={simpleText:""},HR=function(){var W=_.I.apply(this,arguments)||this;W.isLoading=!1;W.usesPanelLockup=!1;W.selectedItemIndex=-1;W.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},upc,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});W.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},upc,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});W.correctnessAnimationProps=[];W.correctnessAnimationRefs=[];return W};
_.v(HR,_.I);_.t=HR.prototype;_.t.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.t.computeIsChannelOwner=function(W){if(!W)return!0;W=W[0];return!(W&&(W.signinEndpoint||W.selectServiceEndpoint))};
_.t.computeIsTotalVotesDisabled=function(W){return!(W==null?0:W.totalVotes)};
_.t.computeIsImageQuiz=function(W){return(W==null?void 0:W.type)==="POLL_TYPE_IMAGE"};
_.t.onExplanationChanged=function(){this.expander.reset()};
_.t.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var W=this.data.choices;if(W){this.maybeInitializeQuizLotties(W);for(var l=0;l<W.length;l++)if(W[l].isSelected||this.isChannelOwner&&W[l].isCorrect){this.selectedItemIndex=l;return}this.selectedItemIndex=-1}}};
_.t.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var W=this.selectedItemIndex,l=Number(this.quizVotes.selected);this.selectChoice(l);this.sendVoteAction(l,W);this.quizVotes.selected=-1;var V;W=!((V=this.data)==null?0:V.enableAnimation);this.maybePlayAnswerAnimations(W)}};
_.t.onYtCommentPollRevert=function(W,l){l&&(this.selectChoice(l.selectedChoiceIndex),this.set("data.totalVotes",l.totalVotes))};
_.t.onYtServiceRequestSent=function(W,l){if(l.actions)for(W=_.L(l.actions),l=W.next();!l.done;l=W.next())(l=_.k(l.value,he))&&this.set("data.totalVotes",l.totalVotes)};
_.t.onYtServiceRequestCompleted=function(W){var l=this.get("detail.data.actionResults.0.feedback",W);W=this.get("detail.data.actionResults.0.status",W);if(l==="FEEDBACK_DESELECT"||l==="FEEDBACK_SELECT")this.isLoading=!1,W==="STATUS_FAILED"?_.FN(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.t.getAnimationPropsForChoiceIndex=function(W,l){return l[W]};
_.t.maybePlayAnswerAnimations=function(W){W=W===void 0?!1:W;var l;if((l=this.data)!=null&&l.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){l=_.L(this.correctnessAnimationRefs);for(var V=l.next();!V.done;V=l.next()){var f=void 0,r=void 0;(f=V.value)==null||(r=f.lottieEl)==null||r.stop()}if(!(this.selectedItemIndex<0)){l=0;W&&(l=this.isCorrect?37:25);var R,y;(R=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(y=R.lottieEl)==null||y.goToAndPlay(W?l:0,!0);if(!(this.isCorrect||
(R=this.data.choices.findIndex(function(d){return d.isCorrect}),R<0))){var P,n;
(n=(P=this.correctnessAnimationRefs[R])==null?void 0:P.lottieEl)==null||n.goToAndPlay(37,!0);var B;P=(B=this.fadeContainers)==null?void 0:B.item(R);!W&&P&&this.fadeIn(P)}}}};
_.t.thumbnailSrc=function(W){var l,V,f,r;return(W==null?0:(l=W.thumbnails)==null?0:(V=l[0])==null?0:V.url)?_.NI((f=W.thumbnails)==null?void 0:(r=f[0])==null?void 0:r.url):void 0};
_.t.a11yVotedText=function(W,l){var V,f,r=((V=this.data)==null?void 0:(f=V.correctVotedText)==null?void 0:f.simpleText)||"",R,y;V=((R=this.data)==null?void 0:(y=R.votedText)==null?void 0:y.simpleText)||"";if(!l)return"";var P,n;if((P=this.data)==null?0:(n=P.choices)==null?0:n[W].isCorrect)return r;var B,d;return((B=this.data)==null?0:(d=B.choices)==null?0:d[W].isSelected)?V:""};
_.t.getEndpoint=function(W,l){return l===W?this.data.choices[W].deselectServiceEndpoint||null:this.data.choices[W].selectServiceEndpoint||null};
_.t.sendVoteAction=function(W,l){if(W=this.getEndpoint(W,l))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(W)};
_.t.selectChoice=function(W){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var l=0;l<this.data.choices.length;l++)this.set("data.choices."+l+".isSelected",W===this.selectedItemIndex?!1:l===W);this.selectedItemIndex=this.selectedItemIndex===W?-1:W};
_.t.maybeInitializeQuizLotties=function(W){var l=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=W.map(function(V){return{animationConfig:V.isCorrect?l.baseCorrectLottiePlayerAnimationConfig:l.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){l.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(V){return V.animationRef||{}})};
_.t.fadeIn=function(W){W.classList.add("fade-in");_.pP(_.w8,function(){W.classList.remove("fade-in")},900)};
_.rc.Object.defineProperties(HR.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.U("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.dE(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 W,l;return((W=this.data)==null?void 0:(l=W.choices)==null?void 0:l.some(function(V){return V.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null||!W.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?kla:this.data.choices[this.selectedItemIndex].explanation||kla}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null||!W.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
HR.prototype.onYtServiceRequestCompleted=HR.prototype.onYtServiceRequestCompleted;HR.prototype.onYtServiceRequestSent=HR.prototype.onYtServiceRequestSent;HR.prototype.onYtCommentPollRevert=HR.prototype.onYtCommentPollRevert;HR.prototype.dataChanged=HR.prototype.dataChanged;HR.prototype.onExplanationChanged=HR.prototype.onExplanationChanged;_.a([_.F(_.Du),_.z("design:type",Object)],HR.prototype,"paperItemBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],HR.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.mB.YtTaskEmitterBehavior),_.z("design:type",Object)],HR.prototype,"ytTaskEmitterBehavior",void 0);_.a([_.F(_.i5),_.z("design:type",Object)],HR.prototype,"ytdOpenPopupBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],HR.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Object)],HR.prototype,"isLoading",void 0);_.a([_.b(),_.z("design:type",Object)],HR.prototype,"usesPanelLockup",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.z("design:type",Boolean)],HR.prototype,"isChannelOwner",void 0);_.a([_.b({computed:"computeIsTotalVotesDisabled(data)"}),_.z("design:type",Boolean)],HR.prototype,"isTotalVotesDisabled",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.z("design:type",Boolean)],HR.prototype,"isImageQuiz",void 0);_.a([_.b(),_.z("design:type",Object)],HR.prototype,"previousQuizInfo",void 0);_.a([_.b(),_.z("design:type",Object)],HR.prototype,"selectedItemIndex",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("data","usesPanelLockup"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],HR.prototype,"shouldUseModernUi",null);
_.a([_.Qb(".fade-container"),_.z("design:type",Object)],HR.prototype,"fadeContainers",void 0);_.a([_.b(),_.z("design:type",Array)],HR.prototype,"correctnessAnimationProps",void 0);_.a([_.G("explanation","showCorrectAnswer"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],HR.prototype,"showExplanation",null);_.a([_.G("isChannelOwner","isAttempted"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],HR.prototype,"showCorrectAnswer",null);
_.a([_.G("isChannelOwner","isAttempted","data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],HR.prototype,"isQuizAnsweringDisabled",null);_.a([_.G("isQuizAnsweringDisabled"),_.z("design:type",Object),_.z("design:paramtypes",[])],HR.prototype,"endpointStyle",null);_.a([_.G("data","selectedItemIndex"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],HR.prototype,"isAttempted",null);
_.a([_.G("data","selectedItemIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],HR.prototype,"explanation",null);_.a([_.G("data","selectedItemIndex"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],HR.prototype,"isCorrect",null);_.a([_.Aa("ytd-expander"),_.z("design:type",Object)],HR.prototype,"expander",void 0);_.a([_.Aa("#quiz-votes"),_.z("design:type",Object)],HR.prototype,"quizVotes",void 0);
_.a([_.TS("explanation"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HR.prototype,"onExplanationChanged",null);_.a([_.TS("data","isChannelOwner"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HR.prototype,"dataChanged",null);_.a([_.XI("yt-comment-quiz-revert"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],HR.prototype,"onYtCommentPollRevert",null);
_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],HR.prototype,"onYtServiceRequestSent",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],HR.prototype,"onYtServiceRequestCompleted",null);_.a([_.A({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],HR);
_.Z(HR,"ytd-backstage-quiz-renderer",function(){if(UW9!==void 0)return UW9;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return UW9=W},{mode:1});var vov;var K9=function(){return _.I.apply(this,arguments)||this};
_.v(K9,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],K9.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],K9.prototype,"data",void 0);_.a([_.A({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],K9);
_.Z(K9,"ytd-post-uploaded-video-renderer",function(){if(vov!==void 0)return vov;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return vov=W},{mode:1});var Hbk;var FV=function(){return _.I.apply(this,arguments)||this};
_.v(FV,_.I);FV.prototype.useFilledIcons=function(W){return W==="SPONSORSHIP_STAR"};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],FV.prototype,"data",void 0);_.a([_.A({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],FV);
var KC$=_.GG()(FV,"ytd-sponsors-only-badge-renderer",function(){if(Hbk===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);Hbk=W}W=Hbk;return W},{allowedProps:["data"],
mode:1});var FC1;var Gj=function(){return _.I.apply(this,arguments)||this};
_.v(Gj,_.I);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Gj.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Gj.prototype,"data",void 0);_.a([_.A({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Gj);
_.Z(Gj,"ytd-child-video-renderer",function(){if(FC1!==void 0)return FC1;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return FC1=W},{mode:1});var Gle;var bbk;var bX=function(){var W=_.I.apply(this,arguments)||this;W.size=0;W.enableWebModernCollectionsV2=_.U("web_modern_collections_v2");W.fallbackImageSize={height:void 0,width:9999};W.webModernCollections=!1;return W};
_.v(bX,_.I);_.t=bX.prototype;_.t.computeBlurredImageSize=function(W){return W?{height:W*2,width:W*2}:this.fallbackImageSize};
_.t.computeImageSize=function(W){return W?{height:W,width:W}:this.fallbackImageSize};
_.t.computeObjectFit=function(W){return W?"FILL":"CONTAIN"};
_.t.computePreserve=function(W){return W?!0:!1};
_.t.setBackground=function(){var W,l;_.U("web_modern_collections_v2")&&((W=this.data)==null?0:(l=W.thumbnail)==null?0:l.sampledThumbnailColor)&&(W=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+W.red+","+W.green+","+W.blue+",1)")};
bX.prototype.setBackground=bX.prototype.setBackground;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],bX.prototype,"ytRendererBehavior",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],bX.prototype,"watchFeedThumbnail",void 0);_.a([_.b(),_.z("design:type",Object)],bX.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],bX.prototype,"size",void 0);
_.a([_.b({computed:"computeBlurredImageSize(size)"}),_.z("design:type",Object)],bX.prototype,"blurredImageSize",void 0);_.a([_.b({computed:"computeImageSize(size)"}),_.z("design:type",Object)],bX.prototype,"imageSize",void 0);_.a([_.b({computed:"computePreserve(size)"}),_.z("design:type",String)],bX.prototype,"preserve",void 0);_.a([_.b({computed:"computeObjectFit(size)"}),_.z("design:type",String)],bX.prototype,"objectFit",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],bX.prototype,"enableWebModernCollectionsV2",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],bX.prototype,"webModernCollections",void 0);_.a([_.TS("data.thumbnail.sampledThumbnailColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bX.prototype,"setBackground",null);_.a([_.A({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],bX);
_.Z(bX,"ytd-playlist-custom-thumbnail-renderer",function(){if(bbk!==void 0)return bbk;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return bbk=W},{mode:1});var pXL;var p9=function(){return _.I.apply(this,arguments)||this};
_.v(p9,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],p9.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],p9.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Number)],p9.prototype,"width",void 0);_.a([_.A({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],p9);
_.Z(p9,"ytd-playlist-video-thumbnail-renderer",function(){if(pXL!==void 0)return pXL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return pXL=W},{mode:1});var ooB;var o2=function(){return _.I.apply(this,arguments)||this};
_.v(o2,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],o2.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],o2.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Number)],o2.prototype,"width",void 0);_.a([_.A({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],o2);
_.Z(o2,"ytd-show-custom-thumbnail-renderer",function(){if(ooB!==void 0)return ooB;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return ooB=W},{mode:1});var jPX;var jW=function(){return _.I.apply(this,arguments)||this};
_.v(jW,_.I);jW.prototype.useFilledIcons=function(W){return W==="MUSIC"||W==="COURSE"};
jW.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=LG(this.overlayColor,"0.8");else if(this.overlayColor){var W=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+W.red+","+W.green+","+W.blue+",0.8)"}};
_.rc.Object.defineProperties(jW.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)}}});
jW.prototype.overlayColorChanged=jW.prototype.overlayColorChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],jW.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],jW.prototype,"overlayColor",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("data.icon","data.text"),_.z("design:type",Object),_.z("design:paramtypes",[])],jW.prototype,"overlayStyle",null);
_.a([_.b({reflectToAttribute:!0}),_.G("data.icon","data.text"),_.z("design:type",Object),_.z("design:paramtypes",[])],jW.prototype,"overlayTextStyle",null);_.a([_.TS("overlayColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jW.prototype,"overlayColorChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],jW);
_.Z(jW,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(jPX!==void 0)return jPX;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return jPX=W},{mode:1});var IeM;var I2=function(){var W=_.I.apply(this,arguments)||this;W.active=!1;return W};
_.v(I2,_.I);I2.prototype.computeIsSpinnerHidden=function(W){return(W==null?void 0:W.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
I2.prototype.computeOverlayIcon=function(W){return(W==null?void 0:W.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(W==null?void 0:W.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],I2.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],I2.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],I2.prototype,"active",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],I2);
_.Z(I2,"ytd-thumbnail-overlay-downloading-renderer",function(){if(IeM!==void 0)return IeM;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return IeM=W},{mode:1});var ibL;var iX=function(){return _.I.apply(this,arguments)||this};
_.v(iX,_.I);_.rc.Object.defineProperties(iX.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],iX.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],iX.prototype,"data",void 0);_.a([_.G("data.text"),_.z("design:type",Object),_.z("design:paramtypes",[])],iX.prototype,"text",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],iX);
_.Z(iX,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(ibL!==void 0)return ibL;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return ibL=W},{mode:1});var mWv,XX9=function(){if(mWv!==void 0)return mWv;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return mWv=W};var ma=function(){return _.I.apply(this,arguments)||this};
_.v(ma,_.I);_.rc.Object.defineProperties(ma,{template:{configurable:!0,enumerable:!0,get:function(){return XX9()}}});
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ma.prototype,"animateEqualizer",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],ma);_.GG()(ma,"ytd-thumbnail-overlay-equalizer",function(){return XX9()},{allowedProps:["animateEqualizer"],
mode:1});var TG9;var XV=function(){var W=_.I.apply(this,arguments)||this;W.nowPlayingBadge=_.U("web_now_playing_badge");W.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return W};
_.v(XV,_.I);XV.prototype.activeChanged=function(){var W=this;_.U("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.V9(this,function(){_.FN(W.hostElement,"yt-playlist-lockup-now-playing-active",W)})};
XV.prototype.onMiniplayerPlayStateChanged=function(W){var l,V=(l=_.k(_.hJ().currentEndpoint,_.Bh))==null?void 0:l.videoId;this.isVideoPlaying=W&&(_.U("web_limit_now_playing_animation_killswitch")||this.videoId===V)};
XV.prototype.activeChanged=XV.prototype.activeChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],XV.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],XV.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Boolean)],XV.prototype,"isVideoPlaying",void 0);_.a([_.b(),_.z("design:type",String)],XV.prototype,"videoId",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],XV.prototype,"equalizerOnly",void 0);_.a([_.b(),_.z("design:type",Boolean)],XV.prototype,"isActive",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],XV.prototype,"nowPlayingBadge",void 0);_.a([_.TS("isActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],XV.prototype,"activeChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],XV);
_.Z(XV,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(TG9!==void 0)return TG9;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return TG9=W},{mode:1});var wXI;var Tj=function(){return _.I.apply(this,arguments)||this};
_.v(Tj,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Tj.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Tj.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Tj);
_.Z(Tj,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(wXI!==void 0)return wXI;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return wXI=W},{mode:_.bD("kevlar_poly_si_batch_j025")?1:2});var Ack;var wi=function(){return _.I.apply(this,arguments)||this};
_.v(wi,_.I);wi.prototype.onDurationChanged=function(){var W,l;_.GS(this.hostElement).querySelector("#progress").style.width=((l=(W=this.data)==null?void 0:W.percentDurationWatched)!=null?l:0)+"%"};
wi.prototype.onDurationChanged=wi.prototype.onDurationChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],wi.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],wi.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],wi.prototype,"isLive",void 0);_.a([_.TS("data.percentDurationWatched"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wi.prototype,"onDurationChanged",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],wi);
_.Z(wi,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(Ack!==void 0)return Ack;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Ack=W},{mode:1});var QPk;var Aq=function(){var W=_.I.apply(this,arguments)||this;W.bottomPanel=!1;W.richGridOverlay=!1;W.watchFeedOverlay=!1;W.isCompact=!1;return W};
_.v(Aq,_.I);Aq.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.rc.Object.defineProperties(Aq.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.data)==null?void 0:(l=W.icon)==null?void 0:l.iconType)==="PLAY_ALL"&&_.U("kevlar_system_icons")}}});
Aq.prototype.widthChanged=Aq.prototype.widthChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Aq.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Aq.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Number)],Aq.prototype,"width",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Aq.prototype,"bottomPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Aq.prototype,"richGridOverlay",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Aq.prototype,"watchFeedOverlay",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Aq.prototype,"isCompact",void 0);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Aq.prototype,"isIconFilled",null);_.a([_.TS("width","watchFeedOverlay"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Aq.prototype,"widthChanged",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Aq);
_.Z(Aq,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(QPk!==void 0)return QPk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return QPk=W},{mode:1});var MzZ;var Zb9=["CLIP","SHORTS"],Qx=function(){var W=_.I.apply(this,arguments)||this;W.animated=_.U("animated_live_badge_icon");W.hasIcon=!1;W.updateTimerIntervalId=0;W.timeSinceLive=0;return W};
_.v(Qx,_.I);_.t=Qx.prototype;_.t.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.t.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.t.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.t.hasIconOrText=function(){var W,l;return!!(((W=this.data)==null?0:W.icon)||((l=this.data)==null?0:l.text))};
_.t.initializeLiveBadgeTimer=function(){var W=this,l,V=(l=this.liveBadgeData)==null?void 0:l.startTimestampSec;if(V&&this.canShowLiveBadgeTimer()){var f;l=Number((f=this.liveBadgeData)==null?void 0:f.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(V);this.updateTimerIntervalId=_.BA(function(){W.canShowLiveBadgeTimer()?W.timeSinceLive++:(W.timeSinceLive=0,window.clearInterval(W.updateTimerIntervalId))},l)}else this.timeSinceLive=0};
_.t.canShowLiveBadgeTimer=function(){var W=Date.now(),l,V;return W<(Number((l=this.liveBadgeData)==null?void 0:l.endTimestampSec)-1)*1E3&&W>Number((V=this.liveBadgeData)==null?void 0:V.startTimestampSec)*1E3};
_.rc.Object.defineProperties(Qx.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=this.data;var l=this.timeSinceLive;var V,f,r,R;a:{var y=W.style;if(y===void 0)y=17;else switch(y){case "LIVE":y=18;break a;default:y=17}}l={type:y,text:l?tXv({seconds:l}):_.dE(W.text),accessibilityText:(V=W.text)==null?void 0:(f=V.accessibility)==null?void 0:(r=f.accessibilityData)==null?void 0:r.label,icon:(R=W.icon)==null?void 0:R.iconType}}else l={};return l}},
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 W;return(W=this.data)==null?void 0:W.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 Zb9.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
Qx.prototype.initializeLiveBadgeTimer=Qx.prototype.initializeLiveBadgeTimer;Qx.prototype.dataChanged=Qx.prototype.dataChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Qx.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Qx.prototype,"data",void 0);_.a([_.b({computed:"computeIcon_(data.icon)"}),_.z("design:type",String)],Qx.prototype,"icon",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Qx.prototype,"animated",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.z("design:type",Boolean)],Qx.prototype,"hideTimeStatus",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Qx.prototype,"hasIcon",void 0);_.a([_.b(),_.z("design:type",Object)],Qx.prototype,"timeSinceLive",void 0);_.a([_.G("data","timeSinceLive"),_.z("design:type",Object),_.z("design:paramtypes",[])],Qx.prototype,"badgeShapeData",null);
_.a([_.G("data","overlayType"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Qx.prototype,"hideBadgeShape",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qx.prototype,"dataChanged",null);_.a([_.b({reflectToAttribute:!0}),_.G("data.style"),_.z("design:type",Object),_.z("design:paramtypes",[])],Qx.prototype,"overlayStyle",null);
_.a([_.G("data.liveBadgeData"),_.z("design:type",Object),_.z("design:paramtypes",[])],Qx.prototype,"liveBadgeData",null);_.a([_.b({reflectToAttribute:!0}),_.G("data.type"),_.z("design:type",Object),_.z("design:paramtypes",[])],Qx.prototype,"overlayType",null);_.a([_.G("overlayType","overlayStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Qx.prototype,"useFilledIcon",null);
_.a([_.zS("liveBadgeData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qx.prototype,"initializeLiveBadgeTimer",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],Qx);
_.Z(Qx,"ytd-thumbnail-overlay-time-status-renderer",function(){if(MzZ!==void 0)return MzZ;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return MzZ=W},{mode:_.bD("kevlar_poly_si_batch_j035")?1:2});var Ob$;var MA=function(){return _.I.apply(this,arguments)||this};
_.v(MA,_.I);MA.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"}}}}};
MA.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(W){if(this.hasPlaybackProgressBar)return{percentDurationWatched:W.percentDurationWatched}};
MA.prototype.computeHasPlaybackProgressBar=function(W){return!!W.percentDurationWatched&&W.percentDurationWatched>0};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],MA.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],MA.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],MA.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.z("design:type",Boolean)],MA.prototype,"hasPlaybackProgressBar",void 0);
_.a([_.A({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],MA);
_.Z(MA,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(Ob$!==void 0)return Ob$;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Ob$=W},{mode:1});var ae9;var z_e=_.Q(function(W){var l=W.data;var V=W.children;var f=function(){return!!l().doubleStack},r=function(){return!!l().includeStackHeight};
return _.C("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!l().experimentEnabled}},_.C(_.c,{cond:l,
then:function(){var R={};return _.C(_.Lp,null,_.C(_.c,{cond:r,then:function(){var y={};return _.C("div",{class:_.If("collections-stack-wiz__spacer",(y["collections-stack-wiz__spacer--double-stack"]=f,y))})}}),_.C("div",{class:_.If((R["collections-stack-wiz__relative-stack"]=r,R))},_.C(_.c,{cond:f,
then:function(){var y={};return _.C("div",{class:_.If("collections-stack-wiz__collection-stack2",function(){return l().customClassName2ndStack},(y["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return l().enableResponsiveMode},y)),
style:_.Tm({"background-color":function(){return kl6(l())}})})}}),_.C("div",{class:_.If("collections-stack-wiz__collection-stack1",function(){return l().customClassName1stStack},function(){return upz(l().thumbnailSize?l().thumbnailSize:"medium")}),
style:_.Tm({"background-color":function(){return kl6(l())}})}),V))}}))},"W");_.HI(z_e,"yt-collections-stack",{props:{data:_.pA}});var ZB=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};W.webModernCollections=!1;W.isSearch=!1;W.isDoubleStack=!1;W.thumbnailSize="medium";W.enableWebModernCollectionsV2=_.U("web_modern_collections_v2");return W};
_.v(ZB,_.I);_.t=ZB.prototype;
_.t.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]]"}}}}}};
_.t.getThumbnailDetails=function(W){if(W!=null&&W.thumbnailRenderer){var l=W.thumbnailRenderer,V;if((V=l.playlistVideoThumbnailRenderer)==null?0:V.thumbnail)return l.playlistVideoThumbnailRenderer.thumbnail;var f;if((f=l.playlistCustomThumbnailRenderer)==null?0:f.thumbnail)return l.playlistCustomThumbnailRenderer.thumbnail;W=W.thumbnailRenderer;var r;if((r=W.showCustomThumbnailRenderer)==null?0:r.thumbnail)return W.showCustomThumbnailRenderer.thumbnail}};
_.t.computeOverlayColor=function(W){var l,V;if((l=this.getThumbnailDetails(W))==null?0:(V=l.darkColorPalette)==null?0:V.section2Color)return this.getThumbnailDetails(W).darkColorPalette.section2Color;var f;return(f=this.getThumbnailDetails(W))==null?void 0:f.sampledThumbnailColor};
_.t.computeWebModernCollections=function(W){if(W==null||!W.thumbnailOverlays)return!1;W=_.L(W.thumbnailOverlays);for(var l=W.next();!l.done;l=W.next()){var V=void 0;if((V=l.value)==null?0:V.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.t.computeNavigationEndpoint=function(W){return Qz4(W==null?void 0:W.navigationEndpoint)};
_.rc.Object.defineProperties(ZB.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var W=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:W==null?void 0:W.sampledThumbnailColor,vibrantColorPalette:W==null?void 0:W.vibrantColorPalette,darkColorPalette:W==null?void 0:W.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],ZB.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ZB.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F($ZI),_.z("design:type",Object)],ZB.prototype,"ytdThumbnailBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],ZB.prototype,"componentBehavior",void 0);
_.a([_.b({value:!1}),_.z("design:type",Boolean)],ZB.prototype,"watchFeedThumbnail",void 0);_.a([_.b(),_.z("design:type",Number)],ZB.prototype,"customThumbnailSize",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],ZB.prototype,"hideAria",void 0);_.a([_.b(),_.z("design:type",Object)],ZB.prototype,"data",void 0);_.a([_.b({computed:"computeOverlayColor(data)"}),_.z("design:type",Object)],ZB.prototype,"overlayColor",void 0);
_.a([_.b({computed:"computeWebModernCollections(data)"}),_.z("design:type",Object)],ZB.prototype,"webModernCollections",void 0);_.a([_.b({computed:"computeNavigationEndpoint(data)"}),_.z("design:type",Object)],ZB.prototype,"computedNavigationEndpoint",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ZB.prototype,"isSearch",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ZB.prototype,"isDoubleStack",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],ZB.prototype,"thumbnailSize",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ZB.prototype,"enableWebModernCollectionsV2",void 0);_.a([_.G("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.z("design:type",Object),_.z("design:paramtypes",[])],ZB.prototype,"collectionStack",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],ZB);
_.Z(ZB,"ytd-playlist-thumbnail",function(){if(ae9!==void 0)return ae9;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return ae9=W},{mode:_.bD("kevlar_poly_si_batch_j025")?1:2});var NGM;var OT=function(){var W=_.I.apply(this,arguments)||this;W.noEndpoints=!1;W.amsterdamPostMvp=_.U("web_amsterdam_post_mvp_playlists");W.badges=[];W.transferState="TRANSFER_STATE_UNKNOWN";return W};
_.v(OT,_.I);_.t=OT.prototype;_.t.getMetadata=function(W){if(!W)return[];var l=[],V=W.shortViewCountText||W.viewCountText;V&&l.push(_.dE(V));W.publishedTimeText&&l.push(_.dE(W.publishedTimeText));W.upcomingEventData&&W.upcomingEventData.upcomingEventText&&l.push(_.zY(_.dE(W.upcomingEventData.upcomingEventText),Number(W.upcomingEventData.startTime)));return l};
_.t.observeDataForBylineSeparator=function(){this.data&&_.pG(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.t.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.ta(this.metadataColor)};
_.t.getSimpleString=function(W){return _.dE(W)};
_.t.isBylineHidden=function(W){return this.noByline||!((W==null?0:W.longBylineText)||(W==null?0:W.shortBylineText))};
_.t.isMetadataHidden=function(W){var l;return((l=this.getMetadata(W))==null?void 0:l.length)===0};
_.t.isBylineMetadataSeparatorHidden=function(W){return this.isMetadataHidden(W)||!this.shouldShowVideoInfo};
_.t.isLongByline=function(W,l){return l&&!(W==null||!W.longBylineText)};
_.rc.Object.defineProperties(OT.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var W;return this.amsterdamPostMvp&&!((W=this.data)==null||!W.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 _.U("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
OT.prototype.metadataColorChanged=OT.prototype.metadataColorChanged;OT.prototype.observeDataForBylineSeparator=OT.prototype.observeDataForBylineSeparator;_.a([_.F(_.dx),_.z("design:type",Object)],OT.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],OT.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],OT.prototype,"noEndpoints",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],OT.prototype,"isSlimShort",void 0);
_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],OT.prototype,"radioMeta",void 0);_.a([_.b({selector:_.EZ}),_.z("design:type",Object)],OT.prototype,"isGridViewEnabled",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],OT.prototype,"richMeta",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],OT.prototype,"amsterdamPostMvp",void 0);_.a([_.b(),_.z("design:type",Boolean)],OT.prototype,"noByline",void 0);
_.a([_.b({computed:"isLongByline(data, radioMeta)"}),_.z("design:type",Boolean)],OT.prototype,"longByline",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],OT.prototype,"truncateMetadataLine",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],OT.prototype,"miniMode",void 0);_.a([_.b(),_.z("design:type",Number)],OT.prototype,"metadataColor",void 0);_.a([_.b(),_.z("design:type",Array)],OT.prototype,"badges",void 0);
_.a([_.b({selector:_.rE,selectorArgs:["data.videoId"]}),_.z("design:type",String)],OT.prototype,"transferState",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],OT.prototype,"isDownloading",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],OT.prototype,"typographyBump",void 0);_.a([_.Aa("#metadata-line"),_.z("design:type",HTMLElement)],OT.prototype,"metadataLine",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OT.prototype,"observeDataForBylineSeparator",null);_.a([_.TS("metadataColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OT.prototype,"metadataColorChanged",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],OT.prototype,"shouldShowVideoInfo",null);
_.a([_.G("badges"),_.z("design:type",String),_.z("design:paramtypes",[])],OT.prototype,"inlineBadgeClass",null);_.a([_.G("longByline"),_.z("design:type",String),_.z("design:paramtypes",[])],OT.prototype,"longBylineClass",null);_.a([_.G("data","longByline"),_.z("design:type",Object),_.z("design:paramtypes",[])],OT.prototype,"bylineText",null);_.a([_.G("isGridViewEnabled","data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],OT.prototype,"watchFeedBigThumbs",null);
_.a([_.A({is:"ytd-video-meta-block",disableElementRegistration:!0})],OT);
_.Z(OT,"ytd-video-meta-block",function(){if(NGM!==void 0)return NGM;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return NGM=W},{mode:_.bD("kevlar_poly_si_batch_j080")?1:2});_.e1("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var a2=function(){var W=_.I.apply(this,arguments)||this;W.displayItemCount=2;W.isBackstagePlaylist=!1;W.isPostCompactPlaylist=!1;W.shouldShowChannelThumbnail=!1;W.useModernCollectionsV2=_.U("web_modern_collections_v2");return W};
_.v(a2,_.I);_.t=a2.prototype;_.t.computeFirstVideos=function(W,l){return W===void 0||l===void 0?[]:W.slice(0,l)};
_.t.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var W=this.data.thumbnailRenderer;W.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",W.playlistVideoThumbnailRenderer.thumbnail);W.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",W.playlistCustomThumbnailRenderer.thumbnail)}};
_.t.computeThumbnailHeight=function(W,l,V,f,r){return f?r==="BIG"?280:r==="MASSIVE"?337:234:V?240:l?72:W?118:138};
_.t.computeThumbnailWidth=function(W,l,V,f,r){return f?r==="MEDIUM"?450:r==="BIG"?500:r==="MASSIVE"?600:420:V?360:l?128:W?210:246};
_.t.computeUseBiggerThumbs=function(W){return W&&_.U("enable_desktop_search_bigger_thumbs")};
_.t.computeShouldShowChannelThumbnail=function(W,l){return W&&!(l==null||!l.channelThumbnail)};
_.rc.Object.defineProperties(a2.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
a2.prototype.dataChanged=a2.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],a2.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.FK),_.z("design:type",Object)],a2.prototype,"ytdLockupBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],a2.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],a2.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],a2.prototype,"displayItemCount",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],a2.prototype,"isBackstagePlaylist",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],a2.prototype,"isPostCompactPlaylist",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],a2.prototype,"isSearch",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.z("design:type",Boolean)],a2.prototype,"useBiggerThumbs",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.gU("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],a2.prototype,"biggerThumbsStyle",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],a2.prototype,"isDownloads",void 0);_.a([_.b({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.z("design:type",Object)],a2.prototype,"shouldShowChannelThumbnail",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],a2.prototype,"useModernCollectionsV2",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],a2.prototype,"dataChanged",null);_.a([_.G("isSearch"),_.z("design:type",String),_.z("design:paramtypes",[])],a2.prototype,"stackThumbnailSize",null);_.a([_.A({is:"ytd-playlist-renderer",disableElementRegistration:!0})],a2);
_.Z(a2,"ytd-playlist-renderer",function(){if(Gle===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);Gle=W}W=Gle;return W},{mode:1});var Ykk;var xW1;var zj=function(){var W=_.I.apply(this,arguments)||this;W.collections=!!_.U("web_modern_collections_v2");W.startX=0;return W};
_.v(zj,_.I);zj.prototype.onEndpointMouseDown=function(W){this.startX=W.clientX};
zj.prototype.onEndpointClick=function(W){this.startX!==W.clientX&&(W.preventDefault(),W.stopPropagation())};
zj.prototype.computeObjectFit=function(W){return W==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||W==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||W==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
zj.prototype.computeCardStyle=function(W){return W?W.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.rc.Object.defineProperties(zj.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var W,l;return this.collections&&((W=this.data)==null?void 0:(l=W.searchRefinementCardRendererStyle)==null?void 0:l.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}}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],zj.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],zj.prototype,"data",void 0);_.a([_.b({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.z("design:type",Number)],zj.prototype,"objectFit",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.z("design:type",String)],zj.prototype,"cardStyle",void 0);
_.a([_.b({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],zj.prototype,"roundContainer",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],zj.prototype,"collections",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],zj.prototype,"isAlbumCard",null);_.a([_.G("data","collections","isAlbumCard"),_.z("design:type",Object),_.z("design:paramtypes",[])],zj.prototype,"collectionStack",null);
_.a([_.A({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],zj);
_.Z(zj,"ytd-search-refinement-card-renderer",function(){if(xW1!==void 0)return xW1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return xW1=W},{mode:1});var e_M;var NA=function(){var W=_.I.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.v(NA,_.I);_.a([_.b(),_.z("design:type",Object)],NA.prototype,"data",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],NA.prototype,"componentBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],NA.prototype,"ytdReduxBehavior",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],NA.prototype,"isRichGrid",void 0);_.a([_.b({reflectToAttribute:!0,selector:_.$H}),_.z("design:type",Boolean)],NA.prototype,"miniMode",void 0);
_.a([_.A({is:"ytd-game-details-renderer",disableElementRegistration:!0})],NA);
_.Z(NA,"ytd-game-details-renderer",function(){if(e_M!==void 0)return e_M;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return e_M=W},{mode:1});var qkL;var h_B;var YO=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return W};
_.v(YO,_.I);_.t=YO.prototype;_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.t.currentStateData=function(W){var l=W||this.data;return l&&l.states&&l.currentStateId!=null?l.states.find(function(V){return V.stateId===l.currentStateId})||null:null};
_.t.currentStateRendererData=function(W){return(W=this.currentStateData(W))&&W.state&&W.state.buttonRenderer?W.state.buttonRenderer:null};
_.t.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())};
_.t.computeButtonIcon=function(W){W=this.currentStateRendererData(W);var l;return(W==null?0:(l=W.icon)==null?0:l.iconType)?W.icon.iconType.toLowerCase():null};
_.t.computeAccessibility=function(W){return(W=this.currentStateRendererData(W))&&W.accessibilityData?W.accessibilityData.accessibilityData||null:null};
_.t.computeButtonClass=function(W){var l=this.currentStateRendererData(W);if(!l)return"";W="";var V=l.style;V&&(W+=V.toLowerCase().replace(/_/g,"-")+" ");(l=l.size)&&(W+=l.toLowerCase().replace(/_/g,"-")+" ");return W.trim()};
_.t.computeServiceEndpoint=function(W){if(!W)return null;var l=W&&W.serviceEndpoint,V=this.get("command.commandMetadata.webCommandMetadata.sendPost",W);return l?l:V&&W.command?W.command:null};
_.t.computeBellMenuItemParams=function(W){var l;W=(l=_.k(W==null?void 0:W.command,_.Ig))==null?void 0:l.commands;if(!W||W.length===0)return null;l=_.k(W[0],_.Ss);var V,f;return(l==null?0:(V=l.popup)==null?0:(f=V.menuPopupRenderer)==null?0:f.items)?l.popup.menuPopupRenderer.items.map(function(r){return r.menuServiceItemRenderer.trackingParams}):null};
_.t.handleBellMenuOpenSelectedAction=function(W){var l=W.trackingParams,V=this.computeBellMenuItemParams(this.data);this.data&&l&&V&&V.includes(l)&&this.ytRenderButtonBehavior._setButtonIcon(W.icon.iconType.toLowerCase())};
_.t.onYtServiceRequestCompleted=function(W,l){(W=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",l))&&this.set("data",W)};
_.t.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.t.resetState=function(){this.set("data.currentStateId",3)};
_.t.onYtButtonTapHandler=function(){if(this.data){var W=this.currentStateRendererData(this.data);W&&this.ytRendererBehavior.logExplicitClick(W)}};
YO.prototype.onYtServiceRequestError=YO.prototype.onYtServiceRequestError;YO.prototype.onYtServiceRequestCompleted=YO.prototype.onYtServiceRequestCompleted;YO.prototype.stateChanged=YO.prototype.stateChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],YO.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],YO.prototype,"ytActionHandlerBehavior",void 0);
_.a([_.F(R8.YtRenderButtonBehavior),_.z("design:type",Object)],YO.prototype,"ytRenderButtonBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],YO.prototype,"data",void 0);_.a([_.zS("data","data.currentStateId"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YO.prototype,"stateChanged",null);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],YO.prototype,"onYtServiceRequestCompleted",null);_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],YO.prototype,"onYtServiceRequestError",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],YO);
_.Z(YO,"ytd-subscription-notification-toggle-button-renderer",function(){if(h_B!==void 0)return h_B;var W=document.createElement("template");_.K(W,"\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");W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return h_B=W},{mode:1});var Ske;var xO=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};W.tapHandler=function(){if(W.data){var l=W.currentStateRendererData();l&&W.ytRendererBehavior.logExplicitClick(l)}};
return W};
_.v(xO,_.I);_.t=xO.prototype;_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.t.currentStateData=function(){var W=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(l){return l.stateId===W.data.currentStateId})||null:null};
_.t.currentStateRendererData=function(){var W=this.currentStateData();return W&&W.state&&W.state.buttonRenderer?W.state.buttonRenderer:null};
_.t.computeAccessibilityLabel=function(){var W,l,V;return(W=this.currentStateRendererData())==null?void 0:(l=W.accessibilityData)==null?void 0:(V=l.accessibilityData)==null?void 0:V.label};
_.t.computeBellMenuItemParams=function(){var W,l,V=(l=_.k((W=this.data)==null?void 0:W.command,_.Ig))==null?void 0:l.commands;if(!V||V.length===0)return null;W=_.k(V[0],_.Ss);var f,r;return(W==null?0:(f=W.popup)==null?0:(r=f.menuPopupRenderer)==null?0:r.items)?W.popup.menuPopupRenderer.items.map(function(R){return R.menuServiceItemRenderer.trackingParams}):null};
_.t.handleBellMenuOpenSelectedAction=function(W){var l=W.trackingParams,V=this.computeBellMenuItemParams();if(this.data&&l&&V&&V.includes(l)&&(W==null||!W.isDisabled)){var f;((f=_.k(W.serviceEndpoint,_.mA))==null?void 0:f.signal)!=="CLIENT_SIGNAL"&&(this.icon=W.icon.iconType)}};
_.t.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.t.onYtServiceRequestCompleted=function(W,l){if(W=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",l))this.icon=void 0,this.set("data",W)};
_.t.onYtServiceRequestError=function(){this.icon=void 0};
_.rc.Object.defineProperties(xO.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=this.data,l=this.textLabel,V=this.hostElement,f=this.computeAccessibilityLabel(),r=this.tapHandler,R=this.isOverlay?"overlay":"mono",y=(W==null?0:W.disableButton)?"disabled":"active";l=l?_.$J(l):void 0;return{style:R,type:"tonal",state:y,size:"M",focused:!1,formattedButtonText:l,iconPosition:"leading-trailing",onTap:Hbj(W,r,V),accessibilityLabel:f}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var W=this.currentStateRendererData(),l,V,f=(V=this.icon)!=null?V:W==null?void 0:(l=W.icon)==null?void 0:l.iconType;if(f)return _.IJ(f)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var W,l,V=(W=this.data)==null?void 0:(l=W.secondaryIcon)==null?void 0:l.iconType;if(V)return _.IJ(V)}}});
xO.prototype.onYtServiceRequestError=xO.prototype.onYtServiceRequestError;xO.prototype.onYtServiceRequestCompleted=xO.prototype.onYtServiceRequestCompleted;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],xO.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],xO.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],xO.prototype,"textLabel",void 0);
_.a([_.b(),_.z("design:type",String)],xO.prototype,"icon",void 0);_.a([_.b(),_.z("design:type",Boolean)],xO.prototype,"isOverlay",void 0);_.a([_.G("data.*","textLabel"),_.z("design:type",Object),_.z("design:paramtypes",[])],xO.prototype,"computedButtonShape",null);_.a([_.G("data.*","icon"),_.z("design:type",Object),_.z("design:paramtypes",[])],xO.prototype,"computedIcon",null);_.a([_.G("computedIcon"),_.z("design:type",Object),_.z("design:paramtypes",[])],xO.prototype,"computedAnimateIcon",null);
_.a([_.G("data.*"),_.z("design:type",Object),_.z("design:paramtypes",[])],xO.prototype,"computedSecondaryIcon",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],xO.prototype,"onYtServiceRequestCompleted",null);_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],xO.prototype,"onYtServiceRequestError",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],xO);
_.Z(xO,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(Ske!==void 0)return Ske;var W=document.createElement("template");_.K(W,'\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 Ske=W},{mode:_.bD("kevlar_poly_si_batch_j081")?1:2});var Eo1;_.HI(Eik,"yt-animated-action",{props:{backgroundLottieRef:_.pA,foregroundLottieRef:_.pA,wrapperClass:_.pA,disableAnimation:_.pA},unsafeExternallySettableAttributes:new Set(["key"])});var eW=function(){var W=_.I.apply(this,arguments)||this;W.animatedActionEnabled=_.U("web_animated_actions");W.foregroundLottieRef={};W.backgroundLottieRef={};W.forceIconOnly=!1;W.showTextWhileAnimating=!1;W.keyboardFocused=!1;W.isAnimating=!1;W.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return W};
_.v(eW,_.I);_.t=eW.prototype;_.t.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.t.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]]"}}}}}};
_.t.attached=function(){this.keyboardFocused=!1};
_.t.onYtServiceRequestSent=function(W,l){(this.get("endpoint.subscribeEndpoint",l)||this.get("endpoint.unsubscribeEndpoint",l))&&this.updateSubscriptionState(!this.subscribed)};
_.t.onYtServiceRequestCompleted=function(W,l){(W=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",l.data))&&this.bellButton&&(this.bellButton.data=W)};
_.t.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.I1(this.hostElement)};
_.t.onPlayerSubscribe=function(W){this.isCompactRed()||W!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.t.onPlayerUnsubscribe=function(W){this.isCompactRed()||W!==this.data.channelId||this.updateSubscriptionState(!1)};
_.t.handleUpdateSubscribeButtonAction=function(W){W=_.k(W,Qr9);var l;W&&W.channelId===((l=this.data)==null?void 0:l.channelId)&&this.updateSubscriptionState(!!W.subscribed)};
_.t.computeButtonStyle=function(W){return this.get("style.styleType",W)||null};
_.t.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.t.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.t.updateSubscriptionState=function(W){if(W!==this.subscribed){this.set("data.subscribed",W);var l,V=(l=this.data)==null?void 0:l.subscribedEntityKey;V&&this.ytdReduxBehavior.dispatch(_.MB("subscriptionStateEntity",V,{key:V,subscribed:W}));this.isCompactRed()||_.FN(this.hostElement,"yt-subscription-changed",W);W||(_.Gt(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!W),W&&this.hasBellButton&&this.startAnimation())}};
_.t.startAnimation=function(){var W=this;if(!this.isAnimating){var l=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var V;(V=this.backgroundLottieRef.lottieEl)==null||V.goToAndPlay(0);var f;(f=this.foregroundLottieRef.lottieEl)==null||f.goToAndPlay(0);_.w8.addJob(function(){W.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.w8.addJob(function(){W.updateContainerToFitContent(!!W.subscribed,!0)},2,1500);
_.w8.addJob(function(){W.isAnimating=!1},2,l)}};
_.t.maybeAnimateBellIcon=function(){var W=_.bm(this.hostElement).querySelector("yt-animated-icon");if(W){var l;(l=W.animationRef.lottieEl)==null||l.goToAndPlay(0)}};
_.t.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.t.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.t.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var W;this.unsubscribedWidth=(W=this.subscribeButtonShape)==null?void 0:W.getBoundingClientRect().width}var l;this.subscribedWidth=(l=this.bellButton)==null?void 0:l.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.t.updateContainerToFitContent=function(W,l){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(W?(W=this.subscribedWidth,l=this.isAnimating&&!l,this.subscribedIconOnlyWidth===void 0||l||(W=this.subscribedIconOnlyWidth),this.hostElement.style.width=W+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.t.clearContainerSize=function(){this.hostElement.style.width=""};
_.t.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.t.maybeSetSubscribedButtonIconOnlyWidth=function(){var W=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 l;W.subscribedIconOnlyWidth=(l=W.bellButton)==null?void 0:l.getBoundingClientRect().width;requestAnimationFrame(function(){if(W.bellButton){var V;W.bellButton.textLabel=
(V=W.data)==null?void 0:V.subscribedButtonText}})})))};
_.rc.Object.defineProperties(eW.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 W;return(W=this.data)==null?void 0:W.subscribedButtonText}var l;return this.forceIconOnly?void 0:(l=this.data)==null?void 0:l.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var W,l,V=((W=this.data)==null?void 0:(l=W.timedAnimationData)==null?void 0:l.animationTiming)||[];return{uniqueId:"subscribe",timings:V,enabled:V.length>0&&!this.subscribed,experimentEnabled:V.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var W;return!this.subscribed&&((W=this.data)==null?void 0:W.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 W={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var l=W.renderer;var V=W.element;var f=W.subscribed;var r=W.commandController;var R=W.isOverlay;W=W.stopPropagation;var y=bb8(l,f);R&&(y.style="overlay");R=Object;var P=R.assign,n;a:switch((n=l.style)==null?void 0:n.styleType){case "COMPACT_GRAY":case "COMPACT_RED":n={size:"S"};break a;default:n={size:"M"}}var B=Glq(l,
f);var d=(d=f?l.subscribedButtonText:l.unsubscribedButtonText)?_.$J(d):void 0;return P.call(R,{},y,n,{focused:!1,toggled:f,accessibilityLabel:B,formattedButtonText:d,onTap:FCg(l,f,V,r,W)})}}}});
eW.prototype.onMouseDown=eW.prototype.onMouseDown;eW.prototype.onDataChanged=eW.prototype.onDataChanged;eW.prototype.observedSubscribed=eW.prototype.observedSubscribed;eW.prototype.onYtServiceRequestCompleted=eW.prototype.onYtServiceRequestCompleted;eW.prototype.onYtServiceRequestSent=eW.prototype.onYtServiceRequestSent;eW.prototype.maybeUpdateBellButtonText=eW.prototype.maybeUpdateBellButtonText;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],eW.prototype,"ytComponentBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],eW.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],eW.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],eW.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],eW.prototype,"data",void 0);
_.a([_.b({selectorArgs:["data.subscribedEntityKey"],selector:GcY}),_.z("design:type",Object)],eW.prototype,"subscriptionStateEntity",void 0);_.a([_.b({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.z("design:type",Boolean)],eW.prototype,"subscribed",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],eW.prototype,"branded",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],eW.prototype,"animatedActionEnabled",void 0);
_.a([_.b(),_.z("design:type",Object)],eW.prototype,"foregroundLottieRef",void 0);_.a([_.b(),_.z("design:type",Object)],eW.prototype,"backgroundLottieRef",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],eW.prototype,"overlayButton",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.z("design:type",Object)],eW.prototype,"buttonStyle",void 0);_.a([_.b(),_.z("design:type",Object)],eW.prototype,"forceIconOnly",void 0);
_.a([_.b(),_.z("design:type",Object)],eW.prototype,"showTextWhileAnimating",void 0);_.a([_.b({value:function(){return!!_.tY().resolve(_.R0(_.Q5))&&_.U("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.z("design:type",Boolean)],eW.prototype,"useKeyboardFocused",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],eW.prototype,"keyboardFocused",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],eW.prototype,"isAnimating",void 0);_.a([_.G("data.notificationPreferenceButton.*"),_.z("design:type",Object),_.z("design:paramtypes",[])],eW.prototype,"hasBellButton",null);
_.a([_.TS("subscribedButtonText"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],eW.prototype,"maybeUpdateBellButtonText",null);_.a([_.G("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.z("design:type",Object),_.z("design:paramtypes",[])],eW.prototype,"subscribedButtonText",null);_.a([_.G("data.timedAnimationData.animationTiming","subscribed"),_.z("design:type",Object),_.z("design:paramtypes",[])],eW.prototype,"smartimationSettings",null);
_.a([_.b({reflectToAttribute:!0}),_.G("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.z("design:type",Object),_.z("design:paramtypes",[])],eW.prototype,"subscribeButtonHidden",null);_.a([_.b({reflectToAttribute:!0}),_.G("subscribed","hasBellButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],eW.prototype,"subscribeButtonInvisible",null);
_.a([_.b({reflectToAttribute:!0}),_.G("subscribed"),_.z("design:type",Object),_.z("design:paramtypes",[])],eW.prototype,"unsubscribeButtonHidden",null);_.a([_.Aa("ytd-subscription-notification-toggle-button-renderer-next"),_.z("design:type",Object)],eW.prototype,"bellButton",void 0);_.a([_.Aa("#subscribe-button-shape"),_.z("design:type",HTMLElement)],eW.prototype,"subscribeButtonShape",void 0);
_.a([_.G("overlayButton","subscribed","data"),_.z("design:type",Object),_.z("design:paramtypes",[])],eW.prototype,"buttonShape",null);_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],eW.prototype,"onYtServiceRequestSent",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],eW.prototype,"onYtServiceRequestCompleted",null);
_.a([_.TS("subscribed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],eW.prototype,"observedSubscribed",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],eW.prototype,"onDataChanged",null);_.a([_.XI("mousedown"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],eW.prototype,"onMouseDown",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],eW);
_.Z(eW,"ytd-subscribe-button-renderer",function(){if(Eo1!==void 0)return Eo1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Eo1=W},{mode:1});var qA=function(){var W=_.I.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.v(qA,_.I);qA.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"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],qA.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],qA.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],qA.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qA.prototype,"isRichGrid",void 0);_.a([_.A({is:"ytd-game-card-renderer",disableElementRegistration:!0})],qA);
_.Z(qA,"ytd-game-card-renderer",function(){if(qkL!==void 0)return qkL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return qkL=W},{mode:1});var hq={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.U("defer_menus")&&!wcX?0:void 0,waitForSignal:"eocs"};var $W$;var WUk;var SW=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return W};
_.v(SW,_.I);_.t=SW.prototype;_.t.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.t.onSeriesReminderStateEntityChange=function(){var W,l,V;((W=this.eventReminderStateEntity)==null?0:W.key)&&((l=this.seriesReminderStateEntity)==null?void 0:l.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((V=this.eventReminderStateEntity)==null?void 0:V.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.MB("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.t.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.t.onYtServiceRequestError=function(){var W;this.updateReminderStateEntitiesFromButtonState((W=this.data)==null?void 0:W.currentState)};
_.t.handleUpdateUpcomingEventReminderButtonStateCommand=function(W){if(W=_.k(W,ISc)){var l,V=(l=this.data)==null?void 0:l.targetId;V&&W.targetId===V&&_.yq(this.updateReminderStateEntitiesFromButtonState.bind(this,W.state))}};
_.t.getButtonStateFromReminderState=function(){var W;if(((W=this.seriesReminderStateEntity)==null?void 0:W.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var l;if(((l=this.eventReminderStateEntity)==null?void 0:l.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var V,f;if(((V=this.seriesReminderStateEntity)==null?void 0:V.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((f=this.eventReminderStateEntity)==
null?void 0:f.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var r;return(r=this.data)==null?void 0:r.currentState};
_.t.updateReminderStateEntitiesFromButtonState=function(W){if(W){switch(W){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":W="UPCOMING_EVENT_REMINDER_STATE_NONE";var l="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":W="UPCOMING_EVENT_REMINDER_STATE_SINGLE";l="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":W="UPCOMING_EVENT_REMINDER_STATE_NONE";l="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var V;
((V=this.eventReminderStateEntity)==null?0:V.key)&&this.ytdReduxBehavior.dispatch(_.MB("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:W})));var f;((f=this.seriesReminderStateEntity)==null?0:f.key)&&this.ytdReduxBehavior.dispatch(_.MB("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:l})))}};
_.rc.Object.defineProperties(SW.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var W=this.getButtonStateFromReminderState(),l,V;if(W&&((l=this.data)==null?0:(V=l.states)==null?0:V.length))for(l=_.L(this.data.states),V=l.next();!V.done;V=l.next()){V=V.value;var f=void 0;if(((f=_.k(V,iAM))==null?void 0:f.state)===W)return _.k(V,iAM)}}}});
SW.prototype.onYtServiceRequestError=SW.prototype.onYtServiceRequestError;SW.prototype.onYtServiceRequestCompleted=SW.prototype.onYtServiceRequestCompleted;SW.prototype.onSeriesReminderStateEntityChange=SW.prototype.onSeriesReminderStateEntityChange;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],SW.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],SW.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],SW.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],SW.prototype,"data",void 0);_.a([_.b({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:pNq}),_.z("design:type",Object)],SW.prototype,"eventReminderStateEntity",void 0);
_.a([_.b({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(W,l){return _.mL(W.entities,"sportsSeriesReminderStateEntity",l)}}),
_.z("design:type",Object)],SW.prototype,"seriesReminderStateEntity",void 0);_.a([_.G("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],SW.prototype,"currentButtonStateRenderer",null);_.a([_.TS("seriesReminderStateEntity"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SW.prototype,"onSeriesReminderStateEntityChange",null);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SW.prototype,"onYtServiceRequestCompleted",null);_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SW.prototype,"onYtServiceRequestError",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],SW);
_.Z(SW,"ytd-upcoming-event-reminder-button-renderer",function(){if(WUk!==void 0)return WUk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
return WUk=W},{mode:1});var lCL;var ET=function(){return _.I.apply(this,arguments)||this};
_.v(ET,_.I);ET.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.rc.Object.defineProperties(ET.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(_.U("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ET.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ET.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ET.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],ET.prototype,"shelfDismissal",void 0);_.a([_.G("data.responseText"),_.z("design:type",Object),_.z("design:paramtypes",[])],ET.prototype,"text",null);
_.a([_.G("data.responseText"),_.z("design:type",Object),_.z("design:paramtypes",[])],ET.prototype,"textAriaLabel",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],ET);
_.Z(ET,"ytd-notification-multi-action-renderer",function(){if(lCL!==void 0)return lCL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return lCL=W},{mode:1});var VTX;var $O=function(){return _.I.apply(this,arguments)||this};
_.v($O,_.I);$O.prototype.ready=function(){var W=this;_.GS(this.hostElement).querySelector("#undo").addEventListener("tap",function(){W.onUndoTap()})};
$O.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.tY().resolve(_.s6).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],$O.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],$O.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],$O);
_.Z($O,"ytd-notification-text-renderer",function(){if(VTX!==void 0)return VTX;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return VTX=W},{mode:1});var fCM;var Wx=function(){var W=_.I.apply(this,arguments)||this;W.mouseOverDelayJobId=0;W.fadeInImageDelayJobId=0;W.startTimeMs=-1;W.loadingStartTimeMs=-1;W.loadingEndTimeMs=-1;W.hasVideoPreview=!1;return W};
_.v(Wx,_.I);_.t=Wx.prototype;_.t.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.t.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.t.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.t.showThumbnail=function(){var W=this;this.csn=_.Wh();_.l_("fmth");_.w8.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.pP(_.w8,function(){W.loadingStartTimeMs=(0,_.tv)();var l=_.GS(W.hostElement).querySelector("#thumbnail");l.complete?W.displayMouseOverImage():l.addEventListener("load",_.mz(W,W.displayMouseOverImage))},150):_.pG(_.GS(this.hostElement).querySelector("#play"),"show",!0)};
_.t.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.t.onTap=function(){this.removeVideoPreview()};
_.t.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var W=this.videoId,l=this.csn,V=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,f=this.startTimeMs,r=this.hasVideoPreview,R=_.zG(this.trackingParams),y={isMovingThumbnail:r};r&&f>0&&(V>0&&(y.movingThumbnailLoadingDurationMs=Math.round(V)),y.durationHoveredMs=Math.round((0,_.tv)()-f));W&&(y.videoId=W);_.cy(l,R,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:y});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.t.removeVideoPreview=function(){_.w8.cancelJob(this.mouseOverDelayJobId);_.w8.cancelJob(this.fadeInImageDelayJobId);var W=_.GS(this.hostElement).querySelector("#thumbnail");_.pG(W,"fade-in",!1);W.removeEventListener("load",_.mz(this,this.displayMouseOverImage));W=_.GS(this.hostElement).querySelector("#play");_.pG(W,"fade-in",!1);_.pG(W,"show",!1)};
_.t.displayMouseOverImage=function(){var W=_.GS(this.hostElement).querySelector("#thumbnail"),l=_.GS(this.hostElement).querySelector("#play");this.isImageAvailable(W)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.tv)(),this.startTimeMs=(0,_.tv)(),this.fadeInImageDelayJobId=_.pP(_.w8,function(){_.pG(W,"fade-in",!0)},50)):_.pG(l,"fade-in",!0)};
_.t.computeThumbnail=function(W,l){var V;W&&W.movingThumbnailDetails&&W.movingThumbnailDetails.thumbnails&&l?V=_.KP(W.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):V=l?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(V)return _.NI(V)};
_.t.isImageAvailable=function(W){return!(!W.src||W.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||W.naturalWidth===120)};
Wx.prototype.onTap=Wx.prototype.onTap;Wx.prototype.dataChanged=Wx.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Wx.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Wx.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Wx.prototype,"csn",void 0);_.a([_.b(),_.z("design:type",Object)],Wx.prototype,"trackingParams",void 0);
_.a([_.b(),_.z("design:type",String)],Wx.prototype,"videoId",void 0);_.a([_.b(),_.z("design:type",Boolean)],Wx.prototype,"isAttachedAndDataSet",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wx.prototype,"dataChanged",null);_.a([_.XI("click"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wx.prototype,"onTap",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Wx);
_.Z(Wx,"ytd-moving-thumbnail-renderer",function(){if(fCM!==void 0)return fCM;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return fCM=W},{mode:1});var r0c;_.Dm=function(W){this.hostElement=W;this.eventSink=null;this.eventList=[]};
_.Dm.prototype.shouldForward=function(){var W,l;return(l=(W=this.eventSink)==null?void 0:W.isConnected)!=null?l:document.body.contains(this.eventSink)};
_.Dm.prototype.start=function(W,l){this.eventSink&&this.stop();for(var V=0;V<W.length;V++)this.hostElement.addEventListener(W[V],_.mz(this,this.forwardEvent));var f;this.eventSink=(f=l.hostElement)!=null?f:l;this.eventList=W};
_.Dm.prototype.stop=function(){for(var W=0;W<this.eventList.length;W++)this.hostElement.removeEventListener(this.eventList[W],_.mz(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.Dm.prototype.forwardEvent=function(W,l){this.shouldForward()&&(W.stopPropagation(),this.eventSink instanceof Element?_.FN(this.eventSink,W.type,l):_.Qe(new _.bP("eventSink is not an element")))};_.lr={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.Dm(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(W,l){this.forwarder_.start(W,l)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var VF=function(){return _.I.apply(this,arguments)||this};
_.v(VF,_.I);_.t=VF.prototype;_.t.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=_.M4("HTML_DIR")==="rtl"?"right":"left"};
_.t.dataChanged=function(){this.popupOpen=!1};
_.t.computeAriaLabel=function(W){return _.k(W,tk$).label};
_.t.onTap=function(W){W.stopPropagation();W.preventDefault();this.data.command&&_.tY().resolve(_.s6).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.t.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.t.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
VF.prototype.onPopupClosed=VF.prototype.onPopupClosed;VF.prototype.onPopupOpened=VF.prototype.onPopupOpened;VF.prototype.onTap=VF.prototype.onTap;VF.prototype.dataChanged=VF.prototype.dataChanged;_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],VF.prototype,"eventForwardingBehavior",void 0);_.a([_.F(_.VO),_.z("design:type",Object)],VF.prototype,"ironButtonState",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],VF.prototype,"componentBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],VF.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,value:-1}),_.z("design:type",Number)],VF.prototype,"tabindex",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.z("design:type",Object)],VF.prototype,"ariaLabel",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],VF.prototype,"disableTooltips",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],VF.prototype,"popupOpen",void 0);
_.a([_.b(),_.z("design:type",Element)],VF.prototype,"eventSink",void 0);_.a([_.Aa("#tooltip"),_.z("design:type",Object)],VF.prototype,"tooltip",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],VF.prototype,"dataChanged",null);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],VF.prototype,"onTap",null);
_.a([_.XI("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],VF.prototype,"onPopupOpened",null);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],VF.prototype,"onPopupClosed",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],VF);
_.Z(VF,"ytd-thumbnail-overlay-button-renderer",function(){if(r0c!==void 0)return r0c;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return r0c=W},{mode:1});var RGL;var f_=function(){return _.I.apply(this,arguments)||this};
_.v(f_,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],f_.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],f_.prototype,"disableAnimation",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],f_.prototype,"rounded",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],f_.prototype,"transparentBackground",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],f_.prototype,"noPadding",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],f_);
_.Z(f_,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(RGL!==void 0)return RGL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return RGL=W},{mode:1});var tTM;var rn=function(){return _.I.apply(this,arguments)||this};
_.v(rn,_.I);rn.prototype.computeIconPosition=function(W){return this.get("iconPosition",W)||null};
rn.prototype.computeIconStyle=function(W){return this.get("iconStyle",W)||null};
rn.prototype.computeIsIconStyleFilled=function(W){if(!W)return!1;var l;return W.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((l=W.icon)==null?void 0:l.iconType)==="ERROR_BLACK"};
_.a([_.b(),_.z("design:type",Object)],rn.prototype,"data",void 0);_.a([_.b({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.z("design:type",Object)],rn.prototype,"iconPosition",void 0);_.a([_.b({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.z("design:type",Object)],rn.prototype,"iconStyle",void 0);_.a([_.b({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],rn.prototype,"iconStyleFilled",void 0);
_.a([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],rn);
_.Z(rn,"ytd-thumbnail-overlay-icon-renderer",function(){if(tTM!==void 0)return tTM;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return tTM=W},{mode:1});var sSM;var Ru=function(){return _.I.apply(this,arguments)||this};
_.v(Ru,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Ru.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Ru.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],Ru);
_.Z(Ru,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(sSM!==void 0)return sSM;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return sSM=W},{mode:1});var LUL;var t8=function(){var W=_.I.apply(this,arguments)||this;W.isPreviewLoading=!1;return W};
_.v(t8,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],t8.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],t8.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],t8.prototype,"isPreviewLoading",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],t8);
_.Z(t8,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(LUL!==void 0)return LUL;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return LUL=W},{mode:1});var y09;var sp=function(){return _.I.apply(this,arguments)||this};
_.v(sp,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],sp.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],sp.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],sp);
_.Z(sp,"ytd-thumbnail-overlay-pinking-renderer",function(){if(y09!==void 0)return y09;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return y09=W},{mode:1});var gmc;var L_=function(){var W=_.I.apply(this,arguments)||this;W.disableTooltips=!1;W.isLoading=!1;W.useExpandableTooltip=!1;W.toggled=!1;W.hovered=!1;W.mouseoverDelayJobId=0;W.toggleDelayJobId=0;W.expandAnimationDelayJobId=0;return W};
_.v(L_,_.I);_.t=L_.prototype;_.t.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");_.GS(this.hostElement).querySelector("#tooltip").position=_.M4("HTML_DIR")==="rtl"?"right":"left"};
_.t.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.w8.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.w8.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.w8.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.t.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.w8.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.w8.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.w8.cancelJob(this.expandAnimationDelayJobId)};
_.t.computeIcon=function(W,l,V){return(W=V?l:W)&&W.iconType?_.IJ(W.iconType):void 0};
_.t.computeAriaLabel=function(W,l,V){return _.k(V?l:W,tk$).label};
_.t.computeTooltip=function(W,l,V){return V?l:W};
_.t.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.t.computeIconOnHover=function(W,l){if((W==null?0:W.iconType)&&!l)return _.IJ(W.iconType)};
_.t.onTap=function(W){var l=this;W.stopPropagation();W.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(W=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(W),this.useExpandableTooltip&&(this.toggleDelayJobId=_.pP(_.w8,function(){l.hovered=!1;l.data&&!l.data.toggledServiceEndpoint&&(l.expandAnimationDelayJobId=_.pP(_.w8,function(){l.set("data.isToggled",
!1)},200))},2E3))};
_.t.onMouseenter=function(){var W=this;this.mouseoverDelayJobId=_.pP(_.w8,function(){W.hovered=!0},300)};
_.t.onMouseleave=function(){_.w8.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.t.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.t.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.t.onServiceRequestCompleted=function(W,l){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(l)||this.set("data.isToggled",!this.data.isToggled)};
_.t.serviceRequestWasSuccessful=function(W){return _.k(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.gT)?W.data.status==="STATUS_SUCCEEDED":!0};
L_.prototype.onServiceRequestCompleted=L_.prototype.onServiceRequestCompleted;L_.prototype.onPopupClosed=L_.prototype.onPopupClosed;L_.prototype.onPopupOpened=L_.prototype.onPopupOpened;L_.prototype.onMouseleave=L_.prototype.onMouseleave;L_.prototype.dataChanged=L_.prototype.dataChanged;_.a([_.F(_.VO),_.z("design:type",Object)],L_.prototype,"ironButtonState",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],L_.prototype,"ytComponentBehavior",void 0);
_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],L_.prototype,"ytEventForwardingBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],L_.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.z("design:type",Object)],L_.prototype,"ariaLabel",void 0);_.a([_.b(),_.z("design:type",Object)],L_.prototype,"disableTooltips",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],L_.prototype,"popupOpen",void 0);_.a([_.b(),_.z("design:type",Object)],L_.prototype,"isLoading",void 0);_.a([_.b(),_.z("design:type",Element)],L_.prototype,"eventSink",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],L_.prototype,"useExpandableTooltip",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.z("design:type",Object)],L_.prototype,"toggled",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],L_.prototype,"hovered",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.z("design:type",Object)],L_.prototype,"iconOnHover",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],L_.prototype,"dataChanged",null);
_.a([_.XI("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],L_.prototype,"onMouseleave",null);_.a([_.XI("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],L_.prototype,"onPopupOpened",null);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],L_.prototype,"onPopupClosed",null);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],L_.prototype,"onServiceRequestCompleted",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],L_);
_.Z(L_,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(gmc!==void 0)return gmc;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return gmc=W},{mode:_.bD("kevlar_poly_si_batch_j053")?1:2});var P6k;var nm9=_.Q(function(W){var l=W.data;var V=W.thumbnailSize;var f=function(){return l().enableSegmentView};
return _.C("yt-thumbnail-overlay-progress-bar-view-model",{class:_.If("ytThumbnailOverlayProgressBarHost",function(){return pXS(V==null?void 0:V())})},_.C(_.c,{cond:f,
then:function(){return _.C("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.C("div",{class:_.Yw("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+l().startPercent+"%"}}),_.C("div",{class:_.Yw("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+l().segmentDurationPercent+"%"}},_.C("div",{class:_.Yw("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.C("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.C("div",null," ",function(){return l().segmentLabel})),_.C("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.C("div",{class:_.Yw("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.C(_.c,{cond:function(){return!f()&&l().startPercent},
then:function(){var r={};return _.C("div",{class:_.Yw("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(r.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.U("web_enable_modern_progress_bar_overlay"),r))},_.C("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+l().startPercent+"%"}}))}}))},"X");
nm9.idomCompat=!0;var C6L=_.Q(function(W){var l=_.i$(),V=_.$h(function(r){var R,y,P;a:{var n=(R=W.data())==null?void 0:R.animationActivationTargetId;R=((y=W.data())==null?void 0:y.animationActivationEntityKey)||"";y=(P=W.data())==null?void 0:P.animationActivationEntitySelectorType;if(R&&n)switch(y){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":r=_.mL(r.entities,"playerStateEntity",R);P=_.tY().resolve(_.R0(_.Sl));n=!!(r&&r.videoId===n&&(P==null?0:P.isMiniplayerActive()));n={activated:n,playAnimation:n&&
r.playerState==="PLAYER_STATE_PLAYING"};break a}n=void 0}return n});
_.m1(function(){var r;if((r=V())==null?0:r.activated){var R;if((R=V())==null?0:R.playAnimation){var y;(y=l.lottieEl)==null||y.goToAndPlay(0)}else{var P;(P=l.lottieEl)==null||P.goToAndStop(0)}}},"DbQiXd");
var f=function(){var r,R=!((r=V())==null||!r.activated);if(W.data()){r=W.data();var y=void 0;r.icon&&(y=_.yiq(r.icon),y=d9q(y));var P=void 0,n;if((n=r.backgroundColor)==null?0:n.lightTheme){var B;P={backgroundColor:LG((B=r.backgroundColor)==null?void 0:B.lightTheme,"0.8")}}if(r.text||y||R){if(R&&r.lottieData&&l){B=r.lottieData;var d,J,D;n={animationConfig:{name:B.url,path:B.url,autoplay:(d=B.settings)==null?void 0:d.autoplay,loop:(D=(J=B.settings)==null?void 0:J.loop)!=null?D:!0},animationRef:l}}else n=
void 0;if(R)d=17;else b:switch(r.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":d=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":d=19;break b;default:d=17}R={type:d,text:R&&r.animatedText?r.animatedText:r.text,icon:y,customColors:P,animation:n}}else R=void 0}else R=void 0;return R};
return _.C("yt-thumbnail-badge-view-model",{class:_.If("ytThumbnailBadgeViewModelHost",W.class)},_.C(_.c,{cond:f,then:function(){return _.C(_.di,{data:function(){return f()}})}}))},"Y");var c0a=_.Q(function(W){var l={},V={};return _.C("yt-thumbnail-bottom-overlay-view-model",{class:_.If("ytThumbnailBottomOverlayViewModelHost",(l.ytThumbnailBottomOverlayViewModelHostBackground=function(){return W.data().enableGradientBackground},l))},_.C(_.QH,{data:function(){return W.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(f){return _.C(nm9,{data:f.data,
thumbnailSize:W.thumbnailSize})}}),_.C("div",{class:_.If("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var f;
return ooF((f=W.thumbnailSize)==null?void 0:f.call(W))},(V.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var f;
return(f=W.isClip)==null?void 0:f.call(W)},V.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var f;
return!_.U("web_enable_modern_progress_bar_overlay")&&((f=W.thumbnailSize)==null?void 0:f.call(W))==="small"},V))},_.C(_.QH,{data:function(){return W.data().badge}},{thumbnailBadgeViewModel:function(f){return _.C(C6L,{data:f.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.C(_.QH,{data:function(){return W.data().badges}},{thumbnailBadgeViewModel:function(f){return _.C(C6L,{data:f.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Z");
c0a.idomCompat=!0;_.HI(c0a,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.kh,thumbnailSize:_.kh,isClip:_.kh}});var Mzx={calledOnce:!1,state:"visible"},Zbn={calledOnce:!1,state:"hidden"};var yF=_.Q(function(W){var l=W.data;var V=W.className;W=W.alwaysShow;var f=_.ibv(),r={};return _.C("thumbnail-hover-overlay-view-model",{el:_.DN(_.E_(function(){return l().rendererContext})),
class:_.If("ytThumbnailHoverOverlayViewModelHost",V,(r.ytThumbnailHoverOverlayViewModelHostForceHover=W,r)),"aria-label":function(){var R;return(R=_.k(l().rendererContext,_.N0))==null?void 0:R.label},
role:function(){return _.qB(l().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.qB(l().rendererContext)!==void 0?0:void 0},
"on:keypress":f},_.C("div",{class:_.If("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(l().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var R="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:R="ytThumbnailHoverOverlayViewModelStyleCover"}return R})},_.C(_.c,{cond:function(){return l().icon},
then:function(R){return _.C(_.dN,{data:R,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.C(_.c,{cond:function(){return l().text},
then:function(R){return _.C(_.bH,{text:R,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"$");
yF.idomCompat=!0;var B$B=_.Q(function(W){var l=W.data;return _.C(_.QH,{data:function(){return l==null?void 0:l().overlays}},{thumbnailHoverOverlayViewModel:yF})},"aa");
B$B.idomCompat=!0;var dke={};var J0X=_.Q(function(W){var l=W.data;var V=W.image;var f=W.state;var r=W.iconType;var R=W.overlays;var y=W.isOverlay;var P=_.lN("div");W=_.L(_.J4(!0,void 0,"AA4e7b"));var n=W.next().value,B=W.next().value,d=function(){return!!l().onTap},J=_.JG(r,"LIVE");
_.m1(function(){var u=l();requestAnimationFrame(function(){if(P.value===null)var H=!0;else{var p=P.value;H=u.badgeText;var X=z_q(u.size);H in dke?p=dke[H]:(p=p.clientWidth,dke[H]=p);(H=p>X)?P.value.style.display="none":P.value.style.visibility="visible"}B(H)})},"vNdN8b");
var D=function(){var u={};return u["yt-spec-avatar-shape__image"]=!0,u["yt-spec-avatar-shape__image--ads-app"]=l().type===1,u["yt-spec-avatar-shape__image--square"]=l().type===2,u};
return _.C("yt-avatar-shape",null,_.C("div",{el:_.DN(Ykj(d,{keydown:function(u){if(u.key==="Enter"){var H;(H=u.currentTarget)==null||H.click()}},
click:function(u){var H,p;return void((p=(H=l()).onTap)==null?void 0:p.call(H,u))}})),
class:function(){var u={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},H=l();u=(u[H.clusterLayoutConfig?qkS(H.clusterLayoutConfig):h_F(H.size)]=!0,u["yt-spec-avatar-shape__button--tappable"]=d(),u);(H=l().avatarButtonCustomClassName)&&(u[H]=!0);return _.Yw(u)},
"aria-label":function(){return d()?l().accessibilityText:""},
role:function(){return d()?"button":void 0},
tabindex:function(){return d()?0:void 0}},_.C("div",{class:function(){var u,H=l(),p=f==null?void 0:f(),X=y==null?void 0:y(),w=!((u=H.decorations)==null||!u.includes(2)||H.size!=="medium"&&H.size!=="large"),O=H.size==="tiny"||H.size==="extra-small",S,N,x,Y,W8={};
u=(W8["yt-spec-avatar-shape--live-ring"]=!!(((S=H.decorations)==null?0:S.includes(0))&&Eog(H.size)),W8["yt-spec-avatar-shape--stories-watched"]=w&&!(p==null||!p.storiesWatched),W8["yt-spec-avatar-shape--stories-unwatched"]=w&&!(p==null?0:p.storiesWatched),W8["yt-spec-avatar-shape--background-border"]=$W4(H.decorations)&&!O,W8["yt-spec-avatar-shape--background-border-thin"]=$W4(H.decorations)&&O,W8["yt-spec-avatar-shape__on-select-border"]=!((N=H.decorations)==null||!N.includes(4)),W8["yt-spec-avatar-shape__white-border"]=
!((x=H.decorations)==null||!x.includes(5)),W8["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((Y=H.decorations)==null?0:Y.includes(5))&&O),W8["yt-spec-avatar-shape--is-overlay"]=!!X,W8);return _.Yw(u)},
style:function(){a:{var u=l().clusterLayoutConfig;if(u){b:{var H=u.numAvatarsInCluster;var p=u.avatarIndex;if(p!==H-1){switch(u.clusterSize){case "small":u="32";break;case "medium":u="36";break;case "40":u="40";break;default:H=void 0;break b}H="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+u+"x"+u+"_avatars_"+H+"_index_"+p+".svg"}else H=void 0}if(H){H=_.Tm({"-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}},_.C("div",{class:function(){var u={};
var H=l();u=(u[H.clusterLayoutConfig?xWg(H.clusterLayoutConfig):e_z(H.size)]=!0,u["yt-spec-avatar-shape--no-margin"]=$W4(l().decorations),u);return _.Yw(u)}},_.C(_.dN,{data:V,
alt:function(){return!d()&&l().accessibilityText?l().accessibilityText:""},
targetWidth:function(){return Skq(l().size)},
targetHeight:function(){return Skq(l().size)},
className:function(){return _.Yw(D())}}),_.C(_.c,{cond:function(){var u;
return((u=l().decorations)==null?void 0:u.includes(0))&&Eog(l().size)},
then:function(){return _.C("div",{class:function(){var u={};u=(u["yt-spec-avatar-shape__live-badge"]=!0,u["yt-spec-avatar-shape__live-badge--badge-small"]=l().size==="small",u["yt-spec-avatar-shape__live-badge--badge-medium"]=l().size==="medium"||l().size==="48",u["yt-spec-avatar-shape__live-badge--badge-large"]=l().size==="large",u["yt-spec-avatar-shape__live-badge--badge-extra-large"]=l().size==="extra-large"||l().size==="extra-extra-large"||l().size==="giant",u);return _.Yw(u)}},_.C(_.c,{cond:function(){return l().badgeText},
then:function(u){return _.C("div",{class:"yt-spec-avatar-shape__badge-text",el:P},u)}}),_.C(_.c,{cond:n,
then:function(){return _.C("div",{class:"yt-spec-avatar-shape__badge-icon"},_.C(_.wN,{icon:J,size:function(){a:switch(l().size){case "extra-large":var u=16;break a;default:u=13}return u}}))}}))}}),_.C(_.c,{cond:function(){var u,H;
return((u=l().decorations)==null?void 0:u.includes(1))||((H=l().decorations)==null?void 0:H.includes(0))&&!Eog(l().size)},
then:function(){return _.C("div",{class:function(){var u=l(),H,p,X={};var w=(X["yt-spec-avatar-shape__live-dot"]=!((H=u.decorations)==null||!H.includes(0)||Eog(u.size)),X["yt-spec-avatar-shape__new-content"]=!((p=u.decorations)==null||!p.includes(1)),X);return _.Yw(w)}})}}),_.C(_.c,{cond:function(){return!!R},
then:function(){return _.C("div",{class:function(){var u={};u=Object.assign((u["yt-spec-avatar-shape__image-overlays"]=!0,u),D());return _.Yw(u)}},R==null?void 0:R())}})))))},"ba");
J0X.idomCompat={callbacks:{overlays:!0}};_.gn=_.Q(function(W){function l(){V().endpoint&&_.sZ(V().endpoint)}
var V=W.data;var f=W.decorations;var r=W.avatarButtonCustomClassName;var R=W.isOverlay;var y=W.clusterLayoutConfig;return _.C("avatar-view-model",null,_.C(_.c,{cond:function(){return V().image},
then:function(P){return _.C(J0X,{data:function(){return lCv({data:V(),onTap:V().endpoint?l:void 0,decorations:f==null?void 0:f(),badgeText:void 0,accessibilityText:V().accessibilityText,avatarButtonCustomClassName:r==null?void 0:r(),clusterLayoutConfig:y==null?void 0:y()})},
image:P,iconType:"RADAR_LIVE",overlays:function(){return _.C(B$B,{data:V})},
isOverlay:R})}}))},"ca");
_.gn.idomCompat=!0;_.Px=_.Q(function(W){var l=W.data;W=W.className;var V=_.lN("yt-decorated-avatar-view-model"),f=function(){return _.k(l().avatar,_.$w)},r=_.v4(function(){var R,y=l(),P=f(),n=_.qB(l().rendererContext),B=(R=V.value)!=null?R:void 0,d;
if(P){B={data:y,avatar:P,onTap:n,element:B};R=B.data;y=B.avatar;P=B.onTap;n=B.element;B=B.commandController;P=P?RGv(P,n,B):void 0;n=[];R.liveData&&n.push(0);var J;B=(J=R.liveData)==null?void 0:J.liveBadgeText;J=(d=_.k(R.rendererContext,_.N0))==null?void 0:d.label;d=lCv({data:y,onTap:P,decorations:n,badgeText:B,accessibilityText:J?J:R.a11yLabel})}else d={size:"medium"};return d},void 0,"c00kWd");
return _.C("yt-decorated-avatar-view-model",{class:_.If("ytDecoratedAvatarViewModelHost",W),el:V},_.C(_.c,{cond:function(){var R;return(R=f())==null?void 0:R.image},
then:function(R){return _.C(J0X,{data:r,image:R,iconType:"RADAR_LIVE",overlays:function(){return _.C(B$B,{data:f})}})}}))},"da");
_.Px.idomCompat=!0;_.n_=_.Q(function(W){var l=function(){var P;return Object.assign({},W.data(),(P=W.overrides)==null?void 0:P.call(W))},V=function(){return _.hy(l().rendererContext)},f=function(){var P=l().avatars,n,B;
return(B=(n=(P==null?0:P[0])?_.k(P[0],_.$w):void 0)==null?void 0:n.avatarImageSize)!=null?B:"AVATAR_SIZE_UNKNOWN"},r=function(){return r0z(l())},R=function(){if(l().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var P=void 0;
else if((P=W.decorations)==null?0:P.call(W))P=W.decorations();else{P=l();var n=0;P.avatars&&(n+=P.avatars.length);P.decoratedText&&(n+=1);P=n>1?[3]:[]}return P},y={};
return _.C("yt-avatar-stack-view-model",{el:_.DN(_.E_(function(){return l().rendererContext})),
class:_.If("yt-avatar-stack-view-model-wiz",W.className,(y["yt-avatar-stack-view-model-wiz--tappable"]=V,y["yt-avatar-stack-view-model-wiz--is-overlay"]=W.isOverlay,y["yt-avatar-stack-view-model-wiz--medium-text"]=W.useMediumText,y)),tabindex:function(){return V()?0:void 0},
role:function(){return V()?"link":void 0},
"aria-label":function(){var P,n;return(n=(P=_.k(l().rendererContext,_.N0))==null?void 0:P.label)!=null?n:""}},_.C(_.c,{cond:function(){var P;
return l().avatars&&!((P=W.hideAvatar)==null?0:P.call(W))},
then:function(){return _.C("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.C(_.c,{cond:function(){return l().decoratedText},
then:function(P){var n={};return _.C("div",{class:_.If("yt-avatar-stack-view-model-wiz__text-container",(n["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return f()==="AVATAR_SIZE_XXS"||f()==="AVATAR_SIZE_XS"},n["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var B;
return((B=W.isOverlay)==null?void 0:B.call(W))&&(f()==="AVATAR_SIZE_XXS"||f()==="AVATAR_SIZE_XS")},n)),
style:_.Tm({width:function(){return r().avatarSizeInPx+"px"},
height:function(){return r().avatarSizeInPx+"px"}})},_.C(_.bH,{text:P,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.C("div",{style:function(){return _.Tm(r().avatarStackStyle)()},
class:function(){return r().avatarStackClass}},_.C(_.QH,{data:function(){return r().avatars.reverse()}},{avatarViewModel:function(P,n){return _.C("div",{style:function(){var B,d;
return _.Tm((d=(B=r()).avatarStyle)==null?void 0:d.call(B,n()))()},
class:function(){return r().avatarClass}},_.C(_.gn,{data:P.data,
decorations:R,avatarButtonCustomClassName:function(){return r().avatarButtonCustomClassName},
isOverlay:W.isOverlay,clusterLayoutConfig:function(){var B,d;return(d=(B=r()).clusterLayoutConfig)==null?void 0:d.call(B,n())}}))},
decoratedAvatarViewModel:function(P,n){return _.C("div",{style:function(){var B,d;return _.Tm((d=(B=r()).avatarStyle)==null?void 0:d.call(B,n()))()},
class:function(){return r().avatarClass}},_.C(_.Px,{data:P.data}))}})))}}),_.C(_.c,{cond:function(){return l().text},
then:function(P){return _.C(_.bH,{text:P,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"ea");
_.n_.idomCompat=!0;_.HI(_.Q(function(W){var l=W.data;var V=W.thumbnailSize;return _.C("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.C("div",{class:_.If("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return tTz(V==null?void 0:V())})},_.C(_.QH,{data:function(){return l().avatarStack}},{avatarStackViewModel:function(f){return _.C(_.n_,{data:f.data,
decorations:[5]})}})))},"fa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.pA,
thumbnailSize:_.pA}});var Dkk=_.Q(function(W){W=_.Dd(W,{hidden:!1});var l=W.data;return _.C("yt-thumbnail-overlay-title-view-model",{class:"ytThumbnailOverlayTitleViewModelHost",hidden:W.hidden},_.C(_.bH,{text:function(){return l().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.C(_.c,{cond:function(){return l().subtitle},
then:function(){return _.C(_.bH,{text:function(){return l().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}}))},"ga");
Dkk.idomCompat=!0;_.HI(Dkk,"yt-thumbnail-overlay-title-view-model",{props:{data:_.pA,hidden:_.pA}});var UkL=_.Q(function(W){W=_.Dd(W,{isClip:!1});var l=W.data,V=W.thumbnailSize,f={};return _.C("yt-thumbnail-overlay-badge-view-model",{class:_.If("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(l().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 sSz(V==null?void 0:V())},(f["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
W.isClip,f))},_.C(_.QH,{data:function(){return l().thumbnailBadges}},{thumbnailBadgeViewModel:function(r){return _.C(C6L,{data:r.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"ha");
UkL.idomCompat=!0;_.HI(UkL,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.pA,thumbnailSize:_.pA,isClip:_.pA}});var uOc=_.Q(function(W){var l=W.data;W=W.hidden;var V=_.v4(function(){return l().indicatorCount||0},void 0,"AbKnMc"),f={};
return _.C("yt-page-indicator-view-model",{class:_.If("ytPageIndicatorViewModelHost",(f.ytPageIndicatorViewModelIndicatorHidden=function(){return!l().indicatorCount},f)),
hidden:W},_.C(_.G3,{each:function(){return Array(V())}},function(r,R){var y={};
return _.C("div",{class:_.If("ytPageIndicatorViewModelIndicator",(y.ytPageIndicatorViewModelIndicatorSelected=function(){return l().selectedIndex===R()},y))})}))},"ia");
uOc.idomCompat=!0;_.HI(uOc,"yt-page-indicator-view-model",{props:{data:_.pA,hidden:_.pA}});var C_=function(){var W=_.I.apply(this,arguments)||this;W.eventSink=function(){return W};
W.disableInteraction=!1;W.noRoundedCorners=!1;W.isPreviewLoading=!1;W.isOriginalAspectRatio=!1;W.computedObjectFit=!1;W.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return W};
_.v(C_,_.I);_.t=C_.prototype;
_.t.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:_.U("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"}}};
_.t.onImageLoaded=function(){this.loaded=!0};
_.t.onImageUnloaded=function(){this.loaded=!1};
_.t.computeRichThumbnail=function(W,l,V,f){if(W&&l&&!f&&!_.U("disable_moving_thumbs_handling")&&!V)return l};
_.t.computeImageWidth=function(W,l){return l||9999};
_.t.computeIsOriginalAspectRatio=function(W){return W};
_.t.computeIsLive=function(W){if(W==null?0:W.badges)for(var l=0;l<W.badges.length;l++){var V=W.badges[l];if(V.metadataBadgeRenderer&&V.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(W==null?0:W.thumbnailOverlays)for(l=0;l<W.thumbnailOverlays.length;l++)if(V=W.thumbnailOverlays[l],V.thumbnailOverlayTimeStatusRenderer&&V.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.t.computeObjectFit=function(W,l){return l||(W?"CONTAIN":"")};
_.t.computeNavigationEndpoint=function(W,l,V){return W?l:V};
_.t.computeHasClip=function(W){W=_.L(W||[]);for(var l=W.next();!l.done;l=W.next())if(l.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.t.computeOverlayColor=function(W){var l;return(W==null?0:(l=W.darkColorPalette)==null?0:l.section2Color)?W.darkColorPalette.section2Color:W==null?void 0:W.sampledThumbnailColor};
_.rc.Object.defineProperties(C_.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return wJF(this.width)}}});
C_.prototype.onImageUnloaded=C_.prototype.onImageUnloaded;C_.prototype.onImageLoaded=C_.prototype.onImageLoaded;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],C_.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],C_.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F($ZI),_.z("design:type",Object)],C_.prototype,"ytdThumbnailBehavior",void 0);
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],C_.prototype,"componentBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],C_.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],C_.prototype,"data",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],C_.prototype,"circular",void 0);
_.a([_.b({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.z("design:type",Object)],C_.prototype,"richThumbnail",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.z("design:type",Boolean)],C_.prototype,"hasClip",void 0);_.a([_.b(),_.z("design:type",Object)],C_.prototype,"eventSink",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],C_.prototype,"queued",void 0);
_.a([_.b({value:!1}),_.z("design:type",Boolean)],C_.prototype,"richGridThumbnail",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],C_.prototype,"useExpandableTooltip",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],C_.prototype,"useUntranslatedNavigationEndpoint",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],C_.prototype,"disableInteraction",void 0);
_.a([_.b({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.z("design:type",Object)],C_.prototype,"computedNavigationEndpoint",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],C_.prototype,"nowPlayingEqualizerOnly",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],C_.prototype,"hidePlaybackStatus",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],C_.prototype,"objectFit",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],C_.prototype,"noRoundedCorners",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],C_.prototype,"watchFeedThumbnail",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],C_.prototype,"isPreviewLoading",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.z("design:type",Object)],C_.prototype,"isOriginalAspectRatio",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.z("design:type",Object)],C_.prototype,"computedObjectFit",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.z("design:type",Boolean)],C_.prototype,"isLiveVideo",void 0);
_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],C_.prototype,"loaded",void 0);_.a([_.b({computed:"computeOverlayColor(data.thumbnail)"}),_.z("design:type",Object)],C_.prototype,"overlayColor",void 0);_.a([_.b({selector:_.Azj}),_.z("design:type",Boolean)],C_.prototype,"inlinePreviewIsEnabled",void 0);_.a([_.b(),_.z("design:type",Number)],C_.prototype,"width",void 0);
_.a([_.G("inlinePreviewIsEnabled"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],C_.prototype,"isPreviewDisabled",null);_.a([_.G("width"),_.z("design:type",String),_.z("design:paramtypes",[])],C_.prototype,"thumbnailSize",null);_.a([_.XI("image-loaded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],C_.prototype,"onImageLoaded",null);
_.a([_.XI("image-unloaded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],C_.prototype,"onImageUnloaded",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-thumbnail"})],C_);
var k0v=_.GG()(C_,"ytd-thumbnail",function(){if(P6k===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);P6k=W}W=P6k;return W},{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 gmz=function(W){var l=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14924_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14924_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(V){vmZ(l,V)};
this.onLockupMouseLeaveFn=function(V){V=V.relatedTarget;var f,r;((f=document.getElementsByTagName("ytd-video-preview"))==null?0:(r=f.item(0))==null?0:r.contains(V))||(l.terminateVideoPreview(),cx(l))};
this.onThumbnailMouseDownFn=function(){l.terminateVideoPreview();cx(l)};
this.onTouchStart=function(){l.JSC$14924_touched=!0};
this.mediaRenderer=W.mediaRenderer;this.thumbnailElement=W.thumbnailElement;this.lockupElement=W.lockupElement;this.videoPreviewOptsInput=W.videoPreviewOpts;Hrv(this);Bx(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)):
_.Qe(Error("Hh")):_.Qe(Error("Ih")):KUX(this)},gl=function(W){KUX(W);
var l;(l=W.lockupElement)==null||l.removeEventListener("mouseenter",W.onMouseMoveFn);var V;(V=W.lockupElement)==null||V.removeEventListener("mouseleave",W.onLockupMouseLeaveFn);var f;(f=W.lockupElement)==null||f.removeEventListener("touchstart",W.onTouchStart);var r;(r=W.thumbnailElement)==null||r.removeEventListener("mousedown",W.onThumbnailMouseDownFn);cx(W)},Hrv=function(W){W.inlinePreviewIsEnabledForUser=_.DJ().getState().ui.inlinePreviewIsEnabled;
W.unsubscribeFromInlinePreviewIsEnabled=_.Eb(_.DJ(),_.Azj,function(l){(W.inlinePreviewIsEnabledForUser=l)||cx(W)});
W.JSC$14924_unsubscribeFromInlinePreviewIsActive=_.Eb(_.DJ(),_.w3g,function(l){(W.inlinePreviewIsActive=l)||cx(W)})},KUX=function(W){W.unsubscribeFromInlinePreviewIsEnabled();
W.unsubscribeFromInlinePreviewIsEnabled=function(){};
W.JSC$14924_unsubscribeFromInlinePreviewIsActive();W.JSC$14924_unsubscribeFromInlinePreviewIsActive=function(){}},vmZ=function(W,l){l.buttons>0||(l=_.yS("kevlar_lockup_hover_delay",-1),W.JSC$14924_touched&&l>=0?(_.w8.cancelJob(W.videoPreviewJobId),W.videoPreviewJobId=_.pP(_.w8,function(){FUv(W)},l),W.JSC$14924_touched=!1):FUv(W))},NV4=function(W){W.videoPreviewJobId=_.pP(_.w8,function(){return _.g(function(l){return l.yield(G0v(W,{isAutoplay:!0}),0)})})},FUv=function(W){!W.previewTriggered&&Bx(W)&&
(W.inlinePreviewIsActive&&W.terminateVideoPreview(),W.previewTriggered=!0,W.mediaRenderer.isInlinePreviewTriggered=!0,_.w8.cancelJob(W.videoPreviewJobId),W.videoPreviewJobId=_.pP(_.w8,function(){return _.g(function(l){return l.yield(G0v(W),0)})}))},G0v=function(W,l){l=l===void 0?{}:l;
var V=l.isAutoplay===void 0?!1:l.isAutoplay;var f,r,R,y;return _.g(function(P){if(P.nextAddress==1){if(!Bx(W))return P.return();f=W.getVideoPreviewOpts();if(!f)return P.return();V&&(f.isAutoplay=!0);return(R=(r=_.bj(W.mediaRenderer.hostElement,"yt-open-video-preview-action",[f]))&&r[0])?P.yield(r[0],3):P.jumpTo(2)}P.nextAddress!=2&&(R=P.yieldResult===1);if(R){var n=(y=W.mediaRenderer)==null?void 0:y.data;n&&(y0n(n)?delete n.inlinePlayerData:"inlinePlaybackEndpoint"in n&&delete n.inlinePlaybackEndpoint)}_.ju(P)})};
gmz.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var W,l;if((l=(W=this.videoPreviewOptsInput)==null?void 0:W.videoPreviewData)!=null)W=l;else if(W=this.mediaRenderer.data)if(y0n(W))W={inlinePlaybackEndpoint:_.fP(W.inlinePlayerData.onVisible),navigationEndpoint:_.fP(W.onTap),thumbnail:"image"in W?W.image:W.thumbnail,thumbnailOverlays:void 0,accessibilityText:LUS(W)};else if("multipleInlinePlaybackEndpoint"in W){var V=_.k(_.k(W.multipleInlinePlaybackEndpoint,U3e),uZa);if(V!=
null&&V.playerDescriptors){l=[];V=_.L(V.playerDescriptors);for(var f=V.next();!f.done;f=V.next())f=f.value,l.push({inlinePlaybackEndpoint:f.inlinePlaybackEndpoint,navigationEndpoint:f.navigationEndpoint,thumbnail:f.thumbnail,thumbnailOverlays:f.thumbnailOverlays,accessibilityText:LUS(W)});W=l}else W=void 0}else W={inlinePlaybackEndpoint:W.inlinePlaybackEndpoint,navigationEndpoint:W.navigationEndpoint,thumbnail:W.thumbnail,thumbnailOverlays:W.thumbnailOverlays,accessibilityText:LUS(W)};else W=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:W,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var Bx=function(W){var l;if(l=W.inlinePreviewIsEnabledForUser)l=(W=W.mediaRenderer.data)?"inlinePlaybackEndpoint"in W&&W.inlinePlaybackEndpoint||y0n(W)&&W.inlinePlayerData||"multipleInlinePlaybackEndpoint"in W&&W.multipleInlinePlaybackEndpoint?!0:!1:!1;return l};
gmz.prototype.terminateVideoPreview=function(){_.Gt(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var cx=function(W){_.w8.cancelJob(W.videoPreviewJobId);W.inlinePreviewIsActive=!1;W.previewTriggered=!1;W.mediaRenderer.isInlinePreviewTriggered=!1};var brI=_.tj(["#"]),dn=function(){var W=_.I.apply(this,arguments)||this;W.isDisabled=!1;return W};
_.v(dn,_.I);_.t=dn.prototype;_.t.configureRendererStamper=function(){return{"data.menu":hq,"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"}}}};
_.t.attached=function(){this.updateInlinePreviewHoverListeners()};
_.t.detached=function(){this.clearInlinePreviewHoverListeners()};
_.t.getMetadata=function(W){var l=[];if(W.metadataText&&Object.keys(W.metadataText).length>0){var V=this.ytRendererBehavior.getSimpleString(W.metadataText);W.upcomingEventData&&W.upcomingEventData.upcomingEventText&&(V=_.zY(V,Number(W.upcomingEventData.startTime)));l.push(V)}else W.shortViewCountText&&l.push(this.ytRendererBehavior.getSimpleString(W.shortViewCountText)),W.publishedTimeText&&l.push(this.ytRendererBehavior.getSimpleString(W.publishedTimeText)),W.upcomingEventData&&W.upcomingEventData.upcomingEventText&&
(V=this.ytRendererBehavior.getSimpleString(W.upcomingEventData.upcomingEventText),l.push(_.zY(V,Number(W.upcomingEventData.startTime))));return l};
_.t.calculateBylineText=function(W){return W.shortBylineText?W.shortBylineText:W.bylineText?W.bylineText:null};
_.t.calculateIsDisabled=function(W){return!!W.isDisabled};
_.t.computeHrefWithDefault=function(W){return this.ytComponentBehavior.computeHref_(W)||_.l7S(brI)};
_.t.onDetailsTap=function(W){var l=this.data&&this.data.navigationEndpoint;l&&!_.Cv(_.d_(W)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.U("kevlar_grid_video_renderer_killswitch")?_.FN(this.hostElement,"yt-navigate",{endpoint:l}):this.ytComponentBehavior.resolveCommand(l))};
_.t.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14931_inlinePreviewHoverListener=Wf({mediaRenderer:this,lockupElement:_.GS(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.GS(this.hostElement).querySelector("ytd-thumbnail")})};
_.t.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$14931_inlinePreviewHoverListener)==null||gl(W)};
_.t.computeThumbnailWidth=function(W,l){return l&&l>0?l:W?360:210};
_.t.computeShowChannelThumbnail=function(W,l){var V;return l&&!!(W==null?0:(V=W.channelThumbnailSupportedRenderers)==null?0:V.channelThumbnailWithLinkRenderer)};
_.rc.Object.defineProperties(dn.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$14931_inlinePreviewHoverListener)==null?0:Bx(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
dn.prototype.dataChanged=dn.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],dn.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],dn.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],dn.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],dn.prototype,"ytdDismissibleItemBehavior",void 0);
_.a([_.F(_.FK),_.z("design:type",Object)],dn.prototype,"ytdLockupBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],dn.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],dn.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Boolean)],dn.prototype,"noEndpoints",void 0);_.a([_.b({computed:"calculateBylineText(data)"}),_.z("design:type",Object)],dn.prototype,"bylineText",void 0);
_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],dn.prototype,"isSearch",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],dn.prototype,"isDownloading",void 0);_.a([_.b({reflectToAttribute:!0,value:0}),_.z("design:type",Number)],dn.prototype,"width",void 0);_.a([_.b({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.z("design:type",Object)],dn.prototype,"isDisabled",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dn.prototype,"dataChanged",null);_.a([_.G("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],dn.prototype,"isHovered",null);_.a([_.A({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],dn);
_.Z(dn,"ytd-grid-video-renderer",function(){if($W$!==void 0)return $W$;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return $W$=W},{mode:_.bD("kevlar_poly_si_batch_j047")?1:2});var p5M;var J8=function(){var W=_.I.apply(this,arguments)||this;W.roundedContainer=!0;W.skipRoundingTop=!1;W.disableTopPadding=!1;W.amsterdamEnabled=_.U("enable_desktop_amsterdam_info_panels");return W};
_.v(J8,_.I);J8.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
J8.prototype.onClick=function(W){var l,V=(l=this.data)==null?void 0:l.sourceEndpoint;!_.Cv(_.d_(W),this.hostElement,["A".toString()])&&V&&_.FN(this.hostElement,"yt-navigate",{endpoint:V})};
_.rc.Object.defineProperties(J8.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 W;return!((W=this.data)==null||!W.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var W,l;return(l=(W=this.data)==null?void 0:W.paragraphMaxLines)!=null?l:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],J8.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],J8.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],J8.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],J8.prototype,"showVerticalDividers",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],J8.prototype,"roundedContainer",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],J8.prototype,"skipRoundingTop",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],J8.prototype,"disableTopPadding",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],J8.prototype,"amsterdamEnabled",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],J8.prototype,"showMetadataAtTop",null);
_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],J8.prototype,"showMetadataBelowTitle",null);_.a([_.b({reflectToAttribute:!0}),_.G("data.menu"),_.z("design:type",Object),_.z("design:paramtypes",[])],J8.prototype,"hasMenu",null);_.a([_.b({reflectToAttribute:!0}),_.G("data.truncateParagraphs"),_.z("design:type",Object),_.z("design:paramtypes",[])],J8.prototype,"truncateParagraphs",null);
_.a([_.b({reflectToAttribute:!0}),_.G("data.paragraphMaxLines"),_.z("design:type",Number),_.z("design:paramtypes",[])],J8.prototype,"paragraphMaxLines",null);_.a([_.b({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.G("data.background"),_.z("design:type",Object),_.z("design:paramtypes",[])],J8.prototype,"background",null);_.a([_.A({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],J8);
_.Z(J8,"ytd-info-panel-content-renderer",function(){if(p5M!==void 0)return p5M;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return p5M=W},{mode:_.bD("kevlar_poly_si_batch_j076")?1:2});var omI;var jSk;var IC9;var irL;var DO=function(){return _.I.apply(this,arguments)||this};
_.v(DO,_.I);DO.prototype.computeStyle=function(W){return W};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],DO.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],DO.prototype,"style_",void 0);_.a([_.Vq({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],DO);
_.Z(DO,"yt-channel-thumbnail-with-link-renderer",function(){if(irL===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;IC9===void 0&&(IC9=document.createElement("template"));var f=IC9;V.call(l,f.content.cloneNode(!0),W.content.firstChild);irL=W}W=irL;return W},{mode:2});var Up=function(){var W=_.I.apply(this,arguments)||this;W.modernTypography=_.U("web_modern_typography");return W};
_.v(Up,_.I);Up.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"}}}};
Up.prototype.computeTitleStyle=function(W){return W||null};
Up.prototype.computeAvatarStyle=function(W){return W||null};
Up.prototype.computeShowNavigationButton=function(W,l){return!(W==null||!W.navigationButton||l)};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Up.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Up.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Up.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.z("design:type",String)],Up.prototype,"titleStyle",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.z("design:type",String)],Up.prototype,"avatarStyle",void 0);_.a([_.b(),_.z("design:type",Boolean)],Up.prototype,"hideNavigationButton",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Up.prototype,"isModernSd",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Up.prototype,"modernTypography",void 0);
_.a([_.A({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],Up);
_.Z(Up,"ytd-rich-list-header-renderer",function(){if(jSk!==void 0)return jSk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return jSk=W},{mode:_.bD("kevlar_poly_si_batch_j058")?1:2});var ur=function(){return _.I.apply(this,arguments)||this};
_.v(ur,_.I);ur.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]]"}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ur.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ur.prototype,"data",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],ur.prototype,"isSearch",void 0);_.a([_.A({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],ur);
_.Z(ur,"ytd-preview-card-renderer",function(){if(omI!==void 0)return omI;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return omI=W},{mode:1});var mk9;var kv=function(){return _.I.apply(this,arguments)||this};
_.v(kv,_.I);kv.prototype.configureRendererStamper=function(){return{"data.menu":hq}};
kv.prototype.dataChanged=function(){var W=this.get("colorExtractionPalette.section1Color",this.data);W=_.ta(W);_.I1(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":W})};
kv.prototype.computeCardStyle=function(W){return this.get("style.value",W)||null};
kv.prototype.dataChanged=kv.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],kv.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],kv.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],kv.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.z("design:type",String)],kv.prototype,"cardStyle",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kv.prototype,"dataChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],kv);
_.Z(kv,"ytd-compact-channel-recommendation-card-renderer",function(){if(mk9!==void 0)return mk9;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return mk9=W},{mode:1});var X59;var T$a;var vx=function(){var W=_.I.apply(this,arguments)||this;W.alignAuto=!1;W.collapsed=!0;W.isToggled=!1;W.alwaysCollapsed=!1;W.canToggle=!0;W.collapsedHeight=80;W.disableToggle=!1;W.alwaysToggleable=!1;W.reversed=!1;W.shouldUseNumberOfLines=!1;W.recomputeOnResize=!1;W.canToggleJobId=0;W.lastReversed=!1;return W};
_.v(vx,_.I);_.t=vx.prototype;_.t.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.t.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.t.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var W=_.GS(this.hostElement),l=W.childNodes,V=document.createDocumentFragment(),f=W.childNodes.length-1;f>=0;f--)_.GS(V).appendChild(l[f]);_.U("enable_shadydom_free_scoped_node_methods")?_.bm(this.hostElement).appendChild(V):W.appendChild(V)}};
_.t.ready=function(){var W=this;_.yq(function(){W.initChildrenObserver()},1)};
_.t.attached=function(){var W;(W=this.resizeObserver)==null||W.observe(this.content)};
_.t.detached=function(){this.detachObserver()};
_.t.toggle=function(W,l){this.canToggle&&(this.isToggled=l,_.FN(this.hostElement,"yt-refit"),W&&W.stopPropagation())};
_.t.reset=function(){this.childrenChanged()};
_.t.onIronResize=function(){this.recomputeOnResize&&!_.U("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.t.computeIsMoreVisible=function(W,l){return W&&!l};
_.t.computeShouldUseNumberOfLines=function(W){try{return!!W&&window.CSS.supports("-webkit-line-clamp","1")}catch(l){}return!1};
_.t.computeIsLessVisible=function(W,l){return W&&l};
_.t.observeCollapsedHeightAndMaxLines=function(){var W=this.collapsedHeight,l=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.I1(this.hostElement,{"--ytd-expander-max-lines":""+l,"--ytd-expander-collapsed-height":""}):_.I1(this.hostElement,{"--ytd-expander-collapsed-height":W+"px","--ytd-expander-max-lines":""})};
_.t.handleMoreTap=function(W){this.disableToggle||(_.FN(this.hostElement,"yt-expander-more-tapped"),this.toggle(W,!0))};
_.t.handleLessTap=function(W){_.FN(this.hostElement,"yt-expander-less-tapped");this.toggle(W,!1)};
_.t.initChildrenObserver=function(){var W=this;this.observer=new MutationObserver(function(){W.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.U("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.t$(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var l;(l=W.resizeThrottle)==null||l.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.t.childrenChanged=function(){var W=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){bp(function(){W.canToggleJobId=0;W.calculateCanCollapse()})}))};
_.t.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};
_.t.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.t.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.GD("collapsed-changed",this.collapsed))};
_.t.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.GD("is-toggled-changed",this.isToggled))};
_.t.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.GD("can-toggle-changed",this.canToggle))};
_.rc.Object.defineProperties(vx.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
vx.prototype.canToggleChangedForBinding=vx.prototype.canToggleChangedForBinding;vx.prototype.isToggledChangedForBinding=vx.prototype.isToggledChangedForBinding;vx.prototype.collapsedChangedForBinding=vx.prototype.collapsedChangedForBinding;vx.prototype.observeCollapsedHeightAndMaxLines=vx.prototype.observeCollapsedHeightAndMaxLines;vx.prototype.onIronResize=vx.prototype.onIronResize;vx.prototype.reversedChanged=vx.prototype.reversedChanged;vx.prototype.toggledChanged=vx.prototype.toggledChanged;
vx.prototype.alwaysToggleableChanged=vx.prototype.alwaysToggleableChanged;_.a([_.F(_.Wo),_.z("design:type",Object)],vx.prototype,"ironResizableBehavior",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vx.prototype,"alignAuto",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vx.prototype,"collapsed",void 0);_.a([_.b(),_.z("design:type",Object)],vx.prototype,"isToggled",void 0);_.a([_.b(),_.z("design:type",Object)],vx.prototype,"alwaysCollapsed",void 0);
_.a([_.b(),_.z("design:type",Object)],vx.prototype,"canToggle",void 0);_.a([_.b(),_.z("design:type",Object)],vx.prototype,"collapsedHeight",void 0);_.a([_.b(),_.z("design:type",Object)],vx.prototype,"disableToggle",void 0);_.a([_.b(),_.z("design:type",Object)],vx.prototype,"alwaysToggleable",void 0);_.a([_.b(),_.z("design:type",Object)],vx.prototype,"reversed",void 0);_.a([_.b(),_.z("design:type",Number)],vx.prototype,"maxNumberOfLines",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.z("design:type",Object)],vx.prototype,"shouldUseNumberOfLines",void 0);_.a([_.b(),_.z("design:type",Object)],vx.prototype,"recomputeOnResize",void 0);_.a([_.Aa("#content"),_.z("design:type",HTMLDivElement)],vx.prototype,"content",void 0);_.a([_.zS("alwaysToggleable"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vx.prototype,"alwaysToggleableChanged",null);
_.a([_.zS("isToggled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vx.prototype,"toggledChanged",null);_.a([_.G("canToggleJobId"),_.z("design:type",Object),_.z("design:paramtypes",[])],vx.prototype,"isResetting",null);_.a([_.TS("reversed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vx.prototype,"reversedChanged",null);
_.a([_.XI("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vx.prototype,"onIronResize",null);_.a([_.TS("maxNumberOfLines","collapsedHeight"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vx.prototype,"observeCollapsedHeightAndMaxLines",null);_.a([_.TS("collapsed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vx.prototype,"collapsedChangedForBinding",null);
_.a([_.TS("isToggled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vx.prototype,"isToggledChangedForBinding",null);_.a([_.TS("canToggle"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vx.prototype,"canToggleChangedForBinding",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-expander"})],vx);
_.Z(vx,"ytd-expander",function(){if(T$a!==void 0)return T$a;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return T$a=W},{mode:1});var Hx=function(){return _.I.apply(this,arguments)||this};
_.v(Hx,_.I);Hx.prototype.computeIsCarousel=function(W){return!!W.isCarousel};
Hx.prototype.observeLightsourcePalette=function(){var W,l=(W=this.data)==null?void 0:W.vibrantsourceColorPaletteData;l&&_.Yh(this.hostElement,l)};
Hx.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Hx.prototype.observeLightsourcePalette=Hx.prototype.observeLightsourcePalette;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Hx.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Hx.prototype,"data",void 0);_.a([_.b({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Hx.prototype,"isCarousel",void 0);
_.a([_.TS("data.vibrantsourceColorPaletteData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hx.prototype,"observeLightsourcePalette",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],Hx);
_.Z(Hx,"ytd-media-upsell-renderer",function(){if(X59!==void 0)return X59;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return X59=W},{mode:2});var w5k;var K_=function(){var W=_.I.apply(this,arguments)||this;W.JSC$14959_playerEvents=new Map;W.listeningToPlayer=!1;W.startX=0;W.active=!1;W.shouldShowButtons=_.U("web_buttons_hidden_killswitch");W.isHighlighted=!1;W.useHighlightStyling=_.U("web_enable_deeper_metadata_highlight_styling");W.modern=_.U("kevlar_modern_sd");W.enableProblemWalkthrough=_.U("problem_walkthrough_sd");return W};
_.v(K_,_.I);_.t=K_.prototype;
_.t.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}}}}}};
_.t.created=function(){this.JSC$14959_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.t.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.mz(this,this.onRepeatButtonToggle));_.U("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.mz(this,this.onActiveUpdate))};
_.t.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.mz(this,this.onRepeatButtonToggle));_.U("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.mz(this,this.onActiveUpdate))};
_.t.onDataChanged=function(){this.removePlayerListeners()};
_.t.onColorPaletteChange=function(){var W={},l;if(_.h5()==="USER_INTERFACE_THEME_DARK"&&((l=this.data)==null?0:l.darkColorPalette)){var V=this.data.darkColorPalette;W["--ytd-macro-markers-list-item-background-color"]=_.sD(this.get("section2Color",V))}else{var f;_.h5()==="USER_INTERFACE_THEME_LIGHT"&&((f=this.data)==null?0:f.lightColorPalette)&&(V=this.data.lightColorPalette,W["--ytd-macro-markers-list-item-background-color"]=_.sD(this.get("section3Color",V)))}V?(W["--ytd-macro-markers-list-item-title-color"]=
_.sD(this.get("primaryTitleColor",V)),W["--ytd-macro-markers-list-item-secondary-color"]=_.sD(this.get("secondaryTitleColor",V)),W["--ytd-macro-markers-list-item-timestamp-background-color"]=_.sD(this.get("section1Color",V)),this.customButtonProperties={customColors:{color:_.sD(this.get("primaryTitleColor",V))}},this.useColorSampling=!0):(W["--ytd-macro-markers-list-item-background-color"]="initial",W["--ytd-macro-markers-list-item-title-color"]="initial",W["--ytd-macro-markers-list-item-secondary-color"]=
"initial",W["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.I1(this.hostElement,W)};
_.t.onEndpointMouseDown=function(W){this.startX=W.clientX};
_.t.onEndpointClick=function(W){var l=this,V,f,r;return _.g(function(R){if(R.nextAddress==1){if(l.startX!==W.clientX)return W.preventDefault(),R.return();l.data&&l.ytRendererBehavior.logExplicitClick(l.data);if(!l.seekWithAnimationOnClick)return R.jumpTo(0);if(W.button!==0||W.shiftKey||W.altKey||W.metaKey||W.ctrlKey||_.Cv(_.d_(W),l.hostElement,["BUTTON".toString()]))return R.return();W.stopPropagation();W.preventDefault();return l.data?R.yield(_.Dy().getPlayerPromise(),3):R.return()}V=R.yieldResult;
r=(f=_.k(l.data.onTap,_.Bh))==null?void 0:f.startTimeSeconds;r!==void 0&&V.seekToTimeWithAnimation(r*1E3,_.dE(l.data.title));_.ju(R)})};
_.t.computeLayout=function(W){return W};
_.t.computeIsHighlighted=function(W){return!!W};
_.t.computeCarouselType=function(W){return W};
_.t.hideModernCarousel=function(W){return this.modern&&this.hideThumbnail(W)};
_.t.hideThumbnail=function(W){return this.enableProblemWalkthrough&&W!==null&&W==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.t.onRepeatButtonToggle=function(W){var l=this;W.detail.toggled&&_.Dy().getPlayerPromise().then(function(V){l.ytPlayerListenerBehavior.listenToPlayerEvents(V,l.JSC$14959_playerEvents);l.listeningToPlayer=!0})};
_.t.onLoopRangeChange=function(W){var l=_.GS(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(l){var V=l.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",l.polymerController.data);if(V){var f=Number(V.endTimeMs);if(Number(V.startTimeMs)!==(W==null?void 0:W.startTimeMs)||f!==(W==null?void 0:W.endTimeMs))l.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.t.removePlayerListeners=function(){var W=this;this.listeningToPlayer&&_.Dy().getPlayerPromise().then(function(l){W.ytPlayerListenerBehavior.unlistenFromPlayerEvents(l,W.JSC$14959_playerEvents);W.listeningToPlayer=!1})};
_.t.onActiveUpdate=function(W){this.active=W.detail.active};
K_.prototype.onColorPaletteChange=K_.prototype.onColorPaletteChange;K_.prototype.onDataChanged=K_.prototype.onDataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],K_.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.by.YtPlayerListenerBehavior),_.z("design:type",_.pZ)],K_.prototype,"ytPlayerListenerBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],K_.prototype,"data",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],K_.prototype,"useCustomColors",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],K_.prototype,"active",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],K_.prototype,"shouldShowButtons",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.z("design:type",String)],K_.prototype,"layout",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.z("design:type",Object)],K_.prototype,"isHighlighted",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],K_.prototype,"useHighlightStyling",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],K_.prototype,"modern",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],K_.prototype,"enableProblemWalkthrough",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.z("design:type",String)],K_.prototype,"carouselType",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],K_.prototype,"useColorSampling",void 0);_.a([_.b(),_.z("design:type",Boolean)],K_.prototype,"seekWithAnimationOnClick",void 0);_.a([_.b(),_.z("design:type",Object)],K_.prototype,"customButtonProperties",void 0);
_.a([_.Aa("#repeat-button"),_.z("design:type",HTMLElement)],K_.prototype,"repeatButton",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],K_.prototype,"onDataChanged",null);_.a([_.TS("data.lightColorPalette","data.darkColorPalette"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],K_.prototype,"onColorPaletteChange",null);_.a([_.A({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],K_);
_.Z(K_,"ytd-macro-markers-list-item-renderer",function(){if(w5k!==void 0)return w5k;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return w5k=W},{mode:1});var A0v;var QSB;var Fq=function(){var W=_.I.apply(this,arguments)||this;W.modernTypography=_.U("web_modern_typography");return W};
_.v(Fq,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Fq.prototype,"ytRendererBehavior",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Fq.prototype,"modernTypography",void 0);_.a([_.b(),_.z("design:type",Object)],Fq.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],Fq);
_.Z(Fq,"ytd-title-and-button-list-header-renderer",function(){if(QSB!==void 0)return QSB;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return QSB=W},{mode:1});var MTB;var Zrk=new _.vd("BUTTON_RENDERER_WIZ_TOKEN"),OrB=new _.vd("BUTTON_RENDERER_TOKEN");_.G2=_.Q(function(W){var l=_.tY().resolve(_.R0(Zrk));if(l)return _.C(l,Object.assign({},W));var V=_.tY().resolve(OrB);return V?_.C(pfY,null,function(){return _.C(V6,null,function(){var f,r,R,y,P,n,B,d,J,D,u,H;return void V(W.data(),{onButtonClickCallback:W.onButtonClickCallback,shouldShowIcons:(f=W.shouldShowIcons)==null?void 0:f.call(W),icon:(r=W.icon)==null?void 0:r.call(W),processAllEndpoints:(R=W.processAllEndpoints)==null?void 0:R.call(W),preventDefault:(y=W.preventDefault)==null?void 0:y.call(W),
stopPropagation:(P=W.stopPropagation)==null?void 0:P.call(W),disableButtonRendererClickHandling:(n=W.disableButtonRendererClickHandling)==null?void 0:n.call(W),className:(B=W.className)==null?void 0:B.call(W),buttonOverrides:(d=W.buttonOverrides)==null?void 0:d.call(W),forceModernIconButton:(J=W.forceModernIconButton)==null?void 0:J.call(W),isSubscribe:(D=W.isSubscribe)==null?void 0:D.call(W),alignByText:(u=W.alignByText)==null?void 0:u.call(W),forceDisabled:(H=W.forceDisabled)==null?void 0:H.call(W)})})}):
_.C(_.Lp,null)},"ja");
_.G2.idomCompat=!0;var aCv=_.Q(function(W){var l=W.data,V=_.JG(W.useSquareAspectRatio,!1);return _.C("dismissed-mini-game-card-view-model",null,_.C(_.c,{cond:function(){var f,r;return(f=l().responseText)==null?void 0:(r=f.runs)==null?void 0:r.length},
then:function(){var f={};return _.C("div",{class:_.If("yt-mini-game-card-view-model__dismissed-card",(f["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!V()},f["yt-mini-game-card-view-model--dismissed-square-card"]=V,f))},_.C("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.C(_.c,{cond:function(){return l().responseText.runs[0].text},
then:function(r){return _.C("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:r},r)}}),_.C(_.QH,{data:function(){return l().buttons}},{buttonRenderer:_.G2,
buttonViewModel:_.Nq})))}}))},"ka");var hGM=_.Q(function(W){W=_.Dd(W,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var l=W.data,V=W.useFullWidth,f=W.isDesktopWeb,r=W.addSearchResultTopMargin,R=function(){return l().layout},y=function(){return l().title},P=function(){return l().metadataText?l().metadataText:l().genre},n=function(){return l().channelName},B=function(){return l().image},d=function(){return l().colorPalette},J=function(){return l().actionButton},D=function(){return l().overflowButton},
u=function(){return l().avatar},H=function(){var O={};
O=_.If("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(O["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return f()},O));
return _.C("div",{class:O},_.C(zGk,{imageData:B,colorPalette:d}),_.C(N$M,{onTap:function(){return l().onTap},
imageData:B,accessibilityText:function(){return l().accessibilityText},
overlayBadgeText:function(){return l().overlayBadgeText},
iconName:function(){return l().iconName},
unplayableInlinePlaybackIconName:function(){return l().unplayableInlinePlaybackIconName},
isDesktopWeb:f}),_.C(_.c,{cond:function(){return!f()},
then:function(){return _.C(_.Lp,null,_.C(YGc,{layout:R,colorPalette:d,isDesktopWeb:f,overflowButton:D,avatar:u,onTap:function(){return l().onTap},
genre:P,title:y,channelName:n}),_.C(xke,{actionButton:J}))}}))},p=function(){var O={};
O=_.If((O["yt-mini-game-card-view-model--search-result-desktop"]=function(){return f()},O["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!f()},O["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return r()},O));
return _.C("div",{class:O},H(),_.C(eGB,{description:function(){return l().description},
isDesktopWeb:f,title:y,genre:P,onTap:function(){return l().onTap},
actionButton:J,overflowButton:D,avatar:u,channelName:n}))},X=function(){var O={};
O=_.If("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(O["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return f()},O["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return f()&&l().width===135},O["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return f()},O["yt-mini-game-card-view-model--big-metadata-font"]=function(){return l().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},O["yt-mini-game-card-view-model--use-full-width"]=
function(){return V()},O["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!J()},O));
return _.C("div",{class:O},_.C(qGL,{colorPalette:d,isDesktopWeb:f,onTap:function(){return l().onTap},
accessibilityText:function(){return l().accessibilityText},
overlayBadgeText:function(){return l().overlayBadgeText},
iconName:function(){return l().iconName},
unplayableInlinePlaybackIconName:function(){return l().unplayableInlinePlaybackIconName},
actionButton:J,imageData:B}),_.C(YGc,{layout:R,colorPalette:d,isDesktopWeb:f,overflowButton:D,avatar:u,onTap:function(){return l().onTap},
genre:P,title:y,channelName:n}))},w=function(){var O={};
O=_.If("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(O["yt-mini-game-card-view-model--square-card-desktop"]=function(){return f()},O["yt-mini-game-card-view-model--use-full-width"]=function(){return V()},O));
return _.C("div",{class:O},_.C(N$M,{onTap:function(){return l().onTap},
imageData:B,accessibilityText:function(){return l().accessibilityText},
overlayBadgeText:function(){return l().overlayBadgeText},
iconName:function(){return l().iconName},
unplayableInlinePlaybackIconName:function(){return l().unplayableInlinePlaybackIconName},
isDesktopWeb:f}),_.C(YGc,{layout:R,colorPalette:d,isDesktopWeb:f,overflowButton:D,avatar:u,onTap:function(){return l().onTap},
genre:P,title:y,channelName:n}))};
return _.C("mini-game-card-view-model",{class:W.className},_.C(_.oh,null,_.C(_.bz,{when:function(){return R()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return X()}),_.C(_.bz,{when:function(){return R()==="MINI_APP_LAYOUT_SQUARE"}},function(){return w()}),_.C(_.bz,{when:function(){return R()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return p()})))},"la");
hGM.idomCompat=!0;var xke=_.Q(function(W){var l=_.JG(W.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.C(_.QH,{data:W.actionButton},{buttonViewModel:function(V){return _.C("div",{class:l},_.C(_.Nq,{data:V.data}))}})},"ma"),N$M=_.Q(function(W){var l=W.onTap;
var V=W.imageData;var f=W.accessibilityText;var r=W.overlayBadgeText;var R=W.iconName;var y=W.unplayableInlinePlaybackIconName;W=W.isDesktopWeb;return _.C(_.Mq,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:l},_.C(_.dN,{data:V,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(f==null?void 0:f())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.C(SG$,{overlayBadgeText:r,iconName:R,unplayableInlinePlaybackIconName:y,isDesktopWeb:W}))},"na"),SG$=_.Q(function(W){var l=W.overlayBadgeText;
var V=W.iconName;var f=W.unplayableInlinePlaybackIconName;var r=W.isDesktopWeb;return _.C("div",{class:"yt-mini-game-card-view-model__badge-container"},_.C(_.c,{cond:V,then:function(R){return _.C("div",{class:"yt-mini-game-card-view-model__badge"},_.C("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.C(_.wN,{icon:R,className:"yt-mini-game-card-view-model__icon",size:12}),_.C("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},l)))}}),_.C(_.c,{cond:function(){return!V()&&
l()},
then:function(){return _.C("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},l)}}),_.C(_.c,{cond:function(){return f()&&r()},
then:function(){return _.C("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.C(_.wN,{icon:f,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"oa"),zGk=_.Q(function(W){var l=W.colorPalette;
var V=W.imageData;var f=function(){return l().vibrantColorPalette?l().vibrantColorPalette.section2Color:l().sectionTwoColor};
return _.C(_.Lp,null,_.C("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Tm({"background-color":function(){return LG(f(),"1")}})}),_.C("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Tm({"background-image":function(){return"url("+V().sources[0].url+")"}})}),_.C("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Tm({background:function(){return"linear-gradient(180deg,\n    "+LG(f(),".8")+" 0%,\n    "+LG(f(),".4")+" 25%,\n    "+LG(l().vibrantColorPalette?l().vibrantColorPalette.section4Color:l().sectionFourColor,".8")+" 100%)"}})}))},"pa"),YGc=_.Q(function(W){var l=W.layout;
var V=W.colorPalette;var f=W.overflowButton;var r=W.avatar;var R=W.onTap;var y=W.title;var P=W.channelName;var n=W.genre;var B=function(){var d;return l()!=="MINI_APP_LAYOUT_SQUARE"&&((d=V())==null?0:d.textPrimaryColor)?"color: "+LG(V().textPrimaryColor,".7"):""};
return _.C("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.C(_.c,{cond:r,then:function(){return _.C("div",{class:"yt-mini-game-card-view-model__avatar"},_.C(_.QH,{data:r},{avatarViewModel:_.gn}))}}),_.C(_.Mq,{command:R,
className:"yt-mini-game-card-view-model__metadata-details"},_.C("h3",{class:"yt-mini-game-card-view-model__title",title:y},y),_.C(_.c,{cond:r,then:function(){return _.C("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.C("span",{class:"yt-mini-game-card-view-model__genre",title:P,style:B},P),_.C("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:B},n))},
else:function(){return _.C("span",{class:"yt-mini-game-card-view-model__genre",title:n},n)}})),_.C("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.C(_.QH,{data:f},{buttonViewModel:function(d){var J=d.data;
return _.C(_.Nq,{data:function(){return Object.assign({},J(),{customFontColor:l()==="MINI_APP_LAYOUT_SINGLETON"?J().customFontColor:void 0})}})}})))},"qa"),qGL=_.Q(function(W){var l=W.colorPalette;
var V=W.isDesktopWeb;var f=W.onTap;var r=W.accessibilityText;var R=W.overlayBadgeText;var y=W.iconName;var P=W.unplayableInlinePlaybackIconName;var n=W.actionButton;W=W.imageData;return _.C("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.C(zGk,{imageData:W,colorPalette:l}),_.C(N$M,{onTap:f,imageData:W,accessibilityText:r,overlayBadgeText:R,iconName:y,unplayableInlinePlaybackIconName:P,isDesktopWeb:V}),_.C(_.c,{cond:function(){return n==null?void 0:n()},
then:function(){return _.C(xke,{actionButton:n})}}))},"ra"),eGB=_.Q(function(W){var l=W.description;
var V=W.isDesktopWeb;var f=W.title;var r=W.genre;var R=W.onTap;var y=W.actionButton;var P=W.overflowButton;var n=W.avatar;W=W.channelName;var B={};B=_.If("yt-mini-game-card-view-model--search-result-metadata-wrapper",(B["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=V,B["yt-mini-game-card-view-model--show-unplayable-on-hover"]=V,B["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!V()},B));
var d={};d=_.If("yt-mini-game-card-view-model__search-result-info-row",(d["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!V()},d));
return _.C("div",{class:B},_.C("div",{class:d},_.C(_.Mq,{command:R,className:"yt-mini-game-card-view-model__metadata-details"},_.C("h3",{class:"yt-mini-game-card-view-model__title",title:f},f),_.C("span",{class:"yt-mini-game-card-view-model__genre",title:r},r)),_.C(xke,{actionButton:y,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.C("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.C(_.QH,{data:P},{buttonViewModel:_.Nq}))),_.C("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.C("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.C("div",{class:"yt-mini-game-card-view-model__avatar"},_.C(_.QH,{data:n},{avatarViewModel:function(J){var D=J.data;return _.C(_.gn,{data:function(){return Object.assign({},D(),{avatarImageSize:V()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.C(_.Mq,{command:R,
className:"yt-mini-game-card-view-model__description"},_.C("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},W)),_.C(_.Mq,{command:R,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.C("div",null)))),_.C(_.c,{cond:V,then:function(){return _.C(_.Mq,{command:R,className:"yt-mini-game-card-view-model__description"},l)}}))},"sa");_.HI(hGM,"mini-game-card-view-model",{props:{data:_.pA,className:_.pA,useFullWidth:_.pA,isDesktopWeb:_.pA,addSearchResultTopMargin:_.pA}});_.HI(aCv,"dismissed-mini-game-card-view-model",{props:{data:_.pA,useSquareAspectRatio:_.pA}});var br=function(){var W=_.I.apply(this,arguments)||this;W.isSearch=!1;W.isRichGrid=!1;return W};
_.v(br,_.I);_.t=br.prototype;_.t.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.t.dismissibleItemOnYtServiceRequestSent=function(W,l){l.actions&&this.dismissibleItemProcessActions(W,l.actions)};
_.t.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.t.dataChanged=function(){this.dismissibleItemReset()};
_.t.dismissibleItemProcessActions=function(W,l){for(var V=0;V<l.length;V++){var f=l[V];_.k(f,_.x0)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.k(f,_.x0)),W.stopPropagation())}};
_.t.dismissibleItemHandleReplaceEnclosingAction=function(W){this.dismissedRenderer=W.item;this.isDismissed=!0};
_.rc.Object.defineProperties(br.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var W;return!!this.data&&!((W=this.dismissedRenderer)==null?0:W.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.dismissedRenderer)==null||!W.notificationMultiActionRenderer)}}});
br.prototype.dataChanged=br.prototype.dataChanged;br.prototype.dismissibleItemOnRequestSent=br.prototype.dismissibleItemOnRequestSent;br.prototype.dismissibleItemOnYtServiceRequestSent=br.prototype.dismissibleItemOnYtServiceRequestSent;_.a([_.b(),_.z("design:type",Object)],br.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],br.prototype,"isSearch",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],br.prototype,"isDismissed",void 0);
_.a([_.b(),_.z("design:type",Object)],br.prototype,"dismissedRenderer",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],br.prototype,"isRichGrid",void 0);_.a([_.G("data.layout"),_.z("design:type",Object),_.z("design:paramtypes",[])],br.prototype,"useSquareAspectRatio",null);_.a([_.G("data","dismissedRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],br.prototype,"showCard",null);
_.a([_.G("data","dismissedRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],br.prototype,"showDismissed",null);_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],br.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.a([_.XI("yt-service-request-sent-button-renderer"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],br.prototype,"dismissibleItemOnRequestSent",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],br.prototype,"dataChanged",null);_.a([_.Vq({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],br);
_.Z(br,"ytd-mini-game-card-view-model",function(){if(MTB!==void 0)return MTB;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return MTB=W},{mode:_.bD("kevlar_poly_si_batch_j081")?1:2});var EmB;var $ka;var p_=function(){return _.RA.apply(this,arguments)||this};
_.v(p_,_.RA);p_.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
p_.prototype.getContinuationUrl=function(W){var l={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(l.itct=this.data.clickTrackingParams);return _.$2(W,l)};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],p_.prototype,"data",void 0);_.a([_.Vq({is:"yt-reload-continuation",noInjection:!0})],p_);var Wik;var lEa;var ou=function(){var W=_.I.apply(this,arguments)||this;W.notificationData={};return W};
_.v(ou,_.I);_.t=ou.prototype;_.t.isMenuExpanded=function(W){return W&&W.length<=1?"undefined":"false"};
_.t.dataChanged_=function(){this.selected=void 0;var W=this.computeSelectedIndex_(this.data);W>=0&&(this.selected=W);W=this.data&&this.data.length>1;_.pG(this.hostElement,"has-items",W);_.GS(this.hostElement).querySelector("#label").tabIndex=W?0:-1};
_.t.onDropdownOpen=function(){var W=_.Wh();if(this.parentTrackingParams&&this.data){var l=_.zG(this.parentTrackingParams);this.data.forEach(function(V){W&&l&&V.trackingParams&&(V=_.zG(V.trackingParams),_.L0(W,l,V),_.Py(W,[V]))})}else this.parentTrackingParams||_.Qe(new _.bP("No parent tracking params passed in for yt-dropdown-menu."))};
_.t.hasNotification=function(W){var l;if(W.targetId&&((l=this.notificationData)==null?0:l.targetId)){var V;return W.targetId===((V=this.notificationData)==null?void 0:V.targetId)}};
_.t.computeSelectedIndex_=function(W){if(W)for(var l=0,V=W.length;l<V;l++)if(W[l].selected)return l;return-1};
_.t.computeLabel_=function(W){return this.data&&W!=void 0?this.data[W].title:""};
_.t.computeShowIcon_=function(W,l){return!l&&!!W};
_.t.computeVerticalOffset_=function(W){return W?36:0};
_.t.computeEndpoint_=function(W){return W.endpoint||W.navigationEndpoint};
_.t.onLabelClick_=function(W){this.data&&this.data.length<=1?W.stopPropagation():this.menuExpanded="true"};
_.t.onIronActivate_=function(W){W=W.detail.item;var l=_.GS(this.hostElement).querySelector("#repeat").itemForElement(W);if(l&&l.trackingParams){var V=_.Wh(),f=_.zG(l.trackingParams);V&&_.C0(V,f)}if(l&&l.serviceEndpoint)_.U("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(l.serviceEndpoint):_.pN(this.hostElement,[l.serviceEndpoint]),_.FN(this.hostElement,"yt-playlist-reloading");else a:{if((l=W.querySelector("yt-supported-renderers"))&&
(l=l.rendererElement)&&l.is=="yt-reload-continuation"){l.trigger();break a}(W=W.querySelector("yt-reload-continuation"))&&W.trigger()}};
_.t.onTap_=function(W){W.preventDefault()};
_.t.onItemTap_=function(W){this.ytEndpointBehavior.onEndpointTap_(W)};
_.t.onLinkFocus_=function(W){try{var l=W.target}catch(f){}if(l){var V=l.querySelector("tp-yt-paper-item");V&&_.gm(this,"focus",function(){V.focus()})}};
_.t.onMenuClose_=function(){this.menuExpanded="false"};
_.t.isLabelIconActive_=function(W){return W==="true"};
_.t.computeHasSubtitle_=function(W){return!!W};
_.t.computeHrefForItem_=function(W){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(W))};
_.t.updateSelectedFromBinding=function(W){this.selected=W.detail.value};
_.rc.Object.defineProperties(ou.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
ou.prototype.onMenuClose_=ou.prototype.onMenuClose_;ou.prototype.onTap_=ou.prototype.onTap_;ou.prototype.onIronActivate_=ou.prototype.onIronActivate_;ou.prototype.onDropdownOpen=ou.prototype.onDropdownOpen;ou.prototype.dataChanged_=ou.prototype.dataChanged_;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],ou.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.qq.YtEndpointBehavior),_.z("design:type",Object)],ou.prototype,"ytEndpointBehavior",void 0);
_.a([_.b(),_.z("design:type",Array)],ou.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],ou.prototype,"parentTrackingParams",void 0);_.a([_.b(),_.z("design:type",Object)],ou.prototype,"selected",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],ou.prototype,"useLabel",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],ou.prototype,"useComputedAriaLabel",void 0);_.a([_.b(),_.z("design:type",String)],ou.prototype,"icon",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],ou.prototype,"iconLabel",void 0);_.a([_.b(),_.z("design:type",String)],ou.prototype,"ariaLabel",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],ou.prototype,"disabled",void 0);_.a([_.b({computed:"isMenuExpanded(data)"}),_.z("design:type",String)],ou.prototype,"menuExpanded",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],ou.prototype,"closeOnActivate",void 0);
_.a([_.b({reflectToAttribute:!0,value:_.U("web_modern_buttons")}),_.z("design:type",Boolean)],ou.prototype,"modernButtons",void 0);_.a([_.b(),_.z("design:type",Object)],ou.prototype,"notificationData",void 0);_.a([_.G("ariaLabel, selected"),_.b(),_.z("design:type",String),_.z("design:paramtypes",[])],ou.prototype,"computedAriaLabel",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ou.prototype,"dataChanged_",null);
_.a([_.XI("paper-dropdown-open"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],ou.prototype,"onDropdownOpen",null);_.a([_.XI("iron-activate"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],ou.prototype,"onIronActivate_",null);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],ou.prototype,"onTap_",null);
_.a([_.XI("iron-overlay-closed"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],ou.prototype,"onMenuClose_",null);_.a([_.Vq({is:"yt-dropdown-menu",disableElementRegistration:!0})],ou);
_.Z(ou,"yt-dropdown-menu",function(){if(lEa===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;Wik===void 0&&(Wik=document.createElement("template"));var f=Wik;V.call(l,f.content.cloneNode(!0),W.content.firstChild);lEa=W}W=lEa;return W},{mode:2});var jo=function(){var W=_.I.apply(this,arguments)||this;W.hasNotification=!1;return W};
_.v(jo,_.I);jo.prototype.computeId=function(W){return W};
jo.prototype.computeHorizontalAlign=function(W){return W?"right":"left"};
jo.prototype.computeAccessibilityLabel=function(W){var l,V;return((l=W.accessibility)==null?void 0:(V=l.accessibilityData)==null?void 0:V.label)||null};
jo.prototype.notificationDataChanged=function(){var W;this.hasNotification=!!this.notificationData&&!((W=this.data)==null?0:W.icon)};
jo.prototype.notificationDataChanged=jo.prototype.notificationDataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Uq.YtLiveChatTooltipTargetingBehavior),_.z("design:type",Object)],jo.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],jo.prototype,"data",void 0);_.a([_.b({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.z("design:type",String)],jo.prototype,"id",void 0);
_.a([_.b({value:!1}),_.z("design:type",Boolean)],jo.prototype,"isRightAligned",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],jo.prototype,"disabled",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],jo.prototype,"closeOnActivate",void 0);_.a([_.b(),_.z("design:type",Object)],jo.prototype,"notificationData",void 0);_.a([_.b(),_.z("design:type",Object)],jo.prototype,"hasNotification",void 0);
_.a([_.b({value:!1}),_.z("design:type",Boolean)],jo.prototype,"useComputedAriaLabel",void 0);_.a([_.TS("notificationData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jo.prototype,"notificationDataChanged",null);_.a([_.Vq({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],jo);
_.Z(jo,"yt-sort-filter-sub-menu-renderer",function(){if($ka===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;EmB===void 0&&(EmB=document.createElement("template"));var f=EmB;V.call(l,f.content.cloneNode(!0),W.content.firstChild);$ka=W}W=$ka;return W},{mode:2});var VHB=_.Q(function(W){var l=W.data;var V=_.ip(function(){var R=l().onTap;(R=_.k(R,_.VY))&&_.tY().resolve(_.s6).resolveCommand(R);return!1}),f=function(){return{sources:[{url:l().thumbnailUrl,
width:120,height:90}]}},r=function(){return l().rating&&l().ratingA11yLabel&&l().reviewsCount&&l().reviewsCountA11yLabel};
return _.C("place-data-view-model",null,_.C(_.c,{cond:function(){return l().placeName&&l().placeCategory},
then:function(){return _.C("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":V},_.C(_.dN,{data:f,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.C(_.Mq,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return l().onTap}},_.C("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return l().placeName}},function(){return l().placeName})),_.C("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.C(_.c,{cond:r,
then:function(){return _.C("div",{class:_.If("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.C("span",{class:"score",title:function(){return l().ratingA11yLabel}},function(){return l().rating}),_.C("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.C(_.wN,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.C("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return l().reviewsCountA11yLabel}},function(){return l().reviewsCount}))},
else:function(){return _.C("div",{class:_.If("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.C("div",{class:_.If("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.C("span",{class:"category",
title:function(){return l().placeCategory}},function(){return l().placeCategory}))))}}))},"ta");
VHB.idomCompat=!0;_.HI(VHB,"place-data-view-model",{props:{data:_.pA}});var fEk=new _.vd("INLINE_PLAYBACK_HOOK_TOKEN");var roL=$YU({sharedUi:Cn1});_.Rp=lKS(roL)(roL.sharedUi,{animatedThumbnailEnabledSelector:function(W){return W.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(W){return W.inlinePreviewEnabled},
currentPageTypeSelector:function(W){return W.currentPageType},
currentPageSubTypeSelector:function(W){return W.currentPageSubType}});var R7L=function(W){this.setActiveSlideIndex=W;this.jobIds=[];this.isSlideshowPlaying=!1},LiL=function(W,l){W.isSlideshowPlaying||(W.isSlideshowPlaying=!0,tH9(W),se$(W,l,0))},tH9=function(W){_.pP(_.w8,function(){W.setActiveSlideIndex(0)},1)},se$=function(W,l,V){W.jobIds.push(_.pP(_.w8,function(){var f=V<l-1?V+1:0;
W.setActiveSlideIndex(f);se$(W,l,f)},1800))};var yoe=new _.vd("IMAGE_ON_LOAD_HANDLER_TOKEN");var g59=_.Q(function(W){return _.C("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.C(_.c,{cond:function(){var l;return(l=W.data())==null?void 0:l.thumbnail},
then:function(l){return _.C(_.dN,{data:l,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ua");_.Pxk=_.Q(function(W){var l=W.data;var V=W.lockupExperiments;W={};return _.C("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.C("div",{class:_.If("ytThumbnailOverlayButtonViewModelButton",(W.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var f;return V&&((f=V())==null?void 0:f.useLegacySizedIconButton)},W))},_.C(_.QH,{data:function(){return l().overlayButton}},{buttonViewModel:function(f){return _.C(_.Nq,{data:f.data,
buttonOverrides:function(){var r;return V&&((r=V())==null?0:r.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"va");
_.Pxk.idomCompat=!0;var n5v=_.Q(function(W){return _.C("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.ip(function(l){l.preventDefault();return!1})},_.C(_.QH,{data:function(){return W.data().buttons}},{toggleButtonViewModel:function(l){return _.C("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.C(_.gy,{data:l.data}))}}))},"wa");
n5v.idomCompat=!0;var CxI=_.Q(function(W){var l=function(){var V;return((V=_.k(W.data().rendererContext,_.N0))==null?void 0:V.label)||""};
return _.C("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.C(_.c,{cond:function(){return W.data().image},
then:function(){return _.C("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.C(_.dN,{data:function(){return W.data().image},
alt:l}))}}),_.C(_.c,{cond:function(){return W.data().text},
then:function(){return _.C("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return W.data().text})}}))},"xa");var cok;cok=_.Rp.animatedThumbnailEnabledSelector;_.Iu=_.Q(function(W){var l=[],V=function(){var D,u;return wJF((D=W.width)==null?void 0:D.call(W),(u=W.height)==null?void 0:u.call(W))},f=_.tY().resolve(_.R0(yoe)),r=_.WS("yt-thumbnail-view-model",function(){l.push("elRef.value set");
var D;(D=W.playbackRef)==null||D.call(W,{thumbnailElRef:r,thumbnail:W.data().image,thumbnailOverlays:W.data().overlays,thumbnailSize:V()})});
_.mw(function(){l.push("onInit");_.Xc(function(){l.push("onCleanup")})});
var R=_.$h(cok),y=function(){var D,u;return(u=(D=W.aspectRatio)==null?void 0:D.call(W))!=null?u:0},P=function(){return(W.data().image?_.LRz(W.data().image):y())<=1&&y()===0},n=function(){return P()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},B=function(){r.value||_.Qe(new _.bP("Thumbnail elRef.value is null",l.join("\n")));
f&&r.value&&f(r.value)},d=function(){var D,u;
return((D=W.hovered)==null?void 0:D.call(W))&&V()!=="large"&&((u=W.data().overlays)==null?void 0:u.some(function(H){return _.k(H,$qL)}))},J={};
return _.C("yt-thumbnail-view-model",{class:_.If("ytThumbnailViewModelHost",W.className,function(){return nmn(y())},function(){var D,u;
a:{var H=V(),p=(D=W.disableRounding)==null?void 0:D.call(W);D=(u=W.isClip)==null?void 0:u.call(W);if(!p&&!D)switch(H){case "large":u="ytThumbnailViewModelLarge";break a;case "small":u="ytThumbnailViewModelSmall";break a;default:u="ytThumbnailViewModelMedium";break a}u=void 0}return u},(J.ytThumbnailViewModelCinematic=P,J)),
style:_.Tm({"background-color":function(){var D,u=P()?(D=W.data().backgroundColor)==null?void 0:D.lightTheme:void 0;return u?LG(u,"1"):void 0}}),
el:r},_.C(_.c,{cond:P,then:function(){return _.C("div",{class:"ytThumbnailViewModelBlurredImage"},_.C(_.dN,{data:function(){return W.data().image},
alt:"",contentMode:n,targetWidth:W.width,onload:B}))}}),_.C("div",{class:"ytThumbnailViewModelImage"},_.C(_.dN,{data:function(){return W.data().image},
alt:"",contentMode:n,targetWidth:W.width,onload:B}),null),_.C(_.QH,{data:function(){return d()?void 0:W.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:Dkk,thumbnailOverlayBadgeViewModel:function(D){return _.C(UkL,{data:D.data,thumbnailSize:V,isClip:W.isClip})},
thumbnailBottomOverlayViewModel:function(D){return _.C(c0a,{data:D.data,thumbnailSize:V,isClip:W.isClip})},
thumbnailOverlayFullViewModel:CxI,thumbnailOverlayButtonViewModel:function(D){return _.C(_.Pxk,{data:D.data,lockupExperiments:W.lockupExperiments})}}),_.C(_.QH,{data:function(){var D;
return((D=W.hovered)==null?0:D.call(W))?W.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(D){return _.C(yF,{data:D.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:n5v}),_.C(_.QH,{data:function(){var D;return((D=W.hovered)==null?0:D.call(W))&&R()?W.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:g59}),_.C(_.c,{cond:W.isClip,then:function(){return _.C("div",{class:"ytPinkingNsHost"},_.C("svg",{class:"ytPinkingNsPinkingLeft"},_.C("defs",null,_.C("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.C("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.C("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.C("svg",{class:"ytPinkingNsPinkingRight"},_.C("defs",null,_.C("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.C("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.C("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ya");
_.Iu.idomCompat={callbacks:{playbackRef:!0}};var BjL=_.Q(function(W){var l=_.L(_.J4(-1,void 0,"RW2Ole")),V=l.next().value,f=l.next().value;_.mw(function(){var r=new R7L(f);LiL(r,W.data().thumbnails.length);_.Xc(function(){if(r.isSlideshowPlaying){r.isSlideshowPlaying=!1;for(var R=r.jobIds,y=0,P=R.length;y<P;y++)_.w8.cancelJob(R[y]);r.jobIds.length=0}})});
return _.C("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.C(_.QH,{data:function(){return W.data().thumbnails}},{thumbnailViewModel:function(r,R){return _.C("div",{class:function(){var y=!W.data().primaryThumbnail,P=R(),n=V(),B=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
y&&P===0&&B.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");P<=n&&B.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return B.join(" ")}},_.C(_.Iu,{data:r.data,
disableRounding:W.disableRounding}))}}))},"za");
BjL.idomCompat=!0;var C6v=new _.vd("DWELL_DETECTOR_REGISTRY_TOKEN");var Jo$=_.Q(function(W){var l=c06(W.triggeringElement),V=function(){return!!W.data().primaryThumbnail},f=function(){var R,y=(R=W.data())==null?void 0:R.maxHeight,P;
R=(P=W.maxHeight)==null?void 0:P.call(W);return y!=null&&R!=null?Math.min(y,R):R!=null?R:y},r=function(){var R=f();
if(R){var y;if(V()&&(y=W.includeStackHeight)!=null&&y.call(W)){var P;y=((P=W.doubleStack)==null?0:P.call(W))?8:4}else y=0;R=R-y-1;if(!(R<0)){P=Math;y=P.ceil;var n,B;var d=Thx((B=(n=W.aspectRatio)==null?void 0:n.call(W))!=null?B:0);return y.call(P,R*d)}}};
return _.C("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.Tm({height:function(){return f()?f()+"px":void 0},
width:function(){return r()?r()+"px":void 0}})},_.C(d8Z,{stackEnabled:V,
thumbnailSize:function(){var R,y;return wJF((R=W.width)==null?void 0:R.call(W),(y=W.height)==null?void 0:y.call(W))},
doubleStack:W.doubleStack,stackColor:function(){return W.data().stackColor},
includeStackHeight:W.includeStackHeight},_.C(_.QH,{data:function(){return W.data().primaryThumbnail}},{thumbnailViewModel:function(R){var y={};
return _.C(_.Iu,{data:R.data,width:W.width,height:W.height,aspectRatio:W.aspectRatio,disableRounding:W.disableRounding,className:_.If((y.ytCollectionThumbnailViewModelHostHasStacks=V,y)),hovered:W.hovered,playbackRef:W.playbackRef})}}),_.C(_.c,{cond:function(){var R;
return l()&&((R=W.data().thumbnails)==null?void 0:R.length)},
then:function(){return _.C("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.C(BjL,{data:W.data,disableRounding:function(){return!V()}}))}})))},"Aa");
Jo$.idomCompat={callbacks:{playbackRef:!0}};
var d8Z=_.Q(function(W){var l=W.children;var V=W.stackEnabled;var f=W.thumbnailSize;var r=W.doubleStack;var R=W.stackColor;var y=W.includeStackHeight;var P,n=(P=_.tY().resolve(_.R0(_.nP)))==null?void 0:P();return _.C(_.c,{cond:V,then:function(){return _.C(z_e,{data:function(){var B,d;return{experimentEnabled:!0,thumbnailSize:f(),doubleStack:r==null?void 0:r(),color:n?R==null?void 0:(B=R())==null?void 0:B.darkTheme:R==null?void 0:(d=R())==null?void 0:d.lightTheme,enableResponsiveMode:!1,includeStackHeight:y==
null?void 0:y()}}},l)},
else:function(){return l}})},"Ba");var D8c=new _.vd("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var mO;_.ir={calledOnce:!0,state:"visible"};mO={calledOnce:!0,state:"hidden"};_.Xq=_.Q(function(W){var l=W.data;var V=W.customCommandResolver;var f=W.className;var r=W.delayedClassName;var R=W.animationEntityKey;var y=W.isCompactWidth;W=_.L(_.J4(!1,void 0,"Mp955c"));var P=W.next().value,n=W.next().value,B=_.JG(R,""),d=_.wH(GU4,B),J=function(){var Jx,H8;return(H8=(Jx=d())==null?void 0:Jx.value)!=null?H8:!1},D=function(){_.dm(_.MB("booleanEntity",B(),{key:B(),
value:!0}));N=void 0};
R=_.L(_.X3(J));var u=R.next().value,H=R.next().value;R=_.L(_.X3(J));var p=R.next().value,X=R.next().value;R=_.L(_.X3(function(){var Jx;return J()?(Jx=l().styleTransitionConfig)==null?void 0:Jx.destinationStyle:void 0}));
var w=R.next().value,O=R.next().value,S=function(){var Jx=Object.assign({},l(),w()&&{style:w()});var H8,Kq,Z4=Jx.label,Ax=(H8=Jx.interaction)==null?void 0:(Kq=H8.accessibility)==null?void 0:Kq.label;H8=Jx.iconImage?Jx.label&&Jx.label.content?Jx.iconLeading?"leading":"trailing":"icon-only":void 0;Jx={formattedButtonText:Z4,accessibilityLabel:Ax,style:Dk8(Jx.style),type:UkS(Jx.style),state:"active",size:J0Y(Jx.size),iconPosition:H8,disabled:!1,aTagConfig:dkq(Jx,V)};_.U("enable_desktop_vdcbg_components")&&
(Jx.focused=P());return Jx},N;
R=_.su({visibilityCallback:function(Jx){var H8,Kq=(H8=l().interaction)==null?void 0:H8.onFirstVisible;Jx&&Kq&&_.sZ(Kq)},
showOption:_.ir});var x=function(){return ZgJ(S(),!!l().iconImage)};
W={};f=_.If(function(){return"ytwAdButtonViewModelHost"},function(){return l().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var Jx=!!l().delayedAppearanceConfig,H8=u();
return Jx?H8?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var Jx=!!l().delayedAppearanceConfig,H8=p();
return Jx?H8?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!l().delayedAppearanceConfig||u()?r==null?void 0:r():""},(W.ytwAdButtonViewModelHostCompactWidth=function(){return y==null?void 0:y()},W),f!=null?f:"");
var Y=function(){var Jx,H8=(Jx=l().delayedAppearanceConfig)==null?void 0:Jx.delayedInvisibleSeconds;H8&&(N=_.a$(_.w8,function(){H(!0);W8()},H8*1E3))},W8=function(){var Jx,H8=(Jx=l().delayedAppearanceConfig)==null?void 0:Jx.delayedVisibleSeconds;
H8&&(N=_.a$(_.w8,function(){X(!0);c8()},H8*1E3))},c8=function(){var Jx,H8=(Jx=l().styleTransitionConfig)==null?void 0:Jx.styleTransitionSeconds,Kq,Z4=(Kq=l().styleTransitionConfig)==null?void 0:Kq.destinationStyle;
H8&&Z4?N=_.a$(_.w8,function(){O(Z4);D()},H8*1E3):D()},B8=function(){var Jx;
return(Jx=l().delayedAppearanceConfig)==null?void 0:Jx.transitionDurationSeconds};
_.mw(function(){Y()});
_.Xc(function(){N&&_.w8.cancelJob(N)});
return _.C("ad-button-view-model",{"on:focusin":_.ip(_.U("enable_desktop_vdcbg_components")?function(){var Jx=_.tY().resolve(_.R0(_.Q5));Jx&&n(Jx.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.ip(_.U("enable_desktop_vdcbg_components")?function(){n(!1);return!1}:void 0),
class:f,el:_.DN(R),style:_.Tm({"transition-duration":function(){return B8()?B8()+"s":void 0}})},_.C(_.c,{cond:S,
then:function(){return _.C(_.zv,{data:S,icon:function(){return _.C(_.c,{cond:function(){return l().iconImage},
then:function(Jx){return _.C(_.dN,{data:Jx,alt:"",targetWidth:x,targetHeight:x,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Ca");var U8k=_.Q(function(W){var l=W.data;W=function(){return l().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var V=_.su({visibilityCallback:function(R){var y,P=(y=l().interaction)==null?void 0:y.onFirstVisible;R&&P&&_.sZ(P)},
showOption:_.ir}),f={},r={};return _.C("ad-button-group-view-model",{class:_.If("ytwAdButtonGroupViewModelHost",(f.ytwAdButtonGroupViewModelHostCompactWidth=W,f)),el:_.DN(V)},_.C("div",{class:_.If("ytwAdButtonGroupViewModelHostSecondaryButton",(r.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=W,r))},_.C(_.QH,{data:function(){return l().secondaryAdButton}},{adButtonViewModel:function(R){return _.C(_.Xq,{data:R.data})}})),_.C("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.C(_.QH,
{data:function(){return l().primaryAdButton}},{adButtonViewModel:function(R){return _.C(_.Xq,{data:R.data})}})))},"Da");var uTZ=_.Q(function(W){var l=function(){var V;return((V=W.data())==null?void 0:V.answers)||[]};
return _.C("yt-survey-icons",{class:"ytSurveyIconsHost"},_.C("div",{class:"ytSurveyIconsHeader"},_.C("div",{class:"ytSurveyIconsTitle"},function(){var V;return(V=W.data())==null?void 0:V.text}),_.C("div",null,_.C(_.zv,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var V;(V=W.onDismiss)==null||V.call(W)}}},
iconName:"DISMISSAL"}))),_.C("div",null,_.C("div",{class:"ytSurveyIconsAnswers"},_.C(_.G3,{each:function(){return l()},
keyBy:"INDEX"},function(V,f){return _.C("div",null,_.C(_.zv,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var r;(r=W.onSelect)==null||r.call(W,V(),f)}}},
icon:function(){return _.C(_.wN,{icon:function(){var r,R;return(r=V())==null?void 0:(R=r.icon)==null?void 0:R.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.C("div",{class:"ytSurveyIconsAnswersText"},_.C("div",null,function(){return l().length?l()[0].text:""}),_.C("div",null,function(){return l().length?l()[l().length-1].text:""}))))},"Ea");var k81=_.Q(function(W){var l=_.DN(_.E_(function(){var n;return(n=W.data())==null?void 0:n.rendererContext},void 0,void 0,void 0,!0)),V=_.L(_.J4(!1,void 0,"GW0yjf")),f=V.next().value,r=V.next().value,R=_.wH(noS,function(){var n;
return(n=W.data().keys)==null?void 0:n.surveyEntityKey}),y=_.wH(Cav,function(){var n;
return(n=W.data().keys)==null?void 0:n.surveyStateEntityKey});
_.$_("ytd-slimline-survey-show-action",function(){r(!1)});
var P=function(){var n,B;var d=(n=y())==null?void 0:(B=n.questionStack)==null?void 0:B[0];if(d!==void 0){var J,D;return(J=R())==null?void 0:(D=J.questions)==null?void 0:D[d]}};
V={};return _.C("yt-slimline-survey-view-model",{el:l,class:_.If("ytSlimlineSurveyViewModelHost",(V.ytSlimlineSurveyViewModelCollapsed=function(){return f()},V))},_.C("div",{class:"ytSlimlineSurveyViewModelContainer"},_.C(_.c,{cond:function(){var n;
return((n=P())==null?void 0:n.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.C(uTZ,{data:function(){return P()},
onSelect:function(n,B){var d,J;return _.g(function(D){r(!0);if(J=(d=W.data())==null?void 0:d.onSelectRating)_.sZ(J),_.dm(HFk(B));_.ju(D)})},
onDismiss:function(){r(!0);var n;var B=(n=R())==null?void 0:n.dismissalFeedbackToken;n=B?{feedbackEndpoint:{feedbackToken:B}}:void 0;n&&_.rN(n,{form:{element:l.value}})}})}})))},"Fa");var v51=_.Q(function(W){return _.C("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.C(_.QH,{data:function(){var l;return(l=W.data())==null?void 0:l.attachments}},{flexibleActionsViewModel:function(l){return _.C("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.C(_.n9,{data:l.data,
layout:function(){var V;return((V=W.lockupStyle())==null?void 0:V.arrangement)===1?0:1},
justifyContentOverride:function(){var V;return((V=W.lockupStyle())==null?void 0:V.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(l){return _.C("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.C(k81,{data:l.data}))},
expandableMetadataViewModel:function(l){l=l.data;var V;return _.C("div",{class:_.If("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(V=_.tY().resolve(_.R0(D8c)))==null?void 0:V({data:l}))},
adButtonGroupViewModel:function(l){return _.C("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.C(U8k,{data:l.data}))},
adButtonViewModel:function(l){return _.C("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.C(_.Xq,{data:l.data,isCompactWidth:!0}))}}))},"Ga");var FUU=_.yS("rich_grid_min_item_width",310),HrU=_.yS("rich_grid_max_item_width",500);var Hwa=_.Q(function(W){var l=W.data;return _.C("br-nz-badge-shape",{class:_.If(function(){return mkn(l().brNzRatingBadgeType)}),
role:function(){return l().accessibilityText?"img":void 0},
"aria-label":function(){return l().accessibilityText}},function(){var V;
return(V=l())==null?void 0:V.text})},"Ha");_.T2=_.Q(function(W){var l=function(){var V=W.data(),f,r;if(V){var R=!((f=W.workaroundShortsIsThumbnailBadge)==null||!f.call(W));f=(r=W.modern)==null?void 0:r.call(W);var y;a:switch(V.badgeStyle){case "BADGE_OVERLAY":r=!0;break a;default:r=!1}V={type:R?17:X5n(V.badgeStyle),brNzRatingBadgeType:T$6(V.badgeStyle),text:V.badgeText,icon:V.iconName,isOverlay:r,modern:f||_.U("web_modern_badge_view_model"),accessibilityText:V.accessibilityLabel||((y=_.k(V.rendererContext,_.N0))==null?void 0:y.label)}}else V=
void 0;return V};
return _.C("yt-badge-view-model",{class:_.If("ytBadgeViewModelHost",W.class)},_.C(_.oh,null,_.C(_.bz,{when:function(){var V;return!((V=l())==null||!V.brNzRatingBadgeType)}},function(){return _.C(Hwa,{data:function(){return l()}})}),_.C(_.bz,{when:function(){return!!l()&&!l().brNzRatingBadgeType}},function(){return _.C(_.di,{data:function(){return l()}})})))},"Ia");
_.T2.idomCompat=!0;var A0U,w5j;A0U=16/9;w5j=2/3;_.wn=_.Q(function(W){var l=W.data;var V=W.className;var f=W.imageSizeConfig;var r=W.notifyOnLoaded;var R=function(){return l().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},y=function(){var D;
return _.hy((D=l())==null?void 0:D.rendererContext)};
W={};W=(W.ytContentPreviewImageViewModelHost=!0,W.ytContentPreviewImageViewModelCircleImage=function(){return R()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},W.ytContentPreviewImageViewModelTappable=function(){return y()},W);
var P=function(){var D,u;return(u=(D=_.k(l().rendererContext,_.N0))==null?void 0:D.label)!=null?u:""},n=function(){return MTF(l())},B=function(){var D=QSF(R(),l().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",f==null?void 0:f(),Zrj(n()),l().layoutWidth,l().layoutHeight),u=Object.assign({},D);
D.width&&(u.width=Math.round(D.width));D.height&&(u.height=Math.round(D.height));D.maxWidth&&(u.maxWidth=Math.round(D.maxWidth));D.maxHeight&&(u.maxHeight=Math.round(D.maxHeight));return u},d=_.v4(function(){return B().height},void 0,"CxFlJb"),J=_.v4(function(){return B().width},void 0,"lb8Jhd");
return _.C("yt-content-preview-image-view-model",{el:_.DN(_.E_(function(){var D;return(D=l())==null?void 0:D.rendererContext})),
role:function(){return y()?"link":void 0},
tabindex:function(){return y()?0:void 0},
class:_.If(V,W,function(){var D=R();var u=f==null?void 0:f();D=D==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||D==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||D==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||D==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(u==null?void 0:u.size)!=null&&u.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(u==null?void 0:u.size)!=null&&u.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return D}),
style:function(){var D=B(),u=[];D.width&&u.push("width: "+D.width+"px");D.height&&u.push("height: "+D.height+"px");D.maxWidth&&u.push("max-width: "+D.maxWidth+"px");D.maxHeight&&u.push("max-height: "+D.maxHeight+"px");D.fullWidth&&u.push("width: 100%");return u.join(";")}},_.C(_.c,{cond:n,
then:function(D){return _.C(_.dN,{data:D,alt:P,"data-disabled$":function(){return!P()},
notifyOnLoaded:r,targetWidth:J,targetHeight:d,preserveWidth:function(){return!!J()},
preserveHeight:function(){return!!d()}})}}),_.C(_.QH,{data:function(){var D;
return(D=l())==null?void 0:D.overlays}},{thumbnailHoverOverlayViewModel:yF,
thumbnailOverlayButtonViewModel:_.Pxk}))},"Ja");
_.wn.idomCompat=!0;var Fiv=_.Q(function(W){var l=W.data;var V=W.className;var f=W.useSmallLayout;W=W.useMediumText;var r={};return _.C("yt-attribution-view-model",{el:_.DN(_.E_(function(){var R;return(R=l())==null?void 0:R.rendererContext})),
class:_.If(V,(r.ytAttributionViewModelHost=!0,r.ytAttributionViewModelMediumText=W,r))},_.C(_.c,{cond:function(){return _.hy(l().rendererContext)},
then:function(){return _.C("button",{class:"ytAttributionViewModelTappable"},_.C(Kiv,{data:l,useSmallLayout:f}))},
else:function(){return _.C(Kiv,{data:l,useSmallLayout:f})}}))},"Ka"),Kiv=_.Q(function(W){var l=W.data;
var V=W.useSmallLayout;var f=function(){return{size:(V==null?0:V())?16:24}};
return _.C(_.Lp,null,_.C(_.QH,{data:function(){return l().contentPreviewImage}},{contentPreviewImageViewModel:function(r){return _.C(_.wn,{data:r.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:f})}}),_.C(_.QH,{data:function(){return l().badge}},{badgeViewModel:function(r){return _.C(_.T2,{data:r.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.C(_.c,{cond:function(){return l().text},
then:function(){return _.C(_.bH,{text:function(){return l().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.C(_.c,{cond:function(){return l().suffix},
then:function(){return _.C(_.bH,{text:function(){return l().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"La");
Fiv.idomCompat=!0;var G89,bwX,paI,o5M,jeB;G89=_.Q(function(W){var l=W.delimiter;var V=W.max;var f=W.index;var r=W.isStandalone;return _.C(_.c,{cond:function(){return V()-1>f()},
then:function(){var R={};return _.C("span",{class:_.If("yt-content-metadata-view-model-wiz__delimiter",(R["yt-content-metadata-view-model-wiz__delimiter--standalone"]=r,R)),"aria-hidden":!0},l)}})},"Ma");
bwX=_.Q(function(W){var l=W.metadataPart;var V=W.maxLines;return _.C(_.bH,{text:function(){return l().text},
linkInheritColor:!0,className:function(){return OrF(V())},
userInput:!0})},"Na");
paI=_.Q(function(W){var l=W.metadataPart;var V=W.maxLines;return _.C(_.c,{cond:function(){return l().tooltip},
then:function(f){return _.C("span",{title:f,role:"tooltip"},_.C(bwX,{metadataPart:l,maxLines:V}))},
else:function(){return _.C(bwX,{metadataPart:l,maxLines:V})}})},"Oa");
o5M=_.Q(function(W){var l=W.metadataPart;var V=W.isOverlay;var f=W.useMediumText;var r=W.hideAvatar;var R=function(){return l().maxLines!==void 0?l().maxLines:1};
return _.C(_.Lp,null,_.C(_.QH,{data:function(){return l().avatarStack}},{avatarStackViewModel:function(y){return _.C(_.n_,{data:y.data,
isOverlay:V,useMediumText:f,hideAvatar:r})},
badgeViewModel:_.T2}),_.C(_.c,{cond:function(){return l().leadingIcon},
then:function(y){return _.C(_.wN,{className:"yt-content-metadata-view-model-wiz__leading-icon",icon:function(){return y().name},
size:function(){return y().width}})}}),_.C(_.c,{cond:function(){return l().text},
then:function(){return _.C(paI,{metadataPart:l,maxLines:R})}}),_.C(_.c,{cond:function(){return l().icon},
then:function(y){return _.C(_.wN,{className:"yt-content-metadata-view-model-wiz__icon",icon:function(){return y().name},
size:function(){return y().width}})}}))},"Pa");
jeB=_.Q(function(W){var l=W.metadataRow;var V=W.isInline;var f=W.delimiter;var r=W.isOverlay;var R=W.useMediumText;var y=W.extensions;var P=function(){var B,d=y==null?void 0:(B=y())==null?void 0:B.lockupMetadata;B=l();var J,D;return!!((d==null?0:(J=d.byline)==null?0:J.hideAvatar)&&((D=_.k(B,NYc))==null?void 0:D.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},n=function(){return l().metadataParts||[]};
W={};return _.C("div",{class:_.If("yt-content-metadata-view-model-wiz__metadata-row",(W["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=V,W["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var B,d=y==null?void 0:(B=y())==null?void 0:B.lockupMetadata;B=l();var J,D;return!!((d==null?0:(J=d.byline)==null?0:J.addPadding)&&((D=_.k(B,NYc))==null?void 0:D.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},W["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
function(){var B;
return!!(y==null?0:(B=y())==null?0:B.lockupMetadata)&&l().badges&&!l().metadataParts},W))},_.C(_.QH,{data:function(){return l().badges}},{badgeViewModel:function(B){return _.C("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.C(_.T2,{data:B.data}))}}),_.C(_.G3,{each:n},function(B,d){return _.C(_.Lp,null,_.C(o5M,{metadataPart:B,
isOverlay:r,useMediumText:R,hideAvatar:P}),_.C(G89,{delimiter:f,max:function(){return n().length},
index:d,isStandalone:!1}))}),_.C(_.c,{cond:function(){return l().isSpacerRow&&!V()},
then:function(){return _.C("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Qa");
_.A8=_.Q(function(W){W=_.Dd(W,{layout:0,isOverlay:!1});var l=W.data,V=W.layout,f=W.isOverlay,r=W.useMediumText,R=W.extensions,y=function(){return V()===0},P=function(){var B;
return((B=l().metadataRows)==null?void 0:B.filter(function(d){var J,D=R==null?void 0:(J=R())==null?void 0:J.lockupMetadata,u,H;J=!!((D==null?0:(u=D.description)==null?0:u.hideDescription)&&((H=_.k(d,NYc))==null?void 0:H.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var p,X;return!((D==null?0:(p=D.spacer)==null?0:p.hideSpacer)&&((X=_.k(d,NYc))==null?void 0:X.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||J)}))||[]},n={};
return _.C("yt-content-metadata-view-model",{class:_.If(W.className,"yt-content-metadata-view-model-wiz",(n["yt-content-metadata-view-model-wiz--inline"]=y,n["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.hy(l().rendererContext)},n["yt-content-metadata-view-model-wiz--medium-text"]=r,n)),
el:_.DN(_.E_(function(){return l().rendererContext}))},_.C(_.G3,{each:P},function(B,d){return _.C(_.Lp,null,_.C(jeB,{metadataRow:B,
isInline:y,delimiter:function(){return l().delimiter},
isOverlay:f,useMediumText:r,extensions:R}),_.C(_.c,{cond:function(){return y()&&!B.isSpacerRow},
then:function(){return _.C(G89,{delimiter:function(){return l().delimiter},
max:function(){return P().length},
index:d,isStandalone:!0})}}))}))},"Ra");
_.A8.idomCompat=!0;var IEI=_.Q(function(W){var l={};return _.C("yt-lockup-metadata-view-model",{class:_.If("yt-lockup-metadata-view-model-wiz",function(){a:{var V=W.lockupStyle();if(V==null?0:V.isOverlay)V="yt-lockup-metadata-view-model-wiz--overlay";else switch(V==null?void 0:V.arrangement){case 1:V="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:V="yt-lockup-metadata-view-model-wiz--vertical"}}return V},function(){a:{var V=W.lockupStyle();
if(V==null?0:V.isTiny)V="yt-lockup-metadata-view-model-wiz--tiny";else switch(V==null?void 0:V.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":V="yt-lockup-metadata-view-model-wiz--compact";break a;default:V="yt-lockup-metadata-view-model-wiz--standard"}}return V},(l["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var V;
return(V=W.lockupStyle())==null?void 0:V.isOverlay},l["yt-lockup-metadata-view-model-wiz--card"]=function(){var V;
return(V=W.lockupStyle())==null?void 0:V.isCard},l["yt-lockup-metadata-view-model-wiz--centered"]=function(){var V;
return(V=W.lockupStyle())==null?void 0:V.isCentered},l["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var V;
return(V=W.lockupStyle())==null?void 0:V.typographyBump},l["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var V;
return(V=W.lockupStyle())==null?void 0:V.useLegacyTypography},l["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var V;
return(V=W.lockupStyle())==null?void 0:V.useRichGridLegacyTypography},l))},_.C(_.QH,{data:function(){return W.data().image}},{avatarStackViewModel:function(V){return _.C("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.C(_.n_,{data:V.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(V){return _.C("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.C(_.gn,{data:V.data}))},
decoratedAvatarViewModel:function(V){return _.C("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.C(_.Px,{data:V.data}))}}),_.C("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.C("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var V;return(V=W.data().title)==null?void 0:V.content}},_.C(_.c,{cond:function(){return W.data().title},
then:function(V){return _.C(_.Mq,{command:W.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:W.lockupAccessibilityLabel},_.C(_.bH,{text:V,userInput:!0}))}})),_.C("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.C(_.QH,{data:function(){return W.data().metadata}},{contentMetadataViewModel:function(V){return _.C(_.A8,{data:V.data,
layout:1,useMediumText:function(){var f,r;return((f=W.lockupStyle())==null?void 0:f.typographyBump)||((r=W.lockupStyle())==null?void 0:r.useRichGridLegacyTypography)},
extensions:function(){var f,r,R,y;return{lockupMetadata:{byline:{hideAvatar:((f=W.lockupStyle())==null?void 0:f.arrangement)===0,addPadding:((r=W.lockupStyle())==null?void 0:r.arrangement)===1},description:{hideDescription:!((R=W.lockupStyle())==null||!R.compactMetadata)},spacer:{hideSpacer:!((y=W.lockupStyle())==null||!y.compactMetadata)}}}}})}})),_.C(_.QH,{data:function(){return W.data().attribution}},{attributionViewModel:function(V){return _.C("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},
_.C(Fiv,{data:V.data,
useSmallLayout:!0}))}})),_.C("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.C(_.QH,{data:function(){return W.data().menuButton}},{buttonViewModel:function(V){return _.C(_.Nq,{data:V.data,
buttonOverrides:function(){var f;return((f=W.lockupStyle())==null?0:f.isOverlay)?{style:"overlay"}:void 0}})}})))},"Sa");
IEI.idomCompat=!0;var iwk=_.Q(function(W){var l=_.WS("notification-multi-action-renderer");_.iz(function(){requestAnimationFrame(function(){_.$s(l.value)})});
var V={},f={},r={};return _.C("notification-multi-action-renderer",{class:_.If("ytNotificationMultiActionRendererHost",(V.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var R;return(R=W.useLegacyShelfStyle)==null?void 0:R.call(W)},V)),
el:l},_.C("span",{"aria-live":"polite",class:_.If("ytNotificationMultiActionRendererTextContainer",(f.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var R;return(R=W.useLegacyShelfStyle)==null?void 0:R.call(W)},f))},_.C(_.bH,{text:function(){return W.data().responseText}})),_.C("div",{class:_.If("ytNotificationMultiActionRendererButtonContainer",(r.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var R;
return(R=W.useLegacyShelfStyle)==null?void 0:R.call(W)},r))},_.C(_.QH,{data:function(){var R;
return(R=W.data().buttons)==null?void 0:R.map(function(y){if(y=y.buttonRenderer){var P,n=Object,B=n.assign,d=(P=y.icon)==null?void 0:P.iconType;P=(P=y.command||y.serviceEndpoint||y.navigationEndpoint)?{innertubeCommand:P}:void 0;y={buttonViewModel:B.call(n,{},{iconName:d,onTap:P,trackingParams:y.trackingParams,titleFormatted:y.text?_.$J(y.text):void 0},zG8(y))}}else y=void 0;return y}).filter(function(y){return!!y})}},{buttonViewModel:function(R,y){return _.C("div",null,_.C(_.Nq,{data:R.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var P;return((P=W.useModernStyles)==null?0:P.call(W))?{type:y()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ta");var m8e=_.Q(function(W){var l=_.WS("notification-text-renderer");_.iz(function(){requestAnimationFrame(function(){_.$s(l.value)})});
return _.C("notification-text-renderer",{el:l,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.C(_.bH,{text:function(){return W.data().successResponseText}}))},"Ua");_.QF=_.Q(function(W){var l=_.wH(mmv,function(){var f;return N$z((f=W.contentId)==null?void 0:f.call(W))}),V=function(){var f;
return _.k((f=l())==null?void 0:f.command,_.x0)};
return _.C(_.c,{cond:function(){var f;if(!(f=V())){var r;f=_.k((r=l())==null?void 0:r.command,Cl$)}return f},
then:function(){return _.C(_.c,{cond:V,then:function(){var f={};return _.C("div",{class:_.If("ytDismissibleItemReplacedContent",function(){var r;return YGz((r=W.aspectRatio)==null?void 0:r.call(W))})},_.C("div",{class:_.If((f.ytDismissibleItemAspectRatioContainer=function(){var r;
return((r=W.aspectRatio)==null?void 0:r.call(W))!==void 0},f))},_.C(_.QH,{data:function(){var r;
return(r=V())==null?void 0:r.item}},{notificationMultiActionRenderer:function(r){return _.C(iwk,{data:r.data,
useModernStyles:W.useModernStyle,useLegacyShelfStyle:W.useLegacyShelfStyle})},
notificationTextRenderer:m8e})))}})},
else:W.children})},"Va");_.Xak=_.Q(function(W){var l=W.data;var V=W.customCommandResolver;W=_.DN(_.su({visibilityCallback:function(R){var y,P=(y=l().interaction)==null?void 0:y.onFirstVisible;R&&P&&_.sZ(P)},
showOption:_.ir}));var f=function(){var R;return((R=l().interaction)==null?0:R.onTap)?function(y){var P;B$F(y,(P=l().interaction)==null?void 0:P.onTap,V)}:void 0},r=function(){var R,y=l(),P=f(),n=(R=_.k(l().rendererContext,_.N0))==null?void 0:R.label;
a:switch(y.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":R=1;break a;default:R=0}return{size:qGv(y.size),type:R,onTap:P,accessibilityText:n}};
return _.C("ad-avatar-view-model",{class:function(){var R;return((R=l().interaction)==null?0:R.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:W},_.C(_.c,{cond:function(){return l().image},
then:function(R){return _.C(J0X,{data:r,image:R})}}))},"Wa");_.My=_.Q(function(W){var l=_.Dd(W,{hasDot:!1});W=Object.assign({},l);var V=l.data,f=l.hasDot;l=l.customCommandResolver;var r=(delete W.data,delete W.hasDot,delete W.customCommandResolver,W);W=function(){return V().style};
W!==void 0&&W!==null||_.x2(Error("Jh"));W=_.Vl(function(){return V().interaction},l);
return _.C("ad-badge-view-model",{class:_.If(function(){var R;return((R=V().interaction)==null?0:R.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var R=r.adRenderingContextType();
V();return R==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:_.DN(W)},_.C(_.di,{data:function(){var R;V();return{type:2,text:(R=V().label)==null?void 0:R.content,adsIncludeDot:f(),isOverlay:V().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Xa");var TjX;_.ZO=_.Q(function(W){var l=W.data;var V=W.customCommandResolver;var f=W.adRenderingContextType;return _.C("ad-details-line-view-model",{class:function(){var r;return((r=l().interaction)==null?0:r.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.DN(_.su({visibilityCallback:function(r){var R,y=(R=l().interaction)==null?void 0:R.onFirstVisible;r&&y&&_.sZ(y)},
showOption:_.ir}),_.Vl(function(){return l().interaction},V))},_.C(_.c,{cond:function(){return l().style},
then:function(r){return _.C(_.G3,{each:function(){var R;return((R=l())==null?void 0:R.attributes)||[]},
keyBy:"INDEX"},function(R){return _.C(TjX,{attribute:R,style:r,adRenderingContextType:function(){return f()}})})}}))},"Ya");
TjX=_.Q(function(W){var l=W.attribute;var V=W.style;var f=W.adRenderingContextType;return _.C(_.c,{cond:function(){return l().text},
then:function(r){return _.C(_.bH,{text:r,className:function(){var R=f();V();return R==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Za");var wak=_.Q(function(W){var l=W.data;var V=W.typographyBump;var f=function(){return l().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
W={};return _.C(_.Lp,null,_.C("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.C(_.bH,{text:function(){return l().headline},
className:_.If("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(W.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return f==null?void 0:f()},W.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(V==null?void 0:V())&&!(f==null?0:f())},W)),
linkInheritColor:!0}),_.C(_.c,{cond:function(){return l().description},
then:function(r){var R={};return _.C(_.bH,{text:r,className:_.If("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(R.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return f==null?void 0:f()},R.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(V==null?void 0:V())&&!(f==null?0:f())},R)),
linkInheritColor:!0})}}),_.C(_.c,{cond:function(){return l().secondaryDescription},
then:function(r){var R={};return _.C(_.bH,{text:r,className:_.If("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(R.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return V==null?void 0:V()},R)),
linkInheritColor:!0})}}),_.C("div",{class:function(){return f()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.C(_.c,{cond:function(){return l().adAvatar},
then:function(){return _.C("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.C(_.QH,{data:function(){return l().adAvatar}},{adAvatarViewModel:_.Xak}))}}),_.C(_.QH,{data:function(){return l().adBadge}},{adBadgeViewModel:function(r){return _.C(_.My,{data:r.data,
hasDot:function(){return!!l().adDetailsLine},
adRenderingContextType:function(){return l().adRenderingContextType}})}}),_.C(_.QH,{data:function(){return l().adDetailsLine}},{adDetailsLineViewModel:function(r){return _.C(_.ZO,{data:r.data,
adRenderingContextType:function(){return l().adRenderingContextType}})}}))),_.C("div",{class:function(){return f()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.C(_.QH,{data:function(){return l().menu}},{buttonViewModel:function(r){return _.C(_.Nq,{data:r.data,
buttonOverrides:function(){a:switch(l().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var R="S";break a;default:R="M"}return{size:R}}})}})))},"$a"),Aoe=_.Q(function(W){var l=W.data;
var V=W.noBottomMargin;var f=W.useVideoLockupTopPadding;var r=W.typographyBump;W={};W=_.If("ytwFeedAdMetadataViewModelHostMetadata",(W.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return V==null?void 0:V()},W.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return f==null?void 0:f()},W));
var R=function(){return l().adBadge};
R!==void 0&&R!==null||_.x2(Error("Kh"));R={};var y={};return _.C(_.Lp,null,_.C(_.c,{cond:function(){return l().adAvatar},
then:function(){return _.C("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.C(_.QH,{data:function(){return l().adAvatar}},{adAvatarViewModel:function(P){return _.C(_.Xak,{data:P.data})}}))}}),_.C("div",{class:W},_.C("div",{class:_.If("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(R.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return r==null?void 0:r()},R.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(r==
null?void 0:r())&&_.U("web_enable_typography_bump_v2")},R))},_.C(_.bH,{text:function(){return l().headline},
linkInheritColor:!0})),_.C(_.c,{cond:function(){return l().description},
then:function(P){return _.C(_.bH,{text:P,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.C("div",{class:function(){return l().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.U("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.C(_.QH,{data:function(){return l().adBadge}},
{adBadgeViewModel:function(P){return _.C(_.My,{data:P.data,
hasDot:function(){return!!l().adDetailsLine},
adRenderingContextType:function(){return l().adRenderingContextType}})}}),_.C(_.QH,{data:function(){return l().adDetailsLine}},{adDetailsLineViewModel:function(P){return _.C(_.ZO,{data:P.data,
adRenderingContextType:function(){return l().adRenderingContextType}})}})),_.C(_.c,{cond:function(){return l().secondaryDescription},
then:function(P){return _.C(_.bH,{text:P,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.C("div",{class:_.If("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(y.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return f==null?void 0:f()},y))},_.C(_.QH,{data:function(){return l().menu}},{buttonViewModel:_.Nq})))},"ab"),Op=_.Q(function(W){var l=W.data;
var V=W.noBottomMargin;var f=W.listenToTapEvent;var r=W.setTouchEndHandler;var R=W.useVideoLockupTopPadding;var y=W.typographyBump;W=_.su({visibilityCallback:function(J){var D,u=(D=l().interaction)==null?void 0:D.onFirstVisible;J&&u&&_.sZ(u)},
showOption:_.ir});var P=_.Vl(function(){return l().interaction},void 0,function(){return f==null?void 0:f()}),n=_.L(_.J4(!1,void 0,"a2FSrb")),B=n.next().value,d=n.next().value;
n=_.ip(function(J){(r==null?0:r())&&!B()&&(J.currentTarget.click(),d(!0),setTimeout(function(){d(!1)},100));
return!1});
return _.C("feed-ad-metadata-view-model",{class:function(){var J;return((J=l().interaction)==null?0:J.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.DN(W,P),"on:touchend":n},_.C(_.oh,null,_.C(_.bz,{when:function(){return l().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.C(wak,{data:l,
typographyBump:y})}),_.C(_.bz,{when:function(){return l().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.C(Aoe,{data:l,
noBottomMargin:V,useVideoLockupTopPadding:R,typographyBump:y})})))},"bb");var Qe1,MHk;Qe1=_.Rp.inlinePreviewEnabledSelector;_.au=_.Q(function(W){return _.C("yt-lockup-view-model",{class:_.If(W.className)},_.C(_.QF,{contentId:function(){return W.data().contentId},
useModernStyle:!0,aspectRatio:function(){var l,V;return((l=W.containerType)==null?void 0:l.call(W))!==3?ICn(W.data().contentType,(V=W.force16By9ThumbnailAspectRatio)==null?void 0:V.call(W)):void 0}},function(){return _.C(MHk,Object.assign({},W))}))},"cb");
MHk=_.Q(function(W){W=_.Dd(W,{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 l=W.data,V=W.containerLayoutConfig,f=W.containerType,r=W.sizing,R=W.protectBackground,y=W.typographyBump,P=W.force16By9ThumbnailAspectRatio,n=W.thumbnailFixedWidth,B=W.thumbnailTargetWidth,d=W.lockupExperiments,J=W.elementsPerRow;
W=_.DN(_.E_(function(){var Kq;return(Kq=l())==null?void 0:Kq.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 D=_.$h(Qe1),u=_.tY().resolve(_.R0(fEk)),H=u?{}:void 0,p=function(){var Kq,Z4,Ax;return(Ax=(Z4=_.k((Kq=l())==null?void 0:Kq.rendererContext,_.N0))==null?void 0:Z4.label)!=null?Ax:void 0},X=function(){var Kq=V==null?void 0:V(),Z4;
if(Kq==null?0:Kq.containerType){var Ax=(Z4=l())==null?void 0:Z4.contentType;Z4=d();var sM=y(),Ta=B(),ck=R();Kq=Object.assign({},irv(p5z(Kq),G0U(Kq.responsiveSize),sM,Ax,Kq.force16By9ThumbnailAspectRatio,Ta,ck,Z4),{thumbnailFixedWidth:Kq.contentPreviewWidth})}else Kq=irv(f(),r(),y(),(Ax=l())==null?void 0:Ax.contentType,P(),B(),R(),d());return Kq};
u&&H&&u({enabled:function(){return D()},
itemPlaybackModel:function(){return l().itemPlayback},
thumbnailElRef:function(){return H.thumbnailElRef},
containerElRef:W,options:function(){var Kq,Z4=(Kq=_.k(l().metadata,_.Yqv))==null?void 0:Kq.endorsement;Kq=H.thumbnailOverlays||[];var Ax;!Z4||((Ax=d())==null?0:Ax.onFocusEffect)||Kq.push(Z4);var sM,Ta;return{thumbnail:H.thumbnail,thumbnailOverlays:Kq,accessibilityText:p(),thumbnailSize:H.thumbnailSize,enableRounding:X().isCollection,containPlayerWithinThumbnail:X().isCollection,trackingParams:(sM=_.k(l().rendererContext,_.Ma))==null?void 0:(Ta=sM.loggingDirectives)==null?void 0:Ta.trackingParams}}});
var w=0;u=_.L(_.J4(!1,void 0,"GH4i8d"));var O=u.next().value,S=u.next().value;u=_.L(_.J4(!1,void 0,"hS52Ob"));var N=u.next().value,x=u.next().value;u=_.ip(function(){var Kq=D()&&l().itemPlayback;N()?(_.w8.cancelJob(w),w=_.w8.addJob(function(){S(!Kq)},8,32)):S(!Kq);
return!0});
var Y=_.ip(function(){w&&(_.w8.cancelJob(w),w=0);S(!1)});
_.Xc(function(){w&&(_.w8.cancelJob(w),w=0)});
var W8=eGF(function(){x(!0)}),c8=W8.touchFeedbackEvents,B8=W8.touchFeedbackOnPointerUp,Jx=W8.touchFeedbackOnPointerDown;
W8=W8.touchFeedbackOnPointerLeave;var H8={};return _.C("div",{el:W,class:_.If("yt-lockup-view-model-wiz",function(){a:{var Kq=X();if(Kq.isOverlay)Kq="yt-lockup-view-model-wiz--overlay";else switch(Kq.arrangement){case 1:Kq="yt-lockup-view-model-wiz--horizontal";break a;default:Kq="yt-lockup-view-model-wiz--vertical"}}return Kq},function(){a:{var Kq=X();
if(Kq.isOverlay)Kq="yt-lockup-view-model-wiz--overlay";else{switch(Kq.collectionStackNumber){case 1:Kq="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:Kq="yt-lockup-view-model-wiz--collection-stack-2";break a}Kq=void 0}}return Kq},function(){var Kq;
return _.aCU((Kq=l())==null?void 0:Kq.contentId)},(H8["yt-lockup-view-model-wiz--card"]=function(){return X().isCard},H8["yt-lockup-view-model-wiz--compact"]=function(){return X().isTiny||X().sizing!=="STANDARD"},H8["yt-lockup-view-model-wiz--protect-background"]=R,H8["yt-lockup-view-model-wiz--add-margins"]=function(){return X().addMarginForFullbleed},H8["yt-lockup-view-model-wiz--centered"]=function(){return X().isCentered},H8["yt-lockup-view-model-wiz--fullbleed"]=function(){return X().fullbleed},
H8["yt-lockup-view-model-wiz--single-column-grid"]=function(){return J()===1&&f()===2},H8["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var Kq;
return(Kq=d())==null?void 0:Kq.useRichGridLegacyMargin},H8)),
"on:mousedown":Jx,"on:mouseleave":Y,"on:mouseup":B8,"on:mouseover":u,"on:touchstart":Jx,"on:touchend":B8,"on:pointerleave":W8},_.C(_.Mq,{command:function(){var Kq;return _.qB((Kq=l())==null?void 0:Kq.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return n()&&X().arrangement===1?"width: "+n():""}},_.C(_.QH,{data:function(){var Kq;
return(Kq=l())==null?void 0:Kq.contentImage}},{thumbnailViewModel:function(Kq){return _.C(_.Iu,{data:Kq.data,
aspectRatio:function(){return X().aspectRatio},
disableRounding:function(){return X().disableRounding},
width:B,hovered:O,isClip:function(){var Z4;return((Z4=l())==null?void 0:Z4.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:P6j(H),lockupExperiments:function(){return d()}})},
collectionThumbnailViewModel:function(Kq){return _.C(Jo$,{data:Kq.data,aspectRatio:function(){return X().aspectRatio},
disableRounding:function(){return X().disableRounding},
width:B,doubleStack:function(){return X().collectionStackNumber===2},
hovered:O,playbackRef:P6j(H)})},
decoratedAvatarViewModel:_.Px})),_.C("div",{class:"yt-lockup-view-model-wiz__metadata"},_.C(_.QH,{data:function(){var Kq;return(Kq=l())==null?void 0:Kq.metadata}},{lockupMetadataViewModel:function(Kq){return _.C(IEI,{data:Kq.data,
lockupStyle:X,lockupCommand:function(){var Z4;return _.qB((Z4=l())==null?void 0:Z4.rendererContext)},
lockupAccessibilityLabel:function(){return p()}})},
feedAdMetadataViewModel:function(Kq){return _.C(Op,{data:Kq.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:y})}}),_.C(_.QH,{data:function(){var Kq;
return(Kq=l())==null?void 0:Kq.attachmentSlot}},{lockupAttachmentsViewModel:function(Kq){return _.C(v51,{data:Kq.data,
lockupStyle:X})}})),_.C(_.ZS,{model:function(){a:{switch(X().collectionStackNumber){case 1:var Kq=8;
break a;case 2:Kq=12;break a}Kq=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:Kq}},
pointerDownEvent:c8.pointerDownEvent,pointerUpEvent:c8.pointerUpEvent,pointerLeaveEvent:c8.pointerLeaveEvent}))},"db");
_.au.idomCompat=!0;_.HI(_.au,"yt-lockup-view-model",{props:{data:_.pA,containerLayoutConfig:_.pA,containerType:_.pA,sizing:_.pA,protectBackground:_.pA,typographyBump:_.pA,thumbnailFixedWidth:_.pA,thumbnailTargetWidth:_.pA,force16By9ThumbnailAspectRatio:_.pA,className:_.pA,lockupExperiments:_.pA,elementsPerRow:_.pA}});var $k6,Zwa=_.Q(function(W){var l=_.Dd(W,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),V=l.text,f=l.alwaysShowTruncationText;W=l.truncationText;var r=l.onTextClick,R=l.maxLines,y=l.disableTextMask,P=l.textStyle,n=l.accessibilityLabel,B=l.textSize,d=l.alwaysTruncateAtMaxLines,J=l.expandOnClick;l=_.L(_.J4(!1,void 0,"EzA1q"));var D=l.next().value,u=l.next().value;l=_.ip(function(){J()&&u(!D());r==null||r()});
var H=function(){a:switch(B()){case "medium":var Y=2;break a;case "large":Y=2.2;break a;default:Y=1.8}return Y},p=VHF(V,function(){return D()?Infinity:R()},H,y,d,D),X=p.isTruncated;
V=p.displayText;d=p.contentRef;var w=p.hiddenRef,O=p.placeholderTruncationTextRef,S=p.hiddenTruncationTextRef;p=p.truncationTextRef;var N={},x={};return _.C("truncated-text",{class:_.If((N["truncated-text-wiz"]=!0,N["truncated-text-wiz--overlay"]=function(){return P()==="overlay"},N["truncated-text-wiz--medium-text"]=function(){return B()==="medium"},N["truncated-text-wiz--large-text"]=function(){return B()==="large"},N["truncated-text-wiz--primary-text"]=function(){return P()==="primary-text"},N)),
"on:click":l,style:function(){return"line-height: "+H()+"rem;"}},_.C("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:d,style:function(){return D()?"":"max-height: "+R()*H()+"rem;"}},_.C(_.bH,{text:V}),_.C("button",{"aria-disabled":!0,
disabled:!0,class:"truncated-text-wiz__inline-button",el:O,style:function(){return"line-height: "+H()+"rem;"}},_.C(_.bH,{text:W}))),_.C("truncated-text-content",{class:_.If("truncated-text-wiz__truncated-text-content","truncated-text-wiz__truncated-text-content--hidden-text-content"),
el:w,style:function(){return D()?"":"max-height: "+R()*H()+"rem;"},
"aria-hidden":"true"},_.C(_.bH,{text:V}),_.C("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:S,style:function(){return"line-height: "+H()+"rem;"}},_.C(_.bH,{text:W}))),_.C("button",{"aria-label":n,
class:_.If((x["truncated-text-wiz__absolute-button"]=function(){return!y()},x["truncated-text-wiz__bottom-button"]=function(){return y()},x["truncated-text-wiz--hidden"]=function(){return!(!D()&&(f!=null&&f()||X()))},x)),
el:p,style:function(){return"line-height: "+H()+"rem;"}},_.C(_.bH,{text:W})))},"eb");
Zwa.idomCompat={callbacks:{onTextClick:!0}};var z7L=_.Q(function(W){var l=W.data;W=W.className;var V=_.v4(function(){return roS(l())},void 0,"APjhDb");
return _.C("yt-video-attribute-view-model",{class:W},_.C("div",{class:function(){var f=l();a:switch(f.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(f.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var R="yt-video-attribute-view-model--image-small";break a;default:R="yt-video-attribute-view-model--image-large"}a:switch(f.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var y=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":y="yt-video-attribute-view-model--image-avatar";break a;default:y=""}a:switch(f.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var P="yt-video-attribute-view-model--metadata-header";break a;default:P=""}a:switch(f.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var n="yt-video-attribute-view-model--container-card";break a;default:n=""}return["yt-video-attribute-view-model",r,R,
y,P,n,roS(f)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.Tm({"background-color":function(){var f=l();if(f.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var r="";else{r=f.lightColorPalette;f=f.darkColorPalette;var R,y=((R=_.tY().resolve(_.R0(_.nP)))==null?0:R())&&f?f:r;r=(r=y==null?void 0:y.section2Color)?_.sD(r):""}return r}})},_.C(_.c,{cond:function(){return V()||!_.U("web_video_attribute_view_model_a11y_fix")},
then:function(){return _.C(_.Mq,{className:"yt-video-attribute-view-model__content-container",command:V,role:"group",ariaLabel:function(){return l().title}},_.C(_.c,{cond:function(){return l().heroText||l().image},
then:function(){return _.C(OwL,{data:l})}}),_.C(aEM,{data:l,
sizeSmall:function(){return l().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))},
else:function(){return _.C("div",{class:"yt-video-attribute-view-model__content-container"},_.C(_.c,{cond:function(){return l().heroText||l().image},
then:function(){return _.C(OwL,{data:l})}}),_.C(aEM,{data:l,
sizeSmall:function(){return l().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))}})))},"fb");
z7L.idomCompat=!0;var OwL=_.Q(function(W){var l=W.data;var V,f=(V=_.tY().resolve(_.R0(_.nP)))==null?void 0:V(),r=function(){return f&&l().darkThemeImage?l().darkThemeImage:l().image},R=_.v4(function(){return R7v(l())},void 0,"w5yahc");
return _.C("div",{class:"yt-video-attribute-view-model__hero-section"},_.C(_.oh,null,_.C(_.bz,{when:r},function(){return _.C(_.dN,{data:function(){return r()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.C(_.bz,{when:function(){return l().heroText}},function(){return _.C("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.C("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return l().heroText}))})),_.C(_.c,{cond:function(){return l().overflowMenuOnTap},
then:function(){return _.C("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.C(_.zv,{data:R,iconName:"MORE_VERT"}))}}))},"gb");
OwL.idomCompat=!0;var aEM=_.Q(function(W){var l=W.data;W=W.sizeSmall;var V=function(){return l().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},f=_.v4(function(){return t2(_.Rf({innertubeCommand:roS(l())}))?"link":"group"},void 0,"SgcHod"),r={};
return _.C("div",{class:_.If("yt-video-attribute-view-model__metadata",(r["yt-video-attribute-view-model--small-font"]=W,r)),role:f},_.C("h1",{class:"yt-video-attribute-view-model__title"},function(){return l().title}),_.C(_.c,{cond:function(){return l().subtitle},
then:function(){return _.C("h4",{class:"yt-video-attribute-view-model__subtitle"},_.C(_.c,{cond:V,then:function(){return _.C(Zwa,{text:function(){return fEj(l().subtitle)},
truncationText:function(){return fEj(l().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.C("span",null,function(){return l().subtitle})}}))}}),_.C(_.c,{cond:function(){return l().secondarySubtitle},
then:function(R){return _.C("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.C(_.bH,{text:function(){var y=R();if(y!=null&&y.attachmentRuns){for(var P=[],n=_.L(y.attachmentRuns),B=n.next();!B.done;B=n.next())B=B.value,B.element&&P.push(Object.assign({},B,{element:Object.assign({},B.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));y=Object.assign({},y,{attachmentRuns:P})}return y}}))}}),_.C(_.QH,
{data:function(){return l().buttonViewModel}},{buttonViewModel:function(R){return _.C(_.Nq,{data:R.data,
className:"yt-video-attribute-view-model__button"})}}))},"hb");
aEM.idomCompat=!0;_.HI(z7L,"yt-video-attribute-view-model",{props:{data:_.pA,className:_.pA}});var z2=function(){var W=_.I.apply(this,arguments)||this;W.useHighlightStyling=_.U("web_enable_deeper_metadata_highlight_styling");W.isSearch=!1;W.JSC$15161_lastScrollContainerWidth=NaN;W.pageLoadingFromNavigation=!1;W.currentIndex=0;W.supportComponentResize=!1;return W};
_.v(z2,_.I);_.t=z2.prototype;
_.t.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}}}}}};
_.t.attached=function(){document.addEventListener("yt-page-type-changed",_.mz(this,this.onPageChange))};
_.t.detached=function(){document.removeEventListener("yt-page-type-changed",_.mz(this,this.onPageChange))};
_.t.getItemsPath=function(){return"data.cards"};
_.t.onIronResize=function(){this.updateListStyles()};
_.t.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var W;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(W=this.data)==null?void 0:W.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.U("problem_walkthrough_sd")&&!!this.centerItems};
_.t.computeCardListStyle=function(W){return W||null};
_.t.computeEmpty=function(W){return!this.get("cards.length",W)};
_.t.computeThumbnailStyle=function(W){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",W)||null};
_.t.computeHasSubtitle=function(W){return!!this.get("header.richListHeaderRenderer.subtitle",W)};
_.t.computeInitialCountNumber=function(W){return this.hasSquareMiniApp&&W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.t.computeUseFloorScrolling=function(W){return W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.t.computeHasGameCard=function(W){return(W=this.get("cards",W))?W.some(function(l){return l.gameCardRenderer}):!1};
_.t.computeCenterHeaderTitle=function(W){return!(W==null||!W.centerHeaderTitle)};
_.t.computeHasPortraitMiniApp=function(W){return(W=W==null?void 0:W.cards)?W.some(function(l){return l.miniGameCardViewModel&&l.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.t.computeHasSquareMiniApp=function(W){return(W=W==null?void 0:W.cards)?W.some(function(l){return l.miniGameCardViewModel&&l.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.t.computeHasSkinnyWidthPortraitMiniApp=function(W){return(W=W==null?void 0:W.cards)?W.some(function(l){return l.miniGameCardViewModel&&l.miniGameCardViewModel.width===135}):!1};
_.t.computeCenterItems=function(W){return!!W};
_.t.computeHasInfoPanel=function(W){var l;return W==null?void 0:(l=W.cards)==null?void 0:l.some(function(V){return V.infoPanelContentRenderer})};
_.t.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.t.getItemByIndex=function(W){var l=this.items.children;return l&&l.length>W?l[W]:void 0};
_.t.onPageChange=function(){var W=this;this.pageLoadingFromNavigation=!0;_.w8.addJob(function(){W.pageLoadingFromNavigation=!1;_.bj(W.hostElement,"yt-terminate-video-preview-action")},8)};
_.t.updateListStyles=function(){if(_.U("problem_walkthrough_sd")&&this.JSC$15161_scrollContainer!==void 0){var W=this.JSC$15161_scrollContainer.clientWidth;W!==this.JSC$15161_lastScrollContainerWidth&&(this.JSC$15161_lastScrollContainerWidth=W,_.I1(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(W*.8,415)+"px"}),_.FN(this.hostElement,"iron-resize"))}};
_.rc.Object.defineProperties(z2.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.U("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return!!((W=this.data)==null?0:(l=W.cards)==null?0:(V=l[0])==null?0:V.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return!!((W=this.data)==null?0:(l=W.cards)==null?0:(V=l[0])==null?0:V.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return _.U("enable_desktop_amsterdam_info_panels")&&!!((W=this.data)==null?0:(l=W.cards)==null?0:(V=l[0])==null?0:V.infoPanelContentRenderer)}}});
z2.prototype.dataChanged=z2.prototype.dataChanged;z2.prototype.onIronResize=z2.prototype.onIronResize;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],z2.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],z2.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.QG.YtdHorizontalListBehavior),_.z("design:type",Object)],z2.prototype,"ytdHorizontalListBehavior",void 0);
_.a([_.F(_.DX),_.z("design:type",Object)],z2.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],z2.prototype,"data",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],z2.prototype,"useCustomColors",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],z2.prototype,"useHighlightStyling",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.z("design:type",Object)],z2.prototype,"cardListStyle",void 0);_.a([_.b({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.z("design:type",Boolean)],z2.prototype,"empty",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.z("design:type",Boolean)],z2.prototype,"hasSubtitle",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.z("design:type",Boolean)],z2.prototype,"thumbnailStyle",void 0);_.a([_.b({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.z("design:type",Boolean)],z2.prototype,"hasGameCard",void 0);_.a([_.b({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.z("design:type",Boolean)],z2.prototype,"centerHeaderTitle",void 0);
_.a([_.b({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.z("design:type",Boolean)],z2.prototype,"hasPortraitMiniApp",void 0);_.a([_.b({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.z("design:type",Boolean)],z2.prototype,"hasSquareMiniApp",void 0);_.a([_.b({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.z("design:type",Boolean)],z2.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.a([_.b({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.z("design:type",Boolean)],z2.prototype,"hasInfoPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],z2.prototype,"isSearch",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],z2.prototype,"inlineStructuredDescription",void 0);_.a([_.Aa("#scroll-container"),_.z("design:type",HTMLDivElement)],z2.prototype,"JSC$15161_scrollContainer",void 0);
_.a([_.b({computed:"computeInitialCountNumber(data.style.type)"}),_.z("design:type",Number)],z2.prototype,"initialCount",void 0);_.a([_.b({computed:"computeUseFloorScrolling(data.style.type)"}),_.z("design:type",Boolean)],z2.prototype,"useFloorScrolling",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.z("design:type",Boolean)],z2.prototype,"centerItems",void 0);_.a([_.b(),_.z("design:type",Object)],z2.prototype,"pageLoadingFromNavigation",void 0);
_.a([_.b(),_.z("design:type",Object)],z2.prototype,"currentIndex",void 0);_.a([_.b(),_.z("design:type",Number)],z2.prototype,"scrollCount",void 0);_.a([_.b(),_.z("design:type",Object)],z2.prototype,"supportComponentResize",void 0);_.a([_.Aa("#items"),_.z("design:type",HTMLDivElement)],z2.prototype,"items",void 0);_.a([_.XI("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],z2.prototype,"onIronResize",null);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],z2.prototype,"dataChanged",null);_.a([_.b({reflectToAttribute:!0}),_.G("inlineStructuredDescription"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],z2.prototype,"hideNavigationButton",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],z2.prototype,"modernChapters",null);
_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],z2.prototype,"hasVideoAttributeViewModels",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],z2.prototype,"modernInfoPanels",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],z2);
_.Z(z2,"ytd-horizontal-card-list-renderer",function(){if(A0v!==void 0)return A0v;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return A0v=W},{mode:_.bD("kevlar_poly_si_batch_j072")?1:2});var Nje=_.Q(function(W){var l=W.data;var V={};return _.C("video-summary-content-view-model",{class:_.If("videoSummaryContentViewModelHost",W.className,(V.videoSummaryContentViewModelHostIsSearch=W.isSearch,V))},_.C(_.G3,{each:function(){var f=[],r=l().paragraphs;if(r==null||!r.length)return[];for(var R=0;R<r.length;R++){var y=_.k(r[R],q2X),P=void 0;R>0&&(P=_.k(r[R-1],q2X));P&&!!P.marker===!!y.marker?f[f.length-1].paragraphs.push(y):f.push({isList:!!y.marker,paragraphs:[y]})}return f},
keyBy:"INDEX"},function(f){return _.C(_.c,{cond:function(){return f().isList},
then:function(){return _.C("ul",{class:"videoSummaryContentViewModelList"},_.C(_.G3,{each:function(){return f().paragraphs},
keyBy:"INDEX"},function(r){return _.C("li",{class:"videoSummaryContentViewModelListItem"},_.C(_.bH,{text:function(){return r().text}}))}))},
else:function(){return _.C(_.G3,{each:function(){return f().paragraphs},
keyBy:"INDEX"},function(r){return _.C("p",{class:"videoSummaryContentViewModelParagraph"},_.C(_.bH,{text:function(){return r().text}}))})}})}),_.C(_.c,{cond:function(){return!!_.k(l().likeButtonViewModel,_.LE)&&!!_.k(l().dislikeButtonViewModel,_.sb)},
then:function(){return _.C("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.C("div",{class:"videoSummaryContentViewModelLikeButton"},_.C(_.cR,{data:function(){return _.k(l().likeButtonViewModel,_.LE)},
disableIconAnimation:!0})),_.C(_.C9,{data:function(){return _.k(l().dislikeButtonViewModel,_.sb)}}))}}))},"ib");
Nje.idomCompat=!0;_.HI(Nje,"video-summary-content-view-model",{props:{data:_.pA,isSearch:_.pA,className:_.pA}});var Ny=function(){var W=_.I.apply(this,arguments)||this;var l,V;W.isExpanded=(V=(l=W.data)==null?void 0:l.isExpanded)!=null?V:!1;W.disableExpand=!1;W.showProminentLabel=!1;W.showRightSideLabel=!0;W.toggleExpandableContent=function(f){W.disableExpand||(f.stopPropagation(),_.cp(_.d_(f),W.hostElement,["info","expanded-subtitle"])||(W.isExpanded=!W.isExpanded,W.ytRendererBehavior.logExplicitClick(W.data),W.JSC$15172_cardList&&!_.U("expandable_metadata_a11y_fix_ks")&&_.V9(W,function(){_.Ew(W.hostElement)})))};
W.useSquareThumbnail=!1;W.contentHiddenWithDisplayNone=_.U("web_expandable_metadata_content_hidden_with_display_none");W.startX=0;return W};
_.v(Ny,_.I);_.t=Ny.prototype;_.t.computeUseSquareThumbnail=function(){var W;return(W=this.data)==null?void 0:W.useSquareThumbnail};
_.t.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"}}}}};
_.t.dataChanged=function(){if(this.data){var W,l;this.isExpanded=(l=(W=this.data)==null?void 0:W.isExpanded)!=null?l:!1;var V,f,r,R;if(W=this.isDarkTheme()?(V=this.data)==null?void 0:(f=V.colorData)==null?void 0:f.darkColorPalette:(r=this.data)==null?void 0:(R=r.colorData)==null?void 0:R.lightColorPalette){var y,P;if((y=this.data)==null?0:(P=y.colorData)==null?0:P.vibrantColorPalette)W.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Yh(this.hostElement,W)}}};
_.t.isExpandedChanged=function(){this.isExpanded&&this.JSC$15172_cardList&&_.FN(this.JSC$15172_cardList,"iron-resize")};
_.t.computeIsExpanded=function(W){return!!W.isExpanded};
_.t.computeShowProminentLabel=function(W,l){var V;return!!(W==null?0:(V=W.header)==null?0:V.showLeadingCollapsedLabel)&&!l};
_.t.computeShowRightSideLabel=function(W,l){var V;return!(W==null?0:(V=W.header)==null?0:V.showLeadingCollapsedLabel)&&!l};
_.t.captureContentClick=function(W){if(!this.disableExpand)if(_.U("expandable_metadata_fix_killswitch")){var l=W.target;_.e4M(l,"ytd-macro-markers-list-item-renderer")||W.stopPropagation();(l==null?void 0:l.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.cp(_.d_(W),this.hostElement,["items"])||_.Cv(_.d_(W),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.t.timestampClick=function(W){W.stopPropagation();var l,V;(W=(l=this.data)==null?void 0:(V=l.header)==null?void 0:V.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(W)};
_.t.onDown=function(W){W.stopPropagation();this.startX=W.detail?W.detail.x:0};
_.t.onUp=function(W){this.skipKeyInteraction(W)&&W.stopPropagation()};
_.t.skipKeyInteraction=function(W){var l=W.target;if((l==null?void 0:l.id)==="scroll-container"||(l==null?void 0:l.id)==="items"||W.detail&&W.detail.x!==this.startX)return!0;W=_.d_(W);W=_.L(W);for(l=W.next();!l.done;l=W.next()){l=l.value;if(l===this.hostElement)break;if(l.hasAttribute&&l.hasAttribute("skip-key-interaction"))return!0}return!1};
_.t.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.rc.Object.defineProperties(Ny.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.k((W=this.data)==null?void 0:W.expandedContent,eie)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.k((W=this.data)==null?void 0:W.expandedContent,_.xqZ)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var W,l;return!((W=this.data)==null||!W.useCustomColors)&&!((l=this.data)==null||!l.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var W,l;return!!((W=this.data)==null?0:(l=W.header)==null?0:l.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var W,l;return!!((W=this.data)==null?0:(l=W.header)==null?0:l.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var W,l;return!!((W=this.data)==null?0:(l=W.header)==null?0:l.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.U("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
Ny.prototype.onUp=Ny.prototype.onUp;Ny.prototype.onDown=Ny.prototype.onDown;Ny.prototype.isExpandedChanged=Ny.prototype.isExpandedChanged;Ny.prototype.dataChanged=Ny.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Ny.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Ny.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Ny.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Ny.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ny.prototype,"isExpanded",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ny.prototype,"disableExpand",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],Ny.prototype,"isSearch",void 0);
_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Ny.prototype,"isWatch",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.z("design:type",Object)],Ny.prototype,"showProminentLabel",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.z("design:type",Object)],Ny.prototype,"showRightSideLabel",void 0);
_.a([_.b({value:!1,reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ny.prototype,"hasVideoSummary",null);_.a([_.b({value:!1,reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ny.prototype,"hasLockupViewModel",null);_.a([_.b({reflectToAttribute:!0}),_.G("data","isWatch"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ny.prototype,"useCustomColors",null);
_.a([_.b({reflectToAttribute:!0}),_.G("data","isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ny.prototype,"showInfoButton",null);_.a([_.G("data","isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ny.prototype,"showTimestamp",null);_.a([_.G("data","isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ny.prototype,"showExpandedSubtitle",null);
_.a([_.G("data","isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ny.prototype,"showThumbnail",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ny.prototype,"useVppShoppingDestinationStyle",null);_.a([_.b(),_.z("design:type",Object)],Ny.prototype,"toggleExpandableContent",void 0);_.a([_.Aa("ytd-horizontal-card-list-renderer"),_.z("design:type",Object)],Ny.prototype,"JSC$15172_cardList",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.z("design:type",Object)],Ny.prototype,"useSquareThumbnail",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ny.prototype,"contentHiddenWithDisplayNone",void 0);_.a([_.G("isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ny.prototype,"contentHidden",null);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ny.prototype,"dataChanged",null);_.a([_.TS("isExpanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ny.prototype,"isExpandedChanged",null);_.a([_.XI("down"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Ny.prototype,"onDown",null);
_.a([_.XI("up"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Ny.prototype,"onUp",null);_.a([_.A({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],Ny);
_.Z(Ny,"ytd-expandable-metadata-renderer",function(){if(Ykk!==void 0)return Ykk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Ykk=W},{mode:1});var YnI,x8v=function(){if(YnI!==void 0)return YnI;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return YnI=W};_.HI(_.n_,"yt-avatar-stack-view-model",{props:{className:_.pA,data:_.pA,overrides:_.pA,isOverlay:_.pA,useMediumText:_.pA,decorations:_.pA,hideAvatar:_.pA}});_.e1("itemSectionRenderer","videoRenderer","ytd-video-renderer");var Yv=function(){var W=_.I.apply(this,arguments)||this;W.disableExpand=!1;W.shouldShowChannelInfo=!1;W.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return W};
_.v(Yv,_.I);_.t=Yv.prototype;_.t.computeUseSearchUi=function(){var W,l;return this.isSearch||((W=this.data)==null?void 0:(l=W.style)==null?void 0:l.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.t.computeUseThreeLineTitle=function(){var W;return((W=this.data)==null?void 0:W.maxTitleLines)===3};
_.t.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.U("polymer_video_renderer_defer_menu")&&!wcX?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"}}}};
_.t.attached=function(){_.pG(this.hostElement,"blue-links",_.U("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.t.detached=function(){this.clearInlinePreviewHoverListeners()};
_.t.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.o1(_.GS(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var W=this.get("data.buttons.buttonRenderer.serviceEndpoint"),l;W&&((l=_.k(W.commandMetadata,_.Ej))==null?0:l.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(W);this.updateInlinePreviewHoverListeners()};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15177_inlinePreviewHoverListener=Wf({mediaRenderer:this,lockupElement:this.JSC$15177_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.t.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$15177_inlinePreviewHoverListener)==null||gl(W)};
_.t.onTextWrapperClick=function(W){var l,V,f=this.hideTranslation?(l=this.data)==null?void 0:l.untranslatedNavigationEndpoint:(V=this.data)==null?void 0:V.navigationEndpoint;l=_.cp(_.d_(W),this.hostElement,["expandable-metadata"]);!f||l&&!_.U("expandable_metadata_fix_killswitch")||_.Cv(_.d_(W),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.FN(this.hostElement,"yt-navigate",{endpoint:f})};
_.t.computeThumbnailWidth=function(W,l,V,f,r){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:f?r==="MASSIVE"?600:r==="BIG"?500:r==="MEDIUM"?450:420:V?360:l?128:W?210:246};
_.t.computeUseBiggerThumbs=function(W){return W&&_.U("enable_desktop_search_bigger_thumbs")};
_.t.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.t.computeVideoStyle=function(){if(_.U("enable_video_style")){var W,l;return(W=this.data)==null?void 0:(l=W.style)==null?void 0:l.value}};
_.t.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.t.handleHideItemSectionVideosByIdCommand=function(W){var l;W=(l=_.k(W,dN9))==null?void 0:l.videoId;this.data&&this.data.videoId===W&&(this.isHidden=!0)};
_.t.getMetadataSnippetContainerClass=function(W){return W?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.t.computeTitleText=function(W,l,V){return W?V:l};
_.t.computeDescriptionSnippet=function(W,l,V){return W?V:l};
_.t.computeSnippetText=function(W,l,V){return W?V:l};
_.t.computeNavigationEndpoint=function(W,l){return W?l==null?void 0:l.untranslatedNavigationEndpoint:l==null?void 0:l.navigationEndpoint};
_.t.hideInlineTitleIcon=function(W,l){return W||!l};
_.rc.Object.defineProperties(Yv.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 W;return(W=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?W:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return!!(this==null?0:(W=this.data)==null?0:(l=W.channelThumbnailSupportedRenderers)==null?0:(V=l.channelThumbnailWithLinkRenderer)==null?0:V.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.k((W=this.data)==null?void 0:W.avatar,elv)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$15177_inlinePreviewHoverListener)==null?0:Bx(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.rc.Object.defineProperties(Yv,{template:{configurable:!0,enumerable:!0,get:function(){return x8v()}}});
Yv.prototype.dataChanged=Yv.prototype.dataChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Yv.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Yv.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],Yv.prototype,"ytdDismissibleItemBehavior",void 0);
_.a([_.F(_.FK),_.z("design:type",Object)],Yv.prototype,"ytdLockupBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Yv.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],Yv.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Yv.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Yv.prototype,"isBackstageVideo",void 0);
_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Yv.prototype,"isPostCompactVideo",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Yv.prototype,"isHistory",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Yv.prototype,"isRichGridVideoPost",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Yv.prototype,"isHidden",void 0);
_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Yv.prototype,"isSearch",void 0);_.a([_.b({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.z("design:type",Boolean)],Yv.prototype,"useSearchUi",void 0);_.a([_.b({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.z("design:type",Boolean)],Yv.prototype,"useThreeLineTitle",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.z("design:type",Boolean)],Yv.prototype,"useBiggerThumbs",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.z("design:type",Object)],Yv.prototype,"videoStyle",void 0);_.a([_.b({computed:"computeDisableExpand(videoStyle)"}),_.z("design:type",Object)],Yv.prototype,"disableExpand",void 0);
_.a([_.b({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.z("design:type",Object)],Yv.prototype,"shouldShowChannelInfo",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.gU("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],Yv.prototype,"biggerThumbsStyle",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.z("design:type",String)],Yv.prototype,"inlineTitleIcon",void 0);_.a([_.b({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.z("design:type",Object)],Yv.prototype,"computedNavigationEndpoint",void 0);_.a([_.b({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(W,l){return _.mL(W.entities,"searchVideoResultEntity",l)}}),
_.z("design:type",Object)],Yv.prototype,"searchVideoResultEntity",void 0);_.a([_.Aa("ytd-thumbnail"),_.z("design:type",HTMLElement)],Yv.prototype,"thumbnail",void 0);_.a([_.Aa("#dismissible"),_.z("design:type",HTMLElement)],Yv.prototype,"JSC$15177_dismissibleMedia",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yv.prototype,"dataChanged",null);
_.a([_.G("searchVideoResultEntity"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Yv.prototype,"hideTranslation",null);_.a([_.G("searchVideoResultEntity"),_.z("design:type",Array),_.z("design:paramtypes",[])],Yv.prototype,"hiddenBadgeGroups",null);_.a([_.G("data","useAvatar"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Yv.prototype,"shouldShowChannelThumbnail",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Yv.prototype,"useAvatar",null);
_.a([_.G("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Yv.prototype,"isHovered",null);_.a([_.A({is:"ytd-video-renderer",disableElementRegistration:!0})],Yv);_.Z(Yv,"ytd-video-renderer",function(){return x8v()},{mode:_.bD("kevlar_poly_si_batch_j047")?1:2});var xv=function(){var W=_.I.apply(this,arguments)||this;W.editDialog=null;W.roundedContainer=!0;W.isLoading=!1;W.isRichGrid=!1;W.isRichGridRepost=!1;W.reduceSidePaddings=_.U("reduce_side_paddings_in_shelf");W.JSC$15184_spinnerEl=null;return W};
_.v(xv,_.I);_.t=xv.prototype;
_.t.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"}}}};
_.t.contentTextChanged=function(){this.expander.reset()};
_.t.dataChanged=function(){var W=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var l=0,V=this.data.actions&&this.data.actions.length;l<V;l++)this.openEditDialog(_.k(this.data.actions[l],Rda));if((l=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(l=this.get("buttonRenderer.hint.hintRenderer.hintId",l))&&l.startsWith("share-post-hint")){var f=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(f){_.To.getInstance();var r=wZ(_.Bl(_.wg("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.w8.addLowPriorityJob(function(){_.og(W.hostElement,r,f)})}}}};
_.t.updatePoll=function(W){W>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.t.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15184_spinnerEl||(this.JSC$15184_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.GS(this.hostElement).appendChild(this.JSC$15184_spinnerEl));this.JSC$15184_spinnerEl&&(this.JSC$15184_spinnerEl.active=this.isLoading)};
_.t.onYtNavigate=function(W){var l=this.get("updateCommentDialogEndpoint",W.detail.endpoint);l&&(this.openEditDialog(l),W.stopPropagation())};
_.t.onYtCommentboxDismiss=function(){this.editDialog=null};
_.t.onYtCommentPollRevert=function(W,l){l&&this.updatePoll(l.selectedChoiceIndex)};
_.t.onYtServiceRequestSent=function(W,l){var V;l.endpoint&&(_.k(l.endpoint,Rmv)||_.k(l.endpoint,rzM)&&((V=_.k(l.endpoint,rzM))==null||!V.clientActions))&&(this.isLoading=!0);if(l.actions)for(W=0;W<l.actions.length;W++)V=l.actions[W],_.k(V,he)&&(V=this.get("updateBackstagePollAction.selectedChoiceIndex",V),V==void 0&&(V=-1),this.updatePoll(V))};
_.t.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.t.openEditDialog=function(W){W&&W.dialog&&(this.editDialog=W.dialog,W=this.editDialogEl.firstElementChild)&&(W.focus(),W.openDialog&&W.openDialog())};
_.t.computeIsPostHidden=function(W,l){return!!W||l};
_.t.computeSurfaceType=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.t.computeUsesCompactLockup=function(W){return W==="BACKSTAGE_SURFACE_TYPE_HOME"||W==="BACKSTAGE_SURFACE_TYPE_SEARCH"||W==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||W==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||W==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||W==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.t.computeShowWithoutToolbar=function(W){return!W.actionButtons&&!W.actionMenu};
_.t.computePostAttachment=function(W){if(W.backstageAttachment){if(_.k(W.backstageAttachment,AJZ))return"poll";if(_.k(W.backstageAttachment,kPL))return"quiz";if(_.k(W.backstageAttachment,_.Bm))return"video";if(_.k(W.backstageAttachment,vQX))return"uploaded-videos";if(_.k(W.backstageAttachment,oS9))return W.contentText?"image":"image-only";if(_.k(W.backstageAttachment,JJ$))return"playlist"}return"none"};
_.t.computePostTabIndex=function(W){return W?0:-1};
_.t.computeButtonTooltipPosition=function(W){return this.computeUsesCompactLockup(W)?"top":"bottom"};
_.t.computeHasText=function(W){return!(W==null||!W.contentText)};
_.t.onTap=function(W){var l,V;if(((l=this.data)==null?0:l.navigationEndpoint)&&((V=this.data)==null?void 0:V.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var f;((f=this.data)==null?0:f.navigationEndpoint)&&!_.Cv(_.d_(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.FN(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.rc.Object.defineProperties(xv.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.voteCount)||_.Bl("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,AJZ))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,vQX))}}});
xv.prototype.onYtServiceRequestCompleted=xv.prototype.onYtServiceRequestCompleted;xv.prototype.onYtServiceRequestSent=xv.prototype.onYtServiceRequestSent;xv.prototype.onYtCommentPollRevert=xv.prototype.onYtCommentPollRevert;xv.prototype.onYtCommentboxDismiss=xv.prototype.onYtCommentboxDismiss;xv.prototype.onYtNavigate=xv.prototype.onYtNavigate;xv.prototype.isLoadingChanged=xv.prototype.isLoadingChanged;xv.prototype.dataChanged=xv.prototype.dataChanged;xv.prototype.contentTextChanged=xv.prototype.contentTextChanged;
_.a([_.F(_.DX),_.z("design:type",Object)],xv.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],xv.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],xv.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],xv.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Object)],xv.prototype,"editDialog",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],xv.prototype,"roundedContainer",void 0);_.a([_.b(),_.z("design:type",Object)],xv.prototype,"isLoading",void 0);_.a([_.b({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.z("design:type",String)],xv.prototype,"surface",void 0);
_.a([_.b({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.z("design:type",Boolean)],xv.prototype,"usesCompactLockup",void 0);_.a([_.b({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],xv.prototype,"showWithoutToolbar",void 0);_.a([_.b({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.z("design:type",String)],xv.prototype,"attachment",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],xv.prototype,"isRichGrid",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],xv.prototype,"isRichGridRepost",void 0);_.a([_.b({reflectToAttribute:!0,value:_.U("use_better_post_dismissals")}),_.z("design:type",Boolean)],xv.prototype,"useBetterPostDismissals",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],xv.prototype,"reduceSidePaddings",void 0);
_.a([_.b({computed:"computeHasText(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],xv.prototype,"hasText",void 0);_.a([_.Aa("#expander"),_.z("design:type",Object)],xv.prototype,"expander",void 0);_.a([_.Aa("#action-buttons"),_.z("design:type",Object)],xv.prototype,"actionButtons",void 0);_.a([_.Aa("#edit-dialog"),_.z("design:type",HTMLElement)],xv.prototype,"editDialogEl",void 0);
_.a([_.TS("data.contentText"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xv.prototype,"contentTextChanged",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xv.prototype,"dataChanged",null);_.a([_.TS("isLoading"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xv.prototype,"isLoadingChanged",null);
_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],xv.prototype,"onYtNavigate",null);_.a([_.XI("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xv.prototype,"onYtCommentboxDismiss",null);_.a([_.XI("yt-comment-poll-revert"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],xv.prototype,"onYtCommentPollRevert",null);
_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],xv.prototype,"onYtServiceRequestSent",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],xv.prototype,"onYtServiceRequestCompleted",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],xv.prototype,"voteCount",null);
_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],xv.prototype,"commentCount",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],xv.prototype,"hasPoll",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],xv.prototype,"hasUploadedVideo",null);_.a([_.A({is:"ytd-post-renderer",disableElementRegistration:!0})],xv);
_.Z(xv,"ytd-post-renderer",function(){if(CaL!==void 0)return CaL;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return CaL=W},{mode:1});var e7a;var qnZ;var eo=function(){return _.I.apply(this,arguments)||this};
_.v(eo,_.I);eo.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],eo.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],eo.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.QG.YtdHorizontalListBehavior),_.z("design:type",Object)],eo.prototype,"ytdHorizontalListBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],eo.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],eo.prototype,"data",void 0);
_.a([_.b({value:"$.items.children"}),_.z("design:type",String)],eo.prototype,"itemsPath",void 0);_.a([_.b({value:1}),_.z("design:type",Number)],eo.prototype,"initialCount",void 0);_.a([_.b(),_.z("design:type",String)],eo.prototype,"surface",void 0);_.a([_.A({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],eo);
_.Z(eo,"ytd-post-multi-image-renderer",function(){if(qnZ!==void 0)return qnZ;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return qnZ=W},{mode:_.bD("kevlar_poly_si_batch_j079")?1:2});var h7c={"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"}}},qy=function(){var W=_.I.apply(this,arguments)||this;W.hasInlineCommentSection=!1;W.editDialog=null;W.isLoading=!1;W.shouldHideAuthor=!1;W.shouldShowVideoTime=!1;
W.isInEngagementPanel=!1;W.hideBorder=!1;W.usesFullLockup=!1;W.shouldShowMenuInCompactView=!1;W.JSC$15200_spinnerEl=null;W.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return W};
_.v(qy,_.I);_.t=qy.prototype;_.t.configureRendererStamper=function(){return h7c};
_.t.computeIsPollHeaderEnabled=function(W){return(W==null?void 0:W.pollMetadataIcon)!=null};
_.t.getPublishTimeStampString=function(W,l){l=new Date((Number(l)-60*((new Date).getTimezoneOffset()-(new Date(Number(l)*1E3)).getTimezoneOffset()))*1E3);l=(new Ca(10)).format(l);if(W&&W.runs&&W.runs.length)for(var V=0;V<W.runs.length;V++)W.runs[V].text&&(W.runs[V].text=W.runs[V].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",l));return W};
_.t.created=function(){this.JSC$15200_spinnerEl=null};
_.t.contentTextChanged=function(){this.expander.reset()};
_.t.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var W;if((W=this.data)==null?0:W.actions){W=_.L(this.data.actions);for(var l=W.next();!l.done;l=W.next())this.openEditDialog(_.k(l.value,Rda))}};
_.t.handleSignalActionOpenPostCommentDialogAction=function(){_.GS(this.hostElement).querySelector("#action-buttons").reply()};
_.t.updatePoll=function(W,l){l&&this.set("data.pollMetadataVoteCountText",l);this.hasInlineCommentSection&&(W=W>=0,l=_.GS(this.hostElement).querySelector("#action-buttons"),W?l.reply():l.hideReplyDialog())};
_.t.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15200_spinnerEl||(this.JSC$15200_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.GS(this.hostElement).appendChild(this.JSC$15200_spinnerEl));this.JSC$15200_spinnerEl&&(this.JSC$15200_spinnerEl.active=this.isLoading)};
_.t.onYtNavigate=function(W){var l=this.get("updateCommentDialogEndpoint",W.detail.endpoint);l&&(this.openEditDialog(l),W.stopPropagation())};
_.t.onYtCommentboxDismiss=function(){this.editDialog=null};
_.t.onYtCommentPollRevert=function(W,l){l&&this.updatePoll(l.selectedChoiceIndex,l.totalVotes)};
_.t.onYtServiceRequestSent=function(W,l){W.stopPropagation();W=_.k(l.endpoint,rzM);if(_.k(l.endpoint,Rmv)||W&&!W.clientActions)this.isLoading=!0;if(l.actions)for(W=0;W<l.actions.length;W++){var V=l.actions[W],f=_.k(V,he);f&&(V=this.get("updateBackstagePollAction.selectedChoiceIndex",V),V===void 0&&(V=-1),this.updatePoll(V,f.totalVotes))}};
_.t.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.t.openEditDialog=function(W){W&&W.dialog&&(this.editDialog=W.dialog,W=this.editDialogElement.firstElementChild)&&(W.focus(),W.openDialog&&W.openDialog())};
_.t.computeIsBodyHidden=function(W,l){return!!W||l};
_.rc.Object.defineProperties(qy.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var W,l;if((W=this.data)==null?0:(l=W.pollMetadataIcon)==null?0:l.iconType)return _.IJ(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.voteCount)||_.Bl("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,AJZ))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,kPL))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.k(this.data.backstageAttachment,vQX))}}});
qy.prototype.onYtServiceRequestCompleted=qy.prototype.onYtServiceRequestCompleted;qy.prototype.onYtServiceRequestSent=qy.prototype.onYtServiceRequestSent;qy.prototype.onYtCommentPollRevert=qy.prototype.onYtCommentPollRevert;qy.prototype.onYtCommentboxDismiss=qy.prototype.onYtCommentboxDismiss;qy.prototype.onYtNavigate=qy.prototype.onYtNavigate;qy.prototype.isLoadingChanged=qy.prototype.isLoadingChanged;qy.prototype.dataChanged=qy.prototype.dataChanged;qy.prototype.contentTextChanged=qy.prototype.contentTextChanged;
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],qy.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],qy.prototype,"rendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],qy.prototype,"rendererstamperBehavior",void 0);_.a([_.Aa("#contentTextExpander"),_.z("design:type",Object)],qy.prototype,"expander",void 0);
_.a([_.Aa("#edit-dialog"),_.z("design:type",Element)],qy.prototype,"editDialogElement",void 0);_.a([_.b(),_.z("design:type",Object)],qy.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],qy.prototype,"hasInlineCommentSection",void 0);_.a([_.b(),_.z("design:type",Object)],qy.prototype,"editDialog",void 0);_.a([_.b(),_.z("design:type",Object)],qy.prototype,"isLoading",void 0);
_.a([_.b({computed:"computeIsPollHeaderEnabled(data)"}),_.z("design:type",Boolean)],qy.prototype,"isPollHeaderEnabled",void 0);_.a([_.b(),_.z("design:type",Object)],qy.prototype,"shouldHideAuthor",void 0);_.a([_.b(),_.z("design:type",Object)],qy.prototype,"shouldShowVideoTime",void 0);_.a([_.b(),_.z("design:type",Object)],qy.prototype,"isInEngagementPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qy.prototype,"hideBorder",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qy.prototype,"usesFullLockup",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qy.prototype,"shouldShowMenuInCompactView",void 0);_.a([_.G("isInEngagementPanel"),_.z("design:type",Number),_.z("design:paramtypes",[])],qy.prototype,"postTextMaxLines",null);_.a([_.G("data.icon.iconType"),_.z("design:type",Object),_.z("design:paramtypes",[])],qy.prototype,"pollIcon",null);
_.a([_.TS("data.contentText"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qy.prototype,"contentTextChanged",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qy.prototype,"dataChanged",null);_.a([_.TS("isLoading"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qy.prototype,"isLoadingChanged",null);
_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],qy.prototype,"onYtNavigate",null);_.a([_.XI("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qy.prototype,"onYtCommentboxDismiss",null);_.a([_.XI("yt-comment-poll-revert"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],qy.prototype,"onYtCommentPollRevert",null);
_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],qy.prototype,"onYtServiceRequestSent",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],qy.prototype,"onYtServiceRequestCompleted",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],qy.prototype,"voteCount",null);
_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],qy.prototype,"commentCount",null);_.a([_.G("data.backstageAttachment"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qy.prototype,"hasPoll",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qy.prototype,"hasQuiz",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qy.prototype,"hasUploadedVideo",null);
_.a([_.A({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],qy);
_.Z(qy,"ytd-backstage-post-renderer",function(){if(e7a!==void 0)return e7a;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return e7a=W},{mode:1});var Snv;var h8=function(){var W=_.I.apply(this,arguments)||this;W.editDialog=null;W.showExpandButton=!1;W.isRichGrid=!1;W.usesFullLockup=!1;return W};
_.v(h8,_.I);_.t=h8.prototype;_.t.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"}}}};
_.t.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.t.computeShowExpandButton=function(W){return this.usesCompactLockup||W&&W.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.t.computeUsesCompactLockup=function(W){return!!W.condensedContent};
_.t.computeShowFullContentText=function(W){return!W};
_.t.onYtNavigate=function(W){W=this.get("updateCommentDialogEndpoint",W.detail.endpoint);this.openEditDialog(W)};
_.t.onYtCommentboxDismiss=function(){this.editDialog=null};
_.t.openEditDialog=function(W){W&&W.dialog&&(this.editDialog=W.dialog,W=this.repostEditDialogEl.firstElementChild)&&(W.focus(),W.openDialog&&W.openDialog())};
_.t.onTap=function(W){if(this.data){var l=null;this.usesCompactLockup&&!_.Cv(_.d_(W)||[],this.hostElement,["YT-IMG-SHADOW"])?l=this.get("navigationEndpoint",this.data):W.target===this.moreButtonEl&&(l=this.get("navigationEndpoint",W.target.data));l&&_.FN(this.hostElement,"yt-navigate",{endpoint:l})}};
h8.prototype.onYtCommentboxDismiss=h8.prototype.onYtCommentboxDismiss;h8.prototype.onYtNavigate=h8.prototype.onYtNavigate;h8.prototype.dataChanged=h8.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],h8.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],h8.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Object)],h8.prototype,"editDialog",void 0);_.a([_.b({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],h8.prototype,"usesCompactLockup",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],h8.prototype,"showExpandButton",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],h8.prototype,"isRichGrid",void 0);
_.a([_.b({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.z("design:type",Boolean)],h8.prototype,"showFullContentText",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],h8.prototype,"usesFullLockup",void 0);_.a([_.Aa("#more"),_.z("design:type",Object)],h8.prototype,"moreButtonEl",void 0);_.a([_.Aa("#repost-content-text"),_.z("design:type",HTMLElement)],h8.prototype,"repostContentTextEl",void 0);
_.a([_.Aa("#repost-edit-dialog"),_.z("design:type",HTMLElement)],h8.prototype,"repostEditDialogEl",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h8.prototype,"dataChanged",null);_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],h8.prototype,"onYtNavigate",null);
_.a([_.XI("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h8.prototype,"onYtCommentboxDismiss",null);_.a([_.A({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],h8);
_.Z(h8,"ytd-shared-post-renderer",function(){if(Snv!==void 0)return Snv;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Snv=W},{mode:1});var E5L;var $8B;var So=function(){return _.I.apply(this,arguments)||this};
_.v(So,_.I);So.prototype.attached=function(){var W=this;this.networkStatusManager||(this.networkStatusManager=new _.qt,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){W.onlineHandler()}))};
So.prototype.detached=function(){var W=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){W.onlineHandler()}),delete this.networkStatusManager)};
So.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],So.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],So.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],So.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],So);
_.Z(So,"ytd-reload-page-button-renderer",function(){if($8B!==void 0)return $8B;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
return $8B=W},{mode:1});var Whk={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"},Ep=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.v(Ep,_.I);_.t=Ep.prototype;_.t.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.t.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.t.computeHasBodyText=function(W){return!!W.bodyText};
_.t.computeButtons=function(W){var l=[];W.ctaButton&&l.push(W.ctaButton);W.secondaryButton&&l.push(W.secondaryButton);return l};
_.t.computeRendererStyle=function(W){return W.style?W.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():W.icon?"":"no-icon"};
_.t.getIconName=function(W,l){l=l===void 0?!1:l;if(W===void 0)return"";W=this.get("icon.iconType",W);var V;_.U("enable_hlp_client_icon_pick")?V=this.getThemedIcon(W,l):V=W;(l=Whk[V])||(l="yt-icons");return[l,V].join(":")};
_.t.getThemedIcon=function(W,l){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(W)?l?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(W)?l?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":W};
_.t.isThumbnail=function(W){return!!W.thumbnail};
_.t.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.t.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Ep.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Ep.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Ep.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Ep.prototype,"data",void 0);
_.a([_.b({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.z("design:type",String)],Ep.prototype,"rendererStyle",void 0);_.a([_.b({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.z("design:type",String)],Ep.prototype,"iconName",void 0);_.a([_.b({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Ep.prototype,"thumbnail",void 0);_.a([_.b({computed:"computeButtons(data)"}),_.z("design:type",Array)],Ep.prototype,"buttons",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ep.prototype,"isDarkTheme",void 0);_.a([_.b({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Ep.prototype,"hasBodyText",void 0);_.a([_.A({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],Ep);
_.Z(Ep,"ytd-background-promo-renderer",function(){if(E5L!==void 0)return E5L;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return E5L=W},{mode:1});var lML;var $v=function(){var W=_.I.apply(this,arguments)||this;W.collections=_.U("web_modern_collections_v2");return W};
_.v($v,_.I);_.rc.Object.defineProperties($v.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,l,V,f,r,R;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(W=this.data)==null?void 0:(l=W.thumbnail)==null?void 0:l.sampledThumbnailColor,vibrantColorPalette:(V=this.data)==null?void 0:(f=V.thumbnail)==null?void 0:f.vibrantColorPalette,darkColorPalette:(r=this.data)==null?void 0:(R=r.thumbnail)==null?void 0:R.darkColorPalette,experimentEnabled:this.collections}}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],$v.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],$v.prototype,"collections",void 0);_.a([_.G("data","collections"),_.z("design:type",Object),_.z("design:paramtypes",[])],$v.prototype,"collectionStack",null);_.a([_.A({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],$v);
_.Z($v,"ytd-compact-station-renderer",function(){if(lML!==void 0)return lML;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return lML=W},{mode:1});var VIv;var WH=function(){var W=_.I.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.v(WH,_.I);WH.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]]"}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],WH.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],WH.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],WH.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],WH.prototype,"isRichGrid",void 0);_.a([_.A({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],WH);
_.Z(WH,"ytd-grid-channel-renderer",function(){if(VIv!==void 0)return VIv;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return VIv=W},{mode:1});var fM$;var ln=function(){return _.I.apply(this,arguments)||this};
_.v(ln,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ln.prototype,"data",void 0);_.a([_.A({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],ln);
_.Z(ln,"ytd-grid-movie-playlist-renderer",function(){if(fM$!==void 0)return fM$;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return fM$=W},{mode:1});var rtL;var Vs=function(){var W=_.I.apply(this,arguments)||this;W.downloadProgress=0;W.transferState="TRANSFER_STATE_UNKNOWN";W.modernButtons=_.U("web_modern_buttons");W.useModernCollectionsV2=_.U("web_modern_collections_v2");return W};
_.v(Vs,_.I);Vs.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
Vs.prototype.configureRendererStamper=function(){return{"data.menu":hq}};
Vs.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
Vs.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.U("woffle_playlist_renderer_killswitch")){var W,l=LT6(this.entityInfo,this.transferState,this.downloadProgress,(W=this.data)==null?void 0:W.playlistId,this.isOnline);W=l.viewPlaylistText;var V=l.badges;l=l.thumbnailOverlays;this.isDownloads=!!W||!!V;this.set("data.viewPlaylistText",W);V&&V.length>0&&this.set("data.badges",V);l&&l.length>0&&this.set("data.thumbnailOverlays",
l)}};
_.rc.Object.defineProperties(Vs.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 W;return!((W=this.data)==null?0:W.menu)}}});
Vs.prototype.transferStateChanged=Vs.prototype.transferStateChanged;Vs.prototype.dataChanged=Vs.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Vs.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.FK),_.z("design:type",Object)],Vs.prototype,"ytdLockupBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],Vs.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Vs.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.b({selector:_.Y7g,selectorArgs:["data.playlistId"]}),_.z("design:type",Object)],Vs.prototype,"downloadProgress",void 0);_.a([_.b({selector:_.RD,selectorArgs:["data.playlistId"]}),_.z("design:type",Object)],Vs.prototype,"transferState",void 0);_.a([_.b({selector:NZx,selectorArgs:["data.playlistId"]}),_.z("design:type",Object)],Vs.prototype,"entityInfo",void 0);_.a([_.b({selector:_.fa}),_.z("design:type",Boolean)],Vs.prototype,"isOnline",void 0);
_.a([_.b(),_.z("design:type",Object)],Vs.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Vs.prototype,"downloadRenderData",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Vs.prototype,"modernButtons",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Vs.prototype,"isDownloads",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Vs.prototype,"useModernCollectionsV2",void 0);
_.a([_.G("transferState"),_.b({reflectToAttribute:!0}),_.z("design:type",String),_.z("design:paramtypes",[])],Vs.prototype,"downloadState",null);_.a([_.G("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Vs.prototype,"menuHidden",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vs.prototype,"dataChanged",null);
_.a([_.zS("transferState","downloadProgress","isOnline"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vs.prototype,"transferStateChanged",null);_.a([_.A({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],Vs);
_.Z(Vs,"ytd-grid-playlist-renderer",function(){if(rtL!==void 0)return rtL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return rtL=W},{mode:1});var RHZ;var fF=function(){var W=_.I.apply(this,arguments)||this;W.collections=_.U("web_modern_collections_v2");return W};
_.v(fF,_.I);fF.prototype.configureRendererStamper=function(){return{"data.menu":hq,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.rc.Object.defineProperties(fF.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,l,V,f,r,R;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(W=this.data)==null?void 0:(l=W.thumbnail)==null?void 0:l.sampledThumbnailColor,vibrantColorPalette:(V=this.data)==null?void 0:(f=V.thumbnail)==null?void 0:f.vibrantColorPalette,darkColorPalette:(r=this.data)==null?void 0:(R=r.thumbnail)==null?void 0:R.darkColorPalette,experimentEnabled:this.collections}}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],fF.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],fF.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.F(_.FK),_.z("design:type",Object)],fF.prototype,"ytdLockupBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],fF.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],fF.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],fF.prototype,"collections",void 0);_.a([_.G("data","collections"),_.z("design:type",Object),_.z("design:paramtypes",[])],fF.prototype,"collectionStack",null);_.a([_.A({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],fF);
_.Z(fF,"ytd-grid-radio-renderer",function(){if(RHZ!==void 0)return RHZ;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return RHZ=W},{mode:1});var tIe;var rD=function(){var W=_.I.apply(this,arguments)||this;W.useModernCollectionsV2=_.U("web_modern_collections_v2");return W};
_.v(rD,_.I);rD.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
rD.prototype.computeNavigationEndpoint=function(W){return Qz4(W==null?void 0:W.navigationEndpoint)};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.FK),_.z("design:type",Object)],rD.prototype,"ytdLockupBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],rD.prototype,"data",void 0);_.a([_.b({computed:"computeNavigationEndpoint(data)"}),_.z("design:type",Object)],rD.prototype,"computedNavigationEndpoint",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],rD.prototype,"useModernCollectionsV2",void 0);_.a([_.A({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],rD);
_.Z(rD,"ytd-grid-show-renderer",function(){if(tIe!==void 0)return tIe;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return tIe=W},{mode:1});var sII;_.R4=function(W){this.playerClient=W};
_.Lhe=function(W,l,V){V=V===void 0?{}:V;return W.playerClient.setOption("ad",l,V)};
_.R4.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.R4.prototype.executeCommand=function(W,l){this.getOptions().includes("executeCommand")?_.Lhe(this,"executeCommand",{command:W,layoutId:l}):_.sg("Calling executeCommand when adModule is not loaded")};var tT=function(){return _.I.apply(this,arguments)||this};
_.v(tT,_.I);tT.prototype.getLayoutId=function(){var W=_.Y2("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
tT.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var W=_.Jy(),l=this.getLayoutId(),V=this.data.clickthroughEndpoint;W&&l&&_.U("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?W.getPlayerPromise().then(function(f){(new _.R4(f)).executeCommand(V,l)}):_.FN(this.hostElement,"yt-navigate",{endpoint:V})}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],tT.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],tT.prototype,"data",void 0);_.a([_.A({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],tT);
_.Z(tT,"ytd-shopping-companion-item-renderer",function(){if(sII!==void 0)return sII;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return sII=W},{mode:1});var yt9;var s3=function(){var W=_.I.apply(this,arguments)||this;W.isExpandableContent=!1;return W};
_.v(s3,_.I);_.rc.Object.defineProperties(s3.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return((W=this.data)==null?void 0:W.price)||((l=this.data)==null?void 0:(V=l.dealsData)==null?void 0:V.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var W,l;if((W=this.data)!=null&&W.dealsData&&((l=this.data)==null||!l.priceReplacementText)){W=this.data.dealsData;var V,f,r;return((V=W.salesData)==null?void 0:V.originalPrice)||((f=W.priceDropData)==null?void 0:f.referencePrice)||((r=W.promotionData)==null?void 0:r.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var W,l;return(W=this.data)==null?void 0:(l=W.dealsData)==null?void 0:l.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],s3.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],s3.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],s3.prototype,"isExpandableContent",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],s3.prototype,"showCta",null);
_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],s3.prototype,"ctaText",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],s3.prototype,"hasPriceTopPosition",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],s3.prototype,"hasPriceBottomPosition",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],s3.prototype,"useNewStyle",null);
_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],s3.prototype,"showPriceReplacementText",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],s3.prototype,"priceValue",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],s3.prototype,"showDeal",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],s3.prototype,"showAffiliateDisclaimer",null);
_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],s3.prototype,"useSaleStyle",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],s3.prototype,"useFromBrandCtaStyle",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],s3.prototype,"useFromVendorCtaStyle",null);
_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],s3.prototype,"useShoppingCollectionCtaStyle",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],s3);
_.Z(s3,"ytd-vertical-product-card-renderer",function(){if(yt9!==void 0)return yt9;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return yt9=W},{mode:1});var gl9;var LF=function(){return _.I.apply(this,arguments)||this};
_.v(LF,_.I);LF.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],LF.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],LF.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.FK),_.z("design:type",Object)],LF.prototype,"ytdLockupBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],LF.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],LF);
_.Z(LF,"ytd-grid-movie-renderer",function(){if(gl9!==void 0)return gl9;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return gl9=W},{mode:1});var PVM;var ys=function(){var W=_.I.apply(this,arguments)||this;W.roundedFix=_.U("web_enable_merch_item_rounding_fix");W.itemStyle="small-item";return W};
_.v(ys,_.I);ys.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var W,l,V,f,r=(l=_.k((W=this.data)==null?void 0:W.buttonCommand,_.Y0))==null?void 0:(V=l.item)==null?void 0:(f=V.notificationTextRenderer)==null?void 0:f.successResponseText;r&&_.tHn(this.hostElement,r)}};
_.rc.Object.defineProperties(ys.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.data)==null?void 0:W.isProductPlaceholder)!==void 0&&((l=this.data)==null?void 0:l.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ys.prototype,"ytRendererBehavior",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ys.prototype,"roundedFix",void 0);_.a([_.b(),_.z("design:type",Object)],ys.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],ys.prototype,"itemStyle",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ys.prototype,"hasPrice",null);
_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ys.prototype,"hasPriceReplacementText",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ys.prototype,"hasAdditionalFeesText",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ys.prototype,"hasAffiliateDisclaimer",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ys.prototype,"isProductPlaceholder",null);
_.a([_.b(),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ys.prototype,"hideOpenInNewIcon",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],ys.prototype,"ariaLabel",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],ys);
_.Z(ys,"ytd-merch-shelf-item-renderer",function(){if(PVM!==void 0)return PVM;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return PVM=W},{mode:1});var nl$=_.Q(function(W){return _.C("button-card-view-model",{el:_.DN(_.E_(function(){return W.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return W.data().title},
role:"button"},_.C(_.ZS,{model:{}}),_.C("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.C("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.C(_.c,{cond:function(){return W.data().image},
then:function(l){return _.C(_.dN,{data:l,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.C("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return W.data().title})))},"jb");_.U("web_button_view_model_wcw_registration_killswitch")||_.HI(nl$,"button-card-view-model",{props:{data:_.pA}});_.HI(_.Q(function(W){W=_.Dd(W,{className:void 0});var l=W.data;W=W.className;var V=_.v4(function(){return l().onTapCommand},void 0,"SXkP9e");
return _.C("ytd-shopping-item-card",{class:_.If("ytdShoppingItemCardHost",W)},_.C(_.Mq,{command:V,className:"ytdShoppingItemCardHostLink"},_.C("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.C(_.QH,{data:function(){return l().thumbnailViewModel}},{thumbnailViewModel:function(f){return _.C(_.Iu,{data:f.data,
aspectRatio:3})}})),_.C("div",null,_.C("p",{class:"ytdShoppingItemCardHostItemTitle"},_.C(_.bH,{text:function(){return l().itemTitle}})),_.C("p",{class:"ytdShoppingItemCardHostPrice"},_.C(_.bH,{text:function(){return l().priceOrStatus}})))))},"kb"),"ytd-shopping-item-card",{props:{data:_.pA,
className:_.pA}});var CVk={isAdsVideo:!0},ctk={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},Bfc={showPlayerControls:!1,videoPreviewDurationMs:15E3},dwe={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var yl=null,se4={};var g5n="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(" "),gD={},Pxj=(gD.FEwhat_to_watch="home",gD.FEhashtag="hashtag",gD.FEtrending="trending",gD.FEhistory="history",gD.SPunlimited="premium",gD.FEmemberships_and_purchases="paid_memberships",gD.SPredeem_code="redeem",gD.SPverify_location="locate",gD.SPminor_moment="minor_moment",
gD.FEmini_app_container="mini_app",gD.FEnews_destination="news",gD.SPopen_in_app="open_in_app",gD.FEexplore="explore",gD.FEsubscriptions="subscriptions",gD.FEsfv_audio_pivot="sfv_audio_pivot",gD.FEplaylist_aggregation="playlist_aggregation",gD);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");_.jy("init");var Jtv=function(){},kCB=_.Q(function(W){var l=W.data;
var V=W.inlineMetadata;var f=W.aspectRatio;var r=W.scrimStyle;var R=W.className;var y=W.useDefaultStyle;var P=new Jtv,n=_.U("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",B=_.v4(function(){return(y==null?0:y())?n==="SHORTS_LOCKUP_STYLE_SLIM":l().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"vlt67b"),d=_.v4(function(){return _.w9(V)||B()||!1},void 0,"OB5wvf"),J=function(){return(r==null?void 0:r())!==void 0?r==null?void 0:r():1},D=_.v4(function(){return l().belowThumbnailMetadata||
!d()},void 0,"AzbxZd");
W=_.su({visibilityCallback:function(W8){var c8=l().onFirstVisible;W8&&c8&&_.sZ(c8)},
showOption:{calledOnce:!0,state:"visible"}});var u=_.DN(),H={},p=_.If(function(){return B(),"shortsLockupViewModelHostThumbnailContainer"},(H.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.w9(f)===1},H.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.w9(f)===2},H.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.U("web_shorts_2_by_3_lockups_study")&&!_.U("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
H)),X=_.v4(function(){if(_.w9(f)===1)return 1;
_.w9(f);return 2},void 0,"Aywyne"),w,O=function(){if(P){var W8;
(W8=w)==null||gl(W8);var c8;if(P.hostElement&&((c8=P.data)==null?0:c8.inlinePlayerData)){W8=Object.assign({},dwe);var B8,Jx;((B8=P.data)==null?void 0:(Jx=B8.inlinePlayerData)==null?void 0:Jx.maxPlaybackLengthSec)!==void 0&&(W8.videoPreviewDurationMs=P.data.inlinePlayerData.maxPlaybackLengthSec*1E3);w=Wf({mediaRenderer:P,lockupElement:P.hostElement,thumbnailElement:u.value,videoPreviewOpts:W8})}}};
_.m1(function(){P&&(P.data=l(),O())},"r1zbOc");
var S=_.v4(function(){return l().thumbnail},void 0,"wZj8b");
H=_.v4(function(){return l().badge},void 0,"qOKyU");
var N=_.v4(function(){return l().onTap},void 0,"p3kB9e"),x={},Y={};
return _.C("ytm-shorts-lockup-view-model",{el:_.DN(function(W8){P&&(P.hostElement=W8)},O,W),
class:_.If("shortsLockupViewModelHost",R)},_.C(_.Lp,null,_.C(_.Mq,{command:N,className:_.If("shortsLockupViewModelHostEndpoint",(x.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!D()},x),"reel-item-endpoint",""),
ariaHidden:function(){return!d()},
tabIndex:function(){return d()?0:-1}},_.C("div",{el:u,
class:_.If("shortsLockupViewModelHostThumbnailParentContainer",(Y.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!B()},Y))},_.C(_.c,{cond:S,
then:function(){return _.C("div",{class:p},_.C(_.dN,{data:function(){var W8;return(W8=S==null?void 0:S())!=null?W8:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.C(_.QH,{data:function(){return l().thumbnailViewModel}},{thumbnailViewModel:function(W8){return _.C(_.Iu,{data:W8.data,
aspectRatio:function(){return X()},
disableRounding:function(){return B()}})}}),null),_.C(_.c,{cond:d,
then:function(){return _.C(DwL,{data:l,scrimStyle:J,useDefaultStyle:y})}}),_.C(_.QH,{data:H},{badgeViewModel:function(W8){return _.C(_.T2,{data:W8.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.C(_.c,{cond:function(){return d()&&l().menuOnTap},
then:function(){return _.C(Uwa,{data:l,inlineMetadata:!0})}}),_.C(_.c,{cond:D,
then:function(){return _.C(uua,{data:l,useDefaultStyle:y,inlineMetadata:d})}})))},"lb"),DwL=_.Q(function(W){var l=W.data;
var V=W.scrimStyle;var f=W.useDefaultStyle;var r=_.U("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",R=f&&_.U("web_hide_primary_text_for_pivot_panel"),y=_.v4(function(){return(f==null?0:f())?r==="SHORTS_LOCKUP_STYLE_SLIM":l().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"bZ1lmb");
W={};W=_.If("shortsLockupViewModelHostInlineMetadata",(W.shortsLockupViewModelHostMetadataRounded=function(){return!y()},W.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(V==null?void 0:V())===3&&!_.U("enable_shorts_lockup_new_scrim")},W.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(V==null?void 0:V())===3&&_.U("enable_shorts_lockup_new_scrim")},W.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(V==null?void 0:V())===2||(V==null?void 0:
V())===4},W.shortsLockupViewModelHostShowOverPlayer=function(){return!0},W),"image-overlay-text");
var P={};return _.C("div",{class:W},_.C("h3",{class:_.If("shortsLockupViewModelHostMetadataTitle",(P.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(V==null?void 0:V())===4},P.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return l().belowThumbnailMetadata},P)),
"aria-label":function(){return l().accessibilityText}},_.C(_.c,{cond:function(){var n;
return!((n=l().overlayMetadata)==null||!n.primaryText)&&!R},
then:function(){return _.C(_.bH,{text:function(){var n;return(n=l().overlayMetadata)==null?void 0:n.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.C(_.c,{cond:function(){var n;
return(n=l().overlayMetadata)==null?void 0:n.secondaryText},
then:function(){return _.C(vlL,{data:l,scrimStyle:V,className:void 0})}}))},"mb"),uua=_.Q(function(W){var l=W.data;
var V=W.useDefaultStyle;var f=W.inlineMetadata;var r=_.U("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",R=_.v4(function(){return(V==null?0:V())?r==="SHORTS_LOCKUP_STYLE_SLIM":l().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"fWoqS"),y=_.DN(),P;
W=_.ip(function(u){if(_.eJ(_.xw(u),y.value,["AVATAR-VIEW-MODEL"]))return!1;var H;(H=P)==null||H.click();return!1});
var n=_.v4(function(){return l().belowThumbnailMetadata||l().overlayMetadata},void 0,"wnRj3b"),B=function(){return l().menuOnTap&&!f()},d=function(){var u;
return(u=n())==null?void 0:u.avatar},J={},D={};
return _.C("div",{class:_.If(function(){return R()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(J.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!d()},J.shortsLockupViewModelHostOutsideMetadataHasMenu=B,J)),
"on:click":W,el:y,role:"presentation"},_.C(_.QH,{data:d},{avatarViewModel:function(u){return _.C("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.C(_.gn,{data:u.data}))}}),_.C("div",null,_.C("h3",{class:_.If("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(D.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var u,H;
return!((u=n())==null?0:(H=u.primaryText)==null?0:H.content)},D.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=f,D)),
role:"presentation"},_.C(_.Mq,{ref:function(u){return void(P=u)},
command:function(){return l().onTap},
className:_.If("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var u,H;return(u=n())==null?void 0:(H=u.primaryText)==null?void 0:H.content},
"aria-label":function(){return l().accessibilityText}},_.C(_.c,{cond:function(){var u;
return(u=n())==null?void 0:u.primaryText},
then:function(u){return _.C(_.bH,{text:u,noEndpoints:!0,noStyleRuns:!0})}}))),_.C(_.c,{cond:function(){var u;
return(u=n())==null?void 0:u.secondaryText},
then:function(u){return _.C("div",{class:_.If("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.C(_.bH,{text:u,noStyleRuns:!0}))}})),_.C(_.c,{cond:B,
then:function(){return _.C(Uwa,{data:l,inlineMetadata:!1})}}))},"nb"),vlL=_.Q(function(W){var l=W.data;
var V=W.scrimStyle;W=W.className;var f={};return _.C("div",{class:_.If((f.shortsLockupViewModelHostMetadataSubhead=function(){return(V==null?void 0:V())!==4},f.shortsLockupViewModelHostMetadataSubheadNew=_.U("enable_shorts_lockup_new_scrim"),f.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(V==null?void 0:V())===4},f),W),
"aria-hidden":"true"},_.C(_.bH,{text:function(){var r;return(r=l().overlayMetadata)==null?void 0:r.secondaryText},
noStyleRuns:!0}))},"ob"),Uwa=_.Q(function(W){var l=W.data;
var V=W.inlineMetadata;W={};W=_.If((W.shortsLockupViewModelHostInlineMetadataMenu=function(){return V()},W.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!V()},W.shortsLockupViewModelHostShowOverPlayer=function(){return!0},W),"image-overlay-text");
return _.C("div",{class:W},_.C(_.zv,{data:function(){return{style:V()?"overlay":"mono",accessibilityLabel:l().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(f){f.preventDefault();f.stopPropagation();var r=_.Rf({elementsCommand:l().menuOnTap,forceNewState:!0});if(r==null?0:r.onclick)r.onclick(f)}}},
iconName:"MORE_VERT"}))},"pb");var HHa=_.Q(function(W){var l=W.data;var V=W.inlineMetadata;var f=W.aspectRatio;var r=W.scrimStyle;var R=W.className;var y=W.useDefaultStyle;W=_.v4(function(){var P=l().entityId;return P?P.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.C("ytm-shorts-lockup-view-model-v2",{class:_.If("shortsLockupViewModelHost",R)},_.C(_.QF,{contentId:W,aspectRatio:function(){return(f==null?void 0:f())===1?1:(f==null?void 0:f())===2?2:4}},function(){return _.C(kCB,{data:l,
inlineMetadata:V,aspectRatio:f,scrimStyle:r,className:R,useDefaultStyle:y})}))},"qb");_.HI(HHa,"ytm-shorts-lockup-view-model-v2",{props:{data:_.kh,inlineMetadata:_.kh,aspectRatio:_.kh,scrimStyle:_.kh,className:_.kh,useDefaultStyle:_.kh}});var Khc=16/9*210,PH=function(){var W=_.I.apply(this,arguments)||this;W.isExpandableContent=!1;W.hideShelfHeader=!1;W.engagementPanel=!1;W.buttonClasses=["arrow"];W.isSearch=!1;W.disableScrollEventListener=!1;W.containsLockup=!1;W.overrideArrowPositionForProductCard=!1;W.overrideArrowPositionForShoppingItemCard=!1;W.overrideArrowPositionForReelItems=!1;W.overrideArrowPositionForGridMovie=!1;W.overrideArrowPositionToCenter=!1;W.isSearchPostShelf=!1;W.overrideArrowPositionForMixedShelf=!1;W.overrideArrowPositionForMixedShelfShortsOnly=
!1;W.hasBigThumbsReelItems=!1;W.shouldUseMixedListHeight=!1;W.shouldUseShortsListHeight=!1;W.gridVideoWidth=0;W.isSearchVodShelf=!1;W.disableWheelScroll=!1;W.sizing="COMPACT";W.shortsLockupAspectRatio=0;return W};
_.v(PH,_.I);_.t=PH.prototype;
_.t.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]]"}}}}};
_.t.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.U("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.t.computeInitialCountNumber=function(W){if(!W)return 6;var l=W.items.some(function(R){return!!R.topicRecommendationsChipRenderer}),V=W.items.some(function(R){return!!R.displayAdRenderer}),f=this.computeShouldListItemsHaveEqualHeight(W),r=W.items.some(function(R){return!!R.gridPlaylistRenderer});
W=W.items.some(function(R){return!!R.shoppingItemCardViewModel});
return l?9:V?8:r||f?10:W?7:6};
_.t.computeContainsPost=function(W){return!!W&&!!W.items&&W.items.some(function(l){return!!l.postRenderer})};
_.t.computeContainsLockup=function(){if(_.U("web_horizontal_list_lockup_arrow_killswitch"))return!1;var W,l;return(W=this.data)==null?void 0:(l=W.items)==null?void 0:l.some(function(V){return!!V.lockupViewModel})};
_.t.maybeUpdateLockupAspectRatio=function(){var W,l;if(this.computeContainsLockup()&&((W=this.data)==null?0:(l=W.items)==null?0:l.length)){var V;W=ICn((V=this.data.items[0].lockupViewModel)==null?void 0:V.contentType,this.data.force16By9ThumbnailAspectRatio);V=Abj(W);V=this.computeLockupWidth()/V;_.I1(this.hostElement,{"--yt-horizontal-list-content-height":V+"px"})}};
_.t.computeOverrideArrowPositionForProductCard=function(W){if(this.isExpandableContent)return!1;var l;return!!(W==null?0:(l=W.items)==null?0:l.some(function(V){return!!V.verticalProductCardRenderer}))};
_.t.computeOverrideArrowPositionForShoppingItemCard=function(W){var l;return!!(W==null?0:(l=W.items)==null?0:l.some(function(V){return!!V.shoppingItemCardViewModel}))};
_.t.computeOverrideArrowPositionForReelItemRenderer=function(W){return this.containsReelItemRenderer(W)};
_.t.computeHasBigThumbsReelItems=function(W,l){return W&&this.containsReelItemRenderer(l)};
_.t.computeShouldListItemsHaveEqualHeight=function(W){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(W==null?void 0:W.itemSizeConstraint)};
_.t.computeShouldListItemsHaveShortsHeight=function(W){return this.computeShouldListItemsHaveEqualHeight(W)&&!this.containsGridVideoRenderer(W)};
_.t.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.t.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.t.containsReelItemRenderer=function(W){var l;return!!(W==null?0:(l=W.items)==null?0:l.some(function(V){return!(!V.reelItemRenderer&&!V.shortsLockupViewModel)}))};
_.t.containsGridVideoRenderer=function(W){var l;return!!(W==null?0:(l=W.items)==null?0:l.some(function(V){return!!V.gridVideoRenderer||!!V.lockupViewModel}))};
_.t.computeContainsGridMovieRenderer=function(W){var l;return!!(W==null?0:(l=W.items)==null?0:l.some(function(V){return!!V.gridMovieRenderer}))};
_.t.computeOverrideArrowPositionToCenter=function(W){return this.computeIsSearchPostShelf(W)};
_.t.computeIsSearchPostShelf=function(W){var l;return!!(W==null?0:(l=W.items)==null?0:l.some(function(V){var f,r;return((r=(f=V.postRenderer)==null?void 0:f.surface)!=null?r:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.t.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(W){var l;return!!(W==null?0:(l=W.items)==null?0:l.some(function(V){var f,r,R;return((R=(f=V.backgroundPromoRenderer)==null?void 0:(r=f.style)==null?void 0:r.value)!=null?R:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.t.computeIsSearchVodShelf=function(W,l){return W&&this.containsGridVideoRenderer(l)};
_.t.computeDisableWheelScroll=function(W,l){return this.computeIsSearchVodShelf(W,l)};
_.t.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.t.computeShortsLockupAspectRatio=function(){return 1};
_.t.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.I1(this.hostElement,{"--ytd-reel-item-thumbnail-height":Khc+"px"})};
PH.prototype.dataChanged=PH.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],PH.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.QG.YtdHorizontalListBehavior),_.z("design:type",Object)],PH.prototype,"ytdHorizontalListBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],PH.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Object)],PH.prototype,"isExpandableContent",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],PH.prototype,"hideShelfHeader",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],PH.prototype,"engagementPanel",void 0);_.a([_.b(),_.z("design:type",Array)],PH.prototype,"buttonClasses",void 0);_.a([_.b(),_.z("design:type",Object)],PH.prototype,"isSearch",void 0);
_.a([_.b(),_.z("design:type",Object)],PH.prototype,"disableScrollEventListener",void 0);_.a([_.b({computed:"computeInitialCountNumber(data)"}),_.z("design:type",Number)],PH.prototype,"initialCount",void 0);_.a([_.b({computed:"computeContainsPost(data)"}),_.z("design:type",Boolean)],PH.prototype,"supportComponentResize",void 0);_.a([_.b({computed:"computeContainsPost(data)"}),_.z("design:type",Boolean)],PH.prototype,"containsPost",void 0);
_.a([_.b({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.z("design:type",Object)],PH.prototype,"containsLockup",void 0);_.a([_.b({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],PH.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.a([_.b({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.z("design:type",Object)],PH.prototype,"overrideArrowPositionForProductCard",void 0);_.a([_.b({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.z("design:type",Object)],PH.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.a([_.b({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.z("design:type",Object)],PH.prototype,"overrideArrowPositionForReelItems",void 0);_.a([_.b({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.z("design:type",Object)],PH.prototype,"overrideArrowPositionForGridMovie",void 0);
_.a([_.b({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.z("design:type",Object)],PH.prototype,"overrideArrowPositionToCenter",void 0);_.a([_.b({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.z("design:type",Object)],PH.prototype,"isSearchPostShelf",void 0);_.a([_.b({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.z("design:type",Object)],PH.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.a([_.b({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.z("design:type",Object)],PH.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.a([_.b({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.z("design:type",Object)],PH.prototype,"hasBigThumbsReelItems",void 0);
_.a([_.b({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.z("design:type",Object)],PH.prototype,"shouldUseMixedListHeight",void 0);_.a([_.b({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.z("design:type",Object)],PH.prototype,"shouldUseShortsListHeight",void 0);_.a([_.b({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.z("design:type",Object)],PH.prototype,"gridVideoWidth",void 0);
_.a([_.b({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.z("design:type",Object)],PH.prototype,"isSearchVodShelf",void 0);_.a([_.b({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.z("design:type",Object)],PH.prototype,"disableWheelScroll",void 0);_.a([_.b({computed:"computeSizing(isSearch)"}),_.z("design:type",Object)],PH.prototype,"sizing",void 0);
_.a([_.b({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.z("design:type",Object)],PH.prototype,"shortsLockupAspectRatio",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],PH.prototype,"dataChanged",null);
_.Z(PH,"yt-horizontal-list-renderer",function(){if(buv===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);buv=W}W=buv;return W},{mode:1});var Fh1;var GCc=[10,12,14,16,18,20,24,28,32,36],bHZ=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],nF=function(){var W=_.I.apply(this,arguments)||this;W.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";W.hideOverflow=!1;W.useRoboto=!1;W.fontClass="";W.overflown=!1;W.actionMap={"yt-window-resized":"resize"};return W};
_.v(nF,_.I);_.t=nF.prototype;
_.t.attached=function(){var W=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();_.V9(this,function(){W.resize()});
if(!_.kt){var l,V,f;(l=document)==null||(V=l.fonts)==null||(f=V.ready)==null||f.then(function(){W.resize()})}};
_.t.dataChanged=function(){this.resize()};
_.t.guideIsExpandedChanged=function(){this.resize()};
_.t.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 W=this.getMaxNumLines(),l=this.getMinFont(),V=this.getMaxFont(),f=this.useRoboto?GCc:bHZ;for(f=f.filter(function(R){return R<=V&&R>=l});f.length>1;){var r=Math.floor(f.length/2);
this.updateFontSize(f[r]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=W)f=f.slice(r,f.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>W)f=f.slice(0,r);else break}this.updateFontSize(f[f.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(W)}};
_.t.handleOverflow=function(W){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>W&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",W.toString()))};
_.t.updateFontSize=function(W){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+W;this.textNode.classList.add(this.fontClass)};
_.t.getMaxFont=function(){var W=this.useRoboto?GCc:bHZ;W=W[W.length-1];return this.maxFontSize&&this.maxFontSize<=W?this.maxFontSize:W};
_.t.getMinFont=function(){var W=(this.useRoboto?GCc:bHZ)[0];return this.minFontSize&&this.minFontSize>=W?this.minFontSize:W};
_.t.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.t.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.t.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.dE(this.text).split("\n").length-1:Infinity};
_.t.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Lh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
nF.prototype.guideIsExpandedChanged=nF.prototype.guideIsExpandedChanged;nF.prototype.dataChanged=nF.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],nF.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],nF.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],nF.prototype,"actionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],nF.prototype,"text",void 0);
_.a([_.b(),_.z("design:type",String)],nF.prototype,"fontFamily",void 0);_.a([_.b(),_.z("design:type",Number)],nF.prototype,"maxWidth",void 0);_.a([_.b(),_.z("design:type",Number)],nF.prototype,"maxHeight",void 0);_.a([_.b(),_.z("design:type",Number)],nF.prototype,"maxFontSize",void 0);_.a([_.b(),_.z("design:type",Number)],nF.prototype,"minFontSize",void 0);_.a([_.b(),_.z("design:type",Number)],nF.prototype,"maxLines",void 0);_.a([_.b(),_.z("design:type",Object)],nF.prototype,"hideOverflow",void 0);
_.a([_.b({selector:_.i6n}),_.z("design:type",Boolean)],nF.prototype,"guideIsExpanded",void 0);_.a([_.Aa("#container"),_.z("design:type",HTMLElement)],nF.prototype,"containerNode",void 0);_.a([_.Aa("#text"),_.z("design:type",HTMLElement)],nF.prototype,"textNode",void 0);_.a([_.zS("text"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nF.prototype,"dataChanged",null);
_.a([_.zS("guideIsExpanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nF.prototype,"guideIsExpandedChanged",null);_.a([_.A({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],nF);
_.Z(nF,"yt-dynamic-sizing-formatted-string",function(){if(Fh1!==void 0)return Fh1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Fh1=W},{mode:1});var pYk;_.olM=function(W){_.VU.call(this,W)};
_.v(_.olM,_.VU);var jIv=function(W){_.VU.call(this,W)};
_.v(jIv,_.olM);var CF=function(){return _.I.apply(this,arguments)||this};
_.v(CF,_.I);CF.prototype.onTapSuspendedChannel=function(){var W;if((W=this.data)!=null&&W.serviceEndpoint){var l,V;(W=(V=_.k((l=this.data)==null?void 0:l.serviceEndpoint,_.x_))==null?void 0:V.url)?_.PV(W,void 0,void 0,window.top):(l=new jIv("Did not handle suspended account tap. No appealUrl."),_.wv(l))}else l=new jIv("Did not handle suspended account tap. No serviceEndpoint."),_.wv(l)};
CF.prototype.onTap=function(){var W=this,l=_.Qq(),V,f=(V=_.AG(l,{veType:7116}))!=null?V:void 0;_.R$(l,{visualElement:f});_.yb();this.saveRoleText();var r;if((r=this.data)==null?0:r.youtubeSuspended)this.onTapSuspendedChannel();else{var R=!1,y,P;(l=(P=_.k((y=this.data)==null?void 0:y.serviceEndpoint,_.PLL))==null?void 0:P.supportedTokens)&&l.forEach(function(n){if(n.accountSigninToken)if(R=!0,W.onAccountItemTap)W.onAccountItemTap(n.accountSigninToken.signinUrl);else _.PV(n.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!R){if(y=this.get("serviceEndpoint",this.data))R=!0,this.ytComponentBehavior.resolveCommand(y);R||_.Ar(new jIv("Did not handle account switch tap. No token."))}}};
CF.prototype.saveRoleText=function(){if(this.data){var W=this.data,l=W.channelDelegationRole;if(l){var V,f=(V=_.k(W==null?void 0:W.serviceEndpoint,_.PLL))==null?void 0:V.supportedTokens;if(!f){var r,R,y,P;f=(r=_.k(W==null?void 0:W.serviceEndpoint,_.Ss))==null?void 0:(R=r.popup)==null?void 0:(y=R.confirmDialogRenderer)==null?void 0:(P=y.confirmButton)==null?void 0:P.buttonRenderer;var n;f=(n=_.k(f==null?void 0:f.command,_.Ig))==null?void 0:n.commands;if(!f)return;var B;f=(B=_.k(f[1],_.PLL))==null?
void 0:B.supportedTokens}if(f){n=void 0;B=_.L(f);for(f=B.next();!f.done;f=B.next())if(f=f.value,f.datasyncIdToken){n=f.datasyncIdToken.datasyncIdToken;break}if(n){var d;a:{if(_.Voj()&&(B=_.IAn(n+"::pom"))){B=new tp(B);break a}B=void 0}(d=B)==null||d.set("role_text",l);if((Bnz?Bnz:window.location).href.indexOf("studio")!==-1&&(d=fOz())){B=d.src?(new URL(d.src)).origin:"*";var J;(J=d.contentWindow)==null||J.postMessage({action:"save_pom_role",datasyncId:n,roleText:l},B)}}}}}};
_.rc.Object.defineProperties(CF.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var W,l,V=(W=this.data)==null?void 0:(l=W.accountPhoto)==null?void 0:l.thumbnails;return V&&V.length>0&&(V[0].height===36||V[0].height===48)?V[0].height:40}}});
CF.prototype.onTap=CF.prototype.onTap;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],CF.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],CF.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],CF.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!1}),_.z("design:type",Function)],CF.prototype,"onAccountItemTap",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],CF.prototype,"enableRingForActiveAccount",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],CF.prototype,"thumbnailSize",null);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],CF.prototype,"onTap",null);_.a([_.A({is:"ytd-account-item-renderer",disableElementRegistration:!0})],CF);
_.Z(CF,"ytd-account-item-renderer",function(){if(pYk!==void 0)return pYk;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return pYk=W},{mode:1});var IMc;var cH=function(){return _.I.apply(this,arguments)||this};
_.v(cH,_.I);cH.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.tY().resolve(_.s6).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],cH.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],cH.prototype,"data",void 0);_.a([_.A({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],cH);
_.Z(cH,"ytd-identity-chip-renderer",function(){if(IMc!==void 0)return IMc;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return IMc=W},{mode:1});var iHZ;var mwL;var XY9;var TfX;var BH=function(){var W=_.I.apply(this,arguments)||this;W.richItemMinWidth=_.yS("wn_grid_min_item_width",310);W.isShorts=!1;W.isWatchNext=!1;W.isExploreHub=!1;return W};
_.v(BH,_.I);_.rc.Object.defineProperties(BH.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var W=[],l=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.I1(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var V;if(((V=this.data)==null?0:V.rows)&&l)for(l*=this.data.rows,V=0;V<l;V++)W.push({});return W}}});
_.a([_.F(_.dx),_.z("design:type",Object)],BH.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],BH.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],BH.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,selector:_.Wl,value:3}),_.z("design:type",Number)],BH.prototype,"itemsPerRow",void 0);_.a([_.b({selector:_.II6,value:6}),_.z("design:type",Number)],BH.prototype,"slimItemsPerRow",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Number)],BH.prototype,"richItemMinWidth",void 0);_.a([_.b({reflectToAttribute:!0,selector:_.$H}),_.z("design:type",Boolean)],BH.prototype,"miniMode",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],BH.prototype,"isShorts",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],BH.prototype,"isWatchNext",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],BH.prototype,"isExploreHub",void 0);
_.a([_.G("isExploreHub"),_.b({reflectToAttribute:!0}),_.z("design:type",Object),_.z("design:paramtypes",[])],BH.prototype,"shimmerAnimation",null);_.a([_.G("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.z("design:type",Array),_.z("design:paramtypes",[])],BH.prototype,"cardItems",null);_.a([_.A({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],BH);
_.wYk=_.GG()(BH,"ytd-ghost-grid-renderer",function(){if(TfX===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);TfX=W}W=TfX;return W},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.HI(_.Q(function(W){var l=_.Dd(W,{numberOfComments:3}).numberOfComments,V=_.Dd(W,{isInitialLoad:!1}).isInitialLoad,f=_.Dd(W,{engagementPanel:!1}).engagementPanel,r=function(){return Math.min(Number(l==null?void 0:l())||20,20)};
return _.C("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.C(_.c,{cond:function(){return!(f==null?0:f())&&(V==null?void 0:V())},
then:function(){return _.C("div",{class:"ytGhostCommentsComments"},_.C("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.C("div",{class:_.If("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.C("div",{class:_.If("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.C("div",{class:"ytGhostCommentsGhostCard"},_.C("div",{class:"ytGhostCommentsAvatar"},_.C("div",{class:"ytGhostCommentsCircle"})),_.C("div",{class:"ytGhostCommentsComments"},_.C("div",{class:"ytGhostCommentsMeta"},
_.C("div",{class:_.If("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.C("div",{class:_.If("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.C("div",{class:"ytGhostCommentsComments"},_.C(_.G3,{each:function(){return Array((r==null?void 0:r())||3)}},function(){return _.C("div",{class:"ytGhostCommentsGhostCard"},_.C("div",{class:"ytGhostCommentsAvatar"},_.C("div",{class:"ytGhostCommentsCircle"})),_.C("div",{class:"ytGhostCommentsHost"},_.C("div",{class:"ytGhostCommentsMeta"},
_.C("div",{class:_.If("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.C("div",{class:_.If("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.C("div",{class:_.If("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.C("div",{class:"ytGhostCommentsGhostLikeDislike"},_.C("div",{class:_.If("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.C("div",{class:_.If("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"rb"),"yt-ghost-comments",{props:{numberOfComments:_.pA,
isInitialLoad:_.pA,engagementPanel:_.pA}});_.e1("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var dD=function(){var W=_.I.apply(this,arguments)||this;W.isOverridable=!1;W.spinnerActive=!1;W.showButton=!1;W.isCommentsSection=!1;W.engagementPanel=!0;W.isShortsGrid=!1;W.isShortsPage=!1;W.isWatchPage=!1;W.ghostCardExperimentEnabled=_.U("show_ghost_comments_shorts_watch")||_.U("show_ghost_comments_desktop_watch");W.originalShowButton=!1;W.endOfList=!1;return W};
_.v(dD,_.I);_.t=dD.prototype;_.t.resetIntersectionObserver=function(){var W;(W=this.observer)==null||W.disconnect();this.observer=void 0};
_.t.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var W,l;((W=this.data)==null?void 0:W.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((l=this.data)==null?0:l.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.t.initializeIntersectionObserver=function(){var W=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(l){l=_.L(l);for(var V=l.next();!V.done;V=l.next())V.value.isIntersecting&&(W.triggerContinuation(),W.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.t.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]]"}}}}}};
_.t.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var W;((W=this.data)==null?0:W.continuationEndpoint)&&(W=_.k(this.data.continuationEndpoint,_.VH))&&this.ytdReduxBehavior.dispatch(_.GT({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:W}}))};
_.t.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.t.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.t.onServiceRequestCompleted=function(W,l){if(!_.U("kevlar_hide_spinner_on_empty_continuation_killswitch")){var V;(V=l.actions)!=null&&V.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.t.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.t.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.t.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.t.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var W=3;if(this.engagementPanel){var l,V,f;W=Math.floor(((((l=this.hostElement)==null?void 0:(V=l.parentElement)==null?void 0:(f=V.parentElement)==null?void 0:f.scrollHeight)||108)-108)/108);W=this.isInitialLoad?Math.max(W,3):3}l=[].concat(_.QK(this.hostElement.querySelectorAll("yt-ghost-comments")));l=_.L(l);for(V=l.next();!V.done;V=l.next())V=V.value,V.numberOfComments=W,V.isInitialLoad=this.isInitialLoad,V.engagementPanel=
this.engagementPanel}};
_.t.detached=function(){this.resetIntersectionObserver()};
_.rc.Object.defineProperties(dD.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.U("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.U("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
dD.prototype.numberOfGhostCommentsChanged=dD.prototype.numberOfGhostCommentsChanged;dD.prototype.continuationTriggerOffsetChanged=dD.prototype.continuationTriggerOffsetChanged;dD.prototype.showButtonChanged=dD.prototype.showButtonChanged;dD.prototype.onYtServiceRequestCompletedForButtonRenderer=dD.prototype.onYtServiceRequestCompletedForButtonRenderer;dD.prototype.onServiceRequestCompleted=dD.prototype.onServiceRequestCompleted;dD.prototype.onYtServiceRequestSentForButtonRenderer=dD.prototype.onYtServiceRequestSentForButtonRenderer;
dD.prototype.observeData=dD.prototype.observeData;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],dD.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],dD.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.HL.YtVisibilityBehavior),_.z("design:type",Object)],dD.prototype,"ytVisibilityBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],dD.prototype,"ytComponentBehavior",void 0);
_.a([_.F(_.dx),_.z("design:type",Object)],dD.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],dD.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],dD.prototype,"isOverridable",void 0);_.a([_.b(),_.z("design:type",Object)],dD.prototype,"spinnerActive",void 0);_.a([_.b(),_.z("design:type",Object)],dD.prototype,"showButton",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],dD.prototype,"isCommentsSection",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],dD.prototype,"engagementPanel",void 0);_.a([_.b(),_.z("design:type",Object)],dD.prototype,"isShortsGrid",void 0);_.a([_.b({reflectToAttribute:!0,selector:_.TZU}),_.z("design:type",Object)],dD.prototype,"isShortsPage",void 0);_.a([_.b({reflectToAttribute:!0,selector:_.X3j}),_.z("design:type",Object)],dD.prototype,"isWatchPage",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],dD.prototype,"ghostCardExperimentEnabled",void 0);
_.a([_.b(),_.z("design:type",Number)],dD.prototype,"continuationTriggerOffset",void 0);_.a([_.b(),_.z("design:type",Object)],dD.prototype,"endOfList",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],dD.prototype,"isInitialLoad",void 0);_.a([_.Aa("ytd-button-renderer"),_.z("design:type",_.Xj)],dD.prototype,"buttonRenderer",void 0);_.a([_.b(),_.z("design:type",Object)],dD.prototype,"buttonOverrides",void 0);
_.a([_.b(),_.G("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.z("design:type",Object),_.z("design:paramtypes",[])],dD.prototype,"isShortsCommentsSection",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dD.prototype,"observeData",null);
_.a([_.XI("yt-service-request-sent-button-renderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dD.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],dD.prototype,"onServiceRequestCompleted",null);
_.a([_.XI("yt-service-request-completed-button-renderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dD.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.a([_.zS("showButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dD.prototype,"showButtonChanged",null);
_.a([_.zS("continuationTriggerOffset"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dD.prototype,"continuationTriggerOffsetChanged",null);_.a([_.TS("isInitialLoad","engagementPanel"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dD.prototype,"numberOfGhostCommentsChanged",null);_.a([_.A({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],dD);
_.Z(dD,"ytd-continuation-item-renderer",function(){if(XY9!==void 0)return XY9;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return XY9=W},{mode:1});var AtI;var JT=function(){var W=_.I.apply(this,arguments)||this;W.downloadProgress=0;W.transferState="TRANSFER_STATE_UNKNOWN";W.downloadState="DOWNLOAD_STATE_UNKNOWN";W.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";W.offlineVideoPolicyExpirationTimestamp=0;W.downloadedVideoPlaybackPosition=0;return W};
_.v(JT,_.I);JT.prototype.dataChanged=function(){var W;this.videoData=_.k((W=this.data)==null?void 0:W.renderer,akL);this.transferStateChanged()};
JT.prototype.downloadProgressChanged=function(){if(this.entityInfo){var W=Object.assign({},this.videoData),l=yPU(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),V=l.publishedTimeText,f=l.badges;W.shortViewCountText=l.shortViewCountText;W.publishedTimeText=V;W.badges=f;this.set("videoData",W)}};
JT.prototype.transferStateChanged=function(){if(this.entityInfo){var W=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",l=_.as(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!OK(this.entityInfo.policyEntity),V=Object.assign({},this.videoData),f=yPU(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),r=f.publishedTimeText,R=f.badges;V.shortViewCountText=
f.shortViewCountText;V.publishedTimeText=r;V.badges=R;V.isDisabled=l;V.isWatched=this.downloadedVideoPlaybackPosition>0;V.navigationEndpoint=l?void 0:woS(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var y;W&&((y=this.videoData)==null?0:y.videoId)&&!_.U("dl_resume_click_killswitch")&&(V.isDisabled=!1,V.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});V.thumbnailOverlays=s8S(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",V)}};
JT.prototype.transferStateChanged=JT.prototype.transferStateChanged;JT.prototype.downloadProgressChanged=JT.prototype.downloadProgressChanged;JT.prototype.dataChanged=JT.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],JT.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],JT.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],JT.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Object)],JT.prototype,"videoData",void 0);_.a([_.b({selector:t5,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],JT.prototype,"downloadProgress",void 0);_.a([_.b(),_.z("design:type",Number)],JT.prototype,"relativeDateReference",void 0);_.a([_.b({selector:_.rE,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],JT.prototype,"transferState",void 0);
_.a([_.b({selector:VXz,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],JT.prototype,"downloadState",void 0);_.a([_.b({selector:Z6U,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],JT.prototype,"offlinePolicyAction",void 0);_.a([_.b({selector:O6F,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],JT.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.a([_.b({selector:sm,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],JT.prototype,"downloadedVideoPlaybackPosition",void 0);_.a([_.b({selector:zmS,selectorArgs:["videoData.videoId"]}),_.z("design:type",Object)],JT.prototype,"entityInfo",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],JT.prototype,"isDownloading",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JT.prototype,"dataChanged",null);
_.a([_.zS("downloadProgress"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JT.prototype,"downloadProgressChanged",null);_.a([_.zS("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JT.prototype,"transferStateChanged",null);
_.a([_.A({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],JT);
_.Z(JT,"ytd-downloaded-video-grid-video-renderer",function(){if(AtI!==void 0)return AtI;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return AtI=W},{mode:_.bD("kevlar_poly_si_batch_j025")?1:2});var QIk;var Do=function(){};
Do.prototype.resolve=function(W,l){var V=this;return _.g(function(f){return f.yield(V.resolveCommand(W,l),0)})};var MIB,U3;MIB=kwz(function(W){return W.targetId},{shouldPersist:!1});
U3=MIB.updateData;_.ZHa=MIB.useUpdatableData;var OHM,aML;OHM=kwz(function(W){return W.targetId});
aML=OHM.updateData;_.zHZ=OHM.useUpdatableData;var NfZ=Bjv.bind(null,U3),Yiv=Bjv.bind(null,aML);(function(W,l,V){var f=_.k(V==null?void 0:V.updatedRenderer,_.DlL);return f?W({targetId:l},function(){return f}):!1}).bind(null,U3);var un=function(){};
_.v(un,Do);un.prototype.resolveCommand=function(W){var l;return _.g(function(V){l=_.k(W,_.Gez);if(!l)return V.return();NfZ(l.targetId,l);_.ju(V)})};var kF=function(){var W=_.OD.apply(this,arguments)||this;W.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return W};
_.v(kF,_.OD);_.t=kF.prototype;_.t.configureContinuationPathMap=function(){return{}};
_.t.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.t.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.t.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.t.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.t.handleAppendContinuationItemsAction=function(W){var l=_.k(W,_.ugI);if(this.data&&this.data.targetId&&l&&this.continuationPathMap&&l.targetId===this.data.targetId){var V=ePg(W),f=V&&this.continuationPathMap[V];if(f&&V)if(W=this.get(f,this.data)){a:{for(V=0;V<W.length;V++){var r=W[V],R=void 0,y=!!_.k((R=_.k(r,taX))==null?void 0:R.content,_.QH9);if(_.k(r,_.P0)||y)break a}V=W.length}f="data."+f;l.continuationItems?V===W.length-1?(this.pop(f),this.push.apply(this,[f].concat(_.QK(l.continuationItems)))):
V===W.length?this.push.apply(this,[f].concat(_.QK(l.continuationItems))):this.splice.apply(this,[f,V,1].concat(_.QK(l.continuationItems))):this.splice(f,V,1);(_.U("web_enable_voting_animation")||_.U("enable_music_web_cairo_voting_animation"))&&_.FN(this.hostElement,"yt-append-continuation-items-action-finished");_.FN(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Qe(new _.bP("append continuation items does not exist",V));else _.Qe(new _.bP("append continuation path does not exist",
V))}};
_.t.handleReloadContinuationItemsCommand=function(W){var l=_.k(W,_.Gez);if(this.data&&l){if(_.U("web_client_explore_hub")||_.U("web_explore_hub_on_hover")||_.U("web_client_explore_hub_on_hover"))try{_.tY().resolve(un).resolveCommand(W)}catch(R){}if(this.data.targetId&&this.continuationPathMap&&l.targetId===this.data.targetId&&(!_.U("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||l.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var V,f=(V=l.slot)==null?void 0:
V.replace("RELOAD_CONTINUATION_SLOT_","");V=(W=ePg(W)+"-"+(f==null?void 0:f.toLowerCase()))&&this.continuationPathMap[W];if(!V||!W||!f)_.Qe(new _.bP("reload continuation path does not exist",W));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(l)){if(l.replaceWithFirstItem){var r;this.set("data."+V,((r=l.continuationItems)==null?0:r.length)?l.continuationItems[0]:{})}else this.set("data."+V,l.continuationItems?l.continuationItems:[]);this.continuationIsReloading=
!1;_.FN(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.t.handleShowReloadUiCommand=function(W){W=_.k(W,Tw1);var l;((l=this.data)==null?0:l.targetId)&&(W==null?0:W.targetId)&&W.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
kF.prototype.observeData=kF.prototype.observeData;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],kF.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],kF.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],kF.prototype,"data",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],kF.prototype,"continuationIsReloading",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kF.prototype,"observeData",null);_.a([_.a1()],kF);_.vH=[_.uH.YtComponentBehavior,_.hp.YtActionHandlerBehavior,kF.prototype];_.HH={};_.HH.YtNextContinuationBehavior=[_.mB.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",_.mz(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.mz(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(W,l){W.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,l,{}):(W={locationRetrieved:function(V){this.makeNextContinuationRequest_(V,l,{})}.bind(this)},_.FN(this.hostElement,"yt-retrieve-location",W))},
makeNextContinuationRequest_:function(W,l,V){_.l_("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();W=l(W);var f;this.canUseContextualNetworkManager_()&&(f=this.getNetworkManager());f||(f=_.tY().resolve(_.lm));l=_.ty.instance;if(_.M4("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&l){f=_.Um([W.startsWith("/")?W.substr(1):W]);var r,R;V=_.B3(l,{},f,V==null?void 0:(r=V.context)==null?void 0:(R=r.clickTracking)==null?void 0:R.clickTrackingParams).then(function(y){return{response:y}})}else V=
this.nextContinuation.usePost?f.postData(W,V):f.fetchData(W);
V.then(this.updateNextContinuationData_.bind(this,W));this.pendingContinuationRequest_=V;this.startListeningForNavigate_()},
updateNextContinuationData_:function(W,l){var V=this;_.l_("ncl");this.pendingContinuationRequest_=void 0;if(l){var f={};this.nextContinuation&&(f=this.nextContinuation);if(l.response&&l.response.continuationContents&&l.response.continuationContents[f.continuationType]){W=l.response.continuationContents[f.continuationType];var r=f.header||"data.header",R=W[f.responseHeaderKey||"header"];R&&this.set(r,R);r=f.contentsArray||"data.contents";R=this.getContents_(W,f.responseContentsKey||"contents")||[];
this.pathExists_(r)?(R.unshift(r),this.push.apply(this,R)):this.set(r,R);R&&(d8x(_.Qq(),l.response,this.hostElement,function(y){_.Gt(V.hostElement,"yt-store-grafted-ve-action",[y])}),_.FN(this.hostElement,"yt-next-continuation-data-updated",{continuationData:l,
page:this,contentsArray:r}));this.set(f.continuationsArray||"data.continuations",W[f.responseContinuationsKey||"continuations"]||[])}else l.reload?_.Qe(new _.bP("Reloading from continuation is unsupported")):l.responseContext&&l.responseContext.errors||(delete l.xsrf_token,delete l.timing,delete l.endpoint,delete l.csn,l.responseContext&&delete l.responseContext.serviceTrackingParams,r={request:_.EJ(W,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(l).sort()},l.response&&(r.responseContentKeys=
Object.keys(l.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(r.continuationType=this.nextContinuation.continuationType.substr(0,256)),l=new _.bP("Malformed continuation",r),W.indexOf("/comment_service_ajax")==0?_.Qe(l):_.wv(l)),this.set(f.continuationsArray||"data.continuations",[])}else _.Ar(new _.bP("Missing continuation response",W))},
getContents_:function(W,l){l=l.split(".");return _.MC.getValueByKeys(W,l)},
pathExists_:function(W){var l=this;W=W.toString().split(".");for(var V=0;V<W.length;V++)if(l=l[W[V]],l===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var xwc;var eH9;var KF=function(){var W=_.I.apply(this,arguments)||this;W.triggered_=!1;return W};
_.v(KF,_.I);_.t=KF.prototype;_.t.attached=function(){this.maybeTriggerAutoload()};
_.t.detached=function(){this.hasBeenTriggered_=!1};
_.t.onPrescanVisible=function(){this.onShow()};
_.t.onShow=function(){this.showButton||this.trigger()};
_.t.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.FN(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.t.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.t.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.t.computeLabel_=function(W,l){return W===void 0?null:W.label||!l?W.label:this.showMoreText_};
_.t.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.t.getContinuationUrl=function(W){var l={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(l.itct=this.data.clickTrackingParams);return _.$2(W,l)};
_.t.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
KF.prototype.showButtonChanged_=KF.prototype.showButtonChanged_;KF.prototype.observeData_=KF.prototype.observeData_;_.a([_.F(_.HL.YtVisibilityBehavior),_.z("design:type",Object)],KF.prototype,"ytVisibilityBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],KF.prototype,"data",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],KF.prototype,"showButton",void 0);
_.a([_.b({value:!1}),_.z("design:type",Boolean)],KF.prototype,"showIcon",void 0);_.a([_.b({computed:"computeLabel_(data, showButton)"}),_.z("design:type",Object)],KF.prototype,"label",void 0);_.a([_.b({value:_.Bl(_.wg("SHOW_MORE",void 0,"Show More"))}),_.z("design:type",Object)],KF.prototype,"showMoreText_",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],KF.prototype,"spinnerActive_",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],KF.prototype,"hasBeenTriggered_",void 0);
_.a([_.b({value:void 0}),_.z("design:type",String)],KF.prototype,"observeVisibleOption",void 0);_.a([_.b({value:void 0}),_.z("design:type",String)],KF.prototype,"observeHiddenOption",void 0);_.a([_.b({value:"observe_once"}),_.z("design:type",Object)],KF.prototype,"observePrescanOption",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KF.prototype,"observeData_",null);
_.a([_.TS("showButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KF.prototype,"showButtonChanged_",null);_.a([_.Vq({is:"yt-next-continuation",disableElementRegistration:!0})],KF);
_.Z(KF,"yt-next-continuation",function(){if(eH9===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;xwc===void 0&&(xwc=document.createElement("template"));var f=xwc;V.call(l,f.content.cloneNode(!0),W.content.firstChild);eH9=W}W=eH9;return W},{mode:2});var qiB;var hHk;var FG=function(){return _.I.apply(this,arguments)||this};
_.v(FG,_.I);FG.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],FG.prototype,"data",void 0);_.a([_.Vq({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],FG);
_.Z(FG,"yt-music-pass-small-feature-info-renderer",function(){if(hHk===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;qiB===void 0&&(qiB=document.createElement("template"));var f=qiB;V.call(l,f.content.cloneNode(!0),W.content.firstChild);hHk=W}W=hHk;return W},{mode:2});_.e1("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var GO=function(){var W=_.I.apply(this,arguments)||this;W.isCollapsible=!1;W.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return W};
_.v(GO,_.I);_.t=GO.prototype;_.t.computeIsCollapsible=function(W){return!!(((W==null?0:W.showMoreText)||(W==null?0:W.visibleRowCount))&&(W==null?0:W.isCollapsible))};
_.t.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"}}}};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.t.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.t.onIronResize=function(){var W=this;_.gm(this,"updateGridInitItems",function(){W.maybeUpdateInitialItemsDisplayed()})};
_.t.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var W=this.getVisibleWidth();W!==0&&(W=Math.floor(W/214)*(this.data.visibleRowCount||2),W!==this.initialCount&&(this.initialCount=W,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.t.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.t.computeExpandVisible=function(W,l,V,f){return W&&l&&V&&!!f&&!!f.showMoreText};
_.t.computeShowMoreButton=function(W){return{text:W,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.t.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.t.initCollapsed=function(){var W=this;this.ytLazyListBehavior.canShowMore=!1;var l;(this.collapsed=!((l=this.data)==null||!l.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.V9(this,function(){_.bj(W.hostElement,"yt-refit-popups-action")})};
_.t.fillRestIfNotCollapsible=function(){var W=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!W||this.ytLazyListBehavior.fillRemainingListItems()};
_.t.computeViewAllHidden=function(W,l){return W||!l.viewAllEndpoint};
GO.prototype.fillRestIfNotCollapsible=GO.prototype.fillRestIfNotCollapsible;GO.prototype.initCollapsed=GO.prototype.initCollapsed;GO.prototype.onIronResize=GO.prototype.onIronResize;GO.prototype.persistentGuideChanged=GO.prototype.persistentGuideChanged;_.a([_.F(_.Wo),_.z("design:type",Object)],GO.prototype,"ironResizableBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.AM.YtLazyListBehavior),_.z("design:type",Object)],GO.prototype,"ytLazyListBehavior",void 0);_.a([_.F(_.HH.YtNextContinuationBehavior),_.z("design:type",Object)],GO.prototype,"ytNextContinuationBehavior",void 0);_.a([_.F(_.vZ.YtdGuideStateAwareBehavior),_.z("design:type",Object)],GO.prototype,"ytdGuideStateAwareBehavior",void 0);
_.a([_.F(_.vH),_.z("design:type",Object)],GO.prototype,"ytContinuationHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],GO.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Boolean)],GO.prototype,"collapsed",void 0);_.a([_.b(),_.z("design:type",Number)],GO.prototype,"initialCount",void 0);_.a([_.b({computed:"computeShowMoreButton(data.showMoreText)"}),_.z("design:type",Object)],GO.prototype,"showMoreButton",void 0);
_.a([_.b({computed:"computeIsCollapsible(data)"}),_.z("design:type",Object)],GO.prototype,"isCollapsible",void 0);_.a([_.Aa("#items"),_.z("design:type",HTMLElement)],GO.prototype,"items",void 0);_.a([_.zS("guidePersistentAndVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GO.prototype,"persistentGuideChanged",null);_.a([_.XI("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GO.prototype,"onIronResize",null);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GO.prototype,"initCollapsed",null);_.a([_.zS("canShowMore"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GO.prototype,"fillRestIfNotCollapsible",null);_.a([_.A({is:"ytd-grid-renderer",disableElementRegistration:!0})],GO);
_.Z(GO,"ytd-grid-renderer",function(){if(QIk!==void 0)return QIk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return QIk=W},{mode:_.bD("kevlar_poly_si_batch_j025")?1:2});var bn=function(){return _.I.apply(this,arguments)||this};
_.v(bn,_.I);
bn.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"}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],bn.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],bn.prototype,"data",void 0);_.a([_.A({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],bn);
_.Z(bn,"ytd-carousel-ad-renderer",function(){if(mwL!==void 0)return mwL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return mwL=W},{mode:1});var Si9;var pF=function(){return _.I.apply(this,arguments)||this};
_.v(pF,_.I);_.t=pF.prototype;_.t.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"}}}};
_.t.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,pF.JSC$15376_CLICK_LOCATION_ID_MAP))};
_.t.onSitelinkTap=function(W){W.stopPropagation();var l,V,f=W==null?void 0:(l=W.model)==null?void 0:(V=l.item)==null?void 0:V.onTap;f&&this.ytSparklesClickLocationBehavior.handleClick(f,W,!1)};
_.t.onTap=function(W){var l=this.data&&this.data.content&&this.data.content.navigationEndpoint;l&&this.ytSparklesClickLocationBehavior.handleClick(l,W,!1)};
_.t.sendImpression=function(){if(this.data&&this.data.content)for(var W=_.L(this.data.content.impressionEndpoints||[]),l=W.next();!l.done;l=W.next()){l=_.L(l.value.loggingUrls||[]);for(var V=l.next();!V.done;V=l.next())V=V.value,V.baseUrl&&eS(V.baseUrl,V.attributionSrcMode)}};
pF.prototype.onTap=pF.prototype.onTap;pF.prototype.dataChanged=pF.prototype.dataChanged;pF.JSC$15376_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"]]);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],pF.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],pF.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.wx.YtSparklesClickLocationBehavior),_.z("design:type",Object)],pF.prototype,"ytSparklesClickLocationBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],pF.prototype,"data",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pF.prototype,"dataChanged",null);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],pF.prototype,"onTap",null);_.a([_.A({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],pF);
_.Z(pF,"ytd-promoted-sparkles-text-search-renderer",function(){if(Si9!==void 0)return Si9;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Si9=W},{mode:1});var ElZ;var o4=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-mute-ad-action":"handleMuteAd"};return W};
_.v(o4,_.I);_.t=o4.prototype;
_.t.configureRendererStamper=function(){return{"data.menu":{id:_.U("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]]"}}}}}};
_.t.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.t.computeHasAdBadge=function(W){return!(W==null||!W.adBadge)};
_.t.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",o4.JSC$15385_DEFAULT_AD_BADGE_RENDERER),_.pG(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,o4.JSC$15385_CLICK_LOCATION_ID_MAP))};
_.t.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var W;(((W=this.data)==null?void 0:W.impressionCommands)||[]).forEach(function(l){l=_.L(l.loggingUrls||[]);for(var V=l.next();!V.done;V=l.next())V=V.value,V.baseUrl&&eS(V.baseUrl,V.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.t.onTap=function(W){var l,V=(l=this.data)==null?void 0:l.navigationEndpoint,f;(l=(f=this.data)==null?void 0:f.thumbnailNavigationEndpoint)&&_.cp(_.d_(W),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(l,W,!1):V&&this.ytSparklesClickLocationBehavior.handleClick(V,W,!1)};
_.t.handleMuteAd=function(){this.collapsed=!0};
_.t.attached=function(){var W=this;_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.t.detached=function(){_.U("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.rc.Object.defineProperties(o4.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var W;return!(((W=this.data)==null?void 0:W.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var W;return!(((W=this.data)==null?void 0:W.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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}}});
o4.prototype.dataChanged=o4.prototype.dataChanged;
o4.JSC$15385_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"]]);
o4.JSC$15385_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.wg("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],o4.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.a([_.F(BZ),_.z("design:type",Object)],o4.prototype,"ytdActiveViewBehavior",void 0);
_.a([_.F([_.hp.YtActionHandlerBehavior]),_.z("design:type",Object)],o4.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.wx.YtSparklesClickLocationBehavior),_.z("design:type",Object)],o4.prototype,"ytSparklesClickLocationBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],o4.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],o4.prototype,"collapsed",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],o4.prototype,"useBiggerThumbs",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.gU("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],o4.prototype,"biggerThumbsStyle",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.U("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.z("design:type",Boolean)],o4.prototype,"fixAlignmentSmallScreens",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs_square")}}),
_.z("design:type",Boolean)],o4.prototype,"useBiggerThumbsSquare",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("data.mediaHoverOverlay"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],o4.prototype,"hideHoverOverlay",null);_.a([_.b({reflectToAttribute:!0}),_.G("data.promotedSparklesWebStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],o4.prototype,"webSearchLayout",null);
_.a([_.b({reflectToAttribute:!0}),_.G("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],o4.prototype,"webSearchLayoutLandscape",null);_.a([_.b({reflectToAttribute:!0}),_.G("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],o4.prototype,"webSearchLayoutSquare",null);
_.a([_.b({reflectToAttribute:!0}),_.G("data.promotedSparklesWebStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],o4.prototype,"sparklesCtaNoBackground",null);_.a([_.b({reflectToAttribute:!0}),_.G("data.actionButton"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],o4.prototype,"hideActionButton",null);_.a([_.b({computed:"computeButtonOverride(uiUpdate)"}),_.z("design:type",Object)],o4.prototype,"buttonOverride",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.z("design:type",Boolean)],o4.prototype,"hasNewAdBadge",void 0);_.a([_.G("data.promotedSparklesWebStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],o4.prototype,"useRoundedBadge",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o4.prototype,"dataChanged",null);_.a([_.A({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],o4);
_.Z(o4,"ytd-promoted-sparkles-web-renderer",function(){if(ElZ!==void 0)return ElZ;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return ElZ=W},{mode:1});var $wv;var j9=function(){var W=_.I.apply(this,arguments)||this;W.isInlinePreviewTriggered=!1;W.enableMonoStyle=_.U("enable_default_mono_cta_migration_web_client");return W};
_.v(j9,_.I);_.t=j9.prototype;_.t.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]]"}}}}}};
_.t.computeShowCta=function(W){return!(W==null||!W.ctaRenderer)};
_.t.onCtaClick=function(){var W,l,V,f=(W=this.data)==null?void 0:(l=W.ctaRenderer)==null?void 0:(V=l.buttonRenderer)==null?void 0:V.command;f&&this.ytComponentBehavior.resolveCommand(f)};
_.t.onWatchButtonClick=function(){var W,l,V,f=(W=this.data)==null?void 0:(l=W.watchButtonRenderer)==null?void 0:(V=l.buttonRenderer)==null?void 0:V.command;f&&this.ytComponentBehavior.resolveCommand(f)};
_.t.onTap=function(){};
_.t.dataChanged=function(){if(this.data){var W;_.U("enable_inline_muted_playback_on_web_search")&&((W=this.data)==null?0:W.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",j9.JSC$15389_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",j9.JSC$15389_DEFAULT_CLICK_LOCATION_BEHAVIOR,j9.JSC$15389_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(W=this.thumbnail.getElementsByTagName("a"),W.length>0&&(W=W.namedItem("thumbnail"))&&W.removeAttribute("href"))}};
_.t.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var W=_.L(this.data.impressionUrls),l=W.next();!l.done;l=W.next())l=l.value,ik8(l,XE6(l));this.data.impressionsFired=!0}};
_.t.maybeComputeHref=function(){return null};
_.t.computeIsShortDR=function(W){return!(W==null||!W.watchButtonRenderer)&&!(W==null||!W.ctaRenderer)&&!!this.enableShortDR};
_.t.computeIsNewUiOrShortDr=function(W){return!!this.enableUiUpdate||this.computeIsShortDR(W)};
_.t.computeIsNewUiAndNotShortDr=function(W){return!!this.enableUiUpdate&&!this.computeIsShortDR(W)};
_.t.computeHideAvatar=function(W){return!((W==null?0:W.channelThumbnail)&&this.computeIsNewUiOrShortDr(W))};
_.t.onClick=function(W){var l,V=(l=this.data)==null?void 0:l.navigationEndpoint;if(this.enableShortDR&&V&&(_.k(V,_.Bh)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(V,W,!!_.k(V,_.Bh)),W.stopPropagation();else if(V&&_.k(V,_.Bh))this.ytSparklesClickLocationBehavior.handleClick(V,W,!0),W.stopPropagation();else if(V){var f,r;((f=this.data)==null?0:f.navigationEndpoint)&&((r=this.data)==null?0:r.adPlaybackContextParams)&&(l=this.data.navigationEndpoint,W=this.data.adPlaybackContextParams,
l.commandMetadata&&_.k(l.commandMetadata,_.XN)&&_.k(l.commandMetadata,_.XN).url&&(l=_.Si(_.k(l.commandMetadata,_.XN).url).adurl)&&_.Xhj(l)&&_.Ue(_.yW(l),{encoded_ad_playback_context:W}));this.ytComponentBehavior.resolveCommand(V)}};
_.t.computeButtonOverride=function(W){if(this.computeIsNewUiOrShortDr(W))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.t.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.t.onThumbnailContainerClick=function(W){this.onClick(W)};
_.t.computeThumbnailWidth=function(W,l){return W?l==="MASSIVE"?600:l==="BIG"?500:l==="MEDIUM"?450:420:360};
_.t.attached=function(){var W=this,l;_.U("enable_inline_muted_playback_on_web_search")&&((l=this.data)==null?0:l.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.t.detached=function(){var W;_.U("enable_inline_muted_playback_on_web_search")&&((W=this.data)==null?0:W.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.U("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15390_inlinePreviewHoverListener=Wf({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:CVk})};
_.t.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$15390_inlinePreviewHoverListener)==null||gl(W)};
j9.prototype.dataChanged=j9.prototype.dataChanged;j9.prototype.onTap=j9.prototype.onTap;j9.JSC$15389_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.wg("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};j9.JSC$15389_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
j9.JSC$15389_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"}];_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],j9.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],j9.prototype,"ytRendererBehavior",void 0);_.a([_.F(BZ),_.z("design:type",Object)],j9.prototype,"ytdActiveViewBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],j9.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.wx.YtSparklesClickLocationBehavior),_.z("design:type",Object)],j9.prototype,"ytSparklesClickLocationBehavior",void 0);
_.a([_.Aa("#main-container"),_.z("design:type",HTMLElement)],j9.prototype,"mainContainer",void 0);_.a([_.b(),_.z("design:type",Object)],j9.prototype,"isInlinePreviewTriggered",void 0);_.a([_.b(),_.z("design:type",Object)],j9.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],j9.prototype,"useBiggerThumbs",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.U("enable_video_display_compact_button_group_for_desktop_search")}}),
_.z("design:type",Boolean)],j9.prototype,"enableShortDR",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.U("enable_vac_ui_update_for_desktop_search")}}),
_.z("design:type",Boolean)],j9.prototype,"enableUiUpdate",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.gU("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],j9.prototype,"biggerThumbsStyle",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.z("design:type",Boolean)],j9.prototype,"showCta",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.z("design:type",Boolean)],j9.prototype,"isShortDr",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.z("design:type",Boolean)],j9.prototype,"isShortDrOrNewUi",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.z("design:type",Boolean)],j9.prototype,"isNewUiAndNotShortDr",void 0);_.a([_.b({computed:"computeButtonOverride(data)"}),_.z("design:type",Object)],j9.prototype,"buttonOverride",void 0);_.a([_.b({computed:"computeSecondaryButtonOverride(data)"}),_.z("design:type",Object)],j9.prototype,"secondaryButtonOverride",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],j9.prototype,"enableMonoStyle",void 0);
_.a([_.Aa("ytd-thumbnail"),_.z("design:type",HTMLElement)],j9.prototype,"thumbnail",void 0);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],j9.prototype,"onTap",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],j9.prototype,"dataChanged",null);_.a([_.A({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],j9);
_.Z(j9,"ytd-promoted-video-renderer",function(){if($wv!==void 0)return $wv;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return $wv=W},{mode:1});var W6e;var I4=function(){var W=_.I.apply(this,arguments)||this;W.useRoundedBadge=!0;W.sitelinkIds=[];return W};
_.v(I4,_.I);_.t=I4.prototype;
_.t.configureRendererStamper=function(){return{"data.menu":{id:_.U("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]]"}}}}}};
_.t.dataChanged=function(){var W;(W=this.data)!=null&&W.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,I4.JSC$15395_CLICK_LOCATION_ID_MAP)};
_.t.onTap=function(W){var l,V=(l=this.data)==null?void 0:l.navigationCommand;V&&!_.cp(_.d_(W),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(V,W,!1)};
_.t.onSitelinkTap=function(W){var l,V,f=W==null?void 0:(l=W.model)==null?void 0:(V=l.item)==null?void 0:V.onTap;f&&this.ytSparklesClickLocationBehavior.handleClick(f,W,!1)};
_.t.configureSitelinkClickTargets=function(){var W=this,l,V,f=(l=this.data)==null?void 0:(V=l.clickLocationTargets)==null?void 0:V.find(function(r){return r.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
f&&_.GS(this.hostElement).querySelectorAll(".sitelink").forEach(function(r){_.pG(r,"yt-simple-endpoint",!0);W.sitelinkIds.push(r.id);var R,y;(R=W.ytSparklesClickLocationBehavior)==null||(y=R.clickTargetMap)==null||y.set(r.id,f)})};
_.t.sendImpression=function(){var W,l,V=((W=this.data)==null?void 0:(l=W.impressionCommand)==null?void 0:l.loggingUrls)||[];W=_.L(V);for(l=W.next();!l.done;l=W.next())l=l.value,l.baseUrl&&eS(l.baseUrl,l.attributionSrcMode)};
_.t.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.rc.Object.defineProperties(I4.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
I4.prototype.onTap=I4.prototype.onTap;I4.prototype.dataChanged=I4.prototype.dataChanged;I4.JSC$15395_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"]]);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],I4.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],I4.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.wx.YtSparklesClickLocationBehavior),_.z("design:type",Object)],I4.prototype,"ytSparklesClickLocationBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],I4.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],I4.prototype,"showFavicon",null);_.a([_.b({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],I4.prototype,"useBiggerThumbs",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.gU("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],I4.prototype,"biggerThumbsStyle",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.U("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.z("design:type",Boolean)],I4.prototype,"enableThumbnailScalingFix",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],I4.prototype,"dataChanged",null);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],I4.prototype,"onTap",null);_.a([_.A({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],I4);
_.Z(I4,"ytd-text-image-no-button-layout-renderer",function(){if(W6e!==void 0)return W6e;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return W6e=W},{mode:_.bD("kevlar_poly_si_batch_j028")?1:2});var lGM;var mn=function(){var W=_.I.apply(this,arguments)||this;W.isInlinePlaybackState=!1;W.uiUpdate=_.U("web_modern_buttons");W.hideCta=_.U("hide_cta_for_home_web_video_ads");W.noBottomMargin=!1;W.animateInTimeStamp=_.yS("hide_cta_for_home_web_video_ads_animate_in_time");W.animateInCta=!1;W.isHovered=!1;W.enableMonoStyle=_.U("enable_default_mono_cta_migration_web_client");W.player=null;W.JSC$15402_playerEvents=new Map;W.JSC$15402_preventProgressSaveTimer=null;W.delayedCtaJobId=null;return W};
_.v(mn,_.I);_.t=mn.prototype;_.t.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]]"}}}}}};
_.t.attached=function(){this.JSC$15402_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15402_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.U("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.t.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15402_playerEvents)};
_.t.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",mn.JSC$15401_DEFAULT_CLICK_LOCATION_BEHAVIOR,mn.JSC$15401_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.t.hoverChanged=function(){var W=this;this.delayedCtaJobId&&(_.w8.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.U("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.a$(_.w8,function(){W.buttonContainer.classList.add("show-delayed-buttons")},_.yS("delayed_cta_on_web_delay_milliseconds")))};
_.t.setPlayer=function(){var W=this,l;return _.g(function(V){if(V.nextAddress==1)return(l=_.bj(W.hostElement,"yt-get-inline-preview-player-action"))&&l[0]?V.yield(l[0].getPlayerPromise(),3):V.jumpTo(0);W.player=V.yieldResult;W.ytPlayerListenerBehavior.listenToPlayerEvents(W.player,W.JSC$15402_playerEvents);_.ju(V)})};
_.t.onPlaybackStart=function(){var W=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15402_preventProgressSaveTimer=_.pP(_.w8,function(){W.JSC$15402_preventProgressSaveTimer=null},1E4))};
_.t.onVideoProgress=function(W){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&W>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.t.resetPreventProgressSaveTimer=function(){_.w8.cancelJob(this.JSC$15402_preventProgressSaveTimer);this.JSC$15402_preventProgressSaveTimer=null};
_.t.getSimpleString=function(W){return _.dE(W)};
_.t.onClick=function(W){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var l,V=(l=this.data)==null?void 0:l.navigationEndpoint,f;l=(f=this.data)==null?void 0:f.channelEndpoint;var r,R;((R=_.k((r=this.data)==null?void 0:r.adCtaButton,_.CE))==null?0:R.command)&&_.cp(_.d_(W),this.hostElement,["call-to-action"])||(l&&_.cp(_.d_(W),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(l,W,!1):!_.cp(_.d_(W),this.hostElement,
["secondary-button"])&&V&&(_.U("enable_short_dr_for_desktop_launchable")?(f=!!_.k(V,_.Bh),this.isInlinePlaybackState&&f&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(V,W,f)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(V,W,!0))))}};
_.t.updateWatchEndpointStartTime=function(){var W,l;this.player&&((W=this.data)==null?0:W.inlinePlaybackEndpoint)&&((l=this.data)==null?0:l.navigationEndpoint)&&!this.JSC$15402_preventProgressSaveTimer&&(W=Math.floor(this.player.getCurrentTime()),_.k(this.data.navigationEndpoint,_.Bh).startTimeSeconds=W,_.k(this.data.inlinePlaybackEndpoint,_.Bh).startTimeSeconds=W)};
_.t.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.t.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.rc.Object.defineProperties(mn.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.U("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var W,l;return!((W=this.data)==null||!W.watchButton)&&!((l=this.data)==null||!l.adCtaButton)}}});
mn.prototype.hoverChanged=mn.prototype.hoverChanged;mn.prototype.dataChanged=mn.prototype.dataChanged;
mn.JSC$15401_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"]]);
mn.JSC$15401_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"}];
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],mn.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],mn.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],mn.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.wx.YtSparklesClickLocationBehavior),_.z("design:type",Object)],mn.prototype,"ytSparklesClickLocationBehavior",void 0);
_.a([_.F(_.by.YtPlayerListenerBehavior),_.z("design:type",_.pZ)],mn.prototype,"ytPlayerListenerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],mn.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mn.prototype,"isInlinePlaybackState",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],mn.prototype,"miniMode",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mn.prototype,"uiUpdate",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mn.prototype,"hideCta",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mn.prototype,"noBottomMargin",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mn.prototype,"animateInCta",void 0);_.a([_.b({computed:"computeButtonOverride(uiUpdate)"}),_.z("design:type",Object)],mn.prototype,"buttonOverride",void 0);
_.a([_.b({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.z("design:type",Object)],mn.prototype,"secondaryButtonOverride",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mn.prototype,"isHovered",void 0);_.a([_.Aa("#button-container"),_.z("design:type",HTMLElement)],mn.prototype,"buttonContainer",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],mn.prototype,"typographyBump",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("typographyBump"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mn.prototype,"typographyBumpV2",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mn.prototype,"enableMonoStyle",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mn.prototype,"dataChanged",null);
_.a([_.TS("isHovered"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mn.prototype,"hoverChanged",null);_.a([_.G("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],mn.prototype,"isButtonGroup",null);_.a([_.A({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],mn);
_.Z(mn,"ytd-ad-inline-playback-meta-block",function(){if(lGM!==void 0)return lGM;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return lGM=W},{mode:_.bD("kevlar_poly_si_batch_j065")?1:2});var VUk;var XG=function(){var W=_.I.apply(this,arguments)||this;W.noBottomMargin=!1;W.isInlinePreviewTriggered=!1;W.JSC$15407_activeViewMeasurementDataResolver=_.yH();return W};
_.v(XG,_.I);_.t=XG.prototype;_.t.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.t.attached=function(){var W=this;this.updateInlinePreviewHoverListeners();this.JSC$15407_activeViewMeasurementDataResolver.promise.then(function(l){W.ytdActiveViewBehavior.enableActiveViewMeasurement(l,15)});
_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.t.detached=function(){this.clearInlinePreviewHoverListeners();_.U("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15407_inlinePreviewHoverListener=Wf({mediaRenderer:this,lockupElement:this.JSC$15407_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:CVk})};
_.t.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$15407_inlinePreviewHoverListener)==null||gl(W)};
_.t.onDataChanged=function(){var W;((W=this.data)==null?0:W.activeView)&&this.JSC$15407_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",XG.JSC$15406_DEFAULT_CLICK_LOCATION_BEHAVIOR,XG.JSC$15406_CLICK_LOCATION_ID_MAP);this.thumbnail&&(W=this.thumbnail.getElementsByTagName("a"),W.length>0&&(W=W.namedItem("thumbnail"))&&W.removeAttribute("href"));var l;if((l=this.data)==
null?0:l.forceImpAutoplay){var V;(V=this.JSC$15407_inlinePreviewHoverListener)==null||NV4(V)}};
_.t.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.t.onThumbnailContainerClick=function(W){if(this.data&&this.data.navigationEndpoint){var l,V=(l=this.data)==null?void 0:l.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(V,W,!!_.k(V,_.Bh));W.stopPropagation()}};
_.t.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.t.impressionLog=function(){var W=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var l,V,f=(V=_.k((l=this.data)==null?void 0:l.onImpression,_.Ig))==null?void 0:V.commands;f&&(f.forEach(function(r){r.clickTrackingParams&&delete r.clickTrackingParams;W.ytComponentBehavior.resolveCommand(r)}),this.data.impressionsFired=!0)}};
_.rc.Object.defineProperties(XG.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$15407_inlinePreviewHoverListener)==null?0:Bx(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
XG.prototype.onTypographyBumpChanged=XG.prototype.onTypographyBumpChanged;XG.prototype.onDataChanged=XG.prototype.onDataChanged;XG.JSC$15406_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);XG.JSC$15406_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"}];
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],XG.prototype,"ytComponentBehavior",void 0);_.a([_.F(BZ),_.z("design:type",Object)],XG.prototype,"ytdActiveViewBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],XG.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],XG.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],XG.prototype,"ytdDismissibleItemBehavior",void 0);
_.a([_.F(_.FK),_.z("design:type",Object)],XG.prototype,"ytdLockupBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],XG.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.wx.YtSparklesClickLocationBehavior),_.z("design:type",Object)],XG.prototype,"ytSparklesClickLocationBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],XG.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],XG.prototype,"noBottomMargin",void 0);
_.a([_.b(),_.z("design:type",Object)],XG.prototype,"isInlinePreviewTriggered",void 0);_.a([_.b({reflectToAttribute:!0,selector:_.$H}),_.z("design:type",Boolean)],XG.prototype,"miniMode",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],XG.prototype,"typographyBump",void 0);_.a([_.Aa("ytd-thumbnail"),_.z("design:type",HTMLElement)],XG.prototype,"thumbnail",void 0);_.a([_.Aa("#dismissible"),_.z("design:type",HTMLElement)],XG.prototype,"JSC$15407_dismissibleMedia",void 0);
_.a([_.Aa("ytd-ad-inline-playback-meta-block"),_.z("design:type",HTMLElement)],XG.prototype,"adInlinePlaybackMetaBlock",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],XG.prototype,"onDataChanged",null);_.a([_.zS("typographyBump"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],XG.prototype,"onTypographyBumpChanged",null);
_.a([_.G("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],XG.prototype,"isHovered",null);_.a([_.A({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],XG);
_.Z(XG,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(VUk!==void 0)return VUk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return VUk=W},{mode:1});var fGk;var TO=function(){var W=_.I.apply(this,arguments)||this;W.isInlinePreviewTriggered=!1;W.JSC$15410_activeViewMeasurementDataResolver=_.yH();return W};
_.v(TO,_.I);_.t=TO.prototype;_.t.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.t.attached=function(){var W=this;this.updateInlinePreviewHoverListeners();this.JSC$15410_activeViewMeasurementDataResolver.promise.then(function(l){W.ytdActiveViewBehavior.enableActiveViewMeasurement(l,15)})};
_.t.detached=function(){this.clearInlinePreviewHoverListeners()};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15410_inlinePreviewHoverListener=Wf({mediaRenderer:this,lockupElement:this.JSC$15410_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:CVk})};
_.t.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$15410_inlinePreviewHoverListener)==null||gl(W)};
_.t.onDataChanged=function(){var W;((W=this.data)==null?0:W.activeView)&&this.JSC$15410_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",TO.JSC$15409_DEFAULT_CLICK_LOCATION_BEHAVIOR,TO.JSC$15409_CLICK_LOCATION_ID_MAP);this.thumbnail&&(W=this.thumbnail.getElementsByTagName("a"),W.length>0&&(W=W.namedItem("thumbnail"))&&W.removeAttribute("href"))};
_.t.onThumbnailContainerClick=function(W){if(this.data&&this.data.navigationEndpoint){var l,V=(l=this.data)==null?void 0:l.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(V,W,!0);W.stopPropagation()}};
_.t.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.t.impressionLog=function(){var W=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var l,V,f=(V=_.k((l=this.data)==null?void 0:l.onImpression,_.Ig))==null?void 0:V.commands;f&&(f.forEach(function(r){r.clickTrackingParams&&delete r.clickTrackingParams;_.tY().resolve(_.s6).resolveCommand(r,{form:{element:W.hostElement}})}),this.data.impressionsFired=!0)}};
_.rc.Object.defineProperties(TO.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$15410_inlinePreviewHoverListener)==null?0:Bx(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
TO.prototype.onDataChanged=TO.prototype.onDataChanged;TO.JSC$15409_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);TO.JSC$15409_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"}];_.a([_.F(BZ),_.z("design:type",Object)],TO.prototype,"ytdActiveViewBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],TO.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],TO.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],TO.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.F(_.FK),_.z("design:type",Object)],TO.prototype,"ytdLockupBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],TO.prototype,"ytdReduxBehavior",void 0);
_.a([_.F(_.wx.YtSparklesClickLocationBehavior),_.z("design:type",Object)],TO.prototype,"ytSparklesClickLocationBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],TO.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],TO.prototype,"isInlinePreviewTriggered",void 0);_.a([_.b({reflectToAttribute:!0,selector:_.$H}),_.z("design:type",Boolean)],TO.prototype,"miniMode",void 0);_.a([_.Aa("ytd-thumbnail"),_.z("design:type",HTMLElement)],TO.prototype,"thumbnail",void 0);
_.a([_.Aa("#dismissible"),_.z("design:type",HTMLElement)],TO.prototype,"JSC$15410_dismissibleMedia",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TO.prototype,"onDataChanged",null);_.a([_.G("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],TO.prototype,"isHovered",null);_.a([_.A({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],TO);
_.Z(TO,"ytd-video-display-full-buttoned-renderer",function(){if(fGk!==void 0)return fGk;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return fGk=W},{mode:1});var dC=function(W,l,V,f){f=f===void 0?!1:f;_.VU.call(this,W);this.adsClientErrorMessage=V;this.aggressivelySample=f;this.args=[];l&&this.args.push(l)};
_.v(dC,_.VU);var cf=function(W,l,V,f){f=f===void 0?!1:f;_.VU.call(this,W);this.adsClientErrorMessage=V;this.aggressivelySample=f;this.args=[];l&&this.args.push(l)};
_.v(cf,_.VU);var rnM=function(W){_.iI.call(this);var l=this;this.initializationFunction=W;this.instance=null;this.addOnDisposeCallback(function(){_.Ls(l.instance);l.instance=null})};
_.v(rnM,_.iI);rnM.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.sg("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var KiU=function(){var W=new Map;[].forEach(function(l){W.set(l.JSC$30457_getType(),l)});
this.getters=W};new Promise(function(){});var U88=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"]]),Jo4=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"}]]),R$X=function(W){this.experimentApiProvider=W;W=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=W<.1};var wD=function(W,l,V,f){_.iI.call(this);this.adsControlFlowEventListeners=l;this.adEventLogger=V;this.experimentApiProvider=f;this.adsControlFlowManagerHelper=W(this,this,this,this,this);_.vt(this,this.adsControlFlowManagerHelper);W=_.L(l);for(l=W.next();!l.done;l=W.next())_.vt(this,l.value)};
_.v(wD,_.iI);var tU9=function(W,l,V,f){AT(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",l,V,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,f);W=_.L(W.adsControlFlowEventListeners);for(f=W.next();!f.done;f=W.next())tU9(f.value,l,V)};
_.t=wD.prototype;_.t.onOpportunityProcessedExternallyManaged=function(W,l,V,f){AT(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",W,V,l,void 0,void 0,void 0,void 0,void 0,void 0,void 0,f)};
_.t.onSlotReceivedExternallyManaged=function(W,l){Qs(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",W,l)};
_.t.onSlotEntered=function(W){if(MQ(this.adsControlFlowManagerHelper,W)!=null){Qs(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",W);this.adsControlFlowManagerHelper.onSlotEntered(W);for(var l=_.L(this.adsControlFlowEventListeners),V=l.next();!V.done;V=l.next())V.value.onSlotEntered(W);if(MQ(this.adsControlFlowManagerHelper,W)!=null&&MQ(this.adsControlFlowManagerHelper,W).isOccupyingSlotType()&&Zo(this.adsControlFlowManagerHelper,W)&&!sLa(this.adsControlFlowManagerHelper,W)){var f;O3(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",W,(f=Zo(this.adsControlFlowManagerHelper,W))!=null?f:void 0);W=MQ(this.adsControlFlowManagerHelper,W);W.slotLifecycleStage!=="entered"&&a4(W.slot,W.slotLifecycleStage,"enterLayoutForSlot");W.slotLifecycleStage="rendering";W.registeredLayoutRenderingAdapter.startRendering(W.layout)}}};
_.t.onSlotExited=function(W){if(MQ(this.adsControlFlowManagerHelper,W)!=null){Qs(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",W);this.adsControlFlowManagerHelper.onSlotExited(W);for(var l=_.L(this.adsControlFlowEventListeners),V=l.next();!V.done;V=l.next())V.value.onSlotExited(W);MQ(this.adsControlFlowManagerHelper,W)!=null&&MQ(this.adsControlFlowManagerHelper,W).markedForUnscheduleAfterOutboundAdapterRequests&&L6I(this,W)}};
_.t.onLayoutReceivedExternallyManaged=function(W,l,V){W.managerLayer!=="core"&&O3(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",W,l,V)};
var ynL=function(W,l,V){if(MQ(W.adsControlFlowManagerHelper,l)!=null){O3(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",l,V);W=_.L(W.adsControlFlowEventListeners);for(var f=W.next();!f.done;f=W.next())ynL(f.value,l,V)}};
wD.prototype.onLayoutExited=function(W,l,V){if(MQ(this.adsControlFlowManagerHelper,W)!=null){O3(this.adEventLogger,D8z(V),W,l);this.adsControlFlowManagerHelper.onLayoutExited(W,l);for(var f=_.L(this.adsControlFlowEventListeners),r=f.next();!r.done;r=f.next())r.value.onLayoutExited(W,l,V);(V=Zo(this.adsControlFlowManagerHelper,W))&&l.layoutId===V.layoutId&&gj$(this,W)}};
wD.prototype.disposeInternal=function(){var W=Pdk(this.adsControlFlowManagerHelper);W=_.L(W);for(var l=W.next();!l.done;l=W.next())L6I(this,l.value);_.iI.prototype.disposeInternal.call(this)};
var L6I=function(W,l){if(MQ(W.adsControlFlowManagerHelper,l)!=null)if(MQ(W.adsControlFlowManagerHelper,l).JSC$30487_isSlotExitRequested()||MQ(W.adsControlFlowManagerHelper,l).JSC$30487_isLayoutExitRequested())MQ(W.adsControlFlowManagerHelper,l).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(MQ(W.adsControlFlowManagerHelper,l).isOccupyingSlotType())MQ(W.adsControlFlowManagerHelper,l).markedForUnscheduleAfterOutboundAdapterRequests=!0,gj$(W,l);else if(MQ(W.adsControlFlowManagerHelper,l).JSC$30487_isSlotFillRequested())MQ(W.adsControlFlowManagerHelper,
l).markedForUnscheduleAfterOutboundAdapterRequests=!0,MQ(W.adsControlFlowManagerHelper,l)!=null&&(Qs(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",l),l=MQ(W.adsControlFlowManagerHelper,l),l.fulfillmentLifecycleStage="fill_cancel_requested",l.registeredFulfillmentAdapter.cancelSlotFilling());else{var V=Zo(W.adsControlFlowManagerHelper,l),f;W.experimentApiProvider.get();(f=_.U("h5_enable_layout_unscheduling_events"))&&(V?nj$(W,l,V):_.sg(Error("Nh"),l,V,void 0,!1));Qs(W.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",l);var r=MQ(W.adsControlFlowManagerHelper,l),R=l.slotEntryTrigger,y=r.registeredSlotEntryTriggerAdapters.get(R.triggerId);y&&(y.unregisterTrigger(R),r.registeredSlotEntryTriggerAdapters.delete(R.triggerId));R=_.L(l.slotFulfillmentTriggers);for(y=R.next();!y.done;y=R.next()){y=y.value;var P=r.registeredFulfillmentTriggerAdapters.get(y.triggerId);P&&(P.unregisterTrigger(y),r.registeredFulfillmentTriggerAdapters.delete(y.triggerId))}R=_.L(l.slotExpirationTriggers);
for(y=R.next();!y.done;y=R.next())if(y=y.value,P=r.registeredExpirationTriggerAdapters.get(y.triggerId))P.unregisterTrigger(y),r.registeredExpirationTriggerAdapters.delete(y.triggerId);r.hasLayout()&&(R=r.layout,zO(r,R.layoutExitNormalTriggers),zO(r,R.layoutExitSkipTriggers),zO(r,R.layoutExitMuteTriggers),zO(r,R.layoutExitUserInputSubmittedTriggers),zO(r,R.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=W.adsControlFlowManagerHelper;MQ(r,l)&&(r=Cdv(r,l.slotType+"_"+l.slotPhysicalPosition))&&r.delete(l.slotId);Qs(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",l);W=_.L(W.adsControlFlowEventListeners);for(r=W.next();!r.done;r=W.next())r=r.value,r.onSlotUnscheduled(l),V&&!f&&nj$(r,l,V)}},nj$=function(W,l,V){O3(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
l,V);
O3(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",l,V);W=_.L(W.adsControlFlowEventListeners);for(var f=W.next();!f.done;f=W.next())f=f.value,V&&nj$(f,l,V)},gj$=function(W,l){if(MQ(W.adsControlFlowManagerHelper,l)!=null&&MQ(W.adsControlFlowManagerHelper,l).isOccupyingSlotType()){var V=Zo(W.adsControlFlowManagerHelper,l);
if(V&&sLa(W.adsControlFlowManagerHelper,l)){if(MQ(W.adsControlFlowManagerHelper,l)!=null){var f=W.adEventLogger,r;var R=((r=Jo4.get("abandoned"))==null?void 0:r.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";O3(f,R,l,V);W=MQ(W.adsControlFlowManagerHelper,l);W.slotLifecycleStage!=="rendering"&&a4(W.slot,W.slotLifecycleStage,"exitLayout");W.slotLifecycleStage="rendering_stop_requested";W.registeredLayoutRenderingAdapter.stopRendering(V,"abandoned")}}else{Qs(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
l);try{f=MQ(W.adsControlFlowManagerHelper,l);if(!f)throw new cf("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");f.slotLifecycleStage!=="enter_requested"&&f.slotLifecycleStage!=="entered"&&f.slotLifecycleStage!=="rendering"&&a4(f.slot,f.slotLifecycleStage,"exitSlot");f.slotLifecycleStage="exit_requested";if(f.registeredSlotAdapter===void 0)throw f.slotLifecycleStage="scheduled",new cf("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
f.registeredSlotAdapter.exit()}catch(y){y instanceof cf&&y.adsClientErrorMessage?(cnc(W.adEventLogger,y.adsClientErrorMessage,l),_.sg(y,l,void 0,void 0,y.aggressivelySample)):(cnc(W.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",l),_.sg(y,l))}}}};var NQ=function(W,l,V,f,r,R){_.iI.call(this);this.registry=W;this.experimentApiProvider=R;this.slotMap=new Map};
_.v(NQ,_.iI);var Cdv=function(W,l){return(W=W.slotMap.get(l))?W:new Map},MQ=function(W,l){return Cdv(W,l.slotType+"_"+l.slotPhysicalPosition).get(l.slotId)},Pdk=function(W){var l=[];
W.slotMap.forEach(function(V){V=_.L(V.values());for(var f=V.next();!f.done;f=V.next())l.push(f.value.slot)});
return l};
NQ.prototype.onSlotEntered=function(W){W=MQ(this,W);W.slotLifecycleStage!=="enter_requested"&&a4(W.slot,W.slotLifecycleStage,"onSlotEntered");W.slotLifecycleStage="entered"};
var sLa=function(W,l){W=MQ(W,l);return W.hasLayout()&&W.isRendering()},Zo=function(W,l){(W=MQ(W,l))?W.hasLayout()&&!W.layout&&_.sg("Unexpected empty layout",l):_.sg("Unexpected undefined slotState",l);
return(W==null?void 0:W.layout)||null};
NQ.prototype.onSlotExited=function(W){W=MQ(this,W);W.slotLifecycleStage!=="exit_requested"&&a4(W.slot,W.slotLifecycleStage,"onSlotExited");W.slotLifecycleStage="scheduled"};
NQ.prototype.onLayoutExited=function(W,l){W=MQ(this,W);W.isPrimaryLayout(l)&&(W.slotLifecycleStage!=="rendering_stop_requested"&&a4(W.slot,W.slotLifecycleStage,"onLayoutExited"),W.slotLifecycleStage="entered")};
var zO=function(W,l){l=_.L(l);for(var V=l.next();!V.done;V=l.next()){V=V.value;var f=W.registeredLayoutExitTriggerAdapters.get(V.triggerId);f&&(f.unregisterTrigger(V),W.registeredLayoutExitTriggerAdapters.delete(V.triggerId))}},a4=function(W,l,V){_.sg("Slot stage was "+l+" when calling method "+V,W)};var d29=function(W){_.iI.call(this);this.deps=W;this.JSC$15460_adsControlFlowManager=B0v(this)};
_.v(d29,_.iI);var B0v=function(W){var l=new wD(function(V,f,r,R){return new NQ(W.deps.registry,V,f,r,R,W.deps.experimentApiProvider)},new Set(Hw6(W.deps.registry).concat(W.deps.listeners)),W.deps.adEventLogger,W.deps.experimentApiProvider);
_.vt(W,l);return l};var MyF=function(){};var Jnk=function(W,l){_.iI.call(this);this.experimentApiProvider=W;this.eventLoggingSettingsProvider=l;this.eventCount=0;this.premiumAdSeenEventLogger=ZNv()()};
_.v(Jnk,_.iI);Jnk.prototype.logEvent=function(W){AT(this,W)};
var Qs=function(W,l,V,f){AT(W,l,void 0,void 0,void 0,V,void 0,void 0,void 0,V.adSlotLoggingData,void 0,void 0,f)},O3=function(W,l,V,f,r){AT(W,l,void 0,void 0,void 0,V,f?f:void 0,void 0,void 0,V.adSlotLoggingData,f?f.adLayoutLoggingData:void 0,void 0,r);
V=_.tY().resolve(_.R0(oo))==null?void 0:jC();l=V==null?void 0:V.adsSeenHotConfig;V=V==null?void 0:V.adsHotConfig;(l==null?0:l.logOnAdsSeen)&&(V==null?0:V.webEnablePremiumAdsSeenLogging)&&D2k(W,f?f:void 0,r)},cnc=function(W,l,V){AT(W,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,V,void 0,void 0,void 0,V.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:l})},AT=function(W,l,V,f,r,R,y,P,n,B,d,J,D){D=D===void 0?0:D;
U21(W.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+l,"slot:",R,"layout:",y,"ping:",P,"Opportunity:",{opportunityType:V,associatedSlotId:f,slotsFromOpportunity:r,triggerBundle:n,adSlotLoggingData:B,adLayoutLoggingData:d});try{var u=function(){W.experimentApiProvider.get();if(l!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){l||_.sg("Empty PACF event type",R,y);var H=W.eventLoggingSettingsProvider.get();var p;(p=H.alwaysIncludeDebugData)||(H.experimentApiProvider.get(),p=
!1);H=p;p={eventType:l,eventOrder:++W.eventCount};var X={};R&&(X.slotData=k8g(H,R));if(y){var w={type:y.layoutType,controlFlowManagerLayer:U88.get(y.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};H&&(w.debugData={layoutId:y.layoutId});X.layoutData=w}P&&(X.pingData={pingDispatchStatus:P.dispatchStatus,serializedAdPingMetadata:P.ping.serializedAdPingMetadata,pingIndex:P.index});n&&(X.triggerData=uTx(n.trigger,n.category));V&&(X.opportunityData=v5g(H,V,f,r));p.adClientData=X;B&&(p.serializedSlotAdServingData=
B.serializedSlotAdServingDataEntry);d&&(p.serializedAdServingData=d.serializedAdServingDataEntry);J&&(p.errorInfo=J);_.XC("adsClientStateChange",{adsClientEvent:p})}};
D&&D>0?_.pS(_.Am(),function(){return u()},D):u()}catch(H){U21(W.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.pS(_.Am(),function(){_.sg(H instanceof Error?H:String(H),R,y,{pacf_message:"exception during pacf logging"})})}},D2k=function(W,l,V){if(l){var f=l.adLayoutLoggingData;
_.pS(_.Am(),function(){W.premiumAdSeenEventLogger!=null&&f&&_.XC("adsSeenClientLogging",{serializedAdServingDataEntry:f.serializedAdServingDataEntry})},V!=null?V:0)}};var uMk=function(W,l){Jnk.call(this,W,l)};
_.v(uMk,Jnk);var khk=function(){},U21=function(W,l){return _.U(l)};var HyL=function(){var W=new vjM;this.JSC$15485_adsControlFlowManager=(new d29(W)).JSC$15460_adsControlFlowManager},vjM=function(){_.iI.call(this);
var W=this;this.experimentApiProvider=new rnM(function(){return new khk});
var l=new rnM(function(){return new R$X(W.experimentApiProvider)});
this.adEventLogger=new uMk(this.experimentApiProvider,l);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.v(vjM,_.iI);var K69=function(){},F69,YF=function(){F69||(F69=new K69);
return F69},xF=function(W){if(!W.JSC$15496_externallyManagedSlotAdapterCallback){var l=(new HyL).JSC$15485_adsControlFlowManager;
W.JSC$15496_externallyManagedSlotAdapterCallback=l}return W.JSC$15496_externallyManagedSlotAdapterCallback},Gh1=function(W,l,V){var f=l.opportunityType,r=Error("Oh");
if(f!==void 0){var R=xF(W);tU9(R,f,void 0,V)}else _.sg(r,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});R=[];if(l.adSlotAndLayoutMetadata!==void 0){l=_.L(l.adSlotAndLayoutMetadata);for(var y=l.next();!y.done;y=l.next()){var P=y.value;if(y=P.adSlotMetadata)if(R.push(y),W.onSlotReceivedExternallyManaged(y,V),P.adLayoutMetadata){P=_.L(P.adLayoutMetadata);for(var n=P.next();!n.done;n=P.next())W.onLayoutReceivedExternallyManaged(y,n.value,V)}else V>0&&_.sg("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
f,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else V>0&&_.sg("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+f,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else V>0&&_.sg("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+f,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(f!==void 0)W.onOpportunityProcessedExternallyManaged(f,R,void 0,V);else _.sg(r,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
K69.prototype.onSlotReceivedExternallyManaged=function(W,l){W=Bf(W);if(W instanceof cf)_.sg(W,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else xF(this).onSlotReceivedExternallyManaged(W,l)};
K69.prototype.onLayoutReceivedExternallyManaged=function(W,l,V){W=Bf(W);l=FiU(l);if(W instanceof cf)_.sg(W,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(l instanceof dC)_.sg(l,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else xF(this).onLayoutReceivedExternallyManaged(W,l,V)};
K69.prototype.onOpportunityProcessedExternallyManaged=function(W,l,V,f){var r=[];l=_.L(l);for(var R=l.next();!R.done;R=l.next())R=Bf(R.value),R instanceof cf?_.sg(R,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):r.push(R);xF(this).onOpportunityProcessedExternallyManaged(W,r,V,f)};
var byk=function(W,l){l=Bf(l);if(l instanceof cf)_.sg(l,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var V=xF(W);Qs(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",l);V=_.L(V.adsControlFlowEventListeners);for(var f=V.next();!f.done;f=V.next())f=MQ(f.value,l),f.slotLifecycleStage!=="not_scheduled"&&a4(f.slot,f.slotLifecycleStage,"onSlotScheduled"),f.slotLifecycleStage="scheduled";W=xF(W);Qs(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",l);W=_.L(W.adsControlFlowEventListeners);
for(V=W.next();!V.done;V=W.next())V.value.onSlotEntered(l)}},pnB=function(W,l){l=Bf(l);
if(l instanceof cf)_.sg(l,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var V=xF(W);Qs(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",l);V=_.L(V.adsControlFlowEventListeners);for(var f=V.next();!f.done;f=V.next())f.value.onSlotExited(l);W=xF(W);Qs(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",l);W=_.L(W.adsControlFlowEventListeners);for(V=W.next();!V.done;V=W.next())V.value.onSlotUnscheduled(l)}},ojM=function(W,l,V){l=Bf(l);
V=FiU(V);if(l instanceof cf)_.sg(l,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(V instanceof dC)_.sg(V,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var f=xF(W);O3(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",l,V);f=_.L(f.adsControlFlowEventListeners);for(var r=f.next();!r.done;r=f.next())r.value.onLayoutScheduled(l,V);W=xF(W);O3(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",l,V);W=_.L(W.adsControlFlowEventListeners);
for(f=W.next();!f.done;f=W.next())ynL(f.value,l,V)}},e9=function(W,l,V){l=Bf(l);
V=FiU(V);if(l instanceof cf)_.sg(l,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(V instanceof dC)_.sg(V,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var f=xF(W);O3(f.adEventLogger,D8z("normal"),l,V);f=_.L(f.adsControlFlowEventListeners);for(var r=f.next();!r.done;r=f.next())r.value.onLayoutExited(l,V,"normal");W=xF(W);W=_.L(W.adsControlFlowEventListeners);for(f=W.next();!f.done;f=W.next())nj$(f.value,l,V)}};_.qQ=_.Q(function(W){var l=_.Dd(W,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});W=Object.assign({},l);var V=l.data;l=l.customCommandResolver;var f=(delete W.data,delete W.customCommandResolver,W);W=_.su({visibilityCallback:function(P,n){var B,d=(B=V().interaction)==null?void 0:B.onFirstVisible;P&&(d&&_.sZ(d),f.setOnErrorHandler()&&G8n(n))},
showOption:_.ir});l=_.Vl(function(){return V().interaction},l,function(){var P;
return(P=f.listenToTapEvent)==null?void 0:P.call(f)});
var r=_.L(_.J4(!1,void 0,"wAC0Lc")),R=r.next().value,y=r.next().value;r=_.ip(function(P){var n;((n=f.setTouchEndHandler)==null?0:n.call(f))&&!R()&&(P.currentTarget.click(),y(!0),setTimeout(function(){y(!1)},100));
return!1});
return _.C("ad-image-view-model",{class:function(){var P,n=[((P=V().interaction)==null?0:P.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],B;((B=f.isGridViewEnabled)==null?0:B.call(f))&&n.push("ytwAdImageViewModelHostInGridView");return n.join(" ")},
el:_.DN(W,l),"on:touchend":r},_.C("div",{class:"ytwAdImageViewModelHostImageContainer"},_.C(_.dN,{data:function(){var P;return{sources:V().imageSources,contentMode:(P=V().imageProperties)==null?void 0:P.contentMode}},
alt:function(){var P,n;return((P=V().interaction)==null?void 0:(n=P.accessibility)==null?void 0:n.label)||""},
targetHeight:f.targetHeight,targetWidth:f.targetWidth,preserveHeight:f.preserveHeight,preserveWidth:f.preserveWidth,useWidth:f.useWidth,style:function(){var P,n;return"vertical-align: bottom;"+(((P=V().background)==null?0:P.color)?"background-color:"+_.ta((n=V().background)==null?void 0:n.color)+";":"")},
className:function(){return f.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var P,n;return(n=(P=f.setDraggable)==null?void 0:P.call(f))!=null?n:void 0}})))},"sb");var jLv=_.Q(function(W){var l=W.data,V=W.listenToTapEvent,f=function(){};
return _.C("ad-button-hover-overlay-view-model",{"on:click":_.ip(function(r){if(_.U("enable_web_home_top_landscape_image_layout_legacy_click_command")){var R,y=(R=l().interaction)==null?void 0:R.onTap;y&&_.FN(r.currentTarget,"yt-navigate",{endpoint:_.fP(y)})}}),
class:function(){var r;return((r=l().interaction)==null?0:r.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.DN(_.su({visibilityCallback:function(r){var R,y=(R=l().interaction)==null?void 0:R.onFirstVisible;r&&y&&_.sZ(y)},
showOption:_.ir}),_.Vl(function(){return l().interaction},void 0,function(){return!_.U("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(V==null?void 0:V())}))},function(){return _.U("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.C(_.QH,{data:function(){return l().button}},{adButtonViewModel:function(r){return _.C(_.Xq,{data:r.data,
customCommandResolver:f})}}):_.C(_.QH,{data:function(){return l().button}},{adButtonViewModel:_.Xq})}())},"tb");var J$;_.HI(_.Q(function(W){var l=W.data;W=_.su({visibilityCallback:function(P,n){if(P){var B;(P=(B=l().interaction)==null?void 0:B.onFirstVisible)&&_.sZ(P);var d;if(B=(d=l().adLayoutData)==null?void 0:d.activeViewData)Dp(n,B),_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ug(n)})}else _.U("stop_av_measurement_on_detach")&&Ug(n)},
showOption:_.ir,hideOption:mO});var V=_.Vl(function(){return l().interaction},void 0,function(){return!0}),f=_.L(_.J4(!1,void 0,"VNDDT")),r=f.next().value,R=f.next().value;
f=_.ip(function(){R(!0)});
var y=_.ip(function(){R(!1)});
return _.C("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.DN(W,m8q,V),"on:mouseenter":f,"on:mouseleave":y},_.C("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.Tm({"max-width":function(){return _.U("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.C("div",{class:function(){var P;
a:{var n;switch((P=_.k(l().thumbnailImage,FMM))==null?void 0:(n=P.imageProperties)==null?void 0:n.renderingAspect){case "RENDERING_ASPECT_SQUARE":P="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":P="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}P=void 0}return P}},_.C(_.QH,{data:function(){return l().thumbnailImage}},{adImageViewModel:function(P){return _.C(_.qQ,
{data:P.data,
listenToTapEvent:!0,setTouchEndHandler:_.U("enable_top_landscape_image_experiment_dom_id_web")})}})),_.C("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.C(_.c,{cond:function(){var P,n,B;
return(P=_.k(l().thumbnailImage,FMM))==null?void 0:(n=P.imageProperties)==null?void 0:(B=n.overlayIcon)==null?void 0:B.iconImage},
then:function(P){return _.C(_.dN,{data:P,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.C("div",{class:function(){return r()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.C(_.QH,{data:function(){return l().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(P){return _.C(jLv,
{data:P.data,
listenToTapEvent:!0})}}))),_.C("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.C(_.QH,{data:function(){return l().feedAdMetadata}},{feedAdMetadataViewModel:function(P){return _.C(Op,{data:P.data,
listenToTapEvent:!0,setTouchEndHandler:_.U("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ub"),"compact-landscape-no-button-layout-view-model",{props:{data:_.pA}});_.HI(_.Q(function(W){var l=W.data;W=_.su({visibilityCallback:function(P,n){if(P){var B;(P=(B=l().interaction)==null?void 0:B.onFirstVisible)&&_.sZ(P);var d;if(B=(d=l().adLayoutData)==null?void 0:d.activeViewData)Dp(n,B),_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ug(n)})}else _.U("stop_av_measurement_on_detach")&&Ug(n)},
showOption:_.ir,hideOption:mO});var V=_.$h(_.EZ),f=_.Vl(function(){return l().interaction}),r={},R={},y={};
return _.C("square-image-layout-view-model",{class:_.If("ytwSquareImageLayoutViewModelHost",(r.ytwSquareImageLayoutViewModelHostColumn=V,r)),el:_.DN(W,Xaj,f)},_.C("div",{class:_.If("ytwSquareImageLayoutViewModelHostImage",(R.ytwSquareImageLayoutViewModelHostColumnImage=V,R))},function(){return _.C(_.QH,{data:function(){return l().adImage}},{adImageViewModel:function(P){return _.C(_.qQ,{data:P.data,
isGridViewEnabled:V,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.C("div",{class:_.If("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(y.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=V,y))},_.C(_.QH,{data:function(){return l().feedAdMetadata}},{feedAdMetadataViewModel:Op}),function(){return _.C(_.QH,{data:function(){return l().adButton}},{adButtonViewModel:function(P){var n={};
return _.C(_.Xq,{data:P.data,className:_.If((n.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,n.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=V,n))})}})}()))},"vb"),"square-image-layout-view-model",{props:{data:_.pA}});_.HI(_.Q(function(W){var l=W.data;var V=W.noBottomMargin;var f=W.typographyBump;W=_.su({visibilityCallback:function(J,D){if(J){var u;(J=(u=l().interaction)==null?void 0:u.onFirstVisible)&&_.sZ(J);var H;if(u=(H=l().adLayoutData)==null?void 0:H.activeViewData)Dp(D,u),_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ug(D)})}else _.U("stop_av_measurement_on_detach")&&Ug(D)},
showOption:_.ir,hideOption:mO});var r=_.Vl(function(){return l().interaction},void 0,function(){return _.U("enable_web_home_top_landscape_image_layout_level_click")}),R=function(){return l().interaction};
R!==void 0&&R!==null||_.x2(Error("Ph"));var y=function(){var J,D,u;return(J=_.k(l().thumbnailImage,FMM))==null?void 0:(D=J.background)==null?void 0:(u=D.backgroundImageSource)==null?void 0:u.imageSources};
R=_.L(_.J4(!1,void 0,"NFjwje"));var P=R.next().value,n=R.next().value;R=_.ip(function(){n(!0)});
var B=_.ip(function(){n(!1)}),d=function(){return P()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.C("top-landscape-image-layout-view-model",{class:function(){var J;return((J=l().interaction)==null?0:J.onTap)&&_.U("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.DN(W,TjY,r),"on:mouseenter":R,"on:mouseleave":B},_.C("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.C(_.c,{cond:function(){return y()&&y().length>0},
then:function(){return _.C("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Tm({top:"0","background-image":function(){return"url("+String(y()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.C(_.c,{cond:function(){return!!l().adButtonHoverOverlay},
then:function(){return _.C("div",{class:d},_.C(_.QH,{data:function(){return l().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:jLv}))}}),_.C("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.C(_.QH,{data:function(){return l().thumbnailImage}},{adImageViewModel:function(J){return _.C(_.qQ,{data:J.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.U("enable_web_home_top_landscape_image_layout_level_click")})}})),_.C("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.C(_.dN,{data:{sources:[{clientResource:{imageName:_.U("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.C("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.C(_.QH,{data:function(){return l().feedAdMetadata}},{feedAdMetadataViewModel:function(J){return _.C(Op,{data:J.data,
noBottomMargin:function(){return V==null?void 0:V()},
listenToTapEvent:function(){return _.U("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return f==null?void 0:f()}})}})))},"wb"),"top-landscape-image-layout-view-model",{props:{data:_.pA,
noBottomMargin:_.pA,typographyBump:_.pA}});var IGM=_.Q(function(W){var l=W.data,V=_.su({visibilityCallback:function(r){var R,y=(R=l().interaction)==null?void 0:R.onFirstVisible;r&&y&&_.sZ(y)},
showOption:_.ir});W=_.Vl(function(){return l().interaction},W.customCommandResolver);
var f={};return _.C("ad-text-image-view-model",{class:_.If("ytwAdTextImageViewModelHost",(f.ytwAdTextImageViewModelHostDarkBackground=function(){return l().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},f)),
el:_.DN(V,W),"aria-label":function(){var r,R;return(r=l().interaction)==null?void 0:(R=r.accessibility)==null?void 0:R.label}},_.C("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.C(_.bH,{text:function(){return l().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0})),_.C(_.c,{cond:function(){return l().overlayIcon},
then:function(r){return _.C("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.C(_.dN,{data:r,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"xb");var iy1=_.Q(function(W){var l=W.data;return _.C("feed-ad-sitelink-view-model",{class:"ytwFeedAdSitelinkViewModelHost",el:_.DN(_.Vl(function(){return l().interaction},W.customCommandResolver)),
"aria-label":function(){var V,f;return(V=l().interaction)==null?void 0:(f=V.accessibility)==null?void 0:f.label}},_.C(_.bH,{text:function(){return l().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"yb");var m21=_.Q(function(W){var l=W.data;W={};return _.C("feed-ad-sitelinks-carousel-view-model",{el:_.DN(_.su({visibilityCallback:function(V){var f,r=(f=l().interaction)==null?void 0:f.onFirstVisible;V&&r&&_.sZ(r)},
showOption:_.ir})),class:_.If("ytwFeedAdSitelinksCarouselViewModelHost",(W.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return l().style==="FEED_AD_SITELINKS_STYLE_NONE"},W))},_.C(_.QH,{data:function(){return l().sitelinks}},{feedAdSitelinkViewModel:iy1}))},"zb");_.HI(_.Q(function(W){var l=W.data;W=_.su({visibilityCallback:function(y,P){if(y){var n;(y=(n=l().interaction)==null?void 0:n.onFirstVisible)&&_.sZ(y);var B;(n=(B=l().adLayoutData)==null?void 0:B.activeViewData)&&Dp(P,n)}},
showOption:_.ir});var V=_.L(_.J4(!1,void 0,"BzPhl")),f=V.next().value,r=V.next().value;V=_.ip(function(){r(!0)});
var R=_.ip(function(){r(!1)});
return _.C("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.DN(W),"on:mouseenter":V,"on:mouseleave":R},_.C("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.C("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.C(_.QH,{data:function(){return l().textImage}},{adTextImageViewModel:IGM})),_.C("div",{class:function(){return f()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.C(_.QH,{data:function(){return l().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(y){return _.C(jLv,{data:y.data,
listenToTapEvent:!0})}}))),_.C("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.C(_.QH,{data:function(){return l().feedAdMetadata}},{feedAdMetadataViewModel:function(y){return _.C(Op,{data:y.data,
listenToTapEvent:!0})}}),_.C(_.QH,{data:function(){return l().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:m21})))},"Ab"),"text-image-no-button-layout-view-model",{props:{data:_.pA}});_.HI(_.Q(function(W){var l=W.data;var V=W.typographyBump;return _.C("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.DN(_.su({visibilityCallback:function(f,r){if(f){var R;(f=(R=l().interaction)==null?void 0:R.onFirstVisible)&&_.sZ(f);var y;(R=(y=l().adLayoutData)==null?void 0:y.activeViewData)&&Dp(r,R)}},
showOption:_.ir,hideOption:mO}))},_.C("div",null,_.C(_.QH,{data:function(){return l().videoLockup}},{lockupViewModel:function(f){return _.C(_.au,{data:f.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:V})}})))},"Bb"),"video-display-button-group-layout-view-model",{props:{data:_.pA,
noBottomMargin:_.pA,typographyBump:_.pA}});_.HI(_.Q(function(W){var l=W.data;var V=W.className;var f=W.typographyBump;return _.C("video-display-compact-button-group-layout-view-model",{el:_.DN(_.su({visibilityCallback:function(r,R){if(r){var y;(r=(y=l().interaction)==null?void 0:y.onFirstVisible)&&_.sZ(r);var P;(y=(P=l().adLayoutData)==null?void 0:P.activeViewData)&&Dp(R,y)}},
showOption:_.ir})),class:_.If("videoDisplayCompactButtonGroupLayoutViewModelHost",V)},_.C(_.QH,{data:function(){return l().videoLockup}},{lockupViewModel:function(r){return _.C(_.au,{data:r.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:f})}}))},"Cb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.pA,
className:_.pA,typographyBump:_.pA}});_.HI(_.Q(function(W){var l=W.data;var V=W.className;var f=W.typographyBump;return _.C("video-display-compact-buttoned-layout-view-model",{el:_.DN(_.su({visibilityCallback:function(r,R){if(r){var y;(r=(y=l().interaction)==null?void 0:y.onFirstVisible)&&_.sZ(r);var P;(y=(P=l().adLayoutData)==null?void 0:P.activeViewData)&&Dp(R,y)}},
showOption:_.ir})),class:_.If("videoDisplayCompactButtonedLayoutViewModelHost",V)},_.C(_.QH,{data:function(){return l().videoLockup}},{lockupViewModel:function(r){return _.C(_.au,{data:r.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:f})}}))},"Db"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.pA,
className:_.pA,typographyBump:_.pA}});_.HI(_.Q(function(W){var l=W.data;var V=W.className;var f=W.typographyBump;var r=function(){return l().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},R=_.$h(_.EZ);
W=_.su({visibilityCallback:function(B,d){if(B){var J=l();B=J.adLayoutData;var D;(J=(D=J.interaction)==null?void 0:D.onFirstVisible)&&_.sZ(J);(D=B==null?void 0:B.activeViewData)&&Dp(d,D)}},
showOption:_.ir});var y=_.v4(function(){return{containerType:r()&&R()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"mu2jrc"),P=_.v4(function(){return r()&&R()?"":r()?"168px":"50%"},void 0,"qNDzkb"),n=_.v4(function(){return r()&&R()?9999:void 0},void 0,"Ikn8Kb");
return _.C("video-display-compact-layout-view-model",{el:_.DN(W),class:_.If("videoDisplayCompactLayoutViewModelHost",V)},_.C(_.QH,{data:function(){return l().videoLockup}},{lockupViewModel:function(B){return _.C(_.au,{data:B.data,
containerLayoutConfig:y,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:P,thumbnailTargetWidth:n,typographyBump:f})}}))},"Eb"),"video-display-compact-layout-view-model",{props:{data:_.pA,
className:_.pA,typographyBump:_.pA}});_.HI(_.Q(function(W){var l=W.data;var V=W.typographyBump;return _.C("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.DN(_.su({visibilityCallback:function(f,r){if(f){var R;(f=(R=l().interaction)==null?void 0:R.onFirstVisible)&&_.sZ(f);var y;(R=(y=l().adLayoutData)==null?void 0:y.activeViewData)&&Dp(r,R)}},
showOption:_.ir,hideOption:mO}))},_.C("div",null,_.C(_.QH,{data:function(){return l().videoLockup}},{lockupViewModel:function(f){return _.C(_.au,{data:f.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:V})}})))},"Fb"),"video-display-full-layout-view-model",{props:{data:_.pA,
noBottomMargin:_.pA,typographyBump:_.pA}});_.XnX=_.Q(function(W){var l=W.data;W=_.WS("ad-card-badge-view-model");return _.C("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:W},_.C(_.c,{cond:function(){return l().imageBadge},
then:function(V){return _.C(_.dN,{data:V,alt:""})}}))},"Gb");var T0L=_.Q(function(W){var l=W.data;var V=W.customCommandResolver;return _.C("carousel-ad-card-image-view-model",{class:function(){var f;return((f=l().interaction)==null?0:f.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.DN(_.su({visibilityCallback:function(f){var r,R=(r=l().interaction)==null?void 0:r.onFirstVisible;f&&R&&_.sZ(R)},
showOption:_.ir}),_.Vl(function(){return l().interaction},V)),
"aria-label":function(){var f,r;return(f=l().interaction)==null?void 0:(r=f.accessibility)==null?void 0:r.label}},_.C(_.QH,{data:function(){return l().adImage}},{adImageViewModel:function(f){return _.C(_.qQ,{data:f.data,
customCommandResolver:V})}}),_.C("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.C(_.QH,{data:function(){return l().badge}},{adCardBadgeViewModel:_.XnX})),_.C(_.ZS,{model:{color:4}}))},"Hb");var wnc=_.Q(function(W){var l=_.L(_.J4(0,void 0,"JJ0QQc")),V=l.next().value;l.next();var f=l.next().value,r=_.L(_.J4(!1,void 0,"f6YICe"));l=r.next().value;var R=r.next().value,y;_.Xc(function(){clearTimeout(y)});
r=_.ip(function(){var B;((B=W.animate)==null?0:B.call(W))?(R(!0),y=setTimeout(function(){R(!1);P()},200)):P();
return!1});
var P=function(){f(function(B){return(B+W.numShownItems())%W.data().length})},n={};
return _.C("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.C("div",{class:_.If("ytwHorizontalCarouselCarouselWrapper")},_.C("div",{class:_.If("ytwHorizontalCarouselCarouselInnerWrapper",(n.ytwHorizontalCarouselAnimating=l,n))},_.C(_.G3,{each:W.data,keyBy:"INDEX"},function(B,d){return _.C("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Tm({"flex-basis":function(){return"calc((100% - (8px * "+(W.numShownItems()-1)+")) / "+W.numShownItems()+")"},
order:function(){var J=d-V();J<0&&(J+=W.data().length);return J}})},W.children(B,d))}))),_.C("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":r},W.nextButton()))},"Ib");var Anv=_.Q(function(W){var l=W.data;var V=W.customCommandResolver;var f=W.expansive;return _.C("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.DN(_.su({visibilityCallback:function(r){var R,y=(R=l().interaction)==null?void 0:R.onFirstVisible;r&&y&&_.sZ(y)},
showOption:_.ir}))},_.C(wnc,{data:function(){var r;return((r=l())==null?void 0:r.carouselAdCards)||[]},
nextButton:function(){return _.C(_.QH,{data:function(){return l().nextButton}},{buttonViewModel:function(r){var R=r.data;
return _.C(_.Nq,{data:function(){return(f==null?0:f())?Object.assign({},R(),{style:"mono"}):R()},
className:_.U("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(r){return _.C(_.QH,{data:r},{carouselAdCardImageViewModel:function(R){return _.C(T0L,{data:R.data,customCommandResolver:V})}})}))},"Jb");var QLZ=_.Q(function(W){var l=W.data;var V=W.customCommandResolver;var f=W.className;var r=W.buttonClassName;var R=W.animationEntityKey;var y=W.expansive;return _.C("carousel-button-view-model",{class:_.If("ytwCarouselButtonViewModelHost",f)},_.C(_.QH,{data:function(){return l().carousel}},{carouselAdCardCollectionViewModel:function(P){return _.C(Anv,{data:P.data,
customCommandResolver:V,expansive:y})}}),_.C(_.QH,{data:function(){return l().button}},{adButtonViewModel:function(P){var n=P.data;
return _.C(_.Xq,{data:function(){return(y==null?0:y())?Object.assign({},n(),{style:"AD_BUTTON_STYLE_TONAL"}):n()},
className:r,customCommandResolver:V,animationEntityKey:R})}}))},"Kb");_.MU1=_.Q(function(W){var l=W.data;W=W.className;var V=_.WS("pivot-button-view-model");_.mw(function(){var f;((f=l())==null?0:f.backgroundColor)&&V.value.setAttribute("data-background-color",String(l().backgroundColor))});
return _.C("pivot-button-view-model",{el:V,class:_.If("ytwPivotButtonViewModelHost",W)},_.C(_.Mq,{command:function(){var f=l();f=f.onClickCommand?_.fP(f.onClickCommand):f.contentDescription?_.kV(f.contentDescription):void 0;return f},
ariaLabel:function(){return l().contentDescription}},_.C(_.c,{cond:function(){return l().thumbnail},
then:function(f){return _.C(_.dN,{data:f,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.C(_.c,{cond:function(){return l().icon},
then:function(f){return _.C(_.wN,{icon:function(){return f().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Lb");_.Zyk=_.Q(function(W){var l=W.data;var V=W.buttonShapeOverrideables;return _.C("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.C(_.QH,{data:function(){return l().buttonViewModels}},{buttonViewModel:function(f){return _.C(_.Nq,{data:f.data,
buttonOverrides:V})},
likeButtonViewModel:function(f){return _.C(_.cR,{data:f.data,buttonShapeOverrideables:V})},
dislikeButtonViewModel:function(f){return _.C(_.C9,{data:f.data,buttonShapeOverrideables:V})},
toggleButtonViewModel:function(f){return _.C(_.gy,{data:f.data,buttonShapeOverrides:V})}}))},"Mb");var Oyk=_.Q(function(W){var l=W.avatar;var V=W.headline;var f=W.badge;var r=W.description;var R=W.expansive;W={};return _.C("yt-ad-metadata-shape",{class:_.If("ytAdMetadataShapeHost",(W.ytAdMetadataShapeHostLarge=R,W))},_.C("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.C(_.c,{cond:l,then:function(y){return _.C(_.Xak,{data:function(){return(R==null?0:R())?Object.assign({},y(),{size:"AD_AVATAR_SIZE_M"}):y()}})}}),_.C("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.C(_.bH,{text:V,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.C(_.c,{cond:f,then:function(y){return _.C(_.My,{data:function(){return(R==null?0:R())?Object.assign({},y(),{style:"AD_BADGE_STYLE_STARK"}):y()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.C("h2",{class:"ytAdMetadataShapeHostDescription"},_.C(_.bH,{text:r,
linkInheritColor:!0,isHeadline:function(){return R==null?void 0:R()}})))},"Nb");var aG$=_.Q(function(W){var l=W.data;var V=W.onShow;var f=W.expansive;W=_.Vl(function(){return l().interaction});
_.mw(function(){var R,y=(R=l().animatedRenderingConfig)==null?void 0:R.delayedSecondsToVisible;if(y){var P=setTimeout(V,y*1E3);_.Xc(function(){clearTimeout(P)})}});
var r={};return _.C("reels-ad-card-buttoned-view-model",{class:_.If(function(){var R;return((R=l().interaction)==null?0:R.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(r.ytwReelsAdCardButtonedViewModelHostExpansive=f,r)),
el:_.DN(W)},_.C(Oyk,{avatar:function(){return _.k(l().avatar,vSe)},
headline:function(){return l().headline},
badge:function(){return _.k(l().adBadge,HUZ)},
description:function(){return l().description},
expansive:f}),_.C(_.QH,{data:function(){return l().ctaButton}},{adButtonViewModel:function(R){var y=R.data;
return _.C(_.Xq,{data:function(){return(f==null?0:f())?Object.assign({},y(),{style:"AD_BUTTON_STYLE_FILLED"}):y()}})}}))},"Ob");var z$k=_.Q(function(W){var l=W.data;W=W.expansive;var V=_.U("web_ad_metadata_clickable")?_.Vl(function(){return l().interaction},void 0,function(){return _.U("web_ad_metadata_clickable")}):void 0,f={};
f=_.Yw("ytwReelsAdMetadataViewModelHost",(f.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.U("web_ad_metadata_clickable"),f));return _.C("reels-ad-metadata-view-model",{class:f,el:_.DN(V)},_.C(Oyk,{avatar:function(){return _.k(l().avatar,vSe)},
headline:function(){return l().headline},
badge:function(){return _.k(l().adBadge,HUZ)},
description:function(){return l().description},
expansive:W}))},"Pb");var N0k={iconPosition:"icon-with-label",size:"L"},YEv=_.Q(function(W){var l=W.data;var V=W.overlayDensity;W=_.WS("reels-player-overlay-layout-view-model");var f=_.JG(V,0),r=function(){var J;return(J=l().reelsAdCardButtonedEntityKey)!=null?J:""},R=function(){return r()+"/ad_button"},y=_.wH(GU4,r),P=function(){var J,D;
return(D=(J=y())==null?void 0:J.value)!=null?D:!1},n=_.$h(waj),B=function(){return Object.assign({},N0k,(n()||f()===2)&&{style:"overlay-dark"})};
V={};var d={};return _.C("reels-player-overlay-layout-view-model",{class:_.If("ytwReelsPlayerOverlayLayoutViewModelHost",(V.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!l().extension},V.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},V)),
"overlay-density":function(){return String(f())},
el:W},_.C("div",{class:_.If("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(d.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},d))},_.C("div",{"aria-hidden":function(){return P()},
class:_.If("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return P()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Tm({"transition-duration":function(){return Zw6(l())}})},_.C(_.QH,{data:function(){return l().adMetadata}},{reelsAdMetadataViewModel:function(J){return _.C(z$k,{data:J.data,
expansive:function(){return f()===1}})}}),_.C(_.c,{cond:function(){return l().extension},
then:function(J){return _.C("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.C(_.QH,{data:J},{adButtonViewModel:function(D){return _.C(_.Xq,{data:D.data,animationEntityKey:R,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(D){return _.C(QLZ,{data:D.data,animationEntityKey:R,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return f()===1}})}}))}})),_.C("div",{"aria-hidden":function(){return!P()},
class:_.If("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return P()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Tm({"transition-duration":function(){return Zw6(l())}})},_.C(_.QH,{data:function(){return l().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(J){return _.C(aG$,{data:J.data,
onShow:function(){_.dm(_.MB("booleanEntity",r(),{key:r(),value:!0}))},
expansive:function(){return f()===1}})}}))),_.C("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.C(_.QH,{data:function(){return l().actions}},{reelActionBarViewModel:function(J){return _.C(_.Zyk,{data:J.data,
buttonShapeOverrideables:B})}}),_.C(_.QH,{data:function(){return l().menu}},{buttonViewModel:function(J){return _.C(_.Nq,{data:J.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},B(),{type:"tonal"})}})}}),_.C(_.QH,{data:function(){return l().pivotButton}},{pivotButtonViewModel:function(J){return _.C(_.MU1,{data:J.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Qb");_.HI(YEv,"reels-player-overlay-layout-view-model",{props:{data:_.pA,overlayDensity:_.pA}});var hT=function(){var W=_.I.apply(this,arguments)||this;W.noBottomMargin=!1;W.overlayDensity=0;return W};
_.v(hT,_.I);_.t=hT.prototype;
_.t.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.U("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]]"}}}}}};
_.t.ready=function(){var W=this;rFq(function(){W.isAttached&&nh(W.JSC$15541_storedAdSlotMetadata,W.JSC$15541_storedAdLayoutMetadata,W.adSlotMetadata,W.adLayoutMetadata)&&e9(YF(),W.JSC$15541_storedAdSlotMetadata,W.JSC$15541_storedAdLayoutMetadata)})};
_.t.attached=function(){nh(this.JSC$15541_storedAdSlotMetadata,this.JSC$15541_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&ojM(YF(),this.JSC$15541_storedAdSlotMetadata,this.JSC$15541_storedAdLayoutMetadata)};
_.t.detached=function(){nh(this.JSC$15541_storedAdSlotMetadata,this.JSC$15541_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&e9(YF(),this.JSC$15541_storedAdSlotMetadata,this.JSC$15541_storedAdLayoutMetadata)};
_.t.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.t.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15541_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15541_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15541_storedAdLayoutMetadata!==void 0&&this.JSC$15541_storedAdSlotMetadata!==void 0&&e9(YF(),this.JSC$15541_storedAdSlotMetadata,this.JSC$15541_storedAdLayoutMetadata),ojM(YF(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15541_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15541_storedAdSlotMetadata=this.adSlotMetadata)};
_.rc.Object.defineProperties(hT.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.adLayoutMetadata}}});
hT.prototype.onAdMetadataChanged=hT.prototype.onAdMetadataChanged;hT.prototype.onTypographyBumpChanged=hT.prototype.onTypographyBumpChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],hT.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],hT.prototype,"rendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],hT.prototype,"ytComponentBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],hT.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],hT.prototype,"noBottomMargin",void 0);_.a([_.b(),_.z("design:type",Object)],hT.prototype,"overlayDensity",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],hT.prototype,"typographyBump",void 0);_.a([_.G("data.adLayoutMetadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],hT.prototype,"adLayoutMetadata",null);_.a([_.b(),_.z("design:type",Object)],hT.prototype,"adSlotMetadata",void 0);
_.a([_.Aa("ytd-video-display-full-buttoned-and-button-group-renderer"),_.z("design:type",HTMLElement)],hT.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.a([_.TS("typographyBump"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hT.prototype,"onTypographyBumpChanged",null);_.a([_.TS("adLayoutMetadata","adSlotMetadata"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hT.prototype,"onAdMetadataChanged",null);
_.a([_.A({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],hT);
_.Z(hT,"ytd-in-feed-ad-layout-renderer",function(){if(iHZ!==void 0)return iHZ;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return iHZ=W},
{mode:_.bD("kevlar_poly_si_batch_j028")?1:2});var x2M;var e$B;_.HI(_.My,"ad-badge-view-model",{props:{data:_.pA,hasDot:_.pA,customCommandResolver:_.kh,adRenderingContextType:_.kh}});_.HI(_.Xq,"ad-button-view-model",{props:{data:_.pA,customCommandResolver:_.kh,className:_.kh,delayedClassName:_.kh,animationEntityKey:_.kh,isCompactWidth:_.kh}});var S9=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return W};
_.v(S9,_.I);_.t=S9.prototype;_.t.computeHasLiveDescription=function(W){return!(W==null||!W.liveDescription)};
_.t.computeHasByline=function(W){return!(W==null||!W.byline)};
_.t.computeUsesAdButtonViewModel=function(W){return!!_.k(W==null?void 0:W.cta,KMM)};
_.t.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"}}}}}};
_.t.onYtToggleButton=function(W){var l,V=(l=this.data)==null?void 0:l.videoReminderEntityKey;V&&this.ytdReduxBehavior.dispatch(_.MB("upcomingEventReminderStateEntity",V,{key:V,state:W.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.t.attached=function(){this.updateChannelBanner()};
_.t.dataChanged=function(){this.updateChannelBanner()};
_.t.videoReminderStateChanged=function(){var W;this.videoReminderState&&_.k((W=this.data)==null?void 0:W.cta,_.cm)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.t.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var W=_.KP(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);W&&(W.startsWith("//")&&(W="https:"+W),this.hostElement.classList.add("channel-banner"),_.I1(this.hostElement,{"--ytvmh-channel-banner":"url("+W+")"}))}else _.U("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.t.onPlayerReady=function(){this.onIronResize()};
_.t.maybeFlushDebouncer=function(){_.U("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(W){var l;W=(l=W.getElementsByTagName("yt-attributed-string"))==null?void 0:l[0];Fb6(W==null?void 0:W.polymerController)})};
_.t.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var W=_.GS(this.hostElement).querySelector("#live-description"),l;W&&((l=this.data)==null?0:l.shortLiveDescription)&&W.clientWidth<W.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
S9.prototype.onIronResize=S9.prototype.onIronResize;S9.prototype.videoReminderStateChanged=S9.prototype.videoReminderStateChanged;S9.prototype.dataChanged=S9.prototype.dataChanged;S9.prototype.onYtToggleButton=S9.prototype.onYtToggleButton;_.a([_.F(_.Wo),_.z("design:type",Object)],S9.prototype,"ironResizableBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],S9.prototype,"ytActionHandlerBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],S9.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],S9.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],S9.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],S9.prototype,"data",void 0);_.a([_.b({selectorArgs:["data.videoReminderEntityKey"],selector:pNq}),_.z("design:type",Object)],S9.prototype,"videoReminderState",void 0);
_.a([_.b({reflectToAttribute:!0,value:_.U("web_modern_buttons")}),_.z("design:type",Boolean)],S9.prototype,"rounded",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.z("design:type",Boolean)],S9.prototype,"hasLiveDescription",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.z("design:type",Boolean)],S9.prototype,"hasByline",void 0);
_.a([_.b({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.z("design:type",String)],S9.prototype,"adRenderingContextType",void 0);_.a([_.b({computed:"computeUsesAdButtonViewModel(data)"}),_.z("design:type",Boolean)],S9.prototype,"usesAdButtonViewModel",void 0);_.a([_.b({reflectToAttribute:!0,value:_.U("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.z("design:type",Boolean)],S9.prototype,"resizableAdBannerSafariFix",void 0);
_.a([_.Qb("yt-formatted-string"),_.z("design:type",Array)],S9.prototype,"formattedStrings",void 0);_.a([_.Aa("#cta-button"),_.z("design:type",HTMLElement)],S9.prototype,"ctaButton",void 0);_.a([_.XI("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],S9.prototype,"onYtToggleButton",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S9.prototype,"dataChanged",null);
_.a([_.TS("videoReminderState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S9.prototype,"videoReminderStateChanged",null);_.a([_.XI("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S9.prototype,"onIronResize",null);_.a([_.A({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],S9);
_.Z(S9,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(e$B!==void 0)return e$B;var W=document.createElement("template");_.K(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return e$B=W},{mode:1});var qEB;var E3=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};W.isLocked=!1;return W};
_.v(E3,_.I);_.t=E3.prototype;_.t.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.t.onExpandedChanged=function(){this.expanded&&_.bj(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.t.onMouseOver=function(){this.maybeExpand()};
_.t.onTap=function(){this.maybeExpand()};
_.t.onExpandableTileExpanding=function(W){W!==this&&(this.expanded=!1)};
_.t.onExpandableTileLockAndCollapse=function(W){this.isLocked=!0;W!==this&&(this.expanded=!1)};
_.t.onExpandableTileUnlock=function(){this.isLocked=!1};
E3.prototype.onTap=E3.prototype.onTap;E3.prototype.onMouseOver=E3.prototype.onMouseOver;E3.prototype.onExpandedChanged=E3.prototype.onExpandedChanged;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],E3.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],E3.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],E3.prototype,"expanded",void 0);_.a([_.zS("expanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],E3.prototype,"onExpandedChanged",null);_.a([_.XI("mouseover"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],E3.prototype,"onMouseOver",null);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],E3.prototype,"onTap",null);
_.a([_.A({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],E3);
_.Z(E3,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(qEB!==void 0)return qEB;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return qEB=W},{mode:1});var h$k;var $F=function(){var W=_.I.apply(this,arguments)||this;W.buttonOverrides={style:"overlay"};W.useYtdPlayer=_.U("use_ytd_player_for_desktop_masthead");W.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};W.playbackFinished=!1;W.JSC$15555_playerManager=null;W.JSC$15555_mastheadCounter=new J4L;return W};
_.v($F,_.I);_.t=$F.prototype;_.t.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"}}}};
_.t.created=function(){this.JSC$15555_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15555_playerManager=new sq)};
_.t.ready=function(){var W=this;this.JSC$15555_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var l=_.GS(this.hostElement).querySelector("#player");this.useYtdPlayer?l.style.display="none":(this.ytdPlayer.style.display="none",hxM(this.JSC$15555_playerManager,l,function(){W.onPlaybackEnded()}),_.GS(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var V;
((V=W.data)==null?0:V.navigationEndpoint)&&_.FN(W.hostElement,"yt-navigate",{endpoint:W.data.navigationEndpoint})}))};
_.t.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15555_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.t.attached=function(){var W=this;_.yq(function(){W.maybePlayVideo()})};
_.t.maybePlayVideo=function(){var W=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$15555_playerManager.playVideo(),this.getPlayerPromise().then(function(){W.JSC$15555_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.t.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15555_playerManager.stopVideo()};
_.t.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var W,l={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((W=this.data.playbackStartMs)!=null?W:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(l);this.setupYtdPlayer()}else EUk(this.JSC$15555_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(SyL(this.JSC$15555_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.t.getPlayerPromise=function(){return this.JSC$15555_playerManager.getPlayerPromise()};
_.t.onYtToggleButton=function(W){this.useYtdPlayer?this.toggleMute(W.detail.toggled):W.detail.toggled?this.JSC$15555_playerManager.mute():this.JSC$15555_playerManager.unMute()};
_.t.onYtNavigate=function(W){var l=Dyx(W.detail.endpoint),V=Uy6(this.data.clickthroughReportingData);l&&V&&(W.detail.endpoint.watchEndpoint?W.detail.tempData=V:_.Ue(l,V,30))};
_.t.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.t.onExpandedChanged=function(){this.expanded?(_.bj(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.t.onMouseOver=function(){this.maybeExpand()};
_.t.onTap=function(){this.maybeExpand()};
_.t.onExpandableTileExpanding=function(W){W!==this&&(this.stopVideo(),this.expanded=!1)};
_.t.onExpandableTileLockAndCollapse=function(W){W!==this&&(this.isLocked=!0,this.expanded=!1)};
_.t.onExpandableTileUnlock=function(){this.isLocked=!1};
_.t.lockAndCollapseExpandableTiles=function(){_.Gt(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.t.unlockExpandableTiles=function(){_.Gt(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.t.setupYtdPlayer=function(){var W=this,l;return _.g(function(V){if(V.nextAddress==1)return V.yield(W.ytdPlayer.getPlayerPromise(),2);l=V.yieldResult;l.addEventListener("onStateChange",function(f){W.onPlayerStateChange(f)});
l.addEventListener("onCueRangeExit",function(f){W.onCueRangeExit(f)});
_.ju(V)})};
_.t.onPlayerStateChange=function(W){if(W===1&&(W=this.ytdPlayer.getPlayer())){var l=W.getCurrentTime(),V,f,r=l+((f=(V=this.data)==null?void 0:V.playbackDurationMs)!=null?f:0)/1E3;W.addCueRange("playback",l,r);this.JSC$15555_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.t.onCueRangeExit=function(W){W==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.t.toggleMute=function(W){var l=this,V;return _.g(function(f){if(f.nextAddress==1)return f.yield(l.ytdPlayer.getPlayerPromise(),2);V=f.yieldResult;W?V.mute():V.unMute();_.ju(f)})};
$F.prototype.onTap=$F.prototype.onTap;$F.prototype.onMouseOver=$F.prototype.onMouseOver;$F.prototype.onExpandedChanged=$F.prototype.onExpandedChanged;$F.prototype.onYtNavigate=$F.prototype.onYtNavigate;$F.prototype.onYtToggleButton=$F.prototype.onYtToggleButton;$F.prototype.dataChanged=$F.prototype.dataChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],$F.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],$F.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],$F.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],$F.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],$F.prototype,"expanded",void 0);_.a([_.b(),_.z("design:type",Object)],$F.prototype,"buttonOverrides",void 0);
_.a([_.b(),_.z("design:type",Object)],$F.prototype,"useYtdPlayer",void 0);_.a([_.Aa("#ytd-player"),_.z("design:type",Object)],$F.prototype,"ytdPlayer",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$F.prototype,"dataChanged",null);_.a([_.XI("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],$F.prototype,"onYtToggleButton",null);
_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],$F.prototype,"onYtNavigate",null);_.a([_.zS("expanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$F.prototype,"onExpandedChanged",null);_.a([_.XI("mouseover"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$F.prototype,"onMouseOver",null);
_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$F.prototype,"onTap",null);_.a([_.A({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],$F);
_.Z($F,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(h$k!==void 0)return h$k;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return h$k=W},{mode:1});var SEM;var W7=function(){return _.I.apply(this,arguments)||this};
_.v(W7,_.I);W7.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
W7.prototype.onShow=function(){var W=_.GS(this.hostElement).querySelector("#live-description"),l;W&&((l=this.data)==null?0:l.shortLiveDescription)&&W.clientWidth<W.scrollWidth&&this.hostElement.classList.add("short-live-description")};
W7.prototype.onYtToggleButton=function(W){var l,V=(l=this.data)==null?void 0:l.videoReminderEntityKey;V&&this.ytdReduxBehavior.dispatch(_.MB("upcomingEventReminderStateEntity",V,{key:V,state:W.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
W7.prototype.videoReminderStateChanged=function(){var W;this.videoReminderState&&_.k((W=this.data)==null?void 0:W.cta,_.cm)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
W7.prototype.videoReminderStateChanged=W7.prototype.videoReminderStateChanged;W7.prototype.onYtToggleButton=W7.prototype.onYtToggleButton;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],W7.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],W7.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],W7.prototype,"data",void 0);
_.a([_.b({selectorArgs:["data.videoReminderEntityKey"],selector:pNq}),_.z("design:type",Object)],W7.prototype,"videoReminderState",void 0);_.a([_.XI("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],W7.prototype,"onYtToggleButton",null);_.a([_.TS("videoReminderState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],W7.prototype,"videoReminderStateChanged",null);
_.a([_.A({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],W7);
_.Z(W7,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(SEM!==void 0)return SEM;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return SEM=W},{mode:_.bD("kevlar_poly_si_batch_j065")?1:2});var Ejk;var lt=function(){var W=_.I.apply(this,arguments)||this;W.useYtdPlayer=_.U("use_ytd_player_for_desktop_masthead");W.buttonOverrides={style:"overlay"};W.JSC$15563_playerManager=null;W.JSC$15563_mastheadCounter=new J4L;W.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return W};
_.v(lt,_.I);_.t=lt.prototype;_.t.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"}}}};
_.t.created=function(){this.JSC$15563_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15563_playerManager=new sq)};
_.t.ready=function(){var W=this;this.JSC$15563_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var l;(l=this.embeddedPlayer)==null||l.remove()}else{var V;(V=this.ytdPlayer)==null||V.remove();hxM(this.JSC$15563_playerManager,this.embeddedPlayer,function(){W.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){W.data&&W.data.navigationEndpoint&&_.FN(W.hostElement,"yt-navigate",{endpoint:W.data.navigationEndpoint})})}};
_.t.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15563_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.t.dataChanged=function(){var W=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var l=!this.data.disableAutoPlayback,V,f={autoplay:l,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((V=this.data.playbackStartMs)!=null?V:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(l?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(f);this.setupYtdPlayer()}else EUk(this.JSC$15563_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(SyL(this.JSC$15563_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15563_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.Gt(W.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");W.JSC$15563_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.t.getPlayerPromise=function(){return this.JSC$15563_playerManager.getPlayerPromise()};
_.t.onYtToggleButton=function(W){this.useYtdPlayer?this.toggleMute(W.detail.toggled):W.detail.toggled?this.JSC$15563_playerManager.mute():this.JSC$15563_playerManager.unMute()};
_.t.onYtNavigate=function(W){var l=Dyx(W.detail.endpoint),V=Uy6(this.data.clickthroughReportingData);l&&V&&(W.detail.endpoint.watchEndpoint?W.detail.tempData=V:_.Ue(l,V,30))};
_.t.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15563_playerManager.stopVideo()};
_.t.setupYtdPlayer=function(){var W=this,l;return _.g(function(V){if(V.nextAddress==1)return V.yield(W.ytdPlayer.getPlayerPromise(),2);l=V.yieldResult;l.addEventListener("onStateChange",function(f){W.onPlayerStateChange(f)});
l.addEventListener("onCueRangeExit",function(f){W.onCueRangeExit(f)});
_.ju(V)})};
_.t.onPlayerStateChange=function(W){if(W===1&&(W=this.ytdPlayer.getPlayer())){var l=W.getCurrentTime(),V,f,r=l+((f=(V=this.data)==null?void 0:V.playbackDurationMs)!=null?f:0)/1E3;W.addCueRange("playback",l,r);_.Gt(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15563_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.t.onCueRangeExit=function(W){W==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.t.toggleMute=function(W){var l=this,V;return _.g(function(f){if(f.nextAddress==1)return f.yield(l.ytdPlayer.getPlayerPromise(),2);V=f.yieldResult;W?V.mute():V.unMute();_.ju(f)})};
_.rc.Object.defineProperties(lt.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var W,l;if(!((W=this.data)==null?0:(l=W.accessibilityData)==null?0:l.label))return"Ad primary link";var V,f;return _.wg("AD_TITLE",{title:(V=this.data)==null?void 0:(f=V.accessibilityData)==null?void 0:f.label})}}});
lt.prototype.onYtMastheadHidden=lt.prototype.onYtMastheadHidden;lt.prototype.onYtNavigate=lt.prototype.onYtNavigate;lt.prototype.onYtToggleButton=lt.prototype.onYtToggleButton;lt.prototype.dataChanged=lt.prototype.dataChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],lt.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],lt.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],lt.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],lt.prototype,"useYtdPlayer",void 0);_.a([_.Aa("ytd-toggle-button-renderer"),_.z("design:type",Object)],lt.prototype,"muteButton",void 0);_.a([_.b(),_.z("design:type",Object)],lt.prototype,"buttonOverrides",void 0);
_.a([_.G("data.accessibilityData.label"),_.z("design:type",String),_.z("design:paramtypes",[])],lt.prototype,"titleAriaLabel",null);_.a([_.Aa("#replay-button"),_.z("design:type",Object)],lt.prototype,"replayButton",void 0);_.a([_.Aa("#player-container"),_.z("design:type",Object)],lt.prototype,"playerContainer",void 0);_.a([_.Aa("#player"),_.z("design:type",Object)],lt.prototype,"embeddedPlayer",void 0);_.a([_.Aa("#ytd-player"),_.z("design:type",Object)],lt.prototype,"ytdPlayer",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lt.prototype,"dataChanged",null);_.a([_.XI("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],lt.prototype,"onYtToggleButton",null);_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],lt.prototype,"onYtNavigate",null);
_.a([_.XI("yt-masthead-hidden"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lt.prototype,"onYtMastheadHidden",null);_.a([_.A({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],lt);
_.Z(lt,"ytd-video-masthead-ad-primary-video-renderer",function(){if(Ejk!==void 0)return Ejk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Ejk=W},{mode:2});var $2Z;var s8=function(){var W=_.I.apply(this,arguments)||this;W.collapsed=!1;W.impressionResolver=_.yH();W.JSC$15567_activeViewMeasurementDataResolver=_.yH();W.actionMap={"yt-mute-ad-action":"handleMuteAd"};return W};
_.v(s8,_.I);_.t=s8.prototype;_.t.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"}}}};
_.t.ready=function(){var W=this;_.GS(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){W.expandAd()});
this.hostElement.addEventListener("yt-action",function(l){if(l.detail.actionName==="yt-service-request"){var V=l.detail.args[1];V.videoMastheadAdMuteCommand&&(W.collapseAd(V.videoMastheadAdMuteCommand.encryptedMastheadId),l.stopPropagation())}})};
_.t.attached=function(){var W=this;_.yq(function(){W.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(l){if(!W.collapsed){l=_.L(l);for(var V=l.next();!V.done;V=l.next())V=V.value,eS(V.baseUrl,V.attributionSrcMode);W.data.impressionCommand=void 0}});
this.JSC$15567_activeViewMeasurementDataResolver.promise.then(function(l){W.ytdActiveViewBehavior.enableActiveViewMeasurement(l,15)});
_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.t.dataChanged=function(){var W;((W=this.data.impressionCommand)==null?0:W.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var l;((l=this.data)==null?0:l.activeView)&&this.JSC$15567_activeViewMeasurementDataResolver.resolve(this.data.activeView);(W=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(W.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.t.computeWidescreen=function(W){var l;return!!(W&&((l=_.k(W,JSL))==null?0:l.isWidescreen))};
_.t.computeExpandable=function(W){return!!(W&&W.length>0)};
_.t.onIronResize=function(){if(this.expandable){var W=_.GS(this.hostElement).querySelector("#expandable-tile-container :first-child");W&&!W.expanded&&(W.expanded=!0)}};
_.t.handleMuteAd=function(){this.collapseAd(null)};
_.t.restoreCollapsedState=function(W){this.collapsed=_.MT().get("HIDDEN_MASTHEAD_ID")===W};
_.t.collapseAd=function(W){if(W){var l=_.MT();l.set("HIDDEN_MASTHEAD_ID",W);l.save()}(W=_.GS(this.hostElement).querySelector("#video"))&&_.FN(W,"yt-masthead-hidden");this.collapsed=!0};
_.t.expandAd=function(){var W=_.MT();W.set("HIDDEN_MASTHEAD_ID",!1);W.save();location.reload()};
_.t.detached=function(){_.U("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
s8.prototype.onIronResize=s8.prototype.onIronResize;s8.prototype.dataChanged=s8.prototype.dataChanged;_.a([_.F(_.Wo),_.z("design:type",Object)],s8.prototype,"ironResizableBehavior",void 0);_.a([_.F(BZ),_.z("design:type",Object)],s8.prototype,"ytdActiveViewBehavior",void 0);_.a([_.F(_.uy),_.z("design:type",Object)],s8.prototype,"ytdGridStateAwareBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],s8.prototype,"ytActionHandlerBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],s8.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],s8.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],s8.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.z("design:type",Boolean)],s8.prototype,"widescreen",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.z("design:type",Boolean)],s8.prototype,"expandable",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],s8.prototype,"collapsed",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],s8.prototype,"dataChanged",null);
_.a([_.XI("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],s8.prototype,"onIronResize",null);_.a([_.A({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],s8);
_.Z(s8,"ytd-video-masthead-ad-v3-renderer",function(){if($2Z!==void 0)return $2Z;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return $2Z=W},{mode:2});var Lx=function(){return _.I.apply(this,arguments)||this};
_.v(Lx,_.I);_.t=Lx.prototype;_.t.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.t.ready=function(){var W=this;rFq(function(){W.isAttached&&nh(W.JSC$15572_storedAdSlotMetadata,W.JSC$15572_storedAdLayoutMetadata,W.adSlotMetadata,W.adLayoutMetadata)&&e9(YF(),W.JSC$15572_storedAdSlotMetadata,W.JSC$15572_storedAdLayoutMetadata)})};
_.t.attached=function(){nh(this.JSC$15572_storedAdSlotMetadata,this.JSC$15572_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&ojM(YF(),this.JSC$15572_storedAdSlotMetadata,this.JSC$15572_storedAdLayoutMetadata)};
_.t.detached=function(){nh(this.JSC$15572_storedAdSlotMetadata,this.JSC$15572_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&e9(YF(),this.JSC$15572_storedAdSlotMetadata,this.JSC$15572_storedAdLayoutMetadata)};
_.t.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15572_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15572_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15572_storedAdLayoutMetadata!==void 0&&this.JSC$15572_storedAdSlotMetadata!==void 0&&e9(YF(),this.JSC$15572_storedAdSlotMetadata,this.JSC$15572_storedAdLayoutMetadata),ojM(YF(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15572_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15572_storedAdSlotMetadata=this.adSlotMetadata)};
_.rc.Object.defineProperties(Lx.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.adLayoutMetadata}}});
Lx.prototype.onAdMetadataChanged=Lx.prototype.onAdMetadataChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Lx.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Lx.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Lx.prototype,"data",void 0);_.a([_.G("data.adLayoutMetadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lx.prototype,"adLayoutMetadata",null);
_.a([_.b(),_.z("design:type",Object)],Lx.prototype,"adSlotMetadata",void 0);_.a([_.TS("adLayoutMetadata","adSlotMetadata"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Lx.prototype,"onAdMetadataChanged",null);_.a([_.A({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Lx);
_.Z(Lx,"ytd-page-top-ad-layout-renderer",function(){if(x2M!==void 0)return x2M;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return x2M=
W},{mode:_.bD("kevlar_poly_si_batch_j070")?1:2});var WcL;var yJ=function(){var W=_.I.apply(this,arguments)||this;W.noBottomMargin=!1;W.overlayDensity=0;W.typographyBump=!1;return W};
_.v(yJ,_.I);_.t=yJ.prototype;
_.t.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]]"}}}}}};
_.t.ready=function(){var W=this;rFq(function(){W.isAttached&&W.adSlotMetadata&&pnB(YF(),W.adSlotMetadata)})};
_.t.attached=function(){if(this.adSlotMetadata){var W;if(this.adSlotMetadata===((W=this.data)==null?void 0:W.adSlotMetadata))byk(YF(),this.adSlotMetadata);else{var l;_.Qe(Error("Qh`"+this.adSlotMetadata+"`"+((l=this.data)==null?void 0:l.adSlotMetadata)))}}};
_.t.detached=function(){this.adSlotMetadata&&pnB(YF(),this.adSlotMetadata)};
_.t.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.t.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&pnB(YF(),this.adSlotMetadata),byk(YF(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.rc.Object.defineProperties(yJ.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var W,l,V=_.k((W=this.data)==null?void 0:(l=W.fulfillmentContent)==null?void 0:l.fulfilledLayout,_.URk),f;return(W=(f=_.k(V==null?void 0:V.renderingContent,DRk))==null?void 0:f.layout)?W.toLowerCase().replace(/_/g,"-"):""}}});
yJ.prototype.onAdSlotMetadataChanged=yJ.prototype.onAdSlotMetadataChanged;yJ.prototype.onTypographyBumpChanged=yJ.prototype.onTypographyBumpChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],yJ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],yJ.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],yJ.prototype,"rendererBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],yJ.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],yJ.prototype,"noBottomMargin",void 0);_.a([_.b(),_.z("design:type",Object)],yJ.prototype,"overlayDensity",void 0);_.a([_.b(),_.z("design:type",Object)],yJ.prototype,"typographyBump",void 0);_.a([_.Aa("ytd-in-feed-ad-layout-renderer"),_.z("design:type",HTMLElement)],yJ.prototype,"inFeedAdLayoutRenderer",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",String),_.z("design:paramtypes",[])],yJ.prototype,"layout",null);_.a([_.TS("typographyBump"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yJ.prototype,"onTypographyBumpChanged",null);_.a([_.TS("data.adSlotMetadata"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yJ.prototype,"onAdSlotMetadataChanged",null);
_.a([_.A({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],yJ);
_.Z(yJ,"ytd-ad-slot-renderer",function(){if(WcL!==void 0)return WcL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return WcL=W},{mode:_.bD("kevlar_poly_si_batch_j077")?
1:2});var lTv;var gW=function(){return _.I.apply(this,arguments)||this};
_.v(gW,_.I);_.t=gW.prototype;_.t.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"}}}};
_.t.maybeComputeHref=function(){return null};
_.t.onTap=function(){};
_.t.onThumbnailContainerClick=function(W){this.onClick(W)};
_.t.onClick=function(W){var l,V=(l=this.data)==null?void 0:l.navigationEndpoint;V&&_.k(V,_.Bh)&&(this.ytSparklesClickLocationBehavior.handleClick(V,W,!1),W.stopPropagation())};
_.t.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var W=_.L(this.data.impressionUrls),l=W.next();!l.done;l=W.next())l=l.value,ik8(l,XE6(l));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",gW.JSC$15580_DEFAULT_CLICK_LOCATION_BEHAVIOR,gW.JSC$15580_CLICK_LOCATION_ID_MAP);this.thumbnail&&(W=this.thumbnail.getElementsByTagName("a"),W.length>0&&(W=W.namedItem("thumbnail"))&&
W.removeAttribute("href"))}};
_.t.attached=function(){var W=this;_.U("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.t.detached=function(){_.U("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.rc.Object.defineProperties(gW.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.U("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.U("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
gW.prototype.dataChanged=gW.prototype.dataChanged;gW.prototype.onTap=gW.prototype.onTap;gW.JSC$15580_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
gW.JSC$15580_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"}];_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],gW.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);_.a([_.F(BZ),_.z("design:type",Object)],gW.prototype,"ytdActiveViewBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],gW.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],gW.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.wx.YtSparklesClickLocationBehavior),_.z("design:type",Object)],gW.prototype,"ytSparklesClickLocationBehavior",void 0);
_.a([_.b({selector:_.EZ}),_.z("design:type",Object)],gW.prototype,"isGridViewEnabled",void 0);_.a([_.G("isGridViewEnabled"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],gW.prototype,"watchFeedBigThumbs",null);_.a([_.G("isGridViewEnabled"),_.b({reflectToAttribute:!0}),_.z("design:type",String),_.z("design:paramtypes",[])],gW.prototype,"thumbnailWidth",null);_.a([_.b(),_.z("design:type",Object)],gW.prototype,"data",void 0);
_.a([_.Aa("ytd-thumbnail"),_.z("design:type",HTMLElement)],gW.prototype,"thumbnail",void 0);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gW.prototype,"onTap",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gW.prototype,"dataChanged",null);_.a([_.A({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],gW);
_.Z(gW,"ytd-compact-promoted-video-renderer",function(){if(lTv!==void 0)return lTv;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return lTv=W},{mode:1});var VfZ;_.e1("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var P7=function(){return _.I.apply(this,arguments)||this};
_.v(P7,_.I);P7.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],P7.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],P7.prototype,"data",void 0);_.a([_.A({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],P7);
_.Z(P7,"ytd-search-pyv-renderer",function(){if(VfZ!==void 0)return VfZ;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return VfZ=W},{mode:1});var fTe;_.e1("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var nx=function(){var W=_.I.apply(this,arguments)||this;W.roundedContainer=!0;W.JSC$15588_handleOpenPostCommentDialogActionAfterStamp=!1;W.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return W};
_.v(nx,_.I);_.t=nx.prototype;
_.t.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}}};
_.t.onStampFinished=function(){this.JSC$15588_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.t.handleSignalActionOpenPostCommentDialogAction=function(){var W=_.GS(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");W?W.openDialog():this.JSC$15588_handleOpenPostCommentDialogActionAfterStamp=!0};
_.t.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.t.computeHideBorder=function(){return this.isInEngagementPanel};
_.t.computeIsCompact=function(){return this.isInEngagementPanel};
_.t.computeUsesCompactLockup=function(W){return W==="BACKSTAGE_SURFACE_TYPE_HOME"||W==="BACKSTAGE_SURFACE_TYPE_SEARCH"||W==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||W==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||W==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||W==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.t.computeUsesFullLockup=function(){var W,l=(W=this.data)==null?void 0:W.post,V;W=(V=_.k(l,jjB))==null?void 0:V.surface;var f;V=(f=_.k(l,mRL))==null?void 0:f.originalPost;var r;if(f=W||((r=_.k(V,jjB))==null?void 0:r.surface))return!this.computeUsesCompactLockup(f)&&this.useUpdatedRepostUi;var R;return((R=_.k(l,mRL))==null?void 0:R.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.rc.Object.defineProperties(nx.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var W,l;return((l=_.k((W=this.data)==null?void 0:W.post,jjB))==null?void 0:l.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.useUpdatedRepostUi}}});
nx.prototype.onYtCommentModerationPanelEmpty=nx.prototype.onYtCommentModerationPanelEmpty;nx.prototype.onStampFinished=nx.prototype.onStampFinished;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],nx.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],nx.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],nx.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],nx.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],nx.prototype,"roundedContainer",void 0);_.a([_.b({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.z("design:type",Boolean)],nx.prototype,"hideBorder",void 0);_.a([_.b({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.z("design:type",Boolean)],nx.prototype,"isCompact",void 0);
_.a([_.b({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.z("design:type",Boolean)],nx.prototype,"usesFullLockup",void 0);_.a([_.XI("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nx.prototype,"onStampFinished",null);
_.a([_.XI("ytd-comment-moderation-panel-empty"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],nx.prototype,"onYtCommentModerationPanelEmpty",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],nx.prototype,"isInEngagementPanel",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],nx.prototype,"useUpdatedRepostUi",null);
_.a([_.A({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],nx);
_.Z(nx,"ytd-backstage-post-thread-renderer",function(){if(fTe!==void 0)return fTe;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return fTe=W},{mode:1});var rwX;var Cx=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.v(Cx,_.I);Cx.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
Cx.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var W=this.data.thumbnail.thumbnails;this.isDarkTheme&&(W=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(W=_.KP(W,24,void 0,"height"))?W:void 0}};
Cx.prototype.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
Cx.prototype.computeHasText=function(){var W;return!((W=this.data)==null||!W.text)};
_.rc.Object.defineProperties(Cx.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.NI(this.bannerImageUrl))+'");'}}});
Cx.prototype.computeHasText=Cx.prototype.computeHasText;Cx.prototype.computeBannerImageUrl=Cx.prototype.computeBannerImageUrl;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Cx.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Cx.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Cx.prototype,"ytRendererBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],Cx.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Boolean)],Cx.prototype,"isDarkTheme",void 0);_.a([_.b(),_.z("design:type",String)],Cx.prototype,"bannerImageUrl",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.z("design:type",Boolean)],Cx.prototype,"hasText",void 0);_.a([_.TS("data","isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Cx.prototype,"computeBannerImageUrl",null);
_.a([_.TS("data.text"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Cx.prototype,"computeHasText",null);_.a([_.G("bannerImageUrl"),_.z("design:type",Object),_.z("design:paramtypes",[])],Cx.prototype,"bannerStyle",null);_.a([_.A({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],Cx);
_.Z(Cx,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(rwX!==void 0)return rwX;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return rwX=W},{mode:1});var Re9;var c7=function(){return _.I.apply(this,arguments)||this};
_.v(c7,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],c7.prototype,"data",void 0);_.a([_.A({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],c7);
_.Z(c7,"ytd-backstage-zero-state-renderer",function(){if(Re9!==void 0)return Re9;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Re9=W},{mode:1});var tf1;var B7=function(){return _.I.apply(this,arguments)||this};
_.v(B7,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],B7.prototype,"data",void 0);_.a([_.b({computed:"computeIcon_(data.icon)"}),_.z("design:type",String)],B7.prototype,"icon",void 0);_.a([_.A({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],B7);
_.Z(B7,"ytd-post-filter-zero-state-renderer",function(){if(tf1!==void 0)return tf1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return tf1=W},{mode:1});var scv;var Lce={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},dW=function(){return _.I.apply(this,arguments)||this};
_.v(dW,_.I);dW.prototype.configureRendererStamper=function(){return Lce};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],dW.prototype,"rendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],dW.prototype,"data",void 0);_.a([_.b({computed:"computeIcon_(data.icon)"}),_.z("design:type",String)],dW.prototype,"icon",void 0);_.a([_.A({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],dW);
_.Z(dW,"ytd-post-scheduling-zero-state-renderer",function(){if(scv!==void 0)return scv;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return scv=W},{mode:1});var ywk;var JR=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return W};
_.v(JR,_.I);JR.prototype.onTabsActivate=function(W){this.data&&this.data.tabs&&_.FN(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[W.detail.selected].navigationEndpoint})};
JR.prototype.shouldShowTotalCount=function(W){return W&&W.totalCount!==void 0};
JR.prototype.handleUpdatePostsTotalCountAction=function(W){var l=this.get(["data.tabs",1,"totalCount"]),V=this.get("updatePostsTotalCountAction.updateType",W);W=this.get("updatePostsTotalCountAction.number",W);l!==void 0&&V!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&W&&(V==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(l)+W):V==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(l)-W))};
_.rc.Object.defineProperties(JR.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var W=0,l=this.data.tabs.length;W<l;W++)if(this.data.tabs[W].selected)return W;return 0}}});
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],JR.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],JR.prototype,"rendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],JR.prototype,"data",void 0);_.a([_.G("data.tabs"),_.z("design:type",Number),_.z("design:paramtypes",[])],JR.prototype,"selected",null);_.a([_.A({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],JR);
_.Z(JR,"ytd-post-stream-filter-renderer",function(){if(ywk!==void 0)return ywk;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return ywk=W},{mode:1});var gEM;var D8=function(){return _.I.apply(this,arguments)||this};
_.v(D8,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],D8.prototype,"kevlarBehaviors",void 0);_.a([_.b(),_.z("design:type",Object)],D8.prototype,"data",void 0);_.a([_.A({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],D8);
_.Z(D8,"ytd-channel-age-gate-renderer",function(){if(gEM!==void 0)return gEM;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return gEM=W},{mode:1});var P2e;_.e1("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var U8=function(){var W=_.I.apply(this,arguments)||this;W.data=null;return W};
_.v(U8,_.I);U8.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.rc.Object.defineProperties(U8.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return((W=this.data)==null?0:(l=W.title)==null?0:(V=l.runs)==null?0:V.length)?147:160}}});
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],U8.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],U8.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],U8.prototype,"imageSizePx",null);_.a([_.A({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],U8);
_.Z(U8,"ytd-channel-owner-empty-state-renderer",function(){if(P2e!==void 0)return P2e;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return P2e=W},{mode:1});var nEM;var C2$;var ut=function(){var W=_.I.apply(this,arguments)||this;W.boundSubmitSearch=function(){W.submitSearch()};
W.boundClearSearch=function(){W.clearSearch()};
return W};
_.v(ut,_.I);_.t=ut.prototype;_.t.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]]"}}}}}};
_.t.toggleClearButton=function(){this.hideClearButton=$b8||!this.input.value};
_.t.submitOnEnterKeyUp=function(W){W.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.t.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.t.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.t.submit=function(){_.FN(this.hostElement,"search-query-changed",this.input.value)};
ut.prototype.toggleClearButton=ut.prototype.toggleClearButton;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],ut.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ut.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ut.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ut.prototype,"hideClearButton",void 0);_.a([_.b(),_.z("design:type",Object)],ut.prototype,"boundSubmitSearch",void 0);_.a([_.b(),_.z("design:type",Object)],ut.prototype,"boundClearSearch",void 0);_.a([_.Aa("#input"),_.z("design:type",Object)],ut.prototype,"input",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ut.prototype,"toggleClearButton",null);
_.a([_.A({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],ut);
_.Z(ut,"ytd-channel-switcher-search-box-renderer",function(){if(C2$!==void 0)return C2$;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return C2$=W},{mode:1});var cwk;var ka=function(){var W=_.I.apply(this,arguments)||this;W.boundSubmit=function(){W.submit()};
return W};
_.v(ka,_.I);_.t=ka.prototype;_.t.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"}}}}};
_.t.ready=function(){var W=this;this.form.addEventListener("submit",function(l){return W.onSubmit(l)})};
_.t.onSubmit=function(W){W.preventDefault();return!1};
_.t.toggleClearButton=function(){this.hideClearButton=$b8||!this.input.value};
_.t.submitOnEnterKeyUp=function(W){W.keyCode===13&&this.submit()};
_.t.submit=function(){var W=this.data.endpoint,l=(0,_.MC.unsafeClone)(W);_.k(l,_.ZJ)?_.k(l,_.ZJ).query=this.input.value:_.k(l,_.Om)&&(_.k(l,_.Om).query=this.input.value);var V=_.k(l.commandMetadata,_.XN);(V==null?0:V.url)?(V.url=_.OL(V.url,"query",this.input.value),_.FN(this.hostElement,"yt-navigate",{endpoint:l})):_.k(l,nSL)?(_.k(l,nSL).channelSwitcherQuery=this.input.value,_.tY().resolve(_.s6).resolveCommand(l,{form:{element:this.hostElement}})):(W=Error("Rh`"+JSON.stringify(W)),_.wv(W))};
_.t.getUrl=function(W){return this.get("commandMetadata.webCommandMetadata.url",W)};
ka.prototype.toggleClearButton=ka.prototype.toggleClearButton;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ka.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ka.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ka.prototype,"hideClearButton",void 0);
_.a([_.b(),_.z("design:type",Object)],ka.prototype,"boundSubmit",void 0);_.a([_.Aa("#form"),_.z("design:type",HTMLFormElement)],ka.prototype,"form",void 0);_.a([_.Aa("#input"),_.z("design:type",Object)],ka.prototype,"input",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ka.prototype,"toggleClearButton",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],ka);
_.Z(ka,"ytd-search-box-renderer",function(){if(cwk!==void 0)return cwk;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return cwk=W},{mode:2});var v7=function(){var W=_.I.apply(this,arguments)||this;W.showSearchBox=!0;return W};
_.v(v7,_.I);v7.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],v7.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],v7.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],v7.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],v7.prototype,"showSearchBox",void 0);_.a([_.A({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],v7);
_.Z(v7,"ytd-channel-switcher-header-renderer",function(){if(nEM!==void 0)return nEM;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return nEM=W},{mode:1});var BBe;var dKa;var H7=function(){var W=_.I.apply(this,arguments)||this;W.isDisplayed=!0;return W};
_.v(H7,_.I);_.t=H7.prototype;_.t.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.dataChanged=function(){this.isDisplayed=!0};
_.t.computeType=function(W){return W||"UNKNOWN"};
_.t.onYtServiceRequestCompleted=function(W){W.stopPropagation();this.isDisplayed=!1};
_.t.onClose=function(){this.isDisplayed=!1};
H7.prototype.onYtServiceRequestCompleted=H7.prototype.onYtServiceRequestCompleted;H7.prototype.dataChanged=H7.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],H7.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],H7.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],H7.prototype,"data",void 0);
_.a([_.b({computed:"computeType(data.type)",reflectToAttribute:!0}),_.z("design:type",String)],H7.prototype,"type",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],H7.prototype,"isDisplayed",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],H7.prototype,"dataChanged",null);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],H7.prototype,"onYtServiceRequestCompleted",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],H7);
_.Z(H7,"ytd-alert-with-button-renderer",function(){if(dKa!==void 0)return dKa;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return dKa=W},{mode:1});var Kx=function(){var W=_.I.apply(this,arguments)||this;W.noResult=!1;W.enableAlertBanner=!1;W.dismissedAlertBanner=!1;W.hideCreateChannelButton=!1;W.boundDismissAlertBanner=function(){W.dismissAlertBanner()};
W.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return W};
_.v(Kx,_.I);_.t=Kx.prototype;_.t.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.t.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.t.updateChannelSwitcherAction=function(W){var l;W=(l=_.k(W,RCL))==null?void 0:l.page;_.k(W,rUB)!==void 0&&(this.data=_.k(W,rUB))};
_.t.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]]"}}}}}};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.t.searchQueryChanged=function(W,l){if(this.data&&this.data.contents&&this.data.contents.length){W=[];var V=[];this.hideCreateChannelButton=this.noResult=!1;for(var f=document.querySelectorAll("ytd-account-item-renderer"),r=_.L(f),R=r.next();!R.done;R=r.next())R=R.value,V.push(R),R.style.display="block";this.resetRightBorder(V);if(l){this.hideCreateChannelButton=!0;for(V=1;V<this.data.contents.length;V++)if(R=this.data.contents[V],_.k(R,yS9)){var y=void 0,P=void 0;r=(y=_.k(R,yS9))==null?void 0:(P=
y.accountName)==null?void 0:P.simpleText;P=y=void 0;R=(y=_.k(R,yS9))==null?void 0:(P=y.channelHandle)==null?void 0:P.simpleText;(y=f[V-1])&&r&&_.nq(r,l)?W.push(y):_.U("enable_handle_search_on_channel_switcher")&&y&&R&&_.nq(R.toString(),l.toString())?W.push(y):y.style.display="none"}W.length===0&&(this.noResult=!0);this.resetRightBorder(W)}}};
_.t.resetRightBorder=function(W){for(var l=0;l<W.length;l++)W[l].style.borderRight=!this.hideCreateChannelButton&&(l+2)%3===0||this.hideCreateChannelButton&&(l+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.t.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.t.setShowSearchBox=function(W){if(W&&W.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var l=0;l<W.contents.length;l++)_.k(W.contents[l],_.P0)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.t.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.rc.Object.defineProperties(Kx.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null?0:W.contents)}}});
Kx.prototype.onContinuationItemsUpdated=Kx.prototype.onContinuationItemsUpdated;Kx.prototype.searchQueryChanged=Kx.prototype.searchQueryChanged;Kx.prototype.onDataChanged=Kx.prototype.onDataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Kx.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Kx.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Kx.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.vH),_.z("design:type",Object)],Kx.prototype,"ytContinuationHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Kx.prototype,"data",void 0);_.a([_.Aa("ytd-channel-switcher-header-renderer"),_.z("design:type",Object)],Kx.prototype,"channelSwitcherHeaderRenderer",void 0);_.a([_.b(),_.z("design:type",Object)],Kx.prototype,"noResult",void 0);
_.a([_.b(),_.z("design:type",Object)],Kx.prototype,"enableAlertBanner",void 0);_.a([_.b(),_.z("design:type",Object)],Kx.prototype,"dismissedAlertBanner",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Kx.prototype,"hideCreateChannelButton",void 0);_.a([_.G("data.contents"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Kx.prototype,"isLoading",null);_.a([_.b(),_.z("design:type",Object)],Kx.prototype,"boundDismissAlertBanner",void 0);
_.a([_.b({computed:"computeButtonOverride()"}),_.z("design:type",Object)],Kx.prototype,"buttonOverride",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Kx.prototype,"onDataChanged",null);_.a([_.XI("search-query-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,String]),_.z("design:returntype")],Kx.prototype,"searchQueryChanged",null);
_.a([_.XI("yt-next-continuation-data-updated"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Kx.prototype,"onContinuationItemsUpdated",null);_.a([_.A({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Kx);
_.Z(Kx,"ytd-channel-switcher-page-renderer",function(){if(BBe!==void 0)return BBe;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return BBe=W},{mode:1});var Jw1;var DKv;var F1=function(){var W=_.I.apply(this,arguments)||this;W.images=[];W.selectedImageIndex=0;return W};
_.v(F1,_.I);_.t=F1.prototype;
_.t.ready=function(){_.YJ(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.YJ(this.JSC$15633_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.YJ(this.JSC$15633_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.YJ(this.JSC$15633_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.t.onThumbnailClick=function(W){if(W=W.event_.detail)this.selectedImageIndex=this.images.indexOf(W)};
_.t.updateImageThumbnails=function(W){W=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:W.event_.detail});this.images.splice(this.selectedImageIndex,1,W);this.images=[].concat(_.QK(this.images))};
_.t.cancelImageRepositions=function(){this.selectedImageIndex=0;_.FN(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.t.saveImageRepositions=function(){this.selectedImageIndex=0;_.FN(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.rc.Object.defineProperties(F1.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var W=this;return(this.images||[]).map(function(l,V){return{image:l,selected:V===W.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],F1.prototype,"ytRendererstamperBehavior",void 0);_.a([_.Aa("ytd-backstage-image-preview-renderer"),_.z("design:type",Object)],F1.prototype,"JSC$15633_imagePreviewContainer",void 0);_.a([_.Aa(".thumbnail-images-container"),_.z("design:type",HTMLElement)],F1.prototype,"thumbnailImagesContainer",void 0);_.a([_.b(),_.z("design:type",Array)],F1.prototype,"images",void 0);
_.a([_.b(),_.z("design:type",Object)],F1.prototype,"repositionInstructions",void 0);_.a([_.b(),_.z("design:type",Object)],F1.prototype,"selectedImageIndex",void 0);_.a([_.G("images","selectedImageIndex"),_.z("design:type",Array),_.z("design:paramtypes",[])],F1.prototype,"thumbnailRendererDatas",null);_.a([_.G("images","selectedImageIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],F1.prototype,"selectedImageData",null);
_.a([_.A({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],F1);
_.Z(F1,"ytd-backstage-multi-image-reposition-renderer",function(){if(DKv!==void 0)return DKv;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return DKv=W},{mode:1});var GM=function(W,l){_.aj.call(this);this.uploadUrl=W;this.channelId=l;this.imagesUploadData=[]};
_.v(GM,_.aj);GM.prototype.getAllUploadStatuses=function(){var W=this,l,V,f;return _.g(function(r){if(r.nextAddress==1)return r.yield(UKB(W),2);l=r.yieldResult;V=l.get("succeed");f=l.get("failed");return r.return(V.concat(f))})};
var kV9=function(W){var l,V;return _.g(function(f){if(f.nextAddress==1)return f.yield(UKB(W),2);l=f.yieldResult;V=l.get("failed");V.length>0&&u8a(W,V);return f.return(W.getAllUploadStatuses())})},UKB=function(W){var l,V,f,r,R,y,P;
return _.g(function(n){if(n.nextAddress==1)return l=new Map,n.yield(Promise.allSettled(W.imagesUploadData.map(function(B){return B.uploadPromise})),2);
V=n.yieldResult;f=[];r=_.L(V);for(R=r.next();!R.done;R=r.next())y=R.value,y.status==="fulfilled"&&f.push(y.value);P=W.imagesUploadData.map(function(B){return B.image}).filter(function(B){return f.every(function(d){return d.id!==B.id})});
l.set("succeed",f);l.set("failed",P);return n.return(l)})},u8a=function(W,l){l=_.L(l);
for(var V=l.next();!V.done;V=l.next()){var f=W;V=V.value;vE9(f,V.id)>=0&&f.cancel(V.id);var r=new HLM(V),R=_.SdL(f.uploadUrl,{"X-YouTube-ChannelId":f.channelId},V.imageBlob);r.transfer=R;r.uploadPromise=Kc9(R,V);f.imagesUploadData.push(r);R.run()}};
GM.prototype.cancel=function(W){var l=vE9(this,W);l!==-1&&((l=this.imagesUploadData[l].transfer)&&l.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(V){return V.image.id!==W}))};
var vE9=function(W,l){return W.imagesUploadData.findIndex(function(V){return V.image.id===l})},Kc9=function(W,l){return new Promise(function(V,f){W.listen("l",function(){var r=W.getResponseText();
r?(r=JSON.parse(r).encryptedBlobId,l.encryptedBlobId=r,V(l)):f("upload failed")});
W.listen("n",function(){f("upload failed")})})},HLM=function(W){this.image=W};var OwS=function(W,l,V,f,r){this.id=W;this.imageBlob=l;this.localImageSrc=V;this.naturalWidth=f;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 Fca=[".jpeg",".jpg",".png"],bt=function(){var W=_.I.apply(this,arguments)||this;W.showImagesPreview=!1;W.pollOptions=[];W.errorMessage="";W.optionPlaceholderText="";W.optionDefaultText="";W.JSC$15644_imageId=0;W.maxFileSizeMb=0;W.maxAspectRatio=0;W.invalidFileSizeError="";W.invalidAspectRatioError="";W.invalidFileTypeError="";W.imageSelector=new wt(null,"single_file",Fca);return W};
_.v(bt,_.I);_.t=bt.prototype;_.t.ready=function(){_.YJ(this.imageSelector,"j",this.onImageSelect,!1,this);_.YJ(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.YJ(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.t.dataChanged=function(){var W,l,V=_.k((W=this.data)==null?void 0:(l=W.cellTemplate)==null?void 0:l.onEmptyCellTap,IuX);if(V&&V.uploadUrl&&V.channelId){var f;this.maxFileSizeMb=((f=V.imageValidationInfo)==null?void 0:f.maxFileSizeMb)||0;var r;this.maxAspectRatio=((r=V.imageValidationInfo)==null?void 0:r.allowedMaxAspectRatio)||0;var R;this.invalidFileSizeError=this.getSimpleString((R=this.data)==null?void 0:R.invalidFileSizeError);var y;this.invalidAspectRatioError=this.getSimpleString((y=this.data)==
null?void 0:y.invalidAspectRatioError);var P;this.invalidFileTypeError=this.getSimpleString((P=this.data)==null?void 0:P.invalidFileTypeError);this.uploadManager=new GM(V.uploadUrl,V.channelId)}};
_.t.onEditorInfoChange=function(){this.optionPlaceholderText=_.dE(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.dE(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.t.observeAddImageError=function(){this.errorMessage!==""&&_.FN(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.t.onPollOptionsChange=function(){for(var W=!1,l=[],V=0;V<this.pollOptions.length;V++){var f=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(V+1);this.pollOptions[V].placeholderText!==f?(W=!0,l.push(Object.assign({},this.pollOptions[V],{placeholderText:f}))):l.push(this.pollOptions[V])}W&&(this.pollOptions=l);this.isValid()?_.FN(this.hostElement,"yt-commentbox-post-enable"):_.FN(this.hostElement,"yt-commentbox-post-disable")};
_.t.createPollOptions=function(W){var l=[],V;W=(V=W==null?void 0:W.minPollOptions)!=null?V:0;for(V=0;V<W;V++)l.push(this.createPollOption());return l};
_.t.onImageSelect=function(W){var l=this,V,f,r,R,y,P;return _.g(function(n){if(n.nextAddress==1){if(l.selectedImageIndex===void 0)return n.jumpTo(0);V=W.files[0];l.errorMessage="";f=l.validateImage(V);if(f!=="")return l.errorMessage=f,n.return();r=new GP(l.maxAspectRatio,!1,!0);return n.yield(r.transform(V),3)}if(n.nextAddress!=4)return R=n.yieldResult,R.transformedData?R.invalidAspectRatio?(l.errorMessage=l.invalidAspectRatioError,n.return()):n.yield(aEz(l.JSC$15644_imageId,W.files[0],R.transformedData),
4):(l.errorMessage=l.invalidFileTypeError,n.return());y=n.yieldResult;l.JSC$15644_imageId++;u8a(l.uploadManager,[y]);P=Object.assign({},l.pollOptions[l.selectedImageIndex],{image:y});l.pollOptions.splice(l.selectedImageIndex,1,P);l.refreshPollOptions();_.FN(l.hostElement,"yt-backstage-poll-image-select");_.ju(n)})};
_.t.validateImage=function(W){return W.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.t.refreshPollOptions=function(){this.pollOptions=[].concat(_.QK(this.pollOptions))};
_.t.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.QK(this.pollOptions),[this.createPollOption()]))};
_.t.onRemovePollOption=function(W){var l=this.pollOptions[W.model.index];l&&l.image&&this.uploadManager.cancel(l.image.id);this.pollOptions.splice(W.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.FN(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.t.onTextInput=function(){this.refreshPollOptions()};
_.t.onImageButtonClick=function(W){this.selectedImageIndex=W.model.index;this.imageSelector.click()};
_.t.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.t.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.t.saveImageRepositions=function(W){W=W.event_.detail;for(var l=0,V=[],f=_.L(this.pollOptions),r=f.next();!r.done;r=f.next())r=r.value,r.image!==void 0?(r=Object.assign({},r,{image:W[l]}),V.push(r),l++):V.push(r);this.showImagesPreview=!1;this.pollOptions=[].concat(_.QK(V))};
_.t.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 W=0,l=_.L(this.pollOptions),V=l.next();!V.done;V=l.next())if(V=V.value,V.optionText.trim()!==""||V.image!==void 0){if(!V.image||this.hasCustomOptionText&&V.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;W++}return W>=Number(this.editorInfo.minPollOptions)};
_.t.getAllUploadStatuses=function(){var W=this,l,V,f,r;return _.g(function(R){if(R.nextAddress==1)return R.yield(W.uploadManager.getAllUploadStatuses(),2);l=R.yieldResult;V=_.L(l);for(f=V.next();!f.done;f=V.next())if(r=f.value,r.encryptedBlobId===void 0)return R.return(kV9(W.uploadManager));return R.return(l)})};
_.t.getPostCreateOptions=function(){for(var W=[],l=_.L(this.pollOptions),V=l.next();!V.done;V=l.next())V=V.value,V.image!==void 0&&W.push({text:this.hasCustomOptionText?V.optionText:V.placeholderText,image:V.image});return W};
_.t.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.t.createButtonRenderer=function(W,l){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:W,accessibilityData:{accessibilityData:{label:this.getSimpleString(W)}},isDisabled:l}};
_.t.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.t.computeThumbnailRendererData=function(W){return W?{image:W,selected:!1}:void 0};
_.t.getSimpleString=function(W){return _.dE(W)};
_.t.updateOptionTextFromBinding=function(W){if(W.target){var l=Array.from(_.GS(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(W.target);if(l>=0){var V;this.pollOptions[l].optionText=(V=W.detail.value)!=null?V:""}}};
_.rc.Object.defineProperties(bt.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var W,l;return this.pollOptions.length<((l=(W=this.editorInfo)==null?void 0:W.maxPollOptions)!=null?l:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(W){return W.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(W){return W.image}).map(function(W){return W.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(W){return W.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var W,l=(W=this.data)==null?void 0:W.addOptionButtonText;return l?this.createButtonRenderer(l,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var W,l=(W=this.data)==null?void 0:W.repositionImagesButtonLabel;return l?this.createButtonRenderer(l,!this.hasImages):void 0}}});
bt.prototype.onPollOptionsChange=bt.prototype.onPollOptionsChange;bt.prototype.observeAddImageError=bt.prototype.observeAddImageError;bt.prototype.onEditorInfoChange=bt.prototype.onEditorInfoChange;bt.prototype.dataChanged=bt.prototype.dataChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],bt.prototype,"ytRendererstamperBehavior",void 0);_.a([_.Aa("ytd-backstage-multi-image-reposition-renderer"),_.z("design:type",Object)],bt.prototype,"imageRepositionContainer",void 0);
_.a([_.b(),_.z("design:type",Object)],bt.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],bt.prototype,"editorInfo",void 0);_.a([_.b(),_.z("design:type",GM)],bt.prototype,"uploadManager",void 0);_.a([_.b(),_.z("design:type",Object)],bt.prototype,"showImagesPreview",void 0);_.a([_.b(),_.z("design:type",Array)],bt.prototype,"pollOptions",void 0);_.a([_.b(),_.z("design:type",Object)],bt.prototype,"errorMessage",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bt.prototype,"dataChanged",null);_.a([_.zS("editorInfo"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bt.prototype,"onEditorInfoChange",null);_.a([_.TS("errorMessage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bt.prototype,"observeAddImageError",null);
_.a([_.zS("pollOptions"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bt.prototype,"onPollOptionsChange",null);_.a([_.G("pollOptions","editorInfo"),_.z("design:type",Object),_.z("design:paramtypes",[])],bt.prototype,"isAllowedToAddOption",null);_.a([_.G("pollOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],bt.prototype,"hasImages",null);
_.a([_.G("pollOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],bt.prototype,"imagesToReposition",null);_.a([_.G("pollOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],bt.prototype,"hasCustomOptionText",null);_.a([_.G("data","isAllowedToAddOption"),_.z("design:type",Object),_.z("design:paramtypes",[])],bt.prototype,"addOptionButton",null);_.a([_.G("data","hasImages"),_.z("design:type",Object),_.z("design:paramtypes",[])],bt.prototype,"repositionImagesButton",null);
_.a([_.A({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],bt);
_.Z(bt,"ytd-backstage-image-poll-editor-renderer",function(){if(Jw1!==void 0)return Jw1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Jw1=W},{mode:2});var GV1={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 bLk;var px=function(){var W=_.I.apply(this,arguments)||this;W.a11yConfig=GV1;W.imageDisplayOffsetTop=0;W.imageDisplayOffsetLeft=0;W.pickerDisplayOffsetTop=0;W.pickerDisplayOffsetLeft=0;W.showPreviewContainer=!0;W.startPicker=!1;W.repositionOptional=!1;W.editOnlyMode=!1;W.savedImageDisplayOffsetTop=0;W.savedImageDisplayOffsetLeft=0;return W};
_.v(px,_.I);_.t=px.prototype;_.t.created=function(){_.gt.requestAvailability()};
_.t.ready=function(){};
_.t.onArrowKeysDown=function(W){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){W.detail.keyboardEvent.preventDefault();var l=0,V=0,f="";switch(W.detail.keyboardEvent.key){case "ArrowUp":z7v(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?f=this.a11yConfig.reachBottomOfImage:l=this.imageHeight*.05*-1;break;case "ArrowDown":z7v(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?f=this.a11yConfig.reachTopOfImage:
l=this.imageHeight*.05;break;case "ArrowLeft":z7v(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?f=this.a11yConfig.reachRightOfImage:V=this.imageWidth*.05*-1;break;case "ArrowRight":z7v(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?f=this.a11yConfig.reachLeftOfImage:V=this.imageWidth*.05}f&&_.wg(f)&&_.FN(this.hostElement,"iron-announce",{text:_.wg(f)});if(V||l)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+l)),W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),W=_.wg(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+V)),W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),W=_.wg(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})),W&&_.FN(this.hostElement,"iron-announce",{text:W})}};
_.t.getPreviewPosition=function(W,l,V,f){return Math.round(100*(W+l*.5-V)/f)};
_.t.calculateDisplayPosition=function(){var W=this.imageData.naturalWidth,l=this.imageData.naturalHeight;this.displayScale=Math.max(200/W,200/l);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var V=W*this.displayScale*this.imageData.previewCoordinates.left,f=l*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=l>W?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-V;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=W>l?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-f;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=W*this.displayScale;this.imageHeight=l*this.displayScale};
_.t.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.t.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.t.getSignedPosition=function(W,l,V){return l==="X"&&_.M4("HTML_DIR")==="rtl"?V==="-"?W+"px":W*-1+"px":V==="-"?W*-1+"px":W+"px"};
_.t.pickerMove=function(W){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var l=this.pickerOffsetX-W.clientX,V=this.pickerOffsetY-W.clientY;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
V)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-l))}};
_.t.pickerMoveStart=function(W){this.startPicker=!0;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY};
_.t.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var W=this.generateCropPreview();W&&_.FN(this.hostElement,"ytd-backstage-image-preview-coordinates-update",W)};
_.t.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.FN(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.t.deleteImage=function(){_.FN(this.hostElement,"ytd-backstage-image-preview-delete")};
_.t.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.t.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var W=this.generateCropPreview();W&&_.FN(this.hostElement,"ytd-backstage-image-preview-coordinates-save",W)};
_.t.getPreviewOffset=function(W,l,V){return l&&W?(V==="X"&&_.M4("HTML_DIR")==="rtl"?300/l*W:300/l*W*-1)+"px":"0px"};
_.t.getSimpleText=function(W){return W?_.dE(W):""};
_.t.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}};
_.rc.Object.defineProperties(px.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.wg(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.wg(this.a11yConfig.verticalRepositionInstruction)}W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.wg(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.wg(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 W,l,V=(W=this.instruction)==null?void 0:(l=W.previewInstruction)==null?void 0:l.editButtonLabel;return V?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:V,accessibilityData:{accessibilityData:{label:this.getSimpleText(V)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var W,l,V,f,r=this.editOnlyMode?(W=this.instruction)==null?void 0:(l=W.editInstruction)==null?void 0:l.saveImagesButtonLabel:(V=this.instruction)==null?void 0:(f=V.editInstruction)==null?void 0:f.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 W,l,V=(W=this.instruction)==null?void 0:(l=W.previewInstruction)==null?void 0:l.deleteButtonLabel;return V?{size:"SIZE_SMALL",text:V,accessibilityData:{accessibilityData:{label:this.getSimpleText(V)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var W,l,V=(W=this.instruction)==null?void 0:(l=W.editInstruction)==null?void 0:l.cancelButtonLabel;W=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return V?{style:W,size:"SIZE_SMALL",text:V,accessibilityData:{accessibilityData:{label:this.getSimpleText(V)}}}: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"}}});
px.prototype.onEditOnlyModeUpdate=px.prototype.onEditOnlyModeUpdate;px.prototype.onImageChange=px.prototype.onImageChange;_.a([_.b(),_.z("design:type",OwS)],px.prototype,"imageData",void 0);_.a([_.b(),_.z("design:type",Object)],px.prototype,"instruction",void 0);_.a([_.b(),_.z("design:type",Object)],px.prototype,"a11yConfig",void 0);_.a([_.b(),_.z("design:type",Number)],px.prototype,"imageWidth",void 0);_.a([_.b(),_.z("design:type",Number)],px.prototype,"imageHeight",void 0);
_.a([_.b(),_.z("design:type",Number)],px.prototype,"displayScale",void 0);_.a([_.b(),_.z("design:type",Object)],px.prototype,"imageDisplayOffsetTop",void 0);_.a([_.b(),_.z("design:type",Object)],px.prototype,"imageDisplayOffsetLeft",void 0);_.a([_.b(),_.z("design:type",Object)],px.prototype,"pickerDisplayOffsetTop",void 0);_.a([_.b(),_.z("design:type",Object)],px.prototype,"pickerDisplayOffsetLeft",void 0);_.a([_.b(),_.z("design:type",Object)],px.prototype,"showPreviewContainer",void 0);
_.a([_.b(),_.z("design:type",Object)],px.prototype,"startPicker",void 0);_.a([_.b(),_.z("design:type",Number)],px.prototype,"pickerOffsetX",void 0);_.a([_.b(),_.z("design:type",Number)],px.prototype,"pickerOffsetY",void 0);_.a([_.b(),_.z("design:type",Object)],px.prototype,"repositionOptional",void 0);_.a([_.b(),_.z("design:type",Object)],px.prototype,"editOnlyMode",void 0);_.a([_.Aa("#picker-container"),_.z("design:type",HTMLElement)],px.prototype,"JSC$15657_pickerContainer",void 0);
_.a([_.Aa("#picker"),_.z("design:type",HTMLElement)],px.prototype,"picker",void 0);_.a([_.Aa("#preview-clipper"),_.z("design:type",HTMLElement)],px.prototype,"previewClipper",void 0);_.a([_.Aa("#image-in-picker-background"),_.z("design:type",HTMLImageElement)],px.prototype,"JSC$15657_imageInBackground",void 0);_.a([_.Aa("#image-in-picker"),_.z("design:type",HTMLImageElement)],px.prototype,"JSC$15657_imageInPicker",void 0);
_.a([_.Aa("#image-in-preview-clipper"),_.z("design:type",HTMLImageElement)],px.prototype,"JSC$15657_imageInPreviewClipper",void 0);_.a([_.G("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],px.prototype,"altLabelForImage",null);_.a([_.G("imageHeight","imageWidth"),_.z("design:type",Number),_.z("design:paramtypes",[])],px.prototype,"pickerSize",null);
_.a([_.G("imageHeight","imageWidth"),_.z("design:type",Object),_.z("design:paramtypes",[])],px.prototype,"imageOrientationStyle",null);_.a([_.G("instruction"),_.z("design:type",Object),_.z("design:paramtypes",[])],px.prototype,"editButton",null);_.a([_.G("instruction","editOnlyMode"),_.z("design:type",Object),_.z("design:paramtypes",[])],px.prototype,"saveButton",null);_.a([_.G("instruction"),_.z("design:type",Object),_.z("design:paramtypes",[])],px.prototype,"deleteButton",null);
_.a([_.G("instruction","editOnlyMode"),_.z("design:type",Object),_.z("design:paramtypes",[])],px.prototype,"cancelButton",null);_.a([_.G("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.z("design:type",Number),_.z("design:paramtypes",[])],px.prototype,"cropOffsetTop",null);_.a([_.G("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.z("design:type",Number),_.z("design:paramtypes",[])],px.prototype,"cropOffsetLeft",null);
_.a([_.G("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],px.prototype,"pickerBackgroundStyle",null);_.a([_.G("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],px.prototype,"pickerDisplayStyle",null);_.a([_.G("cropOffsetLeft","cropOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],px.prototype,"imageInPickerStyle",null);
_.a([_.G("cropOffsetLeft","cropOffsetTop","pickerSize"),_.z("design:type",String),_.z("design:paramtypes",[])],px.prototype,"previewClipperStyle",null);_.a([_.zS("imageData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],px.prototype,"onImageChange",null);_.a([_.zS("editOnlyMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],px.prototype,"onEditOnlyModeUpdate",null);
_.a([_.G("showPreviewContainer"),_.z("design:type",String),_.z("design:paramtypes",[])],px.prototype,"pickerModeStyle",null);_.a([_.A({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],px);
_.Z(px,"ytd-backstage-image-preview-renderer",function(){if(bLk!==void 0)return bLk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return bLk=W},{mode:1});var pMB;var oEZ={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 jcZ;var ITe;var oW=function(){var W=_.I.apply(this,arguments)||this;W.a11yConfig=oEZ;W.imageDisplayOffsetTop=0;W.imageDisplayOffsetLeft=0;W.pickerDisplayOffsetTop=0;W.pickerDisplayOffsetLeft=0;W.cropCoordinatesSaved=!1;W.previewSize=0;W.startPicker=!1;W.repositionOptional=!1;return W};
_.v(oW,_.I);_.t=oW.prototype;_.t.created=function(){_.gt.requestAvailability()};
_.t.ready=function(){};
_.t.onArrowKeysDown=function(W){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){W.detail.keyboardEvent.preventDefault();var l=0,V=0,f="";switch(W.detail.keyboardEvent.key){case "ArrowUp":Njq(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?f=this.a11yConfig.reachBottomOfImage:l=this.imageHeight*.05*-1;break;case "ArrowDown":Njq(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?f=this.a11yConfig.reachTopOfImage:
l=this.imageHeight*.05;break;case "ArrowLeft":Njq(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?f=this.a11yConfig.reachRightOfImage:V=this.imageWidth*.05*-1;break;case "ArrowRight":Njq(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?f=this.a11yConfig.reachLeftOfImage:V=this.imageWidth*.05}f&&_.wg(f)&&_.FN(this.hostElement,"iron-announce",{text:_.wg(f)});if(V||l)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+l)),W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),W=_.wg(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+V)),W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),W=_.wg(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})),W&&_.FN(this.hostElement,"iron-announce",{text:W})}};
_.t.getPreviewPosition=function(W,l,V,f){return Math.round(100*(W+l*.5-V)/f)};
_.t.displayImage=function(){var W=this.JSC$15668_pickerContainer.getBoundingClientRect().width,l=this.JSC$15668_pickerContainer.getBoundingClientRect().height,V=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),f=this.JSC$15668_imageInBackground.naturalWidth,r=this.JSC$15668_imageInBackground.naturalHeight;this.displayScale=Math.max(V/f,V/r);this.imageWidth=f*this.displayScale;this.imageHeight=r*this.displayScale;this.pickerDisplayOffsetLeft=(W-V)/2;this.pickerDisplayOffsetTop=
(l-V)/2;this.imageDisplayOffsetLeft=r>f?this.pickerDisplayOffsetLeft:(W-this.imageWidth)/2;this.imageDisplayOffsetTop=f>r?this.pickerDisplayOffsetTop:(l-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.t.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15668_imageInBackground.src=this.imageData.toString(),this.JSC$15668_imageInPicker.src=this.imageData.toString(),this.JSC$15668_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.t.getSignedPosition=function(W,l,V){return l==="X"&&_.M4("HTML_DIR")==="rtl"?V==="-"?W+"px":W*-1+"px":V==="-"?W*-1+"px":W+"px"};
_.t.pickerMove=function(W){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var l=this.pickerOffsetX-W.clientX,V=this.pickerOffsetY-W.clientY;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
V)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-l))}};
_.t.pickerMoveStart=function(W){this.startPicker=!0;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY};
_.t.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.t.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.FN(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.t.getPreviewOffset=function(W,l,V,f){return l&&W&&V?(f==="X"&&_.M4("HTML_DIR")==="rtl"?V/l*W:V/l*W*-1)+"px":"0px"};
_.t.getSimpleText=function(W){return W?_.dE(W):""};
_.t.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var W=this.cropOffsetTop/this.imageHeight,l=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,V=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,f=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.GS(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.FN(this.hostElement,"yt-img-crop-coordinates-update",{top:W,right:l,bottom:V,left:f})}};
_.rc.Object.defineProperties(oW.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.wg(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.wg(this.a11yConfig.verticalRepositionInstruction)}W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.wg(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.wg(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 W,l=(W=this.learnMore.runs[0])==null?void 0:W.navigationEndpoint,V;return((V=_.k(l,_.x_))==null?void 0:V.url)||void 0}}}});
oW.prototype.onImageDataChange=oW.prototype.onImageDataChange;_.a([_.b(),_.z("design:type",Object)],oW.prototype,"imageData",void 0);_.a([_.b(),_.z("design:type",Object)],oW.prototype,"instruction",void 0);_.a([_.b(),_.z("design:type",Object)],oW.prototype,"a11yConfig",void 0);_.a([_.b(),_.z("design:type",Number)],oW.prototype,"imageWidth",void 0);_.a([_.b(),_.z("design:type",Number)],oW.prototype,"imageHeight",void 0);_.a([_.b(),_.z("design:type",Number)],oW.prototype,"displayScale",void 0);
_.a([_.b(),_.z("design:type",Object)],oW.prototype,"imageDisplayOffsetTop",void 0);_.a([_.b(),_.z("design:type",Object)],oW.prototype,"imageDisplayOffsetLeft",void 0);_.a([_.b(),_.z("design:type",Object)],oW.prototype,"pickerDisplayOffsetTop",void 0);_.a([_.b(),_.z("design:type",Object)],oW.prototype,"pickerDisplayOffsetLeft",void 0);_.a([_.b(),_.z("design:type",Object)],oW.prototype,"cropCoordinatesSaved",void 0);_.a([_.b(),_.z("design:type",Object)],oW.prototype,"previewSize",void 0);
_.a([_.b(),_.z("design:type",Object)],oW.prototype,"startPicker",void 0);_.a([_.b(),_.z("design:type",Number)],oW.prototype,"pickerOffsetX",void 0);_.a([_.b(),_.z("design:type",Number)],oW.prototype,"pickerOffsetY",void 0);_.a([_.b(),_.z("design:type",Object)],oW.prototype,"repositionOptional",void 0);_.a([_.Aa("#picker-container"),_.z("design:type",HTMLElement)],oW.prototype,"JSC$15668_pickerContainer",void 0);_.a([_.Aa("#picker"),_.z("design:type",HTMLElement)],oW.prototype,"picker",void 0);
_.a([_.Aa("#image-in-picker-background"),_.z("design:type",HTMLImageElement)],oW.prototype,"JSC$15668_imageInBackground",void 0);_.a([_.Aa("#image-in-picker"),_.z("design:type",HTMLImageElement)],oW.prototype,"JSC$15668_imageInPicker",void 0);_.a([_.Aa("#image-in-preview-clipper"),_.z("design:type",HTMLImageElement)],oW.prototype,"JSC$15668_imageInPreviewClipper",void 0);_.a([_.Aa("#full-image-as-preview"),_.z("design:type",HTMLImageElement)],oW.prototype,"imageAsPreview",void 0);
_.a([_.G("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],oW.prototype,"altLabelForImage",null);_.a([_.G("imageHeight","imageWidth"),_.z("design:type",Number),_.z("design:paramtypes",[])],oW.prototype,"pickerSize",null);_.a([_.G("imageHeight","imageWidth"),_.z("design:type",Object),_.z("design:paramtypes",[])],oW.prototype,"imageOrientationStyle",null);
_.a([_.G("instruction.previewInstruction.editButtonLabel"),_.z("design:type",Object),_.z("design:paramtypes",[])],oW.prototype,"editButton",null);_.a([_.G("instruction.editInstruction.saveButtonLabel"),_.z("design:type",Object),_.z("design:paramtypes",[])],oW.prototype,"saveButton",null);_.a([_.G("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.z("design:type",Number),_.z("design:paramtypes",[])],oW.prototype,"cropOffsetTop",null);
_.a([_.G("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.z("design:type",Number),_.z("design:paramtypes",[])],oW.prototype,"cropOffsetLeft",null);_.a([_.G("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],oW.prototype,"pickerBackgroundStyle",null);_.a([_.G("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],oW.prototype,"pickerDisplayStyle",null);
_.a([_.G("cropOffsetLeft","cropOffsetTop"),_.z("design:type",String),_.z("design:paramtypes",[])],oW.prototype,"imageInPickerStyle",null);_.a([_.G("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.z("design:type",String),_.z("design:paramtypes",[])],oW.prototype,"previewClipperStyle",null);_.a([_.TS("imageData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oW.prototype,"onImageDataChange",null);
_.a([_.G("cropCoordinatesSaved"),_.z("design:type",String),_.z("design:paramtypes",[])],oW.prototype,"pickerModeStyle",null);_.a([_.G("instruction.editInstruction.learnMore"),_.z("design:type",Object),_.z("design:paramtypes",[])],oW.prototype,"learnMore",null);_.a([_.G("learnMore"),_.z("design:type",Object),_.z("design:paramtypes",[])],oW.prototype,"learnMoreUrl",null);_.a([_.Vq({is:"yt-img-crop-picker",disableElementRegistration:!0})],oW);
_.Z(oW,"yt-img-crop-picker",function(){if(ITe===void 0){var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;jcZ===void 0&&(jcZ=document.createElement("template"));var f=jcZ;V.call(l,f.content.cloneNode(!0),W.content.firstChild);ITe=W}W=ITe;return W},{mode:2});var jZ=function(){var W=_.I.apply(this,arguments)||this;W.errorMessage="";W.hasPreview=!1;W.isBackstagePost=!1;W.dismissButtonOverrides={size:"XS"};return W};
_.v(jZ,_.I);_.t=jZ.prototype;_.t.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"}}}};
_.t.detached=function(){this.removeOverlay()};
_.t.setPreview=function(W){_.GS(this.hostElement).querySelector("#preview-picker").imageData=W;this.hasPreview=!0;_.FN(this.hostElement,"yt-backstage-image-select-preview")};
_.t.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var W=_.GS(this.hostElement).querySelector("#dropzone");W.classList.remove("dragover");W.classList.remove("error");_.FN(this.hostElement,"yt-backstage-image-select-cancel")};
_.t.setupOverlay=function(){var W=this.imageUploadEndpoint;this.removeOverlay();if(W&&W.imageValidationInfo){var l=_.GS(this.hostElement).querySelector("#dropzone"),V=_.GS(this.hostElement).querySelector("#select");this.overlay=new pE(W.uploadUrl,W.channelId,W.imageValidationInfo.maxFileSizeMb,W.imageValidationInfo.allowedMaxAspectRatio,l,V,!0);_.YJ(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.YJ(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.YJ(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.YJ(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.YJ(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.t.removeOverlay=function(){this.overlay&&(_.Of(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Of(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Of(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Of(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Of(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.t.onDragOver=function(W){var l=_.GS(this.hostElement).querySelector("#dropzone");_.pG(l,"dragover",W.value)};
_.t.onPreview=function(W){this.setPreview(W.value)};
_.t.onImageError=function(W){if(W.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var l;W=(l=this.data)==null?void 0:l.fileSizeError}else if(W.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var V;W=(V=this.data)==null?void 0:V.invalidError}else if(W.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var f;W=(f=this.data)==null?void 0:f.invalidAspectRatioError}else return;this.errorMessage=_.dE(W);_.GS(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.t.onImageAlert=function(W){this.onImageError(W)};
_.t.uploadPromise=function(){var W=this,l=this.overlay&&this.overlay.uploadPromise();if(l)return l.catch(function(){throw Error(W.data?_.dE(W.data.uploadFailureError):"");})};
_.rc.Object.defineProperties(jZ.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var W,l;if((W=this.data)==null?0:(l=W.icon)==null?0:l.iconType)return _.IJ(this.data.icon.iconType)}}});
jZ.prototype.setupOverlay=jZ.prototype.setupOverlay;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],jZ.prototype,"rendererStamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],jZ.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],jZ.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],jZ.prototype,"imageUploadEndpoint",void 0);_.a([_.b(),_.z("design:type",Object)],jZ.prototype,"errorMessage",void 0);
_.a([_.b(),_.z("design:type",pE)],jZ.prototype,"overlay",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jZ.prototype,"hasPreview",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jZ.prototype,"isBackstagePost",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],jZ.prototype,"selectionCancel",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],jZ.prototype,"previewCancel",null);
_.a([_.G("data.icon.iconType"),_.z("design:type",Object),_.z("design:paramtypes",[])],jZ.prototype,"icon",null);_.a([_.b(),_.z("design:type",Object)],jZ.prototype,"dismissButtonOverrides",void 0);_.a([_.TS("imageUploadEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jZ.prototype,"setupOverlay",null);_.a([_.A({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],jZ);
_.Z(jZ,"ytd-backstage-image-select-renderer",function(){if(pMB!==void 0)return pMB;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return pMB=W},{mode:1});var iLB;var mKI;var IW=function(){var W=_.I.apply(this,arguments)||this;W.selected=!1;return W};
_.v(IW,_.I);_.t=IW.prototype;_.t.computeSelected=function(W){return W==null?void 0:W.selected};
_.t.computeTransform=function(W,l,V){var f,r,R=(r=(f=this.imageContainer)==null?void 0:f.getBoundingClientRect())!=null?r:{width:0,height:0};f=Math.max(R.width/l,R.height/V);V=V*f*W.top;return"translateX("+this.getSignedPosition(l*f*W.left,"X","-")+") translateY("+this.getSignedPosition(V,"Y","-")+")"};
_.t.getSignedPosition=function(W,l,V){return l==="X"&&_.M4("HTML_DIR")==="rtl"?V==="-"?W+"px":W*-1+"px":V==="-"?W*-1+"px":W+"px"};
_.t.onClick=function(){var W;_.FN(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(W=this.data)==null?void 0:W.image)};
_.t.onKeyPress=function(W){if(W.keyCode===13)this.onClick()};
_.rc.Object.defineProperties(IW.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.data)==null?void 0:(l=W.image)==null?void 0:l.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)!=null&&W.image){var l;W=(l=this.data)==null?void 0:l.image;return W.previewCoordinates.top!==0||W.previewCoordinates.left!==0?(l=this.computeTransform(W.previewCoordinates,W.naturalWidth,W.naturalHeight),W.naturalHeight>=W.naturalWidth?"width:inherit;transform:"+l+";":"height:inherit;transform:"+l+";"):W.naturalHeight>=W.naturalWidth?"width:inherit;":"height:inherit;"}}}});
IW.prototype.onKeyPress=IW.prototype.onKeyPress;_.a([_.Aa(".image-container"),_.z("design:type",HTMLElement)],IW.prototype,"imageContainer",void 0);_.a([_.b(),_.z("design:type",Object)],IW.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.z("design:type",Object)],IW.prototype,"selected",void 0);_.a([_.G("data.image"),_.z("design:type",Object),_.z("design:paramtypes",[])],IW.prototype,"thumbnailUrl",null);
_.a([_.G("data.image","data.image.previewCoordinates"),_.z("design:type",Object),_.z("design:paramtypes",[])],IW.prototype,"thumbnailStyle",null);_.a([_.XI("keypress"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],IW.prototype,"onKeyPress",null);_.a([_.A({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],IW);
_.Z(IW,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(mKI!==void 0)return mKI;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return mKI=W},{mode:2});var mW=function(W,l,V){V=V===void 0?!1:V;_.aj.call(this);var f=this;this.dropZoneOverlay=new Tf(W);this.selectOverlay=V?new wt(l,"multiple_file",["image/*"]):new wt(l,"single_file",["image/*"]);this.handler=new _.nX(this);_.vt(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(l,"click",function(){f.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.v(mW,_.aj);mW.prototype.onChange=function(W){var l;(l=W.files)!=null&&l.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:W.files}))};var X1=function(){var W=_.I.apply(this,arguments)||this;W.addImageErrorMessage="";W.errorMessage="";W.images=[];W.selectedImageIndex=0;W.modern=_.U("web_modern_buttons");W.maxNumImagesPerPost=_.yS("max_num_images_per_post_web_ui");W.JSC$15683_imageId=0;return W};
_.v(X1,_.I);_.t=X1.prototype;_.t.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.FN(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.t.observeDragToReorder=function(){var W=this;if(this.showImagesPreview){var l,V=MZ$(_.To.getInstance(),(l=this.data)==null?void 0:l.dragToReorderTooltip);_.w8.addLowPriorityJob(function(){_.og(W.hostElement,V,W.thumbnailDragDropArea)})}};
_.t.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}}};
_.t.computeThumbnail=function(W){return(W==null?void 0:W.localImageSrc)||void 0};
_.t.onRendererstamperFinished=function(){_.jqk(this.ytReorderableBehavior,_.GS(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.GS(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.t.handleDrop=function(W){var l=W.currDragItem;if(l!=null&&l.data){W=this.images[this.selectedImageIndex];var V=l.data.image,f=this.images.indexOf(V)||0;l=_.Mg(l.parentNode.children,l);this.images.splice(f,1);this.images.splice(l,0,V);this.images=[].concat(_.QK(this.images));this.selectedImageIndex=this.images.indexOf(W)}};
_.t.setUpImagePicker=function(){var W=this.imageUploadEndpoint;W&&W.imageValidationInfo&&(this.uploadManager=new GM(W.uploadUrl,W.channelId),this.initialPicker||(this.initialPicker=new mW(this.dropzone,this.selectLink,!0),_.YJ(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new mW(this.addImageButtonContainer,this.addImageSelectButton),_.YJ(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.YJ(this.JSC$15683_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.YJ(this.JSC$15683_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.YJ(_.GS(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.t.detached=function(){this.initialPicker&&(_.Of(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Of(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.t.onInitialSelectImages=function(W){var l=this;return _.g(function(V){return V.yield(l.onSelectImages(W,!1),0)})};
_.t.onAddImage=function(W){var l=this;return _.g(function(V){return V.yield(l.onSelectImages(W,!0),0)})};
_.t.onSelectImages=function(W,l){var V=this,f,r,R,y,P,n,B,d,J,D,u,H,p,X,w,O,S,N,x,Y;return _.g(function(W8){switch(W8.nextAddress){case 1:l?V.addImageErrorMessage="":(V.images=[],V.errorMessage="");f=W.detail;r=V.validateImages([].concat(_.QK(f)));if(r!=="")return l?V.addImageErrorMessage=r:V.errorMessage=r,W8.return();R=[].concat(_.QK(f)).map(function(c8){return(new GP(V.maxAspectRatio,!1,!0)).transform(c8)});
return W8.yield(Promise.allSettled(R),2);case 2:y=W8.yieldResult,P=_.L(y.entries()),n=P.next();case 3:if(n.done){W8.jumpTo(5);break}B=n.value;d=_.L(B);J=d.next().value;D=d.next().value;u=J;H=D;if(H.status!=="fulfilled"){w=X=p=void 0;l?V.addImageErrorMessage=_.dE((p=V.data)==null?void 0:p.invalidError):V.errorMessage=V.errorMessage===""?_.dE((X=V.data)==null?void 0:X.invalidError):_.dE((w=V.data)==null?void 0:w.multiFileError);W8.jumpTo(4);break}O=H.value;O.cropped&&_.FN(V.hostElement,"yt-backstage-multi-image-cropped");
if(O.invalidAspectRatio){x=N=S=void 0;l?V.addImageErrorMessage=_.dE((S=V.data)==null?void 0:S.invalidAspectRatioError):V.errorMessage=V.errorMessage===""?_.dE((N=V.data)==null?void 0:N.invalidAspectRatioError):_.dE((x=V.data)==null?void 0:x.multiFileError);W8.jumpTo(4);break}return W8.yield(aEz(V.JSC$15683_imageId,W.detail[u],O.transformedData),8);case 8:Y=W8.yieldResult,V.images.push(Y),V.JSC$15683_imageId++;case 4:n=P.next();W8.jumpTo(3);break;case 5:if(V.errorMessage!==""||V.addImageErrorMessage!==
"")return W8.return();l?u8a(V.uploadManager,[V.images[V.images.length-1]]):u8a(V.uploadManager,V.images);V.images=[].concat(_.QK(V.images));V.selectedImageIndex=l?Math.max(V.images.length-1,0):0;_.FN(V.hostElement,"yt-backstage-multi-image-select");_.ju(W8)}})};
_.t.onThumbnailClick=function(W){if(W=W.event_.detail)this.selectedImageIndex=this.images.indexOf(W)};
_.t.validateImages=function(W){if(W.length>this.maxNumImagesPerPost){var l;return _.dE((l=this.data)==null?void 0:l.multiImageExceedMaxImageCountError)}var V=1048576*this.maxFileSizeMb;W=W.filter(function(R){return R.size>V}).length;
if(W===0)return"";var f,r;W=W>1?(f=this.data)==null?void 0:f.multiFileError:(r=this.data)==null?void 0:r.fileSizeError;return _.dE(W)};
_.t.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.QK(this.images));this.selectedImageIndex=0};
_.t.repositionImage=function(W){this.images[this.selectedImageIndex].previewCoordinates=W.event_.detail;this.images=[].concat(_.QK(this.images))};
_.t.getAllUploadStatuses=function(){var W=this,l,V,f,r;return _.g(function(R){if(R.nextAddress==1)return R.yield(W.uploadManager.getAllUploadStatuses(),2);l=R.yieldResult;V=_.L(l);for(f=V.next();!f.done;f=V.next())if(r=f.value,r.encryptedBlobId===void 0)return R.return(kV9(W.uploadManager));return R.return(l)})};
_.t.hasImages=function(){return this.images.length>0};
_.t.cancel=function(){for(var W=this.uploadManager,l=_.L(W.imagesUploadData),V=l.next();!V.done;V=l.next())W.cancel(V.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.FN(this.hostElement,"yt-backstage-multi-image-cancel")};
_.rc.Object.defineProperties(X1.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.imageUploadEndpoint)==null?void 0:(l=W.imageValidationInfo)==null?void 0:l.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.imageUploadEndpoint)==null?void 0:(l=W.imageValidationInfo)==null?void 0:l.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var W,l;if((W=this.data)==null?0:(l=W.icon)==null?0:l.iconType)return _.IJ(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.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 W=this;return(this.images||[]).map(function(l,V){return{renderer:{image:l,selected:V===W.selectedImageIndex}}})}}});
X1.prototype.setUpImagePicker=X1.prototype.setUpImagePicker;X1.prototype.onRendererstamperFinished=X1.prototype.onRendererstamperFinished;X1.prototype.observeDragToReorder=X1.prototype.observeDragToReorder;X1.prototype.observeAddImageError=X1.prototype.observeAddImageError;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],X1.prototype,"rendererStamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],X1.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.IZa),_.z("design:type",Object)],X1.prototype,"ytReorderableBehavior",void 0);_.a([_.Aa("#dropzone"),_.z("design:type",HTMLElement)],X1.prototype,"dropzone",void 0);_.a([_.Aa("#select-link"),_.z("design:type",HTMLElement)],X1.prototype,"selectLink",void 0);_.a([_.Aa("#thumbnail-drag-drop-area"),_.z("design:type",HTMLElement)],X1.prototype,"thumbnailDragDropArea",void 0);_.a([_.Aa("#add-image-button-container"),_.z("design:type",HTMLElement)],X1.prototype,"addImageButtonContainer",void 0);
_.a([_.Aa("#add-image-button"),_.z("design:type",HTMLElement)],X1.prototype,"addImageSelectButton",void 0);_.a([_.Aa("#image-preview-container"),_.z("design:type",Object)],X1.prototype,"JSC$15683_imagePreviewContainer",void 0);_.a([_.b(),_.z("design:type",Object)],X1.prototype,"addImageErrorMessage",void 0);_.a([_.b(),_.z("design:type",Object)],X1.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],X1.prototype,"errorMessage",void 0);
_.a([_.b(),_.z("design:type",Object)],X1.prototype,"imageUploadEndpoint",void 0);_.a([_.b(),_.z("design:type",Array)],X1.prototype,"images",void 0);_.a([_.b(),_.z("design:type",mW)],X1.prototype,"initialPicker",void 0);_.a([_.b(),_.z("design:type",mW)],X1.prototype,"addImagePicker",void 0);_.a([_.b(),_.z("design:type",GM)],X1.prototype,"uploadManager",void 0);_.a([_.b(),_.z("design:type",Object)],X1.prototype,"selectedImageIndex",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X1.prototype,"modern",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X1.prototype,"maxNumImagesPerPost",void 0);_.a([_.G("imageUploadEndpoint"),_.z("design:type",Number),_.z("design:paramtypes",[])],X1.prototype,"maxAspectRatio",null);_.a([_.G("imageUploadEndpoint"),_.z("design:type",Number),_.z("design:paramtypes",[])],X1.prototype,"maxFileSizeMb",null);
_.a([_.G("data.icon.iconType"),_.z("design:type",Object),_.z("design:paramtypes",[])],X1.prototype,"dropIcon",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],X1.prototype,"selectionCancel",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],X1.prototype,"previewCancel",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],X1.prototype,"dataForAddImageButton",null);
_.a([_.G("errorMessage"),_.z("design:type",String),_.z("design:paramtypes",[])],X1.prototype,"dropzoneClass",null);_.a([_.G("images"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],X1.prototype,"showImagesPreview",null);_.a([_.G("images"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],X1.prototype,"containMaxImages",null);_.a([_.TS("addImageErrorMessage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X1.prototype,"observeAddImageError",null);
_.a([_.TS("showImagesPreview"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X1.prototype,"observeDragToReorder",null);_.a([_.G("images","selectedImageIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],X1.prototype,"selectedImageData",null);_.a([_.G("images","selectedImageIndex"),_.z("design:type",Array),_.z("design:paramtypes",[])],X1.prototype,"thumbnailRenderers",null);
_.a([_.XI("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X1.prototype,"onRendererstamperFinished",null);_.a([_.TS("imageUploadEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X1.prototype,"setUpImagePicker",null);_.a([_.A({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],X1);
_.Z(X1,"ytd-backstage-multi-image-select-renderer",function(){if(iLB!==void 0)return iLB;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return iLB=W},{mode:1});var XMZ;var TBB;var wMk;var TM=function(){var W=_.I.apply(this,arguments)||this;W.boundCaptureFocus=function(l){W.onCaptureFocus(l)};
return W};
_.v(TM,_.I);_.t=TM.prototype;_.t.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.t.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.t.onCaptureFocus=function(W){_.d_(W).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.t.getIconType=function(W){return W?"yt-icons:"+W.toLowerCase():null};
_.t.onSelect=function(){var W;if((W=this.data)==null?0:W.onSelectCommand)if(_.U("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var l;((l=_.k(this.data.onSelectCommand.commandMetadata,_.XN))==null?0:l.url)?_.FN(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.tY().resolve(_.s6).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.rc.Object.defineProperties(TM.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.dE(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}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],TM.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],TM.prototype,"data",void 0);_.a([_.Aa("#item"),_.z("design:type",HTMLElement)],TM.prototype,"item",void 0);_.a([_.G("data.label"),_.z("design:type",String),_.z("design:paramtypes",[])],TM.prototype,"label",null);
_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],TM.prototype,"value",null);_.a([_.A({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],TM);
_.Z(TM,"ytd-privacy-dropdown-item-renderer",function(){if(wMk!==void 0)return wMk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return wMk=W},{mode:1});var wW=function(){var W=_.I.apply(this,arguments)||this;W.value="";W.label="";W.disabled=!1;return W};
_.v(wW,_.I);_.t=wW.prototype;_.t.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"}}}};
_.t.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.t.dataChanged=function(){this.reset()};
_.t.valueChanged=function(){var W;if(this.value&&(W=this.data)!=null&&W.entries){W=_.L(this.data.entries);for(var l=W.next();!l.done;l=W.next())if((l=this.getRendererForEntry(l.value))&&this.getItemRendererValue(l)===this.value){this.label=this.ytComponentBehavior.getSimpleString(l.label);break}}};
_.t.setInitialLabel=function(){if(this.data&&this.data.entries)for(var W=_.L(this.data.entries),l=W.next();!l.done;l=W.next())if(l=this.getRendererForEntry(l.value)){if(l.isSelected){this.label=this.ytComponentBehavior.getSimpleString(l.label);break}this.data.label&&(this.label=this.data.label)}};
_.t.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var W=_.L(this.data.entries),l=W.next();!l.done;l=W.next()){l=this.getRendererForEntry(l.value);var V=void 0;if((V=l)==null?0:V.isSelected)return this.getItemRendererValue(l)||-1}return-1};
_.t.getItemRendererValue=function(W){return"stringValue"in W||"int32Value"in W?W.stringValue||W.int32Value||null:null};
_.t.getRendererForEntry=function(W){return W.dropdownItemRenderer||W.privacyDropdownItemRenderer||W.navigationDropdownItemRenderer||null};
_.t.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.GD("value-changed",this.value))};
_.t.updateValueFromBinding=function(W){this.value=W.detail.value};
wW.prototype.valueChangedForBinding=wW.prototype.valueChangedForBinding;wW.prototype.valueChanged=wW.prototype.valueChanged;wW.prototype.dataChanged=wW.prototype.dataChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],wW.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],wW.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],wW.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],wW.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],wW.prototype,"value",void 0);_.a([_.b(),_.z("design:type",Object)],wW.prototype,"label",void 0);_.a([_.Aa("#entries"),_.z("design:type",Object)],wW.prototype,"entries",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],wW.prototype,"disabled",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wW.prototype,"dataChanged",null);
_.a([_.zS("value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wW.prototype,"valueChanged",null);_.a([_.TS("value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wW.prototype,"valueChangedForBinding",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],wW);
_.Z(wW,"ytd-flat-dropdown-renderer",function(){if(TBB!==void 0)return TBB;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return TBB=W},{mode:1});var AwL;var AR=function(){var W=_.I.apply(this,arguments)||this;W.quizOptions=[];W.explanationPlaceholderText="";W.optionPlaceholderText="";W.correctAnswerIndex=-1;W.isMarkAnswerTooltipShown=!1;W.timer=0;return W};
_.v(AR,_.I);_.t=AR.prototype;_.t.dataChanged=function(){this.optionPlaceholderText=_.dE(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.dE(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.t.onMarkCorrectAnswer=function(W){var l,V=((l=this.quizOptions[this.correctAnswerIndex])==null?void 0:l.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[W.model.index]=Object.assign({},this.quizOptions[W.model.index],{explanationText:V,isCorrect:!0});this.correctAnswerIndex=W.model.index;this.quizOptions=[].concat(_.QK(this.quizOptions))};
_.t.updatePlaceholderTexts=function(){for(var W=!1,l=[],V=0;V<this.quizOptions.length;V++){var f=this.optionPlaceholderText+" "+(V+1),r=void 0;((r=this.quizOptions[V])==null?void 0:r.placeholderText)!==f?(W=!0,l.push(Object.assign({},this.quizOptions[V],{placeholderText:f}))):l.push(this.quizOptions[V])}W&&(this.quizOptions=l);this.isValid()?_.FN(this.hostElement,"yt-commentbox-post-enable"):_.FN(this.hostElement,"yt-commentbox-post-disable")};
_.t.getSimpleString=function(W){return _.dE(W)};
_.t.createQuizOptions=function(W){var l=[],V;W=(V=W==null?void 0:W.minQuizOptions)!=null?V:0;for(V=0;V<W;V++)l.push(this.createQuizOption());return l};
_.t.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.QK(this.quizOptions),[this.createQuizOption()]))};
_.t.onInput=function(){this.quizOptions=[].concat(_.QK(this.quizOptions))};
_.t.onExplanationInput=function(){_.FN(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.t.onRemoveQuizOption=function(W){this.quizOptions.splice(W.model.index,1);W.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:W.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.QK(this.quizOptions));this.quizOptions.length===0&&_.FN(this.hostElement,"yt-quiz-attachment-dismiss")};
_.t.updateHintRenderer=function(){var W=this;clearTimeout(this.timer);this.timer=setTimeout(function(){W.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.t.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var W=0,l=0,V=_.L(this.quizOptions),f=V.next();!f.done;f=V.next()){f=f.value;var r=void 0;if(((r=f.optionText)==null?void 0:r.trim())!==""||f.isCorrect){f.isCorrect&&l++;r=void 0;if(this.hasCustomOptionText&&((r=f.optionText)==null?void 0:r.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;W++}}return W>=
Number(this.editorInfo.minQuizOptions)&&l===1};
_.t.getPostCreateOptions=function(){for(var W=[],l=_.L(this.quizOptions),V=l.next();!V.done;V=l.next()){V=V.value;var f=void 0;((f=V.optionText)==null?void 0:f.trim())!==""&&W.push({pollOption:{text:V.optionText,explanation:V.explanationText},isCorrect:V.isCorrect})}return W};
_.t.getExplanationText=function(){var W;return((W=this.quizOptions[this.correctAnswerIndex])==null?void 0:W.explanationText)||""};
_.t.maybeDisplayMarkAnswerEduToolTip=function(){var W,l,V,f,r,R,y;this.shouldShowMarkAnswerTooltip()&&((W=this.editorInfo)==null?0:(l=W.markAnswerButton)==null?0:(V=l.buttonRenderer)==null?0:(f=V.hint)==null?0:(r=f.hintRenderer)==null?0:(R=r.content)==null?0:(y=R.bubbleHintRenderer)==null?0:y.text)&&(_.To.getInstance(),W=wZ(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,(W==null?void 0:W.length)>0&&this.optionSelectors&&_.XY(W[0],this.optionSelectors[0]))};
_.t.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var W=0,l=_.L(this.quizOptions),V=l.next();!V.done;V=l.next()){V=V.value;var f=void 0;((f=V.optionText)==null?void 0:f.trim())!==""&&W++;if(V.isCorrect)return!1}return W<2?!1:!0};
_.t.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.t.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.t.updateOptionTextFromBinding=function(W){if(W.target){var l=Array.from(_.GS(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(W.target);if(l>=0){var V;this.quizOptions[l].optionText=(V=W.detail.value)!=null?V:""}}};
_.rc.Object.defineProperties(AR.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var W,l,V=(W=this.editorInfo)==null?void 0:(l=W.addOptionButton)==null?void 0:l.buttonRenderer;V&&(V.style="STYLE_SUGGESTIVE",V.size="SIZE_SMALL",V.isDisabled=!this.isAllowedToAddOption);return(V==null?0:V.text)?V:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var W,l;return this.quizOptions.length<((l=(W=this.editorInfo)==null?void 0:W.maxQuizOptions)!=null?l:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(W){var l;return(l=W.optionText)==null?void 0:l.trim()})}}});
AR.prototype.updatePlaceholderTexts=AR.prototype.updatePlaceholderTexts;AR.prototype.dataChanged=AR.prototype.dataChanged;_.a([_.b(),_.z("design:type",Object)],AR.prototype,"editorInfo",void 0);_.a([_.b(),_.z("design:type",Array)],AR.prototype,"quizOptions",void 0);_.a([_.b(),_.z("design:type",Object)],AR.prototype,"explanationPlaceholderText",void 0);_.a([_.Qb(".option-selector-button"),_.z("design:type",Array)],AR.prototype,"optionSelectors",void 0);
_.a([_.zS("editorInfo"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],AR.prototype,"dataChanged",null);_.a([_.G("editorInfo","isAllowedToAddOption","quizOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],AR.prototype,"addAnswerButton",null);_.a([_.G("editorInfo","quizOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],AR.prototype,"isAllowedToAddOption",null);
_.a([_.zS("quizOptions"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],AR.prototype,"updatePlaceholderTexts",null);_.a([_.G("quizOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],AR.prototype,"hasCustomOptionText",null);_.a([_.A({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],AR);
_.Z(AR,"ytd-backstage-quiz-editor-renderer",function(){if(AwL!==void 0)return AwL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return AwL=W},{mode:2});var Qca;var Mf1=(j$.FIRSTDAYOFWEEK+1)%7;var ZLL;var OLe=[],aTc=0,zeB=0;aTc=0;zeB=24;if(.25*(zeB-aTc)<0)ZLL=[];else{for(var NB9=aTc;NB9<zeB;NB9+=.25)OLe.push(NB9);ZLL=OLe}var YOB=ZLL.map(function(W){W=W*60*60;return{secondsSinceMidnight:W,text:(new Ca(7)).format(new Date(0,0,0,0,0,W))}});var xK$;var QJ=function(){var W=_.I.apply(this,arguments)||this;W.skipNextOpenDialog=!1;W.errorMessage="";W.previousMonthLabel=_.wg("PREVIOUS_MONTH_LABEL");W.nextMonthLabel=_.wg("NEXT_MONTH_LABEL");return W};
_.v(QJ,_.I);_.t=QJ.prototype;_.t.attached=function(){var W=this,l=new MutationObserver(function(){W.JSC$15726_calendarMain.scrollHeight>0&&(l.disconnect(),W.calendarConfig&&W.calendarConfig.selectedDate&&W.scrollToDate())});
l.observe(this.JSC$15726_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){l.disconnect()},1E3)};
_.t.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.t.onDateTextChange=function(){if(this.calendarConfig){var W=this.validateDateText();W.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(W.details)):this.textbox.setAttribute("invalid","")}};
_.t.handleDayClick=function(W){W.model.day.date&&(this.commitDate(W.model.day.date),this.dialog.close())};
_.t.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var W=Wh8(this.calendarConfig.selectedDate,this.renderData);W!==void 0&&this.JSC$15726_calendarMain.scrollToIndex(W)}};
_.t.scrollToNextMonth=function(){this.JSC$15726_calendarMain.scrollToIndex(this.JSC$15726_calendarMain.firstVisibleIndex+1)};
_.t.scrollToPrevMonth=function(){this.JSC$15726_calendarMain.firstVisibleIndex===0&&this.JSC$15726_calendarMain.scrollTo(0,0);this.JSC$15726_calendarMain.scrollToIndex(this.JSC$15726_calendarMain.firstVisibleIndex-1)};
_.t.onFormSubmit=function(W){W.preventDefault();this.calendarConfig&&(W=this.validateDateText(),W.isValid&&(this.commitDate(W.details),this.dialog.close()))};
_.t.onEscOrClickingOutside=function(W){W=W.detail.path&&!!W.detail.path.length&&W.detail.path[0];if(W.classList.contains("ytd-calendar-date-picker")){W===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var l=0;l<this.dropdownButton.children.length;l++)this.dropdownButton.children[l]===W&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}W=this.textbox.value!==this.dateText;l=this.validateDateText();W&&l.isValid&&this.commitDate(l.details);this.dialog.close();this.textbox.value=
this.dateText};
_.t.commitDate=function(W){this.calendarConfig&&(this.set("calendarConfig.selectedDate",W),_.FN(this.hostElement,"ytd-calendar-date-selected",W))};
_.t.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var W=this.textbox.value;var l=new Date;W=(new Uw6(2)).parse(W,l,{validate:!0})===W.length?E5v(l):void 0;if(!W)return this.errorMessage=_.wg("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};l=this.calendarConfig.start;var V=this.calendarConfig.end;if(x8U(W,l))return this.errorMessage=_.wg("ENTER_DATE_OR_LATER",{allowed_date:SnU(l)}),{isValid:!1,details:void 0};if(x8U(V,W))return this.errorMessage=
_.wg("ENTER_DATE_OR_EARLIER",{allowed_date:SnU(V)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:W}};
_.rc.Object.defineProperties(QJ.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?SnU(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var W=this.calendarConfig,l=[],V=0;V<7;V++)l.push(j$.NARROWWEEKDAYS[(V+Mf1)%7]);V=[];for(var f=new Date(W.start.year,W.start.month);f.getFullYear()<W.end.year||f.getFullYear()===W.end.year&&f.getMonth()<=W.end.month;){var r=V,R=r.push,y=f.getFullYear(),P=f.getMonth(),n=W,B=void 0,d=[],J=Object.freeze({extraCssClass:"invisible",debugClass:""}),D=new Date(y,P),u=E5v(D);D=D.getDay();for(var H=E5v(new Date);u.month===
P;){D!==Mf1&&B||(B=Array.from({length:7}).fill(J),d.push(B));var p={date:{year:y,month:P,day:u.day},extraCssClass:"",debugClass:""};n.selectedDate&&p.date&&YnJ(p.date,n.selectedDate)&&(p.extraCssClass+=" selected");if(x8U(u,n.start)||x8U(n.end,u))p.extraCssClass+=" disabled";YnJ(u,H)&&(p.extraCssClass+=" today");p.extraCssClass=p.extraCssClass.trim();B[(D-Mf1+7)%7]=p;u=qnx(u);D=(D+1)%7}R.call(r,{weeks:d,monthLabel:j$.SHORTMONTHS[P]+" "+y,year:y,month:P,monthLabelExtraCssClass:d[0][2]===J?"shift-down-label":
""});f.setMonth(f.getMonth()+1)}return{months:V,daysOfWeekLabel:l}}}}});
QJ.prototype.onEscOrClickingOutside=QJ.prototype.onEscOrClickingOutside;QJ.prototype.scrollToDate=QJ.prototype.scrollToDate;_.a([_.b(),_.z("design:type",Object)],QJ.prototype,"calendarConfig",void 0);_.a([_.b(),_.z("design:type",Object)],QJ.prototype,"skipNextOpenDialog",void 0);_.a([_.b(),_.z("design:type",Object)],QJ.prototype,"errorMessage",void 0);_.a([_.b(),_.z("design:type",Object)],QJ.prototype,"previousMonthLabel",void 0);
_.a([_.b(),_.z("design:type",Object)],QJ.prototype,"nextMonthLabel",void 0);_.a([_.Aa("#textbox"),_.z("design:type",HTMLInputElement)],QJ.prototype,"textbox",void 0);_.a([_.Aa("#calendar-dialog"),_.z("design:type",Object)],QJ.prototype,"dialog",void 0);_.a([_.Aa("#calendar-main"),_.z("design:type",Object)],QJ.prototype,"JSC$15726_calendarMain",void 0);_.a([_.Aa("#date-picker"),_.z("design:type",HTMLElement)],QJ.prototype,"dropdownButton",void 0);
_.a([_.G("calendarConfig.selectedDate"),_.z("design:type",String),_.z("design:paramtypes",[])],QJ.prototype,"dateText",null);_.a([_.G("calendarConfig","calendarConfig.selectedDate"),_.z("design:type",Object),_.z("design:paramtypes",[])],QJ.prototype,"renderData",null);_.a([_.TS("renderData","calendarConfig.selectedDate"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],QJ.prototype,"scrollToDate",null);
_.a([_.XI("iron-overlay-canceled"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],QJ.prototype,"onEscOrClickingOutside",null);_.a([_.Vq({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],QJ);
_.Z(QJ,"ytd-calendar-date-picker",function(){if(xK$!==void 0)return xK$;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return xK$=W},{mode:2});var eeX=_.wg("UTC_OFFSET_FORMAT",{utc_offset:(new Ca("Z")).format(new Date)}),qO1=(new Date).getTimezoneOffset()*-60,heX=new Date,SOc,EEk=na(heX.getTimezoneOffset());SOc=fda(RWL(EEk,heX));var $Kc=_.wg("LOCAL_TIME_GMT_LABEL",{gmt_text:SOc.replace("+0","+").replace("-0","-").replace(":00","")}),Mv=function(){var W=_.I.apply(this,arguments)||this;W.selectedTimeIndex=0;W.selectedTimezoneIndex=0;W.timeOfDayOptions=YOB;return W};
_.v(Mv,_.I);_.t=Mv.prototype;_.t.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var W=h7z();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=W,this.selectedTimeIndex=0;else{var l=$8F(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},W,{selectedDate:l.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(V){return V.secondsSinceMidnight===l.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.t.onDatePicked=function(W){this.selectedDate=W.detail};
_.t.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.FN(this.hostElement,"ytd-date-time-selection-cancelled")};
_.t.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var W=this.selectedDate;W=new Date(W.year,W.month,W.day);_.FN(this.hostElement,"ytd-date-time-selection-update",Math.floor(W.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+W.getTimezoneOffset()*60))}};
_.t.getTimezoneFormat=function(W){return W.localizedDisplayText?W.localizedDisplayText:_.wg("TIMEZONE_FORMAT",{utc_offset_text:""+W.localizedUtcOffset,city_name:""+W.localizedName})};
_.t.updateSelectedTimeIndexFromBinding=function(W){this.selectedTimeIndex=W.detail.value};
_.t.updateSelectedTimezoneIndexFromBinding=function(W){this.selectedTimezoneIndex=W.detail.value};
_.rc.Object.defineProperties(Mv.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=this.data.timezoneOptions;var l={name:"Etc/Unknown",localizedName:_.wg("LOCAL_TIME_LABEL"),localizedUtcOffset:eeX,utcOffsetSec:""+qO1,localizedDisplayText:$Kc};W?W.length&&W[0].name!==l.name&&(W[0].localizedDisplayText||(l.localizedDisplayText=""),W.unshift(l)):W=[l];return W}}},
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]}}});
Mv.prototype.onDateTimeTimezoneChange=Mv.prototype.onDateTimeTimezoneChange;Mv.prototype.onDatePicked=Mv.prototype.onDatePicked;Mv.prototype.updateDefaultSelectedValue=Mv.prototype.updateDefaultSelectedValue;_.a([_.b(),_.z("design:type",Object)],Mv.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Mv.prototype,"calendarConfig",void 0);_.a([_.b(),_.z("design:type",Object)],Mv.prototype,"selectedDate",void 0);_.a([_.b(),_.z("design:type",Object)],Mv.prototype,"selectedTimeIndex",void 0);
_.a([_.b(),_.z("design:type",Object)],Mv.prototype,"selectedTimezoneIndex",void 0);_.a([_.Aa("#time-listbox"),_.z("design:type",Object)],Mv.prototype,"timeListBox",void 0);_.a([_.Aa("#timezone-listbox"),_.z("design:type",Object)],Mv.prototype,"timezoneListBox",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Mv.prototype,"rendererStamperBehavior",void 0);_.a([_.G("data.timezoneOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],Mv.prototype,"timeZones",null);
_.a([_.zS("data","timeZones"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mv.prototype,"updateDefaultSelectedValue",null);_.a([_.G("selectedTimezoneIndex","timeZones"),_.z("design:type",Object),_.z("design:paramtypes",[])],Mv.prototype,"selectedTimezone",null);_.a([_.G("selectedTimeIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],Mv.prototype,"selectedTime",null);
_.a([_.XI("ytd-calendar-date-selected"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Mv.prototype,"onDatePicked",null);_.a([_.TS("selectedTimezone","selectedTime","selectedDate"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mv.prototype,"onDateTimeTimezoneChange",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Mv);
_.Z(Mv,"ytd-date-time-picker-renderer",function(){if(Qca!==void 0)return Qca;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Qca=W},{mode:1});var WFk;var Z8=function(){var W=_.I.apply(this,arguments)||this;W.boundOnTapDismissButton=function(){W.dismissTapHandler()};
W.dismissButtonOverrides={size:"XS"};return W};
_.v(Z8,_.I);Z8.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}}}}}};
Z8.prototype.dismissTapHandler=function(){_.FN(this.hostElement,"yt-backstage-attachment-dismissed")};
Z8.prototype.computeAttachmentType=function(W){return W?W.backstageImageRenderer?"image":W.videoRenderer?"video":"none":"none"};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Z8.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Z8.prototype,"attachmentPreview",void 0);_.a([_.b(),_.z("design:type",Object)],Z8.prototype,"dismissButton",void 0);_.a([_.b(),_.z("design:type",Object)],Z8.prototype,"boundOnTapDismissButton",void 0);
_.a([_.b(),_.z("design:type",Object)],Z8.prototype,"dismissButtonOverrides",void 0);_.a([_.b({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.z("design:type",String)],Z8.prototype,"attachmentType",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],Z8);
_.Z(Z8,"ytd-backstage-dismissable-attachment",function(){if(WFk!==void 0)return WFk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return WFk=W},{mode:1});var lQ9;var O8=function(){var W=_.I.apply(this,arguments)||this;W.selectedVideoId=void 0;W.picker=void 0;W.dismissButtonOverrides={size:"XS"};W.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return W};
_.v(O8,_.I);_.t=O8.prototype;_.t.onServiceRequestCompleted=function(W){W.stopPropagation()};
_.t.handleAddVideoPreviewAction=function(W){W=this.get("addVideoPreviewAction",W);this.onGetVideoPreviewSuccess(W)};
_.t.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}}}}}};
_.t.onLaunchVideoPicker=function(W){var l=this,V=_.dE(this.get("addVideoLinkAction.title",W)),f=this.get("addVideoLinkAction.onePickHostId",W);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",W);f&&(this.picker||(V=_.hVX(_.kjJ(f).setTitle(V).addView(Y6c()).addView(NUL()),function(r){l.onPickVideo(r)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",W)||V.addView("youtube"),this.picker=V.build()),this.picker.setVisible(!0))};
_.t.onPickVideo=function(W){if(W)if(W.action==="cancel")_.FN(this.hostElement,"yt-video-link-button-cancel");else if(W.action==="picked"){W=W.docs;if(!W||W.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(W=(W==null?0:W.length)?W[0]:void 0)?W.id:void 0;this.setVideoPreview()}};
_.t.setVideoPreview=function(){var W=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){W.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.t.onGetVideoPreviewSuccess=function(W){if(W&&W.videoPreview&&W.cancelButton)this.videoPreview=W.videoPreview,this.cancelButton=W.cancelButton,_.FN(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.t.onGetVideoPreviewError=function(){this.cancel()};
_.t.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.FN(this.hostElement,"yt-video-link-cancel")};
_.t.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
O8.prototype.onServiceRequestCompleted=O8.prototype.onServiceRequestCompleted;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],O8.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],O8.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],O8.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],O8.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],O8.prototype,"videoPreview",void 0);_.a([_.b(),_.z("design:type",Object)],O8.prototype,"cancelButton",void 0);_.a([_.b(),_.z("design:type",Object)],O8.prototype,"getVideoPreviewCommand",void 0);_.a([_.b(),_.z("design:type",Object)],O8.prototype,"dismissButtonOverrides",void 0);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],O8.prototype,"onServiceRequestCompleted",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],O8);
_.Z(O8,"ytd-backstage-video-link-attachment",function(){if(lQ9!==void 0)return lQ9;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return lQ9=W},{mode:1});var V2B;var fQ9;var r79;var aW=function(){return _.I.apply(this,arguments)||this};
_.v(aW,_.I);aW.prototype.dataChanged=function(){this.active=!1};
aW.prototype.onTap=function(){_.FN(this.hostElement,"yt-select-emoji-suggestion",this.data)};
aW.prototype.identity=function(W){return W};
_.rc.Object.defineProperties(aW.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var W,l,V,f;if((W=this.data)==null?0:(l=W.image)==null?0:(V=l.thumbnails)==null?0:(f=V[0])==null?0:f.url)return W=this.data.image.thumbnails[0].url,W.startsWith("data:image/svg+xml")?AO(W):_.NI(W)}}});
aW.prototype.dataChanged=aW.prototype.dataChanged;_.a([_.b(),_.z("design:type",Object)],aW.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],aW.prototype,"active",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],aW.prototype,"dataChanged",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],aW.prototype,"imageSrc",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],aW);
_.Z(aW,"ytd-emoji-suggestion",function(){if(r79!==void 0)return r79;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return r79=W},{mode:1});var RZ9=/.*([:@#].*?)$/,zM=function(){var W=_.I.apply(this,arguments)||this;W.suggestions=[];W.suggestionIndex=-1;W.JSC$15754_lastSuggestionRange=null;return W};
_.v(zM,_.I);_.t=zM.prototype;_.t.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.t.getSuggestions=function(W){var l=[],V=ige(this.emojiManager,W.substr(0,3));if(V)for(var f in V)if(f.toLocaleLowerCase().indexOf(W)===0){var r=V[f];if(r&&r.emojiId){r=kI(this.emojiManager,r.emojiId);var R=void 0,y=void 0,P=void 0,n=void 0,B=((R=r)==null?0:R.isCustomEmoji)?(y=r)==null?void 0:(P=y.shortcuts)==null?void 0:P[0]:(n=r)==null?void 0:n.emojiId;R=void 0;l.push({suggestion:{image:(R=r)==null?void 0:R.image,alt:B,text:f}});if(l.length>=64)break}}return l?l.sort(function(d,J){return J.suggestion.text<
d.suggestion.text?-1:J.suggestion.text===d.suggestion.text?0:1}):null};
_.t.insertSuggestion=function(W){_.FN(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15754_lastSuggestionRange,text:W.alt});this.dropdown.opened=!1};
_.t.updateSuggestionsAtCaret=function(W){this.updateSuggestions(W,this.retrieveTextBeforeRange(W))};
_.t.offsetStartOfRangeBy=function(W,l){W.startOffset>=l&&W.setStart(W.startContainer,W.startOffset-l)};
_.t.updateSuggestions=function(W,l){var V=this;this.JSC$15754_lastSuggestionRange&&(this.JSC$15754_lastSuggestionRange.detach(),this.JSC$15754_lastSuggestionRange=null);if((l=RZ9.exec(l))&&l.length&&(l=l[l.length-1].toLocaleLowerCase(),l.length>2||l===":_")&&(this.offsetStartOfRangeBy(W,l.length),this.JSC$15754_lastSuggestionRange=W,(W=this.getSuggestions(l))&&W.length)){this.suggestions=W;_.V9(this,function(){V.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(W.length-1);return}this.dropdown.opened=!1};
_.t.onKeyDown=function(W){if(this.dropdown.opened)switch(W.key){case "Escape":this.dropdown.opened=!1;W.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);W.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);W.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),W.preventDefault()}};
_.t.onKeyUp=function(W,l){switch(W.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(l);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(l)}};
_.t.onKeyPress=function(W){W.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),W.preventDefault())};
_.t.changeSuggestionIndex=function(W){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(W+this.suggestions.length)%this.suggestions.length,W=this.dropdownContent.children[this.suggestionIndex],W.active=!0,this.dropdownContent.scrollTop=W.offsetTop)};
_.t.retrieveTextBeforeRange=function(W){var l=W.startContainer;return l&&l.nodeType===Node.TEXT_NODE?l.textContent.substr(0,W.startOffset):""};
zM.prototype.onKeyPress=zM.prototype.onKeyPress;zM.prototype.onKeyUp=zM.prototype.onKeyUp;zM.prototype.onKeyDown=zM.prototype.onKeyDown;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],zM.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Array)],zM.prototype,"suggestions",void 0);_.a([_.b(),_.z("design:type",_.UB)],zM.prototype,"emojiManager",void 0);_.a([_.b(),_.z("design:type",Number)],zM.prototype,"verticalSuggestionsOffset",void 0);
_.a([_.Aa("#dropdown"),_.z("design:type",Object)],zM.prototype,"dropdown",void 0);_.a([_.Aa("#dropdown-content"),_.z("design:type",HTMLDivElement)],zM.prototype,"dropdownContent",void 0);_.a([_.XI("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],zM.prototype,"onKeyDown",null);_.a([_.XI("keyup"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent,Range]),_.z("design:returntype")],zM.prototype,"onKeyUp",null);
_.a([_.XI("keypress"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],zM.prototype,"onKeyPress",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-emoji-input"})],zM);
_.Z(zM,"ytd-emoji-input",function(){if(fQ9!==void 0)return fQ9;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return fQ9=W},{mode:2});var t29;var Nv=function(){var W=_.I.apply(this,arguments)||this;W.hasMaxOptions=!1;return W};
_.v(Nv,_.I);_.t=Nv.prototype;_.t.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.t.setPrefilledChoices=function(W){var l=this;this.set("pollOptions",[]);var V;for(V=0;V<Math.min(W.length,this.data.maxPollOptions);V++)this.push("pollOptions",W[V].substring(0,this.data.maxPollOptionChars));for(;V<this.data.minPollOptions;V++)this.push("pollOptions","");this.hasMaxOptions=V>=this.data.maxPollOptions;_.V9(this,function(){for(var f=l.pollOptions,r=_.GS(l.hostElement).querySelectorAll(".poll-option-input"),R=0;R<r.length;R++)r[R].value=f[R]})};
_.t.focusChanged=function(){_.I1(this.hostElement)};
_.t.onInput=function(){var W=this;_.gm(this,"onInput",function(){W.isValid()?_.FN(W.hostElement,"yt-commentbox-post-enable"):_.FN(W.hostElement,"yt-commentbox-post-disable")},300)};
_.t.setPollOptions=function(){var W=[],l,V=((l=this.data)==null?0:l.minPollOptions)?this.data.minPollOptions:0;for(l=0;l<V;l++)W.push("");return W};
_.t.addPollOption=function(){var W=this;_.FN(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.w8.addLowPriorityJob(function(){var l;(l=_.GS(W.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||l.focus()})};
_.t.onRemovePollOption=function(W){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.FN(this.hostElement,"yt-poll-attachment-dismiss")):(W=this.repeat.indexForElement(W.target.parentNode),W!==null&&(this.splice("pollOptions",W,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.FN(this.hostElement,"yt-commentbox-post-enable"))))};
_.t.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.t.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var W=0,l=this.pollOptions.length;W<l;W++)if(this.pollOptions[W].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.t.getPollOptions=function(){return this.pollOptions};
_.t.setPollOptionsFromInputs=function(){for(var W=_.GS(this.hostElement).querySelectorAll(".poll-option-input"),l=0;l<W.length;l++)this.pollOptions[l]=W[l].value.trim()};
_.t.clearPollOptions=function(){var W=_.GS(this.hostElement).querySelectorAll(".poll-option-input");W=_.L(W);for(var l=W.next();!l.done;l=W.next())l.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.t.getSimpleString=function(W){return _.dE(W)};
_.t.updateValueFromBinding=function(W){if(W.target&&this.pollOptions){var l=Array.from(_.GS(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(W.target);if(l>=0){var V;this.pollOptions[l]=(V=W.detail.value)!=null?V:"";this.notifyPath("pollOptions."+l)}}};
Nv.prototype.dataChanged=Nv.prototype.dataChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Nv.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Nv.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Array)],Nv.prototype,"pollOptions",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Nv.prototype,"hasMaxOptions",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Nv.prototype,"enableCreationBox",void 0);
_.a([_.Aa("#repeat"),_.z("design:type",ED)],Nv.prototype,"repeat",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Nv.prototype,"dataChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Nv);
_.Z(Nv,"ytd-poll-attachment",function(){if(t29!==void 0)return t29;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return t29=W},{mode:2});var sFI;var LF1;var y7Z;var gfk;var Ya=function(){return _.I.apply(this,arguments)||this};
_.v(Ya,_.I);_.rc.Object.defineProperties(Ya.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Ya.prototype,"rendererBehaviors",void 0);_.a([_.b(),_.z("design:type",Object)],Ya.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ya.prototype,"focused",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("focused"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ya.prototype,"ariaSelected",null);_.a([_.Vq({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],Ya);
_.Z(Ya,"yt-user-mention-suggestion-renderer",function(){if(gfk===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;y7Z===void 0&&(y7Z=document.createElement("template"));var f=y7Z;V.call(l,f.content.cloneNode(!0),W.content.firstChild);gfk=W}W=gfk;return W},{mode:2});var PRa;var nfB;var xa=function(){var W=_.I.apply(this,arguments)||this;W.focusedSuggestionIndex=-1;return W};
_.v(xa,_.I);_.t=xa.prototype;_.t.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.t.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.t.setFocusedSuggestionIndex=function(W){!this.data||!this.data.suggestions||W<0||W>=this.data.suggestions.length||(this.focusedSuggestionIndex=W,W=this.getSuggestionId(W),this._setFocusedSuggestionId(W))};
_.t.advanceSuggestion=function(W){this.focusedSuggestionIndex===-1||W!==-1&&W!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+W),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.t.ensureSuggestionVisible=function(W){W=this.getSuggestionId(W);W=_.GS(this.hostElement).querySelector("[id="+W+"]");W!=null&&(W.offsetTop<this.hostElement.scrollTop?W.scrollIntoView(!0):W.offsetTop+W.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&W.scrollIntoView(!1))};
_.t.getSuggestionId=function(W){return"user-mention-suggestion-"+W};
_.t.onSuggestionTap=function(W){var l=_.k(W.model.item,H6e);this.ytRendererBehavior.logExplicitClick(l);_.FN(this.hostElement,"yt-user-mention-suggestion-selected",{data:l,index:W.model.index})};
_.t.onSuggestionMouseMove=function(W){W.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(W.model.index)};
_.t.isSuggestionFocused=function(W,l){return W===l};
_.t.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.t.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.GD("focused-suggestion-id-changed",this.focusedSuggestionId))};
xa.prototype.focusedSuggestionIdChangedForBinding=xa.prototype.focusedSuggestionIdChangedForBinding;xa.prototype.onDomChange=xa.prototype.onDomChange;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],xa.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],xa.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],xa.prototype,"focusedSuggestionIndex",void 0);_.a([_.b({readOnly:!0}),_.z("design:type",String)],xa.prototype,"focusedSuggestionId",void 0);
_.a([_.XI("dom-change"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],xa.prototype,"onDomChange",null);_.a([_.TS("focusedSuggestionId"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xa.prototype,"focusedSuggestionIdChangedForBinding",null);_.a([_.Vq({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],xa);
_.Z(xa,"yt-user-mention-suggestions-dropdown",function(){if(nfB===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;PRa===void 0&&(PRa=document.createElement("template"));var f=PRa;V.call(l,f.content.cloneNode(!0),W.content.firstChild);nfB=W}W=nfB;return W},{mode:2});var eZ=function(){var W=_.I.apply(this,arguments)||this;W.suggestionsResponse=null;W.activeMention=null;W.selectionChangeListener=W.onSelectionChange.bind(W);W.handlesEnabled=_.U("enable_handles_in_mention_suggest_posts");W.handlesInMentionSuggestionsEnabled=_.U("handles_in_mention_suggest_posts");W.zeroPrefixMentionSuggestionEnabled=_.U("enable_zero_prefix_mention_suggestion_web");W.pendingQuery=null;W.flowNonce=null;return W};
_.v(eZ,_.I);_.t=eZ.prototype;_.t.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.t.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.t.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.t.hasSuggestions=function(W){return!!(W&&W.suggestions&&W.suggestions.length>0)};
_.t.onInput=function(){var W=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var l=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),V=this.activeMention.JSC$11343_getText().slice(-1)===" ",f=this.activeMention.JSC$11343_getText().slice(-2,-1)===" ",r="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11343_getText().slice(-2,
-1))>=0;r=this.zeroPrefixMentionSuggestionEnabled&&r;if(this.activeMention.isCollapsed()||(l||f||r)&&V)this.cancelActiveMention();else{var R=this.activeMention.JSC$11343_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.gm(this,"requestSuggestions",function(){W.requestSuggestions(R)},100)}}}};
_.t.onServiceRequestSent=function(W){W.stopPropagation()};
_.t.onServiceRequestCompleted=function(W){W.stopPropagation();W=W.detail.data;W.query&&(!this.pendingQuery||this.pendingQuery!==W.query)||!this.zeroPrefixMentionSuggestionEnabled&&W.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=W,this.hasSuggestions(W)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.t.onServiceRequestError=function(W){W.stopPropagation()};
_.t.onUserMentionSuggestionSelected=function(W){this.selectSuggestion(W.detail.data,W.detail.index)};
_.t.onSelectionChange=function(){if(this.activeMention){var W=_.FJ(),l=this.activeMention.JSC$11343_containsRange(W);W=W&&this.containsHelper(this.dropdown,W.getContainer());l||W||this.cancelActiveMention()}};
_.t.containsHelper=function(W,l){var V;if(((V=window.ShadyDOM)==null?void 0:V.noPatch)===!0)return W.contains(l);for(;l;){if(l===W)return!0;l=l instanceof ShadowRoot?l.host:l.parentNode}return!1};
_.t.maybeStartSuggest=function(){var W=_.FJ();if(W&&W.isCollapsed()){var l=W.JSC$11343_getStartNode(),V=W.JSC$11343_getStartOffset();if(l instanceof Text&&!(V<1)){var f=l.textContent;!(f=f&&f.charAt(V-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(f)<0||(this.activeMention=_.s2(l,V-1,W.JSC$11343_getEndNode(),W.JSC$11343_getEndOffset()),this.flowNonce=SQ(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.t.updateActiveMention=function(){if(this.activeMention){var W=_.FJ();W&&W.isCollapsed()&&(this.activeMention=_.s2(this.activeMention.JSC$11343_getStartNode(),this.activeMention.JSC$11343_getStartOffset(),W.JSC$11343_getEndNode(),W.JSC$11343_getEndOffset()))}};
_.t.requestSuggestions=function(W){if(this.activeMention){var l={suggestions_query:W};this.pendingQuery=W;_.pN(this.hostElement,[this.suggestionsEndpoint,l])}};
_.t.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()};
_.t.focusPreviousSuggestion=function(W){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),W.preventDefault())};
_.t.focusNextSuggestion=function(W){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),W.preventDefault())};
_.t.selectFocusedSuggestion=function(W){if(this.hasSuggestions(this.suggestionsResponse)){var l=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.k(l,H6e)&&(this.selectSuggestion(_.k(l,H6e),this.dropdown.focusedSuggestionIndex),W.preventDefault())}};
_.t.selectSuggestion=function(W,l){if(W){var V=this.activeMention;if(V){var f=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&W.handle?_.WW(f,"\u00a0\u2068@"+W.handle+"\u2069\u00a0"):this.handlesEnabled?_.WW(f,"\u00a0"+W.displayName+"\u00a0"):_.WW(f,"\u00a0@"+W.displayName+"\u00a0");hO(f,"/channel/"+W.channelId);f.classList.add("yt-formatted-string","yt-simple-endpoint");f.setAttribute("spellcheck","false");V.isCollapsed()||V.JSC$11343_removeContents();V.insertNode(f,!0);W=document.createTextNode(" ");
f.parentNode.insertBefore(W,f.nextSibling);window.getSelection().collapse(W,1);l={suggestionSelected:{suggestionIndex:l}};if(this.zeroPrefixMentionSuggestionEnabled){var r;l.suggestionSelected.isZeroPrefix=((r=this.suggestionsResponse)==null?void 0:r.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",l);this.cancelActiveMention();_.FN(this.hostElement,"yt-mention-inserted")}}};
_.t.getPositionTarget=function(W){return W&&W.getBrowserRangeObject()};
_.t.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.t.onFocusedSuggestionIdChanged=function(W){var l=_.Fn8(this.hostElement)[0];l&&(W.detail.value?l.setAttribute("aria-activedescendant",W.detail.value):l.removeAttribute("aria-activedescendant"))};
_.t.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.t.logGELEvent=function(W,l){W={eventType:W,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};l&&(W=Object.assign(W,l));_.XC("userMentionAutoCompleteBoxEvent",W)};
eZ.prototype.onDomChange=eZ.prototype.onDomChange;eZ.prototype.onUserMentionSuggestionSelected=eZ.prototype.onUserMentionSuggestionSelected;eZ.prototype.onServiceRequestError=eZ.prototype.onServiceRequestError;eZ.prototype.onServiceRequestCompleted=eZ.prototype.onServiceRequestCompleted;eZ.prototype.onServiceRequestSent=eZ.prototype.onServiceRequestSent;eZ.prototype.onInput=eZ.prototype.onInput;_.a([_.F(_.NN),_.z("design:type",Object)],eZ.prototype,"ironA11yKeysBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],eZ.prototype,"suggestionsEndpoint",void 0);_.a([_.b(),_.z("design:type",Object)],eZ.prototype,"suggestionsResponse",void 0);_.a([_.b(),_.z("design:type",Object)],eZ.prototype,"activeMention",void 0);_.a([_.Aa("#dropdown"),_.z("design:type",Object)],eZ.prototype,"dropdown",void 0);_.a([_.Aa("#iron-dropdown"),_.z("design:type",Object)],eZ.prototype,"ironDropdown",void 0);
_.a([_.XI("input"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],eZ.prototype,"onInput",null);_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],eZ.prototype,"onServiceRequestSent",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],eZ.prototype,"onServiceRequestCompleted",null);
_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],eZ.prototype,"onServiceRequestError",null);_.a([_.XI("yt-user-mention-suggestion-selected"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],eZ.prototype,"onUserMentionSuggestionSelected",null);
_.a([_.XI("dom-change"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],eZ.prototype,"onDomChange",null);_.a([_.Vq({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],eZ);
_.Z(eZ,"yt-user-mention-autosuggest-input",function(){if(LF1===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;sFI===void 0&&(sFI=document.createElement("template"));var f=sFI;V.call(l,f.content.cloneNode(!0),W.content.firstChild);LF1=W}W=LF1;return W},{mode:2});var qv=null;
_.S3({is:"ytd-commentbox",_template:function(){if(V2B!==void 0)return V2B;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return V2B=W},
behaviors:[_.f8Y.YtHostElementBehavior,_.NN,_.hp.YtActionHandlerBehavior,_.uH.YtComponentBehavior,_.Ap.YtRendererstamperBehavior,_.EX9.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(W,l){return _.mL(W.entities,"aadcGuidelinesStateEntityPayload",l)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(W,l){return _.mL(W.entities,"commentboxStateEntity",l)},
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 _.vB}},
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:_.U("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.U("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",_.mz(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(W){this.fire(W?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(W){this.set("submitButtonDisabled",void 0);this.clear();W&&this.computeIsEmojiButtonDisplayed_(W)&&(W=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&W.updateEmojiCategories()},
observePrefilledImage_:function(W,l,V){this.isValidPrefilledImage_(W,l,V)&&(this.prefilledAttachment_="image",this.prefilledImageData_=l,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(W,l){this.isValidPrefilledVideo_(W,l)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(W){W&&W.pollData&&W.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(W.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.wP();this.focus()},
detached:function(){document.removeEventListener("tap",_.mz(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(W){W=W.detail;W=W.isCustomEmoji?W.shortcuts[0]:W.emojiId;var l=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(l,W);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var W=_.FJ();if(W){W=W.getBrowserRangeObject();for(var l=W.commonAncestorContainer;l;){if(l===this.getEditableTextArea_())return W;l=l.parentNode}}W=this.getEditableTextArea_();W=_.tu(W,W.childNodes.length);W.select();return W.getBrowserRangeObject()},
insertTextWithEmojis_:function(W,l,V){(l=this.emojiManager.createDocumentFragment(l,!0,!1,V===void 0?!0:V))&&l.childNodes.length!==0&&(W.collapsed||W.deleteContents(),V=l.lastChild,W.insertNode(l),_.KzX(V).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var W=_.FJ();if(W){var l=W.JSC$11343_getStartNode(),V=W.JSC$11343_getEndNode();if(lMv(l)&&lMv(V)){var f=W.JSC$11343_getStartOffset(),r;if(_.Fe&&l.nodeType===Node.ELEMENT_NODE&&(r=_.KNe(l)))_.tu(r,0).select();else{r=vf(l)?l:_.YN(l,vf);var R=vf(V)?V:_.YN(V,vf);if(r||R)if(W.isCollapsed()){if(l.nodeType===Node.TEXT_NODE){W=!0;f===l.length&&(W=!1);if(qv==="end"||qv==="right")W=!1;l=l.parentNode;W=[].concat(_.QK(l.parentNode.childNodes)).indexOf(l)+(W?0:1);_.tu(l.parentNode,
W).select()}}else r?r.previousSibling&&r.previousSibling.length>0?_.s2(V,W.JSC$11343_getEndOffset(),r.previousSibling,r.previousSibling.length-1).select():(l=document.createTextNode("\u200b"),r.parentNode.insertBefore(l,r),_.s2(V,W.JSC$11343_getEndOffset(),l,0).select()):R&&(R.nextSibling&&R.nextSibling.length>0?_.s2(l,W.JSC$11343_getStartOffset(),R.nextSibling,1).select():(V=document.createTextNode("\u200b"),R.parentNode.insertBefore(V,R.nextSibling),_.s2(l,W.JSC$11343_getStartOffset(),V,V.length).select()));
qv=null}}else qv=null}else qv=null},
leftKeyPressed_:function(){qv="left"},
rightKeyPressed_:function(){qv="right"},
endKeyPressed_:function(){qv="end"},
maybeDeleteChip_:function(){var W=sIJ(!0);if(W){var l=_.FJ(),V=l.JSC$11343_getStartNode();l=l.JSC$11343_getStartOffset();_.l9(V,l,W,W.childNodes.length).select()}},
maybeBackspaceChip_:function(){var W=sIJ(!1);if(W){var l=_.FJ(),V=l.JSC$11343_getStartNode();l=l.JSC$11343_getStartOffset();_.l9(V,l,W,0).select()}},
maybeBackspaceChipWordMode_:function(W){var l=_.FJ();if(l.isCollapsed()){var V=l.JSC$11343_getStartNode();l=l.JSC$11343_getStartOffset();var f=Lhq(V,l,!0);f&&(_.l9(V,l,f,0).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(W){var l=_.FJ();if(l.isCollapsed()){var V=l.JSC$11343_getStartNode();l=l.JSC$11343_getStartOffset();var f=Lhq(V,l,!1);f&&(_.l9(V,l,f,f.childNodes.length).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
onTap_:function(W){if(!W.defaultPrevented&&(W.currentTarget.tagName==="YTD-COMMENTBOX"&&vf(W.target)&&W.preventDefault(),this.isEmojiPickerDisplayed)){var l=this.$$("#emojis"),V=this.$$("#emoji-button"),f=this.getEditableTextArea_();if((W=W.path?W.path:W.composedPath&&W.composedPath())&&!W.includes(l)&&!W.includes(f)&&!W.includes(V))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(W,l,V){return W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&l!==void 0&&l.encryptedBlobId!==null&&l.sourceExternalVideoId!==null&&V!==void 0&&V.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(W,l){return W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!l&&!!l.videoRenderer&&!!l.videoRenderer.videoId},
isValidPrefilledAttachment_:function(W,l,V){return this.isValidPrefilledImage_(W,l,V)||this.isValidPrefilledVideo_(W,V)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.U("enable_multi_image_post_creation")){var W=this.$$("ytd-backstage-multi-image-select-renderer");W&&W.hasImages()&&W.cancel()}else(W=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&W.cancel();(W=this.$["poll-attachment"])&&this.hasPoll_&&W.clearPollOptions();(W=this.$["image-poll-attachment"])&&this.hasImagePoll_&&W.resetPollOptions();(W=this.$["quiz-attachment"])&&this.hasQuiz_&&W.resetQuizOptions();
(W=this.$["video-link-attachment"])&&this.hasVideo_&&W.cancel();(W=this.$["access-restrictions-selector"].firstElementChild)&&W.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 _.GS(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.GS(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(W,l){W=fM4(W,this.emojiManager,l).cloneNode(!0);for(l=W.firstChild;l;)if(l.nodeType!==1)l=l.nextSibling;else switch(l.tagName){case "BR":var V=_.eg();_.i29(V,l);l=V.nextSibling;break;case "DIV":(V=l.lastChild)&&l.nextSibling&&_.Ed(_.eg(),V);l.previousSibling&&(l.previousSibling.nodeType===1||l.previousSibling.nodeType===3&&!l.previousSibling.textContent.endsWith("\n"))&&_.Sg(_.eg(),l);V&&V.nodeName==="BR"&&_.bI(V);V=l;l.hasChildNodes()?(l=l.firstChild,
_.mH$(V)):(l=l.nextSibling,_.bI(V));break;default:l=l.nextSibling}return ytn(W)},
onAddImageError_:function(W){W.stopPropagation();this.errorMessage_=_.Bl(W.detail)},
setTextAreaValue_:function(W){W||(W="");var l=this.getEditableFormattedString_();l.text="";this.getEditableTextArea_().innerText="";typeof W==="string"&&(W={runs:[{text:W}]});l.text=W},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();qv=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var W=this.getEditableTextArea_();W&&(_.tu(W,W.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.M4("HTML_DIR")==="rtl"){var W=this.getEditableTextArea_(),l=this.getTextAreaValue()!==""?"auto":"rtl";W.setAttribute("dir",l)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var W;return s3q((W=this.$["quiz-attachment"])==null?void 0:W.getExplanationText())||s3q(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var W=null;if(this.isEmojiButtonDisplayed){var l=this.getInputRange_();l&&(W=this.emojiInput.retrieveTextBeforeRange(l))}this.insertText_(W,!0);this.updateCharCount_();this.setSubmitButton_();W=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=W.scrollHeight>W.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var W=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:W})},
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(W){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(W)},
onPasteEmoji_:function(W){W.preventDefault();W.stopImmediatePropagation();W=W.clipboardData.getData("text/plain");this.insertText_(W,!1,!1)},
insertText_:function(W,l,V){l=l===void 0?!1:l;V=V===void 0?!0:V;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&W){var f=this.getInputRange_().cloneRange();this.emojiManager&&f&&(l&&this.emojiInput.offsetStartOfRangeBy(f,W.length),this.insertTextWithEmojis_(f,W,V),VIU(this.getEditableTextArea_().lastChild)||(f=this.getInputRange_().cloneRange()),f&&(this.emojiInput.updateSuggestions(f,W),this.updateSuggestionOffset_(f)))}},
setSubmitButton_:function(){if(this.data){var W=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",l=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(W||l){var V=this.getTextAreaValue().trim();l=V===this.previousText_;V=!V||this.aboveCharLimit_;W&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(V=this.aboveCharLimit_);this.submitButtonDisabled=
l||V||!this.getTextLength();W&&_.U("enable_post_scheduling")&&(this.submitButtonDisabled=l&&!this.scheduledPublishTimeSec_||V)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.dE,computeCreationBoxClass_:function(W){return W?"focused":"not-focused"},
computeFooterMessageClass_:function(W,l){return l?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(W,l){return l?l:W},
computeFooterMessageHidden_:function(W,l){return!l&&!W},
computePlaceholderText_:function(W,l,V){return(V==="video"||V==="image")&&(W==null?0:W.prefilledPlaceholderText)?W==null?void 0:W.prefilledPlaceholderText:l==="poll"||l==="image-poll"?W==null?void 0:W.pollPostPlaceholderText:l==="quiz"?W==null?void 0:W.quizPostPlaceholderText:l==="image"?W==null?void 0:W.imagePostPlaceholderText:W==null?void 0:W.placeholderText},
computeHideAttachmentButtons_:function(W,l,V,f){return W===void 0?!1:f&&this.getSimpleString(f)===this.getSimpleString(W.rateLimitErrorMessage)?!0:l!=="none"||V!=="none"||!W.videoLinkButton&&!W.pollButton&&!W.imagePollButton&&!W.quizButton&&!W.imageButton},
computeHideDismissableAttachment_:function(W){return W!=="image"&&W!=="video"},
computeHasVideo_:function(W){return W==="video"},
computeHasImage_:function(W){return W==="image"},
computeHasPoll_:function(W){return W==="poll"},
computeHasImagePoll_:function(W){return W==="image-poll"},
computeHasQuiz_:function(W){return W==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(W){return W&&W.backstageAttachment?W.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!W.backstageAttachment.quizRenderer&&!W.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(W){if(this.isValidPrefilledAttachment_(W.purpose,W.prefilledImageData,W.backstageAttachment))return W.backstageAttachment},
computeEditAttachment_:function(W){if(this.computePrefilledContent_(W)===void 0)return W.backstageAttachment},
computeAuthorThumbnailDimension_:function(W,l){return W&&!l?24:40},
computeImageUploadEndpoint_:function(W){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",W)},
computeRateLimitErrorCommands_:function(W){var l,V;return W==null?void 0:(l=W.advancedTierFeatures)==null?void 0:(V=l.rateLimit)==null?void 0:V.rateLimitCommands},
computeIsBackstageComment_:function(W){return!(!W||W!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(W){return this.get("submitButton.buttonRenderer.serviceEndpoint",W)||this.get("replyButton.buttonRenderer.serviceEndpoint",W)||this.get("postButton.buttonRenderer.serviceEndpoint",W)},
computeSubmitButtonOverride:function(){if(_.U("web_modern_buttons")){var W,l;return{segmentedPosition:this.dropdownSchedulePanel_||!((W=this.data)==null?0:(l=W.postOptionsMenu)==null?0:l.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.U("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(W,l){W=this.get("submitButton.buttonRenderer",W)||this.get("replyButton.buttonRenderer",W)||this.get("postButton.buttonRenderer",W);l&&(W=l);W&&(W=Object.assign({},W),W.serviceEndpoint=void 0,W.isDisabled=this.submitButtonDisabled);return W},
computeHasExternalLinksAccess_:function(W){if(_.U("enable_rfa_external_links")){var l,V,f;return(f=W==null?void 0:(l=W.advancedTierFeatures)==null?void 0:(V=l.externalLinks)==null?void 0:V.allowExternalLinks)!=null?f:!0}return!0},
computeIsEmojiButtonDisplayed_:function(W){return W.emojiButton&&W.emojiPicker&&W.emojiPicker.emojiPickerRenderer&&W.emojiPicker.emojiPickerRenderer.categories?W.emojiPicker.emojiPickerRenderer.categories.find(function(l){return l.emojiPickerCategoryRenderer?l.emojiPickerCategoryRenderer.emojiIds&&l.emojiPickerCategoryRenderer.emojiIds.length>0:l.emojiPickerUpsellCategoryRenderer?l.emojiPickerUpsellCategoryRenderer.emojis&&l.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(W){return W.charLimit?W.charLimit:null},
computeDropdownSchedulingPanel_:function(W,l){if(W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&l)return l},
computeInlineSchedulingPanel_:function(W,l){if(W==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&l)return l},
computeHideAuthorThumbnail_:function(W,l){return W||this.computeUseIdentityChip_(l)},
computeHideIdentityChipRenderer_:function(W,l){return W||!this.computeUseIdentityChip_(l)},
computeUseIdentityChip_:function(W){return!!W&&!!W.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(W){var l,V,f,r;(W==null?0:(l=W.detail)==null?0:(V=l.endpoint)==null?0:V.ypcGetOffersEndpoint)||(W==null?0:(f=W.detail)==null?0:(r=f.endpoint)==null?0:r.ypcOffersEndpoint)?(W.stopPropagation(),_.pN(this,[W.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",W)&&(W.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(W){this.addedAttachment="video";this.selectedVideoId_=W.detail.videoId},
commentboxStateEntityChanged_:function(W){var l=this;(W==null?void 0:W.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(W==null?void 0:W.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){l.focus()})},
onYtServiceRequestSent_:function(W,l){if(l.actions)for(W=_.L(l.actions),l=W.next();!l.done;l=W.next())l.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(W){this.isLoading=!1;var l=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",W),V,f,r,R=W==null?void 0:(V=W.detail)==null?void 0:(f=V.data)==null?void 0:(r=f.actionResult)==null?void 0:r.commentboxStateEntityKey;if(l)this.errorMessage_=l;else if(R){var y;this.dismissData_=W==null?void 0:(y=W.detail)==null?void 0:y.data;this.commentboxStateKey_=R}else{this.clear();var P;this.fire("yt-commentbox-dismiss",W==null?void 0:(P=W.detail)==
null?void 0:P.data)}},
onYtServiceRequestError_:function(W){W.stopPropagation();this.isLoading=!1;var l,V;if(((l=this.data)==null?void 0:l.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((V=this.data)==null?void 0:V.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(l=this.get("detail.error.args",W)||[],l.length>1&&l[1].message){this.handlePostsServiceRequestError_(l[1].message);return}(W=this.get("detail.error.message",W))?this.errorMessage_=this.data.errorMessage||_.Bl(W):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(W){if(_.U("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var l=_.L(this.rateLimitErrorCommands),V=l.next();!V.done;V=l.next())if(V=V.value,V.errorLabel===W){_.XY(V.command,this.hostElement);return}this.errorMessage_=_.Bl(W)},
submitIfNotBackstagePost_:function(W){if(!this.isBackstagePost)this.onSubmit_(W)},
onSubmit_:function(W){var l=this,V,f,r,R,y,P,n,B,d,J,D,u,H,p,X;return _.g(function(w){switch(w.nextAddress){case 1:W.stopPropagation();if(!l.serviceEndpoint||!l.isValidInput_())return w.return();if(l.shouldShowPostAadcNotice_())return l.showPostAadcNotice_(),w.return();if(l.shouldShowCommentAadcNotice_())return l.showCommentAadcNotice_(),w.return();if(!(l.$$("ytd-backstage-multi-image-select-renderer")&&l.hasImage_&&_.U("enable_multi_image_post_creation"))){w.jumpTo(2);break}V=l.$$("ytd-backstage-multi-image-select-renderer");
return w.yield(V.getAllUploadStatuses(),3);case 3:f=w.yieldResult;if(!f)return w.return();r=_.L(f);for(R=r.next();!R.done;R=r.next())if(y=R.value,y.encryptedBlobId===void 0)return l.isLoading=!1,n=P=void 0,l.errorMessage_=(n=(P=l.imageUploadEndpoint_)==null?void 0:P.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?n:null,w.return();return w.return(l.submitForm_(void 0,void 0,void 0,void 0,V.images,l.taggedVideoId_));case 2:if(!l.hasImagePoll_||!l.$["image-poll-attachment"]){w.jumpTo(4);
break}return w.yield(l.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:B=w.yieldResult;if(!B)return w.return();d=_.L(B);for(J=d.next();!J.done;J=d.next())if(D=J.value,!D.encryptedBlobId)return l.isLoading=!1,u=void 0,l.errorMessage_=(u=l.data.errorMessage)!=null?u:null,w.return();case 4:p=(H=l.$$("ytd-backstage-image-select-renderer"))&&H.uploadPromise(),X=l.getSharedPostId_(),p?p.then(function(){l.submitForm_.apply(l,_.QK(_.xk.apply(0,arguments)))}).catch(function(O){l.isLoading=!1;
l.errorMessage_=_.Bl(O.message)}):l.selectedVideoId_?l.submitForm_(void 0,l.selectedVideoId_):l.prefilledAttachment_==="image"?l.submitForm_(l.prefilledImageData_.encryptedBlobId,void 0,void 0,l.prefilledImageData_.sourceExternalVideoId,void 0,l.taggedVideoId_):l.prefilledAttachment_==="video"?l.submitForm_(void 0,l.data.backstageAttachment.videoRenderer.videoId):X?l.submitForm_(void 0,void 0,X):l.taggedVideoId_!==void 0?l.submitForm_(void 0,void 0,void 0,void 0,void 0,l.taggedVideoId_):l.submitForm_(),
_.ju(w)}})},
openSchedulingPanel:function(W){W&&W.scheduleButton&&W.scheduleButton.buttonRenderer&&(this.scheduleButton_=W.scheduleButton.buttonRenderer);W&&W.dateTimePicker&&this.set("data.schedulingDateTimePicker",W.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(W){W.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(W){W.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(W){W.stopPropagation();W.detail.alertMessage&&(this.alertMessage_=W.detail.alertMessage)},
onImageSelected_:function(W){W.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(W){W.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(W){W.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(W.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(W){W.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(W){var l=this.$["video-link-attachment"];l&&l.onLaunchVideoPicker(W)},
onAttachmentDismiss_:function(W){W.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"&&_.U("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.U("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 W;if(this.addedAttachment==="image-poll"&&((W=this.$["image-poll-attachment"])==null||!W.isValid()))return!1;var l;if(this.addedAttachment==="quiz"&&((l=this.$["quiz-attachment"])==null||!l.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;W=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(W=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")W=!0;return W||!!this.getTextAreaValue().trim()},
submitForm_:function(W,l,V,f,r,R){var y=this.getTextAreaValue().trim(),P={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&y===this.previousText_&&(y=void 0);y!==void 0&&(P.comment_text=y);this.isLoading=!0;R!=void 0&&(P.tagged_video_id=R);W?(P.image_blob_id=W,this.imagePreviewCoordinates_&&(P.image_preview_coordinates=this.imagePreviewCoordinates_)):l?P.attached_video_id=l:V?P.shared_post_id=V:r&&r.length>0&&(P.images_data=r.map(function(n){return{encryptedBlobId:n.encryptedBlobId,
previewCoordinates:n.previewCoordinates}}));
f&&(P.source_video_id=f);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(P.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(P.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(P.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.U("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(P.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.U("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(P.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.pN(this,[this.serviceEndpoint,P])},
onIsInputFocusChanged_:function(W,l){W?this.fire("yt-autonav-pause-focus"):l!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(W){var l=this.getEditableTextArea_();[].concat(_.QK(W.dataTransfer.items)).forEach(function(V){V.kind==="string"&&V.type.match("^text/plain")&&V.getAsString(function(f){l.appendChild(document.createTextNode(f))})});
W.preventDefault()},
preventDefault_:function(W){W.preventDefault()},
onSuggestionInsert_:function(W){this.insertTextWithEmojis_(W.detail.range,W.detail.text)},
onEmojiSuggestionClick_:function(W){this.emojiInput.insertSuggestion(W.detail)},
computeSubmitButtonClass_:function(W,l){return!l||W?"":"with-options"},
updateSuggestionOffset_:function(W){if(this.emojiInput&&_.GS(this.emojiInput).querySelector("#dropdown")){var l=this.getEditableTextArea_().getBoundingClientRect().bottom,V=W.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(l-V)+5;l=this.getEditableTextArea_().getBoundingClientRect().left;W=W.getBoundingClientRect().left-l;_.GS(this.emojiInput).querySelector("#dropdown").style.marginLeft=W+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(W){if(_.U("enable_post_scheduling")&&this.data&&this.data.purpose){W=W.detail;if(Math.floor(Date.now()/1E3)>=W)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var l=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(l)||l!==W?this.scheduledPublishTimeSec_=W:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=W;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var W=["image-button","image-poll-button","poll-button"];_.U("enable_quiz_creation")&&W.push("quiz-button");_.U("auto_convert_posts_video_tag")||W.push("video-link-button");return W},
getButtonRenderer:function(W,l){if(W)switch(l){case "video-link-button":var V;return((V=W.videoLinkButton)==null?void 0:V.buttonRenderer)||void 0;case "image-button":var f;return((f=W.imageButton)==null?void 0:f.buttonRenderer)||void 0;case "poll-button":var r;return((r=W.pollButton)==null?void 0:r.buttonRenderer)||void 0;case "image-poll-button":var R;return((R=W.imagePollButton)==null?void 0:R.buttonRenderer)||void 0;case "quiz-button":var y;return((y=W.quizButton)==null?void 0:y.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var W;return(W=this.data)==null||!W.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var W,l;return!((W=this.data)==null||!W.openAadcDialog)&&!((l=this.aadcGuidelinesState_)==null||!l.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.M4("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var W;((W=this.data)==null?0:W.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Ow("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(W){W.clickTrackingParams&&_.Qq().clickCommand(W);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.Gt(this,"yt-close-popup-action")},
onHideIdentityChip:function(W){var l;this.set("data.placeholderText",(l=W.hideIdentityChipAction)==null?void 0:l.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var hR=function(){var W=_.I.apply(this,arguments)||this;W.isOpen=!1;W.modern=_.U("web_modern_buttons");W.roundedContainer=!0;W.dropdownButtonOverride=_.U("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;W.inPopupContainer=!1;W.isCommentboxLoading=!1;var l=["image-button","image-poll-button","poll-button"];_.U("enable_quiz_creation")&&l.push("quiz-button");_.U("auto_convert_posts_video_tag")||l.push("video-link-button");W.attachmentButtonIds=l;W.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 W};
_.v(hR,_.I);_.t=hR.prototype;_.t.computeButtonOverride=function(){var W;return((W=this.data)==null?0:W.postOptionsMenu)&&_.U("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.t.configureRendererStamper=function(){var W={"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]]"}}}}};_.U("auto_convert_posts_video_tag")||(W["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return W};
_.t.ready=function(){var W=this,l=_.GS(this.hostElement).querySelector("#placeholder-area"),V=function(f){W.onOpen(f)};
l.addEventListener("tap",V);l.addEventListener("keypress",V)};
_.t.showButtonEduTooltip=function(){var W,l,V,f,r,R,y;if(_.U("enable_quiz_creation")&&((W=this.data)==null?0:(l=W.quizButton)==null?0:(V=l.buttonRenderer)==null?0:(f=V.hint)==null?0:(r=f.hintRenderer)==null?0:(R=r.content)==null?0:(y=R.bubbleHintRenderer)==null?0:y.text)&&(_.To.getInstance(),W=wZ(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(W==null?void 0:
W.length)>0)){this.ytComponentBehavior.resolveCommand(W[0],{form:{element:this.quizButton}});return}var P;if((P=this.data)==null?0:P.imagePollButtonTooltip)if(_.To.getInstance(),P=wZ(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(P==null?void 0:P.length)>0){this.ytComponentBehavior.resolveCommand(P[0],{form:{element:this.imagePollButton}});return}var n;_.U("enable_multi_image_post_creation")&&
((n=this.data)==null?0:n.multiImageButtonTooltip)&&(_.To.getInstance(),n=wZ(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(n==null?void 0:n.length)>0&&this.ytComponentBehavior.resolveCommand(n[0],{form:{element:this.imageButton}}))};
_.t.onCreatePollAction=function(W){_.k(W,fRc)&&(this.JSC$15809_commentbox.addedAttachment="poll",this.openDialog())};
_.t.onAddVideoLinkAction=function(W){if(_.k(W,$RZ))this.JSC$15809_commentbox.onAddVideoLink(W)};
_.t.onShowSchedulingPanelCommand=function(W){(W=_.k(W,bUL))&&this.openSchedulingPanel(W)};
_.t.onCreateImagePollCommand=function(W){_.k(W,UlX)&&(this.JSC$15809_commentbox.openImagePollComponent(),this.openDialog())};
_.t.onCreateQuizCommand=function(W){_.k(W,u6k)&&(this.JSC$15809_commentbox.openQuizComponent(),this.openDialog())};
_.t.openSchedulingPanel=function(W){_.U("enable_post_scheduling")&&(this.openDialog(),this.JSC$15809_commentbox.openSchedulingPanel(W))};
_.t.onCreateCommentAction=function(W){this.get("createCommentAction.contents",W)&&(this.JSC$15809_commentbox.clear(),this.closeDialog())};
_.t.onOpen=function(W){W instanceof KeyboardEvent&&W.type==="keypress"&&W.keyCode!==13&&W.keyCode!==32||(this.data.prepareAccountEndpoint?_.FN(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.t.onYtCommentboxDismiss=function(){this.closeDialog()};
_.t.onYtCommentboxLoadingStart=function(W){W.stopPropagation();this.isCommentboxLoading=!0};
_.t.onYtCommentboxLoadingEnd=function(W){W.stopPropagation();this.isCommentboxLoading=!1};
_.t.onYtVideoLinkButtonCancel=function(W){W.stopPropagation();this.onOpen(W)};
_.t.onYtVideoLinkSelected=function(W){W.stopPropagation();this.onOpen(W)};
_.t.onIronSelect=function(W){W.stopPropagation();W.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=W.detail.item.value&&(this.accessRestriction?(this.accessRestriction=W.detail.item.value,this.onOpen(W)):this.accessRestriction=W.detail.item.value)};
_.t.onYtNavigate=function(W){this.get("detail.endpoint.backstageImageUploadEndpoint",W)&&(this.JSC$15809_commentbox.addedAttachment="image",this.JSC$15809_commentbox.submitButtonDisabled=!0,this.onOpen(W))};
_.t.onRequestSent=function(W){if(_.U("web_button_rework"))for(var l=_.L(W.detail),V=l.next();!V.done;V=l.next())_.k(V.value,IuX)&&(this.JSC$15809_commentbox.addedAttachment="image",this.JSC$15809_commentbox.submitButtonDisabled=!0,this.onOpen(W))};
_.t.openDialog=function(){this.JSC$15809_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$15809_commentbox.focus()};
_.t.onPopupClosed=function(){_.To.getInstance()};
_.t.computeCreationDisabled=function(W){return!!W};
_.t.computeIsCreationDialog=function(W){return!!W&&W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.t.computeDisabledPostButton=function(W){if(!W)return null;W.isDisabled=!0;return W};
_.t.computeIsCreationDialogWithHeader=function(W){return!this.inPopupContainer&&!!W&&!!W.authorText&&W.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.t.computeIsHeaderHidden=function(W,l){return!W||l};
_.t.computeDropdownRendererClasses=function(W){return W?["text-secondary-style"]:[]};
_.t.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var W=_.GS(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;W&&W.reset()};
hR.prototype.onPopupClosed=hR.prototype.onPopupClosed;hR.prototype.onRequestSent=hR.prototype.onRequestSent;hR.prototype.onYtNavigate=hR.prototype.onYtNavigate;hR.prototype.onIronSelect=hR.prototype.onIronSelect;hR.prototype.onYtVideoLinkSelected=hR.prototype.onYtVideoLinkSelected;hR.prototype.onYtVideoLinkButtonCancel=hR.prototype.onYtVideoLinkButtonCancel;hR.prototype.onYtCommentboxLoadingEnd=hR.prototype.onYtCommentboxLoadingEnd;hR.prototype.onYtCommentboxLoadingStart=hR.prototype.onYtCommentboxLoadingStart;
hR.prototype.onYtCommentboxDismiss=hR.prototype.onYtCommentboxDismiss;hR.prototype.showButtonEduTooltip=hR.prototype.showButtonEduTooltip;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],hR.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],hR.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],hR.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],hR.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hR.prototype,"isOpen",void 0);_.a([_.b({computed:"computeButtonOverride(data)"}),_.z("design:type",Object)],hR.prototype,"buttonOverride",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hR.prototype,"modern",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hR.prototype,"roundedContainer",void 0);_.a([_.b(),_.z("design:type",Object)],hR.prototype,"dropdownButtonOverride",void 0);_.a([_.b({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.z("design:type",Boolean)],hR.prototype,"creationDisabled",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],hR.prototype,"enableCreationBox",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.z("design:type",Boolean)],hR.prototype,"isCreationDialog",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hR.prototype,"inPopupContainer",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.z("design:type",Boolean)],hR.prototype,"isCreationDialogWithHeader",void 0);_.a([_.b(),_.z("design:type",Object)],hR.prototype,"accessRestriction",void 0);
_.a([_.b({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.z("design:type",Array)],hR.prototype,"dropdownRendererClasses",void 0);_.a([_.b(),_.z("design:type",Object)],hR.prototype,"isCommentboxLoading",void 0);_.a([_.b(),_.z("design:type",Array)],hR.prototype,"attachmentButtonIds",void 0);_.a([_.Aa("#image-button"),_.z("design:type",HTMLElement)],hR.prototype,"imageButton",void 0);
_.a([_.Aa("#image-poll-button"),_.z("design:type",HTMLElement)],hR.prototype,"imagePollButton",void 0);_.a([_.Aa("#quiz-button"),_.z("design:type",HTMLElement)],hR.prototype,"quizButton",void 0);_.a([_.Aa("#commentbox"),_.z("design:type",Object)],hR.prototype,"JSC$15809_commentbox",void 0);_.a([_.TS("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hR.prototype,"showButtonEduTooltip",null);
_.a([_.XI("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],hR.prototype,"onYtCommentboxDismiss",null);_.a([_.XI("yt-commentbox-loading-start"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],hR.prototype,"onYtCommentboxLoadingStart",null);
_.a([_.XI("yt-commentbox-loading-end"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],hR.prototype,"onYtCommentboxLoadingEnd",null);_.a([_.XI("yt-video-link-button-cancel"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],hR.prototype,"onYtVideoLinkButtonCancel",null);
_.a([_.XI("yt-video-link-selected"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],hR.prototype,"onYtVideoLinkSelected",null);_.a([_.XI("iron-select"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],hR.prototype,"onIronSelect",null);_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],hR.prototype,"onYtNavigate",null);
_.a([_.XI("yt-service-request-sent-button-renderer"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],hR.prototype,"onRequestSent",null);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hR.prototype,"onPopupClosed",null);_.a([_.A({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],hR);
_.Z(hR,"ytd-backstage-post-dialog-renderer",function(){if(XMZ!==void 0)return XMZ;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return XMZ=W},{mode:1});var CRZ;var c7L;var SZ=function(){return _.I.apply(this,arguments)||this};
_.v(SZ,_.I);_.t=SZ.prototype;_.t.computeHeartButtonStyle=function(W){return(W==null?0:W.styleType)?W.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.t.onYtButtonTap=function(){if(this.data.isEnabled){var W=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(W=this.getEndpoint(W))&&_.tY().resolve(_.s6).resolveCommand(W,{form:{element:this.hostElement}})}else(W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(W)};
_.t.toggle=function(W){this.set("data.isHearted",W!==void 0?W:!this.data.isHearted)};
_.t.getEndpoint=function(W){var l,V=(l=this.data)==null?void 0:l.heartEndpoint,f;l=(f=this.data)==null?void 0:f.unheartEndpoint;if(V&&l)return W?l:V};
_.t.computeButtonAccessibility=function(W,l){var V,f,r=W==null?void 0:(V=W.heartedAccessibility)==null?void 0:(f=V.accessibilityData)==null?void 0:f.label,R,y;W=W==null?void 0:(R=W.unheartedAccessibility)==null?void 0:(y=R.accessibilityData)==null?void 0:y.label;return l?r:W};
_.rc.Object.defineProperties(SZ.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 W;return _.U("kevlar_system_icons")&&!((W=this.data)==null||!W.isHearted)}}});
SZ.prototype.onYtButtonTap=SZ.prototype.onYtButtonTap;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.i5),_.z("design:type",Object)],SZ.prototype,"ytdOpenPopupBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],SZ.prototype,"data",void 0);_.a([_.G("data.isHearted"),_.z("design:type",Object),_.z("design:paramtypes",[])],SZ.prototype,"heartTooltip",null);
_.a([_.G("data.isHearted"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],SZ.prototype,"iconFilled",null);_.a([_.b({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.z("design:type",String)],SZ.prototype,"buttonAccessibility",void 0);_.a([_.b({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.z("design:type",String)],SZ.prototype,"heartButtonStyle",void 0);
_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SZ.prototype,"onYtButtonTap",null);_.a([_.A({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],SZ);
_.Z(SZ,"ytd-creator-heart-renderer",function(){if(c7L!==void 0)return c7L;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return c7L=W},{mode:1});var E8=function(){var W=_.I.apply(this,arguments)||this;W.hasCreatorReply=!1;W.buttonOverrides={size:"S",iconPosition:"icon-only"};W.replyButtonOverrides={size:"S",type:"text"};W.forceIconButton=!_.U("web_modern_buttons");W.modern=_.U("web_modern_buttons");W.buttonTooltipPosition="bottom";W.systemIcons=_.U("kevlar_system_icons");W.replyDialog=null;return W};
_.v(E8,_.I);_.t=E8.prototype;
_.t.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]]"}}}}}};
_.t.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.t.dataChange=function(){this.replyDialog&&_.GS(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var W,l,V;this.isLiked=this.systemIcons&&!!((W=this.data)==null?0:(l=W.likeButton)==null?0:(V=l.toggleButtonRenderer)==null?0:V.isToggled)};
_.t.computeShowVoteCountBeginning=function(W,l){return W===void 0||l===void 0?!0:W.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!l&&this.ytRendererBehavior.getSimpleString(l)!=="0"};
_.t.computeShowVoteCountEnd=function(W,l){return W===void 0||l===void 0?!0:W.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!l&&this.ytRendererBehavior.getSimpleString(l)!=="0"};
_.t.computeShowCommentCount=function(W,l){return W===void 0||l===void 0?!0:W.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!l&&this.ytRendererBehavior.getSimpleString(l)!=="0"};
_.t.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.t.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.t.showReplyDialog=function(W){W&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.GS(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=W,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.t.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.t.onRequestSent=function(W){if(_.U("web_button_rework")){W=_.L(W.detail);for(var l=W.next();!l.done;l=W.next())(l=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",l.value))&&this.showReplyDialog(l)}};
_.t.onYtNavigate=function(W){var l,V;(W=(l=_.k(W.detail.endpoint,_.m0I))==null?void 0:(V=l.dialog)==null?void 0:V.commentReplyDialogRenderer)&&this.showReplyDialog(W)};
_.t.onYtServiceRequestSent=function(W,l){W.stopPropagation();if(l.actions)for(W=0;W<l.actions.length;W++){var V=_.k(l.actions[W],yda);V&&this.handleUpdateCommentVoteAction(V)}};
_.t.handleUpdateCommentVoteAction=function(W){this.voteCount=W.voteCount||_.Bl("0");W.voteStatus==="LIKE"?this.JSC$15820_ytdDislikeToggleButtonRenderer.toggle(!1):W.voteStatus==="DISLIKE"?this.JSC$15820_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15820_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15820_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.t.computeReplyButtonHidden=function(W){return W};
_.t.computeReplyButtonBeginning=function(W){return(W==null?0:W.replyButton)&&W.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?W.replyButton:void 0};
_.t.computeReplyButtonEnd=function(W){return(W==null?0:W.replyButton)&&W.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?W.replyButton:void 0};
_.t.computeActionButtonStyle=function(W){return(W==null?0:W.style)?W.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.t.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.t.onYtToggleButton=function(W){var l,V;this.isLiked=this.systemIcons&&!!((l=W.detail)==null?0:(V=l.actions)==null?0:V.like)};
E8.prototype.onYtToggleButton=E8.prototype.onYtToggleButton;E8.prototype.onButtonTooltipPositionChanged=E8.prototype.onButtonTooltipPositionChanged;E8.prototype.onYtServiceRequestSent=E8.prototype.onYtServiceRequestSent;E8.prototype.onYtNavigate=E8.prototype.onYtNavigate;E8.prototype.onRequestSent=E8.prototype.onRequestSent;E8.prototype.onYtCommentboxDismiss=E8.prototype.onYtCommentboxDismiss;E8.prototype.dataChange=E8.prototype.dataChange;
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],E8.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],E8.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],E8.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],E8.prototype,"voteCount",void 0);_.a([_.b(),_.z("design:type",Object)],E8.prototype,"commentCount",void 0);_.a([_.b(),_.z("design:type",Object)],E8.prototype,"replyThumbnail",void 0);
_.a([_.b(),_.z("design:type",Object)],E8.prototype,"hasCreatorReply",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],E8.prototype,"enableCreationBox",void 0);_.a([_.b({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.z("design:type",String)],E8.prototype,"actionButtonsStyle",void 0);_.a([_.b({computed:"computeReplyButtonBeginning(data)"}),_.z("design:type",Object)],E8.prototype,"replyButtonBeginning",void 0);
_.a([_.b({computed:"computeReplyButtonEnd(data)"}),_.z("design:type",Object)],E8.prototype,"replyButtonEnd",void 0);_.a([_.b(),_.z("design:type",Object)],E8.prototype,"buttonOverrides",void 0);_.a([_.b(),_.z("design:type",Object)],E8.prototype,"replyButtonOverrides",void 0);_.a([_.b(),_.z("design:type",Object)],E8.prototype,"forceIconButton",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],E8.prototype,"useCommentIcon",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],E8.prototype,"modern",void 0);_.a([_.b(),_.z("design:type",Object)],E8.prototype,"buttonTooltipPosition",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],E8.prototype,"systemIcons",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],E8.prototype,"isLiked",void 0);_.a([_.Aa("ytd-button-renderer"),_.z("design:type",Object)],E8.prototype,"ytdReplyButtonRenderer",void 0);
_.a([_.Aa("#like-button"),_.z("design:type",Object)],E8.prototype,"JSC$15820_ytdLikeToggleButtonRenderer",void 0);_.a([_.Aa("#dislike-button"),_.z("design:type",Object)],E8.prototype,"JSC$15820_ytdDislikeToggleButtonRenderer",void 0);_.a([_.Aa("#reply-dialog"),_.z("design:type",HTMLElement)],E8.prototype,"replyDialogElement",void 0);_.a([_.Aa("#reply-button"),_.z("design:type",HTMLElement)],E8.prototype,"replyButtonElement",void 0);
_.a([_.Aa("#reply-button-end"),_.z("design:type",HTMLElement)],E8.prototype,"replyButtonEndElement",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],E8.prototype,"dataChange",null);_.a([_.XI("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],E8.prototype,"onYtCommentboxDismiss",null);
_.a([_.XI("yt-service-request-sent-button-renderer"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],E8.prototype,"onRequestSent",null);_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],E8.prototype,"onYtNavigate",null);
_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],E8.prototype,"onYtServiceRequestSent",null);_.a([_.TS("buttonTooltipPosition"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],E8.prototype,"onButtonTooltipPositionChanged",null);
_.a([_.XI("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],E8.prototype,"onYtToggleButton",null);_.a([_.A({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],E8);
_.Z(E8,"ytd-comment-action-buttons-renderer",function(){if(CRZ!==void 0)return CRZ;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return CRZ=W},{mode:1});var BVL;var $a=function(){return _.I.apply(this,arguments)||this};
_.v($a,_.I);$a.prototype.focus=function(){_.GS(this.hostElement).querySelector("#commentbox").focus()};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],$a.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],$a.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],$a.prototype,"zeroStepChannelCreationRenderer",void 0);_.a([_.A({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],$a);
_.Z($a,"ytd-comment-dialog-renderer",function(){if(BVL!==void 0)return BVL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return BVL=W},{mode:1});var dUL;var Wc=function(){var W=_.I.apply(this,arguments)||this;W.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.U("enable_web_delhi_icons")};W.replyButtonOverrides={size:"S",type:"text"};return W};
_.v(Wc,_.I);_.t=Wc.prototype;_.t.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.t.detached=function(){this.replyBox&&this.replyBox.remove()};
_.t.showReplyDialog=function(W){if(W){var l=this.replyBox;l||(l=document.createElement("ytd-comment-reply-dialog-renderer"),l.id="replybox",_.GS(this.replyDialogDiv).appendChild(l));l.data=W;this.replyDialogDiv.hidden=!1;l.openDialog()}};
_.t.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.t.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var W,l=_.k((W=this.toolbarSurface)==null?void 0:W.subscribersOnlyDisclaimerSnackbarCommand,_.VY);l&&_.FN(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:l})}};
_.t.onYtServiceRequestSent=function(W,l){W.stopPropagation();if(l.actions)for(var V=0;V<l.actions.length;V++){var f=_.k(l.actions[V],yda);f?this.handleUpdateCommentVoteAction(f):W.target===this.heartButton&&this.toggleHeartState()}};
_.t.handleUpdateCommentVoteAction=function(W){var l;(l=this.toolbarState)!=null&&l.key&&this.ytdReduxBehavior.dispatch(_.Nr("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:W.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":W.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.t.toggleHeartState=function(){var W;(W=this.toolbarState)!=null&&W.key&&this.ytdReduxBehavior.dispatch(_.Nr("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.rc.Object.defineProperties(Wc.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return(((W=this.toolbarState)==null?void 0:W.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(l=this.toolbarData)==null?void 0:l.likeCountLiked:(V=this.toolbarData)==null?void 0:V.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.toolbarSurface)==null?void 0:W.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.toolbarSurface)==null?void 0:W.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.toolbarSurface)==null?void 0:W.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.toolbarSurface)==null?void 0:W.prepareAccountCommand)!==void 0&&!_.U("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W,l=_.k((W=this.toolbarSurface)==null?void 0:W.prepareAccountCommand,_.VY),V,f,r,R,y,P,n,B,d;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((V=this.toolbarSharedData)==null||!V.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((f=this.toolbarState)==null?void 0:f.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:l!=null?l:_.k((r=this.toolbarSurface)==null?void 0:r.likeCommand,_.VY),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:l!=null?l:_.k((R=this.toolbarSurface)==null?void 0:R.unlikeCommand,_.VY),defaultCommand:this.isVisiblyDisabled?_.k((y=this.toolbarSurface)==null?void 0:y.commentDisabledActionCommand,_.VY):void 0,defaultTooltip:(P=this.toolbarData)==null?void 0:P.likeInactiveTooltip,toggledTooltip:(n=this.toolbarData)==null?void 0:n.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(B=this.toolbarData)==null?void 0:B.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(d=this.toolbarSharedData)==null?void 0:d.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W,l=_.k((W=this.toolbarSurface)==null?void 0:W.prepareAccountCommand,_.VY),V,f,r,R,y,P,n,B,d,J;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((V=this.toolbarSharedData)==null||!V.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((f=this.toolbarState)==null?void 0:f.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:l!=null?l:_.k((r=this.toolbarSurface)==null?void 0:r.dislikeCommand,_.VY),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:l!=null?l:_.k((R=this.toolbarSurface)==null?void 0:R.undislikeCommand,_.VY),defaultCommand:this.isVisiblyDisabled?_.k((y=this.toolbarSurface)==null?void 0:y.commentDisabledActionCommand,_.VY):void 0,defaultTooltip:(P=this.toolbarData)==null?void 0:P.dislikeInactiveTooltip,toggledTooltip:(n=this.toolbarData)==null?void 0:
n.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(B=this.toolbarSharedData)==null?void 0:B.dislikeReplyButtonA11y:(d=this.toolbarSharedData)==null?void 0:d.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(J=this.toolbarSharedData)==null?void 0:J.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var W,l,V;if(((W=this.toolbarState)==null?void 0:W.heartState)!==void 0&&((l=this.toolbarState)==null?void 0:l.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((V=this.toolbarState)==null?void 0:V.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var f,r,R,y,P,n,B,d,J,D,u,H,p,X;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(f=this.toolbarData)==null?void 0:f.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((r=this.toolbarState)==null?void 0:r.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((R=this.toolbarState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((y=this.toolbarState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((P=this.toolbarState)==null?void 0:P.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.k((n=this.toolbarSurface)==null?void 0:n.heartCommand,
_.VY),unheartEndpoint:this.isVisiblyDisabled?void 0:_.k((B=this.toolbarSurface)==null?void 0:B.unheartCommand,_.VY),disabledEndpoint:this.isVisiblyDisabled?_.k((d=this.toolbarSurface)==null?void 0:d.commentDisabledActionCommand,_.VY):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(J=this.toolbarData)==null?void 0:J.heartActiveTooltip,unheartedTooltip:(D=this.toolbarData)==null?void 0:D.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((u=
this.toolbarState)==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(H=this.toolbarSharedData)==null?void 0:H.unheartButtonA11y:(p=this.toolbarSharedData)==null?void 0:p.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(X=this.toolbarSharedData)==null?void 0:X.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.toolbarSurface)==null||!W.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W,l,V,f;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(W=this.commentStrings)==null?void 0:W.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.k((l=this.toolbarSurface)==null?void 0:l.replyCommand,_.VY),command:this.isVisiblyDisabled?_.k((V=this.toolbarSurface)==null?
void 0:V.commentDisabledActionCommand,_.VY):this.isSubsOnlyCommentsIneligibleUser?_.k((f=this.toolbarSurface)==null?void 0:f.subscribersOnlySnackbarCommand,_.VY):void 0}}}});
Wc.prototype.onYtServiceRequestSent=Wc.prototype.onYtServiceRequestSent;Wc.prototype.hideReplyDialogDiv=Wc.prototype.hideReplyDialogDiv;_.a([_.b(),_.z("design:type",Object)],Wc.prototype,"commentStrings",void 0);_.a([_.b(),_.z("design:type",Boolean)],Wc.prototype,"isReply",void 0);_.a([_.b(),_.z("design:type",Object)],Wc.prototype,"toolbarData",void 0);_.a([_.b(),_.z("design:type",Object)],Wc.prototype,"toolbarSharedData",void 0);
_.a([_.b(),_.z("design:type",String)],Wc.prototype,"toolbarStateKey",void 0);_.a([_.b(),_.z("design:type",String)],Wc.prototype,"toolbarSurfaceKey",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],Wc.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Wc.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Wc.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.i5),_.z("design:type",Object)],Wc.prototype,"ytdOpenPopupBehavior",void 0);_.a([_.Aa("#reply-dialog"),_.z("design:type",HTMLElement)],Wc.prototype,"replyDialogDiv",void 0);_.a([_.Aa("#replybox"),_.z("design:type",Object)],Wc.prototype,"replyBox",void 0);_.a([_.Aa("ytd-creator-heart-renderer"),_.z("design:type",Object)],Wc.prototype,"heartButton",void 0);_.a([_.b({selector:function(W,l){return _.mL(W.entities,"engagementToolbarStateEntityPayload",l)},
selectorArgs:["toolbarStateKey"]}),_.z("design:type",Object)],Wc.prototype,"toolbarState",void 0);_.a([_.b({selector:opv,selectorArgs:["toolbarSurfaceKey"]}),_.z("design:type",Object)],Wc.prototype,"toolbarSurface",void 0);_.a([_.b(),_.z("design:type",Object)],Wc.prototype,"buttonOverrides",void 0);_.a([_.XI("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wc.prototype,"hideReplyDialogDiv",null);
_.a([_.G("toolbarData","toolbarState"),_.z("design:type",String),_.z("design:paramtypes",[])],Wc.prototype,"likeCount",null);_.a([_.G("likeCount"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Wc.prototype,"showLikeCount",null);_.a([_.G("toolbarSurface"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Wc.prototype,"isVisiblyDisabled",null);_.a([_.G("toolbarSurface"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Wc.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.a([_.G("toolbarSurface"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Wc.prototype,"isSubsOnlyCommentsEligibleUser",null);_.a([_.G("toolbarSurface"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Wc.prototype,"hasPrepareAccountCommand",null);_.a([_.G("toolbarData","toolbarState","toolbarSurface"),_.z("design:type",Object),_.z("design:paramtypes",[])],Wc.prototype,"likeToggleButtonRenderer",null);
_.a([_.G("isReply","toolbarData","toolbarState","toolbarSurface"),_.z("design:type",Object),_.z("design:paramtypes",[])],Wc.prototype,"dislikeToggleButtonRenderer",null);_.a([_.G("toolbarData","toolbarState","toolbarSurface"),_.z("design:type",Object),_.z("design:paramtypes",[])],Wc.prototype,"creatorHeartSupportedRenderer",null);_.a([_.G("toolbarSurface"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Wc.prototype,"hasReplyCommand",null);
_.a([_.G("toolbarSurface","commentStrings","isVisiblyDisabled"),_.z("design:type",Object),_.z("design:paramtypes",[])],Wc.prototype,"replyButtonRenderer",null);_.a([_.b(),_.z("design:type",Object)],Wc.prototype,"replyButtonOverrides",void 0);_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],Wc.prototype,"onYtServiceRequestSent",null);_.a([_.A({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Wc);
_.Z(Wc,"ytd-comment-engagement-bar",function(){if(dUL!==void 0)return dUL;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return dUL=W},{mode:1});var J71;var lU=function(){return _.I.apply(this,arguments)||this};
_.v(lU,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],lU.prototype,"data",void 0);_.a([_.A({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],lU);
_.Z(lU,"ytd-comment-inline-thumbnail-renderer",function(){if(J71!==void 0)return J71;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return J71=W},{mode:1});var DUZ;var V8=function(){return _.I.apply(this,arguments)||this};
_.v(V8,_.I);V8.prototype.onMessageTap=function(){if(this.onTapCommand){var W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);W&&this.ytdOpenPopupBehavior.openPopup(W)}};
_.rc.Object.defineProperties(V8.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return(W=this.data)==null?void 0:(l=W.button)==null?void 0:(V=l.buttonRenderer)==null?void 0:V.command}}});
_.a([_.F(_.i5),_.z("design:type",Object)],V8.prototype,"ytdOpenPopupBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],V8.prototype,"data",void 0);_.a([_.G("data.button.buttonRenderer.command"),_.z("design:type",Object),_.z("design:paramtypes",[])],V8.prototype,"onTapCommand",null);_.a([_.A({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],V8);
_.Z(V8,"ytd-comment-pause-composer-renderer",function(){if(DUZ!==void 0)return DUZ;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return DUZ=W},{mode:1});var UUa;var ume;var f3=function(){var W=_.I.apply(this,arguments)||this;W.isOpen=!1;return W};
_.v(f3,_.I);_.t=f3.prototype;_.t.dataChanged=function(){this.isOpen=!1};
_.t.onTap=function(){this.data&&(this.data.navigationEndpoint?_.FN(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.t.focus=function(){this.JSC$15850_commentbox.focus()};
_.t.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.t.openDialog=function(){this.isOpen=!0;this.JSC$15850_commentbox.focus();this.JSC$15850_commentbox.maybeHeightChanged()};
f3.prototype.onYtCommentboxDismiss=f3.prototype.onYtCommentboxDismiss;f3.prototype.dataChanged=f3.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],f3.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],f3.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],f3.prototype,"isOpen",void 0);_.a([_.Aa("#commentbox"),_.z("design:type",Object)],f3.prototype,"JSC$15850_commentbox",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],f3.prototype,"dataChanged",null);_.a([_.XI("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],f3.prototype,"onYtCommentboxDismiss",null);_.a([_.A({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],f3);
_.Z(f3,"ytd-comment-reply-dialog-renderer",function(){if(ume!==void 0)return ume;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return ume=W},{mode:1});var kKB;var rs=function(){return _.I.apply(this,arguments)||this};
_.v(rs,_.I);_.rc.Object.defineProperties(rs.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var W,l,V=(W=this.data)==null?void 0:(l=W.icon)==null?void 0:l.iconType;return V?"yt-icons:"+V.toLowerCase():null}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],rs.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],rs.prototype,"data",void 0);_.a([_.b(),_.G("data.icon"),_.z("design:type",Object),_.z("design:paramtypes",[])],rs.prototype,"icon",null);_.a([_.A({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],rs);
_.Z(rs,"ytd-pinned-comment-badge-renderer",function(){if(kKB!==void 0)return kKB;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return kKB=W},{mode:1});var vfe;var H8L={},KFL={input:!0,meta:!0,br:!0,link:!0,img:!0},Rb=null;H8L.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(){Rb==null&&(Rb=document.createElement("tp-yt-paper-tooltip"),Rb.offset=8,Rb.fitToVisibleBounds=!0)},
onMouseOver_:function(W){if(W=_.YN(W.target,function(r){return r==this||r.getAttribute&&r.getAttribute("shared-tooltip-text")}.bind(this),!0)){var l=W.getAttribute("shared-tooltip-text");
if(l){var V=this,f=null;W!=this&&(W.tagName.toLowerCase()in KFL?V=W.parentElement:V=W,W.id&&(f=W.id));this.polymerController.createTooltipIfRequired_();if(Rb.parentElement!=V||Rb.for!=f)(0,_.j3)(Rb).textContent=l,_.GS(V).appendChild(Rb),Rb.for=f,Rb.animationDelay=this.polymerController.sharedTooltipAnimationDelay,Rb.position=this.polymerController.sharedTooltipPosition}}}};var th=function(){return _.I.apply(this,arguments)||this};
_.v(th,_.I);th.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]]"}}}}}};
th.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var W;((W=this.data)==null?0:W.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
th.prototype.colorChanged=function(){var W,l,V,f=(W=this.data)==null?void 0:(l=W.color)==null?void 0:(V=l.basicColorPaletteData)==null?void 0:V.foregroundBodyColor;f&&(this.rgbBadgeColor=_.ta(f));_.GS(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
th.prototype.tooltipChanged=function(){var W;((W=this.data)==null?0:W.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
th.prototype.tooltipChanged=th.prototype.tooltipChanged;th.prototype.colorChanged=th.prototype.colorChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],th.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],th.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(H8L.YtSharedTooltipBehavior),_.z("design:type",Object)],th.prototype,"ytSharedTooltipBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],th.prototype,"data",void 0);
_.a([_.b({value:"#4285F4"}),_.z("design:type",String)],th.prototype,"rgbBadgeColor",void 0);_.a([_.TS("data.color"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],th.prototype,"colorChanged",null);_.a([_.TS("data.tooltip"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],th.prototype,"tooltipChanged",null);_.a([_.A({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],th);
_.Z(th,"ytd-sponsor-comment-badge-renderer",function(){if(vfe!==void 0)return vfe;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return vfe=W},{mode:1});var FF1;var GKe;var sy=function(){return _.I.apply(this,arguments)||this};
_.v(sy,_.I);sy.prototype.computeState=function(W){switch(W==null?void 0:W.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"}};
sy.prototype.updateStateIdentifier=function(W){if(this.viewModel.triStateKey){var l=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.Nr("triStateButtonStateEntityPayload",l,{key:l,stateIdentifier:W}))}};
sy.prototype.onClick=function(){var W=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(){W.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){W.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.rc.Object.defineProperties(sy.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 W;return((W=this.data)==null?void 0:W.buttonText)||""}}});
_.a([_.b(),_.z("design:type",Object)],sy.prototype,"viewModel",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],sy.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],sy.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.a([_.b({selector:jq8,selectorArgs:["viewModel.triStateKey"]}),_.z("design:type",Object)],sy.prototype,"triStateButtonStateEntity",void 0);
_.a([_.b({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.z("design:type",String)],sy.prototype,"state",void 0);_.a([_.G("viewModel","state"),_.z("design:type",Object),_.z("design:paramtypes",[])],sy.prototype,"data",null);_.a([_.G("data"),_.z("design:type",String),_.z("design:paramtypes",[])],sy.prototype,"buttonText",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],sy);
_.Z(sy,"ytd-tri-state-button-view-model",function(){if(GKe!==void 0)return GKe;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return GKe=W},{mode:1});var b8a;var pz9;var L3=function(){var W=_.I.apply(this,arguments)||this;W.defaultIconToFilled=!_.U("kevlar_fill_comment_chip_icon_killswitch");return W};
_.v(L3,_.I);L3.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
L3.prototype.dataChanged=function(){if(this.data){var W,l;((W=this.data.chipColorPalette)==null?0:W.backgroundColor)&&((l=this.data.chipColorPalette)==null?0:l.foregroundTitleColor)&&_.I1(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.sD(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.sD(this.data.chipColorPalette.foregroundTitleColor)});var V;((V=this.data)==null?0:V.command)?(_.I1(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.I1(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}};
L3.prototype.onTap=function(){var W;if(this.data&&(W=this.data)!=null&&W.command){var l;this.ytComponentBehavior.resolveCommand((l=this.data)==null?void 0:l.command)}};
L3.prototype.getIconSize=function(){return _.U("kevlar_fill_comment_chip_icon_killswitch")?24:12};
L3.prototype.onTap=L3.prototype.onTap;L3.prototype.dataChanged=L3.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],L3.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],L3.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.NN),_.z("design:type",Object)],L3.prototype,"ironA11yKeysBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],L3.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Object)],L3.prototype,"basePriceText",void 0);_.a([_.b(),_.z("design:type",Object)],L3.prototype,"chipIcon",void 0);_.a([_.b(),_.z("design:type",Object)],L3.prototype,"defaultIconToFilled",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],L3.prototype,"dataChanged",null);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],L3.prototype,"onTap",null);
_.a([_.Vq({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],L3);
_.Z(L3,"yt-pdg-comment-chip-renderer",function(){if(pz9===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;b8a===void 0&&(b8a=document.createElement("template"));var f=b8a;V.call(l,f.content.cloneNode(!0),W.content.firstChild);pz9=W}W=pz9;return W},{mode:2});var y8=function(){var W=_.I.apply(this,arguments)||this;W.useSmallAvatars=_.U("small_avatars_for_comments");W.webWatchCompactComments=_.U("web_watch_compact_comments");W.editDialog=null;return W};
_.v(y8,_.I);_.t=y8.prototype;_.t.onShow=function(){_.l_("cmv",void 0,"wn_comments")};
_.t.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"}}}};
_.t.detached=function(){this.editDialog=null;this.expander.reset()};
_.t.updateBackgroundColor=function(){if(this.backgroundColor){var W={"--ytd-comment-paid-background-color":_.sD(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.I1(this.hostElement,W)}else _.I1(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.t.resetExpander=function(){var W;(W=this.expander)==null||W.reset()};
_.t.openEditDialog=function(W){W.dialog&&(this.editDialog=W.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.t.onYtNavigate=function(W){var l=W.detail.endpoint;if(l=_.k(l,_.Xoa)||_.k(l,_.TtZ))W.stopPropagation(),this.openEditDialog(l)};
_.t.onYtCommentboxDismiss=function(){this.editDialog=null;_.I1(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.t.onAuthorThumbnailClicked=function(){_.U("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.t.onYtCommentboxResize=function(W){var l;(W==null?0:(l=W.detail)==null?0:l.height)&&_.I1(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":W.detail.height+"px"})};
_.rc.Object.defineProperties(y8.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 W,l=(W=this.commentEntity)==null?void 0:W.author;return l&&(l.isCreator||l.isVerified||l.isArtist)?{renderer:{authorEndpoint:l.channelPageEndpoint?_.k(l.channelPageEndpoint,_.VY):_.k(l.channelCommand,_.VY),authorText:{runs:[{text:l.displayName}]},color:l.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:l.isArtist?{iconType:"AUDIO_BADGE"}:
l.isVerified?{iconType:l.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:l.isArtist||l.isVerified?l.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var W,l=(W=this.commentEntity)==null?void 0:W.author;return l!=null&&l.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:l.sponsorBadgeUrl}]},tooltip:l.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var W;return _.k((W=this.commentSurfaceEntity)==null?void 0:W.pdgCommentChip,_.gQM)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var W;return this.voiceReplyContainerViewModel&&((W=this.voiceReplyContainerViewModel)==null?void 0:W.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return _.k((W=this.commentSurfaceEntity)==null?void 0:W.voiceReplyContainerViewModel,DXc)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var W;return this.voiceReplyContainerViewModel&&(W=this.voiceReplyContainerViewModel)!=null&&W.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var W,l;return(l=(W=this.commentSurfaceEntity)==null?void 0:W.commentBackgroundColor)!=null?l:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.U("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var W,l;return(((W=this.commentEntity)==null?void 0:(l=W.properties)==null?void 0:l.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var W,l;if(_.U("enable_profile_cards_on_comments")&&((W=this.commentEntity)==null?0:(l=W.author)==null?0:l.profileCardEndpoint)&&this.viewModel.allowProfileCard){var V,f;return _.k((V=this.commentEntity)==null?void 0:(f=V.author)==null?void 0:f.profileCardEndpoint,_.VY)}var r,R;return _.k((r=this.commentEntity)==null?void 0:(R=r.avatar)==null?void 0:R.endpoint,_.VY)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var W,l;if(_.U("enable_profile_cards_on_comments")&&((W=this.commentEntity)==null?0:(l=W.author)==null?0:l.channelPageEndpoint)){var V,f;return _.k((V=this.commentEntity)==null?void 0:(f=V.author)==null?void 0:f.channelPageEndpoint,_.VY)}var r,R;return _.k((r=this.commentEntity)==null?void 0:(R=r.avatar)==null?void 0:R.endpoint,_.VY)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var W,l,V,f,r=(W=this.commentEntity)==null?void 0:(l=W.avatar)==null?void 0:(V=l.image)==null?void 0:(f=V.sources)==null?void 0:f[0];return r?{thumbnails:[{url:r.url,width:r.width,height:r.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.commentEntity)==null?0:(l=W.author)==null?0:l.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.commentEntity)==null?void 0:(l=W.author)==null?void 0:l.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.commentEntity)==null?void 0:(l=W.properties)==null?void 0:l.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var W;return _.k((W=this.commentSurfaceEntity)==null?void 0:W.publishedTimeCommand,_.VY)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var W,l;if(((W=this.commentEntity)==null?0:W.translatedContent)&&((l=this.translateButtonState)==null?void 0:l.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var V;if((V=this.voiceReplyContainerViewModel)==null?0:V.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var f,r;return((f=this.commentEntity)==null?void 0:(r=f.properties)==null?void 0:r.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.commentSharedEntity)==null?void 0:(l=W.strings)==null?void 0:l.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.commentSharedEntity)==null?void 0:(l=W.strings)==null?void 0:l.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.commentEntity)==null||!W.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var W,l,V=(l=_.k((W=this.viewModel)==null?void 0:W.translateButton,Jda))!=null?l:{},f,r,R,y,P,n,B,d,J,D,u;return Object.assign({},V,{untoggledStateData:Object.assign({},V.untoggledStateData,{buttonText:(f=this.commentEntity)==null?void 0:(r=f.translateData)==null?void 0:r.text}),togglingStateData:Object.assign({},V.togglingStateData,{buttonText:(R=this.commentSharedEntity)==null?
void 0:(y=R.strings)==null?void 0:y.translatingText}),toggledStateData:Object.assign({},V.toggledStateData,{buttonText:(P=this.commentSharedEntity)==null?void 0:(n=P.strings)==null?void 0:n.seeOriginalText}),transitionCommand:((B=this.commentEntity)==null?0:B.translatedContent)?void 0:_.k((d=this.commentEntity)==null?void 0:(J=d.translateData)==null?void 0:J.translateComment,_.VY),triStateKey:(D=this.commentEntity)==null?void 0:(u=D.properties)==null?void 0:u.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return((l=_.k(_.k((W=this.toolbarSurface)==null?void 0:W.menuCommand,_.VY),woL))==null?void 0:(V=l.menu)==null?void 0:V.menuRenderer)||null}}});
y8.prototype.onYtCommentboxResize=y8.prototype.onYtCommentboxResize;y8.prototype.onYtCommentboxDismiss=y8.prototype.onYtCommentboxDismiss;y8.prototype.onYtNavigate=y8.prototype.onYtNavigate;y8.prototype.resetExpander=y8.prototype.resetExpander;y8.prototype.updateBackgroundColor=y8.prototype.updateBackgroundColor;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],y8.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],y8.prototype,"ytdReduxBehavior",void 0);
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],y8.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],y8.prototype,"ytRendererstamperBehavior",void 0);_.a([_.Aa("#author-thumbnail > button"),_.z("design:type",HTMLElement)],y8.prototype,"authorThumbnailAnchor",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("viewModel"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],y8.prototype,"linked",null);
_.a([_.G("viewModel","linked"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"linkedCommentBadge",null);_.a([_.b({reflectToAttribute:!0}),_.G("viewModel"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],y8.prototype,"pinned",null);_.a([_.G("viewModel","pinned"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"pinnedCommentBadge",null);
_.a([_.G("commentEntity","commentSharedEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"authorCommentBadge",null);_.a([_.b({reflectToAttribute:!0}),_.G("authorCommentBadge"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"hasAuthorBadge",null);_.a([_.G("commentEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"sponsorCommentBadge",null);
_.a([_.b({reflectToAttribute:!0}),_.G("sponsorCommentBadge"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"hasSponsorBadge",null);_.a([_.G("commentSurfaceEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"pdgCommentChipRenderer",null);_.a([_.b({reflectToAttribute:!0}),_.G("voiceReplyContainerViewModel"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"hasVoiceReply",null);
_.a([_.G("commentSurfaceEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"voiceReplyContainerViewModel",null);_.a([_.G("voiceReplyContainerViewModel"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"voiceReplyUnavailableText",null);_.a([_.b(),_.z("design:type",Object)],y8.prototype,"data",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"viewModel",null);
_.a([_.b({selector:function(W,l){return _.mL(W.entities,"commentSharedEntityPayload",l)},
selectorArgs:["viewModel.sharedKey"]}),_.z("design:type",Object)],y8.prototype,"commentSharedEntity",void 0);_.a([_.b({selector:function(W,l){return _.mL(W.entities,"commentEntityPayload",l)},
selectorArgs:["viewModel.commentKey"]}),_.z("design:type",Object)],y8.prototype,"commentEntity",void 0);_.a([_.b({selector:function(W,l){return _.mL(W.entities,"commentSurfaceEntityPayload",l)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.z("design:type",Object)],y8.prototype,"commentSurfaceEntity",void 0);_.a([_.b({selector:opv,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.z("design:type",Object)],y8.prototype,"toolbarSurface",void 0);_.a([_.b({selector:jq8,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.z("design:type",Object)],y8.prototype,"translateButtonState",void 0);
_.a([_.G("commentSurfaceEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"backgroundColor",null);_.a([_.b({reflectToAttribute:!0}),_.G("viewModel"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],y8.prototype,"optimalReadingWidthComments",null);_.a([_.Aa("ytd-expander"),_.z("design:type",Object)],y8.prototype,"expander",void 0);
_.a([_.TS("backgroundColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],y8.prototype,"updateBackgroundColor",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],y8.prototype,"useSmallAvatars",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],y8.prototype,"webWatchCompactComments",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("commentEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"isReply",null);
_.a([_.G("commentEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"authorThumbnailEndpoint",null);_.a([_.G("commentEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"authorNameEndpoint",null);_.a([_.G("commentEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"authorThumbnail",null);_.a([_.G("commentEntity"),_.z("design:type",String),_.z("design:paramtypes",[])],y8.prototype,"authorTextClass",null);
_.a([_.G("commentEntity"),_.z("design:type",String),_.z("design:paramtypes",[])],y8.prototype,"authorChannelName",null);_.a([_.G("commentEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"publishedTime",null);_.a([_.G("commentSurfaceEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"publishedTimeCommand",null);
_.a([_.G("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"contentText",null);_.a([_.TS("contentText"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],y8.prototype,"resetExpander",null);_.a([_.G("commentEntity"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],y8.prototype,"shouldShowReadMoreInitially",null);
_.a([_.G("commentSharedEntity"),_.z("design:type",String),_.z("design:paramtypes",[])],y8.prototype,"expandText",null);_.a([_.G("commentSharedEntity"),_.z("design:type",String),_.z("design:paramtypes",[])],y8.prototype,"collapseText",null);_.a([_.G("commentEntity"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],y8.prototype,"shouldShowTranslateButton",null);
_.a([_.G("commentEntity","commentSharedEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"translateButton",null);_.a([_.G("toolbarSurface"),_.z("design:type",Object),_.z("design:paramtypes",[])],y8.prototype,"overflowMenuRenderer",null);_.a([_.b(),_.z("design:type",Object)],y8.prototype,"editDialog",void 0);_.a([_.Aa("ytd-comment-dialog-renderer"),_.z("design:type",Object)],y8.prototype,"editCommentDialogContainer",void 0);
_.a([_.Aa("ytd-comment-reply-dialog-renderer"),_.z("design:type",Object)],y8.prototype,"editReplyDialogContainer",void 0);_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],y8.prototype,"onYtNavigate",null);_.a([_.XI("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],y8.prototype,"onYtCommentboxDismiss",null);
_.a([_.XI("yt-commentbox-resize"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],y8.prototype,"onYtCommentboxResize",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-comment-view-model"})],y8);
_.Z(y8,"ytd-comment-view-model",function(){if(FF1!==void 0)return FF1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return FF1=W},{mode:_.bD("kevlar_poly_si_batch_j025")?1:2});var gs=function(){var W=_.I.apply(this,arguments)||this;W.modern=_.U("web_modern_buttons");W.commentThreadingEnabled=_.U("web_delhi_comment_threads");W.isWatchGrid=_.U("kevlar_watch_grid");W.buttonOverrides=W.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};W.JSC$15896_spinnerEl=null;return W};
_.v(gs,_.I);_.t=gs.prototype;_.t.configureContinuationPathMap=function(){return _.U("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.t.shouldShowExpandedThreads=function(W,l){return this.commentThreadingEnabled&&!l&&(W==null?void 0:W.length)>0};
_.t.shouldShowCollapsedThreads=function(W,l){return this.commentThreadingEnabled&&l&&W};
_.t.computeThreadRenderer=function(W){return _.k(W,gg$)};
_.t.computeIsContinuationItem=function(W){return!!this.computeContinuationItemRenderer(W)};
_.t.computeButtonRenderer=function(W){return _.k(W,_.CE)};
_.t.computeContinuationItemRenderer=function(W){return _.k(W,_.P0)};
_.t.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]]"}}}}}};
_.t.attached=function(){this.isShowRepliesVisible=!0};
_.t.dataChanged=function(){var W=this.expanderContents;W&&(W.hidden=!0);this.isLoading=!1};
_.t.endsInContinuation=function(W){return!!W&&W.length>0&&!!this.computeContinuationItemRenderer(W[W.length-1])};
_.t.computeShouldShowHideRepliesButton=function(W,l){return!W&&l};
_.t.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.t.isLoadingChanged=function(){this.isLoading&&!this.JSC$15896_spinnerEl&&(this.JSC$15896_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.GS(this.expanderContents).appendChild(this.JSC$15896_spinnerEl));this.JSC$15896_spinnerEl&&(this.JSC$15896_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var W;(W=this.contents)==null||W.classList.remove("reloading")}};
_.t.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var W=_.k(this.data.viewReplies,_.CE);W&&this.ytRendererBehavior.logExplicitClick(W);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.t.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var W=_.k(this.data.hideReplies,_.CE);W&&this.ytRendererBehavior.logExplicitClick(W);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.t.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var W=_.GS(this.hostElement).querySelector("#expander-contents");W&&(W.hidden=this.isShowRepliesVisible)}};
_.t.computeAlign=function(){if(this.modern){var W;return!((W=this.data)==null?0:W.viewRepliesCreatorThumbnail)}};
_.rc.Object.defineProperties(gs.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var W,l;return this.endsInContinuation((W=this.data)==null?void 0:W.contents)||this.commentThreadingEnabled&&this.endsInContinuation((l=this.data)==null?void 0:l.subThreads)}}});
gs.prototype.isShowMoreChanged=gs.prototype.isShowMoreChanged;gs.prototype.isLoadingChanged=gs.prototype.isLoadingChanged;gs.prototype.triggerFirstContinuation=gs.prototype.triggerFirstContinuation;gs.prototype.dataChanged=gs.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],gs.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.vH),_.z("design:type",Object)],gs.prototype,"ytContinuationHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],gs.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gs.prototype,"modern",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gs.prototype,"commentThreadingEnabled",void 0);_.a([_.b(),_.z("design:type",Boolean)],gs.prototype,"collapsed",void 0);
_.a([_.b(),_.z("design:type",Function)],gs.prototype,"toggleCollapsed",void 0);_.a([_.b(),_.z("design:type",Boolean)],gs.prototype,"isLoading",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],gs.prototype,"isShowRepliesVisible",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],gs.prototype,"useNewFormatting",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gs.prototype,"isWatchGrid",void 0);_.a([_.b(),_.z("design:type",Object)],gs.prototype,"buttonOverrides",void 0);
_.a([_.Aa("#expander-contents"),_.z("design:type",HTMLElement)],gs.prototype,"expanderContents",void 0);_.a([_.Aa("ytd-continuation-item-renderer"),_.z("design:type",Object)],gs.prototype,"continuationItemRenderer",void 0);_.a([_.Aa("#contents"),_.z("design:type",HTMLElement)],gs.prototype,"contents",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gs.prototype,"dataChanged",null);
_.a([_.G("data.contents","data.subThreads.*"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],gs.prototype,"hasContinuation",null);_.a([_.XI("yt-expander-more-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gs.prototype,"triggerFirstContinuation",null);_.a([_.TS("isLoading"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gs.prototype,"isLoadingChanged",null);
_.a([_.TS("isShowRepliesVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gs.prototype,"isShowMoreChanged",null);_.a([_.A({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],gs);
_.Z(gs,"ytd-comment-replies-renderer",function(){if(UUa!==void 0)return UUa;var W=document.createElement("template");_.K(W,'\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      <div class="show-replies-button style-scope ytd-comment-replies-renderer">\n        <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n          <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n          </div>\n          <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n        </template>\n        <ytd-button-renderer id="more-replies-sub-thread" 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>\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return UUa=W},{mode:1});var ofk;var Pc=function(){var W=_.I.apply(this,arguments)||this;W.isOpen=!1;W.commentDialog=null;W.useSmallAvatars=_.U("small_avatars_for_comments");W.useSmallAvatarsEngagementPanelOnly=_.U("small_avatars_for_comments_ep");W.placeholderFocusListener=null;W.hasOpenedDialog=!1;W.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return W};
_.v(Pc,_.I);_.t=Pc.prototype;_.t.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]]"}}}}}};
_.t.ready=function(){var W=this,l=_.GS(this.hostElement).querySelector("#placeholder-area"),V=_.GS(this.hostElement).querySelector("#simplebox-placeholder"),f=function(r){r.stopPropagation();r instanceof KeyboardEvent&&r.type==="keypress"&&r.keyCode!==13&&r.keyCode!==32||W.openDialog()};
this.placeholderFocusListener=f;V.addEventListener("focus",this.placeholderFocusListener);l.addEventListener("tap",f);l.addEventListener("keypress",f)};
_.t.maybeRemoveFocusEventListener=function(){var W;(W=this.data)!=null&&W.prepareAccountEndpoint&&!_.U("web_comments_simplebox_modal_focus_on_tap_ks")&&(W=_.GS(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(W.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.t.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.t.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.U("web_comment_simplebox_resolve_polymer_command_ks")?_.mK.instance.resolveCommand(this.data.prepareAccountEndpoint):_.XY(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);W&&this.ytdOpenPopupBehavior.openPopup(W);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.GS(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.t.onYtCommentboxDismiss=function(W){W.stopPropagation();this.isOpen=!1};
_.t.onCreateCommentAction=function(W){this.get("createCommentAction.contents",W)&&(this.isOpen=!1)};
_.t.computeCommentDialog=function(W){return{placeholderText:W.placeholderText,authorThumbnail:W.authorThumbnail,submitButton:W.submitButton,imageButton:W.imageButton,cancelButton:W.cancelButton,emojiButton:W.emojiButton,emojis:W.emojis,emojiPicker:W.emojiPicker,aadcGuidelinesStateEntityKey:W.aadcGuidelinesStateEntityKey,openAadcDialog:W.openAadcDialog,unicodeEmojisUrl:W.unicodeEmojisUrl}};
_.t.onHideIdentityChip=function(W){_.k(W,rdL)&&this.set("data.placeholderText",_.k(W,rdL).placeholderText)};
Pc.prototype.onYtCommentboxDismiss=Pc.prototype.onYtCommentboxDismiss;Pc.prototype.dataChanged=Pc.prototype.dataChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.i5),_.z("design:type",Object)],Pc.prototype,"ytdOpenPopupBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Pc.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Pc.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Pc.prototype,"isOpen",void 0);_.a([_.b(),_.z("design:type",Object)],Pc.prototype,"commentDialog",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Pc.prototype,"engagementPanel",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Pc.prototype,"useSmallAvatars",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Pc.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Pc.prototype,"enableCreationBox",void 0);_.a([_.b(),_.z("design:type",Boolean)],Pc.prototype,"showCreateDialog",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Pc.prototype,"dataChanged",null);_.a([_.XI("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Pc.prototype,"onYtCommentboxDismiss",null);_.a([_.A({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],Pc);
_.Z(Pc,"ytd-comment-simplebox-renderer",function(){if(ofk!==void 0)return ofk;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return ofk=W},{mode:1});var jFI;_.e1("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var n3=function(){var W=_.I.apply(this,arguments)||this;W.addHoverEffect=_.U("swatcheroo_comments_hover_effect");W.useSmallAvatars=_.U("small_avatars_for_comments");W.threadHovered=!1;W.collapsed=!1;W.removed=!1;W.actionMap=W.configureActionMap();W.toggleCollapsed=function(){W.collapsed=!W.collapsed;W.collapsed&&_.U("web_comment_threading_scroll_on_collapse")&&_.Gt(W.hostElement,"yt-scroll-to-watch-element",[W.commentElement])};
return W};
_.v(n3,_.I);_.t=n3.prototype;_.t.configureActionMap=function(){return _.U("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"}:{}};
_.t.createCommentReplyAction=function(W){W=_.k(W,VhL);if(W!=null&&W.contents){var l=W.replyToCommentId,V=W.parentCommentId,f,r=(f=this.commentViewModel)==null?void 0:f.commentId;(r===l||r===V&&!l)&&this.attachReply(W.contents)}};
_.t.attachReply=function(W){var l;((l=this.data)==null?0:l.replies)?(l=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+l+".continuationItemRenderer")?this.splice("data.replies.commentRepliesRenderer.subThreads",l,0,W):this.push("data.replies.commentRepliesRenderer.subThreads",W)):this.set("data.replies",{commentRepliesRenderer:{subThreads:[W]}})};
_.t.removeCommentAction=function(W){W=_.k(W,src);var l=W==null?void 0:W.commentId,V;l&&((V=this.commentViewModel)==null?void 0:V.commentId)===l&&this.maybeRemoveComment(W.actionResult)};
_.t.banAuthorAction=function(W){W=_.k(W,Wx9);var l=W==null?void 0:W.commentId,V;l&&((V=this.commentViewModel)==null?void 0:V.commentId)===l&&this.maybeRemoveComment(W.actionResult)};
_.t.hideReportedCommentAction=function(W){W=_.k(W,vgM);var l=W==null?void 0:W.commentId,V;l&&((V=this.commentViewModel)==null?void 0:V.commentId)===l&&this.maybeRemoveComment(W.actionResult)};
_.t.maybeRemoveComment=function(W){W&&W.status==="STATUS_SUCCEEDED"&&(this.feedbackText=W.feedbackText||_.Hy("Comment removed"),this.removed=!0)};
_.t.onTap=function(W){if(this.addHoverEffect&&!this.engagementPanel&&!_.Cv(_.d_(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var l;((l=window.getSelection())==null?0:l.toString().length)||_.XY({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.t.attached=function(){var W=this,l;(l=this.commentThreadHitbox)==null||l.addEventListener("mouseover",function(){W.threadHovered=!0});
var V;(V=this.commentThreadHitbox)==null||V.addEventListener("mouseout",function(){W.threadHovered=!1});
var f;(f=this.commentThreadHitbox)==null||f.addEventListener("click",function(){W.maybeToggleCollapsed()})};
_.t.maybeToggleCollapsed=function(){var W,l,V,f=(W=this.data)==null?void 0:(l=W.replies)==null?void 0:(V=l.commentRepliesRenderer)==null?void 0:V.subThreads;f&&(f.length===1&&_.k(f[0],_.P0)||this.toggleCollapsed())};
_.rc.Object.defineProperties(n3.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)!=null&&W.commentViewModel)return _.k(this.data.commentViewModel,dXI)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return _.U("web_delhi_comment_threads")&&!!((W=this.data)==null?0:(l=W.replies)==null?0:(V=l.commentRepliesRenderer)==null?0:V.subThreads)}}});
n3.prototype.onTap=n3.prototype.onTap;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],n3.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],n3.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],n3.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],n3.prototype,"addHoverEffect",void 0);
_.a([_.b(),_.z("design:type",Object)],n3.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],n3.prototype,"useSmallAvatars",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],n3.prototype,"isSubThread",void 0);_.a([_.Aa(".thread-hitbox"),_.z("design:type",HTMLElement)],n3.prototype,"commentThreadHitbox",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],n3.prototype,"threadHovered",void 0);
_.a([_.Aa("#comment"),_.z("design:type",HTMLElement)],n3.prototype,"commentElement",void 0);_.a([_.b(),_.z("design:type",Object)],n3.prototype,"collapsed",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],n3.prototype,"removed",void 0);_.a([_.b(),_.z("design:type",Object)],n3.prototype,"feedbackText",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],n3.prototype,"commentViewModel",null);
_.a([_.G("data.replies"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],n3.prototype,"hasSubThreading",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],n3.prototype,"engagementPanel",void 0);_.a([_.XI("tap"),_.XI("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],n3.prototype,"onTap",null);_.a([_.A({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],n3);
_.Z(n3,"ytd-comment-thread-renderer",function(){if(jFI!==void 0)return jFI;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return jFI=W},{mode:_.bD("kevlar_poly_si_batch_j025")?1:2});var IQ$;var C3=function(){var W=_.I.apply(this,arguments)||this;W.modernTypography=_.U("web_modern_typography");W.compactHeader=_.U("web_watch_compact_comments_header");W.hidePanelButton=!1;W.isPostSchedulingEnabled=_.U("enable_post_scheduling");W.hasFinishedStamping=!1;W.JSC$15919_handleOpenPostCommentDialogActionAfterStamp=!1;W.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return W};
_.v(C3,_.I);_.t=C3.prototype;
_.t.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"}}}};
_.t.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.t.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15919_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.t.onYtServiceRequestSent=function(W,l){if(!_.U("kevlar_command_handler")&&l.actions)for(W=0;W<l.actions.length;W++){var V=l.actions[W];_.k(V,bUL)&&_.GS(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.k(V,bUL))}};
_.t.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var W;if(this.getPrefilledBackstagePostDialog((W=this.data)==null?void 0:W.actions)){_.GS(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var l=_.GS(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;l&&_.V9(this,function(){l.focus();l.openDialog&&l.openDialog()})}}else this.hasActionsChange=!0};
_.t.computeIsBackstage=function(W){return W};
_.t.onYtCommentboxDismiss=function(){_.GS(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.t.removePrefilledDialog=function(W){if(W==null?0:W.actions){for(var l=W.actions.length-1;l>=0;l--){var V=void 0;((V=_.k(W.actions[l],iBk))==null?0:V.dialog)&&delete W.actions[l]}this.set("data",void 0);this.set("data",W)}};
_.t.getPrefilledBackstagePostDialog=function(W){if(W)for(var l=0;l<W.length;l++){var V=W[l],f=void 0;if((f=_.k(V,iBk))==null?0:f.dialog)return _.k(V,iBk).dialog}return null};
_.t.computeBackstagePostDialog=function(W){return W&&(this.getPrefilledBackstagePostDialog(W.actions)||W.createRenderer)};
_.t.dataChanged=function(){if(this.data){var W=this.data.customEmojis,l=this.data.unicodeEmojisUrl;_.vB.clear();l&&_.bg1(_.vB,l);W&&_.vB.load(W)}};
_.t.handleSignalActionOpenPostCommentDialogAction=function(){var W=_.GS(this.hostElement).querySelector("ytd-comment-simplebox-renderer");W?W.openDialog():this.JSC$15919_handleOpenPostCommentDialogActionAfterStamp=!0};
_.rc.Object.defineProperties(C3.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.U("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var W,l,V,f,r,R,y;return!this.hidePanelButton&&_.U("kevlar_watch_comments_panel_button")&&((y=_.k((W=this.data)==null?void 0:(l=W.sortMenu)==null?void 0:(V=l.sortFilterSubMenuRenderer)==null?void 0:(f=V.subMenuItems)==null?void 0:(r=f[0])==null?void 0:(R=r.serviceEndpoint)==null?void 0:R.commandMetadata,_.XN))==null?void 0:y.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.wg("MINIPLAYER_EXPAND_LABEL"),text:_.Bl(_.wg("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
C3.prototype.dataChanged=C3.prototype.dataChanged;C3.prototype.onYtCommentboxDismiss=C3.prototype.onYtCommentboxDismiss;C3.prototype.observePrefilledBackstagePostDialog=C3.prototype.observePrefilledBackstagePostDialog;C3.prototype.onYtServiceRequestSent=C3.prototype.onYtServiceRequestSent;C3.prototype.onStampFinished=C3.prototype.onStampFinished;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],C3.prototype,"ytActionHandlerBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],C3.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],C3.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],C3.prototype,"modernTypography",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],C3.prototype,"compactHeader",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],C3.prototype,"engagementPanel",void 0);_.a([_.b(),_.z("design:type",Object)],C3.prototype,"hidePanelButton",void 0);_.a([_.b({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.z("design:type",Boolean)],C3.prototype,"isBackstage",void 0);_.a([_.b({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.z("design:type",Object)],C3.prototype,"backstagePostDialog",void 0);
_.a([_.b(),_.z("design:type",Object)],C3.prototype,"isPostSchedulingEnabled",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("data","showCommentsPanelButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],C3.prototype,"useSpaceBetween",null);_.a([_.b({reflectToAttribute:!0}),_.G("data","hidePanelButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],C3.prototype,"showCommentsPanelButton",null);
_.a([_.G("data","showCommentsPanelButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],C3.prototype,"commentsPanelButtonData",null);_.a([_.XI("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],C3.prototype,"onStampFinished",null);_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],C3.prototype,"onYtServiceRequestSent",null);
_.a([_.TS("data.actions"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],C3.prototype,"observePrefilledBackstagePostDialog",null);_.a([_.XI("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],C3.prototype,"onYtCommentboxDismiss",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],C3.prototype,"dataChanged",null);
_.a([_.A({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],C3);
_.Z(C3,"ytd-comments-header-renderer",function(){if(IQ$!==void 0)return IQ$;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return IQ$=W},{mode:1});var i8L;var cc=function(){return _.I.apply(this,arguments)||this};
_.v(cc,_.I);_.a([_.b(),_.z("design:type",Object)],cc.prototype,"data",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.a([_.A({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],cc);
_.Z(cc,"ytd-destination-button-renderer",function(){if(i8L!==void 0)return i8L;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return i8L=W},{mode:1});var mUM;var Bc=function(){var W=_.I.apply(this,arguments)||this;W.isRichGrid=!1;W.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};W.modernTypography=_.U("web_modern_typography");return W};
_.v(Bc,_.I);_.t=Bc.prototype;_.t.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.t.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.t.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.t.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var W;if((W=this.data)==null||!W.isExpanded){W=this.hostElement.clientWidth;var l;if(W&&(l=this.data)!=null&&l.destinationButtons){l=Math.floor((W+4)/214);W=this.data.destinationButtons.length;var V=Math.ceil(W/l);this.fullyVisibleRows=W%l===1&&V===2?1:Math.min(V,2);this.isShowMoreVisible=this.fullyVisibleRows<V}}}};
_.t.updateRichGridDestinationButtonsVisibility=function(){var W,l;if(this.isRichGrid&&((W=this.data)==null||!W.isExpanded)&&(l=this.data)!=null&&l.destinationButtons){W=this.richGridItemsPerRow+1;l=this.data.destinationButtons.length;var V=Math.ceil(l/W);this.fullyVisibleRows=l%W===1&&V===2?1:Math.min(V,2);this.isShowMoreVisible=this.fullyVisibleRows<V}};
_.t.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Bc.prototype.updateRichGridDestinationButtonsVisibility=Bc.prototype.updateRichGridDestinationButtonsVisibility;_.a([_.b(),_.z("design:type",Object)],Bc.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Number)],Bc.prototype,"fullyVisibleRows",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Bc.prototype,"isShowMoreVisible",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Bc.prototype,"isRichGrid",void 0);
_.a([_.b({selector:_.Wl,value:0}),_.z("design:type",Number)],Bc.prototype,"richGridItemsPerRow",void 0);_.a([_.b(),_.z("design:type",Object)],Bc.prototype,"gridStateActionMap",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Bc.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Bc.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],Bc.prototype,"ytdReduxBehavior",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Bc.prototype,"modernTypography",void 0);_.a([_.TS("data","richGridItemsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Bc.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.a([_.A({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],Bc);
_.Z(Bc,"ytd-destination-shelf-renderer",function(){if(mUM!==void 0)return mUM;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return mUM=W},{mode:1});var Xz9;var ds=function(){return _.I.apply(this,arguments)||this};
_.v(ds,_.I);ds.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"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ds.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ds.prototype,"data",void 0);_.a([_.A({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],ds);
_.Z(ds,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(Xz9!==void 0)return Xz9;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Xz9=W},{mode:1});var TV9;var Jh=function(){var W=_.I.apply(this,arguments)||this;W.disableAnimation=!1;W.isSlimlineSurvey=!1;W.isSlimlineSurveyFollowUp=!1;W.isShortsStyle=!1;return W};
_.v(Jh,_.I);Jh.prototype.onTap=function(W){W.preventDefault();this.data&&_.FN(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.rc.Object.defineProperties(Jh.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 W,l,V,f,r;return((W=this.data)==null?0:W.checked)?(l=this.data)==null?void 0:(V=l.onStateIcon)==null?void 0:V.iconType:(f=this.data)==null?void 0:(r=f.defaultStateIcon)==null?void 0:r.iconType}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Jh.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Jh.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Jh.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Jh.prototype,"disableAnimation",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Jh.prototype,"isSlimlineSurvey",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Jh.prototype,"isSlimlineSurveyFollowUp",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Jh.prototype,"isShortsStyle",void 0);_.a([_.G("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Jh.prototype,"isAnimatedIcon",null);
_.a([_.G("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.z("design:type",Number),_.z("design:paramtypes",[])],Jh.prototype,"iconSize",null);_.a([_.G("isShortsStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Jh.prototype,"isDarkTheme",null);_.a([_.G("data.checked"),_.z("design:type",Object),_.z("design:paramtypes",[])],Jh.prototype,"icon",null);_.a([_.A({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Jh);
_.Z(Jh,"ytd-rating-survey-option-renderer",function(){if(TV9!==void 0)return TV9;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return TV9=W},{mode:2});var wzL;var D9=function(){var W=_.I.apply(this,arguments)||this;W.firstResponseText=null;W.lastResponseText=null;W.selectedNonStarOption=null;W.hideOptions=!1;W.hideUndoButton=!0;W.disableAnimation=!1;W.showResponseRangeText=!1;W.selectedRatingIndex=-1;W.isSlimlineSurvey=!1;W.isSlimlineSurveyFollowUp=!1;W.isShortsStyle=!1;W.slimlineSurveyRatingSelectedIndex=-1;return W};
_.v(D9,_.I);_.t=D9.prototype;_.t.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.t.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.t.onOptionChange=function(W,l){var V=this;W=l.onStateIcon&&l.defaultStateIcon&&l.onStateIcon.iconType===l.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(y,P){y.responseText===l.responseText?V.isSlimlineSurvey?(V.selectedRatingIndex=P,V.ytdReduxBehavior.dispatch(HFk(P))):(V.setSurveyOptionValue(P,!0,"checked"),V.setSurveyOptionValue(P,!0,"selected")):(V.setSurveyOptionValue(P,!1,"checked"),V.setSurveyOptionValue(P,
!1,"selected"))});
else if(W)this.selectedNonStarOption=l,this.hideOptions=!0;else{var f=this.ytRendererBehavior.getSimpleString(l.responseText),r=!0;this.getOptionRenderers().forEach(function(y,P){V.setSurveyOptionValue(P,r,"checked");V.setSurveyOptionValue(P,!1,"selected");V.ytRendererBehavior.getSimpleString(y.responseText)===f&&(r=!1,V.setSurveyOptionValue(P,!0,"selected"))})}W=l.responseEndpoint;
var R;l.followUpCommand&&(R=_.k(l.followUpCommand,iiB));this.isSlimlineSurvey?(this.resetComponent(),_.Gt(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.Gt(this.hostElement,"ytd-inline-survey-rating-select-action",[W,R])};
_.t.showSelectedOption=function(){var W=this;_.w8.addJob(function(){var l=W.getOptionRenderers()[W.slimlineSurveyRatingSelectedIndex];W.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),l)},8,100)};
_.t.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(W){var l;return(l=_.k(W,Xdc))!=null?l:{}}):[]};
_.t.onUndoClick=function(){this.resetComponent();_.Gt(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.t.setSurveyOptionValue=function(W,l,V){this.notifyPath("data.ratings."+W+".ratingSurveyOptionRenderer."+V);this.set("data.ratings."+W+".ratingSurveyOptionRenderer."+V,l)};
_.t.resetComponent=function(){var W=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var l=this.getOptionRenderers(),V,f;this.firstResponseText=(f=(V=l[0])==null?void 0:V.responseText)!=null?f:null;var r,R;this.lastResponseText=(R=(r=l[l.length-1])==null?void 0:r.responseText)!=null?R:null;l.forEach(function(y,P){W.setSurveyOptionValue(P,!1,"checked");W.setSurveyOptionValue(P,!1,"selected")})};
_.rc.Object.defineProperties(D9.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
D9.prototype.onOptionChange=D9.prototype.onOptionChange;D9.prototype.dataChanged=D9.prototype.dataChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],D9.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],D9.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],D9.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],D9.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Object)],D9.prototype,"firstResponseText",void 0);_.a([_.b(),_.z("design:type",Object)],D9.prototype,"lastResponseText",void 0);_.a([_.b(),_.z("design:type",Object)],D9.prototype,"selectedNonStarOption",void 0);_.a([_.b(),_.z("design:type",Object)],D9.prototype,"hideOptions",void 0);_.a([_.b(),_.z("design:type",Object)],D9.prototype,"hideUndoButton",void 0);_.a([_.b(),_.z("design:type",Object)],D9.prototype,"disableAnimation",void 0);
_.a([_.b(),_.z("design:type",Object)],D9.prototype,"showResponseRangeText",void 0);_.a([_.b(),_.z("design:type",Object)],D9.prototype,"selectedRatingIndex",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],D9.prototype,"isSlimlineSurvey",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],D9.prototype,"isSlimlineSurveyFollowUp",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],D9.prototype,"isShortsStyle",void 0);_.a([_.b({selector:function(W){return W.ui.slimlineSurveyRatingSelectedIndex}}),
_.z("design:type",Object)],D9.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.a([_.G("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],D9.prototype,"isSingleSelect",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],D9.prototype,"dataChanged",null);
_.a([_.XI("ytd-rating-survey-option-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],D9.prototype,"onOptionChange",null);_.a([_.A({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],D9);
_.Z(D9,"ytd-rating-survey-renderer",function(){if(wzL!==void 0)return wzL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return wzL=W},{mode:1});var A7B;var QFM;var M2k;var dwq=(j$.FIRSTDAYOFWEEK+1)%7,Z8$=function(W,l,V,f){var r="";if(f.selection&&nl4(f.selection))bE(W,f.selection)&&(r+=" selected");else if(f.selection&&CV8(f.selection)){var R=f.selection.selectionState||"START_DATE";bE(W,f.selection.start)&&(r+=" period-start ",R==="START_DATE"&&(r+="selected"));bE(W,f.selection.end)&&(r+=" period-end ",R==="END_DATE"&&(r+="selected"));ph(W,f.selection.start)||ph(f.selection.end,W)||(r+=" highlighted")}if(ph(l,f.start)||ph(f.end,l))r+=" disabled";f.circleToday&&
bE(l,V)&&(r+=" today");return r};var Uy=function(){return _.I.apply(this,arguments)||this};
_.v(Uy,_.I);_.t=Uy.prototype;_.t.attached=function(){var W=this;_.V9(this,function(){W.JSC$15953_calendarMain.scrollHeight>0&&(W.calendarConfig.selection?W.scrollToDate(ct8(W.calendarConfig.selection)):W.scrollToDate(W.calendarConfig.end))})};
_.t.updateSelection=function(W){W=JtU(Object.assign({},this.calendarConfig,{selection:W}),Z8$);this.splice.apply(this,["renderData.months",0,W.length].concat(_.QK(W)))};
_.t.scrollToDate=function(W){this.renderData&&(W=Dwv(W,this.renderData),W!==void 0&&this.JSC$15953_calendarMain.scrollToIndex(W))};
_.t.scrollToNextMonth=function(){this.JSC$15953_calendarMain.scrollToIndex(this.JSC$15953_calendarMain.firstVisibleIndex+1)};
_.t.scrollToPrevMonth=function(){this.JSC$15953_calendarMain.firstVisibleIndex===0&&this.JSC$15953_calendarMain.scrollTo(0,0);this.JSC$15953_calendarMain.scrollToIndex(this.JSC$15953_calendarMain.firstVisibleIndex-1)};
_.t.handleDayClick=function(W){_.Gt(this.hostElement,"ytd-calendar-date-clicked",[W.model.day.date])};
_.t.handleDayMouseDown=function(W){W.preventDefault();_.Gt(this.hostElement,"ytd-calendar-date-mousedown",[W.model.day.date])};
_.t.handleDayMouseUp=function(W){_.Gt(this.hostElement,"ytd-calendar-date-mouseup",[W.model.day.date])};
_.t.handleDayMouseEnter=function(W){W.preventDefault();_.Gt(this.hostElement,"ytd-calendar-date-mouseenter",[W.model.day.date])};
_.t.handleDayMouseLeave=function(W){_.Gt(this.hostElement,"ytd-calendar-date-mouseleave",[W.model.day.date])};
_.rc.Object.defineProperties(Uy.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var W=this.calendarConfig,l=Z8$;l=l===void 0?Z8$:l;for(var V=[],f=0;f<7;f++)V.push(j$.NARROWWEEKDAYS[(f+dwq)%7]);return{months:JtU(W,l),daysOfWeekLabel:V}}}});
_.a([_.b(),_.z("design:type",Object)],Uy.prototype,"calendarConfig",void 0);_.a([_.Aa("#calendar-main"),_.z("design:type",Object)],Uy.prototype,"JSC$15953_calendarMain",void 0);_.a([_.G("calendarConfig"),_.z("design:type",Object),_.z("design:paramtypes",[])],Uy.prototype,"renderData",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],Uy);
_.Z(Uy,"ytd-scrollable-calendar",function(){if(M2k!==void 0)return M2k;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return M2k=W},{mode:2});var O8I;var aQk;var uU=function(){var W=_.I.apply(this,arguments)||this;W.hideCharCounter=!1;W.hideLabel=!1;W.noLabelFloat=!1;W.autoValidate=!0;W.invalid=!1;W.disabled=!1;W.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return W};
_.v(uU,_.I);_.t=uU.prototype;_.t.reset=function(W){this.value=W&&this.data?this.data.value=W:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.t.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.t.focusTextInput=function(){this.input.focus()};
_.t.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()};
_.t.valueChanged=function(){var W,l;if(((W=this.data)==null?0:W.value)||((l=this.data)==null?void 0:l.value)==="")this.value=this.data.value;else{var V;((V=this.data)==null?void 0:V.value)!==void 0||this.value||(this.value="")}};
_.t.computeLabel=function(W,l){return l?"":_.dE(W)};
_.t.computeAriaLabel=function(W,l){return l?_.dE(W):""};
_.t.computeErrorMessage=function(W,l,V,f){!W&&l?W=V||this.strings.REQUIRED_LABEL:(W=_.dE(f),W=_.P8(W,"&")?"document"in _.rS?d1c(W):JZL(W):W);return W};
_.t.computeType=function(W){return W==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.t.onTextValueChanged=function(W){this.value=W.detail.value;var l;(l=this.onValueChanged)==null||l.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.t.handleUpdateTextInputFormFieldRendererCommand=function(W){(W=_.k(W,WE1))&&this.data&&this.data.id===W.id&&(W.invalid!==void 0&&(this.invalid=W.invalid),W.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",W.invalidValueErrorMessage))};
_.t.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.GD("value-changed",this.value))};
_.t.updateInvalidFromBinding=function(W){this.invalid=W.detail.value};
_.rc.Object.defineProperties(uU.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var W;return!((W=this.data)==null||!W.isMultiline)}}});
uU.prototype.valueChangedForBinding=uU.prototype.valueChangedForBinding;uU.prototype.valueChanged=uU.prototype.valueChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],uU.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],uU.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],uU.prototype,"ytActionHandlerBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],uU.prototype,"data",void 0);_.a([_.b(),_.z("design:type",String)],uU.prototype,"value",void 0);_.a([_.b(),_.z("design:type",String)],uU.prototype,"pattern",void 0);_.a([_.b(),_.z("design:type",String)],uU.prototype,"errorMessage",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],uU.prototype,"componentStyle",void 0);_.a([_.b(),_.z("design:type",Object)],uU.prototype,"hideCharCounter",void 0);
_.a([_.b(),_.z("design:type",Object)],uU.prototype,"hideLabel",void 0);_.a([_.b(),_.z("design:type",Object)],uU.prototype,"noLabelFloat",void 0);_.a([_.b(),_.z("design:type",Function)],uU.prototype,"onValueChanged",void 0);_.a([_.b(),_.z("design:type",Boolean)],uU.prototype,"isMultilineOverride",void 0);_.a([_.b(),_.z("design:type",Object)],uU.prototype,"autoValidate",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],uU.prototype,"invalid",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],uU.prototype,"disabled",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],uU.prototype,"enableOverlayTheme",void 0);_.a([_.b({value:{REQUIRED_LABEL:_.wg("REQUIRED_LABEL",void 0,"Required")}}),_.z("design:type",Object)],uU.prototype,"strings",void 0);_.a([_.Aa("#input"),_.z("design:type",Object)],uU.prototype,"input",void 0);
_.a([_.G("data","isMultilineOverride"),_.z("design:type",Object),_.z("design:paramtypes",[])],uU.prototype,"isMultiline",null);_.a([_.zS("data.value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uU.prototype,"valueChanged",null);_.a([_.TS("value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uU.prototype,"valueChangedForBinding",null);_.a([_.Vq({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],uU);
_.Z(uU,"yt-text-input-form-field-renderer",function(){if(aQk===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;O8I===void 0&&(O8I=document.createElement("template"));var f=O8I;V.call(l,f.content.cloneNode(!0),W.content.firstChild);aQk=W}W=aQk;return W},{mode:2});var kU=function(){var W=_.I.apply(this,arguments)||this;W.data=void 0;W.selectionState="START_DATE";W.isStartDateInvalid=!1;W.isEndDateInvalid=!1;W.autoapply=!1;W.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 W};
_.v(kU,_.I);_.t=kU.prototype;_.t.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"}}}}};
_.t.focus=function(){this.startDateInput.focus()};
_.t.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:op(this.data.selection.start),end:op(this.data.selection.end)})};
_.t.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.t.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Yc(this.selectionState)}};
_.t.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.t.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.t.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.t.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var W=this.calendar.calendarConfig,l=W.end;W=uu6({start:W.start,end:this.endDate||l},this.startDateInput.value||"");this.isStartDateInvalid=!W.isValid;W.isValid&&(W=W.value,this.selection=this.endDate?{start:W,end:this.endDate}:W,this.calendar.scrollToDate(W));this.updateInvalidState()}};
_.t.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var W=this.calendar.calendarConfig,l=W.start;W=uu6({start:this.startDate||l,end:W.end},this.endDateInput.value||"");this.isEndDateInvalid=!W.isValid;W.isValid&&(W=W.value,this.selection={start:this.startDate,end:W},this.calendar.scrollToDate(W));this.updateInvalidState()}};
_.t.handleCalendarDateClicked=function(W){var l=this.selection&&ct8(this.selection),V=this.selection&&Bfz(this.selection);l&&!ph(W,l)&&this.selectionState==="END_DATE"?(this.selection={start:l,end:W},this.selectionState="START_DATE"):(V&&!ph(V,W)?this.selection={start:W,end:V}:this.selection=W,this.selectionState="END_DATE")};
_.t.handleCalendarDateMouseDown=function(W){this.selection&&!nl4(this.selection)&&(this.dragPivot=bE(W,this.selection.start)?this.selection.end:bE(W,this.selection.end)?this.selection.start:W)};
_.t.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.t.handleCalendarDateMouseEnter=function(W){this.dragPivot&&(this.selection={start:function(l,V){return ph(l,V)?l:V}(this.dragPivot,W),
end:function(l,V){return ph(l,V)?V:l}(this.dragPivot,W)},this.dragPivot||(this.selectionState="START_DATE"))};
_.t.handleCalendarDateMouseLeave=function(){};
_.t.handleCalendarSubmitDateRange=function(){this.selection&&!nl4(this.selection)&&_.Gt(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.t.updateInvalidState=function(){var W=function(l,V){V?l.setAttribute("invalid",""):l.removeAttribute("invalid")};
W(this.startDateInput,this.isStartDateInvalid);W(this.endDateInput,this.isEndDateInvalid)};
_.t.updateDateStrings=function(){this.selection&&(nl4(this.selection)?PVz(this.selection):(PVz(this.selection.start),PVz(this.selection.end)))};
_.t.updateCalendarSelection=function(W){this.calendar.updateSelection(Object.assign({},W,{selectionState:this.selectionState}))};
_.t.updateIsStartDateInvalidFromBinding=function(W){this.isStartDateInvalid=W.detail.value};
_.t.updateIsEndDateInvalidFromBinding=function(W){this.isEndDateInvalid=W.detail.value};
_.t.updateStartDateStringFromBinding=function(){};
_.t.updateEndDateStringFromBinding=function(){};
_.rc.Object.defineProperties(kU.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:op(this.data.dateRangeStart),end:op(this.data.dateRangeEnd),selection:{start:op(this.data.selection.start),end:op(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&ct8(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Bfz(this.selection)}}});
kU.prototype.resetTextboxes=kU.prototype.resetTextboxes;kU.prototype.observeSelection=kU.prototype.observeSelection;kU.prototype.dataChanged=kU.prototype.dataChanged;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],kU.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],kU.prototype,"ytRendererstamperBehavior",void 0);_.a([_.Aa("#calendar"),_.z("design:type",Object)],kU.prototype,"calendar",void 0);
_.a([_.Aa("#start-date"),_.z("design:type",Object)],kU.prototype,"startDateInput",void 0);_.a([_.Aa("#end-date"),_.z("design:type",Object)],kU.prototype,"endDateInput",void 0);_.a([_.b(),_.z("design:type",Object)],kU.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],kU.prototype,"selection",void 0);_.a([_.b(),_.z("design:type",String)],kU.prototype,"selectionState",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],kU.prototype,"calendarConfig",null);
_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],kU.prototype,"errorMessage",null);_.a([_.G("selection"),_.z("design:type",Object),_.z("design:paramtypes",[])],kU.prototype,"startDate",null);_.a([_.G("selection"),_.z("design:type",Object),_.z("design:paramtypes",[])],kU.prototype,"endDate",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kU.prototype,"dataChanged",null);
_.a([_.TS("selection","selectionState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kU.prototype,"observeSelection",null);_.a([_.TS("selectionState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kU.prototype,"resetTextboxes",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],kU);
_.Z(kU,"ytd-date-period-picker-renderer",function(){if(QFM!==void 0)return QFM;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return QFM=W},{mode:1});var vc=function(){var W=_.I.apply(this,arguments)||this;var l={};W.actionMap=(l["ytd-date-period-picker-apply"]="handleDateRangeUpdated",l);return W};
_.v(vc,_.I);vc.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
vc.prototype.handleDateRangeUpdated=function(){};
_.a([_.b(),_.z("design:type",Object)],vc.prototype,"data",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],vc.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],vc.prototype,"rendererstamperBehavior",void 0);_.a([_.A({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],vc);
_.Z(vc,"ytd-report-history-section-header-renderer",function(){if(A7B!==void 0)return A7B;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return A7B=W},{mode:1});var zZv;var NV$;var YQv;var Hc=function(){return _.I.apply(this,arguments)||this};
_.v(Hc,_.I);_.rc.Object.defineProperties(Hc.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.data)==null?0:(l=W.icon)==null?0:l.iconType)?_.IJ(this.data.icon.iconType):""}}});
_.a([_.b(),_.z("design:type",Object)],Hc.prototype,"data",void 0);_.a([_.G("data"),_.z("design:type",String),_.z("design:paramtypes",[])],Hc.prototype,"icon",null);_.a([_.A({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],Hc);
_.Z(Hc,"ytd-report-history-table-text-cell-renderer",function(){if(YQv!==void 0)return YQv;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return YQv=W},{mode:1});var K3=function(){return _.I.apply(this,arguments)||this};
_.v(K3,_.I);K3.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],K3.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],K3.prototype,"data",void 0);_.a([_.A({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],K3);
_.Z(K3,"ytd-report-history-table-reason-cell-renderer",function(){if(NV$!==void 0)return NV$;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return NV$=W},{mode:1});var Ft=function(){return _.I.apply(this,arguments)||this};
_.v(Ft,_.I);Ft.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"}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Ft.prototype,"rendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Ft.prototype,"data",void 0);_.a([_.A({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],Ft);
_.Z(Ft,"ytd-report-history-table-cell-renderer",function(){if(zZv!==void 0)return zZv;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
return zZv=W},{mode:1});var xUv;var GE=function(){var W=_.I.apply(this,arguments)||this;W.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 W};
_.v(GE,_.I);GE.prototype.onDataChanged=function(){var W;if((W=this.data)==null?0:W.style)this.componentStyle=this.getStyleName(this.data.style)};
GE.prototype.getCellForColumn=function(W){return this.cells.find(function(l){var V;return((V=_.k(l==null?void 0:l.cell,AUc)||_.k(l==null?void 0:l.cell,wd$))==null?void 0:V.columnId)===W.type})};
GE.prototype.getClassForColumn=function(W){switch(W){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
GE.prototype.getStyleName=function(W){switch(W){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.rc.Object.defineProperties(GE.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.cells)||[]).map(function(l){return _.k(l,TA$)})}}});
GE.prototype.onDataChanged=GE.prototype.onDataChanged;_.a([_.b(),_.z("design:type",Object)],GE.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Array)],GE.prototype,"columnRenderData",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],GE.prototype,"componentStyle",void 0);_.a([_.G("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],GE.prototype,"cells",null);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GE.prototype,"onDataChanged",null);_.a([_.A({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],GE);
_.Z(GE,"ytd-report-history-table-row-renderer",function(){if(xUv!==void 0)return xUv;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return xUv=W},{mode:1});var eZe;var qQv;var kCF={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},vlS={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var bU=function(){return _.I.apply(this,arguments)||this};
_.v(bU,_.I);bU.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"}}}}}};
bU.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.rc.Object.defineProperties(bU.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.columns)?bHx(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Fhg(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var W=this.tableSpec,l=kCF;l=l===void 0?vlS:l;l=GCz(W.columnDimensions,W.columnsToShow||[],l);W=0;l=_.L(l);for(var V=l.next();!V.done;V=l.next())V=V.value,W+=V.minWidth+V.paddingLeft+V.paddingRight;return W}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.a([_.F(_.vH),_.z("design:type",Object)],bU.prototype,"ytContinuationHandlerBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],bU.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],bU.prototype,"data",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],bU.prototype,"tableSpec",null);_.a([_.G("tableSpec"),_.z("design:type",Array),_.z("design:paramtypes",[])],bU.prototype,"columnRenderData",null);
_.a([_.G("tableSpec"),_.z("design:type",Number),_.z("design:paramtypes",[])],bU.prototype,"totalMinWidth",null);_.a([_.G("totalMinWidth"),_.z("design:type",String),_.z("design:paramtypes",[])],bU.prototype,"tableWidthStyle",null);_.a([_.A({is:"ytd-table-renderer",disableElementRegistration:!0})],bU);
_.Z(bU,"ytd-table-renderer",function(){if(qQv!==void 0)return qQv;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return qQv=W},{mode:1});var p3=function(){return _.I.apply(this,arguments)||this};
_.v(p3,_.I);p3.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}}}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],p3.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],p3.prototype,"data",void 0);_.a([_.A({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],p3);
_.Z(p3,"ytd-report-reason-history-modal-renderer",function(){if(eZe!==void 0)return eZe;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return eZe=W},{mode:1});var hZL;var SQI;var EfM;var ob=function(){return _.I.apply(this,arguments)||this};
_.v(ob,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ob.prototype,"data",void 0);_.a([_.A({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],ob);
_.Z(ob,"ytd-profile-column-stats-entry-renderer",function(){if(EfM!==void 0)return EfM;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return EfM=W},{mode:1});var $UI;var jc=function(){return _.I.apply(this,arguments)||this};
_.v(jc,_.I);jc.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],jc.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],jc.prototype,"data",void 0);_.a([_.A({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],jc);
_.Z(jc,"ytd-profile-column-stats-renderer",function(){if($UI!==void 0)return $UI;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return $UI=W},{mode:1});var WqB;var Ib=function(){return _.I.apply(this,arguments)||this};
_.v(Ib,_.I);_.rc.Object.defineProperties(Ib.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.useThumbnailSize)return 80;var l,V;W=(l=this.data)==null?void 0:(V=l.thumbnail)==null?void 0:V.thumbnails;var f;return W&&((f=W[0])==null?void 0:f.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.useThumbnailSize)return 80;var l,V;W=(l=this.data)==null?void 0:(V=l.thumbnail)==null?void 0:V.thumbnails;var f;return W&&((f=W[0])==null?void 0:f.height)||80}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Ib.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],Ib.prototype,"componentStyle",void 0);_.a([_.G("data.useThumbnailSize"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ib.prototype,"thumbnailWidth",null);
_.a([_.G("data.useThumbnailSize"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ib.prototype,"thumbnailHeight",null);_.a([_.A({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],Ib);
_.Z(Ib,"ytd-profile-column-user-info-renderer",function(){if(WqB!==void 0)return WqB;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return WqB=W},{mode:1});var iU=function(){return _.I.apply(this,arguments)||this};
_.v(iU,_.I);iU.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]]"}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],iU.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],iU.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],iU.prototype,"componentStyle",void 0);_.a([_.A({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],iU);
_.Z(iU,"ytd-profile-column-renderer",function(){if(SQI!==void 0)return SQI;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return SQI=W},{mode:1});var mb=function(){var W=_.I.apply(this,arguments)||this;W.componentStyle="NON_CENTERED_PROFILE";return W};
_.v(mb,_.I);mb.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
mb.prototype.getIcon=function(W){return W?"settings:"+W.toLowerCase():null};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],mb.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],mb.prototype,"data",void 0);_.a([_.A({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],mb);
_.Z(mb,"ytd-page-introduction-renderer",function(){if(hZL!==void 0)return hZL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return hZL=W},{mode:1});var lta;var Xt=function(){return _.I.apply(this,arguments)||this};
_.v(Xt,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Xt.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Xt.prototype,"data",void 0);_.a([_.A({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Xt);
_.Z(Xt,"ytd-report-description-renderer",function(){if(lta!==void 0)return lta;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return lta=W},{mode:1});var VOL;var ftk;var TE=function(){return _.I.apply(this,arguments)||this};
_.v(TE,_.I);TE.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],TE.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],TE.prototype,"data",void 0);_.a([_.A({is:"ytd-video-report-renderer",disableElementRegistration:!0})],TE);
_.Z(TE,"ytd-video-report-renderer",function(){if(ftk!==void 0)return ftk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return ftk=W},{mode:1});var rDk;_.e1("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.e1("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var ws=function(){return _.I.apply(this,arguments)||this};
_.v(ws,_.I);ws.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]]"}}}}}};
ws.prototype.computeMessageStyle=function(W){return W};
ws.prototype.computeButtonOverride=function(W){var l;if((W==null?0:(l=W.style)==null?0:l.value)&&W.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ws.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ws.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ws.prototype,"shelf",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ws.prototype,"panel",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.z("design:type",Boolean)],ws.prototype,"componentStyle",void 0);_.a([_.b({computed:"computeButtonOverride(data)"}),_.z("design:type",Object)],ws.prototype,"buttonOverride",void 0);_.a([_.A({is:"ytd-message-renderer",disableElementRegistration:!0})],ws);
_.Z(ws,"ytd-message-renderer",function(){if(rDk!==void 0)return rDk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return rDk=W},{mode:1});var Ah=function(){return _.I.apply(this,arguments)||this};
_.v(Ah,_.I);Ah.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"}}}};
Ah.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
Ah.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.rc.Object.defineProperties(Ah.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var W,l;return!!(((W=this.data)==null?0:W.header)&&((l=this.data)==null?0:l.table))}}});
Ah.prototype.onRequestError=Ah.prototype.onRequestError;_.a([_.F(_.vH),_.z("design:type",Object)],Ah.prototype,"ytContinuationHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Ah.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Ah.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Ah.prototype,"data",void 0);
_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ah.prototype,"isUnifiedReportHistory",null);_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ah.prototype,"onRequestError",null);_.a([_.A({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],Ah);
_.Z(Ah,"ytd-report-history-section-renderer",function(){if(VOL!==void 0)return VOL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return VOL=W},{mode:1});var Rvk;var Q8=function(){var W=_.I.apply(this,arguments)||this;W.answerExpanded=!1;return W};
_.v(Q8,_.I);Q8.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Q8.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Q8.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Q8.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Q8.prototype,"answerExpanded",void 0);_.a([_.A({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Q8);
_.Z(Q8,"ytd-handles-claiming-faq-renderer",function(){if(Rvk!==void 0)return Rvk;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Rvk=W},{mode:1});var tOk;var sOI=function(){return _.I.apply(this,arguments)||this};
_.v(sOI,_.I);_.a([_.b(),_.z("design:type",Object)],sOI.prototype,"data",void 0);_.a([_.A({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],sOI);
_.Z(sOI,"ytd-handles-claiming-faq-section-renderer",function(){if(tOk!==void 0)return tOk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return tOk=W},{mode:1});var LqX;var Mx=function(){var W=_.I.apply(this,arguments)||this;W.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";W.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";W.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";W.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";W.leftSquiggly=W.leftSquigglyLight;W.rightSquiggly=W.rightSquigglyLight;
W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};W.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return W};
_.v(Mx,_.I);_.t=Mx.prototype;_.t.updateLeftSquigglyStyle=function(){_.I1(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.t.updateRightSquigglyStyle=function(){_.I1(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.t.ready=function(){var W=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(W)};
_.t.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.set("isDarkTheme",W),W?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.t.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
Mx.prototype.updateRightSquigglyStyle=Mx.prototype.updateRightSquigglyStyle;Mx.prototype.updateLeftSquigglyStyle=Mx.prototype.updateLeftSquigglyStyle;_.a([_.b(),_.z("design:type",Object)],Mx.prototype,"data",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],Mx.prototype,"isDarkTheme",void 0);_.a([_.b(),_.z("design:type",String)],Mx.prototype,"leftSquiggly",void 0);_.a([_.b(),_.z("design:type",String)],Mx.prototype,"rightSquiggly",void 0);
_.a([_.TS("leftSquiggly"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mx.prototype,"updateLeftSquigglyStyle",null);_.a([_.TS("rightSquiggly"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mx.prototype,"updateRightSquigglyStyle",null);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Mx.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Mx.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Mx.prototype,"actionButtonOverride",void 0);_.a([_.A({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],Mx);
_.Z(Mx,"ytd-handles-claiming-header-renderer",function(){if(LqX!==void 0)return LqX;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return LqX=W},{mode:1});var yDe;var Z9=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};W.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";W.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";W.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";W.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
W.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";W.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";W.image0SquigglyBackground=W.image0LightSquigglyBackground;W.image1SquigglyBackground=W.image1LightSquigglyBackground;W.image3SquigglyBackground=W.image3LightSquigglyBackground;return W};
_.v(Z9,_.I);_.t=Z9.prototype;_.t.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.t.onDataChanged=function(){this.updateTitleAndImages()};
_.t.onThemeChanged=function(){this.updateTitleAndImages()};
_.t.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W)};
_.t.updateImage0SquigglyBackground=function(){_.I1(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.t.updateImage1SquigglyBackground=function(){_.I1(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.t.updateImage3SquigglyBackground=function(){_.I1(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.t.updateTitleAndImages=function(){var W,l;((W=this.data)==null?void 0:(l=W.titleImages)==null?void 0:l.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))};
Z9.prototype.updateImage3SquigglyBackground=Z9.prototype.updateImage3SquigglyBackground;Z9.prototype.updateImage1SquigglyBackground=Z9.prototype.updateImage1SquigglyBackground;Z9.prototype.updateImage0SquigglyBackground=Z9.prototype.updateImage0SquigglyBackground;Z9.prototype.onThemeChanged=Z9.prototype.onThemeChanged;Z9.prototype.onDataChanged=Z9.prototype.onDataChanged;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Z9.prototype,"ytActionHandlerBehavior",void 0);
_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Z9.prototype,"isDarkTheme",void 0);_.a([_.b(),_.z("design:type",Object)],Z9.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Z9.prototype,"title0",void 0);_.a([_.b(),_.z("design:type",Object)],Z9.prototype,"title1",void 0);_.a([_.b(),_.z("design:type",Object)],Z9.prototype,"title2",void 0);_.a([_.b(),_.z("design:type",Object)],Z9.prototype,"title3",void 0);
_.a([_.b(),_.z("design:type",Object)],Z9.prototype,"title4",void 0);_.a([_.b(),_.z("design:type",Object)],Z9.prototype,"image0",void 0);_.a([_.b(),_.z("design:type",Object)],Z9.prototype,"image1",void 0);_.a([_.b(),_.z("design:type",Object)],Z9.prototype,"image2",void 0);_.a([_.b(),_.z("design:type",Object)],Z9.prototype,"image3",void 0);_.a([_.b(),_.z("design:type",Object)],Z9.prototype,"image4",void 0);_.a([_.b(),_.z("design:type",String)],Z9.prototype,"image0SquigglyBackground",void 0);
_.a([_.b(),_.z("design:type",String)],Z9.prototype,"image1SquigglyBackground",void 0);_.a([_.b(),_.z("design:type",String)],Z9.prototype,"image3SquigglyBackground",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Z9.prototype,"onDataChanged",null);_.a([_.TS("isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Z9.prototype,"onThemeChanged",null);
_.a([_.TS("image0SquigglyBackground"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Z9.prototype,"updateImage0SquigglyBackground",null);_.a([_.TS("image1SquigglyBackground"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Z9.prototype,"updateImage1SquigglyBackground",null);
_.a([_.TS("image3SquigglyBackground"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Z9.prototype,"updateImage3SquigglyBackground",null);_.a([_.A({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],Z9);
_.Z(Z9,"ytd-handles-claiming-title-images-section-renderer",function(){if(yDe!==void 0)return yDe;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return yDe=W},{mode:1});var gTX;var Oy=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.v(Oy,_.I);Oy.prototype.ready=function(){var W=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(W)};
Oy.prototype.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W)};
Oy.prototype.onCopyButtonClick=function(){var W=this,l,V,f;return _.g(function(r){return(l=W.data)!=null&&l.primaryChannelUrl?r.yield(navigator.clipboard.writeText(((V=W.data)==null?0:V.encodedChannelUrl)?W.data.encodedChannelUrl:"https://"+_.dE((f=W.data)==null?void 0:f.primaryChannelUrl)),0):r.jumpTo(0)})};
_.a([_.b(),_.z("design:type",Object)],Oy.prototype,"data",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Oy.prototype,"ytComponentBehavior",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Oy.prototype,"isDarkTheme",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Oy.prototype,"ytActionHandlerBehavior",void 0);_.a([_.A({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Oy);
_.Z(Oy,"ytd-handles-claiming-update-social-renderer",function(){if(gTX!==void 0)return gTX;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return gTX=W},{mode:1});var Po9;var ab=function(){var W=_.I.apply(this,arguments)||this;W.JSC$16047_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";W.JSC$16047_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};W.squigglyBackground=W.JSC$16047_squigglyBackgroundLight;return W};
_.v(ab,_.I);ab.prototype.updateSquigglyBackgroundStyle=function(){_.I1(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
ab.prototype.ready=function(){var W=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",W);this.squigglyBackground=W?this.JSC$16047_squigglyBackgroundDark:this.JSC$16047_squigglyBackgroundLight};
ab.prototype.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.set("isDarkTheme",W),this.squigglyBackground=W?this.JSC$16047_squigglyBackgroundDark:this.JSC$16047_squigglyBackgroundLight)};
ab.prototype.updateSquigglyBackgroundStyle=ab.prototype.updateSquigglyBackgroundStyle;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ab.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],ab.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ab.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],ab.prototype,"isDarkTheme",void 0);_.a([_.b(),_.z("design:type",String)],ab.prototype,"squigglyBackground",void 0);_.a([_.TS("squigglyBackground"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ab.prototype,"updateSquigglyBackgroundStyle",null);_.a([_.A({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],ab);
_.Z(ab,"ytd-handles-claiming-vanity-info-renderer",function(){if(Po9!==void 0)return Po9;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Po9=W},{mode:1});var nTM;var zE=function(){var W=_.I.apply(this,arguments)||this;W.JSC$16050_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";W.JSC$16050_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";W.squigglyBackground=W.JSC$16050_squigglyBackgroundLight;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.v(zE,_.I);_.t=zE.prototype;_.t.ready=function(){var W=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(W)};
_.t.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.set("isDarkTheme",W),this.squigglyBackground=W?this.JSC$16050_squigglyBackgroundDark:this.JSC$16050_squigglyBackgroundLight)};
_.t.updateSquigglyBackgroundStyle=function(){_.I1(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.t.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.t.detached=function(){this.stop()};
_.t.stop=function(){this.playerElement.stop()};
_.t.setupVideoPlayer=function(){var W=this,l,V;return _.g(function(f){l=W.data.videoId;V="http://i1.ytimg.com/vi/"+l+"/maxresdefault.jpg";W.playerElement.loadVideoWithPlayerVars({video_id:l,iurlhq:V});_.ju(f)})};
zE.prototype.onDataChanged=zE.prototype.onDataChanged;zE.prototype.updateSquigglyBackgroundStyle=zE.prototype.updateSquigglyBackgroundStyle;_.a([_.b({value:!1}),_.z("design:type",Boolean)],zE.prototype,"isDarkTheme",void 0);_.a([_.b(),_.z("design:type",String)],zE.prototype,"squigglyBackground",void 0);_.a([_.Aa("#player"),_.z("design:type",Object)],zE.prototype,"playerElement",void 0);_.a([_.b(),_.z("design:type",Object)],zE.prototype,"data",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],zE.prototype,"ytActionHandlerBehavior",void 0);_.a([_.TS("squigglyBackground"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zE.prototype,"updateSquigglyBackgroundStyle",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zE.prototype,"onDataChanged",null);
_.a([_.A({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],zE);
_.Z(zE,"ytd-handles-claiming-video-item-renderer",function(){if(nTM!==void 0)return nTM;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return nTM=W},{mode:1});var CoZ;var YU=function(){var W=_.OD.apply(this,arguments)||this;W.dragging=!1;W.dragMouseStart=0;W.dragOffsetStart=0;W.containerWidthDiff=0;W.boundPrevClick=function(){W.set("offset",Nx(W,W.offset-(W.scrollDistance||320)))};
W.boundNextClick=function(){W.set("offset",Nx(W,W.offset+(W.scrollDistance||320)))};
W.boundScrollContainerMouseDown=function(l){W.dragMouseStart=l.clientX;W.dragOffsetStart=W.offset;W.dragging=!0};
W.boundScrollContainerDrag=function(l){W.dragging&&W.set("offset",Nx(W,W.dragOffsetStart-(l.clientX-W.dragMouseStart)))};
W.boundMouseUp=function(){W.onMouseUp()};
W.boundWheelScroll=function(l){var V=0;Math.abs(l.deltaX)>=Math.abs(l.deltaY)?V=l.deltaX:l.shiftKey&&(V=l.deltaY);V!==0&&(W.offset+=V,l.stopPropagation(),l.preventDefault())};
W.boundChipCloudChipScrollIntoView=function(l){(l=l.detail)&&W.scrollChipIntoView(l)};
return W};
_.v(YU,_.OD);YU.prototype.attached=function(){var W=_.GS(this.hostElement).querySelector("#scroll-container");W.addEventListener("wheel",this.boundWheelScroll);W.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);W.style.touchAction="pan-y";W.addEventListener("pointerdown",this.boundScrollContainerMouseDown);W.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
YU.prototype.detached=function(){var W=_.GS(this.hostElement).querySelector("#scroll-container");W.removeEventListener("wheel",this.boundWheelScroll);W.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);W.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);W.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
YU.prototype.reset=function(){this.set("offset",0);_.V9(this,this.setContainerWidthDiff);xU(this)};
var Nx=function(W,l){return Math.min(Math.max(l,0),W.containerWidthDiff)};
YU.prototype.onMouseUp=function(){this.dragging=!1};
YU.prototype.transformContainer=function(){this.offset=Nx(this,this.offset);var W=_.M4("HTML_DIR")==="rtl"?"":"-";_.GS(this.hostElement).querySelector("#chips").style.transform="translateX("+W+this.offset+"px)";xU(this)};
var xU=function(W){_.V9(W,W.setButtonsState)};
YU.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=Nx(this,this.offset));this.atStart=this.offset<=0};
YU.prototype.setContainerWidthDiff=function(){var W=_.GS(this.hostElement).querySelector("#scroll-container"),l=_.GS(this.hostElement).querySelector("#chips");W&&l&&(this.containerWidthDiff=l.clientWidth-W.clientWidth)};
YU.prototype.scrollChipIntoView=function(W){var l=_.GS(this.hostElement).querySelector("#scroll-container");if(l){var V=this.atStart?0:106,f=this.atEnd?0:106;W.offsetLeft<this.offset+V?this.offset=Nx(this,W.offsetLeft-V):W.offsetLeft+W.clientWidth>this.offset+l.clientWidth-f&&(this.offset=Nx(this,W.offsetLeft+W.clientWidth+f-l.clientWidth))}};
YU.prototype.transformContainer=YU.prototype.transformContainer;_.a([_.b({value:0}),_.z("design:type",Number)],YU.prototype,"offset",void 0);_.a([_.b({value:!0,reflectToAttribute:!0}),_.z("design:type",Boolean)],YU.prototype,"atStart",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],YU.prototype,"atEnd",void 0);_.a([_.b(),_.z("design:type",Number)],YU.prototype,"scrollDistance",void 0);
_.a([_.TS("offset"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YU.prototype,"transformContainer",null);_.a([_.a1()],YU);var cDM;var BqL;var DhB=_.Q(function(W){var l=W.data;W=_.L(_.J4(!1,void 0,"icHmSe"));var V=W.next().value,f=W.next().value;W={};W=_.If("ytChipShapeChip",function(){a:switch(l==null?void 0:l().state){case 0:var R="ytChipShapeActive";break a;case 1:R="ytChipShapeDisabled";break a;default:R="ytChipShapeInactive"}return R},function(){var R=l().type===1||l().type===2,y=l();
return R||y!=null&&y.startIcon?y==null||!y.startIcon||y!=null&&y.text?R?"ytChipShapeEndIconPadding":(y==null?0:y.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(W.ytChipShapeFocused=function(){var R;
return V()&&((R=l())==null?void 0:R.state)!==1},W));
var r=function(R){if((l==null?void 0:l().state)!==1){var y,P;(P=(y=l()).onTap)==null||P.call(y,R)}};
return _.C("chip-shape",{class:"ytChipShapeHost","on:focusin":_.ip(function(){var R=_.tY().resolve(_.R0(_.Q5));if(R){f(R.isKeyBoardInUse());var y,P;(P=(y=l()).onFocusIn)==null||P.call(y)}return!1}),
"on:focusout":_.ip(function(){f(!1);return!1})},_.C(dhk,{shouldWrapInButton:function(){return l().type!==2},
selected:function(){return l().state===0},
onClick:r,isDropdown:function(){return l().type===1},
accessibilityLabel:function(){return l().type===1?void 0:l().accessibilityLabel}},_.C("div",{class:W},_.C(_.c,{cond:function(){return l().startIcon},
then:function(){return _.C(_.wN,{icon:function(){var R;return(R=l())==null?void 0:R.startIcon},
className:function(){return l().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return l().text},_.C(JDL,{shape:l,
onClick:r}),_.C(_.ZS,{model:{borderRadius:"8px"}}))))},"Rb");
DhB.idomCompat=!0;var dhk=_.Q(function(W){var l=_.ip(function(V){W.onClick(V);return!1});
return _.C(_.c,{cond:W.shouldWrapInButton,then:function(){return _.C("button",{class:"ytChipShapeButtonReset","on:click":l,role:function(){return W.isDropdown()?"combobox":"tab"},
"aria-label":W.accessibilityLabel,"aria-selected":W.selected},W.children)},
else:function(){return W.children}})},"Sb"),JDL=_.Q(function(W){var l=W.shape;
var V=W.onClick;var f=_.ip(function(r){V(r);return!1});
return _.C(_.oh,null,_.C(_.bz,{when:function(){return l().type===1}},function(){return _.C(_.wN,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.C(_.bz,{when:function(){return l().type===2}},function(){return _.C("button",{class:"ytChipShapeButtonReset",
"on:click":f},_.C(_.wN,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.C(_.bz,{when:function(){return l().type===0}},function(){return _.C(_.Lp,null)}))},"Tb");_.HI(DhB,"chip-shape",{props:{data:_.pA}});var ec=function(){var W=_.I.apply(this,arguments)||this;W.disableDeselectEvent=!1;W.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return W};
_.v(ec,_.I);_.t=ec.prototype;_.t.onSelectChipCommand=function(W){if(!this.selected&&this.data&&(W=_.k(W,Nwv),W.targetId&&W.targetId===this.data.targetId))this.onTap()};
_.t.onFilterChipTransformCommand=function(W){if(!this.selected&&this.data){var l;(W=(l=_.k(W,ASB))==null?void 0:l.chipUniqueId)&&W===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.t.dataChanged=function(){var W=this;_.V9(this,function(){W.data&&W.data.isSelected&&!W.selected&&(W.scrollChipIntoView(),W.onTap())})};
_.t.computeChipStyle=function(W){return W!=null?W:"STYLE_DEFAULT"};
_.t.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.Gt(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.Gt(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.t.onFocus=function(){var W=_.tY().resolve(_.R0(_.Q5));W&&W.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.t.scrollChipIntoView=function(){_.FN(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.rc.Object.defineProperties(ec.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return mwS({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
ec.prototype.onFocus=ec.prototype.onFocus;ec.prototype.onTap=ec.prototype.onTap;ec.prototype.dataChanged=ec.prototype.dataChanged;_.a([_.F(_.eq),_.z("design:type",Object)],ec.prototype,"ironButtonState",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],ec.prototype,"ytActionHandlerBehavior",void 0);
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],ec.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.NN),_.z("design:type",Object)],ec.prototype,"ironA11yKeysBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ec.prototype,"disableDeselectEvent",void 0);_.a([_.b(),_.z("design:type",Object)],ec.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("data.icon"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ec.prototype,"hasIcon",null);
_.a([_.b({reflectToAttribute:!0}),_.G("data.uniqueId"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ec.prototype,"isGnomeChip",null);_.a([_.b({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.z("design:type",String)],ec.prototype,"chipStyle",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],ec.prototype,"selected",void 0);
_.a([_.G("data","selected"),_.z("design:type",Object),_.z("design:paramtypes",[])],ec.prototype,"chipShapeData",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ec.prototype,"dataChanged",null);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ec.prototype,"onTap",null);
_.a([_.XI("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ec.prototype,"onFocus",null);_.a([_.Vq({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],ec);
_.Z(ec,"yt-chip-cloud-chip-renderer",function(){if(BqL===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;cDM===void 0&&(cDM=document.createElement("template"));var f=cDM;V.call(l,f.content.cloneNode(!0),W.content.firstChild);BqL=W}W=BqL;return W},{mode:2});var qx=function(){var W=_.I.apply(this,arguments)||this;W.isDarkTheme=!1;W.notSticky=!1;W.transparentBackground=!1;W.shouldHide=!1;W.disableSticky=!1;W.fluidWidth=!1;W.isClipList=!1;W.defaultChipIndex=0;W.isPlaylist=!1;W.playlistVotingAnimationEnabled=_.U("web_enable_voting_animation");W.toolbarHeight=0;W.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return W};
_.v(qx,_.I);_.t=qx.prototype;
_.t.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}}}}}};
_.t.attached=function(){var W=this;document.addEventListener("scroll",_.mz(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var l;this.toolbarHeight=((l=document.querySelector("ytd-masthead"))==null?void 0:l.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(V){W.handleIntersect(V)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){W.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.t.detached=function(){var W;(W=this.intersectionObserver)==null||W.disconnect();var l;(l=this.resizeObserver)==null||l.disconnect();document.removeEventListener("scroll",_.mz(this,this.updateChipBarWidthAndTop))};
_.t.dataChanged=function(){var W=this,l,V,f;((f=_.k((l=this.data)==null?void 0:(V=l.contents)==null?void 0:V[0],ZE$))==null?void 0:f.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var r=this.findSelectedChipIndex();this.selectedIndex!==r&&(this.selectedIndex=-1);_.V9(this,function(){W.selectedIndex=r;W.updating=!1;W.ytScrollableChipCloudBehavior.reset()})};
_.t.findSelectedChipIndex=function(){var W;if((W=this.data)==null||!W.contents)return 0;W=this.data.contents;for(var l=0;l<W.length;l++){var V=void 0;if((V=_.k(W[l],ZE$))==null?0:V.isSelected)return l}return 0};
_.t.computeStyle=function(W){return W};
_.t.handleChipCloudChipSelectAction=function(W){W=this.JSC$16071_chipsSelector.indexOf(W);W>-1&&this.JSC$16071_chipsSelector.selectIndex(W)};
_.t.handleChipCloudChipDeselectAction=function(){if(_.U("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var W,l,V,f=(V=_.k((W=this.data)==null?void 0:(l=W.contents)==null?void 0:l[0],ZE$))==null?void 0:V.navigationEndpoint;f&&_.Gt(this.hostElement,"yt-browse-section-list-reload-endpoint",[f]);this.JSC$16071_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.t.onGuideIsExpandedChanged=function(){var W=this.ytScrollableChipCloudBehavior;_.V9(W,W.setContainerWidthDiff);xU(this.ytScrollableChipCloudBehavior)};
_.t.onResize=function(){var W=this.ytScrollableChipCloudBehavior;_.V9(W,W.setContainerWidthDiff);xU(this.ytScrollableChipCloudBehavior)};
_.t.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.t.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.t.handleIntersect=function(W){this.notSticky=this.isChannelPageGrid||this.disableSticky||W[0].intersectionRatio===1};
_.t.updateDimensions=function(){var W=this.ytRendererBehavior.parentComponent;if(W){var l,V=(l=W.headerElement)!=null?l:W;_.I1(this.hostElement,{"--ytd-rich-grid-chips-bar-width":V.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.t.updateSelectedIndexFromBinding=function(W){this.selectedIndex=W.detail.value};
_.t.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var W;(W=this.sortFilterHeaderRendererElement)==null||W.setAttribute("is-playlist-page-with-filters","")}};
_.t.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(GOa(!this.notSticky))};
_.rc.Object.defineProperties(qx.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 W,l,V=(W=this.data)==null?void 0:(l=W.contents)==null?void 0:l.find(function(f){return _.k(f,Ybc)});
return{sortFilterHeaderRenderer:_.k(V,Ybc)}}}});
qx.prototype.dispatchChipBarIsSticky=qx.prototype.dispatchChipBarIsSticky;qx.prototype.isPlaylistPageChanged=qx.prototype.isPlaylistPageChanged;qx.prototype.updateChipBarWidthAndTop=qx.prototype.updateChipBarWidthAndTop;qx.prototype.onResize=qx.prototype.onResize;qx.prototype.onGuideIsExpandedChanged=qx.prototype.onGuideIsExpandedChanged;qx.prototype.dataChanged=qx.prototype.dataChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],qx.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],qx.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.Wo),_.z("design:type",Object)],qx.prototype,"ironResizableBehavior",void 0);_.a([_.F(),_.z("design:type",YU)],qx.prototype,"ytScrollableChipCloudBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],qx.prototype,"ytdReduxBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],qx.prototype,"data",void 0);_.a([_.b({value:0}),_.z("design:type",Number)],qx.prototype,"selectedIndex",void 0);_.a([_.b({value:320}),_.z("design:type",Number)],qx.prototype,"scrollDistance",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qx.prototype,"isDarkTheme",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qx.prototype,"notSticky",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qx.prototype,"transparentBackground",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.z("design:type",String)],qx.prototype,"componentStyle",void 0);_.a([_.b({selector:_.i6n}),_.z("design:type",Boolean)],qx.prototype,"guideIsExpanded",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qx.prototype,"shouldHide",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qx.prototype,"disableSticky",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qx.prototype,"fluidWidth",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qx.prototype,"isClipList",void 0);_.a([_.b(),_.z("design:type",Object)],qx.prototype,"defaultChipIndex",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qx.prototype,"isPlaylist",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],qx.prototype,"playlistVotingAnimationEnabled",void 0);_.a([_.Aa("#chips"),_.z("design:type",Object)],qx.prototype,"JSC$16071_chipsSelector",void 0);_.a([_.Aa("ytd-sort-filter-header-renderer"),_.z("design:type",HTMLElement)],qx.prototype,"sortFilterHeaderRendererElement",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],qx.prototype,"updating",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qx.prototype,"dataChanged",null);_.a([_.TS("guideIsExpanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qx.prototype,"onGuideIsExpandedChanged",null);_.a([_.XI("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qx.prototype,"onResize",null);
_.a([_.zS("isChannelPageGrid","disableSticky","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qx.prototype,"updateChipBarWidthAndTop",null);_.a([_.G("componentStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qx.prototype,"isChannelPageGrid",null);_.a([_.G("componentStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qx.prototype,"isHashtagLandingPage",null);
_.a([_.TS("isPlaylistPage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qx.prototype,"isPlaylistPageChanged",null);_.a([_.G("componentStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qx.prototype,"isPlaylistPage",null);_.a([_.G("componentStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qx.prototype,"isDisableDeselectEvent",null);
_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],qx.prototype,"sortFilterHeaderRendererData",null);_.a([_.b({reflectToAttribute:!0,selector:_.M7q}),_.z("design:type",String)],qx.prototype,"frostedGlassMode",void 0);_.a([_.TS("notSticky"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qx.prototype,"dispatchChipBarIsSticky",null);_.a([_.A({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],qx);
_.Z(qx,"ytd-feed-filter-chip-bar-renderer",function(){if(CoZ!==void 0)return CoZ;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return CoZ=W},{mode:1});var Uhv;var uDB=_.Q(function(W){var l=W.data;var V=W.buttonIndex;var f=W.selectedIndex;var r=W.onSelect;var R=function(){return V()===f()},y=function(){var P,n;
return(n=(P=l().text)==null?void 0:P.content)!=null?n:""};
W=_.Iez();return _.C("yt-toggleable-image-button-view-model",{class:function(){var P={};P=(P.toggleableImageButtonViewModelHost=!0,P[""]=!0,P.toggleableImageButtonViewModelSemiTransparent=f()!==-1&&!R(),P);return _.Yw(P)},
tabindex:0,"aria-label":y,"aria-pressed":R,role:"button","on:keydown":W,"on:click":_.ip(function(){r(l().onSubmitCommand);return!1})},_.C(_.c,{cond:function(){return l().logo},
then:function(P){return _.C(_.dN,{data:P,className:function(){var n={};n=(n.toggleableImageButtonViewModelImage=!0,n.toggleableImageButtonViewModelCircularRadius=!(!l().backgroundColor||!l().backgroundColorDarkMode),n.toggleableImageButtonViewModelGradientRing=!!(R()&&l().backgroundColor&&l().backgroundColorDarkMode),n);return _.Yw(n)},
alt:y,useWidth:!1,style:function(){if(R()&&l().backgroundColor&&l().backgroundColorDarkMode){var n=LG(Number(l().backgroundColorDarkMode),"1");var B=LG(Number(l().backgroundColor),"1");n="background: linear-gradient(180deg,"+n+","+B+") border-box;"}else n="";return n}})}}),_.C(_.ZS,{model:{borderRadius:"16px"}}),_.C("p",{class:function(){var P={};
P=(P.toggleableImageButtonViewModelLabel=!0,P.toggleableImageButtonViewModelBoldText=R(),P);return _.Yw(P)}},_.C(_.bH,{text:function(){return l().text}})))},"Ub");
uDB.idomCompat=!0;var vTk=_.Q(function(W){var l=W.data;W=_.L(_.J4({index:-1,command:{}},void 0,"GM3umb"));var V=W.next().value,f=W.next().value;return _.C("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.C("div",{class:"nudgeFormViewModelFormOptions"},_.C(_.QH,{data:function(){return l().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(r,R){return _.C(uDB,{data:r.data,buttonIndex:R,selectedIndex:function(){return V().index},
onSelect:function(y){f({index:R(),command:y})}})}})),_.C(_.bH,{text:function(){return l().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.C("div",{class:"nudgeFormViewModelSubmit"},_.C(_.QH,{data:function(){return l().submitButton}},{buttonViewModel:function(r){return _.C(k9Z,{data:r.data,
isDisabled:function(){return V().index===-1},
onClick:function(){_.sZ(V().command)}})}})))},"Vb");
vTk.idomCompat=!0;var k9Z=_.Q(function(W){var l=_.v4(function(){return Object.assign({},W.data(),{state:W.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.C(_.Nq,{data:l,onClick:W.onClick})},"Wb");_.HI(vTk,"yt-nudge-form-view-model",{props:{data:_.pA}});var hh=function(){var W=_.I.apply(this,arguments)||this;W.roundedContainer=!0;W.buttonUpdate=_.U("web_modern_buttons");W.isDarkMode=!1;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return W};
_.v(hh,_.I);_.t=hh.prototype;_.t.computeNudgeStyle=function(W){return W?"modernized-nudge":""};
_.t.handleDarkModeToggledAction=function(W){this.isDarkMode=W};
_.t.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.t.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"}}}};
_.t.computeIsHorizontalButtons=function(W){return W?!!W.applyModernizedStyle&&!!W.enableHorizontalButtons&&!!W.secondaryButton:!1};
_.rc.Object.defineProperties(hh.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var W,l;return(l=(W=this.data)==null?void 0:W.backgroundStyle)!=null?l:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var W,l;return(l=(W=this.data)==null?void 0:W.contentsLocation)!=null?l:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null?0:W.lightIconImage)}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],hh.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],hh.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],hh.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],hh.prototype,"actionHandlerBehavior",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("isHideEnclosingAction"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hh.prototype,"isHidden",null);_.a([_.b(),_.z("design:type",Object)],hh.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hh.prototype,"roundedContainer",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hh.prototype,"buttonUpdate",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.z("design:type",String)],hh.prototype,"nudgeStyle",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("data.trimStyle"),_.z("design:type",String),_.z("design:paramtypes",[])],hh.prototype,"trimStyle",null);_.a([_.b({reflectToAttribute:!0}),_.G("data.backgroundStyle"),_.z("design:type",String),_.z("design:paramtypes",[])],hh.prototype,"backgroundStyle",null);
_.a([_.b({reflectToAttribute:!0}),_.G("data.contentsLocation"),_.z("design:type",String),_.z("design:paramtypes",[])],hh.prototype,"contentsLocation",null);_.a([_.b({reflectToAttribute:!0}),_.G("data.disableDropShadow"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hh.prototype,"noShadow",null);_.a([_.b({reflectToAttribute:!0}),_.G("data.lightIconImage"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],hh.prototype,"noIcon",null);
_.a([_.b({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.z("design:type",Boolean)],hh.prototype,"isHorizontalButtons",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Object)],hh.prototype,"isDarkMode",void 0);_.a([_.A({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],hh);
_.Z(hh,"ytd-feed-nudge-renderer",function(){if(Uhv!==void 0)return Uhv;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Uhv=W},{mode:_.bD("kevlar_poly_si_batch_j028")?1:2});var H$9;var KqL;var Sc=function(){var W=_.I.apply(this,arguments)||this;W.collapsed=!1;W.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return W};
_.v(Sc,_.I);Sc.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"}}}};
Sc.prototype.handleRatingSelect=function(){var W;((W=this.data)==null?0:W.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
Sc.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Sc.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Sc.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Sc.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Sc.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.DX),_.z("design:type",Object)],Sc.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Sc.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Sc.prototype,"collapsed",void 0);_.a([_.A({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],Sc);
_.Z(Sc,"ytd-slimline-survey-renderer",function(){if(KqL!==void 0)return KqL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return KqL=W},{mode:1});var FqI;var Ey=function(){return _.I.apply(this,arguments)||this};
_.v(Ey,_.I);Ey.prototype.maybeGetBackgroundColor=function(W){return this.isDarkMode?W.section2Color:W.section3Color};
Ey.prototype.colorPaletteChanged=function(){var W=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;W&&(W==null?0:W.secondaryTitleColor)&&this.maybeGetBackgroundColor(W)?(this.hostElement.style.backgroundColor=_.ta(this.maybeGetBackgroundColor(W)),this.hostElement.style.color=_.ta(W.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Ey.prototype.colorPaletteChanged=Ey.prototype.colorPaletteChanged;_.a([_.F(_.dx),_.z("design:type",Object)],Ey.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Ey.prototype,"data",void 0);_.a([_.b({selector:function(W){return W.ui.darkModeIsEnabled}}),
_.z("design:type",Boolean)],Ey.prototype,"isDarkMode",void 0);_.a([_.b(),_.z("design:type",Object)],Ey.prototype,"lightColorPalette",void 0);_.a([_.b(),_.z("design:type",Object)],Ey.prototype,"darkColorPalette",void 0);_.a([_.TS("darkColorPalette","lightColorPalette","data","isDarkMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ey.prototype,"colorPaletteChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Ey);
_.Z(Ey,"ytd-endorsement-header-renderer",function(){if(FqI!==void 0)return FqI;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return FqI=W},{mode:1});_.HI(_.Px,"yt-decorated-avatar-view-model",{props:{data:_.pA,className:_.pA}});_.$U=new _.vd("VIEW_TRANSITION_MANAGER_TOKEN");var W9=function(){var W=_.I.apply(this,arguments)||this;W.fullHeight=_.U("web_rich_grid_media_full_height");W.showChannelAvatar=!0;W.hasPlaylistThumbnail=!1;W.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};W.registerThumbnailForPageTransition=function(){_.U("web_thumbnail_to_watch_transition")&&_.G9M(_.tY().resolve(_.$U),W.thumbnail)};
return W};
_.v(W9,_.I);_.t=W9.prototype;
_.t.configureRendererStamper=function(){return{lazyLoadMenu:hq,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"}}}};
_.t.attached=function(){this.updateInlinePreviewHoverListeners()};
_.t.detached=function(){this.clearInlinePreviewHoverListeners()};
_.t.shouldLazyLoadMenu=function(){var W=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.U("kevlar_modern_downloads_page")||!W};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16096_inlinePreviewHoverListener=Wf({mediaRenderer:this,lockupElement:this.JSC$16096_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.t.getVideoPreviewOpts=function(){var W={},l;if((l=this.data)==null?0:l.multipleInlinePlaybackEndpoint)W=Bfc;this.isRadio&&(W=ctk);return W};
_.t.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$16096_inlinePreviewHoverListener)==null||gl(W)};
_.t.getOwner=function(){var W,l,V;return((W=this.data)==null?void 0:(l=W.channelThumbnailSupportedRenderers)==null?void 0:l.channelThumbnailWithLinkRenderer)||_.k((V=this.data)==null?void 0:V.showProviderChannelThumbnail,qfk)};
_.t.updateLockupSize=function(){var W;((W=this.getOwner())==null?0:W.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.t.getFeedbackEndpoint=function(W){if(_.k(W,_.NP))return W;var l,V;W=(V=(l=_.k(W,_.Ig))==null?void 0:l.commands)!=null?V:[];l=_.L(W);for(V=l.next();!V.done;V=l.next())if(V=this.getFeedbackEndpoint(V.value))return V;return null};
_.t.computeNavigationEndpoint=function(W){return Qz4(W==null?void 0:W.navigationEndpoint)};
_.t.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var W=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(W)!==JSON.stringify(this.data)&&this.set("data",W)}};
_.t.onDataChanged=function(){var W=this,l=this.getOwner();if(l){this.set("data.owner",l);var V,f,r,R,y,P=((V=this.data)==null?void 0:(f=V.shortBylineText)==null?void 0:(r=f.runs)==null?void 0:(R=r[0])==null?void 0:R.text)||((y=l.name)==null?void 0:y.simpleText);this.set("data.owner.title",P)}var n,B,d,J,D,u;l=((n=this.data)==null?void 0:(B=n.thumbnailRenderer)==null?void 0:B.playlistVideoThumbnailRenderer)||((d=this.data)==null?void 0:(J=d.thumbnailRenderer)==null?void 0:J.playlistCustomThumbnailRenderer)||
((D=this.data)==null?void 0:(u=D.thumbnailRenderer)==null?void 0:u.showCustomThumbnailRenderer);var H;((H=this.data)==null?0:H.thumbnail)||!l||this.set("data.thumbnail",l.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){W.updateLockupSize()});
var p;if(n=((p=this.data)==null?void 0:p.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(n);var X;((X=this.dismissActionToReplayEntity)==null?0:X.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.t.onHiddenChanged=function(){this.updateLockupSize()};
_.t.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.Gt(this.hostElement,"yt-terminate-video-preview-action");else{var W;(W=this.videoTitleLink)==null||W.focus()}};
_.t.metadataColorChanged=function(){var W;if(this.metadataColor&&((W=this.videoTitle)==null?0:W.style))this.videoTitle.style.color=_.ta(this.metadataColor);else{var l,V;!this.metadataColor&&((l=this.videoTitle)==null?0:(V=l.style)==null?0:V.color)&&(this.videoTitle.style.color="")}};
_.t.onDetailsClick=function(W){var l=this.computedNavigationEndpoint;l&&(_.Cv(_.d_(W),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.FN(this.hostElement,"yt-navigate",{endpoint:l}))};
_.t.onRendererTap=function(){this.registerThumbnailForPageTransition();var W,l,V=((W=this.data)==null?void 0:W.serviceEndpoint)||this.getFeedbackEndpoint((l=this.data)==null?void 0:l.navigationEndpoint);V&&_.k(V,_.NP)&&this.ytComponentBehavior.resolveCommand(V)};
_.t.onMouseDown=function(W){var l=W.target,V=this.computedNavigationEndpoint,f;W=l.href||((f=_.k(V==null?void 0:V.commandMetadata,_.XN))==null?void 0:f.url);f=l.data||V;W&&f&&urU(W,f)};
_.t.computeVideoTitleText=function(){var W;if((W=this.data)==null?0:W.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.t.computeHasPlaylistThumbnail=function(W){var l,V,f,r,R;if((((l=W.thumbnailRenderer)==null?0:l.playlistVideoThumbnailRenderer)||((V=W.thumbnailRenderer)==null?0:V.playlistCustomThumbnailRenderer)||((f=W.thumbnailRenderer)==null?0:f.showCustomThumbnailRenderer)||((r=W.thumbnailRenderer)==null?0:r.playlistVideoThumbnailRenderer)||((R=W.thumbnailRenderer)==null?0:R.playlistCustomThumbnailRenderer))&&W.thumbnailOverlays)for(l=0;l<W.thumbnailOverlays.length;l++)if(V=void 0,(V=W.thumbnailOverlays[l])==
null?0:V.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.rc.Object.defineProperties(W9.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.U("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var W;return(W=this.data)==null?void 0:W.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var W;return(W=this.data)==null?void 0:W.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$16096_inlinePreviewHoverListener)==null?0:Bx(W))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Q1(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.data)==null?void 0:W.videoId)||((l=this.data)==null?void 0:l.playlistId)||""}}});
W9.prototype.onMouseDown=W9.prototype.onMouseDown;W9.prototype.metadataColorChanged=W9.prototype.metadataColorChanged;W9.prototype.onIsDismissedChanged=W9.prototype.onIsDismissedChanged;W9.prototype.onHiddenChanged=W9.prototype.onHiddenChanged;W9.prototype.onDataChanged=W9.prototype.onDataChanged;W9.prototype.handleReloadDownloadsInfo=W9.prototype.handleReloadDownloadsInfo;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],W9.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],W9.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],W9.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],W9.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.F(_.FK),_.z("design:type",Object)],W9.prototype,"ytdLockupBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],W9.prototype,"ytdReduxBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],W9.prototype,"data",void 0);_.a([_.b(),_.z("design:type",String)],W9.prototype,"entitySelectorType",void 0);_.a([_.b(),_.z("design:type",Boolean)],W9.prototype,"noEndpoints",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],W9.prototype,"isRadio",void 0);_.a([_.b({reflectToAttribute:!0,selector:_.$H}),_.z("design:type",Boolean)],W9.prototype,"miniMode",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],W9.prototype,"fullHeight",void 0);
_.a([_.b(),_.z("design:type",Boolean)],W9.prototype,"showDarkVideoMetadata",void 0);_.a([_.b(),_.z("design:type",Boolean)],W9.prototype,"showLightVideoMetadata",void 0);_.a([_.b(),_.z("design:type",Number)],W9.prototype,"metadataColor",void 0);_.a([_.b(),_.z("design:type",Object)],W9.prototype,"showChannelAvatar",void 0);_.a([_.b(),_.z("design:type",Boolean)],W9.prototype,"hidden",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],W9.prototype,"showYtInteraction",void 0);
_.a([_.b(),_.z("design:type",String)],W9.prototype,"dismissedContentId",void 0);_.a([_.b({selectorArgs:["dismissedContentId"],selector:mmv}),_.z("design:type",Object)],W9.prototype,"dismissActionToReplayEntity",void 0);
_.a([_.b({selectorArgs:["entitySelectorType","mediaId"],selector:function(W,l,V){if(_.U("kevlar_modern_downloads_page")&&V&&l&&l!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(l){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var f=zmS(W,V);if(f){l=_.rE(W,V);var r=t5(W,V),R=VXz(W,V);W=sm(W,V);var y=yPU(f,l,r,R);r=y.shortViewCountText;var P=y.publishedTimeText;y=y.badges;var n=W>0;R=s8S(f,l,R,W);f=_.as(l)||l==="TRANSFER_STATE_FAILED"||l==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!OK(f.policyEntity)?
void 0:woS(V,W,f.videoEntity.lengthSeconds);l==="TRANSFER_STATE_PAUSED_BY_USER"&&V&&!_.U("dl_resume_click_killswitch")&&(f={offlineVideoEndpoint:{videoId:V,action:"ACTION_RESUME"}});V={shortViewCountText:r,publishedTimeText:P,badges:y,isWatched:n,navigationEndpoint:f,thumbnailOverlays:R}}else V=void 0;return V;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(l=NZx(W,V))if(f=_.RD(W,V),R=_.Y7g(W,V),f!=="TRANSFER_STATE_UNKNOWN"){V=LT6(l,f,R,V,_.fa(W));break a}V=void 0}return V;default:_.Qe(new _.bP("Error: entitySelectorType defined but not matched in selector.",
W,l))}}}),
_.z("design:type",Object)],W9.prototype,"entityDrivenState",void 0);_.a([_.b({computed:"computeVideoTitleText(data)"}),_.z("design:type",Object)],W9.prototype,"videoTitleText",void 0);_.a([_.b({computed:"computeHasPlaylistThumbnail(data)"}),_.z("design:type",Object)],W9.prototype,"hasPlaylistThumbnail",void 0);_.a([_.b({computed:"computeNavigationEndpoint(data)"}),_.z("design:type",Object)],W9.prototype,"computedNavigationEndpoint",void 0);
_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],W9.prototype,"typographyBump",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("typographyBump"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],W9.prototype,"typographyBumpV2",null);_.a([_.Aa("#video-title"),_.z("design:type",HTMLElement)],W9.prototype,"videoTitle",void 0);_.a([_.Aa("#video-title-link"),_.z("design:type",HTMLElement)],W9.prototype,"videoTitleLink",void 0);
_.a([_.Aa("#thumbnail"),_.z("design:type",HTMLElement)],W9.prototype,"thumbnail",void 0);_.a([_.Aa("#dismissible"),_.z("design:type",HTMLElement)],W9.prototype,"JSC$16096_dismissibleMedia",void 0);_.a([_.G("data.menu"),_.z("design:type",Object),_.z("design:paramtypes",[])],W9.prototype,"lazyLoadMenu",null);_.a([_.G("data.menu"),_.z("design:type",Object),_.z("design:paramtypes",[])],W9.prototype,"immediateLoadMenu",null);
_.a([_.zS("entityDrivenState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],W9.prototype,"handleReloadDownloadsInfo",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],W9.prototype,"onDataChanged",null);_.a([_.zS("hidden"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],W9.prototype,"onHiddenChanged",null);
_.a([_.TS("isDismissed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],W9.prototype,"onIsDismissedChanged",null);_.a([_.TS("metadataColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],W9.prototype,"metadataColorChanged",null);_.a([_.XI("mousedown"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],W9.prototype,"onMouseDown",null);
_.a([_.G("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],W9.prototype,"isHovered",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],W9.prototype,"useAvatar",null);_.a([_.G("data","entitySelectorType"),_.z("design:type",String),_.z("design:paramtypes",[])],W9.prototype,"mediaId",null);_.a([_.A({is:"ytd-rich-grid-media",disableElementRegistration:!0})],W9);
var b$X=_.GG()(W9,"ytd-rich-grid-media",function(){if(H$9!==void 0)return H$9;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return H$9=W},{mode:_.bD("kevlar_poly_si_batch_j072")?1:2});var p_L;var l1=function(){var W=_.I.apply(this,arguments)||this;W.removeMaxWidth=!0;W.insetMetadata=!1;return W};
_.v(l1,_.I);_.t=l1.prototype;_.t.configureRendererStamper=function(){return{innerMenu:hq,outerMenu:Object.assign({},hq,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.t.onDataChanged=function(){var W,l=((W=this.data)==null?void 0:W.trackingParams)||"";l&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(l));var V;((V=this.dismissActionToReplayEntity)==null?0:V.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.t.attached=function(){this.updateInlinePreviewHoverListeners()};
_.t.detached=function(){this.clearInlinePreviewHoverListeners()};
_.t.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16101_inlinePreviewHoverListener=Wf({mediaRenderer:this,lockupElement:this.JSC$16101_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:dwe})};
_.t.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$16101_inlinePreviewHoverListener)==null||gl(W)};
_.t.onRendererTap=function(){var W,l,V=(W=this.data)==null?void 0:(l=W.serviceEndpoints)==null?void 0:l[0];_.k(V,_.NP)&&this.componentBehavior.resolveCommand(V)};
_.t.onDetailsClick=function(W){var l,V=(l=this.data)==null?void 0:l.navigationEndpoint;V&&(_.Cv(_.d_(W),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(V))};
_.t.onShow=function(){var W=this.data;W.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(W.onFirstVisibleCommand),delete W.onFirstVisibleCommand)};
_.rc.Object.defineProperties(l1.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var W;return this.insetMetadata?void 0:(W=this.data)==null?void 0:W.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var W;return this.insetMetadata?(W=this.data)==null?void 0:W.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var W=this.data;if(W!=null&&W.badge&&(W=_.k(W.badge,ml1))){var l,V,f;return[{metadataBadgeRenderer:{label:((l=W.label)==null?void 0:(V=l.runs)==null?void 0:V[0].text)||((f=W.label)==null?void 0:f.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var W=this.data;return Object.assign({},W.headline,{accessibility:W.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return this.isSlimShort?(W=this.computedTitle)==null?void 0:(l=W.accessibility)==null?void 0:(V=l.accessibilityData)==null?void 0:V.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.U("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$16101_inlinePreviewHoverListener)==null?0:Bx(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
l1.prototype.onDataChanged=l1.prototype.onDataChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],l1.prototype,"componentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.FK),_.z("design:type",Object)],l1.prototype,"ytdLockupBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],l1.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.DX),_.z("design:type",Object)],l1.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],l1.prototype,"ytdReduxBehavior",void 0);_.a([_.Aa("ytd-thumbnail"),_.z("design:type",HTMLElement)],l1.prototype,"thumbnail",void 0);_.a([_.Aa("#dismissible"),_.z("design:type",HTMLElement)],l1.prototype,"JSC$16101_dismissibleMedia",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],l1.prototype,"removeMaxWidth",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],l1.prototype,"insetMetadata",void 0);_.a([_.b(),_.z("design:type",String)],l1.prototype,"dismissedContentId",void 0);_.a([_.b({selectorArgs:["dismissedContentId"],selector:mmv}),_.z("design:type",Object)],l1.prototype,"dismissActionToReplayEntity",void 0);_.a([_.G("insetMetadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],l1.prototype,"thumbnailObjectFit",null);
_.a([_.G("data","insetMetadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],l1.prototype,"innerMenu",null);_.a([_.G("data","insetMetadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],l1.prototype,"outerMenu",null);_.a([_.b(),_.z("design:type",Object)],l1.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,selector:_.$H}),_.z("design:type",Boolean)],l1.prototype,"miniMode",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],l1.prototype,"onDataChanged",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],l1.prototype,"shortsBadges",null);_.a([_.G("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],l1.prototype,"isShort",null);
_.a([_.G("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],l1.prototype,"isSlimShort",null);_.a([_.G("data","isShort"),_.z("design:type",Object),_.z("design:paramtypes",[])],l1.prototype,"computedTitle",null);_.a([_.G("isSlimShort","computedTitle"),_.z("design:type",Object),_.z("design:paramtypes",[])],l1.prototype,"computedAccessibilityLabel",null);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],l1.prototype,"shouldForce2By3",null);_.a([_.G("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],l1.prototype,"isHovered",null);_.a([_.A({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],l1);
_.Z(l1,"ytd-rich-grid-slim-media",function(){if(p_L!==void 0)return p_L;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return p_L=W},{mode:_.bD("kevlar_poly_si_batch_j063")?1:2});var oTv;var jOZ;var V$=function(){var W=_.I.apply(this,arguments)||this;W.darkerDarkTheme=_.U("web_darker_dark_theme");return W};
_.v(V$,_.I);V$.prototype.computeIcon=function(W){return W&&W.iconType?"yt-sys-icons:"+W.iconType.toLowerCase():""};
V$.prototype.onMouseEnter=function(){this.isHovered=!0};
V$.prototype.onMouseLeave=function(){this.isHovered=!1};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],V$.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],V$.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],V$.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],V$.prototype,"data",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],V$.prototype,"isHovered",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],V$.prototype,"darkerDarkTheme",void 0);_.a([_.A({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],V$);
_.Z(V$,"ytd-expand-on-hover-card-renderer",function(){if(jOZ!==void 0)return jOZ;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return jOZ=W},{mode:1});var It1,i$k=function(){if(It1!==void 0)return It1;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return It1=W};_.e1("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var f1=function(){var W=_.I.apply(this,arguments)||this;W.compactStyle=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.v(f1,_.I);_.t=f1.prototype;_.t.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.t.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"}}}};
_.t.computeHideDot=function(W){return!(W&&W.subscriberCountText&&W.videoCountText)||this.compactStyle};
_.t.hasDualButtons=function(W){return W&&W.purchaseButton&&W.subscribeButton};
_.t.backgroundColorChanged=function(){if(this.data!==void 0){var W=this.data.backgroundColor;this.isDarkTheme&&(W=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=W!=null?_.ta(W):"transparent"}};
_.t.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.t.onTap=function(W){var l,V,f=((l=this.data)==null?void 0:l.navigationEndpoint)||((V=this.data)==null?void 0:V.serviceEndpoint);_.k(f,_.Pf)&&(f&&_.tY().resolve(_.s6).resolveCommand(f,{form:{element:this.hostElement}}),W.preventDefault())};
_.t.computeChannelEndpoint=function(W){return _.k(W,_.Pf)?null:W};
_.t.computeHrefEndpoint=function(W){return _.k(W,_.Pf)?null:this.componentBehavior.computeHref_(W)};
_.t.computeChannelRendererStyle=function(W){return W};
_.t.computeIconSize=function(W){return W?108:136};
_.rc.Object.defineProperties(f1,{template:{configurable:!0,enumerable:!0,get:function(){return i$k()}}});
f1.prototype.backgroundColorChanged=f1.prototype.backgroundColorChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],f1.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],f1.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.i5),_.z("design:type",Object)],f1.prototype,"ytdOpenPopupBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],f1.prototype,"componentBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],f1.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Boolean)],f1.prototype,"isDarkTheme",void 0);_.a([_.b({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.z("design:type",String)],f1.prototype,"channelRendererStyle",void 0);_.a([_.b({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],f1.prototype,"dualButtons",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],f1.prototype,"useBiggerThumbs",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.gU("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],f1.prototype,"biggerThumbStyle",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],f1.prototype,"compactStyle",void 0);_.a([_.TS("data","isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],f1.prototype,"backgroundColorChanged",null);_.a([_.A({is:"ytd-channel-renderer",disableElementRegistration:!0})],f1);_.Z(f1,"ytd-channel-renderer",function(){return i$k()},{mode:1});var mhM;var X_k;_.e1("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var r2=function(){var W=_.I.apply(this,arguments)||this;W.displayItemCount=2;W.collections=_.U("web_modern_collections_v2");W.hasPlaylistThumbnail=!1;W.stackThumbnailSize="large";return W};
_.v(r2,_.I);_.t=r2.prototype;_.t.attached=function(){this.updateInlinePreviewHoverListeners()};
_.t.detached=function(){this.clearInlinePreviewHoverListeners()};
_.t.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.t.computeFirstVideos=function(W,l){return W&&l?W.slice(0,l):[]};
_.t.computeThumbnailWidth=function(W,l){return W?l==="BIG"?500:l==="MASSIVE"?600:l==="MEDIUM"?450:420:360};
_.t.computeThumbnailHeight=function(W,l){return W?l==="BIG"?280:l==="MASSIVE"?337:234:202};
_.t.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$16114_inlinePreviewHoverListener)==null||gl(W)};
_.t.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16114_inlinePreviewHoverListener=Wf({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:Bfc,thumbnailElement:this.thumbnail})};
_.t.computeHasPlaylistThumbnail=function(W){var l,V;if((((l=W.thumbnailRenderer)==null?0:l.playlistVideoThumbnailRenderer)||((V=W.thumbnailRenderer)==null?0:V.playlistCustomThumbnailRenderer))&&W.thumbnailOverlays)for(l=0;l<W.thumbnailOverlays.length;l++)if(V=void 0,(V=W.thumbnailOverlays[l])==null?0:V.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.rc.Object.defineProperties(r2.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$16114_inlinePreviewHoverListener)==null?0:Bx(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
r2.prototype.dataChanged=r2.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],r2.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.FK),_.z("design:type",Object)],r2.prototype,"ytdLockupBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],r2.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],r2.prototype,"displayItemCount",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],r2.prototype,"useBiggerThumbs",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.gU("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],r2.prototype,"biggerThumbsStyle",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],r2.prototype,"collections",void 0);_.a([_.b({computed:"computeHasPlaylistThumbnail(data)"}),_.z("design:type",Object)],r2.prototype,"hasPlaylistThumbnail",void 0);_.a([_.b(),_.z("design:type",String)],r2.prototype,"stackThumbnailSize",void 0);_.a([_.Aa("ytd-thumbnail"),_.z("design:type",HTMLElement)],r2.prototype,"thumbnail",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],r2.prototype,"dataChanged",null);_.a([_.G("lockupIsHovered"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],r2.prototype,"isHovered",null);_.a([_.A({is:"ytd-radio-renderer",disableElementRegistration:!0})],r2);
_.Z(r2,"ytd-radio-renderer",function(){if(X_k!==void 0)return X_k;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return X_k=W},{mode:_.bD("kevlar_poly_si_batch_j058")?1:2});var Tqk;_.e1("itemSectionRenderer","showRenderer","ytd-show-renderer");var RT=function(){return _.I.apply(this,arguments)||this};
_.v(RT,_.I);RT.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
RT.prototype.computeThumbnailWidth=function(W){return W?360:246};
RT.prototype.computeUseProminentThumbs=function(W){return W};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],RT.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],RT.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],RT.prototype,"data",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],RT.prototype,"isSearch",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.z("design:type",Boolean)],RT.prototype,"useProminentThumbs",void 0);_.a([_.A({is:"ytd-show-renderer",disableElementRegistration:!0})],RT);
_.Z(RT,"ytd-show-renderer",function(){if(Tqk!==void 0)return Tqk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Tqk=W},{mode:1});_.e1("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var tQ=function(){var W=_.I.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.v(tQ,_.I);tQ.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"}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],tQ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],tQ.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],tQ.prototype,"isRichGrid",void 0);_.a([_.A({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],tQ);
_.Z(tQ,"ytd-feed-entry-renderer",function(){if(mhM!==void 0)return mhM;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return mhM=W},{mode:1});var w_I;var sI=function(){return _.I.apply(this,arguments)||this};
_.v(sI,_.I);sI.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.a([_.F(_.dx),_.z("design:type",Object)],sI.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],sI.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],sI.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],sI.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,selector:_.Wl,value:3}),_.z("design:type",Number)],sI.prototype,"itemsPerRow",void 0);
_.a([_.A({is:"ytd-link-card-renderer",disableElementRegistration:!0})],sI);
_.Z(sI,"ytd-link-card-renderer",function(){if(w_I!==void 0)return w_I;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return w_I=W},{mode:1});var ADX;var L1=function(){return _.I.apply(this,arguments)||this};
_.v(L1,_.I);_.t=L1.prototype;_.t.configureRendererStamper=function(){return{"data.menu":hq,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.t.onRendererTap=function(W){if(!this.ytdDismissibleItemBehavior.isDismissed){var l,V=(l=this.data)==null?void 0:l.navigationEndpoint;V&&!_.Cv(_.d_(W),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(V)?_.Cv(_.d_(W),this.hostElement,["A"])||_.FN(this.hostElement,"yt-navigate",{endpoint:V}):this.ytComponentBehavior.resolveCommand(V,{}))}};
_.t.maybeComputeHref=function(W){return this.ytComponentBehavior.computeHref_(W,!0)};
_.t.getNavigationCommand=function(W){return this.isNavigationCommand(W)?W:null};
_.t.isNavigationCommand=function(W){return W?_.k(W,_.ZJ)||_.k(W,_.Bh)||_.k(W,_.x_)?!0:!1:!1};
L1.prototype.onRendererTap=L1.prototype.onRendererTap;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],L1.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],L1.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],L1.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],L1.prototype,"ytComponentBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],L1.prototype,"data",void 0);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],L1.prototype,"onRendererTap",null);_.a([_.A({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],L1);
_.Z(L1,"ytd-lumiere-promo-item-image-renderer",function(){if(ADX!==void 0)return ADX;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return ADX=W},{mode:1});var QOB;var y$=function(){return _.I.apply(this,arguments)||this};
_.v(y$,_.I);y$.prototype.computeLandscapeThumbnail=function(){var W;return((W=this.data)==null?void 0:W.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],y$.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],y$.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],y$.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,selector:_.$H}),_.z("design:type",Boolean)],y$.prototype,"miniMode",void 0);_.a([_.b({reflectToAttribute:!0,selector:_.Wl}),_.z("design:type",Number)],y$.prototype,"itemsPerRow",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.z("design:type",Boolean)],y$.prototype,"landscapeThumbnail",void 0);_.a([_.A({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],y$);
_.Z(y$,"ytd-lumiere-shelf-details-renderer",function(){if(QOB!==void 0)return QOB;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return QOB=W},{mode:_.bD("kevlar_poly_si_batch_j076")?1:2});var MO1;var g2=function(){return _.I.apply(this,arguments)||this};
_.v(g2,_.I);g2.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],g2.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],g2.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],g2.prototype,"data",void 0);_.a([_.A({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],g2);
_.Z(g2,"ytd-primetime-promo-details-renderer",function(){if(MO1!==void 0)return MO1;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return MO1=W},{mode:1});var Z$Z;var P9=function(){return _.I.apply(this,arguments)||this};
_.v(P9,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],P9.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],P9.prototype,"data",void 0);_.a([_.A({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],P9);
_.Z(P9,"ytd-panel-show-style-metadata-renderer",function(){if(Z$Z!==void 0)return Z$Z;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Z$Z=W},{mode:1});var O$1;var n1=function(){return _.I.apply(this,arguments)||this};
_.v(n1,_.I);_.t=n1.prototype;_.t.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.t.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.t.computeThumbnail=function(W){if(W)return W.smallFormFactorBackgroundThumbnail||W.largeFormFactorBackgroundThumbnail};
_.t.maybeComputeHref=function(W){return this.ytComponentBehavior.computeHref_(W,!0)};
_.t.isNavigationCommand=function(W){return W?_.k(W,_.ZJ)||_.k(W,_.Bh)||_.k(W,_.x_)?!0:!1:!1};
_.t.getNavigationCommand=function(W){return this.isNavigationCommand(W)?W:null};
n1.prototype.onPanelTap=n1.prototype.onPanelTap;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],n1.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],n1.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],n1.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],n1.prototype,"roundedContainer",void 0);_.a([_.b({reflectToAttribute:!0,value:_.U("web_modern_buttons")}),_.z("design:type",Boolean)],n1.prototype,"modernButtons",void 0);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],n1.prototype,"onPanelTap",null);_.a([_.A({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],n1);
_.Z(n1,"ytd-primetime-promo-panel-renderer",function(){if(O$1!==void 0)return O$1;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return O$1=W},{mode:1});_.HI(_.Q(function(W){W=_.Dd(W,{data:{},useFullWidth:!1});var l=W.data,V=W.useFullWidth;W={};return _.C("teaser-card-view-model",{class:_.If("ytTeaserCardViewModelHost",(W.ytTeaserCardViewModelUseFullWidth=function(){return V()},W))},_.C(_.c,{cond:function(){return l().onTap},
then:function(f){return _.C(_.Mq,{className:"ytTeaserCardViewModelLink",command:f},_.C("div",{class:"ytTeaserCardViewModelImageContainer"},_.C(_.c,{cond:function(){return l().image},
then:function(r){return _.C(_.dN,{data:r,className:"ytTeaserCardViewModelImage",alt:""})}})),_.C("p",{class:"ytTeaserCardViewModelCaption"},function(){return l().caption}))}}))},"Xb"),"teaser-card-view-model",{props:{data:_.pA,
useFullWidth:_.pA}});var ate=new _.vd("RICH_GRID_VIDEO_RENDERER_TOKEN");_.HI(_.Q(function(W){var l=W.data;var V=W.showYtInteractionInContent;var f=function(){return!!l().selectableFeedback};
W=_.L(_.J4(!1,void 0,"qxtgaf"));var r=W.next().value,R=W.next().value;_.mw(function(){var D=_.k(l().primaryButton,_.Ub);(D==null?0:D.isToggled)&&R(D.isToggled)});
W=_.ip(function(D){if(!f())return!1;if(r()){var u;var H=(u=l().selectableFeedback)==null?void 0:u.onDeselect}else{var p;H=(p=l().selectableFeedback)==null?void 0:p.onSelect}H&&_.sZ(H,{form:{element:D.target}});R(!r());if(D=_.k(l().primaryButton,_.Ub))D.isToggled=r();return!1});
var y=function(){if(!f()){var D,u=(D=l().loggingDirectives)==null?void 0:D.trackingParams;u&&_.YQ(_.tY().resolve(_.yM),u)}},P=_.ibv(),n=function(){var D;
return f()?(D=l().selectableFeedback)==null?void 0:D.a11yLabel:void 0},B=function(){return f()?{toggled:r()}:{}},d=_.tY().resolve(_.R0(ate)),J={};
return _.C("yt-feedback-item-renderer",{class:_.If("ytFeedbackItemRendererHost",(J.ytFeedbackItemRendererSelectableFeedback=f,J)),"on:click":W,"on:keydown":P,title:n,"aria-label":n,"aria-pressed":function(){return f()?r():void 0},
tabindex:function(){return f()?0:void 0},
role:function(){return f()?"button":void 0}},_.C("div",{class:"ytFeedbackItemRendererContentContainer"},_.C(_.QH,{data:function(){return l().content}},{videoRenderer:function(D){return _.C(d,{data:D.data,
showYtInteraction:V})},
lockupViewModel:function(D){return _.C(_.au,{data:D.data,containerType:2})}})),_.C("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.C(_.QH,{data:function(){return l().primaryButton}},{toggleButtonViewModel:function(D){return _.C(_.gy,{data:D.data,
buttonShapeOverrides:B,disableExplicitClickLogging:!0,onToggle:y})}})))},"Yb"),"yt-feedback-item-renderer",{props:{data:_.pA,
showYtInteractionInContent:_.pA}});var C1=function(){var W=_.I.apply(this,arguments)||this;W.isShortsGrid=!1;W.isCompactGrid=!1;W.isShortsPanelGrid=!1;W.renderedFromRichGrid=!1;W.isInFirstColumn=!1;W.noGutterMargins=!1;W.noBottomMargin=!1;W.halfBottomMargin=!1;W.isInlineGroupItem=!1;W.insetMetadata=!1;W.noBottomMarginInAds=!0;W.force16By9ThumbnailAspectRatio=!1;W.useCompactList=!1;W.containerType=2;W.thumbnailTargetWidth=9999;W.isResponsiveGrid=!1;W.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};W.hoverListener=
W.hover.bind(W);W.leaveListener=W.leave.bind(W);W.highlighted=!1;W.JSC$16148_unsubscribeFromInlinePreviewIsActive=function(){};
return W};
_.v(C1,_.I);_.t=C1.prototype;_.t.computeContainerType=function(){return this.useCompactList?3:2};
_.t.computeThumbnailTargetWidth=function(){var W;return(W=this.itemWidth)!=null?W:9999};
_.t.updateIsInFirstColumn=function(){var W;this.isInFirstColumn=((W=this.data)==null?void 0:W.colIndex)===0};
_.t.observerContainerType=function(){if(this.lockup){var W=this.lockup;W.containerType=this.containerType;W.sizing=this.sizing;W.typographyBump=this.typographyBump;W.itemWidth=this.itemWidth}this.richGridMedia&&_.U("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.U("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.t.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]]"}}}}}};
_.t.leave=function(W){W=W.relatedTarget;var l=document.querySelector("ytd-video-preview");W&&l&&_.bm(l).contains(W)||this.removeAndCleanupHighlight()};
_.t.hover=function(){var W;!this.highlighted&&(W=this.data)!=null&&W.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(W=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:W,boxShadow:"0 0 0 10px "+W})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.t.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};
_.t.registerHoverHighlightListeners=function(){var W=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16148_unsubscribeFromInlinePreviewIsActive=_.Eb(_.DJ(),_.w3g,function(l){W.highlighted&&!l&&W.removeAndCleanupHighlight()})};
_.t.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16148_unsubscribeFromInlinePreviewIsActive()};
_.t.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.t.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.t.getBackgroundColor=function(){var W,l,V=(W=this.data)==null?void 0:(l=W.onFocusEffect)==null?void 0:l.onFocusColor;if(V){if(document.documentElement.hasAttribute("dark")&&(V==null?0:V.darkTheme))return _.ta(V==null?void 0:V.darkTheme);if(V==null?0:V.lightTheme)return _.ta(V==null?void 0:V.lightTheme)}};
_.t.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var W=_.Wh(),l,V,f;W&&((l=this.data)==null?0:l.trackingParams)&&((V=this.data)==null?void 0:V.colIndex)!=null&&((f=this.data)==null?void 0:f.rowIndex)!=null&&_.By(W,_.zG(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.t.isSlimMediaRenderer=function(W){return!!_.k(W==null?void 0:W.content,_.g09)||!!_.k(W==null?void 0:W.content,yeZ)||!!_.k(W==null?void 0:W.content,_.nE)||!!_.k(W==null?void 0:W.content,jHZ)};
_.t.isPostRenderer=function(){var W,l;return!!_.k((W=this.data)==null?void 0:W.content,iUe)||!!_.k((l=this.data)==null?void 0:l.content,mRL)};
_.t.computeIsGameCardShelf=function(){var W;return!!_.k((W=this.data)==null?void 0:W.content,zCM)};
_.t.computeIsMiniGameCardShelf=function(){var W,l;return!!_.k((W=this.data)==null?void 0:W.content,rkv)||!!_.k((l=this.data)==null?void 0:l.content,R8X)};
_.t.computeIsTeaserCard=function(){var W;return!!_.k((W=this.data)==null?void 0:W.content,R8X)};
_.t.computeIsSelectableFeedbackItem=function(){var W,l;return!((l=_.k((W=this.data)==null?void 0:W.content,_.s3e))==null||!l.selectableFeedback)};
_.t.computeContainsLumierePosters=function(){var W,l;return((l=_.k((W=this.data)==null?void 0:W.content,zNa))==null?void 0:l.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.t.computeIsExpandOnHoverCardShelf=function(){var W;return!!_.k((W=this.data)==null?void 0:W.content,an1)};
_.t.computeIsLinkCardShelf=function(){var W;return!!_.k((W=this.data)==null?void 0:W.content,Ofe)};
_.t.computeIsReelItemStyleAvatarCircle=function(W){var l;return((l=_.k(W==null?void 0:W.content,_.nE))==null?void 0:l.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.t.computeIsLinkCardFullWidth=function(W,l){var V;return((V=_.k(W==null?void 0:W.content,Ofe))==null?void 0:V.useFullWidth)||l<=2};
_.rc.Object.defineProperties(C1.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&&_.U("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.onFocusEffect)||_.U("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var W;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:(W=this.data)==null?void 0:W.onFocusEffect}}}});
C1.prototype.richGridHoverHighlightChanged=C1.prototype.richGridHoverHighlightChanged;C1.prototype.observerContainerType=C1.prototype.observerContainerType;C1.prototype.updateIsInFirstColumn=C1.prototype.updateIsInFirstColumn;_.a([_.F(_.dx),_.z("design:type",Object)],C1.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],C1.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],C1.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.FK),_.z("design:type",Object)],C1.prototype,"ytdLockupBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],C1.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.z("design:type",Boolean)],C1.prototype,"isPost",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.z("design:type",Boolean)],C1.prototype,"containsLumierePosters",void 0);_.a([_.b({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.z("design:type",Boolean)],C1.prototype,"isSlimMedia",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.z("design:type",Boolean)],C1.prototype,"isGameCardShelf",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.z("design:type",Boolean)],C1.prototype,"isMiniGameCardShelf",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.z("design:type",Boolean)],C1.prototype,"isTeaserCard",void 0);_.a([_.b({computed:"computeIsSelectableFeedbackItem(data)"}),_.z("design:type",Boolean)],C1.prototype,"isSelectableFeedbackItem",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],C1.prototype,"isShortsGrid",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],C1.prototype,"isSlimGrid",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],C1.prototype,"isCompactGrid",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],C1.prototype,"isShortsPanelGrid",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.z("design:type",Boolean)],C1.prototype,"isExpandOnHoverCardShelf",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.z("design:type",Boolean)],C1.prototype,"isLinkCardShelf",void 0);_.a([_.b({reflectToAttribute:!0,selector:_.Wl,value:3}),_.z("design:type",Number)],C1.prototype,"itemsPerRow",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],C1.prototype,"renderedFromRichGrid",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],C1.prototype,"isInFirstColumn",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],C1.prototype,"noGutterMargins",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],C1.prototype,"noBottomMargin",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],C1.prototype,"halfBottomMargin",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],C1.prototype,"isInlineGroupItem",void 0);_.a([_.b(),_.z("design:type",Object)],C1.prototype,"insetMetadata",void 0);_.a([_.b(),_.z("design:type",Object)],C1.prototype,"noBottomMarginInAds",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],C1.prototype,"isShelfItem",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.z("design:type",Boolean)],C1.prototype,"isReelItemStyleAvatarCircle",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.z("design:type",Boolean)],C1.prototype,"isLinkCardFullWidth",void 0);_.a([_.b(),_.z("design:type",Object)],C1.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],C1.prototype,"useCompactList",void 0);_.a([_.b(),_.z("design:type",String)],C1.prototype,"sizing",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],C1.prototype,"typographyBump",void 0);_.a([_.b(),_.z("design:type",Number)],C1.prototype,"itemWidth",void 0);_.a([_.b(),_.z("design:type",Boolean)],C1.prototype,"isHomeShelf",void 0);_.a([_.b(),_.z("design:type",Boolean)],C1.prototype,"isHomeGrid",void 0);
_.a([_.Aa("yt-lockup-view-model"),_.z("design:type",HTMLElement)],C1.prototype,"lockup",void 0);_.a([_.Aa("ytd-rich-grid-media"),_.z("design:type",HTMLElement)],C1.prototype,"richGridMedia",void 0);_.a([_.Aa("ytd-ad-slot-renderer"),_.z("design:type",HTMLElement)],C1.prototype,"adSlotRenderer",void 0);_.a([_.b({computed:"computeContainerType(useCompactList)"}),_.z("design:type",Object)],C1.prototype,"containerType",void 0);
_.a([_.b({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.z("design:type",Object)],C1.prototype,"thumbnailTargetWidth",void 0);_.a([_.G("showYtInteractionOnRichItem"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],C1.prototype,"showYtInteractionOnRichGridMedia",null);_.a([_.G("isSelectableFeedbackItem","richGridHoverHighlight"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],C1.prototype,"showYtInteractionOnRichItem",null);
_.a([_.G("typographyBump","isHomeGrid"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],C1.prototype,"richTypographyBump",null);_.a([_.b({reflectToAttribute:!0}),_.G("data","isShortsGrid","isCompactGrid"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],C1.prototype,"richGridHoverHighlight",null);_.a([_.G("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.z("design:type",Number),_.z("design:paramtypes",[])],C1.prototype,"shortsLockupViewModelAspectRatio",null);
_.a([_.G("isInlineGroupItem"),_.z("design:type",Number),_.z("design:paramtypes",[])],C1.prototype,"shortsLockupViewModelScrimStyle",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],C1.prototype,"updateIsInFirstColumn",null);_.a([_.TS("containerType","sizing","typographyBump"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],C1.prototype,"observerContainerType",null);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],C1.prototype,"isResponsiveGrid",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],C1.prototype,"lockupExperiments",null);_.a([_.TS("richGridHoverHighlight"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],C1.prototype,"richGridHoverHighlightChanged",null);_.a([_.A({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],C1);
_.zvc=_.GG()(C1,"ytd-rich-item-renderer",function(){if(oTv===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);oTv=W}W=oTv;return W},{mode:_.bD("kevlar_poly_si_batch_j028")?1:2});var OHz={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var lGz=_.Bl(_.wg("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var zHx={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},YiU={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},xwz={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var NqX;var c9=function(){var W=_.I.apply(this,arguments)||this;W.useResponsiveGrid=!1;W.hidden=!1;W.isShowMoreHidden=!1;W.isShowLessHidden=!0;W.hasExpansionButton=!1;W.isInnerShelf=!1;W.allVideosCount=0;W.allPlaylistCount=0;W.haveSmartDownloadsCompleted=!1;W.restrictContentsOverflow=!1;W.firstShownIndex=0;W.horizontalOffset=0;W.atEnd=!0;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
W.nextClick=function(){var l;(l=W.data)!=null&&l.contents&&(W.firstShownIndex+=W.currentElementsPerRow,W.updateHorizontalOffset(),W.updateHorizontalItemVisibility())};
W.previousClick=function(){var l;(l=W.data)!=null&&l.contents&&(W.firstShownIndex-=W.currentElementsPerRow,W.updateHorizontalOffset(),W.updateHorizontalItemVisibility())};
return W};
_.v(c9,_.I);_.t=c9.prototype;
_.t.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.M4("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.t.attached=function(){this.requestElementsPerRow()};
_.t.refreshGridLayoutNew=function(){var W;if((W=this.data)!=null&&W.contents&&this.containerWidth){var l;((l=this.data.responsiveContainerConfiguration)==null?0:l.responsiveSize)?(W=_.rnz(this.data.responsiveContainerConfiguration,this.containerWidth),W=_.fh(Object.assign({},W,{standardUnitMinWidth:this.standardUnitMinWidth}))):W=_.fh({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=W.typographyBump;if(this.elementsPerRow!==
W.numItems||this.gutter!==W.gutter)this.elementsPerRow=W.numItems,this.gutter=W.gutter,this.itemWidth=W.itemWidth,_.I1(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":W.gutter+"px"})}};
_.t.computeSizing=function(){if(!this.isLumiere){var W=_.brJ(this.data);return W?W:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.t.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.t.computeButton=function(W){var l=_.k(W,_.CE);W=Object.assign({},_.k(W,_.CE));return l?(W.text||(W.text={simpleText:W.tooltip}),W.style="STYLE_MONO_OUTLINE",W.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",W):l};
_.t.onRowIndexChange=function(){var W=_.Wh(),l,V;((l=this.data)==null?0:l.trackingParams)&&((V=this.data)==null?void 0:V.rowIndex)!=null&&W&&_.By(W,_.zG(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.t.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var W,l=((W=this.getRichItemRenderers()[0])==null?void 0:W.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*l;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.t.requestElementsPerRow=function(){_.FN(this.hostElement,"yt-request-elements-per-row")};
_.t.onUpdateElementsPerRowAction=function(W,l,V,f,r,R){if(this.containerWidth!==R&&(this.containerWidth=R,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&W&&l&&V&&f&&r&&(this.elementsPerRow!==W||this.postsPerRow!==l||this.slimItemsPerRow!==V||this.gameCardsPerRow!==f||this.miniGameCardsPerRow!==r)&&(this.elementsPerRow=W,this.postsPerRow=l,this.slimItemsPerRow=V,this.gameCardsPerRow=f,this.miniGameCardsPerRow=r,this.updateItemVisibility())};
_.t.getRichItemRenderers=function(){return _.GS(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.t.updateItemVisibility=function(){var W=this;if(this.data&&this.data.contents){var l=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(f,r){var R;((R=W.data)==null?0:R.isExpanded)?(f.hidden=r>l-1,f.ytRendererBehavior.markDirty()):f.hidden=r>W.currentElementsPerRow-1||r>l-1});
var V=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||V||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||V||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.t.setHeightToSingleRow=function(){var W=this.getRichItemRenderers(),l=Number.parseInt(getComputedStyle(W[0]).marginBottom,10)||0;W=W.slice(0,this.currentElementsPerRow).reduce(function(V,f){return Math.max(V,f.getBoundingClientRect().height+l)},0);
this.contents.style.height=W+"px"};
_.t.focusNextExpandedItem=function(){var W;((W=this.data)==null?0:W.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.t.focusItem=function(W,l){var V=this.getRichItemRenderers();if(V[W]&&(W=V[W].querySelector(".focus-on-expand"))){if(l){var f;(f=V[this.currentElementsPerRow])==null||f.scrollIntoView({behavior:"smooth",block:"center"})}W.focus({preventScroll:!0})}};
_.t.onDataChange=function(){var W=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var l;if((l=this.data)==null?0:l.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.V9(this,function(){W.updateItemVisibility()});
var V;if((V=this.data)==null?0:V.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.I1(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),l=0;l<this.data.contents.length;l++)V=_.k(this.data.contents[l],_.$0)||{},V.colIndex=l,V.rowIndex=this.data.rowIndex};
_.t.handleRerenderDownloadsData=function(){_.U("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())};
_.t.blockInlinePreview=function(W){var l=this,V;return _.g(function(f){(V=l.inlinePreviewIsEnabled)&&l.ytdReduxBehavior.dispatch(_.Fnk(!1));return f.return(new Promise(function(r){W(function(){V&&l.ytdReduxBehavior.dispatch(_.Fnk(!0));r()})}))})};
_.t.expandShelf=function(){var W=this;if(this.data){var l,V=(l=_.k(this.data.showMoreButton,_.CE))==null?void 0:l.trackingParams;V&&_.YQ(_.Qq(),V);this.data.isExpanded=!0;this.blockInlinePreview(function(f){W.setHeightToSingleRow();W.updateItemVisibility();W.contents.style.height=W.contents.scrollHeight+"px";_.w8.addJob(function(){W.contents.style.height="auto";W.focusNextExpandedItem();f()},2,200)})}};
_.t.collapseShelf=function(){var W=this;return _.g(function(l){if(l.nextAddress==1){if(!W.data)return l.return();W.data.isExpanded=!1;return l.yield(W.blockInlinePreview(function(V){W.contents.style.height=W.contents.scrollHeight+"px";W.setHeightToSingleRow();_.w8.addJob(function(){W.updateItemVisibility();W.contents.style.height="auto";V()},2,200)}),2)}_.FN(W.hostElement,"yt-rich-shelf-renderer-collapse",W.data.trackingParams);
W.focusItem(0,!1);_.ju(l)})};
_.t.updateArrowButtonStatus=function(){var W=this.getRichItemRenderers().length;if(!_.U("web_rich_shelf_renderer_use_data_contents_killswitch")){var l,V;W=((l=this.data)==null?void 0:(V=l.contents)==null?void 0:V.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=W};
_.t.onChildElementFocus=function(W){this.hasChevronButtons&&(W=W.target.closest("#contents > *"),this.contents.contains(W)&&(W.offsetLeft<this.horizontalOffset?this.previousClick():W.offsetLeft+W.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.t.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.M4("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.t.updateHorizontalOffset=function(){var W=this.getRichItemRenderers(),l=W.length;if(!_.U("web_rich_shelf_renderer_use_data_contents_killswitch")){var V,f;l=((V=this.data)==null?void 0:(f=V.contents)==null?void 0:f.length)||0}var r;W=((r=W[0])==null?void 0:r.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>l?this.firstShownIndex=l-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*W};
_.t.isSlimMediaShelfRenderer=function(){var W,l,V,f=(V=_.k((W=this.data)==null?void 0:(l=W.contents)==null?void 0:l[0],_.$0))==null?void 0:V.content;return!!(_.k(f,_.g09)||_.k(f,yeZ)||_.k(f,_.nE)||_.k(f,jHZ))};
_.t.isGameCardShelf=function(){var W,l,V,f=(V=_.k((W=this.data)==null?void 0:(l=W.contents)==null?void 0:l[0],_.$0))==null?void 0:V.content;return!!_.k(f,zCM)};
_.t.isGnomeShelf=function(){var W,l,V,f=(V=_.k((W=this.data)==null?void 0:(l=W.contents)==null?void 0:l[0],_.$0))==null?void 0:V.content;return!!_.k(f,_.s3e)};
_.t.isMiniGameCardShelf=function(){var W,l,V,f=(V=_.k((W=this.data)==null?void 0:(l=W.contents)==null?void 0:l[0],_.$0))==null?void 0:V.content;return!!_.k(f,rkv)||!!_.k(f,R8X)};
_.t.hasGameBoxArtAvatarStyle=function(){var W;return((W=this.data)==null?void 0:W.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.t.hasRoundedGameBoxArtAvatarStyle=function(){var W;return((W=this.data)==null?void 0:W.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.t.isShortsShelf=function(){var W,l,V,f=(V=_.k((W=this.data)==null?void 0:(l=W.contents)==null?void 0:l[0],_.$0))==null?void 0:V.content;return!!_.k(f,_.nE)||!!_.k(f,jHZ)};
_.t.isPostShelfRenderer=function(){var W,l,V,f=(V=_.k((W=this.data)==null?void 0:(l=W.contents)==null?void 0:l[0],_.$0))==null?void 0:V.content;return!(!_.k(f,iUe)&&!_.k(f,mRL))};
_.t.isLumiereShelf=function(){var W,l,V=_.k((W=this.data)==null?void 0:(l=W.contents)==null?void 0:l[0],_.$0);return!!_.k(V==null?void 0:V.content,zNa)};
_.t.isLumiereShelfWithPosters=function(){var W,l,V=_.k((W=this.data)==null?void 0:(l=W.contents)==null?void 0:l[0],_.$0),f;return((f=_.k(V==null?void 0:V.content,zNa))==null?void 0:f.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.t.isExpandOnHoverCardShelf=function(){var W,l,V,f=(V=_.k((W=this.data)==null?void 0:(l=W.contents)==null?void 0:l[0],_.$0))==null?void 0:V.content;return!!_.k(f,an1)};
_.t.computeHasFeaturedBadge=function(){var W,l,V=_.k((W=this.data)==null?void 0:(l=W.badges)==null?void 0:l[0],_.LEL);return V?V.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.t.computeHasPaygatedFeaturedBadge=function(){var W,l,V=_.k((W=this.data)==null?void 0:(l=W.badges)==null?void 0:l[0],_.LEL);return V?(V==null?void 0:V.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.t.computeHeaderHidden=function(){var W,l,V,f,r,R;return!((W=this.data)==null?0:W.icon)&&!((l=this.data)==null?0:l.title)&&!((V=this.data)==null?0:V.subtitle)&&!((f=this.data)==null?0:f.thumbnail)&&!((r=this.data)==null?0:r.badges)&&!((R=this.data)==null?0:R.menu)};
_.t.showCtaButton=function(){var W;return!((W=this.data)==null||!W.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.t.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.t.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.t.computeForce16By9ThumbnailAspectRatio=function(){var W,l;return((W=this.data)==null?void 0:(l=W.responsiveContainerConfiguration)==null?void 0:l.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.t.onSectionReactiveDismissal=function(W,l,V){var f,r;var R=(f=this.data)==null?void 0:(r=f.targetingContext)==null?void 0:r.targetGroupId;this&&R&&l.targetGroupId&&R.includes(l.targetGroupId)?(f=this.rowIndex,W=f===void 0?!1:!(l.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&f<=W)):W=!1;W&&(this.hidden=V)};
_.rc.Object.defineProperties(c9.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null?0:W.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var W=this.elementsPerRow;this.isPostShelfRenderer()?W=this.postsPerRow:this.isSlimMediaShelfRenderer()?W=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?W=this.slimItemsPerRow-1:this.isGameCardShelf()?W=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(W=this.miniGameCardsPerRow);return W}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.U("kevlar_clean_feeds_show_more")&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null?0:W.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var W,l;return!((W=this.data)==null||!W.previousButton)&&!((l=this.data)==null||!l.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 W;return((W=_.tY().resolve(_.Bp).getCurrentPage())==null?void 0:W.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var W,l,V,f;return!((W=this.data)==null?0:(l=W.thumbnail)==null?0:(V=l.accessibility)==null?0:(f=V.accessibilityData)==null?0:f.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
c9.prototype.onChildElementFocus=c9.prototype.onChildElementFocus;c9.prototype.handleRerenderDownloadsData=c9.prototype.handleRerenderDownloadsData;c9.prototype.onDataChange=c9.prototype.onDataChange;c9.prototype.onRowIndexChange=c9.prototype.onRowIndexChange;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],c9.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],c9.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.DX),_.z("design:type",Object)],c9.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],c9.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],c9.prototype,"ytdReduxBehavior",void 0);_.a([_.b({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.z("design:type",Object)],c9.prototype,"useResponsiveGrid",void 0);_.a([_.b(),_.z("design:type",Object)],c9.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Number)],c9.prototype,"standardUnitMinWidth",void 0);_.a([_.b({reflectToAttribute:!0,value:3}),_.z("design:type",Number)],c9.prototype,"elementsPerRow",void 0);_.a([_.b({value:3}),_.z("design:type",Number)],c9.prototype,"postsPerRow",void 0);_.a([_.b({value:6}),_.z("design:type",Number)],c9.prototype,"slimItemsPerRow",void 0);_.a([_.b({value:6}),_.z("design:type",Number)],c9.prototype,"gameCardsPerRow",void 0);
_.a([_.b({value:6}),_.z("design:type",Number)],c9.prototype,"miniGameCardsPerRow",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],c9.prototype,"hidden",void 0);_.a([_.b(),_.z("design:type",Object)],c9.prototype,"isShowMoreHidden",void 0);_.a([_.b(),_.z("design:type",Object)],c9.prototype,"isShowLessHidden",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],c9.prototype,"hasExpansionButton",void 0);
_.a([_.G("data.isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],c9.prototype,"isExpanded",null);_.a([_.G("data.isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],c9.prototype,"isCollapsed",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],c9.prototype,"isInnerShelf",void 0);_.a([_.b({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.z("design:type",Boolean)],c9.prototype,"isShorts",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.z("design:type",Boolean)],c9.prototype,"isLumiere",void 0);_.a([_.b({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.z("design:type",Boolean)],c9.prototype,"hasBoxArtThumbnailStyle",void 0);_.a([_.b({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.z("design:type",Boolean)],c9.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.z("design:type",Boolean)],c9.prototype,"hasFeaturedBadge",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.z("design:type",Boolean)],c9.prototype,"hasPaygatedFeaturedBadge",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.z("design:type",Boolean)],c9.prototype,"isHeaderHidden",void 0);
_.a([_.b({selector:_.aI8}),_.z("design:type",Object)],c9.prototype,"allVideosCount",void 0);_.a([_.b({selector:fGj}),_.z("design:type",Object)],c9.prototype,"allPlaylistCount",void 0);_.a([_.b({selector:$5S}),_.z("design:type",Object)],c9.prototype,"haveSmartDownloadsCompleted",void 0);
_.a([_.b({selectorArgs:["entitySelectorType"],selector:function(W,l){if(_.U("kevlar_modern_downloads_page")&&l&&l!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var V=W.entities;switch(l){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":l=_.hW(V);W=iE(l);var f=_.zT(l);V=_.EK(V);V=_.Hy(qiF(f,V,l.length));return{contents:W,subtitle:V};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return V=_.hW(V),{contents:iE(V)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return V=
_.SE(V),{contents:iE(V)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return V=_.U58(V),{contents:iE(V)};default:_.Qe(new _.bP("Error: entitySelectorType defined but not matched in selector.",W,l))}}}}),
_.z("design:type",Object)],c9.prototype,"entityDrivenRichShelfData",void 0);_.a([_.b({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.z("design:type",Boolean)],c9.prototype,"hasTopCtaButton",void 0);_.a([_.b({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.z("design:type",Boolean)],c9.prototype,"hasBottomCtaButton",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.z("design:type",Boolean)],c9.prototype,"force16By9ThumbnailAspectRatio",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],c9.prototype,"restrictContentsOverflow",void 0);_.a([_.b({selector:_.Azj}),_.z("design:type",Boolean)],c9.prototype,"inlinePreviewIsEnabled",void 0);_.a([_.b({computed:"computeSizing(data)"}),_.z("design:type",String)],c9.prototype,"sizing",void 0);
_.a([_.b(),_.z("design:type",Boolean)],c9.prototype,"typographyBump",void 0);_.a([_.b(),_.z("design:type",Number)],c9.prototype,"itemWidth",void 0);_.a([_.b(),_.z("design:type",Object)],c9.prototype,"firstShownIndex",void 0);_.a([_.b(),_.z("design:type",Object)],c9.prototype,"horizontalOffset",void 0);_.a([_.b(),_.z("design:type",Object)],c9.prototype,"atEnd",void 0);_.a([_.Aa("#contents"),_.z("design:type",HTMLElement)],c9.prototype,"contents",void 0);
_.a([_.TS("data.rowIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],c9.prototype,"onRowIndexChange",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],c9.prototype,"onDataChange",null);_.a([_.TS("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],c9.prototype,"handleRerenderDownloadsData",null);
_.a([_.XI("focusin"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],c9.prototype,"onChildElementFocus",null);_.a([_.b({reflectToAttribute:!0}),_.G("data","isHomePage"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],c9.prototype,"isTruncated",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],c9.prototype,"showBottomDivider",null);
_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],c9.prototype,"hasChevronButtons",null);_.a([_.G("firstShownIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],c9.prototype,"previousButtonOverride",null);_.a([_.G("atEnd"),_.z("design:type",Object),_.z("design:paramtypes",[])],c9.prototype,"nextButtonOverride",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],c9.prototype,"isHomePage",null);
_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],c9.prototype,"thumbnailAriaHidden",null);_.a([_.G("data"),_.z("design:type",String),_.z("design:paramtypes",[])],c9.prototype,"entitySelectorType",null);_.a([_.A({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],c9);
_.YoX=_.GG()(c9,"ytd-rich-shelf-renderer",function(){if(NqX===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);NqX=W}W=NqX;return W},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.bD("kevlar_poly_si_batch_j028")?1:2});var xha;_.HI(_.T2,"yt-badge-view-model",{props:{data:_.pA,class:_.pA,workaroundShortsIsThumbnailBadge:_.pA,modern:_.pA}});_.HI(k81,"yt-slimline-survey-view-model",{props:{data:_.pA}});var B9=function(){var W=_.I.apply(this,arguments)||this;W.tileLottieAnimationRef={};W.backgroundLottieAnimationRef={};W.isOnHoverBehaviorForLottieEnabled=!0;W.useBiggerShowcaseImage=_.U("enable_desktop_search_bigger_thumbs");W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return W};
_.v(B9,_.I);_.t=B9.prototype;_.t.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.t.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"}}}};
_.t.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var W=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);W!==this.hasTile&&this.set("hasTile",W);W=this.hasLogo(this.data)||!!this.data.badgeText;W!==this.hasMetadata&&this.set("hasMetadata",W);W=this.data.overflowButton?!1:W;W!==this.showLogoImage&&this.set("showLogoImage",W);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.t.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.t.currentColorChanged=function(){this.updateButtonPalette()};
_.t.computeBackgroundStyle=function(W){if(W&&this.data){var l=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var V=_.F3((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);V&&l.push('background-image: url("'+V+'");')}var f;((f=W.basicColorData)==null?void 0:f.backgroundColor)!==void 0&&l.push("background-color: "+_.sD(W.basicColorData.backgroundColor)+";");return l.join("")}};
_.t.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W)};
_.t.getCurrentLogo=function(W,l){if(W)return l?W.darkLogoImage:W.lightLogoImage};
_.t.getCurrentStaticTileImage=function(W,l){if(this.hasStaticTile(W))return W.darkTileImage?l?W.darkTileImage:W.tileImage:W.tileImage};
_.t.computeTitleStyle=function(W){if(this.data&&this.data.title&&W&&W.basicColorData&&W.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.ta(W.basicColorData.foregroundTitleColor)+";"};
_.t.computeSubtitleStyle=function(W){if(this.data&&this.data.subtitle&&W&&W.basicColorData&&W.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.ta(W.basicColorData.foregroundBodyColor)+";"};
_.t.computeSupplementalStyle=function(W){if(this.data&&this.data.supplementalText&&W&&W.supplementalTextColor!==void 0)return W=_.ta(W.supplementalTextColor),"color:"+W+";--yt-endpoint-color:"+W+";--yt-endpoint-hover-color:"+W+";--yt-endpoint-visited-color:"+W+";--yt-formatted-string-bold-font-weight:700;"};
_.t.computeDismissIconStyle=function(W){var l,V;if((W==null?0:(l=W.dismissButtonColorData)==null?0:l.foregroundTitleColor)&&(W==null?0:(V=W.dismissButtonColorData)==null?0:V.backgroundColor))return"--yt-button-color:"+_.sD(W.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.sD(W.dismissButtonColorData.backgroundColor)+";"};
_.t.computeOverflowIconStyle=function(W){var l,V;if((W==null?0:(l=W.dismissButtonColorData)==null?0:l.foregroundTitleColor)&&(W==null?0:(V=W.dismissButtonColorData)==null?0:V.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.sD(W.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.sD(W.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.sD(W.dismissButtonColorData.foregroundTitleColor)+";"};
_.t.computeBannerStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.t.computeLocation=function(W){switch(W==null?void 0:W.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.t.shouldShowTileSection=function(W,l,V){return!this.shouldExpandLogo(W,l,V)&&l};
_.t.shouldShowExpandedLogoSection=function(W,l,V){return this.shouldExpandLogo(W,l,V)&&W!==void 0&&this.hasLogo(W)};
_.t.shouldExpandLogo=function(W,l,V){return W&&l?!1:V>=2};
_.t.hasStaticTile=function(W){return!(W==null||!W.tileImage)};
_.t.hasTileLottie=function(W){var l;return!!(W==null?0:(l=W.tileLottie)==null?0:l.url)};
_.t.hasLogo=function(W){return this.getCurrentLogo(W,this.isDarkTheme)!==void 0};
_.t.getLogoHeight=function(W){return this.logoWithPadding(W)?"26":"20"};
_.t.getExpandedLogoHeight=function(W){return this.logoWithPadding(W)?"31":"24"};
_.t.getLogoImageId=function(W){return this.logoWithPadding(W)?"logo-image-with-padding":"logo-image"};
_.t.getMaxTitleFontSize=function(W){return W.overrideTitleMaxFontSize?String(W.overrideTitleMaxFontSize):"36"};
_.t.hasBackgroundLottie=function(W){var l;return!!(W==null?0:(l=W.backgroundLottie)==null?0:l.url)};
_.t.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var W,l;(W=this.tileLottieAnimationRef)==null||(l=W.lottieEl)==null||l.play();var V,f;(V=this.backgroundLottieAnimationRef)==null||(f=V.lottieEl)==null||f.play()}};
_.t.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var W,l;(W=this.tileLottieAnimationRef)==null||(l=W.lottieEl)==null||l.pause();var V,f;(V=this.backgroundLottieAnimationRef)==null||(f=V.lottieEl)==null||f.pause()}};
_.t.pauseLottie=function(){var W,l;(W=this.tileLottieAnimationRef)==null||(l=W.lottieEl)==null||l.pause();var V,f;(V=this.backgroundLottieAnimationRef)==null||(f=V.lottieEl)==null||f.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.t.performPrimaryButtonAction=function(){var W,l,V;((W=this.data)==null?0:(l=W.primaryButton)==null?0:(V=l.buttonRenderer)==null?0:V.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.t.requestElementsPerRow=function(){_.FN(this.hostElement,"yt-request-elements-per-row")};
_.t.updateButtonPalette=function(){if(this.data&&this.currentColorData){var W;((W=this.data.dismissButton)==null?0:W.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 l;if((l=this.data.primaryButton)==null?0:l.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 V;if((V=this.data.secondaryButton)==
null?0:V.buttonRenderer)this.currentColorData.secondaryButtonColorData?(this.data.secondaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.secondaryButtonColorData},this.data.secondaryButton.buttonRenderer.style=void 0):this.currentColorData.secondaryButtonStyleType&&(this.data.secondaryButton.buttonRenderer.style=this.currentColorData.secondaryButtonStyleType,this.data.secondaryButton.buttonRenderer.colorData=void 0),this.set("secondaryButton",{buttonRenderer:Object.assign({},
this.data.secondaryButton.buttonRenderer)});var f;((f=this.data.primaryButton)==null?0:f.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var r;((r=this.data.secondaryButton)==null?0:r.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var R;((R=this.data.primaryButton)==null?0:R.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.t.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var W=this.getTileLottieDataBasedOnTheme(),l,V;if(W.url!==((l=this.tileLottiePlayerProps)==null?void 0:(V=l.animationConfig)==null?void 0:V.path)){var f,r;(f=this.tileLottieAnimationRef)==null||(r=f.lottieEl)==null||r.destroy();var R;this.isOnHoverBehaviorForLottieEnabled=!((R=W.settings)==null?0:R.autoplay);var y,P;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(P=(y=W.settings)==null?void 0:y.autoplay)!=null?P:!1,loop:this.getLottieLoopValue(W.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof W.url==="string"?this.tileLottiePlayerProps.animationConfig.path=W.url:this.tileLottiePlayerProps.animationConfig.animationData=W.url}}};
_.t.getOverflowButton=function(W){return _.k(W.overflowButton,TTL)};
_.t.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var W=this.getBackgroundLottieDataBasedOnTheme(),l,V;if(W.url!==((l=this.backgroundLottiePlayerProps)==null?void 0:(V=l.animationConfig)==null?void 0:V.path)){var f,r;(f=this.backgroundLottieAnimationRef)==null||(r=f.lottieEl)==null||r.destroy();var R;this.isOnHoverBehaviorForLottieEnabled=!((R=W.settings)==null?0:R.autoplay);var y,P;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(P=(y=W.settings)==null?void 0:y.autoplay)!=null?P:!1,loop:this.getLottieLoopValue(W.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof W.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=W.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
W.url}}};
_.t.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var W;((W=this.tileLottieAnimationRef)==null?void 0:W.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var l;((l=this.backgroundLottieAnimationRef)==null?void 0:l.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.t.getTileLottieDataBasedOnTheme=function(){var W;if(this.isDarkTheme&&((W=this.data)==null?0:W.darkThemeTileLottie))return this.data.darkThemeTileLottie;var l;return((l=this.data)==null?0:l.tileLottie)?this.data.tileLottie:{}};
_.t.getBackgroundLottieDataBasedOnTheme=function(){var W;if(this.isDarkTheme&&((W=this.data)==null?0:W.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var l;return((l=this.data)==null?0:l.backgroundLottie)?this.data.backgroundLottie:{}};
_.t.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W)};
_.t.getLottieLoopValue=function(W){return W?W.loop!==void 0?W.loop:W.loopCount?W.loopCount-1:!0:!0};
_.t.logoWithPadding=function(W){var l,V,f;return(W=(l=this.getCurrentLogo(W,this.isDarkTheme))==null?void 0:(V=l.thumbnails)==null?void 0:(f=V[0])==null?void 0:f.height)&&W%31===0?!0:!1};
B9.prototype.currentColorChanged=B9.prototype.currentColorChanged;B9.prototype.themeChanged=B9.prototype.themeChanged;B9.prototype.dataChanged=B9.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],B9.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],B9.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],B9.prototype,"ytdDismissibleItemBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],B9.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],B9.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],B9.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],B9.prototype,"primaryButton",void 0);_.a([_.b(),_.z("design:type",Object)],B9.prototype,"secondaryButton",void 0);
_.a([_.b({reflectToAttribute:!0,value:3}),_.z("design:type",Number)],B9.prototype,"elementsPerRow",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],B9.prototype,"isDarkTheme",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],B9.prototype,"hasTile",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],B9.prototype,"hasMetadata",void 0);
_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],B9.prototype,"showLogoImage",void 0);_.a([_.b(),_.z("design:type",Object)],B9.prototype,"currentColorData",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.z("design:type",String)],B9.prototype,"bannerStyle",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.z("design:type",String)],B9.prototype,"location",void 0);
_.a([_.b(),_.z("design:type",Object)],B9.prototype,"tileLottiePlayerProps",void 0);_.a([_.b(),_.z("design:type",Object)],B9.prototype,"tileLottieAnimationRef",void 0);_.a([_.b(),_.z("design:type",Object)],B9.prototype,"backgroundLottiePlayerProps",void 0);_.a([_.b(),_.z("design:type",Object)],B9.prototype,"backgroundLottieAnimationRef",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],B9.prototype,"useBiggerShowcaseImage",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],B9.prototype,"isHideEnclosingAction",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],B9.prototype,"dataChanged",null);_.a([_.zS("isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],B9.prototype,"themeChanged",null);
_.a([_.zS("currentColorData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],B9.prototype,"currentColorChanged",null);_.a([_.A({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],B9);
_.Z(B9,"ytd-statement-banner-renderer",function(){if(xha!==void 0)return xha;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return xha=W},{mode:1});var eve;var d2=function(){var W=_.I.apply(this,arguments)||this;W.isSearch=!1;W.hideShelfHeader=!1;W.engagementPanel=!1;W.disableMouseScroll=!0;W.useFloorScrolling=!0;W.modernTypography=_.U("web_modern_typography");return W};
_.v(d2,_.I);d2.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.wg("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.wg("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
d2.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
d2.prototype.onDataChanged=d2.prototype.onDataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],d2.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],d2.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],d2.prototype,"isSearch",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],d2.prototype,"hideShelfHeader",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],d2.prototype,"engagementPanel",void 0);_.a([_.b(),_.z("design:type",Object)],d2.prototype,"disableMouseScroll",void 0);_.a([_.b(),_.z("design:type",Object)],d2.prototype,"useFloorScrolling",void 0);_.a([_.b(),_.z("design:type",Object)],d2.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],d2.prototype,"modernTypography",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],d2.prototype,"onDataChanged",null);_.a([_.A({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],d2);
_.Z(d2,"ytd-reel-shelf-renderer",function(){if(eve!==void 0)return eve;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return eve=W},{mode:_.bD("kevlar_poly_si_batch_j028")?1:2});var qoc;var hvL;hvL=_.tj(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.Sok=_.dO(hvL);var ETv=_.Q(function(W){var l=W.data;W=W.useSmallFont;var V={},f={};return _.C("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.C(_.c,{cond:function(){return l().favicon},
then:function(r){return _.C(_.dN,{data:r,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.C("div",{class:"ytChannelExternalLinkViewModelContainer"},_.C(_.bH,{text:function(){return l().title},
className:_.If("ytChannelExternalLinkViewModelTitle",(V.ytChannelExternalLinkViewModelTitleSmallFont=W,V)),ellipsisTruncate:!0,userInput:!0}),_.C(_.bH,{text:function(){return l().link},
className:_.If("ytChannelExternalLinkViewModelLink",(f.ytChannelExternalLinkViewModelLinkSmallFont=W,f)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Zb");
ETv.idomCompat=!0;_.HI(ETv,"yt-channel-external-link-view-model",{props:{data:_.pA,useSmallFont:_.pA}});_.e1("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var JQ=function(){var W=_.I.apply(this,arguments)||this;W.revealButtonClass="button";W.businessEmailDisplayState="HIDE_SECTION";return W};
_.v(JQ,_.I);_.t=JQ.prototype;_.t.refit=function(){var W=this;_.yq(function(){_.bj(W.hostElement,"yt-refit-popups-action")});
_.V9(this,function(){_.bj(W.hostElement,"yt-refit-popups-action")})};
_.t.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.se(_.Sok),this.businessEmailDisplayState="CAPTCHA")};
_.t.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"};
_.t.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.t.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"}}}};
_.t.computeEmailHref=function(W){return"mailto:"+W};
_.t.computeSafeUrl=function(W){if(W)return _.NI(W)};
_.t.linkEndpoint=function(W){return _.k(W.onTap,_.VY)};
_.t.linkEndpointToHref=function(W){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(W))};
_.t.onYtServiceRequestCompleted=function(W){var l;if((l=W.detail.data)==null?0:l.businessEmail)this.businessEmail=W.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var V;if((V=W.detail.data)==null?0:V.errorMessage)this.businessEmailErrorMessage=W.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.t.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var W=this.JSC$16262_captchaTextarea.value;if(W){W={recaptcha_response_token:W,channel_id:this.metadata.channelId};var l=_.k(this.metadata.onBusinessEmailRevealClickCommand,_.VY);l&&this.ytComponentBehavior.resolveCommand(l,{form:W})}}};
_.t.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.rc.Object.defineProperties(JQ.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var W;return _.k((W=this.data)==null?void 0:W.metadata,eNe)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.k(this.metadata.businessEmailRevealButton,_.JJ)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var W=new URL(this.metadata.canonicalChannelUrl);return W.host+W.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 _.k(this.metadata.learnMoreOnTap,_.VY)}}});
JQ.prototype.onYtServiceRequestCompleted=JQ.prototype.onYtServiceRequestCompleted;JQ.prototype.businessEmailMetadataChanged=JQ.prototype.businessEmailMetadataChanged;JQ.prototype.refit=JQ.prototype.refit;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],JQ.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],JQ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.Aa("#g-recaptcha-response"),_.z("design:type",HTMLTextAreaElement)],JQ.prototype,"JSC$16262_captchaTextarea",void 0);_.a([_.b(),_.z("design:type",Object)],JQ.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],JQ.prototype,"revealButtonClass",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],JQ.prototype,"metadata",null);
_.a([_.G("metadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],JQ.prototype,"revealButton",null);_.a([_.G("metadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],JQ.prototype,"channelDisplayUrl",null);_.a([_.zS("metadata"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JQ.prototype,"refit",null);_.a([_.G("metadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],JQ.prototype,"formattedDescription",null);
_.a([_.G("metadata","learnMoreCommand"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],JQ.prototype,"shouldRendereVerifiedPhoneStatus",null);_.a([_.G("metadata"),_.z("design:type",Object),_.z("design:paramtypes",[])],JQ.prototype,"learnMoreCommand",null);_.a([_.b(),_.z("design:type",String)],JQ.prototype,"businessEmailDisplayState",void 0);_.a([_.b(),_.z("design:type",String)],JQ.prototype,"businessEmail",void 0);
_.a([_.b(),_.z("design:type",String)],JQ.prototype,"businessEmailErrorMessage",void 0);_.a([_.zS("metadata"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JQ.prototype,"businessEmailMetadataChanged",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],JQ.prototype,"onYtServiceRequestCompleted",null);_.a([_.A({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],JQ);
_.Z(JQ,"ytd-about-channel-renderer",function(){if(qoc!==void 0)return qoc;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return qoc=W},{mode:1});var $h9;var Dw=function(){return _.I.apply(this,arguments)||this};
_.v(Dw,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Dw.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Dw.prototype,"data",void 0);_.a([_.A({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Dw);
_.Z(Dw,"ytd-channel-list-sub-menu-avatar-renderer",function(){if($h9!==void 0)return $h9;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return $h9=W},{mode:1});var WdZ;var UI=function(){return _.I.apply(this,arguments)||this};
_.v(UI,_.I);UI.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],UI.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],UI.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],UI.prototype,"aligment",void 0);_.a([_.A({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],UI);
_.Z(UI,"ytd-channel-list-sub-menu-renderer",function(){if(WdZ!==void 0)return WdZ;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return WdZ=
W},{mode:1});var l6X;var u1=function(){return _.I.apply(this,arguments)||this};
_.v(u1,_.I);u1.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}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],u1.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],u1.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],u1.prototype,"data",void 0);_.a([_.A({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],u1);
_.Z(u1,"ytd-channel-sub-menu-renderer",function(){if(l6X!==void 0)return l6X;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return l6X=W},{mode:1});var VAk;var f69;var kx=function(){var W=_.I.apply(this,arguments)||this;W.isCompact=!1;return W};
_.v(kx,_.I);_.rc.Object.defineProperties(kx.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var W,l;return((l=_.k((W=this.data)==null?void 0:W.endpoint,_.x_))==null?void 0:l.target)==="TARGET_NEW_WINDOW"}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],kx.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],kx.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],kx.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],kx.prototype,"isCompact",void 0);_.a([_.G("isCompact"),_.z("design:type",Number),_.z("design:paramtypes",[])],kx.prototype,"thumbnailWidth",null);
_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kx.prototype,"openNewWindow",null);_.a([_.A({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],kx);
_.Z(kx,"ytd-media-lockup-renderer",function(){if(f69!==void 0)return f69;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return f69=W},{mode:1});var rEk;var v9=function(){return _.I.apply(this,arguments)||this};
_.v(v9,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],v9.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],v9.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],v9.prototype,"data",void 0);_.a([_.A({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],v9);
_.Z(v9,"ytd-structured-description-channel-lockup-renderer",function(){if(rEk!==void 0)return rEk;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return rEk=W},{mode:1});var RYM;var H9=function(){var W=_.I.apply(this,arguments)||this;W.isCompact=!1;W.collections=_.U("web_modern_collections_v2");W.collectionsStackColor=_.U("modernize_structured_description_playlist_lockups_v2");return W};
_.v(H9,_.I);H9.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:_.U("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.rc.Object.defineProperties(H9.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,l,V,f,r,R;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(W=this.data)==null?void 0:(l=W.thumbnail)==null?void 0:l.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(V=this.data)==null?void 0:(f=V.thumbnail)==null?void 0:f.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(r=this.data)==null?void 0:(R=r.thumbnail)==
null?void 0:R.vibrantColorPalette:void 0}}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],H9.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],H9.prototype,"componentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],H9.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],H9.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],H9.prototype,"showSidePanelThumbnailOverlay",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],H9.prototype,"isCompact",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],H9.prototype,"collections",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],H9.prototype,"collectionsStackColor",void 0);_.a([_.G("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],H9.prototype,"twoLineTitle",null);
_.a([_.G("data","collections","collectionsStackColor"),_.z("design:type",Object),_.z("design:paramtypes",[])],H9.prototype,"collectionStack",null);_.a([_.A({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],H9);
_.Z(H9,"ytd-structured-description-playlist-lockup-renderer",function(){if(RYM!==void 0)return RYM;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return RYM=W},{mode:1});var tAX;var K1=function(){return _.I.apply(this,arguments)||this};
_.v(K1,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],K1.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],K1.prototype,"data",void 0);_.a([_.A({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],K1);
_.Z(K1,"ytd-structured-description-video-lockup-renderer",function(){if(tAX!==void 0)return tAX;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return tAX=W},{mode:2});var F_=function(){return _.I.apply(this,arguments)||this};
_.v(F_,_.I);
F_.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}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],F_.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],F_.prototype,"data",void 0);_.a([_.A({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],F_);
_.Z(F_,"ytd-compact-infocard-renderer",function(){if(VAk!==void 0)return VAk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return VAk=W},{mode:1});var sGZ;var Gx=function(){var W=_.I.apply(this,arguments)||this;W.useModernCollectionsV2=_.U("web_modern_collections_v2");return W};
_.v(Gx,_.I);Gx.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.rc.Object.defineProperties(Gx.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.U("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.U("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.U("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Gx.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],Gx.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],Gx.prototype,"ytdReduxBehavior",void 0);_.a([_.b({selector:_.EZ}),_.z("design:type",Object)],Gx.prototype,"isGridViewEnabled",void 0);
_.a([_.G("isGridViewEnabled"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Gx.prototype,"watchFeedBigThumbs",null);_.a([_.G("isGridViewEnabled","data"),_.b({reflectToAttribute:!0,value:"168"}),_.z("design:type",String),_.z("design:paramtypes",[])],Gx.prototype,"thumbnailWidth",null);_.a([_.G("isGridViewEnabled","data"),_.b({reflectToAttribute:!0,value:"94"}),_.z("design:type",String),_.z("design:paramtypes",[])],Gx.prototype,"customThumbnailSize",null);
_.a([_.b(),_.z("design:type",Object)],Gx.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Gx.prototype,"useModernCollectionsV2",void 0);_.a([_.A({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],Gx);
_.Z(Gx,"ytd-compact-playlist-renderer",function(){if(sGZ!==void 0)return sGZ;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return sGZ=W},{mode:1});var LdB;var b1=function(){var W=_.I.apply(this,arguments)||this;W.darkerDarkTheme=_.U("web_darker_dark_theme");W.roundedContainer=!0;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return W};
_.v(b1,_.I);_.t=b1.prototype;_.t.attached=function(){this.requestElementsPerRow()};
_.t.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"}}}};
_.t.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.t.computeViewStyle=function(W){return W.style?W.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.t.onUpdateElementsPerRowAction=function(W){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&W===1};
_.t.requestElementsPerRow=function(){_.FN(this.hostElement,"yt-request-elements-per-row")};
b1.prototype.dataChanged=b1.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],b1.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],b1.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],b1.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],b1.prototype,"actionHandlerBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],b1.prototype,"data",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],b1.prototype,"hideThumbnail",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.z("design:type",String)],b1.prototype,"viewStyle",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],b1.prototype,"darkerDarkTheme",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],b1.prototype,"roundedContainer",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],b1.prototype,"dataChanged",null);_.a([_.A({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],b1);
_.Z(b1,"ytd-compact-promoted-item-renderer",function(){if(LdB!==void 0)return LdB;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return LdB=W},{mode:1});var yEc;var p1=function(){var W=_.I.apply(this,arguments)||this;W.collections=_.U("web_modern_collections_v2");return W};
_.v(p1,_.I);p1.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
p1.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
p1.prototype.onYtNavigate=function(W,l){var V=this;if(l.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",l)){var f=this.get("watchEndpoint.videoId",l.endpoint),r=_.bj(this.hostElement,"yt-get-current-video-id-action")[0];_.U("kevlar_mix_handle_first_endpoint_different")&&f&&r&&f!==r||(W.stopPropagation(),_.Dy().getPlayerPromise().then(function(R){if(R.getPlayerState()===0&&V.data.secondaryNavigationEndpoint)var y=V.data.secondaryNavigationEndpoint;else{y=
Object.assign({},l.endpoint);var P=_.k(y.commandMetadata,_.XN);P&&(R=Math.floor(R.getCurrentTime()),P.url=_.$2(P.url,{t:R}),!_.U("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(P=_.k(y,_.Bh)))&&(P.startTimeSeconds=R)}_.FN(V.hostElement,"yt-navigate",{endpoint:y})}))}};
_.rc.Object.defineProperties(p1.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.U("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.U("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,l,V,f,r,R;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(W=this.data)==null?void 0:(l=W.thumbnail)==null?void 0:l.sampledThumbnailColor,vibrantColorPalette:(V=this.data)==null?void 0:(f=V.thumbnail)==null?void 0:f.vibrantColorPalette,darkColorPalette:(r=this.data)==null?void 0:(R=r.thumbnail)==null?void 0:R.darkColorPalette,experimentEnabled:this.collections}}}});
p1.prototype.onYtNavigate=p1.prototype.onYtNavigate;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.qq.YtEndpointBehavior),_.z("design:type",Object)],p1.prototype,"ytEndpointBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],p1.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],p1.prototype,"ytdDismissibleItemBehavior",void 0);
_.a([_.F(_.FK),_.z("design:type",Object)],p1.prototype,"ytdLockupBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],p1.prototype,"ytdReduxBehavior",void 0);_.a([_.b({selector:_.EZ}),_.z("design:type",Object)],p1.prototype,"isGridViewEnabled",void 0);_.a([_.G("isGridViewEnabled"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],p1.prototype,"watchFeedBigThumbs",null);
_.a([_.G("isGridViewEnabled"),_.b({reflectToAttribute:!0}),_.z("design:type",String),_.z("design:paramtypes",[])],p1.prototype,"thumbnailWidth",null);_.a([_.b(),_.z("design:type",Object)],p1.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],p1.prototype,"collections",void 0);_.a([_.G("data","collections"),_.z("design:type",Object),_.z("design:paramtypes",[])],p1.prototype,"collectionStack",null);
_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],p1.prototype,"onYtNavigate",null);_.a([_.A({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],p1);
_.Z(p1,"ytd-compact-radio-renderer",function(){if(yEc!==void 0)return yEc;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return yEc=W},{mode:1});var gy$;var oT=function(){return _.I.apply(this,arguments)||this};
_.v(oT,_.I);oT.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
oT.prototype.computeRendererStyle=function(W){return W.style?W.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.a([_.b(),_.z("design:type",Object)],oT.prototype,"data",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],oT.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],oT.prototype,"rendererBehavior",void 0);_.a([_.b({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.z("design:type",String)],oT.prototype,"rendererStyle",void 0);_.a([_.A({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],oT);
_.Z(oT,"ytd-compact-text-promo-renderer",function(){if(gy$!==void 0)return gy$;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return gy$=W},{mode:1});var PuX;var jj=function(){var W=_.I.apply(this,arguments)||this;W.isShortsStyle=!1;return W};
_.v(jj,_.I);_.t=jj.prototype;_.t.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"}}}};
_.t.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.FN(this.hostElement,"yt-disable-lockup-interaction"):_.FN(this.hostElement,"yt-enable-lockup-interaction"))};
_.t.isMetaBlockEmpty=function(W){return!W||!W.longBylineText&&!W.shortBylineText&&!W.shortViewCountText&&!W.viewCountText};
_.t.computeHasOneLineTitle=function(W){return this.forceOneLineTitle||!(W==null||!W.buttons)};
_.t.computeDisableInteraction=function(){var W;return!((W=this.data)==null?0:W.navigationEndpoint)};
_.t.hasSingularTopStandaloneBadge=function(){var W;return!((W=this.data)==null||!W.topStandaloneBadge)};
_.rc.Object.defineProperties(jj.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.U("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.U("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 W;return this.hasSingularTopStandaloneBadge()?[(W=this.data)==null?void 0:W.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var W;return this.shouldShowTopBadges?((W=this.data)==null?void 0:W.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
jj.prototype.disableInteractionChanged=jj.prototype.disableInteractionChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],jj.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],jj.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],jj.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.F(_.FK),_.z("design:type",Object)],jj.prototype,"ytdLockupBehavior",void 0);
_.a([_.F(_.dx),_.z("design:type",Object)],jj.prototype,"ytdReduxBehavior",void 0);_.a([_.b({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.z("design:type",Boolean)],jj.prototype,"metaBlockEmpty",void 0);_.a([_.b({selector:_.EZ}),_.z("design:type",Object)],jj.prototype,"isGridViewEnabled",void 0);_.a([_.G("isGridViewEnabled"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],jj.prototype,"watchFeedBigThumbs",null);
_.a([_.G("isGridViewEnabled"),_.b({reflectToAttribute:!0}),_.z("design:type",String),_.z("design:paramtypes",[])],jj.prototype,"thumbnailWidth",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jj.prototype,"isShortsStyle",void 0);_.a([_.b(),_.z("design:type",Object)],jj.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.z("design:type",Boolean)],jj.prototype,"hasOneLineTitle",void 0);
_.a([_.b(),_.z("design:type",Boolean)],jj.prototype,"hideThumbnail",void 0);_.a([_.b(),_.z("design:type",Boolean)],jj.prototype,"forceOneLineTitle",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.z("design:type",Boolean)],jj.prototype,"disableInteraction",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],jj.prototype,"musicMetadataVideoLockup",void 0);
_.a([_.TS("disableInteraction"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jj.prototype,"disableInteractionChanged",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],jj.prototype,"shouldShowTopBadges",null);_.a([_.G("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],jj.prototype,"topBadges",null);
_.a([_.G("shouldShowTopBadges","data"),_.z("design:type",Array),_.z("design:paramtypes",[])],jj.prototype,"inlineMetadataBadges",null);_.a([_.G("shouldShowTopBadges"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],jj.prototype,"shouldShowBadgesBelowMetadata",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],jj.prototype,"compactTitleClass",null);_.a([_.A({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],jj);
_.Z(jj,"ytd-compact-video-renderer",function(){if(PuX!==void 0)return PuX;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return PuX=W},{mode:_.bD("kevlar_poly_si_batch_j067")?1:2});var nyM;_.e1("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var IT=function(){return _.I.apply(this,arguments)||this};
_.v(IT,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],IT.prototype,"data",void 0);_.a([_.A({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],IT);
_.Z(IT,"ytd-counterfactual-renderer",function(){if(nyM!==void 0)return nyM;var W=document.createElement("template");_.K(W,"\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");W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return nyM=W},{mode:1});var CuM;var i1=function(){var W=_.I.apply(this,arguments)||this;W.hidden=!1;return W};
_.v(i1,_.I);i1.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.tY().resolve(_.s6).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
i1.prototype.computeHidden=function(W){return!!W};
_.rc.Object.defineProperties(i1.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}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],i1.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],i1.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.z("design:type",Object)],i1.prototype,"hidden",void 0);_.a([_.G("data.label"),_.z("design:type",String),_.z("design:paramtypes",[])],i1.prototype,"label",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],i1.prototype,"value",null);
_.a([_.A({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],i1);
_.Z(i1,"ytd-dropdown-item-renderer",function(){if(CuM!==void 0)return CuM;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return CuM=W},{mode:1});var cEL;var BFe;var mI=function(){return _.I.apply(this,arguments)||this};
_.v(mI,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],mI.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],mI.prototype,"data",void 0);_.a([_.b({computed:"getSimpleString(data.label)"}),_.z("design:type",String)],mI.prototype,"label",void 0);_.a([_.A({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],mI);
_.Z(mI,"ytd-navigation-dropdown-item-renderer",function(){if(BFe!==void 0)return BFe;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return BFe=W},{mode:1});var X_=function(){var W=_.I.apply(this,arguments)||this;W.disabled=!1;W.value="";W.noLabelFloat=!1;W.noUnderline=!1;W.usePrimaryColor=!1;W.hasBackground=!1;W.verticalAlign="top";W.autosize=!1;W.minAutosizeWidth=100;W.autosizeFont="14px Roboto";return W};
_.v(X_,_.I);_.t=X_.prototype;_.t.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"}}}};
_.t.open=function(){this.inputEl.open()};
_.t.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.t.dataChanged=function(){this.reset()};
_.t.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.GD("value-changed",this.value))};
_.t.stopPropagation=function(W){W.stopPropagation()};
_.t.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var W=this.canvas.getContext("2d");W&&(W.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(W.measureText(this.inputEl.value).width)+24)+"px")}};
_.t.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var W=0,l=this.data.entries.length;W<l;W++){var V=this.data.entries[W],f;for(f in V)if(V.hasOwnProperty(f)){var r=V[f];if("isSelected"in r&&r.isSelected)return"stringValue"in r?r.stringValue||"":"int32Value"in r?r.int32Value||0:0}}return null};
_.t.updateValueFromBinding=function(W){this.value=W.detail.value};
_.rc.Object.defineProperties(X_.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 W=0,l=this.data.entries.length;W<l;W++){var V=this.data.entries[W],f;for(f in V)if(V.hasOwnProperty(f)){var r=V[f];if("isSelected"in r&&r.isSelected&&"label"in r)return this.ytRendererBehavior.getSimpleString(r.label)}}return null}}});
X_.prototype.autoSizeLabel=X_.prototype.autoSizeLabel;X_.prototype.stopPropagation=X_.prototype.stopPropagation;X_.prototype.valueChangedForBinding=X_.prototype.valueChangedForBinding;X_.prototype.dataChanged=X_.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],X_.prototype,"ytRendererStamperBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],X_.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X_.prototype,"disabled",void 0);_.a([_.b(),_.z("design:type",Object)],X_.prototype,"value",void 0);_.a([_.b(),_.z("design:type",Object)],X_.prototype,"noLabelFloat",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X_.prototype,"noUnderline",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],X_.prototype,"theme",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X_.prototype,"usePrimaryColor",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X_.prototype,"hasBackground",void 0);_.a([_.b(),_.z("design:type",Object)],X_.prototype,"verticalAlign",void 0);_.a([_.b(),_.z("design:type",Object)],X_.prototype,"autosize",void 0);_.a([_.b(),_.z("design:type",Object)],X_.prototype,"minAutosizeWidth",void 0);_.a([_.b(),_.z("design:type",Object)],X_.prototype,"autosizeFont",void 0);
_.a([_.Aa("#entries"),_.z("design:type",Object)],X_.prototype,"entries",void 0);_.a([_.Aa("#input"),_.z("design:type",Object)],X_.prototype,"inputEl",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X_.prototype,"dataChanged",null);_.a([_.zS("value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X_.prototype,"valueChangedForBinding",null);
_.a([_.XI("iron-overlay-opened"),_.XI("iron-overlay-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],X_.prototype,"stopPropagation",null);_.a([_.XI("iron-select"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X_.prototype,"autoSizeLabel",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],X_.prototype,"label",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],X_);
_.Z(X_,"ytd-dropdown-renderer",function(){if(cEL!==void 0)return cEL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return cEL=W},{mode:1});var doa;var Tx=function(){var W=_.I.apply(this,arguments)||this;W.isConstrainedList=!1;return W};
_.v(Tx,_.I);Tx.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"}}}};
Tx.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
Tx.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
Tx.prototype.computeViewAllHidden=function(W,l){return W||!l.viewAllEndpoint};
Tx.prototype.fillRestIfNoShowMore=Tx.prototype.fillRestIfNoShowMore;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Tx.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Tx.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.AM.YtLazyListBehavior),_.z("design:type",Object)],Tx.prototype,"ytLazyListBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Tx.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Tx.prototype,"isConstrainedList",void 0);_.a([_.zS("data","canShowMore"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Tx.prototype,"fillRestIfNoShowMore",null);_.a([_.A({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],Tx);
_.Z(Tx,"ytd-expanded-shelf-contents-renderer",function(){if(doa!==void 0)return doa;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return doa=W},{mode:_.bD("kevlar_poly_si_batch_j025")?1:2});var JEa;var w2=function(){return _.I.apply(this,arguments)||this};
_.v(w2,_.I);w2.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}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],w2.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],w2.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],w2.prototype,"data",void 0);_.a([_.A({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],w2);
_.Z(w2,"ytd-feed-channel-filter-header-renderer",function(){if(JEa!==void 0)return JEa;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return JEa=W},{mode:1});var Doc;var Uo1;var usk;var AQ=function(){return _.I.apply(this,arguments)||this};
_.v(AQ,_.I);_.t=AQ.prototype;_.t.onClick=function(W){var l,V=(l=this.data)==null?void 0:l.sectionEndpoint;!_.Cv(_.d_(W),this.hostElement,["A".toString()])&&V&&_.FN(this.hostElement,"yt-navigate",{endpoint:V})};
_.t.computeHasSectionEndpoint=function(W){return(W==null?void 0:W.sectionEndpoint)!==void 0};
_.t.computeShowHeaderAsLink=function(W){return(W==null?void 0:W.header)!==void 0&&(W==null?void 0:W.sectionEndpoint)!==void 0};
_.t.computeShowSubheaderAsLink=function(W){return(W==null?void 0:W.subheader)!==void 0&&(W==null?void 0:W.sectionEndpoint)!==void 0&&(W==null?void 0:W.header)===void 0};
_.t.getHeaderAsLinkClass=function(W){var l=[],V;(W==null?0:(V=W.headerIcon)==null?0:V.iconType)&&l.push("header-link-active");return l.join(" ")};
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],AQ.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],AQ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],AQ.prototype,"data",void 0);
_.a([_.b({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],AQ.prototype,"hasSectionEndpoint",void 0);_.a([_.b({computed:"computeShowHeaderAsLink(data)"}),_.z("design:type",Boolean)],AQ.prototype,"showHeaderAsLink",void 0);_.a([_.b({computed:"computeShowSubheaderAsLink(data)"}),_.z("design:type",Boolean)],AQ.prototype,"showSubheaderAsLink",void 0);_.a([_.A({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],AQ);
_.Z(AQ,"ytd-medical-panel-section-renderer",function(){if(usk!==void 0)return usk;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return usk=W},{mode:1});var Q$=function(){var W=_.I.apply(this,arguments)||this;W.isExpanded=!1;W.roundedContainer=!0;W.skipRoundingTop=!1;W.toggleExpandableSection=function(){W.isExpanded=!W.isExpanded};
return W};
_.v(Q$,_.I);
Q$.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]]"}}}}}};
Q$.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
Q$.prototype.dataChanged=Q$.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Q$.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Q$.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Q$.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Q$.prototype,"isExpanded",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Q$.prototype,"roundedContainer",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Q$.prototype,"skipRoundingTop",void 0);_.a([_.b(),_.z("design:type",Object)],Q$.prototype,"toggleExpandableSection",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Q$.prototype,"dataChanged",null);_.a([_.A({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Q$);
_.Z(Q$,"ytd-medical-panel-content-renderer",function(){if(Uo1!==void 0)return Uo1;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Uo1=W},{mode:1});_.e1("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var Mj=function(){var W=_.I.apply(this,arguments)||this;W.roundedContainer=!0;W.amsterdamEnabled=_.U("enable_desktop_amsterdam_info_panels");W.hasTitle=!1;W.linkIcon="OPEN_IN_NEW";W.isDismissed=!1;return W};
_.v(Mj,_.I);
Mj.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"}}}};
Mj.prototype.computeHasTitle=function(W){return!(W==null||!W.title)};
Mj.prototype.onClick=function(W){var l,V=(l=this.data)==null?void 0:l.headerEndpoint;!_.Cv(_.d_(W),this.hostElement,["BUTTON".toString()])&&V&&this.ytComponentBehavior.resolveCommand(V)};
_.rc.Object.defineProperties(Mj.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 W;return((W=this.data)==null?void 0:W.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.data)==null?void 0:W.disableBottomDivider)||!((l=this.data)==null?0:l.title)}}});
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Mj.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Mj.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Mj.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],Mj.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Mj.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Mj.prototype,"roundedContainer",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Mj.prototype,"amsterdamEnabled",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.z("design:type",Object)],Mj.prototype,"hasTitle",void 0);
_.a([_.b({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.G("data.background"),_.z("design:type",Object),_.z("design:paramtypes",[])],Mj.prototype,"background",null);_.a([_.b({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.G("data.titleStyle"),_.z("design:type",Object),_.z("design:paramtypes",[])],Mj.prototype,"titleStyle",null);
_.a([_.b({type:_.U("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.G("data.titleStyle"),_.z("design:type",Object),_.z("design:paramtypes",[])],Mj.prototype,"showLinkIcon",null);_.a([_.b(),_.z("design:type",String)],Mj.prototype,"linkIcon",void 0);_.a([_.b({type:_.U("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Mj.prototype,"hideDivider",null);
_.a([_.b({selectorArgs:["data.dismissStateEntityKey"],selector:function(W,l){W=_.mL(W.entities,"dismissState",l);return(W==null?void 0:W.isDismissed)||(W==null?void 0:W.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(W==null?void 0:W.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.z("design:type",Object)],Mj.prototype,"isDismissed",void 0);_.a([_.A({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],Mj);
_.Z(Mj,"ytd-info-panel-container-renderer",function(){if(Doc!==void 0)return Doc;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Doc=W},{mode:1});var kHL;_.e1("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var Zw=function(){var W=_.I.apply(this,arguments)||this;W.modernTypography=_.U("web_modern_typography");return W};
_.v(Zw,_.I);Zw.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Zw.prototype.computeStyle=function(W){return W?W:""};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Zw.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Zw.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Zw.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.z("design:type",String)],Zw.prototype,"titleStyle",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Zw.prototype,"modernTypography",void 0);_.a([_.A({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],Zw);
_.Z(Zw,"ytd-item-section-header-renderer",function(){if(kHL!==void 0)return kHL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return kHL=W},{mode:1});var vyI;var HTk,Kdc=function(){return HTk!==void 0?HTk:HTk=document.createElement("template")};
document.head.appendChild(Kdc().content);var Fdk;_.OI=new _.vd("VOTING_ANIMATION_CONTROLLER_TOKEN");var bTM=_.Q(function(W){var l=W.data;var V=_.WS("div"),f=_.WS("div");W=_.L(_.J4("VOTE_STATUS_NONE",void 0,"YPH5mf"));var r=W.next().value,R=W.next().value,y=_.wH(R$Y,function(){var D;return(D=l())==null?void 0:D.entityKey}),P=_.U("web_enable_voting_animation")||_.U("enable_music_web_cairo_voting_animation");
_.mw(function(){var D;((D=l().initialState)==null?0:D.status)&&R(l().initialState.status)});
var n=function(){var D,u,H=(u=(D=l().initialState)==null?void 0:D.votes)!=null?u:0,p;D=(p=l().initialState)==null?void 0:p.status;return D==="VOTE_STATUS_UPVOTED"?H-1:D==="VOTE_STATUS_DOWNVOTED"?H+1:H},B=function(){return r()==="VOTE_STATUS_UPVOTED"?n()+1:r()==="VOTE_STATUS_DOWNVOTED"?n()-1:n()},d=function(D){var u=D?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
R(u);var H=B(),p=_.tY().resolve(_.R0(_.OI)),X=y();X&&(D&&(X==null?0:X.upvoteDefaultButtonOnTap)?_.sZ(X.upvoteDefaultButtonOnTap,{form:{element:V.value},disableClickTracking:!0}):(X==null?0:X.upvoteToggledButtonOnTap)&&_.sZ(X.upvoteToggledButtonOnTap,{form:{element:V.value},disableClickTracking:!0}));var w;D=(w=X==null?void 0:X.enableOptimisticReordering)!=null?w:l().enableOptimisticReordering;P&&p&&l().itemId&&D&&GHe(p,l().itemId,H,u)},J=function(D){var u=D?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
R(u);var H=B(),p=_.tY().resolve(_.R0(_.OI)),X=y();X&&(D&&(X==null?0:X.downvoteDefaultButtonOnTap)?_.sZ(X.downvoteDefaultButtonOnTap,{form:{element:f.value},disableClickTracking:!0}):(X==null?0:X.downvoteToggledButtonOnTap)&&_.sZ(X.downvoteToggledButtonOnTap,{form:{element:f.value},disableClickTracking:!0}));var w;D=(w=X==null?void 0:X.enableOptimisticReordering)!=null?w:l().enableOptimisticReordering;P&&p&&l().itemId&&D&&GHe(p,l().itemId,H,u)};
W={};W=_.If("ytVotingViewModelVoteCount",(W.ytVotingViewModelVoteCountDisabled=function(){return l().isDisabled},W));
return _.C("voting-view-model",{class:"ytVotingViewModelHost"},_.C("div",{el:V},_.C(_.QH,{data:function(){var D=_.k(l().upvoteButton,_.Ub);return{toggleButtonViewModel:Object.assign({},D,{isToggled:r()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(D){return _.C(_.gy,{data:D.data,
onToggle:d})}})),_.C("div",{class:W},function(){var D,u,H;
return r()==="VOTE_STATUS_UPVOTED"?(D=l().initialState)==null?void 0:D.compactVotesUpvoted:r()==="VOTE_STATUS_DOWNVOTED"?(u=l().initialState)==null?void 0:u.compactVotesDownvoted:(H=l().initialState)==null?void 0:H.compactVotes}),_.C("div",{el:f},_.C(_.QH,{data:function(){var D=_.k(l().downvoteButton,_.Ub);
return{toggleButtonViewModel:Object.assign({},D,{isToggled:r()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(D){return _.C(_.gy,{data:D.data,
onToggle:J})}})))},"$b");_.HI(_.Q(function(W){var l=W.data;return _.C("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.C("div",{class:_.If("ytEngagementBarViewModelEngagementBarWrapper",W.className)},_.C(_.QH,{data:function(){return l().actions}},{votingViewModel:bTM})))},"ac"),"engagement-bar-view-model",{props:{data:_.pA,
className:_.pA}});var aT=function(){var W=_.I.apply(this,arguments)||this;W.playlistVotingAnimationEnabled=_.U("web_enable_voting_animation");W.downloadProgress=0;W.transferState="TRANSFER_STATE_UNKNOWN";W.downloadState="DOWNLOAD_STATE_UNKNOWN";W.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";W.offlineVideoPolicyExpirationTimestamp=0;return W};
_.v(aT,_.I);_.t=aT.prototype;_.t.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"}}}};
_.t.canReorderChanged=function(){this.persistentDragHandle=_.U("kevlar_playlist_drag_handles")&&this.canReorder};
_.t.onDrag=function(){if(this.thumbnail){var W=_.GS(this.thumbnail).querySelector("yt-image");W&&(W.shouldRenderLazy=!1)}};
_.t.onMenuOverlayChanged=function(W,l){this.menuOpened=l};
_.t.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.t.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.t.onContentsTap=function(W){var l,V=(l=this.data)==null?void 0:l.serviceEndpoints;if(V&&V.length===1&&_.k(V[0],n5U)&&!_.Cv(_.d_(W),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(V[0]);else{var f;(l=(f=this.data)==null?void 0:f.navigationEndpoint)&&_.U("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?pv1(_.tY().resolve(_.Sl),l):(_.hJ().playlistSuggestionsShelfActivation=
!0,_.oy9(_.tY().resolve(_.Sl),l)):l&&!_.Cv(_.d_(W),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.U("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.FN(this.hostElement,"yt-navigate",{endpoint:l}):this.ytComponentBehavior.resolveCommand(l))}};
_.t.computeStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.t.computeThumbnailWidth=function(W){return W==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.t.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=yPU(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))}};
_.t.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.t.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.t.dataChanged=function(){if(this.data){var W,l,V,f=((W=this.downloadRenderData)==null?void 0:W.badges)&&((l=this.downloadRenderData)==null?void 0:l.badges)!==((V=this.data)==null?void 0:V.badges),r,R,y;W=((r=this.downloadRenderData)==null?void 0:r.thumbnailOverlays)&&((R=this.downloadRenderData)==null?void 0:R.thumbnailOverlays)!==((y=this.data)==null?void 0:y.thumbnailOverlays);(!this.downloadRenderData||f||W)&&this.downloadStateChanged()}};
_.t.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var W,l,V=(W=this.data.menu)==null?void 0:(l=W.menuRenderer)==null?void 0:l.items;if(V)for(W=_.L(V),l=W.next();!l.done;l=W.next())if(l=l.value,V=void 0,_.k((V=l.menuServiceItemRenderer)==null?void 0:V.serviceEndpoint,_.gT)){var f=V=void 0,r=void 0;l=(V=l)==null?void 0:(f=V.menuServiceItemRenderer)==null?void 0:(r=f.serviceEndpoint)==null?void 0:r.playlistEditEndpoint;r=f=void 0;if(V=(f=l)==null?void 0:(r=f.actions)==null?void 0:
r[0])f=void 0,V.setVideoId=(f=this.data)==null?void 0:f.setVideoId;r=f=V=void 0;if(l=(V=l)==null?void 0:(f=V.clientActions)==null?void 0:(r=f[0])==null?void 0:r.playlistRemoveVideosAction)V=void 0,l.setVideoIds=[(V=this.data)==null?void 0:V.setVideoId]}}};
_.rc.Object.defineProperties(aT.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
aT.prototype.setVideoIdChanged=aT.prototype.setVideoIdChanged;aT.prototype.dataChanged=aT.prototype.dataChanged;aT.prototype.downloadStateChanged=aT.prototype.downloadStateChanged;aT.prototype.onMenuOverlayChanged=aT.prototype.onMenuOverlayChanged;aT.prototype.canReorderChanged=aT.prototype.canReorderChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],aT.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],aT.prototype,"ytdReduxBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],aT.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.FK),_.z("design:type",Object)],aT.prototype,"ytdLockupBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],aT.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],aT.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],aT.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],aT.prototype,"canReorder",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],aT.prototype,"menuOpened",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],aT.prototype,"handleIsHovered",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],aT.prototype,"persistentDragHandle",void 0);_.a([_.b(),_.z("design:type",Object)],aT.prototype,"downloadRenderData",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],aT.prototype,"styleType",void 0);_.a([_.b({computed:"computeThumbnailWidth(data.style)"}),_.z("design:type",Number)],aT.prototype,"thumbnailWidth",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],aT.prototype,"isDownloads",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],aT.prototype,"playlistVotingAnimationEnabled",void 0);
_.a([_.b({selector:t5,selectorArgs:["data.videoId"]}),_.z("design:type",Object)],aT.prototype,"downloadProgress",void 0);_.a([_.b(),_.z("design:type",Number)],aT.prototype,"relativeDateReference",void 0);_.a([_.b({selector:_.rE,selectorArgs:["data.videoId"]}),_.z("design:type",Object)],aT.prototype,"transferState",void 0);_.a([_.b({selector:VXz,selectorArgs:["data.videoId"]}),_.z("design:type",Object)],aT.prototype,"downloadState",void 0);
_.a([_.b({selector:Z6U,selectorArgs:["data.videoId"]}),_.z("design:type",Object)],aT.prototype,"offlinePolicyAction",void 0);_.a([_.b({selector:O6F,selectorArgs:["data.videoId"]}),_.z("design:type",Object)],aT.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.a([_.b({selector:zmS,selectorArgs:["data.videoId"]}),_.z("design:type",Object)],aT.prototype,"entityInfo",void 0);_.a([_.b({selector:_.l0}),_.z("design:type",Boolean)],aT.prototype,"miniplayerIsActive",void 0);
_.a([_.G("data"),_.z("design:type",String),_.z("design:paramtypes",[])],aT.prototype,"playlistVideoId",null);_.a([_.Aa("#thumbnail"),_.z("design:type",Object)],aT.prototype,"thumbnail",void 0);_.a([_.zS("canReorder"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],aT.prototype,"canReorderChanged",null);
_.a([_.XI("yt-menu-overlay-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Boolean]),_.z("design:returntype")],aT.prototype,"onMenuOverlayChanged",null);_.a([_.zS("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],aT.prototype,"downloadStateChanged",null);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],aT.prototype,"dataChanged",null);_.a([_.zS("data.setVideoId"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],aT.prototype,"setVideoIdChanged",null);_.a([_.A({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],aT);
_.Z(aT,"ytd-playlist-video-renderer",function(){if(Fdk!==void 0)return Fdk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);W.content.insertBefore(Kdc().content.cloneNode(!0),W.content.firstChild);return Fdk=W},{mode:1});var jGk;var zx=function(){return _.I.apply(this,arguments)||this};
_.v(zx,_.I);_.a([_.b(),_.z("design:type",Object)],zx.prototype,"data",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],zx.prototype,"rendererBehavior",void 0);_.a([_.A({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],zx);
_.Z(zx,"ytd-premium-browse-footer-renderer",function(){if(jGk!==void 0)return jGk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return jGk=W},{mode:1});var I6k;var Nj=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return W};
_.v(Nj,_.I);_.t=Nj.prototype;_.t.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.t.handleDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.t.computeHeaderLogoThumbnail=function(W,l){if(W)return l?W.darkLogo:W.lightLogo};
_.t.computeHeaderLogoHeight=function(W,l){var V,f,r;return(W=(V=this.computeHeaderLogoThumbnail(W,l))==null?void 0:(f=V.thumbnails)==null?void 0:(r=f[0])==null?void 0:r.height)&&W%31===0?"31":"24"};
_.t.computeHeaderLogoMarginBottom=function(W,l){return this.computeHeaderLogoHeight(W,l)==="24"?"0":"-7"};
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Nj.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Nj.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Nj.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Boolean)],Nj.prototype,"isDarkTheme",void 0);_.a([_.b({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.z("design:type",Object)],Nj.prototype,"themeLogo",void 0);
_.a([_.b({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.z("design:type",String)],Nj.prototype,"logoHeight",void 0);_.a([_.b({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.z("design:type",String)],Nj.prototype,"logoMarginBottom",void 0);_.a([_.A({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Nj);
_.Z(Nj,"ytd-primetime-promo-header-renderer",function(){if(I6k!==void 0)return I6k;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return I6k=W},{mode:1});var iTB;var XvI=_.Q(function(W){var l=_.ip(function(r){var R;(R=W.onClick)==null||R.call(W,r)}),V={},f={};
return _.C("yt-shelf-header-layout",{class:_.If("shelf-header-layout-wiz",(V["shelf-header-layout-wiz--disable-horizontal-padding"]=W.disableHorizontalPadding,V["shelf-header-layout-wiz--disable-vertical-padding"]=W.disableVerticalPadding,V["shelf-header-layout-wiz--responsive"]=W.useResponsiveLayout,V["shelf-header-layout-wiz--narrow"]=function(){var r,R;return((r=W.useResponsiveLayout)==null?void 0:r.call(W))&&((R=W.forceSmallLayout)==null?void 0:R.call(W))},V["shelf-header-layout-wiz--is-overlay"]=
W.isOverlay,V["shelf-header-layout-wiz--tappable"]=W.isInteractive,V)),
"on:click":l,tabindex:function(){var r;return((r=W.isInteractive)==null?0:r.call(W))?0:void 0}},_.C(_.c,{cond:W.leadingIcon,
then:function(r){return _.C("div",{class:"shelf-header-layout-wiz__leading-icon"},_.C(_.wN,{icon:r}))},
else:function(){return _.C(_.c,{cond:W.hasLeadingImage,then:function(){var r,R={};return _.C("div",{class:_.If("shelf-header-layout-wiz__leading-image",(R["shelf-header-layout-wiz__leading-image--circular-image"]=W.circularImage,R))},(r=W.leadingImage)==null?void 0:r.call(W))}})}}),_.C("div",{class:"shelf-header-layout-wiz__label-container"},_.C(_.c,{cond:W.hasSuperlabel,
then:function(){var r;return _.C("div",{class:"shelf-header-layout-wiz__superlabel"},(r=W.superlabel)==null?void 0:r.call(W))}}),_.C("div",{class:"shelf-header-layout-wiz__title-row"},_.C(moX,{text:W.title,
className:_.If("shelf-header-layout-wiz__title",(f["shelf-header-layout-wiz__title--small-title"]=W.forceSmallLayout,f)),tagLevel:W.tagLevel}),_.C(_.c,{cond:W.hasDetail,then:function(){var r;return _.C("div",{class:"shelf-header-layout-wiz__detail"},(r=W.detail)==null?void 0:r.call(W))}})),_.C(_.c,{cond:W.hasSublabel,
then:function(){var r;return _.C("div",{class:"shelf-header-layout-wiz__sublabel"},(r=W.sublabel)==null?void 0:r.call(W))}})),_.C(_.c,{cond:W.hasTrailingActions,
then:function(){var r;return _.C("div",{class:"shelf-header-layout-wiz__trailing-actions"},(r=W.trailingActions)==null?void 0:r.call(W))}}))},"bc");
XvI.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var moX=_.Q(function(W){var l=W.text;var V=W.className;var f=W.tagLevel;return _.C(_.oh,null,_.C(_.bz,{when:function(){return(f==null?void 0:f())===0}},function(){return _.C("h2",{class:V},l())}),_.C(_.bz,{when:function(){return(f==null?void 0:f())===1}},function(){return _.C("h3",{class:V},l())}),_.C(_.bz,{when:function(){return(f==null?void 0:f())===2}},function(){return _.C("h4",{class:V},l())}),_.C(_.pp,null,function(){return _.C("h2",{class:V},l())}))},"cc");var AE1,TFL,wv9;_.Yx=_.Q(function(W){var l=W.className;var V=W.data;var f=W.disableHorizontalPadding;var r=W.disableVerticalPadding;var R=W.forceSmallLayout;var y=W.useResponsiveLayout;W=W.isOverlay;return _.C("yt-section-header-view-model",{class:_.If("ytSectionHeaderViewModelHost",l),style:_.Tm({"background-color":function(){return m2(V().backgroundColor)?_.sD(m2(V().backgroundColor)):void 0}})},_.C(XvI,{hasDetail:!1,
title:function(){return _.C(_.bH,{text:function(){return V().headline}})},
hasTitle:!0,sublabel:function(){return _.C(TFL,{data:V})},
hasSublabel:function(){return!!V().sublabel||!!V().bottomBadge},
superlabel:function(){return _.C(wv9,{data:V})},
hasSuperlabel:function(){return!!V().superlabel||!!V().topBadge},
leadingImage:function(){return _.C(AE1,{leadingAccessory:function(){return V().leadingAccessory}})},
hasLeadingImage:function(){return!!V().leadingAccessory},
trailingActions:function(){return _.C(_.QH,{data:function(){return V().trailingActions}},{flexibleActionsViewModel:_.n9})},
hasTrailingActions:function(){return!!V().trailingActions},
disableHorizontalPadding:f,disableVerticalPadding:r,forceSmallLayout:R,useResponsiveLayout:y,isOverlay:W,isInteractive:function(){return!!_.qB(V().rendererContext)},
onClick:function(P){if(_.hy(V().rendererContext)){var n=_.qB(V().rendererContext);n&&_.rN(n,{form:{element:P.target,event:P}})}}}))},"dc");
AE1=_.Q(function(W){var l=W.leadingAccessory;return _.C(_.Lp,null,_.C(_.c,{cond:function(){var V;return(V=l().image)!=null?V:_.rC(l().themedImage)},
then:function(V){return _.C(_.dN,{data:V,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.C(_.c,{cond:function(){return _.k(l().avatar,_.$w)},
then:function(V){return _.C(_.gn,{data:V})}}))},"ec");
TFL=_.Q(function(W){var l=W.data;return _.C(_.Lp,null,_.C(_.c,{cond:function(){return _.k(l().bottomBadge,ZA9)},
then:function(V){var f={};return _.C(_.T2,{data:V,class:_.If((f.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!V()&&!!l().sublabel},f))})}}),_.C(_.c,{cond:function(){return l().sublabel},
then:function(V){return _.C(_.bH,{text:V})}}))},"fc");
wv9=_.Q(function(W){var l=W.data;return _.C(_.Lp,null,_.C(_.c,{cond:function(){return _.k(l().topBadge,ZA9)},
then:function(V){var f={};return _.C(_.T2,{data:V,class:_.If((f.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!V()&&!!l().superlabel},f))})}}),_.C(_.c,{cond:function(){return l().superlabel},
then:function(V){return _.C(_.bH,{text:V})}}))},"gc");_.HI(_.Yx,"yt-section-header-view-model",{props:{data:_.pA,className:_.pA,disableHorizontalPadding:_.pA,disableVerticalPadding:_.pA,forceSmallLayout:_.pA,useResponsiveLayout:_.pA,isOverlay:_.pA}});_.e1("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var xx=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return W};
_.v(xx,_.I);_.t=xx.prototype;_.t.attached=function(){this.requestElementsPerRow()};
_.t.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"}}}};
_.t.onDataChange=function(){var W=this;_.V9(this,function(){W.updateItemVisibility()})};
_.t.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W,this.updateItemVisibility())};
_.t.updateItemVisibility=function(){var W=this;this.data&&this.data.panels&&_.GS(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(l,V){l.hidden=V>W.elementsPerRow-1})};
_.t.requestElementsPerRow=function(){_.FN(this.hostElement,"yt-request-elements-per-row")};
xx.prototype.onDataChange=xx.prototype.onDataChange;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],xx.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],xx.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],xx.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],xx.prototype,"actionHandlerBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],xx.prototype,"data",void 0);_.a([_.b({value:3}),_.z("design:type",Number)],xx.prototype,"elementsPerRow",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xx.prototype,"onDataChange",null);_.a([_.A({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],xx);
_.Z(xx,"ytd-primetime-promo-renderer",function(){if(iTB!==void 0)return iTB;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return iTB=W},{mode:1});var QGk;var ej=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return W};
_.v(ej,_.I);ej.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
ej.prototype.handleButtonRefreshAction=function(W){if(W=_.k(W,cSc))this.set("data.button",W.membershipButton),this.notifyPath("data.button")};
_.rc.Object.defineProperties(ej.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.data)==null?void 0:(l=W.avatars)==null?void 0:l.slice(0,8))||[]}}});
_.a([_.b(),_.z("design:type",Object)],ej.prototype,"data",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],ej.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ej.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ej.prototype,"rendererBehavior",void 0);_.a([_.G("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],ej.prototype,"avatars",null);
_.a([_.A({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],ej);
_.Z(ej,"ytd-recognition-shelf-renderer",function(){if(QGk!==void 0)return QGk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return QGk=W},{mode:1});var MAI;var ZTL;var qj=function(){var W=_.I.apply(this,arguments)||this;W.modernButtons=_.U("web_modern_buttons");return W};
_.v(qj,_.I);_.t=qj.prototype;
_.t.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]]"}}}}}};
_.t.dataChanged=function(){this.collapsed=!0};
_.t.computeVisibleItems=function(W,l){return W!==void 0&&W.items?l?W.items.slice(0,this.data.collapsedItemCount):W.items:[]};
_.t.computeHideShowMore=function(W,l,V){return W>=l||!V};
_.t.computeHideShowAll=function(W,l,V){return!(W&&l)||V};
_.t.onMoreClick=function(){this.collapsed=!1};
_.rc.Object.defineProperties(qj.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.U("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.gU("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.U("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
qj.prototype.dataChanged=qj.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],qj.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],qj.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],qj.prototype,"data",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],qj.prototype,"isSearch",void 0);
_.a([_.b({computed:"computeVisibleItems(data,collapsed)"}),_.z("design:type",Array)],qj.prototype,"visibleItems",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],qj.prototype,"collapsed",void 0);_.a([_.b({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.z("design:type",Boolean)],qj.prototype,"hideShowMore",void 0);
_.a([_.b({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.z("design:type",Boolean)],qj.prototype,"hideShowAll",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],qj.prototype,"modernButtons",void 0);_.a([_.G("isSearch"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qj.prototype,"typographyBump",null);
_.a([_.G("isSearch"),_.z("design:type",Object),_.z("design:paramtypes",[])],qj.prototype,"lockupExperiments",null);_.a([_.G("isSearch"),_.z("design:type",String),_.z("design:paramtypes",[])],qj.prototype,"thumbnailWidth",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qj.prototype,"dataChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],qj);
_.Z(qj,"ytd-vertical-list-renderer",function(){if(ZTL!==void 0)return ZTL;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return ZTL=W},{mode:1});var OTa=_.tj(["#"]);_.e1("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var hQ=function(){var W=_.I.apply(this,arguments)||this;W.isConstrainedList=!1;W.modernTypography=_.U("web_modern_typography");return W};
_.v(hQ,_.I);_.t=hQ.prototype;
_.t.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"}}}};
_.t.computeThumbnailStyle=function(W){return W||""};
_.t.computePlaceAnnotationUnderTitle=function(){var W;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((W=this.data)==null?void 0:W.thumbnailStyle)||"")};
_.t.computeHrefWithDefault=function(W){return this.ytComponentBehavior.computeHref_(W)||_.l7S(OTa)};
_.t.computeIsPromoShelf=function(W){var l;return(W=W==null?void 0:(l=W[0])==null?void 0:l.metadataBadgeRenderer)?W.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.t.computePlaceBadgeBesideTitle=function(W){var l;return(W==null?0:(l=W[0])==null?0:l.metadataBadgeRenderer)?!this.computeIsPromoShelf(W):!1};
_.t.computeMenuIcon=function(W){return this.computeIsPromoShelf(W)?"yt-icons:more_vert":"yt-icons:more"};
_.t.onDataChange=function(){var W,l;((W=this.data)==null?0:(l=W.content)==null?0:l.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.t.onLockupRequested=function(W){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&W.detail&&W.detail.videoIds){for(var l=this.data.content.gridRenderer.items,V=new Set,f=_.L(W.detail.videoIds),r=f.next();!r.done;r=f.next())V.add(r.value);W.detail.returnValue=l.filter(function(R){return R.gridVideoRenderer&&R.gridVideoRenderer.videoId&&V.has(R.gridVideoRenderer.videoId)}).map(function(R){return R.gridVideoRenderer})}};
_.t.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
hQ.prototype.onLockupRequested=hQ.prototype.onLockupRequested;hQ.prototype.onDataChange=hQ.prototype.onDataChange;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],hQ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],hQ.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],hQ.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Wo),_.z("design:type",Object)],hQ.prototype,"ironResizableBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],hQ.prototype,"data",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],hQ.prototype,"isSearch",void 0);_.a([_.b(),_.z("design:type",Object)],hQ.prototype,"isConstrainedList",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.U("kevlar_fluid_dismiss")}}),
_.z("design:type",Boolean)],hQ.prototype,"enableFluidDismiss",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.z("design:type",String)],hQ.prototype,"thumbnailStyle",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hQ.prototype,"modernTypography",void 0);_.a([_.b({computed:"computeMenuIcon(data.badges)"}),_.z("design:type",String)],hQ.prototype,"menuIcon",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hQ.prototype,"onDataChange",null);_.a([_.XI("yt-lockup-requested"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],hQ.prototype,"onLockupRequested",null);_.a([_.A({is:"ytd-shelf-renderer",disableElementRegistration:!0})],hQ);
_.Z(hQ,"ytd-shelf-renderer",function(){if(MAI!==void 0)return MAI;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return MAI=W},{mode:1});var a6M;var Sj=function(){return _.I.apply(this,arguments)||this};
_.v(Sj,_.I);Sj.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.rc.Object.defineProperties(Sj.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Sj.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Sj.prototype,"data",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Sj.prototype,"isPlaylist",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Sj.prototype,"isClipList",void 0);
_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Sj.prototype,"isPlaylistPageWithFilters",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Sj.prototype,"hasTitle",null);_.a([_.b(),_.G("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.z("design:type",Object),_.z("design:paramtypes",[])],Sj.prototype,"isRightAligned",null);
_.a([_.A({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Sj);
_.Z(Sj,"ytd-sort-filter-header-renderer",function(){if(a6M!==void 0)return a6M;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return a6M=W},{mode:1});var zYZ;var EI=function(){var W=_.I.apply(this,arguments)||this;W.enableRightArrowHidden=_.U("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return W};
_.v(EI,_.I);EI.prototype.attached=function(){var W=this;this.enableRightArrowHidden&&(this.JSC$16391_throttledOnResize=new _.t$(function(){var l;(l=W.ytdHorizontalListBehavior)==null||l.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var l;
(l=W.JSC$16391_throttledOnResize)==null||l.fire()}),this.resizeObserver.observe(this.hostElement))};
EI.prototype.detached=function(){if(this.enableRightArrowHidden){var W;(W=this.resizeObserver)==null||W.disconnect();var l;(l=this.JSC$16391_throttledOnResize)==null||l.dispose()}};
EI.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]]"}}}}}};
EI.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.rc.Object.defineProperties(EI.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.U("enable_creator_details_shelf_m2")){var W=[],l;((l=this.data)==null?0:l.creatorVideosButton)&&W.push(this.data.creatorVideosButton);var V;((V=this.data)==null?0:V.creatorAboutButton)&&W.push(this.data.creatorAboutButton);l=_.L(this.data.creatorCustomUrlButtons||[]);for(V=l.next();!V.done;V=l.next())W.push(V.value);return W}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.U("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],EI.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],EI.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.QG.YtdHorizontalListBehavior),_.z("design:type",Object)],EI.prototype,"ytdHorizontalListBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],EI.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],EI.prototype,"engagementPanel",void 0);
_.a([_.b(),_.z("design:type",Object)],EI.prototype,"enableRightArrowHidden",void 0);_.a([_.G("enableRightArrowHidden","atEnd"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],EI.prototype,"hideRightArrow",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],EI.prototype,"creatorCustomUrlButtons",null);
_.a([_.b({reflectToAttribute:!0}),_.G("data","creatorCustomUrlButtons"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],EI.prototype,"showCreatorCustomUrlButtons",null);_.a([_.G("showCreatorCustomUrlButtons"),_.z("design:type",Number),_.z("design:paramtypes",[])],EI.prototype,"channelAvatarSize",null);_.a([_.A({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],EI);
_.Z(EI,"ytd-video-description-infocards-section-renderer",function(){if(zYZ!==void 0)return zYZ;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return zYZ=W},{mode:_.bD("kevlar_poly_si_batch_j067")?1:2});var NFL;var $x=function(){return _.I.apply(this,arguments)||this};
_.v($x,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],$x.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],$x.prototype,"data",void 0);_.a([_.b({computed:"computeIcon_(data.infoIcon)"}),_.z("design:type",Object)],$x.prototype,"infoIcon",void 0);_.a([_.A({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],$x);
_.Z($x,"ytd-eom-settings-disclaimer-renderer",function(){if(NFL!==void 0)return NFL;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return NFL=W},{mode:1});var Y0L;var Wr=function(){return _.I.apply(this,arguments)||this};
_.v(Wr,_.I);_.rc.Object.defineProperties(Wr.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.suppressPaddingDisclaimer)}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Wr.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Wr.prototype,"componentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Wr.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Wr.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Wr.prototype,"suppressPaddingDisclaimer",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],Wr);
_.Z(Wr,"ytd-product-list-header-renderer",function(){if(Y0L!==void 0)return Y0L;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Y0L=W},{mode:1});var xok;var lf=function(){return _.I.apply(this,arguments)||this};
_.v(lf,_.I);lf.prototype.computeThumbnailStyle=function(W){if(W&&(W=_.ta(W)))return"background-color:"+W+";"};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],lf.prototype,"rendererBehaviors",void 0);_.a([_.b(),_.z("design:type",Object)],lf.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],lf);
_.Z(lf,"ytd-hashtag-tile-renderer",function(){if(xok!==void 0)return xok;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return xok=W},{mode:1});var eY1;var Vu=function(){return _.I.apply(this,arguments)||this};
_.v(Vu,_.I);Vu.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}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Vu.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Vu.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Vu.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Vu);
_.Z(Vu,"ytd-sponsorships-alert-renderer",function(){if(eY1!==void 0)return eY1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return eY1=W},{mode:1});var q0a;var fD=function(){return _.I.apply(this,arguments)||this};
_.v(fD,_.I);fD.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.rc.Object.defineProperties(fD.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.U("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.U("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.a([_.F(_.DX),_.z("design:type",Object)],fD.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.F(_.FK),_.z("design:type",Object)],fD.prototype,"ytdLockupBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],fD.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);_.a([_.b({selector:_.EZ}),_.z("design:type",Object)],fD.prototype,"isGridViewEnabled",void 0);
_.a([_.G("isGridViewEnabled"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],fD.prototype,"watchFeedBigThumbs",null);_.a([_.G("isGridViewEnabled"),_.b({reflectToAttribute:!0}),_.z("design:type",String),_.z("design:paramtypes",[])],fD.prototype,"thumbnailWidth",null);_.a([_.b(),_.z("design:type",Object)],fD.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],fD);
_.Z(fD,"ytd-compact-movie-renderer",function(){if(q0a!==void 0)return q0a;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return q0a=W},{mode:1});var hYk;var S0M;var Eyc=_.M4("HTML_DIR")==="rtl",rR=function(){var W=_.I.apply(this,arguments)||this;W.engagementPanel=!1;W.maxLines=2;W.expandButtonOffset=0;W.showExpandButton=!1;W.isTruncated=!1;W.isExpanded=!1;W.currentSnippetType=2;W.alwaysShowExpandButton=!1;W.JSC$16408_lastWidth=NaN;W.observer=null;W.left=0;W.right=0;W.mid=0;W.longestSnippetLength=0;W.isFinalSnippet=!1;W.isFirstMutation=!1;W.isResetMutation=!1;W.OVERFLOW_THRESHOLD=5;return W};
_.v(rR,_.I);_.t=rR.prototype;_.t.onClick=function(W){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Cv(_.d_(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var l;if((l=window.getSelection())==null||!l.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.t.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.t.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.t.updateTextOnSnippetTypeChange=function(){_.U("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.t.setUpBinarySearch=function(W){W=W*this.maxLines/8;this.left=0;var l,V;this.right=Math.min(W*2,(V=(l=this.simpleText)==null?void 0:l.length)!=null?V:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.t.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.t.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Qe(new _.bP("AttributedSnippet is empty when the description is not empty",this.text))};
_.t.mutationCallback=function(){if(this.observer!=null){var W=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var l=Math.floor(W*this.maxLines/8);this.setSnippetText(this.text,l);l!==0||this.attributedTextIsEmpty()||_.Qe(new _.bP("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;W=W*this.maxLines/8;this.left=0;var V;this.right=Math.min(W*2,(V=(l=this.simpleText)==null?void 0:l.length)!=null?V: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)}}};
_.t.mutationObserve=function(W){var l=this;this.observer||(this.observer=new MutationObserver(function(){l.mutationCallback()}));
this.observer.observe(W,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.t.attached=function(){var W=this;_.V9(this,function(){W.resize()})};
_.t.isExpandedChanged=function(){_.FN(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.t.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)};
_.t.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var W="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((Eyc?"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",W);this.snippetContainer.style.setProperty("mask-image",
W)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(Eyc?"right":"left",this.expandButtonOffset+"px")};
_.t.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.t.setSnippetText=function(W,l){W||(W={});if(_.CP(W)){var V=PI(W,l);V.attachmentRuns||V.commandRuns||V.decorationRuns||V.styleRuns||V.alignment||V.lineBreakMode?this.attributedSnippetTextEl?(_.U("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=PI(W,l),this.attributedSnippetTextEl.headerRuns=Q5S(l,this.headerRuns)):this.attributedSnippetText={data:PI(W,l),headerRuns:Q5S(l,this.headerRuns)},this.currentSnippetType=0):_.Qe(new _.bP("Tried to set snippet text when HTML element was null",
W)):(this.plainSnippetText.textContent=yY(W.content||"",l),this.currentSnippetType=2)}else{a:{V=tUn(W,l);if(V.runs){V=_.L(V.runs);for(var f=V.next();!f.done;f=V.next())if(f=f.value,f.bold||f.deemphasize||f.italics||f.strikethrough||f.textColor||f.navigationEndpoint||_.k(f,WI)){V=!0;break a}}V=!1}V?this.formattedSnippetText?(this.formattedSnippetText.text=tUn(W,l),this.currentSnippetType=1):_.Qe(new _.bP("Tried to set snippet text when HTML element was null",W)):(this.plainSnippetText.textContent=
yY(_.dE(W),l),this.currentSnippetType=2)}};
_.t.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.t.attributedTextIsEmpty=function(){var W=this.text;if(!_.CP(W))return!0;var l;return((l=W.content)==null?void 0:l.length)===0?!0:!1};
_.t.resize=function(W){if(this.snippetText){if(W===void 0?0:W)this.JSC$16408_lastWidth=NaN;var l=this.hostElement.offsetWidth;if(l!==this.JSC$16408_lastWidth&&!this.isExpanded)if(this.JSC$16408_lastWidth=l,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;W=0;var V,f;l=Math.min(l*this.maxLines/8*2,(f=(V=this.simpleText)==null?void 0:V.length)!=null?f:0)-1;for(V=0;W<=l;)f=Math.floor(W+(l-W)/2),this.setSnippetText(this.text,f),this.isOverflowing()?l=f-1:(W=f+1,V=f);this.setSnippetText(this.text,V);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.t.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.t.onExpandClick=function(){var W=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.U("inline_expander_reset_focus_killswitch")||_.V9(this,function(){var l;((l=_.tY().resolve(_.R0(_.Q5)))==null?0:l.isKeyBoardInUse())&&_.Ew(W.hostElement)});
_.FN(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.t.onCollapseClick=function(){this.collapse();_.FN(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.t.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.t.computeExpandButtonOffset=function(){var W=this.expandSizer;return W?Eyc?W.offsetParent?W.offsetParent.offsetWidth-W.offsetWidth-W.offsetLeft:0:W.offsetLeft:0};
_.rc.Object.defineProperties(rR.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.CP(this.text)?this.text.content||"":_.dE(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 _.CP(this.text)?!0:this.text&&_.U("web_replace_formatted_with_attributed_string")&&g4U(this.text)?(this.text=_.$J(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}}});
rR.prototype.onTextChanged=rR.prototype.onTextChanged;rR.prototype.updateMaskAndExpandButtonOffset=rR.prototype.updateMaskAndExpandButtonOffset;rR.prototype.updateSnippetContainerMaxHeight=rR.prototype.updateSnippetContainerMaxHeight;rR.prototype.isExpandedChanged=rR.prototype.isExpandedChanged;rR.prototype.updateTextOnSnippetTypeChange=rR.prototype.updateTextOnSnippetTypeChange;rR.prototype.updateIsFormattedExpanded=rR.prototype.updateIsFormattedExpanded;rR.prototype.updateIsAttributedExpanded=rR.prototype.updateIsAttributedExpanded;
rR.prototype.onClick=rR.prototype.onClick;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],rR.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],rR.prototype,"text",void 0);_.a([_.b(),_.z("design:type",Array)],rR.prototype,"headerRuns",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],rR.prototype,"engagementPanel",void 0);_.a([_.b(),_.z("design:type",Object)],rR.prototype,"maxLines",void 0);
_.a([_.b(),_.z("design:type",String)],rR.prototype,"expandLabel",void 0);_.a([_.b(),_.z("design:type",String)],rR.prototype,"collapseLabel",void 0);_.a([_.b(),_.z("design:type",Object)],rR.prototype,"expandCommand",void 0);_.a([_.b(),_.z("design:type",Object)],rR.prototype,"expandButtonOffset",void 0);_.a([_.G("text"),_.z("design:type",String),_.z("design:paramtypes",[])],rR.prototype,"simpleText",null);
_.a([_.XI("click"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],rR.prototype,"onClick",null);_.a([_.G("text","isExpanded"),_.z("design:type",Object),_.z("design:paramtypes",[])],rR.prototype,"expandedText",null);_.a([_.G("headerRuns","isExpanded"),_.z("design:type",Object),_.z("design:paramtypes",[])],rR.prototype,"expandedHeaderRuns",null);
_.a([_.G("text"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],rR.prototype,"hasAttributedStringText",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],rR.prototype,"showExpandButton",void 0);_.a([_.G("collapseLabel","isExpanded"),_.z("design:type",Object),_.z("design:paramtypes",[])],rR.prototype,"showCollapseButton",null);_.a([_.b(),_.z("design:type",Object)],rR.prototype,"isTruncated",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],rR.prototype,"isExpanded",void 0);_.a([_.b(),_.z("design:type",Boolean)],rR.prototype,"isAttributedExpanded",void 0);_.a([_.TS("isExpanded","hasAttributedStringText"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rR.prototype,"updateIsAttributedExpanded",null);_.a([_.b(),_.z("design:type",Boolean)],rR.prototype,"isFormattedExpanded",void 0);
_.a([_.TS("isExpanded","hasAttributedStringText"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rR.prototype,"updateIsFormattedExpanded",null);_.a([_.b(),_.z("design:type",Number)],rR.prototype,"currentSnippetType",void 0);_.a([_.G("currentSnippetType"),_.z("design:type",Object),_.z("design:paramtypes",[])],rR.prototype,"useAttributedSnippet",null);
_.a([_.G("currentSnippetType"),_.z("design:type",Object),_.z("design:paramtypes",[])],rR.prototype,"useFormattedSnippet",null);_.a([_.G("currentSnippetType"),_.z("design:type",Object),_.z("design:paramtypes",[])],rR.prototype,"usePlainSnippet",null);_.a([_.b(),_.z("design:type",Object)],rR.prototype,"alwaysShowExpandButton",void 0);_.a([_.TS("currentSnippetType"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rR.prototype,"updateTextOnSnippetTypeChange",null);
_.a([_.b(),_.z("design:type",Object)],rR.prototype,"attributedSnippetText",void 0);_.a([_.Aa("#snippet"),_.z("design:type",HTMLElement)],rR.prototype,"snippetContainer",void 0);_.a([_.Aa("#snippet-text"),_.z("design:type",HTMLElement)],rR.prototype,"snippetText",void 0);_.a([_.Aa("#plain-snippet-text"),_.z("design:type",HTMLElement)],rR.prototype,"plainSnippetText",void 0);_.a([_.Aa("#formatted-snippet-text"),_.z("design:type",Object)],rR.prototype,"formattedSnippetText",void 0);
_.a([_.Aa("#attributed-snippet-text"),_.z("design:type",Object)],rR.prototype,"attributedSnippetTextEl",void 0);_.a([_.Aa("#expand"),_.z("design:type",HTMLElement)],rR.prototype,"expandButton",void 0);_.a([_.Aa("#expand-sizer"),_.z("design:type",HTMLElement)],rR.prototype,"expandSizer",void 0);_.a([_.zS("isExpanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rR.prototype,"isExpandedChanged",null);
_.a([_.TS("isExpanded","maxLines"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rR.prototype,"updateSnippetContainerMaxHeight",null);_.a([_.TS("isTruncated","showExpandButton","expandButtonOffset"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rR.prototype,"updateMaskAndExpandButtonOffset",null);
_.a([_.zS("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rR.prototype,"onTextChanged",null);_.a([_.A({is:"ytd-text-inline-expander",disableElementRegistration:!0})],rR);
_.Z(rR,"ytd-text-inline-expander",function(){if(S0M===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);S0M=W}W=S0M;return W},{mode:2});var Ra=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return W};
_.v(Ra,_.I);Ra.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
Ra.prototype.handleUpdateDescriptionAction=function(W){if(W=_.k(W,_.C5L))if(W.attributedDescription)this.set("data.attributedDescriptionBodyText",W.attributedDescription);else if(W.description){var l;((l=this.data)==null?0:l.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.$J(W.description)):this.set("data.descriptionBodyText",W.description)}};
_.rc.Object.defineProperties(Ra.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var W,l;return!((W=this.data)==null||!W.attributedDescriptionBodyText)||!((l=this.data)==null||!l.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.collapsedLineCount){var l;return(l=this.data)==null?void 0:l.collapsedLineCount}W=_.yS("web_watch_description_collapsed_default_lines",12);if(_.U("ww_desc_line_page_size_ks"))return W;l=Math.round(_.zL().height*_.yS("web_watch_description_screen_height_percentage",.5)/20);return Math.max(l,W)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return(V=(W=this.data)==null?void 0:W.descriptionBodyText)!=null?V:(l=this.data)==null?void 0:l.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.sourceAttributions}}});
Ra.prototype.panelContentVisibleChanged=Ra.prototype.panelContentVisibleChanged;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Ra.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Ra.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Ra.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Ra.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Boolean)],Ra.prototype,"panelContentVisible",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ra.prototype,"engagementPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ra.prototype,"shortsPanel",void 0);_.a([_.Aa("#inline-expander"),_.z("design:type",Object)],Ra.prototype,"inlineExpander",void 0);
_.a([_.TS("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ra.prototype,"panelContentVisibleChanged",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ra.prototype,"hasDescriptionText",null);_.a([_.G("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],Ra.prototype,"collapsedLines",null);
_.a([_.G("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ra.prototype,"descriptionText",null);_.a([_.G("data","data.headerRuns"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ra.prototype,"headerRuns",null);_.a([_.G("data","data.sourceAttributions"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ra.prototype,"sourceAttributions",null);
_.a([_.A({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],Ra);
_.Z(Ra,"ytd-expandable-video-description-body-renderer",function(){if(hYk!==void 0)return hYk;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return hYk=W},{mode:_.bD("kevlar_poly_si_batch_j028")?1:2});var $oe;var WPX=_.Q(function(W){var l=W.data;return _.C("factoid-renderer",{class:"ytwFactoidRendererHost"},_.C("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return l().accessibilityText}},_.C("span",{class:"ytwFactoidRendererValue"},_.C(_.bH,{text:function(){return l().value}})),_.C("span",{class:"ytwFactoidRendererLabel"},_.C(_.bH,{text:function(){return l().label}}))))},"hc");_.HI(WPX,"factoid-renderer",{props:{data:_.pA}});_.HI(_.Q(function(W){var l=W.data;return _.C("upload-time-factoid-renderer",null,_.C(_.QH,{data:function(){return l().factoid}},{factoidRenderer:WPX}))},"ic"),"upload-time-factoid-renderer",{props:{data:_.kh}});_.HI(_.Q(function(W){var l=W.data;return _.C("view-count-factoid-renderer",null,_.C(_.QH,{data:function(){return l().factoid}},{factoidRenderer:WPX}))},"jc"),"view-count-factoid-renderer",{props:{data:_.kh}});var tB=function(){var W=_.I.apply(this,arguments)||this;W.shortsPanel=!1;W.engagementPanel=!1;W.watchWhileSdp=_.U("shorts_desktop_watch_while_sdp");return W};
_.v(tB,_.I);tB.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"}}}}};
_.rc.Object.defineProperties(tB.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var W;return(W=this.data)==null?void 0:W.channel}}});
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],tB.prototype,"componentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],tB.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],tB.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],tB.prototype,"shortsPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],tB.prototype,"engagementPanel",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],tB.prototype,"watchWhileSdp",void 0);_.a([_.G("shortsPanel","engagementPanel","data.channel"),_.z("design:type",Object),_.z("design:paramtypes",[])],tB.prototype,"showChannelInfo",null);_.a([_.A({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],tB);
_.Z(tB,"ytd-video-description-header-renderer",function(){if($oe!==void 0)return $oe;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return $oe=W},{mode:1});var l2v;var sN=function(){return _.I.apply(this,arguments)||this};
_.v(sN,_.I);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],sN.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],sN.prototype,"noPadding",void 0);_.a([_.b(),_.z("design:type",Object)],sN.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],sN);
_.Z(sN,"ytd-list-item-view-model",function(){if(l2v!==void 0)return l2v;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return l2v=W},{mode:1});var V41;var f2v;var rAa;var RRL;var LD=function(){var W=_.I.apply(this,arguments)||this;W.adaptiveFullWidth=!1;W.modernButtons=_.U("web_modern_buttons");W.buttonOverrides={style:"call-to-action",type:"filled"};W.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return W};
_.v(LD,_.I);LD.prototype.handleSetTimestamp_=function(W){this.data&&this.data.shortUrl&&(_.GS(this.hostElement).querySelector("#share-url").value=W.isSet?_.LU(this.data.shortUrl,"t",W.timestamp):this.data.shortUrl)};
LD.prototype.handleSignalActionCopyShareUrl_=function(W,l){(_.U("killswitch_copy_link_target_check")||_.GS(this.hostElement).querySelector("#copy-button")===l)&&this.copyUrlToClipboard()};
LD.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.GS(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
LD.prototype.computeStyle_=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],LD.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],LD.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],LD.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.z("design:type",String)],LD.prototype,"rendererStyle",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],LD.prototype,"adaptiveFullWidth",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],LD.prototype,"modernButtons",void 0);_.a([_.b(),_.z("design:type",Object)],LD.prototype,"buttonOverrides",void 0);_.a([_.Vq({is:"yt-copy-link-renderer",disableElementRegistration:!0})],LD);
_.Z(LD,"yt-copy-link-renderer",function(){if(RRL===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;rAa===void 0&&(rAa=document.createElement("template"));var f=rAa;V.call(l,f.content.cloneNode(!0),W.content.firstChild);RRL=W}W=RRL;return W},{mode:2});_.e1("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var yu=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return W};
_.v(yu,_.I);_.t=yu.prototype;_.t.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.t.attached=function(){this.keyboardFocused=!1};
_.t.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var W=_.tY().resolve(_.R0(_.Q5));W&&(this.keyboardFocused=W.isKeyBoardInUse())}};
_.t.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.t.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}};
_.t.onChange_=function(){if(this.data){var W=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;W&&this.ytComponentBehavior.resolveCommand(W);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.t.handleUpdateToggleAction_=function(W){(W=_.k(W,MhX))&&this.data&&W.targetId==this.data.targetId&&this.set("data.toggled",W.toggled)};
_.t.toBoolean_=function(W){return!!W};
_.t.reset=function(){};
_.t.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.GD("data-changed",this.data))};
_.t.updateDataToggledFromBinding=function(W){this.set("data.toggled",W.detail.value)};
yu.prototype.dataChangedForBinding=yu.prototype.dataChangedForBinding;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],yu.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],yu.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],yu.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],yu.prototype,"ytRendererBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],yu.prototype,"data",void 0);_.a([_.b({computed:"computeDescription_(data.*)"}),_.z("design:type",Object)],yu.prototype,"description_",void 0);_.a([_.b({value:function(){return!!_.tY().resolve(_.R0(_.Q5))&&_.U("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.z("design:type",Boolean)],yu.prototype,"useKeyboardFocused",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],yu.prototype,"keyboardFocused",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yu.prototype,"dataChangedForBinding",null);_.a([_.Vq({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],yu);
_.Z(yu,"yt-toggle-form-field-renderer",function(){if(f2v===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;V41===void 0&&(V41=document.createElement("template"));var f=V41;V.call(l,f.content.cloneNode(!0),W.content.firstChild);f2v=W}W=f2v;return W},{mode:2});var t4I;var s6c;var gR=function(){var W=_.I.apply(this,arguments)||this;W.isDarkTheme=!1;W.isSearch=!1;W.darkerDarkTheme=_.U("web_darker_dark_theme");W.noTopMargin=_.U("kevlar_watch_no_top_margin");W.maskFade=_.U("web_watch_chips_mask_fade");W.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 W};
_.v(gR,_.I);_.t=gR.prototype;_.t.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}}}}}};
_.t.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.t.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.t.dataChanged=function(){var W=this.getSelectedIndex();if(W>0)this.selected=W;else{this.selected=0;var l,V;(l=this.ytScrollableChipCloudBehavior)==null||(V=l.reset)==null||V.call(l)}};
_.t.getSelectedIndex=function(){var W;if((W=this.data)==null||!W.chips)return-1;W=-1;for(var l,V=0;V<((l=this.data)==null?void 0:l.chips.length);V++){var f=void 0,r=void 0;if((f=this.data)==null?0:(r=f.chips[V].chipCloudChipRenderer)==null?0:r.isSelected){W=V;break}}return W};
_.t.onResize=function(){var W=this.ytScrollableChipCloudBehavior;_.V9(W,W.setContainerWidthDiff);xU(this.ytScrollableChipCloudBehavior)};
_.t.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.t.handleRelatedChipCommand=function(W,l){W=this.JSC$16435_chipsSelector.indexOf(l);W!==-1&&this.JSC$16435_chipsSelector.selectIndex(W)};
_.t.handleChipCloudChipSelectAction=function(W){W=this.JSC$16435_chipsSelector.indexOf(W);W>-1&&this.JSC$16435_chipsSelector.selectIndex(W)};
_.t.handleChipCloudChipDeselectAction=function(){var W=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16435_chipsSelector&&((W==null?0:W.continuationCommand)?_.pN(this.hostElement,[W]):(W==null?0:W.searchEndpoint)?this.ytComponentBehavior.resolveCommand(W):W&&_.og(this.hostElement,[W],this.hostElement),this.JSC$16435_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.t.updateSelectedFromBinding=function(W){this.selected=W.detail.value};
gR.prototype.onResize=gR.prototype.onResize;gR.prototype.dataChanged=gR.prototype.dataChanged;gR.prototype.isSearchChanged=gR.prototype.isSearchChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],gR.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],gR.prototype,"actionHandlerBehavior",void 0);
_.a([_.F(_.Wo),_.z("design:type",Object)],gR.prototype,"ironResizableBehavior",void 0);_.a([_.F(),_.z("design:type",YU)],gR.prototype,"ytScrollableChipCloudBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],gR.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],gR.prototype,"data",void 0);_.a([_.b({value:0}),_.z("design:type",Number)],gR.prototype,"selected",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gR.prototype,"isDarkTheme",void 0);_.a([_.b({value:160}),_.z("design:type",Number)],gR.prototype,"scrollDistance",void 0);_.a([_.b(),_.z("design:type",Object)],gR.prototype,"isSearch",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gR.prototype,"darkerDarkTheme",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gR.prototype,"noTopMargin",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gR.prototype,"maskFade",void 0);_.a([_.Aa("#chips"),_.z("design:type",Object)],gR.prototype,"JSC$16435_chipsSelector",void 0);_.a([_.TS("isSearch"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gR.prototype,"isSearchChanged",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gR.prototype,"dataChanged",null);
_.a([_.XI("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gR.prototype,"onResize",null);_.a([_.Vq({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],gR);
_.Z(gR,"yt-chip-cloud-renderer",function(){if(s6c===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;t4I===void 0&&(t4I=document.createElement("template"));var f=t4I;V.call(l,f.content.cloneNode(!0),W.content.firstChild);s6c=W}W=s6c;return W},{mode:2});var LPk,yA$=function(){return LPk!==void 0?LPk:LPk=document.createElement("template")};
document.head.appendChild(yA$().content);var gA1;var PSc=document.head,nAB=PSc.appendChild,CSv;if(gA1===void 0){var cAL=document.createElement("template");_.K(cAL,"");cAL.content.insertBefore(yA$().content.cloneNode(!0),cAL.content.firstChild);gA1=cAL}CSv=gA1;nAB.call(PSc,CSv.content);var B4L=_.Q(function(W){var l=W.data;return _.C("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.C("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.C("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.C(_.c,{cond:function(){return _.rC(l().image)},
then:function(V){return _.C("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.C(_.dN,{data:V,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.C("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.C(_.bH,{text:function(){return l().title}})),_.C("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.C(_.bH,{text:function(){return l().subtitle}})))),_.C(_.c,{cond:function(){var V;
return(V=l())==null?void 0:V.hasBottomDivider},
then:function(){return _.C("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"kc");var dnk=_.Q(function(W){var l=W.data;return _.C("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.C("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.C(_.QH,{data:function(){var V;return(V=l().offerPlanDetailsItem)!=null?V:[]}},{offerPlanDetailsItemViewModel:function(V){return _.C("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.C(B4L,{data:V.data}))}})),_.C("div",null,_.C(_.c,{cond:function(){return l().hasBottomDivider},
then:function(){return _.C("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.C("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.C("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.C("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.C("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"lc");var JAM=_.Q(function(W){var l=W.data;W=_.L(_.J4(!1,void 0,"OHF6Ec"));var V=W.next().value,f=W.next().value,r=_.ip(function(){f(!V());return!1}),R=function(){var y;
return(y=l().offerPlanDetailsContainer)!=null?y:[]};
return _.C("lp-complex-offer-card-details-view-model",null,_.C("div",null,_.C(_.c,{cond:function(){return V()},
then:function(){return _.C("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.C("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":r,"aria-expanded":V},_.C(_.bH,{text:function(){return l().expandedTitle}})),_.C("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.C(_.QH,{data:R},{offerPlanDetailsContainerViewModel:function(y){return _.C("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.C(dnk,{data:y.data}))}})),_.C("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.C(_.bH,{text:function(){return l().legalText}})))},
else:function(){return _.C("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":r,"aria-expanded":V},_.C(_.bH,{text:function(){return l().collapsedTitle}}),_.C("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.C(_.wN,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"mc");var DnI=_.Q(function(W){var l=W.data;return _.C("lp-complex-offer-card-option-view-model",null,_.C("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.C(_.c,{cond:function(){return l().topDividerText},
then:function(){return _.C("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.C("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.C("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.C("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.C(_.bH,{text:function(){return l().topDividerText}}))))}}),_.C(_.c,{cond:function(){return l().description},
then:function(){return _.C("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.C(_.bH,{text:function(){return l().description}}))}}),_.C(_.c,{cond:function(){return l().planPricingPrimary},
then:function(){return _.C("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.C(_.bH,{text:function(){return l().planPricingPrimary}}))}}),_.C(_.c,{cond:function(){return l().planPricingSecondary},
then:function(){return _.C("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.C(_.bH,{text:function(){return l().planPricingSecondary}}))}}),_.C(_.c,{cond:function(){return l().primaryButton},
then:function(){return _.C("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.C(_.QH,{data:function(){return l().primaryButton}},{buttonViewModel:function(V){return _.C(_.Nq,{data:V.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"nc");var Un9=_.Q(function(W){var l=W.data;var V=function(){var R;return((R=l())==null?void 0:R.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
W={};var f={},r={};return _.C("ytm-lp-complex-offer-card-view-model",null,_.C("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.C("div",{class:_.If((W.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=V,W),"ytmLpComplexOfferCardViewModelCardContainer")},_.C(_.c,{cond:function(){var R;return(R=l())==null?void 0:R.bannerText},
then:function(){return _.C("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.C("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.C(_.bH,{text:function(){return l().bannerText}})))}}),_.C(_.c,{cond:function(){return _.rC(l().logo)},
then:function(R){var y={};return _.C("div",{class:_.If((y.ytmLpComplexOfferCardViewModelLogoAlignLeft=V,y),"ytmLpComplexOfferCardViewModelLogo")},_.C(_.dN,{data:R,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.C("div",{class:_.If((f.ytmLpComplexOfferCardViewModelTitleAlignLeft=V,f),"ytmLpComplexOfferCardViewModelTitle")},_.C(_.bH,{text:function(){return l().title}})),_.C(_.c,{cond:function(){var R;
return(R=l())==null?void 0:R.subtitle},
then:function(){var R={};return _.C("div",{class:_.If((R.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=V,R),"ytmLpComplexOfferCardViewModelSubtitle")},_.C(_.bH,{text:function(){return l().subtitle}}))}}),_.C(_.c,{cond:function(){return l().planPricingPrimary},
then:function(){return _.C("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.C(_.bH,{text:function(){return l().planPricingPrimary}}))}}),_.C(_.c,{cond:function(){return l().planPricingSecondary},
then:function(){return _.C("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.C(_.bH,{text:function(){return l().planPricingSecondary}}))}}),_.C(_.c,{cond:function(){return l().purchaseButton},
then:function(){return _.C("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.C(_.QH,{data:function(){return l().purchaseButton}},{buttonViewModel:function(R){return _.C(_.Nq,{data:R.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.C(_.c,{cond:function(){var R;
return(R=l())==null?void 0:R.offerOptions},
then:function(){return _.C("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.C(_.QH,{data:function(){return l().offerOptions}},{lpComplexOfferCardOptionViewModel:DnI}))}}),_.C("div",{class:_.If((r.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=V,r),"ytmLpComplexOfferCardViewModelLegalText")},_.C(_.bH,{text:function(){return l().legalText}})),_.C(_.c,{cond:function(){var R;
return(R=l())==null?void 0:R.offerCardDetails},
then:function(){return _.C("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.C(_.QH,{data:function(){return l().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:JAM}))}}))))},"oc");var uvI=_.Q(function(W){var l=W.data;var V=function(){var y;return((y=l())==null?void 0:y.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
W={};var f={},r={},R={};return _.C("ytm-lp-complex-offer-card-section-view-model",null,_.C("div",{class:_.If("ytmLpComplexOfferCardSectionViewModelHost")},_.C("div",{class:_.If((W.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=V,W),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.C("div",{class:_.If((f.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=V,f),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.C("h2",{class:_.If((r.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
V,r),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.C(_.bH,{text:function(){return l().title}}))),_.C(_.c,{cond:function(){var y;
return(y=l())==null?void 0:y.subtitle},
then:function(){var y={},P={};return _.C("div",{class:_.If((y.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=V,y),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.C("div",{class:_.If((P.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=V,P),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.C(_.bH,{text:function(){return l().subtitle}})))}}),_.C("div",{class:_.If((R.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=V,R),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.C(_.QH,{data:function(){var y;
return(y=l().offerPlans)!=null?y:[]}},{lpComplexOfferCardViewModel:function(y){return _.C("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.C(Un9,{data:y.data}))}})))))},"pc");var kFM=_.Q(function(W){return _.C("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.C("div",{class:"ytLpCouponBannerViewModelIcon"},_.C(_.wN,{icon:function(){return"price_tag"}})),_.C("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.C("div",{class:"ytLpCouponBannerViewModelContent"},_.C("div",{class:"ytLpCouponBannerViewModelHeading"},_.C(_.bH,{text:function(){var l;
return(l=W.data())==null?void 0:l.title}})),_.C("div",{class:"ytLpCouponBannerViewModelBody"},_.C(_.bH,{text:function(){var l;
return(l=W.data())==null?void 0:l.subtitle}})))))},"qc");
kFM.idomCompat=!0;_.Pr=QlM.getInstance();var vAv;vAv=_.Q(function(W){return _.C("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":W.shouldAriaHideContent},_.C("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:W.questionId},_.C(_.bH,{text:W.question})))},"rc");
_.HJk=_.Q(function(W){var l=W.data;var V=W.themeOverride;W=_.L(_.J4(!1,void 0,"pNli2b"));var f=W.next().value,r=W.next().value;W=_.ip(function(){r(!f());return!1});
var R=function(){return f()?"EXPAND_LESS":"EXPAND_MORE"},y=("faq-container"+_.Wd(_.Pr)).toString(),P="faq-question-and-answers-section-question"+_.Wd(_.Pr),n={},B={};
return _.C("faq-entry-view-model",null,_.C("div",{class:_.If("ytLpFaqEntryViewModelHost",(n.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return V==null?void 0:V().useDarkTheme},n))},_.C("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":W,role:"button","aria-expanded":f,"aria-labelledby":P.toString(),"tab-index":"0"},_.C(vAv,{question:function(){return l().question},
questionId:P,shouldAriaHideContent:!0}),_.C(_.c,{cond:function(){return f()!==void 0},
then:function(){return _.C("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.C(_.wN,{icon:R,ariaHidden:!0}),_.C("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.C("div",{class:_.If("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(B.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!f()},B))},_.C("div",{id:y},_.C(_.G3,{each:function(){return l().answers||[]}},function(d){return _.C("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.C(_.bH,
{text:d}))})))))},"sc");
_.HJk.idomCompat=!0;var KPM=_.Q(function(W){var l=W.data;var V=W.themeOverride;W={};return _.C("lp-faq-section-view-model-c3",null,_.C("div",{class:_.If("yt-lp-faq-section-view-model",(W["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return l().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},W["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(V==null||!V().useDarkTheme)},W))},_.C("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.C(_.c,{cond:function(){return l().header},
then:function(f){return _.C("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.C(_.bH,{text:f}))}}),_.C("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.C(_.QH,{data:function(){return l().faqs}},{faqEntryViewModel:function(f){return _.C(_.HJk,{data:f.data,
themeOverride:V})}})),_.C("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.C(_.G3,{each:function(){return l().footers||[]}},function(f){return _.C(_.bH,{text:f})})),_.C(_.c,{cond:function(){return l().legal},
then:function(f){return _.C("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.C(_.bH,{text:f}))}}))))},"tc");
KPM.idomCompat=!0;var FPk=_.Q(function(W){var l=W.data;var V=W.themeOverride;_.mw(function(){var y=l().gtmId;y&&_.LA(y,_.M4("GL",""))});
var f={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var y,P,n;return(n=(y=l().logo)==null?void 0:(P=y.accessibilityData)==null?void 0:P.label)!=null?n:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},r=_.tY().resolve(_.R0(_.nP)),R=function(){return r&&r()||(V==null?void 0:V().useDarkTheme)};
return _.C("lp-header-section-view-model",null,_.C("div",{class:function(){var y=l().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",P=l().marginType==="LP_SECTION_MARGIN_TYPE_TOP",n=V==null?void 0:V().useDarkTheme,B=["lp-header-section-view-model"];y&&B.push("lp-header-section-view-model--ptc-layout-type");P&&B.push("lp-header-section-view-model__lp-header-section-margin");n&&B.push("lp-header-section-view-model--premium-force-dark-mode");return B.join(" ")}},_.C(_.c,{cond:function(){return l().logo},
then:function(){return _.C("div",null,_.C(_.c,{cond:R,then:function(){return _.C(_.c,{cond:function(){var y;return(y=l().logo)==null?void 0:y.imageDark},
then:function(y){return _.C(_.dN,Object.assign({},{data:y},f))}})},
else:function(){return _.C(_.c,{cond:function(){var y;return(y=l().logo)==null?void 0:y.imageLight},
then:function(y){return _.C(_.dN,Object.assign({},{data:y},f))}})}}))}}),_.C(_.c,{cond:function(){return l().title},
then:function(y){return _.C("div",{class:"lp-header-section-view-model__lp-header-title"},_.C(_.bH,{text:y}))}}),_.C("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.C(_.c,{cond:function(){return l().subtitles},
then:function(y){return _.C(_.G3,{each:y},function(P){return _.C("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.C(_.bH,{text:P}))})}})),_.C(_.c,{cond:function(){return l().additionalInfo},
then:function(y){return _.C("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.C(_.bH,{text:y}))}}),_.C("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.C(_.c,{cond:function(){return l().primaryButton},
then:function(y){return _.C("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.C(_.QH,{data:y},{buttonViewModel:_.Nq}))}}),_.C(_.c,{cond:function(){return l().secondaryButton},
then:function(y){return _.C("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.C(_.QH,{data:y},{buttonViewModel:_.Nq}))}})),_.C(_.c,{cond:function(){return l().otherOffersInfo},
then:function(y){return _.C("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.C(_.bH,{text:y}))}}),_.C("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.C(_.c,{cond:function(){return l().billingInfo},
then:function(y){return _.C(_.G3,{each:y},function(P){return _.C("div",null,_.C(_.bH,{text:P}))})}}))))},"uc");
FPk.idomCompat=!0;var GFX=_.Q(function(W){var l=W.data;var V=_.JG(W.themeOverride,{useDarkTheme:!1});W={};W=_.If("ytmLpHeadlineSectionViewModelHost",(W.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return V().useDarkTheme},W));
return _.C("lp-headline-section-view-model",null,_.C("div",{class:W},_.C("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.C(_.bH,{text:function(){return l().title}})),_.C(_.c,{cond:function(){return l().subtitle},
then:function(f){return _.C("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.C(_.bH,{text:f}))}})))},"vc");var bJv=_.Q(function(W){var l=W.data;var V=W.themeOverride;var f=_.tY().resolve(_.R0(_.nP)),r=function(){return f&&f()||(V==null?void 0:V().useDarkTheme)},R=function(){var B,d;
var J=r()?(B=l().textBackgroundImage)==null?void 0:B.imageDark:(d=l().textBackgroundImage)==null?void 0:d.imageLight;return sdx((J==null?void 0:J.sources)||[])},y=function(){var B,d;
return r()?(B=l().featureImage)==null?void 0:B.imageDark:(d=l().featureImage)==null?void 0:d.imageLight},P=function(){return l().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},n=function(){var B,d;
return r()?(B=l().logo)==null?void 0:B.imageDark:(d=l().logo)==null?void 0:d.imageLight};
return _.C("ytm-lp-large-feature-section-view-model",null,_.C("div",{class:function(){var B=l().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",d=l().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",J=(l().index||0)%2===1,D=V==null?void 0:V().useDarkTheme,u=["yt-lp-large-feature-section-view-model"];B?u.push("yt-lp-large-feature-section-view-model--music-feature-type"):d?u.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):J||u.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
D&&u.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return u.join(" ")}},_.C("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.C(_.c,{cond:y,
then:function(){return _.C(_.dN,{data:function(){return y()},
alt:function(){var B,d,J;return(J=(B=l().featureImage)==null?void 0:(d=B.accessibilityData)==null?void 0:d.label)!=null?J:""},
contentMode:P})}})),_.C("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var B;return((B=R())==null?0:B.url)?"background-image: url("+_.NI(R().url)+");":""}},_.C("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.C(_.c,{cond:n,
then:function(){return _.C(_.dN,{data:function(){return n()},
alt:function(){var B,d,J;return(J=(B=l().logo)==null?void 0:(d=B.accessibilityData)==null?void 0:d.label)!=null?J:""},
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"})}}),_.C(_.c,{cond:function(){return l().eyebrowText},
then:function(){return _.C("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.C(_.bH,{text:function(){return l().eyebrowText}}))}}),_.C(_.c,{cond:function(){return l().title},
then:function(){return _.C("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.C(_.bH,{text:function(){return l().title}}))}}),_.C(_.c,{cond:function(){return l().subtitles},
then:function(){return _.C("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.C(_.G3,{each:function(){return l().subtitles||[]}},function(B){return _.C(_.bH,{text:B})}))}})))))},"wc");
bJv.idomCompat=!0;var pbI=_.Q(function(W){return _.C("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.C("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.C(_.wN,{icon:function(){var l;return(l=W.data())==null?void 0:l.iconType},
className:function(){var l;switch((l=W.data())==null?void 0:l.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 l;return((l=W.data())==null?void 0:l.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.C("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.C(_.bH,{text:function(){var l;
return(l=W.data())==null?void 0:l.text},
className:function(){var l;return((l=W.data())==null?void 0:l.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"xc");var oAe=_.Q(function(W){W=_.Dd(W,{config:void 0,themeOverride:void 0});var l=W.data,V=W.config,f=W.themeOverride;W={};W=_.If("ytmLpOfferCardOptionViewModelHost",(W.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var P;return(P=f())==null?void 0:P.useDarkTheme},W));
var r=_.ip(function(){var P,n;(P=V())==null||(n=P.handleRadioButtonClick)==null||n.call(P,l());return!1}),R=function(){var P;
return(P=V())==null?void 0:P.shouldDisplayRadioButton},y=function(){var P;
return(P=l().featureListItems)!=null?P:[]};
return _.C("ytm-lp-offer-card-option-view-model",null,_.C("div",{class:W,"on:click":_.ip(function(){if(R()){var P,n;(P=V())==null||(n=P.handleRadioButtonClick)==null||n.call(P,l())}return!1})},_.C(_.c,{cond:R,
then:function(){return _.C("div",null,_.C("input",{type:"radio","on:click":r,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var P;return!((P=V())==null||!P.isOptionSelected)}}))}}),_.C("div",null,_.C("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.C(_.bH,{text:function(){return l().eyebrowText}})),_.C("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.C(_.bH,{text:function(){return l().title}})),_.C("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.C(_.bH,
{text:function(){return l().subtitle}})),_.C(_.c,{cond:function(){return y().length>0},
then:function(){return _.C("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.C(_.QH,{data:y},{lpFeatureListItemViewModel:pbI}))}}),_.C("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.C(_.bH,{text:function(){return l().description}})))))},"yc");
oAe.idomCompat=!0;var j6B=_.Q(function(W){var l=W.data;var V=W.themeOverride;W=_.L(_.X3(function(){var R,y=(R=l().offerOptions)==null?void 0:R[0];return _.k(y,Km$)||{}}));
var f=W.next().value,r=W.next().value;W={};return _.C("ytm-lp-offer-card-view-model",null,_.C("div",{class:_.If("ytmLpOfferCardViewModelHost",(W.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(V==null||!V().useDarkTheme)},W))},_.C("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.C(_.c,{cond:function(){return l().titleIconType},
then:function(){return _.C("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.C(_.wN,{icon:function(){var R;return((R=l().titleIconType)==null?void 0:R.toString())||""}}))}}),_.C("div",{class:"ytmLpOfferCardViewModelTitleText"},_.C(_.bH,{text:function(){return l().title}})),_.C(_.QH,{data:function(){return l().titleBadge}},{badgeViewModel:function(R){return _.C("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.C(_.T2,{data:R.data}))}})),_.C("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.C(_.QH,{data:function(){return l().offerOptions}},{lpOfferCardOptionViewModel:function(R){var y=R.data;
return _.C(_.Lp,null,_.C("div",{class:"ytmLpOfferCardViewModelDivider"}),_.C(oAe,{data:y,config:function(){var P;return{shouldDisplayRadioButton:(l().offerOptions||[]).length>1,isOptionSelected:y().id===((P=f())==null?void 0:P.id),handleRadioButtonClick:function(n){return void r(n)}}},
themeOverride:V}))}})),_.C("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.C(_.QH,{data:function(){var R;
return(R=f())==null?void 0:R.purchaseButtonOverride}},{buttonViewModel:_.Nq}))))},"zc");
j6B.idomCompat=!0;var I2k=_.Q(function(W){var l=W.data;var V=W.themeOverride;W={};W=_.If("ytmLpOfferCardSectionViewModelHost",(W.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var f;return V==null?void 0:(f=V())==null?void 0:f.useDarkTheme},W));
return _.C("ytm-lp-offer-card-section-view-model",null,_.C("div",{class:W},_.C(_.c,{cond:function(){return l().title!==void 0},
then:function(){return _.C("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.C("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.C(_.bH,{text:function(){return l().title}})),_.C(_.c,{cond:function(){return l().subtitle},
then:function(){return _.C("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.C(_.bH,{text:function(){return l().subtitle}}))}}))}}),_.C("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.C(_.QH,{data:function(){return l().offerCards}},{lpOfferCardViewModel:function(f){return _.C("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.C(j6B,{data:f.data,
themeOverride:V}))}})),_.C(_.c,{cond:function(){return l().footer},
then:function(){return _.C("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.C(_.bH,{text:function(){return l().footer}}))}})))},"Ac");var iJX=_.Q(function(W){var l=W.data;return _.C("lp-offer-table-cell-content-view-model",null,_.C("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.C(_.oh,null,_.C(_.bz,{when:function(){return l().title}},function(){return _.C(_.bH,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return l().title}})}),_.C(_.bz,{when:function(){return l().subTitle}},function(){return _.C(_.bH,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return l().subTitle}})}),_.C(_.bz,{when:function(){return l().featureDescription}},function(){return _.C(_.bH,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return l().featureDescription}})}),_.C(_.bz,{when:function(){return l().description}},function(){return _.C(_.bH,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return l().description}})}),_.C(_.bz,{when:function(){return l().iconType}},function(){return _.C("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.C(_.wN,{icon:function(){return l().iconType.toString()}}))}),_.C(_.bz,{when:function(){return l().purchaseButton}},function(){return _.C(_.QH,{data:function(){return l().purchaseButton}},{buttonViewModel:function(V){return _.C("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.C(_.Nq,
{data:V.data}))}})}),_.C(_.bz,{when:function(){return l().note}},function(){return _.C(_.bH,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return l().note}})}),_.C(_.bz,{when:function(){return l().featureDetail}},function(){return _.C(_.bH,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return l().featureDetail}})}),_.C(_.bz,{when:function(){return l().badge}},function(){return _.C(_.QH,{data:function(){return l().badge}},{badgeViewModel:_.T2})}))))},"Bc");
iJX.idomCompat=!0;var mn9=_.Q(function(W){var l=W.data;return _.C("lp-offer-table-cell-view-model",null,_.C("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(l().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;"}}},_.C(_.QH,{data:function(){return l().contents}},{lpOfferTableCellContentViewModel:iJX})))},
"Cc");
mn9.idomCompat=!0;var Xb9=_.Q(function(W){var l=W.data;var V=W.lpTableIsFirstRow;var f=W.lpTableIsLastRow;var r=function(){return(V==null?0:V())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},R=function(){return(V==null?0:V())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(f==null?0:f())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.C("ytm-lp-offer-table-row-view-model",null,_.C("div",{class:"ytLpOfferTableRowViewModelHost"},_.C(_.QH,{data:function(){return l().rowHeaderCell}},{lpOfferTableCellViewModel:function(y){return _.C("div",{class:r},_.C(mn9,{data:y.data}))}}),_.C(_.QH,{data:function(){return l().contentCells}},{lpOfferTableCellViewModel:function(y){return _.C("div",{class:R},_.C(mn9,{data:y.data}))}})))},"Dc");
Xb9.idomCompat=!0;var T4c=_.Q(function(W){var l=W.data;var V=W.themeOverride;var f=_.tY().resolve(_.R0(_.nP)),r=function(){return _.k(l().logo,zfZ)||{}};
W={};return _.C("ytm-lp-offer-table-section-view-model",null,_.C("div",{class:"ytLpOfferTableViewModelHost"},_.C(_.c,{cond:function(){var R,y;return f&&f()||(V==null?0:V().useDarkTheme)?(R=r())==null?void 0:R.imageDark:(y=r())==null?void 0:y.imageLight},
then:function(R){return _.C(_.dN,{data:R,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var y,P,n;return(n=(y=r())==null?void 0:(P=y.accessibilityData)==null?void 0:P.label)!=null?n:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.C("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.C(_.bH,{text:function(){return l().title}})),_.C("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.C(_.bH,{text:function(){return l().subtitle}})),_.C(_.c,{cond:function(){return l().disclaimers},
then:function(R){return _.C("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.C(_.G3,{each:R},function(y){return _.C("div",null,_.C(_.bH,{text:y}))}))}}),_.C("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.C(_.QH,{data:function(){return l().rows}},{lpOfferTableRowViewModel:function(R,y){return _.C(Xb9,{data:R.data,
lpTableIsFirstRow:function(){return y()===0},
lpTableIsLastRow:function(){return y()===l().rows.length-1}})}})),_.C("div",{class:_.If((W.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return l().hasFooterBackground},W))},_.C(_.c,{cond:function(){return l().footer},
then:function(){return _.C("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.C(_.bH,{text:function(){return l().footer}}))}}),_.C(_.c,{cond:function(){return l().footerTitle},
then:function(){return _.C("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.C(_.bH,{text:function(){return l().footerTitle}}))}}),_.C(_.c,{cond:function(){return l().footerDescription},
then:function(){return _.C("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.C(_.bH,{text:function(){return l().footerDescription}}))}}))))},"Ec");
T4c.idomCompat=!0;var wbk=_.Q(function(W){var l=W.data;var V=W.themeOverride;var f=_.tY().resolve(_.R0(_.nP)),r=function(){var P;return V==null?void 0:(P=V())==null?void 0:P.useDarkTheme},R=function(){var P,n;
return f&&f()||r()?(P=l().image)==null?void 0:P.imageDark:(n=l().image)==null?void 0:n.imageLight};
W={};W=_.If("ytmLpSmallFeatureSectionViewModelHost",(W.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=r,W));var y=function(){var P,n,B;return(B=(P=l().image)==null?void 0:(n=P.accessibilityData)==null?void 0:n.label)!=null?B:""};
return _.C("ytm-lp-small-feature-section-view-model",{class:W},_.C(_.c,{cond:function(){return R()&&!EmF},
then:function(){return _.C("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.C(_.dN,{data:function(){return R()},
alt:y,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.C("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.C("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.C(_.c,{cond:function(){return l().title},
then:function(P){return _.C(_.bH,{text:P})}})),_.C("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.C(_.bH,{text:function(){return l().description}}))))},"Fc");
wbk.idomCompat=!0;var AAk=_.Q(function(W){var l=W.data;var V=W.themeOverride;W={};return _.C("ytm-lp-small-feature-section-group-view-model",null,_.C("div",{class:_.If("ytmLpSmallFeatureSectionGroupViewModelHost",(W.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(V==null||!V().useDarkTheme)},W))},_.C("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.C(_.QH,{data:function(){return l().smallFeatures}},{lpSmallFeatureSectionViewModel:function(f){return _.C("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.C(wbk,{data:f.data,
themeOverride:V}))}}))))},"Gc");
AAk.idomCompat=!0;_.HI(_.Q(function(W){var l=W.data;var V=function(){return l().forcedTheme==="USER_INTERFACE_THEME_DARK"},f=function(){return l().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},r=function(){var y="",P,n;
var B=_.tY().resolve(_.R0(_.nP));B=V()||(B==null?0:B())?(P=l().themedImageViewModel)==null?void 0:P.imageDark:(n=l().themedImageViewModel)==null?void 0:n.imageLight;(P=sdx((B==null?void 0:B.sources)||[]))&&P.url&&(y=f()?"background-image: linear-gradient(to bottom, transparent, "+(l().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.NI(P.url)+");":"background-image: url("+_.NI(P.url)+");");return y},R=function(){return{useDarkTheme:V()}};
W={};return _.C("yt-section-group-view-model",null,_.C("div",{class:_.If("yt-lp-section-group-view-model",(W["yt-lp-section-group-view-model--premium-force-dark-mode"]=V,W["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return l().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},W))},_.C(_.c,{cond:function(){return r().length},
then:function(){var y={};return _.C("div",{class:_.If("yt-lp-section-group-view-model__bg-image",(y["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=f,y)),style:r})}}),_.C("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.C(_.QH,{data:function(){return l().sections}},{lpFaqSectionViewModel:function(y){return _.C(KPM,{data:y.data,
themeOverride:R})},
lpHeaderSectionViewModel:function(y){return _.C(FPk,{data:y.data,themeOverride:R})},
lpHeadlineSectionViewModel:function(y){return _.C(GFX,{data:y.data,themeOverride:R})},
lpLargeFeatureSectionViewModel:function(y){return _.C(bJv,{data:y.data,themeOverride:R})},
lpOfferCardSectionViewModel:function(y){return _.C(I2k,{data:y.data,themeOverride:R})},
lpComplexOfferCardSectionViewModel:function(y){return _.C(uvI,{data:y.data})},
lpOfferTableSectionViewModel:function(y){return _.C(T4c,{data:y.data,themeOverride:R})},
lpSmallFeatureSectionGroupViewModel:function(y){return _.C(AAk,{data:y.data,themeOverride:R})},
lpCouponBannerViewModel:function(y){return _.C(kFM,{data:y.data})}}))))},"Hc"),"yt-section-group-view-model",{props:{data:_.pA}});var ynS=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.Q6k=_.Q(function(W){function l(){if(ynS.has(W.data().displayType)){var B=!f(),d;if((d=W.disableDeselection)==null||!d.call(W)||B){W.data().selected=B;d=Object.assign({},y(),{selected:B});P(d);var J;(J=W.callback)==null||J.call(W,d,B)}}}
var V=_.WS("chip-view-model"),f=function(){var B,d;return!!(((B=W.selected)==null?void 0:B.call(W))!==void 0?(d=W.selected)==null?0:d.call(W):y().selected)},r=_.L(_.X3(W.data)),R=r.next().value;
r=r.next().value;var y=R,P=r,n=_.wH(L6J,function(){return W.data().chipEntityKey||""});
return _.C("chip-view-model",{class:"ytChipViewModelHost",el:V},_.C(DhB,{data:function(){var B,d=Object.assign({},y(),{selected:f()}),J=n(),D=(B=W.disableDeselection)==null?void 0:B.call(W);a:switch(d.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":B=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":B=3;break a;default:B=0}return{text:(J==null?void 0:J.text)||d.text,state:d.disabled?1:d.selected?0:2,type:B,onTap:gj4(d,V,l,D),
accessibilityLabel:d.accessibilityLabel||d.text}}}))},"Ic");
_.Q6k.idomCompat={callbacks:{callback:!0}};_.M4k=_.Q(function(W){var l=_.wH(sL6,function(){var y;return(y=W.data())==null?void 0:y.chipBarStateEntityKey}),V=function(){return W.data().disableDeselection},f=_.L(_.X3(function(){var y;
if(((y=l())==null?void 0:y.selectedIndex)!=void 0)return l().selectedIndex;var P,n;y=_.L(((P=W.data())==null?void 0:(n=P.chips)==null?void 0:n.entries())||[]);for(P=y.next();!P.done;P=y.next()){P=_.L(P.value);n=P.next().value;P=P.next().value;var B=void 0;if((B=_.k(P,_.Dk))==null?0:B.selected)return n}return-1})),r=f.next().value,R=f.next().value;
return _.C("chip-bar-view-model",{class:_.If("ytChipBarViewModelHost",W.className),role:"tablist"},_.C(_.QH,{data:function(){return W.data().chips}},{chipViewModel:function(y,P){return _.C("div",{class:"ytChipBarViewModelChipWrapper"},_.C(_.Q6k,{data:y.data,
selected:function(){return P()===r()},
callback:function(n,B){n=!!B;B=P();R(n?B:-1);var d,J=(d=W.data())==null?void 0:d.chipBarStateEntityKey;J&&n&&_.dm(_.MB("chipBarStateEntity",J,{key:J,selectedIndex:B}))},
disableDeselection:W.disableDeselection||V}))}}))},"Jc");_.HI(_.M4k,"chip-bar-view-model",{props:{data:_.kh,className:_.kh,disableDeselection:_.kh}});_.ZJ1=_.Q(function(W){var l=W.data;W={};return _.C("divider-view-model",{class:_.If("dividerViewModelHost",(W.dividerViewModelInsetThinPadding=function(){return l().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},W))},_.C("div",{class:_.If("dividerViewModelBaseDivider",function(){return Pd8(l().dividerStyle)}),
style:_.Tm({"background-color":function(){return l().backgroundColor?_.ta(l().backgroundColor):void 0}})}))},"Kc");
_.ZJ1.idomCompat=!0;_.HI(_.ZJ1,"divider-view-model",{props:{data:_.pA}});var Tb=new Map,XJ=new Map,cnz=0,wC;var khj=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],K6n={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var OJc,a2c;OJc=function(W){return function(l){return function(){return(l==null?void 0:l())!==void 0?String(l())+W:void 0}}};
_.nD=OJc("px");a2c=OJc("s");var zRc=kwz(function(W){return W.targetGroupId}).useUpdatableData;var YSa=_.Q(function(W){function l(W8){return function(){var c8=p().numItemsPerGridRow,B8=W8()*c8;c8=B8+c8;var Jx,H8;return(H8=(Jx=f().contents)==null?void 0:Jx.slice(B8,c8))!=null?H8:[]}}
var V=_.Dd(W,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),f=V.data,r=V.layoutContainerWidth,R=V.shouldUseOwnContainerSize,y=V.marginSettings,P=h08(),n=_.L(zRc(function(){var W8,c8;return{targetGroupId:(W8=f().targetingContext)==null?void 0:(c8=W8.targetGroupId)==null?void 0:c8[0]}})).next().value;
V=_.L(_.J4(!0,void 0,"R5Z1fd"));var B=V.next().value,d=V.next().value,J=function(){var W8,c8=(W8=_.k(f().showMoreButton,_.JJ))==null?void 0:W8.trackingParams;c8&&_.YQ(_.Qq(),c8);d(!1)},D=function(){var W8,c8=(W8=_.k(f().showLessButton,_.JJ))==null?void 0:W8.trackingParams;
c8&&_.YQ(_.Qq(),c8);d(!0)};
V=_.WS("grid-shelf-view-model");var u=_.Ghg(V,{canHaveZeroSize:!1}),H=function(){var W8;return(W8=f().contentAspectRatio)!=null?W8:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},p=_.v4(function(){var W8=_.fh({containerWidth:R()&&u.width()>0?u.width()||r():r(),
sizing:"EXTRA_COMPACT",marginSettings:y(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:W8.maxContainerWidth,numItemsPerGridRow:W8.numItems,contentPadding:R()?W8.margin:W8.contentMargin,itemWidth:W8.itemWidth,itemMargin:W8.gutter/2}},void 0,"q05H3c"),X=function(){if(f().enableVerticalExpansion){if(B())return w();
var W8,c8,B8=(c8=(W8=f().contents)==null?void 0:W8.length)!=null?c8:0;return Math.ceil(B8/p().numItemsPerGridRow)}return p().numItemsPerGridRow<=2?2:1},w=function(){var W8;
return Math.ceil(((W8=f().minCollapsedItemCount)!=null?W8:1)/p().numItemsPerGridRow)},O=function(){return f().enableVerticalExpansion&&f().showLessButton&&!B()&&X()>w()},S=function(){var W8,c8;
return f().enableVerticalExpansion&&f().showMoreButton&&B()&&((c8=(W8=f().contents)==null?void 0:W8.length)!=null?c8:0)>p().numItemsPerGridRow*w()},N=function(){return!O()},x=function(){return!S()},Y={};
return _.C("grid-shelf-view-model",{class:_.If("ytGridShelfViewModelHost",W.className,(Y.ytGridShelfViewModelHostHasBottomButton=function(){return O()||S()},Y.ytGridShelfViewModelHostIsDismissed=function(){var W8,c8=(W8=n())!=null?W8:{};
W8=c8.behavior;var B8=c8.isDismissed,Jx=c8.stamperContextTargetId;c8=c8.stamperIndex;if(!(_.U("mweb_see_fewer_shorts_group_dismissal")&&B8&&W8&&Jx))return!1;var H8;B8=P;for(var Kq,Z4,Ax=((Kq=B8)==null?0:Kq.targetId)?_.w9((Z4=B8)==null?void 0:Z4.targetId):void 0;((H8=B8)==null?0:H8.parent)&&Ax!==Jx;)B8=B8.parent,Z4=Kq=void 0,Ax=((Kq=B8)==null?0:Kq.targetId)?_.w9((Z4=B8)==null?void 0:Z4.targetId):void 0;H8=Ax===Jx?B8:void 0;if(!H8)return!1;var sM;Jx=H8==null?void 0:(sM=H8.stamperIndex)==null?void 0:
sM.call(H8);return W8==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||W8==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&Jx!=null&&c8!=null&&Jx>c8},Y)),
el:V,style:_.Tm({"margin-left":(0,_.nD)(function(){return p().contentPadding}),
"margin-right":(0,_.nD)(function(){return p().contentPadding})})},_.C(_.c,{cond:function(){return _.k(f().header,lPX)},
then:function(W8){return _.C(_.Yx,{data:W8,disableHorizontalPadding:!0})}}),_.C("div",null,_.C(_.G3,{each:function(){return Array(X())}},function(W8,c8){return _.C(N49,{className:W.className,
items:l(c8),responsiveGridShelfLayout:p,contentAspectRatio:H})})),_.C("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.C(_.QH,{data:function(){return f().showMoreButton}},{buttonViewModel:function(W8){return _.C("div",{hidden:x},_.C(_.Nq,{data:W8.data,
onClick:J}))}}),_.C(_.QH,{data:function(){return f().showLessButton}},{buttonViewModel:function(W8){return _.C("div",{hidden:N},_.C(_.Nq,{data:W8.data,
onClick:D}))}})))},"Lc");
YSa.idomCompat=!0;var N49=_.Q(function(W){var l=W.items;var V=W.responsiveGridShelfLayout;var f=W.contentAspectRatio;W=W.className;var r=_.WS("div");CdU(r,function(){a:{var y=r.value;for(var P=l(),n=[],B=0;B<P.length;B++){var d=_.k(P[B],jHZ);if(!d||d==null||!d.inlinePlayerData){y=null;break a}var J=y.children.item(B);if(!J){y=null;break a}n.push({thumbnailElement:J,videoData:d})}y={gridVideoPreviewData:{gridItems:n}}}return y});
var R=(0,_.nD)(function(){return-V().itemMargin});
return _.C("div",{el:r,class:_.If("ytGridShelfViewModelGridShelfRow",W),style:_.Tm({"margin-left":R,"margin-right":R})},_.C(_.QH,{data:l,replacementWrapper:function(y){return _.C(xnv,{responsiveGridShelfLayout:V},y)}},{shortsLockupViewModel:function(y){return _.C(xnv,{responsiveGridShelfLayout:V},_.C(HHa,{data:y.data,
aspectRatio:function(){return f()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"Mc"),xnv=_.Q(function(W){return _.C("div",{style:_.Tm({width:(0,_.nD)(function(){return W.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+W.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},W.children)},"Nc");
YSa.idomCompat=!0;_.HI(YSa,"grid-shelf-view-model",{props:{data:_.pA,layoutContainerWidth:_.pA,shouldUseOwnContainerSize:_.pA,marginSettings:_.pA,className:_.pA}});_.eRk=_.Q(function(W){var l=_.L(_.J4(!1,void 0,"FVl30c")),V=l.next().value,f=l.next().value;l={};return _.C("yt-alert-banner-view-model",{class:_.If("ytAlertBannerViewModelHost",W.className,function(){var r;a:switch((r=W.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},(l.ytAlertBannerViewModelDismissed=
V,l.ytAlertBannerViewModelFullbleed=W.fullbleed,l.ytAlertBannerViewModelNarrow=W.narrow,l.ytAlertBannerViewModelIsInRichGrid=W.isInRichGrid,l))},_.C(_.c,{cond:function(){var r;
return!((r=W.data())==null?0:r.hideIcon)},
then:function(){return _.C("div",{class:"ytAlertBannerViewModelIcon"},_.C(_.wN,{icon:function(){return"info_circle"}}))}}),_.C("div",{class:"ytAlertBannerViewModelOuterContainer"},_.C("div",{class:"ytAlertBannerViewModelContainer"},_.C("div",{class:"ytAlertBannerViewModelContent"},_.C("div",{class:"ytAlertBannerViewModelHeading"},_.C(_.bH,{text:function(){var r;
return(r=W.data())==null?void 0:r.heading}})),_.C("div",{class:"ytAlertBannerViewModelBody"},_.C(_.bH,{text:function(){var r;
return(r=W.data())==null?void 0:r.body}})))),_.C(_.QH,{data:function(){var r;
return(r=W.data())==null?void 0:r.actionButton}},{buttonViewModel:function(r){return _.C(_.Nq,{data:r.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.C(_.QH,{data:function(){var r;
return(r=W.data())==null?void 0:r.dismissButton}},{buttonViewModel:function(r){return _.C(_.Nq,{data:r.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var R;((R=W.data())==null?0:R.disableLocalDismissBehavior)||f(!0)}})}}))},"Oc");_.HI(_.eRk,"yt-alert-banner-view-model",{props:{data:_.pA,fullbleed:_.pA,narrow:_.pA,isInRichGrid:_.pA,className:_.pA}});_.CD=_.Q(function(W){var l=W.data;var V=W.callback;var f=W.selectionBehavior;var r=W.disableChipsScrollAnimation;var R=_.lN("div");W=_.L(_.J4(!0,void 0,"aUEsOc"));var y=W.next().value,P=W.next().value;W=_.L(_.J4(!1,void 0,"V0aKld"));var n=W.next().value,B=W.next().value,d=!1,J=0;_.iz(function(){P(H());B(p())});
W=_.L(_.X3(function(){var W8={};return l().autoselectedChipIndex!=null?(W8[l().autoselectedChipIndex]=!0,W8):{}}));
var D=W.next().value,u=W.next().value,H=function(){var W8=R.value;return W8==null||W8.scrollLeft-1<=0},p=function(){var W8=R.value;
return W8==null?!1:W8.scrollLeft+1>=(W8==null?NaN:W8.scrollWidth)-(W8==null?NaN:W8.clientWidth)},X=function(){return l().isHorizontallyScrollable},w=function(W8){R.value!=null&&(_.M4("HTML_DIR")==="rtl"&&(W8=-W8),R.value.scrollBy({left:W8,
behavior:(r==null?0:r())?"instant":"smooth"}))},O=function(){w(-320)},S=function(){w(320)},N=_.ip(function(W8){d=!0;
J=W8.clientX}),x=_.ip(function(W8){if(d){W8=W8.clientX;
var c8=W8-J;J=W8;var B8;(B8=R.value)==null||B8.scrollBy({left:-c8})}}),Y=_.ip(function(){var W8=H(),c8=p();
W8!==y()&&P(W8);c8!==n()&&B(c8)});
R_("pointerup",function(){d&&(d=!1)});
return _.C("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.C(_.QF,{contentId:function(){return l().contentId},
useModernStyle:!0},function(){var W8={},c8={};return _.C("div",null,_.C(_.c,{cond:function(){return l().title},
then:function(){return _.C("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.C("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return l().title}),_.C(_.QH,{data:function(){return l().overflowButton}},{buttonViewModel:_.Nq}))}}),_.C("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.C(_.c,{cond:function(){return l().previousButton},
then:function(){var B8={};return _.C("div",{class:_.If("ytChipsShelfViewModelLeftArrowContainer",(B8.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return y()},B8))},_.C(_.QH,{data:function(){return l().previousButton}},{buttonViewModel:function(Jx){return _.C(_.Nq,{data:Jx.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:O})}}))}}),_.C("div",{el:R,
"on:pointerdown":N,"on:pointermove":x,"on:scroll":Y,class:_.If("ytChipsShelfViewModelChipsScrollContainer",(W8.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=X,W8))},_.C("div",{class:_.If("ytChipsShelfViewModelChipsContainer",(c8.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=X,c8.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,c8)),role:"tablist"},_.C(_.QH,{data:function(){return l().contents}},{chipViewModel:function(B8,Jx){return _.C("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.C(_.Q6k,{data:B8.data,
callback:function(H8,Kq){var Z4=Jx(),Ax,sM=(Ax=f==null?void 0:f())!=null?Ax:0;sM===1||sM===2?(Ax={},u((Ax[Z4]=Kq,Ax))):(Ax={},u(Object.assign({},D(),(Ax[Z4]=Kq,Ax))));V==null||V(H8,Kq,Z4)},
disableDeselection:function(){return(f==null?void 0:f())===1},
selected:function(){return!!D()[Jx()]}}))}}))),_.C(_.c,{cond:function(){return l().nextButton},
then:function(){var B8={};return _.C("div",{class:_.If("ytChipsShelfViewModelRightArrowContainer",(B8.ytChipsShelfViewModelRightArrowContainerIsHidden=n,B8))},_.C(_.QH,{data:function(){return l().nextButton}},{buttonViewModel:function(Jx){return _.C(_.Nq,{data:Jx.data,
className:"ytChipsShelfViewModelRightArrow",onClick:S})}}))}})))}))},"Pc");
_.CD.idomCompat={callbacks:{callback:!0}};_.HI(_.CD,"chips-shelf-view-model",{props:{data:_.pA,callback:_.kh,selectionBehavior:_.pA,disableChipsScrollAnimation:_.pA}});var qSM=_.Q(function(W){W=_.Dd(W,{disabled:!1});var l=W.active,V=W.disabled;W={};W=_.If("ytSwitchShapeTrack",(W.ytSwitchShapeTrackActive=function(){return l()},W.ytSwitchShapeTrackDisabled=function(){return V()},W));
var f={};f=_.If("ytSwitchShapeKnob",(f.ytSwitchShapeKnobActive=function(){return l()},f));
return _.C("switch-shape",{class:"ytSwitchShapeHost"},_.C("div",{class:W}),_.C("div",{class:f}))},"Qc");var hRv=_.Q(function(W){var l=_.Dd(W,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),V=l.data;W=l.className;var f=l.handleOnTapEventInParent,r=l.parentActive;l=_.L(_.X3(function(){var J;return(J=r())!=null?J:V().switchedOnByDefault||!1}));
var R=l.next().value,y=l.next().value,P=function(){return V().isDisabled},n=_.WS("button");
l=_.ip(function(J){return J.key==="Enter"?(J.preventDefault(),n.value.click(),!1):!0});
var B=_.ip(function(J){if(V().handleOnTapEventInParent||f())return!0;if(P())return!1;pnF(V(),R(),J);y(!R());return!1}),d={};
d=_.If("ytSwitchButtonViewModelButton",(d.ytSwitchButtonViewModelTappable=function(){return!P()},d));
return _.C("switch-button-view-model",{class:_.If("ytSwitchButtonViewModelHost",W)},_.C("button",{el:n,class:d,"on:click":B,"on:keydown":l,"aria-label":function(){return R()?V().a11yLabelSwitchedOn:V().a11yLabelSwitchedOff},
"aria-checked":R,"aria-disabled":P,role:"switch"},_.C(qSM,{active:R,disabled:P})))},"Rc");var SS9=_.Q(function(W){var l=W.data;var V=W.isLeading;var f=W.hideSelectionTextChevron;var r=W.isToggled;var R=function(){return V()?l().leadingImage:l().trailingImage},y=function(){a:switch(l().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var d="expand_more";
break a;default:d="chevron_right"}return d};
W={};var P=_.If("yt-list-item-view-model-wiz__image-container",(W["yt-list-item-view-model-wiz__leading"]=V,W["yt-list-item-view-model-wiz__trailing"]=function(){return!V()},W)),n=_.If("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
W={};var B=_.If("yt-list-item-view-model-wiz__accessory",(W["yt-list-item-view-model-wiz__leading"]=V,W["yt-list-item-view-model-wiz__trailing"]=function(){return!V()},W));
return _.C(_.c,{cond:function(){var d=l(),J=V();return!!(J&&(d.leadingImage||d.leadingAccessory)||!J&&(d.trailingImage||d.trailingButton||d.trailingButtons||d.selectionText))},
then:function(){return _.C(_.Lp,null,_.C(_.c,{cond:R,then:function(d){return _.C("div",{class:P,"aria-hidden":"true"},_.C(_.dN,{data:d,alt:"",preserveWidth:!0,preserveHeight:!0,className:n,isToggled:r}))}}),_.C(_.c,{cond:function(){return V()&&l().leadingAccessory},
then:function(){return _.C("div",{class:P},_.C(_.QH,{data:function(){return l().leadingAccessory}},{avatarViewModel:function(d){return _.C(_.gn,{data:d.data,
avatarButtonCustomClassName:n})},
collectionThumbnailViewModel:function(d){return _.C(Jo$,{data:d.data,maxHeight:36,includeStackHeight:!0})}}))}}),_.C(_.c,{cond:function(){return!V()&&l().trailingButton},
then:function(){return _.C("div",{class:"yt-list-item-view-model-wiz__button-container"},_.C(_.QH,{data:function(){return l().trailingButton}},{buttonViewModel:function(d){return _.C(_.Nq,{data:d.data,
className:B})}}))}}),_.C(_.c,{cond:function(){var d;
return!V()&&((d=l().trailingButtons)==null?void 0:d.buttons)},
then:function(){return _.C("div",{class:"yt-list-item-view-model-wiz__button-container"},_.C(_.QH,{data:function(){var d;return(d=l().trailingButtons)==null?void 0:d.buttons}},{buttonViewModel:function(d){return _.C(_.Nq,{data:d.data,
className:B})},
accountLinkButtonViewModel:function(d){return _.C(sPc,{data:d.data,className:B})},
switchButtonViewModel:function(d){return _.C(hRv,{data:d.data,className:B})},
subscribeButtonViewModel:function(d){return _.C(_.gi,{data:d.data,isOverlay:!1,animateWidth:!1,className:B})},
toggleButtonViewModel:function(d){return _.C(_.gy,{data:d.data,className:B})}}))}}),_.C(_.c,{cond:function(){return!V()&&!!l().selectionText},
then:function(){return _.C(_.Lp,null,_.C(_.bH,{text:function(){return l().selectionText},
className:_.If("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.C(_.c,{cond:function(){return!(f==null?0:f())},
then:function(){return _.C(_.wN,{icon:y,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Sc");var EAX=_.Q(function(W){var l=W.data;return _.C(_.c,{cond:function(){return l().title||l().subtitle},
then:function(){return _.C("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.C(_.c,{cond:function(){return l().title},
then:function(V){return _.C("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.C(_.bH,{text:V,className:"yt-list-item-view-model-wiz__title"}))}}),_.C(_.c,{cond:function(){return l().subtitle},
then:function(V){return _.C(_.bH,{text:V,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Tc");var cr=_.Q(function(W){var l=W.data;var V=W.hideSelectionTextChevron;var f=W.TrailingAccessory;var r=W.isToggled;var R=W.disabled;var y=W.isSelectItem;var P=W.isCompact;var n=W.inPopup;var B=W.disableHorizontalPadding;W=W.isTappableWithoutSelect;var d={};return _.C("div",{class:_.If("yt-list-item-view-model-wiz__label",(d["yt-list-item-view-model-wiz__container"]=function(){return!(y==null?0:y())},d["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!l().isDisabled||!(R==null||
!R())},d["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!l().subtitle},d["yt-list-item-view-model-wiz__container--compact"]=P,d["yt-list-item-view-model-wiz__container--tappable"]=W,d["yt-list-item-view-model-wiz__container--in-popup"]=n,d["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(B==null?void 0:B())&&!(y==null?0:y())},d))},_.C(SS9,{data:l,
isLeading:!0,hideSelectionTextChevron:V,isToggled:r}),_.C(EAX,{data:l}),_.C(_.c,{cond:function(){return!!f},
then:function(){return _.C("div",{class:"yt-list-item-view-model-wiz__trailing"},f&&_.C(f,null))},
else:function(){return _.C(SS9,{data:l,isLeading:!1,hideSelectionTextChevron:V,isToggled:r})}}))},"Uc");var W0$=_.Q(function(W){var l=_.Dd(W,{checked:!1});W=l.name;var V=l.onChange,f=l.onClick,r=l.checked,R=l.labelRenderable,y=l.hasLeadingLabel,P=l.labelClass,n=l.isCompact,B=l.selectElementClass;l=l.disableHorizontalPadding;var d="checkbox"+_.Wd(_.Pr),J=_.ip(function(H){f==null||f(H);return!1}),D=_.ip(function(H){V==null||V(H);
return!1}),u={};
return _.C("checkbox-shape",null,_.C("label",{class:_.If("checkbox-shape-wiz",P,(u["checkbox-shape-wiz--compact"]=n,u["checkbox-shape-wiz--disable-horizontal-padding"]=l,u))},_.C("input",{class:"checkbox-shape-wiz__input",id:d,checked:r,name:W,type:"checkbox","prop:checked":r,"on:change":D,"on:click":J}),_.C(_.c,{cond:function(){return!(y==null?0:y())},
then:function(){return _.C($na,{isLeading:!0,selectElementClass:B})}}),_.C(_.c,{cond:function(){return!!R},
then:function(){return _.C("div",{class:"checkbox-shape-wiz__label"},R==null?void 0:R())}}),_.C(_.c,{cond:y,
then:function(){return _.C($na,{isLeading:!1,selectElementClass:B})}})))},"Vc");
W0$.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var $na=_.Q(function(W){var l=W.selectElementClass;W={};return _.C("div",{class:_.If("checkbox-shape-wiz__checkbox",l,(W["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(l==null?0:l())},W)),
"aria-hidden":"true"},_.C(_.wN,{icon:_.U("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.C(_.wN,{icon:_.U("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Wc");_.Br=_.Q(function(W){var l=W.name;var V=W.onChange;var f=W.onClick;var r=W.checked;var R=W.labelRenderable;var y=W.useCheckIcon;var P=W.hasLeadingLabel;var n=W.labelClass;var B=W.isCompact;var d=W.selectElementClass;var J=W.ariaLabel;W=W.className;var D="radio"+_.Wd(_.Pr),u=_.WS("input"),H=_.ip(function(Y){u.value.checked=!(r==null||!r());V==null||V(Y);return!1}),p=_.ip(function(Y){f==null||f(Y);
return!1}),X=_.ip(function(Y){_.U("enable_ios_webview_radio_button_responsiveness")&&(Y.preventDefault(),u.value.click())}),w=_.L(_.J4(!1,void 0,"TcCZlf")),O=w.next().value,S=w.next().value;
w=_.ip(function(){var Y;((Y=_.tY().resolve(_.R0(_.Q5)))==null?0:Y.isKeyBoardInUse())&&S(!0)});
var N=_.ip(function(){S(!1)}),x={};
return _.C("radio-shape",{class:_.If("radio-shape-wiz",W)},_.C("input",{el:u,class:"radio-shape-wiz__input",id:D,"prop:checked":r,name:l,type:"radio","on:change":H,"on:click":p,"aria-label":J,"on:focusin":w,"on:focusout":N}),_.C("label",{class:_.If("radio-shape-wiz__label-container",n,(x["radio-shape-wiz--compact"]=B,x["radio-shape-wiz__label-container--keyboard-focused"]=O,x)),for:D,"on:click":X},_.C(_.c,{cond:function(){return!(P==null?0:P())},
then:function(){return _.C(lH9,{checked:r,useCheckIcon:y,isLeading:!0,selectElementClass:d})}}),_.C(_.c,{cond:function(){return!!R},
then:function(){return _.C("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(J==null?0:J())?"true":"false"}},R==null?void 0:R())}}),_.C(_.c,{cond:P,
then:function(){return _.C(lH9,{checked:r,useCheckIcon:y,isLeading:!1,selectElementClass:d})}})))},"Xc");
_.Br.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var lH9=_.Q(function(W){var l=W.useCheckIcon;var V=W.selectElementClass;W=function(){return(l==null?0:l())?"CHECK":_.U("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var f={};return _.C("div",{class:_.If("radio-shape-wiz__radio",V,(f["radio-shape-wiz__radio--check-icon"]=l,f["radio-shape-wiz__radio--radio-default-style"]=function(){return!(V==null?0:V())},f)),
"aria-hidden":"true"},_.C(_.wN,{icon:W}),_.C(_.wN,{icon:W,active:function(){return!(l==null?0:l())}}))},"Yc");_.dR=_.Q(function(W){var l=W.data;var V=W.isMenuItem;var f=W.isCompact;var r=W.onTap;var R=W.trailingAccessory;var y=W.hideSelectionTextChevron;var P=W.disabled;var n=W.inPopup;var B=W.disableHorizontalPadding;var d=W.isOverlay;W=W.isToggled;var J=_.$h(function(c8){return IGz(c8,l())}),D=function(){return _.U("enable_web_shorts_captions_language_command")?Object.assign({},l(),J()):l()},u=function(){return!(D().isSelected===void 0||!D().selectionStyle||D().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
H=function(){return(_.hy(D().rendererContext)||r)&&!u()},p={},X=_.If("yt-list-item-view-model-wiz__container",(p["yt-list-item-view-model-wiz__container--tappable"]=function(){return _.hy(D().rendererContext)||u()},p["yt-list-item-view-model-wiz__container--compact"]=f,p["yt-list-item-view-model-wiz__container--in-popup"]=n,p["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(B==null?void 0:B())&&u()},p)),w=function(){return D().leadingImage||D().leadingAccessory},
O=_.If("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"});
p=_.ip(function(c8){return void(r==null?void 0:r(c8))});
var S=_.Iez(),N=_.L(_.J4(!1,void 0,"VAEbUb")),x=N.next().value,Y=N.next().value,W8={data:D,hideSelectionTextChevron:y,TrailingAccessory:R,isToggled:W,disabled:P,isSelectItem:u,isCompact:f,inPopup:n,disableHorizontalPadding:B,isTappableWithoutSelect:H};R={};return _.C("yt-list-item-view-model",{el:_.DN(_.E_(function(){return D().rendererContext}),Ykj(function(){return H==null?void 0:H()},{focusin:function(){var c8;
((c8=_.tY().resolve(_.R0(_.Q5)))==null?0:c8.isKeyBoardInUse())&&Y(!0)},
focusout:function(){Y(!1)}})),
class:_.If("yt-list-item-view-model-wiz",(R["yt-list-item-view-model-wiz--is-overlay"]=d,R["yt-list-item-view-model-wiz--keyboard-focused"]=x,R)),role:function(){return(V==null?0:V())?"menuitem":"listitem"},
tabindex:function(){var c8=H();return r||c8?0:void 0},
"on:keydown":S,"on:click":p},_.C(_.c,{cond:u,then:function(){return _.C(_.oh,null,_.C(_.bz,{when:function(){return D().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.C(W0$,{labelRenderable:function(){return _.C(cr,Object.assign({},W8))},
isCompact:f,checked:function(){return D().isSelected},
hasLeadingLabel:function(){return!!w()},
labelClass:X,selectElementClass:O,disableHorizontalPadding:B})}),_.C(_.bz,{when:function(){return D().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.C(_.Br,{labelRenderable:function(){return _.C(cr,Object.assign({},W8))},
isCompact:f,checked:function(){return D().isSelected},
hasLeadingLabel:function(){return!!w()},
labelClass:X,selectElementClass:O})}),_.C(_.bz,{when:function(){return D().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.C(_.Br,{labelRenderable:function(){return _.C(cr,Object.assign({},W8))},
isCompact:f,checked:function(){return D().isSelected},
hasLeadingLabel:function(){return!!w()},
labelClass:X,selectElementClass:O,useCheckIcon:!0})}),_.C(_.pp,null,function(){return _.C(cr,Object.assign({},W8))}))},
else:function(){return _.C(cr,Object.assign({},W8))}}))},"Zc");
_.dR.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.V_c=_.Q(function(W){var l=W.data;var V=W.onTap;var f=W.onSwitch;var r=W.overrideDisabled;W=W.disableHorizontalPadding;var R=_.L(_.X3(function(){var J;return((J=jLU(d()))==null?void 0:J.switchedOnByDefault)||!1})),y=R.next().value,P=R.next().value;
R=_.L(_.J4(!1,void 0,"uRe0y"));var n=R.next().value,B=R.next().value,d=function(){var J;if(!(J=l().switchButton)){var D=l();J=r==null?void 0:r();D={switchOnCommand:D.switchOnCommand,switchOffCommand:D.switchOffCommand,switchedOnByDefault:D.switchedOnByDefault,isDisabled:D.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:D.a11yLabelSwitchedOn,a11yLabelSwitchedOff:D.a11yLabelSwitchedOff};J!==void 0&&(D.isDisabled=J);J={switchButtonViewModel:D}}return J};
return _.C("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.C(_.dR,{data:function(){return{title:l().title,subtitle:l().attributedSubtitle,leadingImage:l().leadingImage,leadingAccessory:l().leadingAccessory,isDisabled:l().isDisabled}},
onTap:function(J){var D=jLU(d());!D||D.isDisabled||l().ignoreTapUntilCommandCompletes&&n()||(V==null||V(J),pnF(D,y(),J,l().ignoreTapUntilCommandCompletes,B),P(!y()),f==null||f(y()))},
trailingAccessory:function(){return _.C(_.QH,{data:d},{switchButtonViewModel:function(J){return _.C(hRv,{data:J.data,parentActive:y,handleOnTapEventInParent:!!V})}})},
disableHorizontalPadding:W}))},"$c");var fHa=_.Q(function(W){var l=_.L(_.X3(function(){var r,R;return!!((r=W.data())==null?0:(R=r.initialState)==null?0:R.isToggled)})),V=l.next().value,f=l.next().value;
l=_.ip(function(){f(!V())});
return _.C("toggleable-list-item-view-model",{el:_.DN(_.E_(function(){return W.data().rendererContext})),
class:_.If("toggleableListItemViewModelHost",W.className),"on:click":l},_.C(_.c,{cond:function(){if(V()){var r=W.data().toggledListItem;r=_.k(r,_.O_)}else r=W.data().defaultListItem,r=_.k(r,_.O_);return r},
then:function(r){return _.C(_.dR,{data:r,isToggled:V,ariaLabel:function(){var R=V()?W.data().toggledListItem:W.data().defaultListItem,y;R=(y=_.k(R,_.O_))==null?void 0:y.rendererContext;var P;return(P=_.k(R,_.N0))==null?void 0:P.label},
ariaPressed:function(){return V()}})}}))},"ad");var rVM=_.wg("DOWNLOAD",{},"Download"),RLe=_.wg("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),t_9=_.wg("RETRY",{},"Retry"),sNk=_.wg("PAUSE_DOWNLOADING",{},"Pause downloading"),L0Z=_.wg("RESUME_DOWNLOAD",{},"Resume download"),iyg={text:rVM,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},A$={text:RLe,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},T0v={text:t_9,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
m2g={text:sNk,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},XnY={text:L0Z,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var yVe=_.Q(function(W){var l=function(){var P=W.data();P=_.qB(P.rendererContext);var n;return(n=_.k(P,_.Xx))==null?void 0:n.videoId},V=_.$h(function(P){var n=l(),B=QLx(W.data());
return n?_.rE(P,n):B?_.RD(P,B):"TRANSFER_STATE_UNKNOWN"}),f=_.wH(_.lSx,l),r=_.$h(function(P){return _.emj(P,l(),QLx(W.data()))}),R=function(){return AnU(V(),f(),_.qB(W.data().rendererContext),!!QLx(W.data()))},y=function(){return r()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.C("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:y},_.C(_.c,{cond:function(){return!y()},
then:function(){return _.C(_.c,{cond:R,then:function(P){return _.C(_.G3,{each:P},function(n){return _.C(_.dR,{data:n,isCompact:W.isCompact,isMenuItem:W.isMenuItem,inPopup:W.inPopup,disableHorizontalPadding:W.disableHorizontalPadding})})}})}}))},"bd");
yVe.idomCompat=!0;_.g8L=_.Q(function(W){var l=W.data;var V=W.isCompact;var f=W.hideSelectionTextChevron;var r=W.inPopup;var R=W.isOverlay;var y=W.disableHorizontalPadding;var P=function(){return MUg(l())&&(r==null?void 0:r())};
W={};return _.C("yt-list-view-model",{class:_.If("ytListViewModelHost",(W.ytListViewModelHostKaiosSpatNav=EmF&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",W.ytListViewModelCollectionThumbnailClass=function(){return aG4(l())},W)),
role:function(){return P()?"menu":"list"},
style:_.Tm({"max-height":function(){var n,B=(n=l())==null?void 0:n.visibleElementCount;if(B)return aG4(l())?(B+.5)*48+"px":(B+.5)*40+"px"}})},_.C(_.QH,{data:function(){return l().listItems}},{listItemViewModel:function(n){return _.C(_.dR,{data:n.data,
isMenuItem:P,isCompact:V,hideSelectionTextChevron:f,inPopup:r,isOverlay:R,disableHorizontalPadding:y})},
toggleableListItemViewModel:function(n){return _.C(fHa,{data:n.data})},
downloadListItemViewModel:function(n){return _.C(yVe,{data:n.data,isMenuItem:P,isCompact:V,inPopup:r,disableHorizontalPadding:y})},
switchListItemViewModel:function(n){return _.C(_.V_c,{data:n.data,disableHorizontalPadding:y})}}))},"cd");
_.g8L.idomCompat=!0;var PvI=_.Q(function(W){var l=W.data;var V=W.isOverlay;W={};return _.C("yt-course-perks-view-model",{class:_.If("ytwCoursePerksViewModelHost",(W.ytwCoursePerksViewModelHostOverlay=V,W))},_.C("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.C(_.bH,{text:function(){return l().title}})),_.C("div",null,_.C(_.c,{cond:function(){return l().perks},
then:function(f){return _.C(_.g8L,{data:function(){return{listItems:f()}},
isCompact:!0,isOverlay:V})}})))},"dd");_.HI(PvI,"yt-course-perks-view-model",{props:{data:_.kh,isOverlay:_.kh}});_.HI(_.Q(function(W){var l=W.data;return _.C("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.C("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.C(_.bH,{text:function(){return l().title}})),_.C("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.C(_.bH,{text:function(){return l().progressSummary}})),_.C("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.C("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Tm({width:function(){return l().progressPercentage*100+"%"}})})))},"ed"),"yt-course-progress-view-model",{props:{data:_.pA}});var n8c=_.Q(function(W){var l={};return _.C("yt-progress-view-model",{class:_.If("ytwProgressViewModelHost",(l.ytwProgressViewModelHostOverlay=_.JG(W.isOverlay,!1),l))},_.C(_.c,{cond:function(){return W.data().progressSummary},
then:function(V){return _.C("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.C(_.bH,{text:V}))}}),_.C("div",{class:"ytwProgressViewModelHostProgressContainer"},_.C(_.c,{cond:function(){return W.data().leadingLabel},
then:function(V){return _.C("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.C(_.bH,{text:V}))}}),_.C("div",{class:"ytwProgressViewModelHostProgressBar"},_.C("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(W.data().progressPercentage||0)*100+"%"}}))))},"fd");var JB=_.Q(function(W){var l=W.starNumber;var V=W.data;var f=function(){var r;return((r=V())==null?void 0:r.rating)||0};
return _.C(_.c,{cond:function(){return l()},
then:function(r){return _.C(_.oh,null,_.C(_.bz,{when:function(){return f()>=r()-.25}},function(){return _.C("div",{class:"ytStarRatingViewModelHostStar"},_.C(_.wN,{icon:"STAR_FILLED"}))}),_.C(_.bz,{when:function(){return f()>=r()-.75}},function(){return _.C("div",{class:"ytStarRatingViewModelHostStar"},_.C(_.wN,{icon:"STAR_HALF"}))}),_.C(_.pp,null,function(){return _.C("div",{class:"ytStarRatingViewModelHostStar"},_.C(_.wN,{icon:"STAR_BORDER"}))}))}})},"gd"),CvB=_.Q(function(W){W=W.data;
return _.C("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.C(JB,{starNumber:1,data:W}),_.C(JB,{starNumber:2,data:W}),_.C(JB,{starNumber:3,data:W}),_.C(JB,{starNumber:4,data:W}),_.C(JB,{starNumber:5,data:W}))},"hd");_.HI(_.Q(function(W){var l=_.Dd(W,{}).data;return _.C("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.C("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.C(_.bH,{text:function(){var V;return(V=l())==null?void 0:V.title}})),_.C("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.C(_.c,{cond:function(){return l().starProgressViewModels},
then:function(V){return _.C("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.C(_.QH,{data:V},{progressViewModel:n8c}))}}),_.C("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.C("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.C(_.bH,{text:function(){var V;
return(V=l())==null?void 0:V.averageRatingLabel}})),_.C(_.c,{cond:function(){return l().zeroStateText},
then:function(V){return _.C("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.C(_.bH,{text:V}))}}),_.C(_.c,{cond:function(){return l().starRatingViewModel},
then:function(V){return _.C("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.C(_.QH,{data:V},{starRatingViewModel:CvB}))}}),_.C("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.C(_.bH,{text:function(){var V;
return(V=l())==null?void 0:V.totalRatingsCountLabel}})))))},"id"),"yt-course-ratings-view-model",{props:{data:_.kh}});var cVL;cVL={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"}};_.BQM=_.Q(function(W){var l=_.WS("yt-learning-journey-loader-view-model"),V=_.i$();_.iz(function(){requestAnimationFrame(function(){var r;(r=V.lottieEl)==null||r.addEventListener("DOMLoaded",function(){var R;(R=W.onLottieLoaded)==null||R.call(W)})});
var f=W.data().browseEndpoint;f&&_.sZ(f)});
return _.C("yt-learning-journey-loader-view-model",{class:_.If("learningJourneyLoaderViewModelHost",W.className),"data-target-id":function(){var f;return((f=W.data)==null?void 0:f.call(W).targetId)||""},
el:l},_.C(_.SX,{className:_.If("learningJourneyLoaderViewModelLoader",W.className),animationName:function(){return cVL.animationConfig.name},
data:cVL,animationRef:V}))},"jd");_.HI(_.BQM,"yt-learning-journey-loader-view-model",{props:{data:_.pA,className:_.kh,onLottieLoaded:_.kh}});var N0j=new Set,z$j=null;var JVM=_.Q(function(W){var l=null,V=null,f=function(){return W.data()},r=function(){var p=f();
var X=_.tY().resolve(_.R0(_.nP));p=X!=null&&X()?p.darkThemeColorPalette:p.lightThemeColorPalette;return{primaryTextColor:Mr(p,0),secondaryTextColor:Mr(p,1),optionColor:Mr(p,2),backgroundColor:Mr(p,3),videoBackgroundColor:Mr(p,4)}},R=function(){return!!r().optionColor},y=_.L(_.J4(-1,void 0,"F20Hhb")),P=y.next().value,n=y.next().value,B=function(p){return f().correctAnswerIndex===p},d=function(){return P()!==-1};
y=_.L(_.J4("",void 0,"ZztYo"));var J=y.next().value,D=y.next().value,u=function(){var p=d(),X=P()===f().correctAnswerIndex;return p?X?264685:264684:264683},H=function(p){return P()===f().correctAnswerIndex&&B(p)};
return _.C("learning-journey-quiz-view-model",{class:_.If("learningJourneyQuizViewModelHost",W.className),style:_.Tm({background:function(){return r().backgroundColor}})},_.C("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},J),_.C(_.c,{cond:function(){return!!f().video},
then:function(){return _.C("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Tm({background:function(){return r().videoBackgroundColor}})},_.C(_.QH,{data:function(){return f().video}},{lockupViewModel:function(p){return _.C(_.au,{data:p.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.C("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.C("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.C("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.C(_.c,{cond:function(){return!!f().aiGeneratedQuizLabel},
then:function(){return _.C("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.C(_.bH,{text:function(){return f().aiGeneratedQuizLabel}}))}}),_.C("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.Tm({"align-items":function(){return f().overflowMenu?"start":"center"}})},_.C("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.Tm({"min-height":function(){return f().overflowMenu?"48px":"26px"}})},_.C("div",{class:"learningJourneyQuizYoututorText",
el:_.DN(function(p){_.Ql(u(),p,l,function(X){l=X})}),
style:_.Tm({color:function(){return r().primaryTextColor}}),
"client-ve-type":u},_.C(_.bH,{text:function(){return f().questionHeaderText}})))),_.C("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.DN(function(p){_.Ql(264688,p,V,function(X){V=X})}),
style:_.Tm({color:function(){return r().secondaryTextColor}}),
"client-ve-type":264688},_.C(_.bH,{text:function(){var p=f();return d()?p.explanationText:p.questionSubheaderText}}))),_.C("div",{role:"group",
class:_.If("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.C(_.G3,{each:function(){return f().optionsData||[]}},function(p,X){var w={};
return _.C("button",{class:_.If("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(w.learningJourneyQuizViewModelHostQuizHover=function(){return!d()},w.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=R,w.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return d()&&B(X())},w.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var O;
if(O=P()!==f().correctAnswerIndex)O=X(),O=P()===O;return O},w)),
"on:click":_.ip(function(){if(d())return!1;n(X());var O,S;D(B(X())?((O=f().successTitle)==null?void 0:O.content)||"":((S=f().failureTitle)==null?void 0:S.content)||"");return!1}),
style:_.Tm({background:"transparent"}),"aria-description":function(){var O,S;return d()?B(X())?(O=f().successTitle)==null?void 0:O.content:(S=f().failureTitle)==null?void 0:S.content:""},
"aria-disabled":d,"client-ve-type":264686},_.C("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.C(_.bH,{text:p.optionText}),_.C(_.c,{cond:function(){var O=X(),S;if(S=d())S=P()===O||B(O);return S},
then:function(){return _.C(dMe,{isOptionCorrect:B,optionIndex:X,isOptionSelectedAndCorrect:H,colors:r})}})))}),_.C(_.c,{cond:d,
then:function(){return _.C("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.C("div",{class:"learningJourneyQuizYoututorExplanationText"},_.C(_.bH,{text:function(){return f().explanationHeaderText}})),_.C(_.bH,{text:function(){return f().optionsData[P()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"kd"),dMe=_.Q(function(W){var l={};
return _.C("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",class:_.If("learningJourneyQuizYoututorOptionIconTrailing",(l.learningJourneyQuizViewModelHostQuizPulse=function(){return W.isOptionSelectedAndCorrect(W.optionIndex())},l.learningJourneyQuizYoututorIconIncorrectFill=function(){return!W.isOptionSelectedAndCorrect(W.optionIndex())&&!W.isOptionCorrect(W.optionIndex())},l.learningJourneyQuizYoututorIconCorrectFill=function(){return W.isOptionCorrect(W.optionIndex())},
l))},_.C("path",{d:function(){var V=W.optionIndex();
return W.isOptionCorrect(V)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"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"}}))},
"ld");
JVM.idomCompat=!0;var DML;_.UMM=_.Q(function(W){var l=null,V=null,f=null,r=function(){return W.data()},R=function(){var N=r();
var x=_.tY().resolve(_.R0(_.nP));N=x!=null&&x()?N.darkThemeColorPalette:N.lightThemeColorPalette;return{primaryTextColor:Zp(N,0),secondaryTextColor:Zp(N,1),optionColor:Zp(N,2),backgroundColor:Zp(N,3),videoBackgroundColor:Zp(N,4)}},y=function(){return!!R().optionColor},P=_.L(_.J4(-1,void 0,"QDu8Oe")),n=P.next().value,B=P.next().value,d=function(N){return n()===N},J=function(N){return r().correctAnswerIndex===N},D=function(){return n()!==-1},u=function(){return n()===r().correctAnswerIndex},H=function(){var N=
r(),x=D(),Y=u();
return x?Y?N.successTitle:N.failureTitle:N.questionHeaderText},p=function(){var N=D(),x=u();
return N?x?264685:264684:264683},X=function(){var N=r();
return D()?N.explanationText:N.questionSubheaderText},w=function(){return!!r().video},O=function(N){return u()&&J(N)},S=_.ip(function(){B(-1);
return!1});
return _.C(_.c,{cond:function(){return r().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.C(JVM,{data:function(){return r()}})},
else:function(){return _.C("learning-journey-quiz-view-model",{class:_.If("learningJourneyQuizViewModelHost",W.className),style:_.Tm({background:function(){return R().backgroundColor}})},_.C(_.c,{cond:w,
then:function(){return _.C("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Tm({background:function(){return R().videoBackgroundColor}})},_.C(_.QH,{data:function(){return r().video}},{lockupViewModel:function(N){return _.C(_.au,{data:N.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.C("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.C("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.C("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.C(_.c,{cond:function(){return!!r().aiGeneratedQuizLabel},
then:function(){return _.C("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.C(_.bH,{text:function(){return r().aiGeneratedQuizLabel}}))}}),_.C("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.Tm({"align-items":function(){return r().overflowMenu?"start":"center"}})},_.C("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.Tm({"min-height":function(){return r().overflowMenu?"48px":"26px"}})},_.C("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.DN(function(N){_.Ql(p(),N,l,function(x){l=x})}),
style:_.Tm({color:function(){return R().primaryTextColor}}),
"client-ve-type":p},_.C(_.bH,{text:H}))),_.C("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.C(_.c,{cond:D,then:function(){return _.C("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.DN(function(N){_.Ql(264687,N,V,function(x){V=x})}),
"on:click":S,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.C("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Tm({fill:function(){return R().primaryTextColor}})},_.C("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"})))}}),
_.C(_.QH,{data:function(){return r().overflowMenu}},{buttonViewModel:function(N){return _.C(_.Nq,{data:N.data})}}))),_.C("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.DN(function(N){_.Ql(264688,N,f,function(x){f=x})}),
style:_.Tm({color:function(){return R().secondaryTextColor}}),
"client-ve-type":264688},_.C(_.bH,{text:X}))),_.C("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.C(_.G3,{each:function(){return r().optionsData||[]}},function(N,x){var Y={};
return _.C("button",{class:_.If("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(Y.learningJourneyQuizViewModelHostQuizHover=function(){return!D()},Y.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=y,Y.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return O(x())},Y.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!u()&&d(x())},Y.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return D()&&
!d(x())},Y)),
"on:click":_.ip(function(){if(D())return!1;B(x());return!1}),
style:_.Tm({background:function(){var W8=x();return D()&&d(W8)?"":y()?R().optionColor:"transparent"}}),
"aria-disabled":D,"client-ve-type":264686},_.C("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.C(_.c,{cond:D,then:function(){return _.C(DML,{isOptionCorrect:J,optionIndex:x,isOptionSelectedAndCorrect:O,colors:R})}}),_.C(_.bH,{text:N.optionText})))})))))}})},"md");
DML=_.Q(function(W){var l={};return _.C("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var V=W.optionIndex();return W.isOptionCorrect(V)?"0 0 24 24":"0 -960 960 960"},
class:_.If("learningJourneyQuizViewModelHostQuizOptionIconLeading",(l.learningJourneyQuizViewModelHostQuizPulse=function(){return W.isOptionSelectedAndCorrect(W.optionIndex())},l)),
style:_.Tm({fill:function(){return W.colors().primaryTextColor}})},_.C("path",{d:function(){var V=W.optionIndex();
return W.isOptionCorrect(V)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M330-120L120-330v-300l210-210h300l210 210v300L630-120H330zm36-190l114-114 114 114 56-56-114-114 114-114-56-56-114 114-114-114-56 56 114 114-114 114 56 56z"}}))},"nd");
_.UMM.idomCompat=!0;_.HI(_.UMM,"learning-journey-quiz-view-model",{props:{data:_.pA,className:_.pA}});var u0e=_.Q(function(W){var l=_.L((0,_.ZHa)(function(){var V;return{targetId:(V=W.data().config)==null?void 0:V.suspenseKey,contents:[W.data()]}})).next().value;
return _.C("yt-suspense-view-model",{class:_.If("ytSuspenseViewModelHost")},_.C(_.QH,{data:function(){if(l().contents.length>0){var V;return(V=l().contents[0].config)==null?void 0:V.contents}}},{lockupViewModel:_.au}))},"od");var kB9=_.Q(function(W){var l=_.Dd(W,{palette:void 0,isLastItem:!1}),V=l.palette,f=l.isLastItem,r=function(){return W.data().isHighlighted},R=function(){var n;
return x2z((n=V())==null?void 0:n.iconDisabledColor)},y=function(){var n;
return x2z((n=V())==null?void 0:n.primaryTitleColor)},P=function(){var n;
return x2z((n=V())==null?void 0:n.secondaryTitleColor)};
l={};return _.C("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.DN(_.E_(function(){return W.data().rendererContext}))},_.C(_.QH,{data:function(){return W.data().thumbnail}},{thumbnailViewModel:_.Iu}),_.C("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.C("div",{class:_.If("ytMacroMarkerListItemViewModelTimeDescription",(l.ytMacroMarkerListItemViewModelHighlighted=r,l)),
style:_.Tm({"background-color":function(){return r()?y():R()},
color:function(){return r()?"":P()}})},_.C(_.bH,{text:function(){return W.data().timestamp}})),_.C("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Tm({"background-color":function(){return f()?"transparent":R()}})}),_.C("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(r()?y():P())}},_.C(_.bH,{text:function(){return W.data().title}}))))},"pd");_.DF=_.Q(function(W){function l(RY){O("transform:translateX("+(_.M4("HTML_DIR")==="rtl"?"":"-")+RY+"px)")}
function V(RY){return Math.min(Math.max(RY,0),w()-W8())}
function f(){var RY=x()+H8();return r()?(Math.round(W8()/RY)||1)*RY:0}
var r=function(){return W.data().items||[]},R=function(){return W.data().previousButton},y=function(){return W.data().nextButton},P=function(){var RY,lB;
return(lB=(RY=W.disableArrows)==null?void 0:RY.call(W))!=null?lB:!1},n=function(){var RY;
return!((RY=W.forceNarrowLayout)==null||!RY.call(W))},B=_.v4(function(){var RY;
return!((RY=W.centerAlignItems)==null||!RY.call(W))&&w()<=W8()},void 0,"Uto0kc"),d=_.WS("horizontal-shelf-view-model"),J=_.WS("div"),D=_.L(_.J4(0,void 0,"G0xZB")),u=D.next().value,H=D.next().value;
D=_.L(_.J4(0,void 0,"kqCYFf"));var p=D.next().value,X=D.next().value,w=p;p=_.L(_.J4("",void 0,"Hh6Uye"));D=p.next().value;var O=p.next().value;p=_.L(_.J4(0,void 0,"yMGBKb"));var S=p.next().value,N=p.next().value,x=S;p=_.L(_.J4(0,void 0,"VChthd"));S=p.next().value;var Y=p.next().value,W8=S;p=_.L(_.J4(!1,void 0,"qJlhhe"));var c8=p.next().value,B8=p.next().value;p=_.L(_.J4(0,void 0,"x7H94"));S=p.next().value;var Jx=p.next().value,H8=S;p=_.L(_.J4(0,void 0,"ksuUee"));var Kq=p.next().value,Z4=p.next().value;
p=_.L(_.J4("50%",void 0,"uxCxde"));var Ax=p.next().value,sM=p.next().value,Ta=function(){var RY,lB=(RY=W.data())==null?void 0:RY.responsiveContainerConfiguration,kc,n2;return lB?G0U(lB==null?void 0:lB.responsiveSize):(n2=(kc=W.sizing)==null?void 0:kc.call(W))!=null?n2:"STANDARD"};
p=_.v4(function(){return!P()&&u()>0},void 0,"XK60w");
S=_.v4(function(){return!P()&&u()<w()-W8()},void 0,"D22LVd");
var ck=function(){H(V(u()-f()));l(u())},Wk=function(){H(V(u()+f()));
l(u())},D$=function(){d.value!==null&&iB()},Bk;
_.mw(function(){iB();window.ResizeObserver?(Bk=new ResizeObserver(_.Zh(D$,0)),Bk.observe(d.value)):window.addEventListener("resize",D$)});
_.Xc(function(){if(window.ResizeObserver){var RY;(RY=Bk)==null||RY.disconnect()}else window.removeEventListener("resize",D$)});
var iB=function(){var RY=d.value.clientWidth,lB=W.includeMargin!==void 0?W.includeMargin():!1,kc;var n2=W.hasPeek!==void 0?W.hasPeek():!((kc=W.data())==null||!kc.hasPeek);RY=_.fh({containerWidth:RY,hasPeek:n2,sizing:Ta(),marginSettings:lB?n()?4:1:0});Jx(RY.gutter);Z4(RY.margin);N(RY.itemWidth);B8(RY.maxContainerWidth<528||n());Y(RY.maxContainerWidth);r()&&X((RY.itemWidth+RY.gutter)*r().length-RY.gutter);if(r()){var vk;if(((vk=W.thumbnailAspectRatio)==null?void 0:vk.call(W))!==void 0){var VL;sM(x()/
Thx((VL=W.thumbnailAspectRatio)==null?void 0:VL.call(W))/2+"px")}else sM("50%")}},p2={},SL={};
return _.C("horizontal-shelf-view-model",{class:_.If("ytwHorizontalShelfViewModelHost",W.className),el:d},_.C(_.c,{cond:function(){var RY;return W.data().header&&!((RY=W.horizontalShelfExperiments)==null?0:RY.call(W).hideHeader)},
then:function(){return _.C("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Tm({width:function(){return W8()+"px"},
padding:function(){return"0 "+Kq()+"px"}})},_.C(_.QH,{data:function(){return W.data().header}},{sectionHeaderViewModel:function(RY){return _.C(_.Yx,{data:RY.data,
disableHorizontalPadding:!0,forceSmallLayout:c8,useResponsiveLayout:!0})}}))}}),_.C("div",{class:_.If("ytwHorizontalShelfViewModelOuterContainer",(p2.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return B()},p2)),
style:_.Tm({"margin-top":function(){var RY,lB=W.data().header&&!((RY=W.horizontalShelfExperiments)==null?0:RY.call(W).hideHeader),kc;return(((kc=W.ensureMarginTop)==null?0:kc.call(W))&&!lB?12:0)+"px"}})},_.C("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Tm({width:function(){return W8()+"px"},
padding:function(){return"0 "+Kq()+"px"},
overflow:function(){return P()?"auto":"hidden"}})},_.C("div",{class:_.If("ytwHorizontalShelfViewModelItems",(SL.ytwHorizontalShelfViewModelCenterAlignItems=function(){return B()},SL)),
el:J,style:D},_.C(_.QH,{data:r},{macroMarkerListItemViewModel:function(RY,lB){return _.C("div",{style:_.Tm({width:function(){return x()+"px"},
"margin-right":function(){return(lB()===r().length-1?0:H8())+"px"}})},_.C(kB9,{data:RY.data,
palette:_.JG(W.palette),isLastItem:function(){return lB()===r().length-1}}))},
lockupViewModel:function(RY,lB){var kc=RY.data;return _.C("div",{style:_.Tm({width:function(){return x()+"px"},
"margin-right":function(){return(lB()===r().length-1?0:H8())+"px"}})},_.C(_.au,{data:kc,
containerType:4,sizing:Ta,protectBackground:W.protectBackground,thumbnailFixedWidth:function(){return e$F(kc())+"px"},
thumbnailTargetWidth:function(){return e$F(kc())}}))},
suspenseViewModel:function(RY,lB){return _.C("div",{style:_.Tm({width:function(){return x()+"px"},
"margin-right":function(){return(lB()===r().length-1?0:H8())+"px"}})},_.C(u0e,{data:RY.data}))}}))),_.C(_.c,{cond:p,
then:function(){return _.C("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.Tm({top:function(){return Ax()}})},_.C(_.QH,{data:R},{buttonViewModel:function(RY){return _.C(_.Nq,{data:RY.data,
onClick:ck})}}))}}),_.C(_.c,{cond:S,
then:function(){return _.C("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.Tm({top:function(){return Ax()}})},_.C(_.QH,{data:y},{buttonViewModel:function(RY){return _.C(_.Nq,{data:RY.data,
onClick:Wk})}}))}})))},"qd");
_.DF.idomCompat=!0;var v8k=_.Q(function(W){var l=function(){return W.data().targetId||""},V=function(){var p;
return((p=W.data())==null?void 0:p.expansionEntityKey)||""},f=_.wH(_.l$,V),r=!0,R=function(){var p;
return((p=f())==null?void 0:p.value)===l()},y=function(p){_.dm(_.MB("stringEntity",V(),{key:V(),
value:p?l():""}))};
_.iz(function(){r=!1;W.data().isExpanded&&y(!0)});
var P=function(){if(R()){var p=!0;W.onCollapse!==void 0&&(p=W.onCollapse());p&&y(!1)}else y(!0)},n=_.ip(P),B=function(){var p;
return(((p=W.accordionStyle)==null?void 0:p.call(W))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},d=_.WS("div"),J=function(){var p,X;
return(X=(p=_.k(W.data().rendererContext,_.N0))==null?void 0:p.label)!=null?X:""},D=function(){var p,X;
return{disabled:(p=W.hideIfNotExpanded)==null?void 0:p.call(W),ariaHidden:(X=W.hideIfNotExpanded)==null?void 0:X.call(W)}},u={},H={};
return _.C("yt-accordion-item-view-model",{class:_.If("ytAccordionItemViewModelHost",W.className,(u.ytAccordionItemViewModelExpanded=function(){return R()},u.ytAccordionItemViewModelHidden=function(){var p;
return(p=W.hideIfNotExpanded)==null?void 0:p.call(W)},u.ytAccordionItemViewModelMini=B,u)),
"data-target-id":l},_.C("div",{class:"ytAccordionItemViewModelContainer"},_.C("div",{class:"ytAccordionItemViewModelLeftSection","on:click":n,title:J,"aria-hidden":function(){var p;return(p=W.hideIfNotExpanded)==null?void 0:p.call(W)}},_.C(_.bH,{text:function(){return W.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:J})),_.C("div",{class:"ytAccordionItemViewModelRightSection"},_.C(_.QH,{data:function(){return R()?W.data().expandButton:W.data().collapseButton}},{buttonViewModel:function(p){return _.C(_.Nq,{data:p.data,
className:"ytAccordionItemViewModelToggleButton",onClick:P,buttonOverrides:D})}}))),_.C("div",{class:"ytAccordionItemViewModelContainer"},_.C("div",{class:_.If("ytAccordionItemViewModelContent",(H.ytAccordionItemViewModelExpandedSubtitle=function(){return R()},H)),
el:d,style:_.Tm({"max-height":function(){return r?"auto":R()?d.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!R()}},_.C(_.c,{cond:function(){return!B()},
then:function(){return _.C(_.bH,{text:function(){return W.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.C(_.QH,{data:function(){return W.data().content}},{horizontalShelfViewModel:function(p){return _.C(_.DF,{data:p.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"rd");_.HYB=_.Q(function(W){var l=_.L((0,_.ZHa)(W.data)).next().value,V=function(){return W.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},f=function(){return V()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},r=_.L(_.J4(!0,void 0,"AbejLb")),R=r.next().value,y=r.next().value,P=function(){return f()&&R()},n=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){y(!R())}}},B=_.ip(function(){l().onTitleTap&&_.sZ(l().onTitleTap||{})});
r={};return _.C("yt-accordion-view-model",{class:_.If("ytAccordionViewModelHost",(r.ytAccordionViewModelMinimized=function(){return P()},r)),
"data-target-id":function(){return W.data().targetId||""}},_.C(_.c,{cond:function(){return f()||!!l().title},
then:function(){return _.C("div",{class:"ytAccordionViewModelHeader"},_.C("div",{class:"ytAccordionViewModelTitleSection"},_.C("div",{class:"ytAccordionViewModelTitleWrapper"},_.C(_.c,{cond:function(){return!!W.data().headerIcon},
then:function(){return _.C(_.wN,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var d;return(d=W.data().headerIcon)==null?void 0:d.iconType}})}}),_.C("div",{class:"ytAccordionViewModelTitle",
"on:click":B},_.C(_.bH,{className:"ytAccordionViewModelTitleText",text:function(){return l().title}})))),_.C("div",{class:"ytAccordionViewModelButtonSection"},_.C(_.c,{cond:f,
then:function(){return _.C(_.zv,{data:n,iconName:function(){return P()?"chevron_down":"chevron_collapse"}})}})))}}),_.C("div",{class:"ytAccordionViewModelContent"},_.C(_.QH,{data:function(){return l().contents}},{accordionItemViewModel:function(d){return _.C(v8k,{data:d.data,
className:"ytAccordionViewModelRow",accordionStyle:V,hideIfNotExpanded:P,onCollapse:function(){return f()?(y(!0),!1):!0}})}})),_.C("div",null,_.C(_.c,{cond:function(){return!f()&&(!!l().disclaimerFooter||!!l().footer)},
then:function(){return _.C("div",{class:"ytAccordionViewModelFooter"},_.C(_.bH,{text:function(){return l().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.C(_.QH,{data:function(){return W.data().footer}},{flexibleActionsViewModel:function(d){return _.C(_.n9,{data:d.data,
layout:0})}}))}})))},"sd");_.HI(_.HYB,"yt-accordion-view-model",{props:{data:_.pA}});_.HI(_.Q(function(W){var l=null,V=null,f,r=(f=_.tY().resolve(_.R0(_.nP)))==null?void 0:f(),R=_.L(_.J4(!1,void 0,"h3atzd"));f=R.next().value;var y=R.next().value;R=_.L(_.J4(!0,void 0,"UTh8db"));var P=R.next().value,n=R.next().value,B=_.WS("textarea",function(X){_.Ql(264503,X,l,function(w){l=w})}),d=function(X){y(!0);
X={learningJourneyFormData:{query:X}};_.sZ(W.data().searchEndpoint||{},{form:{formData:X}});return!1},J=_.ip(function(X){X.target.closest("button-view-model")&&y(!0)});
R=_.ip(function(){n(B.value.value.length===0)});
var D=_.ip(function(X){if(X.key==="Enter"&&!X.shiftKey&&!P()){var w=X.target;X.preventDefault();d(w.value)}}),u={},H={},p={};
return _.C("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.C("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.C(_.dN,{data:function(){return W.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.C("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.C("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.C("div",{class:_.If("ytLearningJourneyZeroStateSearchBar",(u.ytLearningJourneyZeroStateSearchBarDark=r,u))},_.C("textarea",{class:_.If("ytLearningJourneyZeroStateTextInput",(H.ytLearningJourneyZeroStateTextInputDark=r,H)),el:B,"on:keyup":R,"on:keydown":D,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.C("div",{class:_.If("ytLearningJourneyZeroStateSearchButtonContainer",(p.ytLearningJourneyZeroStateSearchButtonContainerDark=r,p))},_.C(_.Nq,{data:function(){return _.k(W.data().searchButton,_.JJ)},
className:"search-button",onClick:function(){return d(B.value.value)},
buttonOverrides:function(){return{disabled:P(),style:r?"mono-inverse":"mono",size:"XL"}}}))),_.C(_.c,{cond:function(){return!!W.data().errorBanner},
then:function(){return _.C("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.DN(function(X){_.Ql(264617,X,V,function(w){V=w})})},_.C(_.QH,{data:function(){return W.data().errorBanner}},{alertBannerViewModel:function(X){return _.C(_.eRk,{data:X.data,
"client-ve-type":264617})}}))}})),_.C(_.c,{cond:f,
then:function(){return _.C("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.C(_.QH,{data:function(){return W.data().loader}},{learningJourneyLoaderViewModel:function(X){return _.C(_.BQM,{data:X.data})}}))},
else:function(){return _.C("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.C(_.c,{cond:function(){return!!W.data().learningJourneyShelf},
then:function(){return _.C("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.C("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return W.data().learningJourneySectionTitle}),_.C(_.QH,{data:function(){return W.data().learningJourneyShelf}},{horizontalShelfViewModel:function(X){return _.C(_.DF,{data:X.data,
centerAlignItems:!0})}}))}}),_.C("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.C("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return W.data().suggestedJourneySectionTitle}),_.C("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":J},_.C(_.QH,{data:function(){return W.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(X){return _.C(_.n9,{data:X.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"td"),"yt-learning-journey-zero-state",{props:{data:_.pA}});var K0L=_.Q(function(W){var l=W.data;return _.C("ytvl-live-leaderboard-item-action-content-view-model",{class:_.If("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.C(_.bH,{text:function(){var V;return(V=l())==null?void 0:V.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.C(_.QH,{data:function(){return l().actionButton}},{buttonViewModel:function(V){return _.C(_.Nq,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:V.data})}}))},"ud");var F0I=_.Q(function(W){var l=W.data;return _.C("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.If("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.C(_.bH,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var V;return(V=l())==null?void 0:V.displayName},
ellipsisTruncate:!0}),_.C(_.QH,{data:function(){return l().badge}},{buttonViewModel:function(V){return _.C(_.Nq,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:V.data})}}))},"vd");_.HI(_.Q(function(W){var l=W.data;return _.C("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.C("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.C(_.bH,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var V;return(V=l())==null?void 0:V.rank}})),_.C("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.C(_.QH,{data:function(){return l().avatar}},{avatarViewModel:_.gn})),_.C("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.C(_.QH,{data:function(){return l().content}},{liveLeaderboardItemChannelContentViewModel:F0I,
liveLeaderboardItemActionContentViewModel:K0L})),_.C(_.bH,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var V;return(V=l())==null?void 0:V.points}}))},"wd"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.pA}});_.HI(_.Q(function(W){var l=W.data;return _.C("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.C(_.bH,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var V,f;return(V=l())==null?void 0:(f=V.ranking)==null?void 0:f.rank}}),_.C("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.C(_.QH,{data:function(){return l().avatar}},{avatarViewModel:_.gn})),_.C(_.bH,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var V,f;return(V=l())==null?void 0:(f=V.channelContent)==null?void 0:f.channelName}}),_.C(_.bH,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var V;return(V=l())==null?void 0:V.points}}))},"xd"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.pA}});var GBa=_.Q(function(W){W=_.Dd(W,{wrapper:!1}).wrapper;return _.C(_.c,{cond:W,then:function(){return _.C("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.C("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.C("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"yd");
GBa.idomCompat=!0;var bYL=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],pQv=_.Q(function(W){var l=W.data;var V=_.DN(),f=_.v4(function(){return l().command},void 0,"fyYsT");
_.m1(function(){f()&&_.rN(f(),{form:{element:V.value}})},"B0nxdb");
return _.C("div",{el:V,class:"YtQrCodeRendererHostContainer"},_.C(_.c,{cond:function(){return l().qrCodeImage},
then:function(r){return _.C(_.dN,{data:r,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.C(_.c,{cond:function(){return l().spinner},
then:function(){return _.C(GBa,null)}})}}),_.C(_.c,{cond:function(){return l().label},
then:function(r){return _.C(_.bH,{text:r,className:"YtQrCodeRendererHostLabel"})}}),_.C(_.c,{cond:function(){return l().labels},
then:function(r){return _.C("div",{class:"YtQrCodeRendererHostLabels"},_.C(_.G3,{each:r},function(R){return _.C(_.bH,{text:R})}))}}))},"Ad");_.HI(_.Q(function(W){var l=W.data;var V=_.v4(function(){return l().qrEntityKey},void 0,"M0PrY"),f=_.v4(function(){return l().deleteEntityOnDismiss},void 0,"QZa4g"),r=_.v4(function(){return l().command},void 0,"wEOxUe"),R=_.wH(bIv,V);
W=_.v4(function(){return l().qrCodeImage},void 0,"UO5oub");
var y=_.v4(function(){return l().style&&bYL.includes(l().style)},void 0,"Op9kZd"),P=_.su({visibilityCallback:function(n){n&&r()&&_.rN(r())},
showOption:{calledOnce:!0,state:"visible"}});_.mw(function(){_.Xc(function(){f()&&V()&&_.BE().dispatch(_.MB("qrCodeEntity",V()))})});
return _.C("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.DN(P)},_.C(_.c,{cond:y,then:function(){return _.C(_.c,{cond:R,then:function(n){return _.C(pQv,{data:n})}})}}),_.C(_.c,{cond:W,
then:function(n){return _.C(_.dN,{data:n,alt:""})}}))},"zd"),"yt-qr-code-renderer",{props:{data:_.pA}});var jNv=_.Q(function(W){var l=function(){return _.sD(1728053247&(W.barColor!==void 0?m2(W.barColor()):4278190080))};
return _.C("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.C(o8B,{animationDelay:0,percentWidth:100,barColor:function(){return l()}}),_.C("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.C("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+l()}})),_.C(o8B,{animationDelay:0,
percentWidth:100,barColor:function(){return l()}}),_.C(o8B,{animationDelay:600,
percentWidth:60,barColor:function(){return l()}}))},"Bd"),o8B=_.Q(function(W){return _.C("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+W.percentWidth()+"%"}},_.C("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var l=W.animationDelay(),V=W.barColor();return"animation-delay:"+l+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+V+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Cd");var IHZ;_.iYk=_.Q(function(W){function l(X){y(X)}
var V=W.data;var f=_.WS("yt-video-overview-view-model"),r=_.lN("div");W=_.L(_.J4(-1,void 0,"qaDSu"));var R=W.next().value,y=W.next().value;W=_.L(_.J4(0,void 0,"Vz681c"));var P=W.next().value,n=W.next().value,B={},d=_.wH(qEF,function(){return V().asyncDataEntityKey}),J=function(){var X;
if((X=d())==null?0:X.videoOverviewViewModel){var w;return _.k((w=d())==null?void 0:w.videoOverviewViewModel,Sb$)}return V()};
_.mw(function(){n(Math.min((f.value.clientWidth-24)/4-8,72))});
var D=function(X){y(X);(r==null?0:r.value)&&r.value.children[X]&&r.value.children[X].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
CdU(f,function(){var X;if((X=J())==null||!X.inlinePlaybackEndpoint)return null;var w;X=B==null?void 0:(w=B.thumbnailElRef)==null?void 0:w.value;if(!X)return null;var O;w=(O=J())==null?void 0:O.inlinePlaybackEndpoint;O=_.k(w,uZa);return{multipleVideoPreviewData:{data:(O==null?0:O.playerDescriptors)&&(O==null?0:O.playerDescriptors.length)?O.playerDescriptors:[],thumbnailElement:X,trackingParams:"test",callbacks:{onPlaybackStarted:D},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var u=function(){var X;return((X=J())==null?void 0:X.headerSubtext)!==void 0?!0:!1},H=function(){var X,w=m2((X=J())==null?void 0:X.titleColor);
return w?"color: "+_.sD(w)+";":void 0},p=function(){var X,w=m2((X=J())==null?void 0:X.subtextColor);
return w?"color: "+_.sD(w)+";":void 0};
return _.C("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:f,style:function(){var X,w=m2((X=J())==null?void 0:X.backgroundColor);return w?"background-color: "+_.sD(w)+";":void 0}},_.C(_.c,{cond:function(){var X;
return(X=J())==null?void 0:X.isLoading},
then:function(){return _.C(jNv,{barColor:function(){var X;return(X=J())==null?void 0:X.titleColor}})},
else:function(){return _.C(_.Lp,null,_.C("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.C("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return H()}},_.C(_.bH,{text:function(){var X;
return(X=J())==null?void 0:X.headerText}})),_.C(_.c,{cond:u,
then:function(){return _.C("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.C("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return p()}},_.C(_.wN,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.C("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return p()}},_.C(_.bH,{text:function(){var X;
return(X=J())==null?void 0:X.headerSubtext}})))}})),_.C("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.C(_.QH,{data:function(){var X;
return(X=J())==null?void 0:X.thumbnail}},{thumbnailViewModel:function(X){return _.C(_.Iu,{data:X.data,
aspectRatio:0,playbackRef:P6j(B)})}})),_.C(_.c,{cond:function(){var X,w,O,S;
return((X=J())==null?void 0:(w=X.listItems)==null?void 0:w.length)!==void 0&&((O=J())==null?void 0:(S=O.listItems)==null?void 0:S.length)>0?!0:!1},
then:function(){return _.C("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:r},_.C(_.G3,{each:function(){var X;return(X=J())==null?void 0:X.listItems}},function(X,w){return _.C(IHZ,{image:X.image,
index:w,isSelected:function(){return w()===R()},
onClick:l,itemWidth:P})}))}}),_.C("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.C("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return H()}},_.C(_.bH,{text:function(){var X,w,O,S,N,x,Y;
return(Y=(X=J())==null?void 0:(w=X.listItems)==null?void 0:(O=w[R()])==null?void 0:O.headline)!=null?Y:(S=J())==null?void 0:(N=S.listItems)==null?void 0:(x=N[0])==null?void 0:x.headline}})),_.C("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return p()}},_.C(_.bH,{text:function(){var X,w,O,S,N,x,Y;
return(Y=(X=J())==null?void 0:(w=X.listItems)==null?void 0:(O=w[R()])==null?void 0:O.subtext)!=null?Y:(S=J())==null?void 0:(N=S.listItems)==null?void 0:(x=N[0])==null?void 0:x.subtext}}))))}}))},"Dd");
IHZ=_.Q(function(W){var l=W.image;var V=W.itemWidth;var f=W.index;var r=W.isSelected;var R=W.onClick;W=_.ip(function(){f!==void 0&&R!==void 0&&R(f());return!1});
var y={};return _.C("div",{class:_.If("ytGenAiVideoOverviewViewModelCarouselItem",(y.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return r==null?void 0:r()},y)),
style:function(){return"width: "+V()+"px;"},
"on:click":W},_.C(_.dN,{data:l,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.C(_.c,{cond:function(){return r==null?void 0:r()},
then:function(){return _.C("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.C("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ed");
_.iYk.idomCompat=!0;_.HI(_.iYk,"yt-video-overview-view-model",{props:{data:_.pA}});_.mMZ=_.Q(function(W){var l=W.data;var V=W.topbarOffset;var f,r=((f=_.tY().resolve(_.R0(_.nP)))==null?void 0:f())||!1;return _.C("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var R=l();var y,P,n=r?(y=R.config)==null?void 0:y.darkThemeBackgroundColor:(P=R.config)==null?void 0:P.lightThemeBackgroundColor;R=n?_.ta(n):void 0;R="background-color: "+R+";";V!==void 0&&(R+="top: -"+V()+"px;");return R},
"aria-hidden":!0},_.C(_.c,{cond:function(){var R,y,P;return!!((R=l().backgroundImageConfig)==null?0:(y=R.image)==null?0:(P=y.sources)==null?0:P.length)},
then:function(){return _.C(_.dN,{data:function(){var R;return(R=l().backgroundImageConfig)==null?void 0:R.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.C("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+h$j(r,l().gradientColorConfig)+";"}}))},"Fd");
_.mMZ.idomCompat=!0;var UN=_.Q(function(W){var l=W.className;var V=W.data;var f=W.isOverlay;var r=W.maxLinesOverride;var R=W.useMediumText;var y=function(){return V().alwaysShowTruncationText},P=function(){return V().truncationText},n=function(){return R!==void 0&&R()?"medium":"small"},B=function(){return f!==void 0&&f()?"overlay":"default"},d=function(){var H,p;
return(p=(H=_.k(V().rendererContext,_.N0))==null?void 0:H.label)!=null?p:""};
W=_.L(_.J4(!1,void 0,"OKr1o"));var J=W.next().value,D=W.next().value;W=_.ip(function(){V().expandOnTap&&D(!J());return!1});
var u={};return _.C("yt-description-preview-view-model",{el:_.DN(_.E_(function(){return V().rendererContext})),
class:_.If("ytDescriptionPreviewViewModelHost",l,(u.ytDescriptionPreviewViewModelClickable=function(){var H;return!((H=_.k(V().rendererContext,aen))==null||!H.onTap)},u.ytDescriptionPreviewViewModelIsOverlay=f,u)),
"on:click":W},_.C(_.c,{cond:function(){return V().description},
then:function(H){return _.C(_.c,{cond:J,then:function(){var p={};return _.C("div",{class:_.If("ytDescriptionPreviewViewModelDescription",(p.ytDescriptionPreviewViewModelDescriptionMediumText=R,p))},_.C(_.bH,{text:H}))},
else:function(){return _.C(Zwa,{text:H,alwaysShowTruncationText:y,truncationText:P,maxLines:function(){var p;return(p=r==null?void 0:r())!=null?p:V().maxLines},
textStyle:B,accessibilityLabel:d,textSize:n})}})}}))},"Gd");
UN.idomCompat=!0;var XQB=_.Q(function(W){var l=W.data;var V=W.isOverlay;return _.C("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.C("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.C(_.QH,{data:function(){return l().header}},{sectionHeaderViewModel:function(f){return _.C(_.Yx,{data:f.data,
isOverlay:V})}})),_.C("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.C(_.QH,{data:function(){return l().channelInfoButtons}},{flexibleActionsViewModel:_.n9})),_.C("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.C(_.QH,{data:function(){return l().description}},{descriptionPreviewViewModel:function(f){return _.C(UN,{data:f.data,
isOverlay:V})}})))},"Hd");
XQB.idomCompat=!0;var TQI=_.Q(function(W){var l=W.data;var V={};return _.C("factoid-view-model",{class:_.If("ytwFactoidViewModelHost",(V.ytwFactoidViewModelHostOverlay=W.isOverlay,V))},_.C(_.bH,{text:function(){return l().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.C(_.bH,{text:function(){return l().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Id");
TQI.idomCompat=!0;var wQL=_.Q(function(W){var l=W.data;var V=W.isOverlay;return _.C("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.C(_.QH,{data:function(){return l().factoids}},{factoidViewModel:function(f){return _.C(TQI,{data:f.data,
isOverlay:V})}}))},"Jd");
wQL.idomCompat=!0;_.AVa=_.Q(function(W){var l=W.data;var V=W.isOverlay;return _.C("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.C(_.QH,{data:function(){return l().items}},{channelInfoViewModel:function(f){return _.C("div",{class:"ytwCourseMetadataViewModelHostItem"},_.C(XQB,{data:f.data,
isOverlay:V}))},
coursePerksViewModel:function(f){return _.C("div",{class:"ytwCourseMetadataViewModelHostItem"},_.C(PvI,{data:f.data,isOverlay:V}))},
descriptionPreviewViewModel:function(f){return _.C("div",{class:"ytwCourseMetadataViewModelHostItem"},_.C(UN,{data:f.data,isOverlay:V}))},
factoidsRowViewModel:function(f){return _.C("div",{class:"ytwCourseMetadataViewModelHostItem"},_.C(wQL,{data:f.data,isOverlay:V}))},
progressViewModel:function(f){return _.C("div",{class:"ytwCourseMetadataViewModelHostItem"},_.C(n8c,{data:f.data,isOverlay:V}))}}))},"Kd");var QNX=_.Q(function(W){return _.C("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.C(_.QH,{data:function(){return W.data().content}},{courseMetadataViewModel:function(l){return _.C(_.AVa,{data:l.data,
isOverlay:W.isOverlay})},
progressViewModel:function(l){return _.C(n8c,{data:l.data})}}))},"Ld");var M_M=_.Q(function(W){var l=W.data;W=W.className;var V=function(){var r;return _.hy((r=l())==null?void 0:r.rendererContext)},f={};
f=(f.dynamicTextViewModelHost=!0,f.dynamicTextViewModelHostTappable=function(){return V()},f);
return _.C("yt-dynamic-text-view-model",{el:_.DN(_.E_(function(){var r;return(r=l())==null?void 0:r.rendererContext})),
role:function(){return V()?"link":void 0},
tabindex:function(){return V()?0:void 0},
class:_.If(W,f)},_.C("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var r,R,y;return(y=(R=_.k((r=l())==null?void 0:r.rendererContext,_.N0))==null?void 0:R.label)!=null?y:""}},_.C(_.bH,{text:function(){return l().text},
userInput:!0})))},"Md");
M_M.idomCompat=!0;_.uf=_.Q(function(W){var l=W.data;var V=W.isPositionRelative;var f=_.Ej8("(max-width: 527.9px)"),r=function(){var R,y;return(y=(R=l())==null?void 0:R.style)!=null?y:"IMAGE_BANNER_STYLE_FULL_BLEED"};
W={};return _.C("yt-image-banner-view-model",{el:_.DN(_.E_(function(){var R;return(R=l())==null?void 0:R.rendererContext})),
class:_.If((W.ytImageBannerViewModelHost=!0,W.ytImageBannerViewModelInset=function(){return $2x(r())},W.ytImageBannerViewModelPositionAbsolute=function(){return _.w9(!0)&&!(V==null?0:V())},W.ytImageBannerViewModelSmallInset=function(){return $2x(r())&&f()},W.ytImageBannerViewModelTappable=function(){var R;
return _.hy((R=l())==null?void 0:R.rendererContext)},W))},_.C(_.c,{cond:function(){var R;
return(R=l())==null?void 0:R.image},
then:function(){return _.C(_.dN,{data:function(){return l().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.C(_.QH,{data:function(){var R;
return(R=l())==null?void 0:R.overlays}},{thumbnailHoverOverlayViewModel:yF}))},"Nd");
_.uf.idomCompat=!0;var ZYX;ZYX=_.Q(function(W){var l=W.condition;var V=W.content;return _.C(_.c,{cond:l,then:function(){return _.C("div",{class:"page-header-view-model-wiz__scroll-container"},V())},
else:function(){return V()}})},"Od");
_.OYv=_.Q(function(W){var l=W.data;var V=W.noPadding;var f=W.enableBanner;var r=W.cinematicContainerTopbarOffset;var R=W.allowCinematicContainerOverflow;var y=W.displayAsSidebar;var P=W.displayAsPanel;var n=W.alwaysUseMediumTextDescription;var B=WcS(),d=function(){return!!l().image||!!l().animatedImage},J=function(){return!!l().background},D=function(){return(y==null?0:y())||(P==null?0:P())?1:B()},u=function(){return D()===1},H=function(){return u()||D()===2},p=function(){return D()===4},X=function(){var Kq=
l();
var Z4=!!l().heroImage;var Ax=D(),sM=lTU(l()),Ta=y==null?void 0:y(),ck=!Kq.metadata,Wk;if(Wk=Z4?_.k(Kq.heroImage,OAv):_.k(Kq.animatedImage||Kq.image,OAv)){Kq=Wk.style;var D$=Wk.layoutMode;if(D$!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(Wk=Zrj(MTF(Wk)),Z4)Z4=SEz(Ax,Kq,D$,Wk,Ta);else b:if(ck)Z4=Ax===1?{size:48}:{size:72};else switch(Ax){case 1:Z4={size:72};break b;case 2:Z4={size:120};break b;default:Z4=sM<4?{size:120}:{size:160}}else Z4=void 0}else Z4={size:0};return Z4};
W={};W=_.If((W["page-header-view-model-wiz"]=!0,W["page-header-view-model-wiz--no-padding"]=function(){return!(V==null||!V())},W["page-header-view-model-wiz--small-top-padding"]=function(){return u()&&!l().actions&&!(P==null?0:P())||D()===2&&!(d()||l().heroImage)},W["page-header-view-model-wiz--small-bottom-padding"]=function(){return H()&&!l().actions&&!(P==null?0:P())},W["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(R==null?0:R())},W["page-header-view-model-wiz--display-as-sidebar"]=
y,W));
var w={},O=_.If((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 Kq;return(Kq=X())==null?void 0:Kq.allowFullWidth},w)),S=function(){var Kq;
return H()&&!((Kq=X())==null?0:Kq.allowFullWidth)},N=function(){return u()&&(!!l().heroImage||d())&&lTU(l())>0},x=function(){return N()&&(P==null?void 0:P())};
w={};var Y=_.If((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!N()},w["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return N()&&!x()},w["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=x,w["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=J,w));
w={};var W8=_.If((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!!l().heroImage&&H()},w));
w={};var c8=_.If((w["page-header-view-model-wiz__page-header-banner-container"]=f,w["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var Kq;return(f==null?void 0:f())&&((Kq=_.k(l().banner,_.zlL))==null?void 0:Kq.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},w));
w={};var B8=_.If((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"]=J,w));w={};var Jx=_.If((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!!l().metadata||H()},w["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!H()},w));
w={};var H8=_.If((w["page-header-view-model-wiz__page-header-attribution"]=!0,w["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=J,w));return _.C("yt-page-header-view-model",{class:W},_.C(_.c,{cond:J,then:function(){return _.C("div",{class:"page-header-view-model-wiz__page-header-background"},_.C(_.QH,{data:function(){return l().background}},{cinematicContainerViewModel:function(Kq){return _.C(_.mMZ,{data:Kq.data,
topbarOffset:r})}}))}}),_.C(ZYX,{condition:function(){return!(y==null||!y())},
content:function(){return _.C("div",{class:"page-header-view-model-wiz__page-header-content"},_.C(_.c,{cond:function(){return(f==null?void 0:f())&&l().banner},
then:function(){return _.C("div",{class:c8},_.C(_.QH,{data:function(){return l().banner}},{imageBannerViewModel:_.uf}))}}),_.C("div",{class:O},_.C(_.c,{cond:d,
then:function(){return _.C(_.QH,{data:function(){var Kq;if(!(Kq=l().animatedImage)){Kq=l();if(d()){var Z4=Kq=Object.assign({},Kq),Ax=D(),sM=lTU(l()),Ta=Z4.image,ck=_.k(Ta,aSI),Wk=ck==null?void 0:ck.avatar,D$=_.k(Wk,_.$w);if(Ta&&Wk&&D$){switch(Ax){case 1:D$.avatarImageSize="AVATAR_SIZE_XL";break;case 2:D$.avatarImageSize="AVATAR_SIZE_XXL";break;default:sM<4?D$.avatarImageSize="AVATAR_SIZE_XXL":D$.avatarImageSize="AVATAR_SIZE_XXXL"}_.SM(Wk,_.$w,Object.assign({},D$));ck.avatar=Object.assign({},Wk);_.SM(Ta,
aSI,Object.assign({},ck));Z4.image=Object.assign({},Ta)}}Kq=Kq.image}return Kq}},{contentPreviewImageViewModel:function(Kq){return _.C(_.wn,{data:Kq.data,
className:W8,imageSizeConfig:X})},
decoratedAvatarViewModel:function(Kq){return _.C(_.Px,{data:Kq.data,className:W8})}})}}),_.C(_.c,{cond:function(){return!!l().heroImage&&!S()},
then:function(){return _.C(_.QH,{data:function(){return l().heroImage}},{contentPreviewImageViewModel:function(Kq){return _.C(_.wn,{data:Kq.data,
className:W8,imageSizeConfig:X})}})}}),_.C("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.C(_.c,{cond:function(){return!!l().heroImage&&S()},
then:function(){return _.C("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.C(_.QH,{data:function(){return l().heroImage}},{contentPreviewImageViewModel:function(Kq){return _.C(_.wn,{data:Kq.data,
className:W8,imageSizeConfig:X})}}))}}),_.C(_.QH,{data:function(){return l().title}},{dynamicTextViewModel:function(Kq){return _.C(M_M,{data:Kq.data,
className:Y})}}),_.C(_.QH,{data:function(){return l().metadata}},{contentMetadataViewModel:function(Kq){return _.C(_.A8,{data:Kq.data,
layout:function(){return u()?1:0},
className:B8,isOverlay:J,useMediumText:p})}}),_.C(_.c,{cond:function(){return l().description&&!u()},
then:function(){return _.C(_.QH,{data:function(){return l().description}},{descriptionPreviewViewModel:function(Kq){return _.C(UN,{data:Kq.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:J,maxLinesOverride:function(){return u()?void 0:1},
useMediumText:function(){return(n==null?void 0:n())||p()}})}})}}),_.C(_.c,{cond:function(){return l().attribution&&!H()},
then:function(){return _.C(_.QH,{data:function(){return l().attribution}},{attributionViewModel:function(Kq){return _.C(Fiv,{data:Kq.data,
className:H8,useMediumText:p})}})}}),_.C(_.c,{cond:function(){return l().actions&&!H()},
then:function(){return _.C(_.QH,{data:function(){return l().actions}},{flexibleActionsViewModel:function(Kq){return _.C(_.n9,{data:Kq.data,
layout:function(){return Vfx(D())},
className:Jx})}})}}))),_.C("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.C(_.c,{cond:function(){return l().description&&u()},
then:function(){return _.C(_.QH,{data:function(){return l().description}},{descriptionPreviewViewModel:function(Kq){return _.C(UN,{data:Kq.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:J,maxLinesOverride:function(){return u()?void 0:1},
useMediumText:function(){return(n==null?void 0:n())||p()}})}})}}),_.C(_.c,{cond:function(){return l().attribution&&H()},
then:function(){return _.C(_.QH,{data:function(){return l().attribution}},{attributionViewModel:function(Kq){return _.C(Fiv,{data:Kq.data,
className:H8,useMediumText:p})}})}}),_.C(_.c,{cond:function(){return l().actions&&H()},
then:function(){return _.C(_.QH,{data:function(){return l().actions}},{flexibleActionsViewModel:function(Kq){return _.C(_.n9,{data:Kq.data,
layout:function(){return Vfx(D())},
className:Jx})}})}})),_.C("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.C(_.QH,{data:function(){return l().bottomMetadataFlexibleContainer}},{flexibleContainer:function(Kq){return _.C(QNX,{data:Kq.data,
isOverlay:J})}})))}}))},"Pd");
_.OYv.idomCompat=!0;_.HI(_.Q(function(W){var l=_.L(_.J4(!1,void 0,"vvzTj")),V=l.next().value,f=l.next().value;return _.C("yt-official-card-view-model",{class:_.If("ytOfficialCardViewModelHost",W.className),style:_.Tm({"background-color":function(){var r,R=m2((r=W.data())==null?void 0:r.backgroundColor);return R?_.sD(R):void 0}})},_.C(_.QH,{data:function(){return W.data().header}},{pageHeaderViewModel:function(r){return _.C(_.OYv,{data:r.data,
noPadding:!0})}}),_.C(_.QH,{data:function(){return W.data().contents}},{horizontalShelfViewModel:function(r){return _.C(_.DF,{data:r.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.C(_.c,{cond:V,
then:function(){return _.C("div",{class:"ytOfficialCardViewModelExpandedContent"},_.C(_.QH,{data:function(){return W.data().expandedContents}},{horizontalShelfViewModel:function(r){return _.C(_.DF,{data:r.data,
sizing:"MINI"})}}),_.C("div",{class:"ytOfficialCardViewModelCollapseButton"},_.C(_.QH,{data:function(){return W.data().collapseButton}},{buttonViewModel:function(r){return _.C(_.Nq,{data:r.data,
onClick:function(){f(!V())}})}})))},
else:function(){return _.C("div",{class:"ytOfficialCardViewModelExpandButton"},_.C(_.QH,{data:function(){return W.data().expandButton}},{buttonViewModel:function(r){return _.C(_.Nq,{data:r.data,
onClick:function(){f(!V())}})}}))}}))},"Qd"),"yt-official-card-view-model",{props:{data:_.pA,
className:_.pA}});var aHL=_.Q(function(W){var l,V=(l=_.tY().resolve(_.R0(_.nP)))==null?void 0:l();return _.C("ytw-search-friction-view-model",{class:_.If("ytwSearchFrictionViewModelHost",W.className)},_.C("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.C("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.C(_.c,{cond:function(){return V&&W.data().darkThemeImage?W.data().darkThemeImage:W.data().image},
then:function(f){return _.C(_.dN,{data:f,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.C(_.QH,{data:function(){return W.data().overflowMenuButton}},{buttonViewModel:function(f){return _.C(_.Nq,{data:f.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.C(_.bH,{text:function(){return W.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.C(_.G3,{each:function(){return W.data().bodyText||[]}},function(f){return _.C(_.bH,{text:f,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.C(_.QH,{data:function(){return W.data().actions}},{buttonViewModel:function(f){return _.C(_.Nq,{data:f.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.C(_.bH,{text:function(){return W.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.C(_.bH,{text:function(){return W.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Rd");
aHL.idomCompat=!0;_.HI(aHL,"ytw-search-friction-view-model",{props:{data:_.pA,className:_.pA}});_.kq=_.Q(function(W){var l=_.WS("markdown-div"),V,f=(V=_.tY().resolve(_.R0(_.nP)))==null?void 0:V();_.m1(function(){var r=l.value;var R=new CsX,y=new Map(R.JSC$9296_sanitizerTable.globalAttributePolicies);y.set("style",{policyAction:4});R.JSC$9296_sanitizerTable=new Od(R.JSC$9296_sanitizerTable.allowedElements,R.JSC$9296_sanitizerTable.elementPolicies,R.JSC$9296_sanitizerTable.allowedGlobalAttributes,y,R.JSC$9296_sanitizerTable.globallyAllowedAttributePrefixes);var P=["data-time"];if(P===void 0)y=
new Set(R.JSC$9296_sanitizerTable.globallyAllowedAttributePrefixes),y.add("data-"),R.JSC$9296_sanitizerTable=new Od(R.JSC$9296_sanitizerTable.allowedElements,R.JSC$9296_sanitizerTable.elementPolicies,R.JSC$9296_sanitizerTable.allowedGlobalAttributes,R.JSC$9296_sanitizerTable.globalAttributePolicies,y);else{y=new Set(R.JSC$9296_sanitizerTable.allowedGlobalAttributes);P=_.L(P);for(var n=P.next();!n.done;n=P.next()){n=n.value;if(n.indexOf("data-")!==0)throw Error("ma`"+n);y.add(n)}R.JSC$9296_sanitizerTable=
new Od(R.JSC$9296_sanitizerTable.allowedElements,R.JSC$9296_sanitizerTable.elementPolicies,y,R.JSC$9296_sanitizerTable.globalAttributePolicies,R.JSC$9296_sanitizerTable.globallyAllowedAttributePrefixes)}y=new Set(R.JSC$9296_sanitizerTable.allowedGlobalAttributes);y.add("class");R.JSC$9296_sanitizerTable=new Od(R.JSC$9296_sanitizerTable.allowedElements,R.JSC$9296_sanitizerTable.elementPolicies,y,R.JSC$9296_sanitizerTable.globalAttributePolicies,R.JSC$9296_sanitizerTable.globallyAllowedAttributePrefixes);
_.sx(r,_.LNX(R.build(),rwY(W.text())));Ren(l.value)},"OZ439c");
V={};return _.C("div",null,_.C("markdown-div",{class:_.If("ytwMarkdownDivHost",(V.ytwMarkdownDivDark=f,V.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var r;return((r=W.isSmallText)==null?void 0:r.call(W))||!1},V.ytwMarkdownDivHostWrapCodeBlocks=function(){var r;
return((r=W.wrapCodeBlocks)==null?void 0:r.call(W))||!1},V.ytwMarkdownDivHostEnableDefaultStyling=function(){var r;
return!((r=W.disableDefaultStyling)==null?0:r.call(W))},V)),
el:l}))},"Sd");
_.kq.idomCompat=!0;var zLk=_.Q(function(W){var l=W.imageData;var V=_.JG(W.isInList,!1),f=function(){return V()?{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 _.C("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.C(_.c,{cond:function(){return l().image},
then:function(r){return _.C(_.dN,{data:r,alt:function(){return f().alt},
contentMode:function(){return f().contentMode},
targetWidth:function(){return f().targetWidth},
targetHeight:function(){return f().targetHeight},
className:function(){return f().className}})}}),_.C("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.C("div",{class:_.If("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.C(_.bH,{text:function(){return l().title}})),_.C(_.G3,{each:function(){var r;
return(r=l().description)!=null?r:[]}},function(r){return _.C("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.C(vr,{content:r}))})))},"Td"),NQZ=_.Q(function(W){var l=W.list;
var V=function(){var f;return(f=l().items)!=null?f:[]};
return _.C("div",{class:"ytwGenAiRichTextViewModelListContent"},_.C(_.c,{cond:function(){return l().title},
then:function(f){return _.C("div",{class:_.If("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.C(_.bH,{text:f}))}}),_.C(_.c,{cond:function(){return l().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.C("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.C(_.G3,{each:V},function(f){return _.C("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.C(vr,{content:f,isInList:!0}))}))}}),_.C(_.c,{cond:function(){return l().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.C("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.C(_.G3,{each:V},function(f){return _.C("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.C(vr,{content:f,isInList:!0}))}))}}),_.C(_.c,{cond:function(){return l().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.C("div",{class:"ytwGenAiRichTextViewModelImageList"},_.C(_.G3,{each:V},function(f){return _.C("div",{class:"ytwGenAiRichTextViewModelListItem"},_.C(vr,{content:f,isInList:!0}))}))}}))},"Ud"),Y$X=_.Q(function(W){var l=W.table;
return _.C("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.C("thead",null,_.C("tr",null,_.C(_.G3,{each:function(){var V,f;return(f=(V=l().header)==null?void 0:V.cells)!=null?f:[]}},function(V){return _.C("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.C(_.G3,{each:function(){return V.contents}},function(f){return _.C(vr,{content:f})}))}))),_.C("tbody",null,_.C(_.G3,{each:function(){var V;
return(V=l().rows)!=null?V:[]}},function(V){return _.C("tr",null,_.C(_.G3,{each:function(){return V.cells}},function(f){return _.C("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.C(_.G3,{each:function(){return f.contents}},function(r){return _.C(vr,{content:r})}))}))})))},"Vd"),vr=_.Q(function(W){var l=W.content;
var V=_.JG(W.isInList,!1),f=function(){var r,R;return(R=(r=l().contentBlock)==null?void 0:r.contents)!=null?R:[]};
return _.C("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.C(_.c,{cond:function(){return l().text},
then:function(r){return _.C(_.bH,{className:"ytwGenAiRichTextViewModelText",text:r})}}),_.C(_.c,{cond:function(){return l().image},
then:function(r){return _.C(zLk,{imageData:r,isInList:V})}}),_.C(_.c,{cond:function(){return l().list},
then:function(r){return _.C(NQZ,{list:r})}}),_.C(_.c,{cond:function(){return l().contentBlock},
then:function(){return _.C("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.C(_.G3,{each:f},function(r){return _.C(vr,{content:r,isInList:!1})}))}}),_.C(_.c,{cond:function(){return l().table},
then:function(r){return _.C(Y$X,{table:r})}}))},"Wd"),xML=_.Q(function(W){var l={};
l=_.Yw("ytwGenAiRichTextViewModelHost",(l.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.gU("search_overview_link_style")),l));return _.C("gen-ai-rich-text-view-model",{class:l},_.C(vr,{content:function(){return W.data().content}}))},"Xd");_.eL9=_.Q(function(W){var l=W.data;var V=function(){var p;return((p=l().loadingUi)!=null?p:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},f=function(){return l().isLoading&&(V()==="UNSPECIFIED"||V()==="GHOST_CARD")},r=function(){return!l().isLoading},R=function(){return!!l().content&&!l().contents},y=function(){return!!l().contents},P=function(){return!!l().nextQueryButtons},n=function(){return l().isLoading&&V()==="INVISIBLE"},B=function(){var p,X;
return(X=(p=l().headerIcon)==null?void 0:p.iconType)!=null?X:""},d=function(){var p;
return(p=l().content)!=null?p:""},J=function(){return!!l().sourcesSection},D,u=!((D=_.tY().resolve(_.R0(_.nP)))==null||!D()),H=_.v4(function(){var p=[],X=l().contents;
if(X)for(var w=0;w<X.length;w++){var O=_.k(X&&X[w],h1B);O&&p.push(O)}return p},void 0,"gcCsZb");
_.mw(function(){l().isLoading||_.Wy("so_re",void 0,"search_overview_answer")});
return _.C("ytd-overview-answer-view-model",{class:function(){var p={};p=(p.ytdOverviewAnswerViewModelHost=!0,p.ytdOverviewAnswerViewModelDarkBackground=u&&!n(),p.ytdOverviewAnswerViewModelLightBackground=!u&&!n(),p);return _.Yw(p)}},_.C(_.c,{cond:function(){return!n()},
then:function(){return _.C(_.Lp,null,_.C("h2",null,_.C("div",{class:"ytdOverviewAnswerViewModelHeader"},_.C(_.c,{cond:B,then:function(p){return _.C("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.C(_.wN,{icon:p}))}}),_.C("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.C("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return l().headerText}),_.C("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.C(_.bH,{text:function(){return l().headerSubtext}}))))),_.C(_.c,{cond:f,
then:function(){return _.C(tfg,null)}}),_.C(_.c,{cond:r,
then:function(){return _.C(_.Lp,null,_.C(_.c,{cond:R,then:function(){return _.C("div",{class:"ytdOverviewAnswerViewModelText"},_.C(_.kq,{text:d,isSmallText:!0}))}}),_.C(_.c,{cond:y,
then:function(){return _.C("div",{class:"ytdOverviewAnswerViewModelRichText"},_.C(_.G3,{each:H},function(p){return _.C(xML,{data:p})}))}}),_.C(_.c,{cond:P,
then:function(){return _.C("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.C(_.QH,{data:function(){return l().nextQueryButtons}},{buttonViewModel:function(p){return _.C(_.Nq,{data:p.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.DF}))}}),_.C("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.C("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.C(_.c,{cond:function(){return!!_.k(l().likeButtonViewModel,_.LE)&&!!_.k(l().dislikeButtonViewModel,_.sb)},
then:function(){return _.C("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.C(_.cR,{data:function(){return _.k(l().likeButtonViewModel,_.LE)},
disableIconAnimation:!0}),_.C(_.C9,{data:function(){return _.k(l().dislikeButtonViewModel,_.sb)}}))}})),_.C(_.c,{cond:function(){var p;
return(p=l().sourcesSection)==null?void 0:p.headerText},
then:function(p){return _.C("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.C(_.bH,{text:p}))}})),_.C(_.c,{cond:J,
then:function(){return _.C("div",{class:"ytdOverviewAnswerViewModelSources"},_.C(_.QH,{data:function(){var p;return(p=l().sourcesSection)==null?void 0:p.sourcesShelf}},{buttonViewModel:_.Nq,
horizontalShelfViewModel:function(p){return _.C(_.DF,{data:p.data,includeMargin:!0,hasPeek:!0})}}))}}),_.C(_.c,{cond:function(){return l().disclaimerText},
then:function(){return _.C("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.C(_.bH,{text:function(){return l().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Yd");var q$c=_.Q(function(W){var l=W.data;var V=W.active;var f=_.WS("transcript-segment-view-model");_.m1(function(){var r,R,y,P=((r=_.tY().resolve(_.R0(_.nP)))==null?0:r())?(R=l())==null?void 0:R.darkThemeColorPalette:(y=l())==null?void 0:y.lightThemeColorPalette;P&&(P.additiveBackground&&f.value.style.setProperty("--timestamp-active-background-color",_.sD(P.additiveBackground)),P.textSecondary&&f.value.style.setProperty("--timestamp-active-color",_.ta(P.textSecondary)))},"cQUAMd");
W={};return _.C("transcript-segment-view-model",{class:_.If("ytwTranscriptSegmentViewModelHost",(W.ytwTranscriptSegmentViewModelHostActive=V,W.ytwTranscriptSegmentViewModelHostModern=_.U("enable_timeline_view_modern_transcript")||_.U("enable_timeline_view_modern_transcript_fe"),W)),el:f},_.C(_.c,{cond:function(){var r;return(r=l())==null?void 0:r.timestamp},
then:function(r){var R={};return _.C("div",{class:_.If("ytwTranscriptSegmentViewModelTimestamp",(R.ytwTranscriptSegmentViewModelTimestampActive=V,R))},r)}}),_.C(_.bH,{text:function(){var r,R,y;
return(y=(r=l())==null?void 0:r.attributedText)!=null?y:{content:(R=l())==null?void 0:R.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Zd");var hLk=_.Q(function(W){var l=W.data;return _.C("div",{class:"videoAttributesSectionViewModelHeader"},_.C("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.C("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return l().headerTitle}),_.C(_.c,{cond:function(){return l().headerInfoButton},
then:function(){return _.C(_.QH,{data:function(){return l().headerInfoButton}},{buttonViewModel:function(V){return _.C(_.Nq,{data:V.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.C(_.c,{cond:function(){return l().headerSubtitle},
then:function(){return _.C("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return l().headerSubtitle})}}))},"$d"),S$9=_.Q(function(W){function l(p){return Math.max(Math.min(p,0),B()-P())}
var V=W.data;var f;W=_.WS("div",function(p){var X=function(){d(p.clientWidth)};
X();window.ResizeObserver&&(f=new ResizeObserver(X),f.observe(p))});
var r=_.WS("div",function(p){n(p.scrollWidth)}),R=_.L(_.J4(0,void 0,"C3XQAe")),y=R.next().value;
R=R.next().value;var P=y,n=R;R=_.L(_.J4(0,void 0,"db7y3"));y=R.next().value;R=R.next().value;var B=y,d=R;y=_.L(_.J4(0,void 0,"RchC7"));var J=y.next().value,D=y.next().value;_.Xc(function(){var p;(p=f)==null||p.disconnect()});
var u=function(){D(l(J()+B()))},H=function(){D(l(J()-B()))};
return _.C("yt-video-attributes-section-view-model",null,_.C("div",{class:"videoAttributesSectionViewModelHost"},_.C(_.c,{cond:function(){return V().headerTitle},
then:function(){return _.C(hLk,{data:V})}}),_.C("div",{class:_.If("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:W},_.C("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.Tm({transform:function(){var p=J();_.M4("HTML_DIR")==="rtl"&&(p*=-1);return"translateX("+p+"px)"}}),
el:r},_.C(_.QH,{data:function(){return V().videoAttributeViewModels}},{videoAttributeViewModel:z7L}))),_.C(_.QH,{data:function(){return V().footerButton}},{buttonViewModel:function(p){return _.C(_.Nq,{data:p.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.C(_.c,{cond:function(){return J()<0&&V().previousButton},
then:function(){return _.C("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.C(_.QH,{data:function(){return V().previousButton}},{buttonViewModel:function(p){return _.C(_.Nq,{data:p.data,
onClick:u})}}))}}),_.C(_.c,{cond:function(){return J()>B()-P()&&V().nextButton},
then:function(){return _.C("div",{class:"videoAttributesSectionViewModelRightArrow"},_.C(_.QH,{data:function(){return V().nextButton}},{buttonViewModel:function(p){return _.C(_.Nq,{data:p.data,
onClick:H})}}))}})))},"ae");
S$9.idomCompat=!0;var E8a=_.Q(function(W){var l=W.data;var V=W.active;var f={},r={};return _.C("timeline-item-view-model",{class:_.If("ytwTimelineItemViewModelHost",(f.ytwTimelineItemViewModelHostChapterChild=W.chapterChild,f.ytwTimelineItemViewModelModern=_.U("enable_timeline_view_modern_transcript")||_.U("enable_timeline_view_modern_transcript_fe"),f))},_.C("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.C("div",{class:_.If("ytwTimelineItemViewModelTimestamp",(r.ytwTimelineItemViewModelTimestampActive=
V,r))},function(){return l().timestamp})),_.C("div",{class:"ytwTimelineItemViewModelContentItems"},_.C(_.QH,{data:function(){return l().contentItems}},{transcriptSegmentViewModel:function(R){return _.C(q$c,{data:R.data,
active:V})},
videoAttributesSectionViewModel:S$9})))},"be");var $Ma=_.Q(function(W){var l=W.data;W={};return _.C("timeline-chapter-view-model",{class:_.If("ytwTimelineChapterViewModelHost")},_.C("div",{class:_.If("ytwTimelineChapterViewModelTitle",(W.ytwTimelineChapterViewModelModern=_.U("enable_timeline_view_modern_transcript")||_.U("enable_timeline_view_modern_transcript_fe"),W))},function(){return l().title}),_.C(_.QH,{data:function(){return l().contents}},{timelineItemViewModel:function(V){return _.C(E8a,{data:V.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(V){return _.C(S$9,{data:V.data})}}))},"ce");var WvL=_.Q(function(W){var l=W.data;var V=_.WS("macro-markers-panel-item-view-model"),f=_.wH(_.vLj,function(){var R;return(R=l().markersEngagementPanelSyncEntityKey)!=null?R:""}),r=function(){var R;
return((R=f())==null?void 0:R.activeItemIndex)===l().index};
W=_.ip(function(R){var y,P,n,B,d;return _.g(function(J){if(J.nextAddress==1)return R.stopPropagation(),_.eJ(_.xw(R),V.value,["A".toString(),"BUTTON".toString()])?J.return():(y=_.fP(l().onTap))?J.yield(_.jJ(),2):J.return();P=J.yieldResult;B=(n=_.k(y,_.Bh))==null?void 0:n.startTimeSeconds;B===void 0||(d=P)!=null&&d.seekTo(B,!0);_.ju(J)})});
return _.C("macro-markers-panel-item-view-model",{class:_.If("ytwMacroMarkersPanelItemViewModelHost",{"is-active":r}),el:V,"on:click":W,tabindex:0},_.C(_.QH,{data:function(){var R;return(R=l())==null?void 0:R.item}},{timelineChapterViewModel:function(R){return _.C($Ma,{data:R.data,
active:r})},
timelineItemViewModel:function(R){return _.C(E8a,{data:R.data,active:r})},
videoAttributeViewModel:z7L}))},"de");
WvL.idomCompat=!0;_.HI(WvL,"macro-markers-panel-item-view-model",{props:{data:_.pA}});_.HI(S$9,"yt-video-attributes-section-view-model",{props:{data:_.pA}});var l_k=_.Q(function(W){var l=function(){var V,f,r;return(r=(V=W.data().leadingLogoAccessibility)==null?void 0:(f=V.accessibilityData)==null?void 0:f.label)!=null?r:""};
return _.C("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.C(_.c,{cond:function(){return W.data().leadingLogo},
then:function(V){return _.C(_.dN,{className:"ytwFantasySectionHeaderViewModelLogo",data:V,alt:l})}}),_.C("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.C(_.bH,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return W.data().title}}),_.C(_.bH,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return W.data().subtitle}})),_.C(_.QH,{data:function(){return W.data().trailingButton}},{buttonViewModel:function(V){return _.C(_.Nq,{data:V.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"ee");var VG9=_.Q(function(W){var l={};l=_.If("ytwFantasyTeamViewModelHost",(l.ytwFantasyTeamViewModelCompact=function(){var r;return!((r=W.compact)==null||!r.call(W))},l.ytwFantasyTeamViewModelUser=function(){return W.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},l.ytwFantasyTeamViewModelOpponent=function(){return W.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},l));
var V=function(){var r,R,y;return(y=(r=W.data().teamLogoAccessibility)==null?void 0:(R=r.accessibilityData)==null?void 0:R.label)!=null?y:""},f=_.wH(K_z,function(){return W.data().teamEntityKey});
return _.C("ytw-fantasy-team-view-model",{class:l},_.C(_.c,{cond:function(){return W.data().teamLogo},
then:function(r){return _.C(_.dN,{className:"ytwFantasyTeamViewModelLogo",data:r,alt:V})}}),_.C("div",{class:"ytwFantasyTeamViewModelMetadata"},_.C("div",{class:"ytwFantasyTeamViewModelHeader"},_.C(_.bH,{className:"ytwFantasyTeamViewModelScore",
text:function(){var r;return(r=f())==null?void 0:r.score}}),_.C(_.wN,{icon:function(){var r;
return(r=f())==null?void 0:r.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.C(_.bH,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var r;return(r=f())==null?void 0:r.projectedScore}})),_.C(_.bH,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return W.data().primaryText}}),_.C(_.bH,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return W.data().secondaryText}}),_.C(_.bH,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return W.data().tertiaryText}})),_.C(_.bH,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var r;return(r=f())==null?void 0:r.score}}))},"fe");_.HI(_.Q(function(W){return _.C("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.C("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.C(_.QH,{data:function(){return W.data().summaryHeader}},{fantasySectionHeaderViewModel:l_k})),_.C(_.QH,{data:function(){return W.data().userTeam}},{fantasyTeamViewModel:VG9}),_.C(_.QH,{data:function(){return W.data().opponentTeam}},{fantasyTeamViewModel:VG9}))},"ge"),"fantasy-league-summary-view-model",{props:{data:_.pA}});var f_B=_.Q(function(W){var l=_.Dd(W,{shape:{},useCustomTabRenderable:!1}),V=l.shape;l=l.useCustomTabRenderable;var f=W.customTabRenderable,r=function(){return V().disabled},R=function(){return V().selected},y=function(){return V().title},P=function(){return V().icon},n=_.WS("yt-tab-shape");
W=_.ip(function(J){var D;if(!r()&&((D=V().aTagConfig)==null?0:D.onclick))V().aTagConfig.onclick(J);return!1});
var B=_.ip(function(J){if(J.key==="Enter"||J.key==="ArrowUp"||J.key==="ArrowDown")J.preventDefault(),n.value.click();return!1}),d={};
return _.C("yt-tab-shape",{class:_.If("yt-tab-shape-wiz",function(){return V().className},(d["yt-tab-shape-wiz__tab--last-tab"]=function(){return V().isLastTab},d["yt-tab-shape-wiz--host-disabled"]=r,d["yt-tab-shape-wiz--host-clickable"]=!f,d)),
role:f?void 0:"tab","aria-selected":R!=null?R:!1,"aria-disabled":r,tabindex:f?void 0:0,"on:click":W,"on:keydown":B,el:n,"tab-identifier":function(){return V().identifier},
"tab-title":y},_.C(_.c,{cond:l,then:function(){return f()},
else:function(){var J={},D={};return _.C(_.Lp,null,_.C("div",{class:_.If("yt-tab-shape-wiz__tab",(J["yt-tab-shape-wiz__tab--tab-selected"]=R,J))},_.C(_.c,{cond:P,then:function(u){return _.C(_.wN,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return u().iconType}})}}),y),_.C("div",{class:_.If("yt-tab-shape-wiz__tab-bar",(D["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=R,D))}))}}))},"he");
f_B.idomCompat={callbacks:{customTabRenderable:!0}};_.Rqc=_.Q(function(W){var l=W.shape;W=_.L(_.J4(48,void 0,"rCewuf"));var V=W.next().value,f=W.next().value;W=_.L(_.J4(0,void 0,"aUUTWe"));var r=W.next().value,R=W.next().value,y=function(){return l().tabs},P=_.WS("yt-tab-group-shape"),n=function(){var B,d;
return(d=(B=y())==null?void 0:B.findIndex(function(J){return J.selected}))!=null?d:-1};
_.mw(function(){var B=P.value.querySelectorAll("yt-tab-shape"),d=n()>-1?B[n()]:void 0;_.w8.addJob(function(){f((d==null?void 0:d.getBoundingClientRect().width)||0)},8,0)});
_.m1(function(){var B=n(),d=_.w8.addJob(function(){var J,D=((J=P.value)==null?void 0:J.querySelectorAll("yt-tab-shape"))||[],u;f(((u=B>-1?D[B]:void 0)==null?void 0:u.getBoundingClientRect().width)||0);for(u=J=0;u<B;u++)J+=D[u].offsetWidth+24;_.M4("HTML_DIR")==="rtl"&&(J=-J);R(J)},8,0);
_.Xc(function(){_.w8.cancelJob(d)})},"DAb5Qb");
W={};return _.C("yt-tab-group-shape",{class:_.If("tabGroupShapeHost",(W.tabGroupShapeOverflowHidden=function(){return l().isOverflowHidden},W)),
el:P},_.C(_.c,{cond:y,then:function(B){return _.C(_.Lp,null,_.C("div",{class:"tabGroupShapeTabs",role:"tablist"},_.C(_.G3,{each:B},function(d,J){return _.C(f_B,{shape:function(){return Object.assign({},d,{isLastTab:J()===B().length-1})},
customTabRenderable:d.customTabRenderable,useCustomTabRenderable:!!d.customTabRenderable})})),_.C(r9k,{width:V,
sliderOffset:r}))}}))},"ie");
_.Rqc.idomCompat=!0;var r9k=_.Q(function(W){var l=_.JG(W.sliderOffset,0),V=W.width;return _.C("div",{class:"tabGroupShapeSlider",style:_.Tm({width:function(){return V()+"px"},
transform:function(){return"translateX("+l()+"px)"}})})},"je");var tGe=_.Q(function(W){var l=function(){var R,y,P;return(P=(R=W.data().playerLogoAccessibility)==null?void 0:(y=R.accessibilityData)==null?void 0:y.label)!=null?P:""},V=_.wH(F_v,function(){return W.data().playerEntityKey}),f={};
f=_.If("ytwFantasyPlayerViewModelHost",(f.ytwFantasyPlayerViewModelPlaying=function(){var R;return!((R=V())==null||!R.isPlayerPlaying)},f.ytwFantasyPlayerViewModelOnField=function(){var R;
return((R=V())==null?void 0:R.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},f.ytwFantasyPlayerViewModelRedZone=function(){var R;
return((R=V())==null?void 0:R.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},f));
var r=function(){var R,y,P,n=((R=_.tY().resolve(_.R0(_.nP)))==null?0:R())?(y=W.data().playerLogoBackgroundColor)==null?void 0:y.darkTheme:(P=W.data().playerLogoBackgroundColor)==null?void 0:P.lightTheme;return n===void 0?"":_.sD(n)};
return _.C("ytw-fantasy-player-view-model",{class:f},_.C(_.c,{cond:function(){return W.data().playerLogo},
then:function(R){return _.C("div",{class:"ytwFantasyPlayerViewModelLogo"},_.C("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.C(_.dN,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Tm({"background-color":r}),data:R,alt:l})),_.C("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.C(_.wN,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.C("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.C("div",{class:"ytwFantasyPlayerViewModelHeader"},_.C(_.bH,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var R;return(R=W.data())==null?void 0:R.playerNameText}}),_.C(_.bH,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var R;return(R=W.data())==null?void 0:R.playerDescriptionText}})),_.C("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.C(_.bH,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var R;return(R=V())==null?void 0:R.gamePeriodText}}),_.C(_.bH,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var R;return(R=W.data())==null?void 0:R.opponentTeamText}}),_.C(_.bH,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var R;return(R=V())==null?void 0:R.gameStatusText}}),_.C(_.bH,{className:_.If("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var R;return(R=V())==null?void 0:R.playerStatusText}})),_.C("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.C(_.bH,{text:function(){var R;
return(R=V())==null?void 0:R.playerStatsText}}))),_.C(_.bH,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var R;return(R=V())==null?void 0:R.fantasyScore}}))},"ke");var s7L=_.Q(function(W){return _.C("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.C(_.c,{cond:function(){return W.data().players},
then:function(l){return _.C(_.QH,{data:l},{fantasyPlayerViewModel:tGe})}}))},"le");var LvI=_.Q(function(W){var l=_.L(_.X3(function(){var r;return(r=W.data().selectedTabIdentifierKey)!=null?r:""})),V=l.next().value,f=l.next().value;
_.iz(function(){var r;(r=W.setSelectedTabSignal)==null||r.call(W,V)});
return _.C("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.C("div",{class:"ytTabbedViewModelTabGroup"},_.C(_.Rqc,{shape:function(){var r=W.data(),R=[],y={tabs:R};if(!r.tabs)return y;r=_.L(r.tabs);for(var P=r.next(),n={};!P.done;n={tabViewModel:void 0},P=r.next())if(n.tabViewModel=_.k(P.value,gIc),n.tabViewModel){var B=P=void 0;R.push({aTagConfig:{onclick:function(d){return function(){var J;f((J=d.tabViewModel.tabIdentifier)!=null?J:"")}}(n)},
identifier:n.tabViewModel.tabIdentifier,selected:V()===n.tabViewModel.tabIdentifier,title:(B=(P=n.tabViewModel.title)==null?void 0:P.content)!=null?B:""})}return y}})),_.C(_.QH,{data:function(){var r,R=_.L((r=W.data().tabs)!=null?r:[]);
for(r=R.next();!r.done;r=R.next())if((r=_.k(r.value,gIc))&&r.tabIdentifier===V())return r.content}},{fantasyRosterViewModel:s7L}))},"me");_.HI(_.Q(function(W){var l=_.L(scU()),V=l.next().value,f=l.next().value;return _.C("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.C(_.bH,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return W.data().title}}),_.C(_.c,{cond:function(){return W.data().tabbedViewModel},
then:function(r){return _.C(_.QH,{data:r},{tabbedViewModel:function(R){return _.C(LvI,{data:R.data,setSelectedTabSignal:f})}})}}),_.C(_.c,{cond:function(){var r,R=(r=_.k(W.data().tabbedViewModel,P5B))==null?void 0:r.tabs;
r=_.k(R==null?void 0:R[0],gIc);R=_.k(R==null?void 0:R[1],gIc);var y=r==null?void 0:r.tabIdentifier;if(V()===y){var P,n;if(!((P=_.k(r==null?void 0:r.content,Iv9))==null?0:(n=P.players)==null?0:n.length))return W.data().noUserTeamPlayersText}else{var B,d;if(!((B=_.k(R==null?void 0:R.content,Iv9))==null?0:(d=B.players)==null?0:d.length))return W.data().noOpponentTeamPlayersText}},
then:function(r){return _.C(_.bH,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:r})}}))},"ne"),"ytw-fantasy-matchup-view-model",{props:{data:_.pA}});_.HI(_.Q(function(W){return _.C("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.C(_.bH,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return W.data().title}}),_.C(_.c,{cond:function(){return W.data().matchupTeamPairs},
then:function(l){return _.C(_.G3,{each:l,keyBy:"INDEX"},function(V){return _.C("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.C(_.QH,{data:function(){return[V().firstTeam,V().secondTeam]}},{fantasyTeamViewModel:function(f){return _.C(VG9,{data:f.data,
compact:!0})}}))})}}))},"oe"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.pA}});_.HI(_.Q(function(W){var l=function(){var r,R,y;return(y=(r=W.data().userLogoAccessibility)==null?void 0:(R=r.accessibilityData)==null?void 0:R.label)!=null?y:""},V=function(){var r,R,y;
return(y=(r=W.data().opponentLogoAccessibility)==null?void 0:(R=r.accessibilityData)==null?void 0:R.label)!=null?y:""},f=_.wH(HIj,function(){return W.data().entityKey});
return _.C("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.C("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.C(_.c,{cond:function(){return W.data().userLogo},
then:function(r){return _.C(_.dN,{className:"ytwFantasyWinProbabilityViewModelLogo",data:r,alt:l})}}),_.C("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.C(_.bH,{text:function(){return W.data().title}})),_.C(_.c,{cond:function(){return W.data().opponentLogo},
then:function(r){return _.C(_.dN,{className:"ytwFantasyWinProbabilityViewModelLogo",data:r,alt:V})}})),_.C("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.C("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.C(_.bH,{text:function(){var r;
return(r=f())==null?void 0:r.userWinNumberLabel}})),_.C("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.C("div",{class:_.If("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Tm({flex:function(){var r,R;return(R=(r=f())==null?void 0:r.userWinNumber)!=null?R:50}})}),_.C("div",{class:_.If("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Tm({flex:function(){var r,R;return(R=(r=f())==null?void 0:r.opponentWinNumber)!=null?R:50}})})),_.C("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.C(_.bH,{text:function(){var r;
return(r=f())==null?void 0:r.opponentWinNumberLabel}}))))},"pe"),"fantasy-win-probability-view-model",{props:{data:_.pA}});var y9e={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},g3L=_.Q(function(W){return _.C(_.QH,{data:W.button},{buttonViewModel:function(l){return _.C(_.Nq,{data:l.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"qe"),PAI=_.Q(function(W){return _.C("ytd-backstage-locked-post-view-model",{class:_.If("ytdBackstageLockedPostViewModelHost",W.className)},_.C("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.C("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.C(_.QH,
{data:function(){return W.data().authorAvatar}},{decoratedAvatarViewModel:_.Px})),_.C("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.C("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.C(_.bH,{text:function(){return W.data().authorText}})),_.C("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.C(_.bH,{text:function(){return W.data().publishedTimeText}}),_.C(_.QH,{data:function(){return W.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(l){return _.C(KC$,
{data:l.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.C("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.C(_.bH,{text:function(){return W.data().contentText}})),_.C(_.oh,null,_.C(_.bz,{when:function(){return W.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.C("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.C(_.dN,{data:y9e,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.C(_.bH,{text:function(){return W.data().lockedText}}))}),_.C(_.bz,{when:function(){return W.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.C("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.C("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.C(_.dN,{data:y9e,
alt:""})),_.C(_.bH,{text:function(){return W.data().lockedText}}))})),_.C("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.C(g3L,{button:function(){return W.data().likeButton}}),_.C("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return W.data().voteCountA11y}},_.C(_.bH,{text:function(){return W.data().voteCount}})),_.C(g3L,{button:function(){return W.data().dislikeButton}}),_.C(g3L,{button:function(){return W.data().commentButton}}),_.C("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return W.data().commentCountA11y}},_.C(_.bH,{text:function(){return W.data().commentCount}}))))},"re");
PAI.idomCompat=!0;_.HI(PAI,"ytd-backstage-locked-post-view-model",{props:{data:_.pA,className:_.pA}});_.e1("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Hr=function(){var W=_.I.apply(this,arguments)||this;W.darkerPanels=_.U("web_watch_darker_panels");W.commentsHidePanelButton=!1;W.isWatchGrid=!1;W.continuationShowButton=!1;W.isSearch=!1;W.isConstrainedList=!1;W.isWatch=!1;W.eligibleToSwitchToGrid=!1;W.useBigThumbs=!1;W.notSticky=!1;W.epRestyle=!1;W.isCarouselInFeed=!0;W.topSpacingZero=!1;W.continuationIsInitialLoad=!0;W.enableSqueezebackPanels=_.U("web_shorts_enable_squeezeback_panels");W.enableAnchoredPanel=_.U("desktop_shorts_v2_anchored_panel");
W.mastheadHeight=0;W.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};W.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return W};
_.v(Hr,_.I);_.t=Hr.prototype;_.t.updateLockupContainerTypes=function(W){if(this.eligibleToSwitchToGrid){var l;(l=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||l.forEach(function(V){V.containerType=W})}};
_.t.getItemsPath=function(){return"data.contents"};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.t.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",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.U("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.U("kevlar_low_priority_continuation")}}};
_.t.created=function(){};
_.t.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.t.handleIntersect=function(W){this.notSticky=W[0].intersectionRatio===1};
_.t.attached=function(){var W=this,l=_.U("web_item_section_sticky_header_use_scroll_as_fallback");l||document.addEventListener("scroll",_.mz(this,this.updateHeaderState));var V;this.mastheadHeight=((V=document.querySelector("ytd-masthead"))==null?void 0:V.clientHeight)||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(f){W.handleIntersect(f)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):l&&document.addEventListener("scroll",_.mz(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){W.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.t.detached=function(){document.removeEventListener("scroll",_.mz(this,this.updateHeaderState));var W;(W=this.intersectionObserver)==null||W.disconnect();var l;(l=this.resizeObserver)==null||l.disconnect()};
_.t.updated=function(W){W.has("data")&&this.updateHeaderState()};
_.t.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(GOa(!this.notSticky))};
_.t.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var W=_.GS(this.hostElement).querySelector("ytd-comments-header-renderer");W&&(W.hidePanelButton=this.commentsHidePanelButton)}};
_.t.onRetrieveLocation=function(W,l){this.containsComments()&&(this.firstCommentsLoaded=l.hasComments=!0)};
_.t.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.t.onLoadReloadContinuation=function(W,l){var V=this;W.stopPropagation();this.isReloading=!0;_.FN(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(f){var r=_.tY().resolve(_.lm);f=l(f);r.postData(f).then(function(R){V.onReloadContinuationData(R)})}})};
_.t.onReloadContinuationData=function(W){if(W=this.get("response.continuationContents.itemSectionContinuation",W)||this.get("response.contents.itemSectionRenderer",W)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",W)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",W))this.set("data.contents",W.contents||W.results),W.header&&this.set("data.header",W.header),this.set("data.continuations",
W.continuations||[]);this.isReloading=!1};
_.t.computeContentsClass=function(W){return W?"reloading":""};
_.t.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.t.computeSectionIdentifier=function(W){return W==null?void 0:W.sectionIdentifier};
_.t.computeFitContainer=function(W){return(W==null?void 0:W.sectionIdentifier)==="youchat-item-section"};
_.t.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.U("kevlar_disable_comments_auto_load")};
_.t.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.t.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.t.computeHasDestinationShelfRenderer=function(W){var l,V;return!!(W==null?0:(l=W.contents)==null?0:(V=l[0])==null?0:V.destinationShelfRenderer)};
_.t.computeHasSectionGroupViewModel=function(W){var l,V;return!!(W==null?0:(l=W.contents)==null?0:(V=l[0])==null?0:V.sectionGroupViewModel)};
_.t.computeHasQrCodeRenderer=function(W){var l,V;return!!(W==null?0:(l=W.contents)==null?0:(V=l[0])==null?0:V.qrCodeRenderer)};
_.t.computeStaticCommentsHeader=function(W){return W&&this.containsComments()};
_.t.computeEpRestyle=function(W){return _.U("web_ep_restyling")&&W&&this.containsComments()};
_.t.computeIsContinuationCommentSection=function(W){return(W==null?void 0:W.targetId)==="shorts-engagement-panel-comments-section"||(W==null?void 0:W.targetId)==="comments-section"||(W==null?void 0:W.targetId)==="engagement-panel-comments-section"};
_.t.computeSuppressPaddingDisclaimer=function(){var W,l,V,f;return!!((W=this.data)==null?0:(l=W.contents)==null?0:(V=l[0])==null?0:(f=V.productListHeaderRenderer)==null?0:f.suppressPaddingDisclaimer)};
_.t.computeHeaderStyle=function(W){switch(W==null?void 0:W.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.t.dataChanged=function(){this.firstCommentsLoaded=!1};
_.t.observeDataContentsLength=function(){var W,l;((W=this.data)==null?0:(l=W.contents)==null?0:l.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.t.onYtDismissibleItemDismissedChange=function(W){this._setItemDismissed(W.type==="yt-dismissible-item-dismissed")};
_.t.triggerContinuations=function(){for(var W=_.GS(this.hostElement).querySelector("#continuations").children,l=0;l<W.length;l++)W[l].trigger()};
_.t.triggerInitialContinuations=function(){for(var W=_.GS(this.hostElement).querySelector("#continuations").children,l=0;l<W.length;l++)W[l].triggerIfNotPreviouslyTriggered()};
_.t.handleYtItemSectionContinuation=function(W,l){var V;l&&((V=this.data)==null?void 0:V.sectionIdentifier)!==l||(this.set("data.continuations",[W]),this.triggerContinuations())};
_.t.handleYtItemSectionReplace=function(W,l){var V;l&&((V=this.data)==null?void 0:V.sectionIdentifier)!==l||(this.set("data.contents",W),this.set("data.continuations",[]))};
_.t.computeUseHeightHack=function(W){return W&&!_.U("kevlar_disable_height_hack")};
_.t.computeTopSpacingZero=function(W){return W};
_.t.continuationShowButtonChanged=function(){var W=_.GS(this.hostElement).querySelector("ytd-continuation-item-renderer");W&&(W.showButton=this.continuationShowButton)};
_.t.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.GD("data-changed",this.data))};
_.rc.Object.defineProperties(Hr.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.U("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 W,l,V;return!!((W=this.data)==null?0:(l=W.contents)==null?0:(V=l[0])==null?0:V.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var W,l,V,f,r,R,y;return!!((W=this.data)==null?0:(l=W.contents)==null?0:(V=l[0])==null?0:(f=V.shelfRenderer)==null?0:(r=f.content)==null?0:(R=r.gridRenderer)==null?0:(y=R.targetId)==null?0:y.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return!!((W=this.data)==null?0:(l=W.contents)==null?0:(V=l[0])==null?0:V.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return!!((W=this.data)==null?0:(l=W.contents)==null?0:(V=l[0])==null?0:V.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.gU("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.U("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.U("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
Hr.prototype.dataChangedForBinding=Hr.prototype.dataChangedForBinding;Hr.prototype.continuationShowButtonChanged=Hr.prototype.continuationShowButtonChanged;Hr.prototype.onYtDismissibleItemDismissedChange=Hr.prototype.onYtDismissibleItemDismissedChange;Hr.prototype.observeDataContentsLength=Hr.prototype.observeDataContentsLength;Hr.prototype.dataChanged=Hr.prototype.dataChanged;Hr.prototype.onServiceRequestCompleted=Hr.prototype.onServiceRequestCompleted;Hr.prototype.onLoadReloadContinuation=Hr.prototype.onLoadReloadContinuation;
Hr.prototype.onRetrieveLocation=Hr.prototype.onRetrieveLocation;Hr.prototype.commentsHidePanelButtonChanged=Hr.prototype.commentsHidePanelButtonChanged;Hr.prototype.dispatchChipBarIsSticky=Hr.prototype.dispatchChipBarIsSticky;Hr.prototype.updateLockupContainerTypes=Hr.prototype.updateLockupContainerTypes;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Hr.prototype,"ytActionHandlerBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Hr.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.AM.YtLazyListBehavior),_.z("design:type",Object)],Hr.prototype,"ytLazyListBehavior",void 0);_.a([_.F(_.HH.YtNextContinuationBehavior),_.z("design:type",Object)],Hr.prototype,"ytNextContinuationBehavior",void 0);
_.a([_.F(_.vH),_.z("design:type",Object)],Hr.prototype,"ytContinuationHandlerBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Hr.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],Hr.prototype,"ytdReduxBehavior",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Hr.prototype,"darkerPanels",void 0);_.a([_.b(),_.z("design:type",Object)],Hr.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Boolean)],Hr.prototype,"engagementPanel",void 0);_.a([_.b(),_.z("design:type",Object)],Hr.prototype,"commentsHidePanelButton",void 0);_.a([_.b(),_.z("design:type",Object)],Hr.prototype,"isWatchGrid",void 0);_.a([_.b(),_.z("design:type",Object)],Hr.prototype,"continuationShowButton",void 0);_.a([_.b({computed:"computeIsContinuationCommentSection(data)"}),_.z("design:type",Boolean)],Hr.prototype,"continuationIsCommentsSection",void 0);
_.a([_.b({value:!0}),_.z("design:type",Boolean)],Hr.prototype,"autoFill",void 0);_.a([_.b(),_.z("design:type",Boolean)],Hr.prototype,"continuationDisablePrescanVisibility",void 0);_.a([_.b(),_.z("design:type",Boolean)],Hr.prototype,"isReloading",void 0);_.a([_.b(),_.z("design:type",Object)],Hr.prototype,"isSearch",void 0);_.a([_.b(),_.z("design:type",Object)],Hr.prototype,"isConstrainedList",void 0);_.a([_.b(),_.z("design:type",Object)],Hr.prototype,"isWatch",void 0);
_.a([_.b(),_.z("design:type",Object)],Hr.prototype,"eligibleToSwitchToGrid",void 0);_.a([_.b(),_.z("design:type",Object)],Hr.prototype,"useBigThumbs",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Hr.prototype,"notSticky",void 0);_.a([_.b({selector:_.EZ}),_.z("design:type",Object)],Hr.prototype,"isGridViewEnabled",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.z("design:type",Object)],Hr.prototype,"epRestyle",void 0);_.a([_.G("isWatch"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Hr.prototype,"hideShortsShelfHeader",null);_.a([_.G("isSearch","isWatch"),_.z("design:type",String),_.z("design:paramtypes",[])],Hr.prototype,"thumbnailWidth",null);
_.a([_.G("isSearch","containerWidth"),_.z("design:type",Object),_.z("design:paramtypes",[])],Hr.prototype,"thumbnailTargetWidth",null);_.a([_.G("isSearch","isWatch"),_.z("design:type",String),_.z("design:paramtypes",[])],Hr.prototype,"sizing",null);_.a([_.G("isWatch","isGridViewEnabled","useBigThumbs","data"),_.b({reflectToAttribute:!0}),_.z("design:type",Number),_.z("design:paramtypes",[])],Hr.prototype,"lockupContainerType",null);
_.a([_.TS("lockupContainerType","data"),_.z("design:type",Function),_.z("design:paramtypes",[Number]),_.z("design:returntype")],Hr.prototype,"updateLockupContainerTypes",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],Hr.prototype,"pageSubtype",void 0);_.a([_.b({computed:"computeContainerWidth()"}),_.z("design:type",Number)],Hr.prototype,"containerWidth",void 0);_.a([_.b(),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Hr.prototype,"isPlaylist",null);
_.a([_.b(),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Hr.prototype,"isClipList",null);_.a([_.b(),_.z("design:type",Object)],Hr.prototype,"isCarouselInFeed",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Hr.prototype,"isPlaylistVideoContainer",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Hr.prototype,"isSearchFrictionPage",null);
_.a([_.b({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.z("design:type",Boolean)],Hr.prototype,"useHeightHack",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.z("design:type",Object)],Hr.prototype,"topSpacingZero",void 0);_.a([_.b({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.z("design:type",Boolean)],Hr.prototype,"showButton",void 0);
_.a([_.b(),_.z("design:type",Boolean)],Hr.prototype,"firstCommentsLoaded",void 0);_.a([_.b(),_.z("design:type",Object)],Hr.prototype,"continuationIsInitialLoad",void 0);_.a([_.b({reflectToAttribute:!0,readOnly:!0}),_.z("design:type",Boolean)],Hr.prototype,"itemDismissed",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.z("design:type",String)],Hr.prototype,"sectionIdentifier",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.z("design:type",String)],Hr.prototype,"fitContainer",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.z("design:type",Boolean)],Hr.prototype,"hasDestinationShelfRenderer",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.z("design:type",Boolean)],Hr.prototype,"staticCommentsHeader",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Hr.prototype,"enableSqueezebackPanels",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Hr.prototype,"enableAnchoredPanel",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.z("design:type",Boolean)],Hr.prototype,"hasSectionGroupViewModel",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.z("design:type",Boolean)],Hr.prototype,"hasQrCodeRenderer",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.z("design:type",Boolean)],Hr.prototype,"suppressDisclaimerSeparator",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.z("design:type",String)],Hr.prototype,"headerStyle",void 0);
_.a([_.G("isSearch"),_.z("design:type",Object),_.z("design:paramtypes",[])],Hr.prototype,"lockupExperiments",null);_.a([_.G("isSearch"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Hr.prototype,"typographyBump",null);_.a([_.Aa("#header"),_.z("design:type",HTMLElement)],Hr.prototype,"header",void 0);_.a([_.TS("notSticky"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hr.prototype,"dispatchChipBarIsSticky",null);
_.a([_.TS("commentsHidePanelButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hr.prototype,"commentsHidePanelButtonChanged",null);_.a([_.XI("yt-retrieve-location"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],Hr.prototype,"onRetrieveLocation",null);
_.a([_.XI("yt-load-reload-continuation"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Function]),_.z("design:returntype")],Hr.prototype,"onLoadReloadContinuation",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hr.prototype,"onServiceRequestCompleted",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hr.prototype,"dataChanged",null);
_.a([_.zS("data.contents.length"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hr.prototype,"observeDataContentsLength",null);_.a([_.XI("yt-dismissible-item-dismissed"),_.XI("yt-dismissible-item-undismissed"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Hr.prototype,"onYtDismissibleItemDismissedChange",null);
_.a([_.TS("continuationShowButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hr.prototype,"continuationShowButtonChanged",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hr.prototype,"dataChangedForBinding",null);_.a([_.A({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Hr);
_.Z(Hr,"ytd-item-section-renderer",function(){if(vyI!==void 0)return vyI;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return vyI=W},{mode:1});var n3c;var gEz=_.Bl(_.wg("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var CAa={},ywj=(CAa[0]={title:_.Hy(_.wg("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Hy(_.wg("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.kH("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},CAa[1]={title:_.Hy(_.wg("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.kH("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},CAa);_.e1("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var KD=function(){var W=_.I.apply(this,arguments)||this;W.allVideosCount=0;W.allPlaylistCount=0;W.isOnline=!1;W.shouldRenderDownloadsBanner=!1;W.shouldRenderDownloadsBannerUpsell=!1;W.hasOptedIntoSmartDownloads=!1;W.areAllSmartDownloadsDeleted=!1;W.smartDownloadsCompleted=!1;return W};
_.v(KD,_.I);KD.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
KD.prototype.attached=function(){this.downloadsToRenderChanged()};
KD.prototype.detached=function(){this.set("renderableData",{})};
KD.prototype.downloadsToRenderChanged=function(){var W=_.DJ().getState().entities,l=_.hW(W),V=_.U("kevlar_playlist_dl_page_killswitch")?oCz(W):_.SE(W),f=_.vCj(W),r=_.GoJ(W),R=_.zT(l);W=_.EK(W);this.set("renderableData",nEz(V,l,f,r,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,R,W))};
KD.prototype.downloadsToRenderChanged=KD.prototype.downloadsToRenderChanged;_.a([_.F(_.dx),_.z("design:type",Object)],KD.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],KD.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],KD.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],KD.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],KD.prototype,"renderableData",void 0);_.a([_.b({selector:_.aI8}),_.z("design:type",Object)],KD.prototype,"allVideosCount",void 0);_.a([_.b({selector:fGj}),_.z("design:type",Object)],KD.prototype,"allPlaylistCount",void 0);_.a([_.b({selector:_.fa}),_.z("design:type",Object)],KD.prototype,"isOnline",void 0);_.a([_.b({selector:_.hmj}),_.z("design:type",Object)],KD.prototype,"shouldRenderDownloadsBanner",void 0);
_.a([_.b({selector:_.WBU}),_.z("design:type",Object)],KD.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.a([_.b({selector:_.S7U}),_.z("design:type",Object)],KD.prototype,"hasOptedIntoSmartDownloads",void 0);_.a([_.b({selector:_.ECF}),_.z("design:type",Object)],KD.prototype,"areAllSmartDownloadsDeleted",void 0);_.a([_.b({selector:$5S}),_.z("design:type",Object)],KD.prototype,"smartDownloadsCompleted",void 0);
_.a([_.zS("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KD.prototype,"downloadsToRenderChanged",null);_.a([_.A({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],KD);
_.Z(KD,"ytd-offline-item-section-renderer",function(){if(n3c!==void 0)return n3c;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return n3c=W},
{mode:1});var c9I;var B1c;var FF=function(){return _.I.apply(this,arguments)||this};
_.v(FF,_.I);
FF.prototype.onDataChanged=function(){if(this.JSC$16689_lastData){var W=this.getFilterClass(this.JSC$16689_lastData.status);W&&this.hostElement.classList.remove(W)}var l;(W=this.getFilterClass((l=this.data)==null?void 0:l.status))&&this.hostElement.classList.add(W);W==="selected"?_.GS(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.GS(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");W==="disabled"?_.GS(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.GS(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16689_lastData=this.data};
FF.prototype.getFilterClass=function(W){switch(W){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
FF.prototype.onDataChanged=FF.prototype.onDataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],FF.prototype,"data",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FF.prototype,"onDataChanged",null);_.a([_.A({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],FF);
_.Z(FF,"ytd-search-filter-renderer",function(){if(B1c!==void 0)return B1c;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return B1c=W},{mode:_.bD("kevlar_poly_si_batch_j075")?1:2});var Gq=function(){return _.I.apply(this,arguments)||this};
_.v(Gq,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Gq.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Gq.prototype,"data",void 0);_.a([_.A({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],Gq);
_.Z(Gq,"ytd-search-filter-group-renderer",function(){if(c9I!==void 0)return c9I;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return c9I=W},{mode:_.bD("kevlar_poly_si_batch_j075")?1:2});var dbk;var bf=function(){return _.I.apply(this,arguments)||this};
_.v(bf,_.I);bf.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.wP());this.isCollapsed=!this.isCollapsed};
bf.prototype.navigateToAboutTheseResultsPage=function(){var W=_.av("https://www.youtube.com/howyoutubeworks/product-features/search/");W?_.lM(window,W,"_blank"):_.OJ(Error("Wh"))};
bf.prototype.dataChanged=function(){this.isCollapsed=!0};
bf.prototype.computeShowBottomBorder=function(){var W,l,V;return!!((W=this.data)==null?0:(l=W.button)==null?0:l.toggleButtonRenderer)||!((V=this.data)==null||!V.aboutTheseResultsButton)};
bf.prototype.dataChanged=bf.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],bf.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],bf.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.z("design:type",Boolean)],bf.prototype,"showBottomBorder",void 0);_.a([_.b(),_.z("design:type",Boolean)],bf.prototype,"renderCollapsibleMenu",void 0);
_.a([_.b(),_.z("design:type",Boolean)],bf.prototype,"isCollapsed",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bf.prototype,"dataChanged",null);_.a([_.A({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],bf);
_.Z(bf,"ytd-search-sub-menu-renderer",function(){if(dbk!==void 0)return dbk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return dbk=W},{mode:1});var J9a;var Dbv=new _.vd("SECTION_LIST_RENDERER_TOKEN");var Ubk;var pD=function(){return _.I.apply(this,arguments)||this};
_.v(pD,_.I);pD.prototype.computeStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],pD.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],pD.prototype,"headerStyle",void 0);_.a([_.A({is:"ytd-text-header-renderer",disableElementRegistration:!0})],pD);
_.Z(pD,"ytd-text-header-renderer",function(){if(Ubk!==void 0)return Ubk;var W=document.createElement("template");_.K(W,"\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");W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Ubk=W},{mode:1});var u$L;var oa=function(){return _.I.apply(this,arguments)||this};
_.v(oa,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],oa.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],oa.prototype,"data",void 0);_.a([_.A({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],oa);
_.Z(oa,"ytd-minor-moment-header-renderer",function(){if(u$L!==void 0)return u$L;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return u$L=W},{mode:1});var kAL;var jx=function(){return _.I.apply(this,arguments)||this};
_.v(jx,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],jx.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],jx.prototype,"data",void 0);_.a([_.A({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],jx);
_.Z(jx,"ytd-minor-moment-setting-alert-renderer",function(){if(kAL!==void 0)return kAL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return kAL=W},{mode:1});var v3Z;var Hok;var Ia=function(){var W=_.I.apply(this,arguments)||this;W.booleanSettingById=!1;W.smartDownloadsEnabledVE=_.GY(128287);W.smartDownloadsDisabledVE=_.GY(128286);W.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return W};
_.v(Ia,_.I);_.t=Ia.prototype;_.t.attachSmartDownloadsSettingVes=function(){var W;this.activeVeForLogging||((W=this.data)==null?void 0:W.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.aH(_.Qq(),this.smartDownloadsEnabledVE),_.aH(_.Qq(),this.smartDownloadsDisabledVE))};
_.t.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.FN(this.hostElement,"yt-settings-switch-ready")};
_.t.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.t.onSwitchChange=function(W){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(W=_.Ja(W).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.U("kevlar_settings_switch_resolve_command_killswitch")?_.tY().resolve(_.s6).resolveCommand(W,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(W)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.t.handleUpdateSettingsSwitch=function(W){(W=_.k(W,Ega))&&this.data&&this.data.id===W.id&&this.set("data.enabled",!!W.enabled)};
_.t.onToggleSettingsSwitch=function(W,l){this.data&&this.data.id===W&&this.set("data.enabled",l!=null?l:!this.data.enabled)};
_.t.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.IH.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.t.maybeLogSmartDownloadsSettingVisibility=function(){var W=_.Wh(),l;W&&((l=this.data)==null?void 0:l.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Py(W,[this.smartDownloadsEnabledVE]),_.n0(W,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Py(W,[this.smartDownloadsDisabledVE]),_.n0(W,[this.smartDownloadsEnabledVE])))};
_.t.maybeLogSmartDownloadsSettingClick=function(){var W;((W=this.data)==null?void 0:W.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.Nl(_.Qq(),this.activeVeForLogging)};
_.t.updateDataEnabledFromBinding=function(W){this.set("data.enabled",W.detail.value)};
_.rc.Object.defineProperties(Ia.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var W=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!W&&(W=this.ytRendererBehavior.getSimpleString(this.data.title));return W}}});
Ia.prototype.dataChanged=Ia.prototype.dataChanged;_.a([_.F(_.dx),_.z("design:type",Object)],Ia.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Ia.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Ia.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Ia.prototype,"ytComponentBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],Ia.prototype,"data",void 0);_.a([_.b({selector:function(W,l){if(Object.keys(W==null?void 0:W.entities).length)switch(l){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return jBx(W.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.z("design:type",Object)],Ia.prototype,"booleanSettingById",void 0);_.a([_.b(),_.z("design:type",EC)],Ia.prototype,"activeVeForLogging",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ia.prototype,"toggleAriaLabel",null);_.a([_.zS("data"),_.zS("booleanSettingById"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ia.prototype,"dataChanged",null);
_.a([_.A({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Ia);
_.Z(Ia,"ytd-settings-switch-renderer",function(){if(Hok!==void 0)return Hok;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Hok=W},{mode:1});var m8=function(){return _.I.apply(this,arguments)||this};
_.v(m8,_.I);m8.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}}}}};
_.rc.Object.defineProperties(m8.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var W=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(W+=" remove-left-margin");this.data.extraBottomSpace&&(W+=" extra-bottom-space");return W}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],m8.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],m8.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],m8.prototype,"data",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],m8.prototype,"contentsClassName",null);_.a([_.A({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],m8);
_.Z(m8,"ytd-minor-moment-setting-section-renderer",function(){if(v3Z!==void 0)return v3Z;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return v3Z=W},{mode:1});var KvB;var XF=function(){return _.I.apply(this,arguments)||this};
_.v(XF,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],XF.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],XF.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],XF);
_.Z(XF,"ytd-empty-product-details-renderer",function(){if(KvB!==void 0)return KvB;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return KvB=W},{mode:1});var FvB;var GAk;var Tq=function(){var W=_.I.apply(this,arguments)||this;W.expanded=!0;return W};
_.v(Tq,_.I);Tq.prototype.getBadgeRowClass=function(W,l,V){for(var f=_.L(this.hostElement.querySelectorAll("yt-img-shadow")),r=f.next();!r.done;r=f.next())r.value.onShow();W=W.selected;return V?W!==-1?W===l?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(W!==void 0?W:0)===l?"badge-line":"badge-hidden"};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Tq.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Tq.prototype,"expanded",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],Tq);
_.Z(Tq,"ytd-sponsorships-loyalty-badges-renderer",function(){if(GAk!==void 0)return GAk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return GAk=W},{mode:1});var bo9;var wR=function(){var W=_.I.apply(this,arguments)||this;W.expanded=!0;return W};
_.v(wR,_.I);wR.prototype.getContainerClasses=function(W,l){W=W?"expanded":"collapsed";l&&(W+=" item");return W};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],wR.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],wR.prototype,"expanded",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],wR);
_.Z(wR,"ytd-sponsorships-perk-renderer",function(){if(bo9!==void 0)return bo9;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return bo9=W},{mode:1});var p11;var AB=function(){var W=_.I.apply(this,arguments)||this;W.expanded=!0;return W};
_.v(AB,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],AB.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],AB.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],AB.prototype,"expanded",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],AB);
_.Z(AB,"ytd-sponsorships-perks-renderer",function(){if(p11!==void 0)return p11;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return p11=W},{mode:1});var Qu=function(){var W=_.I.apply(this,arguments)||this;W.isCollapsed=!1;return W};
_.v(Qu,_.I);Qu.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
Qu.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
Qu.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var W;this.expandCollapseButton=_.k((W=this.data)==null?void 0:W.expandButton,_.CE)}else{var l;this.expandCollapseButton=_.k((l=this.data)==null?void 0:l.collapseButton,_.CE)}};
Qu.prototype.updateExpandCollapseButton=Qu.prototype.updateExpandCollapseButton;Qu.prototype.onDataChanged=Qu.prototype.onDataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Qu.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Qu.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Qu.prototype,"isCollapsed",void 0);_.a([_.b(),_.z("design:type",Object)],Qu.prototype,"expandCollapseButton",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qu.prototype,"onDataChanged",null);_.a([_.zS("data","isCollapsed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qu.prototype,"updateExpandCollapseButton",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],Qu);
_.Z(Qu,"ytd-sponsorships-expandable-perks-renderer",function(){if(FvB!==void 0)return FvB;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return FvB=W},{mode:1});var o3a;var MO=function(){return _.I.apply(this,arguments)||this};
_.v(MO,_.I);MO.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],MO.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],MO.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],MO.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],MO);
_.Z(MO,"ytd-sponsorships-actionable-message-renderer",function(){if(o3a!==void 0)return o3a;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return o3a=W},{mode:1});var j7v;var ZF=function(){return _.I.apply(this,arguments)||this};
_.v(ZF,_.I);_.t=ZF.prototype;_.t.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.t.getExpansionIcon=function(W){return W?"COLLAPSE":"EXPAND"};
_.t.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.t.computeMessageContainerStyle=function(W){var l=W.expandableItems?" style-clickable":"";return W.messageContainerStyle?W.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+l:"style-unspecified"+l};
_.t.isSinglePerk=function(W){return!!W.messageContainerStyle&&(W.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||W.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.t.onExpandedChanged=function(){var W=this;if(this.expanded)for(var l=_.L(this.hostElement.querySelectorAll("yt-img-shadow")),V=l.next();!V.done;V=l.next())V.value.onShow();_.V9(this,function(){_.FN(W.hostElement,"yt-refit")})};
_.t.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
ZF.prototype.onDataChanged=ZF.prototype.onDataChanged;ZF.prototype.onExpandedChanged=ZF.prototype.onExpandedChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ZF.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ZF.prototype,"data",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],ZF.prototype,"expanded",void 0);
_.a([_.TS("expanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZF.prototype,"onExpandedChanged",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZF.prototype,"onDataChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],ZF);
_.Z(ZF,"ytd-sponsorships-expandable-message-renderer",function(){if(j7v!==void 0)return j7v;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return j7v=W},{mode:_.bD("kevlar_poly_si_batch_j028")?1:2});var I_M;var ON=function(){return _.I.apply(this,arguments)||this};
_.v(ON,_.I);ON.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"}}}}};
ON.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.k(this.data.endButton,_.CE).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
ON.prototype.onDataChanged=ON.prototype.onDataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ON.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ON.prototype,"data",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ON.prototype,"onDataChanged",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],ON);
_.Z(ON,"ytd-sponsorships-heading-renderer",function(){if(I_M!==void 0)return I_M;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return I_M=W},{mode:1});var ioI;var aa=function(){return _.I.apply(this,arguments)||this};
_.v(aa,_.I);_.a([_.b(),_.z("design:type",Object)],aa.prototype,"data",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],aa.prototype,"ytRendererBehavior",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],aa);
_.Z(aa,"ytd-sponsorships-links-renderer",function(){if(ioI!==void 0)return ioI;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return ioI=W},{mode:1});var mbI;var zq=function(){return _.I.apply(this,arguments)||this};
_.v(zq,_.I);_.t=zq.prototype;_.t.onDataChanged=function(){if(this.data&&this.data.expandableItems){var W;(W=_.GS(this.hostElement).querySelector("tp-yt-paper-button"))==null||W.setAttribute("role","button")}else{var l;(l=_.GS(this.hostElement).querySelector("tp-yt-paper-button"))==null||l.removeAttribute("role")}};
_.t.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.t.getExpansionIcon=function(W){return W?"COLLAPSE":"EXPAND"};
_.t.getTileClasses=function(W){return W?"tile expandable-tile":"tile"};
_.t.getButtonDisabled=function(W){return W?void 0:""};
zq.prototype.onDataChanged=zq.prototype.onDataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],zq.prototype,"data",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],zq.prototype,"expanded",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zq.prototype,"onDataChanged",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],zq);
_.Z(zq,"ytd-sponsorships-list-tile-renderer",function(){if(mbI!==void 0)return mbI;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return mbI=W},{mode:1});var X11;var T1k;var NO=function(){return _.I.apply(this,arguments)||this};
_.v(NO,_.I);NO.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],NO.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],NO.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],NO.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],NO);
_.Z(NO,"ytd-sponsorships-promotion-renderer",function(){if(T1k!==void 0)return T1k;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return T1k=W},{mode:1});var w1k;var Yq=function(){return _.I.apply(this,arguments)||this};
_.v(Yq,_.I);Yq.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Yq.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Yq.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Yq.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Yq);
_.Z(Yq,"ytd-sponsorships-purchase-option-renderer",function(){if(w1k!==void 0)return w1k;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return w1k=W},{mode:1});var A9k;var Q7c;var MGk=function(){return _.I.apply(this,arguments)||this};
_.v(MGk,_.I);_.a([_.b(),_.z("design:type",Object)],MGk.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],MGk);
_.Z(MGk,"ytd-ypc-offer-promo-renderer",function(){if(Q7c!==void 0)return Q7c;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Q7c=W},{mode:1});var xq=function(){return _.I.apply(this,arguments)||this};
_.v(xq,_.I);_.t=xq.prototype;
_.t.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"}}}}};
_.t.expansionCTA=function(W,l){return W&&(l?W.collapseCallToAction:W.expansionCallToAction)};
_.t.getExpansionIcon=function(W){return W?"COLLAPSE":"EXPAND"};
_.t.expansionCallToActionTap=function(){var W=this;this.expanded=!this.expanded;_.V9(this,function(){_.FN(W.hostElement,"yt-refit")})};
_.t.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var W,l=(W=this.data)==null?void 0:W.onVisible;l&&this.ytComponentBehavior.resolveCommand(l)};
_.t.computeDisplayTitle=function(W){return!(!W||this.titledisplaystatus!=="show")};
_.t.computeDisplaySeparator=function(){return!1};
_.t.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
xq.prototype.onDataChanged=xq.prototype.onDataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],xq.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],xq.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],xq.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],xq.prototype,"data",void 0);
_.a([_.b({value:!1}),_.z("design:type",Boolean)],xq.prototype,"expanded",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],xq.prototype,"purchaseButtonClicked",void 0);_.a([_.b({reflectToAttribute:!0,value:"show"}),_.z("design:type",String)],xq.prototype,"titledisplaystatus",void 0);_.a([_.b({computed:"computeDisplayTitle(data.title)"}),_.z("design:type",Boolean)],xq.prototype,"displayTitle",void 0);
_.a([_.b({computed:"computeDisplaySeparator(data)"}),_.z("design:type",Boolean)],xq.prototype,"displaySeparator",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xq.prototype,"onDataChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],xq);
_.Z(xq,"ytd-sponsorships-tier-renderer",function(){if(A9k!==void 0)return A9k;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return A9k=W},{mode:2});var ex=function(){return _.I.apply(this,arguments)||this};
_.v(ex,_.I);
ex.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"}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ex.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ex.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ex.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],ex);
_.Z(ex,"ytd-sponsorships-management-renderer",function(){if(X11!==void 0)return X11;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return X11=W},{mode:1});var Zo9;var qO=function(){return _.I.apply(this,arguments)||this};
_.v(qO,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],qO.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],qO.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],qO);
_.Z(qO,"ytd-open-in-native-app-view-model",function(){if(Zo9!==void 0)return Zo9;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Zo9=W},{mode:_.bD("kevlar_poly_si_batch_j028")?1:2});var OoX;var a_v;var zqM=_.tj(["top-"]),N1a=_.tj(["bottom-"]),YtL=_.tj(["left-"]),xbv=_.tj(["right-"]),eq$={},qta=function(W,l,V){W.removeAttribute("top-"+V);W.removeAttribute("bottom-"+V);W.removeAttribute("left-"+V);W.removeAttribute("right-"+V);l&&(l.top&&_.yK([_.n5(zqM)],W,"top-"+V,l.top),l.bottom&&_.yK([_.n5(N1a)],W,"bottom-"+V,l.bottom),l.left&&_.yK([_.n5(YtL)],W,"left-"+V,l.left),l.right&&_.yK([_.n5(xbv)],W,"right-"+V,l.right))};
eq$.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(W){var l,V=_.GS((l=this.hostElement)!=null?l:this),f;l=this.cardItemBoxBehaviorMarginTargetId&&V?V.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(f=this.hostElement)!=null?f:this;qta(l,W,"margin")},
cardItemContainerPaddingChanged_:function(W){var l,V=_.GS((l=this.hostElement)!=null?l:this),f;l=this.cardItemBoxBehaviorPaddingTargetId&&V?V.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(f=this.hostElement)!=null?f:this;qta(l,W,"padding")}}];var hB={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 hq9;var StI;var Sx=function(){return _.I.apply(this,arguments)||this};
_.v(Sx,_.I);Sx.prototype.textColorChanged_=function(){this.hostElement.style.color=hB[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
Sx.prototype.textColorChanged_=Sx.prototype.textColorChanged_;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Sx.prototype,"ytRendererBehavior",void 0);_.a([_.F(eq$.YtCardItemBoxBehavior),_.z("design:type",Object)],Sx.prototype,"ytCardItemBoxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Sx.prototype,"data",void 0);_.a([_.TS("data.textColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Sx.prototype,"textColorChanged_",null);
_.a([_.Vq({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],Sx);
_.Z(Sx,"yt-card-item-text-renderer",function(){if(StI===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;hq9===void 0&&(hq9=document.createElement("template"));var f=hq9;V.call(l,f.content.cloneNode(!0),W.content.firstChild);StI=W}W=StI;return W},{mode:2});var E3e;var $bk;var EN=function(){return _.I.apply(this,arguments)||this};
_.v(EN,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],EN.prototype,"data",void 0);_.a([_.Vq({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],EN);
_.Z(EN,"yt-card-item-badge-renderer",function(){if($bk===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;E3e===void 0&&(E3e=document.createElement("template"));var f=E3e;V.call(l,f.content.cloneNode(!0),W.content.firstChild);$bk=W}W=$bk;return W},{mode:2});var Wsk;var lga;var $q=function(){return _.I.apply(this,arguments)||this};
_.v($q,_.I);$q.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],$q.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],$q.prototype,"data",void 0);_.a([_.Vq({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],$q);
_.Z($q,"yt-card-item-text-collection-renderer",function(){if(lga===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;Wsk===void 0&&(Wsk=document.createElement("template"));var f=Wsk;V.call(l,f.content.cloneNode(!0),W.content.firstChild);lga=W}W=lga;return W},{mode:2});var VDI;var fgk;var WC=function(){return _.I.apply(this,arguments)||this};
_.v(WC,_.I);WC.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]]"}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],WC.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],WC.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],WC.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Number)],WC.prototype,"iconSize",void 0);_.a([_.Vq({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],WC);
_.Z(WC,"yt-card-item-text-with-button-renderer",function(){if(fgk===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;VDI===void 0&&(VDI=document.createElement("template"));var f=VDI;V.call(l,f.content.cloneNode(!0),W.content.firstChild);fgk=W}W=fgk;return W},{mode:2});var lY=function(){return _.I.apply(this,arguments)||this};
_.v(lY,_.I);lY.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"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],lY.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],lY.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],lY.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],lY.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],lY);
_.Z(lY,"ytd-commerce-cart-summary-line-item-renderer",function(){if(a_v!==void 0)return a_v;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return a_v=W},{mode:1});_.e1("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Vp=function(){var W=_.I.apply(this,arguments)||this;W.hidden=!1;return W};
_.v(Vp,_.I);_.t=Vp.prototype;_.t.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"}}}}};
_.t.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.t.updateSummary=function(){var W=this.commerceCartCheckoutButtonEntity,l;if(((l=this.data)==null?0:l.cartButton)&&W.checkoutSummaryText){var V,f=ap((V=this.data)==null?void 0:V.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+f+".cardItemTextRenderer.text",zb(W.checkoutSummaryText));if(W.checkoutDetailText){var r;V=ap((r=this.data)==null?void 0:r.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+V+".cardItemTextRenderer.text",zb(W.checkoutDetailText))}if(W.checkoutAdditionalMetadataText){var R;
r=ap((R=this.data)==null?void 0:R.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+r+".cardItemTextRenderer.text",zb(W.checkoutAdditionalMetadataText))}}else W.estimatedTotalPrice&&(R=ap((f=this.data)==null?void 0:f.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+R+".cardItemTextRenderer.text",zb(W.estimatedTotalPrice)))};
_.t.updateIsHidden=function(){var W,l=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.isHidden;l!==void 0&&(this.hidden=l)};
_.t.updateCheckoutButton=function(){var W,l=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.isDisabled;l!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",l);var V;W=(V=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:V.innertubeCommand;W!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",W);var f;V=(f=this.commerceCartCheckoutButtonEntity)==null?void 0:f.checkoutButtonText;V!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:V})};
Vp.prototype.entityChanged=Vp.prototype.entityChanged;_.a([_.F(_.dx),_.z("design:type",Object)],Vp.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Vp.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Vp.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Vp.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Vp.prototype,"fullWidth",void 0);_.a([_.b(),_.z("design:type",Object)],Vp.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Vp.prototype,"compact",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Vp.prototype,"hidden",void 0);
_.a([_.b({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:IZ6}),_.z("design:type",Object)],Vp.prototype,"commerceCartCheckoutButtonEntity",void 0);_.a([_.TS("commerceCartCheckoutButtonEntity","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vp.prototype,"entityChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],Vp);
_.Z(Vp,"ytd-commerce-cart-checkout-button-renderer",function(){if(OoX!==void 0)return OoX;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return OoX=W},{mode:2});var rNB;_.RSX={};
_.RSX.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",_.mz(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.mz(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(W){!this.tappableItemBehaviorTapEnabled||W.keyCode!==13&&W.keyCode!==32||W.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var W=this.data.onTap;W.ypcGetCartEndpoint?(_.pN(this.hostElement,[W]),this.tappableItemBehaviorTapEnabled=!1):W.ypcOffersEndpoint?_.pN(this.hostElement,[W]):_.og(this.hostElement,[W],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(W){this.tappableItemBehaviorTapEnabled=!!W},
tappableItemBehaviorOnTapEnabledChanged_:function(){var W=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(W.setAttribute("tabIndex",0),W.setAttribute("role","button")):(W.removeAttribute("tabIndex"),W.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(W){W.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var tDI;var sxL;var fQ=function(){return _.I.apply(this,arguments)||this};
_.v(fQ,_.I);fQ.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.qe("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.qe("sharingToggleButtonAndDefaultButton")}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],fQ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],fQ.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],fQ.prototype,"data",void 0);_.a([_.Vq({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],fQ);
_.Z(fQ,"yt-card-item-actions-renderer",function(){if(sxL===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;tDI===void 0&&(tDI=document.createElement("template"));var f=tDI;V.call(l,f.content.cloneNode(!0),W.content.firstChild);sxL=W}W=sxL;return W},{mode:2});var Ls9;var yNL;var ge9;var PeI;var nek;var CeL;var rb=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return W};
_.v(rb,_.I);rb.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
rb.prototype.handleDarkModeToggledAction_=function(W){this.isDarkTheme_=W};
rb.prototype.computeThemeImage_=function(W,l){if(!W||!W.imageLight)return!1;this.isCircular_=W.isCircular;W.imageWidth&&(this.hostElement.style.width=W.imageWidth+"px");W.imageHeight&&(this.hostElement.style.height=W.imageHeight+"px");W.borderWidth&&(this.image.style.borderWidth=W.borderWidth+"px",this.image.style.borderStyle="solid");W.borderColor&&(this.image.style.borderColor=_.sD(W.borderColor));return l&&W.imageDark?W.imageDark:W.imageLight};
rb.prototype.computeThemeIcon_=function(W){var l,V;if(!(W==null?0:(l=W.themedIcon)==null?0:(V=l.icon)==null?0:V.iconType))return!1;this.icon.style.color=hB[W.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(W.imageWidth||18)+"px";this.icon.style.height=(W.imageHeight||18)+"px";return _.IJ(W.themedIcon.icon.iconType)};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],rb.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],rb.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(eq$.YtCardItemBoxBehavior),_.z("design:type",Object)],rb.prototype,"ytCardItemBoxBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],rb.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],rb.prototype,"data",void 0);
_.a([_.b({value:!1}),_.z("design:type",Boolean)],rb.prototype,"fit",void 0);_.a([_.b(),_.z("design:type",Boolean)],rb.prototype,"isDarkTheme_",void 0);_.a([_.b({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.z("design:type",Object)],rb.prototype,"themeImage_",void 0);_.a([_.b({computed:"computeThemeIcon_(data)"}),_.z("design:type",Object)],rb.prototype,"themeIcon_",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Object)],rb.prototype,"isCircular_",void 0);
_.a([_.Aa("#image"),_.z("design:type",Object)],rb.prototype,"image",void 0);_.a([_.Aa("#icon"),_.z("design:type",Object)],rb.prototype,"icon",void 0);_.a([_.Vq({is:"yt-themed-image-renderer",disableElementRegistration:!0})],rb);
_.Z(rb,"yt-themed-image-renderer",function(){if(CeL===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;nek===void 0&&(nek=document.createElement("template"));var f=nek;V.call(l,f.content.cloneNode(!0),W.content.firstChild);CeL=W}W=CeL;return W},{mode:2});var R5=function(){return _.I.apply(this,arguments)||this};
_.v(R5,_.I);R5.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"}}}}};
R5.prototype.computeImagePlacement_=function(W){return W||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],R5.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],R5.prototype,"data",void 0);_.a([_.b({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.z("design:type",String)],R5.prototype,"imagePlacement",void 0);
_.a([_.Vq({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],R5);
_.Z(R5,"yt-card-item-text-with-image-renderer",function(){if(PeI===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;ge9===void 0&&(ge9=document.createElement("template"));var f=ge9;V.call(l,f.content.cloneNode(!0),W.content.firstChild);PeI=W}W=PeI;return W},{mode:2});var t3=function(){return _.I.apply(this,arguments)||this};
_.v(t3,_.I);t3.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"}}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],t3.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],t3.prototype,"data",void 0);_.a([_.Vq({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],t3);
_.Z(t3,"yt-card-item-error-renderer",function(){if(yNL===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;Ls9===void 0&&(Ls9=document.createElement("template"));var f=Ls9;V.call(l,f.content.cloneNode(!0),W.content.firstChild);yNL=W}W=yNL;return W},{mode:2});var cNa;var Br9;_.e1("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var sa=function(){return _.I.apply(this,arguments)||this};
_.v(sa,_.I);_.t=sa.prototype;
_.t.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"}}}}};
_.t.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.t.backgroundColorChanged_=function(){var W,l=(W=this.data)==null?void 0:W.backgroundColor;W=hB[l||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.GS(this.hostElement).querySelector("#main-content").style.backgroundColor=W};
_.t.headerPromoBackgroundColorChanged_=function(){var W,l=(W=this.data)==null?void 0:W.headerPromoBackgroundColor;W=hB[l||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.GS(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=W};
_.t.errorRendererVisibilityChanged_=function(){var W=this.isExpanded_,l;this.isErrorRendererVisible_=!((l=this.data)==null||!l.errorRenderer)&&!W};
_.t.onYtToggleButton_=function(W,l){this.isExpanded_=l.toggled};
sa.prototype.onYtToggleButton_=sa.prototype.onYtToggleButton_;sa.prototype.errorRendererVisibilityChanged_=sa.prototype.errorRendererVisibilityChanged_;sa.prototype.headerPromoBackgroundColorChanged_=sa.prototype.headerPromoBackgroundColorChanged_;sa.prototype.backgroundColorChanged_=sa.prototype.backgroundColorChanged_;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],sa.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(eq$.YtCardItemBoxBehavior),_.z("design:type",Object)],sa.prototype,"ytCardItemBoxBehavior",void 0);_.a([_.F(_.RSX.YtTappableItemBehavior),_.z("design:type",Object)],sa.prototype,"ytTappableItemBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],sa.prototype,"data",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],sa.prototype,"isExpanded_",void 0);
_.a([_.b({value:!1}),_.z("design:type",Boolean)],sa.prototype,"isErrorRendererVisible_",void 0);_.a([_.TS("data.backgroundColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sa.prototype,"backgroundColorChanged_",null);_.a([_.TS("data.headerPromoBackgroundColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sa.prototype,"headerPromoBackgroundColorChanged_",null);
_.a([_.TS("data.errorRenderer","isExpanded_"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sa.prototype,"errorRendererVisibilityChanged_",null);_.a([_.XI("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[Event,Object]),_.z("design:returntype")],sa.prototype,"onYtToggleButton_",null);_.a([_.Vq({is:"yt-card-item-renderer",disableElementRegistration:!0})],sa);
_.Z(sa,"yt-card-item-renderer",function(){if(Br9===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;cNa===void 0&&(cNa=document.createElement("template"));var f=cNa;V.call(l,f.content.cloneNode(!0),W.content.firstChild);Br9=W}W=Br9;return W},{mode:2});_.e1("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var LQ=function(){var W=_.I.apply(this,arguments)||this;W.hidden=!1;return W};
_.v(LQ,_.I);_.t=LQ.prototype;_.t.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.t.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.t.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var W,l=(W=this.commerceCartHeaderEntity)==null?void 0:W.isHidden;l!==void 0&&(this.hidden=l)}};
_.t.updateTitle=function(){var W=this.commerceCartHeaderEntity.isDisabled,l,V,f=(V=_.k((l=this.data)==null?void 0:l.item,Q8B))==null?void 0:V.headingRenderer;f&&(l=ap(f,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+l+".0.cardItemTextRenderer.textColor",W?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.t.updateSummaryText=function(){var W=this.commerceCartHeaderEntity;if(this.compact){var l,V,f=(V=_.k((l=this.data)==null?void 0:l.item,Q8B))==null?void 0:V.headingRenderer;f&&(l=ap(f,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+l+".1.cardItemTextRenderer.text",W.shortHeaderSummaryText?zb(W.shortHeaderSummaryText):W.headerSummaryText?zb(W.headerSummaryText):""))}else{var r;if(l=(r=_.k((f=this.data)==null?void 0:f.item,Q8B))==null?void 0:r.additionalInfoRenderer)l=ap(l,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+l+".text",W.headerSummaryText?zb(W.headerSummaryText):"")}};
_.t.updateCheckoutButton=function(){var W=this.commerceCartHeaderEntity,l,V,f=(V=_.k((l=this.data)==null?void 0:l.item,Q8B))==null?void 0:V.additionalInfoRenderer;l=ap(f,"buttonRenderer");var r;V=(r=this.commerceCartHeaderEntity)==null?void 0:r.isButtonDisabled;var R;r=(R=this.commerceCartHeaderEntity)==null?void 0:R.isButtonHidden;V!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+l+".buttonRenderer.isDisabled",V);r!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
r);var y;W=(y=W.checkoutButtonCommand)==null?void 0:y.innertubeCommand;W!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+l+".buttonRenderer.command",W)};
LQ.prototype.entityChanged=LQ.prototype.entityChanged;_.a([_.F(_.dx),_.z("design:type",Object)],LQ.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],LQ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],LQ.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],LQ.prototype,"compact",void 0);_.a([_.b({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(W,l){return _.mL(W.entities,"commerceCartHeaderEntity",l)}}),
_.z("design:type",Object)],LQ.prototype,"commerceCartHeaderEntity",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],LQ.prototype,"hidden",void 0);_.a([_.TS("commerceCartHeaderEntity","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LQ.prototype,"entityChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],LQ);
_.Z(LQ,"ytd-commerce-cart-header-renderer",function(){if(rNB!==void 0)return rNB;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return rNB=W},{mode:1});var duB;var JNB=_.Zh(function(W,l){var V;return(V=W.onChangeCallback)==null?void 0:V.call(W,l)},1E3),Du9=_.Q(function(W){var l=W.data;
var V=W.iconMinus;W=W.iconPlus;var f=function(){return!!l().disabled},r=_.L(_.J4(0,void 0,"mKh0af")),R=r.next().value,y=r.next().value;
r=_.ip(function(){if(R()===1){var J,D;(D=(J=l()).onRemoveCommand)==null||D.call(J)}J=R()>l().maxValue?l().maxValue:R()-1;y(J);JNB(l(),J);return!1});
var P=_.ip(function(){if(R()===l().maxValue)return!1;var J=R()+1;y(J);JNB(l(),J);return!1});
_.iz(function(){y(l().value)});
var n={},B={},d={};return _.C("quantity-incrementer-shape",null,_.C("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.C("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return R()===(l().onRemoveCommand?0:1)||f()},
"aria-label":function(){return R()!==1?l().minusLabel:l().minimumReachedLabel},
"on:click":r},_.C(_.ZS,{model:{circular:!0}}),_.C("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.C("div",{class:_.If("ytSpecQuantityIncrementerShapeIcon",(n.ytSpecQuantityIncrementerShapeIconDisabled=function(){return f()||R()===(l().onRemoveCommand?0:1)},n))},V()))),_.C("div",{class:_.If("ytSpecQuantityIncrementerShapeText",(B.ytSpecQuantityIncrementerShapeTextInvalid=function(){return R()>l().maxValue},B.ytSpecQuantityIncrementerShapeTextDisabled=f,B))},R),_.C("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return R()>=l().maxValue||f()},
"aria-label":function(){return R()!==l().maxValue?l().plusLabel:l().maximumReachedLabel},
"on:click":P},_.C(_.ZS,{model:{circular:!0}}),_.C("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.C("div",{class:_.If("ytSpecQuantityIncrementerShapeIcon",(d.ytSpecQuantityIncrementerShapeIconDisabled=function(){return R()>=l().maxValue||f()},d))},W())))))},"se");_.HI(_.Q(function(W){function l(){V().onRemoveCommand&&_.sZ(V().onRemoveCommand)}
var V=W.data;var f=_.wH(cc8,function(){return V().quantityIncrementerEntityKey});
return _.C("yt-quantity-incrementer-view-model",null,_.C(Du9,{data:function(){var r=V(),R;var y=f()?!((R=f())==null||!R.disabled):!1;var P;R=f()?(P=f())==null?void 0:P.quantity:V().quantity;return BBq(r,y,l,R)},
iconMinus:function(){return _.C(_.wN,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.C(_.wN,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"te"),"yt-quantity-incrementer-view-model",{props:{data:_.pA}});var yp=function(){var W=_.I.apply(this,arguments)||this;W.compact=!1;W.hasQuantityIncrementer=!1;return W};
_.v(yp,_.I);yp.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"}}}};
yp.prototype.computeHasQuantityIncrementer=function(){var W;return!!_.k((W=this.data)==null?void 0:W.picker,aPZ)};
yp.prototype.onLabelClick=function(){var W;(W=this.dropdownEl)==null||W.open()};
_.a([_.Aa("ytd-dropdown-renderer"),_.z("design:type",Object)],yp.prototype,"dropdownEl",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],yp.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],yp.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],yp.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],yp.prototype,"quantityColor",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yp.prototype,"compact",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.z("design:type",Object)],yp.prototype,"hasQuantityIncrementer",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],yp);
_.Z(yp,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(duB!==void 0)return duB;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return duB=W},{mode:1});var Uu9;var uaL;var gb=function(){return _.I.apply(this,arguments)||this};
_.v(gb,_.I);gb.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
gb.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
gb.prototype.updateTitle=function(){var W=this.disabledCartItemEntity;W.disableActionName&&this.set("data.title",zb(W.disableActionName))};
gb.prototype.updateButton=function(){var W,l=(W=this.disabledCartItemEntity.undoCommand)==null?void 0:W.innertubeCommand;l!==void 0&&(this.set("data.actionButton.buttonRenderer.command",l),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
gb.prototype.entityChanged=gb.prototype.entityChanged;_.a([_.F(_.dx),_.z("design:type",Object)],gb.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],gb.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(W,l){return _.mL(W.entities,"disabledCartItemEntity",l)}}),
_.z("design:type",Object)],gb.prototype,"disabledCartItemEntity",void 0);_.a([_.b(),_.z("design:type",Object)],gb.prototype,"data",void 0);_.a([_.TS("disabledCartItemEntity","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gb.prototype,"entityChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],gb);
_.Z(gb,"ytd-disabled-cart-item-renderer",function(){if(uaL!==void 0)return uaL;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return uaL=W},{mode:1});_.e1("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var PC=function(){var W=_.I.apply(this,arguments)||this;W.compact=!1;W.hidden=!1;W.errorHidden=!1;W.noOnTap=!1;return W};
_.v(PC,_.I);_.t=PC.prototype;
_.t.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"}}}};
_.t.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.t.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var W=this.firstButtonElement;W.alignByText=!0;W.iconAlignByText=!0}};
_.t.computeNoOnTap=function(W){return!W};
_.t.updateQuantityColor=function(){if(this.pickerElement){var W,l=(W=this.commerceCartItemEntity)==null?void 0:W.quantityColor;this.pickerElement.quantityColor=l}};
_.t.updateTotalPriceColor=function(){var W,l=(W=this.commerceCartItemEntity)==null?void 0:W.totalPriceColor;if(l){var V;W=_.k((V=this.data)==null?void 0:V.quantityPicker,ZfM);if(V=_.k(W==null?void 0:W.price,M6L))V.textColor=l}};
_.t.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var W,l=(W=this.commerceCartItemEntity)==null?void 0:W.isHidden;l!==void 0&&(this.hidden=l)}};
_.t.updateHideErrorMessage=function(){var W,l=(W=this.commerceCartItemEntity)==null?void 0:W.hideErrorMessage;l!==void 0&&(this.errorHidden=l)};
_.t.updateQuantity=function(){var W=this,l,V=(l=this.commerceCartItemEntity)==null?void 0:l.quantity,f;l=(f=this.commerceCartItemEntity)==null?void 0:f.totalPrice;if(V){this.updateTotalPriceColor();this.updateQuantityColor();var r;f=_.k((r=this.data)==null?void 0:r.quantityPicker,ZfM);if(r=_.k(f==null?void 0:f.price,M6L))r.text=l?{simpleText:l.content}:void 0;if(l=_.k(f==null?void 0:f.picker,aPZ))l.quantity=V;var R;if(r=(R=_.k(f==null?void 0:f.picker,OEL))==null?void 0:R.entries){R=!1;l=void 0;r=
_.L(r);for(f=r.next();!f.done;f=r.next())f=f.value,f.dropdownItemRenderer&&(l||(l=f.dropdownItemRenderer),f.dropdownItemRenderer.isSelected=!1,V===f.dropdownItemRenderer.int32Value&&(R=!0,f.dropdownItemRenderer.isSelected=!0));!R&&l&&(l.isSelected=!0)}_.V9(this,function(){var y;W.set("data.quantityPicker",_.MC.unsafeClone((y=W.data)==null?void 0:y.quantityPicker))})}};
PC.prototype.onYtRendererstamperFinished=PC.prototype.onYtRendererstamperFinished;PC.prototype.entityChanged=PC.prototype.entityChanged;_.a([_.b(),_.z("design:type",Object)],PC.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],PC.prototype,"compact",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],PC.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],PC.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],PC.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],PC.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(W,l){return _.mL(W.entities,"commerceCartItemEntity",l)}}),
_.z("design:type",Object)],PC.prototype,"commerceCartItemEntity",void 0);_.a([_.b(),_.z("design:type",Object)],PC.prototype,"quantityPicker",void 0);_.a([_.b(),_.z("design:type",Object)],PC.prototype,"compactQuantityPicker",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],PC.prototype,"hidden",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],PC.prototype,"errorHidden",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.z("design:type",Object)],PC.prototype,"noOnTap",void 0);_.a([_.Aa("ytd-commerce-cart-item-quantity-picker-renderer"),_.z("design:type",Object)],PC.prototype,"pickerElement",void 0);_.a([_.Aa("yt-button-renderer"),_.z("design:type",Element)],PC.prototype,"firstButtonElement",void 0);
_.a([_.TS("commerceCartItemEntity","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],PC.prototype,"entityChanged",null);_.a([_.XI("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],PC.prototype,"onYtRendererstamperFinished",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],PC);
_.Z(PC,"ytd-commerce-cart-item-renderer",function(){if(Uu9!==void 0)return Uu9;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Uu9=W},{mode:_.bD("kevlar_poly_si_batch_j028")?1:2});var kNv;var ve1;var nQ=function(){return _.I.apply(this,arguments)||this};
_.v(nQ,_.I);nQ.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}}}}}};
nQ.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
nQ.prototype.updateCheckoutLineItems=function(){var W,l=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.checkoutLineItems;l&&(W=l.map(function(V){a:{var f=V.price,r=V.description;switch(V.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":V={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:zb(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:zb(f),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}};break a;default:V={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:zb(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:zb(f),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}}}}return V}),this.set("data.summaryLineItems",W))};
nQ.prototype.updateIsHidden=function(){var W,l=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.isHidden;l!==void 0&&(this.hostElement.hidden=l)};
nQ.prototype.entityChanged=nQ.prototype.entityChanged;_.a([_.F(_.dx),_.z("design:type",Object)],nQ.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],nQ.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],nQ.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],nQ.prototype,"data",void 0);_.a([_.b({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:IZ6}),_.z("design:type",Object)],nQ.prototype,"commerceCartCheckoutButtonEntity",void 0);_.a([_.TS("commerceCartCheckoutButtonEntity","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nQ.prototype,"entityChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],nQ);
_.Z(nQ,"ytd-commerce-cart-summary-renderer",function(){if(ve1!==void 0)return ve1;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return ve1=W},{mode:1});var HKZ={};HKZ.InjectBehavior=[WWS.InjectBehavior];var Ksa;var Fs9;var CQ=function(){return _.I.apply(this,arguments)||this};
_.v(CQ,_.I);
CQ.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:_.qe("menuRenderer")}}};
CQ.prototype.onMenuTap=function(W){W.stopPropagation()};
_.rc.Object.defineProperties(CQ.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 W,l;return!(((W=this.data)==null||!W.sectionHeading)&&((l=this.data)==null?void 0:l.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var W,l;return!(((W=this.data)==null||!W.image)&&((l=this.data)==null?void 0:l.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var W,l;return!(((W=this.data)==null||!W.menu)&&((l=this.data)==null?void 0:l.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],CQ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],CQ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.RSX.YtTappableItemBehavior),_.z("design:type",Object)],CQ.prototype,"ytTappableItemBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],CQ.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("data.accessibilityData"),_.z("design:type",String),_.z("design:paramtypes",[])],CQ.prototype,"ariaLabel",null);_.a([_.G("data.sectionHeading","data.layout"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],CQ.prototype,"sectionHeadingVisible",null);_.a([_.G("data.image","data.layout"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],CQ.prototype,"imageVisible",null);
_.a([_.G("data.menu","data.layout"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],CQ.prototype,"menuVisible",null);_.a([_.Vq({is:"yt-activity-item-renderer",disableElementRegistration:!0})],CQ);
_.Z(CQ,"yt-activity-item-renderer",function(){if(Fs9===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;Ksa===void 0&&(Ksa=document.createElement("template"));var f=Ksa;V.call(l,f.content.cloneNode(!0),W.content.firstChild);Fs9=W}W=Fs9;return W},{mode:2});var GN9;var bKk;var pik;var oee;var cC=function(){return _.I.apply(this,arguments)||this};
_.v(cC,_.I);
cC.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"}}}}};
cC.prototype.backgroundColorChanged_=function(){var W,l=(W=this.data)==null?void 0:W.backgroundColor;this.hostElement.style.backgroundColor=hB[l||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
cC.prototype.backgroundColorChanged_=cC.prototype.backgroundColorChanged_;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],cC.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],cC.prototype,"data",void 0);
_.a([_.TS("data.backgroundColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cC.prototype,"backgroundColorChanged_",null);_.a([_.Vq({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],cC);
_.Z(cC,"yt-offer-item-upsell-renderer",function(){if(oee===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;pik===void 0&&(pik=document.createElement("template"));var f=pik;V.call(l,f.content.cloneNode(!0),W.content.firstChild);oee=W}W=oee;return W},{mode:2});_.e1("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var BC=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};W.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return W};
_.v(BC,_.I);_.t=BC.prototype;
_.t.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:_.qe("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.t.computeContainerStyle_=function(W){return W};
_.t.computeContainerIsHidden_=function(W){return W&&!!W.isHidden};
_.t.computeShowSpinner_=function(W,l){return W&&l==="in-progress"};
_.t.computeShowMoreContentsButton_=function(W,l,V,f,r){return!(!(f&&f.length||r&&r.length&&V)||!W||l)};
_.t.onToggleButton_=function(W){var l=this;W.stopPropagation();this.isExpanded_=W.detail&&W.detail.toggled;var V,f;this.isExpanded_&&!this.data.continuationSection.length&&((V=this.data)==null?0:(f=V.continuation)==null?0:f.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.FN(this.hostElement,"yt-load-next-continuation",function(r){return l.getContinuationUrl_(l.data.continuation.onClickContinuationData,r)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.pN(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.t.onShowMoreContentsButtonClicked_=function(W){var l=this;W.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.FN(this.hostElement,"yt-load-next-continuation",function(V){return l.getContinuationUrl_(l.data.continuations[0].nextContinuationData,V)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.pN(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.t.getContinuationUrl_=function(W,l){var V=W.continuation;W=W.clickTrackingParams;var f=_.Wh();W&&f&&_.C0(f,_.zG(W));return _.$2(l,{continuation:V})};
_.t.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var W=_.GS(this.hostElement).querySelector("#continuation-section");W&&(W=W.querySelectorAll("ytmusic-item-section-renderer"))&&W.forEach(function(l){return l.classList.add("memberships-and-purchases")})};
_.t.dataChanged_=function(){var W;this.isExpanded_=!((W=this.data)==null||!W.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.t.updateCardOnClickCommand_=function(W){W=_.k(W,j8c);var l,V;this.data&&((l=this.data)==null?0:l.targetId)&&W&&W.targetId===((V=this.data)==null?void 0:V.targetId)&&W.onClickCommand&&(this.data.onClickCommand=W.onClickCommand,this.isOnClickCommand_=!0)};
_.t.backgroundColorChanged_=function(){var W,l=(W=this.data)==null?void 0:W.backgroundColor;this.hostElement.style.backgroundColor=hB[l||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
BC.prototype.backgroundColorChanged_=BC.prototype.backgroundColorChanged_;BC.prototype.dataChanged_=BC.prototype.dataChanged_;BC.prototype.nextContinuationDataUpdated_=BC.prototype.nextContinuationDataUpdated_;BC.prototype.onToggleButton_=BC.prototype.onToggleButton_;_.a([_.F(_.vH),_.z("design:type",Object)],BC.prototype,"ytContinuationHandlerBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],BC.prototype,"ytActionHandlerBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],BC.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.HH.YtNextContinuationBehavior),_.z("design:type",Object)],BC.prototype,"ytNextContinuationBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],BC.prototype,"ytRendererBehavior",void 0);_.a([_.F(HKZ.InjectBehavior),_.z("design:type",Object)],BC.prototype,"injectBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],BC.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],BC.prototype,"compact",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],BC.prototype,"isExpanded_",void 0);_.a([_.b({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.z("design:type",String)],BC.prototype,"containerStyle_",void 0);_.a([_.b({value:"not-started"}),_.z("design:type",String)],BC.prototype,"continuationStatus_",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.z("design:type",Boolean)],BC.prototype,"showSpinner_",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],BC.prototype,"isOnClickCommand_",void 0);_.a([_.b({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.z("design:type",Boolean)],BC.prototype,"showMoreContentsButton_",void 0);
_.a([_.b({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(W,l){return!l||W.entities?null:_.mL(W.entities,"cardItemContainerEntity",l)}}),
_.z("design:type",Object)],BC.prototype,"cardItemContainerEntity_",void 0);_.a([_.XI("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],BC.prototype,"onToggleButton_",null);_.a([_.XI("yt-next-continuation-data-updated"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BC.prototype,"nextContinuationDataUpdated_",null);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BC.prototype,"dataChanged_",null);_.a([_.TS("data.backgroundColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BC.prototype,"backgroundColorChanged_",null);_.a([_.Vq({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],BC);
_.Z(BC,"yt-card-item-container-renderer",function(){if(bKk===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;GN9===void 0&&(GN9=document.createElement("template"));var f=GN9;V.call(l,f.content.cloneNode(!0),W.content.firstChild);bKk=W}W=bKk;return W},{mode:2});var db=function(){return _.I.apply(this,arguments)||this};
_.v(db,_.I);db.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"}}}};
db.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
db.prototype.computeLoadingHidden=function(){var W;return!((W=this.commerceCartPageStateEntity)==null?0:W.cartActionInProgress)};
db.prototype.updateNotification=function(){var W,l=(W=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:W.summaryText;l&&this.set("data.cartNotification",zb(l))};
db.prototype.notificationEntityChanged=db.prototype.notificationEntityChanged;_.a([_.F(_.dx),_.z("design:type",Object)],db.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],db.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],db.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],db.prototype,"data",void 0);_.a([_.b({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(W,l){return _.mL(W.entities,"commerceCartExpandableNotificationEntity",l)}}),
_.z("design:type",Object)],db.prototype,"commerceCartExpandableNotificationEntity",void 0);_.a([_.b({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(W,l){return _.mL(W.entities,"commerceCartPageStateEntity",l)}}),
_.z("design:type",Object)],db.prototype,"commerceCartPageStateEntity",void 0);_.a([_.Aa("#spinner"),_.z("design:type",HTMLElement)],db.prototype,"spinner",void 0);_.a([_.TS("commerceCartExpandableNotificationEntity","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],db.prototype,"notificationEntityChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],db);
_.Z(db,"ytd-commerce-cart-renderer",function(){if(kNv!==void 0)return kNv;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return kNv=W},{mode:1});var jxk;var J3=function(){var W=_.I.apply(this,arguments)||this;W.bigImage=!1;return W};
_.v(J3,_.I);_.rc.Object.defineProperties(J3.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.placeholderImageUrl}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],J3.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],J3.prototype,"bigImage",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],J3.prototype,"placeholderImageUrl",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],J3);
_.Z(J3,"ytd-empty-product-shelf-renderer",function(){if(jxk!==void 0)return jxk;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return jxk=W},{mode:1});var Ig$;var Df=function(){var W=_.I.apply(this,arguments)||this;W.itemStyle="link-item";W.watchMetadataRefresh=!1;W.skinnyMode=!1;W.metaPanel=!1;W.inStructuredDescription=!1;W.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};W.updateOnResizeDebouncer=null;return W};
_.v(Df,_.I);_.t=Df.prototype;_.t.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.t.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"}}}}};
_.t.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.t.attachVEs=function(W){W.trackingParams&&_.Qq().graftServerVe(W.trackingParams)};
_.t.handleUpdateMerchShelfAction=function(W){var l=this,V=_.k(W.updateMerchandiseShelfAction.merchandiseShelf,_.L9B);V&&(V.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){l.attachVEs(V);l.data=V},Number(V.renderDelayMs))):(this.attachVEs(V),this.data=V))};
_.t.updateOnResize=function(){if(this.JSC$16857_scrollContainer!==void 0&&this.JSC$16857_scrollContainer.clientWidth!==0&&this.items!==void 0){var W=this.JSC$16857_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-W));this.ytdHorizontalListBehavior.reposition_();var l;switch((l=this.data)==null?void 0:l.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var V,
f;((V=this.data)==null?void 0:(f=V.items)==null?void 0:f.length)===1?this.itemStyle="cta-item":this.itemStyle=W>=740?"large-item":"small-item"}}};
_.t.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.I3(this.updateOnResizeDebouncer,_.Us.after(100),this.updateOnResize)};
Df.prototype.debouncedUpdateOnResize=Df.prototype.debouncedUpdateOnResize;Df.prototype.dataChanged=Df.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Df.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Df.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.QG.YtdHorizontalListBehavior),_.z("design:type",Object)],Df.prototype,"ytdHorizontalListBehavior",void 0);
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Df.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Df.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Df.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Df.prototype,"itemStyle",void 0);_.a([_.b({value:6}),_.z("design:type",Number)],Df.prototype,"initialCount",void 0);
_.a([_.b({value:"data.items"}),_.z("design:type",String)],Df.prototype,"itemsPath",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Df.prototype,"watchMetadataRefresh",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Df.prototype,"skinnyMode",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Df.prototype,"metaPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Df.prototype,"inStructuredDescription",void 0);
_.a([_.Aa("#items"),_.z("design:type",HTMLDivElement)],Df.prototype,"items",void 0);_.a([_.Aa("#scroll-container"),_.z("design:type",HTMLDivElement)],Df.prototype,"JSC$16857_scrollContainer",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Df.prototype,"dataChanged",null);_.a([_.XI("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Df.prototype,"debouncedUpdateOnResize",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],Df);
_.Z(Df,"ytd-merch-shelf-renderer",function(){if(Ig$!==void 0)return Ig$;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Ig$=W},{mode:2});var iKL;var Ua=function(){var W=_.I.apply(this,arguments)||this;W.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 W};
_.v(Ua,_.I);_.t=Ua.prototype;
_.t.addBackstagePostAction=function(W){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(W=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",W))&&(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:W}):this.set("data.contents",[{backstagePostThreadRenderer:W}]))};
_.t.addBackstageCommentAction=function(W){var l=this.get("addBackstageCommentAction.parentId",W);W=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",W);if(l&&W){l=this.postIdToIndices(l);for(var V=0;V<l.length;V++){var f=l[V];if(f<0)break;f="data.contents."+f+".backstagePostThreadRenderer.comments";this.get(f)&&(this.get(f+".backstageCommentsRenderer.contents")&&this.push(f+".backstageCommentsRenderer.contents",{commentThreadRenderer:W}),this.get(f+".backstageCommentsRenderer.teaserContents")?
this.push(f+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:W}):this.set(f+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:W}]))}}};
_.t.addBackstageReplyAction=function(W){var l=this.get("addBackstageReplyAction.parentId",W);W=this.get("addBackstageReplyAction.renderer.commentRenderer",W);l&&W&&this.setCreatorReply(l,W)};
_.t.banAuthorAction=function(W){var l=this.get("banAuthorAction.commentId",W);l&&(W=this.get("banAuthorAction.parentCommentId",W)||this.getParentPostId(l),this.removeFromStream(l,W))};
_.t.hideReportedCommentAction=function(W){var l=this.get("hideReportedCommentAction.commentId",W);l&&((W=this.get("hideReportedCommentAction.parentCommentId",W))||(W=this.getParentPostId(l)),this.removeFromStream(l,W))};
_.t.replaceBackstageCommentAction=function(W){var l=this.get("replaceBackstageCommentAction.commentId",W),V=this.get("replaceBackstageCommentAction.parentId",W);W=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",W);if(l&&V&&W){V=this.postIdToIndices(V);for(var f=0;f<V.length;f++){var r=V[f];if(r<0)break;var R=this.commentIdToIndex(l,r,!1);if(R>=0){var y=this.get("data.contents."+r+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+R+".commentThreadRenderer.replies.commentRepliesRenderer");
y&&(W.replies={commentRepliesRenderer:y});this.splice("data.contents."+r+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",R,1,{commentThreadRenderer:W})}R=this.commentIdToIndex(l,r,!0);if(R>=0){if(y=this.get("data.contents."+r+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(R+".commentThreadRenderer.replies.commentRepliesRenderer")))W.replies={commentRepliesRenderer:y};this.splice("data.contents."+r+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
R,1,{commentThreadRenderer:W})}}}};
_.t.replaceBackstagePostAction=function(W){var l=this.get("replaceBackstagePostAction.itemId",W);if(l){l=this.postIdToIndices(l);for(var V=0;V<l.length;V++){var f=l[V];if(f<0)break;var r=this.getPostRendererType(f),R=this.get("replaceBackstagePostAction.renderer."+r,W);if(!R&&r!=="sharedPostRenderer")break;var y=!1;R||(y=!0,R=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",W));if(!R)break;var P={};y?(_.SM(P,jjB,R),this.set("data.contents."+f+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
P)):(_.SM(P,new _.uC(r),R),this.set("data.contents."+f+".backstagePostThreadRenderer.post",P))}}};
_.t.replaceBackstageReplyAction=function(W){var l=this.get("replaceBackstageReplyAction.replyId",W),V=this.get("replaceBackstageReplyAction.parentId",W);W=this.get("replaceBackstageReplyAction.renderer.commentRenderer",W);l&&W&&V&&this.setCreatorReply(V,W)};
_.t.removeCommentAction=function(W){var l=this.get("removeCommentAction.commentId",W);if(l){var V=this.get("removeCommentAction.parentCommentId",W);V&&this.get("removeCommentAction.isCreatorReply",W)?this.setCreatorReply(V,void 0):(V||(V=this.getParentPostId(l)),this.removeFromStream(l,V))}};
_.t.setCreatorReply=function(W,l){var V=this.getParentPostId(W);if(V){V=this.postIdToIndices(V);for(var f=0;f<V.length;f++){var r=V[f];if(r<0)break;var R=this.commentIdToIndex(W,r,!1);if(R>=0){var y="data.contents."+r+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+R;R=y+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";y+=".commentThreadRenderer.replies";l==void 0?(this.set(y,{}),this.set(R,!1)):(this.set(y,{commentRepliesRenderer:{teaserContents:[{commentRenderer:l}]}}),
this.set(y+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(R,!0))}R=this.commentIdToIndex(W,r,!0);R>=0&&(R="data.contents."+r+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+R,r=R+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",R+=".commentThreadRenderer.replies",l==void 0?(this.set(R,{}),this.set(r,!1)):(this.set(R,{commentRepliesRenderer:{teaserContents:[{commentRenderer:l}]}}),this.set(r,!0)))}}};
_.t.removeFromStream=function(W,l){if(l){l=this.postIdToIndices(l);for(var V=0;V<l.length;V++){var f=l[V];if(f<0)break;var r=this.commentIdToIndex(W,f,!1);r>=0&&this.splice("data.contents."+f+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",r,1);r=this.commentIdToIndex(W,f,!0);r>=0&&this.splice("data.contents."+f+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",r,1);f="data.contents."+f+".backstagePostThreadRenderer.post.backstagePostRenderer";
r=f+".backstageAttachment.pollRenderer.votedCommentId";this.get(r)===W&&(this.set(r,null),this.set(f+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(l=this.postIdToIndices(W).reverse(),V=0;V<l.length;V++){f=l[V];if(f<0)break;r=this.getPostRendererType(f);var R=this.get("backstagePostThreadRenderer.post."+r,this.data.contents[f]);R.postId===W?this.splice("data.contents",f,1):r==="sharedPostRenderer"&&this.set("data.contents."+f+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);R.scheduledPublishTimeSec&&_.Gt(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.t.postIdToIndices=function(W){for(var l=[],V=0;V<this.data.contents.length;V++){var f=this.getPostRendererType(V);this.get("backstagePostThreadRenderer.post."+f+".postId",this.data.contents[V])===W&&l.push(V);if(f==="sharedPostRenderer"){var r=this.get("backstagePostThreadRenderer.post."+f+".originalPost.backstagePostRenderer.postId",this.data.contents[V]);f=this.get("backstagePostThreadRenderer.post."+f+".originalPost.postRenderer.postId",this.data.contents[V]);r!==W&&f!==W||l.push(V)}}return l};
_.t.commentIdToIndex=function(W,l,V){if(l<0)return-1;var f,r,R,y,P=_.k((f=this.data)==null?void 0:(r=f.contents)==null?void 0:(R=r[l])==null?void 0:(y=R.backstagePostThreadRenderer)==null?void 0:y.comments,pWI);return(l=V?P==null?void 0:P.teaserContents:P==null?void 0:P.contents)&&l.length?l.findIndex(function(n){return _.k(n,gg$).comment.commentRenderer.commentId===W}):-1};
_.t.getParentPostId=function(W){W=W.split(".");if(W[1])return W[0]};
_.t.getPostRendererType=function(W){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[W])?"sharedPostRenderer":"backstagePostRenderer"};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Ua.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Ua.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Ua.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-backstage-items"})],Ua);
_.Z(Ua,"ytd-backstage-items",function(){if(iKL!==void 0)return iKL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return iKL=
W},{mode:1});var muX;var XiZ={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},uY=function(){var W=_.I.apply(this,arguments)||this;W.disablePrescanVisibility=!0;W.canScheduleJobs=!0;W.engagementPanel=!1;W.hidePanelButton=!1;W.isWatchGrid=!1;W.hasShownSubscribersOnlyDisclaimer=!1;W.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 W};
_.v(uY,_.I);_.t=uY.prototype;_.t.created=function(){this.initCommentsCsi_();_.U("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_")};
_.t.contentsChanged_=function(){var W;(W=this.data)!=null&&W.contents&&this.tickForCommentsTimer_("cml")};
_.t.headerChanged_=function(){var W;(W=this.data)!=null&&W.header&&this.tickForCommentsTimer_("cmhl")};
_.t.initCommentsCsi_=function(){_.$u("wn_comments");var W=_.Wh();W&&_.Sy({clientScreenNonce:W},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.t.createCommentAction_=function(W){W=_.MC.unsafeClone(W);var l,V;if(W=(l=_.k(W,lRX))==null?void 0:(V=l.contents)==null?void 0:V.commentThreadRenderer){var f,r,R,y,P,n;!this.isBackstage&&((f=this.data)==null?0:(r=f.header)==null?0:(R=r.commentsHeaderRenderer)==null?0:(y=R.createRenderer)==null?0:(P=y.commentSimpleboxRenderer)==null?0:(n=P.zeroStep)==null?0:n.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var B,
d,J;this.isBackstage&&_.k((B=this.data)==null?void 0:(d=B.header)==null?void 0:(J=d.commentsHeaderRenderer)==null?void 0:J.zeroStateMessage,InX)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(W)}};
_.t.doReplyInsert_=function(W,l,V,f){f?this.splice(W,f,0,l):this.push(W,l)};
_.t.getRepliesPath_=function(W){return"data.contents."+W+".commentThreadRenderer.replies"};
_.t.getRepliesContentsPath_=function(W,l){W=this.getRepliesPath_(W);return l?W+".commentRepliesRenderer.teaserContents":W+".commentRepliesRenderer.contents"};
_.t.showSubscribersOnlyDisclaimer_=function(W){(W=W.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(W))&&(_.Gt(this.hostElement,"yt-open-popup-action",[W,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.t.createCommentReplyAction_=function(W){W=_.MC.unsafeClone(W);var l=_.k(W,VhL);if(W=l==null?void 0:l.contents){var V=this.commentIdToIndex_(l==null?void 0:l.parentCommentId);if(!(V<0)){var f=this.getRepliesPath_(V);if(this.get(f)){l=l.replyToCommentId;f=this.getRepliesContentsPath_(V,!1);if(this.get(f)){var r=this.get(f).length,R=f+"."+(r-1)+".continuationItemRenderer";this.get(R+".button")?(R=this.replyIdToIndex_(l,V,!1),this.doReplyInsert_(f,W,R,r-1)):this.get(R)||(r=this.replyIdToIndex_(l,V,
!1),this.doReplyInsert_(f,W,r,null))}f=this.getRepliesContentsPath_(V,!0);this.get(f)?(V=this.replyIdToIndex_(l,V,!0),(!l||V>=0)&&this.doReplyInsert_(f,W,V,null)):this.set(f,[W])}else this.set(f,{commentRepliesRenderer:{teaserContents:[W]}})}}};
_.t.hideReportedCommentAction_=function(W){var l=_.k(W,vgM);if(W=l==null?void 0:l.commentId)(l=this.get("parentCommentId",l))||(l=this.getParentCommentId_(W)),this.remove_(W,l)};
_.t.getParentCommentId_=function(W){W=W.split(".");if(W[1])return W[0]};
_.t.removeCommentAction_=function(W){var l=_.k(W,src);if(W=l==null?void 0:l.commentId)l=(l==null?void 0:l.parentCommentId)||this.getParentCommentId_(W),this.remove_(W,l)};
_.t.pinCommentAction_=function(W){W=_.MC.unsafeClone(W);var l=_.k(W,thI);l!=null&&l.commentId&&(W=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",W))&&(this.remove_(l.commentId),this.insert_(W,!0))};
_.t.unpinCommentAction_=function(W){W=_.MC.unsafeClone(W);W=_.k(W,Lx1);if(W!=null&&W.commentId){var l,V,f=(l=W.actionResult)==null?void 0:(V=l.update)==null?void 0:V.commentThreadRenderer;f&&(this.remove_(W.commentId),this.insert_(f))}};
_.t.banAuthorAction_=function(W){var l=_.k(W,Wx9);l!=null&&l.commentId&&(W=l.commentId,l=l.parentCommentId||this.getParentCommentId_(W),this.remove_(W,l))};
_.t.commentIdToIndex_=function(W){var l;return W&&(l=this.data)!=null&&l.contents?this.data.contents.findIndex(function(V){V=V.commentThreadRenderer;var f;return W===((V==null?void 0:V.commentViewModel)&&((f=_.k(V.commentViewModel,dXI))==null?void 0:f.commentId))}):-1};
_.t.insert_=function(W,l){l=l===void 0?!1:l;var V,f;if((V=this.data)==null?0:(f=V.contents)==null?0:f.some(function(R){return!!R.commentThreadRenderer}))for(V=0,f=this.data.contents.length;V<f;V++){var r=this.data.contents[V].commentThreadRenderer;
if(XiZ[W.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=XiZ[r.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){l&&XiZ[W.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===XiZ[r.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",V,1,{commentThreadRenderer:W}):this.splice("data.contents",V,0,{commentThreadRenderer:W});break}}else this.set("data.contents",[{commentThreadRenderer:W}])};
_.t.doReplyRemove_=function(W,l,V){W=this.replyIdToIndex_(W,l,V);W<0||(l=this.getRepliesContentsPath_(l,V),this.splice(l,W,1))};
_.t.remove_=function(W,l){l=this.commentIdToIndex_(l);l<0?(l=this.commentIdToIndex_(W),l<0||this.splice("data.contents",l,1)):_.U("web_delhi_comment_threads")||(this.doReplyRemove_(W,l,!1),this.doReplyRemove_(W,l,!0))};
_.t.replyIdToIndex_=function(W,l,V){if(l<0)return-1;l=this.getRepliesContentsPath_(l,V);l=this.get(l);if(!l||!l.length)return-1;V=0;for(var f=l.length;V<f;V++){var r=void 0,R=void 0;if(((r=l[V])==null?void 0:(R=r.commentViewModel)==null?void 0:R.commentId)===W)return V}return-1};
_.t.tickForCommentsTimer_=function(W){_.l_(W,void 0,"wn_comments")};
_.t.reloadComments_=function(W){W=_.k(W,cdB);_.k(W==null?void 0:W.command,_.VH)&&_.pN(this.hostElement,[W==null?void 0:W.command])};
_.rc.Object.defineProperties(uY.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return!!((W=this.data)==null?0:(l=W.header)==null?0:(V=l.commentsHeaderRenderer)==null?0:V.isBackstageContent)}}});
_.rc.Object.defineProperties(uY,{template:{configurable:!0,enumerable:!0,get:function(){if(muX===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);muX=W}W=muX;return W}}});
uY.prototype.showSubscribersOnlyDisclaimer_=uY.prototype.showSubscribersOnlyDisclaimer_;uY.prototype.headerChanged_=uY.prototype.headerChanged_;uY.prototype.contentsChanged_=uY.prototype.contentsChanged_;_.a([_.F(_.i5),_.z("design:type",Object)],uY.prototype,"ytdOpenPopupBehavior",void 0);_.a([_.F(_.f8Y.YtHostElementBehavior),_.z("design:type",Object)],uY.prototype,"ytHostElementBehavior",void 0);
_.a([_.F(_.by.YtPlayerListenerBehavior),_.z("design:type",Function)],uY.prototype,"ytPlayerListenerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],uY.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],uY.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],uY.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("data.header.commentsHeaderRenderer.isBackstageContent"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],uY.prototype,"isBackstage",null);_.a([_.b(),_.z("design:type",Object)],uY.prototype,"disablePrescanVisibility",void 0);_.a([_.b(),_.z("design:type",Object)],uY.prototype,"canScheduleJobs",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],uY.prototype,"engagementPanel",void 0);
_.a([_.b(),_.z("design:type",Object)],uY.prototype,"hidePanelButton",void 0);_.a([_.b(),_.z("design:type",Object)],uY.prototype,"isWatchGrid",void 0);_.a([_.b(),_.z("design:type",Object)],uY.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.a([_.TS("data.contents"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uY.prototype,"contentsChanged_",null);
_.a([_.TS("data.header"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uY.prototype,"headerChanged_",null);_.a([_.XI("yt-show-subscribers-only-disclaimer"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],uY.prototype,"showSubscribersOnlyDisclaimer_",null);_.a([_.A({is:"ytd-comments"})],uY);var k4=function(){return _.OD.apply(this,arguments)||this};
_.v(k4,_.OD);_.t=k4.prototype;_.t.bindIf=function(W,l,V){return W?l:V};
_.t.bindIfDefined=function(W,l){return W!==void 0?W:l};
_.t.booleanString=function(W){return(!!W).toString()};
_.t.equals=function(){for(var W=_.xk.apply(0,arguments),l=W[0],V=1;V<W.length;V++)if(l!=W[V])return!1;return!0};
_.t.isGreaterThan=function(W,l){return W>l};
_.t.isLessThan=function(W,l){return W<l};
_.t.logicalAND=function(){for(var W=_.xk.apply(0,arguments),l=!!W[0],V=1;V<W.length;V++)l=l&&!!W[V];return l};
_.t.logicalOR=function(){for(var W=_.xk.apply(0,arguments),l=!!W[0],V=1;V<W.length;V++)l=l||!!W[V];return l};
_.t.toBool=function(W){return!!W};
k4.prototype.toBool=k4.prototype.toBool;k4.prototype.logicalOR=k4.prototype.logicalOR;k4.prototype.logicalAND=k4.prototype.logicalAND;k4.prototype.isLessThan=k4.prototype.isLessThan;k4.prototype.isGreaterThan=k4.prototype.isGreaterThan;k4.prototype.equals=k4.prototype.equals;k4.prototype.booleanString=k4.prototype.booleanString;k4.prototype.bindIfDefined=k4.prototype.bindIfDefined;k4.prototype.bindIf=k4.prototype.bindIf;_.a([_.a1()],k4);_.TrM=[k4.prototype];var wic;var ANX;var vC=function(){return _.I.apply(this,arguments)||this};
_.v(vC,_.I);vC.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
vC.prototype.onBackIconTap_=function(){window.history.back()};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],vC.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],vC.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],vC.prototype,"data",void 0);_.a([_.Vq({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],vC);
_.Z(vC,"yt-header-with-back-renderer",function(){if(ANX===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;wic===void 0&&(wic=document.createElement("template"));var f=wic;V.call(l,f.content.cloneNode(!0),W.content.firstChild);ANX=W}W=ANX;return W},{mode:2});var QxI;var MDv;var HC=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.v(HC,_.I);_.t=HC.prototype;_.t.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.t.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W,this.setUrl())};
_.t.dataChanged=function(){var W=this;if(this.data){var l=this.setUrl();l&&_.Ud({destination:window,iframe:this.iframe,origin:_.DI$(l.toString()),channelName:"yt-iframe",onMessage:function(V){(V=W.getCommunicationCommand(V.data))&&W.ytComponentBehavior.resolveCommand(V)},
onEstablished:function(){}})}};
_.t.setUrl=function(){if(this.data&&this.data.iframeUrl){var W=_.Av(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(W)return _.WG(this.iframe,W),W}};
_.t.getCommunicationCommand=function(W){var l;if((l=this.data)!=null&&l.onCommunicationCommandsMap){l=this.data.onCommunicationCommandsMap.find(function(r){return r.key===W});
if(l==null?0:l.value)return l==null?void 0:l.value;try{var V=kD1(_.$z(W)),f=this.data.onCommunicationCommandsMap.find(function(r){return r.key===(V==null?void 0:V.getMethodName())});
if(f==null?0:f.value)return f==null?void 0:f.value}catch(r){}}};
HC.prototype.dataChanged=HC.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],HC.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],HC.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],HC.prototype,"actionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],HC.prototype,"data",void 0);
_.a([_.b({value:!1}),_.z("design:type",Boolean)],HC.prototype,"isDarkTheme",void 0);_.a([_.Aa("#iframe"),_.z("design:type",HTMLIFrameElement)],HC.prototype,"iframe",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HC.prototype,"dataChanged",null);_.a([_.Vq({is:"yt-iframe-renderer",disableElementRegistration:!0})],HC);
_.Z(HC,"yt-iframe-renderer",function(){if(MDv===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;QxI===void 0&&(QxI=document.createElement("template"));var f=QxI;V.call(l,f.content.cloneNode(!0),W.content.firstChild);MDv=W}W=MDv;return W},{mode:2});_.KQ=function(W){_.iI.call(this);this.callback=W;this.bezier=new y2a(0,0,.4,0,.2,1,1,1);this.delay=new _.sC(this.next,window,this);this.JSC$16896_animating=!1;_.vt(this,this.delay)};
_.v(_.KQ,_.iI);_.KQ.prototype.isAnimating=function(){return this.JSC$16896_animating};
_.KQ.prototype.start=function(W,l,V){this.config={from:W,to:l,duration:V,startTime:(0,_.tv)()};this.JSC$16896_animating=!0;this.next()};
_.KQ.prototype.stop=function(){this.delay.stop();this.JSC$16896_animating=!1;this.config=void 0};
_.KQ.prototype.next=function(){if(this.config){var W=this.config,l=W.from,V=W.to,f=W.duration;W=W.startTime;var r=(0,_.tv)()-W;W=this.bezier;f=Pp$(W,r/f);if(f==0)W=W.y0;else if(f==1)W=W.y3;else{r=an(W.y0,W.y1,f);var R=an(W.y1,W.y2,f);W=an(W.y2,W.y3,f);r=an(r,R,f);R=an(R,W,f);W=an(r,R,f)}W=_.xP(W,0,1);this.callback(l+(V-l)*W);W<1?this.delay.start():this.JSC$16896_animating=!1}};_.FQ=new _.vd("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var ZKk={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},agc=function(W,l,V,f){_.iI.call(this);this.JSC$16907_miniAppId=W;this.localReleaseId=l;this.derivedDeviceInterface=V;this.isForeground=f;this.JSC$16907_playNonceResolver=new _.mg;this.playPingTimerId=NaN;this.playPingIntervalMs=_.yS("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.yS("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.U("enable_displaying_ppn");this.JSC$16907_miniAppClientDataProvider=_.tY().resolve(_.FQ);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;OKe(this);var r=setTimeout(function(){_.Qe(new _.bP("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16907_playNonceResolver.promise.then(function(){clearTimeout(r)})};
_.v(agc,_.iI);var Nr9=function(W,l){W.JSC$16907_playNonceResolver.resolve(l!=null?l:SQ(8));W.enableDisplayingPpn&&zSc(W).then(function(V){W.JSC$16907_miniAppClientDataProvider.clientData.set("post_play_nonce",V)})},zSc=function(W){return _.g(function(l){return l.nextAddress==1?l.yield(W.JSC$16907_playNonceResolver.promise,2):l.return(l.yieldResult)})},OKe=function(W){var l,V;
_.g(function(f){if(f.nextAddress==1)return f.yield(W.JSC$16907_playNonceResolver.promise,2);l=f.yieldResult;V={miniAppInfo:{externalPostId:W.JSC$16907_miniAppId,localReleaseId:W.localReleaseId,postPlayNonce:l,derivedDeviceInterface:W.derivedDeviceInterface}};_.Sy(V);_.ju(f)})},xu1=function(W){W.state!==0?_.Qe(new _.bP("[MiniAppPlayLogger] recordPlayStart failed with state "+ZKk[W.state])):(W.state=1,Gn(W,"ma_cl"),bY(W,"PLAY_EVENT_TYPE_PLAY_START"),Y9k(W))},eSv=function(W){W.isForeground=!1;
bY(W,"PLAY_EVENT_TYPE_PLAY_PAUSE")},q9$=function(W){W.state!==1&&W.state!==2?_.Qe(new _.bP("[MiniAppPlayLogger] recordPlayEnd failed with state "+ZKk[W.state])):(W.state=3,window.clearInterval(W.playPingTimerId),W.playPingTimerId=NaN,lu4(),bY(W,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},hS$=function(W,l){W.state===2&&W.gameReady&&(W.firstClickRecorded?Date.now()-W.clickRecordedMs<W.playClickIntervalMs||(W.clickRecordedMs=Date.now(),bY(W,"PLAY_EVENT_TYPE_PLAY_CLICK")):l&&(Gn(W,"ma_fua"),bY(W,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),W.firstClickRecorded=!0,W.clickRecordedMs=Date.now()))};
agc.prototype.logError=function(W){var l=this,V;_.g(function(f){if(f.nextAddress==1)return W.metadata.externalPostId=l.JSC$16907_miniAppId,V=W.metadata,f.yield(Promise.race([l.JSC$16907_playNonceResolver.promise,new Promise(function(r){setTimeout(function(){r("")},3E4)})]),2);
V.postPlayNonce=f.yieldResult;W.metadata.localReleaseId=l.localReleaseId;W.loggingError.level="WARNING";_.wv(W.loggingError,W.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:W.metadata});_.ju(f)})};
var S9a=function(W,l,V,f){var r,R,y,P,n,B;_.g(function(d){if(d.nextAddress==1)return d.yield(W.JSC$16907_playNonceResolver.promise,2);r=d.yieldResult;R={externalPostId:W.JSC$16907_miniAppId,localReleaseId:W.localReleaseId,postPlayNonce:r,sdkVersion:V,api:l};f!==void 0&&(R.networkRequestsMeasurement={networkRequests:_.Cs(f,1),cachedRequests:_.Cs(f,2),transferredBytes:_.Cs(f,3)},(y=f)==null?0:_.IQ(y,k0,6))&&(R.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((P=_.yy(f,
k0,6))==null?void 0:NG(P,1))||"0",cacheHits:((n=_.yy(f,k0,6))==null?void 0:NG(n,2))||"0",cachedBytes:((B=_.yy(f,k0,6))==null?void 0:NG(B,3))||"0"});_.XC("miniAppSdkUsage",R);_.ju(d)})},$u9=function(W,l,V){var f,r,R,y,P,n,B,d,J,D,u,H,p,X,w,O;
_.g(function(S){if(S.nextAddress==1)return S.yield(W.JSC$16907_playNonceResolver.promise,2);f=S.yieldResult;r={externalPostId:W.JSC$16907_miniAppId,localReleaseId:W.localReleaseId,postPlayNonce:f,sdkVersion:V,measurementWindow:{startTimestampMs:String(Zb(l,1)),endTimestampMs:String(Zb(l,2))},frameRate:{averageFrameTimeDeltaMs:Ol(l,3),averageFrameIdleTimeMs:Ol(l,4)}};_.IQ(l,vo,5)&&(r.networkRequests={networkRequests:(R=oz(l))==null?void 0:_.Cs(R,1),cachedRequests:(y=oz(l))==null?void 0:_.Cs(y,2),transferredBytes:(P=
oz(l))==null?void 0:_.Cs(P,3),sameOriginStatusCodeToCounts:EeZ((n=oz(l))==null?void 0:oZn(n,4)),crossOriginStatusCodeToCounts:EeZ((B=oz(l))==null?void 0:oZn(B,5))},(d=oz(l))==null?0:_.IQ(d,k0,6))&&(r.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((J=oz(l))==null?void 0:(D=_.yy(J,k0,6))==null?void 0:NG(D,1))||"0",cacheHits:((u=oz(l))==null?void 0:(H=_.yy(u,k0,6))==null?void 0:NG(H,2))||"0",cachedBytes:((p=oz(l))==null?void 0:(X=_.yy(p,k0,6))==null?void 0:NG(X,3))||"0"});_.IQ(l,
KJB,7)&&(r.gameCapture={averageFrameTimeDeltaMs:(w=_.yy(l,KJB,7))==null?void 0:Ol(w,1),averageFrameIdleTimeMs:(O=_.yy(l,KJB,7))==null?void 0:Ol(O,2)});_.XC("miniAppPerformanceMetrics",r);_.ju(S)})},Wo9=function(W,l){var V,f;
return _.g(function(r){if(r.nextAddress==1)return r.yield(W.JSC$16907_playNonceResolver.promise,2);V=r.yieldResult;f={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:W.JSC$16907_miniAppId,postPlayNonce:V,miniAppReleaseId:W.localReleaseId},derivedDeviceInterface:W.derivedDeviceInterface,adTriggerType:l,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.XC("miniAppAdEvent",f);_.ju(r)})};
agc.prototype.disposeInternal=function(){_.iI.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var bY=function(W,l,V,f){V=V===void 0?{}:V;f=f===void 0?!1:f;var r,R,y,P;_.g(function(n){if(n.nextAddress==1)return r=W.isForeground,R=W.beforeReady,n.yield(W.JSC$16907_playNonceResolver.promise,2);y=n.yieldResult;P={externalPostId:W.JSC$16907_miniAppId,localReleaseId:W.localReleaseId,derivedDeviceInterface:W.derivedDeviceInterface,postPlayNonce:y,type:l};V.sequenceGroup=y;P.playState=R?"PLAY_STATE_NOT_READY":r?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.XC("miniAppPlayEvent",P,
V);f&&_.Ts();_.ju(n)})},Gn=function(W,l){var V;
_.g(function(f){if(f.nextAddress==1)return V=(0,_.tv)(),f.yield(W.JSC$16907_playNonceResolver.promise,2);_.Wy(l,V);_.ju(f)})},Y9k=function(W){isNaN(W.playPingTimerId)&&(W.playPingTimerId=_.BA(function(){W.state!==1&&W.state!==2?_.Qe(new _.bP("[MiniAppPlayLogger] reportPlayPing failed with state "+ZKk[W.state])):bY(W,"PLAY_EVENT_TYPE_PLAY_PING")},W.playPingIntervalMs))},EeZ=function(W){return Array.from(W.entries()).map(function(l){var V=_.L(l);
l=V.next().value;V=V.next().value;return{key:l,value:V}})};var lWe=function(){},VwI=function(W,l){W.showMiniAppAdCommand=l.showMiniAppAdCommand;
W.isEmbeddedInWebview=l.isEmbeddedInWebview;W.playLogger=l.playLogger},rfB=function(W,l){var V;
return _.g(function(f){if(f.nextAddress==1){if(!W.showMiniAppAdCommand||!W.isEmbeddedInWebview)return f.return(fWI(W,l));W.adResolver=new _.mg;var r=new lO;V=_.g8(r,3,l);e$(W.showMiniAppAdCommand,VNk(V));return f.yield(W.adResolver.promise,2)}return f.return(f.yieldResult)})};
lWe.prototype.onAdFinished=function(W){W=Vg1(W);var l;(l=this.adResolver)==null||l.resolve(W)};
var fWI=function(W,l){var V;return _.g(function(f){if(f.nextAddress==1)f=f.yield((V=W.playLogger)==null?void 0:Wo9(V,vEn(l)),2);else{var r=f.return;var R=new lhL;R=_.g8(R,1,2);f=r.call(f,R)}return f})};var RFI=new _.vd("INNERTUBE_MANAGER_TOKEN");var twI=function(){this.callbacks={}};
twI.prototype.initialize=function(W){var l=this;this.callbacks=W;window.youtubewebview?window.youtubewebview.onmessage=function(V){sKZ(l,V)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(V){sKZ(l,V)})};
var sKZ=function(W,l){if(l.data)try{var V=kD1(l.data);if(_.He(_.jP(V,1))!=null){var f=hCB(_.aQ(V,2));switch(V.getMethodName()){case "yt-mini-app-load-audio-state":var r,R;(R=(r=W.callbacks).onAudioStateLoaded)==null||R.call(r,_.MG(f,KS(f,Wm,1)));break;case "yt-mute-mini-app":var y,P;(P=(y=W.callbacks).onMuteMiniApp)==null||P.call(y);break;case "yt-unmute-mini-app":var n,B;(B=(n=W.callbacks).onUnmuteMiniApp)==null||B.call(n);break;case "yt-playable-exit":var d,J;(J=(d=W.callbacks).onExit)==null||J.call(d);
break;case "yt-post-play-nonce":var D,u;(u=(D=W.callbacks).onPostPlayNonceReceived)==null||u.call(D,Yt(f,2,Wm));break;case "yt-confirm-exit-mini-app":var H,p;(p=(H=W.callbacks).confirmExitMiniApp)==null||p.call(H);break;case "yt-confirm-exit-mini-app-edu":var X,w;(w=(X=W.callbacks).confirmExitMiniAppEdu)==null||w.call(X);break;case "yt-benchmarking-response":var O,S;(S=(O=W.callbacks).onNativeBenchmarkingMessageReceived)==null||S.call(O,Yt(f,2,Wm));break;case "yt-mini-app-load-3p-consent-state":var N,
x;(x=(N=W.callbacks).multiplayer3pAckStateLoaded)==null||x.call(N,_.MG(f,KS(f,Wm,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var Y,W8;(W8=(Y=W.callbacks).exitMiniAppSeenStateLoaded)==null||W8.call(Y,_.MG(f,KS(f,Wm,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var c8,B8;(B8=(c8=W.callbacks).onNavigateToNewMiniApp)==null||B8.call(c8);break;case "yt-game-data-available":var Jx,H8;(H8=(Jx=W.callbacks).onGameDataAvailable)==null||H8.call(Jx,Yt(f,2,Wm));break;case "yt-pause-mini-app":var Kq,
Z4;(Z4=(Kq=W.callbacks).onPauseMiniApp)==null||Z4.call(Kq);break;case "yt-resume-mini-app":var Ax,sM;(sM=(Ax=W.callbacks).onResumeMiniApp)==null||sM.call(Ax);break;case "yt-playable-ad-finished":var Ta,ck;(ck=(Ta=W.callbacks).onAdFinished)==null||ck.call(Ta,Yt(f,2,Wm))}}else _.Qe(Error("Xh"))}catch(Wk){_.wv(Error("Yh"))}else _.Qe(Error("Zh"))};var Kcn=function(W){this.rpcErrorCode=W};var pQ=function(W,l,V){this.intervalMs=W;this.apiFunc=l;this.type=V;this.schedulerReady=!0};
pQ.prototype.call=function(W){var l=this,V;return _.g(function(f){if(f.nextAddress==1){if(l.type!==1&&W===l.cachedValue)return f.return();l.pendingApiRequestResolver||(l.pendingApiRequestResolver=new _.mg);V=l.pendingApiRequestResolver.promise;l.cachedValue=W;return f.yield(Lok(l),2)}return f.return(V)})};
pQ.prototype.flush=function(W){W=W===void 0?!1:W;var l=this;return _.g(function(V){return l.cachedValue===void 0?V.return():V.yield(l.apiFunc(l.cachedValue,W),0)})};
var Lok=function(W){var l,V,f;return _.g(function(r){switch(r.nextAddress){case 1:if(!W.schedulerReady||!W.pendingApiRequestResolver)return r.return();W.schedulerReady=!1;l=W.pendingApiRequestResolver;W.pendingApiRequestResolver=void 0;_.HG(r,2);if(W.cachedValue===void 0){r.jumpTo(4);break}return r.yield(W.apiFunc(W.cachedValue),5);case 5:V=r.yieldResult,l.resolve(V);case 4:_.qL(r,3);break;case 2:f=_.pc(r),l.reject(f);case 3:setTimeout(function(){return _.g(function(R){W.schedulerReady=!0;return R.yield(Lok(W),
0)})},W.intervalMs),_.ju(r)}})};var bLj=window.location.origin+"/miniapp_cloudsaves",Fc6=[400,401],yfe=_.yS("cloud_save_game_data_rate_limit_ms",3E3),nn$=function(W){var l=this;this.JSC$16951_miniAppId=W;this.loadAttempts=0;this.cloudSaveIntervalMs=yfe;this.initialDownloadDataSucceeded=!1;this.JSC$16951_playNonceResolver=new _.mg;this.scottyUploadRateLimiter=new pQ(this.cloudSaveIntervalMs,function(V,f){return gnk(l,V,f)},2);
this.downloadDataPromise=PJI(this);this.downloadDataPromise.then(function(){l.initialDownloadDataSucceeded=!0}).catch(function(){})},CJZ=function(W,l){l.then(function(V){return W.JSC$16951_playNonceResolver.resolve(V)})},cfX=function(W){return _.g(function(l){return W.cachedData===void 0?l.return(W.downloadDataPromise):l.return(W.cachedData)})},Buv=function(W,l){return _.g(function(V){W.cachedData=l;
if(!W.initialDownloadDataSucceeded)throw Error("$h");return V.yield(W.scottyUploadRateLimiter.call(l),0)})},dpv=function(){return new Promise(function(W){setTimeout(W,1E3,"")})},Jfa=function(W,l){var V,f;
return _.g(function(r){if(r.nextAddress==1)return V=W.JSC$16951_miniAppId,r.yield(Promise.race([W.JSC$16951_playNonceResolver.promise,dpv()]),2);f={"X-YouTube-MiniAppId":V,"X-YouTube-PostPlayNonce":r.yieldResult};"DELEGATED_SESSION_ID"in _.AC&&$T6(l,f);return r.return(f)})},gnk=function(W,l,V){V=V===void 0?!1:V;
return _.g(function(f){return HLz()?_.U("enable_cloud_save_error_popup_after_retry")?f.return(new Promise(function(r,R){var y,P,n,B,d;return _.g(function(J){switch(J.nextAddress){case 1:y=0,P=!0,B=n=null;case 2:if(!(P&&y++<2)){J.jumpTo(4);break}_.HG(J,5);return J.yield(Dpa(W,l,V),7);case 7:n=J.yieldResult;P=n.ok?!1:!Fc6.includes(n.status);_.qL(J,2);break;case 5:B=d=_.pc(J);P=GVg(B);J.jumpTo(2);break;case 4:n?n.ok?(o5(W,yfe),r()):(o5(W,W.cloudSaveIntervalMs*2),R(Error("ai`"+String(n.status),{cause:{rpcErrorCode:n.status}}))):
(o5(W,W.cloudSaveIntervalMs*2),R(B||Error("bi"))),_.ju(J)}})})):f.return(new Promise(function(r,R){var y,P;
return _.g(function(n){if(n.nextAddress==1){if(W.JSC$16951_miniAppId==="")return R(Error("ci")),n.return();_.HG(n,2);return n.yield(Dpa(W,l,V),4)}if(n.nextAddress!=2)return y=n.yieldResult,y.ok?(o5(W,yfe),r()):(o5(W,W.cloudSaveIntervalMs*2),R(Error("ai`"+String(y.status),{cause:{rpcErrorCode:y.status}}))),_.qL(n,0);P=_.pc(n);o5(W,W.cloudSaveIntervalMs*2);R(P);_.ju(n)})})):f.return()})},Dpa=function(W,l,V){V=V===void 0?!1:V;
var f,r,R;return _.g(function(y){if(y.nextAddress==1)return f=_.Xw((new TextEncoder).encode(l)),r=pMF(),y.yield(Jfa(W,r),2);R=y.yieldResult;return y.return(fetch(r,{method:"POST",body:new Blob([f]),headers:R,keepalive:V}))})},PJI=function(W){var l,V;
return _.g(function(f){if(f.nextAddress==1){if(!HLz())return f.return("");if(W.JSC$16951_miniAppId==="")throw Error("ci");if(W.loadAttempts>2)return f.return(W.downloadDataPromise);_.HG(f,2);return f.yield(Upk(W),4)}if(f.nextAddress!=2)return l=f.yieldResult,f.return(l);V=_.pc(f);if(GVg(V)&&++W.loadAttempts<2)return f.return(PJI(W));throw V;})},Upk=function(W){var l,V,f,r,R;
return _.g(function(y){switch(y.nextAddress){case 1:return _.HG(y,2),l=pMF(),y.yield(Jfa(W,l),4);case 4:return V=y.yieldResult,y.yield(fetch(l,{method:"GET",headers:V}),5);case 5:return f=y.yieldResult,f.ok?y.yield(f.text(),6):y.return(Promise.reject(Error("di`"+String(f.status),{cause:new Kcn(f.status)})));case 6:return r=y.yieldResult,y.return((new TextDecoder).decode(_.$z(r)));case 2:return R=_.pc(y),y.return(Promise.reject(R))}})},o5=function(W,l){W.cloudSaveIntervalMs=l;
W.scottyUploadRateLimiter.intervalMs=W.cloudSaveIntervalMs};
nn$.prototype.flush=function(){var W=this;return _.g(function(l){return W.initialDownloadDataSucceeded?l.yield(W.scottyUploadRateLimiter.flush(!0),0):l.return()})};var uBZ=bG(Gf(1),KB(1)),kga=bG(Gf(1),KB(3)),j8=function(W){this.callbacks=W};
_.t=j8.prototype;_.t.onAudioToggled=function(W,l){(l===void 0||l)&&_.N5("yt-mini-app-is-audio-enabled",W,2592E3)};
_.t.onPause=function(){this.onAudioToggled(!1,!1)};
_.t.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.t.returnNativeBenchmarkingMessage=function(){};
_.t.sendGameData=function(){};
_.t.sendStartGameFrameCapture=function(){};
var oEx=function(W,l,V){this.callbacks=W;var f=this;this.sdkVersion=new _.mg;this.channel=new vzB(_.Ud({destination:window,iframe:l,origin:(new URL(V.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var r=I5;var R=Gf(5);var y=new PkX;y=_.eP(y,1,1E4);R=_.pM(R,4,U7k,y);r(f,R);f.onAudioToggled(f.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){f.sdkVersion.resolve("")},1E4)};
_.v(oEx,j8);_.t=oEx.prototype;_.t.onAudioToggled=function(W,l){j8.prototype.onAudioToggled.call(this,W,l===void 0?!0:l);l=I5;var V=Gf(2),f=new yIL;W=_.Jl(f,1,W);W=_.pM(V,3,U7k,W);l(this,W)};
_.t.onPause=function(){j8.prototype.onPause.call(this);I5(this,Gf(3))};
_.t.onResume=function(){j8.prototype.onResume.call(this);I5(this,Gf(4))};
_.t.returnNativeBenchmarkingMessage=function(W){var l=I5,V=Gf(6);var f=KB(_.IQ(W,nU,1)?1:2);W=_.IQ(W,nU,1)?W:null;f=_.pM(f,5,F5,W);l(this,bG(V,f))};
_.t.sendGameData=function(W){var l=I5,V=Gf(7);W=_.pM(V,5,U7k,W);l(this,W)};
_.t.sendStartGameFrameCapture=function(){I5(this,Gf(9))};
var iY=function(W,l,V){var f,r,R;return _.g(function(y){if(y.nextAddress==1)return f=W.callbacks,r=f.onSdkCalled,R=l,y.yield(W.sdkVersion.promise,2);r.call(f,R,y.yieldResult,V);_.ju(y)})};
oEx.prototype.onMessage=function(){var W=this;return Fjv(js,function(l){var V,f,r,R,y,P,n,B,d,J,D,u,H,p,X,w,O,S,N,x,Y,W8,c8,B8,Jx,H8,Kq,Z4,Ax,sM,Ta,ck,Wk,D$,Bk,iB,p2,SL,RY,lB,kc,n2,vk,VL,Lc,ls;return _.g(function(Pk){switch(Pk.nextAddress){case 1:if(!psL(l.data))return _.Qe(Error("ei")),Pk.return();V=_.zy(l.data,1);_.U("enable_iframe_message_get_type_via_fields")&&(f=l.data,V=r=_.zy(f,1));switch(V){case 8:if(l.data.hasMetadata()){var q1=W.sdkVersion,Dc=q1.resolve;var pe=l.data.getMetadata();pe=_.aQ(pe,
1);Dc.call(q1,pe);clearTimeout(W.sdkVersionTimeoutId)}break;case 6:return Pk.jumpTo(2);case 16:if(!_.iK(l.data,vRM,14,Iz))return Pk.return();R=_.xt(l.data,vRM,14,Iz);(P=(y=W.callbacks).onGameFrameReceived)==null||P.call(y,R);return Pk.return();case 17:if(!_.iK(l.data,kQM,15,Iz))return Pk.return();(B=(n=W.callbacks).onGameAudioReceived)==null||B.call(n,_.xt(l.data,kQM,15,Iz));return Pk.return();case 1:if(q1=_.xt(l.data,cIv,2,Iz))switch(_.zy(q1,1)){case 1:W.callbacks.onFirstFrameReady();if(_.U("enable_network_request_logging_on_game_events")&&
_.IQ(q1,vo,4)){iY(W,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.yy(q1,vo,4));break}iY(W,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(pe=(Dc=W.callbacks).onGameReady)==null||pe.call(Dc);if(_.U("enable_network_request_logging_on_game_events")&&_.IQ(q1,vo,4)){iY(W,"MINI_APP_SDK_API_GAME_READY",_.yy(q1,vo,4));break}iY(W,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.iK(q1,Ho,3,Bek))W.callbacks.onResourceLoaded(_.xt(q1,Ho,3,Bek))}return Pk.return();case 3:return Pk.jumpTo(3);case 4:return Pk.jumpTo(4);
case 2:return Pk.jumpTo(5);case 9:return Pk.jumpTo(6);case 10:return W.callbacks.onClick(),Pk.return();case 5:return Pk.jumpTo(7);case 11:if(!_.iK(l.data,Uj,9,Iz))return Pk.return();d=_.xt(l.data,Uj,9,Iz);(D=(J=W.callbacks).onBenchmarkingMessageReceived)==null||D.call(J,d);q1=l.reply;Dc=Gf(1);pe=KB(1);var oX=new Uj;var ve=new Uint8Array(ZK8(d,KS(d,rI$,6))|0);oX=UL(oX,5,rI$,_.jL(ve,!1));pe=_.pM(pe,5,F5,oX);q1.call(l,bG(Dc,pe));return Pk.return();case 12:return Pk.jumpTo(8);case 13:return Pk.jumpTo(9);
case 15:if(!_.U("enable_open_yt_content"))return l.reply(kga),Pk.return();if(!_.iK(l.data,uzB,12,Iz))return l.reply(bG(Gf(1),KB(2))),Pk.return();q1=_.xt(l.data,uzB,12,Iz);u=_.aQ(q1,1);W.callbacks.onOpenYTContent(u);l.reply(uBZ);return Pk.return();case 14:return Pk.jumpTo(10);default:return Pk.return()}Pk.jumpTo(0);break;case 2:if(!_.iK(l.data,pB,5,Iz))return Pk.return();Dc=l.data;q1=KS(Dc,Iz,5);Dc=Dc.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;H=mH4(Dc,Dc[_.Le]|0,pB,q1)||pB[TLz]||(pB[TLz]=
wkq(pB));q1=_.Pt(H,uG,1,_.ns());p=_.L(q1);X=p.next();case 12:if(X.done){Pk.jumpTo(14);break}w=X.value;O=new _.bP;O.level=_.zy(w,2)===1?"WARNING":"ERROR";S=ITq(w.getSource());return Pk.yield(W.sdkVersion.promise,15);case 15:N={source:S,sdkVersion:Pk.yieldResult};_.r7(_.jP(w,6))!=null?(O.message=w.getMessage(),O.stack=_.aQ(w,5),N.sdkErrorType=iLF(_.zy(w,6)),_.r7(_.jP(w,7))!=null&&(N.sdkApi=mKJ(_.zy(w,7)))):O.stack=void 0;Y=x=void 0;(Y=(x=W.callbacks).onError)==null||Y.call(x,{loggingError:O,metadata:N});
X=p.next();Pk.jumpTo(12);break;case 14:return Pk.return();case 3:return _.HG(Pk,16),q1=Pk.yield,Dc=W.callbacks,pe=Dc.onSave,oX=_.xt(l.data,gRa,4,Iz),oX=_.aQ(oX,1),q1.call(Pk,pe.call(Dc,oX),18);case 18:l.reply(uBZ);_.qL(Pk,17);break;case 16:return W8=_.pc(Pk),c8=qr,B8=W8,Jx=W.callbacks,H8="MINI_APP_SDK_API_SAVE_DATA",Pk.yield(W.sdkVersion.promise,19);case 19:c8(B8,Jx,H8,Pk.yieldResult),l.reply(kga);case 17:return Pk.yield(iY(W,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return Pk.return();case 4:return _.HG(Pk,
21),Pk.yield(W.callbacks.onLoad(),23);case 23:Kq=Pk.yieldResult;q1=l.reply;Dc=Gf(1);pe=KB(1);oX=new gRa;oX=_.mY(oX,1,Kq);pe=_.pM(pe,3,F5,oX);q1.call(l,bG(Dc,pe));_.qL(Pk,22);break;case 21:return Z4=_.pc(Pk),Ax=qr,sM=Z4,Ta=W.callbacks,ck="MINI_APP_SDK_API_LOAD_DATA",Pk.yield(W.sdkVersion.promise,24);case 24:Ax(sM,Ta,ck,Pk.yieldResult),l.reply(kga);case 22:return Pk.yield(iY(W,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return Pk.return();case 5:_.HG(Pk,26);W.callbacks.onSendHighScore(Oc(_.xt(l.data,
GQa,3,Iz).getValue()));l.reply(bG(Gf(1),KB(1)));_.qL(Pk,27);break;case 26:return Wk=_.pc(Pk),D$=qr,Bk=Wk,iB=W.callbacks,p2="MINI_APP_SDK_API_SEND_SCORE",Pk.yield(W.sdkVersion.promise,28);case 28:D$(Bk,iB,p2,Pk.yieldResult),l.reply(kga);case 27:return Pk.yield(iY(W,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return Pk.return();case 6:if(!_.iK(l.data,bV1,8,Iz)){Pk.jumpTo(30);break}q1=Pk.yield;Dc=_.xt(l.data,bV1,8,Iz);Dc=_.zy(Dc,1);return q1.call(Pk,iY(W,mKJ(Dc)),30);case 30:return Pk.return();case 7:return q1=
l.reply,Dc=Gf(1),pe=KB(1),oX=W.callbacks.getLanguage(),pe=UL(pe,4,F5,kZ(oX)),q1.call(l,bG(Dc,pe)),Pk.yield(iY(W,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return Pk.return();case 8:if(!_.iK(l.data,FJM,10,Iz))return Pk.return();SL=_.xt(l.data,FJM,10,Iz);RY=W.callbacks;lB=RY.onSdkPerformanceUpdate;return Pk.yield(W.sdkVersion.promise,33);case 33:return lB.call(RY,SL,Pk.yieldResult),Pk.return();case 9:q1=l.data;Dc=KS(q1,Iz,11);if(_.He(_.jP(q1,Dc))==null)return l.reply(bG(Gf(1),KB(2))),Pk.return();
kc=Yt(l.data,11,Iz);W.callbacks.onShareInviteCode(kc);l.reply(uBZ);return Pk.yield(iY(W,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return Pk.return();case 10:if(_.iK(l.data,LJI,13,Iz)){Pk.jumpTo(35);break}return Pk.yield(W.callbacks.onShowMiniAppAd(2),36);case 36:return n2=Pk.yieldResult,l.reply(bG(Gf(1),JIa(n2))),Pk.yield(iY(W,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return Pk.return();case 35:q1=_.xt(l.data,LJI,13,Iz);a:switch(_.zy(q1,1)){case 1:q1={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:q1={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:q1={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}vk=q1;VL=vk.adType;Lc=vk.sdkApi;q1=Pk.yield;Dc=W.callbacks;pe=Dc.onShowMiniAppAd;oX=_.xt(l.data,LJI,13,Iz);oX=_.aQ(oX,2);return q1.call(Pk,pe.call(Dc,VL,oX||void 0),38);case 38:return ls=Pk.yieldResult,l.reply(bG(Gf(1),JIa(ls))),Pk.yield(iY(W,Lc),39);case 39:return Pk.return()}})})};
var I5=function(W,l){_.g(function(V){W.channel.send(l);_.ju(V)})},h$=function(W,l,V){this.callbacks=W;
var f=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;W=YPJ(l,(new URL(V.toString())).origin);this.gameSnacks=new QYI(W);this.gameSnacks.page.onReady(function(){f.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){f.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var r,R;(R=(r=f.callbacks).onGameReady)==null||R.call(r)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(r,R){try{f.callbacks.onSendHighScore(R)}catch(y){qr(y,f.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(r,R){var y;return _.g(function(P){if(P.nextAddress==1)return _.HG(P,2),P.yield(f.callbacks.onSave(f.decoder.decode(R)),4);if(P.nextAddress!=2)return _.qL(P,0);y=_.pc(P);qr(y,f.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return P.return()})});
this.gameSnacks.storage.onLoad(function(){var r,R;return _.g(function(y){if(y.nextAddress==1)return _.HG(y,2),y.yield(f.callbacks.onLoad(),4);if(y.nextAddress!=2)return r=y.yieldResult,y.return(f.encoder.encode(r));R=_.pc(y);qr(R,f.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return y.return(f.encoder.encode(""))})});
this.gameSnacks.init()};
_.v(h$,j8);h$.prototype.onAudioToggled=function(W,l){j8.prototype.onAudioToggled.call(this,W,l===void 0?!0:l);var V;(V=this.gameSnacks)==null||V.audio.update(W)};
h$.prototype.onPause=function(){j8.prototype.onPause.call(this);var W;(W=this.gameSnacks)==null||W.game.pause()};
h$.prototype.onResume=function(){j8.prototype.onResume.call(this);var W;(W=this.gameSnacks)==null||W.game.resume()};var vnI=XMx,HnL=_.Q(function(W){var l=W.data;var V=W.loadingProgress;var f=W.forPaused;W=_.L(_.J4("",void 0,"LYYTdd"));var r=W.next().value,R=W.next().value;W=_.L(_.J4(!1,void 0,"K0waae"));var y=W.next().value,P=W.next().value,n=[],B=function(){return"transform: scaleX("+(_.w9(V)||0)+")"},d=null,J=function(){return l()&&d!==null&&d!==void 0?d:d=l().showAnniversaryAnimation?6:vnI()};
_.m1(function(){var p;if(l().timeOutMessages&&((p=l().timeOutMessages)==null?0:p.length)){d=null;p=_.L(n);for(var X=p.next();!X.done;X=p.next())clearTimeout(X.value);n.length=0;TBF(l().timeOutMessages,n,R,P)}},"BNu9j");
var D=function(){return!!l().persistentErrorMessageTitle},u=function(){return V!==void 0},H=function(){return l().title};
return _.C("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.C("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.C("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.C("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var p,X=(p=l().backgroundImage)==null?void 0:p.sources,w;return(X==null?0:X.length)?"background-image: url("+((w=X[0])==null?void 0:w.url)+")":""}}),_.C("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.C(_.c,{cond:function(){return!D()&&!(f==null?0:f())},
then:function(){var p={};return _.C("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.C("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.C(_.SX,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+J()},
data:function(){var X="loading_animation_"+J();return{animationConfig:{name:X,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+X+".json",loop:!0,autoplay:!0}}}})),_.C("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.C(_.c,{cond:H,
then:function(){return _.C("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},H)}}),_.C("p",{class:_.If("miniAppSplashScreenViewModelTimeoutMessage",(p.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return y()},p)),
"aria-live":"polite"},r),_.C(_.c,{cond:u,then:function(){return _.C("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.C("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:B}))}})))}}),_.C(_.c,{cond:D,
then:function(){return _.C("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.C("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return l().persistentErrorMessageTitle}),_.C(_.c,{cond:function(){return!!l().persistentErrorMessageDescription},
then:function(){return _.C("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return l().persistentErrorMessageDescription})}}))}}),_.C(_.c,{cond:f,
then:function(){return _.C("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.C("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.C("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},H))}})))},"ue");var KoL=new _.vd("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var FoB=fp;fp=function(W){function l(V){if(V){var f,r;(f=V.__spec)==null||(r=f.didUnmount)==null||r.call(f);for(f=0;f<V.childNodes.length;f++)l(V.childNodes[f])}}
FoB==null||FoB(W);qa(function(){for(var V=0;V<W.length;V++)l(W[V])})};var GgI=_.Q(function(W){var l=W.data;var V=W.score;var f=W.formattedScore;var r=W.onScoreChanged;var R=W.isEmbeddedInWebview;var y=_.lN("yt-mini-app-score-button-view-model"),P=function(){var u;return _.k(l==null?void 0:(u=l())==null?void 0:u.buttonViewModel,_.JJ)},n=function(){var u;
return(V==null?void 0:V())||Number(l==null?void 0:(u=l())==null?void 0:u.lastScore)||0},B=function(){var u;
return(f==null?void 0:f())||((u=P())==null?void 0:u.title)||""},d,J=1;
if(W=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))W=Number(W),J=isNaN(W)?1:W/100;_.m1(function(){r==null||r(n());var u;var H=_.fP((u=P())==null?void 0:u.onTap);if(H){u=_.k(H,wLL);var p,X,w;u=_.k(u==null?void 0:(p=u.panelLoadingStrategy)==null?void 0:(X=p.inlineContent)==null?void 0:(w=X.dialogViewModel)==null?void 0:w.customContent,fiB)}else u=void 0;if(p=u)p.score=B()},"Aekez");
W=_.ip(function(){var u,H,p=l==null?void 0:(u=l())==null?void 0:(H=u.loggingDirectives)==null?void 0:H.trackingParams;p&&_.YQ(_.tY().resolve(_.yM),p);return!1});
_.mw(function(){if(y.value){var u=y.value.querySelector("button"),H=P();u&&H&&wMj(u,H);R_("yt-share-playable-with-high-score",function(){var p=n().toString(),X=l==null?void 0:l().onShareHighScoreCommand,w=l==null?void 0:l().highScoreShareClientParamIdentifier,O=R==null?void 0:R();X&&(O?(w=new uU1,p=_.mY(w,2,p),e$(X,p.JSC$12378_serializeBinary())):w&&(_.tY().resolve(KoL).clientParams.set(w,{miniAppClientParams:{highScore:p}}),DKU(X,!1)))})}});
var D=function(){var u=P();u&&(V==null?0:V())&&u.accessibilityText&&(u.accessibilityText=u.accessibilityText.replace(d,B()));d=B();return{numberValue:n(),numberText:B(),heightPx:36,fontSizeMultiplier:J,shouldAnimate:!(V==null||!V())&&!0}};
return _.C("yt-mini-app-score-button-view-model",{class:function(){var u={};return _.Yw("miniAppScoreButtonViewModelHost",(u.miniAppScoreButtonViewModelIsVisible=n()!==0,u))},
el:y,"on:click":W},kdv(!1,function(){return _.C("span",{style:"display:none;"},n)}),_.C(_.QH,{data:function(){var u;
return l==null?void 0:(u=l())==null?void 0:u.buttonViewModel}},{buttonViewModel:function(u){return _.C(_.Nq,{data:u.data,
animatedTextProps:D})}}))},"ve");var IW$=_.Q(function(W){var l,V=(l=_.YC("yt-mini-app-is-theater-mode-enabled"))!=null?l:!1,f=_.U("enable_playable_container_save_button"),r=_.U("enable_play_next_destination_page_in_toolbar");l={};return _.C("ytm-mini-app-top-bar-view-model",null,_.C("div",{class:_.If("yt-mini-app-top-bar-view-model",(l["yt-mini-app-top-bar-view-model--mobile"]=!1,l["yt-mini-app-top-bar-view-model--desktop"]=!0,l))},_.C("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.C(_.c,{cond:function(){var R;return!!W.data().backButtonEdu&&
!((R=W.isExitMiniAppSeen)==null?0:R.call(W))},
then:function(){return _.C(_.QH,{data:function(){return W.data().backButtonEdu}},{buttonViewModel:_.Nq})},
else:function(){return _.C(_.QH,{data:function(){return W.data().backButton}},{buttonViewModel:_.Nq})}}),_.C(_.c,{cond:function(){return W.data().viewAllButton&&!0},
then:function(){return _.C(_.QH,{data:function(){return W.data().viewAllButton}},{buttonViewModel:_.Nq})}}),_.C(_.c,{cond:function(){return W.data().title&&!0},
then:function(){return _.C("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return W.data().title})}})),_.C("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.C(_.c,{cond:function(){var R;
return(R=W.isDesktopPlayPage)==null?void 0:R.call(W)},
then:function(){return _.C(_.Lp,null,_.C(bnc,{highScoreButton:function(){return W.data().highScoreButton},
score:W.score,formattedScore:W.formattedScore,onScoreChanged:W.onScoreChanged,isEmbeddedInWebview:W.isEmbeddedInWebview}),_.C(puv,{enableSaveButton:function(){return _.w9(f)},
saveButton:function(){return W.data().saveButton},
isSaved:W.isSaved,onSaveToggled:function(){return W.onSaveToggled}}),_.C(onL,{menuButton:function(){return W.data().menuButton}}))},
else:function(){return _.C(_.c,{cond:function(){return!1},
then:function(){return _.C(_.QH,{data:function(){return W.data().playPageButton}},{buttonViewModel:function(R){return _.C(_.Nq,{data:R.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.C(bnc,{highScoreButton:function(){return W.data().highScoreButton},
score:W.score,formattedScore:W.formattedScore,onScoreChanged:W.onScoreChanged,isEmbeddedInWebview:W.isEmbeddedInWebview})}})}})),_.C("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.C(_.QH,{data:function(){return W.data().muteButton}},{toggleButtonViewModel:function(R){var y=R.data;
return _.C(_.gy,{data:function(){var P,n;return Object.assign({},y(),{isToggled:(n=(P=W.isAudioEnabled)==null?void 0:P.call(W))!=null?n:!0})},
onToggle:W.onAudioToggled,useOutlinedIcon:!0})}}),_.C(_.QH,{data:function(){return W.data().theatreModeButton}},{toggleButtonViewModel:function(R){var y=R.data;
return _.C("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.C(_.gy,{data:function(){return Object.assign({},y(),{isToggled:V})},
useOutlinedIcon:!0}))}}),_.C(jK$,{fullscreenButton:function(){return W.data().fullscreenButton}}),_.C(_.c,{cond:function(){return _.w9(r)&&W.data().viewAllButton&&!1},
then:function(){return _.C(_.QH,{data:function(){return W.data().viewAllButton}},{buttonViewModel:_.Nq})}}),_.C(_.c,{cond:function(){var R;
return!((R=W.isDesktopPlayPage)==null?0:R.call(W))},
then:function(){return _.C(_.Lp,null,_.C(puv,{enableSaveButton:function(){return _.w9(f)},
saveButton:function(){return W.data().saveButton},
isSaved:W.isSaved,onSaveToggled:function(){return W.onSaveToggled}}),_.C(onL,{menuButton:function(){return W.data().menuButton}}))}}))))},"we");
IW$.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var onL=_.Q(function(W){return _.C(_.QH,{data:W.menuButton},{buttonViewModel:_.Nq})},"xe"),puv=_.Q(function(W){var l=W.enableSaveButton;
var V=W.saveButton;var f=W.isSaved;var r=W.onSaveToggled;return _.C(_.c,{cond:function(){return l()&&!(V==null||!V())},
then:function(){return _.C(_.QH,{data:function(){var R=_.k(V==null?void 0:V(),_.Ub),y;return{toggleButtonViewModel:Object.assign({},R,{isToggled:(y=f==null?void 0:f())!=null?y:!(R==null||!R.isToggled)})}}},{toggleButtonViewModel:function(R){return _.C(_.gy,{data:R.data,
onToggle:r})}})}})},"ye"),bnc=_.Q(function(W){var l=W.highScoreButton;
var V=W.score;var f=W.formattedScore;var r=W.onScoreChanged;var R=W.isEmbeddedInWebview;return _.C(_.QH,{data:l},{miniAppScoreButtonViewModel:function(y){return _.C(GgI,{data:y.data,score:V,formattedScore:f,onScoreChanged:r,isEmbeddedInWebview:R})}})},"ze"),jK$=_.Q(function(W){W=W.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.C(_.Lp,null):_.C(_.QH,{data:W},{buttonViewModel:_.Nq})},"Ae");_.inM=new _.vd("DESKTOP_CURRENT_PAGE");var QKB=_.Q(function(W){var l=W.data;var V=_.U("force_active_time_logging_webview"),f=!1,r=new twI,R=void 0,y=void 0,P=_.tY().resolve(RFI),n=new lWe,B=void 0,d=void 0,J=[],D=void 0,u=void 0,H=!1,p=!1,X=!1,w=!1,O=new _.mg,S=_.tY().resolve(KoL),N=_.tY().resolve(_.FQ),x=_.tY().resolve(_.R0(Eh)),Y,W8=(Y=_.tY().resolve(_.R0(_.inM)))==null?void 0:Y.getCurrentPage(),c8=!1,B8=0,Jx=function(Sv){Sv.preventDefault();return Sv.returnValue=""},H8;
W=_.L(_.J4(!((H8=_.YC("yt-mini-app-is-audio-enabled"))!=null&&!H8),void 0,"WhYQTd"));var Kq=W.next().value,Z4=W.next().value,Ax;H8=_.L(_.J4(!((Ax=_.YC("exit-mini-app-seen-state"))==null||!Ax),void 0,"jxhCJb"));var sM=H8.next().value,Ta=H8.next().value;Ax=_.L(_.J4(!1,void 0,"MuvDfe"));var ck=Ax.next().value,Wk=Ax.next().value;Ax=_.L(_.J4(void 0,void 0,"u9DLoc"));var D$=Ax.next().value,Bk=Ax.next().value;Ax=_.L(_.J4(void 0,void 0,"rykyJb"));var iB=Ax.next().value,p2=Ax.next().value;Ax=_.L(_.J4(!0,void 0,
"d8FUvf"));var SL=Ax.next().value,RY=Ax.next().value;Ax=_.L(_.J4(!1,void 0,"x9XwUb"));var lB=Ax.next().value,kc=Ax.next().value;Ax=_.L(_.J4(!1,void 0,"bcquyc"));var n2=Ax.next().value,vk=Ax.next().value;Ax=_.L(_.J4(void 0,void 0,"FMAC5b"));var VL=Ax.next().value,Lc=Ax.next().value;Ax=_.L(_.J4(0,void 0,"HUGJEb"));var ls=Ax.next().value,Pk=Ax.next().value,q1=_.WS("mini-app-container-view-model"),Dc=function(){return l().isEmbeddedInWebview},pe=function(){return l().hasPlayNextShelf};
R_("yt-page-type-changed",function(Sv){if(_.U("enable_is_mini_app_page_active_bugfix"))Sv.detail.newPageSubtype==="mini_app"&&Sv.detail.newPageType==="ytd-browse"||!SL()||dI();else if(Sv=_.CxJ()==="mini_app",Sv!==SL())if(RY(Sv),Sv){var U5;Sv=(U5=l().playableId)==null?void 0:U5.toString();Sv!==void 0&&window.location.href.includes(Sv)&&!p&&(w=!0,oX(),u7.value&&G7(u7.value))}else Sv||dI()});
R_("yt-action",function(Sv){Sv.detail.actionName==="yt-engagement-panel-visible-changed"&&Sv.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Sv.detail.args[2]==="PAmini_app_panel"&&dI();_.U("enable_is_mini_app_page_active_bugfix")?Sv.detail.actionName==="yt-history-load"&&!SL()&&(W8==null?0:W8.active)?(RY(!0),oX(),u7.value&&G7(u7.value)):Sv.detail.actionName==="yt-history-load"&&SL()&&!l().isEmbeddedInWebview&&aX():SL()&&Sv.detail.actionName==="yt-history-load"&&(w?w=!1:l().isEmbeddedInWebview||
aX())});
_.Xc(function(){ve()});
_.m1(function(){oX()},"bLMzme");
var oX=function(){var Sv=l().playableId,U5=l().localReleaseId,mN=l().derivedDeviceInterface;if(p)_.Qe(new _.bP("[MiniAppContainerViewModel] onEnter was called more than once"));else{p=!0;R=new agc(Sv,U5,mN,document.visibilityState==="visible");xu1(R);y=new nn$(Sv);mpv(P,Sv);VwI(n,{showMiniAppAdCommand:l().showMiniAppAdCommand,isEmbeddedInWebview:l().isEmbeddedInWebview,playLogger:R});Qsj()&&(u=document.body.style.backgroundColor,_.VX(document.body,"background-color","black"));Y_();T1();O=new _.mg;
if(l().isEmbeddedInWebview){if(Sv=(new URLSearchParams(window.location.search)).get("postPlayNonce"))Nr9(R,Sv),c8=!0;r.initialize({onAudioStateLoaded:function(L2){jn(L2)},
onMuteMiniApp:function(){jn(!1)},
onUnmuteMiniApp:function(){jn(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(L2){c8||(Nr9(R,L2),c8=!0)},
confirmExitMiniApp:function(){var L2,C5,qC;return _.g(function(aZ){if(aZ.nextAddress==1)return l().confirmExitMiniAppCommand?aZ.yield(Promise.race([O.promise,Promise.resolve(!1)]),2):aZ.return();(L2=aZ.yieldResult)?!l().confirmExitMiniAppCommandEdu||(qC=(C5=sM)==null?void 0:C5())!=null&&qC?bh(l().confirmExitMiniAppCommand):(bh(l().confirmExitMiniAppCommandEdu),_.N5("exit-mini-app-seen-state","true",2592E6)):bh(l().closeMiniAppCommand);_.ju(aZ)})},
onNativeBenchmarkingMessageReceived:function(L2){L2=tg9(_.dUS(L2));if(_.iK(L2,_.Y1,3,fhk)){var C5=_.xt(L2,_.Y1,3,fhk),qC=UKF();var aZ=Oc(qC.getSeconds())-Oc(C5.getSeconds());C5=_.Cs(qC,2)-_.Cs(C5,2);aZ<0&&C5>0?(aZ+=1,C5-=1E9):aZ>0&&C5<0&&(--aZ,C5+=1E9);aZ=(new nU).setSeconds(aZ);aZ=_.VP(aZ,2,_.Rw(C5),0);_.b7(L2,1,aZ)}var EU;(EU=d)==null||EU.returnNativeBenchmarkingMessage(L2)},
multiplayer3pAckStateLoaded:function(L2){aX(L2)},
exitMiniAppSeenStateLoaded:function(L2){l().confirmExitMiniAppCommandEdu&&Ta(L2)},
onNavigateToNewMiniApp:function(){bh(l().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(L2){L2=new URLSearchParams(L2);var C5=void 0;L2.has("invite_code")&&(C5=new CkB,L2=L2.get("invite_code"),C5=_.mY(C5,1,L2));if(L2=C5){var qC;(qC=d)==null||qC.sendGameData(L2)}},
onPauseMiniApp:function(){f=!0;J1()},
onResumeMiniApp:function(){f=!0;ih()},
onAdFinished:function(L2){n.onAdFinished(L2)}});
l().showMultiplayer3pConsentDialogCommand||O.resolve(!0);bh(l().onContainerReadyCommand)}else Nr9(R),O.resolve(!0);CJZ(y,zSc(R));zSc(R).then(function(L2){L2={miniAppPlayData:{postPlayNonce:L2}};var C5,qC=(C5=l().loggingDirectives)==null?void 0:C5.trackingParams;qC&&_.Qq().stateChanged(qC,L2)});
Sv=l().showSignInDialogCommand;!HLz()&&Sv&&(_.N5("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),bh(Sv));l().confirmExitMiniAppCommand&&x&&(Sv=dK6(l().confirmExitMiniAppCommand))&&(x.customConfirmationCommand=Sv)}},ve=function(){u&&_.VX(document.body,"background-color",u);
H=!1;D&&D.release();y.flush().catch(function(Sv){_.Qe(Sv)});
P.flush().catch(function(Sv){_.Qe(Sv)});
q9$(R);b$();d=void 0;Xuv(S)},dI=function(){RY(!1);
ve();Wk(!1);Lc(void 0);Bk(void 0);p2(void 0);B8=0;Pk(0);p=!1},J1=function(){var Sv;
(Sv=d)==null||Sv.onPause();D&&D.release();y.flush().catch(function(U5){_.Qe(U5)});
P.flush().catch(function(U5){_.Qe(U5)});
eSv(R);kc(!0)},ih=function(){var Sv;
(Sv=d)==null||Sv.onResume();T1();Sv=R;Sv.isForeground=!0;bY(Sv,"PLAY_EVENT_TYPE_PLAY_RESUME");kc(!1)},jn=function(Sv){var U5;
(U5=d)==null||U5.onAudioToggled(Sv);Z4(Sv)},aX=function(Sv){l().showMultiplayer3pConsentDialogCommand&&(l().isEmbeddedInWebview&&Sv!==void 0&&O.resolve(Sv),!Sv&&_.CxJ()==="mini_app"&&bh(l().showMultiplayer3pConsentDialogCommand))},A1=function(){var Sv,U5,mN,L2;
return _.g(function(C5){if(C5.nextAddress==1){!l().isLivestream||l().disableVideoCapture||(Sv=d)!=null&&Sv.sendStartGameFrameCapture();U5=(new URL(window.location.href)).searchParams;if(U5.has("invite_code")){var qC=new CkB,aZ=U5.get("invite_code");mN=_.mY(qC,1,aZ);(L2=d)==null||L2.sendGameData(mN)}ck()||(Wk(!0),qC=R,qC.state!==1?_.Qe(new _.bP("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+ZKk[qC.state])):(_.n7("mini_app_ids_without_game_ready").includes(qC.JSC$16907_miniAppId)&&(qC.gameReady=
!0),qC.state=2,qC.beforeReady=!1,Gn(qC,"ma_ffr"),bY(qC,"PLAY_EVENT_TYPE_PLAY_READY")));return C5.yield(O.promise,2)}bh(l().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();l().isEmbeddedInWebview||aX();_.ju(C5)})},xZ=function(){var Sv=R;
Sv.gameReady=!0;Gn(Sv,"ma_gr")},$Z=function(Sv){var U5;
return _.g(function(mN){if(mN.nextAddress==1)return _.HG(mN,2),mN.yield(Buv(y,Sv),4);if(mN.nextAddress!=2)return _.qL(mN,0);U5=_.pc(mN);bh(l().showSavingErrorPopupCommand);throw U5;})},ai=function(){var Sv,U5;
return _.g(function(mN){if(mN.nextAddress==1)return _.HG(mN,2),mN.yield(cfX(y),4);if(mN.nextAddress!=2)return Sv=mN.yieldResult,mN.return(Sv);U5=_.pc(mN);bh(l().showLoadingErrorDialogCommand);throw U5;})},F4=function(Sv){R.logError(Sv)},fS=function(Sv,U5,mN){S9a(R,Sv,U5,mN)},ML=function(Sv,U5){$u9(R,Sv,U5)},zu=function(){!V&&l().isEmbeddedInWebview||_.tr();
hS$(R,!0);H||(window.addEventListener("beforeunload",Jx,{capture:!0}),H=!0)},cj=function(Sv){var U5,mN,L2,C5,qC,aZ,EU;
return _.g(function(o$){if(o$.nextAddress==1)return P&&(!B||B<Sv)&&Sv>0?o$.yield(Tu$(P,Sv),3):o$.jumpTo(0);U5=o$.yieldResult;mN=_.L(U5);L2=mN.next().value;C5=mN.next().value;qC=L2;aZ=C5;((EU=qC)==null?0:EU.displayString)&&aZ&&(Bk(aZ),p2(qC.displayString));_.ju(o$)})},pq=function(Sv){var U5=l().onBenchmarkingMessageReceivedCommand;
if(U5){var mN=UKF();_.pM(Sv,3,fhk,mN);e$(U5,snX(Sv))}},QU=function(Sv){var U5=l().onGameFrameReceivedCommand;
if(U5){var mN=new lO;var L2=new E$I;var C5=Zb(Sv,1);L2=_.Gs(L2,1,C5);Sv=_.aQ(Sv,2);Sv=_.mY(L2,2,Sv);mN=_.b7(mN,2,Sv);e$(U5,VNk(mN))}},Yz=function(Sv){var U5=l().onGameAudioDataReceivedCommand;
if(U5){var mN=new lO;var L2=new W3k;Sv=_.aQ(Sv,1);L2=_.mY(L2,1,Sv);mN=_.b7(mN,4,L2);e$(U5,VNk(mN))}},uB=function(){var Sv=new URLSearchParams(window.location.search);
if(l().isEmbeddedInWebview&&Sv&&Sv.get("override_hl")==="true"&&Sv.get("hl"))return Sv.get("hl");Sv=document.documentElement.lang;return Sv!==""?Sv:_.La},C2=function(Sv){var U5=l().onShareInviteCodeCommand;
if(U5)if(l().isEmbeddedInWebview){var mN=new uU1;Sv=_.mY(mN,1,Sv);e$(U5,vCk(Sv))}else mN=l().inviteCodeShareClientParamIdentifier,S.clientParams.set(mN,{miniAppClientParams:{inviteCode:Sv}}),bh(U5)},XX=function(Sv){var U5,mN,L2;
return _.g(function(C5){if(C5.nextAddress==1)return U5=l().onMiniAppOpenYtContentRequested,P&&_.U("enable_open_yt_content")&&U5?C5.yield(wuB(P,Sv),3):C5.jumpTo(0);mN=C5.yieldResult;if(mN==="OK")if(l().isEmbeddedInWebview){var qC=new eCL;L2=UL(qC,2,Wm,kZ(Sv));e$(U5,SYM(L2))}else N.clientData.set("video_id",Sv),bh(U5);_.ju(C5)})},Fw=function(Sv){B8+=_.Cs(Sv,3);
Sv=Math.min(Math.log(1+B8/15E6*9)/Math.log(10),.99);Pk(Sv);Ke(Sv)},Ke=_.Zh(function(Sv){var U5=l().updateLoadingProgressCommand;
if(U5){var mN=new eCL;Sv=UL(mN,3,Wm,_.xc(Sv));e$(U5,SYM(Sv))}},100),Hk=function(Sv){return rfB(n,Sv)},T1=function(){var Sv,U5;
((Sv=_.qoz())==null?void 0:(U5=Sv.wakeLock)==null?void 0:U5.request)!=null&&_.qoz().wakeLock.request("screen").then(function(mN){D=mN}).catch(function(){})},u7=_.lN("iframe");
_.m1(function(){l().isSupportedCountry&&(HLz()||_.U("enable_sign_in_promo")||!l().showSignInDialogCommand?u7.value&&G7(u7.value):bh(l().onMiniAppReadyCommand))},"ASuFde");
var JZ=function(){return _.C("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return ck()?0:-1},
el:u7})},G7=function(Sv,U5){U5=U5===void 0?!1:U5;
var mN=wK();mN&&(U5||mN.toString()!==Sv.getAttribute("src"))&&(d=jcx(l().source,{isAudioEnabled:Kq,onFirstFrameReady:A1,onGameReady:xZ,onSave:$Z,onLoad:ai,onError:F4,onSdkCalled:fS,onSdkPerformanceUpdate:ML,onClick:zu,onSendHighScore:cj,onBenchmarkingMessageReceived:pq,getLanguage:uB,onShareInviteCode:C2,onResourceLoaded:Fw,onOpenYTContent:XX,onShowMiniAppAd:Hk,onGameFrameReceived:QU,onGameAudioReceived:Yz},Sv,mN),OU(Sv,"load",function(){Gn(R,"ma_il");OU(Sv,"load",function(){G7(Sv,!0)})}),_.WG(Sv,
mN))},wK=function(){var Sv=l().url;
if(Sv&&(Sv=_.Av(Sv),Sv!==null)){if(l().source&&l().source==="MINI_APP_SOURCE_GAMESNACKS")Sv=_.Js(Sv,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.U("enable_origin_query_parameter_bugfix")){var U5=_.wl(_.P34(Sv.toString()));U5=new URLSearchParams(U5||"");U5.set("origin",window.location.origin);U5=U5.toString();Sv=_.m7(Sv).toString();Sv=_.i7(c1X.exec(Sv)[0]+(U5.trim()?"#"+U5:""))}return Sv}},Za=function(){var Sv={};
Sv=_.If("yt-mini-app-container-view-model__loading-screen",(Sv["yt-mini-app-container-view-model__loading-screen--fade-out"]=ck,Sv));var U5=function(){return ck()?1:ls()};
return _.C("div",{class:Sv},_.C(_.QH,{data:function(){return l().splashScreen}},{miniAppSplashScreenViewModel:function(mN){return _.C(HnL,{data:mN.data,
loadingProgress:U5})}}))},z_=function(){var Sv={};
return _.C("div",{class:_.If("yt-mini-app-container-view-model__pause-interstitial",(Sv["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!lB()},Sv["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=lB,Sv))},_.C(_.QH,{data:function(){return l().splashScreen}},{miniAppSplashScreenViewModel:function(U5){return _.C(HnL,{data:U5.data,
forPaused:!0})}}))},Y_=function(){J=[];
J.push(_.YJ(window,"visibilitychange",function(){X||f&&Dc()||(document.visibilityState==="visible"?ih():J1())}));
J.push(_.YJ(window,"pagehide",function(){ve()}));
J.push(_.YJ(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&q1.value.dispatchEvent(new Event("tap"))},0)}));
J.push(_.YJ(q1.value,"pointerdown",function(){hS$(R,!1)},!0));
J.push(_.YJ(q1.value,"pause",function(){X=!0;J1()}));
J.push(_.YJ(q1.value,"play",function(){X=!1;ih()}));
J.push(_.YJ(q1.value,"exit",function(){ve()}));
var Sv=navigator.keyboard,U5=Sv&&Sv.lock;J.push(_.YJ(window,bGX,function(){vk(o79());o79()?(l().hasPlayNextShelf&&G5("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),pv("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),U5&&Sv.lock(["Escape"])):(l().hasPlayNextShelf&&pv("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),G5("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),U5&&Sv.unlock())}));
l().showMultiplayer3pConsentDialogCommand&&J.push(_.YJ(window,"yt-playables-ack-3p-data-usage",function(){Afk(P)}));
l().confirmExitMiniAppCommandEdu&&J.push(_.YJ(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.N5("exit-mini-app-seen-state","true",2592E6)}));
l().onGameAudioDataReceivedCommand&&J.push(_.YJ(window,"message",function(mN){mN=mN.event_;var L2,C5=(L2=u7.value)==null?void 0:L2.src;if(C5&&mN.origin===(new URL(C5)).origin&&mN.data&&mN.data.type==="GAME_AUDIO"&&mN.data.audio&&mN.data.audio.length>0)if(_.U("enable_sending_unwrapped_game_audio_as_serialized_metadata"))kVn(l().onGameAudioDataReceivedCommand,mN.data.audio);else{var qC=new FileReader;qC.onload=function(){var aZ=new lO;var EU=new W3k;EU=_.mY(EU,1,qC.result);aZ=_.b7(aZ,4,EU);e$(l().onGameAudioDataReceivedCommand,
VNk(aZ))};
qC.readAsDataURL(new Blob([mN.data.audio]))}}))},b$=function(){J.forEach(function(Sv){aJ(Sv)});
window.removeEventListener("beforeunload",Jx,{capture:!0})},bh=function(Sv){Sv&&DKU(Sv,l().isEmbeddedInWebview||!1)},pv=function(Sv,U5){Sv=_.L(q1.value.getElementsByClassName(Sv));
for(var mN=Sv.next();!mN.done;mN=Sv.next())mN.value.classList.add(U5)},G5=function(Sv,U5){Sv=_.L(q1.value.getElementsByClassName(Sv));
for(var mN=Sv.next();!mN.done;mN=Sv.next())mN.value.classList.remove(U5)};
return function(){var Sv={};Sv=_.If("yt-mini-app-container-view-model",(Sv["yt-mini-app-container-view-model--desktop"]=!0,Sv["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return l().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Sv["yt-mini-app-container-view-model--ios-web-view"]=Qsj(),Sv["yt-mini-app-container-view-model--no-top-bar"]=function(){return!l().topBar},Sv["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return l().hasPlayNextShelf},Sv["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return l().hasPlayNextShelf},Sv["yt-mini-app-container-view-model--show-peek-below"]=function(){return!n2()&&l().hasPlayNextShelf},Sv));
var U5={};U5=_.If("yt-mini-app-container-view-model__content",(U5["yt-mini-app-container-view-model__content--desktop-content"]=!0,U5["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return l().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},U5["yt-mini-app-container-view-model--desktop-play-page"]=function(){return l().hasPlayNextShelf},U5));
return _.C("mini-app-container-view-model",{el:q1},_.C("div",{class:Sv},_.C(_.c,{cond:function(){return l().topBar&&!n2()},
then:function(){return _.C(_.QH,{data:function(){return l().topBar}},{miniAppTopBarViewModel:function(mN){return _.C(IW$,{data:mN.data,
isAudioEnabled:Kq,onAudioToggled:function(L2){jn(L2)},
score:D$,formattedScore:iB,onScoreChanged:function(L2){B=L2},
isEmbeddedInWebview:Dc,isSaved:VL,onSaveToggled:function(L2){Lc(L2)},
isExitMiniAppSeen:sM,isDesktopPlayPage:pe})}})}}),_.C("div",{class:U5},_.C(_.c,{cond:SL,
then:function(){return JZ()}}),_.C(_.c,{cond:function(){return l().isLivestream},
then:function(){return z_()}}),_.C(_.c,{cond:function(){return!l().isEmbeddedInWebview},
then:function(){return Za()}}))))}()},"Be");
QKB.idomCompat=!0;_.HI(QKB,"mini-app-container-view-model",{props:{data:_.pA}});var Mw9=_.Q(function(W){var l=W.data;return _.C("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.C("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.ip(function(){var V=l().onTap;V&&_.sZ(V)})},_.C(_.c,{cond:function(){return l().icon},
then:function(V){return _.C(_.wN,{icon:function(){return V().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.C("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return l().title})))},"Ce");
Mw9.idomCompat=!0;var Zn1=_.Q(function(W){var l=_.WS("div"),V=_.L(_.J4(void 0,void 0,"dg3xff")),f=V.next().value,r=V.next().value;V=_.L(_.J4(void 0,void 0,"AgHNfc"));var R=V.next().value,y=V.next().value;V=_.L(_.J4(void 0,void 0,"fuTKCc"));var P=V.next().value,n=V.next().value,B=function(){var w=f();return w!==void 0?Math.abs(w):void 0},d=function(){var w=B();
return w===void 0||w<=3},J=function(){var w=B();
var O=R(),S=P();w=w!==void 0&&O!==void 0&&S!==void 0?O-S-w:void 0;return w===void 0||w<=3},D=function(w){l.value&&l.value.scrollBy({top:0,
left:(_.M4("HTML_DIR")==="rtl"?-1:1)*w*l.value.clientWidth,behavior:"smooth"})},u=function(){var w;
r((w=l.value)==null?void 0:w.scrollLeft);var O;y((O=l.value)==null?void 0:O.scrollWidth);var S;n((S=l.value)==null?void 0:S.clientWidth)},H=function(){D(-.5)},p=function(){D(.5)};
V=_.ip(function(){u()});
_.iz(function(){u();if(l.value&&window.ResizeObserver){var w=new ResizeObserver(u);w.observe(l.value);_.Xc(function(){w.disconnect()})}});
var X={};return _.C("yt-sponsorships-scrollable-shelf",{class:_.If("ytdSponsorshipsScrollableShelfHost",W.className)},_.C("div",{class:_.If("ytdSponsorshipsScrollableShelfContent",(X.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return W.data().previousButton&&W.data().nextButton&&!d()&&!J()},X.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return W.data().previousButton&&!d()&&J()},X.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return W.data().nextButton&&
d()&&!J()},X)),
el:l,"on:scroll":V},W.children),_.C(_.c,{cond:function(){return!d()},
then:function(){return _.C(_.QH,{data:function(){return W.data().previousButton}},{buttonViewModel:function(w){return _.C(_.Nq,{data:w.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:H})}})}}),_.C(_.c,{cond:function(){return!J()},
then:function(){return _.C(_.QH,{data:function(){return W.data().nextButton}},{buttonViewModel:function(w){return _.C(_.Nq,{data:w.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:p})}})}}))},"De");
Zn1.idomCompat=!0;var aWL=_.Q(function(W){var l=W.data;W={};return _.C("yt-sponsorships-hub",{class:_.If("ytdSponsorshipsHubHost",(W.ytdSponsorshipsHubHostIndented=function(){return l().indented},W))},_.C("div",{class:"ytdSponsorshipsHubHeader"},_.C("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.C("div",{class:"ytdSponsorshipsHubAvatar"},_.C(_.QH,{data:function(){return l().avatar}},{avatarViewModel:_.gn})),_.C(_.c,{cond:function(){return l().badgeImage},
then:function(V){return _.C("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.C("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.C("div",{class:"ytdSponsorshipsHubBadge"},_.C(_.dN,{data:V,targetWidth:24,targetHeight:24,alt:""}))))}})),_.C("div",{class:"ytdSponsorshipsHubDetails"},_.C("div",{class:"ytdSponsorshipsHubTierName"},function(){return l().tierName}),_.C("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return l().membershipType}),_.C("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return l().membershipDurationOrExpiry})),_.C("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.C(_.QH,{data:function(){return l().manageButton}},{buttonViewModel:function(V){return _.C(_.Nq,{data:V.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.C(_.QH,{data:function(){return l().actionMenuButton}},{buttonViewModel:function(V){return _.C(_.Nq,{data:V.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.C("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return l().perksTitle}),_.C(Zn1,{data:function(){return{previousButton:l().previousPerkButton,
nextButton:l().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.C("div",{class:"ytdSponsorshipsHubPerkCards"},_.C(_.QH,{data:function(){return l().perkCards}},{sponsorshipsHubPerkCardViewModel:Mw9}),_.C(_.c,{cond:function(){return l().viewAllPerksButton},
then:function(V){return _.C(One,{data:V})}}))))},"Ee");
aWL.idomCompat=!0;var One=_.Q(function(W){var l=W.data;return _.C("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.C(_.QH,{data:function(){return l().button}},{buttonViewModel:_.Nq}),_.C("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.C("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return l().title}),_.C("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return l().subtitle})))},"Fe");
One.idomCompat=!0;_.HI(aWL,"yt-sponsorships-hub",{props:{data:_.pA}});_.zFZ=_.Q(function(W){var l=W.data;return _.C("yt-dual-avatar-view-model",{class:_.If("ytDualAvatarViewModelHost",W.className),style:_.Tm({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var V;return((V=l().badgeCutoutRadius)!=null?V:14)+"px"}})},_.C("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.C(_.QH,{data:function(){return l().startAvatar}},{avatarViewModel:_.gn}),_.C(_.QH,{data:function(){return l().endAvatar}},{avatarViewModel:_.gn})),_.C(_.QH,{data:function(){return l().badge}},
{contentPreviewImageViewModel:function(V){return _.C("div",{class:"ytDualAvatarViewModelBadge"},_.C(_.wn,{data:V.data}))}}))},"Ge");
_.zFZ.idomCompat=!0;var Y4X=_.Q(function(W){var l=W.data;var V,f=!((V=_.tY().resolve(_.R0(_.nP)))==null||!V());W=_.v4(function(){var d,J,D=f?(d=l().header)==null?void 0:d.backgroundColorDarkMode:(J=l().header)==null?void 0:J.backgroundColorLightMode;if(D!==void 0)return _.sD(D)},void 0,"TDdh7d");
V=_.v4(function(){var d,J;return f?(d=l().header)==null?void 0:d.backgroundImagePart1Dark:(J=l().header)==null?void 0:J.backgroundImagePart1Light},void 0,"X0peMe");
var r=_.v4(function(){var d,J;return f?(d=l().header)==null?void 0:d.backgroundImagePart2Dark:(J=l().header)==null?void 0:J.backgroundImagePart2Light},void 0,"an0Hzd"),R=_.v4(function(){return _.M4("HTML_DIR")==="rtl"},void 0,"BltEgb"),y=_.WS("yt-sponsorships-perks-list"),P=!1,n=function(){var d=y.value;
if(d&&!P){var J,D=(J=d.parentElement)==null?void 0:J.parentElement;if(D)for(d=d.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),J=0;J<d.length;++J){var u=d[J];if(u instanceof HTMLElement){D.scrollTo({top:u.offsetTop+u.clientHeight/2-D.clientHeight/2,behavior:"smooth"});P=!0;break}}}};
_.mw(function(){var d=y.value;if(d&&window.ResizeObserver){var J=new ResizeObserver(n);J.observe(d);_.Xc(function(){J.disconnect()})}});
var B={};return _.C("yt-sponsorships-perks-list",{el:y,class:_.If("ytdSponsorshipsPerksListHost",(B.ytdSponsorshipsPerksListHorizontalPadding=function(){return l().horizontalPaddingEnabled},B))},_.C("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.C("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.Tm({"background-color":W})},_.C("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.C(_.c,{cond:V,then:function(d){var J={};return _.C("div",{class:_.If((J.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=f,J.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!f,J.ytdSponsorshipsPerksListFlipped=R,J))},_.C(_.dN,{data:d,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.C("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.C(_.c,{cond:r,
then:function(d){var J={};return _.C("div",{class:_.If((J.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=f,J.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!f,J.ytdSponsorshipsPerksListFlipped=R,J))},_.C(_.dN,{data:d,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.C("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.C(_.QH,{data:function(){var d;
return(d=l().header)==null?void 0:d.dualAvatar}},{dualAvatarViewModel:_.zFZ})))),_.C("div",{class:"ytdSponsorshipsPerksListBody"},_.C("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return l().title}),_.C(_.c,{cond:function(){return l().perks},
then:function(d){return _.C(_.G3,{each:d},function(J,D){var u={};return _.C("div",{class:_.If("ytdSponsorshipsPerksListPerkContainer",(u.ytdSponsorshipsPerksListSelectedPerk=function(){var H=D(),p=l().selectedPerkIndex;return H===p},u))},_.C(_.c,{cond:function(){return D()>0},
then:function(){return _.C("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.C("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.C(_.c,{cond:function(){return J.icon},
then:function(H){return _.C(_.wN,{icon:function(){return H().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.C("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.C("div",{class:"ytdSponsorshipsPerksListPerkTitle"},J.title),_.C("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.C(_.bH,{text:J.description})),_.C(_.c,{cond:function(){return J.instructions},
then:function(){var H,p;return _.C("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.C("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(H=J.instructions)==null?void 0:H.title),_.C("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.C(_.bH,{text:(p=J.instructions)==null?void 0:p.text})))}}))),_.C(_.c,{cond:function(){return J.emoji},
then:function(H){return _.C("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.C(_.G3,{each:function(){return H()}},function(p){return _.C(_.dN,{data:p,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.C(NuX,{data:J}))})}})))},"He");
Y4X.idomCompat=!0;var NuX=_.Q(function(W){var l=W.data;var V=function(y,P){return y===P},f=function(){var y=l();
y=_.k(y==null?void 0:y.badgesShelf,GoI);return y!==void 0&&y!==null?y:{previousButton:{},nextButton:{}}},r=_.lN("div"),R=function(){var y=r.value;
if(y){var P=y.parentElement;if(P){y=y.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var n=0;n<y.length;++n){var B=y[n];if(B instanceof HTMLElement){P.scrollTo({left:B.offsetLeft+B.clientWidth/2-P.clientWidth/2,behavior:"instant"});break}}}}};
_.mw(function(){var y=r.value;if(y){var P=new ResizeObserver(R);P.observe(y);_.Xc(function(){P.disconnect()})}});
return _.C("div",null,_.C(_.c,{cond:function(){return l().badges},
then:function(y){return _.C(Zn1,{data:f},_.C("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:r},_.C(_.G3,{each:function(){return y()}},function(P,n){var B={},d={},J={};
return _.C("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.C(_.c,{cond:function(){return n()>0},
then:function(){return _.C("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.C("div",{class:_.If("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(B.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return V(n(),l().currentBadgeIndex)},B.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!V(n(),l().currentBadgeIndex)},B))},_.C("div",{class:_.If("ytdSponsorshipsPerksListLoyaltyBadge",(d.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return V(n(),
l().currentBadgeIndex)},d.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!V(n(),l().currentBadgeIndex)},d))},_.C(_.c,{cond:function(){return P.image},
then:function(D){var u={};return _.C("div",{class:_.If((u.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return V(n(),l().currentBadgeIndex)},u.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!V(n(),l().currentBadgeIndex)},u))},_.C(_.dN,{data:D,
alt:""}))}})),_.C("div",{class:_.If("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(J.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return V(n(),l().currentBadgeIndex)},J))},P.title)))})))}}))},"Ie");
NuX.idomCompat=!0;_.HI(Y4X,"yt-sponsorships-perks-list",{props:{data:_.pA}});_.HI(_.Q(function(W){return _.C("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.C(_.c,{cond:function(){return W.data().image},
then:function(l){return _.C(_.dN,{className:"ytwFantasyEmptyStateViewModelImage",data:l,ariaHidden:!0,alt:""})}}),_.C(_.bH,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return W.data().title}}),_.C(_.bH,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return W.data().subtitle}}),_.C(_.QH,{data:function(){return W.data().primaryButton}},{buttonViewModel:function(l){return _.C(_.Nq,{data:l.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Je"),"ytw-fantasy-empty-state-view-model",{props:{data:_.pA}});var xpM;var eFL=_.Q(function(W){var l=W.data;var V=W.uniqueId;var f=W.overrides;W=_.v4(function(){var r,R=((r=l().timedAnimationData)==null?void 0:r.animationTiming)||[];return{uniqueId:V(),timings:R,experimentEnabled:R.length>0,enabled:R.length>0}},void 0,"hiuXI");
return _.C("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.C(aqc,{settings:W},_.C(_.QH,{data:function(){return l().buttonRenderer}},{buttonRenderer:function(r){return _.C(_.G2,{data:r.data,
buttonOverrides:f})}})))},"Ke");
eFL.idomCompat=!0;_.HI(eFL,"timed-animation-button-renderer",{props:{data:_.pA,uniqueId:_.pA,overrides:_.pA}});var m5=function(){var W=_.I.apply(this,arguments)||this;W.hideJoinButtonBeforeSubscribed=_.U("hide_join_button_before_subscribed");W.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return W};
_.v(m5,_.I);_.t=m5.prototype;_.t.hasShowDialogCommand=function(W){return!!_.k(W,wLL)};
_.t.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"}}}};
_.t.updateJoinButtonOverrides=function(){var W,l;(W=_.GS(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(l=W.polymerController)==null||l.set("overrides",this.joinButtonOverrides);if(W=_.GS(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))W.overrides=this.joinButtonOverrides};
_.t.handleButtonRefreshAction=function(W){if(W=_.k(W,cSc))this.set("data.membershipButton",W.membershipButton),this.notifyPath("data.membershipButton")};
_.t.onYtServiceRequestError=function(W){_.Lh(this.hostElement,W.detail.error.message)};
_.t.onKeydown=function(W){if(W.key==="Enter"){var l;(l=this.data)!=null&&l.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.t.handleUnsubscribeAction=function(){var W,l,V;((W=this.data)==null?void 0:(l=W.membershipButton)==null?void 0:(V=l.buttonRenderer)==null?void 0:V.style)==="STYLE_PRIMARY"&&_.GS(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.rc.Object.defineProperties(m5.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.subscriptionStateEntity)==null||!W.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var W,l=(W=this.data)==null?void 0:W.membershipButton,V;W=(l==null?void 0:l.buttonRenderer)||_.k(l==null?void 0:(V=l.timedAnimationButtonRenderer)==null?void 0:V.buttonRenderer,_.CE);return(W==null?void 0:W.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(W==null?void 0:W.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(W==null?void 0:W.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var W;if(this.hasShowDialogCommand((W=this.data)==null?void 0:W.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var W;if(this.hasShowDialogCommand((W=this.data)==null?void 0:W.navigationEndpoint))return"button"}}});
m5.prototype.onYtServiceRequestError=m5.prototype.onYtServiceRequestError;m5.prototype.updateJoinButtonOverrides=m5.prototype.updateJoinButtonOverrides;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],m5.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],m5.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],m5.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.dx),_.z("design:type",Object)],m5.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],m5.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.VO),_.z("design:type",Object)],m5.prototype,"ironButtonState",void 0);_.a([_.b(),_.z("design:type",Object)],m5.prototype,"data",void 0);_.a([_.G("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.z("design:type",Object),_.z("design:paramtypes",[])],m5.prototype,"hideJoin",null);
_.a([_.b(),_.z("design:type",String)],m5.prototype,"subscribeKey",void 0);_.a([_.b({selectorArgs:["subscribeKey"],selector:GcY}),_.z("design:type",Object)],m5.prototype,"subscriptionStateEntity",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],m5.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.a([_.G("subscriptionStateEntity"),_.b({reflectToAttribute:!0}),_.z("design:type",Object),_.z("design:paramtypes",[])],m5.prototype,"subscribed",null);
_.a([_.G("subscribed","data.membershipButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],m5.prototype,"joinButtonOverrides",null);_.a([_.G("data.navigationEndpoint"),_.z("design:type",Object),_.z("design:paramtypes",[])],m5.prototype,"channelNameTabIndex",null);_.a([_.G("data.navigationEndpoint"),_.z("design:type",Object),_.z("design:paramtypes",[])],m5.prototype,"channelNameRole",null);
_.a([_.TS("joinButtonOverrides"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],m5.prototype,"updateJoinButtonOverrides",null);_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],m5.prototype,"onYtServiceRequestError",null);_.a([_.A({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],m5);
var q4L=_.GG()(m5,"ytd-video-owner-renderer",function(){if(xpM===void 0){var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);xpM=W}W=xpM;return W},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.HI(_.Q(function(W){var l=W.data;var V;W=_.L(_.J4(!((V=_.YC("yt-mini-app-is-theater-mode-enabled"))==null||!V),void 0,"i2pjVd"));var f=W.next().value,r=W.next().value;V=_.L(_.J4(!1,void 0,"ga7V5c"));var R=V.next().value,y=V.next().value;_.mw(function(){var B=_.YJ(window,bGX,function(){y(o79())});
_.Xc(function(){aJ(B)})});
var P;V=(P=_.tY().resolve(_.R0(Dbv)))!=null?P:function(){return _.C("div",null)};
_.$_("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){r(!0);_.N5("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.$_("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){r(!1);_.N5("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
P={};W={};var n={};return _.C("mini-app-play-page-renderer",{class:_.If("miniAppPlayPageRendererHost",(P.miniAppPlayPageRendererHostDetailsView=function(){return!f()},P))},_.C("div",{class:_.If("miniAppPlayPageRendererGameContainer",(W.miniAppPlayPageRendererGameContainerDetailsView=function(){return!f()},W))},_.C(_.QH,{data:function(){return l().containerViewModel}},{miniAppContainerViewModel:QKB}),_.C(_.c,{cond:function(){return l().channel&&l().subscribeButton},
then:function(){var B={};return _.C("div",{class:_.If("miniAppPlayPageRendererChannelContainer",(B.miniAppPlayPageRendererHideVisibility=function(){return R()},B))},_.C(_.QH,{data:function(){return l().channel}},{videoOwnerRenderer:function(d){return _.C(q4L,{data:d.data})}}),_.C(_.QH,{data:function(){return l().subscribeButton}},{subscribeButtonViewModel:function(d){return _.C(_.gi,{data:d.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.C(_.c,{cond:function(){return!f()&&l().description},
then:function(){var B={};return _.C("div",{class:_.If("miniAppPlayPageRendererMiniAppDescriptionWrapper",(B.miniAppPlayPageRendererHideVisibility=function(){return R()},B))},_.C("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return l().description}))}})),_.C("div",{class:_.If("miniAppPlayPageRendererPlayNextContainer",(n.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!f()},n.miniAppPlayPageRendererHideVisibility=function(){return R()},n))},_.C(_.QH,{data:function(){return l().sectionList}},
{sectionListRenderer:V})))},"Le"),"mini-app-play-page-renderer",{props:{data:_.pA}});var XQ=function(){var W=_.I.apply(this,arguments)||this;W.isSearch=!1;W.isConstrainedList=!1;W.hasChipsBar=!1;W.inReplyPanel=!1;W.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"}};W.monitorScroll=!0;W.SCROLL_ANIMATION_DURATION_MS=300;W.nextContinuation={continuationType:"sectionListContinuation"};return W};
_.v(XQ,_.I);_.t=XQ.prototype;
_.t.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(W){switch(W.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:_.U("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.U("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.t.created=function(){var W=this;this.JSC$17047_scrollAnimation=new _.KQ(function(l){W.hostElement.scrollTop=l})};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.t.getItemsPath=function(){return"data.contents"};
_.t.replacePrimaryContent=function(W){this.set("data.contents",W)};
_.t.computeHasSortFilter=function(W){return!!W&&!!W.sortFilterSubMenuRenderer};
_.t.computeShouldScrollInPanel=function(W){var l;return!!(W==null?0:(l=W.scrollPaneStyle)==null?0:l.scrollable)};
_.t.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.pG(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.t.scrollToTop=function(){this.hostElement.scrollTop=0};
_.t.scrollToItemSection=function(W){if(W=this.getItemByIdentifier(W))W=this.getScrollPositionForItem(W),this.hostElement.scrollTop!==W&&this.JSC$17047_scrollAnimation.start(this.hostElement.scrollTop,W,this.SCROLL_ANIMATION_DURATION_MS)};
_.t.getItemByIdentifier=function(W){var l=this.contents.querySelectorAll("ytd-item-section-renderer");if(l&&l.length!==0){var V=Array.from(l).findIndex(function(f){return f.sectionIdentifier===W});
return l[V===-1?0:V]}};
_.t.getScrollPositionForItem=function(W){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===W)return 0;W=_.NC(W).y+this.hostElement.scrollTop-_.NC(this.hostElement).y;return Math.min(W,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.rc.Object.defineProperties(XQ.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.targetId)==="browse-feedFEclips"}}});
XQ.prototype.onScroll=XQ.prototype.onScroll;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],XQ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.AM.YtLazyListBehavior),_.z("design:type",Object)],XQ.prototype,"ytLazyListBehavior",void 0);_.a([_.F(_.HH.YtNextContinuationBehavior),_.z("design:type",Object)],XQ.prototype,"ytNextContinuationBehavior",void 0);
_.a([_.F(_.TrM),_.z("design:type",Object)],XQ.prototype,"ytBooleanLogicBehavior",void 0);_.a([_.F(_.vH),_.z("design:type",Object)],XQ.prototype,"ytContinuationHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],XQ.prototype,"data",void 0);_.a([_.b({value:2}),_.z("design:type",Number)],XQ.prototype,"initialCount",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],XQ.prototype,"autoFill",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.z("design:type",Boolean)],XQ.prototype,"hasSortFilter",void 0);_.a([_.b({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.z("design:type",Boolean)],XQ.prototype,"hideBottomSeparator",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.z("design:type",Boolean)],XQ.prototype,"shouldScrollInPanel",void 0);
_.a([_.b(),_.z("design:type",Object)],XQ.prototype,"isSearch",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],XQ.prototype,"isConstrainedList",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],XQ.prototype,"responsiveSizing",void 0);_.a([_.b(),_.z("design:type",Object)],XQ.prototype,"hasChipsBar",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],XQ.prototype,"pageSubtype",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],XQ.prototype,"engagementPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],XQ.prototype,"liveChatEngagementPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],XQ.prototype,"inReplyPanel",void 0);_.a([_.Aa("#action-button"),_.z("design:type",HTMLElement)],XQ.prototype,"actionButton",void 0);_.a([_.b(),_.z("design:type",Object)],XQ.prototype,"scrollUpButtonData",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],XQ.prototype,"engagementPanelDropdown",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],XQ.prototype,"engagementPanelDialog",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],XQ.prototype,"isClipList",null);_.a([_.Aa("#contents"),_.z("design:type",HTMLElement)],XQ.prototype,"monitorScrollElement",void 0);_.a([_.Aa("#contents"),_.z("design:type",HTMLElement)],XQ.prototype,"contents",void 0);
_.a([_.XI("scroll"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],XQ.prototype,"onScroll",null);_.a([_.A({is:"ytd-section-list-renderer",disableElementRegistration:!0})],XQ);
var hFv=_.GG()(XQ,"ytd-section-list-renderer",function(){if(J9a===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);J9a=W}W=J9a;return W},{mode:1});var S4X;var Enc;var $pB;var Wje;var Tn=function(){return _.I.apply(this,arguments)||this};
_.v(Tn,_.I);Tn.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
Tn.prototype.onLikeButtonClick=function(W){W.stopPropagation();W.preventDefault()};
_.rc.Object.defineProperties(Tn.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)!=null&&W.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)})}}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Tn.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],Tn.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Tn.prototype,"ytRendererStamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Tn.prototype,"data",void 0);
_.a([_.b({selectorArgs:["data.likeStatusEntityKey"],selector:Wp}),_.z("design:type",Object)],Tn.prototype,"likeStatusEntity",void 0);_.a([_.G("data","likeStatusEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],Tn.prototype,"likeButtonRenderer",null);_.a([_.A({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],Tn);
_.Z(Tn,"ytd-slim-metadata-toggle-button-renderer",function(){if(Wje!==void 0)return Wje;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
return Wje=W},{mode:1});var wb=function(){var W=_.I.apply(this,arguments)||this;W.minimizePipBreakages=_.U("web_pip_minimize_breakages");W.showEqualizer=_.U("web_enable_playlist_video_lockup_equalizer");W.watchColorUpdate=_.U("kevlar_watch_color_update");W.actionMap={};return W};
_.v(wb,_.I);_.t=wb.prototype;_.t.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"}}}};
_.t.computeEditableClass=function(W){return W&&W.menu?"editable":""};
_.t.computeSelected=function(W){return!(W==null||!W.selected)};
_.t.computeUseColorPalette=function(W){return!!((W==null?0:W.lightColorPalette)&&(W==null?0:W.darkColorPalette))};
_.t.computeLargerPlaylistThumbs=function(W,l){return _.U("web_enable_playlist_bigger_thumbnails")&&!l};
_.t.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.t.onYtServiceRequestSent=function(W,l){l.endpoint&&this.isHideEnclosingAction(l.endpoint)&&!this.selected&&RbB(_.kC(),this.data.videoId)};
_.t.isHideEnclosingAction=function(W){var l=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",W);W=this.get("likeEndpoint.status",W)==="INDIFFERENT";return l||W};
_.t.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.t.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.rc.Object.defineProperties(wb.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.U("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 W;return!!(this.withinMiniplayer&&((W=this.data)==null?0:W.actionButtons))}}});
wb.prototype.onYtServiceRequestSent=wb.prototype.onYtServiceRequestSent;wb.prototype.canReorderChanged=wb.prototype.canReorderChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],wb.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],wb.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],wb.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.FK),_.z("design:type",Object)],wb.prototype,"ytdLockupBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],wb.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],wb.prototype,"withinMiniplayer",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],wb.prototype,"minimizePipBreakages",void 0);_.a([_.b({computed:"computeSelected(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],wb.prototype,"selected",void 0);
_.a([_.b({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],wb.prototype,"useColorPalette",void 0);_.a([_.b({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.z("design:type",Boolean)],wb.prototype,"largerPlaylistThumbs",void 0);_.a([_.b(),_.z("design:type",Object)],wb.prototype,"showEqualizer",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],wb.prototype,"canReorder",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],wb.prototype,"touchPersistentDragHandle",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],wb.prototype,"handleIsHovered",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],wb.prototype,"watchColorUpdate",void 0);_.a([_.b(),_.z("design:type",String),_.z("design:paramtypes",[])],wb.prototype,"reorderIcon",null);
_.a([_.G("largerPlaylistThumbs"),_.z("design:type",Number),_.z("design:paramtypes",[])],wb.prototype,"thumbnailWidth",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],wb.prototype,"showActionButtons",null);_.a([_.zS("canReorder"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wb.prototype,"canReorderChanged",null);
_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],wb.prototype,"onYtServiceRequestSent",null);_.a([_.A({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],wb);
_.Z(wb,"ytd-playlist-panel-video-renderer",function(){if($pB!==void 0)return $pB;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return $pB=W},{mode:2});var A3=function(){return _.I.apply(this,arguments)||this};
_.v(A3,_.I);A3.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],A3.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],A3.prototype,"data",void 0);_.a([_.A({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],A3);
_.Z(A3,"ytd-playlist-panel-supported-items",function(){if(Enc!==void 0)return Enc;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Enc=
W},{mode:1});pEX=!0;NCe("\\P{N}");var Awv;var l4L=_.wg("END_OF_PLAYLIST",void 0,"End of playlist"),Vv2=_.wg("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),Qp=function(){var W=_.I.apply(this,arguments)||this;W.minimizePipBreakages=_.U("web_pip_minimize_breakages");W.updatedCoursePanel=_.U("move_three_dot_menu_to_playlist_panel_header_for_courses");W.hideHeaderText=!1;W.useColorPalette=!1;W.collapsed=!1;W.collapsedPreServerOverride="not_tracked";W.isHovered=!1;W.modernPanels=_.U("kevlar_watch_modern_panels");
W.expandLabel=_.wg("MINIPLAYER_EXPAND_LABEL");W.collapseLabel=_.wg("MINIPLAYER_COLLAPSE_LABEL");W.isFloating=!1;W.metaPanel=!1;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};W.currentIndex=void 0;return W};
_.v(Qp,_.I);_.t=Qp.prototype;
_.t.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"}}}};
_.t.created=function(){this.scrollThrottle=new _.t$(this.onThrottledScroll,1E3,this)};
_.t.onMouseEnter=function(){this.isHovered=!0};
_.t.onMouseLeave=function(){this.isHovered=!1};
_.t.computeOverflowMenuData=function(W){return W&&W.menu?W.menu:null};
_.t.computeCollapsible=function(W){return!W};
_.t.computeHasPlaylistButtons=function(W){return!(!W||!W.playlistButtons)};
_.t.computeHasSeparateSaveButton=function(W){return!(!W||!W.saveButton)};
_.t.computeHasToolbarButton=function(W,l){return!(!W||!(l||W.saveButton||W.menu))};
_.t.computePlaylistType=function(W){if(W&&W.playlistId)return W.playlistId.substring(0,4)};
_.t.computeCanReorder=function(W){return W?W.playlistId&&W.playlistId.startsWith("TLPQ")?!0:!!W.isEditable&&!W.isInfinite:!1};
_.t.attached=function(){var W=this;try{_.tY().resolve(_.dZ).setPlaylistComponent(this.hostElement)}catch(l){if(_.U("kevlar_park_on_playlist_token_killswitch"))throw l;_.DI().parkOrScheduleJob(function(){_.tY().resolve(_.dZ).setPlaylistComponent(W.hostElement)},2,"ci")}_.Hh(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.t.detached=function(){_.KN(this.hostElement)};
_.t.computeTrailingIcon=function(W,l,V){return V?l?"yt-icons:collapse":"yt-icons:close":l?"yt-icons:expand":_.U("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.t.computeIndexMessage=function(W,l){return ZLS(W+1)+" / "+ZLS(l)};
_.t.onRenderStamperFinished=function(){if(this.scrollForStampDom){var W=!0;this.isHovered&&(W=!1);if(this.collapsed||this.hidden)W=!1;W&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.t.collapseChanged=function(){var W=this;this.collapsed||(_.Kt(this.ytTaskEmitterBehavior.getTaskManager(),function(){W.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.t.hiddenChanged=function(){var W=this;this.hidden||_.Kt(this.ytTaskEmitterBehavior.getTaskManager(),function(){W.scrollToCurrentVideo()})};
_.t.setupReordering=function(){var W=_.GS(this.hostElement).querySelector("#items");wcX?_.jqk(this.ytReorderableBehavior,W,W,"playlist-drag-handle"):_.jqk(this.ytReorderableBehavior,W,W)};
_.t.scrollToCurrentVideo=function(){var W=this;_.w8.addJob(function(){var l=_.GS(W.hostElement).querySelector("#items");if(l){l.style.setProperty("padding-bottom","");var V=_.GS(W.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(V){l=V.parentElement||_.YR(document);var f=l||_.YR(document);var r=_.NC(V),R=_.NC(f),y=_.RyZ(f);if(f==_.YR(document)){var P=r.x-f.scrollLeft;r=r.y-f.scrollTop}else P=r.x-R.x-y.left,r=r.y-R.y-y.top;V=lak(V);R=f.clientHeight-
V.height;y=f.scrollLeft;var n=f.scrollTop;y+=P-(f.clientWidth-V.width)/2;f=new _.O1(y,n+(r-R/2));l.scrollLeft=f.x;l.scrollTop=f.y}}},8)};
_.t.dataChanged=function(){var W=this;_.opL(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.V9(this,function(){_.pS(W.ytTaskEmitterBehavior.getTaskManager(),function(){W.ytRendererBehavior.markDirty();W.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.t.onFullBleedPlayerChanged=function(){_.U("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.t.onFullscreenChanged=function(){_.U("web_watch_imax_theater_mode")||_.U("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.t.updateNowPlayingOverlay=function(){_.U("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.t.onPlaylistLockupNowPlaying=function(W,l){l&&(this.activeNowPlayingRenderer=l);this.updateNowPlayingOverlay()};
_.t.onScroll=function(){this.scrollThrottle.fire()};
_.t.onThrottledScroll=function(){var W=this;_.pS(this.ytTaskEmitterBehavior.getTaskManager(),function(){W.ytRendererBehavior.markDirty()})};
_.t.onToggleExpanded=function(W){!this.collapsible||W&&(_.Ja(W).tagName==="A"||_.Cv(_.d_(W),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.t.setCollapsed=function(W){this.collapsible&&(this.collapsed=W,_.bj(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.t.handleCollapsedFromData=function(W){if(W){var l=W.playlistPanelCollapseState;l==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||l==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),l=l==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==l&&this.setCollapsed(l)):this.currentPlaylistId!==W.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(l=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==l&&this.setCollapsed(l),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=W.playlistId}};
_.t.handleDrop=function(W){var l=W.currDragItem;W=l.data.playlistSetVideoId;var V=_.Mg(l.parentNode.childNodes,l),f=void 0;V>0&&(f=l.parentNode.childNodes[V-1].data.playlistSetVideoId);l=_.kC();if(l.responsePlaylistData&&l.responsePlaylistData.contents){var r=SBz(W,l.responsePlaylistData);l.responsePlaylistData=(0,_.MC.unsafeClone)(l.responsePlaylistData);jY4(l.responsePlaylistData.contents,r,V);l.queueProxy?XHM(l.queueProxy,r,V,W,f):l.playlistProxy&&XHM(l.playlistProxy,r,V,W,f);_.v3(l,_.H3(l,l.response?
l.response.autoplayRenderer:void 0))}};
_.t.handleDarkModeChange=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W)};
_.t.colorPaletteChanged=function(){var W,l=((W=this.data)==null?void 0:W.contents)||[],V;W=_.L(l);for(l=W.next();!l.done;l=W.next()){l=l.value;var f=void 0;if((f=l.playlistPanelVideoRenderer)==null?0:f.selected){W=l.playlistPanelVideoRenderer;f=l=void 0;(V=this.isDarkTheme?(l=W)==null?void 0:l.darkColorPalette:(f=W)==null?void 0:f.lightColorPalette)&&_.Yh(this.hostElement,V);break}}this.useColorPalette=!!V};
_.rc.Object.defineProperties(Qp.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var W,l;return!((W=this.data)==null||!W.playlistId)&&!((l=this.data)==null||!l.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var W=_.tY().resolve(_.R0(_.dZ)),l;if(((l=this.data)==null?0:l.contents)&&(W==null?0:W.hasAutoplayData())){var V;if(((V=this.playlistLoopStateEntity)==null?void 0:V.state)==="PLAYLIST_LOOP_STATE_ONE"){if(W=this.data.currentIndex,W!==void 0){var f,r;var R=(f=this.data.contents[W])==null?void 0:(r=f.playlistPanelVideoRenderer)==null?void 0:r.title}}else{var y,P=(y=_.k(W.getAutoplayEndpoint(),_.Bh))==null?void 0:y.videoId,n,B;R=(n=this.data.contents.find(function(d){var J;
return((J=d.playlistPanelVideoRenderer)==null?void 0:J.videoId)===P}))==null?void 0:(B=n.playlistPanelVideoRenderer)==null?void 0:B.title}return R}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)!=null&&W.nextVideoLabel?this.nextVideoTitle?_.dE(this.data.nextVideoLabel)+":":l4L:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.data)==null?0:W.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.U("web_mix_long_byline_from_data"))return _.Bl(Vv2);var l;return(l=this.data)==null?void 0:l.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var W,l,V,f=(W=this.data)==null?void 0:(l=W.playlistButtons)==null?void 0:(V=l.menuRenderer)==null?void 0:V.topLevelButtons;if(f)for(W=_.L(f),l=W.next();!l.done;l=W.next())if(l=l.value,l.playlistLoopButtonRenderer)return l.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var W;return!!(this.collapsed&&((W=this.data)==null?0:W.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.U("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
Qp.prototype.colorPaletteChanged=Qp.prototype.colorPaletteChanged;Qp.prototype.onPlaylistLockupNowPlaying=Qp.prototype.onPlaylistLockupNowPlaying;Qp.prototype.updateNowPlayingOverlay=Qp.prototype.updateNowPlayingOverlay;Qp.prototype.onFullscreenChanged=Qp.prototype.onFullscreenChanged;Qp.prototype.onFullBleedPlayerChanged=Qp.prototype.onFullBleedPlayerChanged;Qp.prototype.dataChanged=Qp.prototype.dataChanged;Qp.prototype.hiddenChanged=Qp.prototype.hiddenChanged;Qp.prototype.collapseChanged=Qp.prototype.collapseChanged;
Qp.prototype.onRenderStamperFinished=Qp.prototype.onRenderStamperFinished;Qp.prototype.onMouseLeave=Qp.prototype.onMouseLeave;Qp.prototype.onMouseEnter=Qp.prototype.onMouseEnter;_.a([_.F(_.Wo),_.z("design:type",Object)],Qp.prototype,"ironResizableBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Qp.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(bm9.YtPlaylistPanelBehavior),_.z("design:type",Object)],Qp.prototype,"ytPlaylistPanelBehavior",void 0);_.a([_.F(_.mB.YtTaskEmitterBehavior),_.z("design:type",Object)],Qp.prototype,"ytTaskEmitterBehavior",void 0);_.a([_.F(_.IZa),_.z("design:type",Object)],Qp.prototype,"ytReorderableBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Qp.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],Qp.prototype,"ytdReduxBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Qp.prototype,"actionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Qp.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Qp.prototype,"autoplayData",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Qp.prototype,"withinMiniplayer",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Qp.prototype,"minimizePipBreakages",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Qp.prototype,"updatedCoursePanel",void 0);_.a([_.b({computed:"setMenuData_(data)"}),_.z("design:type",Object)],Qp.prototype,"menuRendererData",void 0);_.a([_.b({computed:"computeOverflowMenuData(data)"}),_.z("design:type",Object)],Qp.prototype,"overflowMenuDataTopRow",void 0);_.a([_.b({computed:"computeOverflowMenuData(data)"}),_.z("design:type",Object)],Qp.prototype,"overflowMenuData",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Qp.prototype,"hideHeaderText",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Qp.prototype,"useColorPalette",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.z("design:type",Boolean)],Qp.prototype,"collapsible",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Qp.prototype,"collapsed",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Qp.prototype,"hidden",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.z("design:type",Boolean)],Qp.prototype,"hasPlaylistButtons",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.z("design:type",Boolean)],Qp.prototype,"hasSeparateSaveButton",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.z("design:type",Boolean)],Qp.prototype,"hasToolbar",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.z("design:type",String)],Qp.prototype,"playlistType",void 0);_.a([_.b(),_.z("design:type",Object)],Qp.prototype,"isHovered",void 0);_.a([_.b({selectorArgs:["playlistLoopStateEntityKey"],selector:_.imS}),_.z("design:type",Object)],Qp.prototype,"playlistLoopStateEntity",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Qp.prototype,"modernPanels",void 0);_.a([_.b({value:56}),_.z("design:type",Number)],Qp.prototype,"scrollMargin",void 0);_.a([_.b({computed:"computeCanReorder(data)"}),_.z("design:type",Boolean)],Qp.prototype,"canReorder",void 0);_.a([_.b(),_.z("design:type",Object)],Qp.prototype,"expandLabel",void 0);_.a([_.b(),_.z("design:type",Object)],Qp.prototype,"collapseLabel",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Qp.prototype,"isFloating",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Qp.prototype,"metaPanel",void 0);_.a([_.b({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.z("design:type",String)],Qp.prototype,"trailingIcon",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Qp.prototype,"isDarkTheme",void 0);
_.a([_.b({selector:_.l0}),_.z("design:type",Boolean)],Qp.prototype,"miniplayerIsActive",void 0);_.a([_.b({selector:function(W){return W.watch.playerState}}),
_.z("design:type",Number)],Qp.prototype,"playerState",void 0);_.a([_.b({selector:_.S1}),_.z("design:type",Boolean)],Qp.prototype,"isFullscreen",void 0);_.a([_.b({selector:_.h2}),_.z("design:type",Boolean)],Qp.prototype,"isTheaterMode",void 0);_.a([_.b(),_.z("design:type",Object)],Qp.prototype,"activeNowPlayingRenderer",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Qp.prototype,"moveThreeDotMenuToTopRow",null);
_.a([_.G("data","autoplayData","playlistLoopStateEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],Qp.prototype,"nextVideoTitle",null);_.a([_.G("data","nextVideoTitle"),_.z("design:type",String),_.z("design:paramtypes",[])],Qp.prototype,"nextVideoLabel",null);_.a([_.G("collapsed"),_.z("design:type",String),_.z("design:paramtypes",[])],Qp.prototype,"buttonAriaLabel",null);
_.a([_.G("data","playlistId","longBylineText"),_.z("design:type",Object),_.z("design:paramtypes",[])],Qp.prototype,"mixLongByLine",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Qp.prototype,"playlistLoopStateEntityKey",null);_.a([_.XI("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qp.prototype,"onMouseEnter",null);
_.a([_.XI("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qp.prototype,"onMouseLeave",null);_.a([_.b({reflectToAttribute:!0}),_.G("data","collapsed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Qp.prototype,"showNextVideoHeader",null);_.a([_.XI("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qp.prototype,"onRenderStamperFinished",null);
_.a([_.TS("collapsed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qp.prototype,"collapseChanged",null);_.a([_.TS("hidden"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qp.prototype,"hiddenChanged",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qp.prototype,"dataChanged",null);
_.a([_.G("isTheaterMode","isFullscreen"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Qp.prototype,"isFullBleedPlayer",null);_.a([_.TS("isTheaterMode","isFullscreen"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qp.prototype,"onFullBleedPlayerChanged",null);_.a([_.TS("isFullscreen"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qp.prototype,"onFullscreenChanged",null);
_.a([_.TS("playerState","miniplayerIsActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qp.prototype,"updateNowPlayingOverlay",null);_.a([_.XI("yt-playlist-lockup-now-playing-active"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],Qp.prototype,"onPlaylistLockupNowPlaying",null);
_.a([_.TS("data","isDarkTheme"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qp.prototype,"colorPaletteChanged",null);_.a([_.A({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],Qp);
_.f4Z=_.GG()(Qp,"ytd-playlist-panel-renderer",function(){if(S4X===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);S4X=W}W=S4X;return W},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var rxZ;var Mf=function(){var W=_.I.apply(this,arguments)||this;W.modern=_.U("web_button_rework");return W};
_.v(Mf,_.I);Mf.prototype.computeShouldButtonBeVertical=function(W,l){return W||l};
Mf.prototype.onYtServiceRequestSent=function(W,l){(W=_.k(l.endpoint,_.S$))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.MB("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:W.status})):this.handleLikeEndpoint(W))};
Mf.prototype.computelikeStatusEntityKey=function(W){return W==null?void 0:W.likeStatusEntityKey};
Mf.prototype.handleLikeEndpoint=function(W){W.status==="LIKE"?this.JSC$17072_ytdDislikeToggleButtonRenderer.toggle(!1):W.status==="DISLIKE"?this.JSC$17072_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17072_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17072_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.rc.Object.defineProperties(Mf.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var W;return NBn(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(W=this.likeStatusEntity)==null?void 0:W.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var W;if(this.data&&((W=this.data)==null||!W.hideDislikeButton)){var l;return NBn(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(l=this.likeStatusEntity)==null?void 0:l.likeStatus)}}}});
Mf.prototype.onYtServiceRequestSent=Mf.prototype.onYtServiceRequestSent;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Mf.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],Mf.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Mf.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Mf.prototype,"vertical",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],Mf.prototype,"textTransform",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Mf.prototype,"useShortsIcon",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Mf.prototype,"underIconLabel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Mf.prototype,"modern",void 0);_.a([_.b({value:"left"}),_.z("design:type",String)],Mf.prototype,"buttonTooltipPosition",void 0);
_.a([_.b(),_.z("design:type",Object)],Mf.prototype,"overrides",void 0);_.a([_.Aa("#like-button"),_.z("design:type",Object)],Mf.prototype,"JSC$17072_ytdLikeToggleButtonRenderer",void 0);_.a([_.Aa("#dislike-button"),_.z("design:type",Object)],Mf.prototype,"JSC$17072_ytdDislikeToggleButtonRenderer",void 0);_.a([_.G("data","likeStatusEntity.likeStatus","useShortsIcon"),_.z("design:type",Object),_.z("design:paramtypes",[])],Mf.prototype,"likeButton",null);
_.a([_.G("data","likeStatusEntity.likeStatus","useShortsIcon"),_.z("design:type",Object),_.z("design:paramtypes",[])],Mf.prototype,"dislikeButton",null);_.a([_.b({computed:"computelikeStatusEntityKey(data)"}),_.z("design:type",String)],Mf.prototype,"likeStatusEntityKey",void 0);_.a([_.b({selectorArgs:["likeStatusEntityKey"],selector:Wp}),_.z("design:type",Object)],Mf.prototype,"likeStatusEntity",void 0);
_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],Mf.prototype,"onYtServiceRequestSent",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],Mf);
var RJw=_.GG()(Mf,"ytd-like-button-renderer",function(){if(rxZ===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);rxZ=W}W=rxZ;return W},{mode:1});_.tv1={};
_.tv1.YtConditionalRendererBehavior=[_.q.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(W,l){var V=this,f,r;return _.g(function(R){switch(R.nextAddress){case 1:if(!l)return V.hidden=!0,V.showSpinner=!1,R.return();if((f=W)==null?0:(r=f.visibilityCondition)==null?0:r.mode)switch(W.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return R.jumpTo(5);default:return R.jumpTo(6)}V.showSpinner=
!1;V.hidden=!0;return R.yield(V.shouldShow_(W),4);case 4:V.hidden=!R.yieldResult;R.jumpTo(0);break;case 5:return R.yield(V.shouldShow_(W),8);case 8:V.showSpinner=R.yieldResult;V.hidden=!1;R.jumpTo(0);break;case 6:return V.showSpinner=!1,R.yield(V.shouldShow_(W),9);case 9:V.hidden=!R.yieldResult,_.ju(R)}})},
shouldShow_:function(W){return W&&W.supportedDatas&&W.supportedDatas.rendererVisibilityConditionData&&W.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(W.supportedDatas.rendererVisibilityConditionData.showIf):W&&W.visibilityCondition&&W.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(W.visibilityCondition.showIf):W&&W.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(W.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(W){switch(W){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(W){switch(W){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var W=_.Gt(this.hostElement,"yt-get-mdx-status");return W.length==1&&W[0].connected},
isLocationPermissionGranted_:function(){var W;return _.g(function(l){return l.nextAddress==1?navigator.permissions?l.yield(navigator.permissions.query({name:"geolocation"}),3):l.jumpTo(2):l.nextAddress!=2?(W=l.yieldResult,l.return(Promise.resolve(W.state==="granted"))):l.return(Promise.resolve(!1))})}}];var sYY=function(W,l){l=l===void 0?{}:l;var V=function(f){var r=document.createElement(W),R;var y=(R=r.polymerController)!=null?R:r;YI4(r,y,f,l);return r};
V.debugName=W+" (CoW wrapped)";return V}("yt-icon",{callbackProps:["onKeydown"]}),LjY=_.U("kevlar_use_wil_icons")?_.Q(function(W){var l=W.icon;
var V=W.active;var f=W.className;var r=W.style;var R=W.dataSelected;var y=W.dataDisabled;var P=W.role;var n=W.themeOverride;var B=W.animateIcon;var d=W.ariaHidden;var J=W.ariaExpanded;var D=W.ariaLabel;var u=W.tabindex;var H=W.id;var p=W.iconFilter;var X=W.onKeydown;var w=function(){var N=l==null?void 0:l(),x=null,Y=void 0;N&&(N=t0k(N),N=uFz(N),N.length&&(x=N[1],Y=N[0]));return{iconName:x,iconSetName:Y}},O=function(){return sdZ(w().iconName,V==null?void 0:V(),void 0,void 0,w().iconSetName,_.tY().resolve(_.iD))},
S=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:p==null?void 0:p()}};
return _.C(_.c,{cond:B,then:function(){return _.C(sYY,{icon:l,active:V,className:f,style:r,dataSelected:R,dataDisabled:y,role:P,themeOverride:n,ariaHidden:d,ariaExpanded:J,ariaLabel:D,tabindex:u,id:H,iconFilter:p,onKeydown:X})},
else:function(){return _.C(_.c,{cond:O,then:function(N){return _.C("span",{class:_.If("ytIconWrapperHost",f),role:P,"aria-label":D,"aria-hidden":d,tabindex:function(){return isNaN(Number(u==null?void 0:u()))?void 0:Number(u==null?void 0:u())},
id:H,style:r,"on:keydown":_.ip(function(x){return void(X==null?void 0:X(x))})},_.C(ZI8,{data:N,
options:S}))}})}})},"Me"):sYY;var yxw=function(W){var l=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];t1v();_.fR("ytglobal.ytUtilActivityCallback_",function(){_.bj(W,"yt-user-activity")});
new Ro(function(){return l.JSC$17088_onMouseMove});
document.addEventListener("scroll",function(){return l.onScroll});
window.addEventListener("resize",function(){return l.onResize})},gz4=function(W,l,V){l in W.eventJobIds||(V=_.Am().addLowPriorityJob(function(){_.tr();
delete W.eventJobIds[l]},V),W.eventJobIds[l]=V)};
yxw.prototype.onScroll=function(W){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):W.target===document&&gz4(this,"scroll",200)};
yxw.prototype.onResize=function(){gz4(this,"resize",200)};
yxw.prototype.JSC$17088_onMouseMove=function(){gz4(this,"mousemove",100)};
_.XK=function(W){W.scrollEventsToIgnore+=1;W.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){W.scrollEventsToIgnore--},500))};var PFw=function(W){this.element=W;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
PFw.prototype.showFeedbackDialog=function(W,l,V,f){var r=nz1();if(!r)return!1;var R=V2F();R.productId=r;l&&(R.flow="submit",R.report={description:l});V&&(nz1()==="59"?R.callback=_.ah(function(){_.XC("userFeedbackEvent",{});V()}):R.callback=_.ah(V));
R.bucket=f||_.M4("GOOGLE_FEEDBACK_BUCKET","Other");CFe(R);W=cx4(this,"GFEEDBACK",W);try{_.fnv(R,W)}catch(y){return _.OJ(y),!1}return!0};
PFw.prototype.showHelpDialog=function(W,l,V){var f=this,r=nz1();if(!r)return!1;var R={helpCenterPath:"/youtube",productData:cx4(this,"GUIDED_HELP",V)};CFe(R);var y=V2F();y.context=W||R.productData.context||"default";y.defaultHelpArticleId=l;y.enableSendFeedback=!0;(_.Y2("gapi.load")||function(P,n){return n()})("client",function(){try{var P=m_Z(r,R);
if(_.U("web_always_load_chat_support")&&!f.chatSupportLoaded)try{P.JSC$9970_loadChatSupport(y),f.chatSupportLoaded=!0}catch(n){}P.startHelp(y)}catch(n){_.OJ(n)}})};
var nz1=function(){var W=_.M4("GOOGLE_FEEDBACK_PRODUCT_ID");W||_.OJ(Error("ii"));return W},CFe=function(W){W&&(W.locale=_.U("kevlar_help_use_locale")?_.M4("INNERTUBE_CONTEXT_HL","en"):_.M4("HTML_LANG","en"))},cx4=function(W,l,V){var f=W.productData;
delete f.origin;f.device=_.Uz();var r;a:{if(r=document.createElement("canvas")){var R=r.getContext("experimental-webgl",{stencil:!0});if(R){var y=R.getExtension("WEBGL_debug_renderer_info");if(y){r=R.getParameter(y.UNMASKED_RENDERER_WEBGL);break a}}if(R=r.getContext("webgl")){r=R.getParameter(R.RENDERER);break a}}r=null}f.gpu=r;f.isSDC=!!_.M4("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(r=_.M4("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.MC.extend(f,r);_.WFj(l,f);_.lQn(f);(W=_.bj(W.element,"yt-get-autonav-pause-debug-state"))&&
W.length&&(f.autonav_pause_state=W[0]);W=_.oU();f.browser_resolution=W.width+"\u00d7"+W.height+"@"+(window.devicePixelRatio||1)+"x";V&&_.MC.extend(f,V);return f};
PFw.prototype.resetProductData=function(){this.productData={}};var BSc=function(W){this.feedbackManager=new PFw(W)};
BSc.prototype.showFeedbackDialog=function(W,l,V,f){return this.feedbackManager.showFeedbackDialog(W,l,V,f)};
BSc.prototype.showHelpDialog=function(W,l,V){return this.feedbackManager.showHelpDialog(W,l,V)};var dg5=function(){this.baseUrl="";this.aTag=document.createElement("a")},X6I=function(W,l,V){V=V===void 0?{}:V;
V.pbj||(V.pbj=1);V=_.zPv(l,V);W.baseUrl&&V&&!_.WA(V)[1]&&!_.lP(V)&&(l=W.baseUrl,Lq(l,"/")&&(l=l.slice(0,-1)),_.sz(V,"/")&&(V=V.slice(1)),V=l+"/"+V);hO(W.aTag,_.av(V||""));return W.aTag.href};
dg5.prototype.fetchData=function(W){return _.eeY(W)};
dg5.prototype.postData=function(W,l){var V={method:"POST"};if(l){for(var f=_.L(Object.keys(l)),r=f.next();!r.done;r=f.next()){r=r.value;var R=l[r];_.ev(R)&&(l[r]=JSON.stringify(R))}V.postParams=l}return _.eeY(W,V)};
_.TXI=function(W,l,V,f,r){W=X6I(W,l,V);if(!W)throw f=Error("ji"),Object.assign(f,{params:l}),f;return _.eeY(W,r,f)};
dg5.prototype.requestDataForServiceEndpoint=function(W,l){if(_.k(W,_.ukn))return this.fetchData("/getAccountSwitcherEndpoint");l=l||{};var V=_.k(W,lIa);V?l.se=V.base64EncodedServiceEndpoint:l.sej=JSON.stringify(W);(V=_.Wh())&&_.U("enable_service_ajax_csn")&&(l.csn=V);l.theme=_.h5();_.k(W,DZY)&&_.M4("DELEGATION_CONTEXT")&&(l.delegation_context=JSON.stringify(_.M4("DELEGATION_CONTEXT")));V=null;for(var f in W)if(Lq(f,"Endpoint")||Lq(f,"Command")){V=f;break}if(!V){var r=Error("ki");Object.assign(r,{params:W});
_.Zvn(r,"WARNING");return new _.Dx(function(y,P){P(r)})}f={name:V};
var R;(V=(R=_.k(W,_.mA))==null?void 0:R.signal)&&(f.signal=V);(R=_.Si(window.location.href))&&R.internalcountrycode&&(f.internalcountrycode=R.internalcountrycode);R="/service_ajax";_.U("debug_forward_web_query_parameters")&&(R=_.fAq(R,window.location.search));R=_.$2(R,f);W.clickTrackingParams&&_.Ue(R,{itct:W.clickTrackingParams});return this.postData(R,l)};_.Jx1=new _.vd("GFEEDBACK_TOKEN");var Dgw;var UgZ;var unY;var k65;var Zf=function(){var W=_.I.apply(this,arguments)||this;W.compact=!1;W.dismissButtonDisabled=!1;return W};
_.v(Zf,_.I);Zf.prototype.computeHasIcon_=function(W){return!!W};
Zf.prototype.isSignInIcon_=function(W){return W=="yt-icons:prompted_sign_in"};
Zf.prototype.onDismissButtonClick=function(){var W;this.data.disableOnClick&&!this.dismissButtonDisabled&&(W=this.data.dismissButton)!=null&&W.buttonRenderer&&(this.dismissButtonDisabled=!0)};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Zf.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.tv1.YtConditionalRendererBehavior),_.z("design:type",Object)],Zf.prototype,"ytConditionalRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Zf.prototype,"data",void 0);_.a([_.b({computed:"computeIcon_(data.icon)"}),_.z("design:type",Object)],Zf.prototype,"icon_",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.z("design:type",Boolean)],Zf.prototype,"hasIcon_",void 0);_.a([_.b({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.z("design:type",Boolean)],Zf.prototype,"signInIcon_",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Zf.prototype,"compact",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Zf.prototype,"dismissButtonDisabled",void 0);
_.a([_.Vq({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],Zf);
_.Z(Zf,"yt-player-error-message-renderer",function(){if(k65===void 0){var W=document.createElement("template");_.K(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <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      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;unY===void 0&&(unY=document.createElement("template"));var f=unY;V.call(l,f.content.cloneNode(!0),W.content.firstChild);k65=W}W=k65;return W},{mode:2});var vzs;var Hqw;var Oa=function(){return _.I.apply(this,arguments)||this};
_.v(Oa,_.I);Oa.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Oa.prototype.computeIcon_=function(W){return W?"yt-icons:"+W.iconType.toLowerCase():"error_outline"};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Oa.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Oa.prototype,"data",void 0);_.a([_.b({computed:"computeIcon_(data.icon)"}),_.z("design:type",Object)],Oa.prototype,"icon_",void 0);_.a([_.Vq({is:"yt-player-kav-renderer",disableElementRegistration:!0})],Oa);
_.Z(Oa,"yt-player-kav-renderer",function(){if(Hqw===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;vzs===void 0&&(vzs=document.createElement("template"));var f=vzs;V.call(l,f.content.cloneNode(!0),W.content.firstChild);Hqw=W}W=Hqw;return W},{mode:2});var RZn=_.tj(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.HI(_.Q(function(W){var l=_.WS("div"),V=_.L(_.J4(0,void 0,"yt0wE")),f=V.next().value,r=V.next().value;V=_.L(_.J4(null,void 0,"CnFp5"));var R=V.next().value,y=V.next().value;_.mw(function(){t2n(l.value,r,y);l.value.scrollIntoView()});
V=sFJ.bind(null,W.data,f);R_("resize",function(){var P=R();if(f()===1&&P!==null){var n;(n=window.grecaptcha)==null||n.reset(P)}});
return _.C("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.C("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.C("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var P,n;return(P=W.data().accessibility)==null?void 0:(n=P.accessibilityData)==null?void 0:n.label}),_.C(_.bH,{text:V,
className:_.If("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.C("div",{el:l,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Ne"),"yt-player-captcha-view-model",{props:{data:_.kh}});var LFg=!1;_.KjH=_.Q(function(W){var l=W.data;return _.C("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.C(_.c,{cond:function(){return l().icon},
then:function(V){return _.C("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.C(_.dN,{data:V,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.C(_.c,{cond:function(){return l().title},
then:function(V){return _.C("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.C(_.bH,{text:V}))}}),_.C(_.c,{cond:function(){return l().description},
then:function(V){return _.C("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.C(_.bH,{text:V}))}}),_.C(_.QH,{data:function(){return l().primaryButton}},{buttonViewModel:function(V){return _.C(_.Nq,{data:V.data,
className:"interstitialViewModelFlexItem"})}}),_.C(_.QH,{data:function(){return l().secondaryButton}},{buttonViewModel:function(V){return _.C(_.Nq,{data:V.data,
className:"interstitialViewModelFlexItem"})}}))},"Oe");
_.KjH.idomCompat=!0;var FjL=_.Q(function(W){var l=W.data;_.l4();return _.C("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.C("div",{class:"playerInterstitialRendererScrim"},_.C(_.QH,{data:function(){return l().content}},{interstitialViewModel:_.KjH})))},"Pe");
FjL.idomCompat=!0;_.HI(FjL,"yt-player-interstitial-renderer",{props:{data:_.pA}});var a5=function(){var W=_.I.apply(this,arguments)||this;W.noBackground=!1;W.compact=!1;W.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return W};
_.v(a5,_.I);a5.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"}}}};
a5.prototype.onUpdatePlayerErrorMessageCommand_=function(W){if(_.k(W,cJk)){var l;if(W=(l=_.k(W,cJk))==null?void 0:l.newPlayerErrorMessageRenderer)this.data=W}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],a5.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],a5.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],a5.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],a5.prototype,"status",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],a5.prototype,"noBackground",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],a5.prototype,"compact",void 0);_.a([_.Vq({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],a5);
var G6Z=_.GG()(a5,"yt-playability-error-supported-renderers",function(){if(UgZ===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;Dgw===void 0&&(Dgw=document.createElement("template"));var f=Dgw;V.call(l,f.content.cloneNode(!0),W.content.firstChild);UgZ=W}W=UgZ;return W},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var y7x=void 0,PR6=void 0;var c7S=new D_M;var bqY=function(W){this.store=W;this.yiR=new _.k_Z},NQx=function(W,l,V){var f,r;
if(!(r=((f=l.playabilityStatus)==null?void 0:f.status)!=="OK")){W=W.store;var R;r=l.offlineState&&((R=l.videoDetails)==null?0:R.videoId)?_.U("enable_pl_r_c_cd")?xlJ(W.getState().entities,l.videoDetails.videoId):!!uUg(W.getState().entities,l.videoDetails.videoId):!1}if(r)return!0;r=UU6(l);if(r===1){if(_.U("ab_v_vid_sig")){var y,P=(y=l.videoDetails)==null?void 0:y.videoId;if(!P||!V||P!==V){var n;l=new _.bP("282054944_vid",{oin:V,uO0:(n=l.videoDetails)==null?void 0:n.videoId});_.wv(l)}}return!0}iZF=
0;var B,d;n=(P=l.auxiliaryUi)==null?void 0:(B=P.messageRenderers)==null?void 0:(d=B.bkaEnforcementMessageViewModel)==null?void 0:d.displayType;if(r!==3&&(n==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||n==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;n={reason:_.Hy(_.wg("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.U("ks_something_wrong_learn_more")?AtJ("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Hy(_.wg("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:_.Hy("282054944")};p85(l,{playerErrorMessageRenderer:n});return!1},Y$Y=function(W,l){if(hnv(l)){_.A5(1,!0);
var V=(V=hnv(l))&&_.gf8()?V:void 0;V?(p85(l,{enforcementMessageViewModel:V}),W.yiR.increment("IN_PLAYER"),_.A5(5)):(W.yiR.increment("SKIP_DISPLAY"),_.A5(2))}},p85=function(W,l){W.playabilityStatus=Object.assign({},W.playabilityStatus,{status:"ERROR",
errorScreen:l});W.videoDetails=void 0};
bqY.prototype.handleResponse=function(W,l){if(W.playabilityStatus){var V,f,r,R=(l==null?void 0:(V=l.innerTubeRequest)==null?void 0:V.videoId)||(l==null?void 0:(f=l.innerTubeRequest)==null?void 0:(r=f.playerRequest)==null?void 0:r.videoId);NQx(this,W,R)&&Y$Y(this,W)}};
bqY[k$]=[dl];var aHv=new _.vd("ADBLOCK_DETECTION_SERVICE_TOKEN");var Rm=function(W){this.hrE=W};
Rm.prototype.bindInnertubeChallengeFetcher=function(W){this.hrE.bicf(W)};
Rm.prototype.registerChallengeFetchedCallback=function(W){this.hrE.bcr(W)};
Rm.prototype.getLatestChallengeResponse=function(){return this.hrE.blc()};var oz4;oz4=_.tj(["https://static.doubleclick.net/instream/ad_status.js"]);_.jYc=_.dO(oz4);var X8Z;_.zn=function(W,l,V){var f=this;this.network=W;this.options=l;this.networkStatusManager=V;this.aW=null;if(l.useBotguardEverywhere){var r=new _.mg;this.aW=r.promise;_.rS.ytAtRC&&_.a$(_.w8,function(){var R,y;return _.g(function(P){if(P.nextAddress==1){if(!_.rS.ytAtRC)return P.return();R=I4N(null);return P.yield(f.yE(R),2)}y=P.yieldResult;_.rS.ytAtRC&&_.rS.ytAtRC(JSON.stringify(y));_.ju(P)})});
KFS().then(function(R){var y,P,n,B;return _.g(function(d){if(d.nextAddress==1)return R.bindInnertubeChallengeFetcher(function(J){return f.yE(I4N(J))}),d.yield(ipS(),2);
y=d.yieldResult;P=R.getLatestChallengeResponse();n=P.challenge;if(!n)throw Error("li");B={challenge:n,rP:rl(n),vm:y,bgChallenge:new Vt};r.resolve(B);R.registerChallengeFetchedCallback(function(J){J=J.challenge;if(!J)throw Error("mi");J={challenge:J,rP:rl(J),vm:y,bgChallenge:new Vt};f.aW=Promise.resolve(J)});
_.ju(d)})})}else l.preload&&iq2(this,new Promise(function(R){_.pS(_.w8,function(){R(mgw(f))},0)}))};
X8Z=function(W){var l={preload:!0,useBotguardEverywhere:!0},V=!1;if(typeof l==="boolean")var f={preload:l};else typeof l==="undefined"?f={preload:!0}:(f=l,V=!!l.z9H);l=V?void 0:new _.qt;_.zn.instance=new _.zn(W,f,l);return _.zn.instance};
_.zn.prototype.sk4=function(){var W=this;return _.g(function(l){return l.nextAddress==1?l.yield(Promise.race([W.aW,null]),2):l.return(!!l.yieldResult)})};
_.zn.prototype.nHw=function(W,l,V){var f=this,r,R,y;return _.g(function(P){f.aW===null&&iq2(f,mgw(f));r=!1;R={};y=function(){var n,B,d;return _.g(function(J){switch(J.nextAddress){case 1:return J.yield(f.aW,2);case 2:n=J.yieldResult;R.challenge=n.challenge;if(!n.vm){"c1a"in n.rP&&(R.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");J.jumpTo(3);break}B=Object.assign({},{c:n.challenge,e:W},l);_.HG(J,4);r=!0;return J.yield(n.vm.snapshot({nf:B}),6);case 6:(d=J.yieldResult)?R.webResponse=d:R.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.qL(J,3);break;case 4:_.pc(J),R.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(W==="ENGAGEMENT_TYPE_PLAYBACK"){var D=n.rP,u={};if(D.c6a){var H=Number(_.M4("DCLKSTAT",0));u.reportingStatus=String(Number(D.c)^(isNaN(H)?0:H))}D.c6b&&(u.broadSpectrumDetectionResult=String(Number(D.c)^Number(_.M4("CATSTAT",0))));R.adblockReporting=u}return J.return(R)}})};
return P.return(Promise.race([y(),TS5(V,function(){var n=Object.assign({},R);r&&(n.error="ATTESTATION_ERROR_VM_TIMEOUT");return n})]))})};
var I4N=function(W){var l={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};W&&(l.interpreterHash=W);return l},mgw=function(W,l){l=l===void 0?0:l;
var V,f,r,R,y,P,n,B,d,J,D,u;return _.g(function(H){switch(H.nextAddress){case 1:V=I4N(v9c().on2);if(_.U("att_fet_ks"))return _.HG(H,7),H.yield(W.yE(V),9);_.HG(H,4);return H.yield(w8w(W,V),6);case 6:y=H.yieldResult;r=y.pI0;R=y.uPY;f=y;_.qL(H,3);break;case 4:return _.pc(H),_.Qe(Error("ni`"+l)),AxY(W,864E5),H.return({challenge:"",rP:{},vm:void 0,bgChallenge:void 0});case 9:f=H.yieldResult;if(!f)throw Error("oi");if(!f.challenge)throw Error("pi");r=f.challenge;R=rl(r);if("c1a"in R&&(!f.bgChallenge||!f.bgChallenge.program))throw Error("qi");
_.qL(H,3);break;case 7:P=_.pc(H);_.Qe(P);l++;if(l>=5)return _.Qe(Error("ni`"+l)),AxY(W,864E5),H.return({challenge:"",rP:{},vm:void 0,bgChallenge:void 0});n=1E3*Math.pow(2,l-1)+Math.random()*1E3;return H.return(new Promise(function(p){_.pS(_.w8,function(){p(mgw(W,l))},n)}));
case 3:B=H8S(R);AxY(W,B*1E3);d=void 0;if(!("c1a"in R&&f.bgChallenge)){H.jumpTo(10);break}J=vfq(f.bgChallenge);_.HG(H,11);return H.yield(KlZ(v9c(),J),13);case 13:_.qL(H,12);break;case 11:return D=_.pc(H),_.Qe(D),H.return({challenge:r,rP:R,vm:d,bgChallenge:J});case 12:return _.HG(H,14),d=new _.lc({challenge:J,rYJ:{qM:"aGIf"}}),H.yield(d.wwq,16);case 16:_.qL(H,10);break;case 14:u=_.pc(H),_.Qe(u),d=void 0;case 10:return H.return({challenge:r,rP:R,vm:d,bgChallenge:J})}})};
_.zn.prototype.yE=function(W){var l=this,V;return _.g(function(f){V=l.networkStatusManager;if(!V||V.isNetworkAvailable())return f.return(l.network.yE(W));_.VE("att_pna",void 0,"attestation_challenge_fetch");return f.return(new Promise(function(r){V.listenOnce("publicytnetworkstatus-online",function(){l.network.yE(W).then(r)})}))})};
var QY4=function(W){if(!W)throw Error("oi");if(!W.challenge)throw Error("pi");var l=W.challenge,V=rl(l);if("c1a"in V&&(!W.bgChallenge||!W.bgChallenge.program))throw Error("qi");return Object.assign({},W,{pI0:l,uPY:V})},w8w=function(W,l){var V,f,r,R,y;
return _.g(function(P){switch(P.nextAddress){case 1:V=void 0,f=0,r={};case 2:if(!(f<5)){P.jumpTo(4);break}if(!(f>0)){P.jumpTo(5);break}r.ip2=1E3*Math.pow(2,f-1)+Math.random()*1E3;return P.yield(new Promise(function(n){return function(B){_.pS(_.w8,function(){B(void 0)},n.ip2)}}(r)),5);
case 5:return _.HG(P,7),P.yield(W.yE(l),9);case 9:return R=P.yieldResult,P.return(QY4(R));case 7:V=y=_.pc(P),y instanceof Error&&_.Qe(y);case 8:f++;r={ip2:void 0};P.jumpTo(2);break;case 4:throw V;}})},iq2=function(W,l){W.aW=l},MvN=function(W){var l,V,f;
return _.g(function(r){if(r.nextAddress==1)return r.yield(Promise.race([W.aW,null]),2);l=r.yieldResult;var R=mgw(W);W.aW=R;(V=l)==null||(f=V.vm)==null||f.dispose();_.ju(r)})},AxY=function(W,l){var V=Date.now()+l,f=function(){var r;
return _.g(function(R){r=V-Date.now();return r<1E3?R.yield(MvN(W),0):(_.pS(_.w8,f,Math.min(r,6E4)),R.jumpTo(0))})};
f()},TS5=function(W,l){return new Promise(function(V){_.pS(_.w8,function(){V(l())},W)})};var ZqN=function(){};
ZqN.prototype.processContext=function(W){var l=_.zn.instance;if(!l)return _.F6();var V=jFJ(W);return V?new KE(l.nHw(V,b86(W),500).then(function(f){var r;(W==null?0:(r=W.innerTubeRequest)==null?0:r.context)||(W.innerTubeRequest.context={});r=W.innerTubeRequest.context;r.request||(r.request={});r.request.attestationResponseData=f})):_.F6()};var Oqs=function(W){this.innertubeTransportService=W};
Oqs.prototype.yE=function(W){_.VE("att_fsr",void 0,"attestation_challenge_fetch");return _.B3(this.innertubeTransportService,W,_.Um(_.JMc)).then(function(l){_.VE("att_frr",void 0,"attestation_challenge_fetch");return l})};_.a4L=function(W){this.innertubeTransportService=W};var zJ1=new _.vd("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var NS4=function(){},xge=function(W,l,V,f,r){var R=_.M4("YPC_MB_URL");
_.BqS(R).then(function(){YzH(R,W,l,V,f,r)})},YzH=function(W,l,V,f,r,R){try{var y=payments.business.integration,P=payments.business.integration.Style.create().withMaterialDesignStyle(),n=y.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.U("enable_window_constrained_buy_flow_dialog")&&(n=n.usingPopupStyle("windowConstrained"));R&&(n=n.usingCloseCallback(R));var B=V?V:_.M4("YPC_GB_LANGUAGE"),d=_.M4("SESSION_INDEX");y.bootstrap.fromPaymentsUrl(W);y.bootstrap.asMashupMode(n).usingGaiaIndex(d).usingLocale(B).usingStyle(P).usingDefaultActivityStatusChangeHandler().inStandaloneContext(y.standaloneContextAuthId.forGaia()).purchaseManager(l,function(J){f&&f(J)}).load(void 0,r)}catch(J){throw r&&r(J),_.wv(J),J;
}};var eJw=new _.vd("PURCHASE_MANAGER_TOKEN");var qzw=function(){var W=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return W.videos},
getContinuationsPresent:function(){return W.continuationsPresent},
setVideos:function(l){W.videos=l},
getRecommendedVideos:function(){return W.recommendedVideos},
setRecommendedVideos:function(l){W.recommendedVideos=l}}};
qzw.prototype.addVideos=function(W){W&&(this.videos=W.filter(function(l){return!!_.i8v(l)}).map(function(l){var V=_.i8v(l);
a:{var f;if(l.playlistVideoRenderer&&((f=l.playlistVideoRenderer)==null?0:f.voteSortTiebreaker))var r=l.playlistVideoRenderer.voteSortTiebreaker;else{if(_.k(l,sH)){var R;if(f=(r=_.k(l,sH))==null?void 0:(R=r.playlistItemData)==null?void 0:R.voteSortTiebreaker){r=f;break a}}r=""}}return{itemId:V,videoId:_.TVn(l),voteCount:_.wzS(l),voteSortTiebreaker:r}}),this.continuationsPresent=!!_.k(W[W.length-1],_.P0))};
var hJ2=function(W,l){return W.videos.findIndex(function(V){return V.itemId===l})},Sz4=function(W,l){return W.recommendedVideos.findIndex(function(V){return V.itemId===l})},Ez1=function(W){W={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:W}}}}};_.tY().resolve(_.s6).resolveCommand(W)};var $gw=function(){qzw.apply(this,arguments)};
_.v($gw,qzw);
var GHe=function(W,l,V,f){if(!W.parentElem)throw Error("vi");var r=hJ2(W,l);r===-1&&(r=Sz4(W,l),r=r!==-1?r+W.videos.length:-1);if(r===-1)throw Error("wi");var R=r>=W.videos.length?W.recommendedVideos[r-W.videos.length]:W.videos[r];R.voteCount=V;R.voteSortTiebreaker=Date.now().toString();r>=W.videos.length?W.recommendedVideos.splice(r-W.videos.length,1):W.videos.splice(r,1);var y=W.videos;for(var P=0,n=y.length-1;P<=n;){var B=Math.floor((P+n)/2);if(y[B].voteCount<R.voteCount)n=B-1;else if(y[B].voteCount>R.voteCount)P=
B+1;else{a:{var d=R.voteSortTiebreaker;var J=y[B].voteSortTiebreaker;if(d.length!==J.length)d=d.length>J.length;else{for(var D=0;D<d.length;D++){var u=d.charCodeAt(D),H=J.charCodeAt(D);if(u>H){d=!0;break a}if(u<H)break}d=!1}}d?n=B-1:P=B+1}}y=P;if(y===-1)throw Error("xi");W.videos.splice(y,0,R);r!==y&&Wk2(W,r,y,l,V,f)},Wk2=function(W,l,V,f,r,R){var y,P=(y=W.parentElem)==null?void 0:y.children,n=Math.min(l,V),B=Math.max(l,V);
if(P)for(y=n;y<=B;y++)P[y].style.viewTransitionName="item-"+String(y);document.startViewTransition(function(){if(W.parentElem){var d=W.parentElem.children;if(!(!d||l<0||l>=d.length||V<0||V>=d.length)){var J=d[l];if(J){J.remove();W.showRefreshPill=V>=W.videos.length-1&&W.continuationsPresent;if(!W.showRefreshPill){d=d[V]||null;var D;(D=W.parentElem)==null||D.insertBefore(J,d)}_.FN(W.parentElem,"yt-update-video-data-voting-animation",{toIdx:V,itemId:f,newVoteCount:r,voteStatus:R,hideItem:W.showRefreshPill})}}}}).finished.then(function(){if(P)for(var d=
n;d<=B;d++)P[d].style.viewTransitionName="";
if(W.showRefreshPill)Ez1(_.wg("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var J;if(J=d=(J=W.parentElem)==null?void 0:J.children[V])J=d.getBoundingClientRect(),d=J.bottom,J=!(J.top>=0&&d<=W.clientHeight);J&&(J=_.Ag(l>V?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(l-V)),Ez1(J))}})};var f$7=function(W,l){var V=this;W?this.innertubeTransportServicePromise=Promise.resolve(W):l&&(this.innertubeTransportServicePromise=l(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new pQ(3E3,function(f){return l$Y(V,f)},0);
this.validateMiniAppVideoIdRateLimiter=new pQ(3E3,function(f){return VL4(V,f)},1)},mpv=function(W,l){W.JSC$17201_miniAppId=l;
W.reportMiniAppValueRateLimiter=new pQ(3E3,function(V){return l$Y(W,V)},0);
W.validateMiniAppVideoIdRateLimiter=new pQ(3E3,function(V){return VL4(W,V)},1)},Tu$=function(W,l){var V;
return _.g(function(f){if(f.nextAddress==1)return f.yield(W.reportMiniAppValueRateLimiter.call(l),2);V=f.yieldResult;return f.return([V,l])})},l$Y=function(W,l){var V,f,r,R,y,P,n;
return _.g(function(B){switch(B.nextAddress){case 1:return B.yield(W.innertubeTransportServicePromise,2);case 2:return V=B.yieldResult,f=_.Um(H9X),r=Date.now(),R={externalPostId:W.JSC$17201_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(r/1E3),nanos:Math.round(r%1E3*1E6)},intValue:""+l}},_.HG(B,3),B.yield(_.B3(V,R,f),5);case 5:y=B.yieldResult;_.qL(B,4);break;case 3:throw P=_.pc(B),P;case 4:if(y){if("error"in y&&y.error)throw y.error;if(y.errorMetadata)throw Error("yi`"+
y.errorMetadata.status);if(n=y.userStatResult)return B.return(n);throw Error("zi");}throw Error("Ai");}})},Afk=function(W){var l,V,f,r,R;
_.g(function(y){switch(y.nextAddress){case 1:return y.yield(W.innertubeTransportServicePromise,2);case 2:return l=y.yieldResult,V=_.Um(H9X),f={externalPostId:W.JSC$17201_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.HG(y,3),y.yield(_.B3(l,f,V),5);case 5:r=y.yieldResult;_.qL(y,4);break;case 3:throw R=_.pc(y),R;case 4:if(r==null)throw Error("Ai");if("error"in r&&r.error)throw r.error;if(r.errorMetadata)throw Error("yi`"+r.errorMetadata.status);_.ju(y)}})};
f$7.prototype.flush=function(){var W=this;return _.g(function(l){return l.nextAddress==1?l.yield(W.reportMiniAppValueRateLimiter.flush(),2):l.yield(W.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var wuB=function(W,l){return _.g(function(V){return V.nextAddress==1?V.yield(W.validateMiniAppVideoIdRateLimiter.call(l),2):V.return(V.yieldResult)})},VL4=function(W,l){var V,f,r,R,y,P;
return _.g(function(n){switch(n.nextAddress){case 1:return n.yield(W.innertubeTransportServicePromise,2);case 2:return V=n.yieldResult,f=_.Um(BiL),r={videoId:l},_.HG(n,3),n.yield(_.B3(V,r,f),5);case 5:R=n.yieldResult;_.qL(n,4);break;case 3:throw y=_.pc(n),y;case 4:if(R){if("error"in R&&R.error)throw R.error;if(R.errorMetadata)throw Error("yi`"+R.errorMetadata.status);if(P=R.playabilityStatus)return n.return(P.status);throw Error("Bi");}throw Error("Ai");}})};
f$7[k$]=[_.R0(_.Vb),_.R0(hgk)];var rZw=function(){this.clientData=new Map};
rZw.prototype.getData=function(W){return this.clientData.get(W)};var RI4=function(W){this.store=W};
RI4.prototype.handleResponse=function(W){(W=_.k(W.frameworkUpdates,Pp))&&_.QE(W,this.store)};
RI4[k$]=[_.Jp];var tLs=new _.vd("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var sX5={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 Lkw=new _.vd("ICON_SET_TOKEN"),yZw=new _.vd("ICON_URL_PROVIDER_TOKEN"),gc2=new _.vd("PREFETCH_ICONS_TOKEN"),PBN=new _.vd("ICON_MAP_FN_TOKEN");var Nf={},ncL=(Nf.ACCESS_TIME="clock",Nf.ACCOUNT_BOX="person_account",Nf.ACCOUNT_BOX_CAIRO="person_account_cairo",Nf.ACCOUNT_CIRCLE="person_circle",Nf.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",Nf.ACCOUNT_LINKED="account_link_success",Nf.ACCOUNT_UNLINKED="account_link",Nf.ADD_FRIEND="people",Nf.ADD_MODERATOR="shield_add",Nf.ADD_TO_LIBRARY="bookmark",Nf.ADD_TO_PLAYLIST="add",Nf.ADD_TO_QUEUE_TAIL="list_queue",Nf.ADD_TO_REMOTE_QUEUE="list_music",Nf.ADD_TO_WATCH_LATER="clock",Nf.ADD_VIDEO_LINK="film_strip_add",
Nf.ALERT_WARN_RED="alert_triangle",Nf.ARROW_BACK="arrow_left",Nf.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",Nf.ARROW_DROP_DOWN="chevron_down",Nf.ARROW_DROP_UP="chevron_up",Nf.ARROW_FORWARD="arrow_right",Nf.AUDIOTRACK="audio",Nf.AUTO_AWESOME="sparkle",Nf.AVATAR_ANONYMOUS="person_circle",Nf.AVATAR_LOGGED_OUT="person_circle",Nf.BACK="arrow_left",Nf.BAR_CHART="bar_graph",Nf.BLOCK="slash_circle_left",Nf.BLOCK_USER="slash_circle_left",Nf.BOOKMARK_BORDER="bookmark",Nf.BREAKING_NEWS_ALT_1="article_alert",
Nf.BROADCAST_CAIRO="podcast_cairo",Nf.BUG_REPORT="bug",Nf.CAMERA_ALT="camera",Nf.CAMPAIGN="megaphone",Nf.CANCEL="x_circle",Nf.CAPTIONS="closed_caption",Nf.CAST_OUTLINE="chromecast",Nf.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Nf.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",Nf.CHAT="message_bubble_left",Nf.CHAT_BUBBLE="message_bubble_empty",Nf.CHAT_SPARK="spark_message_bubble_left",Nf.CHECK_BOX_OUTLINE_BLANK="box_empty",Nf.CHECK_CIRCLE_OUTLINE="check_circle",Nf.CHECK_CIRCLE_THICK="check_circle",Nf.CLARIFY=
"article_clarify",Nf.CLOSED_CAPTION_SELECTED="closed_caption",Nf.CLOSE="x_mark",Nf.CLOUD_UPLOAD="cloud_arrow_up",Nf.COLLAPSE="chevron_up",Nf.COLLAPSE_CAIRO="chevron_up_cairo",Nf.COLLECTION="layers",Nf.COLOR_LENS="palette",Nf.COMMENT="message_bubble_right",Nf.CONSENT_SHIELD="person_shield",Nf.CONTENT_CUT="scissors",Nf.CONTENT_CUT_CAIRO="scissors_cairo",Nf.COURSE=_.U("web_enable_course_icon_update")?"creator_academy":"lightbulb",Nf.COURSE_CAIRO=_.U("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",Nf.CREATION_LIVE="radar_live",Nf.CREATION_POST="box_pencil",Nf.CREATION_UPLOAD="my_videos",Nf.CREATION_UPLOAD_RED="upload",Nf.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",Nf.CREATOR_STUDIO="youtube_studio",Nf.DASHBOARD="grid_asymmetrical",Nf.DELETE="trash_can",Nf.DELETE_SWEEP="trash_can",Nf.DESKTOP="laptop",Nf.DISLIKE="thumb_down",Nf.DISLIKE_SELECTED="thumb_down",Nf.DISMISSAL="x_mark",Nf.DISMISS_QUEUE="list_remove",Nf.DONE_ALL="check_double",Nf.DOWN_ARROW="arrow_down",Nf.DO_NOT_DISTURB=
"slash_circle_left",Nf.DRAFT="paper_corner_folded",Nf.DRAG_HANDLE="bars_2",Nf.EDIT="pencil",Nf.EMOJI="face_very_happy",Nf.EMOJI_FLAGS="flag",Nf.EMOJI_OBJECTS="lightbulb",Nf.EMOJI_PEOPLE="face_very_happy",Nf.EMOJI_RECENT="clock",Nf.EMPTY_HEART="heart",Nf.EMPTY_LIKE="thumb_up",Nf.ERROR_BLACK="alert_circle",Nf.ERROR_OUTLINE="alert_circle",Nf.EXIT_APP="arrow_in",Nf.EXIT_TO_APP="arrow_in",Nf.EXPAND="chevron_down",Nf.EXPAND_ALL="chevron_expand",Nf.EXPAND_CAIRO="chevron_down_cairo",Nf.EXPAND_LESS="chevron_up",
Nf.EXPAND_MORE="chevron_down",Nf.EXPLORE="compass",Nf.EXPLORE_DESTINATION="compass",Nf.EXTERNAL_LINK="open_new",Nf.FAB_UPLOAD="upload",Nf.FACE_HAPPY_OUTLINE="face_happy",Nf.FACT_CHECK="article_check",Nf.FASHION_LOGO="fashion",Nf.FASHION_LOGO_CAIRO="fashion_cairo",Nf.FAVORITE="heart",Nf.FEEDBACK="message_bubble_alert",Nf.FEEDBACK_CAIRO="message_bubble_alert_cairo",Nf.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",Nf.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Nf.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
Nf.FILTER="menu_filter",Nf.FIRST_PAGE="chevron_first",Nf.FLAG="flag",Nf.FULL_HEART="heart",Nf.GAME_CONSOLE_DPAD="game_console_dpad",Nf.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",Nf.GAMING_LOGO="gaming",Nf.GAMING_LOGO_CAIRO="gaming_cairo",Nf.GO_TO_PAGE="arrow_right",Nf.GROUPS="people_group",Nf.HAPPY="face_happy",Nf.HEALTH_AND_SAFETY="shield_plus",Nf.HELP="question_circle",Nf.HELP_CAIRO="question_circle_cairo",Nf.HELP_OUTLINE="question_circle",Nf.HIDE="slash_circle_left",Nf.IMAGE="image",
Nf.INFINITY_ICON="infinity",Nf.INFO="info_circle",Nf.INFO_OUTLINE="info_circle",Nf.INSERT_CHART="bar_graph_box_vertical",Nf.INSERT_CHART_OUTLINED="bar_graph_box_vertical",Nf.INSERT_PHOTO="image",Nf.KEEP="pin",Nf.KEEP_OFF="pin_off",Nf.KEYBOARD="keyboard",Nf.KEYBOARD_ARROW_DOWN="chevron_down",Nf.KEYBOARD_ARROW_UP="chevron_up",Nf.KIDS_BLOCK="slash_circle_left",Nf.LANGUAGE="globe",Nf.LAST_PAGE="chevron_last",Nf.LAUNCH="open_new",Nf.LEARNING="lightbulb",Nf.LEARNING_CAIRO="lightbulb_cairo",Nf.LIBRARY_ADD=
Z84("library_add"),Nf.LIBRARY_OUTLINE="library",Nf.LIBRARY_REMOVE=Z84(),Nf.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",Nf.LIKES_PLAYLIST="thumb_up",Nf.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",Nf.LIKE="thumb_up",Nf.LIKE_SELECTED="thumb_up",Nf.LIVE="radar_live",Nf.LIVE_CAIRO="radar_live_cairo",Nf.LIVE_UNLISTED="link",Nf.LOCATION_ON="location_point",Nf.LOCATION_PIN="location_point",Nf.LOOP="arrow_repeat",Nf.LOOP_ACTIVE="arrow_repeat",Nf.LOOP_ONE="arrow_repeat_1",Nf.LOOP_ONE_ACTIVE="arrow_repeat_1",Nf.MEH=
"face_meh",Nf.MEMBERS_ONLY_MODE_OFF="message_bubble_left",Nf.MESSAGE="message_bubble_left",Nf.MICROPHONE_ON="mic",Nf.MIX="youtube_mix",Nf.MONETIZATION_ON="dollar_sign_circle",Nf.MONEY_FILL="dollar_sign_container",Nf.MONEY_FILL_JPY="yen_sign_container",Nf.MONEY_HEART="dollar_sign_heart",Nf.MORE_HORIZ="overflow_horizontal",Nf.MORE_VERT="overflow_vertical",Nf.MUSIC="audio",Nf.MUSIC_CAIRO="audio_cairo",Nf.MUSIC_NOTE_SYMBOL="music",Nf.MUSIC_SHUFFLE="arrow_shuffle",Nf.MY_CHANNEL="person_circle",Nf.MY_LOCATION=
"location_point",Nf.NEWS_STORY="news",Nf.NEXT="chevron_right",Nf.NOTIFICATIONS="bell",Nf.NOTIFICATIONS_ACTIVE="bell_on",Nf.NOTIFICATIONS_CAIRO="bell_cairo",Nf.NOTIFICATIONS_DONE_CHECKMARK="check",Nf.NOTIFICATIONS_INBOX="bell",Nf.NOTIFICATIONS_NONE="bell",Nf.NOTIFICATIONS_OFF="bell_off",Nf.NOT_INTERESTED="slash_circle_left",Nf.OFFICIAL_ARTIST_BADGE="audio",Nf.OFFLINE_CLOUD="cloud_off",Nf.OFFLINE_DOWNLOAD="download",Nf.OFFLINE_DOWNLOAD_CAIRO="download_cairo",Nf.OFFLINE_PAUSE="pause",Nf.OPEN_IN_NEW=
"open_new",Nf.OUTLINE_ADJUST="adjust",Nf.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Nf.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Nf.OUTLINE_BAG="bag",Nf.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",Nf.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Nf.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Nf.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",Nf.PAID="dollar_sign",Nf.PAUSE_OUTLINED="pause",Nf.PAYMENT="credit_card",Nf.PERSON_RADAR_FILLED="person_radar",Nf.PHONE_DOWNLOAD="mobile_download",
Nf.PLAYABLES_LOGO="tic_tac_toe",Nf.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",Nf.PLAYLISTS="list_play_arrow",Nf.PLAYLISTS_CAIRO="list_play_arrow_cairo",Nf.PLAYLIST_ADD=Z84("list_add"),Nf.PLAYLIST_ADD_CHECK=Z84("list_check"),Nf.PLAYLIST_PLAY="list_play_arrow",Nf.PLAY_ALL="play_arrow",Nf.PLAY_CIRCLE="play_arrow_circle",Nf.PLAY_OUTLINED="play_arrow_circle",Nf.PRIVACY_INFO="shield",Nf.PRIVACY_PRIVATE="lock",Nf.PRIVACY_PUBLIC="earth",Nf.PRIVACY_UNLISTED="link",Nf.PROMOTE="megaphone",Nf.PURCHASES="price_tag",
Nf.PURCHASE_SUPER_CHAT="super_chat",Nf.PURCHASE_SUPER_STICKER="super_sticker",Nf.QUESTION_ANSWER="message_bubble_question",Nf.QUEUE_PLAY_LAST="list_queue_last",Nf.QUEUE_PLAY_NEXT="list_play_arrow",Nf.REMIX_FILLED="youtube_shorts_remix",Nf.REMOVE="bar_circle",Nf.REMOVE_CIRCLE="bar_circle",Nf.REMOVE_CIRCLE_OUTLINE="bar_circle",Nf.REMOVE_DONE="check_double_off",Nf.REMOVE_FROM_HISTORY="bar_circle",Nf.REMOVE_FROM_PLAYLIST="bar_circle",Nf.REMOVE_MODERATOR="shield_off",Nf.REPLAY="arrow_circle",Nf.REPLAY_10=
"skip_back_10",Nf.REPORT_PROBLEM="alert_triangle",Nf.SAD="face_sad",Nf.SAVE_PLAYLIST="bookmark",Nf.SCHEDULE="clock",Nf.SCHOOL="creator_academy",Nf.SCREEN_FULLSCREEN="screen_full",Nf.SEARCH_HISTORY="arrow_time",Nf.SELL="price_tag",Nf.SETTINGS="gear",Nf.SETTINGS_CAIRO="gear_cairo",Nf.SETTINGS_LIGHT="gear",Nf.SETTINGS_MATERIAL="gear",Nf.SHARE_ARROW="share",Nf.SHIELD_WITH_AVATAR="person_shield",Nf.SHOPPING_BAG="bag",Nf.SHOPPING_BAG_CAIRO="bag_cairo",Nf.SHOPPING_CART="cart",Nf.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
Nf.SHORTS_DISLIKE="youtube_shorts_thumb_down",Nf.SHORTS_LIKE="youtube_shorts_thumb_up",Nf.SHORTS_SHARE="youtube_shorts_share",Nf.SHUFFLE="arrow_shuffle",Nf.SLOW_MODE_OFF="message_bubble_left",Nf.SOCIAL="people",Nf.SORT="menu_sort",Nf.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",Nf.SPEED_1X="1x",Nf.SPEED_1_POINT_2X="1_point_2x",Nf.SPEED_1_POINT_5X="1_point_5x",Nf.SPEED_1_POINT_8X="1_point_8x",Nf.SPEED_2X="2x",Nf.SPEED_POINT_2X="point_2x",Nf.SPEED_POINT_8X="point_8x",Nf.SPONSORSHIP_STAR="star_circle",
Nf.STAFF_PICK="spotlight",Nf.START_DVR="add",Nf.STAR_BORDER="star",Nf.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",Nf.STICKER_EMOTICON="face_happy",Nf.STOP_DVR="stop",Nf.SUBSCRIBE="youtube_logo_icon",Nf.SUBSCRIBE_PLUS="add_cairo",Nf.SUBSCRIPTION_MANAGER="gear",Nf.SUPERVISOR_ACCOUNT="people",Nf.SUPER_CHAT_FOR_GOOD="hands_heart",Nf.SWAP_HORIZ="arrow_swap_horizontal",Nf.SWITCH_ACCOUNTS="person_account",Nf.TAB_ACCOUNT="person",Nf.TAB_ACTIVITY="bell",Nf.TAB_BOOKMARK="bookmark",Nf.TAB_EXPLORE="compass",
Nf.TAB_HOME="home",Nf.TAB_HOME_CAIRO="home_cairo",Nf.TAB_INBOX="mail",Nf.TAB_LIKED="thumb_up",Nf.TAB_MUSIC_PREMIUM="youtube_music",Nf.TAB_SHORTS="youtube_shorts",Nf.TAB_SHORTS_CAIRO="youtube_shorts_cairo",Nf.TAB_SUBSCRIPTIONS="subscriptions",Nf.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",Nf.TAB_TRENDING="fire",Nf.TIMER="stopwatch",Nf.TRAILER="youtube_originals",Nf.TRENDING="fire",Nf.TRENDING_CAIRO="fire_cairo",Nf.TRENDING_UP="rating_up",Nf.TROPHY="trophy",Nf.TROPHY_CELEBRATIONS="fireworks",Nf.TUNE=
"adjust",Nf.UNBLOCK_USER="bar_circle",Nf.UNLIMITED="youtube_logo_icon",Nf.UNPLUGGED_LIVE_GUIDE="radar_live",Nf.UNPLUGGED_SPORTS="eye_off",Nf.UPLOADS="library",Nf.UP_ARROW="arrow_up",Nf.VERTICAL_ALIGN_BOTTOM="download",Nf.VERY_HAPPY="face_very_happy",Nf.VERY_SAD="face_very_sad",Nf.VIDEOGAME_ASSET="gaming",Nf.VIDEOS="play_arrow_circle",Nf.VIDEO_CALL="video_camera_add",Nf.VIDEO_LIBRARY_WHITE="library",Nf.VIDEO_YOUTUBE="youtube_logo_icon",Nf.VIEW_LIST="list_view",Nf.VIEW_LIST_CAIRO="list_view_cairo",
Nf.VISIBILITY="eye",Nf.VISIBILITY_OFF="eye_off",Nf.VOLUME_MUTE="volume_off",Nf.VOLUME_UP="volume_on",Nf.WALLPAPER="image",Nf.WARNING="alert_triangle",Nf.WATCH_HISTORY="arrow_time",Nf.WATCH_HISTORY_CAIRO="arrow_time_cairo",Nf.WATCH_LATER="clock",Nf.WATCH_LATER_CAIRO="clock_cairo",Nf.WATCH_RELATED_MIX="youtube_mix",Nf.WHAT_TO_WATCH="home",Nf.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Nf.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",Nf.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
Nf.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",Nf.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",Nf.YT_OUTLINE_MUSIC_24="music",Nf);var Y4={},CBN=(Y4.ACCESS_TIME="clock",Y4.ACCOUNT_BOX="person_square",Y4.ACCOUNT_BOX_CAIRO="person_square",Y4.ACCOUNT_CIRCLE="person_circle",Y4.ACCOUNT_CIRCLE_CAIRO="person_circle",Y4.ACCOUNT_LINKED="account_link",Y4.ACCOUNT_UNLINKED="account_link",Y4.ADD_CIRCLE="add_circle",Y4.ADD_CIRCLE_OUTLINE="add_circle",Y4.ADD_FRIEND="person_child",Y4.ADD_MODERATOR="shield_add",Y4.ADD_TO_LIBRARY="bookmark",Y4.ADD_TO_PLAYLIST="add",Y4.ADD_TO_QUEUE_TAIL="queue",Y4.ADD_TO_REMOTE_QUEUE="playlist_audio",Y4.ADD_TO_WATCH_LATER=
"clock",Y4.ADD_VIDEO_LINK="film_strip_add",Y4.ADMIN_PANEL_SETTINGS="person_gear",Y4.ALERT_WARN_RED="alert_triangle",Y4.ALIGN_LEFT="text_align_left",Y4.ARROWS_ALERT="arrow_split_alert",Y4.ARROW_BACK="arrow_left",Y4.ARROW_CIRCLE="arrow_counterclockwise",Y4.ARROW_CIRCLE_PLAY="replay",Y4.ARROW_CIRCLE_RIGHT="arrow_clockwise",Y4.ARROW_DIAGONAL="arrow_up_left",Y4.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Y4.ARROW_DROP_DOWN="triangle_down",Y4.ARROW_DROP_UP="triangle_up",Y4.ARROW_FORWARD="arrow_right",Y4.ARROW_PAUSE=
"pause_history",Y4.ARROW_UNDO="undo",Y4.ARTICLE="text_page",Y4.ARTICLE_ALERT="text_page_alert",Y4.ARTICLE_CHECK="text_page_check",Y4.ARTICLE_CLARIFY="text_page_info",Y4.AUDIOTRACK="audio",Y4.AUDIO_BADGE="audio_badge",Y4.AUDIO_SURROUND="surround_sound",Y4.AUTO_AWESOME="sparkles",Y4.AVATAR_ANONYMOUS="person_circle",Y4.AVATAR_LOGGED_OUT="person_circle",Y4.BACK="arrow_left",Y4.BAR_CHART="chart_bar",Y4.BAR_CIRCLE="minus_circle",Y4.BAR_HORIZONTAL="minus",Y4.BLOCK="circle_slash",Y4.BLOCK_USER="circle_slash",
Y4.BOOKMARK_BORDER="bookmark",Y4.BOX_OPEN_CHECK="quiz",Y4.BOX_PENCIL="square_pencil",Y4.BOX_STACK_3="square3_stack",Y4.BREAKING_NEWS_ALT_1="text_page_alert",Y4.BROADCAST="podcast",Y4.BROADCAST_CAIRO="podcast",Y4.BUG_REPORT="bug",Y4.CAMERA_ALT="camera",Y4.CAMPAIGN="megaphone",Y4.CANCEL="x_circle",Y4.CAPTIONS="closed_captions",Y4.CAST_ICON="chromecast",Y4.CAST_OUTLINE="chromecast",Y4.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Y4.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",Y4.CHAT="text_bubble",
Y4.CHAT_BUBBLE="bubble",Y4.CHECK_BOX="check_square",Y4.CHECK_BOX_OUTLINE_BLANK="square",Y4.CHECK_CIRCLE_FILLED="check_circle",Y4.CHECK_CIRCLE_OUTLINE="check_circle",Y4.CHECK_CIRCLE_THICK="check_circle",Y4.CHECK_DOUBLE="check_done",Y4.CHECK_DOUBLE_OFF="check_done_slash",Y4.CHEVRON_LEFT="chevron_left",Y4.CHEVRON_RIGHT="chevron_right",Y4.CHEVRON_RIGHT_CAIRO="chevron_right",Y4.CIRCLES_OVERLAP="account_link",Y4.CLAPPERBOARD_CAIRO="clapperboard",Y4.CLARIFY="text_page_info",Y4.CLOCK_ARROWS="clock_split",
Y4.CLOCK_ARROWS_ALERT="clock_split_alert",Y4.CLOSED_CAPTION="closed_captions",Y4.CLOSED_CAPTION_SELECTED="closed_captions",Y4.CLOSE="x",Y4.CLOUD_UPLOAD="cloud_arrow_up",Y4.COLLAPSE="chevron_up",Y4.COLLAPSE_CAIRO="chevron_up",Y4.COLLECTION="square3d_stack",Y4.COLOR_LENS="paint_palette",Y4.COMMENT="text_bubble",Y4.CONSENT_SHIELD="person_shield",Y4.CONTENT_CUT="scissors",Y4.CONTENT_CUT_CAIRO="scissors",Y4.COURSE="graduation_cap",Y4.COURSE_CAIRO="graduation_cap",Y4.CREATION_LIVE="live",Y4.CREATION_POST=
"square_pencil",Y4.CREATION_UPLOAD="video",Y4.CREATION_UPLOAD_RED="upload",Y4.CREATOR_ACADEMY="graduation_cap",Y4.CREATOR_STUDIO="youtube_studio",Y4.DARK_THEME="theme",Y4.DELETE="trash_can",Y4.DELETE_SWEEP="trash_can",Y4.DESKTOP="laptop",Y4.DISLIKE="thumb_down",Y4.DISLIKE_SELECTED="thumb_down",Y4.DISMISSAL="x",Y4.DISMISS_QUEUE="playlist_x",Y4.DOGFOOD="pawprint",Y4.DOLLAR_SIGN="dollar_sign_circle",Y4.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Y4.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Y4.DOWN_ARROW=
"arrow_down",Y4.DO_NOT_DISTURB="circle_slash",Y4.DRAFT="document",Y4.DRAG_HANDLE="equal",Y4.EARTH="globe",Y4.EDIT="pencil",Y4.EMOJI="face_very_happy",Y4.EMOJI_FLAGS="flag",Y4.EMOJI_OBJECTS="lightbulb",Y4.EMOJI_PEOPLE="face_very_happy",Y4.EMOJI_RECENT="clock",Y4.EMPTY_HEART="heart",Y4.EMPTY_LIKE="thumb_up",Y4.ERROR_BLACK="alert_circle",Y4.ERROR_OUTLINE="alert_circle",Y4.ERROR_WHITE="alert_circle",Y4.EXIT_APP="arrow_in",Y4.EXIT_TO_APP="arrow_in",Y4.EXPAND="chevron_down",Y4.EXPAND_ALL="chevron_expand",
Y4.EXPAND_CAIRO="chevron_down",Y4.EXPAND_LESS="chevron_up",Y4.EXPAND_MORE="chevron_down",Y4.EXPLORE="compass",Y4.EXPLORE_DESTINATION="compass",Y4.EXTERNAL_LINK="arrow_up_right",Y4.EYE_OFF="eye_slash",Y4.FAB_UPLOAD="upload",Y4.FACE_HAPPY_OUTLINE="face_happy",Y4.FACE_MEH="face_neutral",Y4.FACT_CHECK="text_page_check",Y4.FASHION_LOGO="fashion",Y4.FASHION_LOGO_CAIRO="fashion",Y4.FAVORITE="thumb_up",Y4.FEEDBACK="alert_bubble",Y4.FEEDBACK_CAIRO="alert_bubble",Y4.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
Y4.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Y4.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Y4.FLAG_CAIRO="flag",Y4.FLASH_OFF="flash_slash",Y4.FLASH_ON="flash",Y4.FULL_HEART="heart",Y4.GAMING_LOGO="gaming",Y4.GAMING_LOGO_CAIRO="gaming",Y4.GO_TO_PAGE="arrow_right",Y4.GROUPS="person3",Y4.HAND_SWIPE_LEFT="gesture_swipe_left",Y4.HAND_SWIPE_RIGHT="gesture_swipe_right",Y4.HAPPY="face_happy",Y4.HEALTH_AND_SAFETY="shield_health",Y4.HEART_BOX="heart_cube",Y4.HELP="help_circle",Y4.HELP_CAIRO="help_circle",
Y4.HELP_OUTLINE="help_circle",Y4.HIDE="circle_slash",Y4.INCOGNITO_CAIRO="incognito",Y4.INFINITY_ICON="infinity",Y4.INFO="info_circle",Y4.INFO_OUTLINE="info_circle",Y4.INSERT_CHART="chart_bar_square",Y4.INSERT_CHART_OUTLINED="chart_bar_square",Y4.INSERT_PHOTO="image",Y4.KEEP="pin",Y4.KEEP_OFF="pin_slash",Y4.KEYBOARD="keyboard",Y4.KEYBOARD_ARROW_DOWN="chevron_down",Y4.KEYBOARD_ARROW_UP="chevron_up",Y4.KIDS_BLOCK="circle_slash",Y4.LANGUAGE="globe",Y4.LAUNCH="arrow_up_right",Y4.LEARNING="lightbulb",Y4.LEARNING_CAIRO=
"lightbulb",Y4.LIBRARY_ADD="bookmark",Y4.LIBRARY_IMAGE="image_stack",Y4.LIBRARY_MUSIC="audio_square_stack",Y4.LIBRARY_OUTLINE="play_square_stack",Y4.LIBRARY_REMOVE="bookmark",Y4.LIBRARY_SAVED="check_square_stack",Y4.LIKES_PLAYLIST="thumb_up",Y4.LIKES_PLAYLIST_CAIRO="thumb_up",Y4.LIKE="thumb_up",Y4.LIKE_SELECTED="thumb_up",Y4.LIST_QUEUE="queue",Y4.LIVE_CAIRO="live",Y4.LIVE_UNLISTED="link",Y4.LOCATION_ON="location_pin",Y4.LOCATION_PIN="location_pin",Y4.LOCATION_POINT="location_pin",Y4.LOOP="repeat",
Y4.LOOP_ACTIVE="repeat",Y4.LOOP_ONE="repeat1",Y4.LOOP_ONE_ACTIVE="repeat1",Y4.MEET="google_meet",Y4.MEH="face_neutral",Y4.MEMBERSHIPS="memberships",Y4.MEMBERS_ONLY_MODE_OFF="text_bubble",Y4.MENU_FILTER="filter",Y4.MESSAGE="text_bubble",Y4.MESSAGE_BUBBLE_GEAR="bubble_gear",Y4.MESSAGE_BUBBLE_LEFT="text_bubble",Y4.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Y4.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Y4.MESSAGE_BUBBLE_QUESTION="help_bubble",Y4.MICROPHONE_ON="mic",Y4.MONETIZATION_ON="dollar_sign_circle",
Y4.MONEY_FILL="dollar_sign_rectangle",Y4.MONEY_FILL_JPY="yen_sign_rectangle",Y4.MONEY_HAND="dollar_sign_circle_hand",Y4.MONEY_HEART="dollar_sign_heart",Y4.MOON_Z="sleep_timer",Y4.MORE_HORIZ="overflow_horizontal",Y4.MORE_VERT="overflow_vertical",Y4.MUSIC="audio",Y4.MUSIC_CAIRO="audio",Y4.MUSIC_EXPLICIT_BADGE="explicit",Y4.MUSIC_NEW_RELEASE="audio_badge",Y4.MUSIC_NOTE_SYMBOL="audio",Y4.MUSIC_SCISSORS="audio_scissors",Y4.MUSIC_SHUFFLE="shuffle",Y4.MY_CHANNEL="person_circle",Y4.MY_LOCATION="location_pin",
Y4.MY_VIDEOS="video",Y4.MY_VIDEOS_CAIRO="video",Y4.NEWS_CAIRO="news",Y4.NEWS_STORY="news",Y4.NEXT="chevron_right",Y4.NOTE_ADD="bubble_pencil",Y4.NOTIFICATIONS="bell",Y4.NOTIFICATIONS_ACTIVE="bell_waves",Y4.NOTIFICATIONS_CAIRO="bell",Y4.NOTIFICATIONS_DONE_CHECKMARK="check",Y4.NOTIFICATIONS_INBOX="bell",Y4.NOTIFICATIONS_NONE="bell",Y4.NOTIFICATIONS_OFF="bell_slash",Y4.NOT_INTERESTED="circle_slash",Y4.OFFICIAL_ARTIST_BADGE="audio",Y4.OFFLINE_CLOUD="cloud_slash",Y4.OFFLINE_DOWNLOAD="download",Y4.OFFLINE_DOWNLOAD_CAIRO=
"download",Y4.OFFLINE_PAUSE="pause",Y4.OPEN_IN_NEW="arrow_up_right",Y4.OUTLINE_ADJUST="adjust",Y4.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",Y4.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Y4.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",Y4.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Y4.OUTLINE_BAG="bag",Y4.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",Y4.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Y4.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Y4.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Y4.PAID=
"dollar_sign_circle",Y4.PAUSE_OUTLINED="pause",Y4.PAYMENT="credit_card",Y4.PEOPLE="person_child",Y4.PEOPLE_2="person2_rectangle",Y4.PEOPLE_GROUP="person3",Y4.PEOPLE_NOTE="bubble_asterisk",Y4.PERSON_2="person2",Y4.PERSON_ACCOUNT="person_square_stack",Y4.PERSON_MINUS="person_x",Y4.PERSON_MUSIC="person_audio",Y4.PERSON_RADAR="person_waves",Y4.PERSON_RADAR_FILLED="person_waves",Y4.PERSON_SETTING="person_gear",Y4.PHONE="phone",Y4.PHONE_DOWNLOAD="mobile_arrow_down",Y4.PICTURE_IN_PICTURE="picture_in_picture",
Y4.PLAYABLES_LOGO="playables",Y4.PLAYABLES_LOGO_CAIRO="playables",Y4.PLAYLISTS="playlist",Y4.PLAYLISTS_CAIRO="playlist",Y4.PLAYLIST_ADD_CHECK="bookmark",Y4.PLAY_ALL="play",Y4.PLAY_ARROW="play",Y4.PLAY_ARROW_CIRCLE="play_circle",Y4.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",Y4.PLAY_CIRCLE="play_circle",Y4.PLAY_OUTLINED="play_circle",Y4.PODCAST_ADD="podcast_add",Y4.PODCAST_CHECK="podcast_check",Y4.PRIVACY_INFO="shield_x",Y4.PRIVACY_PRIVATE="lock",Y4.PRIVACY_PUBLIC="globe",Y4.PRIVACY_UNLISTED=
"link",Y4.PROMOTE="megaphone",Y4.PURCHASES="price_tag",Y4.PURCHASE_SUPER_CHAT="super_chat",Y4.PURCHASE_SUPER_STICKER="super_sticker",Y4.QUESTION_ANSWER="help_bubble",Y4.QUESTION_CIRCLE="help_circle",Y4.QUEUE_PLAY_LAST="queue_last",Y4.QUEUE_PLAY_NEXT="queue_next",Y4.QUOTATION_MARK="quote",Y4.RADAR_LIVE="live",Y4.REMOVE="minus_circle",Y4.REMOVE_CIRCLE="minus_circle",Y4.REMOVE_CIRCLE_OUTLINE="minus_circle",Y4.REMOVE_FROM_HISTORY="minus_circle",Y4.REMOVE_FROM_PLAYLIST="minus_circle",Y4.REMOVE_MODERATOR=
"shield_slash",Y4.REPLAY="arrow_counterclockwise",Y4.REPLAY_10="skip10_back",Y4.REPLAY_ARROW="replay",Y4.REPORT_PROBLEM="alert_triangle",Y4.RSS_OFF="rss_slash",Y4.SAD="face_sad",Y4.SAVE_PLAYLIST="bookmark",Y4.SCHEDULE="clock",Y4.SCHOOL="graduation_cap",Y4.SCREEN_DEFAULT="player_default",Y4.SCREEN_FULLSCREEN="player_full_enter",Y4.SCREEN_LIGHT="ambient_mode",Y4.SCREEN_ROTATION="rotate_portrait",Y4.SCREEN_SWITCH="player_switch",Y4.SCREEN_THEATRE="player_theater",Y4.SEARCH_CAIRO="search",Y4.SEARCH_HISTORY=
"history",Y4.SELL="price_tag",Y4.SETTINGS="gear",Y4.SETTINGS_CAIRO="gear",Y4.SETTINGS_LIGHT="gear",Y4.SETTINGS_MATERIAL="gear",Y4.SETTINGS_REMOTE="remote_waves",Y4.SHARE="share",Y4.SHARE_ARROW="share",Y4.SHARE_CAIRO="share",Y4.SHIELD="shield_x",Y4.SHIELD_OFF="shield_slash",Y4.SHIELD_WITH_AVATAR="person_shield",Y4.SHOPPING_BAG="bag",Y4.SHOPPING_BAG_CAIRO="bag",Y4.SHOPPING_CART="cart",Y4.SHORTS_COMMENT="text_bubble",Y4.SHORTS_DISLIKE="thumb_down",Y4.SHORTS_LIKE="thumb_up",Y4.SHORTS_SHARE="share",Y4.SKIP_FORWARD_30=
"skip30_forward",Y4.SLASH_CIRCLE_RIGHT="circle_slash",Y4.SLOW_MODE="bubble_slow",Y4.SLOW_MODE_OFF="text_bubble",Y4.SOCIAL="person_child",Y4.SPARKLE="sparkles",Y4.SPARK_IMAGE="image_spark",Y4.SPARK_RADAR="spark_waves",Y4.SPARK_VIDEO="video_spark",Y4.SPEAKER_GROUP="speaker_stack",Y4.SPEAKER_OFF="speaker_slash",Y4.SPEED_1X="n1x",Y4.SPEED_1_POINT_2X="n1point2x",Y4.SPEED_1_POINT_5X="n1point5x",Y4.SPEED_1_POINT_8X="n1point8x",Y4.SPEED_2X="n2x",Y4.SPONSORSHIP_STAR="star_circle",Y4.SPORTS="basketball",Y4.SPOTLIGHT=
"spotlight",Y4.STAFF_PICK="spotlight",Y4.START_DVR="add",Y4.STAR_BORDER="star",Y4.STAR_CIRCLE_RIBBON="memberships_gift",Y4.STAR_HALF="star_half_filled",Y4.STAR_SHOOTING="hype",Y4.STICKER="sticker",Y4.STICKER_EMOTICON="face_happy",Y4.STOP_DVR="stop",Y4.SUBSCRIBE="youtube",Y4.SUBSCRIBE_PLUS="add",Y4.SUBSCRIPTION_MANAGER="gear",Y4.SUPERSTAR="super_star",Y4.SUPERVISOR_ACCOUNT="person_child",Y4.SUPER_CHAT_FOR_GOOD="hands_heart",Y4.SWAP_HORIZ="arrow_swap_horizontal",Y4.SWITCH_ACCOUNTS="person_square_stack",
Y4.TAB_ACCOUNT="person",Y4.TAB_ACTIVITY="bell",Y4.TAB_BOOKMARK="bookmark",Y4.TAB_EXPLORE="compass",Y4.TAB_HOME="home",Y4.TAB_HOME_CAIRO="home",Y4.TAB_INBOX="mail",Y4.TAB_LIKED="thumb_up",Y4.TAB_MUSIC_PREMIUM="youtube_music",Y4.TAB_SHORTS="shorts",Y4.TAB_SHORTS_CAIRO="shorts",Y4.TAB_SUBSCRIPTIONS="subscriptions",Y4.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Y4.TAB_TRENDING="trending",Y4.TARGET="target",Y4.TARGET_ADD="target_add",Y4.TEMPLATE_ADD="template_add",Y4.TEXT="font",Y4.TIMER="stopwatch",Y4.TRENDING_CAIRO=
"trending",Y4.TRENDING_UP="arrow_trend_up",Y4.TROPHY_CAIRO="trophy",Y4.TROPHY_CELEBRATIONS="fireworks",Y4.TROPHY_STAR="star_trophy",Y4.TUNE="adjust",Y4.TV_OFF="tv_slash",Y4.UNBLOCK_USER="minus_circle",Y4.UNFAVORITE="thumb_down",Y4.UNLIMITED="youtube",Y4.UNPLUGGED_LIVE_GUIDE="live",Y4.UNPLUGGED_SPORTS="eye_slash",Y4.UPLOADS="play_square_stack",Y4.UP_ARROW="arrow_up",Y4.VERTICAL_ALIGN_BOTTOM="chevron_down_end",Y4.VERTICAL_ALIGN_TOP="chevron_up_end",Y4.VERY_HAPPY="face_very_happy",Y4.VERY_SAD="face_very_sad",
Y4.VIDEOS="play_circle",Y4.VIDEO_CALL="video_camera_add",Y4.VIDEO_LIBRARY_WHITE="play_square_stack",Y4.VIDEO_QUALITY_4K="n4k",Y4.VIDEO_QUALITY_8K="n8k",Y4.VIDEO_YOUTUBE="youtube",Y4.VIEW_LIST_CAIRO="view_list",Y4.VIEW_MODULE="view_column3_row2",Y4.VISIBILITY="eye",Y4.VISIBILITY_OFF="eye_slash",Y4.VOLUME_DOWN="volume_min",Y4.VOLUME_MUTE="volume_mute",Y4.VOLUME_OFF="volume_mute",Y4.VOLUME_STABLE="stable_volume",Y4.VOLUME_UP="volume_max",Y4.WALLPAPER="image",Y4.WARNING="alert_triangle",Y4.WATCH_HISTORY=
"history",Y4.WATCH_HISTORY_CAIRO="history",Y4.WATCH_LATER="clock",Y4.WATCH_LATER_CAIRO="clock",Y4.WATCH_RELATED_MIX="mix",Y4.WHAT_TO_WATCH="home",Y4.YOUTUBE_LINKED_TV="tv_mobile",Y4.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Y4.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Y4.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",Y4.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Y4.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Y4.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Y4.YOUTUBE_SHORTS_OUTLINE_24="shorts",
Y4);var cZN={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,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,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,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],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,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[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,9,16],[1,9,18],[1,9,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,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,
24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,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,14,24],[1,14,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,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,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,6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,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,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],
uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_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 BLe={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,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,3,24],[1,3,18],[1,3,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,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,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,11,24],
[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,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,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,
1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,
1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[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,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,
24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,
1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],
live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,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,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,3,24],[1,3,18],[1,3,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,9,18],[1,9,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,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,
24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,
1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_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,4,12],[1,4,18],[1,4,24],[1,4,48]],playlist_add:[[1,2,18],[1,2,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],
playlist_x:[[1,2,18],[1,2,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,14,24],[1,14,18],[1,14,24],[1,14,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,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,
24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,3,24],[1,3,18],[1,3,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,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,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]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,
1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],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,10,24],
[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,
1,24]],video_link:[[1,5,18],[1,5,24]],video_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 d1Z={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"},x4=function(W){this.iconUrlProvider=W};
x4.prototype.resolveIcon=function(W,l){var V=d1Z[W.iconName.toUpperCase()];V&&(W.iconName=V);var f=W.iconName;f=f.replace(/-/g,"_");W=Object.assign({},W,{iconName:this.mapIconTypeToStandardName(f,!!V)||f.toLowerCase()});if(_.U("enable_web_delhi_icons")||V){var r;return QFz(BLe,W,((r=this.iconUrlProvider)==null?void 0:r.getYtStandardUrl)||aQj,l)}var R;return QFz(cZN,W,((R=this.iconUrlProvider)==null?void 0:R.getYtStandardUrl)||O8J,l)};
x4.prototype.mapIconTypeToStandardName=function(W,l){return _.U("enable_web_delhi_icons")||l?CBN[W.toUpperCase()]:ncL[W.toUpperCase()]};
x4[k$]=[_.R0(yZw)];var JZ7=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),D12=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),U1H=function(W){this.urlProvider=this.iconUrlProvider=W};
_.v(U1H,x4);
U1H.prototype.resolveIcon=function(W,l){W.iconName==="youtube_logo"&&(W.iconName="yt-logo-updated");if(W.iconName==="youtube_premium_logo"||W.iconName==="youtube_red_logo")W.iconName="yt-logo-red-updated";var V=Object.assign({},W);W.iconName==="menu"&&(_.U("enable_web_delhi_icons")||(V.iconName="bars_3"),V.iconStyle="youtube_outline");W.iconSetName==="socialNetworksRound"&&(W.iconName==="mail"&&(V.iconName="email"),W.iconName==="embed"&&(V.iconSize=60));W.iconName==="more"&&(V.iconName="overflow_horizontal");
W.iconName==="fullscreen"&&(V.iconName="screen_full");W.iconName==="premium_standalone"&&(V.iconName="premium_standalone_cairo");_.U("enable_connect_icon_update_web")&&W.iconName==="account_linked"&&(V.iconName="circles_overlap_check",V.iconStyle="youtube_fill");_.U("enable_connect_icon_update_web")&&W.iconName==="account_unlinked"&&(V.iconName="circles_overlap",V.iconStyle="youtube_outline");JZ7.has(W.iconName)&&(V.iconStyle="youtube_fill");_.U("enable_web_delhi_icons")&&(W.iconName==="playlist_add"&&
(V.iconName="bookmark"),W.iconName==="offline_pin"&&(V.iconName="arrow_down_circle",V.iconStyle="youtube_fill"),D12.has(W.iconName)&&(V.iconName+="_updated"));W=Object.assign({},V,{iconName:(x4.prototype.mapIconTypeToStandardName.call(this,V.iconName)||V.iconName).toLowerCase()});var f;return(W=QFz(sX5,W,((f=this.urlProvider)==null?void 0:f.getUrl)||zZU,l))?W:x4.prototype.resolveIcon.call(this,V,l)};
U1H[k$]=[_.R0(yZw)];_.u9Y=1;var e8=function(W,l){this.JSC$17232_commandHandler=W;this.innertubeTransportService=l};
_.v(e8,Do);e8.prototype.resolveCommand=function(W,l){var V=this,f,r,R;return _.g(function(y){return(f=_.k(W,sjk))?y.return(ka1(V,f,(r=l)==null?void 0:(R=r.form)==null?void 0:R.element)):y.return()})};
var ka1=function(W,l,V){l={profileCardContext:l.profileCardContext,profileOwnerExternalChannelId:l.profileOwnerExternalChannelId};var f=_.Um($zc);return _.B3(W.innertubeTransportService,l,f).then(function(r){if(!r)throw new _.bP("GetProfileCard failed");if(r=r.popupCommand){W.JSC$17232_commandHandler.resolveCommand(r,{form:{element:V}});_.Ob(_.Qq(),66557);r=r==null?void 0:r.clickTrackingParams;var R=_.$G();r&&R&&_.Qq().graftServerVe(r,R)}})};
e8[k$]=[_.s6,_.Vb];var qf=function(){};
_.v(qf,Do);qf.prototype.resolveCommand=function(W){var l,V;return _.g(function(f){l=_.k(W,B3B);if(!l)return f.return();V=Number(l.enableDelayedPacfLoggingTvMs);if(isNaN(V)){var r=YF();Gh1(r,l,0)}else Gh1(YF(),l,V);_.ju(f)})};_.h3=function(){};
_.v(_.h3,Do);
_.h3.prototype.resolveCommand=function(W,l){var V=this,f,r,R,y,P,n,B;return _.g(function(d){f=_.k(W,dRv);R=(r=l.form)==null?void 0:r.element;P=(y=R)==null?void 0:y.closest("ytd-enforcement-message-view-model");if(!f||!P)return d.return();V.allowAdsAction||(n=f.fundingChoiceInstructionPageUrl,V.allowAdsAction=new ACL(window,_.Av(n)));var J=V.allowAdsAction;J.wallElement=P;J.allowAdsPopup.style.setProperty("display","flex","important");var D=J.scrollManager;D.originalBodyOverflow=D.JSC$9994_domHelper.JSC$9321_document_.body.style.overflow;D.JSC$9994_domHelper.JSC$9321_document_.body.style.overflow=
"hidden";J.wallElement.style.setProperty("display","none","important");qRL(J.accessibilityManager,J.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((B=V.allowAdsAction.allowAdsPopup)&&B instanceof HTMLElement)for(J=_.L(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),D=J.next();!D.done;D=J.next()){var u=_.L(D.value);D=u.next().value;u=u.next().value;B.style.setProperty(D,u)}_.ju(d)})};
_.h3.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var S8=function(){};
_.v(S8,Do);S8.prototype.resolveCommand=function(W){var l;return _.g(function(V){l=_.k(W,gCZ);if(!l)return V.return();bQg(W);_.ju(V)})};var Ea=function(W){this.JSC$17247_commandHandler=W};
_.v(Ea,Do);
Ea.prototype.resolveCommand=function(W){var l=this,V,f,r,R,y,P,n,B;return _.g(function(d){if(d.nextAddress==1){V=_.k(W,Qz$);if((f=V)==null||!f.text||!navigator.clipboard)return d.return();_.HG(d,2);return d.yield(navigator.clipboard.writeText(V.text),4)}if(d.nextAddress!=2){if(!V.successActions||V.successActions.length===0)return d.return();r=_.L(V.successActions);for(R=r.next();!R.done;R=r.next())y=R.value,l.JSC$17247_commandHandler.resolveCommand(y);return _.qL(d,0)}_.pc(d);if(!V.failureActions||V.failureActions.length===
0)return d.return();P=_.L(V.failureActions);for(n=P.next();!n.done;n=P.next())B=n.value,l.JSC$17247_commandHandler.resolveCommand(B);_.ju(d)})};
Ea[k$]=[_.s6];var $4=function(W){this.JSC$17251_commandHandler=W};
_.v($4,Do);
$4.prototype.resolveCommand=function(W,l){var V=this,f,r,R,y,P,n,B,d,J,D;return _.g(function(u){switch(u.nextAddress){case 1:f=_.k(W,JzX);if(!f)return u.return();_.HG(u,2);if(!f.imageBytes&&!f.imageUrl)throw Error("Ci");if(!f.imageUrl){if(f.imageBytes){R=f.imageBytes;y=R.replace(/-/g,"+").replace(/_/g,"/");var H=xUU(y);r=_.Yk(H)}u.jumpTo(4);break}return u.yield(fetch(f.imageUrl),5);case 5:return P=u.yieldResult,u.yield(P.blob(),6);case 6:n=u.yieldResult,r=_.Yk(n);case 4:J=(B=l)==null?void 0:(d=B.form)==
null?void 0:d.element;D=document.createElement("a");hO(D,r);J.appendChild(D);D.download="";D.click();J.removeChild(D);URL.revokeObjectURL(_.MI(r));f.successCommand&&V.JSC$17251_commandHandler.resolveCommand(f.successCommand);_.qL(u,0);break;case 2:_.pc(u),f.errorCommand&&V.JSC$17251_commandHandler.resolveCommand(f.errorCommand),_.ju(u)}})};
$4[k$]=[_.s6];var WK=function(W){this.store=W};
_.v(WK,Do);WK.prototype.resolveCommand=function(W){var l=this,V,f,r;return _.g(function(R){f=(V=_.k(W,_.KE9))==null?void 0:V.entityBatchUpdate;if(!f)return R.jumpTo(0);r=Object.assign({},f,{mutations:[].concat(_.QK(f.mutations||[]))});return R.yield(_.QE(r,l.store),0)})};var vcN=function(W){this.JSC$17258_commandHandler=W;this.feedbackDialogMap=new Map};
vcN.prototype.openDialog=function(W,l){(W=this.feedbackDialogMap.get(W))&&this.JSC$17258_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:W}},l)};
vcN[k$]=[_.s6];var lq=new _.vd("FEEDBACK_CONTROLLER_TOKEN");var VN=new _.vd("APP_STORE_TOKEN");var fO=function(W,l){this.store=W;this.controller=l};
_.v(fO,Do);fO.prototype.resolveCommand=function(W,l){var V=this,f,r,R,y,P,n,B,d,J,D,u,H,p,X,w,O,S,N;return _.g(function(x){if(x.nextAddress==1){f=_.k(W,_.NP);if(R=(r=f)==null?void 0:r.contentId)for(P=_.L(((y=f)==null?void 0:y.actions)||[]),n=P.next();!n.done;n=P.next())B=n.value,HeY(V,B,R);D=(d=l)==null?void 0:(J=d.form)==null?void 0:J.element;return x.yield(_.pN(D,[W,{impression:(u=l)==null?void 0:u.disableClickTracking}]).catch(function(){}),2)}H=x.yieldResult;
((p=H)==null?0:(X=p.data)==null?0:(w=X.feedbackResponses)==null?0:w.length)&&(S=(O=H.data.feedbackResponses[0])==null?void 0:O.followUpDialog)&&R&&(N=V.controller)!=null&&N.feedbackDialogMap.set(R,S);_.ju(x)})};
var HeY=function(W,l,V){var f=_.k(l,_.Ig);if(f){f=_.L(f.commands||[]);for(var r=f.next();!r.done;r=f.next())HeY(W,r.value,V)}_.k(l,_.x0)&&W.store.dispatch(_.MB("commandEntity",N$z(V),{key:V,command:l}));_.k(l,Cl$)&&W.store.dispatch(_.MB("commandEntity",N$z(V),{key:V,command:l}))};
fO[k$]=[VN,lq];var rp=function(W){this.controller=W};
_.v(rp,Do);rp.prototype.resolveCommand=function(W,l){var V=this,f,r,R,y;return _.g(function(P){f=_.k(W,_.zs);R=(r=f)==null?void 0:r.targetId;if(((y=f)==null?void 0:y.signal)!=="TELL_US_WHY"||!R)return P.return();V.controller.openDialog(R,l);_.ju(P)})};
rp[k$]=[lq];var Rd=function(W){this.store=W};
_.v(Rd,Do);Rd.prototype.resolveCommand=function(W,l){var V=this,f,r,R,y,P,n,B;return _.g(function(d){f=_.k(W,I28);R=(r=f)==null?void 0:r.contentId;n=(y=l)==null?void 0:(P=y.form)==null?void 0:P.element;B=_.pN(n,[W]);R&&V.undo(R);return d.yield(B,0)})};
Rd.prototype.undo=function(W){this.store.dispatch(_.MB("commandEntity",N$z(W),{key:W,command:void 0}))};
Rd[k$]=[VN];var ti=function(W){this.JSC$17273_commandHandler=W};
_.v(ti,Do);ti.prototype.resolveCommand=function(W){var l=this,V,f,r,R,y,P,n,B;return _.g(function(d){V=_.k(W,ZiB);f=V.flowStateKey;r=V.validationFailureCommand;R=V.submitValidFormCommand;y=fwU(_.Lt,[f||""]);P=_.k(y,avk);((n=P)==null?0:n.isValid)&&R&&l.JSC$17273_commandHandler.resolveCommand(R);((B=P)==null?0:B.isValid)||!r||l.JSC$17273_commandHandler.resolveCommand(r);_.ju(d)})};
ti[k$]=[_.s6];var sv=function(W){this.innertubeTransportService=W};
_.v(sv,Do);sv.prototype.resolveCommand=function(W,l){var V=this,f;return _.g(function(r){return r.yield(_.Lv(V.innertubeTransportService,W,(f=l)==null?void 0:f.form).then(function(R){var y,P;l==null||(y=l.commandController)==null||(P=y.onSuccess)==null||P.call(y,W,R)},function(R){var y,P;
l==null||(y=l.commandController)==null||(P=y.onServerError)==null||P.call(y,W,R)}),0)})};
sv[k$]=[_.Vb];var LO=function(){};
_.v(LO,Do);LO.prototype.resolveCommand=function(W){var l,V,f,r;return _.g(function(R){if(l=_.k(W,_.oIB)){if(V=l.gtmId)f=_.M4("GL",""),_.LA(V,f);(r=l.gtmData)&&_.y5(r)}_.ju(R)})};var yN=function(W,l){this.innertubeTransportService=W;this.JSC$17284_actionRouter=l};
_.v(yN,Do);yN.prototype.resolveCommand=function(W){var l=this,V,f;return _.g(function(r){V=_.k(W,Qjk);if(!V)return r.return();f=V.command;if(!f)return r.return();l.JSC$17284_actionRouter.triggerAction("yt-insert-rich-section-action",V);return r.yield(_.Lv(l.innertubeTransportService,f,{disableCache:!0}),0)})};
yN[k$]=[_.Vb,jb];qQU.bind(null,U3);var Kk1=qQU.bind(null,aML);SQJ.bind(null,U3);var FkL=SQJ.bind(null,aML);$UJ.bind(null,U3);var GaY=$UJ.bind(null,aML);var gp=function(){};
_.v(gp,Do);
gp.prototype.resolveCommand=function(W){var l,V,f,r,R,y,P,n,B,d;return _.g(function(J){l=_.k(W,HCc);if(!l)return J.return();f=((V=l.operations)==null?void 0:V.operations)||[];r=_.L(f);for(R=r.next();!R.done;R=r.next())if(y=R.value,y.insertItemSectionContent){var D=y.insertItemSectionContent,u=D.contents||[];D.insertByPositionInSection?Kk1(D.insertByPositionInSection.sectionTargetId,u,D.insertByPositionInSection.position):D.insertByRelativePositionInSection&&D.insertByRelativePositionInSection.sectionTargetId&&D.insertByRelativePositionInSection.itemTargetId&&
FkL(D.insertByRelativePositionInSection.sectionTargetId,D.insertByRelativePositionInSection.itemTargetId,u,D.insertByRelativePositionInSection.relativePosition)}else y.replaceSection?(D=y.replaceSection,u={},D.replaceByTargetId?u=D.replaceByTargetId:D.replaceByGroupId&&(u={targetId:D.replaceByGroupId.groupId,newContent:D.replaceByGroupId.newContent,undoKey:""}),u.newContent&&Yiv(u.targetId,{continuationItems:[u.newContent]})):y.removeItem?(D=y.removeItem,D.removeByTargetId&&D.sectionTargetId&&GaY(D.sectionTargetId,
D.removeByTargetId.targetIds||[])):y.removeSection&&(y.removeSection.removeByTargetId?(P=void 0,be7(((P=y.removeSection)==null?void 0:P.removeByTargetId.targetIds)||[])):y.removeSection.removeByGroupId&&(n=void 0,be7(((n=y.removeSection)==null?void 0:n.removeByGroupId.groupIds)||[])));d=((B=l.operations)==null?void 0:B.scrollConfig)||{};pkw(d);_.ju(J)})};
var be7=function(W){W=_.L(W);for(var l=W.next();!l.done;l=W.next())Yiv(l.value,{continuationItems:[]})},pkw=function(W){if(W.scrollToItem){var l=W.scrollToItem.item||{},V=l.itemTargetId;
l=l.sectionTargetId;if(V&&l){var f=document.querySelector("[data-target-id="+l+"]"),r=f==null?void 0:f.querySelector("[data-target-id="+V+"]");f&&r&&setTimeout(function(){var R=r.offsetTop-f.offsetTop,y;if(((y=W.scrollToItem)==null?void 0:y.scrollPosition)==="SCROLL_POSITION_CENTER")R-=f.offsetHeight/2,R+=r.offsetHeight/2;else{var P;((P=W.scrollToItem)==null?void 0:P.scrollPosition)==="SCROLL_POSITION_END"&&(R-=f.offsetHeight,R+=r.offsetHeight)}f.scroll({top:R,behavior:"smooth"})},100)}}};var PK=new _.vd("CLIENT_NAME_TOKEN");var ocY=new _.vd("DEFAULT_STORE_EXPIRATION_TOKEN");var zL8=new _.vd("CLIENT_LOCATION_SERVICE_TOKEN");var nO=function(W,l,V){this.clientName=W||_.M4("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=l||_.$V.getInstance();this.JSC$17312_commandHandler=V||_.mK.instance};
_.v(nO,Do);nO.prototype.resolveCommand=function(W){var l=this,V,f;return _.g(function(r){f=(V=_.k(W,WpB))==null?void 0:V.onComplete;l.clientLocationService.clearLocationPlayabilityToken(l.clientName);f&&l.JSC$17312_commandHandler.resolveCommand(f);_.ju(r)})};
nO[k$]=[PK,zL8,_.s6];var CO=function(W){this.innertubeTransportService=W};
_.v(CO,Do);CO.prototype.resolveCommand=function(W,l){var V=this,f,r,R,y;return _.g(function(P){R=(f=l)==null?void 0:(r=f.form)==null?void 0:r.element;return P.yield(_.Lv(V.innertubeTransportService,W,(y=l)==null?void 0:y.form).then(function(n){PgF(R,new CustomEvent("yt-service-request-completed"),{data:n},_.M4("openPopupConfig"))}),0)})};
CO[k$]=[_.Vb];var cK=function(){};
_.v(cK,Do);cK.prototype.resolveCommand=function(W){var l,V;return _.g(function(f){l=_.k(W,x3a);V=document.querySelector("mini-app-container-view-model");if(!l||!V)return f.return();l.isPlaying?V.dispatchEvent(new Event("play")):V.dispatchEvent(new Event("pause"));_.ju(f)})};var BK=function(){};
_.v(BK,Do);BK.prototype.resolveCommand=function(W){var l,V,f,r,R,y,P;return _.g(function(n){l=_.k(W,HfB);if((V=l)==null||!V.paramKeys)return n.return();f=l.paramKeys;r=_.SV(window.location.href);R=_.L(f);for(y=R.next();!y.done;y=R.next())P=y.value,r.JSC$10026_queryData_.remove(P);window.history.replaceState(window.history.state,document.title,r.toString());_.ju(n)})};var jXw=function(){this.dropdownMap=new Map};_.I$5=new _.vd("DROPDOWN_CONTROLLER_TOKEN");var dp=function(W){this.controller=W};
_.v(dp,Do);dp.prototype.resolveCommand=function(W){var l=this,V,f,r,R;return _.g(function(y){V=_.k(W,V6L);if(!V)return y.return();f=V;r=f.dropdownId;R=f.selectedOptionIndex;if(r===void 0||R===void 0)return y.return();var P=l.controller.dropdownMap.get(r);P&&P(R);_.ju(y)})};
dp[k$]=[_.I$5];var Ji=function(W){this.controller=W};
_.v(Ji,Do);Ji.prototype.resolveCommand=function(W){var l=this,V;return _.g(function(f){return(V=_.k(W,cuB))?f.yield(l.controller.closeDialog(),0):f.return()})};
Ji[k$]=[_.L9];var DV=function(W){this.controller=W};
_.v(DV,Do);DV.prototype.resolveCommand=function(W){var l=this,V,f;return _.g(function(r){V=_.k(W,S2a);if(!V)return r.return();var R,y=V.panelIdentifier||((R=V.identifier)==null?void 0:R.tag);if(!y)throw Error("Di");return(f=y)?r.yield(l.controller.hidePanel(f),0):r.jumpTo(0)})};
DV[k$]=[_.tq];var Uv=function(W,l){this.innertubeTransportService=W;this.controller=l};
_.v(Uv,Do);Uv.prototype.resolveCommand=function(W){var l=this,V,f,r,R;return _.g(function(y){if(y.nextAddress==1)return V=_.k(W,E6Z),(f=V)!=null&&f.panelId?y.yield(l.controller.getReloadContinuation(V.panelId),2):y.return();if(y.nextAddress!=3)return(r=y.yieldResult)?y.yield(_.Lv(l.innertubeTransportService,W,{continuation:r}),3):y.return();R=y.yieldResult;return y.yield(l.controller.updatePanel(V.panelId,R.content,!1),0)})};
Uv[k$]=[_.Vb,_.tq];var uq=function(W,l,V){this.innertubeTransportService=W;this.JSC$17348_screenManager=l;this.JSC$17348_commandHandler=V};
_.v(uq,Do);
uq.prototype.resolveCommand=function(W){var l=this,V,f,r,R,y,P;return _.g(function(n){if(n.nextAddress==1){V=_.k(W,_.OBI);if(!V)return n.return();if(V.commands)for(f=_.L(V.commands),r=f.next();!r.done;r=f.next())R=r.value,l.JSC$17348_commandHandler.resolveCommand(R,{disableClickTracking:!0});y=_.zG(W.clickTrackingParams);_.Ob(l.JSC$17348_screenManager,21760,y,{layer:7,parentLayer:0});return n.yield(_.Lv(l.innertubeTransportService,W),2)}P=n.yieldResult;if(!P)return n.return();l.JSC$17348_screenManager.graftServerVe(P.trackingParams,y,
7);_.ju(n)})};
uq[k$]=[_.Vb,_.yM,_.s6];var kK=new _.vd("PANEL_LOADING_STRATEGY_TOKEN");var vK=function(W,l){this.controller=W;this.panelLoadingStrategy=l};
_.v(vK,Do);
vK.prototype.resolveCommand=function(W,l){var V=this,f,r,R;return _.g(function(y){f=_.k(W,wLL);if((r=f)==null||!r.panelLoadingStrategy)return y.return();R=function(P){var n,B,d,J,D,u,H,p,X,w;return _.g(function(O){B=_.k((n=P.dialogViewModel)==null?void 0:n.header,fPI);d={viewModel:P.dialogViewModel};J={};if(H=_.U("web_enable_dialog_header_label")?(D=B)==null?void 0:(u=D.headline)==null?void 0:u.content:void 0)J.ariaLabel=H;f.dismissOnBackgroundTap===!1&&(J.isModal=!0);return P.dialogViewModel?O.yield(V.controller.openDialog(d,
(w=(p=l)==null?void 0:(X=p.form)==null?void 0:X.element)!=null?w:document.body,J),0):O.return()})};
return y.yield(V.panelLoadingStrategy.execute({command:W,data:f.panelLoadingStrategy,renderFn:R,createScreenConfig:{layer:4}}),0)})};
vK[k$]=[_.L9,kK];var HK=function(W,l,V){this.innertubeTransportService=W;this.controller=l;this.JSC$17368_screenManager=V};
_.v(HK,Do);
HK.prototype.resolveCommand=function(W,l){var V=this,f,r,R,y,P,n,B,d,J,D,u,H;return _.g(function(p){switch(p.nextAddress){case 1:f=_.k(W,_.zk);if(!f)return p.return();var X,w=f.panelIdentifier||((X=f.identifier)==null?void 0:X.tag);if(!w)throw Error("Di");r=w;return p.yield(V.controller.isVisible(r,!0),2);case 2:if((R=p.yieldResult)&&f.blockIfPanelOpen)return p.return();n=(P=(y=V.controller).getPanelContent)==null?void 0:P.call(y,r);if(!(X=n))if(f){var O;X=((O=f.globalConfiguration)==null?void 0:
O.initialState)||f.engagementPanel;if(O=!X)O=!!(f==null?0:(w=f.engagementPanelPresentationConfigs)==null?0:w.engagementPanelPopupPresentationConfig);O&&(X=_.WqF(f.panelIdentifier,f.identifier))}else X=void 0;B=X;d=f.engagementPanelPresentationConfigs;J=f.engagementPanelExtras;return p.yield(V.controller.showPanel(r,B,d,J,(D=l)==null?void 0:(u=D.form)==null?void 0:u.element),3);case 3:if(!f.globalConfiguration){p.jumpTo(0);break}_.Ob(V.JSC$17368_screenManager,32633);return p.yield(_.Lv(V.innertubeTransportService,
W),5);case 5:return H=p.yieldResult,V.JSC$17368_screenManager.graftServerVe(H.trackingParams),p.yield(V.controller.updatePanel(r,H.content,!0,J,void 0,H.updatePanelContinuationData),0)}})};
HK[k$]=[_.Vb,_.tq,_.yM];var KO=function(W,l){this.controller=W;this.panelLoadingStrategy=l};
_.v(KO,Do);KO.prototype.resolveCommand=function(W,l){var V=this,f,r,R,y,P,n;return _.g(function(B){f=_.k(W,_.Zy);if((r=f)==null||!r.panelLoadingStrategy)return B.return();P=ieH(V.controller,(R=l)==null?void 0:(y=R.form)==null?void 0:y.element);n=function(d){return _.g(function(J){return d.sheetViewModel?J.yield(V.controller.openSheet({viewModel:d.sheetViewModel},P),0):J.return()})};
return B.yield(V.panelLoadingStrategy.execute({command:W,data:f.panelLoadingStrategy,renderFn:n,createScreenConfig:{layer:0}}),0)})};
KO[k$]=[_.sT,kK];var Fi=function(W,l){this.controller=W;this.JSC$17376_commandHandler=l};
_.v(Fi,Do);Fi.prototype.resolveCommand=function(W,l){var V=this,f,r,R;return _.g(function(y){if(y.nextAddress==1){f=_.k(W,VsX);var P=_.k(f.showCommand,_.zk),n,B,d=(B=P==null?void 0:P.panelIdentifier)!=null?B:P==null?void 0:(n=P.identifier)==null?void 0:n.tag;if(!d)throw Error("Ei");r=d;return y.yield(V.controller.isVisible(r),2)}return(R=y.yieldResult)?y.yield(V.controller.hidePanel(r),0):y.yield(V.JSC$17376_commandHandler.resolveCommand(f.showCommand,l),0)})};
Fi[k$]=[_.tq,_.s6];var bq=function(W,l,V){this.innertubeTransportService=W;this.controller=l;this.JSC$17379_screenManager=V};
_.v(bq,Do);
bq.prototype.resolveCommand=function(W){var l=this,V,f,r,R,y,P,n,B,d,J,D,u,H,p,X,w,O,S,N,x,Y,W8;return _.g(function(c8){switch(c8.nextAddress){case 1:return f=V=_.k(W,fkM),r=f.targetPanelIdentifier,R=f.contentSourcePanelIdentifier,y=f.globalConfiguration,((P=r)==null?0:P.tag)&&((n=R)==null?0:n.tag)?y?c8.yield(l.controller.showPanel(r.tag,_.WqF(r.tag,r),void 0,void 0,void 0),5):c8.yield((D=(J=l.controller).getPanel)==null?void 0:D.call(J,R.tag),4):c8.return();case 4:u=c8.yieldResult;B=(H=u)==null?
void 0:(X=(p=H).getPanelContent)==null?void 0:X.call(p);c8.jumpTo(3);break;case 5:return c8.yield(_.Lv(l.innertubeTransportService,W),6);case 6:w=c8.yieldResult,((O=w)==null?0:O.trackingParams)&&l.JSC$17379_screenManager.graftServerVe(w.trackingParams),B=(S=w)==null?void 0:S.content,d=(N=w)==null?void 0:N.updatePanelContinuationData;case 3:if(Y=(x=B)==null?void 0:x.engagementPanelSectionListRenderer)return c8.yield(l.controller.showPanel(r.tag,void 0,void 0,void 0,void 0,{content:Y.content,secondaryHeaderContent:(W8=
Y.header)!=null?W8:{},targetId:Y.targetId},d),0);c8.jumpTo(0)}})};
bq[k$]=[_.Vb,_.tq,_.yM];var m1Y=function(){};
_.v(m1Y,Do);m1Y.prototype.resolveCommand=function(W){var l,V,f;return _.g(function(r){if(r.nextAddress==1)return(l=_.k(W,g6L))?r.yield(_.jJ(),2):r.return();V=r.yieldResult;if(!V)return r.return();var R=V,y=(f=l)==null?void 0:f.languageCode,P;(R==null?0:(P=R.isReady)==null?0:P.call(R))&&(y=lt6(R,y))&&R.setAudioTrack(y);_.ju(r)})};var pO=function(){};
_.v(pO,Do);var Xk1=function(W){var l;return _.g(function(V){l=_.M4("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;W.JSC$17390_mainAppPlayer=new oR(l);document.addEventListener("yt-page-data-updated",W.JSC$17390_pauseOnNavigation.bind(W));_.ju(V)})};
pO.prototype.JSC$17390_pauseOnNavigation=function(){var W=this,l,V;return _.g(function(f){if(f.nextAddress==1)return l=W.JSC$17390_mainAppPlayer,f.yield(l.api,2);V=f.yieldResult;V.pauseVideo();_.ju(f)})};
var TL5=function(W,l,V){var f;return _.g(function(r){f=W.JSC$17390_mainAppPlayer;return r.yield(f.loadVideoWithPlayerVars({videoId:l,audio_only:"1",player_params:V}),0)})};
pO.prototype.pauseVideo=function(){var W=this,l,V;return _.g(function(f){if(f.nextAddress==1)return l=W.JSC$17390_mainAppPlayer,f.yield(l.api,2);V=f.yieldResult;V.pauseVideo();_.ju(f)})};
pO.prototype.playVideo=function(){var W=this,l,V;return _.g(function(f){if(f.nextAddress==1)return l=W.JSC$17390_mainAppPlayer,f.yield(l.api,2);V=f.yieldResult;V.playVideo();_.ju(f)})};
var wk2=function(W){var l,V;return _.g(function(f){if(f.nextAddress==1)return l=W.JSC$17390_mainAppPlayer,f.yield(l.api,2);V=f.yieldResult;V.mute();_.ju(f)})},AZe=function(W){var l,V;
return _.g(function(f){if(f.nextAddress==1)return l=W.JSC$17390_mainAppPlayer,f.yield(l.api,2);V=f.yieldResult;V.unMute();_.ju(f)})},QXN=function(W,l){return _.g(function(V){switch(V.nextAddress){case 1:switch(l){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return V.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return V.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return V.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return V.jumpTo(5)}V.jumpTo(0);break;case 2:return V.yield(W.playVideo(),7);case 7:V.jumpTo(0);break;case 3:return V.yield(W.pauseVideo(),8);case 8:V.jumpTo(0);break;case 4:return V.yield(wk2(W),9);case 9:V.jumpTo(0);break;case 5:return V.yield(AZe(W),10);case 10:V.jumpTo(0)}})};
pO.prototype.resolveCommand=function(W){var l=this,V,f,r,R,y,P,n,B,d,J,D;return _.g(function(u){return u.nextAddress==1?(V=_.k(W,OCI),((f=V)==null?0:f.newPlaybackParams)||((r=V)==null?0:r.controlAction)?l.JSC$17390_mainAppPlayer?u.jumpTo(2):u.yield(Xk1(l),2):u.return()):((R=V)==null?0:R.newPlaybackParams)?(n=(y=V)==null?void 0:(P=y.newPlaybackParams)==null?void 0:P.externalVideoId,D=(J=(B=V)==null?void 0:(d=B.newPlaybackParams)==null?void 0:d.playerParams)!=null?J:"",n?u.yield(TL5(l,n,D),0):u.return()):
u.yield(QXN(l,V.controlAction),0)})};var od=function(W){this.JSC$17397_commandHandler=W};
_.v(od,Do);
od.prototype.resolveCommand=function(W){var l=this,V,f,r,R,y,P;return _.g(function(n){if(n.nextAddress==1)return(V=_.k(W,P9L))?n.yield(_.jJ(),2):n.return();f=n.yieldResult;if(!f)return n.return();var B=f,d=(r=V)==null?void 0:r.languageCode,J=(R=V)==null?void 0:R.isAutoTranslated;B.getVideoData&&_.ft8(B).length&&((d=Rv8(B,d,J))?B.setOption("captions","track",d):(B.setOption("captions","stickyLoading",{}),B.setOption("captions","track",{})));y=f.isSubtitlesOn()?_.wg("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.wg("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");P=_.kV(y);l.JSC$17397_commandHandler.resolveCommand(P);_.ju(n)})};
od[k$]=[_.s6];var j0=function(W,l){this.shortsPlayerPromise=W;this.JSC$17401_commandHandler=l};
_.v(j0,Do);
j0.prototype.resolveCommand=function(W){var l=this,V,f,r,R,y,P,n,B;return _.g(function(d){if(d.nextAddress==1)return(V=_.k(W,o0Z))?d.yield(l.shortsPlayerPromise,2):d.return();f=d.yieldResult;var J=tO8(f);J!=null&&J.length||(f.loadModule("captions"),J=tO8(f));r=J;if((R=r)==null||!R.length)return y=_.wg("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),P=_.kV(y),l.JSC$17401_commandHandler.resolveCommand(P),d.return();f.toggleSubtitles();n=f.isSubtitlesOn()?_.wg("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.wg("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");B=_.kV(n);l.JSC$17401_commandHandler.resolveCommand(B);_.ju(d)})};
j0[k$]=[_.UQ1,_.s6];var Id=function(W){this.JSC$17404_actionRouter=W;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(l,V){l.triggerAction("yt-dismiss-shopping-timely-shelf-action",V)}]])};
_.v(Id,Do);Id.prototype.resolveCommand=function(W){var l=this,V,f,r;return _.g(function(R){V=_.k(W,BkM);if((f=V)==null||!f.overlayId)return R.return();r=l.dismissPlayerOverlayActions.get(V.overlayId);if(!r)throw Error("Fi`"+V.overlayId);r(l.JSC$17404_actionRouter,V);_.ju(R)})};
Id[k$]=[jb];var iq=function(W){this.JSC$17408_playerPromise=W};
_.v(iq,Do);iq.prototype.resolveCommand=function(W){var l=this,V,f,r,R;return _.g(function(y){if(y.nextAddress==1)return(V=_.k(W,W9k))?y.yield(l.JSC$17408_playerPromise,2):y.return();f=y.yieldResult;r=f.getVideoData().video_id;V.videoId===r&&(R=Number(V.offsetFromVideoStartMilliseconds),R>=0&&f.seekTo(R/1E3));_.ju(y)})};
iq[k$]=[_.vp];var ML1=_.i_("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),mR=function(W){this.store=W};
_.v(mR,Do);
var Ze5=function(W){var l,V,f,r;return _.g(function(R){if(R.nextAddress==1)return l=_.M4("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,V=_.M4("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,f=l||V,W.JSC$17412_mainAppPlayer=new oR(f),R.yield(W.JSC$17412_mainAppPlayer.api,2);r=R.yieldResult;r.addEventListener("onStateChange",W.JSC$17412_playerStateChangeListener.bind(W));document.addEventListener("yt-page-data-updated",W.JSC$17412_pauseOnNavigation.bind(W));window.addEventListener("state-navigatestart",
W.JSC$17412_pauseOnNavigation.bind(W));_.ju(R)})};
mR.prototype.JSC$17412_playerStateChangeListener=function(W){switch(W){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"}OeH(this)};
var OeH=function(W){W.store.dispatch(_.MB("sfvAudioItemCurrentlyPlayingEntity",ML1,{key:ML1,externalVideoId:W.externalVideoId,sfvAudioItemPlaybackState:W.playbackState,nowPlayingEntityValue:W.nowPlayingEntityValue}))};
mR.prototype.JSC$17412_pauseOnNavigation=function(){var W=this,l,V,f,r;return _.g(function(R){if(R.nextAddress==1){if(!W.JSC$17412_mainAppPlayer){var y=new _.bP("Error: mainAppPlayer is unavailable",W.JSC$17412_mainAppPlayer);_.wv(y);return R.return()}return R.yield(W.JSC$17412_mainAppPlayer.api,2)}l=R.yieldResult;f=(V=l)==null?void 0:V.getPlayerState();f!==1||(r=l)!=null&&r.pauseVideo();_.ju(R)})};
mR.prototype.playVideo=function(W,l,V){var f=this,r,R;return _.g(function(y){if(y.nextAddress==1)return y.yield((r=f.JSC$17412_mainAppPlayer)==null?void 0:r.api,2);R=y.yieldResult;if(!f.JSC$17412_mainAppPlayer||!R){var P=new _.bP("Error: mainAppPlayer is unavailable",f.JSC$17412_mainAppPlayer);_.wv(P);return y.return()}return y.yield(f.JSC$17412_mainAppPlayer.loadVideoWithPlayerVars({videoId:f.externalVideoId,audio_only:"1",start:W/1E3,end:W/1E3+l,player_params:V}),0)})};
mR.prototype.pauseVideo=function(){var W=this,l,V;return _.g(function(f){if(f.nextAddress==1){if(!W.JSC$17412_mainAppPlayer){var r=new _.bP("Error: mainAppPlayer is unavailable",W.JSC$17412_mainAppPlayer);_.wv(r);return f.return()}return f.yield(W.JSC$17412_mainAppPlayer.api,2)}l=f.yieldResult;(V=l)==null||V.pauseVideo();_.ju(f)})};
mR.prototype.resolveCommand=function(W){var l=this,V,f,r,R,y,P,n,B,d,J,D,u,H,p,X,w,O,S,N;return _.g(function(x){if(x.nextAddress==1)return V=_.k(W,Fmk),r=(f=V)==null?void 0:f.nowPlayingEntityValue,y=(R=V)==null?void 0:R.externalVideoId,J=Number((d=(P=V)==null?void 0:(n=P.defaultStartPoints)==null?void 0:(B=n[0])==null?void 0:B.offsetMs)!=null?d:"0"),w=Number((X=(D=V)==null?void 0:(u=D.defaultStartPoints)==null?void 0:(H=u[0])==null?void 0:(p=H.duration)==null?void 0:p.seconds)!=null?X:"15"),N=(S=
(O=V)==null?void 0:O.playerParams)!=null?S:"",r&&y?l.JSC$17412_mainAppPlayer?x.jumpTo(2):x.yield(Ze5(l),2):x.return();if(x.nextAddress!=6){if(l.nowPlayingEntityValue&&r===l.nowPlayingEntityValue)return l.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?x.yield(l.pauseVideo(),0):x.yield(l.playVideo(J,w,N),0);l.externalVideoId=y;l.nowPlayingEntityValue=r;l.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return x.yield(l.playVideo(J,w,N),6)}OeH(l);return x.jumpTo(0)})};
mR[k$]=[dl];var a$H=function(W){this.JSC$17430_commandHandler=W};
_.v(a$H,Do);a$H.prototype.resolveCommand=function(W,l){var V=this,f,r,R;return _.g(function(y){if(y.nextAddress==1)return(f=_.k(W,n69))?y.yield(_.jJ(),2):y.return();r=y.yieldResult;if(!r)return y.return();(R=sOJ(r))&&V.JSC$17430_commandHandler.resolveCommand(R,l);_.ju(y)})};
a$H[k$]=[_.s6];var Xi=function(W){this.JSC$17436_commandHandler=W};
_.v(Xi,Do);Xi.prototype.resolveCommand=function(W,l){var V=this,f,r,R,y,P;return _.g(function(n){if(n.nextAddress==1)return(f=_.k(W,C9B))?n.yield(_.jJ(),2):n.return();r=n.yieldResult;if(!r)return n.return();(R=nTz(r))?V.JSC$17436_commandHandler.resolveCommand(R,l):(y=_.wg("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),P=_.kV(y),V.JSC$17436_commandHandler.resolveCommand(P));_.ju(n)})};
Xi[k$]=[_.s6];var T5=function(W){this.JSC$17439_playerPromise=W};
_.v(T5,Do);T5.prototype.resolveCommand=function(W){var l=this,V,f,r,R,y;return _.g(function(P){if(P.nextAddress==1){V=_.k(W,lu$);if(!V)return P.return();f=V.overlayRenderer;return f?(r=_.k(f,DDk))?P.yield(l.JSC$17439_playerPromise,3):P.jumpTo(0):P.return()}R=P.yieldResult;R.renderChapterSeekingAnimation(1,_.dE(r.text),(y=r.icon)==null?void 0:y.iconType);_.ju(P)})};
T5[k$]=[_.vp];var wp=function(W){this.store=W};
_.v(wp,Do);
wp.prototype.resolveCommand=function(W){var l=this,V,f,r;return _.g(function(R){if(R.nextAddress==1){V=_.k(W,aRk);if(!V)return R.return();f="";(r=l.store.getState().collabInviteLink)&&V.id===r.playlistId?f=r.inviteLinkURL:V.shortUrl&&(f=V.shortUrl);return f?R.yield(navigator.clipboard.writeText(f),3):R.jumpTo(0)}var y={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.wg("COPY_LINK_SUCCESS_TOAST")}}}}};_.tY().resolve(_.s6).resolveCommand(y);_.ju(R)})};
wp[k$]=[VN];var Ai=function(W,l){this.innertubeTransportService=W;this.JSC$17449_commandHandler=l};
_.v(Ai,Do);Ai.prototype.resolveCommand=function(W,l){var V=this,f,r,R,y,P,n,B,d,J,D;return _.g(function(u){if(u.nextAddress==1)return(f=_.k(W,_.dT))?u.yield(_.Lv(V.innertubeTransportService,W,(r=l)==null?void 0:r.form),2):u.return();(R=u.yieldResult)&&R.errorMetadata&&(y=R,P=_.kV(y.error.message),V.JSC$17449_commandHandler.resolveCommand(P));n=R;if((B=n)==null?0:B.actions)for(d=_.L(n.actions),J=d.next();!J.done;J=d.next())D=J.value,V.JSC$17449_commandHandler.resolveCommand(D);_.ju(u)})};
Ai[k$]=[_.Vb,_.s6];var QN=function(){};
_.v(QN,Do);QN.prototype.resolveCommand=function(W){var l;return _.g(function(V){l=_.k(W,iCL);if(!l)return V.return();(new utc(l)).show();_.ju(V)})};_.M9=new _.vd("PLAYLIST_EDIT_CONTROLLER_TOKEN");var ZV=function(W,l,V,f){this.store=W;this.innertubeTransportService=l;this.controller=V;this.JSC$17457_commandHandler=f};
_.v(ZV,Do);
ZV.prototype.resolveCommand=function(W,l){var V=this,f,r,R,y,P,n,B,d,J,D,u,H,p,X,w,O,S,N,x,Y,W8,c8,B8,Jx,H8,Kq;return _.g(function(Z4){if(Z4.nextAddress==1){f=_.k(W,_.gT);if(!f)return Z4.return();if(f.clientActions){r=_.L(f.clientActions);for(R=r.next();!R.done;R=r.next())y=R.value,V.JSC$17457_commandHandler.resolveCommand(y);var Ax,sM=l==null?void 0:(Ax=l.form)==null?void 0:Ax.element;sM&&_.FN(sM,"yt-dismissible-item-action",f.clientActions)}return Z4.yield(_.Lv(V.innertubeTransportService,W,(P=
l)==null?void 0:P.form),2)}if(n=Z4.yieldResult)n.errorMetadata?(B=n,d=_.kV(B.error.message),V.JSC$17457_commandHandler.resolveCommand(d),"error"in n&&((J=l)==null?0:(D=J.commandController)==null?0:D.onServerError)&&((u=l)==null||(H=u.commandController)==null||H.onServerError(W,n))):(p=l)==null||(X=p.commandController)==null||(O=(w=X).onSuccess)==null||O.call(w,W,n);S=n;((N=S)==null?0:N.collaborationInviteLink)&&f.playlistId&&(_.U("web_enable_invite_collaborators_link")||_.U("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
V.store.dispatch(_.GT({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:f.playlistId,inviteLinkUrl:S.collaborationInviteLink}}));((x=S)==null?0:x.redirectEndpoint)&&V.JSC$17457_commandHandler.resolveCommand(S.redirectEndpoint);((Y=S)==null?0:(W8=Y.newHeader)==null?0:W8.playlistHeaderRenderer)?zIH(V.controller,S.newHeader.playlistHeaderRenderer):((c8=S)==null?0:(B8=c8.newHeader)==null?0:B8.musicEditablePlaylistDetailHeaderRenderer)&&zIH(V.controller,S.newHeader.musicEditablePlaylistDetailHeaderRenderer);
V.controller.playlistVideoListElement&&((Jx=S)==null?0:(H8=Jx.playlistEditResults)==null?0:(Kq=H8[0])==null?0:Kq.playlistEditVideoAddedResultData)&&((sM=V.controller.playlistVideoListElement)==null||sM.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:S.playlistEditResults[0].playlistEditVideoAddedResultData})));_.ju(Z4)})};
ZV[k$]=[VN,_.Vb,_.M9,_.s6];var Ov=function(W,l){this.controller=W;this.JSC$17467_commandHandler=l};
_.v(Ov,Do);Ov.prototype.resolveCommand=function(W,l){var V=this,f,r,R;return _.g(function(y){f=_.k(W,zdL);V.controller.showRefreshPill&&((r=f)==null?0:r.command)&&(V.JSC$17467_commandHandler.resolveCommand((R=f)==null?void 0:R.command,l),V.controller.showRefreshPill=!1);_.ju(y)})};
Ov[k$]=[_.OI,_.s6];var ad=function(W,l){this.store=W;this.JSC$17471_commandHandler=l||_.mK.instance};
_.v(ad,Do);ad.prototype.resolveCommand=function(W,l){var V=this,f,r,R,y,P,n,B,d,J,D;return _.g(function(u){f=_.k(W,fvZ);r=V.store.getState().radioButtonGroup;if((R=f)==null?0:R.command)V.JSC$17471_commandHandler.resolveCommand((y=f)==null?void 0:y.command,l);else if(r&&((P=f)==null?void 0:P.formId)===r.currentFormId)for(n=Object.values(r.commandsMap),B=_.L(n),d=B.next();!d.done;d=B.next())J=d.value,(D=_.fP(J))&&V.JSC$17471_commandHandler.resolveCommand(D,l);_.ju(u)})};
ad[k$]=[_.Jp];var z5=new _.vd("USER_PREFS");var N9=function(W){this.JSC$17476_prefCookie=W};
_.v(N9,Do);N9.prototype.resolveCommand=function(W){var l=this,V;return _.g(function(f){(V=_.k(W,KxL))&&typeof V.useListView==="boolean"&&(_.ZY(0,155,V.useListView),l.JSC$17476_prefCookie.save());_.ju(f)})};
N9[k$]=[z5];var YK=function(W){this.JSC$17480_prefCookie=W};
_.v(YK,Do);YK.prototype.resolveCommand=function(W){var l=this,V,f,r,R,y;return _.g(function(P){V=_.k(W,XD1);if((f=V)==null||!f.gl)return P.return();r=V.gl;R={persist_gl:"1",gl:r};l.JSC$17480_prefCookie.set("gl",r);l.JSC$17480_prefCookie.save();y=F71(R);_.PV(y);_.ju(P)})};
YK[k$]=[z5];var xK=function(W){this.JSC$17484_prefCookie=W};
_.v(xK,Do);xK.prototype.resolveCommand=function(W){var l=this,V,f;return _.g(function(r){V=_.k(W,YrL);if(!V)return r.return();f=!1;V.flagNum&&typeof V.value==="boolean"?(_.ZY(0,V.flagNum,V.value),f=!0):V.key&&typeof V.stringValue==="string"&&(l.JSC$17484_prefCookie.set(V.key,V.stringValue),f=!0);f&&l.JSC$17484_prefCookie.save();_.ju(r)})};
xK[k$]=[z5];var e0=new _.vd("PREF_STORAGE_PROMISE_TOKEN");var q9=function(W){this.JSC$17488_prefStoragePromise=W};
_.v(q9,Do);q9.prototype.resolveCommand=function(W){var l=this,V,f;return _.g(function(r){if(r.nextAddress==1)return(V=_.k(W,edk))?r.yield(l.JSC$17488_prefStoragePromise,2):r.return();f=r.yieldResult;return f===void 0||V.key===void 0||V.value===void 0?r.return():r.yield(f.set(V.key,V.value),0)})};
q9[k$]=[e0];var NL2=function(W){this.innertubeTransportService=W};
_.v(NL2,Do);NL2.prototype.resolveCommand=function(W,l){var V=this,f,r;return _.g(function(R){(f=_.k(W,_.qbX))&&f&&f.isFirstRequest&&(_.$u("search_overview_answer"),_.Wy("so_rq",void 0,"search_overview_answer"));return R.yield(_.Lv(V.innertubeTransportService,W,(r=l)==null?void 0:r.form),0)})};
NL2[k$]=[_.Vb];var YMs=function(){};
_.v(YMs,Do);
YMs.prototype.resolveCommand=function(W){var l,V,f,r,R,y,P,n,B;return _.g(function(d){l=_.k(W,$Nv);if((V=l)==null?0:V.sectionIdentifier){if(l.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(r=(f=document.getElementsByTagName(l.sectionIdentifier))==null?void 0:f.item(0))r.scrollIntoView({behavior:"smooth"}),(R=EJJ(r))&&R.focus({preventScroll:!0});return d.return()}y=document.querySelector("[section-identifier="+l.sectionIdentifier+"]");P=document.querySelector("[section-identifier="+l.referenceSectionIdentifier+
"]");if(!y)return d.return();n=l.verticalScrollOffsetDp?l.verticalScrollOffsetDp:0;P&&(n-=P.offsetTop);window.scrollTo({top:y.offsetTop+n,behavior:"smooth"});(B=EJJ(y))&&B.focus({preventScroll:!0})}_.ju(d)})};var hi=function(W){this.JSC$17500_commandHandler=W};
_.v(hi,Do);
hi.prototype.resolveCommand=function(W){var l=this,V,f,r,R,y,P,n;return _.g(function(B){if(B.nextAddress==1){V=_.k(W,D5L);if(!V||!V.imageBytes||!navigator.clipboard)return B.return();if(V.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.wv(Error("Hi")),B.return();_.HG(B,2);r=(f=V)==null?void 0:f.imageBytes;R=r.replace(/-/g,"+").replace(/_/g,"/");y=xUU(R);P={};n=[new ClipboardItem((P[y.type]=y,P))];return B.yield(navigator.clipboard.write(n),4)}if(B.nextAddress!=2)return V.successCommand&&
l.JSC$17500_commandHandler.resolveCommand(V.successCommand),_.qL(B,0);_.pc(B);V.errorCommand&&l.JSC$17500_commandHandler.resolveCommand(V.errorCommand);_.ju(B)})};
hi[k$]=[_.s6];var S0=function(W,l){this.innertubeTransportService=W;this.JSC$17504_commandHandler=l};
_.v(S0,Do);S0.prototype.resolveCommand=function(W,l){var V=this,f,r,R,y,P;return _.g(function(n){if(n.nextAddress==1)return(f=_.k(W,U5k))?n.yield(_.Lv(V.innertubeTransportService,W,(r=l)==null?void 0:r.form),2):n.return();(R=n.yieldResult)&&R.errorMetadata&&f.onFailureCommand&&V.JSC$17504_commandHandler.resolveCommand(f.onFailureCommand);y=R;((P=y)==null?0:P.shareCommand)&&V.JSC$17504_commandHandler.resolveCommand(y.shareCommand,l);_.ju(n)})};
S0[k$]=[_.Vb,_.s6];var Ev=function(){};
_.v(Ev,Do);Ev.prototype.resolveCommand=function(W){var l,V;return _.g(function(f){l=_.k(W,ZCM);if(!l||!navigator.share)return f.return();V={url:l.url};try{return f.return(navigator.share(V))}catch(r){}_.ju(f)})};var $K=function(){};
_.v($K,Do);$K.prototype.resolveCommand=function(){return _.g(function(W){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.ju(W)})};var W6=function(W){this.JSC$17514_navigationConfirmationService=W};
_.v(W6,Do);W6.prototype.resolveCommand=function(){var W=this;return _.g(function(l){W.JSC$17514_navigationConfirmationService.cancelPendingNavigation();_.ju(l)})};
W6[k$]=[Eh];var l8=function(W){this.JSC$17517_screenManager=W};
_.v(l8,Do);l8.prototype.resolveCommand=function(W,l){var V=this,f,r,R,y,P,n,B;return _.g(function(d){r=(f=l.form)==null?void 0:f.event;y=(R=l.form)==null?void 0:R.element;if(!r)throw new _.bP("Event not passed in when resolving command");P=_.L(r.composedPath());for(n=P.next();!n.done;n=P.next())if(B=n.value,B.tagName==="YT-COPY-LINK-RENDERER")return B.copyUrlToClipboard(),y&&_.R$(V.JSC$17517_screenManager,y),d.return();_.ju(d)})};
l8[k$]=[_.yM];var VA=function(){this.JSC$17521_miniAppClientDataProvider=_.tY().resolve(_.FQ)};
_.v(VA,Do);VA.prototype.resolveCommand=function(){var W=this,l,V;return _.g(function(f){if(W.JSC$17521_miniAppClientDataProvider.clientData.has("video_id")){var r=W.JSC$17521_miniAppClientDataProvider,R=r.clientData.get("video_id");R&&r.clientData.delete("video_id");l="https://youtube.com/watch?v="+R;V=_.av(l);if(V===void 0)throw Error("Ii`"+l);_.lM(window,V)}_.ju(f)})};var fg=function(){};
_.v(fg,Do);fg.prototype.resolveCommand=function(){return _.g(function(W){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.ju(W)})};var rX=function(){};
_.v(rX,Do);rX.prototype.resolveCommand=function(){var W;return _.g(function(l){if(l.nextAddress==1)return l.yield(_.tqq(window.document.documentElement),2);(W=document.querySelector("mini-app-container-view-model iframe"))&&W.focus();_.ju(l)})};var Ry=function(W){this.JSC$17528_navigationConfirmationService=W};
_.v(Ry,Do);
Ry.prototype.resolveCommand=function(){var W=this;return _.g(function(l){var V=W.JSC$17528_navigationConfirmationService,f=_.tY().resolve(_.fA),r;if(((r=V.navigateParams)==null?void 0:r.data)!==void 0){var R;_.KfI(f,V.navigateParams.endpoint,V.navigateParams.data,(R=V.navigateParams.navigationType)!=null?R:1,V.navigateParams.tempData,V.navigateParams.isMiniplayer,void 0,!0);V.navigateParams=void 0;V.customConfirmationCommand=void 0}else V.navigateParams&&(f.navigate(V.navigateParams.endpoint,V.navigateParams.reload,
V.navigateParams.params,V.navigateParams.tempData,V.navigateParams.requestType,V.navigateParams.createScreenConfig,!0),V.navigateParams=void 0,V.customConfirmationCommand=void 0);_.ju(l)})};
Ry[k$]=[Eh];var tX=function(){};
_.v(tX,Do);tX.prototype.resolveCommand=function(){return _.g(function(W){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.ju(W)})};var sA=function(W){this.JSC$17533_prefStorage=W};
_.v(sA,Do);sA.prototype.resolveCommand=function(){var W=this,l,V;return _.g(function(f){switch(f.nextAddress){case 1:return f.yield(W.JSC$17533_prefStorage,2);case 2:return(l=f.yieldResult)?f.yield(l.set("sfvle",!1),3):f.return();case 3:return f.yield(l.set("sfvles",!0),4);case 4:V=_.MT(),_.ZY(0,203,!1),_.ZY(0,204,!0),V.save(),_.ju(f)}})};
sA[k$]=[e0];var Lg=function(W){this.JSC$17536_prefStorage=W};
_.v(Lg,Do);Lg.prototype.resolveCommand=function(){var W=this,l,V;return _.g(function(f){switch(f.nextAddress){case 1:return f.yield(W.JSC$17536_prefStorage,2);case 2:return(l=f.yieldResult)?f.yield(l.set("sfvle",!0),3):f.return();case 3:return f.yield(l.set("sfvles",!0),4);case 4:V=_.MT(),_.ZY(0,203,!0),_.ZY(0,204,!0),V.save(),_.ju(f)}})};
Lg[k$]=[e0];_.x1Y=new _.vd("SNACKBAR_CONTROLLER_TOKEN");_.eI2=new _.vd("SHOULD_SHOW_PIVOT_BAR_TOKEN");var yA=function(W){this.controller=W};
_.v(yA,Do);yA.prototype.resolveCommand=function(W){var l=this,V;return _.g(function(f){V=_.k(W,TYZ);if(!V)return f.return();var r=l.controller;r.closeSnackbarFn&&r.closeSnackbarFn();_.ju(f)})};
yA[k$]=[_.x1Y];var gX=function(W,l){this.controller=W;this.sheetController=l};
_.v(gX,Do);gX.prototype.resolveCommand=function(W,l){var V=this,f,r,R,y,P,n;return _.g(function(B){f=_.k(W,Apv);if(!f)return B.return();y=ieH(V.sheetController,(r=l)==null?void 0:(R=r.form)==null?void 0:R.element);P=_.k(f.content,ErZ);if(!P)return B.return();var d=V.controller,J=P,D=(n=f.animationStyle)!=null?n:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(d.showSnackbarFn)d.showSnackbarFn({snackbarViewModel:J,animationStyle:D,durationMs:f.durationSeconds*1E3,target:y});else throw Error("sj");_.ju(B)})};
gX[k$]=[_.x1Y,_.sT];var P6=function(){};
_.v(P6,Do);P6.prototype.resolveCommand=function(W){var l;return _.g(function(V){l=_.k(W,xXX);if(!l||typeof l.key!=="string"||typeof l.value!=="string")return V.return();window.localStorage.setItem(l.key,l.value);_.ju(V)})};var ng=function(W){this.store=W};
_.v(ng,Do);ng.prototype.resolveCommand=function(W){var l=this,V;return _.g(function(f){V=_.k(W,j6F);if(!V||!V.stepId||!V.token)return f.return();l.store.dispatch(kO1({stepId:V.stepId,token:V.token,isSelected:!1}));_.ju(f)})};
ng[k$]=[VN];var Cg=function(W,l,V){this.innertubeTransportService=W;this.store=l;this.JSC$17555_screenManager=V};
_.v(Cg,Do);
Cg.prototype.resolveCommand=function(W){var l=this,V,f,r,R,y,P,n,B,d,J,D,u,H,p,X,w,O,S,N,x,Y,W8,c8;return _.g(function(B8){V=_.k(W,MkI);if(!V||(f=V.stepIds)==null||!f.length)return B8.return();r=l.store.getState().talkToRecs;R=[];y=[];P=_.L(V.stepIds);for(n=P.next();!n.done;n=P.next())for(B=n.value,d=void 0,(J=(d=r.stepStates[B])==null?void 0:d.userQuery)&&y.push({userQuery:J.userQuery,userQueryToken:J.token}),D=void 0,u=(D=r.stepStates[B])==null?void 0:D.selectionStates,H=_.L(Object.entries(u)),p=
H.next();!p.done;p=H.next())X=p.value,w=_.L(X),O=w.next().value,S=w.next().value,N=O,x=S,x.isSelected&&R.push(N);Y={selectedChipTokens:R,userQueries:y,submittedStepIds:V.stepIds};W8={browseTalk2recsFormData:Y};V.browseEndpoint?(c8=W,_.SM(c8,_.ZJ,V.browseEndpoint)):V.command&&(c8=V.command);return c8?B8.yield(_.Lv(l.innertubeTransportService,c8,{formData:W8,disableCache:!0}).then(function(Jx){(Jx==null?0:Jx.trackingParams)&&l.JSC$17555_screenManager.graftServerVe(Jx==null?void 0:Jx.trackingParams)}),
0):B8.return()})};
Cg[k$]=[_.Vb,VN,_.yM];var c6=function(W){this.store=W};
_.v(c6,Do);c6.prototype.resolveCommand=function(W){var l=this,V;return _.g(function(f){V=_.k(W,oAq);if(!V||!V.stepId||!V.token)return f.return();l.store.dispatch(kO1({stepId:V.stepId,token:V.token,isSelected:!0}));_.ju(f)})};
c6[k$]=[VN];var B6=function(W){this.store=W};
_.v(B6,Do);B6.prototype.resolveCommand=function(W,l){var V=this,f,r,R,y,P;return _.g(function(n){f=_.k(W,ZUL);if(!f||!f.stepId||!f.userQueryToken)return n.return();P=(y=(r=l)==null?void 0:(R=r.form)==null?void 0:R.userQuery)!=null?y:"";V.store.dispatch(_.GT({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:f.stepId,userQueryToken:f.userQueryToken,userQuery:P}}));_.ju(n)})};
B6[k$]=[VN];_.qM4=new _.vd("TIMELY_ACTIONS_CONTROLLER_TOKEN");var dX=function(W){this.controller=W};
_.v(dX,Do);dX.prototype.resolveCommand=function(W){var l=this,V,f,r,R;return _.g(function(y){V=_.k(W,hiL);if(!V)return y.return();f=V;r=f.id;R=f.isVisible;if(r===void 0||R===void 0)return y.return();var P;(P=l.controller.timelyActionsMap.get(r))==null||P(r,R);_.ju(y)})};
dX[k$]=[_.qM4];var hIs=function(){this.timelyActionsMap=new Map};var JX=function(W){this.JSC$17582_commandHandler=W};
_.v(JX,Do);JX.prototype.resolveCommand=function(W){var l=this,V,f,r,R,y;return _.g(function(P){V=_.k(W,_.Y0);if(!V)return P.return();R=(f=V.item)==null?void 0:(r=f.notificationTextRenderer)==null?void 0:r.successResponseText;if(!R)return P.return();y=_.u0(R);l.JSC$17582_commandHandler.resolveCommand(y);_.ju(P)})};
JX[k$]=[_.s6];var DD=function(W,l){this.innertubeTransportService=W;this.JSC$17587_playerApiPromise=l};
_.v(DD,Do);
DD.prototype.resolveCommand=function(W){var l=this,V,f,r,R,y,P,n,B,d;return _.g(function(J){if(J.nextAddress==1)return J.yield(l.JSC$17587_playerApiPromise,2);V=J.yieldResult;f=V.getOption("captions","track");r=Object.assign({},_.k(W,_.cUa));(y=(R=V.getVideoData())==null?void 0:R.video_id)?r.externalVideoId=y:_.x2(Error("Ji"));if((P=f)==null?0:P.languageCode)r.languageCode=f.languageCode;if((n=f)==null?0:n.kind)r.kind=f.kind;if((B=f)==null?0:B.name)r.name=f.name;d=Object.assign({},W,{getTranscriptEndpoint:r});return J.yield(_.Lv(l.innertubeTransportService,
d),0)})};
DD[k$]=[_.Vb,_.vp];var UA=function(){};
_.v(UA,Do);UA.prototype.resolveCommand=function(W){var l,V,f,r,R,y,P,n;return _.g(function(B){l=_.k(W,VaB);if((V=l)==null||!V.paramKeyValuePairs)return B.return();f=window.location.href;r=_.L(l.paramKeyValuePairs);for(R=r.next();!R.done;R=r.next())y=R.value,y.key&&y.value&&(P={},f=_.EJ(f,(P[y.key]=y.value,P)));n=_.tY().resolve(_.qz);_.eK(n,f);_.ju(B)})};var u8=function(W,l){this.JSC$17594_commandHandler=W;this.innertubeTransportService=l};
_.v(u8,Do);
u8.prototype.resolveCommand=function(W,l){var V=this,f,r,R,y,P,n,B,d,J,D,u,H,p,X,w,O,S;return _.g(function(N){switch(N.nextAddress){case 1:return(R=(f=l)==null?void 0:(r=f.form)==null?void 0:r.element)&&_.$1(R),y=_.MT().get("hl"),P="",_.HG(N,2),N.yield(dh8(y),4);case 4:P=N.yieldResult;_.qL(N,3);break;case 2:return _.pc(N),R&&_.W0(R),_.wv(Error("Li"),"ERROR"),N.return();case 3:n=_.k(W,GDa);if(!n)return R&&_.W0(R),N.return();(J=(B=n.commerceActionConfig)==null?void 0:(d=B.commandLifeCycleConfig)==null?
void 0:d.onStartCommand)&&V.JSC$17594_commandHandler.resolveCommand(J);return N.yield(_.Lv(V.innertubeTransportService,W,{client_data:{paymentsClientToken:{token:P}}}),5);case 5:(D=N.yieldResult)?(R&&_.W0(R),((X=D)==null?0:X.command)&&V.JSC$17594_commandHandler.resolveCommand(D.command),(S=(w=n.commerceActionConfig)==null?void 0:(O=w.commandLifeCycleConfig)==null?void 0:O.onSuccessCommand)&&V.JSC$17594_commandHandler.resolveCommand(S)):(R&&_.W0(R),_.wv(Error("Mi")),(p=(u=n.commerceActionConfig)==
null?void 0:(H=u.commandLifeCycleConfig)==null?void 0:H.onFailureCommand)&&V.JSC$17594_commandHandler.resolveCommand(p)),_.ju(N)}})};
u8[k$]=[_.s6,_.Vb];var kb=function(W,l,V){this.store=W;this.JSC$17610_commandHandler=l;this.innertubeTransportService=V};
_.v(kb,Do);
kb.prototype.resolveCommand=function(W,l){var V=this,f,r,R,y,P,n,B,d,J;return _.g(function(D){f=_.k(W,bfB);r=f.googlePaymentPayload;f.onStartCommand&&V.JSC$17610_commandHandler.resolveCommand(f.onStartCommand);R=r.encryptedPurchaseParams;y=r.ypcLogWalletAnalyticDataEndpoint;P=f.serializedTransactionFlowLoggingParams;n=r.serializedPaymentsClientParams;B=f.ypcCujContext;J=UhU(V.innertubeTransportService,(d=l)==null?void 0:d.form,R,y,P,n,B);return D.return(J.then(function(u){JDv(l==null?void 0:l.form,
!1);var H=V.store,p=V.JSC$17610_commandHandler,X=u.integratorData;X==null||X===""||u.error!=null?(String(u.error)==="-1"&&f.onDismissCommand?p.resolveCommand(f.onDismissCommand):String(u.error)!=="-1"&&f.onFailureCommand&&p.resolveCommand(f.onFailureCommand),String(u.error)!=="-1"&&String(u.error)!=="132"&&_.wv(Error("Ni"),"ERROR")):(f.googlePaymentEntityKey&&H.dispatch(_.MB("commerceAcquisitionClientPayloadEntity",f.googlePaymentEntityKey,{key:f.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:X,
fundsGuaranteeCallbackClientData:u.integratorClientCallbackData}}})),f.onSuccessCommand&&p.resolveCommand(f.onSuccessCommand));_.jy()},function(u){JDv(l==null?void 0:l.form,!1);
_.wv(u,"ERROR");f.onFailureCommand&&V.JSC$17610_commandHandler.resolveCommand(f.onFailureCommand)}))})};
kb[k$]=[dl,_.s6,_.Vb];var v6=function(W,l){this.JSC$17614_commandHandler=W;this.purchaseManager=l};
_.v(v6,Do);
v6.prototype.resolveCommand=function(W){var l=this,V,f,r,R,y,P,n,B,d;return _.g(function(J){V=_.k(W,pBB);((f=V)==null?0:(r=f.commandLifeCycleConfig)==null?0:r.onStartCommand)&&l.JSC$17614_commandHandler.resolveCommand(V.commandLifeCycleConfig.onStartCommand);if(!((R=V)==null?0:(y=R.googlePaymentPurchaseManagerPayload)==null?0:y.securePayloadBytes))return _.wv(Error("Oi"),"ERROR"),J.return();P=V3v(_.$z(V.googlePaymentPurchaseManagerPayload.securePayloadBytes));n=_.MT().get("hl");B=_.yH();xge(P.serialize(),
n,function(D){B.resolve(D)},function(D){B.reject(D)},B.resolve);
d=B.promise;return J.return(d.then(function(D){if(D)if(D==null?0:D.errorCode){_.wv(Error("Pi`"+D.errorCode),"ERROR");var u,H;((u=V)==null?0:(H=u.commandLifeCycleConfig)==null?0:H.onFailureCommand)&&l.JSC$17614_commandHandler.resolveCommand(V.commandLifeCycleConfig.onFailureCommand)}else if(D==null?0:D.isCancelled){var p,X;((p=V)==null?0:(X=p.commandLifeCycleConfig)==null?0:X.onCancelCommand)&&l.JSC$17614_commandHandler.resolveCommand(V.commandLifeCycleConfig.onCancelCommand)}else{var w,O;((w=V)==
null?0:(O=w.commandLifeCycleConfig)==null?0:O.onSuccessCommand)&&l.JSC$17614_commandHandler.resolveCommand(V.commandLifeCycleConfig.onSuccessCommand)}},function(D){_.wv(D,"ERROR");
var u,H;((u=V)==null?0:(H=u.commandLifeCycleConfig)==null?0:H.onFailureCommand)&&l.JSC$17614_commandHandler.resolveCommand(V.commandLifeCycleConfig.onFailureCommand)}))})};
v6[k$]=[_.s6,eJw];var SMN=function(W,l){this.JSC$17622_commandHandler=W;this.commandAllowlistOverride=l;var V;this.commandAllowlist=(V=this.commandAllowlistOverride)!=null?V:gH};
SMN.prototype.handleResponse=function(W,l,V){var f,r=l==null?void 0:(f=l.config)==null?void 0:f.command;if(!r||this.commandAllowlist.some(function(R){return!!_.k(r,R)})){l=void 0;
V!==void 0&&(l={form:{element:V}});W.onResponseReceivedCommand&&this.JSC$17622_commandHandler.resolveCommand(W.onResponseReceivedCommand,l);W.onResponseReceivedAction&&this.JSC$17622_commandHandler.resolveCommand(W.onResponseReceivedAction,l);W.onResponseReceivedEndpoint&&this.JSC$17622_commandHandler.resolveCommand(W.onResponseReceivedEndpoint,l);W.command&&this.JSC$17622_commandHandler.resolveCommand(W.command,l);if(W.onResponseReceivedCommands)for(V=_.L(W.onResponseReceivedCommands),f=V.next();!f.done;f=
V.next())this.JSC$17622_commandHandler.resolveCommand(f.value,l);if(W.onResponseReceivedActions)for(V=_.L(W.onResponseReceivedActions),f=V.next();!f.done;f=V.next())this.JSC$17622_commandHandler.resolveCommand(f.value,l);if(W.onResponseReceivedEndpoints)for(V=_.L(W.onResponseReceivedEndpoints),f=V.next();!f.done;f=V.next())this.JSC$17622_commandHandler.resolveCommand(f.value,l);if(W.actions)for(W=_.L(W.actions),V=W.next();!V.done;V=W.next())this.JSC$17622_commandHandler.resolveCommand(V.value,l)}};
SMN[k$]=[_.s6,_.R0(KX8)];var Ec4=new _.vd("INNERTUBE_TOKEN_SERVICE");var $1w=new _.vd("SCHEDULER_TOKEN");var WNY=function(W){this.scheduler=W;W={};this.tokenMap=(W.app={},W.user={},W)};
WNY.prototype.handleResponse=function(W,l){if(!l)throw Error("Qi");var V;if(W=(V=W.responseContext)==null?void 0:V.innertubeTokenJar){if(W.appTokens){var f,r,R;V=(f=l.innerTubeRequest.context)==null?void 0:(r=f.request)==null?void 0:(R=r.innertubeTokenJar)==null?void 0:R.appTokens;lc7(this,W.appTokens,this.tokenMap.app,V)}if(W.userTokens){var y,P,n;l=(y=l.innerTubeRequest.context)==null?void 0:(P=y.request)==null?void 0:(n=P.innertubeTokenJar)==null?void 0:n.userTokens;lc7(this,W.userTokens,this.tokenMap.user,
l)}}};
WNY.prototype.processContext=function(W){W.request||(W.request={});var l=Object.keys(this.tokenMap.app).length,V=Object.keys(this.tokenMap.user).length;if(l||V)W.request.innertubeTokenJar={},l&&(W.request.innertubeTokenJar.appTokens=[].concat(_.QK(Object.values(this.tokenMap.app).flat()))),V&&(W.request.innertubeTokenJar.userTokens=[].concat(_.QK(Object.values(this.tokenMap.user).flat())))};
var lc7=function(W,l,V,f){l=_.L(l);for(var r=l.next(),R={};!r.done;R={token$jscomp$139:void 0},r=l.next()){R.token$jscomp$139=r.value;if(R.token$jscomp$139.type===void 0)throw new _.bP("InnerTube token has no type",R.token$jscomp$139);if(R.token$jscomp$139.clearTokens)V[R.token$jscomp$139.type]=[];else if(R.token$jscomp$139.value!==void 0){V[R.token$jscomp$139.type]||(V[R.token$jscomp$139.type]=[]);if(f!==void 0&&f.length){r=_.L(f);for(var y=r.next(),P={};!y.done;P={requestToken:void 0},y=r.next())P.requestToken=
y.value,y=V[R.token$jscomp$139.type].findIndex(function(n){return function(B){return B===n.requestToken||(0,_.MC.equals)(B,n.requestToken)}}(P)),y>-1&&V[R.token$jscomp$139.type].splice(y,1)}V[R.token$jscomp$139.type].push(R.token$jscomp$139);
R.token$jscomp$139.maxAgeSeconds&&Number(R.token$jscomp$139.maxAgeSeconds)>0&&W.scheduler.addLowPriorityJob(function(n){return function(){var B=V[n.token$jscomp$139.type].indexOf(n.token$jscomp$139);B>-1&&V[n.token$jscomp$139.type].splice(B,1)}}(R),Number(R.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.bP("InnerTube token has no value",R.token$jscomp$139);
}};
WNY[k$]=[$1w];var VYs=new _.vd("LOCAL_INNERTUBE_ROUTER_TOKEN"),fc2=new _.vd("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var H6=function(W){this.serviceMap=W};
H6.prototype.shouldPreferLocalResponse=function(W,l){return(W=r17(this,W))?W.shouldPreferLocalResponse(l):!1};
H6.prototype.localInnertubeResponse=function(W,l){var V=this,f;return _.g(function(r){return(f=r17(V,W))?r.return(f.localInnertubeResponse(l)):r.return(Promise.reject(Error("Ri")))})};
H6.prototype.canProvideFallbackResponse=function(W,l){return(W=r17(this,W))?W.canProvideFallbackResponse(l):!1};
H6.prototype.localFallbackInnertubeResponse=function(W,l){var V=this,f;return _.g(function(r){return(f=r17(V,W))?r.return(f.localFallbackInnertubeResponse(l)):r.return(Promise.reject(Error("Ri")))})};
var r17=function(W,l){l=_.JY(l);return l?(W=W.serviceMap[l])?W:null:null};
H6[k$]=[fc2];var i4=function(){};
i4.prototype.shouldPreferLocalResponse=function(){return!1};
i4.prototype.localInnertubeResponse=function(){return _.g(function(W){return W.return(Promise.reject(Error("Si")))})};
i4.prototype.canProvideFallbackResponse=function(){return!0};
i4.prototype.localFallbackInnertubeResponse=function(){var W,l,V;return _.g(function(f){W=Ip("CLOSE_POPUP");l={openPopupAction:k9x()};V={actions:[W,l]};return f.return(V)})};var uvJ=function(W,l){this.JSC$17672_upliftPromise=W;this.store=l};
_.t=uvJ.prototype;_.t.shouldPreferLocalResponse=function(W){var l=W.videoId,V;if(V=l)V=xlJ(this.store.getState().entities,W.videoId);return V&&e1Y(this.store.getState().entities,l)?H$n(this.store.getState().entities,W.playlistId):!1};
_.t.localInnertubeResponse=function(W){var l=this,V;return _.g(function(f){return(V=l.getPlayerResponse(W))?f.return(Promise.resolve(V)):f.return(Promise.reject(Error("Ti")))})};
_.t.canProvideFallbackResponse=function(W){return!!W.videoId};
_.t.localFallbackInnertubeResponse=function(W){var l=this,V;return _.g(function(f){if(f.nextAddress==1)return f.yield(l.JSC$17672_upliftPromise,2);V=l.getPlayerResponse(W);var r;V?r=f.return(Promise.resolve(V)):r=YH(l.store.getState().entities,W.videoId)?f.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Hy(_.wg("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:QIj()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
f.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Hy(_.wg("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:AtJ()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return r})};
_.t.getPlayerResponse=function(W){return uUg(this.store.getState().entities,W.videoId)};var Im=function(W,l){this.localPlayerService=W;this.localWatchNextService=l};
Im.prototype.shouldPreferLocalResponse=function(W){var l=W.playerRequest;W=W.watchNextRequest;return!!(l&&this.localPlayerService.shouldPreferLocalResponse(l)&&W&&this.localWatchNextService.shouldPreferLocalResponse(W))};
Im.prototype.localInnertubeResponse=function(W){var l=this,V,f,r,R;return _.g(function(y){if(y.nextAddress==1){V=W.playerRequest;f=W.watchNextRequest;if(!V||!f)throw new _.bP("Missing streaming request",W);return y.yield(l.localPlayerService.localInnertubeResponse(V),2)}if(y.nextAddress!=3)return r=y.yieldResult,y.yield(l.localWatchNextService.localInnertubeResponse(f),3);R=y.yieldResult;return y.return({playerResponse:r,watchNextResponse:R})})};
Im.prototype.canProvideFallbackResponse=function(W){var l=W.playerRequest;W=W.watchNextRequest;return!!(l&&this.localPlayerService.canProvideFallbackResponse(l)&&W&&this.localWatchNextService.canProvideFallbackResponse(W))};
Im.prototype.localFallbackInnertubeResponse=function(W){var l=this,V,f,r,R;return _.g(function(y){if(y.nextAddress==1)return V=W.playerRequest,f=W.watchNextRequest,V&&f?y.yield(l.localPlayerService.localFallbackInnertubeResponse(V),2):y.return(Promise.reject(new _.bP("Missing streaming request",W)));if(y.nextAddress!=3)return r=y.yieldResult,y.yield(l.localWatchNextService.localFallbackInnertubeResponse(f),3);R=y.yieldResult;return y.return({playerResponse:r,watchNextResponse:R})})};var pt=function(W){this.JSC$17682_persistentStorePromiseAccessor=W};
pt.prototype.shouldPreferLocalResponse=function(){return!1};
pt.prototype.localInnertubeResponse=function(){return _.g(function(W){return W.return(Promise.reject(Error("Ui")))})};
pt.prototype.canProvideFallbackResponse=function(){return!0};
pt.prototype.localFallbackInnertubeResponse=function(){var W=this,l,V;return _.g(function(f){return f.nextAddress==1?f.yield(W.JSC$17682_persistentStorePromiseAccessor(),2):f.nextAddress!=3?(l=f.yieldResult)?f.yield(l.get("service:guide:fallback"),3):f.return(Promise.reject(Error("Vi"))):(V=f.yieldResult)&&_.c0(V)?f.return(KqS(_.c0(V))):f.return(Promise.reject(Error("Wi")))})};var mH=function(){};
mH.prototype.shouldPreferLocalResponse=function(){return!1};
mH.prototype.localInnertubeResponse=function(){return _.g(function(W){return W.return(Promise.reject(Error("Xi")))})};
mH.prototype.canProvideFallbackResponse=function(){return!0};
mH.prototype.localFallbackInnertubeResponse=function(){var W,l,V;return _.g(function(f){W=Ip("CLOSE_POPUP");l={openPopupAction:k9x()};V={actions:[W,l]};return f.return(V)})};var b4=function(){this.urlMap=R4H;this.fallbackCommand=_.Sb};
b4.prototype.shouldPreferLocalResponse=function(W){return(W=W.url)?!!tY1(this,W):!1};
b4.prototype.localInnertubeResponse=function(W){var l=this,V;return _.g(function(f){return(V=W.url)?f.return(swH(W,tY1(l,V))):f.return(Promise.reject(Error("Yi")))})};
b4.prototype.canProvideFallbackResponse=function(){return!0};
b4.prototype.localFallbackInnertubeResponse=function(W){var l=this,V,f,r,R,y,P,n;return _.g(function(B){V=W.url;if(!V)return B.return(swH(W,l.fallbackCommand));if(f=tY1(l,V))return B.return(swH(W,f));r=void 0;R=_.JY(V);R==="/watch"&&(y=_.qs(V,"v"))&&(n=(P=_.qs(V,"list"))!=null?P:void 0,r=_.vy(y,n));r||(r=l.fallbackCommand);return B.return(swH(W,r))})};
var tY1=function(W,l){if(l)return W.urlMap[_.yW(l)]},swH=function(W,l){l&&W.parentTrackingParams&&(l.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:W.parentTrackingParams}},l.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:l})};var om=function(W,l,V){this.JSC$17692_upliftPromise=W;this.store=l;this.JSC$17692_persistentStorePromiseAccessor=V};
om.prototype.shouldPreferLocalResponse=function(){return!1};
om.prototype.localInnertubeResponse=function(){return _.g(function(W){return W.return(Promise.reject(Error("Zi")))})};
om.prototype.canProvideFallbackResponse=function(){return!0};
om.prototype.localFallbackInnertubeResponse=function(){var W=this;return _.g(function(l){return l.return(LNw(W))})};
var LNw=function(W){var l,V;return _.g(function(f){if(f.nextAddress==1)return f.yield(Ct(W.JSC$17692_upliftPromise,W.store),2);l=f.yieldResult;V={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[vT8(l)]}}}};return f.return(y1w(W,V))})},y1w=function(W,l){var V,f;
return _.g(function(r){if(r.nextAddress==1)return r.yield(W.JSC$17692_persistentStorePromiseAccessor(),2);if(r.nextAddress!=3)return V=r.yieldResult,r.yield(B0(V),3);f=r.yieldResult;return r.return({responseContext:{},contents:l,topbar:f})})};var FA=function(W,l,V){this.JSC$17699_upliftPromise=W;this.store=l;this.JSC$17699_persistentStorePromiseAccessor=V};
FA.prototype.shouldPreferLocalResponse=function(W){var l=W.videoId;return l&&xlJ(this.store.getState().entities,l)&&e1Y(this.store.getState().entities,l)?H$n(this.store.getState().entities,W.playlistId):!1};
FA.prototype.localInnertubeResponse=function(W){var l=this,V,f;return _.g(function(r){if(r.nextAddress==1)return(V=W.videoId)?r.yield(l.JSC$17699_upliftPromise,2):r.return(Promise.reject(Error("$i")));if(r.nextAddress!=3)return r.yield(gZ7(l,W,V),3);f=r.yieldResult;return r.return(Ps4(l,f,V))})};
FA.prototype.canProvideFallbackResponse=function(W){return W.videoId?!0:!1};
FA.prototype.localFallbackInnertubeResponse=function(W){var l=this,V,f,r,R;return _.g(function(y){switch(y.nextAddress){case 1:return(V=W.videoId)?y.yield(l.JSC$17699_upliftPromise,2):y.return(Promise.reject(Error("$i")));case 2:return y.yield(gZ7(l,W,V),3);case 3:f=y.yieldResult;if(YH(l.store.getState().entities,V)){y.jumpTo(4);break}return y.yield(Ct(l.JSC$17699_upliftPromise,l.store),5);case 5:return r=y.yieldResult,y.return(nZw(f,r));case 4:return xlJ(l.store.getState().entities,V)&&e1Y(l.store.getState().entities,
V)?y.return(Ps4(l,f,V)):(R={title:_.Hy(_.wg("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:QIj()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},y.return(nZw(f,R)))}})};
var gZ7=function(W,l,V){var f,r,R,y,P;return _.g(function(n){if(n.nextAddress==1)return f=l.playlistId,r=_.vy(V,f),n.yield(W.JSC$17699_persistentStorePromiseAccessor(),2);if(n.nextAddress!=3)return R=n.yieldResult,n.yield(B0(R),3);y=n.yieldResult;P={responseContext:{},currentVideoEndpoint:r,topbar:y};return n.return(P)})},Ps4=function(W,l,V){if(W=YH(W.store.getState().entities,V)){var f;
V=W.videoEntity;var r,R={title:K0(V.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.Fy((f=V.localizedStrings)==null?void 0:f.viewCount),viewCount:_.Fy((r=V.localizedStrings)==null?void 0:r.viewCount)}}};V.publishedTimestampMillis&&(R.dateText=_.Fy(grY(new Date(Number(V.publishedTimestampMillis)))));f={videoPrimaryInfoRenderer:R};r=W.videoEntity;W=W.channelEntity;W={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:K0(_.wg("SHOW_MORE",void 0,"Show more")),
showLessText:K0(_.wg("SHOW_LESS",void 0,"Show less")),description:r.formattedDescription,owner:{videoOwnerRenderer:{title:K0(W.title),thumbnail:W.avatar}}}};l.contents={twoColumnWatchNextResults:{results:{results:{contents:[f,W]}}}}}return l},nZw=function(W,l){W.contents={singleColumnWatchNextResults:{results:{results:{contents:[vT8(l)]}}}};
return W};var jl=function(W,l,V){this.JSC$17704_upliftPromise=W;this.store=l;this.JSC$17704_persistentStorePromiseAccessor=V};
jl.prototype.shouldPreferLocalResponse=function(){return!1};
jl.prototype.localInnertubeResponse=function(){return _.g(function(W){return W.return(Promise.reject(Error("aj")))})};
jl.prototype.canProvideFallbackResponse=function(){return!0};
jl.prototype.localFallbackInnertubeResponse=function(){var W=this,l,V,f,r;return _.g(function(R){switch(R.nextAddress){case 1:return R.yield(W.JSC$17704_persistentStorePromiseAccessor(),2);case 2:return l=R.yieldResult,R.yield(B0(l),3);case 3:return V=R.yieldResult,f={responseContext:{},topbar:V},R.yield(W.JSC$17704_upliftPromise,4);case 4:return R.yield(Ct(W.JSC$17704_upliftPromise,W.store),5);case 5:return r=R.yieldResult,f.watchStatus={backgroundPromoRenderer:r},R.return(f)}})};_.Csw=new _.vd("ENDPOINT_MAP");var c1w=function(){var W=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return W.sequenceMap}}},uh9=function(W,l,V){var f,r=(f=l.config)==null?void 0:f.sequenceStrategy;
if(!r)return V();W.sequenceMap.has(r.sequenceKey)||W.sequenceMap.set(r.sequenceKey,[]);W=W.sequenceMap.get(r.sequenceKey);switch(r.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return B71(W,l,V);case "REQUEST_SEQUENCE_TYPE_REPLACE":return dHL(W,l,V);default:throw new _.bP("Request could not be sequenced",l);}},B71=function(W,l,V){var f,r,R;
return _.g(function(y){W.length>0?(r=W[W.length-1],f=r.responsePromise.then(function(){return V()})):f=V();
R={request:l,responsePromise:f};W.push(R);J1e(W,R);return y.return(R.responsePromise)})},dHL=function(W,l,V){V=V();
if(W.length>0)for(var f=_.L(W),r=f.next();!r.done;r=f.next())r.value.responsePromise=V;var R={request:l,responsePromise:V};W.push(R);J1e(W,R);return Promise.resolve().then(function(){return W.indexOf(R)>0?R.responsePromise.then(function(y){return Object.assign({},y,{sequenceMetaData:{skipProcessing:!0}})}):R.responsePromise})},J1e=function(W,l){l.responsePromise.then(function(){var V=W.indexOf(l);
V>-1&&W.splice(V,1)})};var DH2=new _.vd("REQUEST_SEQUENCING");var Kg=function(){};
_.v(Kg,zo);Kg.prototype.getApiPaths=function(){return[]};
Kg.prototype.getExtension=function(W){return _.k(W,RNa)};
Kg.prototype.JSC$13120_buildRequest=function(W,l){W.recaptchaToken=l.recaptchaToken};
Kg.prototype.getApiUrl=function(){return"/das_captcha"};var Fh=function(){};
_.v(Fh,zo);Fh.prototype.getApiPaths=function(){return K4Z};
Fh.prototype.getExtension=function(W){return _.k(W,XWv)};
Fh.prototype.JSC$13120_buildRequest=function(W,l,V){V=V===void 0?{}:V;l.createBackstagePostParams&&(W.createBackstagePostParams=l.createBackstagePostParams);V.comment_text&&(W.commentText=V.comment_text);if(V.attached_video_id)W.videoAttachment={videoId:V.attached_video_id};else if(V.image_poll_options)W.pollAttachmentData={options:V.image_poll_options};else if(V.poll_options)W.pollAttachment={choices:V.poll_options};else if(V.quiz_options)W.quizAttachmentData={options:V.quiz_options};else if(V.image_blob_id)W.imageAttachment=
{encryptedBlobId:V.image_blob_id},V.source_video_id&&(W.imageAttachment.sourceExternalVideoId=V.source_video_id),V.image_preview_coordinates&&(W.imageAttachment.previewCoordinates=JSON.parse(V.image_preview_coordinates));else if(V.images_data)W.imagesAttachment={imagesData:V.images_data};else if(V.clip_external_video_id!==void 0||V.clip_offset_ms!==void 0||V.clip_duration_ms!==void 0){var f,r,R,y,P;W.clipAttachment={externalVideoId:(R=V.clip_external_video_id)!=null?R:"",offsetMs:(y=(f=V.clip_offset_ms)==
null?void 0:f.toString())!=null?y:"",durationMs:(P=(r=V.clip_duration_ms)==null?void 0:r.toString())!=null?P:""}}else V.shared_post_id&&(W.sharedPostAttachment={postId:V.shared_post_id});V.tagged_video_id&&(W.postCreationData={taggedVideoId:V.tagged_video_id});V.access_restrictions&&(typeof V.access_restrictions==="number"&&(l=V.access_restrictions,W.accessRestrictions={restriction:l!==1&&l===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof V.access_restrictions==="string"&&
(W.accessRestrictionsParams=V.access_restrictions));V.scheduled_publish_time_sec&&(W.scheduledPublishTimeSec=V.scheduled_publish_time_sec.toString())};var GZ=function(){};
_.v(GZ,zo);GZ.prototype.getApiPaths=function(){return IX$};
GZ.prototype.getExtension=function(W){return _.k(W,HEv)};
GZ.prototype.JSC$13120_buildRequest=function(W,l,V){V=V===void 0?{}:V;l.decorateMessageParams&&(W.params=l.decorateMessageParams);V.text&&(W.text=V.text)};var b8=function(){};
_.v(b8,zo);b8.prototype.getApiPaths=function(){return EMI};
b8.prototype.getExtension=function(W){return _.k(W,T39)};
b8.prototype.JSC$13120_buildRequest=function(W,l,V){V=V===void 0?{}:V;V.video_id&&(W.videoId=V.video_id)};var pg=function(){};
_.v(pg,zo);pg.prototype.getApiPaths=function(){return fBL};
pg.prototype.getExtension=function(W){return _.k(W,_.mA)};
pg.prototype.JSC$13120_buildRequest=function(W,l,V){V.suggestions_query&&(W.input=V.suggestions_query)};var oy=function(){};
_.v(oy,zo);oy.prototype.getApiPaths=function(){return wRI};
oy.prototype.getExtension=function(W){return _.k(W,wWv)};
oy.prototype.JSC$13120_buildRequest=function(W,l,V){V.comment_text!==void 0&&(W.commentText=V.comment_text);V.scheduled_publish_time_sec&&(W.scheduledPublishTimeSec=V.scheduled_publish_time_sec.toString());W.updateBackstagePostParams=l.updateBackstagePostParams};var j5=function(){};
_.v(j5,zo);j5.prototype.getApiPaths=function(){return tm};
j5.prototype.getExtension=function(W){return _.k(W,_.VH)};
j5.prototype.JSC$13120_buildRequest=function(W,l,V){V.formData&&(W.formData=V.formData);l.token?W.continuation=l.token:l.continuationTokenKey&&(V=_.DJ().getState(),l=_.mL(V.entities,"continuationTokenEntity",l.continuationTokenKey))&&(W.continuation=String(l.continuationToken))};
var UH4=function(){};
_.v(UH4,zo);_.t=UH4.prototype;_.t.getApiPaths=function(){return tm};
_.t.getExtension=function(W){return _.k(W,_.ZJ)};
_.t.isNavigationCommand=function(){return!0};
_.t.JSC$13127_getStoreKey=function(W){if((W=this.getExtension(W))&&W.browseId){var l={browseId:W.browseId};W.browseEndpointContextSupportedConfigs&&(l.browseEndpointContextSupportedConfigs=JSON.stringify(W.browseEndpointContextSupportedConfigs));W.params&&(l.params=W.params);W.query&&(l.query=W.query);return _.ch("browse",l)}};
_.t.JSC$13120_buildRequest=function(W,l,V){l.browseId&&(W.browseId=l.browseId);l.params&&(W.params=l.params);l.query&&(W.query=l.query);V.formData?W.formData=V.formData:l.formData&&(W.formData=l.formData);l.browseId==="FEsubscriptions"&&_.MT().getFlag(155)&&(W.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");l.browseId==="SPaccount_playback"&&(V=_.MT(),W.formData||(W.formData={}),W.formData.accountSettingsFormData={flagCaptionsDefaultOff:V.getFlag(65),flagAutoCaptionsDefaultOn:V.getFlag(66),
flagDisableInlinePreview:V.getFlag(186),flagAudioDescriptionDefaultOn:V.getFlag(198)});if(l.browseId==="FEwhat_to_watch"){V=_.MT();var f=V.getFlag(196);V.getFlag(197)&&(W.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:f}}})}l.browseId==="FEwhat_to_watch"&&(l=_.MT().getFlag(186),W.inlineSettingStatus=l?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.t.getRequestConfig=function(W,l){l=l===void 0?{}:l;var V={};if(W=this.JSC$13127_getStoreKey(W,l))V.storeStrategy={storeKey:W,disableCache:l.disableCache};_.U("web_log_browse_ticks_ks")||(V.requestTick="br_s",V.responseTick="br_r");return V};var Iy=function(){};
_.v(Iy,zo);Iy.prototype.getApiPaths=function(){return Dz$};
Iy.prototype.getExtension=function(W){return _.k(W,PCc)};
Iy.prototype.JSC$13120_buildRequest=function(W,l,V){W.legacyYoutubeChannelUsername=V.legacyYouTubeChannelUsername||"";W.legacyYoutubeChannelPassword=V.legacyYouTubeChannelPassword||""};var i8=function(){};
_.v(i8,zo);i8.prototype.getApiPaths=function(){return FaI};
i8.prototype.getExtension=function(W){return _.k(W,N3X)};
i8.prototype.JSC$13120_buildRequest=function(W,l,V){V.recaptcha_response_token&&(W.recaptchaResponseToken=V.recaptcha_response_token);V.channel_id&&(W.channelId=V.channel_id)};var mD=function(){};
_.v(mD,zo);mD.prototype.getApiPaths=function(){return Aq$};
mD.prototype.getExtension=function(W){return _.k(W,Sfv)};
mD.prototype.JSC$13120_buildRequest=function(W,l,V){l.externalChannelId&&(W.externalChannelId=l.externalChannelId);V.handle&&(W.handleUpdate={handle:V.handle},l.handleEditSource&&(W.handleUpdate.handleEditSource=l.handleEditSource))};var Xh=function(){};
_.v(Xh,zo);Xh.prototype.getApiPaths=function(){return O9v};
Xh.prototype.getExtension=function(W){return _.k(W,UXk)};
Xh.prototype.JSC$13120_buildRequest=function(W,l,V){l.request&&(W.channelId=l.request.channelId);var f;if(V==null?0:(f=V.uploadDefaults)==null?0:f.emojiReactionSet)W.uploadDefaultsRequest||(W.uploadDefaultsRequest={}),W.uploadDefaultsRequest.emojiReactionSet=V.uploadDefaults.emojiReactionSet};var TZ=function(){};
_.v(TZ,zo);TZ.prototype.getApiPaths=function(){return Nik};
TZ.prototype.getExtension=function(W){return _.k(W,YfZ)};
TZ.prototype.JSC$13120_buildRequest=function(W,l,V){l.externalChannelId&&(W.externalChannelId=l.externalChannelId);l.channelHandleEntityKey&&(W.channelHandleEntityKey=l.channelHandleEntityKey);l.handleEditSource&&(W.handleEditSource=l.handleEditSource);V.handle?W.handle=V.handle:V.name&&(W.name=V.name)};var wX=function(){};
_.v(wX,zo);wX.prototype.getApiPaths=function(){return kJ1};
wX.prototype.getExtension=function(W){return _.k(W,rzM)};
wX.prototype.JSC$13120_buildRequest=function(W,l){l.actions?W.actions=l.actions:l.action&&(W.actions=[l.action])};var AX=function(){};
_.v(AX,zo);AX.prototype.getApiPaths=function(){return vMk};
AX.prototype.getExtension=function(W){return _.k(W,_.VH)};
AX.prototype.JSC$13120_buildRequest=function(W,l){l.token&&(W.continuation=l.token)};var QA=function(){};
_.v(QA,zo);QA.prototype.getApiPaths=function(){return hnL};
QA.prototype.getExtension=function(W){return _.k(W,_.VH)};
QA.prototype.JSC$13120_buildRequest=function(W,l){W.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";l.token&&(W.fetchCommentsParams={continuation:l.token})};var ME=function(){};
_.v(ME,zo);ME.prototype.getApiPaths=function(){return bZM};
ME.prototype.getExtension=function(W){return _.k(W,fIe)};
ME.prototype.JSC$13120_buildRequest=function(W,l,V){V=V===void 0?{}:V;l.createReplyParams&&(W.createReplyParams=l.createReplyParams);l.commentText&&(W.commentText=_.dE(l.commentText));V.comment_text&&(W.commentText=V.comment_text);V.image_blob_id&&(W.imageAttachment={encryptedBlobId:V.image_blob_id});V.botguard_response&&(W.botguardResponse=V.botguard_response)};
_.rc.Object.defineProperties(ME.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ZD=function(){};
_.v(ZD,zo);ZD.prototype.getApiPaths=function(){return pZM};
ZD.prototype.getExtension=function(W){return _.k(W,_.V7k)};
ZD.prototype.JSC$13120_buildRequest=function(W,l,V){V=V===void 0?{}:V;l.createCommentParams&&(W.createCommentParams=l.createCommentParams);l.commentText&&(W.commentText=_.dE(l.commentText));l.videoPositionMention&&(W.videoPositionMention=l.videoPositionMention);l.sources&&(W.sources=l.sources);V.comment_text&&(W.commentText=V.comment_text);V.attached_video_id?W.videoAttachment={videoId:V.attached_video_id}:V.poll_options?W.pollAttachment={choices:V.poll_options}:V.image_blob_id?W.imageAttachment=
{encryptedBlobId:V.image_blob_id}:V.shared_post_id&&(W.sharedPostAttachment={postId:V.shared_post_id});V.access_restrictions&&typeof V.access_restrictions==="number"&&(l=V.access_restrictions,W.accessRestrictions={restriction:l!==1&&l===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});V.botguard_response&&(W.botguardResponse=V.botguard_response)};
_.rc.Object.defineProperties(ZD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var OA=function(){};
_.v(OA,zo);OA.prototype.getApiPaths=function(){return Q2Z};
OA.prototype.getExtension=function(W){return _.k(W,t7k)};
OA.prototype.JSC$13120_buildRequest=function(W,l,V){l.commentText&&(W.replyText=_.dE(l.commentText));V.comment_text&&(W.replyText=V.comment_text);W.updateReplyParams=l.updateReplyParams};
_.rc.Object.defineProperties(OA.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ay=function(){};
_.v(ay,zo);ay.prototype.getApiPaths=function(){return MWM};
ay.prototype.getExtension=function(W){return _.k(W,Rmv)};
ay.prototype.JSC$13120_buildRequest=function(W,l,V){l.commentText&&(W.commentText=_.dE(l.commentText));V.comment_text&&(W.commentText=V.comment_text);W.updateCommentParams=l.updateCommentParams};
_.rc.Object.defineProperties(ay.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var zZ=function(){};
_.v(zZ,zo);zZ.prototype.getApiPaths=function(){return Z9k};
zZ.prototype.getExtension=function(W){return _.k(W,BwX)};
zZ.prototype.JSC$13120_buildRequest=function(W,l){l.settings&&(W.settings=l.settings)};var NE=function(){};
_.v(NE,zo);NE.prototype.getApiPaths=function(){return aXX};
NE.prototype.getExtension=function(W){return _.k(W,xRk)};
NE.prototype.JSC$13120_buildRequest=function(W,l){l.channelCreationToken&&(W.channelCreationToken=l.channelCreationToken);l.source&&(W.source=l.source)};var Yb=function(){};
_.v(Yb,zo);Yb.prototype.getApiPaths=function(){return GJ1};
Yb.prototype.getExtension=function(W){return _.k(W,hNe)};
Yb.prototype.JSC$13120_buildRequest=function(W,l,V){V=V===void 0?{}:V;if(V.name&&(V.given_name||V.family_name))W=new _.bP("channel creation cannot set both GAIA and YouTube names",l),_.wv(W);else{if(l.zeroStepChannelCreationParams){if(!V.comment_text){W=new _.bP("zero_step_create_comment_params but no zero_step_texts",l);_.wv(W);return}W.zeroStepChannelCreationParams=l.zeroStepChannelCreationParams;W.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(W.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
V.comment_text,V.botguard_response&&(W.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=V.botguard_response))}W.channelCreationToken=l.channelCreationToken;V.given_name&&(W.givenName=V.given_name);V.family_name&&(W.familyName=V.family_name);l.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(W.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(V.name||V.handle||V.avatar_url||V.encryptedBlobId||V.isNameChanged!==void 0||V.isHandleChanged!==void 0||V.isDefaultProfilePhoto!==
void 0||V.obakeImageSource)W.overrideChannelCreationParams={},V.name&&(W.overrideChannelCreationParams.name=V.name),V.handle&&(W.overrideChannelCreationParams.handle=V.handle),V.avatar_url&&(W.overrideChannelCreationParams.avatarUrl=V.avatar_url),V.encryptedBlobId&&(W.overrideChannelCreationParams.blobEncryptionId=V.encryptedBlobId),V.enableIdentityForAllChannelCreationDialog&&(V.encryptedBlobId?W.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
V.isDefaultProfilePhoto!==void 0&&(W.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=V.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),V.isNameChanged!==void 0&&(W.overrideChannelCreationParams.identityForAllChannelCreationNameTag=V.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),V.isHandleChanged!==
void 0&&(W.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=V.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),V.obakeImageSource&&(W.overrideChannelCreationParams.obakeImageSourceType=V.obakeImageSource))}};var xb=function(){};
_.v(xb,zo);xb.prototype.getApiPaths=function(W){return(W=this.getExtension(W))&&W.status==="DISLIKE"?Txe:W&&W.status==="INDIFFERENT"?uVL:LaB};
xb.prototype.getExtension=function(W){return _.k(W,_.S$)};
xb.prototype.JSC$13120_buildRequest=function(W,l){l.target&&(W.target=l.target);if(l=this.getParams(l))W.params=l};
xb.prototype.getParams=function(W){switch(W==null?void 0:W.status){case "DISLIKE":return W.dislikeParams;case "INDIFFERENT":return W.removeLikeParams;default:return W==null?void 0:W.likeParams}};var e5=function(){};
_.v(e5,zo);e5.prototype.getApiPaths=function(){return j2k};
e5.prototype.getExtension=function(W){return _.k(W,nCM)};
e5.prototype.JSC$13120_buildRequest=function(W,l){l.settingItemId&&(W.settingItemId=l.settingItemId);l.stringValue!=null&&l.stringValue!==void 0?W.newValue={stringValue:l.stringValue}:l.intValue?W.newValue={intValue:l.intValue}:l.boolValue!==null&&l.boolValue!==void 0?W.newValue={boolValue:l.boolValue}:(W=new _.bP("Unknown value type for SetSettingEndpoint.",l),_.wv(W))};var qE=function(){};
_.v(qE,zo);qE.prototype.getApiPaths=function(){return mAk};
qE.prototype.getExtension=function(W){return _.k(W,mqc)||void 0};
qE.prototype.JSC$13120_buildRequest=function(W,l,V){V=V===void 0?{}:V;l.channelIds&&(W.channelIds=l.channelIds);l.siloName&&(W.siloName=l.siloName);l.params&&(W.params=l.params);V.botguardResponse&&(W.botguardResponse=V.botguardResponse);V.feature&&(W.clientFeature=V.feature)};
_.rc.Object.defineProperties(qE.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hX=function(){};
_.v(hX,zo);hX.prototype.getApiPaths=function(){return Tic};
hX.prototype.getExtension=function(W){return _.k(W,CL1)||void 0};
hX.prototype.JSC$13120_buildRequest=function(W,l){l.channelIds&&(W.channelIds=l.channelIds);l.siloName&&(W.siloName=l.siloName);l.params&&(W.params=l.params)};
_.rc.Object.defineProperties(hX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var S5=function(W){this.shareClientParamsProvider=W};
_.v(S5,zo);S5.prototype.getApiPaths=function(){return pzn};
S5.prototype.getExtension=function(W){return _.k(W,ZBv)||_.k(W,_.OBI)||_.k(W,MsX)};
S5.prototype.JSC$13120_buildRequest=function(W,l){l.serializedShareEntity&&(W.serializedSharedEntity=l.serializedShareEntity);if(l.clientParamIdentifier){var V;if((V=this.shareClientParamsProvider)==null?0:V.clientParams.has(l.clientParamIdentifier)){V=this.shareClientParamsProvider;l=l.clientParamIdentifier;var f=V.clientParams.get(l);f&&V.clientParams.delete(l);W.clientParams=f}}};
S5[k$]=[KoL];var EA=function(){};
_.v(EA,zo);EA.prototype.getApiPaths=function(){return BxL};
EA.prototype.getExtension=function(W){return _.k(W,krk)};
EA.prototype.JSC$13120_buildRequest=function(W,l){l.params&&(W.params=l.params)};var $b=function(){};
_.v($b,zo);$b.prototype.getApiPaths=function(){return wZX};
$b.prototype.getExtension=function(W){return _.k(W,D3$)};
$b.prototype.JSC$13120_buildRequest=function(W,l){l.dismissal&&(W.items=[l.dismissal])};
_.rc.Object.defineProperties($b.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var WU=function(){};
_.v(WU,zo);WU.prototype.getApiPaths=function(){return tWM};
WU.prototype.getExtension=function(W){return _.k(W,_.NP)||void 0};
WU.prototype.JSC$13120_buildRequest=function(W,l,V){W.feedbackTokens=[];l.feedbackToken&&W.feedbackTokens.push(l.feedbackToken);if(l=l.cpn||V.cpn)W.feedbackContext={cpn:l};W.isFeedbackTokenUnencrypted=!!V.is_feedback_token_unencrypted;W.shouldMerge=!1;V.extra_feedback_tokens&&(W.shouldMerge=!0,W.feedbackTokens=W.feedbackTokens.concat(V.extra_feedback_tokens))};
_.rc.Object.defineProperties(WU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var lg=function(){};
_.v(lg,zo);lg.prototype.getApiPaths=function(){return tWM};
lg.prototype.getExtension=function(W){return _.k(W,_.mA)};
lg.prototype.JSC$13120_buildRequest=function(W,l,V){V.feedback_tokens&&(W.feedbackTokens=V.feedback_tokens,W.shouldMerge=!0)};
_.rc.Object.defineProperties(lg.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var V0=function(){};
_.v(V0,zo);V0.prototype.getApiPaths=function(){return tWM};
V0.prototype.getExtension=function(W){return _.k(W,I28)};
V0.prototype.JSC$13120_buildRequest=function(W,l){l.undoToken&&(W.feedbackTokens=[l.undoToken]);l.isUndoTokenUnencrypted&&(W.isFeedbackTokenUnencrypted=l.isUndoTokenUnencrypted)};
_.rc.Object.defineProperties(V0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fI=function(){};
_.v(fI,zo);fI.prototype.getApiPaths=function(){return YTL};
fI.prototype.getExtension=function(W){return _.k(W,BAL)};
fI.prototype.JSC$13120_buildRequest=function(W,l){l.nextEndpoint&&_.k(l.nextEndpoint,_.x_)?W.nextEndpoint={urlEndpoint:_.k(l.nextEndpoint,_.x_)}:l.nextEndpoint&&_.k(l.nextEndpoint,_.Bh)&&(W.nextEndpoint={watchEndpoint:_.k(l.nextEndpoint,_.Bh)});l.setRacy&&(W.setRacy=l.setRacy);l.setControvercy&&(W.setControvercy=l.setControvercy)};var rM=function(W){this.JSC$17885_storeWithEntities=W};
_.v(rM,zo);rM.prototype.getApiPaths=function(){return QRI};
rM.prototype.getExtension=function(W){return _.k(W,MaM)};
rM.prototype.JSC$13120_buildRequest=function(W,l){l.flowId&&(W.flowId=l.flowId);l.targetId&&(W.targetId=l.targetId);l.continuation&&(W.continuation=l.continuation);var V=l.flowStateEntityKey;if(l.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&V&&this.JSC$17885_storeWithEntities){var f;if(l=(f=this.JSC$17885_storeWithEntities.getState())==null?void 0:f.entities)if(f=_.p0(V).entityType,f=_.mL(l,f,V))W.flowState=f,W.flowStateEntityKey=V}};
_.rc.Object.defineProperties(rM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
rM[k$]=[dl];var uw4=function(){};
_.v(uw4,zo);_.t=uw4.prototype;_.t.getApiPaths=function(){return RBa};
_.t.JSC$13127_getStoreKey=function(){return _.ch("guide")};
_.t.getRequestConfig=function(){var W=this.JSC$13127_getStoreKey(),l;W&&(l={storeStrategy:{storeKey:W}});return l};
_.t.isNavigationCommand=function(){return!0};
_.t.getExtension=function(W){return _.k(W,_.mA)};
_.t.JSC$13120_buildRequest=function(W){W.fetchLiveState=!0};var RV=function(){};
_.v(RV,zo);RV.prototype.getApiPaths=function(){return UzB};
RV.prototype.getExtension=function(W){return _.k(W,$lv)};
RV.prototype.JSC$13120_buildRequest=function(){};var t_=function(){};
_.v(t_,zo);t_.prototype.getApiPaths=function(){return uKZ};
t_.prototype.getExtension=function(W){return _.k(W,WVL)};
t_.prototype.JSC$13120_buildRequest=function(){};var sV=function(){};
_.v(sV,zo);sV.prototype.getApiPaths=function(){return cM$};
sV.prototype.getExtension=function(W){return _.k(W,_.VH)};
sV.prototype.JSC$13120_buildRequest=function(W,l){l.token&&(W.continuation=l.token);var V,f;W==null||(V=W.context)==null||(f=V.user)==null||delete f.onBehalfOfUser};
sV.prototype.getRequestConfig=function(W){var l={},V;if(((V=this.getExtension(W))==null?void 0:V.sessionIndex)!==void 0){var f;l={authStrategy:{sessionIndex:(f=this.getExtension(W))==null?void 0:f.sessionIndex}}}return l};var LI=function(){};
_.v(LI,zo);LI.prototype.JSC$13120_getRequest=function(W){var l=this.getExtension(W),V=W="";if(l==null?0:l.popup)W="true";if(l==null?0:l.disableSignout)V="true";l={};return{input:"/getAccountSwitcherEndpoint",requestShell:CN("/getAccountSwitcherEndpoint","GET",(l["X-YouTube-Delegation-Context"]=_.M4("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),l["X-YouTube-Account-Switcher-Popup"]=W,l["X-YouTube-Account-Switcher-Disable-Signout"]=V,l)),innerTubeRequest:{}}};
LI.prototype.getApiPaths=function(){return[]};
LI.prototype.getExtension=function(W){return _.k(W,_.ukn)};
LI.prototype.JSC$13120_buildRequest=function(){};var y0=function(){};
_.v(y0,zo);y0.prototype.JSC$13120_getRequest=function(W){var l="/cross_account_channel_transfer";(W=this.getExtension(W))&&(l=iNF(l,{target_session:W.targetSessionIndex,source_rapt:W.sourceRapt,rapt:W.targetRapt}));return{input:l,requestShell:CN(l,"GET"),innerTubeRequest:{}}};
y0.prototype.getApiPaths=function(){return[]};
y0.prototype.getExtension=function(W){return _.k(W,Pla)};
y0.prototype.JSC$13120_buildRequest=function(){};var gM=function(){};
_.v(gM,zo);gM.prototype.getApiPaths=function(){return MKv};
gM.prototype.isNavigationCommand=function(){return!0};
gM.prototype.getExtension=function(W){return _.k(W,_.mA)};
gM.prototype.JSC$13120_buildRequest=function(W){var l=_.MT().get("gsml","");l&&(W.safetyModeLockerObfuscatedGaiaId=l);W.userInterfaceTheme=_.h5(!0);_.Sr()?W.deviceTheme="DEVICE_THEME_SELECTED":_.BiS()?W.deviceTheme="DEVICE_THEME_SUPPORTED":W.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var PU=function(){};
_.v(PU,zo);PU.prototype.getApiPaths=function(){return cM$};
PU.prototype.getExtension=function(W){return _.k(W,nSL)};
PU.prototype.JSC$13120_buildRequest=function(W,l){if(l&&l.requestType&&(W.requestType=l.requestType,l.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||l.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var V=l.nextUrl;V&&(_.Xhj(V)||f7(V))&&(W.nextNavendpoint={urlEndpoint:{url:V}})}l&&l.channelSwitcherQuery&&(W.channelSwitcherQuery=l.channelSwitcherQuery);l&&l.triggerChannelCreation&&(W.triggerChannelCreation=l.triggerChannelCreation);var f;if(l==null?0:(f=l.contentOwnerConfig)==
null?0:f.externalContentOwnerId)W.contentOwnerConfig=l.contentOwnerConfig;W.callCircumstance=l&&l.requestType&&l.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var r,R;l=W==null?void 0:(r=W.context)==null?void 0:(R=r.user)==null?void 0:R.onBehalfOfUser;if(l!==void 0){W.obfuscatedSelectedGaiaId=l;var y,P;W==null||(y=W.context)==null||(P=y.user)==null||delete P.onBehalfOfUser}var n,B;if(r=W==null?void 0:(n=W.context)==null?void 0:(B=n.user)==null?
void 0:B.serializedDelegationContext)W.selectedSerializedDelegationContext=r};var nI=function(){};
_.v(nI,zo);nI.prototype.getApiPaths=function(){return dzZ};
nI.prototype.getExtension=function(W){return _.k(W,auL)};
nI.prototype.JSC$13120_buildRequest=function(W,l){l.params&&(W.params=l.params)};var CI=function(){};
_.v(CI,zo);CI.prototype.getApiPaths=function(){return F4a};
CI.prototype.getExtension=function(W){return _.k(W,_.fuc)};
CI.prototype.JSC$13120_buildRequest=function(W,l){if(l=l.createBroadcastRequest)W.useMasks=l.useMasks,W.broadcastType=l.broadcastType,W.broadcastSource=l.broadcastSource,W.broadcastMetadata=l.broadcastMetadata,W.broadcastMetadataMask=l.broadcastMetadataMask,W.videoMetadata=l.videoMetadata,W.videoMetadataMask=l.videoMetadataMask,W.liveChatSettingsUpdate=l.liveChatSettingsUpdate,W.liveChatSettingsUpdateMask=l.liveChatSettingsUpdateMask,W.cloneVideoId=l.cloneVideoId,W.cloneWithOverrides=l.cloneWithOverrides,
W.targetEntity=l.targetEntity,W.scheduledRedirectMetadata=l.scheduledRedirectMetadata};var cU=function(){};
_.v(cU,zo);cU.prototype.getApiPaths=function(){return oM9};
cU.prototype.getExtension=function(W){return _.k(W,qsL)};
cU.prototype.JSC$13120_buildRequest=function(W,l,V){V=V===void 0?{}:V;l.params&&(W.params=l.params);V.questionText&&(W.questionText=V.questionText);V.optionText&&V.optionText.length>0&&(W.optionText=V.optionText)};var BU=function(){};
_.v(BU,zo);BU.prototype.getApiPaths=function(){return iZB};
BU.prototype.getExtension=function(W){return _.k(W,xVZ)};
BU.prototype.JSC$13120_buildRequest=function(W,l){l.params&&(W.params=l.params)};var dM=function(){};
_.v(dM,zo);dM.prototype.getApiPaths=function(){return NxB};
dM.prototype.getExtension=function(W){return _.k(W,aiI)};
dM.prototype.JSC$13120_buildRequest=function(W,l){l.params&&(W.params=l.params)};var J_=function(){};
_.v(J_,zo);J_.prototype.getApiPaths=function(){return xzL};
J_.prototype.getExtension=function(W){return _.k(W,z8c)};
J_.prototype.JSC$13120_buildRequest=function(W,l,V){l.params&&(W.params=l.params);l.continuation&&(W.continuation=l.continuation);V.currentPlayerState&&V.currentPlayerState.playerOffsetMs&&(W.currentPlayerState={playerOffsetMs:V.currentPlayerState.playerOffsetMs.toString()})};var DU=function(){};
_.v(DU,zo);DU.prototype.getApiPaths=function(){return enZ};
DU.prototype.getExtension=function(W){return _.k(W,OzZ)};
DU.prototype.JSC$13120_buildRequest=function(W,l,V){l.params&&(W.params=l.params);V.continuation&&(W.continuation=V.continuation);"hidden"in V&&(W.webClientInfo={isDocumentHidden:V.hidden});V.isInvalidationTimeoutRequest&&(W.isInvalidationTimeoutRequest=V.isInvalidationTimeoutRequest);V.invalidationPayload&&(l=Zz1(_.$z(rU(V.invalidationPayload))),W.invalidationPayloadLastPublishAtUsec=NG(l,2));V.reloadActionPanel&&(W.reloadActionPanel=V.reloadActionPanel);V.fullReload&&(W.fullReload=V.fullReload);
V.currentPlayerState&&(W.currentPlayerState=V.currentPlayerState)};var UV=function(){};
_.v(UV,zo);UV.prototype.getApiPaths=function(){return yq$};
UV.prototype.getExtension=function(W){return _.k(W,e8M)};
UV.prototype.JSC$13120_buildRequest=function(W,l){W.params=l.params};var ug=function(){};
_.v(ug,zo);ug.prototype.getApiPaths=function(){return Yh1};
ug.prototype.getExtension=function(W){return _.k(W,R1k)};
ug.prototype.JSC$13120_buildRequest=function(W,l){l.params&&(W.params=l.params)};var kL=function(){};
_.v(kL,zo);kL.prototype.getApiPaths=function(){return qhk};
kL.prototype.getExtension=function(W){return _.k(W,tbk)};
kL.prototype.JSC$13120_buildRequest=function(W,l){l.params&&(W.params=l.params)};var vU=function(){};
_.v(vU,zo);vU.prototype.getApiPaths=function(){return gOX};
vU.prototype.getExtension=function(W){return _.k(W,h8I)};
vU.prototype.JSC$13120_buildRequest=function(W,l){l.params&&(W.params=l.params)};var HU=function(){};
_.v(HU,zo);HU.prototype.getApiPaths=function(){return nOI};
HU.prototype.getExtension=function(W){return _.k(W,Ssk)};
HU.prototype.JSC$13120_buildRequest=function(W,l){l.params&&(W.params=l.params)};var IV=function(){};
_.v(IV,zo);IV.prototype.getApiPaths=function(){return kjI};
IV.prototype.getExtension=function(W){return _.k(W,Yjk)};
IV.prototype.JSC$13120_buildRequest=function(W,l){l.params&&(W.params=l.params)};var ig=function(){};
_.v(ig,zo);ig.prototype.getApiPaths=function(){return pRe};
ig.prototype.getExtension=function(W){return _.k(W,_.EDv)};
ig.prototype.JSC$13120_buildRequest=function(W,l,V){V=V===void 0?{}:V;l.params&&(W.params=l.params);V.client_message_id&&(W.clientMessageId=V.client_message_id);V.recaptcha_token&&(W.recaptchaToken=V.recaptcha_token);V.rich_message&&V.rich_message.text_segments?(l=V.rich_message.text_segments.map(function(f){var r={};f.text&&(r.text=f.text);f.emoji_id&&(r.emojiId=f.emoji_id);return r}),W.richMessage={textSegments:l}):V.message&&(W.message=V.message);
V.currentPlayerState&&(W.currentPlayerState=V.currentPlayerState)};var m_=function(){};
_.v(m_,zo);m_.prototype.getApiPaths=function(){return oOB};
m_.prototype.getExtension=function(W){return _.k(W,$VI)};
m_.prototype.JSC$13120_buildRequest=function(W,l){l.params&&(W.params=l.params)};var Xr=function(){};
_.v(Xr,zo);Xr.prototype.getApiPaths=function(){return XRk};
Xr.prototype.getExtension=function(W){return _.k(W,l3c)};
Xr.prototype.JSC$13120_buildRequest=function(W,l,V){l.isUserInitiated&&(W.isUserInitiated=l.isUserInitiated);l.initiationSource&&(W.initiationSource=l.initiationSource);V.locationInfo&&(W.context.client.locationInfo=V.locationInfo)};var TU=function(){};
_.v(TU,zo);TU.prototype.getApiPaths=function(){return PXM};
TU.prototype.getExtension=function(W){return _.k(W,rek)};
TU.prototype.JSC$13120_buildRequest=function(W,l,V){l.metadataUpdateRequest&&(l=l.metadataUpdateRequest,W.encryptedVideoId=l.encryptedVideoId,l.liveChat&&(l=l.liveChat,W.liveChat||(W.liveChat={}),l.performAsExternalChannelId&&(W.liveChat.performAsExternalChannelId=l.performAsExternalChannelId),l.source&&(W.liveChat.source=l.source)));var f;if(V==null?0:(f=V.liveChat)==null?0:f.liveChatSettings)W.liveChat||(W.liveChat={}),V=V.liveChat.liveChatSettings,W.liveChat.newLiveChatSettings=V,W.liveChat.newLiveChatSettingsMask||
(W.liveChat.newLiveChatSettingsMask={}),V.emojiReactionSet&&(W.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var wM=function(){};
_.v(wM,zo);wM.prototype.getApiPaths=function(){return zBe};
wM.prototype.getExtension=function(W){return _.k(W,_.czB)};
wM.prototype.JSC$13120_buildRequest=function(W,l,V){V.continuation?W.continuation=V.continuation:l.videoId&&(W.videoId=l.videoId);V.clientParams&&(W.clientParams=V.clientParams)};var A_=function(){};
_.v(A_,zo);A_.prototype.getApiPaths=function(){return hnL};
A_.prototype.getExtension=function(W){return _.k(W,_.yB)};
A_.prototype.JSC$13120_buildRequest=function(W,l){W.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";W.fetchCommentsParams={};l.videoId&&(W.fetchCommentsParams.encryptedVideoId=l.videoId);l.postId&&(W.fetchCommentsParams.postId=l.postId);l.externalChannelId&&(W.fetchCommentsParams.externalChannelId=l.externalChannelId);l.linkedCommentId&&(W.fetchCommentsParams.linkedCommentId=l.linkedCommentId);(0,_.MC.isEmpty)(W.fetchCommentsParams)&&delete W.fetchCommentsParams};var Q0=function(){};
_.v(Q0,zo);Q0.prototype.getApiPaths=function(){return tm};
Q0.prototype.JSC$13120_buildRequest=function(W){W.browseId="FEnotifications_inbox"};
Q0.prototype.getExtension=function(W){return _.k(W,_.mA)};var MY=function(){};
_.v(MY,zo);MY.prototype.getApiPaths=function(){return hnL};
MY.prototype.JSC$13120_buildRequest=function(W,l){l.signal==="GET_NOTIFICATIONS_MENU"&&(W.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");l.ctoken&&(W.ctoken=l.ctoken)};
var k11=function(){};
_.v(k11,MY);k11.prototype.getExtension=function(W){return _.k(W,_.mA)};
var vZ4=function(){};
_.v(vZ4,MY);vZ4.prototype.getExtension=function(W){return _.k(W,n$I)};var ZU=function(){};
_.v(ZU,zo);ZU.prototype.getApiPaths=function(){return VWB};
ZU.prototype.getExtension=function(W){return _.k(W,_.mA)};
ZU.prototype.JSC$13120_buildRequest=function(){};var OV=function(){};
_.v(OV,zo);OV.prototype.getApiPaths=function(){return CX9};
OV.prototype.getExtension=function(W){return _.k(W,yza)||void 0};
OV.prototype.JSC$13120_buildRequest=function(W,l){l.params&&(W.params=l.params);l.secondaryParams&&(W.secondaryParams=l.secondaryParams)};var aV=function(){};
_.v(aV,zo);aV.prototype.getApiPaths=function(){return cqB};
aV.prototype.getExtension=function(W){return _.k(W,z5c)};
aV.prototype.JSC$13120_buildRequest=function(W,l){l.undo&&(W.undo=l.undo);l.serializedOptOut&&(W.serializedOptOut=l.serializedOptOut);l.serializedRecordInteractionsRequest&&(W.serializedRecordInteractionsRequest=l.serializedRecordInteractionsRequest)};var zU=function(){};
_.v(zU,zo);zU.prototype.getApiPaths=function(){return Jqk};
zU.prototype.getExtension=function(W){return _.k(W,NtI)};
zU.prototype.JSC$13120_buildRequest=function(W,l){l.serializedInteractionsRequest&&(W.serializedRecordNotificationInteractionsRequest=l.serializedInteractionsRequest)};var NY=function(){};
_.v(NY,zo);NY.prototype.getApiPaths=function(){return ofj};
NY.prototype.getExtension=function(W){return _.k(W,pJ6)};
NY.prototype.JSC$13120_buildRequest=function(W,l,V){l=l===void 0?{}:l;V=V===void 0?{}:V;l.videoId?W.videoId=l.videoId:l.playlistId&&(W.playlistId=l.playlistId);var f,r=(f=l.offlineWebClientEligibility)!=null?f:V.offlineWebClientEligibility;r&&(W.offlineWebClientEligibility=r);var R;if(f=(R=l.preferredFormatType)!=null?R:V.preferredFormatType)W.preferredFormatType=f;var y;if(R=(y=l.lastOfflineQualitySettingsSavedMs)!=null?y:V.lastOfflineQualitySettingsSavedMs)W.lastOfflineQualitySettingsSavedMs=R;
l.params&&(W.params=l.params)};var YL=function(){};
_.v(YL,zo);YL.prototype.getApiPaths=function(){return oH};
YL.prototype.getExtension=function(W){return _.k(W,_.VH)};
YL.prototype.JSC$13120_buildRequest=function(W,l,V){V=V===void 0?{}:V;l.token&&(W.continuation=l.token);V.formData&&(W.formData=V.formData)};var xL=function(){};
_.v(xL,zo);xL.prototype.getApiPaths=function(){return oH};
xL.prototype.getExtension=function(W){return _.k(W,E6Z)};
xL.prototype.JSC$13120_buildRequest=function(W,l,V){V=V===void 0?{}:V;W.continuation=V.continuation};var eR=function(){};
_.v(eR,zo);eR.prototype.getApiPaths=function(){return oH};
eR.prototype.getExtension=function(W){return _.k(W,_.zk)};
eR.prototype.JSC$13120_buildRequest=function(W,l){var V,f=l.panelIdentifier||((V=l.identifier)==null?void 0:V.tag);f&&(W.panelId=f);var r;if((r=l.globalConfiguration)==null?0:r.params){var R;W.params=(R=l.globalConfiguration)==null?void 0:R.params}};
_.rc.Object.defineProperties(eR.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var qY=function(){};
_.v(qY,zo);qY.prototype.getApiPaths=function(){return oH};
qY.prototype.getExtension=function(W){return _.k(W,wLL)};
qY.prototype.JSC$13120_buildRequest=function(W,l){l.panelLoadingStrategy&&p_S(W,l.panelLoadingStrategy)};var h_=function(){};
_.v(h_,zo);h_.prototype.getApiPaths=function(){return oH};
h_.prototype.getExtension=function(W){return _.k(W,Vb9)};
h_.prototype.JSC$13120_buildRequest=function(W,l){l.loadingStrategy&&p_S(W,l.loadingStrategy)};var SR=function(){};
_.v(SR,zo);SR.prototype.getApiPaths=function(){return oH};
SR.prototype.getExtension=function(W){return _.k(W,_.Zy)};
SR.prototype.JSC$13120_buildRequest=function(W,l){l.panelLoadingStrategy&&p_S(W,l.panelLoadingStrategy)};var EV=function(){};
_.v(EV,zo);EV.prototype.getApiPaths=function(){return oH};
EV.prototype.getExtension=function(W){return _.k(W,fkM)};
EV.prototype.JSC$13120_buildRequest=function(W,l){var V,f=(V=l.contentSourcePanelIdentifier)==null?void 0:V.tag;f&&(W.panelId=f);var r;if((r=l.globalConfiguration)==null?0:r.params){var R;W.params=(R=l.globalConfiguration)==null?void 0:R.params}};var $L=function(){};
_.v($L,zo);$L.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
$L.prototype.getExtension=function(W){return _.k(W,rJa)};
$L.prototype.JSC$13120_buildRequest=function(W,l){l.params&&(W.params=l.params)};var WJ=function(){};
_.v(WJ,zo);WJ.prototype.getApiPaths=function(){return aBk};
WJ.prototype.getExtension=function(W){return _.k(W,sH9)};
WJ.prototype.JSC$13120_buildRequest=function(W,l){l.externalChannelId&&(W.externalChannelId=l.externalChannelId);l.superChatAction&&(W.superChatAction=l.superChatAction);l.superStickersAction&&(W.superStickersAction=l.superStickersAction)};var lb=function(){};
_.v(lb,zo);lb.prototype.getApiPaths=function(){return ZZL};
lb.prototype.getExtension=function(W){return _.k(W,EQI)||_.k(W,jCn)};
lb.prototype.JSC$13120_buildRequest=function(W,l){l.videoIds?W.videoIds=l.videoIds:l.videoId&&(W.videoIds=[l.videoId]);l.playlistId&&(W.playlistId=l.playlistId);l.params&&(W.params=l.params);W.excludeWatchLater=!1};var Vz=function(){};
_.v(Vz,zo);Vz.prototype.getApiPaths=function(){return jRk};
Vz.prototype.getExtension=function(W){return _.k(W,_.dT)};
Vz.prototype.JSC$13120_buildRequest=function(W,l,V){V.create_playlist_title?W.title=V.create_playlist_title:l.title&&(W.title=l.title);if(V.create_playlist_privacy_status&&typeof V.create_playlist_privacy_status==="number"){a:{var f=V.create_playlist_privacy_status;if(f!==0){if(f===1){f="PUBLIC";break a}if(f===2){f="UNLISTED";break a}}f="PRIVATE"}W.privacyStatus=f}else l.privacyStatus&&(W.privacyStatus=l.privacyStatus);V.create_playlist_description&&(W.description=V.create_playlist_description);l.videoIds&&
(W.videoIds=l.videoIds);l.params&&(W.params=l.params);l.sourcePlaylistId&&(W.sourcePlaylistId=l.sourcePlaylistId)};var fl=function(){};
_.v(fl,zo);fl.prototype.getApiPaths=function(){return mza};
fl.prototype.getExtension=function(W){return _.k(W,sBB)};
fl.prototype.JSC$13120_buildRequest=function(W,l){W.playlistId=l.playlistId};var rh=function(){};
_.v(rh,zo);rh.prototype.getApiPaths=function(){return ShL};
rh.prototype.getExtension=function(W){return _.k(W,Aee)};
rh.prototype.JSC$13120_buildRequest=function(W,l){l.playlistId&&(W.playlistId=l.playlistId);l.params&&(W.params=l.params)};var RC=function(){};
_.v(RC,zo);RC.prototype.getApiPaths=function(){return dA9};
RC.prototype.getExtension=function(W){return _.k(W,_.gT)||void 0};
RC.prototype.JSC$13120_buildRequest=function(W,l){l.actions&&(W.actions=l.actions);l.params&&(W.params=l.params);l.playlistId&&(W.playlistId=l.playlistId)};var tb=function(){};
_.v(tb,zo);_.t=tb.prototype;_.t.getApiPaths=function(){return DA$};
_.t.getExtension=function(W){return _.k(W,_.N$)};
_.t.JSC$13120_buildRequest=function(W,l){l.videoId&&(W.playerRequest={videoId:l.videoId},l.playerParams&&(W.playerRequest.params=l.playerParams),l.racyCheckOk&&(W.playerRequest.racyCheckOk=!!l.racyCheckOk),l.contentCheckOk&&(W.playerRequest.contentCheckOk=!!l.contentCheckOk));l.params&&(W.params=l.params);l.inputType&&(W.inputType=l.inputType);W.disablePlayerResponse=!0};
_.t.getRequestConfig=function(W){var l;(W=this.JSC$13127_getStoreKey(W))&&(l={storeStrategy:{storeKey:W}});_.U("web_log_reels_ticks")&&(l=l||{},l.requestTick="r_wrs",l.responseTick="r_wrr");return l};
_.t.JSC$13127_getStoreKey=function(W){W=this.getExtension(W);if(_.U("shorts_controller_retrieve_seedless_sequence_v2")){if((W==null?void 0:W.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.ch("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if(_.U("web_shorts_prefetch_service_enabled")&&W!=null&&W.videoId){var l={videoId:W.videoId};W.params&&(l.params=W.params);return _.ch("reel_item_watch",l)}};var sF=function(){};
_.v(sF,zo);_.t=sF.prototype;_.t.getApiPaths=function(){return UA9};
_.t.getExtension=function(W){return _.k(W,_.N$)};
_.t.JSC$13120_buildRequest=function(W,l,V){V=V===void 0?{}:V;W.sequenceParams=l.sequenceParams;var f;((f=V)==null?0:f.contentPlaybackContext)&&_.U("web_shorts_prefetch_service_enabled")&&(W.playbackContext={contentPlaybackContext:V.contentPlaybackContext})};
_.t.JSC$13127_getStoreKey=function(W){if(_.U("web_enable_delay_shorts_sequence_call")||_.U("shorts_controller_retrieve_seedless_sequence_v2"))if(W=this.getExtension(W),W==null?0:W.sequenceParams)return _.ch("reel_watch_sequence",{sequenceParams:W.sequenceParams})};
_.t.getRequestConfig=function(W){W=this.JSC$13127_getStoreKey(W);var l;W&&(l={storeStrategy:{storeKey:W}});_.U("reel_watch_sequence_request_log_ticks")&&(l=l||{},l.requestTick="r_wsrs",l.responseTick="r_wsrr",l.processorTick="r_wsrp");return l};
var Ll=function(){};
_.v(Ll,zo);Ll.prototype.getApiPaths=function(){return UA9};
Ll.prototype.getExtension=function(W){return _.k(W,_.VH)};
Ll.prototype.JSC$13120_buildRequest=function(W,l,V){V=V===void 0?{}:V;l.token&&(W.continuation=l.token);var f;((f=V)==null?0:f.contentPlaybackContext)&&_.U("web_shorts_prefetch_service_enabled")&&(W.playbackContext={contentPlaybackContext:V.contentPlaybackContext})};
Ll.prototype.getRequestConfig=function(W){W=this.JSC$13127_getStoreKey(W);var l;W&&(l={storeStrategy:{storeKey:W}});_.U("reel_watch_sequence_request_log_ticks")&&(l=l||{},l.requestTick="r_wsrs",l.responseTick="r_wsrr",l.processorTick="r_wsrp");return l};var yz=function(){};
_.v(yz,zo);yz.prototype.getApiPaths=function(){return AMB};
yz.prototype.getExtension=function(W){return _.k(W,_.Q9a)};
yz.prototype.JSC$13120_buildRequest=function(W,l,V){V=V===void 0?{}:V;l.flagAction&&(W.action=l.flagAction);l.flagRequestType&&(W.flagRequestType=l.flagRequestType);l.additionalDetailCheckboxChecked&&(W.additionalDetailCheckboxChecked=l.additionalDetailCheckboxChecked);l.legalCheckboxChecked&&(W.legalCheckboxChecked=l.legalCheckboxChecked);l={};V.flag_issue_type!==void 0&&(l.issue=V.flag_issue_type);V.flag_affiliation!==void 0&&(l.affiliation=V.flag_affiliation);V.flag_full_name&&(l.fullName=V.flag_full_name);
Object.keys(l).length&&(W.legalReportDetails=l);if(V.flag_description||V.text)W.userComments=V.flag_description||V.text;l={};V.minutes!==void 0&&V.seconds!==void 0&&(l.minutes=V.minutes,l.seconds=V.seconds);V.vss_id&&(l.vssId=V.vss_id);Object.keys(l).length&&(W.videoReportDetails=l);l={};V.video_ids&&(l.videoIds=V.video_ids);V.impersonated_channel_url&&(l.impersonatedChannelUrl=V.impersonated_channel_url);Object.keys(l).length&&(W.channelAbuseReportDetails=l)};
_.rc.Object.defineProperties(yz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var gh=function(){};
_.v(gh,zo);gh.prototype.getApiPaths=function(){return zne};
gh.prototype.getExtension=function(W){return _.k(W,gDB)};
gh.prototype.JSC$13120_buildRequest=function(W,l){l.blockedForKidsContent&&(W.blockedForKidsContent=l.blockedForKidsContent)};var PJ=function(){};
_.v(PJ,zo);PJ.prototype.getApiPaths=function(){return vOc};
PJ.prototype.getExtension=function(W){return _.k(W,oXn)};
PJ.prototype.JSC$13120_buildRequest=function(W,l,V){W.params=l.params;V.impersonated_channel_url&&(W.impersonatedChannelUrl=V.impersonated_channel_url)};var nl=function(){};
_.v(nl,zo);nl.prototype.getApiPaths=function(){return s2M};
nl.prototype.getExtension=function(W){return _.k(W,_.PZ9)};
nl.prototype.JSC$13120_buildRequest=function(W,l){l.items&&(W.items=l.items);l.kidGaiaId&&(W.kidGaiaId=l.kidGaiaId)};var Cl=function(){};
_.v(Cl,zo);Cl.prototype.getApiPaths=function(){return OZv};
Cl.prototype.getExtension=function(W){return _.k(W,_.qbX)};
Cl.prototype.JSC$13120_buildRequest=function(W,l){l.params&&(W.params=l.params);l.targetId&&(W.targetId=l.targetId)};var cJ=function(){};
_.v(cJ,zo);cJ.prototype.getApiPaths=function(){return Gj$};
cJ.prototype.getExtension=function(W){return _.k(W,CCI)};
cJ.prototype.JSC$13120_buildRequest=function(W,l){l.externalVideoId&&(W.externalVideoId=l.externalVideoId);l.query&&(W.query=l.query);l.sourceTimelines&&(W.sourceTimelines=l.sourceTimelines)};var BJ=function(){};
_.v(BJ,zo);BJ.prototype.getApiPaths=function(){return b9c};
BJ.prototype.getExtension=function(W){return _.k(W,_.VH)||void 0};
BJ.prototype.JSC$13120_buildRequest=function(W,l){l.token&&(W.continuation=l.token)};
_.H27=function(){};
_.v(_.H27,zo);_.t=_.H27.prototype;_.t.getApiPaths=function(){return b9c};
_.t.getExtension=function(W){return _.k(W,_.Om)||void 0};
_.t.isNavigationCommand=function(){return!0};
_.t.JSC$13127_getStoreKey=function(W,l){l=l===void 0?{}:l;if(!l.disableCache&&(W=this.getExtension(W))&&W.query)return l={query:W.query},W.params&&(l.params=W.params),_.ch("search",l)};
_.t.JSC$13120_buildRequest=function(W,l,V){l.query&&(W.query=l.query);l.params&&(W.params=l.params);if(!_.U("web_forward_suggest_stats_killswitch")){var f=_.k(l,jzk);f&&(W.suggestStats=f)}var r;!_.U("kevlar_searchbox_stats_killswitch")&&((r=V.tempData)==null?0:r.gs_l)&&!_.k(l,jzk)&&(W.webSearchboxStatsUrl="/search?oq="+(V.tempData.oq||"")+"&gs_l="+V.tempData.gs_l);var R;if((R=V.tempData)==null?0:R.entityMid)l=W.suggestionSearchParams||{},l.entityMid=V.tempData.entityMid,W.suggestionSearchParams=l;
if(_.U("enable_desktop_vdcbg_components")||_.U("enable_inline_muted_playback_on_web_search"))V=_.MT().getFlag(186),W.inlineSettingStatus=V?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON"};
_.t.getRequestConfig=function(W,l){l=l===void 0?{}:l;W=this.JSC$13127_getStoreKey(W,l);var V;W&&(V={storeStrategy:{storeKey:W}});_.U("web_log_search_ticks_ks")||(V=V||{},V.requestTick="sr_s",V.responseTick="sr_r");return V};var dh=function(){};
_.v(dh,zo);dh.prototype.getApiPaths=function(){return WaM};
dh.prototype.getExtension=function(W){return _.k(W,U5k)};
dh.prototype.JSC$13120_buildRequest=function(W,l){l.serializedGetSharingProviderDataParams&&(W.serializedGetSharingProviderDataParams=l.serializedGetSharingProviderDataParams)};var Jb=function(){};
_.v(Jb,zo);Jb.prototype.getApiPaths=function(){return lBL};
Jb.prototype.getExtension=function(W){return _.k(W,m3M)};
Jb.prototype.JSC$13120_buildRequest=function(W,l){l.endpoint&&(W.endpoint=l.endpoint);l.action&&(W.action=l.action)};var DK=function(){};
_.v(DK,zo);DK.prototype.getApiPaths=function(){return XZB};
DK.prototype.getExtension=function(W){return _.k(W,LV9)};
DK.prototype.JSC$13120_buildRequest=function(W,l){W.videoId=l.videoId;l.scheduledRedirectMetadataSourceVideoId&&(W.scheduledRedirectMetadata={sourceVideoId:l.scheduledRedirectMetadataSourceVideoId})};var UF=function(){};
_.v(UF,zo);UF.prototype.getApiPaths=function(){return IB1};
UF.prototype.getExtension=function(W){return _.k(W,_.LTa)};
UF.prototype.JSC$13120_buildRequest=function(W,l){W.params=l.params;W.correctionText=l.correctionText};var ub=function(){};
_.v(ub,zo);ub.prototype.getApiPaths=function(){return GKq};
ub.prototype.getExtension=function(W){return _.k(W,_.cUa)};
ub.prototype.JSC$13120_buildRequest=function(W,l){l.params&&(W.params=l.params);W.searchQuery=l.searchQuery;W.languageCode=l.languageCode;W.kind=l.kind;W.name=l.name;W.externalVideoId=l.externalVideoId};var kX=function(){};
_.v(kX,zo);kX.prototype.getApiPaths=function(){return eBe};
kX.prototype.getExtension=function(W){return _.k(W,vIa)};
kX.prototype.JSC$13120_buildRequest=function(W,l){l.params&&(W.params=l.params)};var vJ=function(W){this.JSC$18156_storeWithEntities=W};
_.v(vJ,zo);vJ.prototype.getApiPaths=function(){return HZ9};
vJ.prototype.getExtension=function(W){return _.k(W,KT1)||_.k(W,GDa)};
vJ.prototype.JSC$13120_buildRequest=function(W,l,V){V.client_data&&(W.clientData=V.client_data);if(l.commerceActionConfig){var f=l.commerceActionConfig;l=f.actionId;f=f.commerceActionParams;l&&(W.actionId=l);f&&(W.commerceActionParams=f)}else{var r=l.actionId,R=l.commerceActionParams;V=l.entityKeys;r&&(W.actionId=r);R&&(W.commerceActionParams=R);var y;l=(f=this.JSC$18156_storeWithEntities)==null?void 0:(y=f.getState())==null?void 0:y.entities;if(V&&l){f=[];y=_.L(V);for(V=y.next();!V.done;V=y.next())if(r=
V.value,V=_.p0(r).entityType,r=_.mL(l,V,r))R={},f.push((R[V]=r,R));W.entityMutationPayloads=f}}};
vJ.prototype.getRequestConfig=function(W){var l,V=(l=_.k(W,KT1))==null?void 0:l.requestSequenceType;if(V&&W.clickTrackingParams&&V!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:W.clickTrackingParams,sequenceType:V}}};
vJ[k$]=[dl];var HJ=function(){};
_.v(HJ,zo);HJ.prototype.getApiPaths=function(){return qTk};
HJ.prototype.getExtension=function(W){return _.k(W,_.Ny$)};
HJ.prototype.JSC$13120_buildRequest=function(W,l){l.feedbackData&&(W.feedbackData=l.feedbackData);l.params&&(W.itemParams=l.params)};
_.rc.Object.defineProperties(HJ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Kl=function(){};
_.v(Kl,zo);Kl.prototype.getApiPaths=function(){return hBk};
Kl.prototype.getExtension=function(W){return _.k(W,YB1)};
Kl.prototype.JSC$13120_buildRequest=function(W,l,V){V.payments_payload&&(W.paymentsPayload=V.payments_payload);V.offer_params&&(W.offerParams=V.offer_params);l.transactionParams&&(W.transactionParams=l.transactionParams)};var Fk=function(){};
_.v(Fk,zo);Fk.prototype.getApiPaths=function(){return STL};
Fk.prototype.getExtension=function(W){return _.k(W,_.xDk)};
Fk.prototype.JSC$13120_buildRequest=function(W,l,V){V=V===void 0?{}:V;l.buybucketParams&&(W.buybucketData={params:l.buybucketParams},l.stickerParams?W.buybucketData.stickerParams=l.stickerParams:(V.rich_chat_message?W.buybucketData.richChatMessage=V.rich_chat_message:V.chat_message_text&&(W.buybucketData.chatMessageText=V.chat_message_text),V.purchase_price_micros&&(W.buybucketData.purchasePriceMicros=V.purchase_price_micros.toString())));l.donationAmountMicros&&(W.tipAmountMicros=l.donationAmountMicros,
l.tipParams&&(W.tipParams=l.tipParams));l.offerParams&&(W.offerParams=l.offerParams);l.productData&&(W.productData=l.productData);l.transactionParams&&(W.transactionParams=l.transactionParams)};var Ge=function(){};
_.v(Ge,zo);Ge.prototype.getApiPaths=function(){return EO9};
Ge.prototype.getExtension=function(W){return _.k(W,hfX)};
Ge.prototype.JSC$13120_buildRequest=function(W,l){l.updateFopParams&&(W.updateFopParams=l.updateFopParams)};var bb=function(){};
_.v(bb,zo);bb.prototype.getApiPaths=function(){return $Ae};
bb.prototype.getExtension=function(W){return _.k(W,_.Pf)};
bb.prototype.JSC$13120_buildRequest=function(W,l){l.couponCode&&(W.couponCode=l.couponCode);l.params&&(W.itemParams=l.params)};var pl=function(){};
_.v(pl,zo);pl.prototype.getApiPaths=function(){return WOI};
pl.prototype.getExtension=function(W){return _.k(W,_.FTe)};
pl.prototype.JSC$13120_buildRequest=function(W,l,V){V=V===void 0?{}:V;l.params&&(W.params=l.params);V.ctk&&(W.clientToken=V.ctk)};var oC=function(W){this.JSC$18191_storeWithEntities=W};
_.v(oC,zo);oC.prototype.getApiPaths=function(){return lOI};
oC.prototype.getExtension=function(W){return _.k(W,_.uO)};
oC.prototype.JSC$13120_buildRequest=function(W,l,V){V.purchase_price_micros&&(W.productData={pdgData:{purchasePriceMicros:V.purchase_price_micros.toString()}},V.rich_chat_message&&(W.productData.pdgData.richChatMessage=V.rich_chat_message),V.currency_code&&(W.productData.pdgData.currencyCode=V.currency_code));l.transactionParams&&(W.transactionParams=l.transactionParams);l.clientLocationContext&&(W.clientLocationContext=l.clientLocationContext);V.payments_payload&&(W.paymentsPayload=V.payments_payload);
V.funds_guarantee_callback_client_data&&(W.fundsGuaranteeCallbackClientData=V.funds_guarantee_callback_client_data);var f,r;V=(f=this.JSC$18191_storeWithEntities)==null?void 0:(r=f.getState())==null?void 0:r.entities;if(l.entityKeys&&V){f=[];l=_.L(l.entityKeys);for(r=l.next();!r.done;r=l.next()){var R=r.value;r=_.p0(R).entityType;if(R=_.mL(V,r,R)){var y={};f.push((y[r]=R,y))}}W.entityMutationPayloads=f}};
oC[k$]=[dl];var jd=function(){};
_.v(jd,zo);jd.prototype.getApiPaths=function(){return Vok};
jd.prototype.getExtension=function(W){return _.k(W,efZ)};
jd.prototype.JSC$13120_buildRequest=function(W,l,V){V=V===void 0?{}:V;V.backend_analytics&&(W.serializedBackendAnalyticsEvent=V.backend_analytics);l.offerParams&&(W.offerParams=l.offerParams)};var IC=function(){};
_.v(IC,zo);IC.prototype.getApiPaths=function(){return $Ae};
IC.prototype.getExtension=function(W){return _.k(W,n5U)};
IC.prototype.JSC$13120_buildRequest=function(W,l){l.params&&(W.itemParams=l.params)};var ib=function(){};
_.v(ib,zo);ib.prototype.getApiPaths=function(){return fOc};
ib.prototype.getExtension=function(W){return _.k(W,_.IPc)};
ib.prototype.JSC$13120_buildRequest=function(W,l,V){V.resume_time_ms&&(W.resumeTimeMs=V.resume_time_ms);l.pauseParams&&(W.pauseParams=l.pauseParams)};var mX=function(){};
_.v(mX,zo);mX.prototype.getApiPaths=function(){return r8e};
mX.prototype.getExtension=function(W){return _.k(W,_.qBZ)};
mX.prototype.JSC$13120_buildRequest=function(W,l,V){V=V===void 0?{}:V;V.c&&(W.redeemCode=V.c);V.rd&&(W.riskData=V.rd);V.ctk&&(W.clientToken=V.ctk)};var Xk=function(){};
_.v(Xk,zo);Xk.prototype.getApiPaths=function(){return RT9};
Xk.prototype.getExtension=function(W){return _.k(W,_.ifX)};
Xk.prototype.JSC$13120_buildRequest=function(W,l){l.resumeParams&&(W.resumeParams=l.resumeParams)};var Te=function(W,l){this.clientName=W;this.defaultExpirationDelayMs=l};
Te.prototype.put=function(W,l){var V=this,f;return _.g(function(r){f=Object.assign({},l.data);f.key=W;f.clientName=V.clientName;f.expireTimestampMs===void 0&&(f.expireTimestampMs=(Math.round((0,_.tv)())+V.defaultExpirationDelayMs).toString());return r.return(V.putInternal(W,f))})};
Te[k$]=[PK,ocY];var KN2=function(){Te.apply(this,arguments);this.JSC$18221_responseStore=new Map};
_.v(KN2,Te);_.t=KN2.prototype;_.t.get=function(W){var l=this;return _.g(function(V){return V.return(YM(l,W))})};
_.t.putInternal=function(W,l){var V=this,f,r,R;return _.g(function(y){f=V.defaultExpirationDelayMs;l.expireTimestampMs&&(f=Number(l.expireTimestampMs)-Math.round((0,_.tv)()),r=_.yS("mweb_override_response_store_expiration_ms"),r>0&&r<f&&(f=r));R=setTimeout(function(){V.remove(W)},f);
V.JSC$18221_responseStore.set(W,{entryData:l,timer:R});_.ju(y)})};
_.t.remove=function(W){var l=this;return _.g(function(V){FNs(l,W);_.ju(V)})};
_.t.removeAll=function(){var W=this;return _.g(function(l){W.JSC$18221_responseStore.forEach(function(V){clearTimeout(V.timer)});
W.JSC$18221_responseStore.clear();_.ju(l)})};
_.t.has=function(W){return!!this.JSC$18221_responseStore.get(W)};
_.t.getKeys=function(){return this.JSC$18221_responseStore.keys()};
var YM=function(W,l){if(W=W.JSC$18221_responseStore.get(l))return new _.Nz(W.entryData)},FNs=function(W,l){var V=W.JSC$18221_responseStore.get(l);
V&&(clearTimeout(V.timer),W.JSC$18221_responseStore.delete(l))};var oTU;var i$j=function(W,l,V){Te.call(this,W,l);this.token=V};
_.v(i$j,Te);_.t=i$j.prototype;_.t.get=function(W){var l=this,V,f;return _.g(function(r){return r.nextAddress==1?r.yield(Itg(l.token),2):r.nextAddress!=3?(V=r.yieldResult,r.yield(V.get("ResponseStore",[W,l.clientName]),3)):(f=r.yieldResult)?r.return(new _.Nz(f)):r.return(void 0)})};
_.t.putInternal=function(W,l){var V=this,f;return _.g(function(r){if(r.nextAddress==1)return r.yield(Itg(V.token),2);f=r.yieldResult;return r.yield(f.put("ResponseStore",l),0)})};
_.t.remove=function(W){var l=this,V;return _.g(function(f){if(f.nextAddress==1)return f.yield(Itg(l.token),2);V=f.yieldResult;return f.return(V.delete("ResponseStore",[W,l.clientName]))})};
_.t.removeAll=function(){var W=this,l;return _.g(function(V){if(V.nextAddress==1)return V.yield(Itg(W.token),2);l=V.yieldResult;return V.yield(EBX(l,IDBKeyRange.only(W.clientName)),0)})};
_.t.has=function(){throw Error("bj");};_.wh=new _.vd("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var G1N=function(W){var l;this.stateTagsData=(l=W.responseContext)==null?void 0:l.stateTags},b21=function(W){var l;
return((l=W.stateTagsData)==null?void 0:l.stateTagsModified)||[]};var peY;peY=function(W){this.JSC$18234_responseStore=W};
_.lK=function(W,l,V){if(!_.U("state_tags_killswitch")){var f=new G1N(l);if(b21(f).length>0){var r=W.JSC$18234_responseStore.getKeys();r=_.L(r);for(var R=r.next();!R.done;R=r.next()){R=R.value;var y=YM(W.JSC$18234_responseStore,R);if(y){var P=_.c0(y);a:{var n=void 0;y=b21(f);P=((n=(new G1N(P)).stateTagsData)==null?void 0:n.relevantStateTags)||[];n=_.L(P);for(P=n.next();!P.done;P=n.next())if(P=P.value,P.stateTag!=null&&y.includes(P.stateTag)&&P.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){y=
!0;break a}y=!1}y&&FNs(W.JSC$18234_responseStore,R)}}}}var B;f=(B=l.responseContext)==null?void 0:B.maxAgeSeconds;V&&f&&Number(f)>0&&(l=Kv(l,f),W.JSC$18234_responseStore.put(V,new _.Nz(l)))};
peY.prototype.handleResponse=function(W,l){if(!l)throw Error("cj");var V,f;l=(V=l.config)==null?void 0:(f=V.storeStrategy)==null?void 0:f.storeKey;_.lK(this,W,l)};
peY[k$]=[_.zJ];_.M_z=new _.vd("STORE_RESPONSE_PROCESSOR_TOKEN");var oZw=function(W){this.JSC$18237_responseStore=W};
oZw.prototype.handleResponse=function(W,l){if(l.input.match(_.Um(UA9))){var V;if(W==null?0:(V=W.entries)==null?0:V.length)for(W=_.L(W.entries),l=W.next();!l.done;l=W.next()){V=l.value.command;var f=void 0;l=(f=_.k(V,_.N$))==null?void 0:f.unserializedPrefetchData;if(!V||!l)break;f=(new tb).JSC$13127_getStoreKey(V);var r=_.k(l,iEX),R=void 0,y=void 0,P=void 0,n=_.yS("web_shorts_prefetch_service_ttl_seconds")>0?_.yS("web_shorts_prefetch_service_ttl_seconds"):Number((P=(R=r)==null?void 0:(y=R.responseContext)==
null?void 0:y.maxAgeSeconds)!=null?P:3600);f&&n>0&&(r=Kv(r,n),this.JSC$18237_responseStore.put(f,new _.Nz(r)));V=(new q5).JSC$13127_getStoreKey(V);l=_.k(l,dlk);R=r=f=void 0;y=_.yS("web_shorts_prefetch_service_ttl_seconds")>0?_.yS("web_shorts_prefetch_service_ttl_seconds"):Number((R=(f=l)==null?void 0:(r=f.responseContext)==null?void 0:r.maxAgeSeconds)!=null?R:3600);V&&y>0&&(l=Kv(l,y),this.JSC$18237_responseStore.put(V,new _.Nz(l)))}}};
oZw[k$]=[_.zJ];var jwL=function(W,l){this.innertubeTransportService=W;this.JSC$18240_commandHandler=l};
jwL.prototype.submitForm=function(W,l,V,f,r){var R=this,y,P,n,B,d,J,D;return _.g(function(u){if(u.nextAddress==1)return y={submitId:W,formData:l,submitBehavior:V,params:f},P=_.Um(i9B),u.yield(_.B3(R.innertubeTransportService,y,P,r),2);n=u.yieldResult;if(!n)return u.return(Promise.reject(new _.bP("Submit API returned an undefined response. Submit ID: "+W)));B=n;(D=(d=B)==null?void 0:(J=d.submitResult)==null?void 0:J.command)&&R.JSC$18240_commandHandler.resolveCommand(D);return u.return(B)})};
jwL[k$]=[_.Vb,_.s6];var Ab=function(){this.scheduler=_.Am()},Ic1;
Ab.prototype.pause=function(){throw Error("dj");};
Ab.prototype.resume=function(){throw Error("dj");};
Ab.prototype.queue=function(W){var l=this,V=_.yH(),f=_.pS(this.scheduler,function(){try{var r;if(_.mK.instance)var R=_.mK.instance;else{var y=new _.bP("Error: Unexpected uninitialized CommandHandler.");_.wv(y);R=void 0}(r=R)==null||r.resolveCommand(W.command);V.resolve()}catch(P){V.reject(P)}});
V.promise.thenCatch(function(r){r instanceof _.Eg&&l.scheduler.cancelJob(f)});
return V.promise};
Ab.prototype.queueAll=function(W){var l=new Map;W=_.L(W);for(var V=W.next();!V.done;V=W.next())V=V.value,l.set(V.id,this.queue(V));return l};var mHc=function(W,l){var V=this;this.taskModel=W;this.onTaskCancelledCallback=l;this.resolver=_.yH();W=W.proto.prefetchConfig;if(!W)throw Error("ej");if(!W.prefetchAction)throw Error("fj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(f){f instanceof _.Eg&&(i2w(V,V.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),V.onTaskCancelledCallback(V.taskModel.id,V.jobId),V.tick("pcc"));
throw f;});
this.timerName=this.taskModel.id;_.$u(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
mHc.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 i2w=function(W,l){_.Sy({prefetchInfo:{cancellationReason:l}},W.timerName)};
mHc.prototype.tick=function(W){_.Wy(W,void 0,this.timerName)};var MZ=function(){var W=this;this.scheduler=_.Am();this.maxInflightTasks=_.yS("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.yS("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new FrI;this.onTaskCancelled=function(l,V){V&&W.scheduler.cancelJob(V);XeL(W,l);Qz(W,3)}},T71=function(){MZ.instance||(MZ.instance=new MZ);
return MZ.instance};
MZ.prototype.pause=function(){this.prefetchCoordinatorState=0};
MZ.prototype.resume=function(){Qz(this,0)};
MZ.prototype.queue=function(W){W=weY(this,W);Qz(this,1);return W};
MZ.prototype.queueAll=function(W){var l=new Map;W=_.L(W);for(var V=W.next();!V.done;V=W.next())V=V.value,l.set(V.id,weY(this,V));Qz(this,1);return l};
var weY=function(W,l){var V=W.allPrefetchTasks.get(l.id);if(V)return V.cancellablePromise;try{var f=new mHc(l,W.onTaskCancelled)}catch(R){return _.eM(R)}V=f;V.tick("pcq");var r={prefetchInfo:{taskId:V.taskModel.id,isPrefetch:!0,fetchAction:V.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:V.taskModel.command.clickTrackingParams}};V.taskModel.csn&&(r.clientScreenNonce=V.taskModel.csn);_.Sy(r,V.timerName);W.allPrefetchTasks.set(l.id,f);W.drainingHeap.insert(-f.getPriority(),f);return f.cancellablePromise},
Qz=function(W,l){W.prefetchCoordinatorState===l&&(W.prefetchCoordinatorState=2,A1c(W))},A1c=function(W){for(var l={};W.prefetchCoordinatorState!==0;l={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(W.inflightPrefetchTasks.size>=W.maxInflightTasks){W.prefetchCoordinatorState=3;break}l.prefetchTask$jscomp$1=W.drainingHeap.remove();if(!l.prefetchTask$jscomp$1){W.prefetchCoordinatorState=1;break}l.taskId$jscomp$3=l.prefetchTask$jscomp$1.taskModel.id;if(W.allPrefetchTasks.has(l.taskId$jscomp$3)){var V=-1;W.coordinatorTimeoutMs>0&&(V=_.pS(W.scheduler,function(f){return function(){ZK(W,f.taskId$jscomp$3,Error("gj"))}}(l),W.coordinatorTimeoutMs));
W.inflightPrefetchTasks.set(l.taskId$jscomp$3,V);if(!W.JSC$18259_commandHandler){if(!_.mK.instance){ZK(W,l.taskId$jscomp$3,Error("hj"));continue}W.JSC$18259_commandHandler=_.mK.instance}a:switch(l.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":V=1;break a;default:V=0}l.prefetchTask$jscomp$1.jobId=W.scheduler.addJob(function(f){return function(){f.prefetchTask$jscomp$1.tick("pcr");try{W.JSC$18259_commandHandler.resolveCommand(f.prefetchTask$jscomp$1.taskModel.command)||
ZK(W,f.taskId$jscomp$3,Error("ij"))}catch(r){ZK(W,f.taskId$jscomp$3,r)}}}(l),V,0)}}},QwH=function(W,l){(l=XeL(W,l))!=null&&(l.resolver.resolve(),l.tick("pce"));
Qz(W,3)},ZK=function(W,l,V){(l=XeL(W,l,V))!=null&&(l.resolver.reject(V),l.tick("pcc"),i2w(l,"CANCELLATION_REASON_ERROR"),Math.random()<=_.yS("prefetch_coordinator_error_logging_sampling_rate")&&(V=new _.bP("Prefetch Command failed.",l.taskModel.id,V.message),_.wv(V)));
Qz(W,3)},XeL=function(W,l,V){var f=W.allPrefetchTasks.get(l);
f?((V=W.inflightPrefetchTasks.get(l))&&V!==-1&&W.scheduler.cancelJob(V),W.inflightPrefetchTasks.delete(l),W.allPrefetchTasks.delete(l)):_.Qe(new _.bP("Unexpected missing prefetch task when deleting task.",l,V==null?void 0:V.message));return f};var MY4=function(W,l,V,f,r){this.id=W;this.triggerOn=l;this.cancelOn=V;this.command=f;this.proto=r};
_.rc.Object.defineProperties(MY4.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var Z25=function(){this.JSC$18264_prefetchCoordinator=T71();Ic1||(Ic1=new Ab);this.defaultCoordinator=Ic1},O22;
Z25.getInstance=function(){O22||(O22=new Z25);return O22};
Z25.prototype.get=function(W){switch(W){case 0:return this.JSC$18264_prefetchCoordinator;default:return this.defaultCoordinator}};var OF=function(){this.coordinatorSupplier=Z25.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},N7N=function(W){var l=_.Wh()||void 0,V=Object.keys(acw)[0];
if(V){var f=W.taskIdByTriggerId.get(V);if(f!=null){W.taskIdByTriggerId.delete(V);V=[];f=_.L(f);for(var r=f.next();!r.done;r=f.next())if(r=W.tasks.get(r.value))l!=="UNDEFINED_CSN"&&(r.csn=l),V.push(r);V=Tq8(V);l=[];V=_.L(V);for(f=V.next();!f.done;f=V.next()){r=_.L(f.value);f=r.next().value;r=r.next().value;f=W.coordinatorSupplier.get(f).queueAll(r);f=_.L(f);var R=f.next();for(r={};!R.done;r={taskId$jscomp$9:void 0},R=f.next()){var y=_.L(R.value);R=y.next().value;y=y.next().value;r.taskId$jscomp$9=
R;R=y;l.push(r.taskId$jscomp$9);W.queuedPromisesByTask.set(r.taskId$jscomp$9,_.xS(R,function(P){return function(){z45(W,P.taskId$jscomp$9)}}(r)))}}}}else _.Qe(new _.bP("Unexpected malformed TriggerEvent."))};
OF.prototype.trigger=function(W,l){var V=this,f=this.tasks.get(W);if(!f||this.queuedPromisesByTask.has(W))return!1;Y5e(this,W,f.triggerOn);l!=="UNDEFINED_CSN"&&(f.csn=l);l=this.coordinatorSupplier.get(f.taskType).queue(f);this.queuedPromisesByTask.set(W,_.xS(l,function(){z45(V,W)}));
return!0};
OF.prototype.cancel=function(W){var l=this.queuedPromisesByTask.get(W);if(l)l.cancel();else return z45(this,W)};
var z45=function(W,l){W.queuedPromisesByTask.delete(l);var V=W.tasks.get(l);if(!V)return!1;W.tasks.delete(l);Y5e(W,l,V.triggerOn);(V=X_j(V.cancelOn))&&(W=W.taskIdByCancelId.get(V))&&W.delete(l);return!0},Y5e=function(W,l,V){(V=Object.keys(V)[0])&&(W=W.taskIdByTriggerId.get(V))&&W.delete(l)};var acw={taskRegistered:{}},aC=function(){OF.instance||(OF.instance=new OF);this.JSC$18273_taskManager=OF.instance};
_.v(aC,Do);
aC.prototype.resolveCommand=function(W){var l=this,V,f;return _.g(function(r){V=_.k(W,XLk);if((f=V)==null||!f.tasks){var R=new _.bP("RegisterTasksCommand is missing tasks.");_.wv(R);return r.return()}R=l.JSC$18273_taskManager;for(var y=_.L(V.tasks),P=y.next();!P.done;P=y.next())if(P=P.value,P=P.id&&P.triggerOn&&P.cancelOn&&P.command?new MY4(P.id,P.triggerOn,P.cancelOn,P.command,P):void 0,P){var n=Object.keys(P.triggerOn)[0];if(n){var B=X_j(P.cancelOn);B?(R.tasks.set(P.id,P),R.taskIdByTriggerId.has(n)||R.taskIdByTriggerId.set(n,
new Set),R.taskIdByTriggerId.get(n).add(P.id),R.taskIdByCancelId.has(B)||R.taskIdByCancelId.set(B,new Set),R.taskIdByCancelId.get(B).add(P.id)):_.Qe(new _.bP("Unexpected malformed cancelOn field."))}else _.Qe(new _.bP("Unexpected malformed triggerOn field."))}else _.Qe(new _.bP("Unexpected malformed Task proto."));N7N(l.JSC$18273_taskManager);_.ju(r)})};var xH4={},e45=(xH4.rendered={priority:_.U("web_adaptive_early_init")?8:0,callback:function(){var W={};W.numCpu=navigator.hardwareConcurrency;var l={};l.ramGb=_.rS.navigator.deviceMemory;var V={staticContext:{}};l.ramGb&&w_J(l.ramGb)&&(V.staticContext.memoryTotalKbytes=(l.ramGb*1048576).toString());W.numCpu&&w_J(W.numCpu)&&(V.staticContext.cpuCores=W.numCpu);if(_.U("web_enable_adaptive_appl_signal")){W={};l=Gp6();l=l.length>0?l[0]:void 0;var f,r=(f=_.f0("rses_dpj"))!=null?f:l==null?void 0:l.tick.rses_dpj,
R;f=(R=_.f0("rsef_dpj"))!=null?R:l==null?void 0:l.tick.rsef_dpj;r&&Number(r)>0&&f&&Number(f)>0&&(R=Math.ceil(Number(f)-Number(r)),R>0&&(W.loadLatency=R));W.loadLatency&&w_J(W.loadLatency)&&(V.appL=W.loadLatency.toString())}_.XC("applicationStarted",V)}},xH4);var q5c=new _.vd("WINDOW_ON_ERROR"),h4L=new _.vd("ERROR_WEIGHT_MAPS"),S5Z=new _.vd("INIT_ERROR");var EZL={},$H2=(EZL.initialized={priority:10,callback:function(W){W.injector.resolve(S5Z)()}},EZL);var W7Y=function(){},laN=function(){var W=_.Y2("meta_logger_impl");
W||(W=new W7Y,_.fR("meta_logger_impl",W));return W},Ve5=function(){laN().csiSubscriptionKey=pVJ("meta_logging_csi_event",function(W){var l=W.timerName;
if(W=W.timelineData){_.$u(l,{startTime:W.startTime},l);W.infos&&_.Sy(W.infos,l);for(var V=_.L(Object.keys(W.ticks)),f=V.next();!f.done;f=V.next())f=f.value,_.Wy(f,W.ticks[f],l)}})};
W7Y.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&Ir6(this.csiSubscriptionKey)};var fa1={},rOw=(fa1.initialized={priority:10,callback:function(){Ve5()}},fa1);var Ry1=function(W,l){this.innertubeClientName=W;this.JSC$18289_prefCookie=l};
Ry1.prototype.record=function(){if(_.U("web_li_record_binary_eval_tick")){var W=_.f0("rsef_dpj");var l=_.f0("rses_dpj");W=W!==void 0&&l!==void 0?Math.round(W-l):void 0;if(W!==void 0&&W>0){l=_.YC(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var V=this.poolSize;if(!(l.valuesSeen>=1E9)){if(l.valuesSample.length<V)l.valuesSample.push(W);else{var f=Math.floor(Math.random()*(l.valuesSeen+1));f<V&&(l.valuesSample[f]=W)}l.valuesSeen+=1}_.N5(this.storagePrefix+"-"+this.innertubeClientName,
l,2592E3);W=l.valuesSample;l=ADY(W);W=W.length<this.poolSize?void 0:l<400?1:l<1700?2:3;W!==void 0&&(this.JSC$18289_prefCookie.set(this.cookiePrefix+this.innertubeClientName,W),this.JSC$18289_prefCookie.save())}}else _.xC(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18289_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18289_prefCookie.save()};
Ry1[k$]=[PK,z5];var tee=function(){Ry1.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.v(tee,Ry1);var svZ=new _.vd("PAGE_LOAD_TIME_TOKEN");var L71=function(W){this.signal=W;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;W.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.pS(_.w8,this.disableLoggingAndSendPayload,1E4)};
L71.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.w8.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),yOe(this))};
var yOe=function(W){var l=_.$G();if(l){var V={webClientComponentsData:{components:Array.from(W.ids,function(f){return{id:f}})}};
W.ids.clear();_.Qq().visualElementStateChanged(l,V)}};var gk4=$YU({a11y:nFk});_.P75=lKS(gk4)(gk4.a11y,{ephemeralActionSelector:function(W){return W.ephemeralAction||null}});var nk7=$YU({continuation:cTc});var C74=lKS(nk7)(nk7.continuation,{continuationCommandSelector:function(W){return W.continuationCommand}});var cO5=new _.vd("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var ze=function(W,l){this.JSC$18318_storeWithEntities=W;this.JSC$18318_commandHandler=l;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
ze.prototype.start=function(){this.JSC$18318_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
ze.prototype.observeDownloadingEntities=function(){var W=_.OES(this.JSC$18318_storeWithEntities.getState().entities).map(function(f){return akS(f)});
if(W.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var l={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:MIF()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Hy(_.wg("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18318_commandHandler.resolveCommand(l)}this.downloadingEntities=W}else if(this.downloadingEntities.length){var V=ZE4(this.JSC$18318_storeWithEntities.getState().entities).map(function(f){return akS(f)});
this.downloadingEntities.filter(function(f){return V.includes(f)}).length&&(W={openPopupAction:uDF()},this.JSC$18318_commandHandler.resolveCommand(W));
this.downloadingEntities=[]}};
ze[k$]=[dl,_.s6];var BaH;_.NZ=function(W,l,V,f,r,R,y,P){this.JSC$18321_playerApiPromise=W;this.JSC$18321_commandHandler=l;this.JSC$18321_screenManager=V;this.offlineWebClientEligibility=f;this.JSC$18321_prefStorage=r;this.JSC$18321_actionRouter=R;this.entityTypeMap=y;this.JSC$18321_persistentStorePromiseAccessor=P;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
BaH=function(){var W=_.tY().resolve(_.NZ),l;_.g(function(V){if(V.nextAddress==1)return W.downloadFailureListenerBound?V.return():V.yield(W.JSC$18321_playerApiPromise,2);l=V.yieldResult;l.addEventListener("onOfflineOperationFailure",function(f){if(f.failureReason&&f.entityKey&&f.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(f.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var r=_.p0(f.entityKey).entityId;r&&W.JSC$18321_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
r)}else if(_.U("kevlar_woffle")){r=W.JSC$18321_commandHandler;var R=r.resolveCommand;f=f.failureReason;var y=_.wg("TRANSFER_FAILED",void 0,"Download failed");f==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(y=_.wg("STORAGE_FULL",void 0,"Storage full"));R.call(r,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Hy(y),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
W.downloadFailureListenerBound=!0;_.ju(V)})};
_.NZ.prototype.deleteVideo=function(W,l){var V=this,f,r,R;return _.g(function(y){if(y.nextAddress==1)return y.yield(V.JSC$18321_playerApiPromise,2);f=y.yieldResult;R={offlineLoggingData:{offlineDeleteReason:(r=l)!=null?r:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return y.yield(f.queueOfflineAction(W,V.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",R),0)})};
_.NZ.prototype.pauseVideoDownload=function(W){var l=this,V;return _.g(function(f){if(f.nextAddress==1)return f.yield(l.JSC$18321_playerApiPromise,2);V=f.yieldResult;V.pauseVideoDownload(W);_.ju(f)})};
_.NZ.prototype.resumeVideoDownload=function(W){var l=this,V;return _.g(function(f){if(f.nextAddress==1)return f.yield(l.JSC$18321_playerApiPromise,2);V=f.yieldResult;return f.yield(V.resumeVideoDownload(W),0)})};
_.NZ[k$]=[_.vp,_.s6,_.yM,cO5,e0,jb,yTc,e7];var dIs=new _.vd("DOWNLOAD_STATE_STORE_TOKEN");var JO5=function(W,l){this.JSC$18341_persistentStorePromiseAccessor=W;this.store=l;this.upliftCompletionResolver=new _.mg},uX1=function(){var W=_.tY().resolve(DIc),l;
_.g(function(V){switch(V.nextAddress){case 1:if(W.upliftImplPromise)return V.return(W.upliftImplPromise);_.HG(V,2);W.upliftImplPromise=UIe(W);return V.yield(W.upliftImplPromise,4);case 4:W.upliftCompletionResolver.resolve();_.qL(V,3);break;case 2:throw l=_.pc(V),W.upliftCompletionResolver.reject(l),l;case 3:return V.return(W.upliftImplPromise)}})},UIe=function(W){var l,V,f;
return _.g(function(r){switch(r.nextAddress){case 1:return _.ZL("LOGGED_IN")?r.yield(W.JSC$18341_persistentStorePromiseAccessor(),2):r.return();case 2:l=r.yieldResult;if(!l)return _.Wy("vdeur"),r.return();_.Wy("vdeus");_.HG(r,3);return r.yield(kI2(l),5);case 5:V=r.yieldResult;W.store.dispatch(GPJ(V));l.observe(function(R){bE4(W.store,R)});
_.qL(r,4);break;case 3:throw f=_.pc(r),_.Wy("vdeur"),f;case 4:_.Wy("vdeuc"),_.ju(r)}})},kI2=function(W){var l;
return _.g(function(V){if(V.nextAddress==1)return V.yield(zvz(W),2);l=V.yieldResult;return V.return(l.reduce(function(f,r){if(!r.data||!r.key||!r.entityType)return f;f[r.entityType]||(f[r.entityType]={});f[r.entityType][r.key]=r.data;return f},{}))})};
JO5[k$]=[e7,_.Jp];var DIc;DIc=new _.vd("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.YX=new _.vd("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var xX=function(W,l){this.JSC$18344_persistentStorePromiseAccessor=W;this.transportService=l};
xX.prototype.refresh=function(){var W=this,l,V,f,r;return _.g(function(R){if(R.nextAddress==1)return _.ZL("LOGGED_IN")?R.yield(W.JSC$18344_persistentStorePromiseAccessor(),2):R.return();if(R.nextAddress!=3)return(l=R.yieldResult)?R.yield(G9z(l),3):R.return();if((V=R.yieldResult)&&!(Number(V.data.refreshTimestampMs||0)<(0,_.tv)()))return R.return();f={browseId:"SPaccount_downloads"};r=_.Um(tm);_.B3(W.transportService,f,r).then(function(y){var P;if(l&&(y==null?void 0:(P=y.responseContext)==null?void 0:
P.maxAgeSeconds)!==0){var n;P=(y==null?void 0:(n=y.responseContext)==null?void 0:n.maxAgeSeconds)||604800;n=String(Math.floor((0,_.tv)())+P*1E3);l.put("service:downloads_settings:fallback",new _.Nz({innertubeResponse:y,refreshTimestampMs:n}))}});
_.ju(R)})};
xX[k$]=[_.wh,_.Vb];var ed=function(W,l){this.JSC$18348_playerPromise=W;this.store=l;this.started=!1};
ed.prototype.start=function(){var W=this,l;return _.g(function(V){if(V.nextAddress==1)return W.started?V.return():V.yield(W.JSC$18348_playerPromise,2);l=V.yieldResult;l.addEventListener("onOrchestrationBecameLeader",W.updateIsLeader.bind(W,!0));l.addEventListener("onOrchestrationLostLeader",W.updateIsLeader.bind(W,!1));if(l.isOrchestrationLeader)W.updateIsLeader(l.isOrchestrationLeader());else{var f=new _.bP("Function isOrchestrationLeader is undefined",{"player.isReady":l.isReady(),"player.playVideo":l.playVideo?
"defined":"undefined"});_.wv(f);W.updateIsLeader(!1)}W.started=!0;_.ju(V)})};
ed.prototype.updateIsLeader=function(W){this.store.dispatch(_.GT({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:W}}))};
ed[k$]=[_.vp,_.Jp];var vk5=function(W,l){this.networkStatusManager=W;this.JSC$18351_prefStoragePromise=l;this.redirectsToPreload=["https://youtube.com"]},HM2=function(){var W=_.tY().resolve(vk5),l,V,f,r,R,y;
_.g(function(P){switch(P.nextAddress){case 1:return P.yield(W.JSC$18351_prefStoragePromise,2);case 2:l=P.yieldResult;if(!(V=l)){P.jumpTo(3);break}return P.yield(l.get("yt-redirect-prefetch-id"),4);case 4:V=P.yieldResult;case 3:if(V||!W.networkStatusManager.isNetworkAvailable())return P.return();f={cache:"reload",redirect:"manual"};r=_.L(W.redirectsToPreload);R=r.next();case 5:if(R.done){if(!l){P.jumpTo(0);break}return P.yield(l.set("yt-redirect-prefetch-id",!0,86400),0)}y=R.value;_.HG(P,8);return P.yield(_.rS.fetch(y,
f),10);case 10:_.qL(P,6);break;case 8:_.pc(P);case 6:R=r.next(),P.jumpTo(5)}})};var qZ=function(W){W?(this.container=W,this.containerWasInjected=!0):this.containerWasInjected=!1};
qZ.prototype.openDialog=function(W,l,V){var f=this,r;return _.g(function(R){(r=f.container)==null||r.openDialog(W,l,V);_.ju(R)})};
qZ.prototype.closeDialog=function(){var W=this,l;return _.g(function(V){(l=W.container)==null||l.closeDialog();_.ju(V)})};
qZ.prototype.isDialogOpen=function(){var W=this,l,V;return _.g(function(f){return f.return((V=(l=W.container)==null?void 0:l.isDialogOpen())!=null?V:!1)})};
qZ[k$]=[_.R0(etc)];_.K7H=new _.vd("POPUP_CONTROLLER_TOKEN");var F7H=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
F7H.prototype.registerPanel=function(W,l){if(W){this.panelMap.set(W,l);var V=this.pendingPanelResolvers.get(W);V&&(V.resolve(l),this.pendingPanelResolvers.delete(W))}};
F7H.prototype.getPanel=function(W){var l=this,V;return _.g(function(f){return(V=l.panelMap.get(W))?f.return(V):f.return(GIw(l,W))})};
var GIw=function(W,l){var V,f;return _.g(function(r){if(V=W.pendingPanelResolvers.get(l))return r.return(V.promise);f=new _.mg;W.pendingPanelResolvers.set(l,f);return r.return(f.promise)})},bM7=function(W){F7H.call(this);
var l=this;this.popupController=W;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return l.panelMap.size}}};
_.v(bM7,F7H);_.t=bM7.prototype;_.t.getReloadContinuation=function(W){var l=this,V;return _.g(function(f){if(f.nextAddress==1)return f.yield(l.getPanel(W),2);V=f.yieldResult;return f.return(V.getReloadContinuation())})};
_.t.showPanel=function(W,l,V,f,r,R,y){var P=this,n,B,d,J;return _.g(function(D){if(D.nextAddress==1){y&&P.updatePanelContinuationDatas.set(W,y);if((n=V)==null?0:(B=n.engagementPanelPopupPresentationConfig)==null?0:B.popupType){d=V.engagementPanelPopupPresentationConfig.popupType;r===void 0&&(r=document.body);var u=D.return,H=P.popupController,p=H.openPopup;a:switch(d){case "PANEL_POPUP_TYPE_DIALOG":var X="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":X="DROPDOWN";break a;default:throw Error("kj`"+
d);}return u.call(D,p.call(H,W,l,X,r))}return D.yield(P.getPanel(W),2)}J=D.yieldResult;(l||R)&&J.updatePanel(l,!1,f,R);J.showPanel(f);_.ju(D)})};
_.t.hidePanel=function(W){var l=this,V;return _.g(function(f){if(f.nextAddress==1)return f.yield(l.getPanel(W),2);V=f.yieldResult;V.hidePanel();l.popupController.closePopup(W);_.ju(f)})};
_.t.isVisible=function(W,l){var V=this,f;return _.g(function(r){if(r.nextAddress==1)return l&&!V.panelMap.has(W)?r.return(!1):r.yield(V.getPanel(W),2);f=r.yieldResult;return r.return(f.isVisible())})};
_.t.updatePanel=function(W,l,V,f,r,R){V=V===void 0?!1:V;var y=this,P;return _.g(function(n){if(n.nextAddress==1){if(!l&&!r)return n.return();R&&y.updatePanelContinuationDatas.set(W,R);return n.yield(y.getPanel(W),2)}P=n.yieldResult;P.updatePanel(l,V,f,r);_.ju(n)})};
_.t.registerPanelContent=function(W,l){W&&this.panelContentMap.set(W,l)};
_.t.unregisterPanelContent=function(W){this.panelContentMap.delete(W)};
_.t.getPanelContent=function(W){return this.panelContentMap.get(W)};
_.t.getUpdatePanelContinuationData=function(W){return this.updatePanelContinuationDatas.get(W)};
bM7[k$]=[_.K7H];var hb=function(W,l){this.innertubeTransportService=W;this.JSC$18367_screenManager=l},p$Y=function(W){var l;
return!((l=W.panelLoadingStrategy)==null||!l.requestTemplate)};
hb.prototype.makeRequest=function(W){var l=this,V,f;return _.g(function(r){switch(r.nextAddress){case 1:if(!p$Y(l)){r.jumpTo(2);break}_.HG(r,3);return r.yield(_.Lv(l.innertubeTransportService,W),5);case 5:return V=r.yieldResult,V?r.return(V.content):(_.wv(Error("lj")),r.return(void 0));case 3:f=_.pc(r),_.wv(f);case 2:return r.return(void 0)}})};
hb.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
hb.prototype.execute=function(W){var l=this,V,f,r,R,y,P,n,B,d,J;return _.g(function(D){if(D.nextAddress==1){V=W;f=V.data;r=V.fallbackVe;R=V.parentVe;y=V.createScreenConfig;P=V.renderFn;n=V.command;l.panelLoadingStrategy=f;var u,H,p=((u=l.panelLoadingStrategy)==null?0:u.screenVe)?(H=l.panelLoadingStrategy)==null?void 0:H.screenVe:r;p&&_.Ob(l.JSC$18367_screenManager,p,R,y);return(B=l.getContent())?D.yield(P(B),2):D.jumpTo(2)}return D.nextAddress!=4?p$Y(l)?D.yield(l.makeRequest(n),4):D.return():(J=d=
D.yieldResult)?D.yield(P(J),0):D.return()})};
hb[k$]=[_.Vb,_.yM];var Sd=function(){};
Sd.prototype.getContainer=function(){return _.ku()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Sd.prototype.openSheet=function(W,l){var V=this,f,r,R,y,P,n;return _.g(function(B){switch(B.nextAddress){case 1:return f={stack:[],error:void 0,hasError:!1},_.HG(B,2,3),r=r9,B.yield(V.isSheetOpen(),5);case 5:R=B.yieldResult;FvF(f,bRz(r));if(R){if(_.U("web_close_sheet_if_same_target_killswitch")&&l&&V.currentTarget===l)return(y=V.getContainer())==null||y.closeSheet(),B.return();V.pendingData={data:W,target:ieH(V,l)};return B.return()}W.viewModel&&(W={viewModel:W.viewModel});(P=V.getContainer())==null||
P.openSheet(W,l);V.currentTarget=l;case 3:_.Ff(B);GAj(f);_.bM(B,0);break;case 2:n=_.pc(B),f.error=n,f.hasError=!0,B.jumpTo(3)}})};
Sd.prototype.closeSheet=function(){var W=this,l;return _.g(function(V){if(V.nextAddress==1)return V.yield((l=W.getContainer())==null?void 0:l.closeSheet(),2);if(V.nextAddress!=4)return W.currentTarget=void 0,W.pendingData?V.yield(W.openSheet(W.pendingData.data,W.pendingData.target),4):V.jumpTo(0);W.pendingData=void 0;_.ju(V)})};
Sd.prototype.isSheetOpen=function(){var W=this,l,V;return _.g(function(f){return f.return((V=(l=W.getContainer())==null?void 0:l.isSheetOpen())!=null?V:!1)})};
var ieH=function(W,l){if(!_.U("web_parent_target_for_sheets"))return l;var V,f;return(f=(V=W.getContainer())==null?void 0:V.getParentTarget(l))!=null?f:l};var Jm=window.documentPictureInPicture;var VAj=_.tj(["dark"]),f6n=_.tj(["system-icons"]),rEj=_.tj(["typography"]),RYz=_.tj(["lang"]),tAY=_.tj(["style"]),ETU=_.tj(["dir"]),$hn=_.tj(["rounded-container"]),Wdx=_.tj(["style"]),LdF=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],EF=function(W){this.JSC$18379_clientRoot=W;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
EF.prototype.openWindow=function(W){var l=this,V,f;return _.g(function(r){if(r.nextAddress==1)return window.documentPictureInPicture&&_.jv()&&!l.currentPipWindow?r.yield((V=Jm?Jm:null)==null?void 0:V.requestWindow(W),2):r.return(!1);if(r.nextAddress!=3){f=r.yieldResult;if(!f)return r.return(!1);f.addEventListener("pagehide",function(){okZ(l)});
f.addEventListener("resize",l.handlePipWindowResize);l.pipWindowResizeDelay=new _.sC(function(){l.currentPipWindow&&_.Gt(l.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.p5(l.currentPipWindow.innerWidth,l.currentPipWindow.innerHeight)])},f);
sGx(f);gy4(f);return r.yield(Soj(f),3)}if(!evq())return r.return(!1);l.currentPipWindow=f;l.JSC$18379_eventForwarder=yEz(f,l.JSC$18379_clientRoot);l.pipWindowResizeDelay.start();return r.return(!0)})};
EF.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var okZ=function(W){if(W.currentPipWindow){var l,V;(l=Jm?Jm:null)==null||(V=l.window)==null||V.close();W.currentPipWindow.removeEventListener("resize",W.handlePipWindowResize);var f;(f=W.pipWindowResizeDelay)==null||f.dispose();W.pipWindowResizeDelay=void 0;var r;(r=W.JSC$18379_eventForwarder)==null||r.stop();W.JSC$18379_eventForwarder=void 0;l=_.L(W.onCloseCallbacks);for(V=l.next();!V.done;V=l.next())V=V.value,V();W.onCloseCallbacks=[];W.currentPipWindow=null}};
EF.prototype.getWindow=function(){return this.currentPipWindow};
var jv4=function(W,l){var V;(V=W.onCloseCallbacks)==null||V.push(l)};
EF.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.jv()};
_.rc.Object.defineProperties(EF.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
EF[k$]=[CQX];var IaZ=new _.vd("PICTURE_IN_PICTURE_CONTROLLER");var PuY=function(W,l){this.lengthY=this.lengthX=0;this.lengthX=l.x-W.x;this.lengthY=l.y-W.y};var iMs=function(){},zIH=function(W,l){var V;
(V=W.headerElement)==null||V.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:l}))};var mI1=function(){};
mI1.prototype.openPopup=function(W,l,V,f){var r=this,R;return _.g(function(y){if(!r.container)return y.return();R={openPopupAction:{popup:l,popupType:V,uniqueId:W}};return y.return(r.container.handleOpenPopupAction(R,f))})};
mI1.prototype.closePopup=function(W){this.container&&this.container.closePopup(W)};var X$Z=function(){this.openTunnels=new Map},JF8=function(W,l,V){if(JE6(V)){var f=_.qs(V,"gclid");
V={handleEvent:function(P){l&&!l.closed&&typeof l.postMessage==="function"&&P&&P.origin&&P.source===l&&P.data&&P.data.action==="gcl_setup"&&l.postMessage(Object.assign({},{action:"gcl_transfer"},f&&{gclid:f},{gadSource:2}),P.origin)}};
for(var r=_.L(W.openTunnels),R=r.next();!R.done;R=r.next()){var y=_.L(R.value);R=y.next().value;y=y.next().value;if(R.closed)try{window.removeEventListener("message",y),W.openTunnels.delete(R)}catch(P){_.wv(P)}}l&&W.openTunnels.size<15&&(W.openTunnels.set(l,V),window.addEventListener("message",V))}};var Tas=function(){this.clientParams=new Map},Xuv=function(W){for(var l=_.L(W.clientParams.keys()),V=l.next();!V.done;V=l.next())V=V.value,V.startsWith("yt-mini-app-share")&&W.clientParams.delete(V)};var AO4=function(W){_.iI.call(this);this.JSC$18401_shortsController=W;w$1(this);this.addOnDisposeCallback(this.removeAudioTrackEventListener.bind(this))};
_.v(AO4,_.iI);var w$1=function(W){var l,V;(l=W.JSC$18401_shortsController)==null||(V=l.playerApi)==null||V.then(function(f){f&&(f.addEventListener("onPlaybackAudioChange",function(){Qv1(W,f)}),Qv1(W,f))})};
AO4.prototype.removeAudioTrackEventListener=function(){var W=this,l,V;(l=this.JSC$18401_shortsController)==null||(V=l.playerApi)==null||V.then(function(f){f&&f.removeEventListener("onPlaybackAudioChange",function(){Qv1(W,f)})})};
var Qv1=function(W,l){l=(l==null?void 0:l.getAvailableAudioTracks().length)>1&&(l==null?void 0:l.getAudioTrack())||void 0;if((W=W.JSC$18401_shortsController)!=null){var V=_.i_("/youtube/app/player_audio_track_entity_key","stringEntity",2);if(l){var f,r=(f=_.wH(_.l$,V)())==null?void 0:f.value;f=l.getLanguageInfo().getName();r!==f&&W.store.dispatch(_.MB("stringEntity",V,{key:V,value:f.toString()}))}else W.store.dispatch(_.MB("stringEntity",V,{key:V,value:"ALTERNATE_AUDIO_TRACK_UNAVAILABLE"}))}};var ZML=function(W){_.iI.call(this);this.JSC$18404_shortsController=W;MeY(this);this.addOnDisposeCallback(this.removeCaptionTrackEventListener.bind(this))};
_.v(ZML,_.iI);var MeY=function(W){W.JSC$18404_shortsController.playerApi.then(function(l){l&&(l.addEventListener("captionschanged",function(){OML(W,l)}),OML(W,l))})};
ZML.prototype.removeCaptionTrackEventListener=function(){var W=this;this.JSC$18404_shortsController.playerApi.then(function(l){l&&l.removeEventListener("captionschanged",function(){OML(W,l)})})};
var OML=function(W,l){l=l==null?void 0:l.getOption("captions","track");W=W.JSC$18404_shortsController;var V=_.i_("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(l){var f,r=(f=_.wH(_.l$,V)())==null?void 0:f.value,R;f=typeof(l==null?void 0:l.translationLanguage)==="object"&&((R=l.translationLanguage)==null?void 0:R.languageName)||l.displayName||"";r!==f&&W.store.dispatch(_.MB("stringEntity",V,{key:V,value:f.toString()}))}else W.store.dispatch(_.MB("stringEntity",V,{key:V,value:"CAPTIONS_UNAVAILABLE"}))};var aas=function(W,l){_.iI.call(this);var V=this;this.JSC$18407_shortsController=W;this.storeWithShorts=l;W=_.Eb(this.storeWithShorts,_.Qeg,function(f){if(f){var r,R=(r=V.JSC$18407_shortsController.getRoot())==null?void 0:r.getPlayer(),y;(r=(y=V.JSC$18407_shortsController.alternativePlayerContainerElement)==null?void 0:y.getPlayerContainer())&&(R==null||R.appendTo(r))}else{var P;y=(P=V.JSC$18407_shortsController.alternativePlayerContainerElement)==null?void 0:P.getPlayerContainer().querySelector("#player");
r=V.JSC$18407_shortsController.activeIndex;(P=(R=V.JSC$18407_shortsController.getRoot())==null?void 0:R.querySelector('ytd-reel-video-renderer[id="'+r+'"] #player-container'))&&(y==null||y.appendTo(P,void 0,!0))}});
this.addOnDisposeCallback(W)};
_.v(aas,_.iI);var $X=function(W,l,V,f,r){var R=this;this.storeWithShorts=W;this.ephemeralResponseStore=l;this.store=V;this.innertubeTransportService=f;this.innertubeTransportLoader=r;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.$h(_.uE);this.isShortsPipActive=_.$h(_.k1);this.nextReelVe=_.GY(56921);this.prevReelVe=_.GY(56922);this.backButtonVe=_.GY(22156);this.TEST_ONLY={getActiveModules:function(){return R.activeModules}}},zyc=function(W){W.unsubscribeFromStore=
_.Eb(W.storeWithShorts,_.Aoq,function(l){W.initOrDisposeActiveModules(l);
!l&&W.storeWithShorts.getState().shorts.isFullscreen&&(_.vh(document.documentElement),W.storeWithShorts.dispatch(_.BDv(!1)))});
W.initOrDisposeActiveModules(_.Aoq(W.storeWithShorts.getState()))},dx1,JhL,Na1;
$X.prototype.initOrDisposeActiveModules=function(W){W?this.activeModules.push.apply(this.activeModules,[new aas(this,this.storeWithShorts)].concat(_.QK(_.U("web_shorts_audio_track_picker")?[new AO4(this)]:[]),_.QK(_.U("enable_web_shorts_captions_language_command")?[new ZML(this)]:[]))):(_.y7(this.activeModules),this.activeModules.length=0)};
$X.prototype.registerRootElement=function(W){this.rootElement=W;zyc(this)};
$X.prototype.getRoot=function(){return this.rootElement};
$X.prototype.setActiveIndex=function(W){this.activeIndex=W};
_.gUL=function(W,l){var V,f,r,R,y,P,n;return _.g(function(B){switch(B.nextAddress){case 1:return V=new tb,(f=V.JSC$13127_getStoreKey(l))&&W.ephemeralResponseStore.has(f)?B.yield(W.ephemeralResponseStore.get(f),7):B.yield(Na1(W,l),4);case 4:r=B.yieldResult;if(!f){B.jumpTo(3);break}R=Kv(r,3600);return B.yield(W.ephemeralResponseStore.put(f,new _.Nz(R)),3);case 7:r=(y=B.yieldResult)==null?void 0:_.c0(y);case 3:return((P=r)==null?0:P.replacementEndpoint)&&(n=_.k(r.replacementEndpoint,_.N$))&&r.sequenceContinuation&&
(n.sequenceParams=r.sequenceContinuation),B.return(r)}})};
dx1=function(W,l){l=(new sF).JSC$13127_getStoreKey(l);return!!l&&W.ephemeralResponseStore.has(l)};
JhL=function(W,l,V){var f,r,R,y,P;_.g(function(n){if(n.nextAddress==1){f=new sF;r=f.JSC$13127_getStoreKey(l);if(!r)return n.return();if(V.reelWatchSequenceResponse)return R=Kv(V.reelWatchSequenceResponse,3600),W.ephemeralResponseStore.put(r,new _.Nz(R)),n.jumpTo(0);if(!W.ephemeralResponseStore.has(r))return n.jumpTo(0);P=V;return n.yield(W.ephemeralResponseStore.get(r),4)}P.reelWatchSequenceResponse=(y=n.yieldResult)==null?void 0:_.c0(y);_.ju(n)})};
Na1=function(W,l){var V=V===void 0?{}:V;var f,r,R;return _.g(function(y){switch(y.nextAddress){case 1:if(W.innertubeTransportService){f=W.innertubeTransportService;y.jumpTo(2);break}if(!W.innertubeTransportLoader){_.OJ(Error("nj"));y.jumpTo(2);break}return y.yield(W.innertubeTransportLoader(),4);case 4:f=y.yieldResult;case 2:return y.yield((r=f)==null?void 0:_.Lv(r,l,V),5);case 5:return R=y.yieldResult,y.return(R)}})};
_.rc.Object.defineProperties($X.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
$X[k$]=[l91,_.zJ,dl,_.R0(_.Vb),_.R0(hgk)];_.YP4=new _.vd("STORAGE_MANAGER_TOKEN");var bTz=["touchmove","scroll"];var xIe=!1;var pvg={onSpanEnd:function(W){W.parentId==null&&(xIe||(kHS(),setInterval(kHS,6E5),xIe=!0),vyJ(W,"web_tracing_action"))}};var eyL=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},qPH;
eyL.prototype.enqueue=function(W,l){l===1?this.currentPersistentToast=W:this.queue.push(W);this.openToast()};
eyL.prototype.openToast=function(){var W;(W=this.currentToast)!=null&&W.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.WN=new _.vd("TOAST_MANAGER_TOKEN");var hy1=new _.vd("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var SP4=new _.vd("VIEW_TRANSITION_COORDINATOR_TOKEN");var Ek2=function(W){this.config=W;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;W=_.L(W.transitionConfigs);for(var l=W.next();!l.done;l=W.next())l=_.L(l.value).next().value,this.transitionTasksMap.set(l,[])};
Ek2.prototype.registerElement=function(W,l,V){V=V===void 0?!1:V;for(var f=_.L(Object.keys(l)),r=f.next(),R={};!r.done;R={viewTransitionName:void 0},r=f.next()){r=r.value;R.viewTransitionName=l[r];var y=this.elementTasksMap.get(W),P=void 0;if((P=y)==null?0:P.has(r)){_.Ar(new _.bP("Element already registered for transition",W.tagName,r));break}y=y||new Map;y.set(r,{beforeTransition:function(n){return function(){W.style.viewTransitionName=n.viewTransitionName}}(R),
afterTransition:function(){W.style.viewTransitionName&&(W.style.viewTransitionName="")},
runOnce:V});this.elementTasksMap.set(W,y)}};
_.lE=function(W,l){var V=W.elementTasksMap.get(l);V&&(V.clear(),V.size===0&&W.elementTasksMap.delete(l))};
Ek2[k$]=[hy1];var $I4;_.WQc=_.Q(function(W){return _.C("basic-content-view-model",{class:_.If("ytBasicContentViewModelHost",_.JG(W.className))},_.C(_.c,{cond:function(){return W.data().headline},
then:function(l){return _.C("div",{class:"ytBasicContentViewModelHeadline"},_.C(_.bH,{text:l}))}}),_.C(_.G3,{each:function(){return W.data().paragraphs||[]},
keyBy:"INDEX"},function(l){return _.C("div",{class:"ytBasicContentViewModelParagraph"},_.C(_.c,{cond:function(){var V=l();return!!(V.header||V.customHeader||V.headline)},
then:function(){return _.C($I4,{paragraph:l})}}),_.C(_.c,{cond:function(){return l().asset||l().text},
then:function(){return _.C("div",{class:"ytBasicContentViewModelParagraphContent"},_.C(_.c,{cond:function(){return l().asset},
then:function(V){return _.C("div",{class:"ytBasicContentViewModelParagraphAsset"},_.C(_.QH,{data:V},{contentPreviewImageViewModel:_.wn}))}}),_.C(_.c,{cond:function(){return l().text},
then:function(V){return _.C("div",{class:"ytBasicContentViewModelParagraphText"},_.C(_.bH,{text:V}))}}))}}))}))},"Qe");
$I4=_.Q(function(W){var l=W.paragraph;return _.C(_.Lp,null,_.C(_.c,{cond:function(){return l().headline},
then:function(V){return _.C(_.bH,{text:V,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.C(_.QH,{data:function(){return l().header||l().customHeader}},{sectionHeaderViewModel:function(V){return _.C(_.Yx,{data:V.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Re");var Vu1=_.Q(function(W){var l=_.WS("yt-expandable-metadata-header-view-model"),V=_.ip(function(f){if(!_.eJ(_.xw(f),l.value,["A".toString(),"BUTTON".toString()])){var r;(r=W.expandedCallback)==null||r.call(W,!1)}});
return _.C("yt-expandable-metadata-header-view-model",{el:l,class:"ytExpandableMetadataHeaderViewModelHost"},_.C(_.c,{cond:function(){return W.expanded()},
then:function(){return _.C("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":V},_.C("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.C(_.c,{cond:function(){return W.data().expandedTitleImage},
then:function(f){return _.C("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.C(_.dN,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:f}))}}),_.C("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.C("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.C(_.bH,{text:function(){return W.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.C(_.bH,{text:function(){return W.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.C(_.bH,{text:function(){return W.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.C("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.C(_.QH,{data:function(){return W.data().infoButton}},{buttonViewModel:_.Nq}),_.C(_.QH,{data:function(){return W.data().collapseButton}},{buttonViewModel:function(f){return _.C(_.Nq,{data:f.data,
onClick:function(){var r;(r=W.expandedCallback)==null||r.call(W,!1)}})}})))},
else:function(){return _.C(l77,Object.assign({},W))}}))},"Se"),f7s=_.Q(function(W){return _.C("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.C(_.c,{cond:function(){return W.data().collapsedLabelImage},
then:function(l){return _.C("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.C(_.dN,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:l,alt:""}))}}),_.C(_.bH,{text:function(){return W.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Te"),l77=_.Q(function(W){return _.C("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.ip(function(){var l;return void((l=W.expandedCallback)==null?void 0:l.call(W,!0))})},_.C("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.C(_.c,{cond:function(){return W.data().collapsedImage},
then:function(l){return _.C("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.C(_.dN,{height:20,preserveHeight:!0,preserveWidth:!0,data:l,alt:""}))}}),_.C(_.c,{cond:function(){return W.data().showLeadingCollapsedLabel},
then:function(){return _.C(f7s,Object.assign({},W))}}),_.C("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.C(_.bH,{text:function(){return W.data().collapsedTitle}}))),_.C("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.C(_.c,{cond:function(){return!W.data().showLeadingCollapsedLabel},
then:function(){return _.C(f7s,Object.assign({},W))}}),_.C(_.QH,{data:function(){return W.data().infoButton}},{buttonViewModel:_.Nq}),_.C(_.QH,{data:function(){return W.data().expandButton}},{buttonViewModel:function(l){return _.C(_.Nq,{data:l.data,
onClick:function(){var V;(V=W.expandedCallback)==null||V.call(W,!0)}})}})))},"Ue");_.rL5=_.Q(function(W){var l=_.L(_.X3(function(){return W.data().initiallyExpanded})),V=l.next().value,f=l.next().value,r,R=(r=_.tY().resolve(_.R0(_.nP)))==null?void 0:r(),y=function(){var P=W.data().colorData;
if(P)return R?P==null?void 0:P.darkColorPalette:P==null?void 0:P.lightColorPalette};
return _.C("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Tm({"background-color":function(){var P=y();return(P==null?0:P.section2Color)?_.sD(P.section2Color):""}})},_.C(_.QH,{data:function(){return W.data().header}},{expandableMetadataHeaderViewModel:function(P){return _.C(Vu1,{data:P.data,
expanded:function(){return!!V()},
expandedCallback:function(n){f(n)}})}}),_.C(_.c,{cond:function(){return V()},
then:function(){return _.C("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.C(_.QH,{data:function(){return W.data().expandedContent}},{horizontalShelfViewModel:function(P){return _.C(_.DF,{data:P.data,
includeMargin:!0,forceNarrowLayout:!0,palette:y})},
videoSummaryContentViewModel:function(P){return _.C(Nje,{data:P.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(P){return _.C(_.au,{data:P.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(P){return _.C(_.WQc,{data:P.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.C(_.QH,{data:function(){return W.data().expandedBottomButtons}},{buttonViewModel:function(P){return _.C("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.C(_.Nq,{data:P.data}))}}))}}))},"Ve");var R6s=_.Q(function(W){var l=W.text;var V=W.marqueeSpacing;var f=W.scrollDelay;var r=W.scrollDuration;var R=W.enableMarqueeScroll;W=W.large;var y=_.L(_.J4(!1,void 0,"WyNYFf")),P=y.next().value,n=y.next().value,B=_.L(_.J4(0,void 0,"OoTdhe"));y=B.next().value;var d=B.next().value,J=_.WS("marquee-scroll");B=_.WS("div");var D=_.WS("span"),u=_.tY().resolve(_.cI);_.m1(function(){if(R()){var X=D.value.getBoundingClientRect().width,w=J.value.getBoundingClientRect().width;if(X>w){var O=(u==="ltr"?-1:1)*(X+
(V?V():16));Promise.resolve().then(function(){n(!0);d(O)})}}},"dv0Anf");
var H={},p={};return _.C("marquee-scroll",{class:_.If("ytMarqueeScrollHost",(H.ytMarqueeScrollHostLarge=W,H)),el:J},_.C("div",{id:"marquee-scroll-inner-container",class:_.If("ytMarqueeScrollInnerContainer",(p.ytMarqueeScrollAnimationEnabled=function(){return P()},p)),
el:B,style:_.Tm({gap:V?(0,_.nD)(V):"16px","animation-duration":r?a2c(r):"16s","animation-delay":f?a2c(f):"3s","--marquee-translate":(0,_.nD)(y)})},_.C("span",{el:D,dir:"auto"},_.C(_.bH,{text:l,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.C(_.c,{cond:P,then:function(){return _.C("span",{"aria-hidden":"true",dir:"auto"},_.C(_.bH,{text:l,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"We");_.tuc=_.Q(function(W){var l=W.data;var V=W.overlayDensity;W=_.ip(function(){l().onTapCommand&&_.sZ(l().onTapCommand);return!1});
var f=_.Iez(),r=function(){return(V==null?void 0:V())===1?22:16},R={};
return _.C("reel-sound-metadata-view-model",{class:_.If("ytReelSoundMetadataViewModelHost",(R.ytReelSoundMetadataViewModelHostLarge=function(){return(V==null?void 0:V())===1},R)),
"on:click":W,tabindex:0,role:"button","on:keydown":f},_.C("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.C(_.c,{cond:function(){return l().musicIcon},
then:function(y){return _.C(_.dN,{data:y,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:r})}}),_.C("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.C(R6s,{text:function(){return l().soundMetadata},
enableMarqueeScroll:function(){return!!l().enableMarqueeScroll},
large:function(){return(V==null?void 0:V())===1}}))))},"Xe");var sts,LQZ,l3,nd4,cLH,PML,JL5,dFL;sts=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];LQZ=_.yS("wil_icon_max_concurrent_fetches",Infinity);
l3=function(W,l,V){var f=this;this.iconSet=W;this.appDirection=l;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.rS.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.U("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.U("wil_icon_network_first");this.renderWhenIdle=_.U("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.U("wil_icon_load_immediately");this.isPurging=!1;W=function(){f.cacheStorageAvailable&&(f.cacheStorageAsync=_.rS.caches.open("yt-icons").then(function(R){return f.cacheStorageSync=R}).catch(function(){f.cacheStorageAvailable=!1}))};
V=(V==null?void 0:V())||{};V=_.L(Object.entries(V));for(l=V.next();!l.done;l=V.next()){var r=_.L(l.value);l=r.next().value;r=r.next().value;r=k2(r);yLc(r);this.iconCache[l]=r.cloneNode(!0)}this.isPurging=gd2(this);this.isPurging instanceof Promise?this.isPurging.then(W):W()};
_.QVn=function(W,l){var V=W.resolveIcon(l);return V?W.renderingMode===1?PML(W,V,W.renderingMode):(l=W.iconCache[V.url])?(l=l.cloneNode(!0),nd4(W,l),PML(W,V,W.renderingMode,l)):_.CMs(W,V).then(function(f){var r=f?0:1;nd4(W,f);return PML(W,V,r,f)}):(_.Ar(new _.bP("Icon not found",{iconShape:l})),function(){})};
nd4=function(W,l){if(l){W.counter+=1;W="_yt"+W.counter;l=[l].concat(_.QK(l.getElementsByTagName("*")));l=_.L(l);for(var V=l.next();!V.done;V=l.next())if(V=V.value,V.tagName==="style"&&V.textContent)V.textContent=cLH(V.textContent,W,!0);else for(var f=_.L(V.attributes),r=f.next();!r.done;r=f.next()){r=r.value;r.name==="id"&&(r.value+=W);["mask","fill","clip-path"].includes(r.name)&&(r.value=cLH(r.value,W));if(r.name==="style"){var R=V.style;try{R.cssText=cLH(R.cssText,W,!0)}catch(d){var y=void 0,P=
void 0,n=void 0,B=void 0;VD({error:((y=d)==null?void 0:(n=(P=y).toString)==null?void 0:n.call(P))||"",el:V.outerHTML,style:!!R,cssText:(B=R)==null?void 0:B.cssText})}}r.name==="xlink:href"&&(r.value=r.value.replace(/#(.*)/,"#$1"+W))}}};
cLH=function(W,l,V){var f=/url\(["']?#(.*?)["']?\)/;(V===void 0?0:V)&&(f=/url\(["']?#(.*?)["']?\)/g);return W.replace(f,"url(#$1"+l+")")};
PML=function(W,l,V,f){return function(r,R){var y=Object.assign({},{iconColor:"currentcolor",iconWidth:l.size+"px",iconHeight:l.size+"px",iconDisplay:"block"},R);R=_.Gz("DIV");var P=y.iconColor,n=y.iconFilter;y="width: "+y.iconWidth+"; height: "+y.iconHeight+"; display: "+y.iconDisplay+";";n&&(y+=" filter: "+n+";");V===0&&(y+=" fill: "+P+";");V===1&&(n=l.url,y+=" -webkit-mask: url("+n+") no-repeat center / cover; mask: url("+(n+") no-repeat center / cover; background-color: ")+P);l.allowMirroring&&
W.appDirection==="rtl"&&(y+=" transform: scale(-1, 1); transform-origin: center center;");R.setAttribute("style",y);V===0&&f&&R.appendChild(f);r.appendChild(R)}};
_.CMs=function(W,l){var V,f,r;return _.g(function(R){V=function(y){return EP(y)};
f=l.url;if(!BIL(f))throw Error("qj");r=dFL(W,f);return R.return(r.then(function(y){return y.clone().text()}).then(function(y){var P=V(y);
y=l.size;var n=_.Gz("DIV");_.sx(n,P);P=_.bI(n.firstElementChild!==void 0?n.firstElementChild:_.Xev(n.firstChild,!0));y=yLc(P,y);W.iconCache[f]=y.cloneNode(!0);delete W.responsePromises[f];return y}).catch(function(){}))})};
JL5=function(W){var l,V=(l=W.requestAninmationFrameResolver)==null?void 0:l.promise;V||(W.requestAninmationFrameResolver=new _.mg,V=W.requestAninmationFrameResolver.promise,_.rS.requestAnimationFrame(function(){var f;(f=W.requestAninmationFrameResolver)==null||f.resolve();W.requestAninmationFrameResolver=null}));
return V};
dFL=function(W,l){var V,f;return _.g(function(r){if(r.nextAddress==1)return W.waitForAnimationFrame?r.yield(JL5(W),2):r.jumpTo(2);V=W.responsePromises[l];V||(f=function(){var R,y,P;return _.g(function(n){switch(n.nextAddress){case 1:if(!W.cacheStorageAvailable){R=void 0;n.jumpTo(2);break}if(y=W.cacheStorageSync){n.jumpTo(3);break}return n.yield(W.cacheStorageAsync,4);case 4:y=n.yieldResult;case 3:R=y;case 2:return P=R,W.isNetworkFirstStrategy?n.return(W.fetchAndUpdateCache(l,P).catch(W.getCacheStorageResponse.bind(W,
l,P))):n.return(W.getCacheStorageResponse(l,P).catch(W.fetchAndUpdateCache.bind(W,l,P)))}})},V=W.renderWhenIdle?new Promise(function(R,y){_.pS(_.w8,function(){f().then(R).catch(y)},10)}):f(),W.responsePromises[l]=V);
return r.return(V.catch(function(R){delete W.responsePromises[l];VD({error:(R==null?0:R.toString)?R.toString():"",url:l});throw R;}))})};
l3.prototype.fetchAndUpdateCache=function(W,l){var V=this;return _.g(function(f){return f.return(DFs(V,W).then(function(r){UFw(V,W,r,l);return r}))})};
var DFs=function(W,l){var V;return _.g(function(f){if(W.numFetches<LQZ)return W.numFetches+=1,f.return(uf4(W,l).finally(function(){--W.numFetches;if(Object.keys(W.queuedResponseResolvers).length){var r=Object.keys(W.queuedResponseResolvers)[0],R=W.queuedResponseResolvers[r];delete W.queuedResponseResolvers[r];R.resolve(DFs(W,r))}}));
V=new _.mg;W.queuedResponseResolvers[l]=V;return f.return(V.promise)})},uf4=function(W,l,V){V=V===void 0?2:V;
var f;return _.g(function(r){f={credentials:"same-origin",priority:"low"};return r.return(_.rS.fetch(l,f).then(function(R){return R.ok?R:Promise.reject(Error("rj`"+R.status+"`"+R.statusText))}).catch(function(R){if(V>0)return uf4(W,l,V-1);
throw R;}))})},UFw=function(W,l,V,f){_.g(function(r){return f?r.return(new Promise(function(R){_.pS(_.w8,function(){var y,P;
return _.g(function(n){switch(n.nextAddress){case 1:if(!W.isNetworkFirstStrategy){y=void 0;n.jumpTo(2);break}return n.yield(f.match(l).catch(function(){}),3);
case 3:y=n.yieldResult;case 2:if(P=y){n.jumpTo(4);break}return n.yield(f.put(l,V.clone()).catch(function(B){VD({error:(B==null?0:B.toString)?B.toString():"",url:l})}),4);
case 4:R(),_.ju(n)}})},50)})):r.return()})};
l3.prototype.getCacheStorageResponse=function(W,l){return _.g(function(V){return l?V.return(l.match(W).then(function(f){return f&&f.ok?f:Promise.reject()})):V.return(Promise.reject())})};
var yLc=function(W,l){l===void 0||W.getAttribute("viewBox")||W.setAttribute("viewBox","0 0 "+l+" "+l);W.setAttribute("focusable","false");W.setAttribute("aria-hidden","true");try{W.style.pointerEvents="none",W.style.display="inherit",W.style.width="100%",W.style.height="100%"}catch(r){var V;VD({error:((V=r)==null?0:V.toString)?r.toString():""});try{W.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(R){var f;VD({error:((f=R)==null?0:f.toString)?R.toString():
""})}}return W},BIL=function(W){for(var l=_.L(sts),V=l.next();!V.done;V=l.next())if(W.startsWith(V.value)&&W.endsWith(".svg"))return!0;
return!1};
l3.prototype.resolveIcon=function(W){return this.iconSet.resolveIcon(W)};
var VD=function(W){_.Qe(new _.bP("Error in IconManager",W))},gd2=function(W){if(_.U("wil_icons_cache_purge_killswitch"))return!1;
try{var l=_.rS.localStorage}catch(R){return!1}if(!l||!W.cacheStorageAvailable)return!1;var V=function(R){try{var y;(y=l)==null||y.setItem("yt-icons-last-purged",R.toString())}catch(n){var P;VD({error:((P=n)==null?0:P.toString)?n.toString():""})}},f=Number(l.getItem("yt-icons-last-purged"));
if(!f)return f=new Date,f=f.setDate(f.getDate()-Math.floor(Math.random()*90+1)),V(f),!1;if(function(R,y){R=new Date(R);y=new Date(y);return y.getMonth()-R.getMonth()+12*(y.getFullYear()-R.getFullYear())}(f,Date.now())<3)return!1;
try{return _.rS.caches.delete("yt-icons").then(function(R){R&&V(Date.now());return R}).catch(function(){return!1}).finally(function(){W.isPurging=!1})}catch(R){var r;
VD({error:((r=R)==null?0:r.toString)?R.toString():""});return!1}};
l3[k$]=[Lkw,_.cI,_.R0(PBN)];_.fm=function(W,l){this.iconManager=W;this.iconsToFetch=l};
_.fm[k$]=[_.iD,_.R0(gc2)];var kus=function(){};var vd1=function(W,l,V){this.requestKey=W;this.l7g=l;this.m5x=V;this.qHC=function(){return new XMLHttpRequest};
this.uSR=void 0;this.ygM=[]};
vd1.prototype.getLatestChallengeResponse=function(){return this.m5x};
var Alk=function(W,l,V){var f,r,R,y;return _.g(function(P){if(P.nextAddress==1){_.$u("attestation_challenge_fetch");_.Wy("att_fs",void 0,"attestation_challenge_fetch");if(!W.uSR)throw new _.qR(9,"Missing fetcher");return P.yield(W.uSR(l,V),2)}f=P.yieldResult;R=(r=f)==null?void 0:r.bgChallenge;if(!R)throw new _.qR(15,"Missing field");W.m5x=f;W.ygM.forEach(function(n){n(f)});
y=vfq(R);_.Wy("att_fc",void 0,"attestation_challenge_fetch");Ee("attestation_challenge_fetch");return P.return(y)})},tmI=function(W,l){var V,f,r,R,y;
return _.g(function(P){switch(P.nextAddress){case 1:V=new D1(100,3E5,.25,2),f=void 0;case 2:if(!(V.currBackoffCount_<10)){P.jumpTo(4);break}_.HG(P,5);if(!(V.currBackoffCount_>0)){P.jumpTo(7);break}return P.yield(jG8(V.getValue()),7);case 7:return P.yield(Hc2(W,l),9);case 9:return r=P.yieldResult,P.return(r);case 5:R=_.pc(P);R instanceof _.qR?f=R:(y=R instanceof Error?R.message:"Unknown",f=new _.qR(9,y));e61(V);P.jumpTo(2);break;case 4:if(f)throw f;throw new _.qR(9,"Unknown error");}})},Hc2=function(W,
l){l=Gz9(bse(new FlB,l),W.requestKey);
var V=new _.mg,f=W.qHC();f.open("POST",W.l7g);f.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");f.setRequestHeader("Content-Type","application/json+protobuf");f.onload=function(){if(_.qeg(f)){var r=T9M(f.responseText);V.resolve(r)}else V.reject(new _.qR(_.$4g(_.C7(f)),f.statusText))};
f.onerror=function(){V.reject(new _.qR(_.$4g(_.C7(f)),f.statusText))};
f.send(l.serialize());return V.promise};var FQ1=function(W){this.networkStatusManager=W;this.isDownloaded=b$Y===void 0?function(){return!1}:b$Y;
this.isReady=!1;this.ebY=KQZ(this)},KQZ=function(W){var l;
return _.g(function(V){if(V.nextAddress==1)return V.yield(ipS(),2);if(V.nextAddress!=3)return l=V.yieldResult,V.yield(SPI(l),3);W.fi=V.yieldResult;iTF(W.fi).then(function(){W.isReady=!0});
return V.return(W.fi)})},Gue=function(W,l,V){W.fi?(W=W.fi.pFY({nf:V,
lMS:!0,qmx:!0}),l.serviceIntegrityDimensions={poToken:W}):_.wv(Error("tj"))};
FQ1.prototype.processContext=function(W){var l=this;if(!W.input.match(_.Um(BiL)))return _.F6();var V=W.innerTubeRequest,f=V.videoId;return!f||this.isDownloaded(V)||this.networkStatusManager&&!this.fi&&!this.networkStatusManager.isNetworkAvailable()?_.F6():this.fi?this.isReady?(Gue(this,V,f),_.F6()):new KE(iTF(this.fi).then(function(){Gue(l,V,f)})):new KE(this.ebY.then(function(r){return _.g(function(R){if(R.nextAddress==1)return R.yield(iTF(r),2);
Gue(l,V,f);_.ju(R)})}))};var bcN=new _.vd("WEB_PO_CONTEXT_PROCESSOR");var pGc=function(W,l){var V=this;this.sx2=0;var f;this.bX9=(f=l==null?void 0:l.bX9)!=null?f:window;this.networkStatusManagerPromise=l==null?void 0:l.networkStatusManagerPromise;var r;this.requestKey=(r=l==null?void 0:l.requestKey)!=null?r:_.gU("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var R;this.boj=(R=l==null?void 0:l.boj)!=null?R:function(n){return new V3(n)};
var y;f=(y=l==null?void 0:l.hl9)!=null?y:function(n,B,d){return new vd1(n,B,d)};
this.bgChallenge=vfq(W.bgChallenge);this.ttlSeconds=H8S(rl(W.challenge||""));this.b3=f(this.requestKey,_.U("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.rS.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",W);I68(this.b3);var P;this.b83=(P=l==null?void 0:l.b83)!=null?P:function(n){_.YJ(V.bX9.document,"visibilitychange",function(){V.bX9.document.visibilityState===
"visible"&&n()})}},jtH=function(W){if(!W.vm){var l={maxAttempts:5,
ggR:W.ttlSeconds*1E3};moY(W.bX9);W.vm=W.boj({b3:W.b3,rYJ:{disable:_.U("html5_web_po_disable_remote_logging"),qM:"aGIf",sPU:zMz("html5_web_po_experiment_ids"),nGr:_.U("wpo_dis_lfdms")?0:1E3,hO9:function(f){var r=dv1.get(f);r||(r=new BWv(f),r=new Ht(r),dv1.set(f,r));return r}},
vS9:l,aYi:W.bgChallenge,unO:XvJ});W.sx2=Date.now();isk(W.vm,function(){W.sx2=Date.now()});
wP4(W.vm,function(){return _.g(function(f){return f.return(ode(W))})});
var V=W.rer.bind(W);W.networkStatusManagerPromise&&W.ttlSeconds>0&&W.networkStatusManagerPromise.then(function(f){f.listen("publicytnetworkstatus-online",V)});
W.b83(V)}};
pGc.prototype.rer=function(){if(Date.now()>this.sx2+this.ttlSeconds*1E3){var W;(W=this.vm)==null||I1Z(W)}};
var ode=function(W){if(W.gxR)return W.gxR;if(!W.vm)throw Error("uj");W.gxR=new td({vm:W.vm,b3:W.b3,tqR:!0,onError:XvJ});return W.gxR},wvn=function(W,l){W=new pGc(W,l);
jtH(W);ode(W)};var I7Z=_.P75.ephemeralActionSelector,rz=function(W,l){this.store=W;this.queue=[];l==null||l.addEventListener("yt-navigate-start",this.reset.bind(this))};
rz.prototype.enqueue=function(W){var l=W.command,V=W.durationMs,f=W.elementToFocus;var r=W.label;var R=W.elementToFocus;W.command?r=_.wg("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:r,shortcut:_.wg("SHIFT_PLUS_ENTER")}):R&&(W=r+". "+_.wg("SHIFT_PLUS_ENTER")+" for more information.",r=_.wg("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:r,shortcut:_.wg("SHIFT_PLUS_ENTER")},W));V={announcement:r,durationMs:V!=null?V:8E3};l?V.command=l:f&&(f.classList.add("ephemeral-action-focusable-element"),V.selector=f.tagName+
".ephemeral-action-focusable-element");this.queue.push(V);ic7(this)};
rz.prototype.activate=function(W){var l=I7Z(this.store.getState());if(l){if(l==null?0:l.command)_.rN(l.command),this.store.dispatch(Pn$(null));if(l==null?0:l.selector)l=document.querySelector(l.selector),_.XAJ(l);W.preventDefault()}};
var ic7=function(W){if(!I7Z(W.store.getState())&&W.queue.length){var l=W.queue.shift();l&&(W.previousAnnouncement===l.announcement&&(l.announcement+="\u00a0"),W.store.dispatch(Pn$(l)),W.previousAnnouncement=l.announcement,W.timeoutId=setTimeout(function(){if(l.selector){var V;(V=document.querySelector(l.selector))==null||V.classList.remove("ephemeral-action-focusable-element")}W.store.dispatch(Pn$(null));ic7(W)},l.durationMs))}};
rz.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(Pn$(null));this.queue.length=0;this.timeoutId=void 0};
rz[k$]=[_.Jp,_.R0(_.fA)];_.Rq=new _.vd("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var mF7=window.AbortController||jpx;var XGY=new _.vd("AUTH_SERVICE_TOKEN");var MAJ=_.tj(["about:blank"]),QG8;var TIw=new _.vd("API_IFRAME_TOKEN"),wGc=new _.vd("FETCH_FN_TOKEN"),ALw=new _.vd("PARSE_FN_TOKEN"),Qt1=new _.vd("WINDOW_REQUEST_TOKEN"),Muw=new _.vd("TEXT_DECODER_TOKEN");var Qic;Qic=new _.vd("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.Zc7=new _.vd("MISC_UI_SHARED_FLAGS_TOKEN");var Oc1=function(){};
Oc1.prototype.getFlag=function(W){if(W.configType!==2)throw Error("vj");return a72(W)};
var a72=function(W){switch(W.flagType){case "bool":return _.U(W.flagName);case "int":return _.wL(_.yS(W.flagName));case "double":return _.yS(W.flagName);case "string":return _.gU(W.flagName);case "int32_list":return zMz(W.flagName);case "int64_list":return zMz(W.flagName).map(function(l){return _.wL(l)});
case "string_list":return _.n7(W.flagName);default:throw Error("wj");}};var tF=function(W,l,V){l=l===void 0?{}:l;Vo.call(this,V===void 0?"uninitialized":V);this.env=W;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}];l.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=l.shouldWaitOnAsyncImmediate)};
_.v(tF,Vo);tF.prototype.init=function(W){var l=this,V;return _.g(function(f){if(f.nextAddress==1)return l.processPluginOptions.shouldWaitOnAsyncImmediate?f.yield(W(l.env),2):(W(l.env),f.jumpTo(2));if(f.nextAddress!=4)return l.jobSet?f.yield(l.jobSet.completedResolver.promise,4):f.jumpTo(4);V=_.DI();V.parkOrScheduleJob(function(){l.transition("rendering")},10,"ci");
_.ju(f)})};
tF.prototype.initialRender=function(W){var l=this,V;return _.g(function(f){if(f.nextAddress==1)return l.processPluginOptions.shouldWaitOnAsyncImmediate?f.yield(W(l.env),2):(W(l.env),f.jumpTo(2));if(f.nextAddress!=4)return l.jobSet?f.yield(l.jobSet.completedResolver.promise,4):f.jumpTo(4);V=_.DI();V.parkOrScheduleJob(function(){l.transition("rendered")},10,"cr");
_.ju(f)})};
tF.prototype.afterRenderImmediate=function(W){var l=this,V;return _.g(function(f){if(f.nextAddress==1)return l.processPluginOptions.shouldWaitOnAsyncImmediate?f.yield(W(l.env),2):(W(l.env),f.jumpTo(2));if(f.nextAddress!=4)return l.jobSet?f.yield(l.jobSet.completedResolver.promise,4):f.jumpTo(4);V=_.DI();V.parkOrScheduleJob(function(){l.transition("after-render-deferred")},10,"carml");
_.ju(f)})};
tF.prototype.afterRenderDeferred=function(W){var l=this;return _.g(function(V){W(l.env);_.ju(V)})};var z65;_.Qj("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});z65={};_.NIL=(z65.CSI=Y0v(),z65.ECATCHER=NFv(),z65);var Yx7={},xFs=(Yx7.rendered={priority:0,callback:function(W){Dc$(W.injector.resolve(oo))}},Yx7);var TQJ=new _.vd("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),e6H=new _.vd("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var qxw=function(W){this.callbackFnMap=W;this.configMap={}};
qxw.prototype.handleResponse=function(W){var l;if(W=(l=W.responseContext)==null?void 0:l.serviceTrackingParams)for(l=_.L(W),W=l.next();!W.done;W=l.next()){W=W.value;var V=W.params,f=W.service;if(V&&f){this.configMap[f]||(this.configMap[f]=new zbL);W=this.configMap[f];var r=void 0,R=(r=this.callbackFnMap)==null?void 0:r[f];V=_.L(V);for(f=V.next();!f.done;f=V.next())r=f.value,f=r.key,r=r.value,f&&r&&(W.set(f,r),R&&R(f,r))}}};
qxw[k$]=[_.R0(e6H)];var h6s=!1,S0z=0,xoj=null,hY8=null;var SxH=new _.vd("NETWORK_SLI_TOKEN");var Ed1=function(W,l,V,f,r){this.networkSli=W;this.fetchFn=l;this.parseFn=V;this.requestFn=f;this.JSC$18515_textDecoder=r};
Ed1.prototype.fetch=function(W,l,V){var f=this,r,R,y;return _.g(function(P){r=$FZ(f,W,l);y=(R=f.fetchFn)!=null?R:fetch;return P.return(y(r).then(function(n){return f.handleResponse(n,V)}).catch(function(n){_.Qe(n);
if((V==null?0:V.expectJsonStrict)&&n instanceof WL&&n.errorType===1)return Promise.reject(n)}))})};
var UEM=function(W,l,V,f){var r,R,y,P,n,B,d;return _.g(function(J){switch(J.nextAddress){case 1:return r=$FZ(W,l,V),_.HG(J,2),J.yield(fetch(r),4);case 4:R=J.yieldResult;_.qL(J,3);break;case 2:throw _.pc(J),new WL(2,"Failed to parse streaming response",r.url);case 3:if(!R.redirected&&!R.ok)throw(y=W.networkSli)==null||y.failure(),new _.bP("Streaming fetch request not ok",r.url);if(!R.body)throw new _.bP("No response body in streaming response",r.url);P={};if(_.U("web_streaming_fast"))return n=R.body.getReader(),
J.return(WYw(W,n,P,f));B=R.body.pipeThrough(new TextDecoderStream).getReader();d=new _.oM;return J.return(ll7(W,B,d,ybz,P,f))}})},$FZ=function(W,l,V){if(W.networkSli){var f=_.JY(_.uj(l,"key"))||"/UNKNOWN_PATH";
W.networkSli.start(f)}f=V;_.U("wug_networking_gzip_request")&&(f=VMF(V));var r;return new ((r=W.requestFn)!=null?r:window.Request)(l,f)},WYw=function(W,l,V,f){var r,R,y,P,n,B,d,J,D,u,H;
return _.g(function(p){switch(p.nextAddress){case 1:r=W.JSC$18515_textDecoder?new W.JSC$18515_textDecoder("utf-8"):new TextDecoder("utf-8"),R="",y=function(X){X=X.trim();X.length!==0&&X!=="]"&&X!=="["?(X.startsWith("[")&&(X=X.substring(1)),X.endsWith("]")&&(X=X.slice(0,-1)),X.endsWith(",")&&(X=X.slice(0,-1)),X=X.trim()):X=void 0;if(X)try{var w=JSON.parse(X);ybz(V,w);f==null||f(V,w)}catch(O){throw new WL(1,"Failed to parse streaming response",X);}},_.HG(p,2,3);
case 5:return p.yield(l.read(),8);case 8:P=p.yieldResult;n=P.value;if(B=P.done)return R.length>0&&y(R),d=void 0,(d=W.networkSli)==null||d.success(),p.return(V);R+=r.decode(n,{stream:!0});J=R.split("\n");R=J.pop()||"";D=_.L(J);for(u=D.next();!u.done;u=D.next())H=u.value,y(H);p.jumpTo(5);break;case 3:_.Ff(p);l.releaseLock();_.bM(p,0);break;case 2:throw _.pc(p),new WL(1,"Failed to parse streaming response");}})},ll7=function(W,l,V,f,r,R){var y,P,n,B,d,J,D,u,H;
return _.g(function(p){if(p.nextAddress==1)return p.yield(l.read(),2);y=p.yieldResult;P=y.value;if(n=y.done)return(B=W.networkSli)==null||B.success(),p.return(r);try{d=V.parse(P)}catch(X){throw new WL(1,"Failed to parse streaming response",P);}if(d!=null)for(J=_.L(d),D=J.next();!D.done;D=J.next())u=D.value,f(r,u),H=void 0,(H=R)==null||H(r,u);return p.return(ll7(W,l,V,f,r,R))})};
Ed1.prototype.handleResponse=function(W,l){var V,f=(V=this.parseFn)!=null?V:JSON.parse;V=W.text().then(function(r){if((l==null?0:l.jspbResponseCtor)&&W.ok)return OMU(l.jspbResponseCtor,r);r=r.replace(")]}'","");if((l==null?0:l.expectJsonStrict)&&r)try{var R=f(r)}catch(P){throw new WL(1,"JSON parsing failed after fetch");}var y;return(y=R)!=null?y:f(r)});
W.redirected||W.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),V=V.then(function(r){_.Qe(new _.bP("Error: API fetch failed",W.status,W.url,r));return Object.assign({},r,{errorMetadata:{status:W.status}})}));
return V};
Ed1[k$]=[_.R0(SxH),_.R0(wGc),_.R0(ALw),_.R0(Qt1),_.R0(Muw)];var VtH=new _.vd("NETWORK_MANAGER_TOKEN");var flL=[1,2,4,8,16,30],RK5=function(W){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=W.maxTimeMs;this.maxFrameCount=W.maxFrameCount===void 0?Math.ceil(60*W.maxTimeMs/1E3):W.maxFrameCount;W=_.L(flL);for(var l=W.next();!l.done;l=W.next())this.brokenFrameSummarizers.push(new rs5(l.value/60*1E3))},tt5=function(W){var l=W.frameCountInternal>=W.maxFrameCount;
return W.elapsedTimeMs>=W.maxTimeMs||l};
RK5.prototype.summarize=function(){for(var W=[],l=_.L(this.brokenFrameSummarizers),V=l.next();!V.done;V=l.next())V=V.value,V=V.brokenFrameCount!==0?{severityMs:Math.round(V.targetFrameTimeMs),eventCount:V.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(V.averageDurationBetweenEventsMs)}:void 0,V&&W.push(V);return{summaries:W,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.rc.Object.defineProperties(RK5.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 rs5=function(W){this.targetFrameTimeMs=W;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.rc.Object.defineProperties(rs5.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var sUN=function(){};
sUN.prototype.start=function(W,l){var V=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var f=new RK5({maxTimeMs:W});this.monitor=f;this.lastSummaryInternal=void 0;this.metadataToLog=l;return new Promise(function(r){var R=function(y){if(y===void 0)V.stop(),r(void 0);else if(V.monitor!==f)y=Object.assign({},f.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),r(y);else{var P=V.monitor;if(!tt5(P)){P.frameCountInternal++;if(P.prevTime===
void 0)P.startTime=y;else for(var n=y-P.prevTime,B=_.L(P.brokenFrameSummarizers),d=B.next();!d.done;d=B.next()){d=d.value;var J=d.currTimeMs;d.currTimeMs+=n;n>d.targetFrameTimeMs+2&&(d.brokenFrameCount++,d.timeOfFirstBrokenFrameMs===void 0&&(d.timeOfFirstBrokenFrameMs=J),d.timeOfLastBrokenFrameMs=J)}P.prevTime=y}tt5(V.monitor)?r(V.stop()):_.w8.addJob(R,5,0)}};
_.w8.addJob(R,5,0)})};
sUN.prototype.stop=function(W){if(!this.monitor)return this.lastSummaryInternal;var l=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(l.monitoringDurationMs){W=W!=null?W:this.metadataToLog;var V={droppedFramesSummary:l,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};W&&(V[W.type]=W.data);_.XC("manualSmoothnessMeasurement",V)}this.monitor=void 0;this.lastSummaryInternal=l;this.metadataToLog=void 0;return l};_.LYZ=new _.vd("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var yss;yss=function(W){this.JSC$18538_expiringStorage=new o0(W)};
_.gN7=function(W){if(_.Eyz()&&(W=_.i06(_.FP()+"::"+W)))return new yss(W)};
yss.prototype.set=function(W,l,V){V=V!==void 0?Date.now()+V:void 0;this.JSC$18538_expiringStorage.set(W,l,V)};
yss.prototype.get=function(W){return this.JSC$18538_expiringStorage.get(W)};
yss.prototype.remove=function(W){this.JSC$18538_expiringStorage.remove(W)};var PhL=new _.vd("SESSION_STORAGE");_.sW=function(){};
_.sW.getInstance=function(){var W=_.Y2("ytglobal.storage_");W||(W=new _.sW,_.fR("ytglobal.storage_",W));return W};
_.sW.prototype.estimate=function(){var W,l,V;return _.g(function(f){W=navigator;return((l=W.storage)==null?0:l.estimate)?f.return(W.storage.estimate()):((V=W.webkitTemporaryStorage)==null?0:V.queryUsageAndQuota)?f.return($oq()):f.return()})};
_.fR("ytglobal.storageClass_",_.sW);var t4J=0;var CSU=!1;var nNZ=_.tj(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),Chc=_.tj(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var R4H={"/":_.Sb,"/?feature=ytca":_.Sb,"/feed/downloads":_.TfY};var cs7=C74.continuationCommandSelector,Gk=function(W,l,V){this.JSC$18554_upliftPromise=W;this.store=l;this.JSC$18554_persistentStorePromiseAccessor=V};
Gk.prototype.shouldPreferLocalResponse=function(W){return W.browseId==="FEdownloads"||W.browseId==="FEsmart_downloads"&&_.U("kevlar_modern_downloads_page")?!0:!1};
Gk.prototype.localInnertubeResponse=function(W){var l=this;return _.g(function(V){return W.browseId==="FEdownloads"?_.U("kevlar_modern_downloads_page")?V.return(BO7(l)):V.return(dCw(l)):W.browseId==="FEsmart_downloads"&&_.U("kevlar_modern_downloads_page")?V.return(JsL(l)):V.return(Promise.reject(Error("yj")))})};
Gk.prototype.canProvideFallbackResponse=function(){return!0};
Gk.prototype.localFallbackInnertubeResponse=function(W){var l=this,V,f,r;return _.g(function(R){switch(R.nextAddress){case 1:return R.yield(l.JSC$18554_persistentStorePromiseAccessor(),2);case 2:V=R.yieldResult;if(W.browseId!=="SPaccount_downloads"||!V){R.jumpTo(3);break}return R.yield(G9z(V),4);case 4:if(f=R.yieldResult)return R.return(_.c0(f));case 3:return W.browseId==="FEwhat_to_watch"?R.return(DCw(l)):(r=_.U("web_offline_continuation_automatic_retry")||_.U("web_offline_continuation_retry_button"))&&
W.continuation?R.return(UC2(l)):R.return(u41(l))}})};
var DCw=function(W){var l;return _.g(function(V){if(V.nextAddress==1)return V.yield(W.JSC$18554_upliftPromise,2);l=_.U58(W.store.getState().entities);return l.length?V.return(k77(W,l)):V.return(u41(W))})},dCw=function(W){var l,V;
return _.g(function(f){if(f.nextAddress==1)return f.yield(W.JSC$18554_upliftPromise,2);if(f.nextAddress!=3)return l=vN2([{offlineItemSectionRenderer:{}}]),f.yield(H5s(W,l),3);V=f.yieldResult;V.onResponseReceivedActions=[Ip("REFRESH_DOWNLOADS")];return f.return(V)})},BO7=function(W){var l,V,f,r,R,y,P,n,B,d,J,D,u,H,p,X;
return _.g(function(w){if(w.nextAddress==1)return w.yield(W.JSC$18554_upliftPromise,2);if(w.nextAddress!=3)return l=W.store.getState(),V=l.entities,f=_.hW(V),r=_.SE(V),R=_.S7U(l),y=_.hmj(l),P=_.ECF(l),n=_.vCj(V),B=_.zT(f),d=_.EK(V),J=_.GoJ(V),D=_.WBU(l),u=_.fa(l),H={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Sin(f,r,n,J,R,y,B,d,P,D,u),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},p="",_.U("kevlar_modern_downloads_skip_downloads_title")||
(p=_.wg("DOWNLOADS",void 0,"Downloads")),w.yield(KYs(W,H,p),3);X=w.yieldResult;X.onResponseReceivedActions=[Ip("REFRESH_DOWNLOADS")];return w.return(X)})},JsL=function(W){var l,V,f,r,R,y,P,n,B;
return _.g(function(d){if(d.nextAddress==1)return d.yield(W.JSC$18554_upliftPromise,2);if(d.nextAddress!=3)return l=W.store.getState(),V=l.entities,f=_.hW(V),r=_.zT(f),R=_.EK(V),y={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.$wU(f),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},P=_.wg("SMART_DOWNLOADS",void 0,"Smart downloads"),n=qiF(r,R),d.yield(KYs(W,y,P,n),3);B=d.yieldResult;B.onResponseReceivedActions=
[Ip("REFRESH_DOWNLOADS")];return d.return(B)})},u41=function(W){var l,V;
return _.g(function(f){if(f.nextAddress==1)return f.yield(Ct(W.JSC$18554_upliftPromise,W.store),2);l=f.yieldResult;V=vN2([vT8(l)]);return f.return(H5s(W,V))})},UC2=function(W){var l,V,f,r;
return _.g(function(R){if(R.nextAddress==1)return l={},V=cs7(W.store.getState()),_.SM(l,_.VH,V),R.yield(Ct(W.JSC$18554_upliftPromise,W.store,l,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);f=R.yieldResult;r={};_.SM(r,_.ugI,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:f}}}],targetId:"browse-feedFEwhat_to_watch"});return R.return({responseContext:{},onResponseReceivedActions:[r]})})},vN2=function(W){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:W}}}}]}}},k77=function(W,l){var V,f;
return _.g(function(r){var R={contents:iE(l)};V=R&&R.contents?R:{};_.U("kevlar_modern_downloads_page")&&(V=Object.assign({},_.W6q(l),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));f={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:V}}}]}};return r.return(H5s(W,f))})},H5s=function(W,l){var V,f;
return _.g(function(r){if(r.nextAddress==1)return r.yield(W.JSC$18554_persistentStorePromiseAccessor(),2);if(r.nextAddress!=3)return V=r.yieldResult,r.yield(B0(V),3);f=r.yieldResult;return r.return({responseContext:{},contents:l,topbar:f})})},KYs=function(W,l,V,f){var r,R;
return _.g(function(y){if(y.nextAddress==1)return y.yield(W.JSC$18554_persistentStorePromiseAccessor(),2);if(y.nextAddress!=3)return r=y.yieldResult,y.yield(B0(r),3);R=y.yieldResult;var P=y.return;var n=V;var B=f;n=n===void 0?"":n;B=B===void 0?"":B;n={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:n}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.wg("SETTINGS",void 0,"Settings"),accessibilityText:_.wg("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:_.kH("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:B}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:n};
return P.call(y,{responseContext:{},contents:l,topbar:R,header:{pageHeaderRenderer:n}})})};var FYw=function(){this.moduleRegistry={};this.fetchCount=0};
FYw.prototype.isFetching=function(){return this.fetchCount>0};
var EH=function(W,l){W.moduleRegistry[l.toString()]={asyncId:l,isFetching:!1};return W};
FYw.prototype.JSC$18565_loadModules=function(){for(var W=this,l=new Map,V=[],f=_.L(_.xk.apply(0,arguments)),r=f.next();!r.done;r=f.next()){r=r.value;var R=this.moduleRegistry[r];R?R.resolver?l.set(r,R.resolver):(R.resolver=new _.mg,l.set(r,R.resolver),V.push(R.asyncId),R.isFetching=!0):(R=new _.mg,l.set(r,R),R.resolve(void 0))}V.length&&(this.fetchCount+=1,_.xS(_.ZI.getMultipleAsync.apply(_.ZI,_.QK(V)).then(function(y){for(var P=0;P<V.length;P++){var n=y[P],B=W.moduleRegistry[V[P].toString()];B.isFetching=
!1;B.resolver.resolve(n)}}).catch(function(y){for(var P=_.L(V),n=P.next();!n.done;n=P.next()){n=n.value;
var B=W.moduleRegistry[n.toString()];B.resolver=void 0;B.isFetching=!1;l.get(n.toString()).reject(y)}}),function(){--W.fetchCount}));
return Promise.all([].concat(_.QK(l.values())).map(function(y){return y.promise}))};_.$P=new _.vd("MODULE_REGISTRY_TOKEN");var G7Y={},b52=(G7Y.rendered={priority:0,callback:function(W){a:{var l=void 0;try{var V;b:{if(_.Voj()){var f=_.IAn(_.FP()+"::pom");if(f){var r=new tp(f);break b}}r=void 0}var R=(V=r)==null?void 0:V.get("role_text");if(!R)break a;l={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:R}]}}}}}}catch(n){}l&&W.injector.resolve(_.s6).resolveCommand(l)}try{var y=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(y){var P=JSON.parse(y);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
P&&W.injector.resolve(_.s6).resolveCommand(P)}}catch(n){}}},G7Y);var pgw,oNH={},jUY=(oNH.initialized={priority:10,callback:function(){pgw=Tk()}},oNH.rendering={callback:function(W){var l;
return _.g(function(V){if(V.nextAddress==1)return V.yield(pgw,2);l=V.yieldResult;if(!l.endpoint)throw Error("Aj`"+_.rS.location.href);am(W,l);_.ju(V)})}},oNH);var IlL={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(_.QK(_.U("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(W){var l=W.stack;if(l.includes("chrome://")||l.includes("chrome-extension://")||W.message.includes("chrome-extension://")||l.includes("moz-extension://")||l.includes("local.adguard.org")||l.includes("auctioneer3.50million.club")||l.includes("youtubedownloader")||l.includes("youtube_home_page")||l.includes("is_youtube_video_no_longer_available")||
l.includes("switchScreenSizeHack")||l.includes("yt_main_big_banner.js")||l.includes("YouTubeCenter.js")||l.includes("/mytube.js")||l.includes("JSON.parseWrapper")||l.includes("/inj_js/common.js")||l.includes("firebug-lite")||l.includes(".repl.co/")||l.includes("linkfix")||l.includes("playAfterAd")||W.message.includes("Access is denied for this document")&&l.includes("<anonymous>")||W.fileName==="user-script"||W.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
l.includes("<anonymous>"))return!0;if(l.includes("https://www.youtube.com"))return!1;W=l.split("\n");if(!W.length)return!1;if(W.length<=3&&l.includes("s.onloadeddata"))return!0;l=0;for(var V=_.L(W),f=V.next();!f.done;f=V.next())f=f.value,(f.includes("https://")||f.includes("http://"))&&l++;return l/W.length>.95},
weight:0},{callback:function(W){return W.message==="Unknown Error"&&W.name.indexOf("NS_")===0},
weight:100},{callback:function(W){if(!_.kt)return!1;var l=W.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||W.message.includes("available to complete this operation"),V=W.stack.includes("webcomponents")&&W.message==="Object doesn't support this action";W=W.message.includes("object that does not implement interface Element");return l||V||W},
weight:0},{callback:function(W){return W.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(W){return W.message==="Operation is not supported"&&(W.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(W){return W.stack.includes("eval code (eval (code:1:1)")||W.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(W){return W.message.includes("Permission denied")&&W.stack.includes("this.domHandler")?!0:W.name.includes("TypeError")&&W.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(W){if(!W.stack)return!1;var l=W.stack.trim().split("\n");l.length&&l[0].endsWith("Error: "+W.message)&&l.shift();l.length&&l[l.length-1].includes("at window.onerror (")&&l.pop();if(!l.length)return!0;if(W.message==="Script error.")return l[0].includes("www.youtube.com")||l.length>=2&&l[0].startsWith("at new")&&l[1].startsWith("at window.onerror");if(W.message==="Unexpected token")return!0;W=_.L(l);for(l=W.next();!l.done;l=W.next())if(l=l.value,!(l.includes("<anonymous>")||
l.startsWith("load@")||l.startsWith("global code@")||l.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(W){return W.message==="Cannot read property 'experiments'"&&W.stack.includes("/s/player/")},
weight:500},{callback:function(W){return W.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(W){return W.stack.includes("/embed.js")?(W.params&&W.params&&(W.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.U("use_error_suppression"))var W=_.M4("SUPPRESS_CLIENT_ERRORS",!1);else{if(W=_.Gy)W=/Chrome\/(\d+)/.exec(_.Uz()),W=(W?parseFloat(W[1]):NaN)>=66;W=!(W||_.Fe&&_.K4(65)||_.O6&&_.K4(12.1)||li&&_.K4(79))}return W},
weight:500}]};var i5w={},mCH=(i5w.initialized={priority:10,callback:function(W){W.injector.addProvider({provide:CQX,useValue:W.root});W.injector.addProvider({provide:q5c,useValue:GY4});W.injector.addProvider({provide:h4L,useValue:IlL});var l={};W.injector.addProvider((l.provide=S5Z,l.useFactory=function(V,f){return function(){Z$x(V,f)}},l[k$]=[q5c,
h4L],l));W.injector.addProvider({provide:hM,useClass:hM})}},i5w);var Xgw={},TO5=(Xgw.initialized={priority:3,callback:function(){var W;if(W=KL8()){W=W.replace("/",".");var l=_.MT();l.set("tz",W);l.save();W=!0}else W=!1;W||(W=_.MT(),W.set("utco",-Math.floor((new Date).getTimezoneOffset())),W.save())}},Xgw);var wg4={},AsY=(wg4.initialized={priority:10,callback:function(W){W.injector.resolve(hM).start();W=_.nG();var l=_.ZL("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.ZL("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.ZL("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.ZL("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.kP(_.izj(),{mainAppWeb:Object.assign({},W,{pageType:l})});_.kP(Xwv(),{mainAppWeb:Object.assign({},W,{pageType:l})});
_.kP(TPv(),{mainAppWeb:W});_.kP(wwj(),{mainAppWeb:W});j_L(function(){_.v0(TPv(),"FAILURE");_.v0(wwj(),"FAILURE")});
bJU();pbJ();YTv()}},wg4);var QUe={},Mtc=(QUe.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Wy("dl"),_.DI().processSignal("pcl");else{var W=function(){_.Wy("dl");_.DI().processSignal("pcl");window.removeEventListener("load",W)};
window.addEventListener("load",W)}}},QUe);var Z5w={},O52=(Z5w.rendering={priority:0,callback:function(){var W=_.DI();W.parkOrScheduleJob(function(){W.processSignal("eocs")},10,"eor",5E3)}},Z5w);var als=function(){};
_.v(als,Do);
als.prototype.resolveCommand=function(W,l){var V,f,r,R,y,P,n,B;return _.g(function(d){r=(V=_.k(W,_.m0I))==null?void 0:(f=V.dialog)==null?void 0:f.commentReplyDialogRenderer;if(!r)throw new _.bP("No dialog in createCommentReplyDialogEndpoint");y=(R=l.form)==null?void 0:R.event;if(!y)throw new _.bP("Event not passed in when resolving command");P=_.L(y.composedPath());for(n=P.next();!n.done;n=P.next())if(B=n.value,B.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||B.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return B.showReplyDialog(r),d.return();
_.ju(d)})};var Lm=function(W){this.pageRequestService=W;this.JSC$18580_prefetchCoordinator=T71()};
_.v(Lm,Do);Lm.prototype.resolveCommand=function(W){var l=this,V,f,r,R;return _.g(function(y){if(y.nextAddress==1){V=_.k(W,COv);if((f=V)==null||!f.taskId)throw Error("Bj");r=V.taskId;_.HG(y,2);return y.yield(_.chZ(l.pageRequestService,W,{},"").then(function(P){if(!P)throw Error("Cj");},function(P){throw Error("Dj`"+P);
}),4)}if(y.nextAddress!=2)return QwH(l.JSC$18580_prefetchCoordinator,r),_.qL(y,0);
R=_.pc(y);ZK(l.JSC$18580_prefetchCoordinator,r,R);_.ju(y)})};
Lm[k$]=[XA];var yD=function(W,l){this.innertubeTransportService=W;this.JSC$18584_commandHandler=l};
_.v(yD,Do);yD.prototype.resolveCommand=function(W){var l=this,V,f,r;return _.g(function(R){if(R.nextAddress==1){V=_.k(W,nCM);if(V.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||V.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")f=V.boolValue?2:1,_.IH.getInstance().setState(f,!0,!0);return R.yield(_.Lv(l.innertubeTransportService,W),2)}r=R.yieldResult;zK1(l,r);_.ju(R)})};
var zK1=function(W,l){l.actions&&l.actions.forEach(function(V){W.JSC$18584_commandHandler.resolveCommand(V)})};
yD[k$]=[_.Vb,_.s6];var gz={},NOZ=(gz.addToPlaylistEndpoint=u_(CO),gz.addToToastAction=u_(JX),gz.adsControlFlowOpportunityReceivedCommand=u_(qf),gz.audioTrackSelectActionCommand=u_(m1Y),gz.backgroundAudioPlaybackCommand=u_(pO),gz.captionLanguageSelectActionCommand=u_(od),gz.captionPickerEndpoint=u_(j0),gz.changeMiniAppPlayStateCommand=u_(cK),gz.changeTimelyActionVisibilityCommand=u_(dX),gz.channelCreationFormEndpoint=u_(sv),gz.clearLocationCommand=u_(nO),gz.clearUrlParamCommand=u_(BK),gz.copyLinkCommand=u_(wp),gz.copyTextEndpoint=
u_(Ea),gz.createCommentReplyDialogEndpoint=Xo6(als),gz.createPlaylistServiceEndpoint=u_(Ai),gz.dismissDialogEndpoint=u_(Ji),gz.dismissPlayerOverlayCommand=u_(Id),gz.entityUpdateCommand=u_(WK),gz.feedbackEndpoint=u_(fO),gz.getAnswerCommand=u_(NL2),gz.getPaymentsClientTokenCommand=u_(u8),gz.getTranscriptEndpoint=u_(DD),gz.googlePaymentBillingCommand=u_(kb),gz.googlePaymentPurchaseManagerCommand=u_(v6),gz.hideEngagementPanelEndpoint=u_(DV),gz.hideSnackbarCommand=u_(yA),gz.insertRichSectionCommand=u_(yN),
gz.listMutationCommand=u_(gp),gz.logGtmCommand=u_(LO),gz.notifyDropdownOptionSelectedCommand=u_(dp),gz.openAdAllowlistInstructionCommand=u_(_.h3),gz.openOnePickAddVideoModalCommand=u_(QN),gz.persistSubscriptionsDisplayPreferencesCommand=u_(N9),gz.pingingEndpoint=u_(S8),gz.playlistEditEndpoint=u_(ZV),gz.playlistVotingRefreshPopupCommand=u_(Ov),gz.profileCardCommand=u_(e8),gz.refreshPanelEndpoint=u_(Uv),gz.saveImageToDeviceEndpoint=u_($4),gz.scrollToSectionEndpoint=Xo6(YMs),gz.seekToVideoTimestampCommand=
u_(iq),gz.selectCountryCommand=u_(YK),gz.setCookieCommand=u_(xK),gz.setLocalStorageCommand=u_(P6),gz.setPrefStorageEntryCommand=u_(q9),gz.setSettingEndpoint=u_(yD),gz.sfvAudioItemPlaybackCommand=u_(mR),gz.shareImageCommand=u_(hi),gz.sharingProviderDataCommand=u_(S0),gz.showAudioTrackPickerActionCommand=u_(a$H),gz.showCaptionLanguageSelectActionCommand=u_(Xi),gz.showDialogCommand=u_(vK),gz.showEngagementPanelEndpoint=u_(HK),gz.showSheetCommand=u_(KO),gz.showSnackbarCommand=u_(gX),gz.showTransientPlayerScrimOverlayCommand=
u_(T5),gz.submitFormWithValidationFlowCommand=u_(ti),gz.talkToRecsDeselectCommand=u_(ng),gz.talkToRecsNextCommand=u_(Cg),gz.talkToRecsSelectCommand=u_(c6),gz.talkToRecsUpdateTextCommand=u_(B6),gz.toggleEngagementPanelCommand=u_(Fi),gz.undoFeedbackEndpoint=u_(Rd),gz.updateEngagementPanelContentCommand=u_(bq),gz.updateUrlParamCommand=u_(UA),gz.verifyCommand=u_(sv),gz.webNativeShareCommand=u_(Ev),gz.webSubmitFormCommand=u_(ad),gz.ACK_PLAYABLES_3P_DATA_CONSENT=u_($K),gz.CANCEL_NAVIGATION=u_(W6),gz.COPY_SHARE_URL=
u_(l8),gz.MINI_APP_EXIT_DIALOG_SEEN=u_(fg),gz.MINI_APP_OPEN_URL=u_(VA),gz.REQUEST_MINI_APP_FULLSCREEN=u_(rX),gz.RESUME_NAVIGATION=u_(Ry),gz.SHARE_PLAYABLE_WITH_HIGH_SCORE=u_(tX),gz.TELL_US_WHY=u_(rp),gz);_.U("web_enable_prefetching_videos_on_home")&&(NOZ.prefetchWatchCommand=u_(Lm),NOZ.registerTasksCommand=u_(aC));_.U("enable_share_panel_navigation_logging_fix_on_web")&&(NOZ.shareEntityServiceEndpoint=u_(uq));var vvZ=Object.assign({},NOZ);var Y1Y={},xCs=(Y1Y.initialized={priority:10,callback:mnn},Y1Y);var eK4={},q1Y=(eK4.initialized={callback:function(W){var l={},V={};fZ6().install((l.document_disposed={callback:function(){_.U("finalize_all_timelines")?lu4():hg();eYg("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.cF8();var f=W.injector.resolve(hM);f.intervalId!==void 0&&(f.intervalId&&_.w8.cancelJob(f.intervalId),f.intervalId=void 0,--f.currentPartitionIndex,f=lqe(f),f>0&&tKI({mainAppWeb:_.nG(),survivalSli:{partitionMinute:f,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));EIM(kQ);Hm!=null&&
Hm.flush();pa&&pa.snapshotAndFlush();f=_.L(dv1.values());for(var r=f.next();!r.done;r=f.next())r.value.snapshotAndFlush()}},l),(V.flush_logs={callback:function(){_.Ts()}},V))}},eK4);var hK7={},S14=(hK7.rendered={priority:0,callback:function(){var W=new d_I;W.increment("STARTED");if(_.M4("LOGGED_IN")&&!_.M4("IS_DBSC",!1)&&_.M4("SERVER_VERSION")!=="test"&&_.M4("SERVER_VERSION")!=="dev"&&!SMk()&&!hIB()){W.increment("EXECUTING");var l=document.createElement("iframe");l.style.display="none";_.stF(l,2,_.NI("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.M4("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(l);W.increment("DONE")}}},
hK7);var ENs={},$C1=(ENs.rendered={callback:function(){T71().resume()}},ENs);var Wl2={acknowledgeChannelTouStrikeCommand:YV(EA),addToPlaylistServiceEndpoint:YV(lb),addToPlaylistEndpoint:YV(lb),addUpcomingEventReminderEndpoint:YV(nI),browseEndpoint:YV(UH4),channelCreationFormEndpoint:YV(NE),channelCreationServiceEndpoint:YV(Yb),claimLegacyYoutubeChannelEndpoint:YV(Iy),clearSearchHistoryEndpoint:YV(RV),clearWatchHistoryEndpoint:YV(t_),commerceActionCommand:xV(vJ),createBackstagePostEndpoint:YV(Fh),createBroadcastCommand:YV(CI),createCommentEndpoint:YV(ZD),createCommentReplyEndpoint:YV(ME),
createLiveChatPollEndpoint:YV(cU),createPlaylistServiceEndpoint:YV(Vz),crossAccountChannelTransferEndpoint:YV(y0),deleteLiveChatMessageCommand:YV(BU),deletePlaylistEndpoint:YV(fl),deleteVideoEndpoint:YV(DK),dismissalEndpoint:YV($b),feedbackEndpoint:YV(WU),flagEndpoint:YV(yz),getAccountSwitcherEndpoint:YV(LI),verifyCommand:YV(Kg),getAccountsListInnertubeEndpoint:YV(PU),getCommentsFromInboxCommand:YV(A_),getDownloadActionCommand:YV(NY),getFlowCommand:xV(rM),getKidsBlocklistPickerCommand:YV(gh),getNotificationMenuEndpoint:YV(vZ4),
getPaymentInstrumentsParamsCommand:YV(pl),getPaymentsClientTokenCommand:xV(vJ),getPdgBuyFlowCommand:YV($L),getReportFormEndpoint:YV(PJ),getSearchInVideoCommand:YV(cJ),getAnswerCommand:YV(Cl),getSurveyCommand:YV(Jb),getTranscriptEndpoint:YV(ub),getPostVideoPreviewEndpoint:YV(b8),decorateMessageEndpoint:YV(GZ),likeEndpoint:YV(xb),liveChatActionEndpoint:YV(UV),liveChatEndpoint:YV(DU),liveChatItemContextMenuEndpoint:YV(dM),liveChatPurchaseMessageEndpoint:YV(ug),liveChatReplayEndpoint:YV(J_),manageLiveChatUserEndpoint:YV(vU),
metadataUpdateCommand:YV(TU),moderateLiveChatEndpoint:YV(HU),modifyChannelNotificationPreferenceEndpoint:YV(OV),notificationOptOutEndpoint:YV(aV),openSuperStickerBuyFlowCommand:YV(kL),performCommentActionEndpoint:YV(wX),playlistEditEndpoint:YV(RC),playlistEditorEndpoint:YV(rh),recordNotificationInteractionsEndpoint:YV(zU),reelWatchEndpoint:YV(tb),refreshPanelEndpoint:YV(xL),removeUpcomingEventReminderEndpoint:YV(IV),resolveLocationCommand:YV(Xr),revealBusinessEmailCommand:YV(i8),searchEndpoint:YV(_.H27),
sendLiveChatMessageEndpoint:YV(ig),sendLiveChatVoteEndpoint:YV(m_),setSettingEndpoint:YV(e5),shareEntityServiceEndpoint:xV(S5),sharingProviderDataCommand:YV(dh),showEngagementPanelEndpoint:YV(eR),showMoreDrawerCommand:YV(h_),showSheetCommand:YV(SR),showDialogCommand:YV(qY),subscribeEndpoint:YV(qE),transcriptSubmitCaptionCorrectionCommand:YV(UF),undoFeedbackEndpoint:YV(V0),unsubscribeEndpoint:YV(hX),updateBackstagePostEndpoint:YV(oy),updateCommentEndpoint:YV(ay),updateCommentReplyEndpoint:YV(OA),updateCommentsSettingsEndpoint:YV(zZ),
updateCreatorChannelInnertubeCommand:YV(Xh),updateKidsBlacklistEndpoint:YV(nl),updateEngagementPanelContentCommand:YV(EV),updatePdgFeatureEnablementCommand:YV(WJ),updatedMetadataEndpoint:YV(wM),validateChannelHandleCommand:YV(TZ),updateChannelPageSettingsEndpoint:YV(mD),verifyAgeEndpoint:YV(fI),watchEndpoint:xV(q5),whitelistEditEndpoint:YV(kX),ypcCancelRecurrenceEndpoint:YV(HJ),ypcCompleteTransactionEndpoint:YV(Kl),ypcFixInstrumentEndpoint:YV(Ge),ypcGetCartEndpoint:YV(Fk),ypcGetOffersEndpoint:YV(bb),
ypcHandleTransactionEndpoint:xV(oC),ypcLogWalletAnalyticDataEndpoint:YV(jd),ypcOffersEndpoint:YV(IC),ypcPauseSubscriptionCommand:YV(ib),ypcRedeemCodeEndpoint:YV(mX),ypcResumeSubscriptionCommand:YV(Xk),ypcUpdateFopEndpoint:YV(Ge)},PN={},l1Z=(PN.GET_ACCOUNT_MENU=YV(gM),PN.GET_NOTIFICATIONS_MENU=YV(k11),PN.GET_NOTIFICATIONS_INBOX=YV(Q0),PN.GET_UNSEEN_NOTIFICATION_COUNT=YV(ZU),PN.GET_USER_MENTION_SUGGESTIONS=YV(pg),PN.LOAD_GUIDE=YV(uw4),PN.SUBMIT_FEEDBACK=YV(lg),PN),nm={},VVw=(nm.CONTINUATION_REQUEST_TYPE_BROWSE=
YV(j5),nm.CONTINUATION_REQUEST_TYPE_SEARCH=YV(BJ),nm.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=YV(S7),nm.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=YV(sV),nm.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=YV(QA),nm.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=YV(AX),nm.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=YV(Ll),nm.CONTINUATION_REQUEST_TYPE_GET_PANEL=YV(YL),nm),f1N={player:xV(q5),watchNext:YV(hz)},rlZ={player:xV(q5),reelItemWatch:YV(tb),reelWatchSequence:YV(sF)},ROc={watchEndpoint:xV(E7)},tV4=
{commandEndpointMap:Wl2,signalEndpointMap:l1Z,continuationEndpointMap:VVw,watchEndpointMap:f1N,reelWatchEndpointMap:rlZ,streamingEndpointMap:ROc};var sZs,LlZ,yl1;_.g91=((LlZ=(sZs=window).matchMedia)==null?void 0:(yl1=LlZ.call(sZs,"(prefers-reduced-motion: reduce)"))==null?void 0:yl1.matches)||!document.startViewTransition;var PIw={},n95={disableAllTransitions:_.g91,ignoredErrors:(PIw.DOCUMENT_HIDDEN=!0,PIw.WINDOW_SIZE_CHANGED=!0,PIw.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,PIw),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 CIe=_.tj("\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(",")),clL=function(W){this.viewTransitionCoordinator=W;this.isBrowseTransitionEnabled=_.gU("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.U("web_thumbnail_to_watch_transition");
this.isLockupThumbnailRegistrationEnabled=_.U("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.U("enable_plj_landing_page");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){W=_.yS("web_page_transition_exit_ms");var l=_.yS("web_page_transition_wait_ms"),
V=_.yS("web_page_transition_enter_ms"),f=_.yS("web_page_transition_watch_exit_ms"),r=_.yS("web_page_transition_watch_wait_ms"),R=_.yS("web_page_transition_watch_enter_ms");if(!isNaN(W)||!isNaN(l)||!isNaN(V))if(W=Xgn(CIe,W,l,V,f,r,R))l=document.createElement("style"),l.textContent=ndJ(W),document.head.appendChild(l)}};
clL.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var W={};this.viewTransitionCoordinator.registerElement(document.documentElement,(W.slide="root-slide",W["lockup-to-watch"]="root-lockup-to-watch",W["learning-journey"]="root-learning-journey",W))}};
_.G9M=function(W,l){W.isLockupToWatchTransitionEnabled&&W.isLockupThumbnailRegistrationEnabled&&(W.registeredLockupThumbnail?W.lockupThumbnailRegisteredFromWatchEndpoint?_.Qe(new _.bP("Lockup thumbnail registration order is incorrect.")):_.Qe(new _.bP("Lockup thumbnail already registered.")):(W.registeredLockupThumbnail=l,_.Bd2(W,l)))};
_.Bd2=function(W,l){var V={};W.viewTransitionCoordinator.registerElement(l,(V["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",V),!0)};
clL[k$]=[SP4];var Xbn={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 wbj=["videoPrimaryInfoRenderer","title"],AAj=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var dsL;dsL=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.Jlw=_.Q(function(W){W=_.Dd(W,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var l=W.data,V=W.playlistData,f=W.expanded,r=W.onExpandClick,R=W.isReadyToResume,y=function(){var d;return!((d=V())==null||!d.contents)},P=function(){var d=V();
return d&&d.totalVideos&&d.currentIndex!==void 0?d.currentIndex+1+" / "+d.totalVideos:""};
W=_.ip(function(){_.Cm(_.tY().resolve(_.Sl));return!1});
var n=_.ip(function(){y()&&r&&r()}),B={};
return _.C("ytd-miniplayer-info-bar",{class:_.If("ytdMiniplayerInfoBarHost",(B.ytdMiniplayerInfoBarHasPlaylistData=y,B)),"on:click":n},_.C("div",{class:"ytdMiniplayerInfoBarContent"},_.C("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":W},_.C(_.bH,{text:function(){var d=l();var J=V();if(J==null?0:J.contents){var D;d=(D=_.W4v(J))==null?void 0:D.title}else d=d==null?void 0:d.miniplayerTitle;return Q6j(d)},
noEndpoints:!0,ellipsisTruncate:!0})),_.C("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.C(_.c,{cond:R,then:function(){return _.C(noL,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:dsL})}}),_.C("h1",null,_.C(_.bH,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var d=l();var J=V();d=R()?{simpleText:_.wg("CONTINUE_WATCHING",void 0,"Continue watching")}:(J==null?0:J.contents)?J.titleText:d==null?void 0:d.miniplayerSubtitle;return Q6j(d)},
noEndpoints:!0,ellipsisTruncate:!0})),_.C(_.c,{cond:function(){return!!P()&&!R()},
then:function(){return _.C("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.C("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.C("span",null,P))}}))),_.C(_.c,{cond:y,
then:function(){return _.C("div",{class:"ytdMiniplayerInfoBarExpand"},_.C(_.zv,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(d){r&&(r(),d.stopPropagation())}}},
iconName:function(){return f()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Ye");var DsL;DsL=_.Q(function(W){return _.C("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.C(_.zv,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:W.onTap}},
iconName:"yt-icons:close"}))},"Ze");
_.UsN=_.Q(function(W){W=_.Dd(W,{playabilityStatus:void 0,isDisabled:!1});var l=W.size,V=W.playabilityStatus,f=W.isDisabled,r=_.WS("div");W=_.L(_.J4(void 0,void 0,"y6THVb"));var R=W.next().value,y=W.next().value;W=_.$h(_.k1);var P=!1,n=function(){return l().height<=0};
_.m1(function(){var D=l(),u=n(),H=R();H&&!u&&H.setInternalSize(D.width,D.height)},"qu2eI");
_.iz(function(){var D,u,H;return _.g(function(p){if(p.nextAddress==1){D=_.tY().resolve(_.Sl);u=D.getPlayerElement();if(!D.isMiniplayerActive()||!u||!r.value)return p.return();u.appendTo(r.value);return p.yield(u.getPlayerPromise(),2)}H=p.yieldResult;H.setSizeStyle(!1,!0);y(H);_.ju(p)})});
_.Xc(function(){B()});
_.m1(function(){var D=R();if(D)if(f()){var u=D.getPlayerState();(P=u===-1||u===1||u===3)&&D.pauseVideo()}else B()},"mCtQKc");
var B=function(){if(P){P=!1;var D;(D=R())==null||D.playVideo()}},d=_.ip(function(){_.Cm(_.tY().resolve(_.Sl))}),J={};
return _.C("ytd-miniplayer-player-container",{class:_.If("ytdMiniplayerPlayerContainerHost",(J.ytdMiniplayerPlayerContainerHidden=n,J.ytdMiniplayerPlayerContainerHostShortsPip=W,J)),style:_.Tm({width:function(){return l().width+"px"},
height:function(){return l().height+"px"}})},_.C("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:r}),_.C(_.c,{cond:function(){return!!V()&&!_.cES(V())},
then:function(){return _.C(G6Z,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var D;return((D=V())==null?void 0:D.errorScreen)||null},
status:function(){var D;return((D=V())==null?void 0:D.status)||null}})}}),_.C(_.c,{cond:f,
then:function(){return _.C("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":d},_.C(DsL,{onTap:function(){_.tY().resolve(_.Sl).close()}}))}}))},"$e");_.u72=_.Q(function(W){var l=W.toastData;var V=_.WS("ytd-miniplayer-toast");W=_.L(_.X3(function(){return!!l()}));
var f=W.next().value,r=W.next().value;W=_.L(_.J4(!1,void 0,"BvfNQe"));var R=W.next().value,y=W.next().value,P=function(){var d;return _.dE((d=l())==null?void 0:d.data.title)};
_.mw(function(){_.gt.requestAvailability();l()&&r(!1)});
var n,B;_.m1(function(){f()&&(_.FN(V.value,"iron-announce",{text:l().label+" "+P()}),n&&_.w8.cancelJob(n),n=_.w8.addLowPriorityJob(function(){y(!0)},2500))},"no1dZb");
_.m1(function(){R()&&(B&&_.w8.cancelJob(B),B=_.w8.addLowPriorityJob(function(){r(!1);y(!1)},300))},"G3yPNe");
W={};return _.C("ytd-miniplayer-toast",{el:V,class:_.If("ytdMiniplayerToastHost",(W.ytdMiniplayerToastOpening=function(){return f()},W.ytdMiniplayerToastClosing=function(){return R()},W))},_.C(_.c,{cond:function(){var d;
return(d=l())==null?void 0:d.data},
then:function(d){return _.C(k0v,{className:"ytdMiniplayerToastThumbnail",data:d,width:78})}}),_.C("div",{class:"ytdMiniplayerToastInfo"},_.C("div",{class:"ytdMiniplayerToastLabel"},function(){var d;
return(d=l())==null?void 0:d.label}),_.C("div",{class:"ytdMiniplayerToastTitle"},P)))},"af");var qSz;var EAY=null;var v9Z=_.Q(function(W){var l=W.progressState;var V=W.multiMarkersPlayerBarRenderer;var f=W.progressBarWidth;var r=function(){return V_z(V())},R=function(){return RLq(l())},y=function(){return f()*(l().playedTime/l().videoDuration)};
return _.C("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.C(_.G3,{each:r},function(P,n){return _.C(kz1,{modifiedProps:R,chapters:r,index:n,playedProgressWidth:y,backgroundGradientPosition:function(){var B=R(),d=r(),J=n(),D=y();return(B.playedTime-qP(_.k(d[J],el)))/B.playedTime*D}})}))},"bf"),kz1=_.Q(function(W){var l=W.modifiedProps;
var V=W.chapters;var f=W.index;var r=W.playedProgressWidth;var R=W.backgroundGradientPosition;W={};W=_.If("ytChapteredProgressBarChapteredPlayerBarChapter",(W.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return y().isScrubbing},W.ytChapteredProgressBarHoveredMacroMarker=function(){return y().scrubberHovering},W.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return y().videoPosition==="seen"},W));
var y=function(){return t_n(l(),V(),f())},P=function(){var n=l();
var B=V(),d=f();if(t_n(n,B,d).videoPosition!=="active")n=0;else{var J=qP(_.k(B[d],el));n=(n.playedTime-J)/((qP(_.k(B[d+1],el))||n.videoDuration)-J)}return n};
return _.C("div",{class:W,style:_.Tm({width:function(){var n=l(),B=V(),d=f(),J=_.k(B[d],el);B=_.k(B[d+1],el);return(B?qP(B)-qP(J):n.videoDuration-qP(J))/n.videoDuration*100+"%"},
"background-color":function(){a:{var n=y();switch(n.videoPosition){case "pending":n=n.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":n=n.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:n=""}}return n},
"background-size":function(){return(sN8(y())?r():"")+"px"},
"background-position-x":function(){return(sN8(y())?R():"")+"px"}})},_.C("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var n=l(),B=V(),d=f();if(t_n(n,B,d).videoPosition==="seen")var J=0;else J=qP(_.k(B[d],el)),B=qP(_.k(B[d+1],el))||n.videoDuration,n=n.videoDuration*n.percentLoaded,J=B<=n?1:J>=n?0:(n-J)/(B-J);return"width: "+J*100+"%"}}),_.C("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Tm({width:function(){return P()*100+"%"},
"background-size":function(){return(sN8(y(),P())?r():"")+"px"},
"background-position-x":function(){return(sN8(y(),P())?R():"")+"px"}})}))},"cf");var Hsw=function(W,l){l=l===void 0?zPL:l;var V,f=[],r,R=!1;return function(){var y=_.xk.apply(0,arguments);if(R&&V===this&&l(y,f))return r;r=W.apply(this,y);R=!0;V=this;f=y;return r}}(function(W){var l=W.heatMarkers,V=W.minHeightDp===void 0?0:W.minHeightDp,f=W.maxHeightDp===void 0?60:W.maxHeightDp;
var r=r===void 0?!1:r;var R=1E3/l.length;W=[];W.push({x:0,y:100});for(var y=0;y<l.length;y++){var P=void 0,n=((P=_.k(l[y],JPI))==null?void 0:P.heatMarkerIntensityScoreNormalized)||0;P=(y+.5)*R;n=100-_.xP(n*100,V/321*100,f/321*100);y!==0||r||W.push({x:0,y:n});W.push({x:P,y:n});y===l.length-1&&W.push({x:1E3,y:n})}W.push({x:1E3,y:100});l="";for(V=0;V<W.length;V++)r=W[V],V===0?r="M "+r.x.toFixed(1)+","+r.y.toFixed(1):(f=nyz(W[V-1],W[V-2],r),R=nyz(r,W[V-1],W[V+1],!0),r=" C "+(f.x.toFixed(1)+","+f.y.toFixed(1)+
" "+R.x.toFixed(1)+","+R.y.toFixed(1)+" "+r.x.toFixed(1)+","+r.y.toFixed(1))),l+=r;return l});var Kl1=_.Q(function(W){var l=W.progressBarProps;var V=W.config;var f={};W=_.If("ytHeatSeekerHost",(f.ytHeatSeekerHighContrast=W.highContrast,f));var r=function(){return zRz(V().chapterData)};
return _.C("yt-progress-bar-heatseeker",{class:W,style:function(){var R;return"height: 320px; display: "+(l().isDragging&&((R=r())==null?0:R.heatMarkers)?"block":"none")}},_.C(_.c,{cond:r,
then:function(R){return _.C(_.c,{cond:function(){return R().heatMarkers},
then:function(){return _.C("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.C("path",{d:function(){return Hsw(R())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"df");var Fls=_.Q(function(W){var l=W.progressBarProps;var V=W.config;W={};W=_.If("ytProgressBarLineProgressBarLine",(W.ytProgressBarLineProgressBarLineRounded=function(){return V().rounded},W.ytProgressBarLineProgressBarLineBottomInset=function(){return V().position===2},W));
return _.C("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.C("div",{class:W},_.C("div",{class:"ytProgressBarLineProgressBarBackground"}),_.C("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+l().percentLoaded*100+"%"}}),_.C("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var f=l();return"width: "+(f.videoDuration?_.xP(f.hoveredTime/f.videoDuration,0,1):0)*100+"%"}}),_.C("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+ZJg(l())*100+"%"}})))},"ef");
Fls.idomCompat=!0;var Gzw=_.Q(function(W){var l=W.progressBarProps;var V=W.playheadData;var f=W.interpolateDotPosition;var r=W.hidePlayhead;W={};var R=_.If("ytProgressBarPlayheadProgressBarPlayheadDot",(W.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return l().isDragging},W.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!l().isDragging&&r()},W));
return _.C("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Tm({"margin-left":function(){return OJz(l())*100+"%"},
transform:function(){return"translateX(-"+(f()?OJz(l())*12:6)+"px)"}})},_.C(_.c,{cond:function(){var y;
return(y=_.JG(V)())==null?void 0:y.playheadImage},
then:function(y){var P={};return _.C("div",{class:_.If("ytProgressBarPlayheadProgressBarPlayheadCustom",(P.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return l().isDragging},P.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!l().isDragging&&r()},P)),
style:_.Tm({"transform-origin":function(){return(f()?OJz(l())*20:10)+"px center"}})},_.C(_.dN,{data:y,
alt:"","aria-hidden":"true"}))},
else:function(){return _.C("div",{class:R,style:_.Tm({"transform-origin":function(){return(f()?OJz(l())*12:6)+"px center"}})})}}))},"ff");
Gzw.idomCompat=!0;var cN=function(W,l,V,f,r,R){this.getProgressBarRect=W;this.updateProgressBarRect=l;this.getFilmstripYPosition=V;this.setFineScrubbingDraggedTime=f;this.updateFilmStripDraggedYDistance=r;this.resetFilmStripYOffset=R;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.t$(this.onThrottledSeek,100,this)},bs2=function(W,l,V){return function(f){W.handleClick(f,l(),V())}},jZL=function(W,l){return function(V){ptZ(W,
V,o9L(V),l())}},I11=function(W,l){return function(V){ptZ(W,V,{x:V.clientX,
y:V.clientY},l())}},mse=function(W,l,V){return function(f){var r=l(),R=V();
ise(W,f,o9L(f),r,R,!0);if(R.onTouchMove)R.onTouchMove(r)}},TdL=function(W,l,V){return function(f){XtY(W,f,l(),V())}},wt1=function(W,l){return function(){W.handleMouseLeave(l())}},Ale=function(W,l,V){return function(){var f=l(),r=V();
BN(W,f,r);if(r.onTouchEnd)r.onTouchEnd(f)}},QZw=function(W,l,V){return function(){var f=l(),r=V();
BN(W,f,r);if(r.onTouchEnd)r.onTouchEnd(f)}},MVw=function(W,l,V){return function(){BN(W,l(),V())}},Zs7=function(W){return function(l){if(l.keyCode===39||l.keyCode===38){var V,f;
(V=W())==null||(f=V.playerApi)==null||f.seekBy(5,void 0,void 0,72)}else if(l.keyCode===37||l.keyCode===40){var r,R;(r=W())==null||(R=r.playerApi)==null||R.seekBy(-5,void 0,void 0,71)}}},Os1=function(W,l,V){return function(f){!V().disableScrubbing&&W.startPosition&&XtY(W,f,l(),V())}},a1Y=function(W,l,V){return function(){if(!V().disableScrubbing)if(W.startPosition){var f=l(),r=V();
BN(W,l(),V());if(r.onTouchEnd)r.onTouchEnd(f)}else l().setState({isDragging:!1})}},o9L=function(W){W=W.touches[0];
return{x:W.clientX,y:W.clientY}},XtY=function(W,l,V,f){if(l.buttons!==1){if(l.movementX||l.movementY)l.preventDefault(),l.stopPropagation(),W=zO5(W,V,l.clientX),V.setState({isHovering:!0,
hoveredTime:W*V.videoDuration})}else NdN(V),ise(W,l,{x:l.clientX,y:l.clientY},V,f,!1)};
cN.prototype.handleMouseLeave=function(W){NdN(W)};
var NdN=function(W){W.isHovering&&W.setState({isHovering:!1,hoveredTime:0})},ptZ=function(W,l,V,f){W.startPosition||(W.startPosition=V,W.updateProgressBarRect(),W.controlsWereVisibleBeforeDragging=f.controlsVisible,l.stopPropagation(),_.U("medium_progress_bar_modification")||l.preventDefault())},ise=function(W,l,V,f,r,R){if(W.startPosition)if(R&&r.isInlinePlayback&&W.startPosition&&!W.hasDraggedTheMinimumDistance&&Math.abs(V.y-W.startPosition.y)>Math.abs(V.x-W.startPosition.x))BN(W,f,r);
else if(l.preventDefault(),l.stopPropagation(),f.videoDuration&&(W.startPosition&&!W.hasDraggedTheMinimumDistance&&(W.hasDraggedTheMinimumDistance=Math.abs(V.x-W.startPosition.x)>=1),r.enableFineScrubbing&&(W.startPosition&&(W.isDraggedForFineScrubbing=-(V.y-W.startPosition.y)>=60),!W.startPosition||V.y>=W.startPosition.y||(f.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:L0x(f.draggedTime,f,r.chapterData)}),W.setFineScrubbingDraggedTime(f.draggedTime),W.updateFilmStripDraggedYDistance(W.startPosition.y,
V.y,f))),W.hasDraggedTheMinimumDistance)){l=zO5(W,f,V.x);if(W.isDraggedForFineScrubbing){var y;(y=f.playerApi)==null||y.pauseVideo();f.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:f.draggedTime,filmStripXDistance:L0x(l*f.videoDuration,f,r.chapterData)})}r.enableFineScrubbing&&(!r.enableFineScrubbing||W.getFilmstripYPosition(f)<68)||f.setState({draggedTime:l*f.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:W.controlsWereVisibleBeforeDragging});var P;(P=
r.cancelAutohideControlsFn)==null||P.call(r)}},BN=function(W,l,V){var f=V.enableFineScrubbing&&l.fineScrubbingActiveState!=="off";
if(l.isDragging||f){f={isDragging:!1,playedTime:l.draggedTime,controlsVisible:W.controlsWereVisibleBeforeDragging};V.enableFineScrubbing&&l.fineScrubbingActiveState!=="on"&&(W.resetFilmStripYOffset(),f.fineScrubbingActiveState="off");var r=r===void 0?EAY:r;var R=_.Wh(0);if(R&&r){var y=Math.round(l.playedTime*1E3),P=Math.round(l.draggedTime*1E3);y>2147483647||P>2147483647||_.cy(R,r,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(y),endMediaTimeMs:String(P),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}l.setState(f);
W.seekThrottle.fire(l.draggedTime,l,7);_.U("mweb_new_progress_bar_play_on_seek")&&W.resumeVideo(l);V.unmuteOnSeek&&(V=l.playerApi,l.volumeMuted&&(V==null||V.unMute()))}else l.setState({controlsVisible:!l.controlsVisible}),(R=V.triggerAutohideControlsAfterDelayFn)==null||R.call(V);W.startPosition=null;W.hasDraggedTheMinimumDistance=!1;W.isDraggedForFineScrubbing=!1;W.controlsWereVisibleBeforeDragging=!1};
cN.prototype.handleClick=function(W,l,V){this.updateProgressBarRect();W.stopPropagation();W=zO5(this,l,W.clientX)*l.videoDuration;l.setState({playedTime:W});if(l.playerState!==2){var f;(f=V.triggerAutohideControlsAfterDelayFn)==null||f.call(V)}this.seekThrottle.fire(W,l,7)};
var zO5=function(W,l,V){W=W.getProgressBarRect(l);return _.xP(0,(V-W.left)/W.width,1)};
cN.prototype.resumeVideo=function(W){if(W.draggedTime<W.videoDuration){var l;(l=W.playerApi)==null||l.playVideo()}};
cN.prototype.onThrottledSeek=function(W,l,V){if(l=l.playerApi){var f;if((f=l.getVideoData())==null?0:f.isLive)f=this.getProgressState(l),W+=(f==null?void 0:f.seekableStart)||0;l.seekTo(W,void 0,void 0,void 0,V)}};
cN.prototype.getProgressState=function(W){var l=W==null?void 0:W.getPresentingPlayerType();return W==null?void 0:W.getProgressState(l)};var eO7,xsw,qcY,Sc2,Ycc,E91,$sw,W11,lz1;eO7=_.Q(function(W){var l=W.progressBarProps;var V=W.config;var f=W.progressBarWidthPx;var r=W.chapterData;var R=CvF(l,function(){return V().isShortsPage}),y=function(){return!l().isHovering&&!V().isShortsPage};
W={};var P=_.If("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(W.ytPlayerStoryboardHostMwebShorts=function(){return V().isShortsPage&&!1},W));
return _.C("yt-player-storyboard",null,_.C(_.c,{cond:function(){return l().isDragging||l().isHovering},
then:function(){return _.C(_.c,{cond:R,then:function(n){return _.C(_.c,{cond:y,then:function(){return _.C("div",{class:P,"aria-hidden":"true"},_.C(Ycc,{props:l,config:V,isBigboard:!0,chapterData:r}))},
else:function(){return _.C(xsw,{props:l,frame:n,config:V,progressBarWidthPx:f,chapterData:r})}})}})}}))},"gf");
_.hO2=_.Q(function(W){var l=W.progressBarProps;var V=CvF(l,W.isShortsPage);return _.C("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.C(_.c,{cond:function(){return l().isDragging||l().isHovering},
then:function(){return _.C(_.c,{cond:V,then:function(f){return _.C(qcY,{frame:f,props:l,isBigboard:!0})}})}}))},"hf");
xsw=_.Q(function(W){var l=W.props;var V=W.frame;var f=W.config;var r=W.progressBarWidthPx;W=W.chapterData;var R={};R=_.If("ytPlayerStoryboardHost",(R.ytPlayerStoryboardHostMwebShorts=function(){return f().isShortsPage&&!1},R.ytPlayerStoryboardHostInlinePlayer=function(){return f().isInlinePlayer},R.ytPlayerStoryboardHostFadeIn=function(){return f().useFadeInAnimation},R));
return _.C("div",{class:R,"aria-hidden":"true",style:function(){var y=l(),P=yVq(V()),n=r();y=g8v(y)/y.videoDuration;var B=n*y,d=P/2+6;P=n-(P/2+6);return"left: "+(B<=d?d/n*100:B>=P?P/n*100:y*100)+"%"}},_.C(_.c,{cond:function(){var y=l();
return!(f().isShortsPage&&y.videoDuration<15)},
then:function(){return _.C(qcY,{frame:V,props:l,isBigboard:!1})}}),_.C(Ycc,{props:l,
config:f,isBigboard:!1,chapterData:W}))},"jf");
qcY=_.Q(function(W){var l=W.frame;var V=W.props;var f=W.isBigboard;var r=function(){var P,n;return(n=(P=V().playerApi)==null?void 0:P.getVideoContentRect())!=null?n:{width:0,height:0}},R=function(){return yVq(l())},y=function(){var P=l();
return P?P.height/P.rows:0};
W={};W=_.If((W.ytPlayerStoryboardBigboardImageWrapper=f,W.ytPlayerStoryboardStoryboardImageWrapper=function(){return!f()},W));
return _.C("div",{class:W,style:function(){return"width: "+(f()?r().width:R())+"px; height: "+(f()?r().height:y())+"px;"}},_.C(Sc2,{frame:l,
storyboardWidth:R,storyboardHeight:y,storyboardScale:function(){return(f()?r().width:R())/R()}}))},"kf");
Sc2=_.Q(function(W){var l=W.frame;var V=W.storyboardWidth;var f=W.storyboardHeight;var r=W.storyboardScale;var R=function(){var y=l().row,P=l().column,n=V(),B=f(),d=r();return{left:-P*n*d,top:-y*B*d}};
return _.C("img",{src:function(){return l().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+R().left+"px; top: "+R().top+"px; width: "+l().width*r()+"px; height: "+l().height*r()+"px;"}})},"lf");
Ycc=_.Q(function(W){var l=W.props;var V=W.config;var f=W.isBigboard;var r=W.chapterData;W={};W=_.If("ytPlayerStoryboardMetadata",(W.ytPlayerStoryboardMetadataBigboard=f,W));return _.C("div",{class:W},_.C(_.c,{cond:f,then:function(){return _.C(_.Lp,null,_.C(E91,{props:l,config:V}),_.C(_.c,{cond:function(){a:{var R=l();var y=V(),P=r(),n;if((y==null?0:y.activeChapter)&&((n=_.k(y==null?void 0:y.activeChapter,el))==null?0:n.title))R=!0;else{y=_.L(N4n(P));for(y=y.next();!y.done;y=y.next()){R=(y=_.k(y.value,
UDc))&&PvJ(R,y);break a}R=!1}}return R},
then:function(){return _.C($sw,{props:l,config:V,isBigboard:!0,chapterData:r})}}))},
else:function(){return _.C(_.Lp,null,_.C($sw,{props:l,config:V,isBigboard:!0,chapterData:r}),_.C(E91,{props:l,config:V}))}}))},"mf");
E91=_.Q(function(W){var l=W.props;var V=W.config;W={};W=_.If("ytPlayerStoryboardTimestamp",(W.ytPlayerStoryboardTimestampShorts=function(){return V().isShortsPage},W.ytPlayerStoryboardTimestampIsHovering=function(){return l().isHovering||V().isShortsPage&&!0},W));
return _.C("div",{class:W},_.C(_.Lp,null,function(){return _.n8z(g8v(l()))}))},"nf");
$sw=_.Q(function(W){var l=W.props;var V=W.config;var f=W.isBigboard;var r=W.chapterData;W={};f=_.If("ytPlayerStoryboardTitle",(W.ytPlayerStoryboardTitleBigboard=f,W));return _.C("div",{class:f},_.C(_.c,{cond:function(){return!V().isShortsPage},
then:function(){return _.C(W11,{props:l,activeChapter:function(){return V().activeChapter},
chapterData:r})}}))},"of");
W11=_.Q(function(W){var l=W.props;var V=W.activeChapter;var f=W.chapterData;return _.C(_.Lp,null,_.C(_.G3,{each:function(){return N4n(f())},
keyBy:"INDEX"},function(r){return _.C(_.Lp,null,_.C(_.c,{cond:function(){return _.k(r(),UDc)&&PvJ(l(),_.k(r(),UDc))},
then:function(){return _.C(lz1,{timedMarker:function(){return _.k(r(),UDc)}})}}))}),_.C(_.c,{cond:function(){var r;
return V()&&((r=_.k(V(),el))==null?void 0:r.title)},
then:function(r){return _.C(_.bH,{text:r,noPreWrap:!0})}}))},"pf");
lz1=_.Q(function(W){var l=W.timedMarker;return _.C(_.Lp,null,_.C("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.C(_.wN,{icon:function(){return l().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.C(_.bH,{text:function(){return l().label},
noPreWrap:!0}))},"qf");_.Vm2=_.Q(function(W){var l=W.progressBarProps;var V=W.playheadData;var f=W.config;W=_.WS("yt-progress-bar");var r=_.WS("div"),R=_.WS("div"),y=_.L(_.J4({width:0,left:0},void 0,"WloVn")),P=y.next().value,n=y.next().value,B=function(){R.value&&n(R.value.getBoundingClientRect())},d=function(){P().width<=0&&B();
return P()};
R_("resize",B);var J=new cN(d,function(){},function(){return 0},function(){},function(){},function(){}),D=function(){return l()};
y=_.L(_.J4(!1,void 0,"u8BZZb"));var u=y.next().value,H=y.next().value;y=_.ip(function(){H(!0);f().position===2?setTimeout(function(){B()},100):B()});
var p=_.ip(function(){H(!1);wt1(J,D)()}),X=_.ip(function(Ax){f().doSeekOnClick&&bs2(J,D,f)(Ax);
return!1}),w=_.ip(function(Ax){jZL(J,D)(Ax);
return!1}),O=_.ip(function(Ax){I11(J,D)(Ax);
return!1}),S=_.ip(function(Ax){mse(J,D,f)(Ax);
return!1}),N=_.ip(function(Ax){TdL(J,D,f)(Ax);
return!1}),x=_.ip(function(){Ale(J,D,f)();
return!1}),Y=_.ip(function(){QZw(J,D,f)();
return!1}),W8=_.ip(function(){MVw(J,D,f)();
return!1}),c8=_.ip(function(Ax){Zs7(D)(Ax);
return!1});
R_("mousemove",Os1(J,D,f));R_("mouseup",a1Y(J,D,f));_.mw(function(){$n6(r.value);H(!1);B();a1Y(J,D,f)()});
var B8={};B8=_.If("ytPlayerProgressBarHost",function(){return f().className},(B8.ytPlayerProgressBarHostReadOnly=function(){return f().disableScrubbing},B8.ytPlayerProgressBarHostHidden=function(){return f().hideProgressBar&&!u()},B8.ytPlayerProgressBarHostLowerPlayer=function(){return f().position===0},B8.ytPlayerProgressBarHostBottomEdge=function(){return f().position===1},B8.ytPlayerProgressBarHostBottomInset=function(){return f().position===2},B8.ytPlayerProgressBarHostCustom=function(){return f().position===
3},B8));
var Jx={},H8=_.If("ytPlayerProgressBarBackground",(Jx.ytPlayerProgressBarBackgroundHide=function(){return f().position===2&&!u()&&!l().isDragging},Jx));
Jx={};Jx=_.If("ytPlayerProgressBarDragContainer",(Jx.ytPlayerProgressBarDragContainerBottomEdge=function(){return f().position===1},Jx));
var Kq={};Kq=_.If("ytPlayerProgressBarProgressBar",(Kq.ytPlayerProgressBarProgressBarInset=function(){return f().position===2},Kq.ytPlayerProgressBarProgressBarInsetMinimized=function(){return f().position===2&&!u()&&!l().isDragging},Kq));
var Z4=function(){return Math.floor(ZJg(l())*100)};
return _.C("yt-progress-bar",{el:W,class:B8},_.C(_.c,{cond:function(){return f().position===2},
then:function(){return _.C("div",{class:H8})}}),_.C("div",{el:r,
"on:click":X,"on:touchstart":w,"on:touchmove":S,"on:mouseenter":y,"on:mousedown":O,"on:mouseleave":p,"on:mousemove":N,"on:mouseup":Y,"on:touchend":x,"on:touchcancel":W8,"on:keydown":c8,class:Jx,role:"slider","aria-valuenow":Z4,"aria-valuetext":function(){return Z4()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return l().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.wg("SEEK_SLIDER")},_.C("div",{el:R,class:Kq},_.C(Kl1,{progressBarProps:l,config:f,highContrast:function(){return!!f().isInlinePlayback}}),_.C(_.c,{cond:function(){return f().chapterData&&YS6(f().chapterData)},
then:function(){return _.C(v9Z,{progressState:l,multiMarkersPlayerBarRenderer:function(){return f().chapterData},
progressBarWidth:function(){return P().width}})},
else:function(){return _.C(Fls,{progressBarProps:l,config:f})}}),_.C(Gzw,{progressBarProps:l,
playheadData:V,interpolateDotPosition:function(){return f().position!==2},
hidePlayhead:function(){return f().playheadDotBehavior===1&&!u()}}))),_.C(eO7,{progressBarProps:l,
config:function(){return{activeChapter:rVz(l(),f().chapterData),getProgressBarWidthPx:function(){return d().width},
isShortsPage:!!f().isShortsPage,isInlinePlayer:!!f().isInlinePlayback,useFadeInAnimation:!!f().isInlinePlayback}},
progressBarWidthPx:function(){return P().width},
chapterData:function(){return f().chapterData}}))},"rf");
_.Vm2.idomCompat=!0;Object.assign({},_.xnU(),{setState:function(){},
domMeasurements:{},appApi:_.M4j(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var fzw;
_.r4Z=_.Q(function(){var W,l=(W=_.hm(cVS().playerApi))!=null?W:void 0;W=_.L(_.J4(!1,void 0,"Z9NQ1b"));var V=W.next().value,f=W.next().value;W=_.L(_.J4(!1,void 0,"HoVJXe"));var r=W.next().value,R=W.next().value;W=_.L(_.J4(!1,void 0,"DWCY3"));var y=W.next().value,P=W.next().value;W=_.L(_.J4(!1,void 0,"g4C2Zd"));var n=W.next().value,B=W.next().value;W=_.L(_.J4(0,void 0,"lmVfFb"));var d=W.next().value,J=W.next().value;W=_.L(_.J4(0,void 0,"mFLbzb"));var D=W.next().value,u=W.next().value;W=_.L(_.J4(!1,void 0,
"hQN4Wb"));var H=W.next().value,p=W.next().value;W=_.L(_.J4(0,void 0,"WWU0fb"));var X=W.next().value,w=W.next().value;W=_.L(_.J4(0,void 0,"MJ7LMd"));var O=W.next().value,S=W.next().value;W=_.L(_.J4("",void 0,"hnomOe"));var N=W.next().value,x=W.next().value;W=_.L(_.J4(-1,void 0,"ARe3pf"));var Y=W.next().value,W8=W.next().value,c8=_.v4(function(){var B8={controlsVisible:V(),isOverlayHidden:r(),shouldWaitToHideControls:y(),isDragging:n(),isHovering:H(),videoDuration:X(),playedTime:O(),videoId:N(),draggedTime:D(),
hoveredTime:d(),playerState:Y()};return Object.assign({},_.xnU(),B8,{domMeasurements:{},setState:function(Jx){Jx.controlsVisible!==void 0&&f(Jx.controlsVisible);Jx.isOverlayHidden!==void 0&&R(Jx.isOverlayHidden);Jx.shouldWaitToHideControls!==void 0&&P(Jx.shouldWaitToHideControls);Jx.isDragging!==void 0&&B(Jx.isDragging);Jx.isHovering!==void 0&&p(Jx.isHovering);Jx.draggedTime!==void 0&&u(Jx.draggedTime);Jx.hoveredTime!==void 0&&J(Jx.hoveredTime);Jx.videoDuration!==void 0&&w(Jx.videoDuration);Jx.playedTime!==
void 0&&S(Jx.playedTime);Jx.videoId!==void 0&&x(Jx.videoId);Jx.playerState!==void 0&&W8(Jx.playerState)},
appApi:_.M4j(),playerApi:l})},void 0,"Au4PIf");
_.iz(function(){l==null||l.addEventListener("onVideoProgress",SSn(c8));l==null||l.addEventListener("onVideoDataChange",hRU(c8));l==null||l.addEventListener("onStateChange",eR8(c8))});
_.Xc(function(){if(l==null?0:l.isReady())l==null||l.removeEventListener("onVideoProgress",SSn(c8)),l==null||l.removeEventListener("onVideoDataChange",hRU(c8)),l==null||l.removeEventListener("onStateChange",eR8(c8))});
return _.C("desktop-shorts-player-controls",null,_.C(fzw,{playerControlsProps:c8}))},"sf");
fzw=_.Q(function(W){var l=W.playerControlsProps;return _.C("div",{class:"desktopShortsPlayerControlsHost"},_.C(_.Vm2,{progressBarProps:l,config:function(){return{isShortsPage:!0,hideProgressBar:l().videoDuration<30&&l().playerState!==2&&!l().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"tf");_.RaN=_.Q(function(W){function l(B8){B8!==0||J()?B8>50&&(J()||!u())?(D(!1),H(!0)):B8<=50&&(J()||u())&&(D(!1),H(!1)):D(!0)}
function V(B8,Jx){var H8;return _.g(function(Kq){if(Kq.nextAddress==1)return Kq.yield(_.jJ(),2);H8=Kq.yieldResult;Jx&&H8?(H8.unMute(!0),B8&&(dMq(B8,H8.getVolume()),X(H8.getVolume()))):H8&&(H8.mute(!0),B8&&dMq(B8,0));_.ju(Kq)})}
function f(B8){var Jx,H8;return _.g(function(Kq){if(Kq.nextAddress==1)return Kq.yield(_.jJ(),2);Jx=Kq.yieldResult;H8=50;Jx&&(H8=Jx.getVolume(),Jx.isMuted()?dMq(B8,0):dMq(B8,H8));X(H8);_.ju(Kq)})}
var r=W.orientation;W=_.WS("desktop-shorts-volume-controls");var R=_.WS("button"),y=_.lN("input"),P=_.L(_.J4(!1,void 0,"MvN0Tc")),n=P.next().value,B=P.next().value,d=_.L(_.J4(!1,void 0,"aSjsEb"));P=d.next().value;d=d.next().value;var J=P,D=d;d=_.L(_.J4(!0,void 0,"FUh46d"));P=d.next().value;d=d.next().value;var u=P,H=d;P=_.L(_.J4(50,void 0,"yPke4d"));var p=P.next().value,X=P.next().value;P=_.v4(function(){var B8=J();return _.U("web_shorts_keyboard_enable_mute_shortcut")?B8?_.wg("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.wg("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):B8?_.wg("UNMUTE_VOLUME",void 0,"Unmute"):_.wg("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
d=_.v4(function(){var B8=J(),Jx=u();return{sources:[{clientResource:{imageName:B8?_.U("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":Jx?_.U("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.U("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var w=_.v4(function(){var B8=p();return J()?B8+"% volume muted":B8+"% volume"},void 0,"xZsRmc"),O=_.v4(function(){return r()==="vertical_down"},void 0,"FVqYmb");
_.mw(function(){function B8(){B(!0)}
function Jx(){B(!1)}
y&&y.value&&(y.value.addEventListener("focus",B8),y.value.addEventListener("focusout",Jx),f(y.value).then(function(){l(Number(JVz(y.value)))}));
R&&R.value&&(R.value.addEventListener("focus",B8),R.value.addEventListener("focusout",Jx));_.Xc(function(){var H8;y==null||(H8=y.value)==null||H8.removeEventListener("focus",B8);var Kq;y==null||(Kq=y.value)==null||Kq.removeEventListener("focusout",Jx);var Z4;R==null||(Z4=R.value)==null||Z4.removeEventListener("focus",B8);var Ax;R==null||(Ax=R.value)==null||Ax.removeEventListener("focusout",Jx)})});
var S=_.ip(function(){if(y&&y.value){var B8=Number(JVz(y.value));BQz(B8);X(B8);y.value.style.setProperty("--gradient-percent",B8+"%");l(B8)}return!1}),N=_.ip(function(){B(!0)}),x=_.ip(function(){y&&y.value&&(V(y.value,J()),D(!J()));
return!1}),Y={},W8={},c8={};
return _.C("desktop-shorts-volume-controls",{"on:pointerleave":_.ip(function(){B(!1)}),
class:_.If("ytdDesktopShortsVolumeControlsHost",(Y.ytdDesktopShortsVolumeControlsHostVertical=O,Y.ytdDesktopShortsVolumeControlsHostExpanded=n,Y)),el:W},_.C(_.c,{cond:function(){return!O()},
then:function(){var B8={};return _.C("div",{class:_.If("ytdDesktopShortsVolumeControlsBackgroundScrim",(B8.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=n,B8))})}}),_.C("div",{class:_.If((W8.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=O,W8))},_.C("button",{"aria-label":P,
title:P,el:R,"on:click":x,"on:pointerenter":N,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},d?_.C(_.dN,{data:d,alt:P,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.C("div",{class:_.If("ytdDesktopShortsVolumeControlsSliderContainer",(c8.ytdDesktopShortsVolumeControlsSliderContainerExpanded=n,c8.ytdDesktopShortsVolumeControlsSliderContainerVertical=O,c8.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=O,c8.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return n()&&O()},c8))},_.C("input",{"aria-label":_.wg("VOLUME"),
title:_.wg("VOLUME"),el:y,"on:input":S,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":p,"aria-valuetext":w,"aria-valuemin":0,"aria-valuemax":100})))},"uf");_.tm4=_.Q(function(W){var l=W.data;return _.C("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.C(_.Mq,{command:function(){return l().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.C(_.c,{cond:function(){return l().iconName},
then:function(V){return _.C(_.wN,{icon:V})}}),_.C("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return l().text}),_.C(_.c,{cond:function(){return l().showEndChevron},
then:function(){return _.C(_.wN,{icon:"CHEVRON_RIGHT"})}})))},"vf");var si7=_.Q(function(W){var l=W.data;var V=W.overlayDensity;W={};return _.C("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.C(_.QH,{data:function(){return l().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(f){var r=f.data;
return _.C(_.Px,{data:function(){return(V==null?void 0:V())===1?Object.assign({},r(),{avatar:{avatarViewModel:Object.assign({},_.k(r().avatar,_.$w),{avatarImageSize:"AVATAR_SIZE_M"})}}):r()}})}}),_.C(_.QH,{data:function(){return l().avatarStackViewModel}},{avatarStackViewModel:function(f){return _.C(_.n_,{data:f.data})}}),_.C(_.bH,{className:_.If("ytReelChannelBarViewModelChannelName",(W.ytReelChannelBarViewModelChannelNameLarge=function(){return(V==null?void 0:V())===1},W)),
text:function(){return l().channelName},
linkInheritColor:!0,userInput:!0}),_.C("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.C(_.QH,{data:function(){return l().subscribeButtonViewModel}},{subscribeButtonViewModel:function(f){var r=f.data;
return _.C(_.gi,{data:function(){return(V==null?void 0:V())===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:_.Nq})),_.C("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.C(_.QH,{data:function(){var f,r;return(r=_.k((f=l())==null?void 0:f.sponsorButtonViewModel,Ikc))==null?void 0:r.sponsorButton}},{buttonViewModel:function(f){return _.C(_.Nq,{data:f.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"wf");var L11=_.Q(function(W){var l=function(){var f;return(W==null?void 0:(f=W.overlayDensity)==null?void 0:f.call(W))===1?22:16},V={};
return _.C("yt-reel-multi-format-link-view-model",{class:_.If("ytReelMultiFormatLinkViewModelHost",(V.ytReelMultiFormatLinkViewModelHostTall=!0,V.ytReelMultiFormatLinkViewModelHostLarge=function(){var f;return((f=W.overlayDensity)==null?void 0:f.call(W))===1},V))},_.C(_.Mq,{ariaLabel:function(){return W.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return W.data().command}},_.C("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.C(_.c,{cond:function(){return W.data().icon},
then:function(f){return _.C(_.dN,{data:f,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:l})}}),_.C(_.bH,{text:function(){return W.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"xf");
L11.idomCompat=!0;var y4Z=_.Q(function(W){var l=W.data;var V=W.overlayDensity;var f=_.WS("yt-shorts-suggested-action-view-model");W=_.L(_.J4(!1,void 0,"XwMNzb"));var r=W.next().value,R=W.next().value;W=_.L(_.J4(!1,void 0,"ZysOx"));var y=W.next().value,P=W.next().value,n=function(){return l().isMultiLineSa},B=_.wH(GU4,function(){var N,x;
return(x=(N=l().toggleableContent)==null?void 0:N.entityKey)!=null?x:""}),d=function(){var N,x,Y;
return(Y=l().toggleableContent)!=null&&Y.entityKey?(x=(N=B())==null?void 0:N.value)!=null?x:!1:!1},J=function(){var N,x,Y,W8,c8,B8,Jx,H8,Kq,Z4,Ax;
return l().toggleableContent?d()?(N=l().toggleableContent)==null?void 0:N.toggledData:(x=l().toggleableContent)==null?void 0:x.untoggledData:{primaryText:(H8=(Y=l().defaultContent)==null?void 0:Y.primaryText)!=null?H8:l().text,secondaryText:(W8=l().defaultContent)==null?void 0:W8.secondaryText,onTapCommand:(Kq=(c8=l().defaultContent)==null?void 0:c8.onTapCommand)!=null?Kq:l().onTapCommand,icon:(Z4=(B8=l().defaultContent)==null?void 0:B8.icon)!=null?Z4:l().icon,image:(Ax=(Jx=l().defaultContent)==null?
void 0:Jx.image)!=null?Ax:l().image}},D=function(){return n()?l().trailingTapTarget:void 0},u=function(N,x){return function(){return r()?x:N}},H=function(){return{leadingSection:u("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(V==null?void 0:V())===1?u("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):u("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:u("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:u("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
W={};W=_.If((W.ytShortsSuggestedActionViewModelStaticHost=function(){return!n()},W.ytShortsSuggestedActionViewModelDynamicHost=n,W.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return n()&&y()},W.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return n()&&!y()},W));
_.mw(function(){if(n()){var N=0,x;if((x=l().animationParams)==null?0:x.shouldExpand){var Y,W8;N=((W8=(Y=l().animationParams)==null?void 0:Y.expansionDelaySecs)!=null?W8:0)*1E3}var c8,B8=((c8=l().animationParams)==null?0:c8.shouldExpand)?setTimeout(function(){R(!0)},N):void 0,Jx,H8;
N=((Jx=l().animationParams)==null?0:Jx.visibilityDelaySecs)?((H8=l().animationParams)==null?NaN:H8.visibilityDelaySecs)*1E3:0;var Kq=setTimeout(function(){P(!0)},N);
_.Xc(function(){B8&&clearTimeout(B8);clearTimeout(Kq)})}});
var p=function(N){_.sZ(N,Object.assign({},{form:{element:f.value}}))},X=_.ip(function(){var N,x=(N=J())==null?void 0:N.onTapCommand;
x&&p(x)}),w=_.ip(function(){var N,x;
if(N=(x=D())==null?void 0:x.onTapCommand)return p(N),!1}),O=_.Tm({"vertical-align":"bottom",
"border-radius":function(){var N;return n()?((N=l().defaultContent)==null?0:N.isCircleImage)?"50%":"4px":"0px"},
width:function(){var N,x,Y;return n()&&((N=l().defaultContent)==null?0:N.imageSize)?((Y=(x=l().defaultContent)==null?void 0:x.imageSize)!=null?Y:24)+"px":null},
height:function(){var N,x,Y;return n()&&((N=l().defaultContent)==null?0:N.imageSize)?((Y=(x=l().defaultContent)==null?void 0:x.imageSize)!=null?Y:24)+"px":null}}),S={};
return _.C("yt-shorts-suggested-action-view-model",{class:W,el:f},_.C("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.C("button",{class:_.If(function(){return n()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var N;
return(N=l().useFullRoundedBorder)!=null&&N?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!D()&&n()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":n()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var N;
return(N=l().disableFixedHeight)!=null&&N?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(S.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(V==null?void 0:V())===1},S)),
"on:click":X},_.C(_.ZS,{model:{color:4}}),_.C("div",{class:_.If(function(){return n()?H().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.C(_.c,{cond:function(){var N;
return(N=J())==null?void 0:N.image},
then:function(N){return _.C(_.dN,{data:N,alt:"",className:function(){return n()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:O})}}),_.C(_.c,{cond:function(){var N,x;
return(N=J())==null?void 0:(x=N.icon)==null?void 0:x.iconType},
then:function(N){return _.C(_.wN,{icon:N,active:d,className:function(){return n()?r()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.C("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.C(_.c,{cond:function(){var N;
return(N=J())==null?void 0:N.primaryText},
then:function(N){return _.C("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.C(_.bH,{text:N}))}}),_.C(_.c,{cond:function(){var N;
return(N=J())==null?void 0:N.secondaryText},
then:function(N){return _.C("div",{class:function(){return H().secondaryText()}},_.C(_.bH,{text:N}))}}))),_.C(_.c,{cond:D,
then:function(N){return _.C("div",{class:function(){return H().trailingSection()},
"aria-label":function(){var x;return(x=N().a11yLabel)!=null?x:""},
"on:click":w,role:"button",tabindex:0},_.C(_.ZS,{model:{color:4}}),_.C(_.wN,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"yf");var gW2=_.Q(function(W){var l=W.data;var V=W.overlayDensity;var f=_.WS("yt-shorts-video-title-view-model");W=_.ip(function(y){if(_.eJ(_.xw(y),f.value,["A".toString()]))return!1;(y=l().truncatedTextOnTapCommand)&&_.sZ(y);return!1});
var r={},R={};return _.C("yt-shorts-video-title-view-model",{el:f,class:_.If("ytShortsVideoTitleViewModelHost",(r.ytShortsVideoTitleViewModelHostClickable=function(){return!!l().truncatedTextOnTapCommand},r)),
"on:click":W},_.C("h2",{class:_.If("ytShortsVideoTitleViewModelShortsVideoTitle",(R.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(V==null?void 0:V())===1},R))},_.C(_.bH,{text:function(){return l().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0})))},"zf");_.PWc=_.Q(function(W){var l=W.data;var V=W.overlayDensity;var f=function(){return(V==null?void 0:V())===1};
return _.C("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.C(_.QH,{data:function(){return l().metadataItems}},{badgeViewModel:function(r){r=r.data;
return _.C("div",{class:_.If(function(){return f()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.C(_.T2,{data:r}))},
playerDisclosureViewModel:function(r){r=r.data;return _.C("div",{class:_.If(function(){return f()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.C(_.tm4,{data:r}))},
shortsSuggestedActionViewModel:function(r){r=r.data;return _.C("div",{class:_.If(function(){return f()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.C(y4Z,{data:r,
overlayDensity:V}))},
reelChannelBarViewModel:function(r){r=r.data;var R={};return _.C("div",{class:_.If("ytReelMetapanelViewModelMetapanelItem",(R.ytReelMetapanelViewModelExpansive=function(){return f()},R))},_.C(si7,{data:r,
overlayDensity:V}))},
reelMultiFormatLinkViewModel:function(r){r=r.data;var R={};return _.C("div",{class:_.If("ytReelMetapanelViewModelMetapanelItem",(R.ytReelMetapanelViewModelExpansive=function(){return f()},R))},_.C(L11,{data:r,
overlayDensity:V}))},
shortsVideoTitleViewModel:function(r){r=r.data;var R={};return _.C("div",{class:_.If("ytReelMetapanelViewModelMetapanelItem",(R.ytReelMetapanelViewModelExpansive=function(){return f()},R))},_.C(gW2,{data:r,
overlayDensity:V}))},
reelSoundMetadataViewModel:function(r){r=r.data;var R={};return _.C("div",{class:_.If("ytReelMetapanelViewModelMetapanelItem",(R.ytReelMetapanelViewModelExpansive=function(){return f()},R))},_.C(_.tuc,{data:r,
overlayDensity:V}))},
toggleButtonViewModel:function(r){r=r.data;var R={};return _.C("div",{class:_.If("ytReelMetapanelViewModelMetapanelItem",(R.ytReelMetapanelViewModelExpansive=function(){return f()},R))},_.C(_.gy,{data:r}))}}))},"Af");var nWZ=_.Q(function(W){var l=_.Dd(W,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),V=l.size,f=l.onTap,r=l.disabled,R=l.tooltipText;return _.C("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.C(_.zv,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:V(),disabled:r(),tooltipText:R(),onTap:f}},
iconName:W.iconType}))},"Bf"),CW1=_.Q(function(W){function l(d){d.stopPropagation();
d.code==="ArrowUp"?(d.preventDefault(),u0q(P.value)):d.code==="ArrowDown"?(d.preventDefault(),kBn(P.value)):d.code==="KeyM"?DMS():(d.code==="KeyK"||d.code==="Space")&&UMz(n())}
var V=_.Dd(W,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});W=V.previousButtonDisabled;var f=V.nextButtonDisabled,r=V.data,R=V.playabilityStatus,y=V.previewThumbnail,P=_.WS("ytd-shorts-miniplayer-overlay"),n=_.$h(_.QBS),B;_.iz(function(){(B=_.z7(P.value))&&B.addEventListener("keydown",l)});
_.Xc(function(){var d;(d=B)==null||d.removeEventListener("keydown",l)});
V=function(){var d,J,D;return(d=r())==null?void 0:(J=d.reelPlayerOverlayRenderer)==null?void 0:(D=J.likeButton)==null?void 0:D.likeButtonRenderer};
return _.C("ytd-shorts-miniplayer-overlay",{el:P,class:"ytdShortsMiniplayerOverlayHost"},_.C("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Tm({"background-image":function(){var d=y();return d?'url("'+_.F3(d.thumbnails)+'")':""}})}),_.C("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.C("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.C(nWZ,{iconType:function(){var d=n();
return d===2||d===-1||d===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){UMz(n())},
tooltipText:function(){var d=n();return d===1||d===3?_.wg("PLAYER_LABEL_PAUSE"):_.wg("PLAYER_LABEL_PLAY")}}),_.C(_.RaN,{orientation:"horizontal_right"})),_.C("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.C(nWZ,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:W,onTap:function(){u0q(P.value)},
tooltipText:_.wg("PREVIOUS_VIDEO_LABEL")}),_.C(nWZ,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:f,onTap:function(){kBn(P.value)},
tooltipText:_.wg("NEXT_VIDEO_LABEL")}),_.U("web_shorts_pip_like_button")?_.C("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.C(RJw,{buttonTooltipPosition:"left",data:V,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.C("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.C(_.c,{cond:function(){var d,J;return _.k((d=r())==null?void 0:(J=d.reelPlayerOverlayRenderer)==null?void 0:J.metapanel,
_.bE$)},
then:function(d){return _.C("div",{class:_.If("ytdShortsMiniplayerOverlayInteractive")},_.C(_.PWc,{data:d}))}})),_.C("div",{class:_.If("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var d;return!((d=r())==null||!d.adsOverlay)||R()&&!Cuz(R())}},_.C("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.C(_.r4Z,null)))),_.C(_.c,{cond:function(){var d=r(),J,D;
d=_.k(d==null?void 0:(J=d.adsOverlay)==null?void 0:(D=J.fulfillmentContent)==null?void 0:D.fulfilledLayout,udk);return _.k(d==null?void 0:d.renderingContent,GRX)},
then:function(d){return _.C("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.C(YEv,{data:d}))}}))},"Cf");var v88=_.Q(function(){var W=_.L(_.J4(new _.p5(NaN,NaN),void 0,"hq9Bjf")),l=W.next().value,V=W.next().value;W=_.L(_.J4(!1,void 0,"Mu3aZc"));var f=W.next().value,r=W.next().value,R=_.L(_.J4(!1,void 0,"LGtoFb"));W=R.next().value;var y=R.next().value,P=_.tY().resolve(_.Sl).miniplayerPropSignalMap[0],n=P.data,B=P.shortsData,d=P.nextButtonDisabled,J=P.shortsPreviewThumbnail,D=P.previousButtonDisabled,u=P.externalPlaylistData;R=P.toastData;var H=P.playabilityStatus,p=P.isDisabled,X=P.playerVe,w=P.closeVe;
P=_.$h(_.k1);_.$_("yt-pip-window-resized",function(x){V(x)});
_.$_("yt-activate-pip-miniplayer",function(){return _.g(function(x){y(!0);_.ju(x)})});
var O=function(){var x;return!((x=u())==null||!x.contents)&&f()},S=function(){var x=l(),Y=!!n(),W8=O();
x=x.clone();Y&&(x.height-=76);W8&&(x.height-=285);return x},N=function(){r(!f())};
_.m1(function(){var x=X(),Y=_.Wh(11),W8=_.$G(11);Y&&W8&&x&&(_.L0(Y,W8,x),W8=w())&&(_.yE(Y,x,[W8]),_.Py(Y,[W8]))},"fHkmfb");
return _.C("ytd-pip-container",{class:"ytdPipContainerHost"},_.C(_.c,{cond:W,then:function(){return _.C(_.UsN,{isDisabled:p,playabilityStatus:H,size:S})}}),_.C(_.c,{cond:n,
then:function(){return _.C(_.Jlw,{data:n,expanded:f,onExpandClick:N,playlistData:u})}}),_.C(_.c,{cond:O,
then:function(){return _.C("div",{class:"ytdPipContainerPlaylistPanel"},_.C(_.f4Z,{data:u,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.C(_.c,{cond:P,
then:function(){return _.C(CW1,{data:B,nextButtonDisabled:d,previousButtonDisabled:D,playabilityStatus:H,previewThumbnail:J})}}),_.C("div",{class:"ytdPipContainerToast"},_.C(_.u72,{toastData:R})))},"Df");var dz=function(W,l){var V=this;this.pipController=W;this.JSC$18717_clientRoot=l;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=T4z();this.watchPipEnabled=_.U("web_watch_pip");this.shortsPipEnabled=_.U("web_shorts_pip");this.JSC$18717_watchWhileEnabled=_.U("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;_.Eb(_.DJ(),m5U,function(f){V.isSingleOptionSurveyActive=f});
this.JSC$18717_onPlayerPlayVideo=this.JSC$18717_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);_.qJ(_.eC.getInstance(),this.miniplayerServiceActionMap,this.JSC$18717_clientRoot);W.pictureInPictureSupported()&&_.XC("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},diL,HW2,U_s,K1Y,F15,pv1;
dz.prototype.handleMediaSessionPipActivation=function(){var W=this,l;return _.g(function(V){_.hJ().mediaSessionPipActivation=!0;l=_.tY().resolve(_.Bp);return l.isOnWatch()&&W.watchPipEnabled?(_.hJ().watchPipActivation=!0,_.c4Y(W,l.data),V.jumpTo(0)):l.isOnShorts()&&W.shortsPipEnabled?(_.hJ().shortsPipActivation=!0,_.B91(W),V.jumpTo(0)):W.isMiniplayerActive()&&W.watchPipEnabled&&!W.watchWhileMode?V.yield(d_4(W),0):V.jumpTo(0)})};
var d_4=function(W){var l,V,f,r;return _.g(function(R){if(R.nextAddress==1)return l=!W.miniplayerToPipMode,V=W.playerElement,f=W.miniplayerData,r=W.watchResponse,R.yield(W.deactivate(),2);if(R.nextAddress!=3)return l?(_.hJ().mediaSessionPipActivation=!0,_.hJ().watchPipActivation=!0):_.hJ().miniplayerButtonActivation=!0,R.yield(W.activate(V,f,r),3);W.miniplayerToPipMode=l;_.ju(R)})};
dz.prototype.onDownloadedVideoDeleted=function(W){var l,V=_.k((l=this.miniplayerData)==null?void 0:l.watchEndpoint,_.Bh),f,r;V&&((f=this.watchResponse)==null?void 0:(r=f.playerResponse)==null?void 0:r.offlineState)!==void 0&&(l=V.videoId)&&W&&l===W&&this.close()};
dz.prototype.onShowMiniplayerCommand=function(W){var l=this,V,f,r,R,y,P,n,B,d,J,D;return _.g(function(u){switch(u.nextAddress){case 1:return V=_.k(W,JuB),r=(f=V)==null?void 0:f.miniplayerCommand,R=_.k(r,_.Bh),r&&R&&!l.active?u.yield(_.RB.getInstance(),2):u.return();case 2:return y=u.yieldResult,u.yield((P=y)==null?void 0:P.get("yt-miniplayer-shown-video-id"),3);case 3:n=u.yieldResult;B=R.videoId;if(!B||n===B)return u.return();d=_.tY().resolve(_.Bp);if(d.isOnWatch())return _.Qe(Error("Mj")),u.return();
J={channelItem:{externalId:btoa(B)}};l.readyToResumeVe=_.GY(121253,void 0,void 0,J);_.hJ().showMiniplayerCommandActivation=!0;return u.yield(_.oy9(l,r,!0),4);case 4:return l.active&&(_.JF(l,{readyToResumeVe:l.readyToResumeVe,isReadyToResume:!0}),l.isReadyToResume=!0),u.yield((D=y)==null?void 0:D.set("yt-miniplayer-shown-video-id",R.videoId),5);case 5:l.readyToResumeVe=void 0,_.ju(u)}})};
dz.prototype.init=function(W){this.miniplayerEl?_.Qe(new _.bP("MiniplayerService already initialized.")):this.miniplayerEl=W};
dz.prototype.isInitialized=function(){var W=!!this.miniplayerEl;W||_.Qe(new _.bP("MiniplayerService used before initialized."));return W};
_.c4Y=function(W,l){if(W.isInitialized()){var V=_.YP(l.response,!1,l.playerResponse),f=_.tY().resolve(_.Bp).getPlayerFromWatch();_.hJ().currentEndpoint=V.watchEndpoint||null;W.activate(f,V,l)}};
_.B91=function(W){if(W.isInitialized()){var l=_.tY().resolve(_.Bp).getPlayerFromShorts();W.activate(l)}};
diL=function(W,l){var V;(V=!W.isInitialized())||(V=_.tY().resolve(_.Bp).isOnWatch()&&W.watchPipMode,V=!(W.isMiniplayerActive()&&(_.hJ().userActivation||_.hJ().lockupActivation||V)));if(V)return!1;J47(W,l)?_.Cm(W):pv1(W,l);return W.watchPipMode?!_.tY().resolve(_.Bp).isOnWatch():!0};
dz.prototype.isMiniplayerActive=function(){return this.active};
var J47=function(W,l){var V;l=(V=_.k(l,_.Bh))==null?void 0:V.videoId;var f,r;W=(r=_.k((f=W.miniplayerData)==null?void 0:f.watchEndpoint,_.Bh))==null?void 0:r.videoId;return l!=null&&l===W};
dz.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.FN(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.Gt(this.miniplayerEl,"yt-navigate-home-action"))};
_.oy9=function(W,l,V,f){V=V===void 0?!1:V;var r,R,y;return _.g(function(P){switch(P.nextAddress){case 1:if(W.active){P.jumpTo(2);break}r=_.tY().resolve(_.Bp);if(y=(R=W.playerElement)!=null?R:r.getPlayerFromWatch()){P.jumpTo(3);break}return P.yield(_.tY().resolve(_.vp),4);case 4:y=r.getPlayerFromWatch();case 3:if(!y){_.Qe(Error("Oj"));P.jumpTo(2);break}return P.yield(W.activate(y,f),2);case 2:return W.active?P.yield(pv1(W,l,V),0):P.return()}})};
dz.prototype.activate=function(W,l,V){var f=this,r,R,y,P,n,B,d,J,D;return _.g(function(u){switch(u.nextAddress){case 1:if(!f.isInitialized())return u.return();if(!W)return _.Qe(Error("Oj")),u.return();if(_.IOM()||f.isMiniplayerActive())var H=!0;else H=_.hJ().watchPipActivation||_.hJ().watchWhileActivation,_.tY().resolve(_.Bp).isOnWatch()&&!H?(_.Qe(new _.bP("miniplayer activated on watch page")),H=!0):H=_.hJ().watchWhileActivation?f.userDeactivatedWatchWhile||!!document.pictureInPictureElement||evq():
!1;if(H)return juk(),u.return();r=_.hJ().mediaSessionPipActivation;R=_.hJ().shortsPipActivation;y=_.hJ().watchPipActivation;n=(P=_.hJ().watchWhileActivation)||y;B=y||R;if(!f.pictureInPictureEnabled()||!B){u.jumpTo(2);break}return u.yield(D_5(f,r),3);case 3:if(!u.yieldResult)return _.Qe(Error("Nj")),juk(),u.return();case 2:return f.setActive(!0),f.watchResponse=V,f.playerElement=W,f.updateMiniplayerData(l),u.yield(U_s(f,W),4);case 4:if(!f.active)return _.Qe(new _.bP("miniplayer deactivated during activation")),
f.removePlayerListeners(),u.return();H=_.tY().resolve(_.dZ);H.addEventListener("yt-navigate",_.mz(f,f.onPlaylistNavigate));H.addEventListener("yt-playlist-data-updated",_.mz(f,f.JSC$18717_onPlaylistDataUpdated));f.JSC$18717_onPlaylistDataUpdated();juk();f.JSC$18717_watchWhileEnabled&&_.ucw(f,P);f.pictureInPictureEnabled()&&f.shortsPipEnabled&&(f.shortsPipMode=R,_.DJ().dispatch(dQk(f.shortsPipMode)));f.pictureInPictureEnabled()&&f.watchPipEnabled&&(f.watchPipMode=y,_.hvS(f.handleMediaSessionPipActivation));
f.player&&(d=f.player.getPlayerState(),J=d===1,_.DJ().dispatch(Kne(d)),_.bj(f.miniplayerEl,"yt-miniplayer-play-state-changed",[J]),_.hJ().isVideoPlaying=J);_.bj(f.miniplayerEl,"yt-miniplayer-endpoint-changed");k_1(f);_.vWc(f);if(f.shortsPipMode||f.watchPipMode)u=u.yield(_.Gt(f.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{H=u.yield;var p=_.Gt(f.miniplayerEl,"yt-activate-miniplayer",[n])[0];u=H.call(u,p,6)}return u;case 6:if(f.watchResponse){H=f.getScreenLayer();p=_.Wh(0);var X=DVg(0);p&&X&&
(_.VW(p,X,H),H===0&&dVj(void 0,0))}HW2(f);K1Y(f,!0);(D=f.getPlayerElement())==null||D.focusOnPlayer();_.ju(u)}})};
dz.prototype.updateMiniplayerData=function(W){this.miniplayerData=W;_.JF(this,{data:W})};
_.vWc=function(W){var l,V,f=((l=W.miniplayerData)==null?void 0:(V=l.miniplayerRenderer)==null?void 0:V.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";l=W.watchWhileMode||W.watchPipMode?f&&!_.tY().resolve(_.Bp).isOnWatch():f;_.JF(W,{isDisabled:l});var r,R;V=_.k((r=W.miniplayerData)==null?void 0:(R=r.miniplayerRenderer)==null?void 0:R.minimizedEndpoint,_.Ss);l&&V&&_.tY().resolve(_.sT).openSheet({openPopupActionCommand:{openPopupAction:V}},W.miniplayerEl)};
HW2=function(W){if(W.watchResponse&&!F15(W)){var l,V=(l=W.watchResponse.playerResponse)==null?void 0:l.trackingParams;V&&(_.JF(W,{expandVe:_.GY(35989),closeVe:_.GY(34699),readyToResumeCloseVe:_.GY(131070),repositionVe:_.GY(226204),resizeVe:_.GY(226205)}),_.JF(W,{playerVe:_.zG(V)}))}};
U_s=function(W,l){return _.g(function(V){if(V.nextAddress==1)return l.preparePlayer(),V.yield(l.getPlayerPromise(),2);W.player=V.yieldResult;W.player&&(W.player.addEventListener("onPlayVideo",W.JSC$18717_onPlayerPlayVideo),W.player.addEventListener("onCloseMiniplayer",W.onPlayerCloseMiniplayer),W.player.addEventListener("onExpandMiniplayer",W.onPlayerExpandMiniplayer),W.player.addEventListener("onStateChange",W.onPlayerStateChange));_.ju(V)})};
_.t=dz.prototype;_.t.JSC$18717_onPlayerPlayVideo=function(W){var l=W.sessionData&&"autonav"in W.sessionData,V;W.sessionData&&W.sessionData.itct&&(V=W.sessionData.itct);var f=W.watchEndpoint;l=f&&l?_.Zlx(f,V):_.vy(W.videoId,W.listId||void 0,V);W.sessionData&&_.Ue(_.k(l.commandMetadata,_.XN).url,W.sessionData);pv1(this,l)};
_.t.onPlayerExpandMiniplayer=function(){_.Cm(this)};
_.t.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.t.onPlayerStateChange=function(){if(this.player){var W=this.player.getPlayerState(),l=W===1;_.DJ().dispatch(Kne(W));_.DJ().dispatch(_.bFv(W));_.bj(this.miniplayerEl,"yt-miniplayer-play-state-changed",[l]);_.hJ().isVideoPlaying=l;if(W===0){l=!_.IH.getInstance().isAutoplaySetExplicitly();var V,f,r,R,y,P,n=(V=this.watchResponse.response)==null?void 0:(f=V.contents)==null?void 0:(r=f.twoColumnWatchNextResults)==null?void 0:(R=r.autoplay)==null?void 0:(y=R.autoplay)==null?void 0:(P=y.autoplayExplicitChoiceDialogRenderer)==
null?void 0:P.confirmDialogRenderer;l&&n&&this.player.setAutonavState(1)}W===0&&this.watchWhileMode&&this.deactivate()}};
_.t.onPlaylistNavigate=function(W,l){var V=this,f,r,R,y,P,n,B;return _.g(function(d){if(d.nextAddress==1){if(!_.k(l.endpoint,_.Bh))return d.return();_.hJ().currentEndpoint=l.endpoint;_.bj(V.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.tY().resolve(_.Bp).isOnWatch()&&(V.watchWhileMode||V.watchPipMode))return d.return();W.stopPropagation();(R=(r=_.k((f=l.endpoint)==null?void 0:f.commandMetadata,_.XN))==null?void 0:r.url)&&l.tempData&&!_.MC.isEmpty(l.tempData)&&_.Ue(R,l.tempData);y={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};P=new oae(function(){return V.getPlayerElement()},y,{layer:V.getScreenLayer()});
n=function(J){P.processChunk({endpoint:l.endpoint,data:J})};
G_7(V);V.miniplayerFetchRequest=bWe(V,l.endpoint,n);_.HG(d,2);return d.yield(V.miniplayerFetchRequest,4)}if(d.nextAddress!=2)return B=d.yieldResult,p41(V,B),_.qL(d,0);_.pc(d);_.ju(d)})};
_.t.JSC$18717_onPlaylistDataUpdated=function(){var W=_.tY().resolve(_.dZ).getPlaylistData();this.hasPlaylistData=!!W;_.JF(this,{externalPlaylistData:W||{}})};
_.t.close=function(W){if(this.isInitialized())if(W){if(!((this.watchWhileMode||this.watchPipMode)&&_.tY().resolve(_.Bp).isOnWatch()||this.shortsPipMode)){var l;(l=this.getPlayerElement())==null||l.stop()}this.deactivate()}else _.kC().closeMiniplayer(this.miniplayerEl)};
_.t.deactivate=function(W){var l=this,V,f,r,R;return _.g(function(y){if(y.nextAddress==1){if(!l.isInitialized()||!l.active)return y.return();l.setActive(!1);G_7(l);(V=!!W&&J47(l,W))&&l.isSingleOptionSurveyActive&&_.Gt(l.miniplayerEl,"yt-show-watch-page-survey",[l.isSingleOptionSurveyActive]);return y.yield(oWZ(l),2)}if(y.nextAddress!=3){K1Y(l,!1);l.isReadyToResume=!1;l.watchResponse=void 0;l.updateMiniplayerData(void 0);l.shortsPipMode&&(l.shortsPipMode=!1,_.DJ().dispatch(dQk(l.shortsPipMode)),okZ(l.pipController),
(f=l.player)==null||f.setInternalSize(NaN,NaN));l.watchPipMode&&(l.watchPipMode=!1,okZ(l.pipController));(r=l.watchWhileMode)&&_.ucw(l,!1);l.removePlayerListeners();var P=_.tY().resolve(_.dZ);P.removeEventListener("yt-navigate",_.mz(l,l.onPlaylistNavigate));P.removeEventListener("yt-playlist-data-updated",_.mz(l,l.JSC$18717_onPlaylistDataUpdated));_.hJ().currentEndpoint=null;_.bj(l.miniplayerEl,"yt-miniplayer-endpoint-changed");l.playerElement=null;juk();if(l.shortsPipMode||l.watchPipMode)y=y.jumpTo(3);
else{P=y.yield;var n=_.Gt(l.miniplayerEl,"yt-deactivate-miniplayer",[V,r])[0];y=P.call(y,n,3)}return y}(R=l.player)==null||R.setInternalSize(NaN,NaN);l.player=null;_.ju(y)})};
var oWZ=function(W){var l;return _.g(function(V){l=_.tY().resolve(_.Bp);return W.shortsPipMode?V.yield(l.movePlayerToShorts(W.playerElement),0):V.yield(l.movePlayerToWatch(W.playerElement),0)})};
dz.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18717_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
dz.prototype.setActive=function(W){this.active=W;this.isSingleOptionSurveyActive?_.Gt(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.Gt(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.DJ().dispatch(_.GT({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.ucw=function(W,l){W.watchWhileMode=l;_.JF(W,{watchWhile:l})};
K1Y=function(W,l){if(!F15(W))if(W.shortsPipMode||W.watchPipMode){var V;(V=W.player)==null||V.setDocumentPictureInPicture(l)}else{var f;(f=W.player)==null||f.setMinimized(l)}};
F15=function(W){return W.watchWhileMode&&_.U("kevlar_watch_while_counterfactual")};
_.Cm=function(W){var l;return _.g(function(V){switch(V.nextAddress){case 1:if(!W.isInitialized())return V.return();_.HG(V,2);return V.yield(W.miniplayerFetchRequest,4);case 4:_.qL(V,3);break;case 2:_.pc(V);case 3:W.watchResponse&&W.miniplayerData&&W.miniplayerData.watchEndpoint?(l={url:W.watchResponse.url,endpoint:W.miniplayerData.watchEndpoint,data:W.watchResponse,miniplayer:!0},_.FN(W.miniplayerEl,"yt-navigate-cache",l)):W.miniplayerData&&W.miniplayerData.watchEndpoint&&_.FN(W.miniplayerEl,"yt-navigate",
{endpoint:W.miniplayerData.watchEndpoint}),_.ju(V)}})};
pv1=function(W,l,V){var f,r,R,y;return _.g(function(P){if(P.nextAddress==1){if(J47(W,l))return P.return();_.hJ().currentEndpoint=l;_.bj(W.miniplayerEl,"yt-miniplayer-endpoint-changed");_.bj(W.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.hJ().isVideoPlaying=!1;f={clientParams:{miniplayer:!0,autoSaveToQueue:!V}};r=new oae(function(){return W.getPlayerElement()},f,{layer:W.getScreenLayer(),
parentLayer:0},void 0,W.readyToResumeVe);R=function(n){var B,d,J=Object.assign({},(B=n.playerResponse)==null?void 0:(d=B.playerConfig)==null?void 0:d.playbackStartConfig,{startPaused:!0}),D;V&&((D=n.playerResponse)==null?0:D.playerConfig)&&(n.playerResponse.playerConfig.playbackStartConfig=J);r.processChunk({endpoint:l,data:n})};
G_7(W);W.miniplayerFetchRequest=bWe(W,l,R);_.HG(P,2);return P.yield(W.miniplayerFetchRequest,4)}if(P.nextAddress!=2)return y=P.yieldResult,p41(W,y),_.qL(P,0);_.pc(P);_.ju(P)})};
dz.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var G_7=function(W){W.miniplayerFetchRequest&&(W.miniplayerFetchRequest.cancel&&W.miniplayerFetchRequest.cancel("Active request obsolete"),W.miniplayerFetchRequest=null)},bWe=function(W,l,V){var f=_.lH.instance,r,R=(r=_.k(l.commandMetadata,_.XN))==null?void 0:r.url,y;
r=!R||_.U("disable_miniplayer_tempdata")?{}:(y=rug(R))!=null?y:{};return WF(f,l,r,window.location.href,"watch",function(P,n){V(n)},function(P){return P!==W.miniplayerFetchRequest})},p41=function(W,l){var V;
_.g(function(f){if(!l)return f.return();W.watchResponse=l;HW2(W);k_1(W);V=_.YP(l.response,!1,l.playerResponse);if(W.isMiniplayerActive()){l.response&&(W.playerElement.watchNextData=l.response);var r=_.MC.getValueByKeys.apply(_.MC,[l].concat(_.QK(M9a)));_.MC.getValueByKeys.apply(_.MC,[l].concat(_.QK(NDk)))&&r&&_.tY().resolve(_.dZ).setAutoplayRenderer(r);if(r)if(_.U("kevlar_is_pupi_enabled")){var R,y,P,n,B,d=((R=l.response)==null?0:(y=R.playerOverlays)==null?0:(P=y.playerOverlayRenderer)==null?0:(n=
P.autonavToggle)==null?0:(B=n.autoplaySwitchButtonRenderer)==null?0:B.enabled)?2:1;_.IH.getInstance().setState(d,!1,!1)}else R=JuF()?2:1,(d=W.player)==null||d.setAutonavState(R);W.updateMiniplayerData(V);_.vWc(W)}_.ju(f)})},k_1=function(W){var l,V,f=(l=W.watchResponse)==null?void 0:(V=l.playerResponse)==null?void 0:V.playabilityStatus,r;
l=f==null?void 0:(r=f.miniplayer)==null?void 0:r.miniplayerRenderer;(l==null?void 0:l.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&l.minimizedEndpoint&&_.pN(W.miniplayerEl,[l.minimizedEndpoint]);_.JF(W,{playabilityStatus:f})};
dz.prototype.openToast=function(W,l){_.JF(this,{toastData:{data:W,label:l}})};
_.JF=function(W,l){(0,W.miniplayerPropSignalMap[1])(l)};
dz.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var W;return this.playerElement?this.playerElement:(W=_.GS(this.miniplayerEl).querySelector("#player-container"))==null?void 0:W.firstElementChild};
dz.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var D_5=function(W,l){l=l===void 0?!1:l;var V,f,r,R,y,P,n;return _.g(function(B){if(B.nextAddress==1){V=navigator.userActivation.isActive||l;if(!V||!W.pictureInPictureSupported())return B.return(!1);f=jiY(W);r=f.width;R=f.height;return B.yield(W.pipController.openWindow({width:r,height:R}),2)}y=B.yieldResult;P=W.pipController.getWindow();if(!P||!y)return B.return(!1);P.document.body.style.overflow="hidden";n=HYF(P);jv4(W.pipController,function(){Iz1(W);n()});
return B.return(!0)})},jiY=function(W){var l=_.hJ().shortsPipActivation,V,f;
W=l?.5625:(f=(V=W.player)==null?void 0:V.getVideoAspectRatio())!=null?f:16/9;V=Math.min(window.innerWidth,window.innerHeight)/2;l=l?0:76;return W>1?new _.p5(V,l+V/W):new _.p5(V*W,l+V)},Iz1=function(W){var l;
_.g(function(V){l=_.tY().resolve(_.Bp);return l.isOnWatch()&&W.watchPipMode||l.isOnShorts()&&W.shortsPipMode?V.yield(W.deactivate(),0):W.miniplayerToPipMode?V.yield(d_4(W),0):W.watchPipMode?V.yield(_.Cm(W),0):V.jumpTo(0)})};
dz.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.rc.Object.defineProperties(dz.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
dz[k$]=[IaZ,CQX];var iWN="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(" "),
m_1="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(" "),X4e="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
T95="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var w47=null;var A4s={},QiZ=(A4s.initialized={priority:10,callback:function(W){var l=_.tY();l.addProvider({provide:Qic,useClass:Oc1});l.addProvider({provide:_.Zc7,useFactory:function(){return new MmX}});
l.addProvider({provide:PK,useValue:_.M4("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});l.addProvider({provide:ocY,useValue:5184E6});l.addProvider({provide:$1w,useValue:_.Am()});l.addProvider({provide:svZ,useClass:CYZ});l.addProvider({provide:un,useClass:un});l.addProvider({provide:_.vp,useFactory:function(){return JTB.promise}});
l.addProvider({provide:_.UQ1,useFactory:function(){return _.DQI.promise}});
l.addProvider({provide:AF8,useValue:function(){var n;return((n=_.Jy())==null?void 0:n.getPlayer())||null}});
var V={};l.addProvider((V.provide=_.wh,V.useFactory=function(n,B){return function(){return mhz(n,B)}},V[k$]=[PK,
ocY],V));V={};l.addProvider((V.provide=_.zJ,V.useClass=KN2,V[k$]=[PK,ocY],V));V={};l.addProvider((V.provide=_.M_z,V.useClass=peY,V[k$]=[_.zJ],V));l.addProvider({provide:VN,useFactory:_.DJ});l.addProvider({provide:dl,useFactory:_.DJ});l.addProvider({provide:dIs,useFactory:_.DJ});l.addProvider({provide:l91,useFactory:_.DJ});l.addProvider({provide:_.Jp,useFactory:_.DJ});l.addProvider({provide:e7,useValue:_.wJ});l.addProvider({provide:XGY,useClass:TEz});l.addProvider({provide:tLs,useClass:RI4});l.addProvider({provide:vJ,
useClass:vJ});l.addProvider({provide:q5,useClass:q5});l.addProvider({provide:hz,useClass:hz});l.addProvider({provide:E7,useClass:E7});l.addProvider({provide:oC,useClass:oC});l.addProvider({provide:rM,useClass:rM});l.addProvider({provide:S5,useClass:S5});l.addProvider({provide:_.Csw,useValue:tV4});l.addProvider({provide:_.yM,useFactory:_.Qq});l.addProvider({provide:z5,useFactory:_.MT});V={};l.addProvider((V.provide=KPz,V.useFactory=function(n){return function(B){var d=d===void 0?{}:d;var J,D,u=(D=
_.k((J=B.endpoint)==null?void 0:J.commandMetadata,_.XN))==null?void 0:D.rootVe;if(u){var H,p;if(J=B.previousCsn||((p=_.k((H=B.endpoint)==null?void 0:H.commandMetadata,xlI))==null?void 0:p.parentCsn)){var X=X===void 0?{}:X;if(J!==_.Wh(X.layer)||u!==DVg(X.layer))Hzx(J,X.cttAuthInfo,X.layer||0),dVj(J,X.layer||0),H=X.layer||0,_.Qj(JkY(H===void 0?0:H),u);d.parentCsn=J}B.endpoint&&J?Cra(n,B.endpoint,d):_.Ob(n,u,void 0,d);var w;((w=B.response)==null?0:w.trackingParams)&&n.graftServerVe(B.response.trackingParams);
var O;((O=B.playerResponse)==null?0:O.trackingParams)&&n.graftServerVe(B.playerResponse.trackingParams);var S;((S=B.reelWatchSequenceResponse)==null?0:S.trackingParams)&&n.graftServerVe(B.reelWatchSequenceResponse.trackingParams)}}},V[k$]=[_.yM],V));
V={};l.addProvider((V.provide=DIc,V.useClass=JO5,V[k$]=[e7,_.Jp],V));V={};l.addProvider((V.provide=ed,V.useClass=ed,V[k$]=[_.vp,_.Jp],V));V={};l.addProvider((V.provide=ze,V.useClass=ze,V[k$]=[dl,_.s6],V));l.addProvider({provide:_.K7H,useClass:mI1});V={};l.addProvider((V.provide=_.tq,V.useClass=bM7,V[k$]=[_.K7H],V));l.addProvider({provide:_.sT,useClass:Sd});l.addProvider({provide:_.x1Y,useClass:kus});l.addProvider({provide:_.L9,useClass:qZ});V={};l.addProvider((V.provide=_.M9,V.useClass=iMs,V[k$]=
[_.M9],V));l.addProvider({provide:_.OI,useClass:$gw});l.addProvider({provide:sv,useClass:sv});l.addProvider({provide:pO,useClass:pO});l.addProvider({provide:CO,useClass:CO});V={};l.addProvider((V.provide=e8,V.useClass=e8,V[k$]=[_.s6,_.Vb],V));l.addProvider({provide:kK,useClass:hb});V={};l.addProvider((V.provide=KO,V.useClass=KO,V[k$]=[_.sT,kK],V));_.U("web_enable_feedback_endpoint_resolver")&&(V={},l.addProvider((V.provide=fO,V.useClass=fO,V[k$]=[VN,lq],V)),l.addProvider({provide:lq,useClass:vcN}));
_.U("web_enable_feedback_endpoint_resolver_batch_2")&&(V={},l.addProvider((V.provide=Rd,V.useClass=Rd,V[k$]=[VN],V)),V={},l.addProvider((V.provide=rp,V.useClass=rp,V[k$]=[lq],V)));V={};l.addProvider((V.provide=vK,V.useClass=vK,V[k$]=[_.L9,kK],V));V={};l.addProvider((V.provide=Ji,V.useClass=Ji,V[k$]=[_.L9],V));V={};l.addProvider((V.provide=HK,V.useClass=HK,V[k$]=[_.Vb,_.tq],V));V={};l.addProvider((V.provide=uq,V.useClass=uq,V[k$]=[_.Vb,_.yM],V));l.addProvider({provide:hi,useClass:hi});V={};l.addProvider((V.provide=
ad,V.useClass=ad,V[k$]=[VN],V));l.addProvider({provide:gX,useClass:gX});l.addProvider({provide:yA,useClass:yA});V={};l.addProvider((V.provide=ng,V.useClass=ng,V[k$]=[VN],V));V={};l.addProvider((V.provide=Cg,V.useClass=Cg,V[k$]=[_.Vb,VN],V));V={};l.addProvider((V.provide=c6,V.useClass=c6,V[k$]=[VN],V));V={};l.addProvider((V.provide=B6,V.useClass=B6,V[k$]=[VN],V));V={};l.addProvider((V.provide=DV,V.useClass=DV,V[k$]=[_.tq],V));V={};l.addProvider((V.provide=l8,V.useClass=l8,V[k$]=[_.yM],V));V={};l.addProvider((V.provide=
sA,V.useClass=sA,V[k$]=[e0],V));V={};l.addProvider((V.provide=Lg,V.useClass=Lg,V[k$]=[e0],V));l.addProvider({provide:rX,useClass:rX});l.addProvider({provide:Ry,useClass:Ry});l.addProvider({provide:W6,useClass:W6});V={};l.addProvider((V.provide=Fi,V.useClass=Fi,V[k$]=[_.tq,_.s6],V));l.addProvider({provide:gp,useClass:gp});V={};l.addProvider((V.provide=Uv,V.useClass=Uv,V[k$]=[_.Vb,_.tq],V));l.addProvider({provide:cK,useClass:cK});V={};l.addProvider((V.provide=ZV,V.useClass=ZV,V[k$]=[VN,_.Vb,_.M9],V));
V={};l.addProvider((V.provide=Ai,V.useClass=Ai,V[k$]=[_.Vb,_.s6],V));l.addProvider({provide:fEk,useValue:YQU});l.addProvider({provide:yoe,useValue:V5n});l.addProvider({provide:QN,useClass:QN});V={};l.addProvider((V.provide=wp,V.useClass=wp,V[k$]=[VN],V));V={};l.addProvider((V.provide=Ov,V.useClass=Ov,V[k$]=[_.OI,_.s6],V));V={};l.addProvider((V.provide=ti,V.useClass=ti,V[k$]=[_.s6],V));l.addProvider({provide:WK,useFactory:function(){return new WK(_.DJ())}});
l.addProvider({provide:zL8,useFactory:_.$V.getInstance});V={};l.addProvider((V.provide=nO,V.useClass=nO,V[k$]=[PK,zL8,_.s6],V));l.addProvider({provide:LO,useClass:LO});l.addProvider({provide:qf,useClass:qf});l.addProvider({provide:S8,useClass:S8});l.addProvider({provide:_.h3,useClass:_.h3});l.addProvider({provide:DD,useClass:DD});V={};l.addProvider((V.provide=mR,V.useClass=mR,V[k$]=[dl],V));V={};l.addProvider((V.provide=Xi,V.useClass=Xi,V[k$]=[_.s6],V));_.U("web_enable_prefetching_videos_on_home")&&
(l.addProvider({provide:aC,useClass:aC}),l.addProvider({provide:Lm,useClass:Lm}));V={};l.addProvider((V.provide=JX,V.useClass=JX,V[k$]=[_.s6],V));l.addProvider({provide:Ea,useClass:Ea});V={};l.addProvider((V.provide=S0,V.useClass=S0,V[k$]=[_.Vb,_.s6],V));V={};l.addProvider((V.provide=$4,V.useClass=$4,V[k$]=[_.s6],V));V={};l.addProvider((V.provide=yD,V.useClass=yD,V[k$]=[_.Vb,_.s6],V));l.addProvider({provide:j0,useClass:j0});V={};l.addProvider((V.provide=od,V.useClass=od,V[k$]=[dl,_.s6],V));l.addProvider({provide:Id,
useClass:Id});V={};l.addProvider((V.provide=kb,V.useClass=kb,V[k$]=[dl,_.s6,_.Vb],V));V={};l.addProvider((V.provide=v6,V.useClass=v6,V[k$]=[_.s6],V));V={};l.addProvider((V.provide=u8,V.useClass=u8,V[k$]=[_.s6,_.Vb],V));V={};l.addProvider((V.provide=T5,V.useClass=T5,V[k$]=[_.vp],V));V={};l.addProvider((V.provide=iq,V.useClass=iq,V[k$]=[_.vp],V));l.addProvider({provide:xK,useClass:xK});l.addProvider({provide:q9,useClass:q9});l.addProvider({provide:P6,useClass:P6});l.addProvider({provide:Ev,useClass:Ev});
l.addProvider({provide:YK,useClass:YK});l.addProvider({provide:BK,useClass:BK});l.addProvider({provide:N9,useClass:N9});_.U("kevlar_enable_mss_lazy_load")&&l.addProvider({provide:_.$P,useClass:FYw});l.addProvider({provide:_.$C,useClass:$X});l.addProvider({provide:jb,useFactory:function(){return _.eC.getInstance()}});
l.addProvider({provide:cO5,useFactory:xh6});l.addProvider({provide:e0,useFactory:function(){return _.RB.getInstance()}});
l.addProvider({provide:yTc,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});V={};l.addProvider((V.provide=_.NZ,V.useClass=_.NZ,V[k$]=[_.vp,_.s6,_.yM,cO5,e0,jb,yTc,e7],V));l.addProvider({provide:_.qz,useClass:SW9});l.addProvider({provide:_.I$5,useClass:jXw});V={};l.addProvider((V.provide=dp,V.useClass=dp,V[k$]=[_.I$5],V));V={};l.addProvider((V.provide=_.YX,V.useFactory=function(n){return n.upliftCompletionResolver.promise},V[k$]=[DIc],V));
V=_.ZL("IS_SHELL_LOAD")?"aa":"eocs";var f=_.ZL("IS_SHELL_LOAD")?3:2;_.DI().parkOrScheduleJob(function(){uX1()},f,V);
_.DI().parkOrScheduleJob(function(){_.tY().resolve(ed).start()},2,"eocs");
_.DI().parkOrScheduleJob(function(){BaH()},2,"eocs");
_.DI().parkOrScheduleJob(function(){_.tY().resolve(ze).start()},2,"eocs");
_.U("kevlar_debug_data_app_registration_ks")||yF8();l.addProvider({provide:_.OZ,useValue:new yxw(W.root)});l.addProvider({provide:NJ,useValue:new $Bx});l.addProvider({provide:_.Jx1,useValue:new BSc(W.root)});l.addProvider({provide:_.lm,useValue:new dg5});l.addProvider({provide:_.fA,useClass:$M});l.addProvider({provide:IaZ,useClass:EF});_.U("kevlar_network_sli_killswitch")||l.addProvider({provide:SxH,useValue:WII});l.addProvider({provide:TIw,useFactory:ZTv});_.U("web_bind_fetch")&&(V={},l.addProvider((V.provide=
wGc,V.useFactory=OT6,V[k$]=[_.R0(TIw)],V)));_.U("web_bind_window_request")&&(V={},l.addProvider((V.provide=Qt1,V.useFactory=a6z,V[k$]=[_.R0(TIw)],V)));_.U("web_bind_text_decoder")&&(V={},l.addProvider((V.provide=Muw,V.useFactory=zYx,V[k$]=[_.R0(TIw)],V)));V={};l.addProvider((V.provide=fc2,V.useFactory=kFz,V[k$]=[_.YX,VN,_.wh],V));V={};l.addProvider((V.provide=VYs,V.useClass=H6,V[k$]=[fc2],V));l.addProvider({provide:DH2,useClass:c1w});l.addProvider({provide:Ec4,useClass:WNY});V=[].concat(_.QK(gH));
_.U("web_continuation_response_processing")&&V.push(_.VH);V.push(KT1);_.U("enable_share_panel_navigation_logging_fix_on_web")&&V.push(_.OBI);l.addProvider({provide:KX8,useValue:V});l.addProvider({provide:xMv,useClass:SMN});l.addProvider({provide:VtH,useClass:Ed1});V={};l.addProvider((V.provide=aHv,V.useClass=bqY,V[k$]=[dl],V));_.w8.addLowPriorityJob(function(){CRx()});
V={};l.addProvider((V.provide=rhI,V.useFactory=function(n){return function(B){var d,J=(d=_.k(B.commandMetadata,_.XN))==null?void 0:d.url;if(!J)throw new _.bP("No URL for PBJ Command",B);J=iNF(J,{pbj:"1"});d=$T6(J,{})||{};d=Object.assign({},d,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.M4("STS").toString()});B=_.U6({command:JSON.stringify(B),session_token:_.M4("XSRF_TOKEN")});return n.fetch(J,{method:"POST",headers:d,body:B})}},V[k$]=[VtH],V));
V=[];V.push(l.resolve(Ec4));f={};f=(f.client_location=_.$V.getInstance(),f.consistency=_.UAn(),f.entities=l.resolve(tLs),f.response_received_commands=l.resolve(xMv),f.store=l.resolve(_.M_z),f.tokens=l.resolve(Ec4),f);_.U("web_service_params_response_processor")&&(l.addProvider({provide:e6H,useFactory:function(){var n={};return n.CSI=Y0v(),n.ECATCHER=NFv(),n}}),l.addProvider({provide:TQJ,
useClass:qxw}),f.service_params=l.resolve(TQJ));if(_.U("web_shorts_prefetch_service_enabled")){var r=new oZw(l.resolve(_.zJ));f.shorts_prefetch=r}f.adblock_detection=l.resolve(aHv);l.addProvider({provide:_.qt,useClass:_.qt});r=l.resolve(_.Csw);var R=[];_.U("PremiumClientSharedConfig__enable_att_context_processor")&&(l.addProvider({provide:zJ1,useClass:ZqN}),R.push(l.resolve(zJ1)));if(_.U("owl_pl_await")){var y={};l.addProvider((y.provide=bcN,y.useFactory=function(n){return new FQ1(n)},y[k$]=[_.qt],
y));
R.push(l.resolve(bcN))}BXe(r,l.resolve(VtH),l.resolve(XGY),f,l.resolve(_.zJ),V,R,l.resolve(VYs),l.resolve(DH2));l.addProvider({provide:_.Vb,useValue:_.ty.instance});_.U("start_client_gcf")&&l.addProvider({provide:oo,useValue:Bc$()});l.addProvider({provide:vk5,useFactory:function(){return new vk5(_.tY().resolve(_.qt),_.RB.getInstance())}});
_.DI().parkOrScheduleJob(function(){HM2()},1,"eocs");
V={};l.addProvider((V.provide=xX,V.useClass=xX,V[k$]=[_.wh,_.Vb],V));l.addProvider({provide:_.YP4,useFactory:_.sW.getInstance});_.DI().parkOrScheduleJob(function(){_.tY().resolve(xX).refresh()},0,"eocs");
Rxv(tV4.watchEndpointMap||{},r.reelWatchEndpointMap||{},W.injector.resolve(_.Vb));l.addProvider({provide:XA,useValue:_.lH.instance});_.U("kevlar_signal_collection_killswitch")||(V={},l.addProvider((V.provide=tee,V.useClass=tee,V[k$]=[PK,z5],V)),_.DI().parkOrScheduleJob(function(){_.tY().resolve(tee).record()},1,"eocs"));
_.U("web_debug_handler_registration_killswitch")||_.DI().parkOrScheduleJob(function(){sqv("DOWNLOAD_PES",YoY);_.U("offline_client_state_export_ks")||sqv("OFFLINE_CLIENT_STATE",atq)},0,"eocs");
_.U("kevlar_prevent_polymer_dynamic_font_load")&&_.DI().parkOrScheduleJob(function(){var n=[_.dO(nNZ),_.dO(Chc)];n=_.L(n);for(var B=n.next();!B.done;B=n.next()){B=B.value;var d=document.createElement("link");_.gI(d,B,"stylesheet");document.head.appendChild(d)}},1,"eocs");
V=W.injector.resolve(_.Vb);_.a4L.instance=new _.a4L(V);FFg(X8Z(new Oqs(V)));V={};W.injector.addProvider((V.provide=tH,V.useFactory=function(n){(n=n==null?void 0:n.getCurrentPage())?n=n.visibilityObserver:(w47||(w47=FaJ()),n=w47);return n},V[k$]=[_.R0(_.Bp)],V.skipCache=!0,V));
l.addProvider({provide:_.Sl,useClass:dz});l.addProvider({provide:Eh,useClass:rKL});W.injector.addProvider({provide:$Ok,useValue:LjY});l.addProvider({provide:OrB,useValue:OLq});l.addProvider({provide:_.nP,useValue:$Kz});W=l.addProvider;qPH||(qPH=new eyL);W.call(l,{provide:_.WN,useValue:qPH});l.addProvider({provide:_.cI,useValue:_.M4("HTML_DIR")==="rtl"?"rtl":"ltr"});l.addProvider({provide:Lkw,useClass:U1H});l.addProvider({provide:_.iD,useClass:l3});_.tY().addProvider({provide:gc2,useValue:_.U("enable_web_delhi_icons")?
m_1.concat(T95):iWN.concat(X4e)});l.addProvider({provide:_.fm,useClass:_.fm});l.addProvider({provide:_.LYZ,useValue:new sUN});l.addProvider({provide:RFI,useClass:f$7});l.addProvider({provide:$K,useClass:$K});l.addProvider({provide:VA,useClass:VA});W={};l.addProvider((W.provide=bq,W.useClass=bq,W[k$]=[_.Vb,_.tq],W));l.addProvider({provide:UA,useClass:UA});l.addProvider({provide:KoL,useClass:Tas});l.addProvider({provide:tX,useClass:tX});l.addProvider({provide:ate,useValue:b$X});l.addProvider({provide:_.FQ,
useClass:rZw});_.U("enable_payments_purchase_manager")&&l.addProvider({provide:eJw,useClass:NS4});l.addProvider({provide:PhL,useFactory:function(){return function(n){return _.gN7(n)}}});
l.addProvider({provide:_.qM4,useClass:hIs});W={};l.addProvider((W.provide=dX,W.useClass=dX,W[k$]=[_.qM4],W));l.addProvider({provide:fg,useClass:fg});l.addProvider({provide:Dbv,useValue:hFv});l.addProvider({provide:D8c,useValue:_.rL5});l.addProvider({provide:DmY,useClass:X$Z});l.addProvider({provide:hy1,useValue:n95});W={};l.addProvider((W.provide=SP4,W.useClass=Ek2,W[k$]=[hy1],W));W={};l.addProvider((W.provide=_.$U,W.useClass=clL,W[k$]=[SP4],W));W={};l.addProvider((W.provide=_.Rq,W.useClass=rz,W[k$]=
[_.Jp,_.fA],W));if(_.U("web_explore_hub_on_hover")||_.U("web_client_explore_hub_on_hover"))W={},l.addProvider((W.provide=yN,W.useClass=yN,W[k$]=[_.Vb,jb],W));if(_.U("web_enable_renderer_logger")){var P=new mF7;yux(function(){P.abort()});
l.addProvider({provide:XTz,useValue:new L71(P.signal)})}l.addProvider({provide:V0L,useValue:jV4});l.addProvider({provide:DiF,useClass:jwL})}},A4s);var Mmw={},ZWN=(Mmw.initialized={priority:10,callback:function(){if(!h6s){t1v();eYg("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.BA(_.QW(eYg,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.U("log_heartbeat_with_lifecycles")){var W={};iy.instance||(iy.instance=new iy);iy.instance.install((W.document_visible={callback:q06,priority:10},W.document_hidden={callback:q06,priority:10},W))}else _.rv(document,"visibilitychange",q06);h6s=!0}(W=_.Wh())&&W!=="UNDEFINED_CSN"&&ckU(W)}},Mmw);var OW2={},azw=(OW2.initialized={callback:function(W){var l=_.GY(232091),V=W.injector.resolve(_.yM);_.aH(V,l);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?K0S()&&_.Nl(V,l):(W=W.injector.resolve(PhL)("refresh_detector"))&&(W.get("first_tab_load")?_.Nl(V,l):W.set("first_tab_load","1"))}},OW2);var za1={},N9w=(za1.initialized={priority:10,callback:iY8},za1);var YR5={},x_w=(YR5.initialized={priority:0,callback:function(){var W=new B9a,l="other";_.Gy?l="chrome":_.Fe?l="firefox":_.O6?l="safari":li&&(l="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(V){W.increment(_.K7(),V,l)}).catch(function(){W.increment(_.K7(),!1,l)}):W.increment(_.K7(),!1,l)}},YR5);var eaY={},qR7=(eaY.rendering={priority:8,callback:mMx},eaY);var ha5={},SR2=(ha5.rendering={priority:10,callback:q$z},ha5.rendered={callback:eLn},ha5),EWe={},$_4=(EWe.rendering={callback:q$z},EWe.rendered={callback:eLn},EWe);var Wwc=!1,lLw={},Vi1=(lLw.initialized={priority:10,callback:function(){Wwc||(oGz({didPatch:function(W){W.el&&RRS(W.el,W.props)},
didUnmount:function(W){f2U(W.el)}}),Wwc=!0)}},lLw);var fL4=/^\/shorts\/?$/;_.Qj("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:{}}}}}}});_.U("kevlar_enable_mss")&&(_.AYF(new Rue),OhS());
(function(){var W=document.querySelector("ytd-app");if(!W)throw Error("Pj");W=new tF({root:W,injector:_.tY()});W.install(ZWN);var l={};W.install((l.initialized={priority:10,callback:dyg},l));_.U("wp_lat_b")&&(l={},W.install((l.initialized={priority:10,callback:function(){AEg()}},l)));
l={};W.install((l.rendered={priority:0,callback:Cr6},l));l={};W.install((l.rendered={priority:0,callback:function(){_.w8.addLowPriorityJob(function(){_.u9Y>1&&(to8(),Prx())},4E4)}},l));
W.install(Mtc);W.install(azw);W.install(Vi1);dnj();W.install(q1Y);W.install(mCH);W.install(AsY);W.install($H2);W.install(rOw);W.install(xCs);W.install(QiZ);_.U("kevlar_enable_mss_lazy_load")&&W.install(N9w);W.install(TO5);W.install(x_w);if(!_.ZL("IS_SHELL_LOAD")||_.U("kevlar_fetch_initial_data_promise_client")||_.U("sw_nav_preload_pbj")){var V=_.JY(window.location.href);l=V&&V==="/watch";V=V&&V.match(fL4);l?W.install($_4):V?W.install(qR7):W.install(SR2)}else W.install(jUY);W.install(O52);_.U("web_enable_prefetching_videos_on_home")&&
W.install($C1);_.U("start_client_gcf")&&W.install(xFs);W.install(e45);(new d_I).increment("INSTALLED");W.install(S14);W.install(b52);W.transition("initialized");oyn()})();
_.i0=[[["a2luZCNmanRhb215a21udGQ=","dWUjdGx5cTZlMW92d2lwdmFs"],"c3N5dGM5aXFBRF9QTEFDRU1FTlRfS0lORF9NSUxMSVNFQ09ORFMjOGFndg=="]];_.ID=["bENhbGxiYWNrcyNsZXB6a2w4YzFkcmlnbG9iYQ==","Y3RlZCMyaHJzdmgxYmVpNWhvbkFibm9ybWFsaXR5RGV0ZQ==","dThncjRkbmExb25BZFNraXAjazly","c3BvbnNlI3hra3BvYTF6bTJrZHJhd19wbGF5ZXJfcmU=","ZGpqZ29pb3BsYXllckFkcyM4cDh3Yw=="];_.K6="bENhbGxiYWNrcyNsZXB6a2w4YzFkcmlnbG9iYQ== Y3RlZCMyaHJzdmgxYmVpNWhvbkFibm9ybWFsaXR5RGV0ZQ== dThncjRkbmExb25BZFNraXAjazly c3BvbnNlI3hra3BvYTF6bTJrZHJhd19wbGF5ZXJfcmU= ZTl3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjdTNrdWlsN2tyZQ== bjVyMWU1aW0wYWJfc2FfZWYjMWpx ZGpqZ29pb3BsYXllckFkcyM4cDh3Yw==".split(" ");
_._ModuleManager_initialize=function(W,l){if(!_.wd){if(!_.Al)return;_.AYF(_.Al())}_.wd.setAllModuleInfoString(W,l)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/NSzT5/syb/syc/kevlar_main_module:1,4,5,6,7,8,9/sye:2/syd:5,b,e/syf:f/syg/syh:6/syi/h8y2qb:4,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:3,9,h,j,n/syl:f/sym:1,c,f,h,l,n/syn:q/nmfa2d:j,p,r/syo:7,q/syp:i,j,r,t/CF909:p,u/Tm0L3c:u/L3n37:g,i,j,p,t/iuT5Oc',['sy2','sy3','sy8','sye','syb','sy5','syk','syj','syg','syd','syc','sy1','sym','sy7','sy6','syo','syn','syi','syh','syl','syf','syp','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module','NSzT5']);
}catch(e){_._DumpException(e)}
try{
_.kp=function(W,l,V,f,r){var R={};l&&(R[l]=V);f?R.errorType=f:r&&(R.errorReason=r);_.XC(W,R);_.Ts()};
_.vN=function(W){var l=_.DI();return _.EFa(l,W,1)};
_.S3({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 W=this.query;W&&(this.full||W[0]==="("||(W="("+W+")"),this._mq=window.matchMedia(W),this._add(),this.queryHandler(this._mq))},
queryHandler:function(W){this._setQueryMatches(W.matches)}});var cCN;var BKw;var d4w=function(){};
_.t=d4w.prototype;_.t.addOwnKeyBinding=function(){};
_.t.removeOwnKeyBindings=function(){};
_.t.keyboardEventMatchesKeys=function(){};
_.t._collectKeyBindings=function(){};
_.t._prepKeyBindings=function(){};
_.t._addKeyBinding=function(){};
_.t._resetKeyEventListeners=function(){};
_.t._listenKeyEventListeners=function(){};
_.t._unlistenKeyEventListeners=function(){};
_.t._onKeyBindingEvent=function(){};
_.t._triggerKeyHandler=function(){};
_.t._tapHandler=function(){};
_.t._focusChanged=function(){};
_.t._detectKeyboardFocus=function(){};
_.t._userActivate=function(){};
_.t._upHandler=function(){};
_.t._spaceKeyDownHandler=function(){};
_.t._spaceKeyUpHandler=function(){};
_.t._asyncClick=function(){};
_.t._pressedChanged=function(){};
_.t._ariaActiveAttributeChanged=function(){};
_.t._activeChanged=function(){};
_.t._controlStateChanged=function(){};
_.t._changedButtonState=function(){};
_.t._focusBlurHandler=function(){};
_.t._disabledChanged=function(){};
_.t._changedControlState=function(){};
_.t._downHandler=function(){};
_.t.ensureRipple=function(){};
_.t.getRipple=function(){};
_.t.hasRipple=function(){};
_.t._noinkChanged=function(){};
_.t._focusedChanged=function(){};
_.t._createRipple=function(){};
_.t.registered=function(){};
_.t._invalidChanged=function(){};
_.t.hasValidator=function(){};
_.t.validate=function(){};
_.t._getValidity=function(){};
_.t._requiredChanged=function(){};
_.t._valueChanged=function(){};
_.t._checkedChanged=function(){};
_.t._buttonStateChanged=function(){};
_.t._setPressed=function(){};
_.t._setPointerDown=function(){};
_.t._setReceivedFocusFromKeyboard=function(){};
_.t._setFocused=function(){};
d4w=_.S3({is:"tp-yt-paper-radio-button",_template:function(){if(BKw!==void 0)return BKw;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;cCN===void 0&&(cCN=document.createElement("template"));var f=cCN;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return BKw=W},
behaviors:[_.Nl9],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(){_.V9(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var W=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),l=Math.floor(3*W);l%2!==W%2&&l++;this.updateStyles({"--paper-radio-button-ink-size":l+"px"})}})}});var JCw;var D41;_.S3({_template:function(){if(D41!==void 0)return D41;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;JCw===void 0&&(JCw=document.createElement("template"));var f=JCw;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return D41=W},
is:"tp-yt-paper-radio-group",behaviors:[_.r$B],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(W){var l=this._valueToItem(W);if(!l||!l.hasAttribute("disabled")){if(this.selected){l=this._valueToItem(this.selected);if(this.selected==W)if(this.allowEmptySelection)W="";else{l&&(l.checked=!0);return}l&&
(l.checked=!1)}_.nk.select.apply(this,[W]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(W){this._focusPrevious();W.preventDefault();this._activateFocusedItem()},
_onDownKey:function(W){this._focusNext();W.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(W){_.fpZ._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(W){_.fpZ._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.nk._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.$6._resetTabindices.apply(this,arguments);this.items.forEach(function(W){W.removeAttribute("aria-selected")},this)}});var U4s;_.e1("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var HN=function(){return _.I.apply(this,arguments)||this};
_.v(HN,_.I);_.t=HN.prototype;_.t.computeHasPrimaryIcon=function(W){return!(!W.icon&&!W.thumbnail)};
_.t.computeHasSecondary=function(W){return!(!W.secondaryIcon&&!W.secondaryNotificationText)};
_.t.computeHideSecondaryString=function(W){return!_.U("disable_hide_empty_secondary_string")&&!W.secondaryNotificationText};
_.t.computeCompactLinkStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.t.computeHasFitHeight=function(W){return W==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.t.isActiveEndpoint=function(W){return(W=this.get("commandMetadata.webCommandMetadata.url",W))?_.JY(window.location.href)!=="/account_transfer_channel"&&_.JY(window.location.href)!=="/gaia_link"&&_.JY(window.location.href)!=="/channel_switcher"||W!=="/account"?_.JY(window.location.href)===W:!0:!1};
_.t.onTap=function(){var W;((W=this.data)==null?0:W.serviceEndpoint)&&_.pN(this.hostElement,[this.data.serviceEndpoint])};
HN.prototype.onTap=HN.prototype.onTap;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],HN.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],HN.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.z("design:type",Boolean)],HN.prototype,"active",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.z("design:type",String)],HN.prototype,"compactLinkStyle",void 0);
_.a([_.b({computed:"computeIcon_(data.icon)"}),_.z("design:type",Object)],HN.prototype,"icon",void 0);_.a([_.b({computed:"computeIcon_(data.secondaryIcon)"}),_.z("design:type",Object)],HN.prototype,"secondaryIcon",void 0);_.a([_.b({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],HN.prototype,"hasSecondary",void 0);_.a([_.b({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],HN.prototype,"hideSecondaryString",void 0);
_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HN.prototype,"onTap",null);_.a([_.A({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],HN);
_.Z(HN,"ytd-compact-link-renderer",function(){if(U4s!==void 0)return U4s;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return U4s=W},{mode:1});var uW7;_.e1("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var Km=function(){var W=_.I.apply(this,arguments)||this;W.role="link";W.tabindex="0";W.actionMap=_.U("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 W};
_.v(Km,_.I);_.t=Km.prototype;_.t.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.h5()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.t.getCurrentTheme=function(){return _.Sr()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.h5()};
_.t.onThemeSelected=function(W,l){var V=W||l?W:_.q$(),f=(V&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!V&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.dAn(_.JY(window.location.href));_.ZY(0,165,W);_.ZY(0,174,l);this.prefs.save();f&&_.Gt(this.hostElement,"yt-dark-mode-toggled-action",[V]);_.Gt(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.t.onTap=function(){this.data.serviceEndpoint&&_.pN(this.hostElement,[this.data.serviceEndpoint])};
_.t.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.t.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.t.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
Km.prototype.onTap=Km.prototype.onTap;Km.prototype.dataChanged=Km.prototype.dataChanged;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Km.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Du),_.z("design:type",Object)],Km.prototype,"paperItemBehaviors",void 0);_.a([_.b(),_.z("design:type",Object)],Km.prototype,"data",void 0);_.a([_.b({value:function(){return _.MT()}}),
_.z("design:type",_.Ki)],Km.prototype,"prefs",void 0);_.a([_.b(),_.z("design:type",Object)],Km.prototype,"label",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Km.prototype,"role",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Km.prototype,"tabindex",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Km.prototype,"dataChanged",null);
_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Km.prototype,"onTap",null);_.a([_.A({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],Km);
_.GG()(Km,"ytd-toggle-theme-compact-link-renderer",function(){if(uW7===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);uW7=W}W=uW7;return W},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var v2w,Hp1;_.FH=function(W){return!!W.getOptions("captions")};
_.k37=function(W){return(W=W.getOption("captions","track"))?!!W.displayName:!1};
_.Gc=function(W,l){_.Ql(l,W,function(){return v2w[l]},function(V){v2w[l]=V;
if(!_.U("mweb_player_ve_show_ks")){var f=_.Wh(0);f&&V&&_.gJ(f,V)}})};
_.b3=function(W){(W=v2w[W])&&_.Nl(_.Qq(),W)};
v2w={};var Kw5;/*

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
*/
_.S3({_template:function(){if(Kw5!==void 0)return Kw5;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;Hp1===void 0&&(Hp1=document.createElement("template"));var f=Hp1;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return Kw5=W},
is:"tp-yt-paper-checkbox",behaviors:[_.Nl9],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.V9(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var W=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),l="px",V=W.match(/[A-Za-z]+$/);V!==null&&(l=V[0]);W=parseFloat(W);V=8/3*W;l==="px"&&(V=Math.floor(V),V%2!==W%2&&V++);this.updateStyles({"--paper-checkbox-ink-size":V+
l})}})},
_computeCheckboxClass:function(W,l){var V="";W&&(V+="checked ");l&&(V+="invalid");return V},
_computeCheckmarkClass:function(W){return W?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.amL._createRipple.call(this)}});var FwY=new _.uC("radioButtonSurveyOptionRenderer"),G3w=new _.uC("checkboxSurveyOptionRenderer");var bp4;var pPL;var o2L=0,pm=function(){var W=_.I.call(this)||this;W.selected=!1;W.isOverlay=!1;W.inputId="toggle-option-"+o2L;o2L++;return W};
_.v(pm,_.I);pm.prototype.onTap=function(){_.FN(this.hostElement,"ytd-toggle-option-clicked")};
_.a([_.b(),_.z("design:type",String)],pm.prototype,"label",void 0);_.a([_.b(),_.z("design:type",String)],pm.prototype,"inputId",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pm.prototype,"selected",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pm.prototype,"isOverlay",void 0);_.a([_.A({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.z("design:paramtypes",[])],pm);
_.Z(pm,"ytd-toggle-option-renderer",function(){if(pPL!==void 0)return pPL;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return pPL=W},{mode:1});var oq=function(){var W=_.I.apply(this,arguments)||this;W.isToggleOption=!1;W.isOverlay=!1;return W};
_.v(oq,_.I);oq.prototype.onTap=function(W){W.preventDefault();this.data&&(W=!this.data.checked,this.set("data.checked",W),_.FN(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:W,value:this.data.value}))};
_.rc.Object.defineProperties(oq.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
oq.prototype.onTap=oq.prototype.onTap;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],oq.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],oq.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],oq.prototype,"isToggleOption",void 0);_.a([_.b(),_.z("design:type",Object)],oq.prototype,"isOverlay",void 0);_.a([_.G("data.responseText"),_.z("design:type",String),_.z("design:paramtypes",[])],oq.prototype,"label",null);
_.a([_.XI("ytd-toggle-option-clicked"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],oq.prototype,"onTap",null);_.a([_.A({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],oq);
_.Z(oq,"ytd-checkbox-survey-option-renderer",function(){if(bp4!==void 0)return bp4;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return bp4=W},{mode:1});var jh4;var ILH;var jp=function(){var W=_.I.apply(this,arguments)||this;W.checked=!1;W.isToggleOption=!1;return W};
_.v(jp,_.I);jp.prototype.onTap=function(){this.data&&(this.checked?_.Gt(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.Gt(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
jp.prototype.onTap=jp.prototype.onTap;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],jp.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],jp.prototype,"checked",void 0);_.a([_.b(),_.z("design:type",Object)],jp.prototype,"isToggleOption",void 0);_.a([_.XI("ytd-toggle-option-clicked"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],jp.prototype,"onTap",null);
_.a([_.A({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],jp);
_.Z(jp,"ytd-radio-button-survey-option-renderer",function(){if(ILH!==void 0)return ILH;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return ILH=W},{mode:1});var Iq=function(){var W=_.I.apply(this,arguments)||this;W.disableAnimation=!1;W.isToggleOption=!0;W.followUpSurveyCommand=null;W.selectedRatingEndpoint=null;W.isSlimlineSurveyFollowUp=!1;W.isShortsStyle=!1;W.styleOverrideAttribute=!0;W.isDarkMode=!1;W.isSubmitted=!1;W.roundedContainer=!0;W.improveShortsResponseRate=_.U("web_improve_shorts_response_rate");W.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 W};
_.v(Iq,_.I);_.t=Iq.prototype;
_.t.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"}}}}};
_.t.attached=function(){var W=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(V){var f;if((f=V[0])!=null&&f.isIntersecting){_.wm().reportShown(W.hostElement);var r;(r=W.intersectionObserver)==null||r.unobserve(W.hostElement)}},{rootMargin:"0px",
threshold:.6});var l;(l=this.intersectionObserver)==null||l.observe(this.hostElement)};
_.t.onDarkModeToggledAction=function(W){this.isDarkMode=W};
_.t.dataChanged=function(){var W;if(((W=this.data)==null?void 0:W.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var l;((l=this.data)==null?void 0:l.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var V,f,r,R;this.darkColorPalette=(V=this.data)==null?void 0:(f=V.inlineContent)==null?void 0:(r=f.compactVideoRenderer)==null?void 0:(R=r.thumbnail)==null?
void 0:R.darkColorPalette;var y,P,n,B;this.lightColorPalette=(y=this.data)==null?void 0:(P=y.inlineContent)==null?void 0:(n=P.compactVideoRenderer)==null?void 0:(B=n.thumbnail)==null?void 0:B.lightColorPalette;var d,J;if(((d=this.data)==null?0:(J=d.inlineContent)==null?0:J.compactVideoRenderer)&&this.isShortsStyle){var D,u,H,p;W=_.F3((D=this.data)==null?void 0:(u=D.inlineContent)==null?void 0:(H=u.compactVideoRenderer)==null?void 0:(p=H.thumbnail)==null?void 0:p.thumbnails);_.I1(this.hostElement,
{"--yt-background-url":"url("+W+")"})}};
_.t.handleRequestCompletion=function(){this.hostElement.hidden&&_.FN(this.hostElement,"yt-dismissible-item-dismissed")};
_.t.onPopupClosed=function(W){var l;((l=W.detail)==null?void 0:l.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.Gt(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.t.handleInlineSurveyRatingSelect=function(W,l){var V=this;this.selectedRatingEndpoint=W;this.followUpSurveyCommand=l;this.expanded=!!W;this.getOptionRenderers().forEach(function(f,r){V.notifyPath("followUpSurveyCommand.followUpOptions."+r+".checkboxSurveyOptionRenderer.checked");V.set("followUpSurveyCommand.followUpOptions."+r+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),W=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.Gt(this.hostElement,"yt-reel-non-video-content-dismissal-command",[W]))};
_.t.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.Gt(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var W,l=(W=this.data)==null?void 0:W.dismissalEndpoint;l&&this.ytComponentBehavior.resolveCommand(l)}};
_.t.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.Gt(this.hostElement,"yt-close-popup-action"))};
_.t.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var W=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{W=this.getOptionRenderers().filter(function(f){return f.checked});
if(W.length===0)return;W=W.map(function(f){return f.responseEndpoint})}var l=[];
W.forEach(function(f,r){r!==0&&(f=_.k(f,_.NP))&&f.feedbackToken&&l.push(f.feedbackToken)});
if(W=W[0]){var V={};l.length>0&&(V.extra_feedback_tokens=l);this.ytComponentBehavior.resolveCommand(W,{form:V})}}};
_.t.getOptionRenderers=function(){var W=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(l){W.isSingleSelect=!!_.k(l,FwY);return W.isSingleSelect?_.k(l,FwY):_.k(l,G3w)}):[]};
_.t.handleInlineSurveyOptionSelect=function(W){W=this.optionSelector.indexOf(W);W!==-1&&this.optionSelector.selectIndex(W)};
_.t.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.t.maybeGetBackgroundColor=function(W){return this.isDarkMode?W.section2Color:W.section3Color};
_.t.colorPaletteChanged=function(){var W=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;W=W&&this.maybeGetBackgroundColor(W);this.dismissibleEl.style.backgroundColor=!W||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.ta(W)};
_.rc.Object.defineProperties(Iq.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Iq.prototype.colorPaletteChanged=Iq.prototype.colorPaletteChanged;Iq.prototype.onPopupClosed=Iq.prototype.onPopupClosed;Iq.prototype.handleRequestCompletion=Iq.prototype.handleRequestCompletion;Iq.prototype.dataChanged=Iq.prototype.dataChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Iq.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Iq.prototype,"actionHandlerBehavior",void 0);
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Iq.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Iq.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],Iq.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.Aa("#follow-up-survey-options"),_.z("design:type",Object)],Iq.prototype,"optionSelector",void 0);_.a([_.b(),_.z("design:type",Object)],Iq.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Object)],Iq.prototype,"disableAnimation",void 0);_.a([_.b(),_.z("design:type",Object)],Iq.prototype,"isToggleOption",void 0);_.a([_.b(),_.z("design:type",Object)],Iq.prototype,"followUpSurveyCommand",void 0);_.a([_.b(),_.z("design:type",Object)],Iq.prototype,"selectedRatingEndpoint",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Iq.prototype,"expanded",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Iq.prototype,"isSlimlineSurveyFollowUp",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Iq.prototype,"isShortsStyle",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Iq.prototype,"styleOverrideAttribute",void 0);_.a([_.b(),_.z("design:type",Boolean)],Iq.prototype,"isSingleSelect",void 0);_.a([_.b(),_.z("design:type",Object)],Iq.prototype,"isDarkMode",void 0);
_.a([_.b(),_.z("design:type",Object)],Iq.prototype,"lightColorPalette",void 0);_.a([_.b(),_.z("design:type",Object)],Iq.prototype,"darkColorPalette",void 0);_.a([_.G("selectedRatingEndpoint","isShortsStyle"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Iq.prototype,"isOptionSelected",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Iq.prototype,"roundedContainer",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Iq.prototype,"improveShortsResponseRate",void 0);_.a([_.Aa("#dismissible"),_.z("design:type",HTMLElement)],Iq.prototype,"dismissibleEl",void 0);_.a([_.Aa("#dismiss-button yt-icon-button"),_.z("design:type",HTMLElement)],Iq.prototype,"dismissButtonEl",void 0);_.a([_.Aa("#inline-survey-header yt-icon-button"),_.z("design:type",HTMLElement)],Iq.prototype,"inlineHeaderDismissButtonEl",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Iq.prototype,"dataChanged",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Iq.prototype,"handleRequestCompletion",null);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Iq.prototype,"onPopupClosed",null);
_.a([_.TS("darkColorPalette","lightColorPalette","isDarkMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Iq.prototype,"colorPaletteChanged",null);_.a([_.A({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Iq);
_.Z(Iq,"ytd-inline-survey-renderer",function(){if(jh4!==void 0)return jh4;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return jh4=W},{mode:1});var ip7=["en-CA","en","es-MX","fr-CA"];_.m4e=_.Q(function(W){var l=_.Dd(W,{isOverlay:!1,isModern:!1}),V=l.captionIconType,f=l.onClick;W=l.ariaLabel;var r=l.ariaPressed,R=l.isOverlay,y=l.isModern;l=_.WS("button",function(B){_.Gc(B,127299)});
var P=_.ip(function(B){_.b3(127299);f==null||f(B);return!1}),n={};
return _.C("ytm-closed-captioning-button",{class:_.If("ytmClosedCaptioningButtonHost",(n.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return V()===-1&&R()},n.ytmClosedCaptioningButtonIconDisabled=function(){return V()===-1&&!R()},n))},_.C("button",{el:l,
class:"ytmClosedCaptioningButtonButton",title:W,"aria-label":W,"aria-pressed":r,"on:click":P},_.C(_.wN,{icon:function(){var B="",d=y();var J=d?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";d=d?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var D=_.MT().get("hl");J=!D||ip7.includes(D)?J:d;d=V();switch(d){case -1:case 0:B=J;break;case 1:B=J+"_FILLED";break;default:_.Yc(d)}return B}})))},"Ff");
_.m4e.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.OX=function(W){return function(l,V){var f=W||V.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(l,V,{get:function(){var r;return this.$?this.$[f]:(r=_.w_(this))==null?void 0:r.querySelector("#"+f)},
enumerable:!0,configurable:!0})}};_.aE=function(W){W=W===void 0?!1:W;_.iI.call(this);this.pubSub_=new _.uP(W);_.vt(this,this.pubSub_)};
_.Jj(_.aE,_.iI);_.aE.prototype.subscribe=function(W,l,V){return this.isDisposed()?0:this.pubSub_.subscribe(W,l,V)};
_.aE.prototype.unsubscribe=function(W,l,V){return this.isDisposed()?!1:this.pubSub_.unsubscribe(W,l,V)};
_.aE.prototype.unsubscribeByKey=function(W){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(W)};
_.aE.prototype.publish=function(W,l){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var Dn4=function(){_.kp("ypcRedeemFlowStarted")},aG=function(W){_.kp("ypcRedeemFlowFailed",void 0,void 0,void 0,W)},Unw=function(W,l,V){l&&V&&(W.videos.forEach(function(f){f.videoId===l&&(f.itemId=V)}),W.recommendedVideos.forEach(function(f){f.videoId===l&&(f.itemId=V)}))};var uv4;var kF5;/*

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
*/
_.S3({_template:function(){if(kF5!==void 0)return kF5;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;uv4===void 0&&(uv4=document.createElement("template"));var f=uv4;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return kF5=W},
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(W,l){var V=this._resolveSrc(W);V!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",W===""||l?this._setLoading(!1):(this._resolvedSrc=V,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 W=this.$.sizedImgDiv.style,l=this.$.placeholder.style;W.backgroundSize=l.backgroundSize=this.sizing;W.backgroundPosition=l.backgroundPosition=this.sizing?this.position:"";W.backgroundRepeat=l.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(W){W=_.PS(W,this.$.baseURIAnchor.href);W.length>=2&&W[0]==="/"&&W[1]!=="/"&&(W=(location.origin||location.protocol+"//"+location.host)+W);return W}});var vAL;var HJe;_.S3({_template:function(){if(HJe!==void 0)return HJe;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;vAL===void 0&&(vAL=document.createElement("template"));var f=vAL;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return HJe=W},
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(W){return W?"false":"true"},
_headingChanged:function(W){var l=this.getAttribute("heading"),V=this.getAttribute("aria-label");typeof V==="string"&&V!==l||this.setAttribute("aria-label",W)},
_computeHeadingClass:function(W){return W?" over-image":""},
_computeAnimated:function(W){return W}});var KP5=new _.uC("addRendererToItemSectionAction");var FPe;var zH=function(){return _.I.apply(this,arguments)||this};
_.v(zH,_.I);zH.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],zH.prototype,"rendererBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],zH.prototype,"dismissibleItemBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],zH.prototype,"rendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],zH.prototype,"data",void 0);_.a([_.A({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],zH);
_.Z(zH,"ytd-comment-history-entry-renderer",function(){if(FPe!==void 0)return FPe;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return FPe=W},{mode:1});var GFw;_.e1("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.e1("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var No=function(){return _.I.apply(this,arguments)||this};
_.v(No,_.I);_.t=No.prototype;_.t.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.onKeyUp=function(W){if(W.keyCode===13)this.onTap()};
_.t.onTap=function(){this.data.recordClickEndpoint&&_.tY().resolve(_.s6).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var W=this.data.navigationEndpoint;W&&_.k(W,_.yB)&&_.tY().resolve(_.s6).resolveCommand(W,{form:{element:this.hostElement}})};
_.t.readChanged=function(){var W;_.pG(this.hostElement,"unread",!((W=this.data)==null?0:W.read))};
_.t.dataChanged=function(){this.data&&_.pG(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.t.computeThumbnailSize=function(){var W;return((W=this.data)==null?0:W.highPriorityNotification)?32:48};
_.t.getEndpointURL=function(W){return W&&!_.k(W,_.yB)?this.componentBehavior.computeHref_(W):null};
_.t.getEndpointData=function(W){return W&&!_.k(W,_.yB)?W:null};
No.prototype.computeThumbnailSize=No.prototype.computeThumbnailSize;No.prototype.dataChanged=No.prototype.dataChanged;No.prototype.readChanged=No.prototype.readChanged;No.prototype.onKeyUp=No.prototype.onKeyUp;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],No.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],No.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],No.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],No.prototype,"data",void 0);_.a([_.b({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.z("design:type",Number)],No.prototype,"thumbnailSize",void 0);_.a([_.XI("keyup"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],No.prototype,"onKeyUp",null);
_.a([_.TS("data.read"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],No.prototype,"readChanged",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],No.prototype,"dataChanged",null);_.a([_.TS("data.highPriorityNotification"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],No.prototype,"computeThumbnailSize",null);
_.a([_.A({is:"ytd-notification-renderer",disableElementRegistration:!0})],No);
_.Z(No,"ytd-notification-renderer",function(){if(GFw!==void 0)return GFw;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return GFw=W},{mode:1});var bJL;var Yy=function(){return _.I.apply(this,arguments)||this};
_.v(Yy,_.I);Yy.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"}}}};
Yy.prototype.computeActionButtonClass=function(W){return!W.actionButtons||W.actionButtons.length<=1?"single-button":W.description?"vertical-buttons":"horizontal-buttons"};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Yy.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Yy.prototype,"data",void 0);_.a([_.A({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],Yy);
_.Z(Yy,"ytd-playlist-show-metadata-renderer",function(){if(bJL!==void 0)return bJL;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return bJL=W},{mode:1});var pb4;_.e1("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var xy=function(){return _.I.apply(this,arguments)||this};
_.v(xy,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],xy.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],xy.prototype,"data",void 0);_.a([_.A({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],xy);
_.Z(xy,"ytd-purchase-item-renderer",function(){if(pb4!==void 0)return pb4;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return pb4=W},{mode:1});var oA2;var j6s={};j6s.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(W){if(W)return W.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(W){if(W==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.e1("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var eA=function(){return _.I.apply(this,arguments)||this};
_.v(eA,_.I);eA.prototype.onYtNavigate=function(W){var l=this.openPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);l&&(W.stopPropagation(),this.openPopupBehavior.openPopup(l))};
eA.prototype.onYtNavigate=eA.prototype.onYtNavigate;_.a([_.F(j6s.YtSimpleTextSectionBehavior),_.z("design:type",Object)],eA.prototype,"ytSimpleTextSectionBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.i5),_.z("design:type",Object)],eA.prototype,"openPopupBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],eA.prototype,"data",void 0);
_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],eA.prototype,"onYtNavigate",null);_.a([_.A({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],eA);
_.Z(eA,"ytd-simple-text-section-renderer",function(){if(oA2!==void 0)return oA2;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return oA2=W},{mode:1});var I2e;_.e1("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var qo=function(){return _.I.apply(this,arguments)||this};
_.v(qo,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],qo.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],qo.prototype,"data",void 0);_.a([_.A({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],qo);
_.Z(qo,"ytd-unlimited-page-feature-info-renderer",function(){if(I2e!==void 0)return I2e;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return I2e=W},{mode:1});var iJw;var mnw;var hE=function(){return _.I.apply(this,arguments)||this};
_.v(hE,_.I);hE.prototype.dataChanged=function(){if(this.data){var W=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);W&&(W=_.KP(W,screen.width),this.hostElement.style.backgroundImage="url("+W+")")}};
hE.prototype.dataChanged=hE.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],hE.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],hE.prototype,"data",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hE.prototype,"dataChanged",null);_.a([_.A({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],hE);
_.Z(hE,"ytd-post-redemption-section-renderer",function(){if(mnw!==void 0)return mnw;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return mnw=W},{mode:1});var Xbw;var SA=function(){return _.I.apply(this,arguments)||this};
_.v(SA,_.I);SA.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],SA.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],SA.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],SA.prototype,"data",void 0);_.a([_.A({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],SA);
_.Z(SA,"ytd-ypc-post-redemption-renderer",function(){if(Xbw!==void 0)return Xbw;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Xbw=W},{mode:1});_.e1("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var E0=function(){var W=_.I.apply(this,arguments)||this;W.MIN_CODE_LENGTH=12;W.MAX_CODE_LENGTH=24;return W};
_.v(E0,_.I);_.t=E0.prototype;_.t.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.t.created=function(){this.riskService=new _.Cox;this.loadPaymentThenable=_.BqS(_.M4("YPC_MB_URL"))};
_.t.ready=function(){var W=this;this.code.addEventListener("keypress",function(l){W.onCodeInputKeypress(l)})};
_.t.dataChanged=function(){var W=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(l){l=_.L(l);for(var V=l.next();!V.done;V=l.next())V=V.value,V.type==="attributes"&&V.attributeName==="dark"&&W.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.t.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var W=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+W+")")}};
_.t.computeRedeemButton=function(W){(W=this.get("redeemButton.buttonRenderer",W))&&(W=Object.assign({},W,{serviceEndpoint:void 0}));return W};
_.t.onRedeemButtonTap=function(W){W.stopPropagation();Dn4();this.redeemCode()};
_.t.redeemCode=function(){var W=this;this.isLoading=!0;var l=this.riskService.init();_.YS([l,this.loadPaymentThenable]).then(function(){var V=W.data.redeemButton.buttonRenderer.serviceEndpoint,f=_.cDz(),r=payments.business.integration.ClientTokenFactory.createClientToken(_.k(V,_.qBZ).countryCode,f);f={c:W.code.value.trim(),rd:window.btoa(f),ctk:r};V&&_.tY().resolve(_.s6).resolveCommand(V,{form:Object.assign({},f,{element:W.hostElement})})},function(){W.showGenericError();
aG("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.OJ(Error("yo"))})};
_.t.onYtServiceRequestCompleted=function(W){W.stopPropagation();this.isLoading=!1;var l,V;this.errorMessage=(l=W.detail)==null?void 0:(V=l.data)==null?void 0:V.errorMessage;var f,r;this.postRedemptionRenderer=(f=W.detail)==null?void 0:(r=f.data)==null?void 0:r.renderer;var R,y;if(W=(R=W.detail)==null?void 0:(y=R.data)==null?void 0:y.redirectEndpoint)this.isLoading=!0,_.FN(this.hostElement,"yt-navigate",{endpoint:W});this.errorMessage?aG("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
W)&&_.kp("ypcRedeemFlowSucceeded")};
_.t.onYtServiceRequestError=function(W){W.stopPropagation();this.isLoading=!1;if(W=this.get("detail.error.message",W))this.errorMessage=_.Bl(W);aG("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.t.onInvokeInstrumentManagerActionCompleted=function(W){W.stopPropagation();this.redeemCode()};
_.t.onInvokeInstrumentManagerActionError=function(W){W.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",W)){case "instrumentManagerLoadError":this.showGenericError();aG("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();aG("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.kp("ypcRedeemFlowCancelled")}};
_.t.onInput=function(){var W=this;_.gm(this,"onInput",function(){var l=W.code.value.trim();W.redeemButtonDisabled=l.length<W.MIN_CODE_LENGTH||l.length>W.MAX_CODE_LENGTH},200)};
_.t.onCodeInputKeypress=function(W){W.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(Dn4(),this.redeemCode())};
_.t.computeImageUrl=function(W){return W?_.KP(W.thumbnails,600):null};
_.t.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
E0.prototype.onInvokeInstrumentManagerActionError=E0.prototype.onInvokeInstrumentManagerActionError;E0.prototype.onInvokeInstrumentManagerActionCompleted=E0.prototype.onInvokeInstrumentManagerActionCompleted;E0.prototype.onYtServiceRequestError=E0.prototype.onYtServiceRequestError;E0.prototype.onYtServiceRequestCompleted=E0.prototype.onYtServiceRequestCompleted;E0.prototype.dataChanged=E0.prototype.dataChanged;
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],E0.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],E0.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],E0.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],E0.prototype,"isLoading",void 0);_.a([_.b(),_.z("design:type",Boolean)],E0.prototype,"redeemButtonDisabled",void 0);
_.a([_.b(),_.z("design:type",Object)],E0.prototype,"errorMessage",void 0);_.a([_.b(),_.z("design:type",Object)],E0.prototype,"postRedemptionRenderer",void 0);_.a([_.b(),_.z("design:type",Object)],E0.prototype,"observer",void 0);_.a([_.Aa("#code"),_.z("design:type",HTMLInputElement)],E0.prototype,"code",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],E0.prototype,"dataChanged",null);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],E0.prototype,"onYtServiceRequestCompleted",null);_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],E0.prototype,"onYtServiceRequestError",null);
_.a([_.XI("yt-invoke-instrument-manager-action-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],E0.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.a([_.XI("yt-invoke-instrument-manager-action-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],E0.prototype,"onInvokeInstrumentManagerActionError",null);_.a([_.A({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],E0);
_.Z(E0,"ytd-redeem-code-renderer",function(){if(iJw!==void 0)return iJw;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return iJw=W},{mode:1});var T4Z;_.e1("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var $y=function(){var W=_.I.apply(this,arguments)||this;W.businessEmailDisplayState="HIDE_SECTION";return W};
_.v($y,_.I);_.t=$y.prototype;_.t.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}}}}}};
_.t.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"};
_.t.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.t.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.se(_.Sok),this.businessEmailDisplayState="CAPTCHA"))};
_.t.onYtServiceRequestCompleted=function(W){var l;if((l=W.detail.data)==null?0:l.businessEmail)this.businessEmail=W.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var V;if((V=W.detail.data)==null?0:V.errorMessage)this.businessEmailErrorMessage=W.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.t.computeEmailHref=function(W){return"mailto:"+W};
_.t.computeSafeUrl=function(W){if(W)return _.NI(W)};
_.t.onBusinessEmailCaptchaSubmit=function(){var W;(W=this.data)!=null&&W.onBusinessEmailRevealClickCommand&&(W=this.JSC$21702_captchaTextarea.value)&&(W={recaptcha_response_token:W,channel_id:this.data.channelId},_.tY().resolve(_.s6).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},W,{element:this.hostElement})}))};
_.t.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.rc.Object.defineProperties($y.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 W,l;return!((W=this.data)==null||!W.primaryLinks)&&!((l=this.data)==null?0:l.links)&&this.data.primaryLinks.every(function(V){return V.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var W,l;return!((W=this.data)==null||!W.primaryLinks)&&!((l=this.data)==null?0:l.links)&&!this.shouldShowNewLinks}}});
$y.prototype.onYtServiceRequestCompleted=$y.prototype.onYtServiceRequestCompleted;$y.prototype.dataChanged=$y.prototype.dataChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],$y.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],$y.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],$y.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.Aa("#g-recaptcha-response"),_.z("design:type",HTMLTextAreaElement)],$y.prototype,"JSC$21702_captchaTextarea",void 0);_.a([_.b(),_.z("design:type",Object)],$y.prototype,"data",void 0);_.a([_.b(),_.z("design:type",String)],$y.prototype,"businessEmailDisplayState",void 0);_.a([_.b(),_.z("design:type",String)],$y.prototype,"businessEmail",void 0);_.a([_.b(),_.z("design:type",String)],$y.prototype,"businessEmailErrorMessage",void 0);
_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$y.prototype,"hideDetailsSection",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$y.prototype,"dataChanged",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$y.prototype,"shouldShowNewLinks",null);_.a([_.G("data","shouldShowLinks"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$y.prototype,"shouldShowLegacyLinks",null);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],$y.prototype,"onYtServiceRequestCompleted",null);_.a([_.A({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],$y);
_.Z($y,"ytd-channel-about-metadata-renderer",function(){if(T4Z!==void 0)return T4Z;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return T4Z=W},{mode:1});var wbN;_.e1("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Wb=function(){return _.I.apply(this,arguments)||this};
_.v(Wb,_.I);Wb.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]]"}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Wb.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Wb.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Wb.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Number)],Wb.prototype,"lockupContainerType",void 0);_.a([_.b(),_.z("design:type",String)],Wb.prototype,"thumbnailFixedWidth",void 0);
_.a([_.A({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Wb);
_.Z(Wb,"ytd-channel-featured-content-renderer",function(){if(wbN!==void 0)return wbN;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return wbN=W},{mode:1});var AAN;_.e1("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var lS=function(){var W=_.I.apply(this,arguments)||this;W.roundContainer=!0;W.amsterdamEnabled=_.U("enable_desktop_amsterdam_info_panels");return W};
_.v(lS,_.I);_.t=lS.prototype;_.t.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.t.dataChanged=function(){this.imageWidth=this.imageHeight=24;var W=this.data;W.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!W.style&&W.image&&W.image.thumbnails.length&&(W=W.image.thumbnails[0],this.imageWidth=W.width||0,this.imageHeight=W.height||0)};
_.t.computeSource=function(W){return W.secondarySource?_.dE(W.secondarySource):_.dE(W.source)};
_.t.computeClarifyStyle=function(W){return W?W.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.t.isLargeStyle=function(W){return W==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.t.computeBackgroundStyle=function(W){return W?W.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.t.computeHasActionButton=function(W){return!!W.actionButton};
_.t.computeHasBottomSection=function(W){return!!W.ctaHasBottomSection};
_.t.computeIsSourceMissing=function(W){return W.ctaHasBottomSection===!1?!0:W&&this.computeSource(W)?!1:!0};
_.t.computeSecondaryEndpoint=function(W){return W.secondaryEndpoint||W.endpoint};
lS.prototype.dataChanged=lS.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],lS.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],lS.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],lS.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Number)],lS.prototype,"imageWidth",void 0);_.a([_.b(),_.z("design:type",Number)],lS.prototype,"imageHeight",void 0);
_.a([_.b({computed:"computeSecondaryEndpoint(data)"}),_.z("design:type",Object)],lS.prototype,"secondaryEndpoint",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.z("design:type",Boolean)],lS.prototype,"hasActionButton",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.z("design:type",Boolean)],lS.prototype,"hasBottomSection",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.z("design:type",Boolean)],lS.prototype,"missingSource",void 0);_.a([_.b({computed:"computeIcon_(data.icon)"}),_.z("design:type",String)],lS.prototype,"icon",void 0);_.a([_.b({computed:"computeIcon_(data.secondaryIcon)"}),_.z("design:type",String)],lS.prototype,"secondaryIcon",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.z("design:type",String)],lS.prototype,"clarifyStyle",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.z("design:type",String)],lS.prototype,"backgroundStyle",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],lS.prototype,"roundContainer",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],lS.prototype,"amsterdamEnabled",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lS.prototype,"dataChanged",null);
_.a([_.A({is:"ytd-clarification-renderer",disableElementRegistration:!0})],lS);
_.Z(lS,"ytd-clarification-renderer",function(){if(AAN!==void 0)return AAN;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return AAN=W},{mode:1});var Q6N;var M4N;var V4=function(){var W=_.I.apply(this,arguments)||this;W.amsterdamEnabled=_.U("enable_desktop_amsterdam_info_panels");return W};
_.v(V4,_.I);_.t=V4.prototype;_.t.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.t.computeIcon=function(W){return W?"yt-icons:"+W.toLowerCase():null};
_.t.computeUseContacts=function(W){return!!W.contacts&&W.contacts.length>0};
_.t.computePhoneContact=function(W){var l,V;return(l=W.contacts)==null?void 0:(V=l.find(function(f){var r;return(f==null?void 0:(r=f.icon)==null?void 0:r.iconType)==="PHONE"}))==null?void 0:V.actionText};
_.t.computeSmsContact=function(W){var l,V;return(l=W.contacts)==null?void 0:(V=l.find(function(f){var r;return(f==null?void 0:(r=f.icon)==null?void 0:r.iconType)==="SMS"}))==null?void 0:V.actionText};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],V4.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],V4.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],V4.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],V4.prototype,"amsterdamEnabled",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.z("design:type",Boolean)],V4.prototype,"useContacts",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.z("design:type",String)],V4.prototype,"phoneContact",void 0);_.a([_.A({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],V4);
_.Z(V4,"ytd-single-action-emergency-support-renderer",function(){if(M4N!==void 0)return M4N;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return M4N=W},{mode:1});_.e1("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var fJ=function(){var W=_.I.apply(this,arguments)||this;W.roundedContainer=!0;W.amsterdamEnabled=_.U("enable_desktop_amsterdam_info_panels");return W};
_.v(fJ,_.I);fJ.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"}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],fJ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],fJ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],fJ.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],fJ.prototype,"roundedContainer",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],fJ.prototype,"amsterdamEnabled",void 0);
_.a([_.A({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],fJ);
_.Z(fJ,"ytd-emergency-onebox-renderer",function(){if(Q6N!==void 0)return Q6N;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Q6N=W},{mode:1});var ZJH;_.e1("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var r4=function(){return _.I.apply(this,arguments)||this};
_.v(r4,_.I);r4.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"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],r4.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],r4.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],r4.prototype,"data",void 0);_.a([_.A({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],r4);
_.Z(r4,"ytd-exploratory-results-renderer",function(){if(ZJH!==void 0)return ZJH;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return ZJH=W},{mode:1});var OJZ;_.e1("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var R6=function(){var W=_.I.apply(this,arguments)||this;W.messageData=null;return W};
_.v(R6,_.I);_.t=R6.prototype;_.t.onServiceRequestCompleted=function(W,l){W=l.actions||[];l=0;for(var V=W.length;l<V;l++){var f=W[l],r=void 0,R=void 0;if((r=_.k(f,_.x0))==null?0:(R=r.item)==null?0:R.messageRenderer)this.messageData=_.k(f,_.x0).item.messageRenderer}};
_.t.dataChanged=function(){var W=this.data;this.hostElement.hidden=!1;_.pG(this.hostElement,"is-channel",W&&!W.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.t.computeThumbnailWidth=function(W){return W?126:56};
_.t.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.t.onSubmitTap=function(){var W=this.data,l=this.selectedResponseIndex;W!==void 0&&l!==void 0&&(W=W.responses[l],W.responseData&&_.tY().resolve(_.s6).resolveCommand(W.responseData,{form:{element:this.hostElement}}))};
_.t.onDismissTap=function(){this.hostElement.hidden=!0;var W=this.data;W!==void 0&&W.dismissalEndpoint&&_.tY().resolve(_.s6).resolveCommand(W.dismissalEndpoint,{form:{element:this.hostElement}})};
_.t.updateSelectedResponseIndexFromBinding=function(W){this.selectedResponseIndex=W.detail.value};
R6.prototype.onSelectedResponseIndexChange=R6.prototype.onSelectedResponseIndexChange;R6.prototype.dataChanged=R6.prototype.dataChanged;R6.prototype.onServiceRequestCompleted=R6.prototype.onServiceRequestCompleted;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],R6.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],R6.prototype,"messageData",void 0);
_.a([_.b(),_.z("design:type",Number)],R6.prototype,"selectedResponseIndex",void 0);_.a([_.Aa("#submit-button"),_.z("design:type",HTMLButtonElement)],R6.prototype,"submitButton",void 0);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],R6.prototype,"onServiceRequestCompleted",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R6.prototype,"dataChanged",null);
_.a([_.TS("selectedResponseIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],R6.prototype,"onSelectedResponseIndexChange",null);_.a([_.A({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],R6);
_.Z(R6,"ytd-feedback-elicitation-single-question-renderer",function(){if(OJZ!==void 0)return OJZ;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return OJZ=W},{mode:1});var a2Z;var tA=function(){return _.I.apply(this,arguments)||this};
_.v(tA,_.I);tA.prototype.computeThumbnailWidth=function(W){return W?602:428};
tA.prototype.updateWideFromBinding=function(W){this.wide=W.detail.value};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],tA.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],tA.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Boolean)],tA.prototype,"wide",void 0);_.a([_.A({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],tA);
_.Z(tA,"ytd-newspaper-hero-video-renderer",function(){if(a2Z!==void 0)return a2Z;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return a2Z=W},{mode:1});var zRZ;var sS=function(){return _.I.apply(this,arguments)||this};
_.v(sS,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],sS.prototype,"rendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],sS.prototype,"data",void 0);_.a([_.A({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],sS);
_.Z(sS,"ytd-newspaper-mini-video-renderer",function(){if(zRZ!==void 0)return zRZ;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return zRZ=W},{mode:1});var N4w;_.e1("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var LJ=function(){return _.I.apply(this,arguments)||this};
_.v(LJ,_.I);LJ.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"}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],LJ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],LJ.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],LJ.prototype,"data",void 0);_.a([_.A({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],LJ);
_.Z(LJ,"ytd-newspaper-renderer",function(){if(N4w!==void 0)return N4w;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return N4w=W},{mode:1});var YS1;_.e1("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var y4=function(){var W=_.I.apply(this,arguments)||this;W.isSegment=!1;W.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};W.nextContinuation={continuationType:"playlistVideoListContinuation"};return W};
_.v(y4,_.I);_.t=y4.prototype;_.t.attached=function(){_.tY();var W;(W=_.tY().resolve(_.R0(_.M9)))!=null&&(W.playlistVideoListElement=this.hostElement)};
_.t.detached=function(){var W;(W=_.tY().resolve(_.R0(_.M9)))!=null&&(W.playlistVideoListElement=void 0);W=_.tY().resolve(_.R0(_.OI));_.U("web_enable_voting_animation")&&W&&(W.parentElem=void 0,W.videos=[],W.continuationsPresent=!1,W.showRefreshPill=!1)};
_.t.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"}}}}}};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.t.dataChanged=function(){var W=_.tY().resolve(_.R0(_.OI));if(_.U("web_enable_voting_animation")&&this.data&&W){var l=_.GS(this.hostElement).querySelector("#contents");l&&(W.parentElem=l);W.addVideos(this.data.contents)}_.opL(this.ytReorderableBehavior)};
_.t.onRendererstamperFinished=function(){this.canReorder&&_.jqk(this.ytReorderableBehavior,_.GS(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.t.onPlaylistReloading=function(){this.isReloading=!0};
_.t.onUpdateSetVideoId=function(W){if(W.detail&&this.data&&this.data.contents){var l=W.detail;W=this.data.contents.findIndex(function(r){var R;return((R=r.playlistVideoRenderer)==null?void 0:R.videoId)===l.videoId});
if(!(W<0)&&l.setVideoId&&(this.set("data.contents."+W+".playlistVideoRenderer.setVideoId",l.setVideoId),_.U("web_enable_voting_animation"))){var V;if(W=_.k((V=this.data.contents[W].playlistVideoRenderer)==null?void 0:V.engagementBar,_.mUz)){var f;(f=W.actions)==null||f.forEach(function(r){if(r=_.k(r,_.Xzn))r.itemId=l.setVideoId})}(V=_.tY().resolve(_.R0(_.OI)))&&Unw(V,l.videoId,l.setVideoId)}}};
_.t.computeContentsClass=function(W){return W?"reloading":""};
_.t.computeIsSortable=function(W,l){return W&&l>0&&!this.isSegment&&!_.U("shorts_in_playlists_web")};
_.t.computeIsEditable=function(W){return W};
_.t.computeCanReorder=function(W){return W};
_.t.handlePlaylistRemoveVideosAction=function(W){if(this.get("playlistRemoveVideosAction.setVideoIds",W)&&this.data&&this.data.contents){W=_.k(W,_.Fx$).setVideoIds;for(var l=this.data.contents.length-1;l>=0;){var V=this.data.contents[l].playlistVideoRenderer;V&&V.setVideoId&&W.includes(V.setVideoId)&&this.splice("data.contents",l,1);l--}_.Gt(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.t.updateIndices=function(){if(this.data&&this.data.contents)for(var W=0;W<this.data.contents.length;W++)this.set("data.contents."+W+".playlistVideoRenderer.index",_.Bl(String(W+1)))};
_.t.handleDrop=function(W){W=W.currDragItem;var l=_.Mg(W.parentNode.childNodes,W),V=this.data.contents.splice(Number(_.dE(W.data.index))-1,1)[0];this.data.contents.splice(l,0,V);l=l?this.get("contents."+(l-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();W=this.buildReorderServiceEndpoint(W.data.setVideoId,l);this.ytComponentBehavior.resolveCommand(W)};
_.t.buildReorderServiceEndpoint=function(W,l){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",W),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",l),this.data.onReorderEndpoint):null};
_.t.handleUpdatePlaylistAction=function(W){var l;(W=_.k((l=_.k(W,_.GWa))==null?void 0:l.updatedRenderer,_.DlL))&&this.canReorder!==W.canReorder&&this.set("data.canReorder",W.canReorder);W&&W.contents&&(this.set("data.contents",W.contents),this.isReloading=!1);W&&W.continuations&&this.set("data.continuations",W.continuations)};
_.t.handleAddRendererToItemSectionAction=function(W){var l,V=(l=_.k(W,KP5))==null?void 0:l.renderer,f;V&&((f=_.k(W,KP5))==null?void 0:f.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,V),W=_.tY().resolve(_.R0(_.OI)),_.U("web_enable_voting_animation")&&W&&(V&&(l=_.i8v(V))&&W.recommendedVideos.push({itemId:l,videoId:_.TVn(V),voteCount:_.wzS(V),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.t.isVotingEnabledOnPlaylist=function(W){if(!W)return!1;W=_.L(W);for(W=W.next();!W.done;W=W.next()){var l=void 0;return!!_.k((l=W.value.playlistVideoRenderer)==null?void 0:l.engagementBar,_.mUz)}return!1};
_.t.onAppendContinuationItemsActionFinished=function(){var W;this.isVotingEnabledOnPlaylist((W=this.data)==null?void 0:W.contents)&&(this.updateIndices(),W=_.tY().resolve(_.R0(_.OI)),_.U("web_enable_voting_animation")&&W&&this.data&&W.addVideos(this.data.contents))};
_.t.updateVideoData=function(W){if(W.detail&&this.data&&this.data.contents){var l=W.detail;W=l.toIdx;var V=l.itemId,f=l.newVoteCount,r=l.voteStatus;l=l.hideItem;var R,y,P=(R=this.data)==null?void 0:(y=R.contents)==null?void 0:y.findIndex(function(J){return _.i8v(J)===V});
if(!(P<0)){R=this.data.contents[P];var n;if((n=R.playlistVideoRenderer)==null?0:n.voteCount)R.playlistVideoRenderer.voteCount=f;var B;if(n=_.k((B=R.playlistVideoRenderer)==null?void 0:B.engagementBar,_.mUz)){var d;(d=n.actions)==null||d.forEach(function(J){(J=_.k(J,_.Xzn))&&J.initialState&&(J.initialState.votes=f,J.initialState.status=r)})}this.data.contents.splice(P,1);
l||this.data.contents.splice(W,0,R);this.updateIndices()}}};
y4.prototype.updateVideoData=y4.prototype.updateVideoData;y4.prototype.onAppendContinuationItemsActionFinished=y4.prototype.onAppendContinuationItemsActionFinished;y4.prototype.onUpdateSetVideoId=y4.prototype.onUpdateSetVideoId;y4.prototype.onPlaylistReloading=y4.prototype.onPlaylistReloading;y4.prototype.onRendererstamperFinished=y4.prototype.onRendererstamperFinished;y4.prototype.dataChanged=y4.prototype.dataChanged;
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],y4.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],y4.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],y4.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.HH.YtNextContinuationBehavior),_.z("design:type",Object)],y4.prototype,"ytNextContinuationBehavior",void 0);
_.a([_.F(_.IZa),_.z("design:type",Object)],y4.prototype,"ytReorderableBehavior",void 0);_.a([_.F(_.vH),_.z("design:type",Object)],y4.prototype,"ytContinuationHandlerBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],y4.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],y4.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Boolean)],y4.prototype,"isReloading",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],y4.prototype,"isSegment",void 0);_.a([_.b({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.z("design:type",Boolean)],y4.prototype,"isSortable",void 0);_.a([_.b({computed:"computeIsEditable(data.isEditable)"}),_.z("design:type",Boolean)],y4.prototype,"isEditable",void 0);_.a([_.b({computed:"computeCanReorder(data.canReorder)"}),_.z("design:type",Boolean)],y4.prototype,"canReorder",void 0);
_.a([_.b({value:101}),_.z("design:type",Number)],y4.prototype,"scrollMargin",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],y4.prototype,"dataChanged",null);_.a([_.XI("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],y4.prototype,"onRendererstamperFinished",null);
_.a([_.XI("yt-playlist-reloading"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],y4.prototype,"onPlaylistReloading",null);_.a([_.XI("yt-update-set-video-id"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],y4.prototype,"onUpdateSetVideoId",null);
_.a([_.XI("yt-append-continuation-items-action-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],y4.prototype,"onAppendContinuationItemsActionFinished",null);_.a([_.XI("yt-update-video-data-voting-animation"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],y4.prototype,"updateVideoData",null);_.a([_.A({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],y4);
_.Z(y4,"ytd-playlist-video-list-renderer",function(){if(YS1!==void 0)return YS1;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return YS1=W},{mode:_.bD("kevlar_poly_si_batch_j047")?1:2});var xnL;var g4=function(){return _.I.apply(this,arguments)||this};
_.v(g4,_.I);g4.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"}}}}};
g4.prototype.onTextWrapperTap=function(W){var l=this.data&&this.data.navigationEndpoint;l&&!_.Cv(_.d_(W),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.FN(this.hostElement,"yt-navigate",{endpoint:l})};
g4.prototype.dataChanged=function(){var W=this.get("data.offerButton.buttonRenderer.serviceEndpoint");W&&W.commandMetadata&&_.k(W.commandMetadata,_.Ej)&&_.k(W.commandMetadata,_.Ej).fireAutomatically&&_.tY().resolve(_.s6).resolveCommand(W,{form:{element:this.hostElement}})};
g4.prototype.dataChanged=g4.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],g4.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.FK),_.z("design:type",Object)],g4.prototype,"ytdLockupBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],g4.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],g4.prototype,"useBiggerThumbs",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.gU("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],g4.prototype,"biggerThumbsStyle",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],g4.prototype,"leftAligned",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],g4.prototype,"dataChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-movie-renderer"})],g4);
_.Z(g4,"ytd-movie-renderer",function(){if(xnL!==void 0)return xnL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return xnL=W},{mode:1});var eRe;var Pb=function(){var W=_.I.apply(this,arguments)||this;W.rounded=!0;W.pageAttachedTo=void 0;W.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return W};
_.v(Pb,_.I);Pb.prototype.attached=function(){this.pageAttachedTo=_.tY().resolve(_.Bp).getCurrentPage();_.FN(this.hostElement,"yt-player-attached",this.player)};
Pb.prototype.detached=function(){var W;if((W=this.pageAttachedTo)==null?0:W.hostElement)_.FN(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Pb.prototype.dataChanged=function(){var W;if((W=this.data)==null?0:W.videoId)W={video_id:this.data.videoId,autoplay:!0},!_.U("miniplayer_stop_channel_video_autoplay_killswitch")&&_.tY().resolve(_.Sl).isMiniplayerActive()&&(W.pause_at_start=!0,W.autoplay=!1),this.player.loadVideoWithPlayerVars(W)};
Pb.prototype.handleSignalActionPausePlayer=function(){_.Dy().pause()};
Pb.prototype.dataChanged=Pb.prototype.dataChanged;_.a([_.b(),_.z("design:type",Object)],Pb.prototype,"data",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Pb.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Pb.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Pb.prototype,"rounded",void 0);_.a([_.Aa("#player"),_.z("design:type",Object)],Pb.prototype,"player",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Pb.prototype,"dataChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Pb);
_.Z(Pb,"ytd-channel-video-player-renderer",function(){if(eRe!==void 0)return eRe;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return eRe=W},{mode:1});var qS5;var hRL;var SSw;var nJ=function(){var W=_.I.apply(this,arguments)||this;W.playing=!1;W.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.qg(W);W.active=!1;return W};
_.v(nJ,_.I);_.t=nJ.prototype;_.t.detached=function(){this.stop()};
_.t.play=function(){var W=this,l,V,f,r,R;return _.g(function(y){if(y.nextAddress==1)return W.active=!0,l=W.get("data.inlinePlaybackEndpoint.watchEndpoint"),V=l.videoId||W.data.videoId,f=l.startTimeSeconds||0,r=l.playerParams||null,_.U("kevlar_player_update_killswitch")?y.yield(W.playerEl.update({args:{video_id:V,startSeconds:f,player_params:r}}),2):(W.playerEl.loadVideoWithPlayerVars({video_id:V,startSeconds:f,player_params:r,autoplay:!0}),y.jumpTo(2));if(y.nextAddress!=4)return y.yield(W.playerEl.getPlayerPromise(),
4);R=y.yieldResult;R.unloadModule("annotations_module");R.addEventListener("onStateChange",function(P){W.onPlayerStateChange(P)});
_.ju(y)})};
_.t.onPlayerStateChange=function(W){if(this.active)switch(this.playing=W===1,W){case 1:_.FN(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.FN(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.t.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.t.resize=function(){var W=this,l;return _.g(function(V){if(V.nextAddress==1)return V.yield(W.playerEl.getPlayerPromise(),2);l=V.yieldResult;l.setSize(NaN,NaN);_.ju(V)})};
_.a([_.b(),_.z("design:type",Object)],nJ.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],nJ.prototype,"playing",void 0);_.a([_.b(),_.z("design:type",Object)],nJ.prototype,"playerId",void 0);_.a([_.Aa("#player"),_.z("design:type",Object)],nJ.prototype,"playerEl",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],nJ);
_.Z(nJ,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(SSw!==void 0)return SSw;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return SSw=W},{mode:1});var EAw;var $n1;var CJ=function(){var W=_.I.apply(this,arguments)||this;W.width=0;return W};
_.v(CJ,_.I);_.t=CJ.prototype;_.t.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.mz(this,this.onEnded));this.mp4El.addEventListener("error",_.mz(this,this.onError))};
_.t.detached=function(){this.videoEl.removeEventListener("ended",_.mz(this,this.onEnded));this.mp4El.removeEventListener("error",_.mz(this,this.onError))};
_.t.play=function(){var W=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var l=this.videoEl.play();l?l.then(function(){W.handleVideoStartPlaying()}).catch(function(){_.FN(W.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.FN(this.hostElement,"yt-video-thumbnail-not-playing")};
_.t.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.t.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.t.dataChanged=function(){var W;if((W=this.data)==null?0:W.thumbnailPlaceholder)W=_.KP(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+W+")";this.stop();this.autoplay&&this.play()};
_.t.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.t.onEnded=function(){this.stop();_.FN(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.t.onError=function(){_.FN(this.hostElement,"yt-video-thumbnail-error")};
_.t.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.t.getVideoThumbnail=function(W){if(W&&W.length)return W[0]};
CJ.prototype.dataChanged=CJ.prototype.dataChanged;_.a([_.b(),_.z("design:type",Object)],CJ.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],CJ.prototype,"animatePlaceholderOnEntrance",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],CJ.prototype,"autoplay",void 0);_.a([_.b({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.z("design:type",Object)],CJ.prototype,"videoThumbnail",void 0);
_.a([_.b(),_.z("design:type",Boolean)],CJ.prototype,"loop",void 0);_.a([_.b(),_.z("design:type",Boolean)],CJ.prototype,"isVideoPlaying",void 0);_.a([_.b(),_.z("design:type",Object)],CJ.prototype,"width",void 0);_.a([_.Aa("#mp4"),_.z("design:type",HTMLElement)],CJ.prototype,"mp4El",void 0);_.a([_.Aa("#placeholder"),_.z("design:type",HTMLElement)],CJ.prototype,"placeholderEl",void 0);_.a([_.Aa("#video"),_.z("design:type",HTMLVideoElement)],CJ.prototype,"videoEl",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],CJ.prototype,"dataChanged",null);_.a([_.Vq({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],CJ);
_.Z(CJ,"yt-video-as-thumbnail-details",function(){if($n1===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;EAw===void 0&&(EAw=document.createElement("template"));var f=EAw;V.call(l,f.content.cloneNode(!0),W.content.firstChild);$n1=W}W=$n1;return W},{mode:2});var cb=function(){var W=_.I.apply(this,arguments)||this;W.disableGridStateAware=!1;W.animationEnabled=_.U("enable_web_ketchup_hero_animation");W.transitioningOut=!1;W.narrow=!1;W.narrower=!1;W.isCarouselInFeed=!1;W.videoTimeoutJobId=0;W.panelTimeoutJobId=0;W.panelTimeoutJobStartMs=0;W.actionMap={"yt-window-resized":"onWindowResized"};return W};
_.v(cb,_.I);_.t=cb.prototype;_.t.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.t.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var W;this.player&&((W=this.data)==null?0:W.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.t.attached=function(){this.onWindowResized()};
_.t.detached=function(){this.clearTimeouts()};
_.t.onWindowResized=function(){this.updateSize()};
_.t.computePanelLayout=function(W){return W&&W.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.t.playVideo=function(){var W;this.video&&((W=this.data)==null?0:W.videoThumbnail)&&this.video.play();var l;this.player&&((l=this.data)==null?0:l.inlinePlaybackRenderer)&&this.player.play()};
_.t.stopVideo=function(){var W;this.video&&((W=this.data)==null?0:W.videoThumbnail)&&this.video.stop();var l;this.player&&((l=this.data)==null?0:l.inlinePlaybackRenderer)&&this.player.stop()};
_.t.transitionOut=function(){var W=this;this.transitioningOut=!0;return new Promise(function(l){var V=function(){_.GS(W.hostElement).querySelector("#action-button").removeEventListener("animationend",V);_.w8.cancelJob(f);l();W.transitioningOut=!1};
var f=_.pS(_.w8,V,1E3);_.GS(W.hostElement).querySelector("#action-button").addEventListener("animationend",V);W.player&&(W.player.playing=!1)})};
_.t.computeMetadataOrder=function(W){return W&&W.metadataOrder&&W.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?W.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.t.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.t.computeAvatarSize=function(W){return W&&W.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.t.onContentClick=function(W){if(!_.Cv(_.d_(W),this.hostElement,["A".toString(),"BUTTON".toString()])){var l;if((l=this.data)==null?0:l.navigationEndpoint){var V;this.componentBehavior.resolveCommand((V=this.data)==null?void 0:V.navigationEndpoint)}}};
_.t.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.t.setBackgroundImage=function(W){if(W=this.getBackgroundImageUrl(W))_.GS(this.hostElement).querySelector("#hero").style.backgroundImage="url("+W+")"};
_.t.setScrimLayer=function(W){var l=this.getScrimLayerColorStops(W);W=((W==null?void 0:W.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(W=180);_.M4("HTML_DIR")==="rtl"&&(W=-W);l&&(_.GS(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+W+"deg, "+l+")")};
_.t.isNarrower=function(){return this.hostElement.clientWidth<cb.NARROW_VERSION_SIZE};
_.t.getScrimLayerColorStops=function(){var W,l=(W=this.data)==null?void 0:W.scrimColorValues;if(!l)return null;if(l.length===1)return W=_.sD(l[0]),W+" 0%, "+W+" 100%";if(l.length===3){var V=[0,72,98];return l.map(function(f,r){return _.sD(f)+" "+V[r]+"%"}).join(",")}return null};
_.t.getBackgroundImageUrl=function(W){return W&&W.largeFormFactorBackgroundThumbnail?_.KP((W.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||W.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.t.onPlaying=function(){this.startVideoTimeout()};
_.t.onEnded=function(){this.rotate()};
_.t.startPanelTimeout=function(){var W=this;if(!this.panelTimeoutJobId){var l=this.get("data.minPanelDisplayDurationMs");l&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.pS(_.w8,function(){W.rotate()},l))}};
_.t.startVideoTimeout=function(){var W=this;if(!this.videoTimeoutJobId){_.w8.cancelJob(this.panelTimeoutJobId);var l=Date.now()-this.panelTimeoutJobStartMs;l=Math.max(0,this.get("data.minPanelDisplayDurationMs")-l);l=Math.max(this.get("data.minVideoPlayDurationMs")||0,l);this.videoTimeoutJobId=_.pS(_.w8,function(){W.rotate()},l)}};
_.t.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.w8.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.w8.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.t.rotate=function(){this.clearTimeouts();_.FN(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.rc.Object.defineProperties(cb.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.GS(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.GS(this.hostElement).querySelector("#video")}}});
_.rc.Object.defineProperties(cb,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
cb.prototype.onEnded=cb.prototype.onEnded;cb.prototype.onPlaying=cb.prototype.onPlaying;cb.prototype.dataChanged=cb.prototype.dataChanged;_.a([_.F(_.uy),_.z("design:type",Object)],cb.prototype,"ytdGridStateAwareBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],cb.prototype,"componentBehavior",void 0);_.a([_.F(_.vZ.YtdGuideStateAwareBehavior),_.z("design:type",Object)],cb.prototype,"ytdGuideStateAwareBehavior",void 0);
_.a([_.F(_.TrM),_.z("design:type",Object)],cb.prototype,"ytBooleanLogicBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],cb.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],cb.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],cb.prototype,"ytRendererBehavior",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],cb.prototype,"disableGridStateAware",void 0);_.a([_.b(),_.z("design:type",Object)],cb.prototype,"data",void 0);_.a([_.b({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.z("design:type",String)],cb.prototype,"panelLayout",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],cb.prototype,"animationEnabled",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],cb.prototype,"transitioningOut",void 0);
_.a([_.b({computed:"computeMetadataOrder(data)"}),_.z("design:type",Boolean)],cb.prototype,"metadataOrder",void 0);_.a([_.b({computed:"computeByline(data)"}),_.z("design:type",Object)],cb.prototype,"byline",void 0);_.a([_.b({computed:"computeAvatarSize(data)"}),_.z("design:type",Number)],cb.prototype,"avatarSize",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],cb.prototype,"narrow",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],cb.prototype,"narrower",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],cb.prototype,"layoutStyle",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],cb.prototype,"isCarouselInFeed",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cb.prototype,"dataChanged",null);_.a([_.XI("yt-default-promo-panel-renderer-playing"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cb.prototype,"onPlaying",null);
_.a([_.XI("yt-default-promo-panel-renderer-ended"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cb.prototype,"onEnded",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],cb);
_.Z(cb,"ytd-default-promo-panel-renderer",function(){if(hRL!==void 0)return hRL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return hRL=W},{mode:1});_.e1("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var Bb=function(){var W=_.I.apply(this,arguments)||this;W.narrower=!1;W.dotMenuVisible=!1;W.paginationThumbnailsVisible=!1;W.active=!0;W.disableGridStateAware=!1;W.actionMap={"yt-window-resized":"onWindowResized"};return W};
_.v(Bb,_.I);_.t=Bb.prototype;_.t.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]]"}}}}}};
_.t.attached=function(){document.addEventListener("yt-page-type-changed",_.mz(this,this.onPageTypeChange));this.currentPageSubtype=_.Q1(location.pathname);this.onWindowResized()};
_.t.detached=function(){this.jobId&&_.w8.cancelJob(this.jobId);this.updateSizeJobId&&_.w8.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.mz(this,this.onPageTypeChange))};
_.t.onPageTypeChange=function(W){this.active=W.detail.newPageSubtype===this.currentPageSubtype};
_.t.onWindowResized=function(){this.updateSize()};
_.t.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.t.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.t.setCarouselItem=function(W){W>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.w8.cancelJob(this.jobId);var l=this.getCurrentPanelElement();l&&l.stopVideo();this.currentItemIndex=W%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(l||(l=this.getCurrentPanelElement()),l.playVideo()):this.startRotationJob()};
_.t.scrollThumbnails=function(W){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var l=this.getCurrentPaginationElement();if(l){var V=_.GS(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?V.style.transform="translateX(0)":(l=l.offsetWidth+8,V.style.transform="translateX(-"+l*(W-Math.ceil(Math.floor(this.overlay.offsetWidth/l)/2)+1)+"px)")}}};
_.t.onDataChanged=function(){var W=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.Kt(_.w8,function(){var l;(l=W.getCurrentPanelElement())==null||l.updateSize();W.updateSize()}))};
_.t.getCurrentPanelElement=function(){return _.GS(_.GS(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.t.getCurrentPaginationElement=function(){return _.GS(_.GS(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.t.getNavigationClass=function(W,l){return W===l?"selected":""};
_.t.getNavigationDurationStyle=function(W){return"animation-duration:"+(this.get("data.carouselItems."+W+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.t.onNavigationTap=function(W){var l=this,V=W.model.index;V!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){l.setCarouselItem(V)}),this.autorotateActive=!1)};
_.t.onVideoThumbnailEnded=function(){var W=this;if(this.shouldRotate()){var l=this.getCurrentPaginationElement();l&&(l.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){l.classList.remove("finished");W.setNextCarouselItem()}))}};
_.t.onVideoThumbnailError=function(){this.startRotationJob()};
_.t.onVideoNotPlaying=function(){this.startRotationJob()};
_.t.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.t.startRotationJob=function(){var W=this;_.w8.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.w8.addLowPriorityJob(function(){W.getCurrentPanelElement().transitionOut().then(function(){W.setNextCarouselItem()})},this.rotationTimeout))};
_.t.computeDotMenuVisible=function(W,l){return!!W&&!!W.carouselItems&&W.carouselItems.length>1&&!W.paginationThumbnails||!!l};
_.t.computePaginationThumbnailsVisible=function(W,l){var V,f;return((f=W==null?void 0:(V=W.paginationThumbnails)==null?void 0:V.length)!=null?f:0)>1&&!l};
_.t.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.t.computePaginatorAlignment=function(W){return(W==null?void 0:W.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.t.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.t.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.t.isNarrower=function(W){return(W!=null?W:0)<cb.NARROW_VERSION_SIZE};
Bb.prototype.activeChanged=Bb.prototype.activeChanged;Bb.prototype.onVideoNotPlaying=Bb.prototype.onVideoNotPlaying;Bb.prototype.onVideoThumbnailError=Bb.prototype.onVideoThumbnailError;Bb.prototype.onVideoThumbnailEnded=Bb.prototype.onVideoThumbnailEnded;Bb.prototype.onDataChanged=Bb.prototype.onDataChanged;_.a([_.F(_.uy),_.z("design:type",Object)],Bb.prototype,"ytdGridStateAwareBehavior",void 0);
_.a([_.F(_.vZ.YtdGuideStateAwareBehavior),_.z("design:type",Object)],Bb.prototype,"ytdGuideStateAwareBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Bb.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Bb.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Bb.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Bb.prototype,"currentItem",void 0);
_.a([_.b(),_.z("design:type",Number)],Bb.prototype,"currentItemIndex",void 0);_.a([_.b(),_.z("design:type",Number)],Bb.prototype,"rotationTimeout",void 0);_.a([_.b(),_.z("design:type",Number)],Bb.prototype,"loopCount",void 0);_.a([_.b({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.z("design:type",String)],Bb.prototype,"paginatorAlignment",void 0);_.a([_.b(),_.z("design:type",Number)],Bb.prototype,"jobId",void 0);
_.a([_.b(),_.z("design:type",Number)],Bb.prototype,"updateSizeJobId",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Bb.prototype,"isCarouselInFeed",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Bb.prototype,"narrower",void 0);_.a([_.b({computed:"computeDotMenuVisible(data, narrower)"}),_.z("design:type",Object)],Bb.prototype,"dotMenuVisible",void 0);
_.a([_.b({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.z("design:type",Object)],Bb.prototype,"paginationThumbnailsVisible",void 0);_.a([_.b({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.z("design:type",String)],Bb.prototype,"layoutType",void 0);_.a([_.b({value:!0,reflectToAttribute:!0}),_.z("design:type",Boolean)],Bb.prototype,"autorotateActive",void 0);_.a([_.b(),_.z("design:type",Object)],Bb.prototype,"active",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Bb.prototype,"disableGridStateAware",void 0);_.a([_.Aa("#overlay"),_.z("design:type",HTMLElement)],Bb.prototype,"overlay",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Bb.prototype,"onDataChanged",null);
_.a([_.XI("yt-video-thumbnail-ended"),_.XI("yt-default-promo-panel-renderer-rotate"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Bb.prototype,"onVideoThumbnailEnded",null);_.a([_.XI("yt-video-thumbnail-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Bb.prototype,"onVideoThumbnailError",null);
_.a([_.XI("yt-video-thumbnail-not-playing"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Bb.prototype,"onVideoNotPlaying",null);_.a([_.zS("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Bb.prototype,"activeChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],Bb);
_.Z(Bb,"ytd-carousel-item-renderer",function(){if(qS5!==void 0)return qS5;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return qS5=W},{mode:2});var W0c;var lHw;var V_Z;var fH1;var d4=function(){var W=_.I.apply(this,arguments)||this;W.originalQuery=null;W.originalEndpoint=null;return W};
_.v(d4,_.I);d4.prototype.computeShowOriginalQueryWithoutEndpoint_=function(W,l){return!(!W||l)};
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],d4.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],d4.prototype,"correctedText",void 0);_.a([_.b(),_.z("design:type",Object)],d4.prototype,"correctedQuery",void 0);_.a([_.b(),_.z("design:type",Object)],d4.prototype,"correctedEndpoint",void 0);_.a([_.b(),_.z("design:type",Object)],d4.prototype,"originalText",void 0);_.a([_.b(),_.z("design:type",Object)],d4.prototype,"originalQuery",void 0);
_.a([_.b(),_.z("design:type",Object)],d4.prototype,"originalEndpoint",void 0);_.a([_.b({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.z("design:type",Boolean)],d4.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.a([_.Vq({is:"yt-search-query-correction",disableElementRegistration:!0})],d4);
_.Z(d4,"yt-search-query-correction",function(){if(fH1===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;V_Z===void 0&&(V_Z=document.createElement("template"));var f=V_Z;V.call(l,f.content.cloneNode(!0),W.content.firstChild);fH1=W}W=fH1;return W},{mode:2});_.e1("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var JA=function(){return _.I.apply(this,arguments)||this};
_.v(JA,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],JA.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],JA.prototype,"data",void 0);_.a([_.Vq({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],JA);
_.Z(JA,"yt-did-you-mean-renderer",function(){if(lHw===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;W0c===void 0&&(W0c=document.createElement("template"));var f=W0c;V.call(l,f.content.cloneNode(!0),W.content.firstChild);lHw=W}W=lHw;return W},{mode:2});var rV5;var RL2;_.e1("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var D2=function(){return _.I.apply(this,arguments)||this};
_.v(D2,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],D2.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],D2.prototype,"data",void 0);_.a([_.Vq({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],D2);
_.Z(D2,"yt-including-results-for-renderer",function(){if(RL2===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;rV5===void 0&&(rV5=document.createElement("template"));var f=rV5;V.call(l,f.content.cloneNode(!0),W.content.firstChild);RL2=W}W=RL2;return W},{mode:2});var t_w;var sNe;_.e1("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var US=function(){return _.I.apply(this,arguments)||this};
_.v(US,_.I);US.prototype.computeExtraClasses_=function(W,l){var V="";W&&(V+=" "+W.toLowerCase().replace(/_/g,"-"));l&&(V+=" "+l.toLowerCase().replace(/_/g,"-"));return V};
US.prototype.computeUrlImg_=function(){var W=this.data;W.image&&(_.GS(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.KP(W.image.thumbnails,Number.MAX_VALUE)+")")};
US.prototype.computeUrlImg_=US.prototype.computeUrlImg_;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],US.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],US.prototype,"data",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],US.prototype,"computeUrlImg_",null);_.a([_.Vq({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],US);
_.Z(US,"yt-music-pass-feature-info-renderer",function(){if(sNe===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;t_w===void 0&&(t_w=document.createElement("template"));var f=t_w;V.call(l,f.content.cloneNode(!0),W.content.firstChild);sNe=W}W=sNe;return W},{mode:2});var L01;var yV2;_.e1("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var uS=function(){return _.I.apply(this,arguments)||this};
_.v(uS,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],uS.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],uS.prototype,"data",void 0);_.a([_.Vq({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],uS);
_.Z(uS,"yt-no-results-found-showing-results-for-renderer",function(){if(yV2===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;L01===void 0&&(L01=document.createElement("template"));var f=L01;V.call(l,f.content.cloneNode(!0),W.content.firstChild);yV2=W}W=yV2;return W},{mode:2});var g8Y;var Pv4;_.e1("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var kA=function(){return _.I.apply(this,arguments)||this};
_.v(kA,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],kA.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],kA.prototype,"data",void 0);_.a([_.Vq({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],kA);
_.Z(kA,"yt-results-without-quotes-renderer",function(){if(Pv4===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;g8Y===void 0&&(g8Y=document.createElement("template"));var f=g8Y;V.call(l,f.content.cloneNode(!0),W.content.firstChild);Pv4=W}W=Pv4;return W},{mode:2});var n8Z;var Cvs;_.e1("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var vb=function(){return _.I.apply(this,arguments)||this};
_.v(vb,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],vb.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],vb.prototype,"data",void 0);_.a([_.Vq({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],vb);
_.Z(vb,"yt-search-no-results-renderer",function(){if(Cvs===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;n8Z===void 0&&(n8Z=document.createElement("template"));var f=n8Z;V.call(l,f.content.cloneNode(!0),W.content.firstChild);Cvs=W}W=Cvs;return W},{mode:2});var cV7;var BQ5;_.e1("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Hb=function(){return _.I.apply(this,arguments)||this};
_.v(Hb,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Hb.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Hb.prototype,"data",void 0);_.a([_.Vq({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Hb);
_.Z(Hb,"yt-showing-results-for-renderer",function(){if(BQ5===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;cV7===void 0&&(cV7=document.createElement("template"));var f=cV7;V.call(l,f.content.cloneNode(!0),W.content.firstChild);BQ5=W}W=BQ5;return W},{mode:2});var dM2;var JV5;var DM7;var UM5;var KJ=function(){var W=_.I.apply(this,arguments)||this;W.answerExpanded=!1;return W};
_.v(KJ,_.I);KJ.prototype.toggleAnswer_=function(W){var l=_.Ja(W);l&&l.classList.contains("yt-simple-endpoint")||(W.preventDefault(),W.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
KJ.prototype.toggleAnswer_=KJ.prototype.toggleAnswer_;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],KJ.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],KJ.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],KJ.prototype,"answerExpanded",void 0);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],KJ.prototype,"toggleAnswer_",null);
_.a([_.Vq({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],KJ);
_.Z(KJ,"yt-generic-faq-question-renderer",function(){if(UM5===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;DM7===void 0&&(DM7=document.createElement("template"));var f=DM7;V.call(l,f.content.cloneNode(!0),W.content.firstChild);UM5=W}W=UM5;return W},{mode:2});_.e1("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var Fv=function(){return _.I.apply(this,arguments)||this};
_.v(Fv,_.I);Fv.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Fv.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Fv.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Fv.prototype,"data",void 0);_.a([_.Vq({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Fv);
_.Z(Fv,"yt-faq-section-renderer",function(){if(JV5===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;dM2===void 0&&(dM2=document.createElement("template"));var f=dM2;V.call(l,f.content.cloneNode(!0),W.content.firstChild);JV5=W}W=JV5;return W},{mode:2});var u02;var kBw;_.e1("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var GF=function(){return _.I.apply(this,arguments)||this};
_.v(GF,_.I);
GF.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"}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],GF.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],GF.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],GF.prototype,"data",void 0);_.a([_.Vq({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],GF);
_.Z(GF,"yt-offer-item-expanded-renderer",function(){if(kBw===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;u02===void 0&&(u02=document.createElement("template"));var f=u02;V.call(l,f.content.cloneNode(!0),W.content.firstChild);kBw=W}W=kBw;return W},{mode:2});var v8e;var HYs;_.e1("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var bS=function(){return _.I.apply(this,arguments)||this};
_.v(bS,_.I);
bS.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"}}}}};
bS.prototype.computeFullWidthMode=function(W){return!(!W||!W.fullWidthMode)};
bS.prototype.computeBorderlessMode=function(W){return!(!W||!W.borderlessMode)};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],bS.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],bS.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.z("design:type",Boolean)],bS.prototype,"fullWidthMode",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.z("design:type",Boolean)],bS.prototype,"borderlessMode",void 0);_.a([_.Vq({is:"yt-offer-item-renderer",disableElementRegistration:!0})],bS);
_.Z(bS,"yt-offer-item-renderer",function(){if(HYs===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;v8e===void 0&&(v8e=document.createElement("template"));var f=v8e;V.call(l,f.content.cloneNode(!0),W.content.firstChild);HYs=W}W=HYs;return W},{mode:2});var K07;var F04;_.e1("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var pJ=function(){return _.I.apply(this,arguments)||this};
_.v(pJ,_.I);pJ.prototype.computeAriaLevel_=function(W){return this.getLevelID_(W)};
pJ.prototype.getLevelID_=function(W){return(W=W.match(/[0-9]+$/))&&W.length==1?W[0]:"1"};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],pJ.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],pJ.prototype,"data",void 0);_.a([_.b({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.z("design:type",String)],pJ.prototype,"ariaLevel",void 0);_.a([_.b({value:"heading",reflectToAttribute:!0}),_.z("design:type",String)],pJ.prototype,"role",void 0);
_.a([_.b({value:-1,reflectToAttribute:!0}),_.z("design:type",Number)],pJ.prototype,"tabindex",void 0);_.a([_.Vq({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],pJ);
_.Z(pJ,"yt-subscription-product-header-renderer",function(){if(F04===void 0){var W=document.createElement("template");_.K(W,"\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");W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;K07===void 0&&(K07=document.createElement("template"));var f=K07;V.call(l,f.content.cloneNode(!0),W.content.firstChild);F04=W}W=F04;return W},{mode:2});var GB1;var bY7;_.e1("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var o6=function(){return _.I.apply(this,arguments)||this};
_.v(o6,_.I);o6.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:_.qe("menuRenderer"),events:!0}}};
o6.prototype.onStampFinished_=function(){_.GS(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
o6.prototype.onStampFinished_=o6.prototype.onStampFinished_;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],o6.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],o6.prototype,"data",void 0);_.a([_.XI("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o6.prototype,"onStampFinished_",null);
_.a([_.Vq({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],o6);
_.Z(o6,"yt-subscription-product-renderer",function(){if(bY7===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;GB1===void 0&&(GB1=document.createElement("template"));var f=GB1;V.call(l,f.content.cloneNode(!0),W.content.firstChild);bY7=W}W=bY7;return W},{mode:2});var pQL;var o8s;_.e1("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var j4=function(){return _.I.apply(this,arguments)||this};
_.v(j4,_.I);j4.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
j4.prototype.imageScrimColorValuesChanged_=function(){var W,l=(W=this.data)==null?void 0:W.imageScrimColorValues;_.GS(this.hostElement).querySelector("#scrim").style.backgroundColor=l?_.sD(l[0]):"transparent"};
j4.prototype.imageScrimColorValuesChanged_=j4.prototype.imageScrimColorValuesChanged_;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],j4.prototype,"data",void 0);
_.a([_.TS("data.imageScrimColorValues"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],j4.prototype,"imageScrimColorValuesChanged_",null);_.a([_.Vq({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],j4);
_.Z(j4,"yt-subscription-product-upsell-offer-renderer",function(){if(o8s===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;pQL===void 0&&(pQL=document.createElement("template"));var f=pQL;V.call(l,f.content.cloneNode(!0),W.content.firstChild);o8s=W}W=o8s;return W},{mode:2});var jNL;var IH1;var iYe;var mM1;var XQs;var TQ4;var I6=function(){return _.I.apply(this,arguments)||this};
_.v(I6,_.I);I6.prototype.onYtServiceRequestError_=function(W){_.Lh(this.hostElement,W.detail.error.message)};
I6.prototype.onYtServiceRequestError_=I6.prototype.onYtServiceRequestError_;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],I6.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],I6.prototype,"data",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],I6.prototype,"collapsible",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],I6.prototype,"isManageRed",void 0);
_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],I6.prototype,"onYtServiceRequestError_",null);_.a([_.Vq({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],I6);
_.Z(I6,"yt-single-ypc-offer-renderer",function(){if(TQ4===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;XQs===void 0&&(XQs=document.createElement("template"));var f=XQs;V.call(l,f.content.cloneNode(!0),W.content.firstChild);TQ4=W}W=TQ4;return W},{mode:2});var iS=function(){return _.I.apply(this,arguments)||this};
_.v(iS,_.I);iS.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],iS.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],iS.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],iS.prototype,"isManageRed",void 0);_.a([_.Vq({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],iS);
_.Z(iS,"yt-single-ypc-offer-list-renderer",function(){if(mM1===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;iYe===void 0&&(iYe=document.createElement("template"));var f=iYe;V.call(l,f.content.cloneNode(!0),W.content.firstChild);mM1=W}W=mM1;return W},{mode:2});var wQ7;var AV1;_.e1("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var mP=function(){return _.I.apply(this,arguments)||this};
_.v(mP,_.I);mP.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],mP.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],mP.prototype,"data",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],mP.prototype,"isManageRed",void 0);_.a([_.Vq({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],mP);
_.Z(mP,"yt-ypc-offers-list-renderer",function(){if(AV1===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;wQ7===void 0&&(wQ7=document.createElement("template"));var f=wQ7;V.call(l,f.content.cloneNode(!0),W.content.firstChild);AV1=W}W=AV1;return W},{mode:2});_.e1("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Xv=function(){return _.I.apply(this,arguments)||this};
_.v(Xv,_.I);
Xv.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}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Xv.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Xv.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Xv.prototype,"data",void 0);_.a([_.Vq({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Xv);
_.Z(Xv,"yt-unlimited-manage-subscription-page-renderer",function(){if(IH1===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;jNL===void 0&&(jNL=document.createElement("template"));var f=jNL;V.call(l,f.content.cloneNode(!0),W.content.firstChild);IH1=W}W=IH1;return W},{mode:2});var QNw;var M_5;var TF=function(){return _.I.apply(this,arguments)||this};
_.v(TF,_.I);_.t=TF.prototype;_.t.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.t.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.t.onKeypress_=function(W){W.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.t.handleHeaderTap_=function(W){W.preventDefault();W.stopPropagation();this.expandOffers_()};
_.t.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.t.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
TF.prototype.dataChanged_=TF.prototype.dataChanged_;_.a([_.F(_.NN),_.z("design:type",Object)],TF.prototype,"ironA11yKeysBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],TF.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],TF.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],TF.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],TF.prototype,"offersVisible_",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TF.prototype,"dataChanged_",null);_.a([_.Vq({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],TF);
_.Z(TF,"yt-collapsible-ypc-offer-renderer",function(){if(M_5===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;QNw===void 0&&(QNw=document.createElement("template"));var f=QNw;V.call(l,f.content.cloneNode(!0),W.content.firstChild);M_5=W}W=M_5;return W},{mode:2});var ZYw;var OYL;_.e1("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var w4=function(){return _.I.apply(this,arguments)||this};
_.v(w4,_.I);_.t=w4.prototype;_.t.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.t.dataChanged_=function(){if(this.data.backgroundImage){var W=_.KP(this.data.backgroundImage.thumbnails,screen.width),l=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=l?"linear-gradient(180deg, "+l+"), url("+W+")":"url("+W+")";this.data.gtmId&&_.LA(this.data.gtmId,_.M4("GL",""))}};
_.t.onYtServiceRequestError_=function(W){_.Lh(this.hostElement,W.detail.error.message)};
_.t.getScrimLayerColorStops_=function(){var W,l,V=(W=this.data.unlimitedHeaderV2Data)==null?void 0:(l=W.unlimitedHeaderV2Data)==null?void 0:l.scrimLayerColors;if(!V)return null;var f=100/V.length;return V.map(function(r,R){R*=f;return _.sD(r)+" "+R+"%"}).join(",")};
_.t.computeLogoWithPadding=function(W){var l,V,f;return(W=(l=W.unlimitedLogoImage)==null?void 0:(V=l.thumbnails)==null?void 0:(f=V[0])==null?void 0:f.height)&&W%31===0?!0:!1};
w4.prototype.onYtServiceRequestError_=w4.prototype.onYtServiceRequestError_;w4.prototype.dataChanged_=w4.prototype.dataChanged_;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],w4.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],w4.prototype,"ytRendererBehavior",void 0);_.a([_.b({computed:"computeLogoWithPadding(data)"}),_.z("design:type",Boolean)],w4.prototype,"logoWithPadding",void 0);
_.a([_.b(),_.z("design:type",Object)],w4.prototype,"data",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],w4.prototype,"dataChanged_",null);_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],w4.prototype,"onYtServiceRequestError_",null);_.a([_.Vq({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],w4);
_.Z(w4,"yt-unlimited-page-header-renderer",function(){if(OYL===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;ZYw===void 0&&(ZYw=document.createElement("template"));var f=ZYw;V.call(l,f.content.cloneNode(!0),W.content.firstChild);OYL=W}W=OYL;return W},{mode:2});var aHY;var zLe;_.e1("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var AA=function(){return _.I.apply(this,arguments)||this};
_.v(AA,_.I);AA.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],AA.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],AA.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],AA.prototype,"data",void 0);_.a([_.Vq({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],AA);
_.Z(AA,"yt-unlimited-user-notification-renderer",function(){if(zLe===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;aHY===void 0&&(aHY=document.createElement("template"));var f=aHY;V.call(l,f.content.cloneNode(!0),W.content.firstChild);zLe=W}W=zLe;return W},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.dTs=_.Q(function(W){var l=_.Dd(W,{numberOfChips:5}).numberOfChips;return _.C("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.C(_.G3,{each:function(){return Array(l==null?void 0:l())}},function(){return _.C("div",{class:"ytGhostChipShelfChip"})}))},"ih");_.Jg5=_.Q(function(W){var l=function(){var R;return((R=W.data)==null?void 0:R.call(W).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},V=_.i$(),f=_.tY().resolve(_.cI);
_.iz(function(){requestAnimationFrame(function(){var R;(R=V.lottieEl)==null||R.addEventListener("DOMLoaded",function(){var y;(y=W.onLottieLoaded)==null||y.call(W)})})});
var r={};return _.C("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var R;return((R=W.data)==null?void 0:R.call(W).targetId)||""}},_.C(_.SX,{className:_.If((r.ytChatLoadingViewModelRtl=f==="rtl",r)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:l()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||l()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:l()}}},
animationRef:V}))},"jh");
}catch(e){_._DumpException(e)}
try{
var gYe,PPc,CP5,cYH,BU7,dL1,JY1,DL1,FSZ,Nm,KSc,uP7,H7L,vYL,k4Z,ULZ,G4N,b7H,pA2,oY4,Yp,j0s,Ij1,XA4,ep,i7w,Sp,xp,qm,mLZ,hF,TUY,wAH,AYs,Q0N,MFs,Z7Y,O7c,zVH,NUY,Y6Z,xL2,eVY,q6s,hVw,S6Y,EYc,$Lw,ls2,fs5,RjY,tSZ,slZ,Luc,Pic,ns1,Ci1,cvw,B8H,dtc,Jve,Ut4,HR7,vsL,uR7,KuL,kdY,Fu4,os1,p2L,Gde,bR5,$p,jl2,Is7,mts,MS4,ZRs,ORY,ase,zjc,N8e,YwH,xt4,ej5,qw2,Sww,Ese,$t4,w2Z;
_.aq=function(W){var l=new _.bP("Error accessing DB");return _.j28().then(function(V){return new Promise(function(f,r){try{var R=V.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(W);R.onsuccess=function(){var y=R.result;f(y?y.value:null)};
R.onerror=function(){l.params={key:W,source:"onerror"};r(l)}}catch(y){l.params={key:W,
thrownError:String(y)},r(l)}})},function(){return null})};
_.yYc=function(W,l){var V=_.f7F(l);V!=="javascript:"&&V!=="data:"&&W.setAttribute("href",l)};
gYe=function(W,l){return _.mL(W.entities,"flowStateEntity",l)};
PPc=function(W,l){return _.mL(W.entities,"contextNoteUserRatingEntityPayload",l)};
_.nYw=function(W,l){if(W&&l){var V=_.div();V().set(W,l);_.JKU(V())}};
CP5=function(W){return _.T6(W,function(l){return l.languageCode==="en"})};
cYH=function(W){var l=zc;if(_.k37(W))W.setOption("captions","stickyLoading",{}),W.setOption("captions","track",{});else{var V=_.T6(_.ft8(W),function(f){return f.displayName===l});
W.setOption("captions","track",V)}};
BU7=function(W){if(!W)return 0;var l=W.getPresentingPlayerType(),V=W.getVideoData();return V&&V.isLive?(W=W.getProgressState(l),W.seekableEnd-W.seekableStart):W.getDuration(l)};
dL1=function(W,l){for(var V=_.L(Object.keys(W)),f=V.next();!f.done;f=V.next())if(f=f.value,W[f]!==l[f])return!1;return!0};
JY1=function(){return document.getElementById("player-control-overlay")};
DL1=function(W){W!==-1&&!_.U("player_controls_log_creation_killswitch")&&JY1()&&(_.Wy("pcu_cs",W),_.Wy("pcu_ce"))};
FSZ=function(W,l){var V=_.JG(W,{}),f=ULZ("top",l),r=ULZ("bottom",l),R=ULZ("left",l),y=ULZ("right",l);return _.Tm({top:function(){return Nm(V().position,f)},
bottom:function(){return Nm(V().position,r)},
left:function(){return Nm(V().position,R)},
right:function(){return Nm(V().position,y)},
position:function(){return Nm(V().positionType,uP7)},
height:function(){return Nm(V().height,Yp)},
width:function(){return Nm(V().width,Yp)},
"min-width":function(){return Nm(V().minWidth,Yp)},
"min-height":function(){return Nm(V().minHeight,Yp)},
"max-width":function(){return Nm(V().maxWidth,Yp)},
"max-height":function(){return Nm(V().maxHeight,Yp)},
"aspect-ratio":function(){return Nm(V().aspectRatio,String)},
"margin-top":function(){return Nm(V().margin,f)},
"margin-bottom":function(){return Nm(V().margin,r)},
"margin-left":function(){return Nm(V().margin,R)},
"margin-right":function(){return Nm(V().margin,y)},
"padding-top":function(){return Nm(V().padding,f)},
"padding-bottom":function(){return Nm(V().padding,r)},
"padding-left":function(){return Nm(V().padding,R)},
"padding-right":function(){return Nm(V().padding,y)},
"flex-direction":function(){return Nm(V().flexDirection,k4Z)},
"justify-content":function(){return Nm(V().justifyContent,vYL)},
"align-items":function(){return Nm(V().alignItems,H7L)},
"flex-grow":function(){return Nm(V().flexGrow,String)},
"flex-shrink":function(){return Nm(V().flexShrink,String)},
"flex-basis":function(){return Nm(V().flexBasis,Yp)},
"align-self":function(){return Nm(V().alignSelf,H7L)},
"flex-wrap":function(){return Nm(V().flexWrap,KSc)},
"align-content":function(){return Nm(V().alignContent,H7L)}})};
Nm=function(W,l){return W!==void 0?l(W):void 0};
KSc=function(W){switch(W){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
uP7=function(W){switch(W){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
H7L=function(W){switch(W){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"}};
vYL=function(W){switch(W){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"}};
k4Z=function(W){switch(W){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"}};
ULZ=function(W,l){var V=l==="rtl";switch(W){case "top":var f=G4N;break;case "bottom":f=b7H;break;case "left":f=pA2;break;default:f=oY4}return function(r){return Nm(f(r,V),Yp)}};
G4N=function(W){var l=W.top;var V=W.vertical;W=W.all;var f;return(f=l!=null?l:V)!=null?f:W};
b7H=function(W){var l=W.bottom;var V=W.vertical;W=W.all;var f;return(f=l!=null?l:V)!=null?f:W};
pA2=function(W,l){var V=W.left;var f=W.end;var r=W.start;var R=W.horizontal;W=W.all;var y,P;return(P=(y=V!=null?V:l?f:r)!=null?y:R)!=null?P:W};
oY4=function(W,l){var V=W.right;var f=W.end;var r=W.start;var R=W.horizontal;W=W.all;var y,P;return(P=(y=V!=null?V:l?r:f)!=null?y:R)!=null?P:W};
Yp=function(W){var l=W.value;switch(W.unit){case "YPC_DIMENSION_UNIT_POINT":return l+"px";case "YPC_DIMENSION_UNIT_FRACTION":return l+"%";default:return""+l}};
j0s=function(W){switch(W){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"}};
Ij1=function(W){var l=W!=null?W:{};W=l.fontRole;var V=l.fontSize;l=l.fontWeight;if(W!==null&&V!==null)switch(W){case "YPC_FONT_ROLE_DISPLAY":switch(V){case "YPC_FONT_SIZE_L":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(V){case "YPC_FONT_SIZE_L":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return l===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(V){case "YPC_FONT_SIZE_XL":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return l==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
XA4=function(W,l,V){function f(J){return Object.values(J).map(function(D){var u=D.productId;D=D.pricingOptionIndex;return xp(r(u).pricingOptions,D).pricingOptionId})}
function r(J){return n().get(J)}
function R(J){J=f(J);V(J)}
function y(J,D){return Array.from(ep(J.pricingOptions)).filter(function(u){u=_.L(u);u.next();u=u.next().value;return qm(u.pricingGroupAttributes,D)}).map(function(u){return _.L(u).next().value})}
var P=hF([W,l],function(J,D){var u=J==null?void 0:J.selectedPricingOptions;J={};var H=!0;if(u&&D.length)for(var p=_.L(D),X=p.next();!X.done;X=p.next()){X=X.value;var w=i7w(X.pricingOptions,function(N){a:{N=N.pricingOptionId;for(var x=_.L(u),Y=x.next();!Y.done;Y=x.next())if(Y.value===N){N=!0;break a}N=!1}return N});
if(w>=0){H=!1;var O=xp(X.pricingOptions,w),S=void 0;J[X.groupId]={productId:X.productId,pricingOptionIndex:w,pricingGroupAttributes:(S=O)==null?void 0:S.pricingGroupAttributes}}}H&&D.length&&(H=xp(D[0].pricingOptions,0),J[D[0].groupId]={productId:D[0].productId,pricingOptionIndex:0,pricingGroupAttributes:H==null?void 0:H.pricingGroupAttributes});return J}),n=hF([l],function(J){return new Map(J.map(function(D){return[D.productId,
D]}))}),B=hF([l],function(J){var D=new Map;
J=_.L(J);for(var u=J.next();!u.done;u=J.next()){var H=u.value;u=H.groupId;var p=H.productId;H=_.L(ep(H.pricingOptions));for(var X=H.next();!X.done;X=H.next()){var w=_.L(X.value);X=w.next().value;w=w.next().value;D.set(w.pricingOptionId,{groupId:u,productId:p,index:X,pricingOption:w,pricingGroupAttributes:w.pricingGroupAttributes})}}return D}),d=hF([l],function(J){var D=new Map;
J=_.L(J);for(var u=J.next();!u.done;u=J.next()){var H=u.value;u=H.groupId;var p=H.productId,X=void 0;H=_.L(ep((X=H.pricingGroups)!=null?X:[]));for(X=H.next();!X.done;X=H.next()){var w=_.L(X.value);X=w.next().value;w=w.next().value;D.set(w.pricingGroupId,{groupId:u,productId:p,index:X,pricingGroup:w,pricingGroupAttributes:w.pricingGroupAttributes})}}return D});
return{getProductById:r,isProductSelected:function(J){var D=r(J);if(!D)return!1;var u;return((u=P()[D.groupId])==null?void 0:u.productId)===J},
getSelectedPricingOptions:function(){return Object.values(P()).map(function(J){var D=J.productId;J=J.pricingOptionIndex;return xp(r(D).pricingOptions,J)})},
getSelectedPricingGroupAttributesByGroupId:function(J){var D;return(J=(D=P()[J])==null?void 0:D.pricingGroupAttributes)?Array.from(J):void 0},
getSelectedProductByGroupId:function(J){var D;return(J=(D=P()[J])==null?void 0:D.productId)?r(J):void 0},
onProductSelected:function(J){var D=r(J);if(D){var u=P(),H;if(((H=u[D.groupId])==null?void 0:H.productId)!==J){var p=(H=(p=u[D.groupId])==null?void 0:p.productId)?r(H):void 0;var X;H=(X=u[D.groupId])==null?void 0:X.pricingGroupAttributes;var w;X=(w=u[D.groupId])==null?void 0:w.pricingOptionIndex;if(p&&H&&X!==void 0){w=y(p,H).indexOf(X);if(w===-1)throw Error("Qj`"+X+"`"+p.productId);X=y(D,H);w=w<X.length?X[w]:X.length>0?X[0]:0}else w=0;Sp(D.pricingOptions)<=w&&(w=0);X=xp(D.pricingOptions,w);var O;
p={};R(Object.assign({},u,(p[D.groupId]={productId:J,pricingOptionIndex:w,pricingGroupAttributes:(O=X==null?void 0:X.pricingGroupAttributes)!=null?O:[]},p)))}}},
onPricingOptionSelected:function(J){var D=B().get(J);if(D){J=D.groupId;var u=D.productId;D=D.index;var H=P(),p,X;if(((p=H[J])==null?void 0:p.productId)!==u||((X=H[J])==null?void 0:X.pricingOptionIndex)!==D){var w,O;p={};R(Object.assign({},H,(p[J]={productId:u,pricingOptionIndex:D,pricingGroupAttributes:(O=(w=H[J])==null?void 0:w.pricingGroupAttributes)!=null?O:[]},p)))}}},
onPricingGroupSelected:function(J){var D=d().get(J);if(D){J=D.groupId;var u=D.productId,H=D.pricingGroup.pricingGroupAttributes,p=r(u);if(p){D=P();var X=D[J].pricingGroupAttributes,w;if(((w=D[J])==null?void 0:w.productId)!==u||!qm(mLZ(X,Sp(H)),H)){w=Array.from(H);for(H=Sp(H);H<Sp(X);H++){var O="",S=!1,N=Array.from(w);N.push(xp(X,H));for(var x=_.L(p.pricingGroups),Y=x.next();!Y.done;Y=x.next())if(Y=Y.value,qm(Y.pricingGroupAttributes,N)){w.push(xp(X,H));S=!0;break}else O===""&&Sp(Y.pricingGroupAttributes)===
N.length&&qm(mLZ(Y.pricingGroupAttributes,w.length),w)&&(O=xp(Y.pricingGroupAttributes,H));S||w.push(O)}O=D[J].pricingOptionIndex;H=[];S=new Map;N=0;p=_.L(ep(p.pricingOptions));for(x=p.next();!x.done;x=p.next())Y=_.L(x.value),x=Y.next().value,Y=Y.next().value,qm(Y.pricingGroupAttributes,w)&&H.push(x),qm(Y.pricingGroupAttributes,X)&&S.set(x,N++);H.length===0?X=0:(X=S.get(O),X=X!==void 0&&X<H.length?H[X]:H[0]);p={};R(Object.assign({},D,(p[J]={productId:u,pricingOptionIndex:X,pricingGroupAttributes:w},
p)))}}}},
onClearGroupSelected:function(J){var D=P();D[J]&&(D=Object.fromEntries(Object.entries(D).filter(function(u){return _.L(u).next().value!==J})),R(D))}}};
ep=function(W){return function V(){var f,r,R,y,P;return _.UH(V,function(n){switch(n.nextAddress){case 1:_.Gu(n,2),f=0,r=_.L(W),R=r.next();case 4:if(R.done){n.jumpTo(2);break}y=R.value;P=_.u4;return n.yield([f++,y],7);case 7:P(n.yieldResult);R=r.next();n.jumpTo(4);break;case 2:_.Ff(n),_.bM(n,0)}})}()};
i7w=function(W,l){W=_.L(ep(W));for(var V=W.next();!V.done;V=W.next()){var f=_.L(V.value);V=f.next().value;f=f.next().value;if(l(f))return V}return-1};
Sp=function(W){var l=0;for(W=W[Symbol.iterator]();!W.next().done;)++l;return l};
xp=function(W,l){W=_.L(ep(W));for(var V=W.next();!V.done;V=W.next()){var f=_.L(V.value);V=f.next().value;f=f.next().value;if(V===l)return f}};
qm=function(W,l){if(!W&&!l)return!0;if(!W||!l)return!1;W=Array.from(W);l=Array.from(l);if(W.length!==l.length)return!1;for(var V=0;V<W.length;V++)if(W[V]!==l[V])return!1;return!0};
mLZ=function(W,l){l=l===void 0?Infinity:l;var V=[];W=_.L(ep(W));for(var f=W.next();!f.done;f=W.next()){var r=_.L(f.value);f=r.next().value;r=r.next().value;if(f>=l)break;f>=0&&V.push(r)}return V};
hF=function(W,l){var V,f;return function(){for(var r=W.map(function(y){return y()}),R=0;R<r.length;R++)if(!V||r[R]!==V[R]){V=r;
f=l.apply(null,_.QK(r));break}return f}};
TUY=function(W,l,V){var f=[];W=_.L(W);for(var r=W.next();!r.done;r=W.next()){r=r.value;var R=void 0;((R=l)==null?0:R.length)&&!qm(r.pricingGroupAttributes,l)||f.push({pricingOption:r,isSelected:V.includes(r.pricingOptionId)})}return f};
wAH=function(W,l){return _.mL(W.entities,"pdpStateEntity",l)};
AYs=function(W){var l,V;return!!(W.productId&&W.groupId&&((l=W.pricingOptions)==null?0:l.length)&&W.pricingOptions.every(function(f){return f.pricingOptionId})&&((V=W.pricingGroups)==null||!V.length||Array.isArray(W.pricingGroups)&&W.pricingGroups.every(function(f){return f.pricingGroupId&&f.pricingGroupAttributes&&f.pricingGroupAttributes.length>0})))};
Q0N=function(W,l,V){return XA4(W,hF([l],function(f){return f.filter(AYs)}),V)};
MFs=function(W){var l=void 0,V;for(V in W)if(W.hasOwnProperty(V)){l=V;break}return l};
Z7Y=function(W,l){return l.length===0?[W]:[W.slice(0,l[0]),W.slice(l[0])].filter(function(V){return V.length>0})};
O7c=function(W){switch(W){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""}};
zVH=function(W,l,V,f){f=Object.assign({},f);_.SM(f,aj4,{selectedOptionId:W,primaryButtonOverride:V});_.BE().dispatch(_.MB("flowStateEntity",l,f))};
NUY=function(W){switch(W){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"}};
Y6Z=function(W){switch(W){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"}};
xL2=function(W,l){l.includes(W)?l=l.filter(function(V){return V!==W}):l.push(W);
return[].concat(_.QK(l))};
eVY=function(W,l){return _.mL(W.entities,"contextNoteFeedEntityPayload",l)};
q6s=function(W,l){switch(W){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return l==null?void 0:l.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return l==null?void 0:l.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return l==null?void 0:l.ratingNotHelpfulText}};
hVw=function(W,l){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:W.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:W.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:W.deleteDialogTitle}]},dialogMessages:[{runs:[{text:W.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:W.deleteActionText}]},command:{performCommentActionEndpoint:{action:l}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:W.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
S6Y=function(W,l,V){var f;if(W&&((f=l())==null?0:f.includes(W))){var r;V((r=l())==null?void 0:r.filter(function(R){return R!==R}))}else V([].concat(_.QK(l()||[]),[W]))};
EYc=function(W){W.style.height="auto";W.style.height=W.scrollHeight+"px"};
$Lw=function(W){return[W.syncStep,W.asyncStep].filter(function(l){return l!==void 0})};
ls2=function(W){var l,V,f;if(W=(l=W.structuredContextNoteFormSchema)==null?void 0:(V=l.fieldSchemas)==null?void 0:(f=V.noteBody)==null?void 0:f.validationSchema)for(l=_.L($Lw(W)),V=l.next();!V.done;V=l.next()){V=V.value.rules;if(!V)break;V=_.L(V);for(V=V.next();!V.done;V=V.next())return _.k(V.value,_.Wue)}};
fs5=function(W){if(W){W=_.L($Lw(W));for(var l=W.next();!l.done;l=W.next()){l=l.value.rules;if(!l)break;l=_.L(l);for(l=l.next();!l.done;l=l.next())return _.k(l.value,VSw)}}};
RjY=function(W){if(W){W=_.L($Lw(W));for(var l=W.next();!l.done;l=W.next()){l=l.value.rules;if(!l)break;l=_.L(l);for(l=l.next();!l.done;l=l.next())return _.k(l.value,rvw)}}};
tSZ=function(W){W=/^https?:\/\//.test(W)?W:"http://"+W;try{var l=_.SV(W)}catch(V){return!1}if(l.toString()!==W)return!1;W=l.JSC$10026_domain_.split(".");return W.length>1&&W.every(function(V){return!!V})};
slZ=function(W,l,V,f){var r;f=(r=f.structuredContextNoteData)==null?void 0:r.createCommentEndpoint;if(r=_.k(f,_.V7k))return r.commentText=_.Bl(W),r.videoPositionMention=l,r.sources=V,f};
Luc=function(W){return W==null?void 0:W.stringValue};
_.yvN=function(W){return W.talkToRecs};
Pic=function(W,l,V){W=W.map(function(f,r){return{listItemViewModel:{title:f.title,subtitle:f.subtitle,leadingImage:f.leadingImage,trailingImage:r===l?gsN:void 0,rendererContext:{commandContext:{onTap:f.onTap}}}}});
return Object.assign({},V&&{header:{panelHeaderViewModel:{title:V}}},{content:{listViewModel:{listItems:W}}})};
ns1=function(W,l){if(W&&l)switch(l){case "SELECTION_TYPE_BOOL":return W.boolValue;case "SELECTION_TYPE_INT":return W.intValue;case "SELECTION_TYPE_STRING":return W.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return W.privacyStatusValue}};
Ci1=function(W){var l;W=(l=W.options)==null?void 0:l.findIndex(function(V){return V.isSelected});
return W===void 0?-1:W};
cvw=function(W,l,V){var f=function(){return W().label},r={},R=_.If("ytDropdownViewModelLabel",(r.ytDropdownViewModelLabelError=l,r));
return _.C(_.c,{cond:function(){return W().label&&!(V()===-1&&W().label&&!W().placeholderText)},
then:function(){return _.C("div",{class:R},_.C(_.bH,{text:f}))}})};
B8H=function(W,l){var V={};V=_.If("ytDropdownViewModelTitle",(V.ytDropdownViewModelTitlePlaceholder=function(){return l()===-1},V));
return _.C("div",{class:V},_.C(_.bH,{text:function(){var f=W();var r=l();if(r===-1)f=f.placeholderText?f.placeholderText:f.label;else{var R,y;f=(R=f.options)==null?void 0:(y=R[r])==null?void 0:y.title}return f}}))};
dtc=function(W,l){var V=function(){return W().hint};
return _.C(_.Lp,null,_.C(_.c,{cond:function(){return V()&&!l()},
then:function(){return _.C("div",{class:_.If("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.C(_.bH,{text:V,className:"ytDropdownViewModelSupportText"}))}}),_.C(_.c,{cond:l,
then:function(){return _.C("div",{id:"dropdown-view-model-error",role:"alert",class:_.If("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.C(_.wN,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.C(_.bH,{text:l,className:"ytDropdownViewModelSupportText"}))}}))};
Jve=function(W,l){var V=_.tY().resolve(_.I$5);_.mw(function(){var f=W().id;f&&V!=null&&V.dropdownMap.set(f,l)})};
Ut4=function(W){W=_.k(W.scheduleButton,Dtw);W=_.k(W==null?void 0:W.primaryButton,_.JJ);W=_.k(W==null?void 0:W.onTap,_.VY);var l,V,f=((V=_.k(W,_.Ig))==null?void 0:V.commands)||[W];V=_.L(f);for(W=V.next();!W.done&&!(l=_.k(W.value,_.fuc));W=V.next());var r;l=(r=l)==null?void 0:r.createBroadcastRequest;if(!l)throw Error("Xj");return l};
HR7=function(W,l,V){V=V===void 0?{}:V;var f,r;return _.g(function(R){if(f=uR7(l))return R.return(f);(r=kdY(W,l,V))&&vsL(l,r);return R.return(r)})};
vsL=function(W,l){var V=KuL(W);V&&l.then(function(f){_.tY().resolve(_.zJ).put(V,new _.Nz({innertubeResponse:f}))})};
uR7=function(W){if(W=KuL(W)){var l=_.tY().resolve(_.zJ);if(l.has(W))return l.get(W).then(function(V){return V==null?void 0:_.c0(V)})}return null};
KuL=function(W){var l=_.k(W.endpoint,_.Bh);if(l!=null&&l.videoId)return l={videoId:l.videoId},_.U("web_imp_player_mute_params")&&(l.mutedAtStart=W.startPlaybackInMutedState),_.ch("inline_playback",l)};
kdY=function(W,l,V){W=_.Lv(W,l.endpoint,Fu4(l,V)).then(function(f){return f});
return Promise.resolve(W)};
Fu4=function(W,l){l=_.U("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!W.startPlaybackInMutedState},l):Object.assign({},{vis:5,autonav:"1"},l);var V;l={contentPlaybackContext:_.er(l,(V=_.k(W.endpoint.commandMetadata,_.XN))==null?void 0:V.url,window.location.href)};_.U("web_imp_player_mute_params")&&(l.overrideMutedAtStart=!W.startPlaybackInMutedState);return l};
os1=function(W,l){var V=window.MutationObserver;V&&(EW=new V(function(f,r){f=_.L(f);for(var R=f.next();!R.done;R=f.next()){R=R.value;var y;if(y=R.type==="childList"&&R.target)a:{y=W;R=Gde(R.target);y=Gde(y);for(var P=null,n=0;n<R.length;n++)if(y.includes(R[n])){if(n===0){y=!1;break a}P=R[n];break}P?(R=bR5(R,P),y=bR5(y,P),y=R<y):y=!1}if(y){l();r.disconnect();break}}}),(V=p2L())&&EW.observe(V,{childList:!0,
subtree:!0}))};
p2L=function(){var W=document.getElementsByTagName("ytd-rich-grid-renderer");if(W.length>0)return W[0];W=document.getElementsByTagName("ytd-section-list-renderer");return W.length>0?W[0]:null};
Gde=function(W){for(var l=[];W;)l.push(W),W=W.parentElement;return l};
bR5=function(W,l){var V=Array.from(l.children);l=W.indexOf(l);return l>0?V.indexOf(W[l-1]):-1};
$p=function(W,l,V){V=V===void 0?{}:V;return _.wg(W,V,l)};
jl2=function(W){switch(W){case "MUSIC":return!0;default:return!1}};
Is7=function(W){return W==null?void 0:W.filter(function(l){return l.premiereTrailerBadgeRenderer})};
mts=function(W){var l,V=W==null?void 0:(l=W.find(function(J){return J.thumbnailOverlayTimeStatusRenderer}))==null?void 0:l.thumbnailOverlayTimeStatusRenderer,f,r;
if((V==null?0:(f=V.icon)==null?0:f.iconType)&&jl2(V==null?void 0:(r=V.icon)==null?void 0:r.iconType)){var R;return{icon:V==null?void 0:(R=V.icon)==null?void 0:R.iconType}}var y,P;var n=(W=(y=W==null?void 0:(n=W.find(function(J){return J.thumbnailBottomOverlayViewModel}))==null?void 0:n.thumbnailBottomOverlayViewModel)==null?void 0:(P=y.badges)==null?void 0:P.find(function(J){var D,u;
return((D=_.k(J,iRe))==null?void 0:(u=D.inlinePlaybackBadgeData)==null?void 0:u.replicateAsTimestamp)===!0}))?_.k(W,iRe):void 0;
if(n==null?0:n.icon){var B,d;if((n=(B=_.yiq(n==null?void 0:n.icon))==null?void 0:(d=B.clientResource)==null?void 0:d.imageName)&&jl2(n))return{icon:n}}return{}};
MS4=function(W,l){var V=X27,f=_.L(_.J4(T8w(new w2Z(function(){},V,l)),void 0,"PAnyd")),r=f.next().value,R=f.next().value,y=new w2Z(function(P){R(P)},V,l);
_.m1(function(){Promise.resolve().then(function(){var P,n=(P=W())!=null?P:{};y.playerControlsData=n;_.U("player_controls_skip_double_signal_old")&&(y.lastSeenPlayerApi=_.hm(n.playerApi));_.U("player_controls_skip_double_signal_old")||(y.lastSeenPlayerApi=_.hm(n.playerApi));AvL(y)});
_.Xc(function(){Ql5(y)})},"HikUP");
_.Xc(function(){Ql5(y)});
return function(){return r()}};
ZRs=function(W){return function(l){var V=W(),f={playerState:l};if(l===1){var r;(r=V.playerApi)==null||r.loadModule("captions")}if(l===0){var R;(R=V.playerApi)==null||R.unloadModule("captions")}l!==-1&&V.setState(f)}};
ORY=function(W){return function(l){W().setState({playbackRate:l})}};
ase=function(W){return function(l){var V=W(),f=V.playerApi,r=f==null?void 0:f.getVideoData(),R=(r==null?void 0:r.isLive)||!1;r=r==null?void 0:r.video_id;R={videoDuration:BU7(f||void 0),isLive:R,videoId:r};R.videoId!==V.videoId&&(R=Object.assign({},_.xnU(f),R));if(l==null?0:l.playertype)R.playerType=l.playertype;if(f){R.captionsAvailable=_.FH(f);l=R;var y;r=(y=f.getStoryboardLevel(f.getNumberOfStoryboardLevels()-1))==null?void 0:y.intervalMs;l.storyboardInterval=r?r/1E3:void 0;R.captionsAvailable&&
(R.captionsEnabled=_.k37(f))}R.volumeMuted=!(f==null||!f.isMuted());V.setState(R)}};
zjc=function(W){return function(l){var V=W(),f=V.playerApi;if(f){var r=f.getPresentingPlayerType();l={playedTime:l||0,percentLoaded:f.getVideoLoadedFraction(),playerType:r};V.playerState===0&&(l.playedTime=V.videoDuration);V.isLive&&(r=f.getProgressState(r),l.playedTime-=r.seekableStart,l.videoDuration=BU7(f));if(V.playerType===1)f=!1;else{var R;if((R=V.uxConfig)==null?0:R.showCuedOverlay){var y;f=!((y=V.playerApi)==null?0:y.getPlayerStateObject(V.playerType).isDomPaused)}else f=!0}f&&delete l.playedTime;
V.setState(l)}}};
N8e=function(W){return function(){var l=W(),V,f,r,R={volume:(r=(V=l.playerApi)==null?void 0:V.getVolume())!=null?r:0,volumeMuted:!((f=l.playerApi)==null||!f.isMuted())};l.setState(R)}};
YwH=function(W){return function(){var l=W(),V=l.playerApi;if(V){var f={captionsAvailable:_.FH(V)};f.captionsAvailable&&(f.captionsEnabled=_.k37(V));l.setState(f)}}};
xt4=function(W){return function(){var l=W();if(l.playerApi&&!(l.volumeMuted||l.controlsVisible&&l.isProbablyAScreenreaderUser)){l.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var V;(V=document.querySelector(".player-control-play-pause-icon"))==null||V.focus()}}};
ej5=function(W){return{appApi:Object.assign({},_.M4j(),{showCaptionsToggleToast:function(l){var V,f;(f=(V=W()).showCaptionsToggleToast)==null||f.call(V,l)},
openInMiniplayer:function(){var l,V;(V=(l=W()).openInMiniplayer)==null||V.call(l)}})}};
qw2=function(W,l){var V,f,r;return!!(W==null?0:(V=W.playerResponse)==null?0:(f=V.playerConfig)==null?0:(r=f.inlinePlaybackConfig)==null?0:r.showScrubbingControls)&&!(l==null?0:l.hideScrubbingControls)};
_.hj2=function(W){var l=!W.miniplayerIsActive;return[5,2,0].includes(W.miniplayerPlaybackState)||l};
Sww={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Ese=function(W,l){var V,f,r,R,y;_.g(function(P){if(!l.length)return P.return([]);V=[];f=_.L(l);for(r=f.next();!r.done;r=f.next())R=r.value,(y=W.resolveIcon(R))&&!W.iconCache[y.url]&&V.push(_.CMs(W,y).then(function(){}).catch(function(){}));
return P.return(Promise.all(V))})};
$t4=function(W,l){var V=[];l=(new Set(l)).values();l=_.L(l);for(var f=l.next();!f.done;f=l.next()){f=f.value;for(var r=_.L(Object.values(Sww)),R=r.next();!R.done;R=r.next())V.push({iconName:f,iconStyle:R.value})}Ese(W.iconManager,V)};
_.WyL=function(W,l,V){var f=V!=null?V:W.iconsToFetch;f!=null&&f.length?l!==void 0&&l>=0?_.pS(_.w8,function(){$t4(W,f)},l):$t4(W,f):Promise.resolve()};
w2Z=function(W,l,V){var f=this;this.renderFn=W;this.listeners=l;this.context=V;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var r;this.lastSeenPlayerApi=_.hm((r=this.playerControlsData)==null?void 0:r.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.xnU(),void 0);_.U("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){T8w(f).setState({playerState:-1});f.resetRecentlyNavigatedJobId&&_.w8.cancelJob(f.resetRecentlyNavigatedJobId);
f.recentlyNavigated=!0;f.resetRecentlyNavigatedJobId=_.w8.addJob(function(){f.recentlyNavigated=!1},8,1E4)})};
w2Z.prototype.setState=function(W){if(!_.U("mweb_player_skip_no_op_state_changes")||!dL1(W,this.state))if(this.state=Object.assign({},this.state,W),!_.U("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)W=-1,_.U("player_controls_log_creation_killswitch")||JY1()||(W=(0,_.tv)()),_.Wy("pcu_s"),_.Wy("pcu_se"),_.Wy("pcu_rs"),this.renderFn(T8w(this)),_.Wy("pcu_re"),DL1(W),_.w8.addJob(function(){_.Wy("pcu_ap")},8)};
var T8w=function(W){var l;var V=_.hm((l=W.playerControlsData)==null?void 0:l.playerApi);return Object.assign({},W.state,{setState:W.boundSetState,domMeasurements:{progressBarLineRect:W.progressBarLineRect},playerApi:V,appApi:W.context.appApi,playerContainer:W.context.playerContainer,playerControlContainer:W.context.playerControlContainer,uxConfig:W.context.uxConfig})},AvL=function(W){W.listeners.forEach(function(l){W.eventListenerCleanupFunctions.push(l.register(function(){return T8w(W)},function(){return W.getData()}))})},
Ql5=function(W){W.eventListenerCleanupFunctions.forEach(function(l){l()});
W.eventListenerCleanupFunctions.length=0};
w2Z.prototype.getData=function(){return this.playerControlsData};
var lxL=new _.uC("crowdsourcedContextUserRatingFormFlowState");var VCZ=new _.uC("noteViewModel");var WT=new _.uC("abuseReportFlowState");var fxw=new _.uC("feedbackFormFlowState");var rre=new _.uC("inputBoxViewModel");var RX7=new _.uC("flowNextStepCommand");var tCw=new _.uC("flowPrevStepCommand");var so1=new _.uC("updateFlowCommand");_.Ly1=new _.uC("flowStepRenderer");_.Wue=new _.uC("lengthValidationRule");var VSw=new _.uC("regexValidationRule");var rvw=new _.uC("selectedValidationRule");var yrw=new _.uC("talkToRecsViewModel");var g_w=new _.uC("creatorGoalSetUpFlowDropdownItemViewModel");var PTs=new _.uC("creatorGoalSetUpFlowDropdownViewModel");var iRe=new _.uC("thumbnailBadgeViewModel");var n_L=new _.uC("checkboxGroupViewModel");_.lQ=new _.uC("radioButtonGroupViewModel");var CT5=new _.uC("radioButtonItemViewModel");var Dtw=new _.uC("panelFooterViewModel");var crw=new _.uC("ypcCancelRecurrenceCommand");var Bv2=new _.uC("cancellationFlowState");var aj4=new _.uC("premiumPurchaseFlowState");var dJY=new _.uC("surveyAnswerCardRenderer");var Jr5=new _.uC("showMoreButtonRenderer");var DJ5;var UJH,uCN=function(){if(UJH!==void 0)return UJH;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;DJ5===void 0&&(DJ5=document.createElement("template"));var f=DJ5;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return UJH=W};var VQ=function(){var W=_.I.apply(this,arguments)||this;W.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";W.goalDescription="";W.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";W.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";W.startButtonId="start-button";W.exampleButtonId="example-button";return W};
_.v(VQ,_.I);_.t=VQ.prototype;_.t.getGoalDropdownItems=function(){var W,l;return(l=_.k((W=this.data)==null?void 0:W.purchaseTargetDropdown,PTs))==null?void 0:l.dropdownItems};
_.t.getTimerDropdownItems=function(){var W,l;return(l=_.k((W=this.data)==null?void 0:W.timerDropdown,PTs))==null?void 0:l.dropdownItems};
_.t.getColorDropdownItems=function(){var W,l;return(l=_.k((W=this.data)==null?void 0:W.colorDropdown,PTs))==null?void 0:l.dropdownItems};
_.t.getDropdownItemText=function(W){var l;return(l=_.k(W,g_w))==null?void 0:l.itemLabel};
_.t.getDropdownItemValue=function(W){W=_.k(W,g_w);return(W==null?void 0:W.timeLimit)||(W==null?void 0:W.purchaseTarget)||(W==null?void 0:W.eligiblePurchaseType)};
_.t.updateFlowState=function(W){_.Gt(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:W}])};
_.t.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.t.updateGoalValue=function(W){this.goal=W.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.t.onTextValueChanged=function(W){this.goalDescription=W.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.t.updateTimerValue=function(W){this.timer=W.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.t.updateTierValue=function(W){this.tier=W.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.t.getButtonViewModel=function(W){W=(W==null?void 0:W.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var l,V=_.k((l=this.data)==null?void 0:l.startGoalButton,_.JJ);return Object.assign({},V,{state:W})};
_.rc.Object.defineProperties(VQ,{template:{configurable:!0,enumerable:!0,get:function(){return uCN()}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],VQ.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],VQ.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],VQ.prototype,"goal",void 0);_.a([_.b(),_.z("design:type",Object)],VQ.prototype,"goalDescription",void 0);_.a([_.b(),_.z("design:type",Object)],VQ.prototype,"timer",void 0);_.a([_.b(),_.z("design:type",Object)],VQ.prototype,"tier",void 0);
_.a([_.b(),_.z("design:type",Object)],VQ.prototype,"startButtonId",void 0);_.a([_.b(),_.z("design:type",Object)],VQ.prototype,"exampleButtonId",void 0);_.a([_.Vq({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],VQ);_.Z(VQ,"yt-creator-goal-set-up-flow-view-model",function(){return uCN()},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var ksH;var v_c;var HSw;var Ky7=function(){return _.I.apply(this,arguments)||this};
_.v(Ky7,_.I);_.a([_.b(),_.z("design:type",Object)],Ky7.prototype,"data",void 0);_.a([_.Vq({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],Ky7);
_.Z(Ky7,"yt-survey-answer-card-renderer",function(){if(HSw===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;v_c===void 0&&(v_c=document.createElement("template"));var f=v_c;V.call(l,f.content.cloneNode(!0),W.content.firstChild);HSw=W}W=HSw;return W},{mode:2});var Fyw;var GsY;var fu=function(){return _.I.apply(this,arguments)||this};
_.v(fu,_.I);_.t=fu.prototype;_.t.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.t.selectedItemChanged=function(W){_.Gt(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[W.feedbackToken||""]}])};
_.t.surveyAnswerCardRendererClicked=function(W){if(W.target&&_.k(W.model.item,dJY)){var l=W.target;W=_.k(W.model.item,dJY);W.onTapCommand?_.og(l,[W.onTapCommand],l):this.data.onTapCommand&&_.og(l,[this.data.onTapCommand],l);this.selectedItemChanged(W)}};
_.t.checkIsCancellationStyle=function(W){return W==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.t.updateSelectedItemFromBinding=function(W){this.selectedItem=W.detail.value};
fu.prototype.onSelectedItemChanged=fu.prototype.onSelectedItemChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],fu.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],fu.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],fu.prototype,"selectedItem",void 0);_.a([_.b({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.z("design:type",Boolean)],fu.prototype,"isCancellationStyle",void 0);
_.a([_.TS("selectedItem"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fu.prototype,"onSelectedItemChanged",null);_.a([_.Vq({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],fu);
_.Z(fu,"yt-survey-flow-step-renderer",function(){if(GsY===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;Fyw===void 0&&(Fyw=document.createElement("template"));var f=Fyw;V.call(l,f.content.cloneNode(!0),W.content.firstChild);GsY=W}W=GsY;return W},{mode:2});var ro=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return W};
_.v(ro,_.I);ro.prototype.handleSurveyFlowStepOptionChanged=function(W){this.ytdReduxBehavior.dispatch(_.GT({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:W}));_.Gt(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:W}}])};
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],ro.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],ro.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ro.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],ro);
_.Z(ro,"ytd-survey-flow-step-renderer",function(){if(ksH!==void 0)return ksH;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return ksH=W},{mode:1});_.jo1=_.Q(function(W){var l=W.data;var V=W.hideDivider;var f=W.isChannelInfoCard;W={};return _.C("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.C("div",{class:_.If("yt-profile-identity-info-view-model-wiz__frame",(W["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=function(){return!l().channelBanner},W))},_.C(bSN,{profileIdentityInfoData:l}),_.C("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},_.C("div",
{class:"yt-profile-identity-info-view-model-wiz__avatar"},_.C(_.QH,{data:function(){return l().avatar}},{avatarViewModel:_.gn})),_.C(pq2,{profileIdentityInfoData:l})),_.C(_.c,{cond:function(){return l().channelDescription},
then:function(r){var R={};return _.C("div",{class:_.If((R["yt-profile-identity-info-view-model-wiz__channel-description-alternate"]=function(){return!(f==null||!f())},R["yt-profile-identity-info-view-model-wiz__channel-description"]=function(){return!(f==null?0:f())},R))},r)}}),_.C(o_w,{profileIdentityInfoData:l}),_.C(_.c,{cond:function(){return!(V==null?0:V())},
then:function(){return _.C("div",{class:"yt-profile-identity-info-view-model-wiz__divider"})}})))},"Gf");
_.jo1.idomCompat=!0;var o_w=_.Q(function(W){var l=W.profileIdentityInfoData;return _.C("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},_.C(_.G3,{each:function(){return l().subscribeButton?[l().subscribeButton,l().channelAccess]:[l().channelAccess]}},function(V){return _.C("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.C("div",{class:"yt-profile-identity-info-view-model-wiz--button"},_.C(_.QH,{data:function(){return V}},{buttonViewModel:_.Nq,
subscribeButtonViewModel:_.gi})))}))},"Hf"),pq2=_.Q(function(W){var l=W.profileIdentityInfoData;
return _.C("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},_.C("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},_.C(IxZ,{profileIdentityInfoData:l}),_.C(_.QH,{data:function(){return l().threeDotMenu}},{buttonViewModel:_.Nq})),_.C(iS1,{profileIdentityInfoData:l}))},"If"),IxZ=_.Q(function(W){var l=W.profileIdentityInfoData;
return _.C("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.C("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},function(){return l().channelDisplayName}),_.C(_.c,{cond:function(){return l().verifiedOrOacBadge},
then:function(V){return _.C("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.C(_.dN,{data:function(){return{thumbnails:[{url:V().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"Jf"),bSN=_.Q(function(W){var l=W.profileIdentityInfoData;
return _.C("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},_.C(_.QH,{data:function(){var V=l().channelBanner;if(V)return{imageBannerViewModel:{image:V.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(V){return _.C("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},_.C(_.uf,{data:V.data,
isPositionRelative:!0}))}}))},"Kf"),iS1=_.Q(function(W){var l=W.profileIdentityInfoData;
return _.C("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.C("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.C("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},function(){return l().channelHandle}),_.C(_.c,{cond:function(){return l().channelPronouns&&l().channelHandle},
then:function(){return _.C("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022")}}),_.C("div",{dir:"auto",
class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},function(){return l().channelPronouns})),_.C("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.C("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},function(){return l().leftOfBulletInfo}),_.C(_.c,{cond:function(){return l().leftOfBulletInfo&&l().rightOfBulletInfo},
then:function(){return _.C("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022")}}),_.C("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},function(){return l().rightOfBulletInfo})))},"Lf");var mJ1;var RE=function(){return _.I.apply(this,arguments)||this};
_.v(RE,_.I);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],RE.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],RE.prototype,"data",void 0);_.a([_.A({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],RE);
_.Z(RE,"ytd-channel-history-renderer",function(){if(mJ1!==void 0)return mJ1;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return mJ1=W},{mode:1});var XqZ;var Tvs=function(){return _.I.apply(this,arguments)||this};
_.v(Tvs,_.I);_.a([_.b(),_.z("design:type",Object)],Tvs.prototype,"data",void 0);_.a([_.A({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],Tvs);
_.Z(Tvs,"ytd-feature-enablement-info-renderer",function(){if(XqZ!==void 0)return XqZ;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return XqZ=W},{mode:1});var wqs;var Ar1;var tK=function(){var W=_.I.apply(this,arguments)||this;W.textBoxMaxLength=_.U("enable_tvod_campaign_code_integration")?15:12;return W};
_.v(tK,_.I);_.t=tK.prototype;_.t.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.t.onSubmit=function(){var W=this.data.serviceEndpoint,l=_.k(W,_.Pf);l&&W&&(l.couponCode=this.userInput,_.tY().resolve(_.s6).resolveCommand(W,{form:{element:this.hostElement}}))};
_.t.validate=function(){var W=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=W&&!this.data.errorMessage;this.showErrorMessage=W&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.U("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.t.computeStyle=function(W){return W};
_.t.computeShowValidationBelowInput=function(W){return W!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.t.updateUserInputFromBinding=function(W){this.userInput=W.currentTarget.value};
_.t.updateShowErrorMessageFromBinding=function(W){this.showErrorMessage=W.detail.value};
_.rc.Object.defineProperties(tK.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
tK.prototype.dataChanged=tK.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],tK.prototype,"data",void 0);_.a([_.b(),_.z("design:type",String)],tK.prototype,"userInput",void 0);_.a([_.b(),_.z("design:type",Boolean)],tK.prototype,"disableApplyButton",void 0);_.a([_.b(),_.z("design:type",Boolean)],tK.prototype,"hideApplyButton",void 0);
_.a([_.b(),_.z("design:type",Boolean)],tK.prototype,"hideErrorMessage",void 0);_.a([_.b(),_.z("design:type",Boolean)],tK.prototype,"showTick",void 0);_.a([_.b(),_.z("design:type",Boolean)],tK.prototype,"showErrorMessage",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],tK.prototype,"couponStyle",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.z("design:type",Boolean)],tK.prototype,"showValidationBelowInput",void 0);_.a([_.b(),_.z("design:type",Object)],tK.prototype,"textBoxMaxLength",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tK.prototype,"dataChanged",null);
_.a([_.G("showTick","showErrorMessage","userInput"),_.z("design:type",String),_.z("design:paramtypes",[])],tK.prototype,"validationState",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],tK);
_.Z(tK,"ytd-ypc-coupon-renderer",function(){if(Ar1!==void 0)return Ar1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Ar1=W},{mode:1});var sX=function(){return _.I.apply(this,arguments)||this};
_.v(sX,_.I);sX.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"}}}};
sX.prototype.computeStyle=function(W){return W};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],sX.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],sX.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],sX.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],sX.prototype,"buttonStyle",void 0);_.a([_.A({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],sX);
_.Z(sX,"ytd-flow-bottom-bar-renderer",function(){if(wqs!==void 0)return wqs;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return wqs=W},{mode:1});var Qo4;var MC1;var ZS1;var Lu=function(){return _.I.apply(this,arguments)||this};
_.v(Lu,_.I);Lu.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Lu.prototype.focus=function(W){this.title&&_.Ew(this.title,W)};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Lu.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Lu.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Lu.prototype,"data",void 0);_.a([_.Aa("#title"),_.z("design:type",HTMLElement)],Lu.prototype,"title",void 0);_.a([_.A({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Lu);
_.Z(Lu,"ytd-flow-top-bar-renderer",function(){if(ZS1!==void 0)return ZS1;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return ZS1=W},{mode:1});var OS5;var axL;var zXw;var yQ=function(){return _.I.apply(this,arguments)||this};
_.v(yQ,_.I);yQ.prototype.freeTextValueChanged=function(){_.Gt(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
yQ.prototype.updateFreeTextValueFromBinding=function(W){this.freeTextValue=W.detail.value};
_.rc.Object.defineProperties(yQ.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var W,l,V=(l=(W=this.data)==null?void 0:W.responseMaxLength)!=null?l:500,f;return((f=this.freeTextValue)!=null?f:"").length>=V?"maxed-out":""}}});
yQ.prototype.freeTextValueChanged=yQ.prototype.freeTextValueChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],yQ.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],yQ.prototype,"data",void 0);_.a([_.b(),_.z("design:type",String)],yQ.prototype,"freeTextValue",void 0);_.a([_.Aa("#user-input"),_.z("design:type",HTMLTextAreaElement)],yQ.prototype,"input",void 0);
_.a([_.G("freeTextValue"),_.z("design:type",Object),_.z("design:paramtypes",[])],yQ.prototype,"characterLimitClass",null);_.a([_.TS("freeTextValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yQ.prototype,"freeTextValueChanged",null);_.a([_.Vq({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],yQ);
_.Z(yQ,"yt-free-text-input-flow-step-renderer",function(){if(zXw===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;axL===void 0&&(axL=document.createElement("template"));var f=axL;V.call(l,f.content.cloneNode(!0),W.content.firstChild);zXw=W}W=zXw;return W},{mode:2});var go=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return W};
_.v(go,_.I);go.prototype.handleFreeTextFlowStepInputChanged=function(W){_.Gt(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:W}}])};
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],go.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],go.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],go.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],go);
_.Z(go,"ytd-free-text-input-flow-step-renderer",function(){if(OS5!==void 0)return OS5;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return OS5=W},{mode:1});var Nvc;var YLL;var xJ1=function(){return _.I.apply(this,arguments)||this};
_.v(xJ1,_.I);_.a([_.b(),_.z("design:type",Object)],xJ1.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],xJ1);
_.Z(xJ1,"ytd-metadata-line-renderer",function(){if(YLL!==void 0)return YLL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return YLL=W},{mode:1});var PT=function(){return _.I.apply(this,arguments)||this};
_.v(PT,_.I);PT.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],PT.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],PT.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],PT.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],PT.prototype,"isMasthead",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],PT);
_.Z(PT,"ytd-media-product-renderer",function(){if(Nvc!==void 0)return Nvc;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Nvc=W},{mode:1});var eXe;var nu=function(){return _.I.apply(this,arguments)||this};
_.v(nu,_.I);nu.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
nu.prototype.onBillboardImageLoaded=function(){_.FN(this.hostElement,"yt-refit")};
nu.prototype.onBillboardImageLoaded=nu.prototype.onBillboardImageLoaded;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],nu.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],nu.prototype,"data",void 0);_.a([_.Aa("#billboardImage"),_.z("design:type",Object)],nu.prototype,"billboardImage",void 0);_.a([_.XI("yt-img-shadow-loaded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nu.prototype,"onBillboardImageLoaded",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],nu);
_.Z(nu,"ytd-billboard-masthead-renderer",function(){if(eXe!==void 0)return eXe;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return eXe=W},{mode:1});var qL5;var Cu=function(){var W=_.I.apply(this,arguments)||this;W.smallSize=!1;return W};
_.v(Cu,_.I);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Cu.prototype,"ytComponentBehaviorType",void 0);_.a([_.b(),_.z("design:type",Object)],Cu.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Cu.prototype,"smallSize",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Cu);
_.Z(Cu,"ytd-bullet-formatted-string",function(){if(qL5!==void 0)return qL5;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return qL5=W},{mode:1});var hX5;var cT=function(){return _.I.apply(this,arguments)||this};
_.v(cT,_.I);cT.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],cT.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],cT.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],cT.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],cT);
_.Z(cT,"ytd-offer-detail-renderer",function(){if(hX5!==void 0)return hX5;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return hX5=W},{mode:1});var SLL;var BT=function(){return _.I.apply(this,arguments)||this};
_.v(BT,_.I);BT.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"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],BT.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],BT.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],BT.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],BT);
_.Z(BT,"ytd-offer-detail-step-renderer",function(){if(SLL!==void 0)return SLL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return SLL=W},{mode:1});var E_Y;var JK=function(){var W=_.I.apply(this,arguments)||this;W.isInOfferModule=!1;return W};
_.v(JK,_.I);_.t=JK.prototype;_.t.computeHasEndpoint=function(){var W;return!((W=this.data)==null||!W.onClickCommand)};
_.t.dataChanged=function(){var W;if((W=this.data)==null?0:W.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")};
_.t.detached=function(){var W;if((W=this.data)==null?0:W.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.t.handleClickEvent=function(){var W;if((W=this.data)==null?0:W.onClickCommand){var l;this.componentBehavior.resolveCommand((l=this.data)==null?void 0:l.onClickCommand)}};
_.t.onContentKeyDown=function(W){W.key==="Enter"?this.handleClickEvent(W):W.key===" "&&W.preventDefault()};
_.t.onContentKeyUp=function(W){W.key===" "&&this.handleClickEvent(W)};
JK.prototype.dataChanged=JK.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],JK.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],JK.prototype,"data",void 0);_.a([_.b({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],JK.prototype,"hasEndpoint",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],JK.prototype,"isInOfferModule",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JK.prototype,"dataChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],JK);
_.Z(JK,"ytd-channel-masthead-renderer",function(){if(E_Y!==void 0)return E_Y;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return E_Y=W},{mode:1});var $J1;var Dq=function(){var W=_.I.apply(this,arguments)||this;W.thumbnailObjectFit="CONTAIN";W.thumbnailObjectPosition="LEFT";W.isExpanded=!1;return W};
_.v(Dq,_.I);_.t=Dq.prototype;_.t.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.t.dataChanged=function(){this.resetStates()};
_.t.computeisTapOnOfferInfoContainerEnabled=function(){var W;return((W=this.data)==null?void 0:W.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.t.onExpandBtnClick=function(){var W,l=_.k((W=this.data)==null?void 0:W.showMoreButtonRenderer,Jr5);l&&_.YQ(_.Qq(),l.trackingParams);this.isExpanded=!this.isExpanded};
_.t.onOfferInfoClick=function(W){this.isTapOnOfferInfoContainerEnabled&&(_.Cv(_.d_(W)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.cp(_.d_(W)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.t.onBottomBarClick=function(){this.executeTapCommand()};
_.t.executeTapCommand=function(){var W,l=(W=this.data)==null?void 0:W.tapCommand;l&&this.ytComponentBehavior.resolveCommand(l)};
_.t.resetStates=function(){this.isExpanded=!1};
_.rc.Object.defineProperties(Dq.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var W=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),l,V,f;return((l=this.data)==null?void 0:l.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&W&&!!((V=this.data)==null?0:(f=V.benefits)==null?0:f.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return((l=_.k((W=this.data)==null?void 0:W.showMoreButtonRenderer,Jr5))==null?void 0:l.showMoreButtonTitle)||((V=this.data)==null?void 0:V.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return((l=_.k((W=this.data)==null?void 0:W.showMoreButtonRenderer,Jr5))==null?void 0:l.showLessButtonTitle)||((V=this.data)==null?void 0:V.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var W;return(W=this.showLessButtonTitle)!=null?W:""}var l;return(l=this.showMoreButtonTitle)!=null?l:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return((W=this.data)==null?void 0:W.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((l=this.data)==null?0:l.footerTitle)||((V=this.data)==null?0:V.footerSubtitle))}}});
Dq.prototype.dataChanged=Dq.prototype.dataChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Dq.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Dq.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Dq.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",String)],Dq.prototype,"thumbnailObjectFit",void 0);
_.a([_.b(),_.z("design:type",String)],Dq.prototype,"thumbnailObjectPosition",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.z("design:type",Boolean)],Dq.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.a([_.b(),_.z("design:type",Object)],Dq.prototype,"isExpanded",void 0);_.a([_.b(),_.z("design:type",Object)],Dq.prototype,"data",void 0);_.a([_.b({computed:"computeIcon_(data.footerIcon)"}),_.z("design:type",String)],Dq.prototype,"icon",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Dq.prototype,"dataChanged",null);_.a([_.G("data.thumbnail"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Dq.prototype,"hasThumbnail",null);_.a([_.G("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Dq.prototype,"enableExpandButton",null);
_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Dq.prototype,"enableOfferContentIcon",null);_.a([_.G("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.z("design:type",Object),_.z("design:paramtypes",[])],Dq.prototype,"showMoreButtonTitle",null);_.a([_.G("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.z("design:type",Object),_.z("design:paramtypes",[])],Dq.prototype,"showLessButtonTitle",null);
_.a([_.G("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.z("design:type",String),_.z("design:paramtypes",[])],Dq.prototype,"expandedBtnText",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Dq.prototype,"enableBottomBar",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],Dq);
_.Z(Dq,"ytd-offer-card-renderer",function(){if($J1!==void 0)return $J1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return $J1=W},{mode:1});var Wec;var UX=function(){return _.I.apply(this,arguments)||this};
_.v(UX,_.I);UX.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"}}}};
UX.prototype.onClick=function(W){if(!_.Cv(W.composedPath()||[],this.hostElement,["A".toString()])){var l,V;if((W=(V=_.k((l=this.data)==null?void 0:l.actionButton,_.CE))==null?void 0:V.command)&&!this.ytComponentBehavior.resolveCommand(W)){var f;(f=_.Qq())==null||f.clickCommand(W);_.tY().resolve(_.s6).resolveCommand(W,{form:{element:this.hostElement}})}}};
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],UX.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],UX.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],UX.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],UX.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],UX);
_.Z(UX,"ytd-offer-content-renderer",function(){if(Wec!==void 0)return Wec;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Wec=W},{mode:1});var l5Y;var uQ=function(){return _.I.apply(this,arguments)||this};
_.v(uQ,_.I);uQ.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.rc.Object.defineProperties(uQ.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var W,l;return!((W=this.data)==null||!W.title)||!((l=this.data)==null||!l.description)}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],uQ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],uQ.prototype,"data",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],uQ.prototype,"hasHeaderData",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],uQ);
_.Z(uQ,"ytd-offer-section-renderer",function(){if(l5Y!==void 0)return l5Y;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return l5Y=W},{mode:1});var VnH;var ki=function(){return _.I.apply(this,arguments)||this};
_.v(ki,_.I);
ki.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"}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ki.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ki.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ki.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],ki);
_.Z(ki,"ytd-offer-selection-step-renderer",function(){if(VnH!==void 0)return VnH;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return VnH=W},{mode:1});var f5s;var vT=function(){return _.I.apply(this,arguments)||this};
_.v(vT,_.I);vT.prototype.computeStyle=function(W){return W};
vT.prototype.computeImageWidth=function(W){return W==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.a([_.b({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.z("design:type",String)],vT.prototype,"containerStyle",void 0);_.a([_.b({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.z("design:type",String)],vT.prototype,"imageWidth",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],vT.prototype,"data",void 0);
_.a([_.A({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],vT);
_.Z(vT,"ytd-confirmation-masthead-renderer",function(){if(f5s!==void 0)return f5s;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return f5s=W},{mode:1});var rH1;var HT=function(){return _.I.apply(this,arguments)||this};
_.v(HT,_.I);HT.prototype.computeStyle=function(W){return W};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],HT.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],HT.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.z("design:type",String)],HT.prototype,"containerStyle",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],HT);
_.Z(HT,"ytd-purchase-complete-detail-renderer",function(){if(rH1!==void 0)return rH1;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return rH1=W},{mode:1});var RU1;var Ku=function(){var W=_.I.apply(this,arguments)||this;W.scriptsAppended=!1;return W};
_.v(Ku,_.I);Ku.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"}}}};
Ku.prototype.onDataChanged=function(){var W=this.get("data.gtmId");W&&(_.LA(W,_.M4("GL","")),this.setupConversionTracking())};
Ku.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var W=document.createElement("noscript");W.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(W);this.scriptsAppended=!0}};
Ku.prototype.onDataChanged=Ku.prototype.onDataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Ku.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Ku.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Ku.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Ku.prototype,"scriptsAppended",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ku.prototype,"onDataChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],Ku);
_.Z(Ku,"ytd-purchase-complete-step-renderer",function(){if(RU1!==void 0)return RU1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return RU1=W},{mode:1});var tn7;var Fl=function(){var W=_.I.apply(this,arguments)||this;W.darkerDarkTheme=_.U("web_darker_dark_theme");return W};
_.v(Fl,_.I);Fl.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Fl.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Fl.prototype,"darkerDarkTheme",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],Fl);
_.Z(Fl,"ytd-ypc-transaction-error-message-renderer",function(){if(tn7!==void 0)return tn7;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return tn7=W},{mode:1});var s_Z;var LeY;var Gw=function(){var W=_.I.apply(this,arguments)||this;W.handlePhoneVerificationSuccess=function(l){if(W.isValidPhoneVerificationCompletionMessageEvent(l)){var V;((V=W.data)==null?0:V.nextStepCommand)&&W.ytComponentBehavior.resolveCommand(W.data.nextStepCommand)}};
return W};
_.v(Gw,_.I);Gw.prototype.isValidPhoneVerificationCompletionMessageEvent=function(W){if(W.data!=="yt-phone-verification-complete")return!1;W=_.lP(W.origin);return W!==null&&W.includes("youtube.com")};
Gw.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Gw.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Gw.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Gw.prototype,"data",void 0);_.a([_.Vq({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Gw);
_.Z(Gw,"yt-feature-enablement-soft-entry-renderer",function(){if(LeY===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;s_Z===void 0&&(s_Z=document.createElement("template"));var f=s_Z;V.call(l,f.content.cloneNode(!0),W.content.firstChild);LeY=W}W=LeY;return W},{mode:1});var yH7;var gB7;var PNY;var nBw;var CNs=function(){return _.I.apply(this,arguments)||this};
_.v(CNs,_.I);_.a([_.b(),_.z("design:type",Object)],CNs.prototype,"data",void 0);_.a([_.Vq({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],CNs);
_.Z(CNs,"yt-benefits-item-renderer",function(){if(nBw===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;PNY===void 0&&(PNY=document.createElement("template"));var f=PNY;V.call(l,f.content.cloneNode(!0),W.content.firstChild);nBw=W}W=nBw;return W},{mode:2});var cHL;var B6w;var bQ=function(){return _.I.apply(this,arguments)||this};
_.v(bQ,_.I);bQ.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
bQ.prototype.computeisWithoutPadding=function(){var W;return((W=this.data)==null?void 0:W.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],bQ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],bQ.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.z("design:type",Boolean)],bQ.prototype,"isWithoutPadding",void 0);_.a([_.Vq({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],bQ);
_.Z(bQ,"yt-benefits-section-renderer",function(){if(B6w===void 0){var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;cHL===void 0&&(cHL=document.createElement("template"));var f=cHL;V.call(l,f.content.cloneNode(!0),W.content.firstChild);B6w=W}W=B6w;return W},{mode:2});var pu=function(){return _.I.apply(this,arguments)||this};
_.v(pu,_.I);pu.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
pu.prototype.computeisUsingLargeWidth=function(){var W;return((W=this.data)==null?void 0:W.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],pu.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],pu.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.z("design:type",Boolean)],pu.prototype,"isUsingLargeWidth",void 0);_.a([_.Vq({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],pu);
_.Z(pu,"yt-benefits-flow-step-renderer",function(){if(gB7===void 0){var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;yH7===void 0&&(yH7=document.createElement("template"));var f=yH7;V.call(l,f.content.cloneNode(!0),W.content.firstChild);gB7=W}W=gB7;return W},{mode:2});var dS2;var JH7;var oE=function(){return _.I.apply(this,arguments)||this};
_.v(oE,_.I);oE.prototype.checkIsUsingLargeWidth=function(){var W;return((W=this.data)==null?void 0:W.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.a([_.b(),_.z("design:type",Object)],oE.prototype,"data",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],oE.prototype,"ytRendererBehavior",void 0);_.a([_.b({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.z("design:type",Boolean)],oE.prototype,"isUsingLargeWidth",void 0);_.a([_.Vq({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],oE);
_.Z(oE,"yt-confirmation-flow-step-renderer",function(){if(JH7===void 0){var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;dS2===void 0&&(dS2=document.createElement("template"));var f=dS2;V.call(l,f.content.cloneNode(!0),W.content.firstChild);JH7=W}W=JH7;return W},{mode:2});var DSH;var USw;var uLZ=function(){return _.I.apply(this,arguments)||this};
_.v(uLZ,_.I);_.a([_.b(),_.z("design:type",Object)],uLZ.prototype,"data",void 0);_.a([_.Vq({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],uLZ);
_.Z(uLZ,"yt-info-flow-step-renderer",function(){if(USw===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;DSH===void 0&&(DSH=document.createElement("template"));var f=DSH;V.call(l,f.content.cloneNode(!0),W.content.firstChild);USw=W}W=USw;return W},{mode:2});var ki5;var vBZ;var Hj1=function(){return _.I.apply(this,arguments)||this};
_.v(Hj1,_.I);_.a([_.b(),_.z("design:type",Object)],Hj1.prototype,"data",void 0);_.a([_.Vq({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],Hj1);
_.Z(Hj1,"yt-info-list-flow-step-renderer",function(){if(vBZ===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;ki5===void 0&&(ki5=document.createElement("template"));var f=ki5;V.call(l,f.content.cloneNode(!0),W.content.firstChild);vBZ=W}W=vBZ;return W},{mode:2});var Kew=_.Q(function(W){var l=W.data;return _.C("styled-text-view-model",{class:_.If("ytStyledTextViewModelHost",function(){return Ij1(l().fontAttributes)},function(){return j0s(l().color)})},_.C(_.bH,{text:function(){return l().text},
ariaLabel:function(){var V,f,r;return(r=(V=l().accessibility)==null?void 0:(f=V.accessibilityData)==null?void 0:f.label)!=null?r:""}}))},"Mf");
Kew.idomCompat=!0;var Fes=_.Q(function(W){var l=function(){var r,R,y,P;return(P=(y=(r=W.alt)==null?void 0:r.call(W))!=null?y:(R=W.data().accessibilityData)==null?void 0:R.label)!=null?P:""},V=function(){return W.data().imageWidth},f=function(){return W.data().imageHeight};
return _.C("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.C(_.c,{cond:function(){var r=W.data();if(r){var R,y,P;var n=((R=_.tY().resolve(_.R0(_.nP)))==null?0:R())?(y=r.imageDark)!=null?y:r.imageLight:(P=r.imageLight)!=null?P:r.imageDark}else n=void 0;return n},
then:function(r){return _.C(_.dN,Object.assign({},W,{data:r,alt:l,targetWidth:V,targetHeight:f,preserveHeight:!0,preserveWidth:!0}))}}))},"Nf");
Fes.idomCompat=!0;var jB=_.Q(function(W){var l=W.data;W=_.JG(function(){return l().slots},[]);
var V=_.JG(function(){return l().layoutProperties},{}),f=_.tY().resolve(_.cI);
return _.C("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:FSZ(V,f)},_.C(_.G3,{each:W,keyBy:"INDEX"},function(r){return _.C("div",{class:"ytContainerLayoutViewModelSlot",style:FSZ(function(){return r().layoutProperties},f)},_.C(_.QH,{data:function(){return r().contents}},{containerLayoutViewModel:jB,
badgeViewModel:_.T2,buttonViewModel:_.Nq,styledTextViewModel:Kew,contentPreviewImageViewModel:function(R){return _.C(_.wn,{data:R.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(R){return _.C(Fes,{data:R.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Of");
jB.idomCompat=!0;var Gi4=_.Q(function(W){var l=W.data;var V=W.stateFns;var f=function(){var B=l(),d=B.productId;return!(!B.clearGroupId&&!d)},r=function(){var B=l(),d=B.clearGroupId;
return(B=B.productId)?V().isProductSelected(B):d?V().getSelectedProductByGroupId(d)==null:!1},R=function(){var B=l(),d=B.clearGroupId;
if(B=B.productId)V().onProductSelected(B);else if(d)V().onClearGroupSelected(d)},y=function(){var B=l(),d=B.clearGroupId;
if(B=B.productId){var J;return"group:"+(((J=V().getProductById(B))==null?void 0:J.groupId)||"")}return d?"group:"+d:""},P=_.JG(function(){return l().header},[]),n=_.JG(function(){return l().body},[]);
return _.C("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.C(_.c,{cond:function(){return P().length>0||f()},
then:function(){return _.C("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.C("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.C(_.QH,{data:P},{containerLayoutViewModel:function(B){return _.C("div",{class:"ytPdpCardSectionViewModelContentItem"},_.C(jB,{data:B.data}))},
styledTextViewModel:function(B){return _.C("div",{class:"ytPdpCardSectionViewModelContentItem"},_.C(Kew,{data:B.data}))}})),_.C(_.c,{cond:f,
then:function(){return _.C("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.C(_.Br,{checked:r,name:y,onChange:R}))}}))}}),_.C(_.c,{cond:function(){return n().length>0},
then:function(){return _.C("div",null,_.C(_.QH,{data:n},{containerLayoutViewModel:function(B){return _.C("div",{class:"ytPdpCardSectionViewModelContentItem"},_.C(jB,{data:B.data}))}}))}}))},"Pf");
Gi4.idomCompat=!0;var bj7=_.Q(function(W){var l=W.data;var V=W.stateFns;return _.C("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.C(_.c,{cond:function(){return l().banner},
then:function(f){return _.C("div",{class:"ytPdpCardViewModelBanner"},_.C(_.bH,{text:f}))}}),_.C(_.QH,{data:function(){return l().sections}},{pdpCardSectionViewModel:function(f){f=f.data;
var r={};return _.C("div",{class:_.If("ytPdpCardViewModelSectionContainer",(r.ytPdpCardViewModelShowDividers=function(){return l().showDividers},r))},_.C(Gi4,{data:f,
stateFns:V}))}}))},"Qf");
bj7.idomCompat=!0;var pSN=_.Q(function(W){var l=W.data;var V=W.isOverlay;W={};return _.C("pdp-masthead-view-model",{class:_.If("ytPdpMastheadViewModelHost",(W.ytPdpMastheadViewModelIsOverlay=V,W))},_.C(_.QH,{data:function(){return l().image}},{contentPreviewImageViewModel:_.wn,
themedImageViewModel:function(f){return _.C(Fes,{data:f.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.C(_.c,{cond:function(){return l().title},
then:function(f){return _.C("h1",{class:"ytPdpMastheadViewModelHeading"},_.C(_.bH,{text:f,isOverlay:V}))}}),_.C(_.G3,{each:function(){var f;
return(f=l().finePrint)!=null?f:[]}},function(f){return _.C("div",{class:"ytPdpMastheadViewModelFinePrint"},_.C(_.bH,{text:f,
isOverlay:V}))}))},"Rf");
pSN.idomCompat=!0;var oB7=_.Q(function(W){var l=W.data;var V=W.stateFns;var f=function(){return"pdp-pricing-group-selector-"+l().pricingGroupAttributeIds},r=_.JG(function(){return l().pricingGroupSelectorSectionHeader});
return _.C("pdp-pricing-group-selector-view-model",null,_.C(_.c,{cond:function(){return!!r()},
then:function(){return _.C(_.QH,{data:r},{sectionHeaderViewModel:function(R){R=R.data;var y={};return _.C("div",{class:_.If("ytPdpPricingGroupSelectorViewModelSectionHeader",(y.ytPdpPricingGroupSelectorViewModelFullBleed=!0,y.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,y))},_.C(_.Yx,{data:R}))}})}}),_.C("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.C(_.G3,{each:function(){var R=V().getSelectedProductByGroupId(l().groupId);
if(!R)return _.Ar(Error("Rj`"+l().groupId)),[];var y,P=(y=l().pricingGroupAttributeIds)!=null?y:[],n;if((n=R.pricingGroups)==null||!n.length||!P.length)return[];y=R.pricingGroups.filter(function(D){return P.length?D.pricingGroupAttributes.every(function(u){return P.includes(u)}):!1});
R=[];if(P.length>0){y=[].concat(_.QK(y));n=_.L(P);for(var B=n.next(),d={};!B.done;d={targetAttrId:void 0},B=n.next())d.targetAttrId=B.value,B=y.findIndex(function(D){return function(u){return u.pricingGroupAttributes.includes(D.targetAttrId)}}(d)),B!==-1&&(R.push(y[B]),y.splice(B,1))}var J=V().getSelectedPricingGroupAttributesByGroupId(l().groupId);
return R.map(function(D){var u=!1;J&&D.pricingGroupAttributes&&(u=qm(D.pricingGroupAttributes,J));return{pricingGroup:D,isSelected:u}})},
keyBy:function(R){return R.pricingGroup.pricingGroupId}},function(R){return _.C("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.C("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.C(_.QH,{data:function(){return R().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:jB})),_.C("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.C(_.Br,{checked:function(){return R().isSelected},
name:f,onClick:function(){var y=R().pricingGroup;V().onPricingGroupSelected(y.pricingGroupId);if(y=_.fP(y.onSelectPricingGroup)){var P;(P=_.tY().resolve(_.s6))==null||P.resolveCommand(y)}}})))})))},"Sf");
oB7.idomCompat=!0;var j_Y=_.Q(function(W){var l=W.data;var V=W.stateFns;var f=function(){var y=V().getSelectedPricingOptions().map(function(B){return B.pricingOptionId}),P=V().getSelectedProductByGroupId(l().groupId);
if(!P)return _.Ar(Error("Sj`"+l().groupId)),[];var n=V().getSelectedPricingGroupAttributesByGroupId(l().groupId);return TUY(P.pricingOptions,n,y)},r=_.JG(function(){return l().pricingOptionSelectorSectionHeader}),R=function(){return f().length>1};
return _.C("pdp-pricing-option-selector-view-model",null,_.C(_.c,{cond:function(){return!!r()&&R()},
then:function(){return _.C(_.QH,{data:r},{sectionHeaderViewModel:function(y){y=y.data;var P={};return _.C("div",{class:_.If("ytPdpPricingOptionSelectorViewModelSectionHeader",(P.ytPdpPricingOptionSelectorViewModelFullBleed=!0,P.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,P))},_.C(_.Yx,{data:y}))}})}}),_.C(_.c,{cond:R,
then:function(){return _.C("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.C(_.G3,{each:f,keyBy:"INDEX"},function(y){return _.C("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.C("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.C(_.QH,{data:function(){return y().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:jB})),_.C("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.C(_.Br,{checked:function(){return y().isSelected},
onClick:function(){V().onPricingOptionSelected(y().pricingOption.pricingOptionId);var P=y().pricingOption.onSelectPricingOption;if(P=_.fP(P)){var n;(n=_.tY().resolve(_.s6))==null||n.resolveCommand(P)}}})))}))}}))},"Tf");
j_Y.idomCompat=!0;var I5Z=_.Q(function(W){var l=W.data;var V=W.stateFns;return _.C("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.C(_.QH,{data:function(){var f,r;return(r=(f=V().getSelectedPricingOptions()[0])==null?void 0:f.primaryButton)!=null?r:l().emptyStateButton}},{buttonViewModel:_.Nq}))},"Uf");
I5Z.idomCompat=!0;var ijw=_.Q(function(W){var l=W.stateFns;return _.C("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.C(_.QH,{data:function(){return l().getSelectedPricingOptions().flatMap(function(V){return V.summaryLines}).filter(function(V){return!!V})}},{containerLayoutViewModel:function(V){return _.C("div",{class:"ytPdpSummaryViewModelLineItem"},_.C(jB,{data:V.data}))}}))},"Vf");
ijw.idomCompat=!0;var mSH=_.Q(function(W){function l(X){var w=y();_.dm(_.Nr("pdpStateEntity",w,{key:w,selectedPricingOptions:X}))}
var V=W.data;var f=W.internalScrolling;var r=W.stateFnsForTesting;var R=_.JG(function(){return V().allProducts},[]),y=_.JG(function(){return V().pdpStateEntityKey},""),P=_.wH(wAH,y),n=_.v4(function(){_.w9(!0);
var X;return(X=r==null?void 0:r())!=null?X:Q0N(P,R,l)},void 0,"tAB69c"),B=_.JG(function(){return V().body},[]),d=_.JG(function(){return V().columnBreakHints},[]),J=function(){return V().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},D=function(){return J()||V().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},u=_.v4(function(){var X=_.rC(V().background),w;
if(X==null?0:(w=X.sources)==null?0:w.length){var O=O===void 0?!0:O;X=_.nKg(void 0,X.sources,void 0,O,O?1E3:void 0,O?void 0:1E3)}else X=null;return X},void 0,"bHjkUb");
W=_.Tm({"--pdp-view-model-background":function(){return u()?"url("+u()+")":void 0}});
var H={};f=_.If("ytPdpViewModelHost",(H.ytPdpViewModelHasBackground=function(){return D()||!!u()},H.ytPdpViewModelHasDarkBackground=D,H.ytPdpViewModelHasScrim=J,H.ytPdpViewModelInternalScrolling=_.JG(f,!1),H));
var p=function(X){var w={};return _.If("ytPdpViewModelItem",(w.ytPdpViewModelFullBleed=function(){return MFs(X())==="dividerViewModel"||MFs(X())==="sectionHeaderViewModel"},w.ytPdpViewModelNoVerticalPadding=function(){return MFs(X())==="sectionHeaderViewModel"},w))};
_.mw(function(){var X=V().onStartCommand;if(X&&(X=_.fP(X))){var w;(w=_.tY().resolve(_.s6))==null||w.resolveCommand(X)}});
return _.C("pdp-view-model",{class:f,style:W},_.C("div",{class:"ytPdpViewModelColumnContainer"},_.C(_.G3,{each:function(){return Z7Y(B(),d())},
keyBy:"INDEX"},function(X){return _.C("div",{class:"ytPdpViewModelColumn"},_.C(_.QH,{data:X},{containerLayoutViewModel:function(w,O){w=w.data;return _.C("div",{class:p(function(){return X()[O()]})},_.C(jB,{data:w}))},
dividerViewModel:function(w,O){w=w.data;return _.C("div",{class:p(function(){return X()[O()]})},_.C(_.ZJ1,{data:w}))},
pdpCardViewModel:function(w,O){w=w.data;return _.C("div",{class:p(function(){return X()[O()]})},_.C(bj7,{data:w,
stateFns:n}))},
pdpMastheadViewModel:function(w,O){w=w.data;return _.C("div",{class:p(function(){return X()[O()]})},_.C(pSN,{data:w,
isOverlay:D}))},
pdpPricingGroupSelectorViewModel:function(w,O){w=w.data;return _.C("div",{class:p(function(){return X()[O()]})},_.C(oB7,{data:w,
stateFns:n}))},
pdpPricingOptionSelectorViewModel:function(w,O){w=w.data;return _.C("div",{class:p(function(){return X()[O()]})},_.C(j_Y,{data:w,
stateFns:n}))},
pdpPrimaryButtonViewModel:function(w,O){w=w.data;return _.C("div",{class:p(function(){return X()[O()]})},_.C(I5Z,{data:w,
stateFns:n}))},
pdpSummaryViewModel:function(w,O){w=w.data;return _.C("div",{class:p(function(){return X()[O()]})},_.C(ijw,{data:w,
stateFns:n}))},
sectionHeaderViewModel:function(w,O){w=w.data;return _.C("div",{class:p(function(){return X()[O()]})},_.C(_.Yx,{data:w}))}}))})))},"Wf");
mSH.idomCompat=!0;_.HI(mSH,"pdp-view-model",{props:{data:_.pA,stateFnsForTesting:_.kh,internalScrolling:_.kh}});var XSw=_.Q(function(W){var l=W.data;var V=W.className;var f=_.wH(_.Lt,function(){return l().flowStateEntityKey});
return _.C("ytm-premium-purchase-button-renderer",{class:_.If("ytPremiumPurchaseButtonRendererHost",V)},_.C(_.QH,{data:function(){var r;return(r=_.k(f(),aj4))==null?void 0:r.primaryButtonOverride}},{buttonRenderer:function(r){return _.C(_.G2,{data:r.data,
className:V})},
buttonViewModel:function(r){return _.C(_.Nq,{data:r.data,className:V})}}))},"Xf");
XSw.idomCompat=!0;var T6c=_.Q(function(W){var l=W.data;W=W.className;var V=function(){return O7c(l().style)},f=_.If("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",V),r=_.If("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",V);
return _.C("yt-flow-bottom-bar-renderer",{class:_.If("yt-flow-bottom-bar-renderer",W,V)},_.C(_.QH,{data:function(){return l().secondaryButton}},{buttonRenderer:function(R){return _.C(_.G2,{data:R.data,
className:r})},
buttonViewModel:function(R){return _.C(_.Nq,{data:R.data,className:r})},
premiumPurchaseButtonRenderer:function(R){return _.C(XSw,{data:R.data,className:r})}}),_.C(_.QH,{data:function(){return l().primaryButton}},{buttonRenderer:function(R){return _.C(_.G2,{data:R.data,
className:f})},
buttonViewModel:function(R){return _.C(_.Nq,{data:R.data,className:f})},
premiumPurchaseButtonRenderer:function(R){return _.C(XSw,{data:R.data,className:f})}}))},"Yf");
T6c.idomCompat=!0;_.HI(T6c,"yt-flow-bottom-bar-renderer",{props:{data:_.pA,className:_.pA}});var wSY=_.Q(function(W){var l=_.If(W.className,"ytOfferSummaryRendererHost");return _.C("yt-offer-summary-renderer",{class:l},_.C("div",{class:"ytOfferSummaryRendererTextContainer"},_.C("div",{class:"ytOfferSummaryRendererEyebrowText"},_.C(_.bH,{text:function(){return W.data().eyebrowText}})),_.C("div",{class:"ytOfferSummaryRendererTitle"},_.C(_.bH,{text:function(){return W.data().title}})),_.C("div",{class:"ytOfferSummaryRendererSubtitle"},_.C(_.bH,{text:function(){return W.data().subtitle}})),_.C("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.C(_.G3,{each:function(){var V;
return(V=W.data().featureListData)!=null?V:[]}},function(V){var f;
return _.C("div",{class:"ytOfferSummaryRendererFeatureList"},_.C(_.wN,{icon:(f=V.icon)==null?void 0:f.iconType,active:function(){return V.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(V.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"}}}),_.C("div",{class:"ytOfferSummaryRendererFeatureListText"},_.C(_.bH,{text:V.text,
className:function(){return V.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.C("div",{class:"ytOfferSummaryRendererDescription"},_.C(_.bH,{text:function(){return W.data().description}}))))},"Zf");_.HI(_.Q(function(W){var l={};l=_.If("ytOfferSummaryFlowStepRendererHost",(l.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=W.shouldDisableHeaderTopMargin,l));return _.C("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:l},_.C("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.C("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.C(_.bH,{text:function(){return W.data().header}})),_.C("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.C(_.bH,{text:function(){return W.data().subtitle}}))),_.C("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.C(_.QH,{data:function(){return W.data().offerSummary}},{offerSummaryRenderer:function(V){return _.C(wSY,{data:V.data,
className:W.flowClassName})}})))},"$f"),"yt-offer-summary-flow-step-renderer",{props:{data:_.kh,
flowClassName:_.kh,flowStateEntityKey:_.kh,shouldDisableHeaderTopMargin:_.kh}});var AHN=_.Q(function(W){var l=W.data;var V=W.className;var f=W.flowStateEntityKey;var r=W.selectionStepStyle;W=_.ip(function(n){var B=l(),d=f==null?void 0:f();n.target&&(n.stopPropagation(),n=d||"",d=_.Lt(_.BE().getState(),n),B=Object.assign({},d,{premiumPurchaseFlowState:{selectedOptionId:B.optionId,primaryButtonOverride:B.primaryButtonOverride}}),_.BE().dispatch(_.MB("flowStateEntity",n,B)));return!1});
var R=function(){return(f==null?void 0:f())||""},y=_.wH(_.Lt,R);
_.mw(function(){var n=l(),B=R(),d=y();n.defaultSelected&&B!==""&&n.primaryButtonOverride&&zVH(n.optionId||"",B,n.primaryButtonOverride,d)});
var P={};return _.C("ytm-option-item-renderer",{"on:click":W,class:_.If(V,"ytm-option-item-renderer",(P["ytm-option-item-renderer--lp2-style"]=function(){return(r==null?void 0:r())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},P))},_.C("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.C("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var n=l(),B=R(),d=y();d=_.k(d,aj4);return(d?(d==null?void 0:d.selectedOptionId)||"":n.defaultSelected&&B!==""?(n==null?void 0:n.optionId)||"":"")===l().optionId},
name:("input"+_.Wd(_.Pr)).toString()})),_.C("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.C(_.QH,{data:function(){return l().titleBadge}},{badgeViewModel:function(n){return _.C(_.T2,{data:n.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.C(_.c,{cond:function(){return l().eyebrowText},
then:function(){return _.C("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.C(_.bH,{text:function(){return l().eyebrowText}}))}}),_.C("div",{class:"ytm-option-item-renderer__option-item-title"},_.C(_.bH,{text:function(){return l().title}})),_.C("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.C(_.bH,{text:function(){return l().subtitle}})),_.C(_.c,{cond:function(){return l().featureListData},
then:function(){return _.C("div",{class:"ytm-option-item-renderer__feature-list-data"},_.C(_.G3,{each:function(){return l().featureListData||[]}},function(n){var B,d=(B=n.icon)==null?void 0:B.iconType;
a:switch(n.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":B="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":B="ytm-option-item-renderer__feature-list-icon-small";break a;default:B="ytm-option-item-renderer__feature-list-icon-default"}return _.C("div",{class:"ytm-option-item-renderer__feature-list"},_.C(_.wN,{icon:d,className:B,active:function(){return n.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.C("div",{class:"ytm-option-item-renderer__feature-list-text"},_.C(_.bH,{text:n.text,
className:function(){return n.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.C("div",{class:"ytm-option-item-renderer__option-item-description"},_.C(_.bH,{text:function(){return l().description}}))))},"ag");var Q_c=_.Q(function(W){var l=W.data;var V=W.flowClassName;var f=W.flowStateEntityKey;var r=W.selectionStepStyle;return _.C("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.C("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.C("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.C(_.bH,{text:function(){return l().title}}),_.C(_.QH,{data:function(){return l().titleBadge}},{badgeViewModel:function(R){return _.C(_.T2,{data:R.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.C(_.c,{cond:function(){return l().subtitle},
then:function(){return _.C("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.C(_.bH,{text:function(){return l().subtitle}}))}}),_.C(_.c,{cond:function(){return l().featureListData},
then:function(R){return _.C("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.C(_.G3,{each:R},function(y){var P;return _.C("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.C(_.wN,{icon:(P=y.icon)==null?void 0:P.iconType,active:function(){return y.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(y.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.C("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.C(_.bH,{text:y.text,
className:function(){return y.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.C(_.c,{cond:function(){return l().secondaryTitle},
then:function(){return _.C("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.C(_.bH,{text:function(){return l().secondaryTitle}}))}}),_.C(_.G3,{each:function(){return l().sectionDisclaimers||[]}},function(R){return _.C("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.C(_.bH,{text:R}))})),_.C(_.QH,{data:function(){return l().optionItems}},{optionItemRenderer:function(R){return _.C("div",{class:"ytOptionSectionRendererOptionItem"},_.C(AHN,{data:R.data,
className:V,flowStateEntityKey:f,selectionStepStyle:r}))}}),_.C(_.c,{cond:function(){return l().offerText},
then:function(){return _.C("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.C(_.bH,{text:function(){return l().offerText}}))}}))},"bg");
Q_c.idomCompat=!0;var Mnw=_.Q(function(W){var l=W.data;var V=W.flowClassName;var f=W.flowStateEntityKey;W=W.isDesktop;var r=function(){var B;return(B=l().flowStateEntityKey)!=null?B:f==null?void 0:f()},R=function(){return(r==null?void 0:r())||""},y=function(){return l().style},P=_.wH(_.Lt,R);
_.mw(function(){var B=l(),d=R(),J=P();!_.k(J,aj4)&&B.noPreselect&&d!==""&&B.defaultButtonOverride&&zVH("default",d,B.defaultButtonOverride,J)});
var n={};return _.C("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.If("ytm-option-selection-flow-step-renderer",(n["ytm-option-selection-flow-step-renderer--desktop"]=W,n["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return l().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},n))},_.C("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"},
_.C("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.C(_.bH,{text:function(){return l().header}})),_.C("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.C(_.bH,{text:function(){return l().subtitle}}))),_.C(_.QH,{data:function(){return l().optionItems||[]}},{optionItemRenderer:function(B){return _.C("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.C(AHN,{data:B.data,
className:V,flowStateEntityKey:r,selectionStepStyle:y}))},
optionSectionRenderer:function(B){return _.C("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.C(Q_c,{data:B.data,flowClassName:V,flowStateEntityKey:r,selectionStepStyle:y}))}}))},"cg");
Mnw.idomCompat=!0;_.HI(Mnw,"yt-option-selection-flow-step-renderer",{props:{data:_.pA,flowClassName:_.pA,flowStateEntityKey:_.pA,isDesktop:_.pA}});_.IE=_.Q(function(W){var l=_.Dd(W,{type:1,disablePadding:!1,disablePrimaryButton:!1}),V=l.data,f=l.type;W=l.disablePadding;var r=l.disablePrimaryButton,R=l.onClickPrimaryButton,y=function(){return V().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},P=function(){return{disabled:r(),
state:r()?"disabled":"active"}},n=function(){return V().leadingLabel||V().trailingLabel};
l={};return _.C("yt-panel-footer-view-model",{class:_.If("yt-panel-footer-view-model-wiz",(l["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return V().shouldHideDivider},l["yt-panel-footer-view-model-wiz--disable-padding"]=W,l))},_.C(_.c,{cond:n,
then:function(){var B={},d={};return _.C("div",{class:_.If("yt-panel-footer-view-model-wiz__text-row",(B["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var J=V();return!(!J.leadingLabel&&!J.trailingLabel||!J.primaryButton&&!J.secondaryButton)},B))},_.C(_.bH,{text:function(){return V().leadingLabel},
className:_.If((d["yt-panel-footer-view-model-wiz--text-padding"]=n,d))}),_.C(_.bH,{text:function(){return V().trailingLabel}}))}}),_.C(_.c,{cond:y,
then:function(){var B={};return _.C("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.C("div",{class:_.If("yt-panel-footer-view-model-wiz__primary-button",(B["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return V().secondaryButton},B))},_.C(_.QH,{data:function(){return V().primaryButton}},{buttonViewModel:function(d){return _.C(_.Nq,{data:d.data,
buttonOverrides:P,onClick:R})}})),_.C(_.QH,{data:function(){return V().secondaryButton}},{buttonViewModel:_.Nq}))}}),_.C(_.c,{cond:function(){return!y()},
then:function(){var B={},d={},J={};return _.C("div",{class:_.If("yt-panel-footer-view-model-wiz__button-row",(B["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===f()},B))},_.C("div",{class:_.If("yt-panel-footer-view-model-wiz__button-row--left-button",(d["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===f()},d["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!V().secondaryButton||0===f()},d["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===f()},d))},_.C(_.QH,{data:function(){return V().secondaryButton}},{buttonViewModel:_.Nq})),_.C("div",{class:_.If("yt-panel-footer-view-model-wiz__primary-button",(J["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===f()||1===f()},J["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===f()},J))},_.C(_.QH,{data:function(){return V().primaryButton}},{buttonViewModel:function(D){return _.C(_.Nq,{data:D.data,
buttonOverrides:P,onClick:R})}})))}}))},"dg");
_.IE.idomCompat=!0;_.Zjw=_.Q(function(W){W=_.Dd(W,{disablePadding:!1});var l=W.data,V=W.disablePadding;W=_.CQY(function(){return l().formId});
var f=W.submitForm,r=W.isValid,R=W.isSubmitting;return _.C("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.C(_.QH,{data:function(){return l().panelFooter}},{panelFooterViewModel:function(y){return _.C(_.IE,{data:y.data,
onClickPrimaryButton:function(){f()},
disablePrimaryButton:function(){return!r()||R()},
disablePadding:V})}}))},"eg");_.HI(_.Zjw,"yt-form-footer-view-model",{props:{data:_.pA,disablePadding:_.pA}});var Oj1=_.Q(function(W){var l=_.U("enable_user_rating_web");return _.C("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.C("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.C(_.c,{cond:function(){var V;return(V=W.data())==null?void 0:V.image},
then:function(V){return _.C(_.dN,{data:V,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.C("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.C(_.bH,{text:function(){var V;
return(V=W.data())==null?void 0:V.title}})),_.C("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.C(_.bH,{text:function(){var V;
return(V=W.data())==null?void 0:V.subtitle}})),_.C(_.c,{cond:function(){return!l},
then:function(){return _.C(_.QH,{data:function(){var V;return(V=W.data())==null?void 0:V.viewTipsButton}},{buttonViewModel:function(V){return _.C(_.Nq,{data:V.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"fg");_.HI(Oj1,"yt-contributor-zero-state-view-model",{props:{data:_.pA}});var a57=_.Q(function(W){var l=function(){var V;return(V=W.data())==null?void 0:V.image};
return _.C("yt-featured-content-item-view-model",{class:_.If("ytFeaturedContentItemViewModelHost")},_.C("div",{class:_.If(function(){return l()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.C("div",{class:function(){return l()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.C(_.c,{cond:l,
then:function(){return _.C("div",{class:"ytFeaturedContentItemViewModelImage"},_.C(_.QH,{data:function(){return W.data().image}},{themedImageViewModel:function(V){return _.C(Fes,{data:V.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.C(_.c,{cond:function(){var V;
return!l()&&((V=W.data())==null?void 0:V.iconName)},
then:function(){return _.C("div",{class:"ytFeaturedContentItemViewModelIcon"},_.C(_.wN,{icon:function(){return W.data().iconName}}))}}),_.C("div",{class:"ytFeaturedContentItemViewModelContent"},_.C(_.c,{cond:function(){var V;
return(V=W.data())==null?void 0:V.title},
then:function(){return _.C("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.C(_.bH,{text:function(){return W.data().title}}))}}),_.C(_.c,{cond:function(){var V;
return(V=W.data())==null?void 0:V.body},
then:function(){return _.C("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.C(_.bH,{text:function(){return W.data().body}}))}})))))},"gg");var zUw=_.Q(function(W){var l=function(){var r;return NUY((r=W.data())==null?void 0:r.titleFontSize)},V=function(){var r;
return Y6Z((r=W.data())==null?void 0:r.descriptionFontSize)},f=function(){var r;
return((r=W.data())==null?void 0:r.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.C("yt-landing-page-view-model",{class:_.If("ytLandingPageViewModelHost",W.className)},_.C("div",{class:"ytLandingPageViewModelHeader"},_.C(_.c,{cond:function(){var r;return(r=W.data())==null?void 0:r.bannerImage},
then:function(r){return _.C("div",{class:"ytLandingPageViewModelHeaderImage"},_.C(_.QH,{data:function(){return r()}},{imageBannerViewModel:function(R){return _.C(_.uf,{data:R.data,
isPositionRelative:!0})}}))}}),_.C(_.c,{cond:function(){var r;
return(r=W.data())==null?void 0:r.bannerAnimation},
then:function(r){return _.C(_.SX,{data:function(){var R=r();if(R==null?0:R.url){var y;R={path:(y=R==null?void 0:R.url)!=null?y:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(R==null?0:R.payload){var P;R={animationData:JSON.parse((P=R==null?void 0:R.payload)!=null?P:""),autoplay:!0,loop:!0,renderer:"svg"}}else R=void 0;return{animationConfig:R}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.C("div",{class:"ytLandingPageViewModelHeaderTitle"},_.C(_.c,{cond:function(){var r;
return(r=W.data())==null?void 0:r.title},
then:function(r){return _.C("div",{class:_.If("ytLandingPageViewModelHeaderTitleContent",l)},_.C(_.bH,{text:function(){return r()}}))}}),_.C(_.c,{cond:function(){var r;
return(r=W.data())==null?void 0:r.description},
then:function(r){var R={};return _.C(_.bH,{className:_.If("ytLandingPageViewModelHeaderTitleDescription",V,(R.ytLandingPageViewModelHeaderTitleDescriptionMargin=f,R)),text:function(){return r()}})}}))),_.C(_.c,{cond:function(){var r,R;
return(r=W.data())==null?void 0:(R=r.featuredContentList)==null?void 0:R.length},
then:function(){return _.C("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.C(_.QH,{data:function(){return W.data().featuredContentList}},{featuredContentItemViewModel:function(r){return _.C(a57,{data:r.data})}}))}}),_.C(_.c,{cond:function(){var r,R;
return(r=W.data())==null?void 0:(R=r.expandableContentList)==null?void 0:R.length},
then:function(){return _.C("div",{class:"ytLandingPageViewModelFaqSection"},_.C(_.QH,{data:function(){return W.data().expandableContentList}},{faqEntryViewModel:function(r){return _.C("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.C(_.HJk,{data:r.data}))}}))}}),_.C("div",{class:"ytLandingPageViewModelFooter"},_.C(_.c,{cond:function(){var r;
return(r=W.data())==null?void 0:r.legalCopy},
then:function(r){return _.C("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.C(_.bH,{text:function(){return r()}}))}}),_.C(_.c,{cond:function(){var r;
return(r=W.data())==null?void 0:r.actions},
then:function(r){return _.C("div",null,_.C(_.QH,{data:function(){return r()}},{flexibleActionsViewModel:function(R){return _.C(_.n9,{data:R.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"hg");_.HI(_.Q(function(W){return _.C("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.C("div",{class:"ytLpSectionGroupViewModelContainer"},_.C(_.QH,{data:function(){return W.data().sections}},{landingPageViewModel:function(l){return _.C(zUw,{data:l.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"ig"),"yt-lp-section-group-view-model",{props:{data:_.pA}});var N65=_.Q(function(W){var l=W.data;var V=W.selectedKey;var f=W.onSelected;var r=W.groupName;var R=function(){return l().text},y=function(){return l().attributedText},P=function(){return l().subtext},n=function(){return l().attributedSubtext},B=_.C("div",{class:"ytRadioButtonItemViewModelLabel"},_.C(_.c,{cond:R,
then:function(){return _.C("div",null,R)}}),_.C(_.c,{cond:y,
then:function(){return _.C(_.bH,{text:y})}}),_.C(_.c,{cond:P,
then:function(){return _.C("div",{class:"ytRadioButtonItemViewModelSubText"},P)}}),_.C(_.c,{cond:n,
then:function(){return _.C("div",{class:"ytRadioButtonItemViewModelSubText"},_.C(_.bH,{text:n}))}})),d=function(){if(y()){var D;
return(D=y())==null?void 0:D.content}return R()},J=function(){if(n()){var D;
return(D=n())==null?void 0:D.content}return P()};
W={};return _.C("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.C(_.Br,{name:r,checked:function(){return!(V==null||!V()||l().key!==(V==null?void 0:V()))},
onChange:function(D){f==null||f(D.target,l(),r==null?void 0:r())},
labelRenderable:function(){return B},
ariaLabel:function(){return J()?d()+", "+J():d()},
className:_.If((W.ytRadioButtonItemViewModelSubTitle=function(){return!!l().subtext},W))}))},"jg");_.Yuw=_.Q(function(W){var l=W.data;var V=W.onSelected;var f=W.selectedKey;var r=W.groupName;var R=function(){return(r==null?void 0:r())||l().key};
return _.C("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost"},_.C("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.C(_.QH,{data:function(){return l().radioButtons}},{radioButtonItemViewModel:function(y){return _.C(N65,{data:y.data,
onSelected:V,selectedKey:f,groupName:R})}})))},"kg");var xSY=_.Q(function(W){_.mw(function(){if(W.controlledMode()&&W.data().defaultSelected)_.wv(Error("Tj"));else{var R;!W.controlledMode()&&((R=W.selected)==null?0:R.call(W))&&_.wv(Error("Uj"))}});
var l=_.L(_.X3(function(){if(!W.controlledMode())return W.data().defaultSelected})),V=l.next().value,f=l.next().value,r=function(){if(!W.controlledMode())return V();
var R;return(R=W.selected)==null?void 0:R.call(W)};
return _.C("yt-checkbox-item-view-model",{class:_.If("ytCheckboxItemViewModelHost")},_.C(_.dR,{data:function(){var R=W.data(),y=r();return{title:R.text,subtitle:R.subtext,superlabel:R.superlabel,isSelected:!!y,isDisabled:R.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!W.controlledMode()&&f(!V());var R,y;(y=W.onTap)==null||y.call(W,!!r(),W.data(),(R=W.groupName)==null?void 0:R.call(W))}}))},"lg");var eUY=_.Q(function(W){var l=W.data;var V=W.controlledMode;var f=W.selectedKeys;var r=W.onItemTap;var R=W.groupName;var y=function(){return(R==null?void 0:R())||l().key};
_.mw(function(){V()&&l().defaultSelectedKeys?_.wv(Error("Vj")):!V()&&(f==null?0:f())&&_.wv(Error("Wj"))});
W=_.L(_.X3(function(){if(!V())return l().defaultSelectedKeys}));
var P=W.next().value,n=W.next().value,B=function(d,J,D){d=[];!V()&&J.key&&(d=xL2(J.key,P()||[]),n(d));r==null||r(J,d,D)};
return _.C("yt-checkbox-group-view-model",{class:_.If("ytCheckboxGroupViewModelHost")},_.C("fieldset",{class:_.If("ytCheckboxGroupViewModelFieldset")},_.C(_.QH,{data:function(){return l().checkboxes}},{checkboxItemViewModel:function(d){var J=d.data;
return _.C(xSY,{data:J,controlledMode:!0,selected:function(){var D=V()?(f==null?void 0:f())||[]:P()||[],u=J().key;return u?D.includes(u):!1},
onTap:B,groupName:y})}})))},"mg");var iQ=_.Q(function(W){var l=_.wH(eVY,_.JG(function(){var P;return(P=W.data())==null?void 0:P.noteFeedEntityKey},"")),V=_.wH(PPc,_.JG(function(){var P;
return(P=W.data())==null?void 0:P.userRatingEntityKey},"")),f=_.U("enable_user_rating_web"),r=function(){var P,n,B;
return((P=l())==null?0:P.contributorNote)?(n=l())==null?void 0:n.contributorNote:(B=W.data())==null?void 0:B.existingNote},R=function(){var P,n;
return!!V()&&!!q6s((P=V())==null?void 0:P.helpfulnessValue,(n=W.data())==null?void 0:n.noteData)};
if(f){var y={};return _.C("yt-note-view-model",{class:_.If("ytNoteViewModelHostUserRating",(y.ytNoteViewModelHostUserRatingPublishedNote=function(){var P,n,B,d;return((P=W.data())==null?void 0:(n=P.noteData)==null?void 0:n.isPublished)&&!((B=W.data())==null?0:(d=B.noteData)==null?0:d.isUserRatingForm)},y))},_.C("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.C("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.C(_.c,{cond:function(){var P,n;
return(P=W.data())==null?void 0:(n=P.noteData)==null?void 0:n.isPinned},
then:function(){return _.C(_.wN,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.C(_.c,{cond:function(){var P,n;return(P=W.data())==null?void 0:(n=P.noteData)==null?void 0:n.isPublished},
then:function(){return _.C(_.wN,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.C(_.QH,{data:function(){var P;
return(P=W.data())==null?void 0:P.metadata}},{contentMetadataViewModel:_.A8}),_.C("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var P,n;
return(n=_.k((P=W.data())==null?void 0:P.metadata,_.qqk))==null?void 0:n.delimiter}),_.C(_.bH,{text:function(){var P;
return(P=r())==null?void 0:P.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.C(_.c,{cond:function(){var P,n;return!((P=W.data())==null?0:(n=P.noteData)==null?0:n.isUserRatingForm)},
then:function(){return _.C(_.QH,{data:function(){var P,n,B,d,J,D,u,H=!!((P=W.data())==null?0:(n=P.noteData)==null?0:n.isPinned);P=R();n=(B=W.data())==null?void 0:B.noteData;B=(d=l())==null?void 0:(J=d.contributorNote)==null?void 0:J.deleteAction;d=(D=W.data())==null?void 0:D.overflowButtonNoteWithRatingOnTapOverride;D=(u=W.data())==null?void 0:u.overflowButton;return H?hVw(n,B):P?{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:d}}:D}},{buttonViewModel:function(P){return _.C(_.Nq,{data:P.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.C("div",{class:"ytNoteViewModelNoteContent"},_.C(_.bH,{text:function(){var P;
return(P=r())==null?void 0:P.text}})),_.C(_.c,{cond:function(){var P,n,B,d;
return!((P=W.data())==null?0:(n=P.noteData)==null?0:n.isPinned)&&!((B=W.data())==null?0:(d=B.noteData)==null?0:d.isUserRatingForm)},
then:function(){return _.C(_.c,{cond:R,then:function(){return _.C("div",{class:"ytNoteViewModelUserRatingContainer"},_.C(_.bH,{text:function(){var P,n;return q6s((P=V())==null?void 0:P.helpfulnessValue,(n=W.data())==null?void 0:n.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.C(_.QH,{data:function(){var P;return(P=W.data())==null?void 0:P.userRatingButton}},{buttonViewModel:function(P){return _.C(_.Nq,{data:P.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.C(_.c,{cond:function(){var P,n,B,d;
return!((P=W.data())==null?0:(n=P.noteData)==null?0:n.ignoreDivider)&&!((B=W.data())==null?0:(d=B.noteData)==null?0:d.isUserRatingForm)},
then:function(){return _.C("div",{class:"ytNoteViewModelDivider"},_.C(_.QH,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(P){return _.C(_.ZJ1,{data:P.data})}}))}}))}return _.C("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.C("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.C("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.C(_.c,{cond:function(){var P,n;return(P=W.data())==null?void 0:(n=P.noteData)==null?void 0:n.isPinned},
then:function(){return _.C(_.wN,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.C(_.c,{cond:function(){var P,n;return(P=W.data())==null?void 0:(n=P.noteData)==null?void 0:n.isPublished},
then:function(){return _.C(_.wN,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.C(_.c,{cond:function(){return f},
then:function(){return _.C(_.QH,{data:function(){var P;return(P=W.data())==null?void 0:P.metadata}},{contentMetadataViewModel:function(P){return _.C(_.A8,{data:P.data})}})}}),_.C(_.bH,{text:function(){var P,n;
return(P=W.data())==null?void 0:(n=P.noteData)==null?void 0:n.headerText}}),_.C("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.C(_.bH,{text:function(){var P,n;
return(P=W.data())==null?void 0:(n=P.noteData)==null?void 0:n.delimiter}})),_.C(_.bH,{text:function(){var P,n;
return(P=l())==null?void 0:(n=P.contributorNote)==null?void 0:n.publishedTimeText}})),_.C(_.QH,{data:function(){var P,n,B;
return hVw((P=W.data())==null?void 0:P.noteData,(n=l())==null?void 0:(B=n.contributorNote)==null?void 0:B.deleteAction)}},{buttonViewModel:function(P){return _.C(_.Nq,{data:P.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.C("div",{class:"ytNoteViewModelNoteContent"},_.C(_.bH,{text:function(){var P,n;
return(P=l())==null?void 0:(n=P.contributorNote)==null?void 0:n.text}})))},"ng");
iQ.idomCompat=!0;_.HI(_.Q(function(W){var l=_.wH(_.Lt,_.JG(function(){var X;return(X=W.data())==null?void 0:X.flowStateEntityKey},"")),V=_.L(_.X3(function(){var X;
return(X=_.k(W.data().helpfulnessValue,_.lQ))==null?void 0:X.defaultSelectedKey})),f=V.next().value,r=V.next().value;
V=_.L(_.X3(function(){var X,w,O;return(O=_.k((X=_.k(W.data().helpfulnessValue,_.lQ))==null?void 0:(w=X.radioButtons)==null?void 0:w.find(function(S){var N;return((N=_.k(S,CT5))==null?void 0:N.key)===f()}),CT5))==null?void 0:O.value}));
var R=V.next().value,y=V.next().value,P=function(X,w){r(w.key);y(w.value)},n=function(){var X,w;
return((X=R())==null?void 0:X.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((w=R())==null?void 0:w.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},B=function(){var X,w;
return((X=R())==null?void 0:X.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((w=R())==null?void 0:w.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"};
V=_.L(_.X3(function(){var X;return(X=_.k(W.data().helpfulReasons,n_L))==null?void 0:X.defaultSelectedKeys}));
var d=V.next().value,J=V.next().value,D=function(X){S6Y(X.key,d,J)};
V=_.L(_.X3(function(){var X;return(X=_.k(W.data().notHelpfulReasons,n_L))==null?void 0:X.defaultSelectedKeys}));
var u=V.next().value,H=V.next().value,p=function(X){S6Y(X.key,u,H)};
return _.C("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.C(_.QH,{data:function(){var X=_.k(l(),lxL);if(X){var w;var O={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:X==null?void 0:(w=X.note)==null?void 0:w.headerText}]}],delimiter:"\u2022"}},existingNote:X.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else O=void 0;return O}},{noteViewModel:function(X){return _.C("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.C(iQ,{data:X.data}))}}),_.C(_.QH,{data:function(){var X;
return(X=W.data())==null?void 0:X.helpfulnessValue}},{radioButtonGroupViewModel:function(X){return _.C("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.C(_.Yuw,{data:X.data,
onSelected:P,selectedKey:f}))}}),_.C(_.c,{cond:n,
then:function(){return _.C("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.C("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.C(_.bH,{text:function(){var X;return(X=W.data())==null?void 0:X.helpfulReasonQuestion}})),_.C(_.QH,{data:function(){var X;
return(X=W.data())==null?void 0:X.helpfulReasons}},{checkboxGroupViewModel:function(X){return _.C(eUY,{data:X.data,
onItemTap:D,selectedKeys:d,controlledMode:!0})}}))}}),_.C(_.c,{cond:B,
then:function(){return _.C("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.C("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.C(_.bH,{text:function(){var X;return(X=W.data())==null?void 0:X.notHelpfulReasonQuestion}})),_.C(_.QH,{data:function(){var X;
return(X=W.data())==null?void 0:X.notHelpfulReasons}},{checkboxGroupViewModel:function(X){return _.C(eUY,{data:X.data,
onItemTap:p,selectedKeys:u,controlledMode:!0})}}))}}),_.C(_.c,{cond:function(){return!n()&&!B()},
then:function(){return _.C(_.QH,{data:function(){var X;return(X=W.data())==null?void 0:X.helpfulNoteFeatures}},{alertBannerViewModel:function(X){return _.C("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.C(_.eRk,{data:X.data}))}})}}))},"og"),"yt-note-user-rating-view-model",{props:{data:_.pA}});_.HI(iQ,"yt-note-view-model",{props:{data:_.pA}});_.HI(_.Q(function(W){var l=_.wH(eVY,_.JG(function(){var V;return(V=W.data())==null?void 0:V.noteFeedEntityKey},""));
return _.C("yt-notes-wrapper-view-model",{class:_.If("ytNotesWrapperViewModelHost")},_.C(_.c,{cond:function(){var V,f,r;return!((V=W.data())==null||!V.existingNotes)||!((f=W.data())==null||!f.currentNote)&&!((r=l())==null||!r.contributorNote)},
then:function(){return _.C(_.Lp,null,_.C(_.QH,{data:function(){var V,f,r,R;return((f=_.k((V=W.data())==null?void 0:V.currentNote,VCZ))==null?0:(r=f.noteData)==null?0:r.isPublished)?(R=W.data())==null?void 0:R.currentNote:void 0}},{noteViewModel:function(V){return _.C(iQ,{data:V.data})}}),_.C(_.QH,{data:function(){var V;
return(V=W.data())==null?void 0:V.existingNotes}},{noteViewModel:function(V){var f=V.data;
return _.C(_.c,{cond:function(){var r,R;return(r=f())==null?void 0:(R=r.noteData)==null?void 0:R.isPublished},
then:function(){return _.C(iQ,{data:f})}})}}),_.C(_.QH,{data:function(){var V,f,r,R;
return((f=_.k((V=W.data())==null?void 0:V.currentNote,VCZ))==null?0:(r=f.noteData)==null?0:r.isPublished)?void 0:(R=W.data())==null?void 0:R.currentNote}},{noteViewModel:function(V){return _.C(iQ,{data:V.data})}}),_.C(_.QH,{data:function(){var V;
return(V=W.data())==null?void 0:V.existingNotes}},{noteViewModel:function(V){var f=V.data;
return _.C(_.c,{cond:function(){var r,R;return!((r=f())==null?0:(R=r.noteData)==null?0:R.isPublished)},
then:function(){return _.C(iQ,{data:f})}})}}))},
else:function(){return _.C(_.QH,{data:function(){var V;return(V=W.data())==null?void 0:V.zeroStateData}},{contributorZeroStateViewModel:Oj1})}}))},"pg"),"yt-notes-wrapper-view-model",{props:{data:_.pA}});var mf=_.Q(function(W){var l=_.Dd(W,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),V=l.label,f=l.text,r=l.placeholder,R=l.hint;W=l.rows;var y=l.overflowStyle,P=l.outline,n=l.disabled,B=l.disableNewLines,d=l.characterLimit,J=l.validation,D=l.onInput,u=_.WS("textarea");l=_.L(_.X3(function(){return f()}));
var H=l.next().value,p=l.next().value;l=_.L(_.J4(!1,void 0,"u9PDq"));var X=l.next().value,w=l.next().value,O=function(){w(!0)},S=function(){w(!1)};
_.mw(function(){var Z4=u.value,Ax=y(),sM=H();Ax==="expand-vertically"&&sM&&EYc(Z4);u.value.addEventListener("focusin",O);u.value.addEventListener("focusout",S)});
_.Xc(function(){u.value.removeEventListener("focusin",O);u.value.removeEventListener("focusout",S)});
var N=function(){var Z4;return(Z4=J())==null?void 0:Z4.validate(H())},x=function(){return d()&&!N()&&H().length>d().maxChars},Y=function(){return!!N()||x()};
l=_.ip(function(Z4){if(!Z4.currentTarget)return!1;Z4=Z4.currentTarget;p(Z4.value);y()==="expand-vertically"&&EYc(Z4);D==null||D(Z4.value);return!0});
var W8=_.ip(function(Z4){B()&&Z4.key==="Enter"&&Z4.preventDefault();return!1}),c8=_.ip(function(){u.value.focus()}),B8=function(){return r()||V()},Jx={},H8={},Kq={};
return _.C("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.C("div",{class:_.If("ytStandardsTextareaShapeTextareaContainer",(Jx.ytStandardsTextareaShapeTextareaContainerOutline=P,Jx.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=n,Jx.ytStandardsTextareaShapeTextareaContainerOutlineError=Y,Jx)),"on:click":c8},_.C("label",{class:_.If("ytStandardsTextareaShapeLabel",(H8.ytStandardsTextareaShapeLabelFocused=X,H8.ytStandardsTextareaShapeLabelDisabled=n,H8.ytStandardsTextareaShapeLabelError=
function(){return Y()&&!n()},H8.ytStandardsTextareaShapeLabelHidden=function(){return!X()&&!H()&&!!B8()},H8))},V),_.C("div",{class:_.If("ytStandardsTextareaShapePlaceholder",(Kq.ytStandardsTextareaShapePlaceholderVisible=function(){return!X()&&!H()},Kq)),
"aria-hidden":"true"},B8),_.C("textarea",{el:u,class:"ytStandardsTextareaShapeTextarea",rows:W,disabled:n,placeholder:B8,"on:input":l,"on:keydown":W8},H)),_.C(_.c,{cond:function(){return R()&&!Y()},
then:function(){var Z4={};return _.C("div",{class:_.If("ytStandardsTextareaShapeHint",(Z4.ytStandardsTextareaShapeHintDisabled=n,Z4))},_.C("div",{class:"ytStandardsTextareaShapeHintHintMessage"},R))}}),_.C(_.c,{cond:N,
then:function(){return _.C(quL,{disabled:n},_.C("div",{class:"ytStandardsTextareaShapeErrorMessage"},N))}}),_.C(_.c,{cond:d,
then:function(Z4){return _.C(_.c,{cond:x,then:function(){return _.C(quL,{disabled:n},_.C("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return Z4().errorMessage}),_.C("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return H().length+"/"+Z4().maxChars}))}})}}))},"qg");
mf.idomCompat={callbacks:{onInput:!0}};var quL=_.Q(function(W){var l={};return _.C("div",{class:_.If("ytStandardsTextareaShapeError",(l.ytStandardsTextareaShapeErrorDisabled=W.disabled,l)),role:"alert"},_.C(_.wN,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),W.children)},"rg");_.hUH=_.Q(function(W){var l=W.data;return _.C("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.C(mf,{text:W.text,label:function(){var V;return(V=l().contentProperties)==null?void 0:V.labelText},
placeholder:function(){var V;return(V=l().contentProperties)==null?void 0:V.placeholderText},
hint:function(){var V;return(V=l().contentProperties)==null?void 0:V.hintText},
outline:function(){var V;return!((V=l().displayProperties)==null?0:V.hideBorder)},
overflowStyle:function(){var V;return((V=l().displayProperties)==null?0:V.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:W.disabled,disableNewLines:function(){var V;return(V=l().displayProperties)==null?void 0:V.disableNewLines},
onInput:W.onInput,characterLimit:W.characterLimit,validation:W.validation,rows:function(){var V;return(V=l().displayProperties)==null?void 0:V.rows}}))},"sg");_.Sus=_.Q(function(W){var l=W.data;return _.C("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.C(mf,{text:W.text,label:function(){var V;return(V=l().contentProperties)==null?void 0:V.labelText},
placeholder:function(){var V;return(V=l().contentProperties)==null?void 0:V.placeholderText},
hint:function(){var V;return(V=l().contentProperties)==null?void 0:V.hintText},
outline:function(){var V;return!((V=l().displayProperties)==null?0:V.hideBorder)},
overflowStyle:function(){var V;return((V=l().displayProperties)==null?0:V.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var V;return(V=l().displayProperties)==null?void 0:V.disableNewLines},
onInput:W.onInput,characterLimit:W.characterLimit,validation:W.validation,rows:function(){var V;return(V=l().displayProperties)==null?void 0:V.rows}}))},"tg");var EBw=_.Q(function(W){var l=_.L(_.X3(function(){var B8,Jx;return((B8=W.data().structuredContextNoteFormSchema)==null?0:(Jx=B8.initialValues)==null?0:Jx.noteBody)?W.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),V=l.next().value,f=l.next().value;
l=_.L(_.X3(function(){W.data();return!1}));
var r=l.next().value,R=l.next().value;l=_.L(_.X3(function(){W.data();return!1}));
var y=l.next().value,P=l.next().value;l=_.L(_.X3(function(){var B8,Jx;return((B8=W.data().structuredContextNoteFormSchema)==null?0:(Jx=B8.initialValues)==null?0:Jx.timestamp)?W.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var n=l.next().value,B=l.next().value;l=_.L(_.X3(function(){W.data();return!1}));
var d=l.next().value,J=l.next().value;l=_.L(_.X3(function(){var B8,Jx;return((B8=W.data().structuredContextNoteFormSchema)==null?0:(Jx=B8.initialValues)==null?0:Jx.sources)?[W.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var D=l.next().value,u=l.next().value;l=_.L(_.X3(function(){W.data();return!1}));
var H=l.next().value,p=l.next().value;l=_.L(_.X3(function(){return!1}));
var X=l.next().value,w=l.next().value;_.mw(function(){var B8;_.nYw((B8=W.data().structuredContextNoteFormSchema)==null?void 0:B8.id,{isSubmitting:X,onSubmit:function(){w(!0);var Jx=slZ(V(),n(),D(),W.data()),H8=_.tY().resolve(_.s6);Jx&&H8&&H8.resolveCommand(Jx,{commandController:{onSuccess:function(){w(!1)}}})},
isValid:function(){return r()&&!y()&&!d()&&!H()}})});
var O=function(B8){if(B8!==void 0&&(f(B8),!r()&&B8.length>0&&R(!0),r())){var Jx=ls2(W.data());if(Jx){var H8=Jx.minLength;Jx=Jx.maxLength;H8&&B8.length<H8?P(!0):Jx&&B8.length>Jx?P(!0):P(!1)}}},S=function(B8){if(B8!==void 0){B(B8);
if(B8.length>0){var Jx,H8,Kq,Z4,Ax=fs5((Jx=W.data())==null?void 0:(H8=Jx.structuredContextNoteFormSchema)==null?void 0:(Kq=H8.fieldSchemas)==null?void 0:(Z4=Kq.timestamp)==null?void 0:Z4.validationSchema);if(Ax&&(Jx=Ax.regex)&&!(new RegExp(Jx)).test(B8)){J(!0);return}}J(!1)}},N=function(B8){if(B8!==void 0){var Jx=B8.split(/[ \n]/).map(function(H8){return H8.trim()});
u(Jx);if(B8.length>0)for(B8=_.L(Jx),Jx=B8.next();!Jx.done;Jx=B8.next())if(!tSZ(Jx.value)){p(!0);return}p(!1)}},x=function(){return{validate:function(B8){if(r()){var Jx=ls2(W.data());
if(Jx){var H8=Jx.minLength;Jx=Jx.translations;if(H8&&B8.length<H8)return Jx==null?void 0:Jx.minLengthErrorMessage}}}}},Y=function(){var B8=ls2(W.data()),Jx=B8==null?void 0:B8.maxLength,H8;
B8=B8==null?void 0:(H8=B8.translations)==null?void 0:H8.maxLengthErrorMessage;if(Jx&&B8)return{maxChars:Jx,errorMessage:B8}},W8=function(){return{validate:function(B8){if(B8){var Jx,H8,Kq,Z4,Ax=fs5((Jx=W.data())==null?void 0:(H8=Jx.structuredContextNoteFormSchema)==null?void 0:(Kq=H8.fieldSchemas)==null?void 0:(Z4=Kq.timestamp)==null?void 0:Z4.validationSchema);
if(Ax&&(Jx=Ax.regex,Ax=Ax.translations,Jx&&!(new RegExp(Jx)).test(B8)))return Ax==null?void 0:Ax.regexErrorMessage}}}},c8=function(){return{validate:function(B8){if(B8){var Jx,H8,Kq,Z4,Ax=RjY((Jx=W.data())==null?void 0:(H8=Jx.structuredContextNoteFormSchema)==null?void 0:(Kq=H8.fieldSchemas)==null?void 0:(Z4=Kq.sources)==null?void 0:Z4.validationSchema);
if(Ax&&(Jx=Ax.translations,Jx==null?0:Jx.selectedErrorMessage))for(B8=B8.split(/[ \n]/).map(function(sM){return sM.trim()}),B8=_.L(B8),H8=B8.next();!H8.done;H8=B8.next())if(!tSZ(H8.value))return B8=void 0,(B8=Jx)==null?void 0:B8.selectedErrorMessage}}}};
return _.C("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.C("div",{class:"ytStructuredContextNoteViewModelTextField"},_.C(_.QH,{data:function(){var B8;return(B8=W.data())==null?void 0:B8.noteContents}},{textFormFieldViewModel:function(B8){return _.C(_.Sus,{data:B8.data,
onInput:O,validation:x,characterLimit:Y})},
textFieldViewModel:function(B8){return _.C(_.hUH,{data:B8.data,onInput:O,validation:x,characterLimit:Y})}})),_.C("div",{class:"ytStructuredContextNoteViewModelTextField"},_.C(_.QH,{data:function(){var B8;
return(B8=W.data())==null?void 0:B8.noteTimestamp}},{textFormFieldViewModel:function(B8){return _.C(_.Sus,{data:B8.data,
onInput:S,validation:W8})},
textFieldViewModel:function(B8){return _.C(_.hUH,{data:B8.data,onInput:S,validation:W8})}})),_.C("div",{class:"ytStructuredContextNoteViewModelTextField"},_.C(_.QH,{data:function(){var B8;
return(B8=W.data())==null?void 0:B8.noteSources}},{textFormFieldViewModel:function(B8){return _.C(_.Sus,{data:B8.data,
onInput:N,validation:c8})},
textFieldViewModel:function(B8){return _.C(_.hUH,{data:B8.data,onInput:N,validation:c8})}})))},"ug");
EBw.idomCompat=!0;_.HI(EBw,"yt-structured-context-note-view-model",{props:{data:_.pA}});var $Sw=_.Q(function(W){var l=_.L(_.X3(function(){var R;if((R=W.controlled)==null?0:R.call(W))return[];var y;return(((y=W.data())==null?void 0:y.chips)||[]).map(function(P){P=_.k(P,_.Dk);if(P==null?0:P.selected)return Luc(P.chipValue)}).filter(function(P){return P!==void 0})})),V=l.next().value,f=l.next().value,r=function(R){var y=Luc(R.chipValue);
if(y!==void 0){var P;if((P=W.controlled)==null?0:P.call(W))return void W.controlled().onTap(y);R=V().includes(y)?[].concat(_.QK(V().filter(function(B){return B!==y}))):[].concat(_.QK(V()),[y]);
f(R);var n;if((n=W.uncontrolled)==null?0:n.call(W))W.uncontrolled().onUpdate(R)}};
return _.C("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.C(_.G3,{each:function(){return W.data().chips||[]}},function(R){return _.C("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.C(_.Q6k,{data:function(){return _.k(R,_.Dk)},
selected:function(){var y;if(y=_.k(R,_.Dk)){var P=Luc(y.chipValue);if(P!==void 0){var n;y=((n=W.controlled)==null?0:n.call(W))?W.controlled().selectedValues.includes(P):V().includes(P)}else y=void 0}else y=!1;return y},
callback:r}))}))},"vg");var Wt7=_.Q(function(W){var l=W.data;var V=function(){var P;return((P=l())==null?void 0:P.flowStateKey)||""},f=_.wH(_.Lt,V),r=function(){var P;
return(P=_.k(f(),fxw))==null?void 0:P.chips},R=function(P){if(P!==void 0){var n=r()||[];
n=n.find(function(B){return B===P})?n.filter(function(B){return B!==P}):[].concat(_.QK(n),[P]);
n=Object.assign({},f(),{feedbackFormFlowState:Object.assign({},_.k(f(),fxw),{chips:n})});_.dm(_.MB("flowStateEntity",V(),n))}},y=function(){var P;
return _.k((P=l())==null?void 0:P.inputBox,rre)};
W=_.Zh(function(P){var n=y();n=!(n==null?0:n.maxChars)||P.length<=n.maxChars;P=Object.assign({},f(),{feedbackFormFlowState:Object.assign({},_.k(f(),fxw),{detail:P}),abuseReportFlowState:Object.assign({},_.k(f(),WT),{navigationEnabled:n})});_.dm(_.MB("flowStateEntity",V(),P))},150);
return _.C("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.C("div",{class:"ytFeedbackFormViewModelChips"},_.C(_.QH,{data:function(){var P;return(P=l())==null?void 0:P.chipSelection}},{chipSelectionFormFieldViewModel:function(P){return _.C($Sw,{data:P.data,
controlled:function(){return{selectedValues:r()||[],onTap:R}}})}})),_.C("div",{class:"ytFeedbackFormViewModelInputBox"},_.C(mf,{text:function(){var P;
return(P=_.k(f(),fxw))==null?void 0:P.detail},
placeholder:function(){var P;return((P=y())==null?void 0:P.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var P=y();if(P&&P.maxChars)return{maxChars:P.maxChars,errorMessage:P.maxCharsExceededErrorMessage||""}},
onInput:W})),_.C("div",{class:"ytFeedbackFormViewModelFooterText"},_.C(_.bH,{text:function(){return l().footerText}})))},"wg");
Wt7.idomCompat=!0;_.HI(Wt7,"yt-feedback-form-view-model",{props:{data:_.pA}});var l0w=_.Q(function(W){var l=W.data;var V=function(){return l().flowStateKey||""},f=_.wH(gYe,V),r=function(){return _.k(f(),WT)},R=function(){if(_.U("enable_gff_accessibility_fix")){var y=!0,P;
if((P=r())==null?0:P.navigationEnabled){var n;_.sZ((n=r())==null?void 0:n.navigationCommand);y=!1}P=Object.assign({},f(),{abuseReportFlowState:Object.assign({},r(),{isReportFormDirty:y})});_.dm(_.MB("flowStateEntity",V(),P))}else _.sZ((y=r())==null?void 0:y.navigationCommand)};
return _.C("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.C("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.C(_.QH,{data:function(){return l().cancelButton}},{buttonViewModel:function(y){return _.C(_.Nq,{data:y.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:R})}}),_.C(_.QH,{data:function(){var y;
if(l().navButton){var P=Object;var n=P.assign,B=_.k(l().navButton,_.JJ),d=((y=r())==null?0:y.navigationEnabled)||_.U("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",J,D;y=_.k((J=r())==null?void 0:J.navigationCommand,_.VY);J=(D=_.k(y,_.x_))==null?void 0:D.url;P={buttonViewModel:n.call(P,{},B,{state:d,iconName:J?"OPEN_IN_NEW":""})}}else P=void 0;return P}},{buttonViewModel:function(y){return _.C(_.Nq,{data:y.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:R})}})))},"xg");
l0w.idomCompat=!0;_.HI(l0w,"yt-report-form-bottom-bar-view-model",{props:{data:_.pA}});var VQe=_.Q(function(W){var l=W.nextStep;return _.C("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.C("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.C(_.wN,{icon:function(){return l().iconName||""}})),_.C("div",null,_.C(_.bH,{text:function(){return l().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"yg"),f04=_.Q(function(W){var l=W.data;
var V,f=(V=_.tY().resolve(_.R0(_.nP)))==null?void 0:V(),r=_.wH(_.Lt,function(){return l().flowStateKey||""});
return _.C("yt-report-form-confirmation-page-view-model",{class:function(){var R;return((R=_.k(r(),WT))==null?void 0:R.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.C("div",{class:function(){var R;
return((R=_.k(r(),WT))==null?void 0:R.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.C(_.dN,{data:function(){return f&&l().imageDark?l().imageDark:l().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.C("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.C("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return l().confirmationHeader}),_.C("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.C(_.bH,{text:function(){return l().confirmationText}})),_.C("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.C(_.bH,{text:function(){return l().lawEnforcementText}})),
_.C("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return l().whatToExpectHeader}),_.C(_.c,{cond:function(){return l().nextSteps},
then:function(R){return _.C("div",null,_.C(_.G3,{each:R},function(y){return _.C(VQe,{nextStep:y})}))}}),_.C(_.c,{cond:function(){return l().legalReportText},
then:function(R){return _.C("div",null,_.C(_.bH,{text:R,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"zg");
f04.idomCompat=!0;_.HI(f04,"yt-report-form-confirmation-page-view-model",{props:{data:_.pA}});var r65=_.Q(function(W){var l=W.data;var V=function(){var R;return((R=_.k(l().inputBox,rre))==null?void 0:R.maxChars)||500},f=function(){return l().flowStateKey||""},r=_.wH(_.Lt,f);
W=_.Zh(function(R){R=Object.assign({},r(),{flowFormState:{isValid:R.length<=V()},abuseReportFlowState:{userComments:R,navigationEnabled:!(R.length>V()),isReportFormDirty:!0}});_.BE().dispatch(_.Nr("flowStateEntity",f(),R))},150);
_.mw(function(){var R=Object.assign({},r(),{flowFormState:{isValid:!0}});_.BE().dispatch(_.Nr("flowStateEntity",f(),R))});
return _.C("yt-report-form-details-page-view-model",{class:function(){var R;return((R=_.k(r(),WT))==null?void 0:R.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.C("h1",{class:function(){var R;
return((R=_.k(r(),WT))==null?void 0:R.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return l().detailsPageHeader}),_.C("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.C(_.bH,{text:function(){return l().bodyText}})),_.C("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.C(mf,{label:function(){var R;
return((R=_.k(l().inputBox,rre))==null?void 0:R.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var R;return{errorMessage:((R=_.k(l().inputBox,rre))==null?void 0:R.maxCharsExceededErrorMessage)||"",maxChars:V()}},
onInput:W})))},"Ag");
r65.idomCompat=!0;_.HI(r65,"yt-report-form-details-page-view-model",{props:{data:_.pA}});var Rc1=_.Q(function(W){var l=W.data;var V=_.lN("div"),f=function(){return l().flowStateKey||""},r=_.wH(_.Lt,f),R=function(){return _.k(r(),WT)};
_.m1(function(){var y,P;if(((y=R())==null?0:y.isReportFormDirty)&&((P=R())==null||!P.navigationEnabled)&&_.U("enable_gff_accessibility_fix")){var n;if(((n=R())==null?void 0:n.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var B;(B=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||B.scrollIntoView()}else{var d;(d=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||d.scrollIntoView()}}},"nktJfe");
return _.C("yt-report-form-reason-select-page-view-model",{class:function(){var y;return((y=R())==null?void 0:y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.C("h1",{class:function(){var y;
return((y=R())==null?void 0:y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return l().pageHeader}),_.C("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.C(_.bH,{text:function(){return l().bodyText}})),_.C("div",{class:function(){var y;
return((y=R())==null?void 0:y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.C(_.c,{cond:function(){var y,P;
return((y=R())==null?void 0:y.isReportFormDirty)&&!((P=R())==null?0:P.navigationEnabled)&&_.U("enable_gff_accessibility_fix")},
then:function(){return _.C("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:V},_.C(_.wN,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.C("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return l().emptyReasonSelectErrorMessage}))}}),_.C(_.Yuw,{data:function(){return _.k(l().radioButtonGroup,_.lQ)},
onSelected:function(y,P){y=Object.assign({},r(),{abuseReportFlowState:Object.assign({},R(),{reasonKey:P.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:P.command})});_.dm(_.MB("flowStateEntity",f(),y))},
selectedKey:function(){var y;return(y=R())==null?void 0:y.reasonKey},
groupName:"report-form-reason-select-page"})))},"Bg");
Rc1.idomCompat=!0;_.HI(Rc1,"yt-report-form-reason-select-page-view-model",{props:{data:_.pA}});var tQ1=_.Q(function(W){var l=W.data;var V,f=(V=_.tY().resolve(_.R0(_.nP)))==null?void 0:V();return _.C("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.C("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.C(_.dN,{data:function(){return f&&l().imageDark?l().imageDark:l().image},
alt:""})),_.C("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.C("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return l().header}),_.C(_.bH,{text:function(){return l().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Cg");
tQ1.idomCompat=!0;_.HI(tQ1,"yt-report-form-sign-in-page-view-model",{props:{data:_.pA}});_.HI(_.Q(function(W){var l=W.data;var V=_.$h(_.yvN),f=function(){return l().titleSuperscript},r=function(){return l().answersShelf},R=function(){return l().videoShelf},y=function(){var Y;
return(Y=l().textInputPlaceholder)==null?void 0:Y.content},P=function(){return l().showOpenTextInput&&!_.U("web_hide_explore_hub_until_user_navigates_back_to_home")},n=function(){var Y;
return(Y=l().textInputValue)==null?void 0:Y.content},B=function(){return l().isMultiTurnFlow?l().resetButtonViewModel:void 0},d=!1;
W=_.L(_.J4(!1,void 0,"rWtIn"));var J=W.next().value,D=W.next().value;W=_.L(_.J4("",void 0,"Vt3VX"));var u=W.next().value,H=W.next().value,p=function(){return{state:J()?"active":"disabled"}};
_.iz(function(){if(P()){n()&&H(n());var Y;if(!B()&&((Y=V())==null?0:Y.stepStates)){var W8;Y=Object.keys((W8=V())==null?void 0:W8.stepStates);W8=Y[Y.length-1];var c8,B8;(W8=(c8=V().stepStates[W8])==null?void 0:(B8=c8.userQuery)==null?void 0:B8.userQuery)&&H(W8)}}});
var X=function(Y){var W8=l().onUpdateText;W8&&_.sZ(W8,{form:{userQuery:Y}});H(Y)},w=_.Zh(function(Y){X(Y.target.value.trim())},150),O=_.ip(function(Y){var W8;
D(!((W8=Y.target.value)==null||!W8.trim())||d);w(Y);return!1}),S=_.ip(function(Y){if(Y.key==="Enter"&&J()){X(Y.target.value.trim());
Y=void 0;var W8=_.k(l().nextButtonViewModel,_.JJ),c8,B8;if(W8==null?0:(c8=W8.loggingDirectives)==null?0:(B8=c8.clientVeSpec)==null?0:B8.uiType){var Jx,H8;Y=_.GY((Jx=W8.loggingDirectives)==null?void 0:(H8=Jx.clientVeSpec)==null?void 0:H8.uiType)}(c8=l().onNextStepCommand)&&_.sZ(c8,{forceClickLogging:!0,clickedVisualElement:Y})}return!1}),N=function(Y,W8){d=W8;
D(W8);if(l().isMultiTurnFlow&&W8){var c8;X((c8=Y==null?void 0:Y.text)!=null?c8:"")}if(_.U("web_hide_explore_hub_until_user_navigates_back_to_home")){var B8,Jx,H8;(H8=(Jx=(B8=x.value)==null?void 0:B8.closest("ytd-flow-step-renderer"))==null?void 0:Jx.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||H8.click()}},x=_.WS("yt-talk-to-recs-view-model");
W={};return _.C("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:x},_.C("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.C(_.QH,{data:function(){return l().topCornerButton}},{buttonViewModel:_.Nq})),_.C("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.C("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.C(_.bH,{text:function(){return l().title}}),_.C(_.c,{cond:f,
then:function(){return _.C("sup",{class:"ytwTalkToRecsSuperScript"},_.C(_.bH,{text:f}))}})),_.C("div",{class:"ytwTalkToRecsSubtitle"},_.C(_.bH,{text:function(){return l().subtitle}})),_.C("div",{class:"ytwTalkToRecsResultsShelf"},_.C(_.c,{cond:r,
then:function(){return _.C(_.QH,{data:r},{chipsShelfViewModel:function(Y){return _.C("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.C(_.CD,{data:Y.data,callback:N,selectionBehavior:1}))}})}}),_.C(_.c,{cond:R,
then:function(){return _.C(_.QH,{data:R},{horizontalShelfViewModel:function(Y){return _.C("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.C(_.DF,{data:Y.data,thumbnailAspectRatio:0}))}})}})),_.C("div",{class:_.If("ytwTalkToRecsRefinementContainer",(W.ytwTalkToRecsBottomMargin=function(){return l().isMultiTurnFlow},W))},_.C(_.c,{cond:P,
then:function(){return _.C("div",{class:"ytwTalkToRecsUserInputBox"},_.C("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:y,value:u,"on:input":O,"on:keyup":S,maxlength:200}))}}),_.C(_.QH,{data:function(){return l().isMultiTurnFlow?l().nextButtonViewModel:void 0}},{buttonViewModel:function(Y){return _.C("div",{class:"ytwTalkToRecsFlowControlButtons"},_.C(_.Nq,{data:Y.data,
buttonOverrides:p}))}}),_.C(_.QH,{data:B},{buttonViewModel:function(Y){return _.C("div",{class:"ytwTalkToRecsFlowControlButtons"},_.C(_.Nq,{data:Y.data,
onClick:function(){var W8=_.k(l().resetButtonViewModel,_.JJ);X(u());(W8=W8==null?void 0:W8.onTap)&&_.sZ(W8)}}))}}))))},"Dg"),"yt-talk-to-recs-view-model",{props:{data:_.pA}});var gsN={sources:[{clientResource:{imageName:"CHECK"}}]};_.sAc=_.Q(function(W){var l=_.WS("div");W=_.Dd(W,{error:void 0});var V=W.data,f=W.error,r=W.onSelected;W=_.L(_.X3(function(){return Ci1(V())}));
var R=W.next().value,y=W.next().value;Jve(V,function(D){y(D);var u,H,p=ns1((u=V().options)==null?void 0:(H=u[D])==null?void 0:H.value,V().type);r==null||r(p);l.value.focus()});
W=_.ip(function(){if(!V().disabled){var D=V(),u=R(),H=l.value;D.options&&(D=Pic(D.options,u,D.label),_.tY().resolve(_.sT).openSheet({viewModel:D},H))}});
var P=_.ibv(),n=function(){return!!f()},B=function(){return!!V().disabled},d={},J={};
return _.C("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.C("div",{class:_.If("ytDropdownViewModelDropdownContainer",(d.ytDropdownViewModelDropdownContainerErrorBorder=n,d.ytDropdownViewModelDropdownContainerDisabled=B,d)),"on:click":W,el:l,role:"combobox",tabindex:0,"on:keydown":P,"aria-invalid":n,"aria-disabled":B,"aria-describedby":function(){return n()?"dropdown-view-model-error":void 0}},_.C("div",{class:"ytDropdownViewModelText"},cvw(V,n,R),B8H(V,R)),_.C("div",{class:_.If("ytDropdownViewModelChevronDown",
(J.ytDropdownViewModelChevronDownDisabled=B,J))},_.C(_.wN,{icon:"CHEVRON_DOWN"}))),dtc(V,f))},"Eg");_.HI(_.Q(function(W){var l=W.data;var V=function(r){var R=Ut4(l());R.videoMetadata||(R.videoMetadata={});R.videoMetadata.sponsorshipsMetadata||(R.videoMetadata.sponsorshipsMetadata={});R.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(r)},f=function(r){var R=Ut4(l());
R.scheduledRedirectMetadata||(R.scheduledRedirectMetadata={});R.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(r)};
return _.C("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.C("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.C("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.C(_.bH,{text:function(){return l().title}}),_.C(_.wN,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.C(_.bH,{text:function(){return l().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.C(_.QH,{data:function(){return l().tierChoices}},{dropdownViewModel:function(r){return _.C("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.C(_.sAc,{data:r.data,
onSelected:V}))}}),_.C(_.QH,{data:function(){return l().startTimeChoices}},{dropdownViewModel:function(r){return _.C("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.C(_.sAc,{data:r.data,
onSelected:f}))}}),_.C(_.bH,{text:function(){return l().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.C("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.C(_.QH,{data:function(){return l().scheduleButton}},{panelFooterViewModel:_.IE})))},"Fg"),"ytfz-schedule-fanzone-view-model",{props:{data:_.pA}});_.HI(_.Q(function(W){var l=W.data;W=W.className===void 0?"":W.className;var V=_.wH(gYe,function(){return l().flowStateEntityKey||""}),f={};
f=_.If("ytFlowBottomBarViewModelFlowBottomBarButtons",(f.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},f));
var r={},R=_.If("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",f,(r.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},r.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},r));
r={};var y=_.If("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",f,(r.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},r.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},r));
f={};f=_.If("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(f.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},f.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},f.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return l().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
f));
W=_.If("ytFlowBottomBarViewModelHost",W);return _.C("yt-flow-bottom-bar-view-model",{class:W},_.C(_.c,{cond:function(){var P;return(P=l())==null?void 0:P.textSection},
then:function(P){return _.C("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.C(_.bH,{text:P}))}}),_.C("div",{class:f},_.C(_.QH,{data:function(){return l().secondaryButton}},{buttonViewModel:function(P){return _.C(_.Nq,{data:P.data,
className:y})}}),_.C(_.QH,{data:function(){return l().primaryButton}},{buttonViewModel:function(P){return _.C(_.Nq,{data:P.data,
className:R,buttonOverrides:function(){var n;return{disabled:!((n=V())==null||!n.primaryButtonDisabled)}}})}})))},"Gg"),"yt-flow-bottom-bar-view-model",{props:{data:_.pA,
className:_.kh}});var Lt5="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),Xl=function(){var W=_.I.apply(this,arguments)||this;W.enableScrollingFix=!0;W.bottomBar=!1;W.hideBottomBar=!1;W.fitContent=!1;return W};
_.v(Xl,_.I);_.t=Xl.prototype;_.t.ready=function(){_.U("enable_pdp_icon_prefetch")&&_.WyL(_.tY().resolve(_.fm),0,Lt5)};
_.t.focus=function(W){this.topBar?_.Ew(this.topBar,W):this.paperDialog.focus(W)};
_.t.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19092_scroller&&(this.JSC$19092_scroller.dialogElement=this.paperDialog,this.JSC$19092_scroller.attached&&typeof this.JSC$19092_scroller.attached==="function"&&this.JSC$19092_scroller.attached())};
_.t.onDataChanged=function(){var W;this.fitContent=!((W=this.data)==null||!W.fitContent);var l;this.bottomBar=!((l=this.data)==null||!l.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.t.onProgressChanged=function(){var W,l,V=((l=(W=this.data)==null?void 0:W.progress)!=null?l:0)*100;this.progressElement.style.width=V+"%"};
_.t.isProgressHidden=function(){var W;return!((W=this.data)==null?0:W.progress)};
_.t.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(W){return _.U("enable_wiz_next_lp2_msof")&&W&&!W.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.rc.Object.defineProperties(Xl.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var W;return _.U("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.k((W=this.data)==null?void 0:W.content,yrw)}}});
Xl.prototype.onProgressChanged=Xl.prototype.onProgressChanged;Xl.prototype.onDataChanged=Xl.prototype.onDataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Xl.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Xl.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Xl.prototype,"enableScrollingFix",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Xl.prototype,"bottomBar",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Xl.prototype,"hideBottomBar",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Xl.prototype,"containsExploreHub",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Xl.prototype,"fitContent",void 0);_.a([_.Aa("#progress"),_.z("design:type",HTMLElement)],Xl.prototype,"progressElement",void 0);
_.a([_.Aa("#scroller"),_.z("design:type",Object)],Xl.prototype,"JSC$19092_scroller",void 0);_.a([_.Aa("ytd-flow-top-bar-renderer"),_.z("design:type",HTMLElement)],Xl.prototype,"topBar",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Xl.prototype,"onDataChanged",null);_.a([_.TS("data.progress"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Xl.prototype,"onProgressChanged",null);
_.a([_.A({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],Xl);
_.Z(Xl,"ytd-flow-step-renderer",function(){if(MC1!==void 0)return MC1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return MC1=W},{mode:1});var y6e=function(W){this.resolveCommand=W;this.steps={}},gG7=function(W,l){l=_.L(l||[]);
for(var V=l.next();!V.done;V=l.next()){V=V.value;var f=Object.values(V)[0],r=void 0;if((r=f)==null?0:r.stepId)W.steps[f.stepId]=V}},CwY=function(W,l){var V,f,r,R,y;
return _.g(function(P){if((V=W.state)==null||!V.currentStepId)return P.return(void 0);f=Pws(W);if(!f)return P.return(nGN(W));if(r=_.k(f,_.Ly1)){var n;((n=r.screenLoggingData)==null?0:n.screenVeType)&&_.Ob(_.Qq(),r.screenLoggingData.screenVeType);((R=r)==null?0:R.onStepStartCommand)&&W.resolveCommand((y=r)==null?void 0:y.onStepStartCommand,{})}if(r&&l){n=r;var B,d,J,D;((B=l.flowLoggingData)==null?0:B.eventNamespace)&&((d=n.flowEventData)==null?0:d.eventType)&&((J=n.flowEventData)==null?0:J.eventMetadata)&&
((D=l.flowLoggingData)==null?0:D.flowType)&&(B=_.X2(l.flowLoggingData.eventNamespace,n.flowEventData.eventType,n.flowEventData.eventMetadata),_.TL(_.wE(),B,l.flowLoggingData.flowType));l.steps&&!l.steps.includes(f)&&l.steps.push(f)}return P.return(f)})};
y6e.prototype.back=function(){var W;(W=this.state)!=null&&W.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
y6e.prototype.handleUpdateFlowCommand=function(W){W.steps&&gG7(this,W.steps);W.entityUpdateCommand&&this.resolveCommand(W.entityUpdateCommand,{});W.flowContinuationCommand&&(W=W.flowContinuationCommand)&&(this.getFlowContinuationCommand=W);this.awaitFlowContinuation&&(this.awaitFlowContinuation(Pws(this)),this.awaitFlowContinuation=void 0)};
y6e.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var nGN=function(W){return _.g(function(l){return W.getFlowContinuationCommand?l.return(new Promise(function(V){W.awaitFlowContinuation=V;W.getFlowContinuationCommand&&W.resolveCommand(W.getFlowContinuationCommand,{flow_state:W.state})})):l.return(Promise.resolve(void 0))})},Pws=function(W){var l;
if((l=W.state)!=null&&l.currentStepId)return W.steps[W.state.currentStepId]};var Tw=function(){var W=_.I.apply(this,arguments)||this;W.flowState=new y6e(function(l,V){V=V===void 0?{}:V;_.mK.instance.resolveCommand(l,{form:{form:V,element:W.hostElement}})});
W.initialState=!0;W.isLoading=!1;W.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"};W.containsTalkToRecs=!1;return W};
_.v(Tw,_.I);_.t=Tw.prototype;_.t.onPopupClosed=function(W){W&&this.hostElement!==W.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.t.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"}}}};
_.t.focus=function(W){var l=this;_.yq(function(){var V=_.GS(l.hostElement).querySelector("ytd-flow-step-renderer");(V==null?0:V.topBar)?V.focus(W):l.topBar&&_.Ew(l.topBar,W)},1)};
_.t.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.t.computeTopBarHidden=function(W){var l;return!((l=_.k(W,_.Ly1))==null||!l.topBarOverride)};
_.t.dataChanged=function(){var W=this,l,V;return _.g(function(f){if(f.nextAddress==1){((l=W.data)==null?0:l.steps)&&gG7(W.flowState,W.data.steps);if((V=W.data)==null?0:V.flowContinuationCommand){var r=W.flowState,R=W.data.flowContinuationCommand;R&&(r.getFlowContinuationCommand=R)}return f.yield(CwY(W.flowState,W.data),2)}W.currentFlowStep=f.yieldResult;_.ju(f)})};
_.t.flowChanged=function(){var W=this,l;return _.g(function(V){if(V.nextAddress==1){if(!W.flow)return V.return();W.flowState.state=W.flow;W.isLoading=!0;return V.yield(CwY(W.flowState,W.data),2)}l=V.yieldResult;if(!l||W.flow.isLoading)return V.return();W.currentFlowStep=l;W.initialState=!1;W.isLoading=!1;W.autofocusAndRefit();W.updateContainsTalkToRecs();_.ju(V)})};
_.t.updateContainsTalkToRecs=function(){var W,l=(W=_.k(this.currentFlowStep,_.Ly1))==null?void 0:W.content;this.containsTalkToRecs=!!l&&!!_.k(l,yrw)};
_.t.autofocusAndRefit=function(){var W=this,l=_.tY().resolve(_.R0(_.Q5)),V=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),f=document.querySelector("yt-report-form-confirmation-page-view-model"),r=document.querySelector("yt-report-form-details-page-view-model"),R=document.querySelector("yt-report-form-reason-select-page-view-model"),y=document.querySelector("yt-contributor-zero-state-view-model"),
P=document.querySelector("yt-structured-context-note-view-model"),n=document.querySelector("yt-note-view-model");(!V&&l&&l.isKeyBoardInUse()||f||!V&&r||!V&&R||y||P||n)&&_.$s(this.hostElement);_.V9(this,function(){_.FN(W.hostElement,"yt-refit")})};
_.t.handleUpdateFlowCommand=function(W){this.data&&(W=_.k(W,so1),W.targetId===this.data.targetId&&(W.flowContinuationCommand&&(this.data.flowContinuationCommand=W.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(W),this.autofocusAndRefit()))};
_.t.handleFlowNextStepCommand=function(W){this.data&&this.flow&&this.flow.key&&(W=_.k(W,RX7),W.targetId===this.data.targetId&&(W=W.stepId||"",this.ytdReduxBehavior.dispatch(_.Nr("flowStateEntity",this.flow.key,{currentStepId:W,stepIdStack:(this.flow.stepIdStack||[]).concat(W)}))))};
_.t.handleFlowPrevStepCommand=function(W){if(this.data&&this.flow&&this.flow.key&&(W=_.k(W,tCw),W.targetId===this.data.targetId)){var l=[].concat(_.QK(this.flow.stepIdStack||[]));l.length>1?(l.pop(),this.ytdReduxBehavior.dispatch(_.Nr("flowStateEntity",this.flow.key,{currentStepId:l[l.length-1],stepIdStack:l}))):W.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(W.onFirstStepCommand)}};
_.t.handleYpcCancelRecurrenceCommand=function(W){if(this.data&&this.flow&&this.flow.key&&(W=_.k(W,crw),W.targetId===this.data.targetId&&W.endpointCommand)){var l=_.k(this.flow,Bv2);l&&_.k(W.endpointCommand,_.Ny$)&&(_.k(W.endpointCommand,_.Ny$).feedbackData=l.surveyFeedback);this.ytComponentBehavior.resolveCommand(W.endpointCommand)}};
_.t.handlePartialUpdateFlowStateEntity=function(W){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.Nr("flowStateEntity",this.flow.key,W,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
Tw.prototype.flowChanged=Tw.prototype.flowChanged;Tw.prototype.dataChanged=Tw.prototype.dataChanged;Tw.prototype.onPopupClosed=Tw.prototype.onPopupClosed;_.a([_.F(_.dx),_.z("design:type",Object)],Tw.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Tw.prototype,"ytComponentBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Tw.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Tw.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Tw.prototype,"initialState",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Tw.prototype,"isLoading",void 0);_.a([_.b(),_.z("design:type",Object)],Tw.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Object)],Tw.prototype,"currentFlowStep",void 0);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Tw.prototype,"onPopupClosed",null);_.a([_.b({selectorArgs:["data.flowStateEntityKey"],selector:gYe}),_.z("design:type",Object)],Tw.prototype,"flow",void 0);_.a([_.Aa("ytd-flow-top-bar-renderer"),_.z("design:type",HTMLElement)],Tw.prototype,"topBar",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],Tw.prototype,"dataChanged",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Tw.prototype,"containsTalkToRecs",void 0);_.a([_.zS("flow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],Tw.prototype,"flowChanged",null);_.a([_.A({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],Tw);
_.c6e=_.GG()(Tw,"ytd-flow-root-renderer",function(){if(Qo4!==void 0)return Qo4;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Qo4=W},{mode:_.bD("kevlar_poly_si_batch_j025")?1:2});var Bcc;var EW=null;_.HI(_.Q(function(W){return _.C("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.C("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.C(_.bH,{text:function(){return W.data().text}}),_.C("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Hg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.pA}});var dc2=_.Q(function(W){var l=W.playerControlsProps;var V=W.isShortsPage;return _.C("yt-bigboard",null,_.C(_.c,{cond:function(){return l().isDragging},
then:function(){return _.C("div",{class:"ytBigboardStoryboardHost"},_.C(_.hO2,{progressBarProps:l,isShortsPage:V}))}}))},"Ig");
dc2.idomCompat=!0;_.wo={ACCOUNT_LABEL:$p("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:$p("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:$p("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:$p("AD_BADGE_HINT"),AD_BADGE_TEXT:$p("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:$p("ALL_CHANNELS_LABEL"),AMBIENT_MODE:$p("AMBIENT_MODE"),AMBIENT_MODE_OFF:$p("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:$p("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:$p("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:$p("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:$p("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:$p("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:$p("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:$p("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:$p("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:$p("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:$p("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:$p("AUTO_ZOOM","Auto zoom"),BACK:$p("BACK"),CANCEL:$p("CANCEL"),CHANNEL_SWITCHER_LABEL:$p("CHANNEL_SWITCHER_LABEL"),CLOSE:$p("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:$p("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:$p("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:$p("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:$p("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:$p("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:$p("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:$p("COMMENT_MODAL_CONTENT"),CONFIRM_OK:$p("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:$p("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:$p("COPIED_TO_CLIPBOARD"),COPY:$p("COPY"),COPY_DEBUG_INFO:$p("COPY_DEBUG_INFO"),COPY_EMBED_CODE:$p("COPY_EMBED_CODE"),
COPY_LINK_LABEL:$p("COPY_LINK_LABEL"),COPY_VIDEO_URL:$p("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:$p("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:$p("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:$p("DELETE_FROM_DOWNLOADS"),DIALOG:$p("DIALOG"),DONE:$p("DONE"),DOWNLOAD:$p("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:$p("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:$p("FLAG_CONFIRM"),FLAG_CONTENT:$p("FLAG_CONTENT"),FLAG_LABEL:$p("FLAG_LABEL"),FLAG_TITLE:$p("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:$p("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:$p("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:$p("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:$p("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:$p("HIDE_SEARCH_FILTERS_LABEL"),HOME:$p("HOME","Home"),INVALID_RESPONSE_RECEIVED:$p("INVALID_RESPONSE_RECEIVED"),LIBRARY:$p("LIBRARY","Library"),LISTENING:$p("LISTENING"),LOADING:$p("LOADING"),LONG_PRESS_MIC_TO_SPEAK:$p("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:$p("LOOP"),MENU_DESKTOP:$p("MENU_DESKTOP"),
MENU_EXIT:$p("MENU_EXIT"),MENU_FEEDBACK:$p("MENU_FEEDBACK"),MENU_HELP:$p("MENU_HELP"),MENU_IMPRESSUM:$p("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:$p("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:$p("MENU_SETTINGS"),MENU_SIGN_IN:$p("MENU_SIGN_IN"),MENU_TITLE:$p("MENU_TITLE"),MENU_YOUR_DATA:$p("MENU_YOUR_DATA"),MORE_INFO:$p("MORE_INFO"),MORE_OPTIONS:$p("MORE_OPTIONS"),MUTE_VOLUME:$p("MUTE_VOLUME"),NEW_PLAYLIST:$p("NEW_PLAYLIST"),NEXT_VIDEO:$p("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:$p("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:$p("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:$p("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:$p("NOT_FOUND_TITLE"),NO_DOWNLOADS:$p("NO_DOWNLOADS"),NO_MIC_INPUT:$p("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:$p("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:$p("OOPS_MESSAGE"),OPEN_APP:$p("OPEN_APP"),OPEN_YOUTUBE:$p("OPEN_YOUTUBE"),PAUSE:$p("PAUSE"),PLAY:$p("PLAY"),PLAYER_CAPTION:$p("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:$p("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:$p("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:$p("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:$p("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:$p("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:$p("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:$p("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:$p("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:$p("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:$p("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:$p("PLAYER_MINIMIZE"),PLAYER_NEXT:$p("PLAYER_NEXT"),PLAYER_PAUSE:$p("PLAYER_PAUSE"),PLAYER_PLAY:$p("PLAYER_PLAY"),
PLAYER_PREVIOUS:$p("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:$p("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:$p("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:$p("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:$p("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:$p("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:$p("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:$p("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:$p("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:$p("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:$p("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:$p("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:$p("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:$p("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:$p("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:$p("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:$p("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:$p("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:$p("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:$p("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:$p("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:$p("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:$p("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:$p("PLAY_ALL"),PLEASE_FIX_ERRORS:$p("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:$p("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:$p("PREVIOUS_VIDEO"),PRIVACY_POLICY:$p("PRIVACY_POLICY"),RELOAD:$p("RELOAD"),REQUIRED_LABEL:$p("REQUIRED_LABEL"),SAVE_PLAYLIST:$p("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:$p("SCRUB_SLIDE_USER_EDU"),SEARCH:$p("SEARCH","Search"),
SEARCH_APPEND_LABEL:$p("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:$p("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:$p("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:$p("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:$p("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:$p("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:$p("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:$p("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:$p("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:$p("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:$p("SEEK_SLIDER"),SETTINGS_LABEL:$p("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:$p("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:$p("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:$p("SHOW_LESS"),SHOW_MORE:$p("SHOW_MORE"),SHOW_PLAYER_CONTROLS:$p("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:$p("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:$p("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:$p("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:$p("SIGN_IN_ON_WEB"),STABLE_VOLUME:$p("STABLE_VOLUME"),STABLE_VOLUME_OFF:$p("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:$p("STABLE_VOLUME_ON"),STATS_FOR_NERDS:$p("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:$p("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:$p("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:$p("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:$p("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:$p("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:$p("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:$p("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:$p("TIMESTAMP_SECONDS"),TOGGLE_OFF:$p("TOGGLE_OFF"),TOGGLE_ON:$p("TOGGLE_ON"),TRENDING:$p("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:$p("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:$p("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:$p("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:$p("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:$p("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:$p("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:$p("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:$p("VIDEO_LINK_LABEL")};var J67=_.Q(function(W){var l=W.playerApi;W=_.WS("button",function(f){_.Gc(f,36843)});
var V=$p("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.C("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.C("button",{el:W,class:"ytPlayerControlsJumpForwardButtonButton",title:V,"aria-label":V,"on:click":_.ip(function(){_.b3(36843);l&&l().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.C("span",null,_.C(_.wN,{icon:"FAST_FORWARD"}))))},"Jg");var Dcc=_.Q(function(W){var l=W.appApi;W=_.WS("button",function(f){_.Gc(f,62946)});
var V=$p("OPEN_IN_MINIPLAYER");return _.C("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.C("button",{el:W,class:"ytMiniplayerButtonButton",title:V,"aria-label":V,"on:click":_.ip(function(){_.b3(62946);var f,r;(r=(f=l()).openInMiniplayer)==null||r.call(f);return!1})},_.C(_.wN,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Kg");var Uc1=_.Q(function(W){var l=W.playerApi;W=_.WS("button",function(R){_.Gc(R,142812)});
var V=_.L(_.J4(!1,void 0,"I3VCyb")),f=V.next().value,r=V.next().value;V=function(){return $p("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(f()?1:2)})};
return _.C("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.C("button",{el:W,class:"ytPlaybackSpeedButtonButton",title:V,"aria-label":V,"on:click":_.ip(function(){_.b3(142812);if(l){var R=l(),y=f();R.setPlaybackRate(y?1:2);r(!f())}return!1})},_.C("span",null,_.C(_.wN,{icon:function(){return f()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Lg");var uoe=_.Q(function(W){var l=W.title;var V=W.ariaLabel;var f=W.icon;var r=W.command;var R=W.veType;W=_.WS("button",function(y){R&&_.Gc(y,R())});
return _.C("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.C("button",{el:W,class:"ytdThumbnailOverlayButtonButton",title:l,"aria-label":V,"on:click":_.ip(function(){R&&_.b3(R());r&&_.tY().resolve(_.s6).resolveCommand(r())})},_.C(_.wN,{icon:f})))},"Mg");var zc="";var k$1=_.Q(function(W){var l=W.playerControlsProps,V=W.onClickFn;W=_.v4(function(){var R=l(),y=-1;R.captionsAvailable&&(y=R.captionsEnabled?1:0);return y},void 0,"WecR8e");
var f=_.v4(function(){var R=l();return R.captionsAvailable?_.wg(R.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.wg("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),r=_.v4(function(){var R=l();
R=R.captionsAvailable?R.captionsEnabled:void 0;return R},void 0,"Q17ly");
return _.C("yt-closed-captions-toggle-button",null,_.C(_.m4e,{captionIconType:W,ariaLabel:f,ariaPressed:r,onClick:function(R){var y=l();if(y.captionsAvailable){var P=y.playerApi;if(P){var n=y.playerApi;if(n){var B=zc;if(B){n=n.getOption("captions","track");var d;zc=(d=n?n.displayName:null)!=null?d:B}else _.FH(n)?(B=_.ft8(n),zc=B.length?(d=CP5(B))?d.displayName:B[0].displayName:""):zc=""}cYH(P);_.U("mweb_disable_set_state_captions_killswitch")&&y.setState({captionsEnabled:!y.captionsEnabled})}}var J,
D;(D=(J=y.appApi).showCaptionsToggleToast)==null||D.call(J,y);V==null||V(R)},
isOverlay:!0}))},"Ng");var vGY=_.Q(function(W){var l=W.data;return _.C("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.C(_.di,{data:function(){return{type:17,text:_.pY8(l().label)}}}))},"Og");var HXZ=_.Q(function(W){var l=_.If("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return W.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return W.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return W.size()==="small"?W.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
W.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.C("animated-seek-arrows",{class:_.If("ytPlayerControlsAnimatedSeekArrowsHost")},_.C("span",{class:l}),_.C("span",{class:l}),_.C("span",{class:l}))},"Pg");
HXZ.idomCompat=!0;var Kts=_.Q(function(){var W=_.wg("PLAYER_SECONDS",{seconds_placeholder:"30"}),l=_.L(_.J4(!1,void 0,"iRJu8c")),V=l.next().value,f=l.next().value,r=_.L(_.J4(!1,void 0,"MPnizf"));l=r.next().value;var R=r.next().value;r={};var y=_.If("jumpForwardOverlayOverlay",(r.jumpForwardOverlayOverlayHidden=l,r));_.mw(function(){var P=null,n=null,B=function(){P!==null&&_.Am().cancelJob(P);n!==null&&_.Am().cancelJob(n);R(!0);f(!0);_.pP(_.Am(),function(){R(!1)});
P=_.pP(_.Am(),function(){R(!0);n=_.pP(_.Am(),function(){f(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",B);_.Xc(function(){window.removeEventListener("jump-forward-clicked",B)})});
return _.C("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.C(_.c,{cond:V,then:function(){return _.C("div",{class:y},_.C(HXZ,{direction:1,size:"large"}),_.C("div",null,W))}}))},"Qg");var Ftw=_.wo.MUTE_VOLUME,G$L=_.wo.UNMUTE_VOLUME,bX2=_.Q(function(W){var l=W.muteIconType;var V=W.onClick;var f=W.useOutlineIcon;var r=W.useDelhiIcons;W=_.WS("button",function(P){_.Gc(P,28662)});
var R=function(){var P=l(),n=f==null?void 0:f(),B=r==null?void 0:r(),d="",J="";switch(P){case -1:case 0:d=n?"VOLUME_OFF":B?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";J=G$L;break;case 1:d=n?"VOLUME_UP_OUTLINE":B?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";J=Ftw;break;case 2:d=n?"VOLUME_DOWN_OUTLINE":B?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";J=Ftw;break;default:_.Yc(P)}return{iconName:d,ariaLabel:J}},y=function(){return R().ariaLabel};
return _.C("ytm-mute-button",{class:"ytmMuteButtonHost"},_.C("button",{el:W,class:"ytmMuteButtonButton",title:y,"aria-label":y,"on:click":_.ip(function(P){_.b3(28662);V==null||V(P);return!1})},_.C("span",null,_.C(_.wN,{icon:function(){return R().iconName}}))))},"Rg");var pje=_.Q(function(W){var l=W.volumeProps;var V=W.onClickFn;var f=W.useOutlineIcon;var r=W.useDelhiIcons;return _.C("yt-mute-toggle-button",null,_.C(bX2,{muteIconType:function(){var R=l();return R.volumeMuted||R.volume===0?0:R.volume>50?1:2},
onClick:function(R){var y=l().playerApi;y&&(y.isMuted()?y.unMute():y.mute(!1));V==null||V(R)},
useOutlineIcon:function(){return!(f==null||!f())},
useDelhiIcons:function(){return!(r==null||!r())}}))},"Sg");
pje.idomCompat=!0;var oG5=_.Q(function(W){var l=W.data;var V=_.WS("ytm-paid-content-overlay-renderer");return _.C("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:V,"on:animationend":_.ip(function(){V.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.C(_.Mq,{command:function(){return l().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.C(_.c,{cond:function(){var f;return(f=l().icon)==null?void 0:f.iconType},
then:function(){return _.C("span",null,_.C(_.wN,{icon:function(){var f;return(f=l().icon)==null?void 0:f.iconType}}))}}),_.C("div",{class:"ytmPaidContentOverlayText"},_.C(_.bH,{text:function(){return l().text}})),_.C(_.c,{cond:function(){return l().navigationEndpoint},
then:function(){return _.C(_.wN,{icon:"CHEVRON_RIGHT"})}})))},"Tg");
oG5.idomCompat=!0;var X27=[].concat(_.QK([{register:function(W){var l=N8e(W),V;(V=W().playerApi)==null||V.addEventListener("onVolumeChange",l);return function(){}}},
{register:function(W){var l=YwH(W);W=W().playerApi;W==null||W.addEventListener("captionschanged",l);W==null||W.addEventListener("captionssettingschanged",l);W==null||W.addEventListener("onCaptionsTrackListChanged",l);return function(){}}},
{register:function(W){if(!_.U("mweb_screenreader_accessible_player"))return function(){};
var l=xt4(W),V=document.querySelector("video");V==null||V.addEventListener("touchend",l);return function(){V==null||V.removeEventListener("touchend",l)}}},
{register:function(W){if(!_.U("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var l=xt4(W),V=document.querySelector("video");V==null||V.addEventListener("focus",l);return function(){V==null||V.removeEventListener("focus",l)}}}]),[{register:function(W){var l=ZRs(W),V;
(V=W().playerApi)==null||V.addEventListener("onStateChange",l);return function(){}}},
{register:function(W){var l=ORY(W),V;(V=W().playerApi)==null||V.addEventListener("onPlaybackRateChange",l);return function(){}}},
{register:function(W){var l=ase(W),V;(V=W().playerApi)==null||V.addEventListener("onVideoDataChange",l);return function(){}}},
{register:function(W){var l=zjc(W),V,f;(V=W())==null||(f=V.playerApi)==null||f.addEventListener("onVideoProgress",l);return function(){}}}]);var jAN=_.Q(function(W){var l=W.data;var V=function(){return _.wg("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+l().playbackRate})};
return _.C(_.c,{cond:function(){return l().playbackRate&&l().playbackRate!==1},
then:function(){return _.C("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.C("div",{class:"ytPlaybackRateOverlayOverlay"},_.C(HXZ,{direction:1,size:"small"}),_.C("div",{class:"ytPlaybackRateOverlayLabel"},V)))}})},"Ug");var I0Y=_.Q(function(W){var l=W.data;return _.C("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.C(_.c,{cond:function(){var V,f=(V=l())==null?void 0:V.playerResponse,r;return f==null?void 0:(r=f.paidContentOverlay)==null?void 0:r.paidContentOverlayRenderer},
then:function(V){return _.C(oG5,{data:V})}}))},"Wg"),iXN=_.Q(function(W){var l=W.props;
var V=W.data;var f=W.options;var r=function(){var B,d,J,D;return(B=V())==null?void 0:(d=B.playerResponse)==null?void 0:(J=d.playerConfig)==null?void 0:(D=J.inlinePlaybackConfig)==null?void 0:D.showAudioControls},R=function(){var B,d;
if(r()&&((B=f())==null?void 0:(d=B.additionalButton)==null?void 0:d.button)!==void 0){var J,D,u;B=(J=V())==null?void 0:(D=J.playerApi)==null?void 0:(u=D.getSize())==null?void 0:u.height;if(!(B===void 0||B<180)){var H,p;return(H=f())==null?void 0:(p=H.additionalButton)==null?void 0:p.button}}},y=function(){var B,d;
return(B=f())==null?void 0:(d=B.additionalButton)==null?void 0:d.thumbnailOverlayButtonRenderers},P=function(){var B,d;
return(B=f())==null?void 0:(d=B.additionalButton)==null?void 0:d.thumbnailOverlayButtonViewModels},n=function(){var B=[_.C(pje,{volumeProps:l}),
_.C(k$1,{playerControlsProps:l})];R()===1&&B.push(_.C(J67,{playerApi:function(){return l().playerApi}}));
R()===2&&B.push(_.C(Dcc,{appApi:function(){return l().appApi}}));
R()===3&&B.push(_.C(Uc1,{playerApi:function(){return l().playerApi}}));
var d=y();if(R()===4&&d){d=_.L(d);for(var J=d.next(),D={};!J.done;D={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$50:void 0,command$jscomp$588:void 0},J=d.next()){J=J.value;D.tooltip$jscomp$2=J.tooltip;var u=void 0,H=void 0;D.ariaLabel$jscomp$20=((u=J.accessibility)==null?void 0:(H=u.accessibilityData)==null?void 0:H.label)||D.tooltip$jscomp$2;u=void 0;D.icon$jscomp$50=(u=J.icon)==null?void 0:u.iconType;D.command$jscomp$588=J.command;D.tooltip$jscomp$2&&D.ariaLabel$jscomp$20&&D.icon$jscomp$50&&
B.push(_.C(uoe,{title:function(p){return function(){return p.tooltip$jscomp$2}}(D),
ariaLabel:function(p){return function(){return p.ariaLabel$jscomp$20}}(D),
icon:function(p){return function(){return p.icon$jscomp$50}}(D),
command:function(p){return function(){return p.command$jscomp$588}}(D)}))}}d=P();
if(R()===4&&d)for(d=_.L(d),J=d.next(),D={};!J.done;D={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$51:void 0,command$jscomp$589:void 0},J=d.next())J=J.value,D.tooltip$jscomp$3=J.title,D.ariaLabel$jscomp$21=J.accessibilityText||D.tooltip$jscomp$3,D.icon$jscomp$51=J.iconName,D.command$jscomp$589=_.fP(J.onTap),D.tooltip$jscomp$3&&D.ariaLabel$jscomp$21&&D.icon$jscomp$51&&B.push(_.C(uoe,{title:function(p){return function(){return p.tooltip$jscomp$3}}(D),
ariaLabel:function(p){return function(){return p.ariaLabel$jscomp$21}}(D),
icon:function(p){return function(){return p.icon$jscomp$51}}(D),
command:function(p){return function(){return p.command$jscomp$589}}(D)}));
return B};
return _.C(_.c,{cond:r,then:function(){return _.C("div",{class:"ytInlinePlayerControlsTopRightControls"},_.C(_.G3,{each:n},function(B){return _.C("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.C("div",{class:"ytInlinePlayerControlsButtonIcon"},B))}))}})},"Xg"),Tc1=_.Q(function(W){var l=W.props;
var V=W.data;var f=W.options;W={};W=_.If("ytInlinePlayerControlsBottomRightControls",(W.ytInlinePlayerControlsBottomRightControlsHidden=function(){var r;return qw2(V(),f())&&((r=f())==null?void 0:r.insetProgressBar)&&(l().isHovering||l().isDragging)},W));
return _.C("div",{class:W},_.C(mc7,{data:V}),_.C(_.c,{cond:function(){var r;return!((r=f())==null?0:r.hideTimeDisplay)},
then:function(){return _.C(Xjs,{props:l,data:V})}}))},"Yg"),mc7=_.Q(function(W){var l=W.data;
return _.C(_.QH,{data:function(){var V;return Is7((V=l())==null?void 0:V.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:vGY})},"Zg"),Xjs=_.Q(function(W){var l=W.props;
var V=W.data;return _.C(_.c,{cond:function(){return l().isLive},
then:function(){return _.C(wj4,null)},
else:function(){return _.C(A6L,{props:l,data:V})}})},"$g"),A6L=_.Q(function(W){var l=W.props;
var V=W.data;var f=_.v4(function(){var r;return mts((r=V())==null?void 0:r.thumbnailOverlays)},void 0,"tLs0gd");
return _.C("div",{class:_.If("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.wo.PLAYER_TIME_ELAPSED+" "+_.n8z(l().playedTime)}},_.C(_.di,{data:function(){var r=_.n8z(l().videoDuration-l().playedTime);
return Object.assign({},{type:17,text:r},f())}}))},"ah"),wj4=_.Q(function(){var W=_.If("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.C("div",{class:W},_.C(_.di,{data:{type:18,text:_.wo.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"bh"),QAY=_.Q(function(W){var l=W.props;
var V=W.data;var f=W.options;return _.C(_.Vm2,{progressBarProps:l,config:function(){var r,R=_.k((r=V())==null?void 0:r.multiMarkersPlayerBar,_.dDa),y;r=((y=f())==null?0:y.insetProgressBar)?2:1;var P;y=(P=f())==null?void 0:P.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:r,chapterData:R,isInlinePlayback:!0,doSeekOnClick:y,playheadDotBehavior:y?1:0}}})},"ch");_.HI(_.Q(function(W){var l=W.data;var V=W.appApi;var f=W.options;var r=MS4(l,ej5(V));W={};V={};return _.C("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.C("div",{class:_.If("ytInlinePlayerControlsDarkenedOverlay",(W.ytInlinePlayerControlsDarkenedOverlayShow=function(){return r().isHovering},W))}),_.C(Kts,null),_.C(jAN,{data:r}),_.C(I0Y,{data:l}),_.C(dc2,{playerControlsProps:r,
isShortsPage:!1}),_.C("div",{class:_.If((V.ytInlinePlayerControlsControlsHidden=function(){return r().isDragging},V))},_.C(iXN,{props:r,
data:l,options:f}),_.C(Tc1,{props:r,data:l,options:f})),_.C(_.c,{cond:function(){return qw2(l(),f())},
then:function(){return _.C(QAY,{props:r,data:l,options:f})}}))},"Vg"),"yt-inline-player-controls",{props:{data:_.pA,
appApi:_.kh,options:_.pA}});var AK=function(){var W=_.I.apply(this,arguments)||this;W.opts=null;W.playerControlsData=null;W.playerControlsAppApi={openInMiniplayer:function(){W.openInMiniplayer()}};
W.playerControlsOptions={};W.noAnimation=!1;W.playbackIntentTriggered=!1;W.positionData=null;W.hidden=!0;W.active=!1;W.playing=!1;W.videoPreviewDataIndex=0;W.JSC$19148_playerPromise=null;W.player=null;W.enableAudioControls=!1;W.hasBeenUnmuted=!1;W.captionsHaveBeenTurnedOff=!1;W.JSC$19148_playerEvents=new Map;W.videoPreviewFetchRequest=null;W.scheduledPreviewEndJobId=null;W.JSC$19148_preventProgressSaveTimer=null;W.watchEndpointStartTimeUpdaterInterval=null;W.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};W.windowOnBlurFn=function(){W.deactivate()};
return W};
_.v(AK,_.I);_.t=AK.prototype;
_.t.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.t.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19148_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19148_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19148_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19148_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.mz(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.mz(this,this.onScroll))};
_.t.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.mz(this,this.onScroll))};
_.t.onPageTypeChange=function(){this.deactivate()};
_.t.onWindowResized=function(){this.deactivate()};
_.t.onCaptionsChanged=function(W){W=!!W.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!W);this.setCaptionSize()};
_.t.setCaptionSize=function(){var W;if(this.active&&!this.captionsHaveBeenTurnedOff&&((W=this.player)==null?0:W.getCaptionWindowContainerId())){var l;(l=this.player)==null||l.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.t.currentPageAllowed=function(){return!this.isWatchPage};
_.t.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var W=this.positionData,l=W.initialTopPosition,V=W.initialHorizontalPosition;_.I1(this.hostElement,{"--ytd-video-preview-translate-left":W.finalHorizontalPosition-V+"px","--ytd-video-preview-translate-top":W.finalTopPosition-l+"px","--ytd-video-preview-original-top-position":l+"px","--ytd-video-preview-original-horizontal-position":V+"px",
"--ytd-video-preview-initial-scale":"scale("+W.initialScale+")","--ytd-video-preview-width":W.videoPreviewWidth+"px","--ytd-video-preview-height":W.videoPreviewHeight+"px"});return!0};
_.t.handleOpenVideoPreviewAction=function(W){var l=this,V;return _.g(function(f){if(!l.currentPageAllowed())return f.return(0);l.opts=W;return(V=l.alignVideoPreviewForAnimation(W.thumbnail))?f.return(l.activate()):f.return(0)})};
_.t.onMouseLeave=function(W){this.shouldDeactivateOnMouseLeave(W)&&this.deactivate()};
_.t.onScroll=function(){var W,l;((W=this.opts)==null?0:W.isAutoplay)&&((l=this.opts)==null?0:l.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.t.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.w8.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.t.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.t.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",AK.JSC$19147_DEFAULT_CLICK_LOCATION_BEHAVIOR,AK.JSC$19147_CLICK_LOCATION_ID_MAP)};
_.t.shouldDeactivateOnMouseLeave=function(W){W=W.relatedTarget;if(!W)return!0;var l;return(l=this.opts)!=null&&l.mediaRenderer?!_.bm(this.opts.mediaRenderer).contains(W):!0};
_.t.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.t.onPlaybackStart=function(){var W=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$19148_preventProgressSaveTimer=
_.pP(_.w8,function(){W.resetPreventProgressSaveTimer()},1E4);
var l;if((l=this.opts)==null?0:l.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.pP(_.w8,function(){W.hasMultipleVideoPreviews()?W.startPlaybackForNextVideo():W.deactivate()},this.opts.videoPreviewDurationMs);
var V;this.player.setGlobalCrop(((V=this.opts)==null?0:V.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.t.getRoundedCornersSize=function(){var W;if((W=this.opts)==null?0:W.roundedCornersSize){var l;return(l=this.opts)==null?void 0:l.roundedCornersSize}var V;if((V=this.opts)==null?0:V.enableRounding){var f;if(((f=this.opts)==null?void 0:f.thumbnailSize)==="small")return 1;var r;if(((r=this.opts)==null?void 0:r.thumbnailSize)==="medium")return 2;var R;if(((R=this.opts)==null?void 0:R.thumbnailSize)==="large")return 3}return _.U("web_imp_inset_progress_bar")?3:0};
_.t.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.t.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.t.onMediaContainerClick=function(W){this.isShortcutClick(W)||(this.navigateToWatch(W),W.preventDefault(),W.stopPropagation())};
_.t.activate=function(){var W=this,l,V,f,r,R,y,P,n,B;return _.g(function(d){switch(d.nextAddress){case 1:if(!W.currentPageAllowed())return d.return(0);V=(l=W.videoPreviewData)==null?void 0:l.inlinePlaybackEndpoint;f=_.ty.instance;if(!V||!f)return d.return(0);W.playbackIntentTriggered=!0;((r=W.opts)==null?0:r.mediaRenderer)&&((R=W.opts)==null||!R.isAutoplay)&&os1(W.opts.mediaRenderer,function(){W.deactivate()});
_.V9(W,function(){W.revealPreviewUi()});
y={};_.U("enable_unknown_lact_fix_on_html5")&&(_.tY().resolve(_.OZ),y.lact=_.sL());W.videoPreviewFetchRequest=HR7(f,W.getInlinePlaybackRequestData(W.videoPreviewData),y);_.HG(d,2);return d.yield(W.videoPreviewFetchRequest,4);case 4:P=d.yieldResult;if(((n=P)==null?void 0:(B=n.playabilityStatus)==null?void 0:B.status)==="OK")return d.return(W.handlePlayerResponse(P));throw Error("Yj");case 2:_.pc(d),W.deactivate();case 3:return d.return(1)}})};
_.t.getInlinePlaybackRequestData=function(W){var l,V=_.U("web_imp_player_mute_params")?((l=this.opts)==null?void 0:l.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:W.inlinePlaybackEndpoint,startPlaybackInMutedState:V}};
_.t.handlePlayerResponse=function(W){var l=this,V,f,r,R,y,P,n,B,d,J;return _.g(function(D){if(D.nextAddress==1){V=l.getInlinePlaybackVideoId();if(!(((f=W)==null?0:(r=f.videoDetails)==null?0:r.videoId)&&l.currentPageAllowed()&&l.playbackIntentTriggered&&l.opts&&V))return l.deactivate(),D.return(0);if(W.videoDetails.videoId!==V)return D.return(0);l.enableAudioControls=!!((R=W.playerConfig)==null?0:(y=R.inlinePlaybackConfig)==null?0:y.showAudioControls);W.trackingParams=l.getInlinePlaybackTrackingParams();
if(!l.inlinePlayer)return D.return(0);P={};if(B=_.k((n=l.videoPreviewData)==null?void 0:n.inlinePlaybackEndpoint,_.Bh))P.watch_endpoint=B;if(l.videoPreviewData){var u,H=(u=_.k(l.videoPreviewData.inlinePlaybackEndpoint,_.Bh))==null?void 0:u.startTimeSeconds;H!==void 0&&(W.playerConfig||(W.playerConfig={}),W.playerConfig.playbackStartConfig||(W.playerConfig.playbackStartConfig={}),W.playerConfig.playbackStartConfig.startPosition||(W.playerConfig.playbackStartConfig.startPosition={}),W.playerConfig.playbackStartConfig.startSeconds=
H,W.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(H*1E3))}l.inlinePlayer.loadVideoWithPlayerResponse(W,P);if(l.JSC$19148_playerPromise)return D.jumpTo(2);l.JSC$19148_playerPromise=l.inlinePlayer.getPlayerPromise();return D.yield(l.JSC$19148_playerPromise,3)}D.nextAddress!=2&&(d=D.yieldResult,d.setInlinePreview(!0),d.setSizeStyle(!1,!0),l.ytPlayerListenerBehavior.listenToPlayerEvents(d,l.JSC$19148_playerEvents),l.player=d,_.FN(l.hostElement,"player-api-ready"));((J=l.opts)==
null?0:J.showPlayerControls)&&l.videoPreviewData&&l.player&&(l.playerControlsData={playerResponse:W,isInlinePlayback:!0,thumbnailOverlays:l.videoPreviewData.thumbnailOverlays,playerApi:l.player},l.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!l.unroundCornersForPlayback,additionalButton:l.getAdditionalButtonType(l.videoPreviewData.thumbnailOverlays)});return D.return(2)})};
_.t.revealPreviewUi=function(){var W=this;this.playbackIntentTriggered&&_.WJj(this,function(){W.hasThumbnailPositionChangedSinceTriggered()||(W.updateActiveState(!0),W.noAnimation=!1)})};
_.t.hasThumbnailPositionChangedSinceTriggered=function(){var W=this.positionData,l=this.getThumbnailPositionData();return(W==null?void 0:W.initialTopPosition)!==(l==null?void 0:l.initialTopPosition)||(W==null?void 0:W.initialHorizontalPosition)!==(l==null?void 0:l.initialHorizontalPosition)};
_.t.getThumbnailPositionData=function(){var W,l;if((l=this.opts)==null||!l.thumbnail)return null;l=this.opts.thumbnail;var V=((W=this.opts)==null?0:W.cropPlayerToFillThumbnailHorizontally)?!1:!0;var f=l.getBoundingClientRect();W=f.width;l=f.height;var r=f.top+window.scrollY;f=f.left+window.scrollX;var R=V?Math.ceil(W):W;V=V?Math.ceil(l):l;var y=W/R;W={initialScale:y,initialTopPosition:r-12*y,finalTopPosition:r-12-(V-l)/2,initialHorizontalPosition:f-(12+(R-W)/2),finalHorizontalPosition:f-12-(R-W)/
2,videoPreviewWidth:R,videoPreviewHeight:V};return W};
_.t.updateActiveState=function(W){this.active=W;this.ytdReduxBehavior.dispatch(_.GT({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:W}))};
_.t.stopPlayer=function(W){W=W.resetWatchEndpointStartTime===void 0?!1:W.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(W)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.w8.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.t.deactivate=function(W){W=W===void 0?{}:W;W=W.resetWatchEndpointStartTime===void 0?!1:W.resetWatchEndpointStartTime;EW&&(EW.disconnect(),EW=null);this.stopPlayer({resetWatchEndpointStartTime:W});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.t.isValidThumbnailOverlayButton=function(W,l){W=W.thumbnailOverlayButtonRenderer;var V;return!!W&&!!W.tooltip&&!((V=W.icon)==null||!V.iconType)&&l.includes(W.icon.iconType)};
_.t.isValidThumbnailOverlayButtonViewModel=function(W,l){var V;W=_.k((V=W.thumbnailOverlayButtonViewModel)==null?void 0:V.overlayButton,_.JJ);return!!W&&!!W.title&&!!W.iconName&&l.includes(W.iconName)};
_.t.getAdditionalButtonType=function(W){var l=this;if(_.U("web_imp_fastforward_button"))return{button:1};if(_.U("web_imp_miniplayer_button"))return{button:2};if(_.U("web_imp_playback_speed_button"))return{button:3};var V=["BOX_STACK_3"],f=(W||[]).filter(function(R){return l.isValidThumbnailOverlayButton(R,V)}).map(function(R){return R.thumbnailOverlayButtonRenderer});
if(f.length)return{button:4,thumbnailOverlayButtonRenderers:f};var r=["BOX_STACK_3"];W=(W||[]).filter(function(R){return l.isValidThumbnailOverlayButtonViewModel(R,r)}).map(function(R){return _.k(R.thumbnailOverlayButtonViewModel.overlayButton,_.JJ)});
if(W.length)return{button:4,thumbnailOverlayButtonViewModels:W}};
_.t.allowCaptions=function(){var W;return!((W=this.opts)==null?0:W.forceCaptionsOff)};
_.t.allowUnmuting=function(){var W;return this.enableAudioControls&&!((W=this.opts)==null?0:W.forceMutedVolume)};
_.t.beginStartTimeUpdater=function(){var W=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.BA(function(){W.updateWatchEndpointStartTime()},1E3)};
_.t.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.t.resetPreventProgressSaveTimer=function(){this.JSC$19148_preventProgressSaveTimer!==null&&(_.w8.cancelJob(this.JSC$19148_preventProgressSaveTimer),this.JSC$19148_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.t.updateWatchEndpointStartTime=function(W){var l=this.videoPreviewData;if(this.player&&l!=null&&l.inlinePlaybackEndpoint&&!this.JSC$19148_preventProgressSaveTimer){W=W?0:Math.floor(this.player.getCurrentTime());var V=_.k(l.navigationEndpoint,_.Bh);V&&(V.startTimeSeconds=W);if(l=_.k(l.inlinePlaybackEndpoint,_.Bh))l.startTimeSeconds=W}};
_.t.isShortcutClick=function(W){return!!W&&(W.ctrlKey||W.shiftKey||W.metaKey)};
_.t.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.t.openInMiniplayer=function(){var W=this,l,V;return _.g(function(f){if(f.nextAddress==1){V=(l=W.videoPreviewData)==null?void 0:l.navigationEndpoint;if(!V)return f.return();_.hJ().lockupActivation=!0;return f.yield(_.oy9(_.tY().resolve(_.Sl),V),2)}_.hJ().userActivation=!0;_.ju(f)})};
_.t.navigateToWatch=function(W){var l,V=(l=this.videoPreviewData)==null?void 0:l.navigationEndpoint;if(V){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(V,W,!0);else{var f;_.U("web_thumbnail_to_watch_transition")&&((f=this.opts)==null?0:f.thumbnail)&&_.G9M(_.tY().resolve(_.$U),this.opts.thumbnail);_.FN(this.hostElement,"yt-navigate",{endpoint:V})}this.deactivate()}};
_.t.getInlinePlaybackVideoId=function(){var W,l;return(l=_.k((W=this.videoPreviewData)==null?void 0:W.inlinePlaybackEndpoint,_.Bh))==null?void 0:l.videoId};
_.t.getInlinePlaybackTrackingParams=function(){var W,l;return(W=this.videoPreviewData)==null?void 0:(l=W.inlinePlaybackEndpoint)==null?void 0:l.clickTrackingParams};
_.t.hasMultipleVideoPreviews=function(){var W;return!!(((W=this.opts)==null?0:W.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.t.startPlaybackForNextVideo=function(){var W;(W=this.opts)!=null&&W.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())};
_.rc.Object.defineProperties(AK.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.opts)==null?0:W.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.opts)==null||!W.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 W;if(Array.isArray((W=this.opts)==null?void 0:W.videoPreviewData)){var l;return(l=this.opts)==null?void 0:l.videoPreviewData[this.videoPreviewDataIndex]}var V;return(V=this.opts)==null?void 0:V.videoPreviewData}}});
AK.prototype.onIsAdsVideoChange=AK.prototype.onIsAdsVideoChange;AK.prototype.onInlinePreviewIsEnabledChange=AK.prototype.onInlinePreviewIsEnabledChange;AK.prototype.optsChanged=AK.prototype.optsChanged;AK.prototype.onMouseLeave=AK.prototype.onMouseLeave;AK.JSC$19147_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);AK.JSC$19147_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"}];
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],AK.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],AK.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.by.YtPlayerListenerBehavior),_.z("design:type",_.pZ)],AK.prototype,"ytPlayerListenerBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],AK.prototype,"componentBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],AK.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.wx.YtSparklesClickLocationBehavior),_.z("design:type",Object)],AK.prototype,"ytSparklesClickLocationBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],AK.prototype,"opts",void 0);_.a([_.b(),_.z("design:type",Object)],AK.prototype,"playerControlsData",void 0);
_.a([_.b(),_.z("design:type",Object)],AK.prototype,"playerControlsAppApi",void 0);_.a([_.b(),_.z("design:type",Object)],AK.prototype,"playerControlsOptions",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],AK.prototype,"noAnimation",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],AK.prototype,"hidden",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],AK.prototype,"active",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],AK.prototype,"playing",void 0);_.a([_.b({selector:_.Azj}),_.z("design:type",Boolean)],AK.prototype,"inlinePreviewIsEnabled",void 0);_.a([_.b(),_.z("design:type",String)],AK.prototype,"pagePath",void 0);_.a([_.b({selector:_.X3j}),_.z("design:type",Boolean)],AK.prototype,"isWatchPage",void 0);_.a([_.G("videoPreviewData"),_.z("design:type",Object),_.z("design:paramtypes",[])],AK.prototype,"thumbnailData",null);
_.a([_.G("opts","active"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],AK.prototype,"hidePlayerControls",null);_.a([_.G("opts"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],AK.prototype,"isAdsVideo",null);_.a([_.G("opts"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],AK.prototype,"roundedCornersSmall",null);
_.a([_.G("opts"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],AK.prototype,"roundedCornersMedium",null);_.a([_.G("opts"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],AK.prototype,"roundedCornersLarge",null);_.a([_.G("opts"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],AK.prototype,"unroundCornersForPlayback",null);
_.a([_.G("opts","videoPreviewDataIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],AK.prototype,"videoPreviewData",null);_.a([_.b(),_.z("design:type",Object)],AK.prototype,"videoPreviewDataIndex",void 0);_.a([_.Aa("#inline-player"),_.z("design:type",Object)],AK.prototype,"inlinePlayer",void 0);_.a([_.XI("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[MouseEvent]),_.z("design:returntype")],AK.prototype,"onMouseLeave",null);
_.a([_.zS("opts"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],AK.prototype,"optsChanged",null);_.a([_.zS("inlinePreviewIsEnabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],AK.prototype,"onInlinePreviewIsEnabledChange",null);_.a([_.TS("isAdsVideo"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],AK.prototype,"onIsAdsVideoChange",null);
_.a([_.A({is:"ytd-video-preview",disableElementRegistration:!0})],AK);
_.Z(AK,"ytd-video-preview",function(){if(Bcc!==void 0)return Bcc;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Bcc=W},{mode:2});
}catch(e){_._DumpException(e)}
try{
var w8v,Axe,QYy;w8v=function(W){return _.U("kevlar_watch_cinematics_invisible")||W.fullscreen&&_.U("kevlar_watch_cinematics_invisible_in_fullscreen")||W.theater&&!W.fullscreen&&_.U("kevlar_watch_cinematics_invisible_in_theater")};
Axe=function(){var W=document.createElement("canvas"),l=W.getContext("2d");if(!l)throw Error("Co");_.VX(W,{position:"absolute",width:"100%",height:"100%"});return{element:W,context:l}};
QYy=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.U("kevlar_watch_cinematics_css_blur")};
_.Mv7=function(W,l,V){return Math.abs(W-l)<=(V||1E-6)};
_.Zq7=function(W,l){return W==l?!0:W&&l?W.width==l.width&&W.height==l.height:!1};_.Oq7=new _.uC("notificationActionRenderer");var a4P=function(W){var l=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.mg;this.element.addEventListener("load",function(){l.loaded=!0;l.resolver.resolve(l.element)});
this.element.addEventListener("error",function(){l.failed=!0});
this.element.src=W};var zJI=function(W,l){this.image=W;this.frame=l};
zJI.prototype.drawToCanvas=function(W,l){var V=this.frame.width/this.frame.columns,f=this.frame.height/this.frame.rows,r=l.offsetX,R=l.offsetY;w8v(l)?(W.fillStyle=l.fullscreen?"#000":"#0f0f0f",W.fillRect(r,R,(l==null?void 0:l.width)||V,(l==null?void 0:l.height)||f)):W.drawImage(this.image,this.frame.column*V,this.frame.row*f,V,f,r,R,(l==null?void 0:l.width)||V,(l==null?void 0:l.height)||f)};
var NSy=function(W){this.color=W};
NSy.prototype.drawToCanvas=function(W,l){var V=l.offsetX,f=l.offsetY,r=l.width,R=l.height;W.fillStyle=w8v(l)?l.fullscreen?"#000":"#0f0f0f":this.color;W.fillRect(V,f,r,R)};var k3=function(W,l){_.aE.call(this);this.playerApi=l;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.p5(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();YzI(this,W);xg$(this);this.update()};
_.v(k3,_.aE);k3.prototype.addEventListeners=function(){var W=this,l=function(){W.update()},V=function(r){W.paused||(r.type==="newdata"&&(W.mosaics.clear(),eJX(W),v1(W)),xg$(W),W.update())},f=function(){W.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",l);this.playerApi.addEventListener("onVideoDataChange",V);this.playerApi.addEventListener("onStateChange",f);this.addOnDisposeCallback(function(){W.playerApi.removeEventListener("onVideoProgress",l);W.playerApi.removeEventListener("onVideoDataChange",V);W.playerApi.removeEventListener("onStateChange",f)})};
var YzI=function(W,l){W.cinematicContainerRenderer!==l&&(W.cinematicContainerRenderer=l,eJX(W),v1(W),W.colorStoreUpdateJobId=_.w8.addLowPriorityJob(function(){var V;if((V=W.cinematicContainerRenderer.colorStore)!=null&&V.sampledColors){V=Infinity;for(var f=_.L(W.cinematicContainerRenderer.colorStore.sampledColors),r=f.next();!r.done;r=f.next()){r=r.value;var R=Number(r.key);R!==0&&R<V&&(V=R);R=_.sD(r.value);W.colorStore.set(r.key,R)}W.colorStoreTimeInterval=V}}))},eJX=function(W){W.colorStoreUpdateJobId&&
(_.w8.cancelJob(W.colorStoreUpdateJobId),W.colorStoreUpdateJobId=void 0);
W.colorStore.clear();W.currentStoryboardColor=void 0},qzX=function(W,l){var V;
return(V=W.getStoryboardFrame(l))==null?void 0:V.url};
k3.prototype.onPlayerStateChange=function(){this.update()};
k3.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var xg$=function(W){var l=W.getStoryboardFrame(0);l&&(l=new _.p5(l.width/l.columns,l.height/l.rows),_.Zq7(W.currentStoryboardSize,l)||(W.currentStoryboardSize=l,W.publish("STORYBOARD_SIZE_CHANGED",W.currentStoryboardSize)))},hJM=function(W,l){W.currentStoryboardIndex=l;
W.pendingStoryboardIndex=NaN;l=W.getStoryboardFrame(W.currentStoryboardIndex);W.currentStoryboard=new zJI(W.mosaics.get(l.url).element,l);W.publish("STORYBOARD_CHANGED",W.currentStoryboard);W.lastUpdateTime=(0,_.tv)()};
k3.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var v1=function(W){W.currentStoryboardIndex=NaN;W.pendingStoryboardIndex=NaN;W.currentStoryboard&&(W.currentStoryboard=void 0,W.publish("STORYBOARD_CHANGED",void 0));W.lastUpdateTime=NaN};
k3.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)v1(this);else{var W=this.playerApi.getPlayerState(1);if(W===-1||W===5||W===0)v1(this);else if(isNaN(this.lastUpdateTime)||!((0,_.tv)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(W=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){W=""+Math.round(W*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var l=this.colorStore.get(W);l?l!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=l,this.currentStoryboard=new NSy(l),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.tv)()):(_.Qe(new _.bP("Could not find color for timestamp: "+W,this.cinematicContainerRenderer)),v1(this))}else v1(this);else Szy(this,W)}};
var Szy=function(W,l){var V=W.getStoryboardFrameIndex(l);if(V!==W.currentStoryboardIndex&&V!==W.pendingStoryboardIndex){l=qzX(W,V);var f=W.mosaics.get(l);f?f.loaded&&hJM(W,V):(W.pendingStoryboardIndex=V,V=new a4P(l),W.mosaics.set(l,V),V.resolver.promise.then(function(){if(!W.isDisposed()&&!W.paused&&!isNaN(W.pendingStoryboardIndex)){var r=qzX(W,W.pendingStoryboardIndex);if(r){var R;(R=W.mosaics.get(r))!=null&&R.loaded&&hJM(W,W.pendingStoryboardIndex)}else v1(W)}}))}};
k3.prototype.getStoryboardFrameIndex=function(W){var l=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(W,l)};
k3.prototype.getStoryboardFrame=function(W){var l=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,V,f;return((f=(V=this.playerApi).getStoryboardFrame)==null?void 0:f.call(V,W,l))||null};
k3.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var Ko=function(W,l,V,f){f=f===void 0?!1:f;_.iI.call(this);this.cinematicContainerRenderer=l;this.playerApi=V;this.theater=this.fullscreen=!1;var r;this.ambientLightThemeEnabled=!f&&!!(l==null?0:(r=l.config)==null?0:r.enableInLightTheme);this.ambientFullscreenEnabled=f&&_.U("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=f&&_.U("web_cinematic_theater_mode");this.container=document.createElement("div");W.appendChild(this.container);var R;if(_.U("web_cinematic_theater_mode")||_.U("web_cinematic_fullscreen")||
(l==null?0:(R=l.config)==null?0:R.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);EzO(this);W=this.ambientV2Container||this.container;this.backCanvas=Axe();this.frontCanvas=Axe();W.appendChild(this.backCanvas.element);W.appendChild(this.frontCanvas.element);this.storyboardManager=new k3(l,this.playerApi);_.vt(this,this.storyboardManager);this.addEventListeners();$gv(this)?WkM(this,100+H1(this)*3*2,100+H1(this)*3*2):l$e(this);
VLy(this,this.storyboardManager.currentStoryboard)};
_.v(Ko,_.iI);var EzO=function(W){W.ambientV2Container?f$a(W):(_.VX(W.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+rZX(W)+", "+RIy(W)+")"}),QYy()&&_.VX(W.container,"filter","blur("+_.yS("cinematic_watch_css_filter_blur_strength",40)+"px)"))},f$a=function(W){if(W.ambientV2Container){var l=W.playerApi.getVideoAspectRatio();
_.VX(W.container,{"aspect-ratio":""+l,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.VX(W.ambientV2Container,{"aspect-ratio":""+l,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+rZX(W)+", "+RIy(W)+")"});QYy()&&_.VX(W.ambientV2Container,"filter","blur("+_.yS("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
Ko.prototype.setFullscreen=function(W,l){this.fullscreen=W;this.theater=!!l;EzO(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),W=this.storyboardManager.currentStoryboard,tL7(this),W&&sXP(this,W)};
Ko.prototype.addEventListeners=function(){var W=this,l=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(r){VLy(W,r)}),V=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){l$e(W)});
this.addOnDisposeCallback(function(){W.storyboardManager.unsubscribeByKey(l);W.storyboardManager.unsubscribeByKey(V)});
if(this.ambientV2Container){var f=function(){f$a(W)};
this.playerApi.addEventListener("onVideoDataChange",f);this.addOnDisposeCallback(function(){W.playerApi.removeEventListener("onVideoDataChange",f)})}};
var l$e=function(W){if(!$gv(W)){var l=W.storyboardManager.currentStoryboardSize;isNaN(l.width)||isNaN(l.height)||WkM(W,Number(l.width)+H1(W)*3*2,Number(l.height)+H1(W)*3*2)}},WkM=function(W,l,V){W.backCanvas.element.width=l;
W.backCanvas.element.height=V;W.frontCanvas.element.width=l;W.frontCanvas.element.height=V},$gv=function(W){return W.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},VLy=function(W,l,V){V=V===void 0?!1:V;
var f=W.frontCanvas.element.getAnimations()[0];f?(f.pause(),W.backCanvas.context.globalAlpha=Number(getComputedStyle(W.frontCanvas.element).opacity),W.frontCanvas.element.style.opacity="0",f.finish()):W.backCanvas.context.globalAlpha=1;W.backCanvas.context.drawImage(W.frontCanvas.element,0,0,W.backCanvas.element.width,W.backCanvas.element.height);tL7(W);l&&sXP(W,l);l=l?W.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.yS("cinematic_watch_fade_out_duration",500);f=_.yS("cinematic_watch_transition_frame_rate")/
1E3;var r={};f&&(r={easing:"steps("+Math.round(l*f)+")"});(V===void 0?0:V)||W.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:l,iterations:1},r));W.frontCanvas.element.style.opacity="1"},tL7=function(W){var l=W.ambientLightThemeEnabled||W.ambientTheaterModeEnabled,V=W.ambientLightThemeEnabled||W.ambientFullscreenEnabled;
W.frontCanvas.context.fillStyle=W.theater&&l||W.fullscreen&&V?"#000":"#0f0f0f";QYy()||(W.frontCanvas.context.filter="blur(0)");W.frontCanvas.context.fillRect(0,0,W.frontCanvas.element.width,W.frontCanvas.element.height)},sXP=function(W,l){QYy()||(W.frontCanvas.context.filter="blur("+H1(W)+"px)");
W.frontCanvas.context.globalAlpha=W.fullscreen&&W.ambientFullscreenEnabled||W.theater&&W.ambientTheaterModeEnabled?_.yS("cinematic_watch_effect_letterbox_opacity",.4):_.yS("cinematic_watch_effect_opacity",.4);var V={offsetX:H1(W)*3,offsetY:H1(W)*3,theater:W.theater,fullscreen:W.fullscreen};$gv(W)&&(V.width=100,V.height=100);l.drawToCanvas(W.frontCanvas.context,V);W.frontCanvas.context.globalAlpha=1},H1=function(W){var l;
return(l=W.cinematicContainerRenderer.config.blurStrength)!=null?l:5},rZX=function(W){var l,V;
if((W.fullscreen||W.theater)&&((l=W.cinematicContainerRenderer.config)==null?0:(V=l.watchFullscreenConfig)==null?0:V.colorSourceWidthMultiplier))return W.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var f;return(f=W.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?f:W.cinematicContainerRenderer.config.colorSourceSizeMultiplier},RIy=function(W){var l,V;
if((W.fullscreen||W.theater)&&((l=W.cinematicContainerRenderer.config)==null?0:(V=l.watchFullscreenConfig)==null?0:V.colorSourceHeightMultiplier))return W.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var f;return(f=W.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?f:W.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
Ko.prototype.disposeInternal=function(){_.iI.prototype.disposeInternal.call(this);this.container.remove()};
Ko.prototype.clear=function(){VLy(this,void 0,!0)};
Ko.prototype.pause=function(){this.storyboardManager.pause()};var Lkv;Lkv=_.M7(function(){var W,l,V=!((l=(W=document.createElement("canvas")).getContext)==null||!l.call(W,"2d")),f;W=!((f=CSS)==null||!f.supports("filter: blur(0)"));f=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var r;return V&&W&&f&&!((r=CSS)==null||!r.supports("aspect-ratio: 1 / 1"))});
_.F$=function(W,l){_.aE.call(this);this.container=W;this.playerApi=l;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=yZX(this);this.update()};
_.v(_.F$,_.aE);_.gcM=function(W){var l=document.documentElement.hasAttribute("dark");W.isDarkModeEnabled=l;W.update()};
_.PB7=function(W,l){W.settingEnabled=l;W.update()};
_.F$.prototype.setFullscreen=function(W,l){this.fullscreen=W;this.theater=!!l;this.update()};
_.ncP=function(W,l){W.cinematicContainerRenderer=l;W.cinematicContainerRenderer&&(W.cinematicsVe=_.GY(W.isShorts()?227858:159022),_.aH(_.Qq(),W.cinematicsVe),W.loggingClientData={watchCinematicContainerData:{presentationStyle:W.cinematicContainerRenderer.presentationStyle}});W.update()};
_.F$.prototype.isShorts=function(){var W,l;return((W=this.cinematicContainerRenderer)==null?void 0:(l=W.config)==null?void 0:l.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.F$.prototype.isAllowed=function(){var W;if(W=Lkv()){var l,V,f;W=((V=this.cinematicContainerRenderer)==null?void 0:V.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((f=this.cinematicContainerRenderer)==null||!f.colorStore)||((l=this.cinematicContainerRenderer)==null?void 0:l.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(W)if(_.U("web_cinematics_pausing")){var r,R;W=this.isDarkModeEnabled||!!((r=this.cinematicContainerRenderer)==
null?0:(R=r.config)==null?0:R.enableInLightTheme)}else{var y,P;r=!!((y=this.cinematicContainerRenderer)==null?0:(P=y.config)==null?0:P.enableInLightTheme)&&(_.M4("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);W=this.isDarkModeEnabled||r}if(y=W){var n,B;y=!((B=(n=this.prefersReducedMotionQuery)==null?void 0:n.matches)!=null&&B)}return y};
_.CB7=function(W){(W=W.currentCinematicEffect)!=null&&(W=W.storyboardManager,W.paused=!1,xg$(W),W.update())};
_.F$.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var yZX=function(W){if(!_.U("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var l=window.matchMedia("(prefers-reduced-motion: reduce)"),V=function(){W.update()};
l.addListener(V);W.addOnDisposeCallback(function(){l.removeListener(V)});
return l}};
_.F$.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var W=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new Ko(this.container,W,this.playerApi,this.isDarkModeEnabled),_.vt(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var l=this.currentCinematicEffect;l.cinematicContainerRenderer!==
W&&(l.cinematicContainerRenderer=W,YzI(l.storyboardManager,W),EzO(l));W=_.MT();_.ZY(0,194,!0);W.save();W=_.Wh();this.cinematicsVe&&W&&_.Py(W,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(W=_.Wh(),this.cinematicsVe&&W&&_.n0(W,[this.cinematicsVe],!1,this.loggingClientData),_.Ls(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.rc.Object.defineProperties(_.F$.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var yxX;var gzy;_.S3({_template:function(){if(gzy!==void 0)return gzy;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=
W.content,V=l.insertBefore;yxX===void 0&&(yxX=document.createElement("template"));var f=yxX;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return gzy=W},
is:"tp-yt-iron-pages",behaviors:[_.Wo,_.nk],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var yNY;_.gew=function(){if(_.U("kevlar_home_skeleton")&&!yNY){var W=document.querySelector("#home-page-skeleton");W&&(_.Wy("hgcr"),_.bI(W),yNY=!0)}};
yNY=!1;_.RN=new _.uC("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var Y$w,eLw,q$Z,hLe,S$w,E81,$M1,Wv7,VGw,f_s,tG2,Lv4,y92,s77,r9N,RqZ,n3Z;_.NQ1=function(W,l,V){l=l===void 0?5:l;if(l!==0){var f=typeof W==="function"?W():document.querySelector(W);f?(V==null?0:V.enableSmartFocus)?_.XAJ(f):f.focus():setTimeout(function(){_.NQ1(W,l-1,V)},500)}};
Y$w=function(W){return String.raw.apply(String,[{raw:W}].concat(_.QK(_.xk.apply(1,arguments).map(function(l){return l instanceof Array?l.join(""):l}))))};
eLw=function(W){var l=_.xk.apply(1,arguments),V=l.length;if(!Array.isArray(W)||!Array.isArray(W.raw)||W.length!==W.raw.length||!_.$gX&&W===W.raw||!(_.$gX&&!_.Wke||_.TI(W))||V+1!==W.length)throw new TypeError("$");return new xMY(Object.freeze({strings:Object.freeze(W),args:Object.freeze(l)}))};
q$Z=function(W){return _.lOJ(_.WOJ(W&16777215))<.5};
hLe=function(W,l,V){var f=V.minimumRowsOfVideosBetweenSections===void 0?1:V.minimumRowsOfVideosBetweenSections;return W<(V.minimumRowsOfVideosAtStart===void 0?2:V.minimumRowsOfVideosAtStart)||l!==null&&W-l<=f?!1:!0};
S$w=function(W,l){var V=0,f=0;W=_.L(W);for(var r=W.next();!r.done;r=W.next()){var R=r.value;if(R.richItemRenderer)R.richItemRenderer.rowIndex=f,R.richItemRenderer.colIndex=V++,V===l&&(V=0,f++);else if(R.richGroupRenderer&&R.richGroupRenderer.numColumns!==void 0)R.richGroupRenderer.rowIndex=f,R.richGroupRenderer.colIndex=V,V+=R.richGroupRenderer.numColumns,V===l&&(V=0,f++);else if(R.richSectionRenderer){var y=r=void 0;if(R=_.k((r=R)==null?void 0:(y=r.richSectionRenderer)==null?void 0:y.content,_.s9X))R.rowIndex=
f++}}};
E81=function(W,l){var V=l.contentElement;l=l.rendererToTagNameMap;if(V&&l&&l.size!==0){for(var f=new Map,r=_.L(V.children),R=r.next();!R.done;R=r.next()){R=R.value;var y=R.tagName.toLowerCase(),P=f.get(y);P||(P=[],f.set(y,P));P.push(R)}if(f.size!==0)for(r=Math.min(W.length,V.children.length),R=new Map,y=0;y<r;y++){P=Object.keys(W[y])[0];P=l.get(P);if(!P)break;var n=R.get(P);n===void 0&&(n=0,R.set(P,n));var B=f.get(P);if(!B||n>=B.length)break;R.set(P,n+1);P=B[n];n=V.children[y];n!==P&&(_.Yvq=!0,_.x9U.set(P,
!0),V.insertBefore(P,n),_.x9U.delete(P),_.Yvq=!1)}}};
$M1=function(W,l,V,f,r,R,y){f=f===void 0?{}:f;if(!W||!W.length)return{orderedContent:[]};W=W.slice();var P=[],n=[];r=null;for(var B=0,d=function(S){n.sort(function(Y,W8){return W8.skippedOnRow-Y.skippedOnRow});
for(var N,x=(N=n.shift())==null?void 0:N.content;x;)!x.richSectionRenderer&&S||P.push(x),N=void 0,x=(N=n.shift())==null?void 0:N.content},J=void 0,D=void 0,u=new Set;W.length>0||n.length>0;){for(var H=[],p=l;p>0;){var X=void 0,w=void 0,O=(w=n[0]&&n[0].skippedOnRow<B?(X=n.shift())==null?void 0:X.content:void 0)!=null?w:W.shift();
if(!O)break;if(O.richItemRenderer)X=O.richItemRenderer.targetId,w=void 0,X&&((w=y)==null?0:w.has(X))&&(w=y.get(X),!J||w&&w.timestamp>J.timestamp)&&(J=w,D&&u.add(D),D=X),H.push(O),p--;else if(O.richGroupRenderer&&O.richGroupRenderer.numColumns!==void 0)O.richGroupRenderer.numColumns<=p?(H.push(O),p-=O.richGroupRenderer.numColumns):p===l&&O.richGroupRenderer.numColumns>l?(H.push({richGroupRenderer:Object.assign({},O.richGroupRenderer,{numColumns:l})}),p=0):n.push({content:O,skippedOnRow:B});else if(O.richSectionRenderer)if(hLe(B,
r,f)&&p===l){P.push(O);r=B;B++;continue}else n.push({content:O,skippedOnRow:B});else if(O.continuationItemRenderer){d(!0);P.push(O);p=0;break}if(p===0)P.push.apply(P,_.QK(H));else if(!V&&W.length===0){d(!1);P.push.apply(P,_.QK(H));p=0;break}}B++;J&&(P.push(J.content),B++);D=J=void 0}S$w(P,l);R&&E81(P,R);return{orderedContent:P,pinnedContentNotShownTargetIds:u}};
Wv7=function(){return _.xk.apply(0,arguments).flat().filter(function(W){return W}).join(";")};
VGw=function(){return eLw(l_e,Wv7.apply(null,_.QK(_.xk.apply(0,arguments))))};
f_s=function(W){switch(W){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
tG2=function(W,l){if(l){var V=_.DJ().getState().entities.flowStateEntity,f=r9N(W),r=[l];f&&f!==l&&r.push(f);var R=!0,y;if(V&&W.flowStateEntityKey&&((y=V[W.flowStateEntityKey])==null?void 0:y.primaryButtonDisabled)!==void 0){var P;R=!((P=V[W.flowStateEntityKey])==null||!P.primaryButtonDisabled)}RqZ(W,f!=null?f:l,r,R)}};
Lv4=function(W){return _.Eb(_.DJ(),function(l){return l.entities.flowStateEntity},function(l,V){if(W.flowStateEntityKey){var f,r=l==null?void 0:(f=l[W.flowStateEntityKey])==null?void 0:f.currentStepId,R;
V=V==null?void 0:(R=V[W.flowStateEntityKey])==null?void 0:R.currentStepId;R=_.DJ().getState().talkToRecs;if(r&&r!==V){var y;l=(l==null?void 0:(y=l[W.flowStateEntityKey])==null?void 0:y.stepIdStack)||Object.keys(R.stepStates);y=!s77(R==null?void 0:R.stepStates[r]);RqZ(W,r,l,y)}}})};
y92=function(W){return _.Eb(_.DJ(),_.yvN,function(l){var V=r9N(W);if(V){var f=Object.keys(l.stepStates);l=!s77(l==null?void 0:l.stepStates[V]);RqZ(W,V,f,l)}})};
s77=function(W){var l=Object.keys((W==null?void 0:W.selectionStates)||{}).reduce(function(R,y){return R||(W==null?void 0:W.selectionStates[y].isSelected)},!1),V,f,r=!!(W==null?0:(V=W.userQuery)==null?0:(f=V.userQuery)==null?0:f.trim());
return l||r};
r9N=function(W){if(W.flowStateEntityKey){var l,V,f=(l=_.DJ().getState().entities.flowStateEntity)==null?void 0:(V=l[W.flowStateEntityKey])==null?void 0:V.currentStepId;if(f)return f}};
RqZ=function(W,l,V,f){_.DJ().dispatch(_.MB("flowStateEntity",W.flowStateEntityKey,{currentStepId:l,stepIdStack:V,key:W.flowStateEntityKey,primaryButtonDisabled:f}))};
_.g3Y=function(W,l){return _.mL(W.entities,"youchatPendingResponseEntity",l)};
_.PA4=function(W){return function(l){_.dm(_.MB("youchatPendingResponseEntity",W,{entityKey:W,isPendingResponse:l}))}};
n3Z=function(W){W==null||W.addEventListener("DOMLoaded",function(){W.goToAndPlay(W.totalFrames-48,!0)})};
_.tC=function(W){this.__isSoyCss=!0;this.css=Y$w.apply(null,[W.strings].concat(_.QK(W.args)))};
_.tC.prototype.toString=function(){return this.css};
var xMY=function(){_.tC.apply(this,arguments)};
_.v(xMY,_.tC);var l_e=_.tj(["",""]);var CA1;var c94;_.S3({_template:function(){if(c94!==void 0)return c94;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
var l=W.content,V=l.insertBefore;CA1===void 0&&(CA1=document.createElement("template"));var f=CA1;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return c94=W},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var B1Z=new _.uC("talkToRecsFlowRenderer");var dbN=new _.uC("flowRootRenderer");var J91=new _.uC("learningJourneyQuizViewModel");var DbL=new _.uC("chipsShelfViewModel");var UbN=new _.uC("responsiveContainerConfiguration");var u$7=new _.uC("horizontalShelfViewModel");_.kA7=new _.uC("engagementPanelSectionListRenderer");var v31=new _.uC("conversationResourceViewModel");var HoN=function(){this.horizontal=!1},Kvs=function(W,l){W.horizontal=l};
HoN.prototype.position=function(W,l,V,f){f=f===void 0?1:f;W=this.delta(W)*f+l;f=Math.max(l,V);return W>=Math.min(l,V)&&W<=f?W:V};
HoN.prototype.axis=function(W){W=this.direction(W);return W==="up"||W==="down"?"Y":"X"};var Q4=function(W,l,V){l=l===void 0?_.Rk():l;this.target=W;this.manager=l;this.touchAction=V;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Q4.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(_.QK(this.events)));for(var W=_.L(this.events),l=W.next();!l.done;l=W.next())this.listen(l.value)}};
Q4.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.QK(this.events)));for(var W=_.L(this.events),l=W.next();!l.done;l=W.next())this.unlisten(l.value)}};
Q4.prototype.listen=function(W){this.eventMap[W]&&this.target.addEventListener(W,this.eventMap[W])};
Q4.prototype.unlisten=function(W){this.eventMap[W]&&this.target.removeEventListener(W,this.eventMap[W])};var Mn=function(){HoN.apply(this,arguments)};
_.v(Mn,HoN);Mn.prototype.direction=function(W){var l=W.detail;W=l.deltaY;l=l.deltaX;return W&&!this.horizontal?W>0?"down":"up":l&&this.horizontal?l>0?"right":"left":"none"};
Mn.prototype.distance=function(W){return Math.abs(this.delta(W))};
Mn.prototype.delta=function(W){var l=this.direction(W),V=W.detail;W=V.deltaX;V=V.deltaY;return l==="up"||l==="down"?V||0:W||0};
Mn.prototype.velocity=function(W){var l=this.direction(W),V=W.detail;W=V.velocityX;V=V.velocityY;return Math.abs(l==="up"||l==="down"?V||0:W||0)};_.Z2=function(W,l,V,f,r,R){r=r===void 0?new Mn:r;R=R===void 0?_.Rk():R;Q4.call(this,l,R,f);var y=this;this.element=W;this.target=l;this.config=V;this.input=r;this.manager=R;this.events=["panstart","panmove","panend"];this.onPanStart=function(){y.config.draggingClass&&y.element.classList.add(y.config.draggingClass);y.config.startAction&&y.config.startAction()};
this.onPanMove=function(P){var n=Fvs(y,P);if(n){y.move(P,n);n.fade&&y.fade(P,n);var B=y.input.direction(P);n.moveAction&&n.moveAction(GAN(y,P,n),B)}};
this.onPanEnd=function(P){var n,B,d,J,D,u;return _.g(function(H){if(H.nextAddress==1){y.animationRequestId&&cancelAnimationFrame(y.animationRequestId);y.animationRequestId=void 0;n=Fvs(y,P);if(!n)return H.return();B=n;d=B.triggerAction;J=B.fade;D=B.disableFinish;u=B.translateBack;var p=y.input.velocity(P),X=y.input.distance(P),w=y.threshold(n);return p>.3&&X>10||X>w?D?H.jumpTo(6):J?H.yield(bow(y,P),6):H.yield(p1H(y,P,n),6):u?H.yield(y.translateBack(P),3):H.jumpTo(3)}H.nextAddress!=3&&d&&d();y.config.draggingClass&&
y.element.classList.remove(y.config.draggingClass);y.reset();_.ju(H)})};
W=Object.keys(V.triggers);this.directions=new Set(W);Kvs(this.input,this.directions.has("right")||this.directions.has("left"))};
_.v(_.Z2,Q4);_.Z2.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var Fvs=function(W,l){l=W.input.direction(l);return W.config.triggers[l]};
_.Z2.prototype.move=function(W,l){var V=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var f=V.input.axis(W),r=V.input.position(W,V.config.startPosition,l.endPosition,l.moveRatio||1);V.element.style.transform="translate"+f+"("+r+"px)";V.animationRequestId=void 0}))};
var GAN=function(W,l,V){var f=V.moveRatio||1;V=Math.abs(W.config.startPosition-V.endPosition);return Math.min(W.input.distance(l)*f,V)/V};
_.Z2.prototype.fade=function(W,l){var V=l.endOpacity;W=GAN(this,W,l);W>0&&(this.element.style.opacity=""+(((V||0)-1)*W+1))};
_.Z2.prototype.threshold=function(W){return W.threshold?W.threshold:Math.abs(W.endPosition-this.config.startPosition)/3};
var p1H=function(W,l,V){var f,r,R,y,P,n,B;return _.g(function(d){if(d.nextAddress==1)return f=W.input.delta(l)+W.config.startPosition,r=W.input.axis(l),R=V,y=R.endPosition,P=R.transitionEndPosition,B=(n=P)!=null?n:y,d.yield(W.element.animate([{transform:"translate"+r+"("+f+"px)"},{transform:"translate"+r+"("+B+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);W.element.style.transform="translate"+r+"("+B+"px)";_.ju(d)})};
_.Z2.prototype.translateBack=function(W){var l=this,V,f;return _.g(function(r){if(r.nextAddress==1){if(!l.element.style.transform)return r.return();V=l.input.axis(W);f=l.config.startPosition;return r.yield(l.element.animate([{transform:l.element.style.transform},{transform:"translate"+V+"("+f+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}l.element.style.transform="translate"+V+"("+f+"px)";_.ju(r)})};
var bow=function(W,l){var V,f,r,R;return _.g(function(y){if(y.nextAddress==1)return V=W.input.delta(l)+W.config.startPosition,f=W.input.axis(l),r=V+70,R=W.element.style.opacity===""?1:W.element.style.opacity,y.yield(W.element.animate([{transform:"translate"+f+"("+V+"px)",opacity:R},{transform:"translate"+f+"("+r+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);W.element.style.transform="translate"+f+"("+r+"px)";W.element.style.opacity="0";_.ju(y)})};var OS=function(){var W=_.OD.apply(this,arguments)||this;W._noAccessors=!0;W.scrollRate=3;W.autoScrollAnimationStart=0;W.autoScrollPaused=!1;W.autoScrollRafId=0;return W};
_.v(OS,_.OD);_.t=OS.prototype;_.t.created=function(){var W=this;this.boundAutoScrollHandler=function(l){W.autoScroll(l)}};
_.t.detached=function(){this.hostElement.removeEventListener("mouseout",_.mz(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.mz(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.mz(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.t.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.mz(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.mz(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.mz(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.mz(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.mz(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.mz(this,this.endAutoScroll)),this.endAutoScroll())};
_.t.autoScroll=function(W){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=W);var l;if(l=!this.autoScrollPaused&&this.scrollTarget)l=this.scrollTarget,l=l.scrollHeight-l.scrollTop!==l.clientHeight;l&&(l=1E3/this.scrollRate,W-=this.autoScrollAnimationStart,W>l&&(this.scrollTarget.scrollTop+=Math.ceil(W/l),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.t.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.t.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
OS.prototype.autoScrollEnabledChanged=OS.prototype.autoScrollEnabledChanged;_.a([_.b(),_.z("design:type",Object)],OS.prototype,"scrollRate",void 0);_.a([_.b(),_.z("design:type",Object)],OS.prototype,"scrollTarget",void 0);_.a([_.b(),_.z("design:type",Boolean)],OS.prototype,"autoScrollEnabled",void 0);_.a([_.TS("autoScrollEnabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OS.prototype,"autoScrollEnabledChanged",null);_.a([_.a1()],OS);_.o31=[OS.prototype];var j7L;var a6=function(){var W=_.I.apply(this,arguments)||this;W.buttonUpdate=_.U("web_button_rework");W.dismissButtonOverrides=_.U("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;W.forceDarkTheme=!1;W.forceLightTheme=!1;W.dynamicTextHeight=94;W.hasOverflowButton=!1;W.isInfeedModernization=!1;return W};
_.v(a6,_.I);_.t=a6.prototype;_.t.computeUrlImg=function(W){if(W)return _.F3(W.thumbnails)};
_.t.getLogoHeight=function(W){return this.logoWithPadding(W)?"31":"24"};
_.t.getLogoClassName=function(W){return this.logoWithPadding(W)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.t.logoWithPadding=function(W){var l,V;return(W=(l=W.thumbnails)==null?void 0:(V=l[0])==null?void 0:V.height)&&W%31===0?!0:!1};
_.t.sendImpressionEndpoints=function(W){W.impressionEndpoints&&_.pN(this.hostElement,W.impressionEndpoints)};
_.t.observeBasicPalette=function(){var W,l,V=(W=this.data)==null?void 0:(l=W.colorData)==null?void 0:l.basicColorPaletteData;V?_.Yh(this.hostElement,V):_.Yh(this.hostElement,{})};
_.t.observeDataChanged=function(){var W;this.dynamicTextHeight=((W=this.data)==null?0:W.supplementalText)?74:94;var l;this.hasSupplementalText=!((l=this.data)==null||!l.supplementalText);if(_.U("web_button_rework")){var V,f,r,R;W=(V=this.data)==null?void 0:(f=V.actionButton)==null?void 0:(r=f.buttonRenderer)==null?void 0:(R=r.colorData)==null?void 0:R.basicColorPaletteData;var y,P,n;if(!((y=this.data)==null?0:(P=y.actionButton)==null?0:(n=P.buttonRenderer)==null?0:n.style)&&W){this.computeIsInfeedModernization(this.data)||
(W.borderColor=W.foregroundTitleColor);var B,d;this.set("data.actionButton.buttonRenderer",_.MC.unsafeClone((B=this.data)==null?void 0:(d=B.actionButton)==null?void 0:d.buttonRenderer))}}};
_.t.observeDataForCounterfactual=function(){if(_.U("kevlar_banner_cf_extra_logging")){var W;((W=this.data)==null?0:W.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.t.computeSupplementalStyle=function(){var W;if((W=this.data)!=null&&W.supplementalText){var l,V,f;if((l=this.data)==null?0:(V=l.colorData)==null?0:(f=V.basicColorPaletteData)==null?0:f.foregroundActivatedColor)return W=_.ta(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+W+"; --yt-endpoint-hover-color:"+W+"; --yt-endpoint-visited-color:"+W+"; --yt-formatted-string-bold-font-weight:700;"}};
_.t.computeForcedDarkTheme=function(){var W,l,V,f=(W=this.data)==null?void 0:(l=W.actionButton)==null?void 0:(V=l.buttonRenderer)==null?void 0:V.style,r,R,y;W=q$Z(((r=this.data)==null?void 0:(R=r.colorData)==null?void 0:(y=R.basicColorPaletteData)==null?void 0:y.backgroundColor)||0);return f&&W};
_.t.computeForcedLightTheme=function(){var W,l,V,f=(W=this.data)==null?void 0:(l=W.actionButton)==null?void 0:(V=l.buttonRenderer)==null?void 0:V.style,r,R,y;W=!q$Z(((r=this.data)==null?void 0:(R=r.colorData)==null?void 0:(y=R.basicColorPaletteData)==null?void 0:y.backgroundColor)||0);return f&&W};
_.t.computeHasOverflowButton=function(W){return!!W.overflowButton};
_.t.computeHasTitle=function(W){return!!W.title};
_.t.computeTitleMaxFontSize=function(W){return this.computeHasOverflowButton(W)?28:64};
_.t.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.t.computeIsInfeedModernization=function(){var W,l,V,f,r=(W=this.data)==null?void 0:(l=W.actionButton)==null?void 0:(V=l.buttonRenderer)==null?void 0:(f=V.colorData)==null?void 0:f.basicColorPaletteData;return(r==null?void 0:r.backgroundColor)===452984831||(r==null?void 0:r.backgroundColor)===218103808};
a6.prototype.observeDataForCounterfactual=a6.prototype.observeDataForCounterfactual;a6.prototype.observeDataChanged=a6.prototype.observeDataChanged;a6.prototype.observeBasicPalette=a6.prototype.observeBasicPalette;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],a6.prototype,"ytdDismissibleItemBehavior",void 0);
_.a([_.F(_.vZ.YtdGuideStateAwareBehavior),_.z("design:type",Object)],a6.prototype,"ytdGuideStateAwareBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],a6.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],a6.prototype,"buttonUpdate",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],a6.prototype,"hasSupplementalText",void 0);_.a([_.b(),_.z("design:type",Object)],a6.prototype,"dismissButtonOverrides",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.z("design:type",Boolean)],a6.prototype,"hasTitle",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.z("design:type",Object)],a6.prototype,"forceDarkTheme",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.z("design:type",Object)],a6.prototype,"forceLightTheme",void 0);_.a([_.b(),_.z("design:type",Object)],a6.prototype,"dynamicTextHeight",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.z("design:type",Object)],a6.prototype,"hasOverflowButton",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.z("design:type",Object)],a6.prototype,"isInfeedModernization",void 0);_.a([_.TS("data.colorData.basicColorPaletteData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],a6.prototype,"observeBasicPalette",null);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],a6.prototype,"observeDataChanged",null);_.a([_.TS("data.isVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],a6.prototype,"observeDataForCounterfactual",null);_.a([_.A({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],a6);
_.Z(a6,"ytd-banner-promo-renderer",function(){if(j7L!==void 0)return j7L;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return j7L=W},{mode:1});var I_5;var io4;var mb4;var zF=function(){return _.I.apply(this,arguments)||this};
_.v(zF,_.I);_.a([_.b(),_.z("design:type",Object)],zF.prototype,"data",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],zF.prototype,"ytRendererBehavior",void 0);_.a([_.A({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],zF);
_.Z(zF,"ytd-hashtag-grid-tile-renderer",function(){if(mb4!==void 0)return mb4;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return mb4=W},{mode:1});var Nn=function(){return _.I.apply(this,arguments)||this};
_.v(Nn,_.I);Nn.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Nn.prototype.updateRichGridTrendingHashtagsVisibility=function(){var W,l;if(((W=this.data)==null||!W.isExpanded)&&(l=this.data)!=null&&l.tiles){W=this.data.tiles.length;l=W>this.richGridItemsPerRow?this.richGridItemsPerRow+1:W;var V=Math.ceil(W/l);this.fullyVisibleRows=W%l===1&&V===2?1:Math.min(V,2);this.isShowMoreVisible=this.fullyVisibleRows<V}};
Nn.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Nn.prototype.updateRichGridTrendingHashtagsVisibility=Nn.prototype.updateRichGridTrendingHashtagsVisibility;_.a([_.b(),_.z("design:type",Object)],Nn.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Number)],Nn.prototype,"fullyVisibleRows",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Nn.prototype,"isShowMoreVisible",void 0);_.a([_.b({selector:_.Wl,value:0}),_.z("design:type",Number)],Nn.prototype,"richGridItemsPerRow",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Nn.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],Nn.prototype,"ytdReduxBehavior",void 0);_.a([_.TS("data","richGridItemsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Nn.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.a([_.A({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Nn);
_.Z(Nn,"ytd-hashtag-grid-shelf-renderer",function(){if(io4!==void 0)return io4;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return io4=W},{mode:1});var X1H;var T1e;var YA=function(){var W=_.I.apply(this,arguments)||this;W.visibleVideos=[];W.hiddenVideos=[];W.modern=_.U("web_modern_buttons");W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.v(YA,_.I);_.t=YA.prototype;_.t.attached=function(){var W=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",W);this.onDarkModeToggledAction(W)};
_.t.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"}}}};
_.t.dataChanged=function(){var W=this;this.requestElementsPerRow();var l,V;this.currentColorPalette=this.isDarkTheme?(l=this.data)==null?void 0:l.darkColorData:(V=this.data)==null?void 0:V.lightColorData;var f;if((f=this.currentColorPalette)==null?0:f.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.V9(this,function(){W.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.t.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.t.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.t.computeIsFirstFeedItem=function(W){return W};
_.t.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W);this.data&&(this.currentColorPalette=W?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.t.getCurrentLogo=function(W,l){if(W)return l?W.darkLogoImage:W.lightLogoImage};
_.t.computeTitleStyle=function(W){var l;if((l=this.data)!=null&&l.title&&W&&W.textPrimary!==void 0)return"color:"+_.ta(W.textPrimary)+";"};
_.t.computeSubtitleStyle=function(W){var l;if((l=this.data)!=null&&l.subtitle&&W&&W.textSecondary!==void 0)return"color:"+_.ta(W.textSecondary)+";"};
_.t.computeDismissIconStyle=function(W){if(this.data&&this.data.dismissButton&&W&&W.textPrimary!==void 0)return"--yt-button-color:"+_.ta(W.textPrimary)+";"};
_.t.computeOverflowButtonStyle=function(W){if(this.data&&this.data.overflowButton&&W&&W.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.ta(W.textPrimary)+";--yt-spec-icon-active-other:"+_.ta(W.textPrimary)+";"};
_.t.computeBackgroundStyle=function(W){if(W&&this.data){var l="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var V=_.F3((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);V&&(l+='background-image:url("'+V+'");')}W.backgroundColor!==void 0&&(l+="background-color:"+_.sD(W.backgroundColor)+";");return l}};
_.t.computeButton=function(){var W,l=Object.assign({},_.k((W=this.data)==null?void 0:W.showMoreButton,_.CE));if(this.modern&&l){l.style="STYLE_MONO_OUTLINE";var V;if(W=(V=this.currentColorPalette)==null?void 0:V.textPrimary)l.colorData={basicColorPaletteData:{foregroundTitleColor:W,borderColor:W}}}return l};
_.t.shouldShowBottomButton=function(W,l){return!(W==null?0:W.header)&&!(W==null||!W.primaryButton)&&l<3};
_.t.checkExpanded=function(W){this.isExpanded=W&&W.content?this.hiddenVideos.length===0:!0};
_.t.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.t.getLogoHeight=function(W){return this.logoWithPadding(W)?"26":"20"};
_.t.getLogoImageId=function(W){return this.logoWithPadding(W)?"logo-image-with-padding":"logo-image"};
_.t.computeHasSectionHeader=function(W){return!!W.header};
_.t.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var W;if((W=this.data.primaryButton)==null?0:W.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 l;((l=this.data.dismissButton)==null?0:l.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var V,f;((V=this.data)==null?0:(f=V.primaryButton)==null?0:f.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.t.setVisibleVideos=function(W){if(this.data&&this.data.content)if(this.data.content.length){var l=this.data.content.length;this.data.header?W?(this.visibleVideos=this.data.content.slice(0,Math.min(l,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(l,this.slimItemsPerRow),l)):(this.visibleVideos=this.data.content.slice(0,Math.min(l,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(l,this.elementsPerRow),l)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(l,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(l,this.elementsPerRow),l)):(this.visibleVideos=this.data.content.slice(0,Math.min(l,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(l,this.elementsPerRow-1),l))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.t.setHasMovieRenderer=function(){var W;if((W=this.data)!=null&&W.content){var l;this.hasMovieRenderer=!!_.k((l=this.data)==null?void 0:l.content[0],_.g09)}else this.hasMovieRenderer=!1};
_.t.requestElementsPerRow=function(){_.FN(this.hostElement,"yt-request-elements-per-row")};
_.t.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var W=_.L(this.hiddenMediaRenderers),l=W.next();!l.done;l=W.next())l.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(W=_.GS(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&W.focus()}};
_.t.updateTitleSpec=function(){var W;(W=this.data)!=null&&W.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.t.logoWithPadding=function(W){var l,V,f;return(W=(l=this.getCurrentLogo(W,this.isDarkTheme))==null?void 0:(V=l.thumbnails)==null?void 0:(f=V[0])==null?void 0:f.height)&&W%31===0?!0:!1};
_.t.onUpdateElementsPerRowAction=function(W,l,V){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W);V&&this.slimItemsPerRow!==V&&(this.slimItemsPerRow=V)};
YA.prototype.slimItemsPerRowChanged=YA.prototype.slimItemsPerRowChanged;YA.prototype.elementsPerRowChanged=YA.prototype.elementsPerRowChanged;YA.prototype.dataChanged=YA.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],YA.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],YA.prototype,"ytdDismissibleItemBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],YA.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],YA.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],YA.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],YA.prototype,"currentColorPalette",void 0);_.a([_.b(),_.z("design:type",Array)],YA.prototype,"visibleVideos",void 0);_.a([_.b(),_.z("design:type",Array)],YA.prototype,"hiddenVideos",void 0);
_.a([_.b(),_.z("design:type",Object)],YA.prototype,"primaryButton",void 0);_.a([_.b({reflectToAttribute:!0,value:3}),_.z("design:type",Number)],YA.prototype,"elementsPerRow",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],YA.prototype,"isDarkTheme",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],YA.prototype,"isExpanded",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],YA.prototype,"largeTitle",void 0);
_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],YA.prototype,"hasMovieRenderer",void 0);_.a([_.b(),_.z("design:type",Number)],YA.prototype,"slimItemsPerRow",void 0);_.a([_.b(),_.z("design:type",Boolean)],YA.prototype,"showLightVideoMetadata",void 0);_.a([_.b(),_.z("design:type",Boolean)],YA.prototype,"showDarkVideoMetadata",void 0);_.a([_.b(),_.z("design:type",Number)],YA.prototype,"videoMetadataColor",void 0);
_.a([_.b({reflectToAttribute:!0,selector:_.$H}),_.z("design:type",Boolean)],YA.prototype,"miniMode",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.z("design:type",Boolean)],YA.prototype,"isFirstFeedItem",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.z("design:type",Boolean)],YA.prototype,"hasSectionHeader",void 0);
_.a([_.b({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],YA.prototype,"roundedContainer",void 0);_.a([_.Qb("#visible-video-container ytd-rich-grid-media"),_.z("design:type",Array)],YA.prototype,"visibleMediaRenderers",void 0);_.a([_.Qb("#hidden-video-container ytd-rich-grid-media"),_.z("design:type",Array)],YA.prototype,"hiddenMediaRenderers",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],YA.prototype,"modern",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YA.prototype,"dataChanged",null);_.a([_.TS("elementsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YA.prototype,"elementsPerRowChanged",null);_.a([_.TS("slimItemsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YA.prototype,"slimItemsPerRowChanged",null);
_.a([_.A({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],YA);
_.Z(YA,"ytd-brand-video-shelf-renderer",function(){if(T1e!==void 0)return T1e;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return T1e=W},{mode:1});var w1N;var xA=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.v(xA,_.I);_.t=xA.prototype;_.t.attached=function(){var W=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",W);this.onDarkModeToggledAction(W)};
_.t.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"}}}};
_.t.dataChanged=function(){this.requestElementsPerRow();var W,l;this.currentColorPalette=this.isDarkTheme?(W=this.data)==null?void 0:W.darkColorData:(l=this.data)==null?void 0:l.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.t.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.t.computeIsFirstFeedItem=function(W){return W};
_.t.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W);this.data&&(this.currentColorPalette=W?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(W),this.updateButtonPalette())};
_.t.shouldShowThumbnailInMetadata=function(W){return W<=1};
_.t.computeVideoMetadataColor=function(){if(this.data){var W;if((W=this.currentColorPalette)==null?0:W.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.t.computeTitleStyle=function(W){var l;if((l=this.data)!=null&&l.title&&W&&W.textPrimary!==void 0)return"color:"+_.ta(W.textPrimary)+";"};
_.t.computeSubtitleStyle=function(W){var l;if((l=this.data)!=null&&l.subtitle&&W&&W.textSecondary!==void 0)return"color:"+_.ta(W.textSecondary)+";"};
_.t.computeOverflowButtonStyle=function(W){if(this.data&&this.data.overflowButton&&W.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.ta(W.textPrimary)+";--yt-spec-icon-active-other:"+_.ta(W.textPrimary)+";"};
_.t.computeBackgroundStyle=function(W){if(W&&this.data){var l="";W.backgroundColor!==void 0&&(l+="background-color:"+_.sD(W.backgroundColor)+";");return l}};
_.t.computeHasOverflowButton=function(W){return!!W.overflowButton};
_.t.updateButtonPalette=function(){if(this.data){var W;if((W=this.data.primaryButton)==null?0:W.buttonRenderer){var l;if((l=this.currentColorPalette)==null?0:l.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var V;((V=this.currentColorPalette)==null?0:V.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)})}}};
_.t.requestElementsPerRow=function(){_.FN(this.hostElement,"yt-request-elements-per-row")};
_.t.updateTitleSpec=function(){var W;(W=this.data)!=null&&W.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")};
_.t.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W)};
xA.prototype.elementsPerRowChanged=xA.prototype.elementsPerRowChanged;xA.prototype.dataChanged=xA.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],xA.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],xA.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],xA.prototype,"ytdDismissibleItemBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],xA.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],xA.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],xA.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],xA.prototype,"currentColorPalette",void 0);_.a([_.b(),_.z("design:type",Object)],xA.prototype,"primaryButton",void 0);
_.a([_.b({reflectToAttribute:!0,value:3}),_.z("design:type",Number)],xA.prototype,"elementsPerRow",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],xA.prototype,"isDarkTheme",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],xA.prototype,"titleSize",void 0);_.a([_.b(),_.z("design:type",Number)],xA.prototype,"videoMetadataColor",void 0);_.a([_.b({reflectToAttribute:!0,selector:_.$H}),_.z("design:type",Boolean)],xA.prototype,"miniMode",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.z("design:type",Boolean)],xA.prototype,"isFirstFeedItem",void 0);_.a([_.b({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],xA.prototype,"roundedContainer",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.z("design:type",Boolean)],xA.prototype,"hasOverflowButton",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xA.prototype,"dataChanged",null);_.a([_.TS("elementsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xA.prototype,"elementsPerRowChanged",null);_.a([_.A({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],xA);
_.Z(xA,"ytd-brand-video-singleton-renderer",function(){if(w1N!==void 0)return w1N;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return w1N=W},{mode:_.bD("kevlar_poly_si_batch_j070")?1:2});var A9N;var Q7Z=_.Q(function(W){var l=W.data;return _.C(_.dN,{data:function(){return l().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(l().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var V=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":V=88;break a;default:V=88}return V},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return l().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Wj"),Zow=_.Q(function(W){var l=W.metadataRow;
var V=W.delimiter;return _.C(_.G3,{each:function(){return l().textParts||[]},
keyBy:"INDEX"},function(f,r){return _.C(_.Lp,null,_.C(_.bH,{text:f,noWrap:!0,userInput:!0}),_.C(MGN,{delimiter:V,max:function(){return l().textParts.length},
index:r}))})},"Xj"),MGN=_.Q(function(W){var l=W.delimiter;
var V=W.max;var f=W.index;return _.C(_.c,{cond:function(){return(l==null?void 0:l())&&V()-1>f()},
then:function(){return _.C("span",null,l)}})},"Yj"),Oow=_.Q(function(W){var l=W.data;
W={};return _.C("yt-profile-page-header-information-view-model",{class:_.If("profilePageHeaderInformationViewModelHost",(W.profilePageHeaderInformationViewModelMobile=!1,W))},_.C(_.c,{cond:function(){return l().onTap},
then:function(){return _.C(_.Mq,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.fP(l().onTap)}},_.C(_.QH,{data:function(){return l().thumbnail}},{profilePageHeaderThumbnailViewModel:Q7Z}))},
else:function(){return _.C("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.C(_.QH,{data:function(){return l().thumbnail}},{profilePageHeaderThumbnailViewModel:Q7Z}))}}),_.C("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.C(_.c,{cond:function(){return l().onTap},
then:function(){return _.C(_.QH,{data:function(){return l().title}},{profilePageHeaderTitleViewModel:function(V){var f=V.data;
return _.C(_.Mq,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.fP(f().onTap)}},_.C(_.bH,{text:function(){return f().title}}))}})},
else:function(){return _.C(_.QH,{data:function(){return l().title}},{profilePageHeaderTitleViewModel:function(V){var f=V.data;
return _.C(_.bH,{text:function(){return f().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.C(_.QH,{data:function(){return l().metadata}},{profilePageHeaderMetadataViewModel:function(V){var f=V.data;
return _.C(_.c,{cond:function(){return f().metadataRows},
then:function(r){return _.C("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.C(_.G3,{each:r,keyBy:"INDEX"},function(R,y){return _.C(_.Lp,null,_.C(Zow,{metadataRow:R,delimiter:" \u2022 "}),_.C(MGN,{delimiter:" \u2022 ",max:function(){return r().length},
index:y}))}))}})}})))},"Zj");
Oow.idomCompat=!0;_.HI(Oow,"yt-profile-page-header-information-view-model",{props:{data:_.pA}});var e4=function(){return _.I.apply(this,arguments)||this};
_.v(e4,_.I);e4.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],e4.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],e4.prototype,"data",void 0);_.a([_.A({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],e4);
_.Z(e4,"ytd-effect-pivot-header-view-model",function(){if(A9N!==void 0)return A9N;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return A9N=
W},{mode:1});var a_L;var qn=function(){return _.I.apply(this,arguments)||this};
_.v(qn,_.I);qn.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],qn.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],qn.prototype,"data",void 0);_.a([_.A({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],qn);
_.Z(qn,"ytd-source-pivot-header-renderer",function(){if(a_L!==void 0)return a_L;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return a_L=W},{mode:1});_.zq5=_.Q(function(W){var l=W.data;var V=function(){var f;return _.hy((f=l())==null?void 0:f.rendererContext)};
W={};return _.C("content-list-item-view-model",{el:_.DN(_.E_(function(){return l().rendererContext})),
class:_.If("ytContentListItemViewModelHost",(W.ytContentListItemViewModelTappable=V,W)),role:function(){return V()?"listitem":void 0},
tabindex:function(){return V()?0:void 0}},_.C("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.C("div",{class:"ytContentListItemViewModelImageContainer"},_.C(_.c,{cond:function(){return l().image},
then:function(f){return _.C(_.dN,{data:f,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.C(_.QH,{data:function(){var f;
return(f=l())==null?void 0:f.avatar}},{avatarViewModel:_.gn})),_.C("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.C("div",{class:_.If("ytContentListItemViewModelTitle",function(){a:{switch(l().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var f="ytContentListItemViewModelProminentTitle";
break a}f=void 0}return f})},_.C(_.bH,{text:function(){return l().title}})),_.C("div",{class:"ytContentListItemViewModelMetadata"},_.C(_.QH,{data:function(){return l().metadata}},{contentMetadataViewModel:function(f){return _.C(_.A8,{data:f.data,
layout:1})}})))),_.C("div",{class:"ytContentListItemViewModelActionButton"},_.C(_.QH,{data:function(){var f;
return(f=l())==null?void 0:f.actionButton}},{buttonViewModel:_.Nq,
toggleButtonViewModel:_.gy})))},"$j");_.HI(_.Q(function(W){var l=function(){return W.data().background},V=function(){return W.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},f=function(){return W.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.C("yt-card-view-model",{class:_.If("ytCardViewModelHost",W.className)},_.C(_.QF,{contentId:function(){return W.data().contentId}},function(){return _.C("div",{class:_.If("ytCardViewModelCardViewModelInner",function(){return f_s(W.data().cardStyle)},function(){var r;
a:{switch((r=W.data().cardState)==null?void 0:r.selectionState){case "CARD_SELECTION_STATE_SELECTED":r="ytCardViewModelSelected";break a}r=void 0}return r})},_.C(_.QH,{data:l},{cinematicContainerViewModel:function(r){return _.C(_.mMZ,{data:r.data})}}),_.C("div",{class:"ytCardViewModelContentWrapper"},_.C(_.c,{cond:function(){return!V()},
then:function(){var r={};return _.C("div",{class:"ytCardViewModelTopContentContainer"},_.C("div",{class:"ytCardViewModelTopContent"},_.C(_.QH,{data:function(){return W.data().topContent}},{contentListItemViewModel:function(R){return _.C(_.zq5,{data:R.data})}})),_.C("div",{class:_.If("ytCardViewModelInlineTrailingAction",(r.ytCardViewModelInlineCenterTrailingAction=f,r))},_.C(_.QH,{data:function(){return W.data().trailingAction}},{buttonViewModel:function(R){return _.C(_.Nq,{data:R.data})}})))}}),
_.C("div",{class:"ytCardViewModelBodyContent"},_.C(_.QH,{data:function(){return W.data().bodyContent}},{contentListItemViewModel:function(r){return _.C(_.zq5,{data:r.data})}}))),_.C(_.c,{cond:function(){return V()},
then:function(){return _.C("div",{class:"ytCardViewModelOverlayTrailingAction"},_.C(_.QH,{data:function(){return W.data().trailingAction}},{buttonViewModel:function(r){return _.C(_.Nq,{data:r.data})}}))}}))}))},"ak"),"yt-card-view-model",{props:{data:_.pA,
className:_.pA}});_.HI(_.Q(function(W){var l=function(){return _.k(W.data().flowRoot,dbN)};
_.mw(function(){var V=l(),f=function(){},r=function(){};
if(V){var R,y,P,n=((P=_.k((R=l())==null?void 0:(y=R.steps)==null?void 0:y[0],_.Ly1))==null?void 0:P.stepId)||"";tG2(V,n);f=Lv4(V);r=y92(V)}_.Xc(function(){var B=l();B&&_.DJ().dispatch(_.MB("flowStateEntity",B.flowStateEntityKey));f();f=function(){};
r();r=function(){}})});
return _.C("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.C(_.QF,{contentId:function(){return W.data().contentId}},function(){return _.C("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.C(_.c,{cond:l,
then:function(V){return _.C(_.c6e,{data:V})}}))}))},"bk"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.pA}});_.HI(_.Q(function(){return _.C("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.C("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.C("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.C(_.dTs,null)),_.C(_.wYk,{data:{rows:1},isExploreHub:!0}))},"ck"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.HI(_.Q(function(W){var l=W.data;var V=W.standardUnitMinWidth;W=_.L((0,_.ZHa)(l));var f=W.next().value,r=W.next().value,R=function(){var P,n=(P=f())==null?void 0:P.contents;return n==null||n.length===0},y=function(){r(Object.assign({},f(),{contents:[]}))};
return _.C("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.DN(_.su({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var P=_.k(l().chipsShelf,DbL);if(P!=null&&P!=null&&P.autoselectChipOnVisible){var n,B,d=_.k(P==null?void 0:(n=P.contents)==null?void 0:n[(B=P.autoselectedChipIndex)!=null?B:0],_.Dk);d&&d.tapCommand&&_.sZ(d.tapCommand)}}}))},_.C(_.QF,{contentId:function(){return l().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.C("div",null,_.C("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.C(_.QH,{data:function(){return l().header}},{sectionHeaderViewModel:function(P){return _.C(_.Yx,{data:P.data,
disableHorizontalPadding:!0})}})),_.C("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.C(_.QH,{data:function(){return l().chipsShelf}},{chipsShelfViewModel:function(P){return _.C(_.CD,{data:P.data,
callback:y,selectionBehavior:1})}})),_.C("div",null,_.C(_.c,{cond:R,
then:function(){return _.C("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.C(_.wYk,{data:{rows:1},isExploreHub:!0}))}}),_.C(_.QH,{data:function(){var P;
return(P=f())==null?void 0:P.contents}},{richShelfRenderer:function(P){return _.C(_.YoX,{data:P.data,
isInnerShelf:!0,standardUnitMinWidth:V})}})))}))},"dk"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.pA,
standardUnitMinWidth:_.pA}});var hA=function(){return _.I.apply(this,arguments)||this};
_.v(hA,_.I);
hA.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}}};
hA.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.a([_.F(_.dx),_.z("design:type",Object)],hA.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],hA.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.vH),_.z("design:type",Object)],hA.prototype,"ytContinuationHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],hA.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],hA.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Number)],hA.prototype,"standardUnitMinWidth",void 0);_.a([_.A({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],hA);
_.Z(hA,"ytd-rich-section-renderer",function(){if(X1H!==void 0)return X1H;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return X1H=W},{mode:_.bD("kevlar_poly_si_batch_j029")?
1:2});_.HI(_.jo1,"yt-profile-identity-info-view-model",{props:{data:_.pA,hideDivider:_.pA,isChannelInfoCard:_.pA}});_.HI(_.OYv,"yt-page-header-view-model",{props:{data:_.pA,noPadding:_.pA,enableBanner:_.pA,cinematicContainerTopbarOffset:_.pA,allowCinematicContainerOverflow:_.pA,displayAsSidebar:_.pA,displayAsPanel:_.pA,alwaysUseMediumTextDescription:_.pA}});_.HI(_.Q(function(W){var l=W.data;var V=function(){var r;return(r=l().numColumns)!=null?r:2},f=function(){return V()>1?3:2};
W={};return _.C("ytd-rich-grid-group",{class:_.If("ytdRichGridGroupHost",(W.ytdRichGridGroupHostFirstColumn=function(){return l().colIndex===0},W)),
style:_.Tm({"--ytd-rich-grid-group-num-columns":V,"--ytd-rich-grid-items-per-group":f})},_.C("div",{class:"ytdRichGridGroupContents"},_.C(_.QH,{data:function(){var r;return(r=l().contents)==null?void 0:r.slice(0,f())}},{richItemRenderer:function(r){return _.C(_.zvc,{data:r.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"ek"),"ytd-rich-grid-group",{props:{data:_.pA}});var S4=function(){var W=_.I.apply(this,arguments)||this;W.resizeOnObserverInit=!1;W.isInlinePreviewDisabled=_.U("web_disable_inline_preview");W.disableStickyFilterBar=!1;W.transparentBackgroundChipsBar=!1;W.hideChipsBar=!1;W.isWatchDefaultLayout=!0;W.continuationShowButton=!1;W.rowReducedHorizontalMargin=!1;W.useCompactList=!1;W.manualDownloadsPresent=!1;W.smartDownloadsPresent=!1;W.isOnline=!1;W.shouldRenderDownloadsBanner=!1;W.shouldRenderDownloadsBannerUpsell=!1;W.hasOptedIntoSmartDownloads=!1;
W.elementsPerRow=4;W.typographyBump=!1;W.showGnomeContents=!1;W.showExploreHubContents=!1;W.slimItemsPerRow=1;W.pageLoadingFromNavigation=!1;W.resizeObserver=null;W.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"};W.rendererToTagNameMap=
new Map(Object.entries(W.contentMapping()).map(function(l){var V=_.L(l);l=V.next().value;V=V.next().value;return[l,V.component]}));
W.insertedContent=new Map;return W};
_.v(S4,_.I);_.t=S4.prototype;_.t.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var W=_.L(_.GS(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),l=W.next();!l.done;l=W.next())l.value.useCompactList=this.useCompactList};
_.t.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var W=_.L(_.GS(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),l=W.next();!l.done;l=W.next())l=l.value,l.sizing=this.sizing,l.typographyBump=this.typographyBump};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.t.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]]"}}}};
_.t.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}}};
_.t.attached=function(){document.addEventListener("yt-page-type-changed",_.mz(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21893_throttledOnResize=new _.t$(this.resizeObserved,_.yS("rich_grid_resize_delay_ms",50),this)};
_.t.detached=function(){var W;(W=this.resizeObserver)==null||W.disconnect();document.removeEventListener("yt-page-type-changed",_.mz(this,this.onPageChange))};
_.t.insertRichSection=function(W){var l=W.richItemTargetId;W=W.richSectionRendererToInsert;l&&W&&(this.insertedContent.set(l,{content:W,timestamp:Date.now()}),this.reflowContent())};
_.t.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.t.computeIsInlinePreviewEnabled=function(W,l,V){return _.U("web_disable_inline_preview")?!1:!V&&_.hj2({miniplayerIsActive:W,miniplayerPlaybackState:l})};
_.t.computeSizing=function(){var W=_.brJ(this.data);if(W||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return W?this.useCompactList?"COMPACT":W:this.miniMode?"COMPACT":"STANDARD"};
_.t.updateItemMinAndMaxWidth=function(){var W=_.yS("rich_grid_max_item_width",500);W>0&&_.I1(this.hostElement,{"--ytd-rich-grid-item-max-width":W+"px"});var l;W=this.getRichItemMinWidth((l=this.hostElement)==null?void 0:l.clientWidth);W>0&&_.I1(this.hostElement,{"--ytd-rich-grid-item-min-width":W+"px"})};
_.t.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.t.resizeObserved=function(){_.bj(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.t.navigateBackToHome=function(){_.U("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.U("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var W=_.tY().resolve(_.Bp).isOnWatch(),l,V=((l=_.Q1(location.pathname))==null?void 0:l.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(V)||W)&&this.gnomeContents&&_.U("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);W&&this.exploreHubContents&&_.U("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.DJ().dispatch(_.GT({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.t.onPageChange=function(){var W=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.bj(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.w8.addJob(function(){W.pageLoadingFromNavigation=!1;W.setMasthead();W.maybeSetBigYoodle();W.forceRefreshAndLog();W.terminateVideoPreview();_.U("web_hide_gnome_until_user_navigates_back_to_home")&&(W.dataChanged(),_.V9(W,function(){if(W.showGnomeContents){var l=Array.from(_.GS(W.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(f){f=
_.GS(f).querySelector("ytd-rich-shelf-renderer");return!!f&&f.isGnomeShelf()});
if(l){l=l.offsetTop-W.contentsElement.offsetTop;var V=_.tY().resolve(_.Bp).getCurrentPage();V&&V.getPageScrollingElement().scrollTo({top:l,behavior:"smooth"})}}}));
_.U("web_hide_explore_hub_until_user_navigates_back_to_home")&&(W.dataChanged(),_.V9(W,function(){if(W.showExploreHubContents&&!_.U("web_explore_hub_no_scroll")){var l=Array.from(_.GS(W.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(f){return!!f.querySelector("ytd-talk-to-recs-flow-renderer")});
if(l){l=l.offsetTop-W.contentsElement.offsetTop;var V=_.tY().resolve(_.Bp).getCurrentPage();V&&V.getPageScrollingElement().scrollTo({top:l,behavior:"smooth"})}}}))},8)):((_.U("web_hide_gnome_until_user_navigates_back_to_home")||_.U("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.t.dataChanged=function(){var W=this;_.bj(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.V9(this,function(){W.updateRichItemGridPositions();W.contentsElement&&_.I1(W.hostElement,{"--ytd-rich-grid-content-offset-top":W.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.t.initResizeObserver=function(){var W=this;if(window.ResizeObserver){var l;(l=this.resizeObserver)==null||l.disconnect();var V=!1;this.resizeObserver=new ResizeObserver(function(){if(V){var f;(f=W.resizeObserver)==null||f.disconnect();var r;(r=W.JSC$21893_throttledOnResize)==null||r.fire();requestAnimationFrame(function(){var y;(y=W.JSC$21893_throttledOnResize)==null||y.fire();W.initResizeObserver()})}else if(V=!0,W.resizeOnObserverInit){var R;
(R=W.JSC$21893_throttledOnResize)==null||R.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.t.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.bj(this.hostElement,"ytd-rich-item-index-update-action")};
_.t.updateElementsPerRow=function(){_.bj(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.GT({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.GT({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.t.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.t.onRichShelfRendererCollapse=function(W){if(this.shownItems){var l=W.detail;W=this.shownItems.findIndex(function(f){var r,R;return((R=_.k(f==null?void 0:(r=f.richSectionRenderer)==null?void 0:r.content,_.s9X))==null?void 0:R.trackingParams)===l});
var V=W+1;W<0||V>=this.contentsElement.children.length||!this.shownItems[V].richItemRenderer||this.contentsElement.children[V].scrollIntoView({behavior:"smooth",block:"start"})}};
_.t.onSoftReloadPage=function(){this.scrollUpToTop()};
_.t.handleRerenderDownloadsData=function(){_.U("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.t.handlePlaylistRemoveVideosAction=function(W){var l;if(((l=_.k(W,_.Fx$))==null?0:l.setVideoIds)&&this.data&&this.data.contents){W=_.k(W,_.Fx$).setVideoIds;for(l=this.data.contents.length-1;l>=0;){var V=_.k(this.data.contents[l],_.$0);(V=V&&_.k(V.content,_.nE))&&V.setVideoId&&W.includes(V.setVideoId)&&this.splice("data.contents",l,1);l--}this.updateIndices()}};
_.t.updateIndices=function(){if(this.data&&this.data.contents)for(var W=0;W<this.data.contents.length;W++)this.set("data.contents."+W+".richItemRenderer.index",_.Bl(String(W+1)))};
_.t.hasTopRowInlinePlayableVideoWithEndorsement=function(W){var l;return!((l=W.slice(0,this.getItemsPerRow()))==null||!l.some(function(V){var f;V=_.k(V==null?void 0:(f=V.richItemRenderer)==null?void 0:f.content,_.Bm);var r;return(V==null?void 0:V.inlinePlaybackEndpoint)&&(V==null?void 0:(r=V.thumbnailOverlays)==null?void 0:r.some(function(R){return R.thumbnailOverlayEndorsementRenderer}))}))};
_.t.refreshGridLayoutNew=function(W,l,V,f){var r=f.postsPerRow;var R=f.slimItemsPerRow;var y=f.gameCardsPerRow;f=f.miniGameCardsPerRow;var P;if((P=this.data)==null||!P.contents||!this.containerWidth)return!1;var n;if((n=this.data.responsiveContainerConfiguration)==null?0:n.responsiveSize){var B=_.rnz(this.data.responsiveContainerConfiguration,this.containerWidth),d;P=_.fh(Object.assign({},B,{standardUnitMinWidth:(d=this.data)==null?void 0:d.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&B.isCompactList)}else P=_.fh({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(B=this.data)==null?void 0:B.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=P.typographyBump;d=!1;if(W||this.elementsPerRow!==P.numItems||this.postsPerRow!==r||this.slimItemsPerRow!==R||this.gameCardsPerRow!==
y||this.miniGameCardsPerRow!==f||this.gutter!==P.gutter)d=this.elementsPerRow!==P.numItems,this.elementsPerRow=P.numItems,this.postsPerRow=r,this.slimItemsPerRow=R,this.gameCardsPerRow=y,this.miniGameCardsPerRow=f,this.gutter=P.gutter,this.itemWidth=P.itemWidth,this.reflowContent(l),_.I1(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":P.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(V);this.ytdReduxBehavior.dispatch(_.GT({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:P.maxContainerWidth}));return d};
_.t.refreshGridLayout=function(W,l){var V,f=(V=this.hostElement)==null?void 0:V.clientWidth;this.containerWidth=this.adjustRichGridWidth(f,!0);var r;if((r=this.data)==null||!r.contents||!this.containerWidth)return W&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(W=!0,this.pendingForceReflow=!1);V=this.getRichItemMinWidth(f);var R=this.isShortsPanel?146:194,y=this.getMiniGameCardMinWidth(),P=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;f=V=this.calcElementsPerRow(V,
P);(r=V<=3&&this.miniModeAllowed())&&(V=this.calcElementsPerRow(240,4));var n=this.calcMaxSlimElementsPerRow(V,P,this.isDefaultGrid);P=this.calcElementsPerRow(R,n);var B=this.calcElementsPerRow(this.isCompactGrid?R:154,n);R=this.calcElementsPerRow(this.isCompactGrid?R:y,n);y=!1;if(this.sizing)return this.refreshGridLayoutNew(W,l,r,{postsPerRow:f,slimItemsPerRow:P,gameCardsPerRow:B,miniGameCardsPerRow:R});if(W||this.elementsPerRow!==V||this.postsPerRow!==f||this.slimItemsPerRow!==P||this.gameCardsPerRow!==
B||this.miniGameCardsPerRow!==R)y=this.elementsPerRow!==V,this.elementsPerRow=V,this.postsPerRow=f,this.slimItemsPerRow=P,this.gameCardsPerRow=B,this.miniGameCardsPerRow=R,this.reflowContent(l),this.updateElementsPerRow(),_.I1(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)&&_.I1(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(r);_.bj(this.hostElement,"yt-rich-grid-layout-refreshed");return y};
_.t.getRichItemMinWidth=function(W){var l=_.yS("rich_grid_min_item_width",310);if(!_.U("kevlar_disable_min_width_override")){var V,f;l=(f=(V=this.data)==null?void 0:V.minItemWidth)!=null?f:l}return l+_.uOz(W)};
_.t.calcMaxSlimElementsPerRow=function(W,l,V){return(V===void 0?0:V)?W===1?2:W%2===0?W/2*3:W+2:l*2};
_.t.adjustRichGridWidth=function(W,l){var V=_.U("disable_rich_grid_guide_compensation");if(!this.isWatch&&!V){V=_.tY().resolve(_.R0(_.kM));var f=V==null?void 0:V.guideElement;if(!(!V||V.getData()||f!=null&&f.opened||V.getMiniGuideVisible()))if(V.canFitPersistentGuide(W)&&V.getGuideExpandsAutomatically()){var r,R,y=Number((r=window.getComputedStyle(this.hostElement))==null?void 0:(R=r.getPropertyValue("--app-drawer-width"))==null?void 0:R.replace("px",""));W-=y||0}else if(V.canFitMiniGuide(W)){var P;
r=Number((y=window.getComputedStyle(this.hostElement))==null?void 0:(P=y.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:P.replace("px",""));W-=r||0}}W>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(W-=l?32:48));return W};
_.t.calcElementsPerRow=function(W,l){var V=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),f=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((V+f)/(W+f))||1,l)};
_.t.reflowContent=function(W){var l=this;if(!this.isReflowing){this.isReflowing=!0;var V,f,r=!!((V=this.data)==null?0:(f=V.contents)==null?0:f.some(function(u){return _.k(u,_.P0)}));
V=this.getItemsPerRow();var R;f=(R=this.data)==null?void 0:R.reflowOptions;W&&(_.Wy("rgr_s"),_.V9(this,function(){_.Wy("rgr_nrf")}));
W={};(R=_.GS(this.hostElement).querySelector("#contents"))&&(W={contentElement:R,rendererToTagNameMap:this.rendererToTagNameMap});R=(R=this.data.contents)?R.slice():[];var y=(_.U("web_hide_gnome_behind_feed_filter_chip")||_.U("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,P=_.U("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,n=-1,B=-1;if(this.isHomePage&&P){for(P=0;P<R.length;P++){var d=void 0,J=void 0;_.k((d=R[P])==null?void 0:
(J=d.richSectionRenderer)==null?void 0:J.content,B1Z)&&(B=P)}B>-1&&(this.exploreHubContents=R.splice(B,1))}if(this.isHomePage&&y){for(B=0;B<R.length;B++)J=d=void 0,(P=_.k((d=R[B])==null?void 0:(J=d.richSectionRenderer)==null?void 0:J.content,_.s9X))&&y&&(J=d=void 0,P=_.k((d=P)==null?void 0:(J=d.contents)==null?void 0:J[0],_.$0),d=void 0,_.k((d=P)==null?void 0:d.content,_.s3e)&&(n=B));n>-1&&(this.gnomeContents=R.splice(n,1))}r=$M1(R,V,r,f,this.getRichGridStyle(),W,this.insertedContent);var D=r.orderedContent;
if(r=r.pinnedContentNotShownTargetIds)for(r=_.L(r),V=r.next();!V.done;V=r.next())this.insertedContent.delete(V.value);r=function(){l.shownItems=D;l.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(D),_.V9(this,r)):r()}};
_.t.getFirstRowItems=function(W){for(var l=[],V=0;V<W.length;V++){var f=void 0,r=void 0,R=void 0,y=void 0,P=void 0,n=void 0;if(((f=W[V])==null?void 0:(r=f.richItemRenderer)==null?void 0:r.rowIndex)===0||((R=W[V])==null?void 0:(y=R.richGroupRenderer)==null?void 0:y.rowIndex)===0||((P=W[V])==null?void 0:(n=P.richSectionRenderer)==null?void 0:n.rowIndex)===0)l.push(W[V]);else break}return l};
_.t.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.t.resetInsertedContentIfNeeded=function(){(_.U("web_explore_hub_on_hover")||_.U("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.t.handleChipCloudChipSelectAction=function(W,l){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed();_.U("web_hide_gnome_behind_feed_filter_chip")&&(l?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.t.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.t.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();_.U("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.t.terminateVideoPreview=function(){_.bj(this.hostElement,"yt-terminate-video-preview-action")};
_.t.updateRichItemGridPositions=function(){var W={gridData:{gridColumnCount:this.elementsPerRow}},l;((l=this.data)==null?0:l.trackingParams)&&(l=_.Wh())&&_.By(l,_.zG(this.data.trackingParams),W);_.bj(this.hostElement,"ytd-rich-item-index-update-action")};
_.t.miniModeAllowed=function(){return this.isChannelPage};
_.t.getMiniGameCardMinWidth=function(){return 154};
_.t.updateMiniMode=function(W){this.miniMode=this.miniModeAllowed()&&W;this.ytdReduxBehavior.dispatch(_.GT({type:"SET_RICH_GRID_MINI_MODE",payload:W}))};
_.t.isCurrentPage=function(){return location.pathname===this.pagePath};
_.t.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var W=_.tY().resolve(_.Bp).getCurrentPage();W&&W.setScrollTop(0)}};
_.t.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.t.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.t.maybeSetBigYoodle=function(){var W,l=(W=this.data)==null?void 0:W.bigYoodle;this.bigYoodleData!==l&&(this.bigYoodleData=l)};
_.t.setMasthead=function(){var W;((W=this.data)==null?0:W.masthead)?this.mastheadData=this.data.masthead:_.U("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.t.getRichGridStyle=function(){var W,l;return(l=(W=this.data)==null?void 0:W.style)!=null?l:"RICH_GRID_STYLE_UNKNOWN"};
_.t.onIsShortsGridChange=function(){var W=this.ytdReduxBehavior,l=W.dispatch,V=this.getRichGridStyle();l.call(W,_.GT({type:"SET_RICH_GRID_STYLE",payload:V}))};
_.rc.Object.defineProperties(S4.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var W=_.tY().resolve(_.Bp).getCurrentPage(),l,V,f;return(((l=this.data)==null?void 0:l.targetId)==="browse-feedFEsfv_audio_pivot"||_.U("web_enable_channel_pivot_panel")&&((V=this.data)==null?void 0:V.targetId)==="browse-feedFEsfv_channel_pivot"||_.U("web_enable_effect_pivot_panel")&&((f=this.data)==null?void 0:f.targetId)==="browse-feedFEsfv_effect_pivot")&&(W==null?void 0:W.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.U("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 W;return!((W=this.data)==null?0:W.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var W;return((W=_.tY().resolve(_.Bp).getCurrentPage())==null?void 0:W.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var W;return((W=_.tY().resolve(_.Bp).getCurrentPage())==null?void 0:W.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.targetId)||"")==="watch-next-feed"&&!_.U("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return((W=this.data)==null?0:W.enableContentSpecificAspectRatio)||((l=this.data)==null?0:(V=l.responsiveContainerConfiguration)==null?0:V.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.yS("web_continuation_handler_margin",0):0}}});
S4.prototype.onIsShortsGridChange=S4.prototype.onIsShortsGridChange;S4.prototype.onReloadContinuationFinish=S4.prototype.onReloadContinuationFinish;S4.prototype.reflowContent=S4.prototype.reflowContent;S4.prototype.handleRerenderDownloadsData=S4.prototype.handleRerenderDownloadsData;S4.prototype.onRichShelfRendererCollapse=S4.prototype.onRichShelfRendererCollapse;S4.prototype.onRequestElementsPerRow=S4.prototype.onRequestElementsPerRow;S4.prototype.contentLengthChanged=S4.prototype.contentLengthChanged;
S4.prototype.dataChanged=S4.prototype.dataChanged;S4.prototype.onSizingChange=S4.prototype.onSizingChange;S4.prototype.onUseCompactListChange=S4.prototype.onUseCompactListChange;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],S4.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Wo),_.z("design:type",Object)],S4.prototype,"ironResizableBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],S4.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.vH),_.z("design:type",Object)],S4.prototype,"ytContinuationHandlerBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],S4.prototype,"componentBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],S4.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],S4.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0,selector:_.$H}),_.z("design:type",Boolean)],S4.prototype,"miniMode",void 0);_.a([_.b({value:[]}),_.z("design:type",Array)],S4.prototype,"shownItems",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],S4.prototype,"isReflowing",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],S4.prototype,"isFilteredFeed",void 0);_.a([_.b({selector:_.i6n}),_.z("design:type",Boolean)],S4.prototype,"guideIsExpanded",void 0);
_.a([_.b({selectorArgs:["entitySelectorType"],selector:function(W,l){if(_.U("kevlar_modern_downloads_page")&&l&&l!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(l){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":l=W.entities;var V=_.hW(l),f=_.SE(l),r=_.S7U(W),R=_.hmj(W),y=_.ECF(W),P=_.vCj(l),n=_.zT(V),B=_.EK(l);return _.Sin(V,f,P,_.GoJ(l),r,R,n,B,y,_.WBU(W),_.fa(W));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return W=_.hW(W.entities),_.$wU(W);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return W=
_.U58(W.entities),_.W6q(W);default:_.Qe(new _.bP("Error: entitySelectorType defined but not matched in selector.",W,l))}}}),
_.z("design:type",Object)],S4.prototype,"entityDrivenRichGridData",void 0);_.a([_.b(),_.z("design:type",Object)],S4.prototype,"resizeOnObserverInit",void 0);_.a([_.b(),_.z("design:type",Object)],S4.prototype,"bigYoodleData",void 0);_.a([_.b(),_.z("design:type",Object)],S4.prototype,"mastheadData",void 0);_.a([_.b(),_.z("design:type",Boolean)],S4.prototype,"isInlinePreviewDisabled",void 0);_.a([_.b(),_.z("design:type",Object)],S4.prototype,"disableStickyFilterBar",void 0);
_.a([_.b(),_.z("design:type",Object)],S4.prototype,"transparentBackgroundChipsBar",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],S4.prototype,"hideChipsBar",void 0);_.a([_.b(),_.z("design:type",Object)],S4.prototype,"isWatchDefaultLayout",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],S4.prototype,"continuationShowButton",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],S4.prototype,"rowReducedHorizontalMargin",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],S4.prototype,"useCompactList",void 0);_.a([_.b({selector:function(W){return _.SE(W.entities).length>0}}),
_.z("design:type",Object)],S4.prototype,"manualDownloadsPresent",void 0);_.a([_.b({selector:function(W){return _.hW(W.entities).length>0}}),
_.z("design:type",Object)],S4.prototype,"smartDownloadsPresent",void 0);_.a([_.b({selector:_.fa}),_.z("design:type",Object)],S4.prototype,"isOnline",void 0);_.a([_.b({selector:_.hmj}),_.z("design:type",Object)],S4.prototype,"shouldRenderDownloadsBanner",void 0);_.a([_.b({selector:_.WBU}),_.z("design:type",Object)],S4.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.a([_.b({selector:_.S7U}),_.z("design:type",Object)],S4.prototype,"hasOptedIntoSmartDownloads",void 0);
_.a([_.TS("useCompactList"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S4.prototype,"onUseCompactListChange",null);_.a([_.TS("sizing","typographyBump"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S4.prototype,"onSizingChange",null);_.a([_.b({selector:_.QBS}),_.z("design:type",Number)],S4.prototype,"miniplayerPlaybackState",void 0);_.a([_.b({selector:_.l0}),_.z("design:type",Boolean)],S4.prototype,"miniplayerIsActive",void 0);
_.a([_.b({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.z("design:type",Boolean)],S4.prototype,"isInlinePreviewEnabled",void 0);_.a([_.b({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.z("design:type",String)],S4.prototype,"sizing",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],S4.prototype,"elementsPerRow",void 0);
_.a([_.b(),_.z("design:type",Object)],S4.prototype,"typographyBump",void 0);_.a([_.b(),_.z("design:type",Number)],S4.prototype,"itemWidth",void 0);_.a([_.Aa("#header"),_.z("design:type",HTMLElement)],S4.prototype,"headerElement",void 0);_.a([_.Aa("#contents"),_.z("design:type",HTMLElement)],S4.prototype,"contentsElement",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S4.prototype,"dataChanged",null);
_.a([_.zS("data.contents.length"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S4.prototype,"contentLengthChanged",null);_.a([_.XI("yt-request-elements-per-row"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S4.prototype,"onRequestElementsPerRow",null);
_.a([_.XI("yt-rich-shelf-renderer-collapse"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],S4.prototype,"onRichShelfRendererCollapse",null);_.a([_.zS("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S4.prototype,"handleRerenderDownloadsData",null);
_.a([_.G("data"),_.z("design:type",String),_.z("design:paramtypes",[])],S4.prototype,"entitySelectorType",null);_.a([_.b({reflectToAttribute:!0}),_.G("data.targetId"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],S4.prototype,"isSub",null);_.a([_.b({reflectToAttribute:!0}),_.G("data.targetId"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],S4.prototype,"isWatch",null);
_.a([_.b({reflectToAttribute:!0}),_.G("data.targetId"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],S4.prototype,"isShortsPanel",null);_.a([_.b({reflectToAttribute:!0}),_.G("isWatch"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],S4.prototype,"reducedTopMargin",null);_.a([_.b({reflectToAttribute:!0}),_.G("data","isWatch","isWatchDefaultLayout"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],S4.prototype,"noTopMargin",null);
_.a([_.b({reflectToAttribute:!0}),_.G("isInlinePreviewEnabled","shownItems"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],S4.prototype,"topRowEndorsement",null);_.a([_.G("data.header"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],S4.prototype,"hideHeader",null);_.a([_.XI("yt-rich-grid-reflow"),_.z("design:type",Function),_.z("design:paramtypes",[Boolean]),_.z("design:returntype")],S4.prototype,"reflowContent",null);
_.a([_.XI("yt-reload-continuation-finish"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S4.prototype,"onReloadContinuationFinish",null);_.a([_.G("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],S4.prototype,"isSlimGrid",null);_.a([_.G("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],S4.prototype,"isShortsGrid",null);
_.a([_.G("data","isSlimGrid","isShortsGrid"),_.b(),_.z("design:type",Boolean),_.z("design:paramtypes",[])],S4.prototype,"noRichItemGutterMargins",null);_.a([_.G("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],S4.prototype,"isShortsGridSlim",null);_.a([_.G("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],S4.prototype,"isCompactGrid",null);
_.a([_.G("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],S4.prototype,"isDefaultGrid",null);_.a([_.G("data.targetId"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],S4.prototype,"hideChipsBarOnWatch",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S4.prototype,"onIsShortsGridChange",null);
_.a([_.G("data.enableContentSpecificAspectRatio"),_.b(),_.z("design:type",Boolean),_.z("design:paramtypes",[])],S4.prototype,"force16By9ThumbnailAspectRatio",null);_.a([_.G("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],S4.prototype,"continuationTriggerOffset",null);_.a([_.A({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],S4);
_.Z(S4,"ytd-rich-grid-renderer",function(){if(I_5!==void 0)return I_5;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return I_5=W},{mode:2});var N11=_.Q(function(W){var l=W.thumbsUp,V=W.thumbsDown,f=W.rightAlignThumbs;W=_.L(_.J4(!1,void 0,"OxPsH"));var r=W.next().value,R=W.next().value;W=_.L(_.J4(!1,void 0,"V5vWne"));var y=W.next().value,P=W.next().value;W={};return _.C("div",{class:_.If("ytwThumbsUpDownThumbs",(W.ytwThumbsUpDownRightAlign=function(){return f==null?void 0:f()},W))},_.C(_.gy,{data:l,
onToggle:function(n){R(n);y()&&P(!1)},
buttonShapeOverrides:function(){return{toggled:r()}}}),_.C(_.gy,{data:V,
onToggle:function(n){P(n);r()&&R(!1)},
buttonShapeOverrides:function(){return{toggled:y()}}}))},"fk");
N11.idomCompat=!0;var xbL=_.Q(function(W){var l=function(){return W.data().pendingStateEntityKey||""},V=_.wH(_.g3Y,l),f=function(){var P;
if(!(P=W.disabled())){var n;P=!((n=V())==null||!n.isPendingResponse)}return P},r=_.L(_.J4(VGw(""),void 0,"NwQXfe")),R=r.next().value,y=r.next().value;
_.iz(function(){requestAnimationFrame(function(){var P=W.data().onShowAnimationMs||0;P=P>0?VGw("--chip-animation-duration: "+P+"ms;"):VGw("");y(P)})});
return _.C("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:R},_.C(_.G3,{each:function(){return W.data().chipData||[]},
keyBy:"REFERENCE"},function(P){return _.C(Yt7,{data:P,disabled:f,pendingStateKey:l,onError:W.onError})}))},"gk"),Yt7=_.Q(function(W){var l=_.lN("button"),V=_.L(_.J4(!0,void 0,"G4GPGe")),f=V.next().value,r=V.next().value,R=function(){return W.data().text.content},y=function(){return W.data().transparentWhenLoading},P=_.ip(function(n){var B,d,J,D,u,H,p,X;
return _.g(function(w){switch(w.nextAddress){case 1:n.stopPropagation();if(W.disabled())return w.return();d=String(Math.floor(((B=_.I$())==null?void 0:B.getCurrentTime())||0)*1E3);J="youchat-"+Date.now();D=function(){_.rN(W.data().onClick||{});var O={continuationCommand:{token:W.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},S={inputComposerFormData:{clientMessageId:J,playerOffsetMs:d}};return new Promise(function(N,x){_.rN(O,{form:{formData:S},commandController:{onSuccess:function(Y,
W8){N(W8)},
onServerError:function(Y,W8){x(W8.error)}}})})};
u=_.PA4(W.pendingStateKey());u(!0);_.NQ1("#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);_.HG(w,2);return w.yield(D(),4);case 4:_.qL(w,3);break;case 2:H=_.pc(w),(X=(p=W).onError)==null||X.call(p,H);case 3:u(!1),_.ju(w)}})});
return _.C(_.c,{cond:f,then:function(){return _.C("div",{class:"ytwYouChatChipsDataChipWrapper"},_.C("button",{el:l,class:"ytwYouChatChipsDataChip","data-disabled":W.disabled,"data-transparent-loading":y,"on:click":P,tabindex:0},R))}})},"hk");var eqc=_.Q(function(W){var l=W.data;var V=W.initiallyExpanded;var f=function(){var B;return(B=l().conversationResourceData)==null?void 0:B.learningGuideData};
W=_.L(_.X3(function(){var B;return(B=V==null?void 0:V())!=null?B:!1}));
var r=W.next().value,R=W.next().value,y=function(){R(!0)},P=_.v4(function(){var B,d;
return(d=(B=f())==null?void 0:B.sections)!=null?d:[]},void 0,"aPRmH"),n=_.v4(function(){return P().length>4},void 0,"PUPDyc");
W=_.v4(function(){var B;return!r()&&n()&&(B=f())!=null&&B.expandButton?P().slice(0,4):P()},void 0,"wUz4Ud");
return _.C("yt-conversation-resource-view-model",{class:_.If("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.C(_.QH,{data:W},{expandableMetadataViewModel:_.rL5}),_.C(_.c,{cond:function(){return n()&&!r()},
then:function(){return _.C("div",{id:"showMoreButton"},_.C(_.QH,{data:function(){var B;return(B=f())==null?void 0:B.expandButton}},{buttonViewModel:function(B){return _.C(_.Nq,{data:B.data,
onClick:y})}}))}}))},"ik");var qt1=_.Q(function(W){var l=function(){var Y;return(Y=W.data().text)==null?void 0:Y.content},V=function(){var Y,W8;
return(Y=W.data().webData)==null?void 0:(W8=Y.textResult)==null?void 0:W8.content},f=_.tY().resolve(_.cI),r=_.i$(),R=function(){return W.data().chatResponseStyle},y=function(){return!W.data().transparentBackground},P=function(){return W.data().rightAlignThumbs},n=function(){return W.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||W.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},B=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:n()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:W.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},d=function(){var Y;
return W.data().webData||((Y=W.data().text)==null?void 0:Y.content)||W.data().videoResultsData||W.data().conversationResourceViewModel||W.data().quiz},J=function(){return!!W.data().sectionHeader||d()},D=function(){var Y;
return(Y=W.data().videoResultsData)==null?void 0:Y.videoShelf},u=function(){var Y;
return _.k(((Y=W.data().videoResultsData)==null?void 0:Y.videoShelf)||{},u$7)},H=function(){var Y;
return(Y=W.data().webData)==null?void 0:Y.sourcesShelf},p=function(){var Y;
return _.k(((Y=W.data().webData)==null?void 0:Y.sourcesShelf)||{},u$7)},X=function(){return _.k(W.data().conversationResourceViewModel||{},v31)},w=function(){return _.k(W.data().quiz||{},J91)},O=function(){return R()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||R()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:W.data().thumbsDownViewModel&&W.data().thumbsUpViewModel},S=function(){return _.k(W.data().thumbsUpViewModel,_.Ub)},N=function(){return _.k(W.data().thumbsDownViewModel,_.Ub)};
_.iz(function(){requestAnimationFrame(function(){var Y;(Y=W.shouldAnimateIcon)!=null&&Y.call(W)&&n3Z(r.lottieEl)})});
var x={};return _.C("you-chat-item-view-model",{class:_.If("ytwYouChatItemViewModelYouChatItemViewModel",(x.ytwYouChatItemViewModelColumnLayout=function(){return n()},x)),
"data-target-id":function(){return W.data().id||""}},_.C(_.c,{cond:function(){return W.data().removeIcon?!1:J()},
then:function(){var Y={};return _.C("div",{"aria-hidden":"true"},_.C(_.SX,{className:_.If("ytwYouChatItemViewModelIcon",(Y.ytwYouChatItemViewModelRtl=f==="rtl",Y.ytwYouChatItemViewModelHidden=function(){return!(W.data().hideIcon||R()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||R()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:J())},Y)),
animationName:"YOUCHAT_ICON",data:B,animationRef:r}))}}),_.C(_.c,{cond:J,
then:function(){var Y={};return _.C("div",{class:_.If("ytwYouChatItemViewModelHost",(Y.ytwYouChatItemViewModelHostNoPadding=function(){return!!W.data().sectionHeader&&!d()},Y.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return R()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},Y.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return R()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},Y.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return R()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
Y.ytwYouChatItemViewModelGradientBackground=y,Y)),
role:"alert"},_.C(_.c,{cond:l,then:function(W8){return _.C(_.kq,{text:W8,wrapCodeBlocks:!0})}}),_.C(_.QH,{data:function(){return W.data().sectionHeader}},{sectionHeaderViewModel:function(W8){var c8={};
return _.C(_.Yx,{data:W8.data,className:_.If("ytwYouChatItemViewModelSectionHeader",(c8.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!W.data().sectionHeader&&!d()},c8))})}}),_.C(_.c,{cond:V,
then:function(W8){return _.C(_.kq,{text:W8,wrapCodeBlocks:!0})}}),_.C(_.c,{cond:D,
then:function(){return _.C("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.C(_.DF,{data:u,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.C(_.c,{cond:H,
then:function(){return _.C("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.C(_.DF,{data:p,hasPeek:!0,disableArrows:!1}))}}),_.C(_.c,{cond:X,
then:function(){return _.C(eqc,{data:X})}}),_.C(_.c,{cond:w,
then:function(){return _.C(_.UMM,{data:w})}}),_.C(_.c,{cond:O,
then:function(){return _.C(N11,{thumbsUp:S,thumbsDown:N,rightAlignThumbs:P})}}))}}),_.C(_.c,{cond:function(){return W.data().chipsData},
then:function(Y){return _.C(xbL,{data:Y,disabled:W.pending,onError:W.onError})}}))},"jk");
qt1.idomCompat={callbacks:{onError:!0,onSend:!0}};var hqw=_.Q(function(W){var l=function(){return W.data().choiceSelectedText},V=function(){return W.data().hasGradientBackground},f={};
return _.C("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.C(_.c,{cond:l,then:function(){return _.C("div",{class:"ytYouChatUserTurnChoiceSelected"},_.C(_.bH,{text:l}))}}),_.C("div",{class:_.If("ytYouChatUserTurnUserMessage",(f.ytYouChatUserTurnGradientContainer=V,f.ytYouChatUserTurnDefaultContainer=function(){return!V()},f))},function(){return W.data().text}))},"kk");var St4=_.Q(function(W){var l=_.L((0,_.zHZ)(W.data)).next().value;return _.C("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return W.data().targetId||""}},_.C(_.QH,{data:function(){return W.data().header}},{chipBarViewModel:_.M4k}),_.C(_.QH,{data:function(){return l().contents}},{accordionViewModel:_.HYB,
alertBannerViewModel:_.eRk,chatLoadingViewModel:_.Jg5,chatUserTurnViewModel:hqw,learningJourneyLoaderViewModel:_.BQM,lockupViewModel:function(V){return _.C(_.au,{data:V.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:W.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
videoOverviewViewModel:_.iYk,youChatItemViewModel:function(V){return _.C(qt1,{data:V.data,pending:!1})}}))},"lk");_.HI(_.Q(function(W){var l=_.L((0,_.zHZ)(W.data)).next().value,V=_.WS("yt-section-list-renderer"),f=_.L(_.J4(void 0,void 0,"boqAXd")),r=f.next().value,R=f.next().value,y=function(){var P;return _.k((P=W.data().sectionListLayoutConfiguration)==null?void 0:P.layoutConfiguration,UbN)};
_.mw(function(){var P,n=(P=V.value)==null?void 0:P.clientWidth;if(y()){P=y();var B=P.responsiveSize;n=n<528?"CONTAINER_SIZE_NARROW":n<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var d=_.L(P.responsiveMap||[]);for(var J=d.next();!J.done;J=d.next())if(J=J.value,J.containerSize===n){d=J.containerType;break b}d=void 0}if(d&&B){b:{if(d==="CONTAINER_TYPE_VERTICAL_LIST")if(B==="RESPONSIVE_SIZE_STANDARD"){if(n!=="CONTAINER_SIZE_NARROW"){J="50%";break b}}else{J=n==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}J=void 0}P={responsiveSize:B,containerSize:n,containerType:d,force16By9ThumbnailAspectRatio:!P.enableContentSpecificAspectRatio,contentPreviewWidth:J,fullbleed:(d==="CONTAINER_TYPE_VERTICAL_LIST"||d==="CONTAINER_TYPE_GRID")&&n==="CONTAINER_SIZE_NARROW"&&!1}}else P=void 0}else P=void 0;R(P)});
return _.C("yt-section-list-renderer",{class:_.If("ytSectionListRendererHost",W.className),el:V,"data-target-id":function(){return W.data().targetId||""}},_.C(_.QH,{data:function(){return l().contents}},{itemSectionRenderer:function(P){return _.C(St4,{data:P.data,
containerLayoutConfig:r})}}))},"mk"),"yt-section-list-renderer",{props:{data:_.pA,
className:_.kh}});var E32;var $be;var WsN=function(){return _.I.apply(this,arguments)||this};
_.v(WsN,_.I);_.a([_.b(),_.z("design:type",Object)],WsN.prototype,"data",void 0);_.a([_.Vq({is:"yt-alert-renderer",disableElementRegistration:!0})],WsN);
_.Z(WsN,"yt-alert-renderer",function(){if($be===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;E32===void 0&&(E32=document.createElement("template"));var f=E32;V.call(l,f.content.cloneNode(!0),W.content.firstChild);$be=W}W=$be;return W},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Lwe;Lwe=function(W,l,V,f){V||(W?f&&(f.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||f.WINDOW_SIZE_CHANGED&&(l.width!==window.innerWidth||l.height!==window.innerHeight)||f.SAFARI_ABORTED_BY_NEW_TRANSITION&&W instanceof DOMException&&W.name==="AbortError"&&W.message.includes("Old view transition aborted by new view transition"))||_.wv(W):_.wv(Error("pj")))};
_.yCw=function(W,l){l=l===void 0?{}:l;var V,f,r,R,y,P,n,B,d,J,D,u,H;return _.g(function(p){switch(p.nextAddress){case 1:V=l;f=V.shouldWrap===void 0?!0:V.shouldWrap;r=V.skipTransitionTimeoutMs===void 0?300:V.skipTransitionTimeoutMs;R=V.beforeTransition;y=V.afterTransition;if(!f||!document.startViewTransition||document.visibilityState==="hidden")return p.return(W());P={width:window.innerWidth,height:window.innerHeight};n=!1;(B=R)==null||B();_.HG(p,2);d=document.startViewTransition(W);J=setTimeout(function(){d.skipTransition();
n=!0},r);
return p.yield(d.ready,4);case 4:return clearTimeout(J),p.yield(d.finished,5);case 5:clearTimeout(J);(D=y)==null||D();_.qL(p,0);break;case 2:u=_.pc(p),(H=y)==null||H(),Lwe(u,P,n,l.ignoredErrors),_.ju(p)}})};
_.DZ=function(){for(var W=Array(36),l=0,V,f=0;f<36;f++)f==8||f==13||f==18||f==23?W[f]="-":f==14?W[f]="4":(l<=2&&(l=33554432+Math.random()*16777216|0),V=l&15,l>>=4,W[f]=_.n1k[f==19?V&3|8:V]);return W.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 g2L=_.tj(['<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>']),
PzN=_.Wgc(g2L);PzN.setAttribute("style","display: none;");document.head.appendChild(PzN.content);_.UW=_.uRS(function(W){var l=_.Gz("DIV");W&&(l.className=W);l.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";W=_.Gz("DIV");_.EZv(W,"200px","200px");l.appendChild(W);document.body.appendChild(l);W=l.offsetWidth-l.clientWidth;_.bI(l);return W});var n25;var Cze;var u3=function(){var W=_.I.apply(this,arguments)||this;W.icon=null;return W};
_.v(u3,_.I);u3.prototype.dismiss=function(){_.FN(this.hostElement,"yt-live-chat-error-message-dismiss")};
u3.prototype.computeIcon=function(W){return W&&W.iconType?"yt-icons:"+W.iconType.toLowerCase():"yt-icons:close"};
_.a([_.b(),_.z("design:type",Object)],u3.prototype,"data",void 0);_.a([_.b({computed:"computeIcon(data.icon)"}),_.z("design:type",Object)],u3.prototype,"icon",void 0);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],u3);
_.Z(u3,"yt-live-chat-error-message-renderer",function(){if(Cze===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;n25===void 0&&(n25=document.createElement("template"));var f=n25;V.call(l,f.content.cloneNode(!0),W.content.firstChild);Cze=W}W=Cze;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var uwy,k1O,vZy,H2a,KNM,FN7,oZX,mHa,XeP,T7I,wee,A1a,QwI,MYy,zA,Z2P,O2M,acv,z4P,N77,Y5$,xHy,e4P,q5a,h4P,S5k,EZP,$HM,W7e,la7,VeP,faO,rOX,RyO,te$,svk,L7O,yO$,gky,C7y,BaI,JOP,DIa,UI$,uXI,P7P,nka,HMM,K7I,F7I,GIv,bMa,kIM,i2X,okk;uwy=function(W){var l=_.WS("__slot-el");_.mw(function(){for(var V=_.L(W.slotContent),f=V.next();!f.done;f=V.next())l.value.appendChild(f.value)});
return _.C("__slot-el",{el:l,skip:!0})};
k1O=function(W){return _.vI==="yt-animated-rolling-number"?(W.isInert=!0,_.vI="",!0):_.$j8==="yt-animated-rolling-number"?(W.isInert=!0,_.$j8="",!0):!1};
vZy=function(W,l){return _.mL(W.entities,"liveReactionsDataEntity",l)};
H2a=function(W,l){W=_.mL(W.entities,"booleanEntity",l);return!(!W||!W.value)};
KNM=function(W,l){var V=_.Wh();V&&W&&_.L0(V,_.zG(W),l)};
FN7=function(W,l){return _.mL(W.entities,"timedMarkersListSyncEntity",l)};
_.G17=function(W){return W.watch.isWatchActive};
_.b2O=function(W){return _.h2(W)||_.S1(W)||_.Vdq(W)};
_.pee=function(W){return!_.b2O(W)};
_.a7=function(W){return W.watch.watchScrollTop};
oZX=function(W){return W.watch.isLiveChatCollapsed};
_.jwP=function(){_.U("web_watch_log_theater_mode")&&_.UWn("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.IcO=function(W,l,V){if(!W.includes("START_TIME_PLACEHOLDER")||!W.includes("END_TIME_PLACEHOLDER"))return W;var f=new Date(0),r=new Date(0);f.setUTCMilliseconds(l);r.setUTCMilliseconds(V);return W.replace("START_TIME_PLACEHOLDER",_.Pl(f,7)).replace("END_TIME_PLACEHOLDER",_.Pl(r,7))};
mHa=function(){var W={propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]};W=W===void 0?i2X:W;_.Kk.add("yt-animated-rolling-number");var l;(l=W).propNames!=null||(l.propNames=[]);var V=new Set(W.propNames),f=_.aVJ();l=function(){var P=f.call(this)||this;P.props={};P.isUpdating=!1;P.hasAttached=!1;P.isInert=!1;P.updateQueued=!1;P.initialClasses=[];k1O(P);return P};
_.v(l,f);l.prototype.forwardKebabCaseProp=function(P,n){P=_.Q9(P);if(V.has(P)||P==="children")this.props[P]=n};
l.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var P=_.L(this.initialClasses),n=P.next();!n.done;n=P.next())(n=n.value)&&this.classList.add(n);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
l.prototype.handleSlottedContent=function(){for(var P=new Map,n=_.L(this.children),B=n.next();!B.done;B=n.next()){B=B.value;var d=void 0,J=(d=B.getAttribute("slot"))!=null?d:"children";(d=P.get(J))?d.push(B):P.set(J,[B]);if(!B.getAttribute("key")){var D=void 0,u=void 0;B.setAttribute("key",J+"_"+((u=(D=d)==null?void 0:D.length)!=null?u:0))}}P=_.L(P);for(n=P.next();!n.done;n=P.next())B=_.L(n.value),n=B.next().value,B=B.next().value,this.forwardKebabCaseProp(n,_.C(uwy,{slotContent:B}))};
l.prototype.connectedCallback=function(){var P=this;if(!k1O(this)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var n=_.L(this.attributes),B=n.next();!B.done;B=n.next())B=B.value,this.forwardKebabCaseProp(B.name,_.M04(B));this.handleSlottedContent();W.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){P.afterFirstPatch()});
this.hasAttached=!0}};
l.prototype.attributeChangedCallback=function(P,n,B){this.isInert||this.isUpdating||this.isConnected||P!=="class"||this.initialClasses.push.apply(this.initialClasses,_.QK(B.split(" ")))};
l.prototype.disconnectedCallback=function(){_.xc6(this)};
l.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var P,n;_.g14(this,_.C(_.Tb1,Object.assign({},this.props,{idomKey:(n=(P=this.__incrementalDOMData)==null?void 0:P.key)!=null?n:"yt-animated-rolling-number"})),!0)}catch(d){var B=d instanceof Error?d:new _.bP("Wiz rendering error");B.args||(B.args=[]);B.args.push("Error in deprecated web component wrapper");B.args.push("yt-animated-rolling-number");_.wv(B);throw d;}finally{this.updateQueued=this.isUpdating=!1}}};
l.prototype.enqueueUpdate=function(){var P=this;return _.g(function(n){if(W.synchronous)return P.update(),n.return();if(P.updateQueued)return n.return();P.updateQueued=!0;return n.return(Promise.resolve().then(function(){P.update()}))})};
l.prototype.notifyPath=function(){W.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.rc.Object.defineProperties(l,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var r=_.L(W.propNames),R=r.next(),y={};!R.done;y={prop$jscomp$107:void 0},R=r.next())y.prop$jscomp$107=R.value,Object.defineProperty(l.prototype,y.prop$jscomp$107,{set:function(P){return function(n){this.isInert||n===this.props[P.prop$jscomp$107]||(this.props[P.prop$jscomp$107]=n,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(y)});
customElements.define("yt-animated-rolling-number",l)};
XeP=function(W,l){return _.mL(W.entities,"booleanEntity",l)};
T7I=function(){return function(W){_.dm(_.MB("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:W}))}};
wee=function(W){switch(W){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}};
A1a=function(W,l,V){var f=_.fP(V);W&&l&&f&&W.getPlayerPromise().then(function(r){_.FGF(f)&&_.Ts();(new _.R4(r)).executeCommand(f,l);_.U("continue_playback_on_desktop_companion_click")||r.pauseVideo()})};
QwI=function(W){var l=_.Jy(),V;if(V=_.Y2("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var f;V=(f=V())==null?void 0:f.layoutId}else V=null;A1a(l,V,W)};
MYy=function(W){var l=_.Jy(),V;if(V=_.Y2("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var f;V=(f=V())==null?void 0:f.layoutId}else V=null;A1a(l,V,W)};
zA=function(W,l){var V=W<0?"-":"";W=Math.abs(W);var f=Math.floor(W/3600),r=Math.floor(W)%3600,R=Math.floor(r/60);r=Math.floor(r)%60;var y="";(l===void 0?0:l)&&(y="."+Math.round((W-Math.floor(W))*10));return f>0?V+f+":"+(R<10?"0"+R:""+R)+":"+(r<10?"0"+r:""+r)+y:V+R+":"+(r<10?"0"+r:""+r)+y};
Z2P=function(W){var l=W.match(/[^0-9:\.]/g);if(l&&l.length>0)return null;W=W.split(":");if(W.length===0||W.length>3)return null;l=1;for(var V=0;W.length>0;){var f=W.pop();if(f===void 0)break;var r=Number(f);if(f===""||isNaN(r))return null;V+=r*l;l*=60}return V};
O2M=function(W,l,V,f){W=Math.max(V,W);l=Math.min(l,f-V);W+l>f?(V=f,W=V-l):V=W+l;return{start:W,end:V}};
acv=function(W,l,V,f,r,R){W<V?W=V:W+r>f&&(W=f-r);l>f&&(l=f);l=Math.min(W+R,Math.max(W+r,l));return{start:W,end:l}};
z4P=function(W,l,V,f,r,R){l>f?l=f:l-r<V&&(l=V+r);W<V&&(W=V);W=Math.min(l-r,Math.max(l-R,W));return{start:W,end:l}};
N77=function(W){return _.U("web_transcript_cue_id_killswitch")?String(W):"ytd-transcript-renderer_"+W};
Y5$=function(W){return _.U("web_transcript_cue_id_killswitch")?!0:W.startsWith("ytd-transcript-renderer")};
xHy=function(W){var l=_.Jy(),V;if(V=_.Y2("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var f;V=(f=V())==null?void 0:f.layoutId}else V=null;A1a(l,V,W)};
e4P=function(W){W.style.height="auto";W.style.height=Math.min(W.scrollHeight||20,80)+"px"};
q5a=function(W,l,V){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:l,hasGradientBackground:V}}],insertByPositionInSection:{sectionTargetId:W,position:"INSERTION_POSITION_LAST"}}}]}}}};
h4P=function(W){var l=_.Jy(),V;V=(V=_.Y2("yt.www.ads.eventcache.getLastCompanionData"))?(V=V())&&V.layoutId:null;A1a(l,V,W)};
S5k=function(W){var l=_.Jy(),V;V=(V=_.Y2("yt.www.ads.eventcache.getLastCompanionData"))?(V=V())&&V.layoutId:null;A1a(l,V,W)};
EZP=function(W,l){l=l===void 0?!1:l;if(W.simpleText)W=[{text:W.simpleText}];else{var V;W=((V=W.runs)!=null?V:[]).map(function(f){return Object.assign({},f)})}if(l)for(l=_.L(W),V=l.next();!V.done;V=l.next())V.value.bold=!0;
return W};
$HM=function(W){var l=W.startEndTimeTemplate,V=W.startTimeUtcMillis;W=W.endTimeUtcMillis;if(l&&V&&W)return _.Bl(_.IcO(_.dE(l),Number(V),Number(W)))};
W7e=function(W,l){var V,f,r=W==null?void 0:(V=W.viewCount)==null?void 0:(f=V.videoViewCountRenderer)==null?void 0:f.shortViewCount;if(!l&&r)return r;var R,y;return W==null?void 0:(R=W.viewCount)==null?void 0:(y=R.videoViewCountRenderer)==null?void 0:y.viewCount};
la7=function(W,l){var V=W==null?void 0:W.relativeDateText;return!l&&V?[V,!0]:[W==null?void 0:W.dateText,!1]};
VeP=function(W,l,V,f,r){f=f===void 0?!0:f;r=r===void 0?"":r;var R=W7e(W,l),y=_.L(la7(W,l)),P=y.next().value;y=y.next().value;l=l?W==null?void 0:W.sponsorsOnlyFirstTimeLongText:W==null?void 0:W.sponsorsOnlyFirstTimeShortText;var n=[];V&&R&&n.push(R);!V&&y||!P||n.push(P);W=[W==null?void 0:W.subtitle].concat(_.QK(n),[l,W==null?void 0:W.stationName,W==null?void 0:W.rating,W?$HM(W):void 0,W==null?void 0:W.upNextProgramText,W==null?void 0:W.superTitleLink]).filter(function(B){return!!B});
V={runs:[]};for(R=0;R<W.length;R++)V.runs.push.apply(V.runs,_.QK(EZP(W[R],f))),R<W.length-1&&V.runs.push({text:" "+r+" ",bold:f});return V};
faO=function(W){if(W)return{runs:[{text:W,bold:!0}]}};
rOX=function(W){return W.filter(function(l){return!_.k(l,_.sb)})};
RyO=function(W){var l,V,f,r;if(W=W==null?void 0:(l=W.contents)==null?void 0:(V=l.twoColumnWatchNextResults)==null?void 0:(f=V.results)==null?void 0:(r=f.results)==null?void 0:r.contents){var R,y;return(y=(R=W.find(function(P){return!!P.videoPrimaryInfoRenderer}))==null?void 0:R.videoPrimaryInfoRenderer)==null?void 0:y.updatedMetadataEndpoint}};
te$=function(W,l){var V;return(V=W.sourceConfigs)==null?void 0:V.find(function(f){return f.videoId===l})};
svk=function(W){return W==="End of video"||W==="End of playlist"};
L7O=function(W){var l,V,f,r;return(l=W.getWatchNextResponse())==null?void 0:(V=l.contents)==null?void 0:(f=V.twoColumnWatchNextResults)==null?void 0:(r=f.playlist)==null?void 0:r.playlist};
yO$=function(W){var l,V,f,r,R,y;return(l=L7O(W))==null?void 0:(V=l.playlistButtons)==null?void 0:(f=V.menuRenderer)==null?void 0:(r=f.topLevelButtons)==null?void 0:(R=r[0])==null?void 0:(y=R.playlistLoopButtonRenderer)==null?void 0:y.playlistLoopStateEntityKey};
gky=function(W){var l=_.tY().resolve(_.dZ),V;return(l=(V=_.k(l.getAutoplayEndpoint(),_.Bh))==null?void 0:V.playlistId)&&l===W};
C7y=function(W,l,V,f,r){function R(){_.w8.cancelJob(Nb);var y=P7P(l,V/W.getPlaybackRate()),P=y.hours,n=y.minutes;y=(y.seconds*1E3||6E4)/W.getPlaybackRate();W.setVideoTimeLeft(nka(P,n));f&&W.getPlayerState()!==0&&W.setSleepTimerTimeLeft(nka(P,n,!0));(P>0||n>0)&&!r&&(Nb=_.a$(_.w8,R,y))}
_.w8.cancelJob(Nb);Nb=_.a$(_.w8,R)};
BaI=function(W,l,V){function f(){_.w8.cancelJob(cOP);var r=P7P(l,V),R=r.hours;r=r.minutes;var y=6E4/W.getPlaybackRate();if(R>0||r>0)W.setSleepTimerTimeLeft(nka(R,r,!0)),cOP=_.a$(_.w8,f,y)}
_.w8.cancelJob(cOP);cOP=_.a$(_.w8,f)};
JOP=function(W,l){var V=W.getVolume()/(l/500),f=function(r){_.w8.cancelJob(dI7);var R=Math.floor(r-V);W.setVolume(R,!1);R>0&&(dI7=_.a$(_.w8,function(){f(R)},500))};
_.w8.cancelJob(dI7);dI7=_.a$(_.w8,function(){f(W.getVolume())})};
DIa=function(W,l){_.w8.cancelJob(dI7);l&&W.syncVolume()};
UI$=function(){var W={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.wg("SLEEP_TIMER_DISRUPTED")}}}}};_.tY().resolve(_.s6).resolveCommand(W)};
uXI=function(W){return(W.getDuration()-W.getProgressState().current)*1E3};
P7P=function(W,l){W=W+l-(0,_.tv)();if(W<=0)return{hours:0,minutes:0,seconds:0};var V=new kIM(0,0,0,0,0,0,W);W=V.getHours();l=V.getMinutes();V=V.getSeconds();V!==0&&l++;l!==0&&l%60===0&&(W++,l=0);return{hours:W,minutes:l,seconds:V}};
nka=function(W,l,V){return W>0&&l>0?V?_.wg("TIME_LEFT_HOURS_MINUTES",{hours:W.toString(),minutes:l.toString()}):_.wg("TIME_HOURS_MINUTES",{hours:W.toString(),minutes:l.toString()}):W>0?V?_.Ag("TIME_LEFT_HOURS",W):_.Ag("TIME_HOURS",W):V?_.wg("TIME_LEFT_MINUTES",{minutes:l.toString()}):_.wg("TIME_MINUTES",{minutes:l.toString()})};
HMM=function(W,l){if(W.timelyActions)return W.timelyActions.find(function(V){var f;return((f=_.k(V,vkP))==null?void 0:f.cueRangeId)===l})};
K7I=function(W){var l=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.jh(W);W.keyMap_.forEach(function(V,f){_.Oz(l,f)||this.remove(f)},W)};
uwy.componentType=_.oi;F7I=function(W,l){W.reloadContinuationItemsCommandMatcher=l};
_.Y3=function(W,l){W.insertBefore(l,W.childNodes[0]||null)};
GIv=function(W){if(W>=48&&W<=57||W>=96&&W<=106||W>=65&&W<=90||_.HF&&W==0)return!0;switch(W){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 _.vF;default:return!1}};
bMa=function(W){if(W.altKey&&!W.ctrlKey||W.metaKey||W.keyCode>=112&&W.keyCode<=123)return!1;if(GIv(W.keyCode))return!0;switch(W.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!_.vF;default:return W.keyCode<166||W.keyCode>183}};
kIM=function(W,l,V,f,r,R,y){this.date=typeof W==="number"?new Date(W,l||0,V||1,f||0,r||0,R||0,y||0):new Date(W&&W.getTime?W.getTime():_.d5())};
_.Jj(kIM,_.eN);_.t=kIM.prototype;_.t.getHours=function(){return this.date.getHours()};
_.t.getMinutes=function(){return this.date.getMinutes()};
_.t.getSeconds=function(){return this.date.getSeconds()};
_.t.getMilliseconds=function(){return this.date.getMilliseconds()};
_.t.getUTCDay=function(){return this.date.getUTCDay()};
_.t.getUTCHours=function(){return this.date.getUTCHours()};
_.t.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.t.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.t.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.t.setHours=function(W){this.date.setHours(W)};
_.t.setMinutes=function(W){this.date.setMinutes(W)};
_.t.setSeconds=function(W){this.date.setSeconds(W)};
_.t.setMilliseconds=function(W){this.date.setMilliseconds(W)};
_.t.setUTCHours=function(W){this.date.setUTCHours(W)};
_.t.setUTCMinutes=function(W){this.date.setUTCMinutes(W)};
_.t.setUTCSeconds=function(W){this.date.setUTCSeconds(W)};
_.t.setUTCMilliseconds=function(W){this.date.setUTCMilliseconds(W)};
_.t.add=function(W){_.eN.prototype.add.call(this,W);W.hours&&this.setUTCHours(this.date.getUTCHours()+W.hours);W.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+W.minutes);W.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+W.seconds)};
_.t.JSC$11326_toIsoString=function(W){var l=_.eN.prototype.JSC$11326_toIsoString.call(this,W);return W?l+"T"+_.vs(this.getHours(),2)+":"+_.vs(this.getMinutes(),2)+":"+_.vs(this.getSeconds(),2):l+"T"+_.vs(this.getHours(),2)+_.vs(this.getMinutes(),2)+_.vs(this.getSeconds(),2)};
_.t.equals=function(W){return this.getTime()==W.getTime()};
_.t.toString=function(){return this.JSC$11326_toIsoString()};
_.t.clone=function(){var W=new kIM(this.date);W.firstDayOfWeek_=this.firstDayOfWeek_;W.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return W};
_.p$e=function(W){return _.GT({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:W}})};
i2X={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};okk=new _.uC("imageTileRenderer");var jvy=new _.uC("adGridCardCollectionViewModel");var Iak=new _.uC("carouselTitleViewModel");var iM7=new _.uC("ctaCarouselItemViewModel");var mII=new _.uC("textFieldViewModel");_.X$k=new _.uC("engagementPanelHeaderShowNavigationButtonCommand");var Ta7=new _.uC("hideEngagementPanelScrimAction");var w$I=new _.uC("setActivePanelItemAction");var AOy=new _.uC("showEngagementPanelScrimAction");var QvO=new _.uC("updateEngagementPanelAction");var Mee=new _.uC("updateSearchInVideoResultsAction");var ZMP=new _.uC("transcriptCueGroupRenderer");var OMP=new _.uC("transcriptCueRenderer");var aa7=new _.uC("transcriptFooterRenderer");var zya=new _.uC("engagementPanelAdSubtitleRenderer");var NaI=new _.uC("videoDescriptionFantasySectionViewModel");var YPy=new _.uC("deleteClipEngagementPanelCommand");var xI$=new _.uC("loopCommand");var eyP=new _.uC("changeCreatorEndscreenVisibilityCommand");var qPI=new _.uC("liveChatCallForQuestionsRenderer");var hyO=new _.uC("updateTimedMarkersSyncObserverCommand");var vkP=new _.uC("timelyActionViewModel");var SPy=new _.uC("timelyActionsOverlayViewModel");var EkM=new _.uC("repeatChapterCommand");var $Iy=new _.uC("watchPlayerOverflowMenuCommand");var WQa=new _.uC("compositeVideoOverlayRenderer");var l7a=new _.uC("sortFilterSubMenuRenderer");var VuI=new _.uC("switchListItemViewModel");var f77=new _.uC("inputComposerViewModel");var rLP=new _.uC("transcriptEditSegmentCommand");var R67=new _.uC("transcriptUpdateSegmentTextCommand");var tua=new _.uC("transcriptSearchBoxRenderer");var st7=new _.uC("transcriptSegmentListRenderer");var LQk=new _.uC("transcriptSegmentRenderer");_.yLa=new _.uC("updateDateTextAction");var gdM=new _.uC("updateTitleAction");var PMP=new _.uC("updateViewershipAction");var ndy=new _.uC("carouselLockupRenderer");var x3=new _.uC("expandableVideoDescriptionBodyRenderer");var CM7=new _.uC("videoDescriptionHeaderRenderer");var cLI=new _.uC("videoDescriptionYouchatSectionViewModel");_.eG=_.yS("kevlar_watch_page_horizontal_margin",24);_.BIP=_.yS("kevlar_watch_page_columns_top_padding",24);_.dFP=426+_.eG*2;_.qb=_.yS("kevlar_watch_two_column_width_threshold",1E3);_.JLP=_.eG*2;_.DF7=_.yS("kevlar_watch_secondary_width",402);_.UFX=_.yS("kevlar_watch_max_player_width",1280);_.ufy=_.yS("kevlar_watch_flexy_metadata_height",136);_.ku7=_.JLP+310+_.eG;_.vdI=_.JLP+360+_.eG;var HcM={PAUSE_CHAT:18};var KQk;var FQI;var h9=function(){return _.I.apply(this,arguments)||this};
_.v(h9,_.I);h9.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
h9.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var W=_.k(this.data.button,_.JJ);W&&(W.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.rc.Object.defineProperties(h9,{template:{configurable:!0,enumerable:!0,get:function(){if(FQI===void 0){var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;KQk===void 0&&(KQk=document.createElement("template"));var f=KQk;V.call(l,f.content.cloneNode(!0),W.content.firstChild);FQI=W}W=FQI;return W}}});
_.a([_.F(_.DS),_.z("design:type",Object)],h9.prototype,"ytLiveChatReduxBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],h9.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b({selectorArgs:["data.enabledEntityKey"],selector:H2a,observer:"onEnabledChange"}),_.z("design:type",Boolean)],h9.prototype,"enabled",void 0);_.a([_.b(),_.z("design:type",Object)],h9.prototype,"data",void 0);_.a([_.Vq({is:"yt-disableable-button-view-model",noInjection:!0})],h9);var Gu$;var bc7;var pGa=["transVert01","transVert02","transVert03"],od$="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),SG=function(){var W=_.I.apply(this,arguments)||this;W.emojiManager=_.vB;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};W.reactionBuckets=[];W.noEmojiIdentifier="NO_EMOJI";return W};
_.v(SG,_.I);_.t=SG.prototype;_.t.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.t.desktopFountainEmojiSizePxChanged=function(){_.I1(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.t.createUserReactionAnimation=function(W){this.createEmojiAnimation(W,!0)};
_.t.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var W;((W=this.data)==null?0:W.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.MB("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.QK(this.emojiContainer.children)).forEach(function(l){l.remove()})};
_.t.detached=function(){this.cleanupFountain()};
_.t.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var W;this.reactionBuckets=_.MC.unsafeClone((W=this.emojiFountainData)==null?void 0:W.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.t.processEmojiBucket=function(W){var l=this;if(this.reactionBuckets&&!(W>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var V=this.reactionBuckets[W];this.generateEmojiAnimations(V);if(W<this.reactionBuckets.length-1){var f;if(V==null?0:(f=V.duration)==null?0:f.seconds)this.emojiBucketTimerId=setTimeout(function(){l.processEmojiBucket(W+1)},Number(V.duration.seconds)*1E3)}}};
_.t.generateEmojiAnimations=function(W){var l=this,V=this.getRandomEmojiIdFromBucketWithOverride(W);if(V&&V!==this.noEmojiIdentifier){var f=0;W.targetEps?(f=this.linearInterpolateBounded(1,20,100,12,W.emojiSizeIndex||0),this.createEmojiAnimation(V,!1,W.emojiAnimationMs,f),f=this.getEmojiDelayMsFromTargetEps(W.targetEps)):(this.createEmojiAnimation(V),f=this.getEmojiDelayMsFromDistribution(W.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){l.generateEmojiAnimations(W)},f)}};
_.t.getRandomEmojiIdFromBucketWithOverride=function(W){if(!(W&&W.reactionsData&&W.reactionsData.length&&W.totalReactions))return this.noEmojiIdentifier;for(var l=W.totalReactions,V=1,f=_.L(W.reactionsData),r=f.next();!r.done;r=f.next())r=r.value,(r.reactionWeightOverride||r.reactionWeightOverride===0)&&r.reactionCount&&(l-=r.reactionCount,V-=r.reactionWeightOverride);f=!0;V<0&&(f=!1,l=W.totalReactions,V=1);if(f&&V>0&&l===0)if(V===1){r=0;for(var R=_.L(W.reactionsData),y=R.next();!y.done;y=R.next())y=
y.value,y.reactionCount&&y.reactionCount>0&&r++;r=1/r;R=_.L(W.reactionsData);for(y=R.next();!y.done;y=R.next())y.value.reactionWeightOverride=r}else for(r=1/(1-V),R=_.L(W.reactionsData),y=R.next();!y.done;y=R.next())y=y.value,y.reactionWeightOverride&&(y.reactionWeightOverride*=r);r=Math.random();R=0;y=_.L(W.reactionsData);for(var P=y.next();!P.done;P=y.next())if(P=P.value,P.reactionCount&&(R=(P.reactionWeightOverride||P.reactionWeightOverride===0)&&f?R+P.reactionWeightOverride:R+V*P.reactionCount/
l,R>r&&(P.reactionCount--,W.totalReactions--,P=this.reactionItemToEmojiString(P),P!==this.noEmojiIdentifier)))return P;return this.noEmojiIdentifier};
_.t.reactionItemToEmojiString=function(W){if(W.unicodeEmojiId)return W.unicodeEmojiId;if(W.emoteId)return W.emoteId;if(W.videoReactionType)switch(W.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.t.createEmojiAnimation=function(W,l,V,f){l=l===void 0?!1:l;this.lastEmojiRequestedForTesting=W;var r=W.startsWith("yt-icons:"),R=_.u5(this.emojiManager,W);if(R||r){var y=document.createElement("emoji");y.classList.add("yt-emoji-fountain-view-model");y.classList.add(pGa[Math.floor(Math.random()*pGa.length)]);var P=document.createElement("div");P.classList.add("yt-emoji-fountain-view-model");P.classList.add("horizontal-container");P.classList.add(od$[Math.floor(Math.random()*od$.length)]);l?(V=document.createElement("div"),
V.classList.add("user-reaction-bubble"),V.classList.add("yt-emoji-fountain-view-model"),P.appendChild(V)):(V&&(y.style.animationDuration=V+"ms",P.style.animationDuration=V+"ms"),f&&(y.style.width=f+"px",y.style.height=f+"px"));r?(r=document.createElement("yt-icon"),r.polymerController.icon=W,f&&(r.style.width=f+"px",r.style.height=f+"px"),W=r):W=this.emojiManager.createEmoji(R,!1);W.classList.add("yt-emoji-fountain-view-model");P.appendChild(W);y.appendChild(P);this.emojiContainer.appendChild(y);
y.addEventListener("animationend",function(){y.remove()});
var n,B;if((n=this.data)==null?0:(B=n.loggingDirectives)==null?0:B.trackingParams)l=l?_.GY(183501):_.GY(183500),KNM(this.data.loggingDirectives.trackingParams,l),_.sV8(l);setTimeout(function(){y&&y.remove()},2E3)}};
_.t.getEmojiDelayMsFromDistribution=function(W){return Math.random()*(W||1)*1E3};
_.t.getEmojiDelayMsFromTargetEps=function(W){return Math.random()*2*(1/W)*1E3};
_.t.linearInterpolateBounded=function(W,l,V,f,r){r=Math.min(Math.max(r,W),V);return(l*(V-r)+f*(r-W))/(V-W)};
SG.prototype.onEmojiFountainDataEntityUpdate=SG.prototype.onEmojiFountainDataEntityUpdate;SG.prototype.desktopFountainEmojiSizePxChanged=SG.prototype.desktopFountainEmojiSizePxChanged;SG.prototype.isActiveChanged=SG.prototype.isActiveChanged;_.a([_.b(),_.z("design:type",_.UB)],SG.prototype,"emojiManager",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],SG.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.DS),_.z("design:type",Object)],SG.prototype,"ytLiveChatReduxBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],SG.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],SG.prototype,"data",void 0);_.a([_.b({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(W,l){return _.mL(W.entities,"emojiFountainDataEntity",l)}}),
_.z("design:type",Object)],SG.prototype,"emojiFountainData",void 0);_.a([_.b(),_.z("design:type",Boolean)],SG.prototype,"isActive",void 0);_.a([_.TS("isActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SG.prototype,"isActiveChanged",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],SG.prototype,"isDarkTheme",void 0);_.a([_.b(),_.z("design:type",String)],SG.prototype,"lastEmojiRequestedForTesting",void 0);
_.a([_.b({value:function(){return _.yS("desktop_fountain_emoji_size_px",20)}}),
_.z("design:type",Number)],SG.prototype,"desktopFountainEmojiSizePx",void 0);_.a([_.TS("desktopFountainEmojiSizePx"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SG.prototype,"desktopFountainEmojiSizePxChanged",null);_.a([_.Aa("#emoji-container"),_.z("design:type",HTMLElement)],SG.prototype,"emojiContainer",void 0);
_.a([_.TS("emojiFountainData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SG.prototype,"onEmojiFountainDataEntityUpdate",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],SG);
_.Z(SG,"yt-emoji-fountain-view-model",function(){if(bc7===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;Gu$===void 0&&(Gu$=document.createElement("template"));var f=Gu$;V.call(l,f.content.cloneNode(!0),W.content.firstChild);bc7=W}W=bc7;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var jtI;var I7k;var Et=function(){return _.I.apply(this,arguments)||this};
_.v(Et,_.I);Et.prototype.onChoiceChanged=function(){this.data&&_.I1(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
Et.prototype.onChoiceChanged=Et.prototype.onChoiceChanged;_.a([_.b(),_.z("design:type",Object)],Et.prototype,"data",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Et.prototype,"onChoiceChanged",null);_.a([_.A({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],Et);
_.Z(Et,"yt-live-chat-banner-poll-choice",function(){if(I7k===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;jtI===void 0&&(jtI=document.createElement("template"));var f=jtI;V.call(l,f.content.cloneNode(!0),W.content.firstChild);I7k=W}W=I7k;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var ica;var mFa;var $3=function(){var W=_.I.apply(this,arguments)||this;W.modern=_.U("web_button_rework_with_live");W.small=!1;return W};
_.v($3,_.I);$3.prototype.computeIsSmall=function(){var W;return((W=this.buttonOverrides)==null?void 0:W.size)==="S"};
$3.prototype.computeId=function(){return this.data&&this.data.targetId};
_.a([_.F(_.Uq.YtLiveChatTooltipTargetingBehavior),_.z("design:type",Object)],$3.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.a([_.b({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.z("design:type",String)],$3.prototype,"id",void 0);_.a([_.b(),_.z("design:type",Object)],$3.prototype,"buttonOverrides",void 0);_.a([_.b(),_.z("design:type",Object)],$3.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],$3.prototype,"modern",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.z("design:type",Object)],$3.prototype,"small",void 0);_.a([_.A({disableElementRegistration:!0,is:"yt-live-chat-button"})],$3);
_.Z($3,"yt-live-chat-button",function(){if(mFa===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;ica===void 0&&(ica=document.createElement("template"));var f=ica;V.call(l,f.content.cloneNode(!0),W.content.firstChild);mFa=W}W=mFa;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var XGe;var TIX;var Wi=function(){var W=_.I.apply(this,arguments)||this;W.inCollapsedBanner=!1;W.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};W.questionButtonOverrides={style:"mono",type:"filled"};return W};
_.v(Wi,_.I);_.t=Wi.prototype;_.t.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]]"}}}}}};
_.t.onContextMenuButtonClick=function(W){this.ytLiveChatItemBehavior.showContextMenu(W)};
_.t.onYtRendererstamperFinished=function(){this.menuButton=_.GS(this.hostElement).querySelector("#menu-button")};
_.t.dataChanged=function(){var W,l;if((l=_.k((W=this.data)==null?void 0:W.overflowMenuButton,_.CE))==null?0:l.command)this.data.contextMenuEndpoint=_.k(this.data.overflowMenuButton,_.CE).command};
_.t.onButtonClick=function(){var W,l=_.k((W=this.data)==null?void 0:W.askQuestionButton,_.CE);if(l){if(l.trackingParams&&(W=_.zG(l.trackingParams))){var V=_.Wh();V&&_.C0(V,W)}_.FN(this.hostElement,"innertube-command",l.command)}};
Wi.prototype.onYtRendererstamperFinished=Wi.prototype.onYtRendererstamperFinished;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Wi.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DS),_.z("design:type",Object)],Wi.prototype,"ytLiveChatReduxBehavior",void 0);_.a([_.F(_.HB.YtLiveChatItemBehavior),_.z("design:type",_.Kf)],Wi.prototype,"ytLiveChatItemBehavior",void 0);_.a([_.b({observer:"dataChanged"}),_.z("design:type",Object)],Wi.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Wi.prototype,"inCollapsedBanner",void 0);_.a([_.b(),_.z("design:type",Object)],Wi.prototype,"buttonOverrides",void 0);_.a([_.b(),_.z("design:type",Object)],Wi.prototype,"questionButtonOverrides",void 0);_.a([_.XI("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wi.prototype,"onYtRendererstamperFinished",null);
_.a([_.A({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Wi);
_.Z(Wi,"yt-live-chat-call-for-questions-renderer",function(){if(TIX===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;XGe===void 0&&(XGe=document.createElement("template"));var f=XGe;V.call(l,f.content.cloneNode(!0),W.content.firstChild);TIX=W}W=TIX;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var wGa={};wGa.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 W=this;window.requestAnimationFrame(function(){W.restoreFocusNode_||(W.restoreFocusNode_=document.activeElement);var l=_.HtL(W.hostElement);l.length&&l[l.length-1].focus()})},
isAttachedChanged_:function(W,l){W?this.focusChild_():l&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(W){this.hidden||_.d_(W).indexOf(this.hostElement)!==-1||(W.stopPropagation(),this.focusChild_())}};var ALv;var QtI;var le=function(){return _.I.apply(this,arguments)||this};
_.v(le,_.I);le.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
le.prototype.onClick=function(W){W.target!==this.confirmButton&&W.target!==this.cancelButton&&(this.hidden=!0)};
_.a([_.Aa("#confirm_button"),_.z("design:type",Object)],le.prototype,"confirmButton",void 0);_.a([_.Aa("#cancel_button"),_.z("design:type",Object)],le.prototype,"cancelButton",void 0);_.a([_.b(),_.z("design:type",Muv)],le.prototype,"data",void 0);_.a([_.b({value:!0,reflectToAttribute:!0}),_.z("design:type",Boolean)],le.prototype,"hidden",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],le.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(wGa.YtLiveChatDialogBehavior),_.z("design:type",Object)],le.prototype,"ytLiveChatDialogBehavior",void 0);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],le);
var Muv=_.Z(le,"yt-live-chat-dialog-renderer",function(){if(QtI===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;ALv===void 0&&(ALv=document.createElement("template"));var f=ALv;V.call(l,f.content.cloneNode(!0),W.content.firstChild);QtI=W}W=QtI;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var Zca;var OcI,a7M=function(){if(OcI!==void 0)return OcI;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;Zca===void 0&&(Zca=document.createElement("template"));var f=Zca;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return OcI=W};var z6P;var NIP;var Vh=function(){var W=_.I.apply(this,arguments)||this;W.tooltip=null;W.data=null;W.id="";W.active=!1;W.icon="";W.disabled=!1;W.showTooltip=!1;W.useToggledActiveState=!0;W.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return W};
_.v(Vh,_.I);_.t=Vh.prototype;
_.t.dataChanged=function(){var W;((W=this.data)==null?0:W.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,_.j3)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var l;if((l=this.data)==null?0:l.disabled)this.disabled=!0};
_.t.computeId=function(W){return W};
_.t.computeIcon=function(W,l){if(!W)return"";if(this.useToggledActiveState)return"yt-icons:"+W.toLowerCase();var V,f;return l&&((V=this.data)==null?0:(f=V.toggledIcon)==null?0:f.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+W.toLowerCase()};
_.t.logPDGEntryPoint=function(){_.$zz(_.X2("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")};
_.t.immediatelyShowTooltip=function(){var W=_.GS(this.hostElement).querySelector("#tooltip");W.animationDelay=0;W.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};W.show()};
_.t.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.t.onClick=function(W){var l;((l=this.data)==null?0:l.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(),W.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.FN(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.t.computeShowTooltip=function(W,l){return!!(W&&W.tooltip&&l)};
_.t.maybeUpdateTooltipText=function(){var W=this,l;if((l=this.data)==null?0:l.tooltip){var V=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.j3)(W.tooltip).textContent=V},250)}};
_.t.handleLiveChatActions=function(W){var l=this;W.length&&(this.id!=="creator"&&this.id!=="product-picker"||W.forEach(function(V){(V=l.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",V))&&V.durationSec===V.fullDurationSec&&l.startBubble(l.colorFromDecimal(V.startBackgroundColor))}))};
_.t.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.t.startBubble=function(W){_.I1(this.hostElement,{"--yt-live-chat-monetization-button-glow":W});this.hostElement.setAttribute("bubble","")};
_.t.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.t.colorFromDecimal=function(W){typeof W==="string"&&(W=Number(W));return"rgba("+[W>>16&255,W>>8&255,W&255,(W>>24&255)/255].join()+")"};
Vh.prototype.onAnimationEnd=Vh.prototype.onAnimationEnd;Vh.prototype.disabledChanged=Vh.prototype.disabledChanged;Vh.prototype.dataChanged=Vh.prototype.dataChanged;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Vh.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Vh.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Uq.YtLiveChatTooltipTargetingBehavior),_.z("design:type",Object)],Vh.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Vh.prototype,"data",void 0);_.a([_.b({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.z("design:type",Object)],Vh.prototype,"id",void 0);_.a([_.b({notify:!0,reflectToAttribute:!0}),_.z("design:type",Object)],Vh.prototype,"active",void 0);
_.a([_.b({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.z("design:type",Object)],Vh.prototype,"icon",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Vh.prototype,"disabled",void 0);_.a([_.b({computed:"computeShowTooltip(data, disabled)"}),_.z("design:type",Object)],Vh.prototype,"showTooltip",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Vh.prototype,"useToggledActiveState",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vh.prototype,"dataChanged",null);_.a([_.TS("disabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vh.prototype,"disabledChanged",null);_.a([_.XI("animationend"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Vh.prototype,"onAnimationEnd",null);
_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Vh);
_.Z(Vh,"yt-live-chat-icon-toggle-button-renderer",function(){if(NIP===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;z6P===void 0&&(z6P=document.createElement("template"));var f=z6P;V.call(l,f.content.cloneNode(!0),W.content.firstChild);NIP=W}W=NIP;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var Yxa;var xF7;var fK=function(){return _.I.apply(this,arguments)||this};
_.v(fK,_.I);fK.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.a([_.b(),_.z("design:type",Object)],fK.prototype,"data",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],fK.prototype,"ytRendererstamperBehavior",void 0);_.a([_.A({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],fK);
_.Z(fK,"yt-live-chat-message-input-prompt-header-renderer",function(){if(xF7===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;Yxa===void 0&&(Yxa=document.createElement("template"));var f=Yxa;V.call(l,f.content.cloneNode(!0),W.content.firstChild);xF7=W}W=xF7;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var e6I;var qxX;var h67;var SxI;var EdO;var $Fk;var WYX=function(){return _.I.apply(this,arguments)||this};
_.v(WYX,_.I);_.a([_.b(),_.z("design:type",Object)],WYX.prototype,"data",void 0);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],WYX);
_.Z(WYX,"yt-live-chat-message-subtext-renderer",function(){if($Fk===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;EdO===void 0&&(EdO=document.createElement("template"));var f=EdO;V.call(l,f.content.cloneNode(!0),W.content.firstChild);$Fk=W}W=$Fk;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var rr=function(){var W=_.I.apply(this,arguments)||this;W.subtextOnBottom=!1;W.buttonOverrides={style:"mono",type:"tonal"};return W};
_.v(rr,_.I);rr.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"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],rr.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],rr.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],rr.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],rr.prototype,"subtextOnBottom",void 0);_.a([_.b(),_.z("design:type",Object)],rr.prototype,"buttonOverrides",void 0);
_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],rr);
_.Z(rr,"yt-live-chat-message-renderer",function(){if(SxI===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;h67===void 0&&(h67=document.createElement("template"));var f=h67;V.call(l,f.content.cloneNode(!0),W.content.firstChild);SxI=W}W=SxI;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var lla;var VtI;var Rx=function(){var W=_.I.apply(this,arguments)||this;W.isRemovable=!1;W.hasPrefilledText=!1;W.isInputDirty=!1;W.overCharacterLimit=!1;W.underCharacterLimit=!1;W.showErrorMessage=!1;return W};
_.v(Rx,_.I);_.t=Rx.prototype;_.t.computeId=function(){return this.data.id};
_.t.computeInputData=function(){return this.data.inputData};
_.t.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.t.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.t.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.t.getLiveChatRichMessageInput=function(){return _.GS(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.t.clearInput=function(){_.GS(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.t.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.t.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.t.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.t.handleTextInputCharCountChanged=function(W){W=W.detail&&W.detail.characterCount;W!==void 0&&(this.characterCount=W,W!==0&&(this.isInputDirty=!0))};
_.t.onInputFocusOut=function(){this.isInputDirty=!0};
_.t.onClickCloseButton=function(){_.FN(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Rx.prototype.handleTextInputCharCountChanged=Rx.prototype.handleTextInputCharCountChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Rx.prototype,"data",void 0);_.a([_.b({computed:"computeId(data.id)"}),_.z("design:type",String)],Rx.prototype,"id",void 0);_.a([_.b({computed:"computeInputData(data.inputData)"}),_.z("design:type",Object)],Rx.prototype,"inputData",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.z("design:type",Object)],Rx.prototype,"isRemovable",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.z("design:type",Object)],Rx.prototype,"hasPrefilledText",void 0);_.a([_.b({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.z("design:type",Number)],Rx.prototype,"charactersRemaining",void 0);
_.a([_.b(),_.z("design:type",Number)],Rx.prototype,"characterCount",void 0);_.a([_.b(),_.z("design:type",Object)],Rx.prototype,"isInputDirty",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.z("design:type",Object)],Rx.prototype,"overCharacterLimit",void 0);_.a([_.b({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.z("design:type",Object)],Rx.prototype,"underCharacterLimit",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.z("design:type",Object)],Rx.prototype,"showErrorMessage",void 0);_.a([_.XI("yt-live-chat-text-input-field-renderer-character-count-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Rx.prototype,"handleTextInputCharCountChanged",null);
_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Rx);
_.Z(Rx,"yt-live-chat-poll-editor-input",function(){if(VtI===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;lla===void 0&&(lla=document.createElement("template"));var f=lla;V.call(l,f.content.cloneNode(!0),W.content.firstChild);VtI=W}W=VtI;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var flP;var rsP;var RKP={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},tN=function(){var W=_.I.apply(this,arguments)||this;W.modern=_.U("web_button_rework_with_live");W.closeButtonOverrides={iconPosition:"icon-only"};W.startButtonOverrides={style:"mono",type:"filled"};W.addOptionButtonOverrides={style:"mono",type:"text"};return W};
_.v(tN,_.I);_.t=tN.prototype;
_.t.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"}}}}};
_.t.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var W;_.k((W=this.data)==null?void 0:W.startButton,_.CE)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.t.computeId=function(){return this.data&&this.data.id||""};
_.t.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.t.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.t.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.t.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.t.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var W=0;W<this.pollEditorInfoWithDefaults.minPollOptions;W++)this.addPollOptionData()};
_.t.getIsValidPoll=function(){var W=this;if(!this.pollEditorInfoWithDefaults)return!1;var l=this.pollEditorInfoWithDefaults,V=l.minPollOptionChars,f=l.maxPollOptionChars,r=l.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>l.maxPollQuestionChars)return!1;l=_.GS(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(l).every(function(R,y){R=R.characterCount;!R&&r[y]&&(R=W.ytRendererBehavior.getSimpleString(r[y]).length);return R!==void 0&&R>=V&&R<=f})};
_.t.isValidPollChanged=function(){var W;_.k((W=this.data)==null?void 0:W.startButton,_.CE)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.t.addPollOptionData=function(){var W=this.pollEditorInfoWithDefaults,l=W.maxPollOptionChars,V=W.optionPlaceholderText,f=W.customOptionPlaceholderText,r=W.pollOptionData;this.currentNumPollOptions>=W.maxPollOptions||(W={liveChatPollOptionInput:{inputData:{placeholder:f[this.currentNumPollOptions]||V,maxCharacterLimit:l},maxCharacterLimit:l,minCharacterLimit:W.minPollOptionChars,hasPrefilledText:!!f[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=W.minPollOptions}},r.charCountErrorText&&
(W.liveChatPollOptionInput.charCountErrorText=r.charCountErrorText),r.charsRemainingAltLabel&&(W.liveChatPollOptionInput.charsRemainingAltLabel=r.charsRemainingAltLabel),r.removeOptionAltText&&(W.liveChatPollOptionInput.removeOptionAltText=r.removeOptionAltText),this.push("pollOptionsData",W),r=Array.from(_.GS(_.GS(this.hostElement).querySelector("#poll-options")).children),r.forEach(function(R,y){R.polymerController.set("data.id",y)}),_.GS(r[r.length-1]).querySelector("#input").focus())};
_.t.getPollOptionInputValues=function(){var W=this,l=[],V=_.GS(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),f=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(V).forEach(function(r,R){var y=null;r=r.getLiveChatRichMessageInput();var P;(r==null?0:(P=r.textSegments)==null?0:P.length)?y=_.fv(r):f[R]&&(y=W.formattedStringToLiveChatRichMessageInput(f[R]));l.push(y)});
return l};
_.t.requestCreateAndStartPoll=function(W){var l=this.getPollOptionInputValues();if(!l.some(function(f){return!f})){l={optionText:l};
var V=_.GS(_.GS(this.hostElement).querySelector("#poll-question")).firstChild;V&&V.liveChatRichMessageInput&&(l.questionText=_.fv(V.liveChatRichMessageInput));_.pN(this.hostElement,[W,l])}};
_.t.selectedChanged=function(){if(this.selected){var W=_.GS(_.GS(this.hostElement).querySelector("#start-button")).firstElementChild;if(W){var l;(l=_.GS(W).querySelector("#button")||_.bm(W).querySelector("button"))==null||l.focus()}}};
_.t.handleTextInputChanged=function(W){var l;((l=W.target)==null?void 0:l.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=W.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.t.handleStartButtonAction=function(W){W.detail.actionName==="yt-service-request"&&(W.stopPropagation(),(W=W.detail.args[1])&&this.requestCreateAndStartPoll(W))};
_.t.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.t.handleServiceRequestCompleted=function(W){this.createPollRequestInFlight=!1;(W=W.detail&&W.detail.data)&&W.success&&(_.FN(this.hostElement,"picker-cancelled"),_.Gt(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.t.onCloseClick=function(){_.FN(this.hostElement,"picker-cancelled");_.Gt(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.t.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.t.handlePollEditorInputClosed=function(W){var l=this.pollOptionsData.findIndex(function(V){return V.liveChatPollOptionInput.id===W.detail.id});
this.splice("pollOptionsData",l,1);this.isValidPoll=this.getIsValidPoll()};
_.t.onPickerCancelled=function(){this.reset()};
_.t.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var W=_.GS(_.GS(this.hostElement).querySelector("#poll-question")).firstChild;W&&W.setLiveChatRichMessageInput(null);if(W=_.GS(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){W=_.L(Array.from(W));for(var l=W.next();!l.done;l=W.next())l.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.t.formattedStringToLiveChatRichMessageInput=function(W){return W.simpleText?{text_segments:[W.simpleText]}:{text_segments:W.runs}};
_.rc.Object.defineProperties(tN.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(RKP,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
tN.prototype.onPickerCancelled=tN.prototype.onPickerCancelled;tN.prototype.handlePollEditorInputClosed=tN.prototype.handlePollEditorInputClosed;tN.prototype.handleServiceRequestCompleted=tN.prototype.handleServiceRequestCompleted;tN.prototype.handleServiceRequestSent=tN.prototype.handleServiceRequestSent;tN.prototype.handleTextInputChanged=tN.prototype.handleTextInputChanged;tN.prototype.selectedChanged=tN.prototype.selectedChanged;tN.prototype.isValidPollChanged=tN.prototype.isValidPollChanged;
tN.prototype.shouldInitializePollChanged=tN.prototype.shouldInitializePollChanged;tN.prototype.dataChanged=tN.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],tN.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],tN.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],tN.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],tN.prototype,"modern",void 0);
_.a([_.b(),_.z("design:type",Object)],tN.prototype,"closeButtonOverrides",void 0);_.a([_.b(),_.z("design:type",Object)],tN.prototype,"startButtonOverrides",void 0);_.a([_.b(),_.z("design:type",Object)],tN.prototype,"addOptionButtonOverrides",void 0);_.a([_.b({computed:"computeId(data.id)",reflectToAttribute:!0}),_.z("design:type",String)],tN.prototype,"id",void 0);_.a([_.b({value:function(){return[]}}),
_.z("design:type",Array)],tN.prototype,"pollOptionsData",void 0);_.a([_.G("pollEditorInfoWithDefaults"),_.z("design:type",Object),_.z("design:paramtypes",[])],tN.prototype,"pollQuestionData",null);_.a([_.b({value:0}),_.z("design:type",Number)],tN.prototype,"pollQuestionCharacterCount",void 0);_.a([_.G("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.z("design:type",Object),_.z("design:paramtypes",[])],tN.prototype,"pollQuestionCharactersRemaining",null);
_.a([_.b({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.z("design:type",Boolean)],tN.prototype,"overQuestionCharacterLimit",void 0);_.a([_.G("data.pollEditorInfo"),_.z("design:type",Object),_.z("design:paramtypes",[])],tN.prototype,"pollEditorInfoWithDefaults",null);_.a([_.b({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.z("design:type",Number)],tN.prototype,"currentNumPollOptions",void 0);
_.a([_.b({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.z("design:type",Boolean)],tN.prototype,"hasMaxNumPollOptions",void 0);_.a([_.G("pollEditorInfoWithDefaults","pollOptionsData"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],tN.prototype,"shouldInitializePoll",null);_.a([_.b(),_.z("design:type",Object)],tN.prototype,"isValidPoll",void 0);
_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],tN.prototype,"createPollRequestInFlight",void 0);_.a([_.b(),_.z("design:type",Object)],tN.prototype,"selected",void 0);_.a([_.b({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.z("design:type",Boolean)],tN.prototype,"showQuestionErrorMessage",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tN.prototype,"dataChanged",null);_.a([_.TS("shouldInitializePoll"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tN.prototype,"shouldInitializePollChanged",null);_.a([_.TS("isValidPoll"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tN.prototype,"isValidPollChanged",null);
_.a([_.TS("selected"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tN.prototype,"selectedChanged",null);_.a([_.XI("yt-live-chat-text-input-field-renderer-character-count-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],tN.prototype,"handleTextInputChanged",null);
_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tN.prototype,"handleServiceRequestSent",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],tN.prototype,"handleServiceRequestCompleted",null);
_.a([_.XI("yt-live-chat-poll-editor-input-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],tN.prototype,"handlePollEditorInputClosed",null);_.a([_.XI("picker-cancelled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tN.prototype,"onPickerCancelled",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],tN);
_.Z(tN,"yt-live-chat-poll-editor-panel-renderer",function(){if(rsP===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;flP===void 0&&(flP=document.createElement("template"));var f=flP;V.call(l,f.content.cloneNode(!0),W.content.firstChild);rsP=W}W=rsP;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var ttP;var sU7;var s9=function(){return _.I.apply(this,arguments)||this};
_.v(s9,_.I);s9.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
s9.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.rc.Object.defineProperties(s9.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var W,l;return(W=this.data)==null?void 0:(l=W.title)==null?void 0:l.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var W;return _.fP((W=this.data)==null?void 0:W.onTapCommand)}}});
_.a([_.F(_.qq.YtEndpointBehavior),_.z("design:type",Object)],s9.prototype,"ytEndpointBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],s9.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],s9.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],s9.prototype,"itemId",null);
_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],s9.prototype,"hasPromotion",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],s9.prototype,"innertubeCommand",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],s9);
_.Z(s9,"yt-live-chat-product-picker-panel-item-view-model",function(){if(sU7===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;ttP===void 0&&(ttP=document.createElement("template"));var f=ttP;V.call(l,f.content.cloneNode(!0),W.content.firstChild);sU7=W}W=sU7;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var LYk;var ys7;var LK=function(){var W=_.I.apply(this,arguments)||this;W.id="product-picker";W.selected=!1;W.closeButtonId="close-button";W.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return W};
_.v(LK,_.I);_.t=LK.prototype;_.t.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.t.observeSelected=function(){this.selected&&this.hostElement.focus();var W=_.GS(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");W.length&&W[0].focus()};
_.t.onCloseBuyFlow=function(){_.FN(this.hostElement,"picker-cancelled")};
_.t.onCloseClick=function(){_.FN(this.hostElement,"picker-cancelled");var W;((W=this.data)==null?0:W.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.k(this.data.closeButton,_.JJ))};
_.t.onCloseEngageWithAudienceEditorPanels=function(){_.FN(this.hostElement,"picker-cancelled")};
LK.prototype.observeSelected=LK.prototype.observeSelected;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],LK.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],LK.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],LK.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],LK.prototype,"id",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],LK.prototype,"selected",void 0);_.a([_.b(),_.z("design:type",Object)],LK.prototype,"closeButtonId",void 0);_.a([_.TS("selected"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LK.prototype,"observeSelected",null);
_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],LK);
_.Z(LK,"yt-live-chat-product-picker-panel-view-model",function(){if(ys7===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;LYk===void 0&&(LYk=document.createElement("template"));var f=LYk;V.call(l,f.content.cloneNode(!0),W.content.firstChild);ys7=W}W=ys7;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var gNa;var PhP;var yh=function(){var W=_.I.apply(this,arguments)||this;W.iconId="";W.icon="";W.disabled=!1;W.systemIcons=_.U("kevlar_system_icons");return W};
_.v(yh,_.I);_.t=yh.prototype;_.t.computeIconId=function(W){return W&&W.icon&&W.icon.iconType?W.icon.iconType.toLowerCase():""};
_.t.computeIcon=function(W){return W&&W.icon&&W.icon.iconType?(W=W.icon.iconType.toLowerCase(),(W.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+W):""};
_.t.computeDisabled=function(W){return!!W};
_.t.computeCommand=function(W,l){return l?void 0:W};
_.t.computeTooltip=function(W,l){return l&&W?W:""};
_.t.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.rc.Object.defineProperties(yh.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var W="",l,V,f;if((l=this.data)==null?0:(V=l.text)==null?0:(f=V.runs)==null?0:f.length)W=this.data.text.runs[0].text||"";else{var r,R;if((r=this.data)==null?0:(R=r.text)==null?0:R.simpleText)W=this.data.text.simpleText}var y,P,n;if((y=this.data)==null?0:(P=y.subtext)==null?0:(n=P.runs)==null?0:n.length)W&&(W+=". "),W+=this.data.subtext.runs[0].text||"";else{var B,d;if((B=this.data)==null?0:(d=B.subtext)==
null?0:d.simpleText)W&&(W+=". "),W+=this.data.subtext.simpleText}return W}}});
_.a([_.F(_.qq.YtEndpointBehavior),_.z("design:type",Object)],yh.prototype,"ytEndpointBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],yh.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],yh.prototype,"data",void 0);_.a([_.b({computed:"computeIconId(data)",reflectToAttribute:!0}),_.z("design:type",Object)],yh.prototype,"iconId",void 0);
_.a([_.b({computed:"computeIcon(data)",reflectToAttribute:!0}),_.z("design:type",Object)],yh.prototype,"icon",void 0);_.a([_.b({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.z("design:type",Object)],yh.prototype,"disabled",void 0);_.a([_.b({computed:"computeCommand(data.command, disabled)"}),_.z("design:type",Object)],yh.prototype,"command",void 0);_.a([_.b({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.z("design:type",String)],yh.prototype,"tooltip",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yh.prototype,"systemIcons",void 0);_.a([_.G("data.text","data.subtext"),_.b(),_.z("design:type",String),_.z("design:paramtypes",[])],yh.prototype,"ariaLabel",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],yh);
_.Z(yh,"yt-live-chat-product-button-renderer",function(){if(PhP===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;gNa===void 0&&(gNa=document.createElement("template"));var f=gNa;V.call(l,f.content.cloneNode(!0),W.content.firstChild);PhP=W}W=PhP;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var nNk;var Cha;var gr=function(){var W=_.I.apply(this,arguments)||this;W.selected=!1;W.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 W};
_.v(gr,_.I);_.t=gr.prototype;_.t.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"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.t.computeId=function(W){return W.id||""};
_.t.onCloseClick=function(){_.FN(this.hostElement,"picker-cancelled")};
_.t.observeSelected=function(){this.selected&&this.hostElement.focus();var W=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");W.length&&W[0].focus()};
_.t.onCloseBuyFlow=function(){_.FN(this.hostElement,"picker-cancelled")};
_.t.onCloseEngageWithAudienceEditorPanels=function(){_.FN(this.hostElement,"picker-cancelled")};
gr.prototype.observeSelected=gr.prototype.observeSelected;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],gr.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],gr.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],gr.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],gr.prototype,"data",void 0);
_.a([_.b({computed:"computeId(data)",reflectToAttribute:!0}),_.z("design:type",String)],gr.prototype,"id",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gr.prototype,"selected",void 0);_.a([_.TS("selected"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gr.prototype,"observeSelected",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],gr);
_.Z(gr,"yt-live-chat-product-picker-renderer",function(){if(Cha===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;nNk===void 0&&(nNk=document.createElement("template"));var f=nNk;V.call(l,f.content.cloneNode(!0),W.content.firstChild);Cha=W}W=Cha;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var csa;var BOa;var dCv;var JsP;var Pi=function(){return _.I.apply(this,arguments)||this};
_.v(Pi,_.I);Pi.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()};
Pi.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
Pi.prototype.created=function(){this.ids={background:_.DZ(),maskOne:_.DZ(),maskTwo:_.DZ(),gradient:_.DZ(),largeBackground:_.DZ(),largeGradientOne:_.DZ(),largeGradientTwo:_.DZ(),largeGradientPath:_.DZ()}};
Pi.prototype.maybeLoadAnimationBackground=Pi.prototype.maybeLoadAnimationBackground;_.a([_.b({value:!1}),_.z("design:type",Boolean)],Pi.prototype,"useLargeBackground",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],Pi.prototype,"useAnimationBackground",void 0);_.a([_.b({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.z("design:type",Boolean)],Pi.prototype,"useRegularBackground",void 0);
_.a([_.b(),_.z("design:type",Object)],Pi.prototype,"ids",void 0);_.a([_.b(),_.z("design:type",Object)],Pi.prototype,"lottieAnimation",void 0);_.a([_.Aa("#animation-background"),_.z("design:type",HTMLDivElement)],Pi.prototype,"animationBackground",void 0);_.a([_.TS("useAnimationBackground"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Pi.prototype,"maybeLoadAnimationBackground",null);
_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Pi);
_.Z(Pi,"yt-live-interactivity-component-background",function(){if(JsP===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;dCv===void 0&&(dCv=document.createElement("template"));var f=dCv;V.call(l,f.content.cloneNode(!0),W.content.firstChild);JsP=W}W=JsP;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var nK=function(){var W=_.I.apply(this,arguments)||this;W.characterCount=0;W.showInputErrorMessage=!1;W.startQnaRequestInFlight=!1;W.modern=_.U("web_button_rework_with_live");W.buttonOverrides={style:"mono",type:"filled"};W.closeButtonOverrides={iconPosition:"icon-only"};W.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return W};
_.v(nK,_.I);_.t=nK.prototype;
_.t.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]]"}}}}}};
_.t.onCharacterCountChanged=function(W){var l,V,f,r,R=(V=_.k(this==null?void 0:(l=this.data)==null?void 0:l.creatorCallForQuestions,qPI))==null?void 0:(f=V.inputField)==null?void 0:(r=f.liveChatTextInputFieldRenderer)==null?void 0:r.maxCharacterLimit,y,P;R!=null&&(W==null?void 0:(y=W.detail)==null?void 0:y.characterCount)!=null&&_.k(this==null?void 0:(P=this.data)==null?void 0:P.startButton,_.CE)&&(l=W.detail.characterCount>R,this.set("data.startButton.buttonRenderer.isDisabled",W.detail.characterCount===
0||l),this.showInputErrorMessage=l)};
_.t.onCloseClick=function(){_.FN(this.hostElement,"picker-cancelled");_.Gt(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.t.onPickerCancelled=function(){var W=_.GS(this.hostElement).querySelector("#qna-creator-text-input-field");W&&W.setLiveChatRichMessageInput(null)};
_.t.handleOpenQnaStartPanel=function(){var W=_.GS(this.hostElement).querySelector("#qna-creator-text-input-field");W&&W.focus()};
_.t.handleStartButtonAction=function(W){var l=this;if(W.detail.actionName==="yt-service-request"&&(W.stopPropagation(),W=W.detail.args[1])){var V=_.GS(this.hostElement).querySelector("#qna-creator-text-input-field"),f;(V==null?0:(f=V.liveChatRichMessageInput)==null?0:f.textSegments)&&V.liveChatRichMessageInput.textSegments.length!==0&&(f={rich_message:_.fv(V.liveChatRichMessageInput)},_.pN(this.hostElement,[W,f]).then(function(){_.FN(l.hostElement,"picker-cancelled")}))}};
_.t.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.t.handleServiceRequestCompleted=function(W){var l;W=W==null?void 0:(l=W.detail)==null?void 0:l.data;(W==null?0:W.actions)&&W.actions.length>0?this.startQnaRequestInFlight=!1:_.Gt(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.t.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
nK.prototype.handleServiceRequestError=nK.prototype.handleServiceRequestError;nK.prototype.handleServiceRequestCompleted=nK.prototype.handleServiceRequestCompleted;nK.prototype.handleServiceRequestSent=nK.prototype.handleServiceRequestSent;nK.prototype.onPickerCancelled=nK.prototype.onPickerCancelled;nK.prototype.onCharacterCountChanged=nK.prototype.onCharacterCountChanged;_.a([_.b(),_.z("design:type",Object)],nK.prototype,"characterCount",void 0);
_.a([_.b(),_.z("design:type",Object)],nK.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],nK.prototype,"showInputErrorMessage",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],nK.prototype,"startQnaRequestInFlight",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],nK.prototype,"modern",void 0);_.a([_.b(),_.z("design:type",Object)],nK.prototype,"buttonOverrides",void 0);
_.a([_.b(),_.z("design:type",Object)],nK.prototype,"closeButtonOverrides",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],nK.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DS),_.z("design:type",Object)],nK.prototype,"ytLiveChatReduxBehavior",void 0);_.a([_.F(_.HB.YtLiveChatItemBehavior),_.z("design:type",_.Kf)],nK.prototype,"ytLiveChatItemBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],nK.prototype,"ytActionHandlerBehavior",void 0);_.a([_.XI("yt-live-chat-text-input-field-renderer-character-count-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],nK.prototype,"onCharacterCountChanged",null);_.a([_.XI("picker-cancelled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nK.prototype,"onPickerCancelled",null);
_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nK.prototype,"handleServiceRequestSent",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],nK.prototype,"handleServiceRequestCompleted",null);
_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],nK.prototype,"handleServiceRequestError",null);_.a([_.A({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],nK);
_.Z(nK,"yt-live-chat-qna-start-panel-renderer",function(){if(BOa===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;csa===void 0&&(csa=document.createElement("template"));var f=csa;V.call(l,f.content.cloneNode(!0),W.content.firstChild);BOa=W}W=BOa;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var DCX;var UCM;var CK=function(){return _.I.apply(this,arguments)||this};
_.v(CK,_.I);CK.prototype.dismiss=function(){_.FN(this.hostElement,"yt-live-chat-error-message-dismiss")};
CK.prototype.edit=function(){_.FN(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.a([_.b(),_.z("design:type",Object)],CK.prototype,"data",void 0);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],CK);
_.Z(CK,"yt-live-chat-text-actions-error-message-renderer",function(){if(UCM===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;DCX===void 0&&(DCX=document.createElement("template"));var f=DCX;V.call(l,f.content.cloneNode(!0),W.content.firstChild);UCM=W}W=UCM;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var u4I;var k7a;var vNM;var H57;var ci=function(){var W=_.I.apply(this,arguments)||this;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.newnessDotEligible=!1;return W};
_.v(ci,_.I);ci.prototype.sendReaction=function(){var W,l,V=((W=this.data)==null?void 0:W.emojiId)||((l=this.data)==null?void 0:l.emoteId),f;V&&((f=this.data)==null?0:f.shouldTriggerAnimation)&&_.Gt(this.hostElement,"yt-create-user-reaction-animation",[V]);var r;(W=_.fP((r=this.data)==null?void 0:r.onTap))&&_.XY(W,this.hostElement);this.showNewnessDot&&_.Gt(this.hostElement,"yt-hide-newness-dot")};
ci.prototype.onClick=function(W){(!W||W.clientX||W.clientY)&&this.sendReaction()};
ci.prototype.onKeyDown=function(W){W.key!=="Enter"&&W.key!==" "||W.repeat||this.sendReaction()};
_.rc.Object.defineProperties(ci.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var W,l;return!!(((W=this.data)==null?0:W.emojiId)||((l=this.data)==null?0:l.emoteId))}}});
_.a([_.b(),_.z("design:type",Object)],ci.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ci.prototype,"isDarkTheme",void 0);_.a([_.b(),_.z("design:type",Object)],ci.prototype,"newnessDotEligible",void 0);_.a([_.G("data.maybeShowNewnessDot"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ci.prototype,"showNewnessDot",null);_.a([_.G("data.emojiId","data.emoteId"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ci.prototype,"useYtImage",null);
_.a([_.Vq({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],ci);
_.Z(ci,"yt-reaction-control-panel-button-view-model",function(){if(H57===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;vNM===void 0&&(vNM=document.createElement("template"));var f=vNM;V.call(l,f.content.cloneNode(!0),W.content.firstChild);H57=W}W=H57;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var KY7;var FYv;var Bi=function(){var W=_.I.apply(this,arguments)||this;W.reactionControlPanelExpanded=!1;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.newnessDotEligible=!1;return W};
_.v(Bi,_.I);_.t=Bi.prototype;_.t.expandedButtonsChanged=function(){var W,l;_.I1(this.hostElement,{"--expanded-buttons-height":((l=(W=this.expandedButtonsData)==null?void 0:W.length)!=null?l:0)*36+"px"})};
_.t.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}}};
_.t.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.t.onMouseLeave=function(){var W=this;this.collapseTimer=setTimeout(function(){W.reactionControlPanelExpanded=!1},500)};
_.t.onFocusIn=function(){this.onMouseEnter()};
_.t.onFocusOut=function(){this.onMouseLeave()};
_.t.onCollapsedButtonFocusIn=function(){var W=this;setTimeout(function(){var l;(l=W.expandedButtons.querySelector("button"))==null||l.focus()},100)};
_.t.onCollapsedButtonFocusOut=function(W){W.stopPropagation()};
_.rc.Object.defineProperties(Bi.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var W,l;return _.MC.unsafeClone((W=this.liveReactionsData)==null?void 0:W.emojiButtonData)||((l=this.data)==null?void 0:l.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var W;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((W=this.data)==null||!W.maybeShowNewnessDot)}}});
Bi.prototype.expandedButtonsChanged=Bi.prototype.expandedButtonsChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Bi.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DS),_.z("design:type",Object)],Bi.prototype,"ytLiveChatReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Bi.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Bi.prototype,"reactionControlPanelExpanded",void 0);_.a([_.b({selectorArgs:["data.liveReactionsDataEntityKey"],selector:vZy}),_.z("design:type",Object)],Bi.prototype,"liveReactionsData",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Bi.prototype,"isDarkTheme",void 0);_.a([_.b(),_.z("design:type",Object)],Bi.prototype,"newnessDotEligible",void 0);
_.a([_.G("liveReactionsData","data.expandedButtons"),_.z("design:type",Object),_.z("design:paramtypes",[])],Bi.prototype,"expandedButtonsData",null);_.a([_.G("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.b({reflectToAttribute:!0}),_.z("design:type",Object),_.z("design:paramtypes",[])],Bi.prototype,"showNewnessDot",null);_.a([_.Aa("#expanded-buttons"),_.z("design:type",HTMLElement)],Bi.prototype,"expandedButtons",void 0);
_.a([_.TS("expandedButtonsData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Bi.prototype,"expandedButtonsChanged",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Bi);
_.Z(Bi,"yt-reaction-control-panel-view-model",function(){if(FYv===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;KY7===void 0&&(KY7=document.createElement("template"));var f=KY7;V.call(l,f.content.cloneNode(!0),W.content.firstChild);FYv=W}W=FYv;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var dr=new _.Ow("yt-live-chat"),G7e=Date.parse("2024-7-24"),JN=function(){var W=_.I.apply(this,arguments)||this;W.emojiManager=_.vB;W.newnessDotEligible=!1;W.newnessDotImpressionCounted=!1;W.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return W};
_.v(JN,_.I);_.t=JN.prototype;_.t.emojiCustomizationEnabledChanged=function(){var W;((W=this.data)==null?0:W.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((W=dr.getCreationTime("emoji-customization-count"))&&W<G7e&&dr.set("emoji-customization-count","0"),W=Number(dr.get("emoji-customization-count"))||0,W<3&&(this.newnessDotEligible=!0,dr.set("emoji-customization-count",(W+1).toString())),this.newnessDotImpressionCounted=!0)};
_.t.hideNewnessDot=function(){this.newnessDotEligible=!1;dr.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.t.handleReactionsMute=function(W){var l=_.Wh(),V=_.GY(206221),f={checkboxData:{state:W?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};l&&_.C0(l,V,f);this.reactionsMuted=W};
_.t.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.t.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}}};
_.rc.Object.defineProperties(JN.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var W;return(!((W=this.liveReactionsData)==null||!W.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
JN.prototype.liveReactionsSettingChanged=JN.prototype.liveReactionsSettingChanged;JN.prototype.emojiCustomizationEnabledChanged=JN.prototype.emojiCustomizationEnabledChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],JN.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DS),_.z("design:type",Object)],JN.prototype,"ytLiveChatReduxBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],JN.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],JN.prototype,"data",void 0);_.a([_.b(),_.z("design:type",_.UB)],JN.prototype,"emojiManager",void 0);_.a([_.b(),_.z("design:type",Object)],JN.prototype,"newnessDotEligible",void 0);_.a([_.b(),_.z("design:type",Object)],JN.prototype,"newnessDotImpressionCounted",void 0);
_.a([_.b({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:H2a}),_.z("design:type",Boolean)],JN.prototype,"liveReactionsSetting",void 0);_.a([_.b({selectorArgs:["data.liveReactionsDataEntityKey"],selector:vZy}),_.z("design:type",Object)],JN.prototype,"liveReactionsData",void 0);_.a([_.b({value:function(){var W=_.U("enable_lwe_web_mute"),l=dr.get("allow-reactions");return l===void 0?!1:!l&&W}}),
_.z("design:type",Boolean)],JN.prototype,"reactionsMuted",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],JN.prototype,"liveReactionsEnabled",null);_.a([_.TS("data.emojiCustomizationEnabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JN.prototype,"emojiCustomizationEnabledChanged",null);
_.a([_.TS("liveReactionsEnabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],JN.prototype,"liveReactionsSettingChanged",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],JN);
_.Z(JN,"yt-reaction-control-panel-overlay-view-model",function(){if(k7a===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;u4I===void 0&&(u4I=document.createElement("template"));var f=u4I;V.call(l,f.content.cloneNode(!0),W.content.firstChild);k7a=W}W=k7a;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var b5M={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(W){var l=this.$.pickers.selected;if(l){_.GS(this.hostElement).removeAttribute(l+"-open");var V="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(V="#picker-buttons",l==="emoji"&&_.GS(this.hostElement).querySelector("#emoji-picker-button")&&(V="#emoji-picker-button"));if(V=_.GS(this.hostElement).querySelector(V).querySelector("#"+l))V.active=!1}V=W;l==W&&(V=null);l!=
W&&_.GS(this.hostElement).setAttribute(W+"-open","");this.$.pickers.selected=V;_.Gt(this.hostElement,"yt-live-chat-picker-changed",[V])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var Dg=function(){var W=_.I.apply(this,arguments)||this;W.numSentMessages=0;W.timeoutDurationMs=0;W.timeoutMs=0;W.lastTimeoutTimeMs=0;W.pendingMessageId="";W.hasFiredInitialFocusActions=!1;W.isBeforeFocusEnabled=!0;W.id="";W.characterCount=0;W.maxCharacterLimit=0;W.remainingCharacterCount=0;W.inputExpanded=!1;W.buttonOverrides={iconPosition:"icon-only"};W.inReplyPanel=!1;W.countdownRatio=0;W.isTooltipVisible=!1;W.tooltipTimeout=1E4;W.systemIcons=_.U("kevlar_system_icons");W.tallerEmojiPicker=_.U("live_chat_taller_emoji_picker");
W.sendReplyMessageInFlight=!1;W.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"};W.onResize=function(){W.maybeToggleCharacterCount()};
return W};
_.v(Dg,_.I);_.t=Dg.prototype;
_.t.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"}}}};
_.t.attached=function(){window.addEventListener("resize",this.onResize)};
_.t.detached=function(){window.removeEventListener("resize",this.onResize)};
_.t.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.t.sendMessage=function(){var W=this,l,V,f,r;return _.g(function(R){if(W.sendDisabled)return R.return();W.isTooltipVisible&&_.Gt(W.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(W.data.sendButton&&W.data.sendButton.buttonRenderer){W.input.completeEmojis();l=W.data.sendButton.buttonRenderer.serviceEndpoint;if(!l)return R.return();f=((V=_.k(l,_.EDv))==null?void 0:V.clientIdPrefix)||"";r={client_message_id:f+String(W.numSentMessages++),rich_message:_.fv(W.input.liveChatRichMessageInput)};
W.pendingMessageId=r.client_message_id;W.inReplyPanel&&(W.sendReplyMessageInFlight=!0);_.pN(W.hostElement,[l,r]);W.input.setLiveChatRichMessageInput(null)}_.ju(R)})};
_.t.handleSendButtonAction=function(W){W.detail.actionName==="yt-service-request"&&(W.stopPropagation(),this.sendMessage())};
_.t.onSendCompleted=function(W,l){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(W=this.get("timeoutDurationUsec",l.data))&&this.handleTimeout(Number(W)/1E3);this.errorMessage=this.get("errorMessage",l.data);this.pendingMessageId=""};
_.t.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.Gt(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.t.handlePickerButtonToggle=function(W){W=W.detail.targetId;this.ytPickerBehavior.togglePicker_(W);if(W==="emoji")this.input.focus();else if(W==="qna-start-panel"){var l,V;(l=_.GS(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(V=l.querySelector("#qna-creator-text-input-field"))==null||V.focus()}};
_.t.onComponentReplaced=function(W){var l,V;W.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((l=W.replacement.liveChatMessageInputRenderer)==null?0:(V=l.headerRenderer)==null?0:V.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.t.onEmojiSelect=function(W){this.input.focus();this.input.insertEmoji(W.detail)};
_.t.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.t.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.Gt(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.Gt(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.t.onOpenPopupAction=function(W,l){var V=this;l===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.Gt(V.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.t.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.t.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.t.focusChanged=function(){this.maybeToggleCharacterCount()};
_.t.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var W=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",W>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.t.computeId=function(){return this.data&&this.data.targetId||""};
_.t.computeSendDisabled=function(W,l,V,f){W=!!(!W||l&&W>l||f);(l=_.GS(this.hostElement).querySelector("#send-button"))&&l.children.length&&(l.children[0].disabled=W);return W};
_.t.handleTimeout=function(W){this.timeoutDurationMs=this.timeoutMs=W;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.t.updateTimeout=function(W){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(W-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=W,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.t.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.t.onErrorMessageEdit=function(W){this.input.setLiveChatRichMessageInput(W.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.t.errorMessageChanged=function(){var W=this;_.yq(function(){_.Gt(W.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.t.computeAuthorNameColor=function(W){var l;if(_.U("live_chat_author_name_color_usernames")&&(W==null?0:(l=W.authorName)==null?0:l.simpleText))return _.DOg(_.UOx(W.authorName.simpleText));if(_.U("live_chat_seed_color_usernames")&&(W==null?0:W.authorSeedColorArgb))return _.DOg(_.oJ(W.authorSeedColorArgb));if(_.U("live_chat_colored_usernames"))return"#cc0000";var V;return _.U("live_chat_simple_color_usernames")&&(W==null?0:(V=W.authorName)==null?0:V.simpleText)&&(W==null?0:W.authorUsernameColorLight)&&
(W==null?0:W.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.oJ(W.authorUsernameColorDark):_.oJ(W.authorUsernameColorLight):""};
_.t.onIsTooltipVisibleChanged=function(){var W=_.GS(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){W.hidden=!1;W.setAttribute("role","alert")},0):(W.hidden=!0,W.removeAttribute("role"))};
_.t.onFocusedChanged=function(W){this.inputFocused=W.detail.value};
_.rc.Object.defineProperties(Dg.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 W;return!((W=this.data)==null||!W.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.data)==null?void 0:(l=W.pickers)==null?void 0:l.find(function(V){return V.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return W?this.ytRendererBehavior.getSimpleString(W):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
Dg.prototype.onIsTooltipVisibleChanged=Dg.prototype.onIsTooltipVisibleChanged;Dg.prototype.errorMessageChanged=Dg.prototype.errorMessageChanged;Dg.prototype.onErrorMessageEdit=Dg.prototype.onErrorMessageEdit;Dg.prototype.onErrorMessageDismiss=Dg.prototype.onErrorMessageDismiss;Dg.prototype.focusChanged=Dg.prototype.focusChanged;Dg.prototype.characterCountChanged=Dg.prototype.characterCountChanged;Dg.prototype.onEmojiSelect=Dg.prototype.onEmojiSelect;Dg.prototype.handlePickerButtonToggle=Dg.prototype.handlePickerButtonToggle;
Dg.prototype.onSendError=Dg.prototype.onSendError;Dg.prototype.onSendCompleted=Dg.prototype.onSendCompleted;Dg.prototype.sendMessage=Dg.prototype.sendMessage;Dg.prototype.dataChanged=Dg.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Dg.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Dg.prototype,"ytActionHandlerBehavior",void 0);
_.a([_.F(b5M.YtPickerBehavior),_.z("design:type",Object)],Dg.prototype,"ytPickerBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Dg.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.Uq.YtLiveChatTooltipTargetingBehavior),_.z("design:type",Object)],Dg.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Dg.prototype,"hasFiredInitialFocusActions",void 0);
_.a([_.b(),_.z("design:type",Object)],Dg.prototype,"isBeforeFocusEnabled",void 0);_.a([_.b(),_.z("design:type",Object)],Dg.prototype,"data",void 0);_.a([_.b({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.z("design:type",Object)],Dg.prototype,"id",void 0);_.a([_.b(),_.z("design:type",Object)],Dg.prototype,"characterCount",void 0);_.a([_.b(),_.z("design:type",Object)],Dg.prototype,"maxCharacterLimit",void 0);
_.a([_.b(),_.z("design:type",Object)],Dg.prototype,"remainingCharacterCount",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Dg.prototype,"inputExpanded",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Dg.prototype,"inputFocused",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],Dg.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.a([_.b(),_.z("design:type",_.b5)],Dg.prototype,"participantsManager",void 0);
_.a([_.b(),_.z("design:type",Object)],Dg.prototype,"buttonOverrides",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Dg.prototype,"inReplyPanel",void 0);_.a([_.G("characterCount, maxCharacterLimit, countdownActive"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Dg.prototype,"sendDisabled",null);_.a([_.b(),_.z("design:type",Object)],Dg.prototype,"countdownRatio",void 0);
_.a([_.G("countdownRatio"),_.z("design:type",Number),_.z("design:paramtypes",[])],Dg.prototype,"countdownStrokeDashOffset",null);_.a([_.G("countdownRatio"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Dg.prototype,"countdownActive",null);_.a([_.G("data.interactionMessage"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Dg.prototype,"hasInteractionMessage",null);
_.a([_.G("data.emojiPickerButton"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Dg.prototype,"hasEmojiPickerButton",null);_.a([_.G("data, characterCount"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Dg.prototype,"showAvatar",null);_.a([_.G("data.pickers"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Dg.prototype,"hasProductPickerPanelViewModel",null);
_.a([_.b(),_.z("design:type",Object)],Dg.prototype,"errorMessage",void 0);_.a([_.b(),_.z("design:type",Object)],Dg.prototype,"genericErrorMessage",void 0);_.a([_.b(),_.z("design:type",Object)],Dg.prototype,"isTooltipVisible",void 0);_.a([_.b(),_.z("design:type",Object)],Dg.prototype,"tooltipTimeout",void 0);_.a([_.G("data.onInitialFocusCommand"),_.z("design:type",String),_.z("design:paramtypes",[])],Dg.prototype,"tooltipMessage",null);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Dg.prototype,"systemIcons",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Dg.prototype,"tallerEmojiPicker",void 0);_.a([_.G("data"),_.z("design:type",String),_.z("design:paramtypes",[])],Dg.prototype,"authorNameColor",null);_.a([_.b(),_.z("design:type",Object)],Dg.prototype,"sendReplyMessageInFlight",void 0);_.a([_.Aa("#input"),_.z("design:type",_.NX9)],Dg.prototype,"input",void 0);
_.a([_.Aa("#count"),_.z("design:type",HTMLElement)],Dg.prototype,"count",void 0);_.a([_.Aa("#input-container"),_.z("design:type",HTMLElement)],Dg.prototype,"inputContainer",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Dg.prototype,"dataChanged",null);_.a([_.XI("yt-live-chat-send-message"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],Dg.prototype,"sendMessage",null);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[Event,_.nv]),_.z("design:returntype")],Dg.prototype,"onSendCompleted",null);_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Dg.prototype,"onSendError",null);
_.a([_.XI("yt-live-chat-icon-toggle-button-renderer-toggle"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Dg.prototype,"handlePickerButtonToggle",null);_.a([_.XI("yt-emoji-select"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Dg.prototype,"onEmojiSelect",null);
_.a([_.TS("characterCount"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Dg.prototype,"characterCountChanged",null);_.a([_.TS("inputFocused"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Dg.prototype,"focusChanged",null);_.a([_.XI("yt-live-chat-error-message-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Dg.prototype,"onErrorMessageDismiss",null);
_.a([_.XI("yt-live-chat-error-message-edit"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Dg.prototype,"onErrorMessageEdit",null);_.a([_.TS("errorMessage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Dg.prototype,"errorMessageChanged",null);_.a([_.TS("isTooltipVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Dg.prototype,"onIsTooltipVisibleChanged",null);
_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],Dg);
_.Z(Dg,"yt-live-chat-message-input-renderer",function(){if(qxX===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;e6I===void 0&&(e6I=document.createElement("template"));var f=e6I;V.call(l,f.content.cloneNode(!0),W.content.firstChild);qxX=W}W=qxX;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var pgv;var oNI;var U9=function(){var W=_.I.apply(this,arguments)||this;W.systemIcons=_.U("kevlar_system_icons");W.firedOnClickCommand=!1;W.inReplyPanel=!1;return W};
_.v(U9,_.I);
U9.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"}}}};
U9.prototype.onButtonToggle=function(W){W.target.disabled||this.ytPickerBehavior.togglePicker_(W.detail.targetId)};
U9.prototype.onClick=function(){var W=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.Gt(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return W.firedOnClickCommand=!1},5E3))};
_.rc.Object.defineProperties(U9.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.data)==null?void 0:(l=W.panels)==null?void 0:l.find(function(V){return V.liveChatProductPickerPanelViewModel}))!==void 0}}});
U9.prototype.onButtonToggle=U9.prototype.onButtonToggle;_.a([_.F(b5M.YtPickerBehavior),_.z("design:type",Object)],U9.prototype,"ytPickerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],U9.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],U9.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],U9.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],U9.prototype,"systemIcons",void 0);_.a([_.b({reflectToAttribute:!1}),_.z("design:type",Object)],U9.prototype,"firedOnClickCommand",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],U9.prototype,"inReplyPanel",void 0);_.a([_.G("data.pickers"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],U9.prototype,"hasProductPickerPanelViewModel",null);
_.a([_.XI("yt-live-chat-icon-toggle-button-renderer-toggle"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],U9.prototype,"onButtonToggle",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],U9);
_.Z(U9,"yt-live-chat-restricted-participation-renderer",function(){if(oNI===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;pgv===void 0&&(pgv=document.createElement("template"));var f=pgv;V.call(l,f.content.cloneNode(!0),W.content.firstChild);oNI=W}W=oNI;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var ue=function(){var W=_.I.apply(this,arguments)||this;W.genericErrorMessage=_.Bl("Error, try again.");W.inReplyPanel=!1;W.hideBorder=!1;return W};
_.v(ue,_.I);ue.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}}}}}};
_.rc.Object.defineProperties(ue,{template:{configurable:!0,enumerable:!0,get:function(){return a7M()}}});
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ue.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ue.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],ue.prototype,"genericErrorMessage",void 0);_.a([_.b(),_.z("design:type",Object)],ue.prototype,"inReplyPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ue.prototype,"hideBorder",void 0);
_.a([_.Vq({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],ue);_.Z(ue,"yt-live-chat-engagement-panel-input-renderer",function(){return a7M()},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var jUe,IlP;jUe=_.GY(115994);IlP=_.GY(115993);_.i5X=function(W,l,V){var f=this;var r=V.dragDownAction;this.layer=0;this.JSC$22539_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return f.dragDownAction()}}}};
this.JSC$22539_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return f.dragDownAction()}}}};
this.fullscreen=!1;var R=_.Qq();_.zP(R,jUe,this.layer);_.zP(R,IlP,this.layer);this.dragDownAction=function(){r();_.R$(R,{visualElement:f.fullscreen?jUe:IlP})};
this.gesture=new _.Z2(W,l,this.JSC$22539_watchConfig,"pandown");this.attach()};
_.i5X.prototype.attach=function(){this.gesture.attach()};
_.i5X.prototype.detach=function(){this.gesture.detach()};
_.i5X.prototype.update=function(W){this.fullscreen=W;this.gesture.config=W?this.JSC$22539_watchFullScreenConfig:this.JSC$22539_watchConfig};var mCI={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(W){if(W&&W.length==1&&Array.isArray(W[0].loggingUrls)){W=_.MC.unsafeClone(W[0]);var l=this.macros||{},V=this.getAdModuleClient_();if(!V)return _.jy();W.loggingUrls.forEach(function(f){if(f.baseUrl){var r=f.baseUrl;var R=l;R=R===void 0?{}:R;r=V.getOptions().includes("replaceUrlMacros")?_.Lhe(V,"replaceUrlMacros",{url:r,additionalMapping:R}):r;f.baseUrl=r}},this);
W=[W]}return _.pN(this.hostElement,W)},
getAdModuleClient_:function(){var W=_.Jy(this);return W?(W=W.getPlayer())?new _.R4(W):null:null}}]};var XgX;var ke=function(){var W=_.I.apply(this,arguments)||this;W.isCollapsed=!1;W.modernPanels=_.U("kevlar_watch_modern_panels");W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return W};
_.v(ke,_.I);_.t=ke.prototype;_.t.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.t.onDonateTap=function(){var W=this.get("data.donateButton.buttonRenderer.command");if(W){var l=_.Wh(),V=this.get("data.donateButton.buttonRenderer.trackingParams");l&&V&&_.C0(l,_.zG(V));this.ytOpenPopupBehavior.openPopup(W)}};
_.t.onShowMore=function(){this.isCollapsed=!1;var W=_.Wh(),l=this.get("data.expandButton.buttonRenderer.trackingParams");W&&l&&_.C0(W,_.zG(l))};
_.t.onShowLess=function(){this.isCollapsed=!0};
_.t.dataChanged=function(){_.I1(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.t.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.t.handleUpdate=function(W){if(W=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",W))this.set("data.startLabel",W.startLabel),this.set("data.endLabel",W.endLabel),this.set("data.progress",W.progress),this.set("data.amountRaisedLabel",W.amountRaisedLabel),this.dataChanged()};
_.t.handleOpenPopupAction=function(W){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",W)&&_.Gt(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.t.computeHeaderBackgroundUrl=function(W,l){if(W)return l?W.headerBackgroundDarkUrl:W.headerBackgroundUrl};
_.t.isProgressBarVisible=function(W){return!(!W||W.progress===void 0)};
_.t.headerBackgroundClass=function(){return _.M4("HTML_DIR")==="rtl"?"flip":""};
ke.prototype.dataChanged=ke.prototype.dataChanged;_.a([_.F(_.eX.YtOpenPopupBehavior),_.z("design:type",Object)],ke.prototype,"ytOpenPopupBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ke.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],ke.prototype,"ytActionHandlerBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],ke.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],ke.prototype,"isCollapsed",void 0);_.a([_.b({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.z("design:type",String)],ke.prototype,"headerBackgroundUrl",void 0);_.a([_.b(),_.z("design:type",Boolean)],ke.prototype,"isDarkTheme",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ke.prototype,"modernPanels",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ke.prototype,"dataChanged",null);_.a([_.A({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],ke);
_.Z(ke,"ytd-donation-shelf-renderer",function(){if(XgX!==void 0)return XgX;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return XgX=W},{mode:1});var TOP;var wgy=function(){return _.I.apply(this,arguments)||this};
_.v(wgy,_.I);_.a([_.b(),_.z("design:type",Object)],wgy.prototype,"data",void 0);_.a([_.A({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],wgy);
_.Z(wgy,"ytd-donation-unavailable-renderer",function(){if(TOP!==void 0)return TOP;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return TOP=W},{mode:1});var Ase;var vi=function(){return _.I.apply(this,arguments)||this};
_.v(vi,_.I);vi.prototype.computeIconType=function(W){return W?"yt-icons:"+W.toLowerCase():null};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],vi.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],vi.prototype,"data",void 0);_.a([_.A({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],vi);
_.Z(vi,"ytd-limited-state-message-renderer",function(){if(Ase!==void 0)return Ase;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Ase=W},{mode:1});var QU$;var Hi=function(){return _.I.apply(this,arguments)||this};
_.v(Hi,_.I);Hi.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Hi.prototype.onTap=function(W){var l=this.data&&this.data.endpoint;l&&!_.Cv(_.d_(W),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.FN(this.hostElement,"yt-navigate",{endpoint:l})};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Hi.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Hi.prototype,"data",void 0);_.a([_.A({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Hi);
_.Z(Hi,"ytd-autotagging-metadata-renderer",function(){if(QU$!==void 0)return QU$;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return QU$=W},{mode:1});var Mta;var KK=function(){return _.I.apply(this,arguments)||this};
_.v(KK,_.I);KK.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],KK.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],KK.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],KK.prototype,"data",void 0);_.a([_.A({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],KK);
_.Z(KK,"ytd-autotagging-metadata-row-renderer",function(){if(Mta!==void 0)return Mta;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Mta=W},{mode:1});var Z5v;var O5M;var Fa=function(){var W=_.I.apply(this,arguments)||this;W.engagementPanelContent=!1;return W};
_.v(Fa,_.I);Fa.prototype.computeHasDividerLine=function(W,l){return W&&!l};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Fa.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.z("design:type",Boolean)],Fa.prototype,"hasDividerLine",void 0);_.a([_.b(),_.z("design:type",Object)],Fa.prototype,"engagementPanelContent",void 0);
_.a([_.A({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Fa);
_.Z(Fa,"ytd-metadata-row-header-renderer",function(){if(O5M!==void 0)return O5M;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return O5M=W},{mode:1});var al7;var GN=function(){return _.I.apply(this,arguments)||this};
_.v(GN,_.I);GN.prototype.computeHasDividerLine=function(W){return W};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],GN.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],GN.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.z("design:type",Boolean)],GN.prototype,"hasDividerLine",void 0);_.a([_.A({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],GN);
_.Z(GN,"ytd-metadata-row-renderer",function(){if(al7!==void 0)return al7;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return al7=W},{mode:1});var zKI;var NOk=function(){return _.I.apply(this,arguments)||this};
_.v(NOk,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],NOk.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],NOk.prototype,"data",void 0);_.a([_.A({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],NOk);
_.Z(NOk,"ytd-metadata-with-image-row-renderer",function(){if(zKI!==void 0)return zKI;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return zKI=W},{mode:1});var Y1e;var be=function(){var W=_.I.apply(this,arguments)||this;W.rounded=!0;W.fixie=!1;W.fullWidth=!1;return W};
_.v(be,_.I);_.t=be.prototype;_.t.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.onDataChanged=function(){var W=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(l){W.onEndpointLinkKeyPress(l)}))};
_.t.onEndpointLinkKeyPress=function(W){W.target===this.endpointLink&&W.keyCode===13&&_.FN(this.hostElement,"click")};
_.t.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var W;if((W=this.data)==null?0:W.endpoint)_.og(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.t.onYtNavigate=function(W){this.endpointHref||(W.stopPropagation(),W.preventDefault())};
_.t.onInformationButtonContainerClick=function(W){W.target.id!=="information-button-container"&&(W.stopPropagation(),W.preventDefault())};
_.t.computeStyle=function(W){return W};
_.t.computeIsThumbnailStyle=function(W){return W==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.t.computeThumbnailWidth=function(W){switch(W){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}};
_.t.computeThumbnailObjectFit=function(W){switch(W){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.rc.Object.defineProperties(be.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
be.prototype.onYtNavigate=be.prototype.onYtNavigate;be.prototype.onClick=be.prototype.onClick;be.prototype.onDataChanged=be.prototype.onDataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],be.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],be.prototype,"componentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],be.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],be.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],be.prototype,"componentStyle",void 0);_.a([_.b({computed:"computeIsThumbnailStyle(data.style)"}),_.z("design:type",Boolean)],be.prototype,"isThumbnailStyle",void 0);_.a([_.b({computed:"computeThumbnailObjectFit(data.style)"}),_.z("design:type",String)],be.prototype,"thumbnailObjectFit",void 0);
_.a([_.b({computed:"computeThumbnailWidth(data.style)"}),_.z("design:type",Number)],be.prototype,"thumbnailWidth",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],be.prototype,"rounded",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],be.prototype,"fixie",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],be.prototype,"fullWidth",void 0);_.a([_.Aa("#endpoint-link"),_.z("design:type",HTMLAnchorElement)],be.prototype,"endpointLink",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],be.prototype,"onDataChanged",null);_.a([_.G("data.endpoint"),_.z("design:type",Object),_.z("design:paramtypes",[])],be.prototype,"endpointHref",null);_.a([_.XI("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],be.prototype,"onClick",null);
_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],be.prototype,"onYtNavigate",null);_.a([_.A({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],be);
_.Z(be,"ytd-rich-metadata-renderer",function(){if(Y1e!==void 0)return Y1e;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Y1e=W},{mode:_.bD("kevlar_poly_si_batch_j075")?1:2});var xC7;var pK=function(){var W=_.I.apply(this,arguments)||this;W.fixie=!1;W.fullWidth=!1;return W};
_.v(pK,_.I);pK.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
pK.prototype.computeHasDividerLine=function(W){return W};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],pK.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],pK.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.z("design:type",Boolean)],pK.prototype,"hasDividerLine",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pK.prototype,"fixie",void 0);_.a([_.b(),_.z("design:type",Object)],pK.prototype,"fullWidth",void 0);
_.a([_.A({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],pK);
_.Z(pK,"ytd-rich-metadata-row-renderer",function(){if(xC7!==void 0)return xC7;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return xC7=W},{mode:1});var ox=function(){var W=_.I.apply(this,arguments)||this;W.engagementPanelContent=!1;W.fixie=!1;W.fullWidth=!1;return W};
_.v(ox,_.I);
ox.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"}}}};
ox.prototype.computeCollapsibleItems=function(W,l,V){return W===void 0||l===void 0||V===void 0||V?[]:W.slice(l)};
ox.prototype.computeAlwaysShownItems=function(W,l){return W&&W.length?W.slice(0,l):[]};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ox.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ox.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ox.prototype,"data",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],ox.prototype,"collapsed",void 0);
_.a([_.b({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.z("design:type",Array)],ox.prototype,"alwaysShownItems",void 0);_.a([_.b({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.z("design:type",Array)],ox.prototype,"collapsibleItems",void 0);_.a([_.b(),_.z("design:type",Object)],ox.prototype,"engagementPanelContent",void 0);_.a([_.b(),_.z("design:type",Object)],ox.prototype,"fixie",void 0);
_.a([_.b(),_.z("design:type",Object)],ox.prototype,"fullWidth",void 0);_.a([_.A({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],ox);
_.Z(ox,"ytd-metadata-row-container-renderer",function(){if(Z5v!==void 0)return Z5v;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Z5v=W},{mode:1});var eKy;var jD=function(){var W=_.I.apply(this,arguments)||this;W.currentPageUrl="";W.baseUrl="";W.isHiddenByUser=null;W.hidden=!1;W.showAboveScrim=!1;W.watchNextGrid=_.U("kevlar_watch_grid");W.modernButtons=_.U("web_modern_buttons");W.roundedContainer=!0;W.noBorder=!1;W.roundBackground=!_.U("live_chat_round_background_killswitch");W.overflowHideChat=_.U("live_chat_overflow_hide_chat");W.forceDarkTheme=!1;W.theaterWatchWhile=!1;W.isListeningForPlayerProgress=!1;W.JSC$22575_playerEvents=new Map;W.isFrameReady=
!1;W.player=null;W.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 W};
_.v(jD,_.I);_.t=jD.prototype;_.t.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.bj(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.t.created=function(){var W=this;this.handleIframeEventListener=function(l){W.handleIframeEvent(l)};
this.handleKeyboardEventListener=function(l){W.handleKeyboardEvent(l)};
this.JSC$22575_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22575_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22575_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22575_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22575_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.t.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()};
_.t.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};
_.t.computeBaseUrl=function(W){var l="/live_chat";this.isChatReplay()&&(l="/live_chat_replay");return _.KC(_.HD(_.vD(_.SV(W),l),null),"").toString()};
_.t.dataChanged=function(){_.U("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.t.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var W=this.url;if(this.isChatReplay()&&this.player){var l=Math.floor(this.player.getProgressState().current*1E3);W=_.$9(_.SV(W),"playerOffsetMs",l.toString()).toString()}l=this.chatframe;try{var V=W==="about:blank"?_.l$L:_.NI(W),f=l.contentDocument.location,r=_.ee(V);r!==void 0&&f.replace(r)}catch(R){l.src=W}}};
_.t.collapsedChanged=function(){_.FN(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.t.handleIframeEvent=function(W){if(W&&this.baseUrl.startsWith(W.origin)&&W.source===this.chatframe.contentWindow&&_.ev(W.data))if(W.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(W);else if(W.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(W.data["yt-show-feedback-dialog"]){var l=_.tY().resolve(_.R0(_.Jx1));if(l){var V=W.ports,f;V&&V.length&&(f=function(){V[0].postMessage({})});
W=W.data["yt-show-feedback-dialog"];l.showFeedbackDialog(W.customProductData,W.feedbackContent,f,W.bucket)}}else if(W.data["yt-show-survey"])_.FN(this.hostElement,"yt-show-survey",W.data["yt-show-survey"]);else if(W.data["yt-purchase-membership"])_.tY().resolve(_.s6).resolveCommand(W.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(W.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(W.data["yt-tunnel-out-live-service-request"]);else if(W.data["yt-user-activity"])_.tr();
else if(W.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(W.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(W.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(W.data["yt-open-popup"]);else if(W.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(W.data["yt-log-flow-logging-event-command"]);else if(W.data["yt-hide-live-chat"])this.onShowHideChat();else W.data["yt-report-moderation-state-log"]&&
this.player&&(l={cpn:this.player.getVideoData().cpn},_.XC("liveChatBeingModerated",l))};
_.t.attachLiveChatResponseVeTrackingParams=function(W){W=_.zG(W);var l=_.Wh(),V=_.Y2("liveChatRenderer.trackingParams",this.data);l&&V&&_.L0(l,_.zG(V),W)};
_.t.handleBuyflowMessages=function(W){var l=W.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,V=W.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,f=W.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.DhF(_.nt(_.BV),l.replace(/-/g,"+").replace(/_/g,"/"),function(r){W.ports[0].postMessage({success:!0,buyFlowResponse:r})},void 0,function(r){W.ports[0].postMessage({success:!1,
error:r&&r.message||"Buyflow rejected without error."})},_.MT().get("hl"),void 0,function(){W.ports[0].postMessage({closed:!0})},V,f)};
_.t.setupPlayerProgressRelay=function(){var W=this;if(!this.isListeningForPlayerProgress){var l=_.Dy();l!=null&&l.getPlayerPromise&&(l.getPlayerPromise().then(function(V){W.playerApiReady(V)}),this.isListeningForPlayerProgress=!0)}};
_.t.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.t.playerApiReady=function(W){this.setPlayer(W)};
_.t.playerProgressHandler=function(){if(this.player){var W=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":W.current})}};
_.t.playerAdStartHandler=function(W){this.postToContentWindow({"yt-player-ad-start":W})};
_.t.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.t.playerStateChangeHandler=function(W){this.postToContentWindow({"yt-player-state-change":W})};
_.t.setPlayer=function(W){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22575_playerEvents);W&&(this.player=W,this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$22575_playerEvents),_.FN(this.hostElement,"player-api-ready"))};
_.t.liveChatPageUrl=function(W,l,V,f){return!V||l?"about:blank":V.liveChatRenderer?(l=_.SV(this.currentPageUrl).JSC$10026_queryData_,K7I(l),W=_.SV(W),l.add("continuation",V.liveChatRenderer.continuations[0].reloadContinuationData.continuation),V=_.h5()==="USER_INTERFACE_THEME_DARK",(f||V)&&l.add("dark_theme","true"),_.HD(W,l),f=_.SV(W.toString()),V=f.JSC$10026_queryData_,"SESSION_INDEX"in _.AC&&(V.add("authuser",_.M4("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.AC&&V.add("pageId",_.M4("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.AC&&V.add("sdc",_.M4("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),f.toString()):""};
_.t.isCollapsed=function(W,l){return l!==null?l:this.isChatReplay()||W&&W.conversationBarRenderer&&W.conversationBarRenderer.availabilityMessage?!0:W?W.liveChatRenderer?W.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.U("live_chat_hide_premiere_replay_message")||W.conversationBarRenderer&&W.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.t.isHidden=function(W,l,V){var f=l&&l.conversationBarRenderer&&l.conversationBarRenderer.availabilityMessage,r=l&&l.liveChatRenderer&&l.liveChatRenderer.showHideButton,R=l&&l.liveChatRenderer&&l.liveChatRenderer.showButton;return V&&W&&!f&&!R||!V&&W&&!f&&!r?!0:l&&l.liveChatRenderer&&l.liveChatRenderer.initialDisplayState?l.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.t.computeButtonOverride=function(W,l){if(W&&l)return{type:"outline"}};
_.t.setCollapsedState=function(W){_.k(W,_.BPk)&&(this.isHiddenByUser=!!_.k(W,_.BPk).collapsed,!this.isHiddenByUser&&_.U("enable_teaser_framework_web_client")&&_.Gt(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.t.forwardReduxActionToIframe=function(W){this.postToContentWindow({"yt-live-chat-forward-redux-action":W})};
_.t.onLoopRangeChange=function(W){this.showAboveScrim=!(W==null||!W.postId)};
_.t.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.t.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.t.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.t.sendDarkThemePostMessage=function(W){this.postToContentWindow({"yt-live-chat-set-dark-theme":W})};
_.t.onLiveChatBuyFlowCallback=function(W){this.postToContentWindow({"yt-live-chat-buy-flow-callback":W})};
_.t.handleKeyboardEvent=function(W){(0,_.MC.containsValue)(HcM,W.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:W.type,keyCode:W.keyCode}})};
_.t.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.t.postToContentWindow=function(W){if(this.isFrameReady)try{var l=window.location.protocol+"//"+window.location.host,V;(V=this.chatframe)!=null&&V.contentWindow?this.chatframe.contentWindow.postMessage(W,l):_.Qe(new _.bP("Tried posting a message to an iframe with no content window",W))}catch(f){_.wv(f)}};
_.t.shouldHideChatFrame=function(W){return W&&_.U("hide_live_chat_button_when_collapsed")};
_.rc.Object.defineProperties(jD.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.U("live_chat_overflow_hide_chat")||_.U("web_watch_chat_hide_button_killswitch"))return _.U("live_chat_overflow_hide_chat");var W,l,V,f;return!!((W=this.data)==null?0:(l=W.liveChatRenderer)==null?0:(V=l.header)==null?0:(f=V.liveChatHeaderRenderer)==null?0:f.collapseButton)}}});
jD.prototype.collapsedChanged=jD.prototype.collapsedChanged;jD.prototype.urlChanged=jD.prototype.urlChanged;jD.prototype.dataChanged=jD.prototype.dataChanged;jD.prototype.onShowHideChat=jD.prototype.onShowHideChat;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],jD.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],jD.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],jD.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.by.YtPlayerListenerBehavior),_.z("design:type",_.pZ)],jD.prototype,"ytPlayerListenerBehavior",void 0);_.a([_.F(_.eX.YtOpenPopupBehavior),_.z("design:type",Object)],jD.prototype,"ytOpenPopupBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],jD.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],jD.prototype,"currentPageUrl",void 0);
_.a([_.b({computed:"computeBaseUrl(currentPageUrl,data)"}),_.z("design:type",Object)],jD.prototype,"baseUrl",void 0);_.a([_.b({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.z("design:type",String)],jD.prototype,"url",void 0);_.a([_.b(),_.z("design:type",Object)],jD.prototype,"isHiddenByUser",void 0);_.a([_.b({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.z("design:type",Object)],jD.prototype,"hidden",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.z("design:type",Boolean)],jD.prototype,"collapsed",void 0);_.a([_.b({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.z("design:type",Boolean)],jD.prototype,"hideChatFrame",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jD.prototype,"showAboveScrim",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jD.prototype,"watchNextGrid",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],jD.prototype,"modernButtons",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jD.prototype,"roundedContainer",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jD.prototype,"noBorder",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],jD.prototype,"roundBackground",void 0);
_.a([_.b({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.z("design:type",Object)],jD.prototype,"toggleButtonOverride",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],jD.prototype,"overflowHideChat",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jD.prototype,"forceDarkTheme",void 0);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],jD.prototype,"enableShowWithoutHideChatButton",null);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jD.prototype,"theaterWatchWhile",void 0);_.a([_.Aa("#chatframe"),_.z("design:type",HTMLIFrameElement)],jD.prototype,"chatframe",void 0);_.a([_.XI("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jD.prototype,"onShowHideChat",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jD.prototype,"dataChanged",null);
_.a([_.TS("url"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jD.prototype,"urlChanged",null);_.a([_.TS("collapsed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jD.prototype,"collapsedChanged",null);_.a([_.A({is:"ytd-live-chat-frame",disableElementRegistration:!0})],jD);
_.Z(jD,"ytd-live-chat-frame",function(){if(eKy!==void 0)return eKy;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return eKy=W},{mode:1});var q1e;var Ix=function(){var W=_.I.apply(this,arguments)||this;W.modern=_.U("web_modern_buttons");W.buttonOverrides={style:"call-to-action",type:"filled"};return W};
_.v(Ix,_.I);Ix.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=_.ta(this.data.backgroundColor)))};
Ix.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var W=this.getFormattedStringLoggingDirectives(this.data.headline);W&&this.rendererBehavior.logExplicitClick(W)}};
Ix.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var W=this.getFormattedStringLoggingDirectives(this.data.description);W&&this.rendererBehavior.logExplicitClick(W)}};
Ix.prototype.getFormattedStringLoggingDirectives=function(W){return W&&W.runs&&W.runs.length>0&&W.runs[0]&&W.runs[0].loggingDirectives?W.runs[0].loggingDirectives:null};
Ix.prototype.dataChanged=Ix.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Ix.prototype,"rendererBehavior",void 0);_.a([_.F(mCI.YtMacroReplacementBehavior),_.z("design:type",Object)],Ix.prototype,"macroReplacementBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Ix.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Ix.prototype,"navigationEndpoint",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Ix.prototype,"enableColors",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ix.prototype,"modern",void 0);_.a([_.b(),_.z("design:type",Object)],Ix.prototype,"buttonOverrides",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ix.prototype,"dataChanged",null);_.a([_.A({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Ix);
_.Z(Ix,"ytd-action-basic-immersive-content-renderer",function(){if(q1e!==void 0)return q1e;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return q1e=W},{mode:1});var hKa;var S1y;var ie=function(){return _.I.apply(this,arguments)||this};
_.v(ie,_.I);ie.prototype.dataChanged=function(){var W;((W=this.data)==null?void 0:W.backgroundColor)!==void 0&&_.I1(this.hostElement,{"--bgu-color":_.ta(this.data.backgroundColor)})};
ie.prototype.onImageTileClick=function(){var W;((W=this.data)==null?0:W.navigationEndpoint)&&_.FN(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var l;((l=this.data)==null?0:l.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.rc.Object.defineProperties(ie.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.data)==null?void 0:W.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 W;return((W=this.data)==null?void 0:W.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var W,l,V;if(((W=this.data)==null?void 0:(l=W.detailsLine)==null?void 0:l.texts)!=null&&((V=this.data)==null?void 0:V.detailsLine.texts.length)>0){var f;return(f=this.data)==null?void 0:f.detailsLine.texts.map(function(r){return r.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var W,l,V;if(((W=this.data)==null?void 0:(l=W.optionalDetailsLine)==null?void 0:l.texts)!=null&&((V=this.data)==null?void 0:V.optionalDetailsLine.texts.length)>0){var f;return(f=this.data)==null?void 0:f.optionalDetailsLine.texts.map(function(r){return r.text}).join("")}return null}}});
ie.prototype.dataChanged=ie.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ie.prototype,"rendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],ie.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ie.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("data.backgroundColor"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ie.prototype,"hasBackgroundColor",null);
_.a([_.G("data.objectFit"),_.z("design:type",Object),_.z("design:paramtypes",[])],ie.prototype,"getObjectFit",null);_.a([_.b({reflectToAttribute:!0}),_.G("data.tileRenderingStyle"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ie.prototype,"hasTileMetadata",null);_.a([_.G("data.detailsLine"),_.z("design:type",Object),_.z("design:paramtypes",[])],ie.prototype,"getSecondaryDetails",null);
_.a([_.G("data.optionalDetailsLine"),_.z("design:type",Object),_.z("design:paramtypes",[])],ie.prototype,"getOptionalDetails",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ie.prototype,"dataChanged",null);_.a([_.A({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],ie);
_.Z(ie,"ytd-image-tile-renderer",function(){if(S1y!==void 0)return S1y;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return S1y=W},{mode:1});var EN7;var ms=function(){return _.I.apply(this,arguments)||this};
_.v(ms,_.I);ms.prototype.getOpenLinkIcon=function(){return _.U("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
ms.prototype.onSitelinkTap=function(){_.FN(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.U("kevlar_command_handler_migration_killswitch"))_.og(this.hostElement,this.data.clickCommands,this.hostElement);else for(var W=_.L(this.data.clickCommands),l=W.next();!l.done;l=W.next())this.ytComponentBehavior.resolveCommand(l.value)};
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],ms.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ms.prototype,"rendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ms.prototype,"data",void 0);_.a([_.A({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],ms);
_.Z(ms,"ytd-sitelink-renderer",function(){if(EN7!==void 0)return EN7;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return EN7=W},{mode:1});var Xa=function(){var W=_.I.apply(this,arguments)||this;W.paddingFix=_.U("enable_ads_web_ep_buenos_aires_and_padding_fix");return W};
_.v(Xa,_.I);Xa.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"}}}};
Xa.prototype.dataChanged=function(){var W=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(l){l.clickTrackingParams&&delete l.clickTrackingParams;W.ytMacroReplacementBehavior.sendServiceRequestAction([l])})};
Xa.prototype.shouldHideFooter=function(W){return!(W&&_.U("use_ads_engagement_panel_desktop_footer_cta"))};
_.rc.Object.defineProperties(Xa.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.data)==null?void 0:W.imageTileRenderers)===void 0||((l=this.data)==null?void 0:l.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(V){var f;return(f=_.k(V,okk))==null?void 0:f.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.data)==null?void 0:W.imageTileRenderers)===void 0||((l=this.data)==null?void 0:l.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(V){var f;return((f=_.k(V,okk))==null?void 0:f.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Xa.prototype.dataChanged=Xa.prototype.dataChanged;_.a([_.F(mCI.YtMacroReplacementBehavior),_.z("design:type",Object)],Xa.prototype,"ytMacroReplacementBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Xa.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Xa.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Xa.prototype,"paddingFix",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("data.imageTileRenderers"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Xa.prototype,"removeBorderFromImageTiles",null);_.a([_.b({reflectToAttribute:!0}),_.G("data.imageTileRenderers"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Xa.prototype,"useFooteredMetadataRenderingStyle",null);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Xa.prototype,"dataChanged",null);_.a([_.A({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Xa);
_.Z(Xa,"ytd-action-engagement-panel-content-renderer",function(){if(hKa!==void 0)return hKa;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return hKa=W},{mode:1});var $CO;var WlM=_.Q(function(W){var l=W.data;var V=W.customCommandResolver;return _.C("ad-grid-card-image-full-metadata-view-model",{class:function(){var f;return((f=l().interaction)==null?0:f.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.DN(_.su({visibilityCallback:function(f){var r,R=(r=l().interaction)==null?void 0:r.onFirstVisible;f&&R&&_.sZ(R)},
showOption:_.ir}),_.Vl(function(){return l().interaction},V)),
"aria-label":function(){var f,r;return(f=l().interaction)==null?void 0:(r=f.accessibility)==null?void 0:r.label}},_.C("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.C(_.QH,{data:function(){return l().adImage}},{adImageViewModel:function(f){return _.C(_.qQ,{data:f.data,
customCommandResolver:V})}})),_.C("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.C(_.c,{cond:function(){return l().headline},
then:function(f){return _.C(_.bH,{text:f,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.C(_.c,{cond:function(){return l().detailsLine},
then:function(f){return _.C("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.C(_.QH,{data:f},{adDetailsLineViewModel:function(r){return _.C(_.ZO,{data:r.data,customCommandResolver:V,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.C(_.c,{cond:function(){return l().secondaryDetailsLine},
then:function(f){return _.C("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.C(_.QH,{data:f},{adDetailsLineViewModel:function(r){return _.C(_.ZO,{data:r.data,customCommandResolver:V,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"wk");var l1k=_.Q(function(W){var l=W.data;var V=W.customCommandResolver;return _.C("ad-grid-card-image-view-model",{class:function(){var f;return((f=l().interaction)==null?0:f.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.DN(_.su({visibilityCallback:function(f){var r,R=(r=l().interaction)==null?void 0:r.onFirstVisible;f&&R&&_.sZ(R)},
showOption:_.ir}),_.Vl(function(){return l().interaction},V)),
"aria-label":function(){var f,r;return(f=l().interaction)==null?void 0:(r=f.accessibility)==null?void 0:r.label}},_.C(_.QH,{data:function(){return l().adImage}},{adImageViewModel:function(f){return _.C(_.qQ,{data:f.data,
customCommandResolver:V})}}),_.C("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.C(_.QH,{data:function(){return l().adCardBadge}},{adCardBadgeViewModel:_.XnX})))},"xk");var VVX=_.Q(function(W){var l=W.data;var V=W.customCommandResolver;return _.C("ad-grid-card-text-view-model",{class:function(){var f;return((f=l().interaction)==null?0:f.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.DN(_.su({visibilityCallback:function(f){var r,R=(r=l().interaction)==null?void 0:r.onFirstVisible;f&&R&&_.sZ(R)},
showOption:_.ir}),_.Vl(function(){return l().interaction},V)),
"aria-label":function(){var f,r;return(f=l().interaction)==null?void 0:(r=f.accessibility)==null?void 0:r.label}},_.C("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.C(_.c,{cond:function(){return l().title},
then:function(f){return _.C(_.bH,{text:f,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.C("div",{class:function(){return _.U("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.C(_.G3,{each:function(){var f;
return((f=l())==null?void 0:f.descriptions)||[]},
keyBy:"INDEX"},function(f){return _.C(_.bH,{text:f,className:function(){return _.U("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.C("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.C(_.QH,{data:function(){return l().moreInfoButton}},{adButtonViewModel:function(f){return _.C(_.Xq,{data:f.data,
customCommandResolver:V})}})))},"yk");var f17=_.Q(function(W){var l=W.data;var V=W.customCommandResolver;var f=W.adGridCardCollectionStyle;return _.C("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.DN(_.su({visibilityCallback:function(r){var R,y=(R=l().interaction)==null?void 0:R.onFirstVisible;r&&y&&_.sZ(y)},
showOption:_.ir})),style:function(){return"grid-template-columns: repeat("+wee(f?f():l().style)+", minmax(0, 1fr));"}},_.C(_.QH,{data:function(){var r;
return(r=l())==null?void 0:r.gridCards}},{adGridCardImageViewModel:function(r){return _.C(l1k,{data:r.data,
customCommandResolver:V})},
adGridCardImageFullMetadataViewModel:function(r){return _.C(WlM,{data:r.data,customCommandResolver:V})},
adGridCardTextViewModel:function(r){return _.C(VVX,{data:r.data,customCommandResolver:V})}}))},"zk");_.HI(_.Q(function(W){var l=W.data;return _.C("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.DN(_.su({visibilityCallback:function(V){var f,r=(f=l().interaction)==null?void 0:f.onFirstVisible;V&&r&&_.sZ(r)},
showOption:_.ir}),_.Vl(function(){return l().interaction},QwI))},_.C("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.C(_.c,{cond:_.Ej8("(min-width: "+((0,_.UW)()+_.qb)+"px)"),
then:function(){return _.C(_.QH,{data:function(){return l().adGridCardCollection}},{adGridCardCollectionViewModel:function(V){return _.C(f17,{data:V.data,
customCommandResolver:QwI})}})},
else:function(){return _.C(_.QH,{data:function(){return l().adGridCardCollection}},{adGridCardCollectionViewModel:function(V){return _.C(f17,{data:V.data,
customCommandResolver:QwI,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.C("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.C(_.QH,{data:function(){return l().adButton}},{adButtonViewModel:function(V){return _.C(_.Xq,{data:V.data,
customCommandResolver:QwI})}})))},"Ak"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.pA}});_.HI(_.Q(function(W){var l=W.data;return _.C("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.DN(_.su({visibilityCallback:function(V){var f,r=(f=l().interaction)==null?void 0:f.onFirstVisible;V&&r&&_.sZ(r)},
showOption:_.ir}),_.Vl(function(){return l().interaction},MYy))},_.C("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.C(_.QH,{data:function(){if(_.Ej8("(min-width: "+((0,_.UW)()+_.qb)+"px)")())var V=l().adGridCardCollection;
else{V=Object.assign({},_.k(l().adGridCardCollection,jvy));var f;V.gridCards!==void 0&&((f=V.gridCards)==null?void 0:f.length)>1?V.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":V.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";V={adGridCardCollectionViewModel:V}}return V}},{adGridCardCollectionViewModel:function(V){return _.C(f17,{data:V.data,
customCommandResolver:MYy})}})),_.C("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.C(_.QH,{data:function(){return l().adButton}},{adButtonViewModel:function(V){return _.C(_.Xq,{data:V.data,
customCommandResolver:MYy})}})))},"Bk"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.pA}});var TN=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return W};
_.v(TN,_.I);_.t=TN.prototype;_.t.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"}}}};
_.t.attached=function(){this.getDataFromPlayerAndRender()};
_.t.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.t.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.t.getDataFromPlayerAndRender=function(){var W=this,l=_.Jy(this.hostElement);l&&l.getPlayerPromise().then(function(V){W.getCachedDataAndListen(V)})};
_.t.getCachedDataAndListen=function(W){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(W,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(W,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=W)};
_.t.resolveCachedActions=function(){var W=_.Y2("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(W=W&&W())&&!_.MC.isEmpty(W)&&this.sendUpdateEngagementPanelAction(W);(W=(W=_.Y2("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&W())&&!_.MC.isEmpty(W)&&this.sendChangeEngagementPanelVisibilityAction(W);(W=(W=_.Y2("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&W())&&!_.MC.isEmpty(W)&&this.sendScrollToEngagementPanelCommand(W)};
_.t.sendUpdateEngagementPanelAction=function(W){var l;_.Gt(this.hostElement,"yt-update-engagement-panel-action",[(l=_.MC.get(W,"action"))!=null?l:W])};
_.t.sendChangeEngagementPanelVisibilityAction=function(W){_.Gt(this.hostElement,"yt-change-engagement-panel-visibility-action",[W])};
_.t.sendScrollToEngagementPanelCommand=function(W){_.Gt(this.hostElement,"yt-scroll-to-engagement-panel-command",[W])};
_.t.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.U("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Qe(Error("Mo"))};
TN.prototype.dataChanged=TN.prototype.dataChanged;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],TN.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],TN.prototype,"componentBehavior",void 0);_.a([_.F(_.by.YtPlayerListenerBehavior),_.z("design:type",_.pZ)],TN.prototype,"ytPlayerListenerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],TN.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],TN.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],TN.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],TN.prototype,"player",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TN.prototype,"dataChanged",null);_.a([_.A({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],TN);
_.Z(TN,"ytd-ads-engagement-panel-content-renderer",function(){if($CO!==void 0)return $CO;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
return $CO=W},{mode:1});var rlk;var wr=function(){var W=_.I.apply(this,arguments)||this;W.player=null;W.JSC$22612_playerEvents=new Map;W.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return W};
_.v(wr,_.I);_.t=wr.prototype;_.t.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]]"}}}}}};
_.t.created=function(){this.player=null;this.JSC$22612_playerEvents=new Map;this.JSC$22612_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22612_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22612_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22612_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.t.attached=function(){var W=this,l=_.Jy();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));l&&l.getPlayerPromise().then(function(V){W.setPlayer(V);W.set("isPageLoad",!1)})};
_.t.setPlayer=function(W){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22612_playerEvents);this.set("player",W);W&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$22612_playerEvents),W.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.t.onLoopRangeChange=function(W){var l=_.tY().resolve(_.R0(_.Bp));if((!l||l.isOnWatch())&&this.hostElement.clientHeight){var V;!W&&((V=this.data)==null?0:V.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.t.onVideoProgress=function(W){var l,V,f=((l=this.player)==null?void 0:(V=l.getPresentingPlayerType)==null?void 0:V.call(l))===2;this.isAdPlaying!==f&&this.set("isAdPlaying",f);var r;if(!f&&(r=this.player)!=null&&r.getLoopRange()){V=this.player.getLoopRange();l=V.startTimeMs;V=V.endTimeMs;f=this.player.getProgressState(1).seekableStart;var R;l<f*1E3&&((R=this.data)==null?0:R.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
W=V<W*1E3;var y;((y=this.player)==null?0:y.getLoopRange())&&W&&this.player.seekTo(l/1E3)}};
_.t.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.t.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.t.onYtDeleteClipEngagementPanelCommand=function(W){_.k(W,YPy).command&&this.ytComponentBehavior.resolveCommand(_.k(W,YPy).command)};
_.rc.Object.defineProperties(wr.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.voteCount)||_.Bl("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],wr.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],wr.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],wr.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.by.YtPlayerListenerBehavior),_.z("design:type",_.pZ)],wr.prototype,"ytPlayerListenerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],wr.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],wr.prototype,"isAdPlaying",void 0);_.a([_.b({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],wr.prototype,"isPageLoad",void 0);_.a([_.b({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],wr.prototype,"isDarkTheme",void 0);
_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],wr.prototype,"voteCount",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],wr.prototype,"channelEndpoint",null);_.a([_.G("channelEndpoint"),_.z("design:type",Object),_.z("design:paramtypes",[])],wr.prototype,"channelHref",null);_.a([_.A({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],wr);
_.Z(wr,"ytd-clip-attribution-renderer",function(){if(rlk!==void 0)return rlk;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return rlk=W},{mode:1});var ROa;var AN=function(){var W=_.I.apply(this,arguments)||this;W.player=null;W.JSC$22617_playerEvents=new Map;return W};
_.v(AN,_.I);_.t=AN.prototype;_.t.created=function(){this.player=null;this.JSC$22617_playerEvents=new Map;this.JSC$22617_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22617_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22617_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.t.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.t.attached=function(){var W=this,l=_.Jy();l&&l.getPlayerPromise().then(function(V){W.setPlayer(V);W.set("isPageLoad",!1)})};
_.t.setPlayer=function(W){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22617_playerEvents);this.set("player",W);if(W){this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$22617_playerEvents);var l;(W==null?void 0:(l=W.getPresentingPlayerType)==null?void 0:l.call(W))===2&&this.playerAdStartHandler()}};
_.t.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.t.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.t.onVideoProgress=function(){var W,l,V=((W=this.player)==null?void 0:(l=W.getPresentingPlayerType)==null?void 0:l.call(W))===2;this.isAdPlaying!==V&&this.set("isAdPlaying",V)};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],AN.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],AN.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.by.YtPlayerListenerBehavior),_.z("design:type",_.pZ)],AN.prototype,"ytPlayerListenerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],AN.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],AN.prototype,"isAdPlaying",void 0);
_.a([_.b({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],AN.prototype,"isPageLoad",void 0);_.a([_.A({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],AN);
_.Z(AN,"ytd-clip-section-footer-renderer",function(){if(ROa!==void 0)return ROa;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return ROa=W},{mode:1});var tVy;var sZ7;var Llk=function(){return _.I.apply(this,arguments)||this};
_.v(Llk,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Llk.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Llk.prototype,"data",void 0);_.a([_.A({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],Llk);
_.Z(Llk,"ytd-clip-ad-state-renderer",function(){if(sZ7!==void 0)return sZ7;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return sZ7=W},{mode:1});var ylO;var Qh=function(){var W=_.I.apply(this,arguments)||this;W.value="";W.valid=!1;W.userChangedValue=!1;W.disabled=!1;W.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return W};
_.v(Qh,_.I);_.t=Qh.prototype;_.t.detached=function(){this.userChangedValue=!1};
_.t.handleKeyDown=function(W){if(_.vF)var l=13;else _.lg6&&_.HF?l=13:l=13;W.keyCode===l&&W.preventDefault()};
_.t.handleInput=function(){var W=_.GS(this.hostElement).querySelector("#title");if(W){var l=(W.value||"").replace(/\r|\n/g," ");this.set("value",l);W.value=l;this.valid=W.validate();this.userChangedValue=!0}};
_.t.handleBlur=function(){this.valid=_.GS(this.hostElement).querySelector("#title").validate()};
_.t.onValueChanged=function(){_.FN(this.hostElement,"title-changed",{title:this.value})};
_.t.onValidChanged=function(){_.FN(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.t.setInput=function(W,l){var V=_.GS(this.hostElement).querySelector("#title");V&&(V.value=W,this.handleInput(),l&&(V.invalid=!1,this.valid=!0))};
_.t.onClipCreationDisable=function(){this.set("disabled",!0)};
_.t.onClipCreationEnable=function(){this.set("disabled",!1)};
_.t.onClipCreationVisibilityChange=function(W){var l=this;W.visible?requestAnimationFrame(function(){var V;((V=_.GS(l.hostElement).querySelector("#title"))==null?void 0:V.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Qh.prototype.onValidChanged=Qh.prototype.onValidChanged;Qh.prototype.onValueChanged=Qh.prototype.onValueChanged;Qh.prototype.handleBlur=Qh.prototype.handleBlur;Qh.prototype.handleInput=Qh.prototype.handleInput;Qh.prototype.handleKeyDown=Qh.prototype.handleKeyDown;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Qh.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Qh.prototype,"ytActionHandlerBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],Qh.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Qh.prototype,"value",void 0);_.a([_.b(),_.z("design:type",Object)],Qh.prototype,"valid",void 0);_.a([_.b(),_.z("design:type",Object)],Qh.prototype,"userChangedValue",void 0);_.a([_.b(),_.z("design:type",Object)],Qh.prototype,"disabled",void 0);_.a([_.XI("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],Qh.prototype,"handleKeyDown",null);
_.a([_.XI("input"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"handleInput",null);_.a([_.XI("blur"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"handleBlur",null);_.a([_.TS("value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"onValueChanged",null);
_.a([_.TS("valid"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qh.prototype,"onValidChanged",null);_.a([_.A({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Qh);
_.Z(Qh,"ytd-clip-creation-text-input-renderer",function(){if(ylO!==void 0)return ylO;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return ylO=W},{mode:1});var g9O;var PIv;var n9P;var CI$;var clP;var Mu=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};W.pendingStoryboardImages_={};W.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];W.tickLabelInterval=30;W.mediumTickInterval=5;W.largeTickInterval=15;W.aboveRulerHeight=32;W.rulerHeight=50;W.smallTickHeight=4;W.mediumTickHeight=8;W.largeTickHeight=16;W.mediaListeners_=
{};return W};
_.v(Mu,_.I);_.t=Mu.prototype;_.t.attached=function(){var W=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(l){l=_.L(["screen and (min-resolution: "+l+")","screen and (max-resolution: "+l+")"]);for(var V=l.next();!V.done;V=l.next()){V=V.value;var f=window.matchMedia(V);f&&(W.mediaListeners_[V]=W.updatePixelRatio_.bind(W),f.addEventListener?f.addEventListener("change",W.mediaListeners_[V]):f.addListener?f.addListener(W.mediaListeners_[V]):delete W.mediaListeners_[V])}})};
_.t.detached=function(){this.setPlayer(null);for(var W=_.L(Object.keys(this.mediaListeners_)),l=W.next();!l.done;l=W.next()){var V=l.value;l=this.mediaListeners_[V];(V=window.matchMedia(V))&&(V.removeEventListener?V.removeEventListener("change",l):V.removeListener&&V.removeListener(l))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.t.onVisibilityChangedAction_=function(W){var l=this;W.visible&&!this.player_&&(W=_.Jy())&&W.getPlayerPromise().then(function(V){l.setPlayer(V)})};
_.t.setPlayer=function(W){W&&this.set("player_",W)};
_.t.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.t.setUpCanvas_=function(){var W=this.rulerWidth,l=this.devicePixelRatio_,V=this.visible;this.set("canvasReady_",!1);if(V&&l!==0){V=this.aboveRulerHeight+this.rulerHeight;var f=_.GS(this.hostElement).querySelector("#ticks");f.width=W*l;f.height=V*l;f.style.width=W+"px";f.style.height=V+"px";f.getContext("2d").scale(l,l);this.set("canvasReady_",!0)}};
_.t.drawRuler_=function(W,l,V,f,r,R,y,P,n,B,d,J){W&&V&&l&&(W=_.GS(this.hostElement).querySelector("#ticks"),l=W.getContext("2d"),l.clearRect(0,0,W.width,W.height),l.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),l.lineWidth=2,l.beginPath(),l.moveTo(0,this.aboveRulerHeight),l.lineTo(W.width,this.aboveRulerHeight),l.moveTo(0,W.height),l.lineTo(W.width,W.height),l.stroke(),this.drawRulerTicks_(W,R,r,f),this.drawStoryboardImages_(W,V,R,r,f),l.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
l.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(y-R,f,!1),this.rulerHeight),V=this.timeToPixels_(P-R,f,!1),l.fillRect(V,this.aboveRulerHeight,W.width-V,this.rulerHeight),this.drawSpeedLines_(W,R,J))};
_.t.drawRulerTicks_=function(W,l,V,f){var r=W.getContext("2d");r.save();r.lineWidth=1;for(var R=Math.floor(Math.max(0,l-this.tickLabelInterval));R<l+V;R++){r.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var y=(R-l)*f;r.beginPath();r.moveTo(y,W.height);var P=this.smallTickHeight;R%this.largeTickInterval===0?P=this.largeTickHeight:R%this.mediumTickInterval===0&&(P=this.mediumTickHeight);r.lineTo(y,W.height-P);r.stroke();R%this.tickLabelInterval===0&&(r.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),r.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),r.fillText(zA(R),y+4,12),r.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),r.moveTo(y,0),r.lineTo(y,this.aboveRulerHeight),r.stroke())}r.restore()};
_.t.percentToHex_=function(W){W=Math.round(W*255).toString(16);W.length<2&&(W="0"+W);return W};
_.t.drawSpeedLines_=function(W,l,V){var f=W.getContext("2d");f.save();var r=Math.min(25,Math.abs(V)-15)/25,R=W.width*.3*r,y=W.width*-.3,P=W.width*1.3,n=this.aboveRulerHeight;W=W.height;var B=Math.round(4*r),d=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");d.length<7&&(d="#"+d.substring(1,4).repeat(2));var J=this.percentToHex_(.5+r/2);J=d+J;d+="00";if(r>0)for(r=0;r<B;r++){var D=y+Math.random()*(P-y),u=n+Math.random()*(W-n),H=R+l%R,p=f.createLinearGradient(D,u,D+H,u);
V<0?(p.addColorStop(0,J),p.addColorStop(.4,J),p.addColorStop(.9,d)):(p.addColorStop(.1,d),p.addColorStop(.6,J),p.addColorStop(1,J));f.strokeStyle=p;f.lineWidth=1;f.beginPath();f.moveTo(D,u);f.lineTo(D+H,u);f.stroke()}f.restore()};
_.t.getStoryboardForTime_=function(W,l,V){V===void 0&&(V=l.getNumberOfStoryboardLevels()-1);W=l.getStoryboardFrameIndex(W,V);return l.getStoryboardFrame(W,V)};
_.t.drawStoryboardImages_=function(W,l,V,f,r){if(!this.disabled){W=W.getContext("2d");var R=this.getStoryboardForTime_(0,l);if(R){var y=R.width/R.columns;R=R.height/R.rows;var P=y/R,n=this.rulerHeight*P;n=this.tickLabelInterval*(P<this.tickLabelInterval*r/this.rulerHeight?1/Math.floor(this.tickLabelInterval*r/n):Math.round(n/(this.tickLabelInterval*r)));var B=n*r,d=this.rulerHeight,J=B/this.rulerHeight,D=Math.floor(Math.max(0,V-n));for(D-=D%n;D<V+f;D+=n){var u=this.getStoryboardForTime_(D,l),H=this.getPreloadedStoryboard_(u.url);
if(H){var p=(D-V)*r,X=this.aboveRulerHeight,w=u.column*y,O=u.row*R;if(P<J){var S=d/(B/P);u=y;S*=R;O+=(R-S)/2}else u=B/(d*P)*y,S=R,w+=(y-u)/2;W.drawImage(H,w,O,u,S,p,X,B,d)}else this.fetchStoryboardImage_(u)}}}};
_.t.getPreloadedStoryboard_=function(W){return this.storyboardImages_.find(function(l){if(l.src==W)return!0;var V=l.src.indexOf(W);return V!=-1&&V==l.src.length-W.length})};
_.t.fetchStoryboardImage_=function(W){var l=this,V=this.getPreloadedStoryboard_(W.url),f=this.pendingStoryboardImages_[W.url];V||f!==void 0||(V=new Promise(function(r){var R=new Image(W.width,W.height);R.src=W.url;R.onload=function(){r(R)};
R.onerror=function(){r(null)}}),this.pendingStoryboardImages_[W.url]=V,V.then(function(r){r&&l.push("storyboardImages_",r);
return r}).finally(function(){delete l.pendingStoryboardImages_[W.url]}))};
_.t.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.t.timeToPixels_=function(W,l,V){W*=l;return V===void 0||V?W+"px":W};
_.t.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
Mu.prototype.drawRuler_=Mu.prototype.drawRuler_;Mu.prototype.setUpCanvas_=Mu.prototype.setUpCanvas_;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Mu.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Mu.prototype,"ytRendererBehavior",void 0);_.a([_.b({value:0}),_.z("design:type",Number)],Mu.prototype,"start",void 0);_.a([_.b({value:30}),_.z("design:type",Number)],Mu.prototype,"end",void 0);
_.a([_.b({value:!1}),_.z("design:type",Boolean)],Mu.prototype,"visible",void 0);_.a([_.b(),_.z("design:type",Object)],Mu.prototype,"player_",void 0);_.a([_.b(),_.z("design:type",Number)],Mu.prototype,"tickSpacing",void 0);_.a([_.b(),_.z("design:type",Number)],Mu.prototype,"windowSizeSec",void 0);_.a([_.b({value:0}),_.z("design:type",Number)],Mu.prototype,"rulerWidth",void 0);_.a([_.b({value:0}),_.z("design:type",Number)],Mu.prototype,"rulerShift",void 0);
_.a([_.b({value:!1}),_.z("design:type",Boolean)],Mu.prototype,"canvasReady_",void 0);_.a([_.b({value:function(){return[]}}),
_.z("design:type",Array)],Mu.prototype,"storyboardImages_",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],Mu.prototype,"disabled",void 0);_.a([_.b({value:0}),_.z("design:type",Number)],Mu.prototype,"forceRender_",void 0);_.a([_.b({value:1}),_.z("design:type",Number)],Mu.prototype,"devicePixelRatio_",void 0);_.a([_.b({value:0}),_.z("design:type",Number)],Mu.prototype,"windowSpeed",void 0);
_.a([_.TS("visible","devicePixelRatio_","rulerWidth"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mu.prototype,"setUpCanvas_",null);
_.a([_.TS("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.z("design:type",Function),_.z("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.z("design:returntype")],Mu.prototype,"drawRuler_",null);_.a([_.Vq({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],Mu);
_.Z(Mu,"yt-clip-creation-scrubber-canvas",function(){if(clP===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);clP=W}W=clP;return W},
{mode:2});var BdM;var dsP;var Zg=function(){var W=_.I.apply(this,arguments)||this;W.start=0;W.end=30;W.visible=!1;W.draggingLeft_=!1;W.draggingRight_=!1;W.draggingRuler_=!1;W.draggingWindow_=!1;W.seekableStart=0;W.seekableEnd=0;W.rulerWidth_=0;W.rulerShift_=0;W.windowSlideSpeed=0;W.disabled=!1;W.initialized=!1;W.durationAccessibilityLabel="";W.activeLoopRange_=!1;W.rulerDragMouseStart_=0;W.rulerDragRulerStart_=0;W.rulerDragStartTime_=0;W.rulerDragEndTime_=0;W.dragMouseLastX_=0;W.scrollInterval_=null;W.scrubberVe_=null;W.boundHandlers_=
{};W.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return W};
_.v(Zg,_.I);_.t=Zg.prototype;
_.t.created=function(){var W=this;this.JSC$22630_playerEvents=new Map;this.JSC$22630_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22630_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22630_playerEvents.set("onStateChange",this.onStateChange_);var l={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(l).forEach(function(V){W.boundHandlers_[V]=l[V].bind(W)})};
_.t.attached=function(){this.activeLoopRange_=!1;_.GS(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.GS(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.GY(156731)};
_.t.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.GS(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.GS(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.t.onVisibilityChangedAction_=function(W){var l=this;W.visible&&!this.player_&&(W=_.Jy())&&W.getPlayerPromise().then(function(V){l.setPlayer(V)})};
_.t.setPlayer=function(W){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22630_playerEvents);W&&(this.set("player_",W),this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$22630_playerEvents))};
_.t.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.t.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.t.beginHandleDrag_=function(W){this.disabled||(W.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=W.clientX,W.target===_.GS(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():W.target===_.GS(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.t.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.t.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.t.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.t.beginRulerDrag_=function(W){this.disabled||(W.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=W.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.t.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.t.beginWindowScroll_=function(){var W=this;this.scrollInterval_=setInterval(function(){var l=W.windowSlideSpeed;if(l=_.Mv7(W.start,W.boundedRulerStartLimit_())?l-.1:_.Mv7(W.end,W.boundedRulerEndLimit_())?l+.1:0){var V=W.capRulerOffset_(W.rulerShift_+l);V==W.rulerShift_?l=0:(W.set("rulerShift_",V),_.FN(W.hostElement,"set-fixed-length-range",{start:W.start+l,duration:W.end-W.start}))}W.set("windowSlideSpeed",l)},33)};
_.t.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.t.endDrag_=function(){this.logClick();var W=void 0;this.draggingRight_?W=this.end-1:this.draggingLeft_&&(W=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,W);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))};
_.t.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.t.updateRulerSize_=function(){this.set("rulerWidth_",_.GS(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.t.handleMouseDrag_=function(W){W.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(W):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(W):this.draggingWindow_&&this.handleWindowDrag_(W))};
_.t.handleRulerDrag_=function(W){W=this.pixelsToTime_(W.clientX-this.rulerDragMouseStart_);W=this.capRulerOffset_(this.rulerDragRulerStart_-W);this.set("rulerShift_",W);var l=this.rulerDragStartTime_-(this.rulerDragRulerStart_-W);_.FN(this.hostElement,"set-fixed-length-range",{start:l,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-W)-l})};
_.t.handleWindowDrag_=function(W){var l=W.clientX-this.dragMouseLastX_;this.dragMouseLastX_=W.clientX;W=this.pixelsToTime_(l);_.FN(this.hostElement,"set-fixed-length-range",{start:this.start+W,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.t.capRulerOffset_=function(W){var l=this.seekableStart-this.pixelsToTime_(16),V=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(l,W),V)};
_.t.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.t.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.t.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.t.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.t.handleWindowHandleDrag_=function(W){var l=W.clientX-this.dragMouseLastX_;this.dragMouseLastX_=W.clientX;W=this.pixelsToTime_(l);if(this.draggingLeft_){var V=this.start+W;var f=this.end}else this.draggingRight_&&(V=this.start,f=this.end+W);_.FN(this.hostElement,"set-range",{start:V,end:f,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.t.onVideoProgress_=function(W){this.disabled||(W=this.timeToPixels_(W-this.rulerShift_,this.tickSpacing_),_.GS(this.hostElement).querySelector("#playhead").style.transform="translateX("+W+")")};
_.t.onClipCreationDisable_=function(){this.endDrag_()};
_.t.timeToPixels_=function(W,l,V){W*=l;return V===void 0||V?W+"px":W};
_.t.pixelsToTime_=function(W){return W/this.tickSpacing_};
_.t.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.t.centerRuler_=function(W,l,V){this.set("rulerShift_",this.capRulerOffset_(W+(l-W)/2-V/2))};
_.t.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.t.updateLoopRange_=function(W,l,V,f,r,R,y){W&&(l&&f&&!V?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(W.pauseVideo(),W.seekTo(r,!1,void 0,void 0,50)):this.draggingRight_?(W.pauseVideo(),W.seekTo(R-.1,!1,void 0,void 0,50)):(y!==void 0?W.seekTo(y,!0,void 0,void 0,50):(l=W.getCurrentTime(),l<r||l>R?W.seekTo(r,!0,void 0,void 0,50):W.seekTo(l,!0,void 0,void 0,50)),W.playVideo()),W.setLoopRange({startTimeMs:r*1E3,endTimeMs:R*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(W.getCurrentTime())):
this.activeLoopRange_&&(W.setLoopRange(null),this.activeLoopRange_=!1))};
_.t.updateHandles_=function(){_.GS(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.GS(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.t.updateRuler_=function(){var W=this.end,l=this.start,V=this.draggableStartLimit_(),f=this.draggableEndLimit_();(l<V-.001||W>f+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.t.computeDurationLabel_=function(W,l){return W?W.replace("$clip_length",parseFloat(l).toFixed(1)):""};
_.t.computeDuration_=function(W,l){return this.isValidTime_(W)&&this.isValidTime_(l)&&W<l?l-W:0};
_.t.isValidTime_=function(W){return isNaN(parseFloat(W))||W<0?!1:this.player_?W>=this.seekableStart&&W<=this.seekableEnd:!0};
_.t.computeWindowSizeSec_=function(W,l,V){return Math.min((W||12E4)/1E3,V-l)};
_.t.computeTickSpacing_=function(W,l){return l?l/W:1};
_.t.onDragStateChanged_=function(){_.FN(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.t.centerRangeOnTime_=function(W){var l=this.duration;W=O2M(W-l/2,l,this.seekableStart,this.seekableEnd);_.FN(this.hostElement,"set-fixed-length-range",{start:W.start,duration:W.end-W.start})};
_.t.nearlyLessThan_=function(W,l,V){return W+(V===void 0?1E-6:V)<l};
_.t.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var W=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(W,this.start)||this.nearlyLessThan_(this.end,W))&&this.centerRangeOnTime_(W)}};
_.t.onStateChange_=function(W){this.visible&&!this.disabled&&W==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.t.computeDragState_=function(W,l,V,f){return W?"left":l?"right":V?"ruler":f?"window":"none"};
_.t.logClick=function(){var W=_.Wh(),l=_.$G();W&&l&&this.scrubberVe_&&(_.U("combine_ve_grafts")?_.aH(_.Qq(),this.scrubberVe_,l):_.L0(W,l,this.scrubberVe_),_.C0(W,this.scrubberVe_))};
Zg.prototype.onDragStateChanged_=Zg.prototype.onDragStateChanged_;Zg.prototype.updateRuler_=Zg.prototype.updateRuler_;Zg.prototype.updateHandles_=Zg.prototype.updateHandles_;Zg.prototype.onUpdateLoopRange=Zg.prototype.onUpdateLoopRange;Zg.prototype.onInitializedChanged_=Zg.prototype.onInitializedChanged_;Zg.prototype.onVisibleChanged_=Zg.prototype.onVisibleChanged_;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Zg.prototype,"ytActionHandlerBehavior",void 0);
_.a([_.F(_.by.YtPlayerListenerBehavior),_.z("design:type",Object)],Zg.prototype,"ytPlayerListenerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Zg.prototype,"start",void 0);_.a([_.b(),_.z("design:type",Object)],Zg.prototype,"end",void 0);_.a([_.b({computed:"computeDuration_(start, end)"}),_.z("design:type",Number)],Zg.prototype,"duration",void 0);
_.a([_.b(),_.z("design:type",String)],Zg.prototype,"lengthTemplate",void 0);_.a([_.b({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.z("design:type",String)],Zg.prototype,"durationLabel",void 0);_.a([_.b(),_.z("design:type",Object)],Zg.prototype,"visible",void 0);_.a([_.b(),_.z("design:type",Object)],Zg.prototype,"player_",void 0);_.a([_.b(),_.z("design:type",Object)],Zg.prototype,"draggingLeft_",void 0);_.a([_.b(),_.z("design:type",Object)],Zg.prototype,"draggingRight_",void 0);
_.a([_.b(),_.z("design:type",Object)],Zg.prototype,"draggingRuler_",void 0);_.a([_.b({value:!1}),_.z("design:type",Object)],Zg.prototype,"draggingWindow_",void 0);_.a([_.b({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.z("design:type",Number)],Zg.prototype,"tickSpacing_",void 0);_.a([_.b(),_.z("design:type",Object)],Zg.prototype,"seekableStart",void 0);_.a([_.b(),_.z("design:type",Object)],Zg.prototype,"seekableEnd",void 0);
_.a([_.b(),_.z("design:type",Number)],Zg.prototype,"windowSizeMs",void 0);_.a([_.b({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.z("design:type",Number)],Zg.prototype,"windowSizeSec_",void 0);_.a([_.b(),_.z("design:type",Object)],Zg.prototype,"rulerWidth_",void 0);_.a([_.b(),_.z("design:type",Object)],Zg.prototype,"rulerShift_",void 0);_.a([_.b(),_.z("design:type",Object)],Zg.prototype,"windowSlideSpeed",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Zg.prototype,"disabled",void 0);_.a([_.b(),_.z("design:type",Object)],Zg.prototype,"initialized",void 0);_.a([_.b(),_.z("design:type",Object)],Zg.prototype,"durationAccessibilityLabel",void 0);_.a([_.b({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.z("design:type",String)],Zg.prototype,"dragState",void 0);
_.a([_.TS("visible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Zg.prototype,"onVisibleChanged_",null);_.a([_.TS("initialized"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Zg.prototype,"onInitializedChanged_",null);_.a([_.TS("player_","visible","disabled","initialized","start","end"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Zg.prototype,"onUpdateLoopRange",null);
_.a([_.TS("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Zg.prototype,"updateHandles_",null);_.a([_.TS("start","end"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Zg.prototype,"updateRuler_",null);
_.a([_.TS("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Zg.prototype,"onDragStateChanged_",null);_.a([_.Vq({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],Zg);
_.Z(Zg,"yt-clip-creation-scrubber-view",function(){if(dsP===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;BdM===void 0&&(BdM=document.createElement("template"));var f=BdM;V.call(l,f.content.cloneNode(!0),W.content.firstChild);dsP=W}W=dsP;return W},{mode:2});var O9=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};W.startHighlightTimeout=0;W.endHighlightTimeout=0;return W};
_.v(O9,_.I);_.t=O9.prototype;_.t.attached=function(){var W=this;this.startInput.addEventListener("input",function(l){return W.handleStartInput_(l)});
this.endInput.addEventListener("input",function(l){return W.handleEndInput_(l)});
this.startInput.addEventListener("focusout",function(l){return W.handleStartBlur_(l)});
this.endInput.addEventListener("focusout",function(l){return W.handleEndBlur_(l)})};
_.t.setPlayer=function(W){this.set("player_",W)};
_.t.onSetFixedLengthRange_=function(W){var l=W.detail;W=l.start;var V=l.duration,f=l.startLimit;l=l.endLimit;f||(f=this.seekableStart_);l||(l=this.seekableEnd_);W=O2M(W,V,f,l);this.start=W.start;this.end=W.end};
_.t.onSetRange_=function(W){var l=W.detail;W=l.start;var V=l.end,f=l.startLimit;l=l.endLimit;f||(f=this.seekableStart_);l||(l=this.seekableEnd_);if(W=acv(W,V,f,l,this.minLengthSec,this.maxLengthSec))this.start=W.start,this.end=W.end};
_.t.updateInputs_=function(){var W=this.end,l=this.start;this.startInput.focused||(this.startInput.value=zA(l,!0));this.endInput.focused||(this.endInput.value=zA(W,!0))};
_.t.handleStartInput_=function(W){W=Z2P(W.target.value);if(W===null)this.set("startValid",!1);else{var l=this.end,V=acv(W,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);V?(this.set("endWillUpdate",V.end!==l),this.set("startValid",V.start===W)):this.set("startValid",!1)}};
_.t.handleEndInput_=function(W){W=Z2P(W.target.value);if(W===null)this.set("endValid",!1);else{var l=this.start,V=z4P(this.start,W,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);V?(this.set("startWillUpdate",V.start!==l),this.set("endValid",V.end===W)):this.set("endValid",!1)}};
_.t.handleStartBlur_=function(W){W=Z2P(W.target.value);W===null?this.startInput.value=zA(this.start,!0):this.forceUpdateInputs_(acv(W,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.t.handleEndBlur_=function(W){W=Z2P(W.target.value);W===null?this.endInput.value=zA(this.end,!0):this.forceUpdateInputs_(z4P(this.start,W,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.t.forceUpdateInputs_=function(W){W&&(this.start=W.start,this.end=W.end);this.startInput.value=zA(this.start,!0);this.endInput.value=zA(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.t.initializeClipRange_=function(){var W=this.seekableEnd_,l=this.seekableStart_,V=this.visible_,f=this.player_;if(!f||!V||l===null||!W)this.set("initialized",!1);else if(!this.initialized){var r=f.getCurrentTime(),R=this.getDefaultLengthSec_();V=f.getVideoData();var y=f.getPlayerState()==1,P=V.isLive;R=Math.min(R,W-l);r=Math.max(0,r);W=P?z4P(r-R,r,l,W,this.minLengthSec,this.maxLengthSec):y?O2M(r-R/2,R,l,W):O2M(r,R,l,W);this.start=W.start;this.end=W.end;this.set("initialized",!0);V.isLive&&f.seekTo(W.start);
this.startInput.value=zA(this.start,!0);this.endInput.value=zA(this.end,!0)}};
_.t.onStartChanged_=function(){var W=this;_.FN(this.hostElement,"start-changed",{start:this.start});var l;isNaN((l=this.oldStart)!=null?l:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){W.set("highlightStart",!1);W.startHighlightTimeout=0;W.oldStart=W.start},3E3))};
_.t.onEndChanged_=function(){var W=this;_.FN(this.hostElement,"end-changed",{end:this.end});var l;isNaN((l=this.oldEnd)!=null?l:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){W.set("highlightEnd",!1);W.endHighlightTimeout=0;W.oldEnd=W.end},3E3))};
_.t.onVisibilityChangedAction_=function(W){var l=this;this.set("visible_",W.visible);this.visible_&&!this.player_&&(W=_.Jy())&&W.getPlayerPromise().then(function(V){l.setPlayer(V)})};
_.t.computeMinLengthSec_=function(W){return W/1E3||5};
_.t.computeMaxLengthSec_=function(W){return W/1E3||60};
_.t.computeDefaultLengthSec_=function(W){return W/1E3};
_.t.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.t.computeSeekableStart_=function(W,l){return W&&l?W.getProgressState(1).seekableStart:0};
_.t.computeSeekableEnd_=function(W,l){return W&&l?W.getProgressState(1).seekableEnd:0};
_.t.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.t.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.t.onDragState_=function(W){this.set("highlightStart",W.detail.startChanging);this.set("highlightEnd",W.detail.endChanging)};
O9.prototype.onDragState_=O9.prototype.onDragState_;O9.prototype.onEndChanged_=O9.prototype.onEndChanged_;O9.prototype.onStartChanged_=O9.prototype.onStartChanged_;O9.prototype.initializeClipRange_=O9.prototype.initializeClipRange_;O9.prototype.updateInputs_=O9.prototype.updateInputs_;O9.prototype.onSetRange_=O9.prototype.onSetRange_;O9.prototype.onSetFixedLengthRange_=O9.prototype.onSetFixedLengthRange_;
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],O9.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],O9.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],O9.prototype,"data",void 0);_.a([_.b({value:0}),_.z("design:type",Number)],O9.prototype,"start",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],O9.prototype,"startValid",void 0);
_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],O9.prototype,"startWillUpdate",void 0);_.a([_.b({value:30}),_.z("design:type",Number)],O9.prototype,"end",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],O9.prototype,"endValid",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],O9.prototype,"endWillUpdate",void 0);_.a([_.b({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.z("design:type",Number)],O9.prototype,"minLengthSec",void 0);
_.a([_.b({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.z("design:type",Number)],O9.prototype,"maxLengthSec",void 0);_.a([_.b({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.z("design:type",Number)],O9.prototype,"defaultLengthSec",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],O9.prototype,"visible_",void 0);_.a([_.b(),_.z("design:type",Object)],O9.prototype,"player_",void 0);
_.a([_.b({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.z("design:type",Number)],O9.prototype,"seekableStart_",void 0);_.a([_.b({computed:"computeSeekableEnd_(player_, visible_)"}),_.z("design:type",Number)],O9.prototype,"seekableEnd_",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],O9.prototype,"initialized",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],O9.prototype,"disabled",void 0);
_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],O9.prototype,"highlightStart",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],O9.prototype,"highlightEnd",void 0);_.a([_.Aa("#start"),_.z("design:type",HTMLInputElement)],O9.prototype,"startInput",void 0);_.a([_.Aa("#end"),_.z("design:type",HTMLInputElement)],O9.prototype,"endInput",void 0);
_.a([_.XI("set-fixed-length-range"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],O9.prototype,"onSetFixedLengthRange_",null);_.a([_.XI("set-range"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],O9.prototype,"onSetRange_",null);_.a([_.TS("start","end"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],O9.prototype,"updateInputs_",null);
_.a([_.TS("player_","visible_","seekableStart_","seekableEnd_"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],O9.prototype,"initializeClipRange_",null);_.a([_.TS("start"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],O9.prototype,"onStartChanged_",null);_.a([_.TS("end"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],O9.prototype,"onEndChanged_",null);
_.a([_.XI("clips-drag-state"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],O9.prototype,"onDragState_",null);_.a([_.Vq({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],O9);
_.Z(O9,"yt-clip-creation-scrubber-renderer",function(){if(CI$===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;n9P===void 0&&(n9P=document.createElement("template"));var f=n9P;V.call(l,f.content.cloneNode(!0),W.content.firstChild);CI$=W}W=CI$;return W},{mode:2});var ax=function(){var W=_.I.apply(this,arguments)||this;W.player_=null;W.JSC$22644_playerEvents=new Map;W.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return W};
_.v(ax,_.I);_.t=ax.prototype;_.t.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"}}}};
_.t.created=function(){this.JSC$22644_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22644_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22644_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22644_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.t.detached=function(){this.setPlayer(null)};
_.t.onVisibilityChangedAction_=function(W){var l=this,V;if((V=this.data)==null?0:V.externalVideoId){var f;this.videoId=(f=this.data)==null?void 0:f.externalVideoId}this.getPlayer().then(function(r){if(W.visible)l.returnTime=r.getCurrentTime(),l.isAtLiveHead=r.getProgressState().isAtLiveHead;else{var R=l.returnTime;l.isAtLiveHead&&(R=Number.POSITIVE_INFINITY);r.seekTo(R,void 0,void 0,void 0,51)}})};
_.t.getPlayer=function(){var W=this;if(!this.player_){var l=_.Jy();if(l)return l.getPlayerPromise().then(function(V){W.setPlayer(V);return V})}return Promise.resolve(this.player_)};
_.t.setPlayer=function(W){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22644_playerEvents);if(W){this.player_=W;var l;((l=this.data)==null?0:l.externalVideoId)||this.set("videoId",W.getVideoData().video_id||"");var V;(W==null?void 0:(V=W.getPresentingPlayerType)==null?void 0:V.call(W))===2&&(this.set("isAdPlaying",!0),_.Gt(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$22644_playerEvents)}};
_.t.ready=function(){_.GS(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.t.onTitleChanged_=function(W){this.set("titleValue",W.detail.title)};
_.t.onStartChanged_=function(W){this.set("start",W.detail.start)};
_.t.onEndChanged_=function(W){this.set("end",W.detail.end)};
_.t.onTitleValidChanged_=function(W){this.set("titleValid",W.detail.valid)};
_.t.onStartValidChanged_=function(W){this.set("startValid",W.detail.valid)};
_.t.onEndValidChanged_=function(W){this.set("endValid",W.detail.valid)};
_.t.onVideoDataChange_=function(){var W;if((W=this.data)==null||!W.externalVideoId){var l;this.set("videoId",((l=this.player_)==null?void 0:l.getVideoData().video_id)||"")}};
_.t.computeFormValid_=function(W,l,V,f){return!!(W&&l&&V&&f)};
_.t.computeCancelButton_=function(W,l,V){return W&&_.k(W,_.CE)?{buttonRenderer:Object.assign({},_.k(W,_.CE),{isDisabled:l||V})}:null};
_.t.computeSubmitButton_=function(W,l,V){return W&&_.k(W,_.CE)?{buttonRenderer:Object.assign({},_.k(W,_.CE),{command:void 0,isDisabled:!this.formValid||l||V})}:null};
_.t.computeSubmitCommand_=function(W){return W||null};
_.t.onSubmit_=function(W){var l=this;W.stopPropagation();W.preventDefault();this.submitCommand_&&(W={},W.comment_text=this.titleValue,W.clip_external_video_id=this.videoId,W.clip_offset_ms=parseInt(this.start*1E3,10),W.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.pN(this.hostElement,[this.submitCommand_,W]).then(function(){l.set("isLoading_",!1)},function(){l.set("isLoading_",!1)}))};
_.t.playerAdStartHandler_=function(){_.Gt(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.t.playerAdEndHandler_=function(){_.Gt(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.t.onVideoProgress_=function(){var W=this;this.getPlayer().then(function(l){var V,f=(l==null?void 0:(V=l.getPresentingPlayerType)==null?void 0:V.call(l))===2;W.isAdPlaying!==f&&(f?W.playerAdStartHandler_():W.playerAdEndHandler_())})};
ax.prototype.onEndValidChanged_=ax.prototype.onEndValidChanged_;ax.prototype.onStartValidChanged_=ax.prototype.onStartValidChanged_;ax.prototype.onTitleValidChanged_=ax.prototype.onTitleValidChanged_;ax.prototype.onEndChanged_=ax.prototype.onEndChanged_;ax.prototype.onStartChanged_=ax.prototype.onStartChanged_;ax.prototype.onTitleChanged_=ax.prototype.onTitleChanged_;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],ax.prototype,"ytActionHandlerBehavior",void 0);
_.a([_.F(_.by.YtPlayerListenerBehavior),_.z("design:type",Object)],ax.prototype,"ytPlayerListenerBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ax.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ax.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ax.prototype,"data",void 0);_.a([_.b({value:""}),_.z("design:type",String)],ax.prototype,"titleValue",void 0);
_.a([_.b({value:!1}),_.z("design:type",Boolean)],ax.prototype,"titleValid",void 0);_.a([_.b({value:0}),_.z("design:type",Number)],ax.prototype,"start",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],ax.prototype,"startValid",void 0);_.a([_.b({value:0}),_.z("design:type",Number)],ax.prototype,"end",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],ax.prototype,"endValid",void 0);_.a([_.b({value:""}),_.z("design:type",String)],ax.prototype,"videoId",void 0);
_.a([_.b({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.z("design:type",Boolean)],ax.prototype,"formValid",void 0);_.a([_.b({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.z("design:type",Object)],ax.prototype,"submitButton_",void 0);_.a([_.b({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.z("design:type",Object)],ax.prototype,"submitCommand_",void 0);
_.a([_.b({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.z("design:type",Object)],ax.prototype,"cancelButton_",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],ax.prototype,"isLoading_",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],ax.prototype,"isAdPlaying",void 0);_.a([_.b({value:0}),_.z("design:type",Number)],ax.prototype,"returnTime",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],ax.prototype,"isAtLiveHead",void 0);
_.a([_.XI("title-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],ax.prototype,"onTitleChanged_",null);_.a([_.XI("start-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],ax.prototype,"onStartChanged_",null);_.a([_.XI("end-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],ax.prototype,"onEndChanged_",null);
_.a([_.XI("title-valid-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],ax.prototype,"onTitleValidChanged_",null);_.a([_.XI("start-valid-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],ax.prototype,"onStartValidChanged_",null);_.a([_.XI("end-valid-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],ax.prototype,"onEndValidChanged_",null);
_.a([_.Vq({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],ax);
_.Z(ax,"yt-clip-creation-renderer",function(){if(PIv===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;g9O===void 0&&(g9O=document.createElement("template"));var f=g9O;V.call(l,f.content.cloneNode(!0),W.content.firstChild);PIv=W}W=PIv;return W},{mode:2});var zN=function(){return _.I.apply(this,arguments)||this};
_.v(zN,_.I);zN.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"}}}};
zN.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(W){return W.hasOwnProperty("clipCreationRenderer")})&&_.Gt(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
zN.prototype.onPanelContentVisibleChanged=zN.prototype.onPanelContentVisibleChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],zN.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],zN.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.HL.YtVisibilityBehavior),_.z("design:type",Object)],zN.prototype,"ytVisibilityBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],zN.prototype,"ytdReduxBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],zN.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],zN.prototype,"panelContentVisible",void 0);_.a([_.TS("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zN.prototype,"onPanelContentVisibleChanged",null);_.a([_.A({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],zN);
_.Z(zN,"ytd-clip-section-renderer",function(){if(tVy!==void 0)return tVy;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return tVy=W},{mode:1});var Jlv;var Nu=function(){return _.I.apply(this,arguments)||this};
_.v(Nu,_.I);_.t=Nu.prototype;
_.t.onKeyDown=function(W){if(this.snippetElements.length!==0&&(W=W.keyCode,W===38||W===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);W===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.xP(this.highlightedIndex,-1,this.snippetElements.length);W=this.snippetElements.length;var l=this.highlightedIndex%W;this.highlightedIndex=l*W<0?l+W:l;W=this.snippetElements[this.highlightedIndex];this.highlightSnippet(W);this.ensureVisible(W)}};
_.t.onKeyUp=function(W){var l=this;bMa(W)&&(W.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.w8.cancelJob(this.inputTimerId),this.inputTimerId=_.w8.addLowPriorityJob(function(){l.typedValue&&(l.fetchSnippets(l.typedValue),l.logInputGesture(l.data))},1E3))};
_.t.onClick=function(W){(W=_.e4M(W.target,null,"snippet-item"))&&this.selectSnippet(W)};
_.t.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.t.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.t.ready=function(){var W=this;this.inputElement.addEventListener("focus",function(){W.snippetsWrapper.style.removeProperty("display")})};
_.t.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.t.getSourceTimelines=function(){if(!this.data)return[];var W=[];if(this.data.searchInVideoSources)for(var l=_.L(this.data.searchInVideoSources),V=l.next();!V.done;V=l.next())V=V.value,V==="SEARCH_IN_VIDEO_SOURCE_ASR"?W.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):V==="SEARCH_IN_VIDEO_SOURCE_OCR"&&W.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return W};
_.t.fetchSnippets=function(W){var l=_.Gt(this.hostElement,"yt-get-current-video-id-action")[0],V=this.getSourceTimelines();W={getSearchInVideoCommand:{externalVideoId:l,query:W!=null?W:"",sourceTimelines:V},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.tY().resolve(_.s6).resolveCommand(W,{form:{element:this.hostElement}})};
_.t.filterSnippets=function(W,l){var V=this;if(l){this.filteredSnippets=(0,_.MC.unsafeClone)(W);var f=RegExp(_.Twg(l),"i");this.filteredSnippets=this.filteredSnippets.filter(function(y){return f.test(V.ytRendererBehavior.getSimpleString(y.snippet))});
W=_.L(this.filteredSnippets);for(var r=W.next();!r.done;r=W.next()){r=r.value;var R=this.ytRendererBehavior.getSimpleString(r.snippet);r.snippet={runs:[{text:R.substring(0,R.toLowerCase().indexOf(l))},{text:R.substring(R.toLowerCase().indexOf(l),R.toLowerCase().indexOf(l)+l.length),bold:!0},{text:R.substring(R.toLowerCase().indexOf(l)+l.length,R.length)}]}}}else this.filteredSnippets=W};
_.t.onUpdateSearchInVideoResults=function(W){if(!(this.snippets.length>0)){var l,V,f;if((f=(l=_.k(W,Mee))==null?void 0:(V=l.results)==null?void 0:V.length)!=null&&f){var r;this.filteredSnippets=this.snippets=((r=_.k(W,Mee))==null?void 0:r.results).map(function(R){var y,P,n;return{startMs:R==null?void 0:(y=R.searchInVideoResultRenderer)==null?void 0:y.startMs,startTimeText:R==null?void 0:(P=R.searchInVideoResultRenderer)==null?void 0:P.startTimeText,snippet:R==null?void 0:(n=R.searchInVideoResultRenderer)==
null?void 0:n.snippet}})}}};
_.t.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};
_.t.highlightSnippet=function(W){W.classList.add("highlighted")};
_.t.removeSnippetHighlight=function(W){W.classList.remove("highlighted")};
_.t.selectSnippet=function(W){this.typedValue=String(W.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(W);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.t.ensureVisible=function(W){var l=this.snippetsWrapper.scrollTop,V=l+this.snippetsWrapper.clientHeight,f=W.offsetTop-this.snippetsWrapper.offsetTop;W=f+W.clientHeight;f<l?this.snippetsWrapper.scrollTop-=l-f:W>V&&(this.snippetsWrapper.scrollTop+=W-V)};
_.t.seekPlayer=function(W){var l,V;return _.g(function(f){if(f.nextAddress==1){if(!W)return f.jumpTo(0);l=Number(W.dataset.startOffset);return f.yield(_.Dy().getPlayerPromise(),3)}V=f.yieldResult;V.seekTo(l/1E3,!0);V.wakeUpControls();_.ju(f)})};
_.t.logInputGesture=function(W){var l=_.Wh();l&&(W==null?0:W.trackingParams)&&_.cy(l,_.zG(W.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.t.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.GD("typed-value-changed",this.typedValue))};
_.t.updateTypedValueFromBinding=function(W){this.typedValue=W.currentTarget.value};
Nu.prototype.typedValueChangedForBinding=Nu.prototype.typedValueChangedForBinding;Nu.prototype.dataChanged=Nu.prototype.dataChanged;Nu.prototype.panelContentVisibleChanged=Nu.prototype.panelContentVisibleChanged;Nu.prototype.onClick=Nu.prototype.onClick;Nu.prototype.onKeyUp=Nu.prototype.onKeyUp;Nu.prototype.onKeyDown=Nu.prototype.onKeyDown;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Nu.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Nu.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Nu.prototype,"data",void 0);_.a([_.b({value:[]}),_.z("design:type",Array)],Nu.prototype,"snippets",void 0);_.a([_.b({value:[]}),_.z("design:type",Array)],Nu.prototype,"filteredSnippets",void 0);_.a([_.b({value:[]}),_.z("design:type",Array)],Nu.prototype,"snippetElements",void 0);
_.a([_.Aa("#siv-input"),_.z("design:type",HTMLElement)],Nu.prototype,"inputElement",void 0);_.a([_.Aa("#siv-snippets-wrapper"),_.z("design:type",HTMLElement)],Nu.prototype,"snippetsWrapper",void 0);_.a([_.b(),_.z("design:type",String)],Nu.prototype,"typedValue",void 0);_.a([_.b({value:-1}),_.z("design:type",Number)],Nu.prototype,"highlightedIndex",void 0);_.a([_.XI("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[_.QX]),_.z("design:returntype")],Nu.prototype,"onKeyDown",null);
_.a([_.XI("keyup"),_.z("design:type",Function),_.z("design:paramtypes",[_.QX]),_.z("design:returntype")],Nu.prototype,"onKeyUp",null);_.a([_.XI("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Nu.prototype,"onClick",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Nu.prototype,"panelContentVisible",void 0);
_.a([_.TS("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Nu.prototype,"panelContentVisibleChanged",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Nu.prototype,"dataChanged",null);_.a([_.TS("typedValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Nu.prototype,"typedValueChangedForBinding",null);
_.a([_.A({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],Nu);
_.Z(Nu,"ytd-search-in-video-renderer",function(){if(Jlv!==void 0)return Jlv;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Jlv=W},{mode:1});var DsP;var Ye=function(){return _.I.apply(this,arguments)||this};
_.v(Ye,_.I);Ye.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Ye.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]]"}}}}}};
Ye.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var W,l,V,f,r=(l=_.k((W=this.data)==null?void 0:W.onClickCommand,_.Y0))==null?void 0:(V=l.item)==null?void 0:(f=V.notificationTextRenderer)==null?void 0:f.successResponseText;r&&_.tHn(this.hostElement,r)}};
_.rc.Object.defineProperties(Ye.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var W,l,V,f;return this.isProductPlaceholder&&((W=this.data)==null?void 0:(l=W.hiddenProductOptions)==null?void 0:l.showDropCountdown)&&!!((V=this.data)==null?0:(f=V.hiddenProductOptions)==null?0:f.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var W;return!this.isProductPlaceholder&&!((W=this.data)==null?0:W.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var W,l;return!((W=this.data)==null?0:W.priceReplacementText)&&!((l=this.data)==null||!l.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Ye.prototype,"componentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Ye.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Ye.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("isProductPlaceholder"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ye.prototype,"useCenterLayoutContainer",null);_.a([_.b({computed:"computeButtonOverride(data)"}),_.z("design:type",Object)],Ye.prototype,"buttonOverride",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ye.prototype,"isProductPlaceholder",null);
_.a([_.G("isProductPlaceholder"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ye.prototype,"showDropCountdown",null);_.a([_.G("isProductPlaceholder","data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ye.prototype,"showBrandName",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ye.prototype,"showPriceReplacementText",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ye.prototype,"showPrice",null);
_.a([_.G("isProductPlaceholder"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ye.prototype,"showMetadata",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Ye);
_.Z(Ye,"ytd-product-list-item-renderer",function(){if(DsP!==void 0)return DsP;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return DsP=W},{mode:1});var Us7;var xe=function(){return _.I.apply(this,arguments)||this};
_.v(xe,_.I);xe.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
xe.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
xe.prototype.panelContentVisibleChanged=function(){var W=this,l;return _.g(function(V){if(V.nextAddress==1)return W.playerApi?V.jumpTo(2):V.yield(_.Dy().getPlayerPromise(),3);V.nextAddress!=2&&(W.playerApi=V.yieldResult);(l=W.playerApi)==null||l.productsInVideoVisibilityUpdated(!!W.panelContentVisible);_.ju(V)})};
xe.prototype.panelContentVisibleChanged=xe.prototype.panelContentVisibleChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],xe.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],xe.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],xe.prototype,"panelContentVisible",void 0);_.a([_.b(),_.z("design:type",Object)],xe.prototype,"data",void 0);
_.a([_.TS("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],xe.prototype,"panelContentVisibleChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],xe);
_.Z(xe,"ytd-product-list-renderer",function(){if(Us7!==void 0)return Us7;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Us7=W},{mode:1});var u7M;var eD=function(){var W=_.I.apply(this,arguments)||this;W.hideTimestamps=!!_.YC("hide-transcript-timestamps");W.currentCueIndex=-1;W.flatCues=[];W.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};W.TEST_ONLY={getFlatCues:function(){return W.flatCues}};
return W};
_.v(eD,_.I);_.t=eD.prototype;_.t.hideTimestampsChanged=function(){_.N5("hide-transcript-timestamps",this.hideTimestamps)};
_.t.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.t.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.t.dataChanged=function(){var W;if((W=this.data)!=null&&W.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;W=_.L(this.data.cueGroups);for(var l=W.next();!l.done;l=W.next()){l=_.L(_.k(l.value,ZMP).cues);for(var V=l.next();!V.done;V=l.next())this.flatCues.push(Number(_.k(V.value,OMP).startOffsetMs))}}};
_.t.onYtPlayerTimeChanged=function(W){if(!(W<0)){for(var l=this.currentCueIndex,V=l;;){var f=V>=0?this.flatCues[V]/1E3:-1;if(W+.5<f)--V;else if(f=V+1<this.flatCues.length?this.flatCues[V+1]/1E3:Infinity,W+.5>f)V+=1;else break}V!==l&&(l>=0&&((W=this.getCueElement(l))&&W.classList.remove("active"),(l=this.getCueGroupElement(l))&&l.classList.remove("active")),(l=this.getCueElement(V))&&l.classList.add("active"),(l=this.getCueGroupElement(V))&&l.classList.add("active"),this.currentCueIndex=V,this.isHovered||
this.scrollElementToTop(V))}};
_.t.scrollElementToTop=function(W){W=this.getCueElement(W>=3?W-3:0);this.hostElement.scrollTop=Math.min(W.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.t.getCueElement=function(W){return _.GS(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[W]+'"]')};
_.t.getCueGroupElement=function(W){return(W=this.getCueElement(W))&&W.parentElement?W.parentElement.parentElement:null};
_.t.onTap=function(W){var l=_.Ja(W);W.target.classList.contains("cue")&&this.seekCueElement(l)};
_.t.onKeyPress=function(W){W.keyCode==13&&(W=_.e4M(W.target,null,"cue"))&&this.seekCueElement(W)};
_.t.seekCueElement=function(W){W=Number(W.getAttribute("start-offset"));_.Gt(this.hostElement,"yt-transcript-player-seek",[W/1E3])};
_.t.onMouseEnter=function(){this.isHovered=!0};
_.t.onMouseLeave=function(){this.isHovered=!1};
eD.prototype.onMouseLeave=eD.prototype.onMouseLeave;eD.prototype.onMouseEnter=eD.prototype.onMouseEnter;eD.prototype.onKeyPress=eD.prototype.onKeyPress;eD.prototype.onTap=eD.prototype.onTap;eD.prototype.dataChanged=eD.prototype.dataChanged;eD.prototype.hideTimestampsChanged=eD.prototype.hideTimestampsChanged;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],eD.prototype,"ytActionHandlerBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],eD.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],eD.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],eD.prototype,"hideTimestamps",void 0);_.a([_.b(),_.z("design:type",Boolean)],eD.prototype,"isHovered",void 0);_.a([_.TS("hideTimestamps"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],eD.prototype,"hideTimestampsChanged",null);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],eD.prototype,"dataChanged",null);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],eD.prototype,"onTap",null);_.a([_.XI("keypress"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],eD.prototype,"onKeyPress",null);
_.a([_.XI("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],eD.prototype,"onMouseEnter",null);_.a([_.XI("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],eD.prototype,"onMouseLeave",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],eD);
_.Z(eD,"ytd-transcript-body-renderer",function(){if(u7M!==void 0)return u7M;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return u7M=W},{mode:1});var kzO;var qu=function(){var W=_.I.apply(this,arguments)||this;W.darkerPanels=_.U("web_watch_darker_panels");return W};
_.v(qu,_.I);qu.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],qu.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],qu.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],qu.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qu.prototype,"darkerPanels",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],qu);
_.Z(qu,"ytd-transcript-footer-renderer",function(){if(kzO!==void 0)return kzO;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return kzO=W},{mode:1});var v9k;var HsX;var hN=function(){var W=_.I.apply(this,arguments)||this;W.systemIcons=_.U("kevlar_system_icons");W.showClearButton=!1;return W};
_.v(hN,_.I);_.t=hN.prototype;_.t.handleInput=function(W){var l=this;W.target.value.length?_.gm(this,"ytdTranscriptSearchBoxSearch",function(){l.emitSearchEvent(W)},500):(_.Kbz(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=W.target.value.length>0};
_.t.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.t.handleClick=function(){var W,l=(W=this.data)==null?void 0:W.trackingParams;l&&_.YQ(_.Qq(),l)};
_.t.handleClear=function(){_.Kbz(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var W,l,V=(l=_.k((W=this.data)==null?void 0:W.clearButton,_.CE))==null?void 0:l.trackingParams;V&&_.YQ(_.Qq(),V);this.clear()};
_.t.emitSearchEvent=function(W){_.FN(this.hostElement,"yt-transcript-search-box-search",{query:W.target.value});var l,V;(W=(V=_.k((l=this.data)==null?void 0:l.searchButton,_.CE))==null?void 0:V.trackingParams)&&_.YQ(_.Qq(),W)};
_.t.emitClearEvent=function(){_.FN(this.hostElement,"yt-transcript-search-box-clear")};
_.rc.Object.defineProperties(hN.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.GS(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],hN.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],hN.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],hN.prototype,"systemIcons",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],hN);
_.Z(hN,"ytd-transcript-search-box-renderer",function(){if(HsX!==void 0)return HsX;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return HsX=W},{mode:1});var KlO;var Fl7;var SD=function(){return _.I.apply(this,arguments)||this};
_.v(SD,_.I);SD.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var W,l;this.sectionHeaderAriaLabel=(W=this.data)==null?void 0:(l=W.accessibility)==null?void 0:l.accessibilityData.label}};
SD.prototype.fireSelectedEvent=function(W){_.FN(this.hostElement,"ytd-transcript-section-header",{startMs:W})};
SD.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
SD.prototype.handleKeyPress=function(W){this.data&&W.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.rc.Object.defineProperties(SD.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var W,l;return(l=(W=this.data)==null?void 0:W.enableTappableTranscriptHeader)!=null?l:!1}}});
SD.prototype.dataChanged=SD.prototype.dataChanged;_.a([_.b(),_.z("design:type",Object)],SD.prototype,"data",void 0);_.a([_.b(),_.z("design:type",String)],SD.prototype,"sectionHeaderAriaLabel",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],SD.prototype,"enableTappableTranscriptHeader",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SD.prototype,"dataChanged",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],SD);
_.Z(SD,"ytd-transcript-section-header-renderer",function(){if(Fl7!==void 0)return Fl7;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Fl7=W},{mode:1});var GzX;var bsM;var E9=function(){var W=_.I.apply(this,arguments)||this;W.isEditMode=!1;W.touchCaptionsEnabled=!1;W.deleteCaptionCorrectionPopupCommand=null;W.voteCaptionCorrectionPopupCommand=null;W.roundedContainer=!0;W.mouseOver=!1;W.textChanged=!1;W.messages={suggest_correction:_.wg("suggest_correction",void 0,"Edit caption"),suggested_caption:_.wg("suggested_caption",void 0,"Suggested caption"),submit_correction:_.wg("submit_correction",void 0,"Submit for review"),cancel_correction:_.wg("cancel_correction",
void 0,"Cancel"),replay_segment:_.wg("replay_segment",void 0,"Re-play segment"),delete_correction:_.wg("delete_correction",void 0,"Delete correction")};W.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return W};
_.v(E9,_.I);_.t=E9.prototype;_.t.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)};
_.t.handleDelete=function(W){if(this.deleteCaptionCorrectionPopupCommand){var l=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);l&&this.ytdOpenPopupBehavior.openPopup(l);W.stopPropagation()}};
_.t.handleSubmit=function(W){if(this.data&&this.data.submitCaptionCorrectionCommand&&(W.stopPropagation(),this.textChanged)){var l;W=(l=_.k(this.data.submitCaptionCorrectionCommand,_.LTa))==null?void 0:l.params;l=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:W,correctionText:String(this.ironTextAreaElement.value),originalText:_.dE(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(l);this.isEditMode=!1}};
_.t.handleUpdateSegmentText=function(W){(W=_.k(W,R67))&&W.targetId&&this.data&&W.targetId===this.data.targetId&&(W.userCorrection&&(this.editedText=W.userCorrection),W.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.dE(this.data.snippet)),W.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=W.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=W.voteCaptionCorrectionPopupCommand?
W.voteCaptionCorrectionPopupCommand:null,W.accessibility&&(this.segmentAriaLabel=W.accessibility.accessibilityData.label))};
_.t.handleCancel=function(W){this.isEditMode=!1;W.stopPropagation();this.logClientVe(159409)};
_.t.handleEditSegmentCommand=function(W){(W=_.k(W,rLP))&&W.targetId&&this.data&&W.targetId===this.data.targetId&&this.handleEdit()};
_.t.handleEditButtonClick=function(W){this.data&&(this.handleEdit(),W.stopPropagation())};
_.t.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var W;(W=this.ironTextAreaElement.textarea)==null||W.focus();this.logClientVe(159407)}};
_.t.handleMouseEnter=function(){this.mouseOver=!0};
_.t.handleMouseLeave=function(){this.mouseOver=!1};
_.t.handleReplay=function(W){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),W.stopPropagation(),this.logClientVe(159408))};
_.t.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()))};
_.t.handleKeypress=function(W){this.data&&(this.isEditMode?W.stopPropagation():this.isEnterPress(W)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(W)&&this.logClientVe(138758))};
_.t.handleTextboxClick=function(W){W.stopPropagation()};
_.t.handleTextboxKeydown=function(W){this.isControlEnterPress(W)?this.handleSubmit(W):W.key==="Escape"&&this.handleCancel(W)};
_.t.handleTextboxKeyup=function(){this.textChanged=_.dE(this.latestText)!==String(this.ironTextAreaElement.value)};
_.t.fireSelectedEvent=function(W){_.FN(this.hostElement,"yt-transcript-segment-selected",{startMs:W})};
_.t.fireReplayEvent=function(W,l){_.FN(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(W-100,0),endMs:l})};
_.t.fireEditEvent=function(W,l){_.FN(this.hostElement,"yt-transcript-segment-edit",{startMs:W,endMs:l})};
_.t.isEnterPress=function(W){return W.key==="Enter"||W.code==="Enter"||W.code==="NumpadEnter"||W.keyCode===13?!0:!1};
_.t.isControlEnterPress=function(W){var l=W.key==="Enter"||W.code==="Enter"||W.code==="NumpadEnter"||W.keyCode===13;return(W.ctrlKey||W.metaKey)&&l};
_.t.isCopyPress=function(W){var l=W.ctrlKey;return W.key==="c"&&l};
_.t.logClick=function(){var W,l=(W=this.data)==null?void 0:W.trackingParams;l&&_.YQ(_.Qq(),l)};
_.t.logClientVe=function(W){_.Nl(_.Qq(),_.GY(W))};
_.rc.Object.defineProperties(E9.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}}});
E9.prototype.handleMouseLeave=E9.prototype.handleMouseLeave;E9.prototype.handleMouseEnter=E9.prototype.handleMouseEnter;E9.prototype.dataChanged=E9.prototype.dataChanged;_.a([_.F(_.hp.YtActionHandlerBehavior),_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],E9.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.i5),_.z("design:type",Object)],E9.prototype,"ytdOpenPopupBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],E9.prototype,"ytRendererBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],E9.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],E9.prototype,"isEditMode",void 0);_.a([_.b(),_.z("design:type",Object)],E9.prototype,"touchCaptionsEnabled",void 0);_.a([_.b(),_.z("design:type",Object)],E9.prototype,"editedText",void 0);_.a([_.b(),_.z("design:type",Object)],E9.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.a([_.b(),_.z("design:type",Object)],E9.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.a([_.b(),_.z("design:type",String)],E9.prototype,"segmentAriaLabel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],E9.prototype,"roundedContainer",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],E9.prototype,"mouseOver",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],E9.prototype,"textChanged",void 0);_.a([_.b(),_.z("design:type",Object)],E9.prototype,"messages",void 0);
_.a([_.Aa("#suggestion"),_.z("design:type",Object)],E9.prototype,"ironTextAreaElement",void 0);_.a([_.G("data","editedText"),_.z("design:type",Object),_.z("design:paramtypes",[])],E9.prototype,"latestText",null);_.a([_.G("touchCaptionsEnabled","isEditMode"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],E9.prototype,"enableEditButton",null);
_.a([_.G("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],E9.prototype,"enableUndoButton",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],E9.prototype,"dataChanged",null);_.a([_.XI("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],E9.prototype,"handleMouseEnter",null);
_.a([_.XI("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],E9.prototype,"handleMouseLeave",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],E9);
_.Z(E9,"ytd-transcript-segment-renderer",function(){if(bsM!==void 0)return bsM;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return bsM=W},{mode:1});var $e=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};W.isError=!1;W.darkerPanels=_.U("web_watch_darker_panels");W.useParentMaxHeight=_.U("web_watch_transscript_use_parent_max_height");W.segmentOffsets=[];W.segmentIndex=-1;return W};
_.v($e,_.I);_.t=$e.prototype;_.t.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"}}}}};
_.t.segmentsChanged=function(){this.updateOffsets()};
_.t.onYtPlayerTimeChanged=function(W){for(var l=this.segmentIndex,V=l;;){if(V>=0){var f=this.segmentOffsets[V].start;var r=this.segmentOffsets[V].isAutoScrollable}else f=-1,r=!0;var R=W+.5;if(!r){f=V+1<this.segmentOffsets.length?this.segmentOffsets[V+1].start:Infinity;if(R>=f){V+=1;continue}V=-1;break}if(R<f)f=V-1>=0&&this.segmentOffsets[V-1].isAutoScrollable,r=V===0||f?1:2,V-=r;else if(r=V+1<this.segmentOffsets.length&&this.segmentOffsets[V+1].isAutoScrollable?1:2,f=V+r<this.segmentOffsets.length?
this.segmentOffsets[V+r].start:Infinity,R>f)V+=r;else{if(V<0)break;V<this.segmentOffsets.length&&R>this.segmentOffsets[V].end&&(V=-1);break}}if(l!==V){if(l>=0){var y;(y=this.getSegmentElement(l))==null||y.classList.remove("active")}this.segmentIndex=V;if(!(V<0)){var P;(P=this.getSegmentElement(V))==null||P.classList.add("active");this.isHovered||this.scrollElementToTop(V)}}};
_.t.handleSegmentEdit=function(W){W.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=W.target,_.Gt(this.hostElement,"yt-transcript-player-edit",[W.detail.startMs/1E3,W.detail.endMs/1E3]))};
_.t.handleSegmentSelected=function(W){_.Gt(this.hostElement,"yt-transcript-player-seek",[W.detail.startMs/1E3])};
_.t.handleSegmentReplay=function(W){_.Gt(this.hostElement,"yt-transcript-player-replay",[W.detail.startMs/1E3,W.detail.endMs/1E3])};
_.t.handleSectionHeaderSelected=function(W){_.Gt(this.hostElement,"yt-transcript-player-seek",[W.detail.startMs/1E3])};
_.t.onMouseEnter=function(){this.isHovered=!0};
_.t.onMouseLeave=function(){this.isHovered=!1};
_.t.onRetryButtonClick=function(){_.FN(this.hostElement,"transcript-retry-button-click")};
_.t.getSegmentElement=function(W){return _.GS(this.hostElement).querySelector(":nth-child("+(W+1)+")")};
_.t.scrollElementToTop=function(W){W=this.getSegmentElement(W>=2?W-2:0);this.hostElement.scrollTop=Math.min(W.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.t.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(W){var l,V=(l=W.transcriptSegmentRenderer)!=null?l:W.transcriptSectionHeaderRenderer;return{start:Number(V.startMs)/1E3,end:Number(V.endMs)/1E3,isAutoScrollable:W.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.t.clearHighlightedSegments=function(){var W=_.GS(this.hostElement);W=_.L(W.querySelectorAll("ytd-transcript-segment-renderer"));for(var l=W.next();!l.done;l=W.next())l.value.classList.remove("active")};
_.rc.Object.defineProperties($e.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.data)==null?void 0:W.searchResultSegments)||((l=this.data)==null?void 0:l.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
$e.prototype.onMouseLeave=$e.prototype.onMouseLeave;$e.prototype.onMouseEnter=$e.prototype.onMouseEnter;$e.prototype.handleSectionHeaderSelected=$e.prototype.handleSectionHeaderSelected;$e.prototype.handleSegmentReplay=$e.prototype.handleSegmentReplay;$e.prototype.handleSegmentSelected=$e.prototype.handleSegmentSelected;$e.prototype.handleSegmentEdit=$e.prototype.handleSegmentEdit;$e.prototype.segmentsChanged=$e.prototype.segmentsChanged;
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],$e.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],$e.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],$e.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],$e.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],$e.prototype,"isError",void 0);
_.a([_.b(),_.z("design:type",Object)],$e.prototype,"noResultLabel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],$e.prototype,"darkerPanels",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],$e.prototype,"useParentMaxHeight",void 0);_.a([_.G("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],$e.prototype,"segments",null);
_.a([_.G("segments","noResultLabel"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$e.prototype,"displayNoResults",null);_.a([_.TS("segments"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$e.prototype,"segmentsChanged",null);_.a([_.XI("yt-transcript-segment-edit"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],$e.prototype,"handleSegmentEdit",null);
_.a([_.XI("yt-transcript-segment-selected"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],$e.prototype,"handleSegmentSelected",null);_.a([_.XI("yt-transcript-segment-replay"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],$e.prototype,"handleSegmentReplay",null);
_.a([_.XI("ytd-transcript-section-header"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],$e.prototype,"handleSectionHeaderSelected",null);_.a([_.XI("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$e.prototype,"onMouseEnter",null);_.a([_.XI("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$e.prototype,"onMouseLeave",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],$e);
_.Z($e,"ytd-transcript-segment-list-renderer",function(){if(GzX!==void 0)return GzX;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return GzX=W},{mode:1});var Wu=function(){var W=_.I.apply(this,arguments)||this;W.hideTimestamps=!!_.YC("hide-transcript-timestamps");W.isLoadingTranscripts=!1;W.darkerPanels=_.U("web_watch_darker_panels");W.isError=!1;W.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return W};
_.v(Wu,_.I);_.t=Wu.prototype;_.t.headerChanged=function(){var W,l;this.baseGetTranscriptsCommand=(l=_.k((W=this.data)==null?void 0:W.header,tua))==null?void 0:l.onTextChangeCommand};
_.t.bodyChanged=function(){var W=this.getBodyRenderer();W&&(W.initialSegments&&(this.initialTranscriptsRenderer=W),W.noResultLabel&&(this.noResultLabel=W.noResultLabel),W.retryLabel&&(this.retryLabel=W.retryLabel))};
_.t.detached=function(){this.clearSearchBoxText()};
_.t.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.t.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"}}}};
_.t.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.t.fireSearch=function(W){var l=this;if(W){var V=W.detail.query;if(this.baseGetTranscriptsCommand){var f;W=(f=_.k(this.baseGetTranscriptsCommand,_.cUa))==null?void 0:f.params;var r;f=_.k((r=this.data)==null?void 0:r.footer,aa7);var R;if((r=(R=_.k(f==null?void 0:f.languageMenu,l7a))==null?void 0:R.subMenuItems)&&r.length>0&&(R=r.find(function(n){return n.selected}))){var y,P;
W=(y=R.continuation)==null?void 0:(P=y.reloadContinuationData)==null?void 0:P.continuation}y=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:W,searchQuery:V}});this.ytComponentBehavior.resolveCommand(y,{commandController:{onServerError:function(){l.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});F7I(this.ytContinuationHandlerBehavior,function(){return V===l.getCurrentSearchBoxText()})}}};
_.t.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.t.onRetryButtonClick=function(){this.isError=!1;var W={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:W}))};
_.t.hideTimestampsChanged=function(){_.N5("hide-transcript-timestamps",this.hideTimestamps)};
_.t.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.t.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.t.handleSignalActionCopyTranscript=function(){var W=this,l=this.getBodyRenderer();l&&(l=((l==null?void 0:l.searchResultSegments)||(l==null?void 0:l.initialSegments)||[]).map(function(V){return _.k(V,LQk)}).filter(function(V){return!!V}).map(function(V){return{snippet:V.snippet||{runs:[{text:""}]},
startTimeText:V.startTimeText||{simpleText:""}}}).map(function(V){var f=(V.snippet.runs||[]).reduce(function(r,R){return r+R.text},"");
return W.hideTimestamps?f:V.startTimeText.simpleText+" "+f}).join("\n"),this.copyToClipboard(l))};
_.t.copyToClipboard=function(W){navigator.clipboard&&navigator.clipboard.writeText(W)};
_.t.getCurrentSearchBoxText=function(){var W;return(W=this.searchBox)==null?void 0:W.value};
_.t.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.t.getBodyRenderer=function(){var W;return _.k((W=this.data)==null?void 0:W.body,st7)};
_.t.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.rc.Object.defineProperties(Wu.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.GS(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
Wu.prototype.hideTimestampsChanged=Wu.prototype.hideTimestampsChanged;Wu.prototype.searchCleared=Wu.prototype.searchCleared;Wu.prototype.fireSearch=Wu.prototype.fireSearch;Wu.prototype.onReloadContinuationFinish=Wu.prototype.onReloadContinuationFinish;Wu.prototype.bodyChanged=Wu.prototype.bodyChanged;Wu.prototype.headerChanged=Wu.prototype.headerChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Wu.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Wu.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Wu.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.vH),_.z("design:type",Object)],Wu.prototype,"ytContinuationHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Wu.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Wu.prototype,"hideTimestamps",void 0);
_.a([_.b(),_.z("design:type",Object)],Wu.prototype,"isLoadingTranscripts",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Wu.prototype,"darkerPanels",void 0);_.a([_.b(),_.z("design:type",Object)],Wu.prototype,"isError",void 0);_.a([_.TS("data.header"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wu.prototype,"headerChanged",null);
_.a([_.zS("data.body"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wu.prototype,"bodyChanged",null);_.a([_.XI("yt-reload-continuation-finish"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wu.prototype,"onReloadContinuationFinish",null);_.a([_.XI("yt-transcript-search-box-search"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Wu.prototype,"fireSearch",null);
_.a([_.XI("yt-transcript-search-box-clear"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wu.prototype,"searchCleared",null);_.a([_.TS("hideTimestamps"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wu.prototype,"hideTimestampsChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],Wu);
_.Z(Wu,"ytd-transcript-search-panel-renderer",function(){if(KlO!==void 0)return KlO;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return KlO=W},{mode:1});var lJ=function(){var W=_.I.apply(this,arguments)||this;W.player=null;W.playerPollJobId=0;return W};
_.v(lJ,_.I);_.t=lJ.prototype;_.t.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.t.onLoadReloadContinuation=function(W){_.U("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:W.target.data.continuation}}):(W={clickTrackingParams:W.target.data.clickTrackingParams,getTranscriptEndpoint:{params:W.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.tY().resolve(_.s6).resolveCommand(W,{form:{element:this.hostElement}}))};
_.t.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"}}}};
_.t.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.t.attached=function(){this.updatePlayerListening()};
_.t.detached=function(){this.updatePlayerListening()};
_.t.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.t.startPlayerListening=function(){var W=this,l;return _.g(function(V){if(V.nextAddress==1)return(l=_.Jy())?V.yield(l.getPlayerPromise(),2):V.return();W.player=V.yieldResult;W.playerPollJobId=_.w8.addLowPriorityJob(function(){W.getPlayerVideoProgress()},1E3);
W.player.addEventListener("onCueRangeEnter",function(f){W.onCueRangeEnter(f)});
W.player.addEventListener("onCueRangeExit",function(f){W.onCueRangeExit(f)});
W.player.addEventListener("onStateChange",function(f){W.onPlayerStateChange(f)});
W.player.addEventListener("SEEK_TO",function(f){W.onPlayerSeek(f)});
_.ju(V)})};
_.t.getPlayerVideoProgress=function(){var W=this;_.w8.cancelJob(this.playerPollJobId);if(this.player){var l=this.player.getCurrentTime();_.Gt(this.hostElement,"yt-player-time-changed",[l])}this.playerPollJobId=_.w8.addLowPriorityJob(function(){W.getPlayerVideoProgress()},1E3)};
_.t.stopPlayerListening=function(){this.player=null;_.w8.cancelJob(this.playerPollJobId)};
_.t.onPlayerStateChange=function(W){W===2&&this.removePendingCue()};
_.t.onPlayerSeek=function(W){var l;if(l=this.pendingReplayCueId)l=this.pendingReplayCueId,l=W===(_.U("web_transcript_cue_id_killswitch")?Number(l):Number(l.split("_")[1]));l||this.removePendingCue()};
_.t.onCueRangeEnter=function(W){Y5$(W)&&(this.pendingReplayCueId=W)};
_.t.onCueRangeExit=function(W){Y5$(W)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.t.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.t.onYtTranscriptPlayerSeek=function(W){this.player&&this.player.seekTo(W,!0)};
_.t.onYtTranscriptPlayerReplay=function(W,l){this.player&&(this.player.addCueRange(N77(W),W,l),this.player.seekTo(W,!0),this.player.playVideo())};
_.t.onYtTranscriptPlayerEdit=function(W,l){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(N77(W),W,l),this.player.seekTo(W,!0))};
lJ.prototype.onLoadReloadContinuation=lJ.prototype.onLoadReloadContinuation;lJ.prototype.panelContentVisibleChanged=lJ.prototype.panelContentVisibleChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],lJ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],lJ.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],lJ.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],lJ.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],lJ.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],lJ.prototype,"panelContentVisible",void 0);_.a([_.TS("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lJ.prototype,"panelContentVisibleChanged",null);
_.a([_.XI("yt-load-reload-continuation"),_.z("design:type",Function),_.z("design:paramtypes",[Object]),_.z("design:returntype")],lJ.prototype,"onLoadReloadContinuation",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],lJ);
_.Z(lJ,"ytd-transcript-renderer",function(){if(v9k!==void 0)return v9k;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return v9k=W},{mode:1});var ptk;var o9P;var VV=function(){return _.I.apply(this,arguments)||this};
_.v(VV,_.I);VV.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.FN(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.og(this.hostElement,[this.data.clickCommand],this.hostElement))};
VV.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.UW)()+_.qb)+"px)"};
VV.prototype.updateShouldHideFromBinding=function(W){this.shouldHide=W.detail.value};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],VV.prototype,"rendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],VV.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Boolean)],VV.prototype,"shouldHide",void 0);_.a([_.A({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],VV);
_.Z(VV,"ytd-ad-engagement-panel-banner-renderer",function(){if(o9P!==void 0)return o9P;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return o9P=W},{mode:_.bD("kevlar_poly_si_batch_j070")?1:2});var jZP;var fn=function(){var W=_.I.apply(this,arguments)||this;W.modernPanels=_.U("kevlar_watch_modern_panels");W.buttonUpdate=_.U("web_modern_buttons");W.adsSemanticText=_.U("enable_ads_web_ep_buenos_aires_and_padding_fix");return W};
_.v(fn,_.I);fn.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.a([_.b(),_.z("design:type",Object)],fn.prototype,"data",void 0);_.a([_.b({computed:"computeHideDefaultAdBadge(data)"}),_.z("design:type",Boolean)],fn.prototype,"hideDefaultAdBadge",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],fn.prototype,"modernPanels",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],fn.prototype,"buttonUpdate",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],fn.prototype,"adsSemanticText",void 0);
_.a([_.A({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],fn);
_.Z(fn,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(jZP!==void 0)return jZP;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return jZP=W},{mode:1});var I1O;var ru=function(){var W=_.I.apply(this,arguments)||this;W.darkerPanels=_.U("web_watch_darker_panels");W.enableSqueezebackPanels=_.U("web_shorts_enable_squeezeback_panels");W.enableAnchoredPanel=_.U("desktop_shorts_v2_anchored_panel");W.modernPanels=_.U("kevlar_watch_modern_panels");W.headerClickListener=function(l){W.onHeaderClick(l)};
W.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return W};
_.v(ru,_.I);_.t=ru.prototype;_.t.computeAdsInfoButton=function(){if(_.U("web_modern_buttons")){var W,l;return(l=_.k((W=this.data)==null?void 0:W.subtitleComplex,zya))==null?void 0:l.adInfoRenderer}};
_.t.updateHeaderClickListener=function(){var W,l,V;((W=this.data)==null?0:W.navigationEndpoint)||((l=this.data)==null?0:l.onClickCommand)||_.k((V=this.data)==null?void 0:V.visibilityButton,_.cm)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.t.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}}}}}};
_.t.collapsedChanged=function(){var W;(W=this.data)!=null&&W.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.U("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.t.focus=function(W){var l=this;this.titleElement&&_.w8.addJob(function(){_.Ew(l.titleElement,W)},0,500)};
_.t.computeTitleAriaLabel=function(W){var l=[];if(W.title){var V,f;l.push(this.ytRendererBehavior.getSimpleString(W.title)||((V=W.title.accessibility)==null?void 0:(f=V.accessibilityData)==null?void 0:f.label))}W.contextualInfo&&l.push(this.ytRendererBehavior.getSimpleString(W.contextualInfo));return l.join(" ")};
_.t.onHeaderClick=function(W){this.shouldTriggerHeaderClick(W)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.FN(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.og(this.hostElement,[this.data.onClickCommand],this.hostElement)):(W=this.getVisibilityToggleButton())&&W.click())};
_.t.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var W=_.k(this.data.visibilityButton,_.CE)||_.k(this.data.visibilityButton,_.cm);W&&this.ytRendererBehavior.logExplicitClick(W)}};
_.t.getVisibilityToggleButton=function(){var W=_.GS(this.hostElement).querySelector("#visibility-button").firstElementChild;return(W==null?void 0:W.is)==="ytd-toggle-button-renderer"?W:null};
_.t.shouldTriggerHeaderClick=function(W){return!_.Cv(_.d_(W),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.t.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(W){W=_.k(W,_.X$k);this.targetId&&(W==null?void 0:W.targetId)===this.targetId&&(W=W.navigationButton)&&this.set("data.navigationButton",W)};
_.rc.Object.defineProperties(ru.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.U("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var W;return!!(((W=this.entity)==null?0:W.isActionButtonHidden)||this.hideActionButton)}}});
ru.prototype.collapsedChanged=ru.prototype.collapsedChanged;ru.prototype.updateHeaderClickListener=ru.prototype.updateHeaderClickListener;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],ru.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ru.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.dx),_.z("design:type",Object)],ru.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ru.prototype,"data",void 0);_.a([_.b(),_.z("design:type",String)],ru.prototype,"targetId",void 0);_.a([_.b(),_.z("design:type",Boolean)],ru.prototype,"collapsed",void 0);_.a([_.b(),_.z("design:type",Boolean)],ru.prototype,"hideActionButton",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ru.prototype,"shortsPanel",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ru.prototype,"liveChatEngagementPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],ru.prototype,"learningChatEngagementPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ru.prototype,"darkerPanels",void 0);_.a([_.Aa("#title"),_.z("design:type",HTMLElement)],ru.prototype,"titleElement",void 0);_.a([_.Aa("#header"),_.z("design:type",HTMLElement)],ru.prototype,"headerElement",void 0);
_.a([_.b({computed:"computeAdsInfoButton(data)"}),_.z("design:type",Object)],ru.prototype,"adsInfoButton",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ru.prototype,"enableSqueezebackPanels",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ru.prototype,"enableAnchoredPanel",void 0);_.a([_.b({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(W,l){return _.mL(W.entities,"engagementPanelTitleHeaderEntity",l)}}),
_.z("design:type",Object)],ru.prototype,"entity",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ru.prototype,"modernPanels",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("targetId"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ru.prototype,"adsSemanticText",null);_.a([_.TS("data","data.navigationEndpoint","data.onClickCommand"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ru.prototype,"updateHeaderClickListener",null);
_.a([_.zS("collapsed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ru.prototype,"collapsedChanged",null);_.a([_.G("entity","hideActionButton"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ru.prototype,"isActionButtonHidden",null);_.a([_.A({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],ru);
_.Z(ru,"ytd-engagement-panel-title-header-renderer",function(){if(I1O!==void 0)return I1O;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return I1O=W},{mode:1});var is$;var RK=function(){return _.I.apply(this,arguments)||this};
_.v(RK,_.I);RK.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],RK.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],RK.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],RK.prototype,"data",void 0);_.a([_.A({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],RK);
_.Z(RK,"ytd-macro-markers-info-item-renderer",function(){if(is$!==void 0)return is$;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return is$=W},{mode:1});var ms$;var wtI=function(W,l,V,f,r,R){_.iI.call(this);var y=this;this.JSC$22746_containerElement=W;this.hostElement=l;this.supportedSyncItems=V;this.syncEntityKey=f;this.options=r;this.renderLazyListItems=R;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;Xte(this);TdP(this);this.JSC$22746_scrollAnimation=new _.KQ(function(P){W.scrollTop=P});
_.vt(this,this.JSC$22746_scrollAnimation);this.addOnDisposeCallback(function(){y.exitBrowsingMode(!1);y.activeItem&&y.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.v(wtI,_.iI);var Xte=function(W){var l=_.Eb(_.tY().resolve(_.Jp),function(V){return V.entities.markersEngagementPanelSyncEntity||{}},function(V,f){var r;
V[W.syncEntityKey]!==f[W.syncEntityKey]&&((r=V[W.syncEntityKey])==null?void 0:r.activeItemIndex)!==void 0&&W.updatePanelActiveItem(V[W.syncEntityKey].activeItemIndex)});
W.unsubscribeFromTimedMarkersListSyncEntity=l;W.addOnDisposeCallback(l);Al$(W)},Al$=function(W){var l=_.tY().resolve(_.Jp);
l=_.vLj(l.getState(),W.syncEntityKey);(l==null?void 0:l.activeItemIndex)!==void 0&&(l=W.getItemByIndex(l.activeItemIndex))&&W.setActiveItem(l)},TdP=function(W){var l=new _.t$(W.onScroll,50,W);
_.vt(W,l);var V=function(){l.fire()};
W.JSC$22746_containerElement.addEventListener("scroll",V);W.addOnDisposeCallback(function(){W.JSC$22746_containerElement.removeEventListener("scroll",V)})};
_.t=wtI.prototype;
_.t.updatePanelActiveItem=function(W){var l=this.getItemByIndex(W);if(l){if(this.setActiveItem(l),this.contentVisible)if(this.browsingMode){var V;((V=this.options)==null?void 0:V.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(W=QZX(this),l.offsetTop<this.JSC$22746_containerElement.clientHeight+this.JSC$22746_containerElement.scrollTop&&W&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));MVX(this)}else this.scrollToItem(l)}else _.Qe(new _.bP("Could not find "+this.supportedSyncItems+
" sync child to set active.",W,this.JSC$22746_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.t.getItemByIndex=function(W){var l;(l=this.renderLazyListItems)==null||l.call(this,W);l=this.JSC$22746_containerElement.querySelectorAll(this.supportedSyncItems);if(l.length>W)return l[W]};
_.t.setActiveItem=function(W){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));W.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=W};
_.t.scrollToItem=function(W){W=this.getScrollPositionForItem(W);this.JSC$22746_containerElement.scrollTop!==W&&this.JSC$22746_scrollAnimation.start(this.JSC$22746_containerElement.scrollTop,W,300)};
_.t.getScrollPositionForItem=function(W){if(this.JSC$22746_containerElement.querySelectorAll(this.supportedSyncItems)[0]===W)return 0;var l,V=((l=this.options)==null?0:l.percentOffset)?this.JSC$22746_containerElement.clientHeight*this.options.percentOffset:0;W=_.NC(W).y+this.JSC$22746_containerElement.scrollTop-(_.NC(this.JSC$22746_containerElement).y+V);return Math.max(0,Math.min(W,this.JSC$22746_containerElement.scrollHeight-this.JSC$22746_containerElement.offsetHeight))};
_.t.onScroll=function(){this.activeItemBelowSyncPosition=QZX(this);if(this.activeItem&&!this.JSC$22746_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22746_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var W;switch((W=this.options)==null?void 0:W.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!Zsa(this));MVX(this);break;default:this.enterBrowsingMode(!0)}}};
_.t.enterBrowsingMode=function(W){var l=this,V,f;return _.g(function(r){if(r.nextAddress==1){if(l.browsingMode)return r.return();l.browsingMode=!0;W&&l.hostElement.classList.add("browsing-mode");l.playerExitBrowsingModeListener=function(){l.exitBrowsingMode(!1)};
return r.yield(_.jJ(),2)}V=r.yieldResult;(f=V)==null||f.addEventListener("SEEK_TO",l.playerExitBrowsingModeListener);_.ju(r)})};
_.t.exitBrowsingMode=function(W){W=W===void 0?!0:W;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),W&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.t.removePlayerSeekListener=function(){var W=this,l,V;return _.g(function(f){if(f.nextAddress==1)return W.playerExitBrowsingModeListener?f.yield(_.jJ(),3):f.jumpTo(0);l=f.yieldResult;(V=l)==null||V.removeEventListener("SEEK_TO",W.playerExitBrowsingModeListener);W.playerExitBrowsingModeListener=void 0;_.ju(f)})};
var MVX=function(W){var l;((l=W.options)==null?void 0:l.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(Zsa(W)?W.hostElement.classList.remove("browsing-mode"):W.activeItem&&W.hostElement.classList.add("browsing-mode"))},QZX=function(W){if(!W.activeItem)return!1;
var l,V=((l=W.options)==null?0:l.percentOffset)?W.JSC$22746_containerElement.clientHeight*W.options.percentOffset:0;return W.activeItem.offsetTop>=W.JSC$22746_containerElement.scrollTop+V},Zsa=function(W){if(!W.activeItem)return!1;
var l=W.activeItem.offsetTop+14<=W.JSC$22746_containerElement.scrollTop+W.JSC$22746_containerElement.clientHeight;return W.activeItem.offsetTop+W.activeItem.clientHeight-14>=W.JSC$22746_containerElement.scrollTop&&l};
wtI.prototype.panelContentVisibleChanged=function(W){(this.contentVisible=W)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var OsO=function(W,l){W.syncEntityKey=l;var V;(V=W.unsubscribeFromTimedMarkersListSyncEntity)==null||V.call(W);Xte(W)},a1e=function(W,l){W.options=l};var tf=function(){var W=_.I.apply(this,arguments)||this;W.browsingMode=!1;W.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return W};
_.v(tf,_.I);_.t=tf.prototype;_.t.activeItemChanged=function(){if(!_.U("synced_panel_scrolling_controller")){var W;((W=this.syncEntity)==null?void 0:W.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.t.created=function(){var W=this;_.U("synced_panel_scrolling_controller")||(this.JSC$22750_scrollAnimation=new _.KQ(function(l){W.contents.scrollTop=l}),this.boundExitBrowsingMode=function(){W.exitBrowsingMode(!1)})};
_.t.detached=function(){if(_.U("synced_panel_scrolling_controller")){var W;(W=this.scrollController)==null||W.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.t.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"}}}};
_.t.dataChanged=function(){var W=this;_.U("synced_panel_scrolling_controller")?_.V9(this,function(){if(W.scrollController){var l;(l=W.scrollController)==null||l.exitBrowsingMode(!1);var V,f,r;(f=W.scrollController)==null||OsO(f,(r=(V=W.data)==null?void 0:V.syncModelEntityKey)!=null?r:"default-macro-markers-list-renderer-entity-key");var R,y,P;(P=W.scrollController)==null||a1e(P,{percentOffset:(R=W.data)==null?void 0:R.selectedItemAlignmentPercentOffset,floatingPillType:(y=W.data)==null?void 0:y.floatingPillType})}else{var n,
B,d,J;W.scrollController=new wtI(W.contents,W.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(J=(n=W.data)==null?void 0:n.syncModelEntityKey)!=null?J:"default-macro-markers-list-renderer-entity-key",{percentOffset:(B=W.data)==null?void 0:B.selectedItemAlignmentPercentOffset,floatingPillType:(d=W.data)==null?void 0:d.floatingPillType},function(D){W.renderLazyListItems(D)})}W.scrollController.panelContentVisibleChanged(!!W.panelContentVisible)}):this.exitBrowsingMode()};
_.t.computeButtonShape=function(){var W=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){W.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.t.computeSyncEnabled=function(W){return!(W==null||!W.syncButtonLabel)};
_.t.renderLazyListItems=function(W){for(var l=this.contents.children,V=0,f=0;f<l.length;f++){var r=void 0;(r=l[f].ytLazyListBehavior)==null||r.fillRemainingListItems();var R=void 0,y=void 0;r=_.k((R=this.data)==null?void 0:(y=R.contents)==null?void 0:y[f],_.z1e);y=R=void 0;if((R=r)==null?0:(y=R.contents)==null?0:y.length)V+=r.contents.length;if(V>=W)break}};
_.t.getItemByIndex=function(W){this.renderLazyListItems(W);var l=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(l.length>W)return l[W]};
_.t.setActiveItem=function(W){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);W.active!==void 0&&(W.active=!0);this.currentActiveItem=W};
_.t.handleSetActivePanelItemAction=function(W){if((W=_.k(W,w$I))&&this.panelTargetId===W.panelTargetId){W=W.itemIndex;if(_.U("synced_panel_scrolling_controller")){var l,V;var f=(V=(l=this.data)==null?void 0:l.syncModelEntityKey)!=null?V:"default-macro-markers-list-renderer-entity-key"}else{var r;f=(r=this.data)==null?void 0:r.syncModelEntityKey}if(f){var R;((R=this.syncEntity)==null?void 0:R.activeItemIndex)!==W&&this.ytdReduxBehavior.dispatch(_.MB("markersEngagementPanelSyncEntity",f,{key:f,activeItemIndex:W}))}else this.updatePanelActiveItem(W)}};
_.t.updatePanelActiveItem=function(W){var l=this.getItemByIndex(W);l?(this.setActiveItem(l),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(l)):_.Qe(new _.bP("Could not find ytd-macro-markers-list-renderer sync child to set active.",W,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.t.scrollToItem=function(W){W=this.getScrollPositionForItem(W);this.contents.scrollTop!==W&&this.JSC$22750_scrollAnimation.start(this.contents.scrollTop,W,300)};
_.t.getScrollPositionForItem=function(W){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===W)return 0;W=_.NC(W).y+this.contents.scrollTop-_.NC(this.contents).y-this.getStickyHeaderHeight(W);return Math.min(W,this.contents.scrollHeight-this.contents.offsetHeight)};
_.t.getStickyHeaderHeight=function(W){if(W.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var l,V,f;return(f=(l=W.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(V=l.header)==null?void 0:V.offsetHeight)!=null?f:0}return 0};
_.t.onScroll=function(){_.U("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$22750_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.t.enterBrowsingMode=function(){var W=this;return _.g(function(l){if(l.nextAddress==1){if(W.browsingMode)return l.return();W.browsingMode=!0;return l.yield(_.Dy().getPlayerPromise(),2)}W.player=l.yieldResult;W.player.addEventListener("SEEK_TO",W.boundExitBrowsingMode);_.ju(l)})};
_.t.exitBrowsingMode=function(W){this.browsingMode&&(this.browsingMode=!1,(W===void 0||W)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.t.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.t.onSyncClick=function(){if(_.U("synced_panel_scrolling_controller")){var W;(W=this.scrollController)==null||W.exitBrowsingMode()}else this.exitBrowsingMode()};
_.t.panelContentVisibleChanged=function(){if(_.U("synced_panel_scrolling_controller")){var W;(W=this.scrollController)==null||W.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
tf.prototype.panelContentVisibleChanged=tf.prototype.panelContentVisibleChanged;tf.prototype.dataChanged=tf.prototype.dataChanged;tf.prototype.activeItemChanged=tf.prototype.activeItemChanged;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],tf.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],tf.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],tf.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],tf.prototype,"data",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],tf.prototype,"useCustomColors",void 0);_.a([_.b({computed:"computeSyncEnabled(data)"}),_.z("design:type",Boolean)],tf.prototype,"syncEnabled",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],tf.prototype,"panelTargetId",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],tf.prototype,"panelContentVisible",void 0);_.a([_.Aa("#contents"),_.z("design:type",HTMLElement)],tf.prototype,"contents",void 0);_.a([_.Aa("#sync-container"),_.z("design:type",HTMLElement)],tf.prototype,"syncContainer",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],tf.prototype,"browsingMode",void 0);
_.a([_.b({selectorArgs:["data.syncModelEntityKey"],selector:_.vLj}),_.z("design:type",Object)],tf.prototype,"syncEntity",void 0);_.a([_.TS("syncEntity.activeItemIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tf.prototype,"activeItemChanged",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tf.prototype,"dataChanged",null);
_.a([_.TS("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tf.prototype,"panelContentVisibleChanged",null);_.a([_.A({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],tf);
_.Z(tf,"ytd-macro-markers-list-renderer",function(){if(ms$!==void 0)return ms$;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return ms$=W},{mode:1});var zOP;var s4=function(){return _.I.apply(this,arguments)||this};
_.v(s4,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],s4.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],s4.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],s4.prototype,"data",void 0);_.a([_.A({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],s4);
_.Z(s4,"ytd-error-corrections-section-item-renderer",function(){if(zOP!==void 0)return zOP;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return zOP=W},{mode:1});var Nd7;var Ln=function(){return _.I.apply(this,arguments)||this};
_.v(Ln,_.I);Ln.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Ln.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Ln.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Ln.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Ln.prototype,"data",void 0);_.a([_.A({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],Ln);
_.Z(Ln,"ytd-error-corrections-section-renderer",function(){if(Nd7!==void 0)return Nd7;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Nd7=W},{mode:1});var Yca;var yV=function(){return _.I.apply(this,arguments)||this};
_.v(yV,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],yV.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],yV.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],yV.prototype,"data",void 0);_.a([_.A({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],yV);
_.Z(yV,"ytd-topic-link-renderer",function(){if(Yca!==void 0)return Yca;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Yca=W},{mode:1});var xsX;var gu=function(){var W=_.I.apply(this,arguments)||this;W.modern=_.U("kevlar_modern_sd_v2");W.modernLockupV2=_.U("modernize_structured_description_playlist_lockups_v2");W.modernTypography=_.U("web_modern_typography");return W};
_.v(gu,_.I);gu.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"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],gu.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],gu.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],gu.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gu.prototype,"modern",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gu.prototype,"modernLockupV2",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gu.prototype,"modernTypography",void 0);_.a([_.A({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],gu);
_.Z(gu,"ytd-video-description-course-section-renderer",function(){if(xsX!==void 0)return xsX;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return xsX=W},{mode:1});var eOa;var Pu=function(){var W=_.I.apply(this,arguments)||this;W.modern=_.U("kevlar_modern_sd_v2");W.modernTypography=_.U("web_modern_typography");return W};
_.v(Pu,_.I);Pu.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"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Pu.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Pu.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Pu.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Pu.prototype,"modern",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Pu.prototype,"modernTypography",void 0);
_.a([_.A({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Pu);
_.Z(Pu,"ytd-video-description-files-section-renderer",function(){if(eOa!==void 0)return eOa;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return eOa=W},{mode:1});var qce;var nn=function(){return _.I.apply(this,arguments)||this};
_.v(nn,_.I);nn.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"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],nn.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],nn.prototype,"data",void 0);_.a([_.A({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],nn);
_.Z(nn,"ytd-video-description-gaming-section-renderer",function(){if(qce!==void 0)return qce;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return qce=W},{mode:1});var hOM;var Cn=function(){var W=_.I.apply(this,arguments)||this;W.isExpanded=!1;return W};
_.v(Cn,_.I);Cn.prototype.computeHasDefaultMetadataEndpoint=function(W){var l;W=W==null?void 0:(l=W.defaultMetadata)==null?void 0:l.runs;return!(!W||W.length!==1||!W[0].navigationEndpoint)};
Cn.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.rc.Object.defineProperties(Cn.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Cn.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Cn.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Cn.prototype,"isExpanded",void 0);_.a([_.b({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Cn.prototype,"hasDefaultMetadataEndpoint",void 0);
_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Cn.prototype,"isExpandable",null);_.a([_.G("data","isExpandable","isExpanded"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Cn.prototype,"showExpandedMetadata",null);_.a([_.A({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Cn);
_.Z(Cn,"ytd-info-row-renderer",function(){if(hOM!==void 0)return hOM;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return hOM=W},{mode:1});var ScM;var cu=function(){var W=_.I.apply(this,arguments)||this;W.currentIndex=0;W.supportComponentResize=!0;W.modern=_.U("kevlar_modern_sd_v2");W.JSC$22776_lastScrollContainerWidth=NaN;return W};
_.v(cu,_.I);_.t=cu.prototype;
_.t.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"}}}};
_.t.getItemsPath=function(){return"videoLockups"};
_.t.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.t.onIronResize=function(){this.updateVideoLockupStyles()};
_.t.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.t.updateVideoLockupStyles=function(){var W;this.JSC$22776_scrollContainer!==void 0&&(W=this.videoLockups)!=null&&W.length&&(W=this.JSC$22776_scrollContainer.clientWidth,W!==this.JSC$22776_lastScrollContainerWidth&&(this.JSC$22776_lastScrollContainerWidth=W,_.I1(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(W*.8,415)+"px"}),_.FN(this.hostElement,"iron-resize")))};
_.rc.Object.defineProperties(cu.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var W=[],l;if((l=this.data)==null||!l.carouselLockups)return W;l=_.L(this.data.carouselLockups);for(var V=l.next();!V.done;V=l.next()){V=V.value;var f=void 0;((f=_.k(V,ndy))==null?0:f.videoLockup)&&W.push(_.k(V,ndy).videoLockup)}return W}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.videoLockups)==null||!W.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var W=[],l;if((l=this.data)==null||!l.carouselLockups)return W;var V;return(V=_.k(this.data.carouselLockups[this.scrollCount],ndy))==null?void 0:V.infoRows}}});
cu.prototype.dataChanged=cu.prototype.dataChanged;cu.prototype.onIronResize=cu.prototype.onIronResize;cu.prototype.hiddenChanged=cu.prototype.hiddenChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],cu.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],cu.prototype,"componentBehavior",void 0);_.a([_.F(_.QG.YtdHorizontalListBehavior),_.z("design:type",Object)],cu.prototype,"ytdHorizontalListBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],cu.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],cu.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],cu.prototype,"inlineStructuredDescription",void 0);_.a([_.b({value:2}),_.z("design:type",Number)],cu.prototype,"initialCount",void 0);_.a([_.b(),_.z("design:type",Object)],cu.prototype,"currentIndex",void 0);
_.a([_.b(),_.z("design:type",Number)],cu.prototype,"scrollCount",void 0);_.a([_.b(),_.z("design:type",Object)],cu.prototype,"supportComponentResize",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],cu.prototype,"contentHidden",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],cu.prototype,"modern",void 0);_.a([_.Aa("#scroll-container"),_.z("design:type",HTMLDivElement)],cu.prototype,"JSC$22776_scrollContainer",void 0);
_.a([_.TS("contentHidden"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cu.prototype,"hiddenChanged",null);_.a([_.G("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],cu.prototype,"videoLockups",null);_.a([_.G("videoLockups"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],cu.prototype,"hasVideoLockups",null);
_.a([_.XI("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cu.prototype,"onIronResize",null);_.a([_.G("data","scrollCount"),_.z("design:type",Object),_.z("design:paramtypes",[])],cu.prototype,"infoRows",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cu.prototype,"dataChanged",null);_.a([_.A({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],cu);
_.Z(cu,"ytd-video-description-music-section-renderer",function(){if(ScM!==void 0)return ScM;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return ScM=W},{mode:_.bD("kevlar_poly_si_batch_j081")?1:2});var E9I;var Bu=function(){var W=_.I.apply(this,arguments)||this;W.modern=_.U("kevlar_modern_sd_v2");W.modernTypography=_.U("web_modern_typography");return W};
_.v(Bu,_.I);Bu.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Bu.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Bu.prototype,"ytRendererBehavior",void 0);_.a([_.b({}),_.z("design:type",Object)],Bu.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Bu.prototype,"modern",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Bu.prototype,"modernTypography",void 0);
_.a([_.A({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Bu);
_.Z(Bu,"ytd-video-description-transcript-section-renderer",function(){if(E9I!==void 0)return E9I;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return E9I=W},{mode:1});var $sv;_.HI(_.Q(function(W){var l=_.wH(_.PaF,function(){return W.data().firstProviderLinkStatusEntityKey}),V=_.wH(_.PaF,function(){return W.data().secondProviderLinkStatusEntityKey}),f=function(){var r,R;
return((r=l())==null?void 0:r.linked)||((R=V())==null?void 0:R.linked)};
return _.C("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.C(_.bH,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return W.data().sectionTitle}}),_.C(_.bH,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return f()?W.data().connectedMessage:W.data().notConnectedMessage}}),_.C(_.c,{cond:f,
then:function(){return _.C(_.QH,{data:function(){return W.data().connectedButton}},{buttonViewModel:function(r){return _.C(_.Nq,{data:r.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.C(_.c,{cond:function(){return!f()},
then:function(){return _.C(_.QH,{data:function(){return W.data().notConnectedButton}},{buttonViewModel:function(r){return _.C(_.Nq,{data:r.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Ck"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.pA}});_.HI(_.Q(function(W){var l=W.data;return _.C("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.C("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.C(_.bH,{text:function(){return l().sectionTitle}})),_.C("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.C(_.bH,{text:function(){return l().bodyHeader}})),_.C("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.C(_.bH,{text:function(){return l().bodyText}})),_.C(_.c,{cond:function(){return l().attributionText},
then:function(){return _.C("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.C(_.bH,{text:function(){return l().attributionText}}))}}))},"Dk"),"how-this-was-made-section-view-model",{props:{data:_.pA}});_.HI(_.Q(function(W){return _.C("yt-video-description-youchat-section-view-model",{class:_.If("ytVideoDescriptionYouchatSectionViewModelHost")},_.C("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.C(_.bH,{text:function(){return W.data().sectionTitle}})),_.C("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.C(_.bH,{text:function(){return W.data().subHeaderText}})),_.C("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.C(_.Nq,{data:function(){return _.k(W.data().primaryButton,
_.JJ)}})))},"Ek"),"yt-video-description-youchat-section-view-model",{props:{data:_.pA}});var du=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return W};
_.v(du,_.I);_.t=du.prototype;
_.t.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}}}}}};
_.t.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.t.dataChanged=function(){var W,l;this.hasDescriptionOnly=!(((W=this.data)==null?void 0:(l=W.items)==null?void 0:l.length)!==1||!_.k(this.data.items[0],x3))};
_.t.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.t.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.t.autoFocusDescription=function(){var W;((W=_.tY().resolve(_.R0(_.Q5)))==null?0:W.isKeyBoardInUse())&&this.description&&_.$s(this.description)};
_.t.resize=function(){if(_.U("kevlar_disable_sd_resize"))this.JSC$22785_cardList&&_.FN(this.JSC$22785_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.FN(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.FN(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.t.scrollToSection=function(W){if(W=this.getSectionElement(W))_.Gt(this.hostElement,"yt-scroll-to-watch-element",[W]),W.focus()};
_.t.getSectionElement=function(W){switch(W){case "infocards-item-section":var l;return(l=this.infocardsSection)!=null?l:null;case "transcript-item-section":var V;return(V=this.transcriptSection)!=null?V:null;case "how-this-was-made-section-item-section":var f;return(f=this.howThisWasMadeSection)!=null?f:null;case "files-item-section":var r;return(r=this.filesSection)!=null?r:null;default:return null}};
_.t.handleSetActiveItemAction=function(W){var l=_.k(W,w$I),V=l&&(l==null?void 0:l.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22785_cardList;if(l&&V){W=this.currentActiveChapter;var f=this.currentActiveProblem;l=V==null?void 0:V.getItemByIndex(l.itemIndex);var r=V=!0;l&&(l.active=!0,l.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(V=W!==l,r=!1,this.currentActiveChapter=l):(l==null?void 0:l.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(V=!1,r=f!==l,this.currentActiveProblem=l));W&&V&&(W.active=!1);f&&r&&(f.active=!1)}};
_.rc.Object.defineProperties(du.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.U("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
du.prototype.onYtExpanderMoreTapped=du.prototype.onYtExpanderMoreTapped;du.prototype.onHiddenChanged=du.prototype.onHiddenChanged;du.prototype.dataChanged=du.prototype.dataChanged;du.prototype.panelContentVisibleChanged=du.prototype.panelContentVisibleChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],du.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],du.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],du.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.Wo),_.z("design:type",Object)],du.prototype,"ironResizableBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],du.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Boolean)],du.prototype,"panelContentVisible",void 0);_.a([_.b(),_.z("design:type",Boolean)],du.prototype,"hasDescriptionOnly",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],du.prototype,"inlineStructuredDescription",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],du.prototype,"hidden",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],du.prototype,"shortsPanel",void 0);_.a([_.b(),_.z("design:type",Object)],du.prototype,"videoSummary",void 0);_.a([_.b(),_.z("design:type",Object)],du.prototype,"merchShelf",void 0);
_.a([_.G("videoSummary"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],du.prototype,"showVideoSummary",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],du.prototype,"engagementPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],du.prototype,"watchWhileSdp",void 0);_.a([_.Aa("ytd-expandable-video-description-body-renderer"),_.z("design:type",Object)],du.prototype,"description",void 0);
_.a([_.Aa("ytd-horizontal-card-list-renderer"),_.z("design:type",Object)],du.prototype,"JSC$22785_cardList",void 0);_.a([_.Aa("ytd-horizontal-card-list-renderer[center-items]"),_.z("design:type",Object)],du.prototype,"problemWalkthroughCardList",void 0);_.a([_.Aa("ytd-shelf-renderer"),_.z("design:type",Object)],du.prototype,"shelfSection",void 0);_.a([_.Aa("ytd-video-description-music-section-renderer"),_.z("design:type",Object)],du.prototype,"musicMetadataSection",void 0);
_.a([_.Aa("ytd-video-description-infocards-section-renderer"),_.z("design:type",Object)],du.prototype,"infocardsSection",void 0);_.a([_.Aa("ytd-video-description-transcript-section-renderer"),_.z("design:type",Object)],du.prototype,"transcriptSection",void 0);_.a([_.Aa("how-this-was-made-section-view-model"),_.z("design:type",Object)],du.prototype,"howThisWasMadeSection",void 0);_.a([_.Aa("ytd-video-description-files-section-renderer"),_.z("design:type",Object)],du.prototype,"filesSection",void 0);
_.a([_.TS("panelContentVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],du.prototype,"panelContentVisibleChanged",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],du.prototype,"dataChanged",null);_.a([_.TS("hidden"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],du.prototype,"onHiddenChanged",null);
_.a([_.XI("yt-expander-more-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],du.prototype,"onYtExpanderMoreTapped",null);_.a([_.A({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],du);
_.Z(du,"ytd-structured-description-content-renderer",function(){if($sv!==void 0)return $sv;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return $sv=W},{mode:2});var W1O;var lzI;var Jf=function(){return _.I.apply(this,arguments)||this};
_.v(Jf,_.I);Jf.prototype.computeAriaLabel=function(W){var l,V;return(W==null?void 0:(l=W.accessibility)==null?void 0:(V=l.accessibilityData)==null?void 0:V.label)||_.wg("LOADING",void 0,"Loading")};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Jf.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Jf.prototype,"data",void 0);_.a([_.b({computed:"computeAriaLabel(data)"}),_.z("design:type",String)],Jf.prototype,"ariaLabel",void 0);_.a([_.Vq({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],Jf);
_.Z(Jf,"yt-content-loading-renderer",function(){if(lzI===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;W1O===void 0&&(W1O=document.createElement("template"));var f=W1O;V.call(l,f.content.cloneNode(!0),W.content.firstChild);lzI=W}W=lzI;return W},{mode:_.bD("kevlar_poly_si_batch_j043")?1:2});_.HI(_.Q(function(W){var l=_.L(_.J4(!1,void 0,"OZMtVb")),V=l.next().value,f=l.next().value;l=_.L(_.J4(!1,void 0,"qWERsf"));var r=l.next().value,R=l.next().value;_.mw(function(){var n=_.k(W.data().collaboratePlaylistCollaborationSetting,VuI);n&&f(n.switchedOnByDefault);var B=_.k(W.data().allowNewCollaboratorsPlaylistCollaborationSetting,VuI);B&&R(B.switchedOnByDefault);if(!n&&!B||!n&&W.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")f(!0),R(!0)});
var y=function(n){f(n);R(n);var B=W.data().playlistCollaborationEntityKey||"";var d=_.BE().getState();(d=_.mL(d.entities,"playlistCollaborationEntity",B))&&(d==null?void 0:d.isCollaborative)===n||_.BE().dispatch(_.MB("playlistCollaborationEntity",B,Object.assign({},d,{isCollaborative:n})))},P=function(n){R(n)};
return _.C("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.C("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.C(_.QH,{data:function(){return W.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(n){return _.C(_.V_c,{data:n.data,
onSwitch:y})}})),_.C(_.c,{cond:V,
then:function(){return _.C(_.Lp,null,_.C("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.C(_.QH,{data:function(){return W.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(n){return _.C(_.V_c,{data:n.data,
onSwitch:P,overrideDisabled:!1})}})),_.C(_.c,{cond:r,
then:function(){return _.C("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.C(_.QH,{data:function(){return W.data().copyLinkButton}},{buttonViewModel:_.Nq}))}}),_.C("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.C(_.QH,{data:function(){return W.data().playlistCollaborators}},{contentListItemViewModel:_.zq5})))}}))},"Fk"),"playlist-collaboration-view-model",{props:{data:_.pA}});var VmM=_.Q(function(W){var l=W.data;var V=W.customCommandResolver;return _.C(_.Lp,null,_.C("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.C(_.QH,{data:function(){return l().adAvatar}},{adAvatarViewModel:function(f){return _.C(_.Xak,{data:f.data,
customCommandResolver:V})}})),_.C("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.C(_.c,{cond:function(){return l().headline},
then:function(f){return _.C(_.bH,{text:f,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.C("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.C(_.QH,{data:function(){return l().adBadge}},{adBadgeViewModel:function(f){return _.C(_.My,{data:f.data,
hasDot:function(){return l().primaryDetailsLine!==void 0},
customCommandResolver:V,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.C(_.QH,{data:function(){return l().primaryDetailsLine}},{adDetailsLineViewModel:function(f){return _.C(_.ZO,{data:f.data,
customCommandResolver:V,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Gk"),fzv=_.Q(function(W){var l=W.data;
var V=W.customCommandResolver;return _.C("ad-avatar-lockup-view-model",{class:function(){var f;return((f=l().interaction)==null?0:f.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.DN(_.su({visibilityCallback:function(f){var r,R=(r=l().interaction)==null?void 0:r.onFirstVisible;f&&R&&_.sZ(R)},
showOption:_.ir}),_.Vl(function(){return l().interaction},V)),
"aria-label":function(){var f,r;return(f=l().interaction)==null?void 0:(r=f.accessibility)==null?void 0:r.label}},_.C(_.oh,null,_.C(_.bz,{when:function(){return l().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.C(VmM,{data:l,
customCommandResolver:V})}),_.C(_.pp,null,function(){return null})))},"Hk");_.HI(_.Q(function(W){var l=W.data;var V=W.panelContentVisibility;W=_.su({visibilityCallback:function(R){var y,P=(y=l().interaction)==null?void 0:y.onFirstVisible;R&&P&&_.sZ(P)},
showOption:_.ir});var f=_.Vl(function(){return l().interaction},xHy);
_.A4(function(){var R,y;if(y=_.Y2("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var P;y=(P=y())==null?void 0:P.onLayoutVisibleCallback}else y=null;(R=y)==null||R()});
var r=function(){return V()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.C("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.DN(W,f)},_.C("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.C("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.C(_.c,{cond:_.Ej8("(min-width: "+((0,_.UW)()+_.qb)+"px) or (max-width: 600px)"),then:function(){return _.C(_.QH,{data:function(){return l().adImage}},{adImageViewModel:function(R){return _.C(_.qQ,{data:R.data,
targetHeight:80,customCommandResolver:xHy})}})}})),_.C("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.C("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.C(_.QH,{data:function(){return l().adAvatarLockup}},{adAvatarLockupViewModel:function(R){return _.C(fzv,{data:R.data,
customCommandResolver:xHy})}})),_.C(_.c,{cond:r,
then:function(){return _.C(_.QH,{data:function(){return l().adButton}},{adButtonViewModel:function(R){return _.C(_.Xq,{data:R.data,
customCommandResolver:xHy})}})},
else:function(){return _.C(_.QH,{data:function(){return l().menu}},{buttonViewModel:_.Nq})}}),_.C("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.C(_.QH,{data:function(){var R=_.k(l().toggleButton,_.Ub);
return{toggleButtonViewModel:Object.assign({},R,{isTogglingDisabled:!0,isToggled:r()})}}},{toggleButtonViewModel:_.gy})))))},"Ik"),"panel-ad-header-image-lockup-view-model",{props:{data:_.pA,
panelContentVisibility:_.pA}});_.HI(_.Q(function(W){var l=function(){return _.k(W.data().inputComposerViewModel,f77)},V=function(){var H;
return((H=l())==null?void 0:H.youchatPendingResponseEntityKey)||""},f=_.wH(_.g3Y,V),r=function(){var H;
return!((H=f())==null||!H.isPendingResponse)},R=_.L(_.J4(!0,void 0,"UmKX1e")),y=R.next().value,P=R.next().value,n=function(){return l().sectionTargetId||"youchat_messages_section"};
R=_.lN("yt-chat-input-view-model");var B=_.WS("textarea"),d=_.wH(XeP,"chat_input_view_model_state"),J=T7I(),D=function(){var H;return!((H=d())==null||!H.value)};
_.mw(function(){var H;if(!D()&&((H=l())==null?0:H.welcomeFeatureContinuation)){var p;((p=l())==null?0:p.setPendingResponseOnWelcome)&&_.PA4(V())(!0);H={continuationCommand:{token:l().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var X;p=String(Math.floor(((X=_.I$())==null?void 0:X.getCurrentTime())||0)*1E3);X={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:p}};_.rN(H,{form:{formData:X}});J(!0)}var w=n(),O;(O=_.tY().resolve(_.R0(_.fA)))==null||
O.addEventListener("yt-navigate-start",function(){_.Ay.remove(w);J(!1)},{once:!0})});
var u=function(){var H=B.value.value;B.value.value="";e4P(B.value);var p,X=((p=l())==null?void 0:p.enableGradientColorBg)||!1;p=q5a(n(),H,X);_.rN(p);var w=_.PA4(V()),O;_.sZ(((O=l())==null?void 0:O.onSubmitCommand)||{});w(!0);var S;O=String(Math.floor(((S=_.I$())==null?void 0:S.getCurrentTime())||0)*1E3);var N;S={continuationCommand:{token:(N=l())==null?void 0:N.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};H={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:H,
playerOffsetMs:O}};_.rN(S,{form:{formData:H},commandController:{onSuccess:function(){w(!1)},
onServerError:function(){var x=n();_.rN({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:x}}]}}});w(!1)}}})};
return _.C("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:R},_.C("div",{class:"chatInputViewModelChatInputWrapper"},_.C("form",{class:"chatInputViewModelChatInputForm"},_.C("textarea",{class:"chatInputViewModelChatInput",el:B,"on:keydown":_.ip(function(H){var p=r()||!1;e4P(B.value);p||H.key!=="Enter"||H.shiftKey||(H.preventDefault(),u());return!1}),
"on:keyup":_.ip(function(){P(B.value.value.length===0);return!1}),
placeholder:function(){var H,p;var X=_.k((p=l())==null?void 0:p.inputFormField,mII);return X==null?void 0:(H=X.contentProperties)==null?void 0:H.placeholderText},
rows:1}),_.C(_.Nq,{data:function(){return _.k(W.data().sendButton,_.JJ)},
onClick:function(H){H.preventDefault();u();P(B.value.value.length===0)},
buttonOverrides:function(){return{disabled:y()||r()}}})),_.C(_.bH,{className:"chatInputViewModelChatDisclaimer",
text:function(){var H;return(H=_.k(W.data().disclaimer,_.NTe))==null?void 0:H.text}})))},"Jk"),"yt-chat-input-view-model",{props:{data:_.pA}});var r4k=["engagement-panel-clip-create","engagement-panel-clip-view"],Ra7=0,DW=function(){var W=_.I.apply(this,arguments)||this;var l;W.headerData=(l=W.data)==null?void 0:l.header;W.darkerPanels=_.U("web_watch_darker_panels");W.matchContentTheme=_.U("web_watch_panel_content_match_theme");W.disableAutoFill=!1;W.isFullscreen=!1;W.isTheaterMode=!1;W.modernPanels=_.U("kevlar_watch_modern_panels");W.liveChatReplyPanel=!1;W.enableAnchoredPanel=_.U("desktop_shorts_v2_anchored_panel");W.disableBackdropFilter=
_.U("web_disable_backdrop_filter");W.trackEngagementPanelVisibility=_.U("web_watch_track_engagement_panel_visibility");W.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 W};
_.v(DW,_.I);_.t=DW.prototype;
_.t.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(W){var l;return(W==null?void 0:(l=W.webComponentHint)==null?void 0:l.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"}}}};
_.t.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var W;if((W=this.hostElement.parentElement)==null?0:W.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.t.detached=function(){this.updateTheaterDisablement()};
_.t.showPanel=function(){var W=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.w8.addJob(function(){W.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.t.maybeScrollToItemSection=function(W){var l=this,V,f=W==null?void 0:(V=W.sectionListEngagementPanelExtras)==null?void 0:V.scrollToItemSectionIdentifier;f&&_.w8.addJob(function(){var r;(r=l.sectionListRendererElement)==null||r.scrollToItemSection(f)},8)};
_.t.hidePanel=function(){var W=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.w8.addJob(function(){W.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.t.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.t.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.t.updatePanel=function(W,l,V,f){var r=this;if((W=W==null?void 0:W.engagementPanelSectionListRenderer)||f){if(W){f=W.header;var R=W.content,y=W.footer;(W=W.targetId)&&this.set("data.targetId",W);f&&this.set("data.header",f);R&&this.set("data.content",R);y&&this.set("data.footer",y)}else f&&(W=f.content,R=f.secondaryHeaderContent,(f=f.targetId)&&this.set("data.targetId",f),W&&this.set("data.content",W),R&&(this.secondaryHeaderData=R));this.updateChildVisibilityProperties();if(l){var P;_.U("kevlar_update_panel_focus_scroll_killswitch")||
(P={preventScroll:!0});this.focus(P)}_.V9(this,function(){_.FN(r.hostElement,"yt-refit");r.maybeScrollToItemSection(V)})}};
_.t.computeHeaderData=function(){var W,l=(0,_.MC.unsafeClone)((W=this.data)==null?void 0:W.header);if(l){W=new _.uC(Object.keys(l)[0]);var V=_.k(l,W),f=_.k(this.secondaryHeaderData,W);f&&_.SM(l,W,Object.assign({},f,V))}return l};
_.t.getReloadContinuation=function(){var W,l,V,f=_.L(((W=this.data)==null?void 0:(l=W.content)==null?void 0:(V=l.sectionListRenderer)==null?void 0:V.continuations)||[]);for(W=f.next();!W.done;W=f.next())if(W=W.value,W.reloadContinuationData)return W.reloadContinuationData.continuation};
_.t.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var W;((W=this.data)==null?0:W.targetId)&&(W=this.contentElement.firstElementChild)&&W.setAttribute("panel-target-id",this.data.targetId)};
_.t.forwardPopupClosedToFlowRootRenderer=function(){var W=_.GS(this.hostElement).querySelector("ytd-flow-root-renderer");if(W)W.onPopupClosed()};
_.t.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var W;if(!r4k.includes((W=this.theaterDisablementPanelIdentifier)!=null?W:""))if(W=_.U("web_watch_imax_theater_mode")&&this.isTheaterMode,W=_.U("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||W,_.U("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||W){var l;this.visibility=(l=this.data)==null?void 0:l.visibility;var V;this.trackEngagementPanelVisibility&&((V=this.data)==null?void 0:V.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var f,r,R,y;this.contentEmpty=!!(((f=this.data)==null?0:(r=f.content)==null?0:r.structuredDescriptionContentRenderer)&&Object.keys((R=this.data)==null?void 0:(y=R.content)==null?void 0:
y.structuredDescriptionContentRenderer).length===0);(l=_.tY().resolve(_.tq))&&l.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.t.isTheaterModeChanged=function(){_.U("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.t.isFullscreenChanged=function(){_.U("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.t.focus=function(W){if(this.header)this.header.focus(W);else{var l;(l=_.GS(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||l.focus(W)}};
_.t.visibilityChanged=function(){if(!_.U("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var W=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",l=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",V=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",f=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",r=f||!this.lastVisibility,R,y,P,n=((R=this.data)==null?void 0:(y=R.identifier)==null?void 0:
y.tag)||((P=this.data)==null?void 0:P.panelIdentifier);if(W&&r){var B;((B=this.data)==null?0:B.onShowCommands)&&_.og(this.hostElement,this.data.onShowCommands,this.hostElement);n&&_.DJ().dispatch(_.GT({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:n}}))}else if(l&&V){var d;((d=this.data)==null?0:d.onHideCommands)&&_.og(this.hostElement,this.data.onHideCommands,this.hostElement);n&&_.DJ().dispatch(_.GT({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:n}}))}W&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*Ra7++));_.U("kevlar_watch_focus_on_engagement_panels")&&W&&f&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.t.notifyVisibilityChanged=function(W){var l;_.bj(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,W,(l=this.data)==null?void 0:l.targetId])};
_.t.updateTheaterDisablement=function(){if(!_.U("kevlar_watch_theater_disablement_killswitch")){var W=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&r4k.includes(W)&&!_.U("watch_next_grid_ignore_disallowed_panels")){var l=_.h2(_.DJ().getState()),V=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";W!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():V?(this.originalTheaterState===void 0&&(this.originalTheaterState=l,this.theaterDisablementPanelIdentifier=
W),l&&_.Gt(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.t.clearTheaterDisablement=function(){_.Gt(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.t.updateChildVisibilityProperties=function(){this.hostElement||_.U("kevlar_panel_property_init_killswitch")||this._enableProperties();var W=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=W);var l,V=(l=this.headerElement)==null?void 0:l.firstElementChild;if(V&&!this.adHeaderImageLockupViewModel){l=W==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";V.collapsed=l;V=_.GS(V).querySelector("#visibility-button");if(!V)return;(V=V.firstElementChild)&&
V.polymerController.is==="ytd-toggle-button-renderer"&&V.polymerController.data.isToggled!==l&&V.polymerController.set("data.isToggled",l)}var f;if(l=(f=this.contentElement)==null?void 0:f.firstElementChild)if(W&&W!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")l.removeAttribute("panel-content-visible");else{l.setAttribute("panel-content-visible","");var r;(r=l.markDirty)==null||r.call(l)}};
_.t.onYtChangeEngagementPanelVisibilityAction=function(W){var l=this,V,f=(V=this.data)==null?void 0:V.targetId,r,R,y;V=((r=this.data)==null?void 0:(R=r.identifier)==null?void 0:R.tag)||((y=this.data)==null?void 0:y.panelIdentifier);var P=_.k(W,_.kW$),n;W=f&&(P==null?void 0:P.targetId)===f||V&&(P==null?void 0:(n=P.panelIdentifier)==null?void 0:n.tag)===V;this.dialog&&W&&(P==null?void 0:P.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(f==="engagement-panel-comments-section"?_.Gt(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.Gt(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",V]));!_.U("kevlar_use_engagement_panel_management_component")&&W&&(f=P.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!f?_.w8.addJob(function(){l.visibility=P.visibility},2,this.hideDelayMs):this.visibility=P.visibility,P.visibility&&this.notifyVisibilityChanged(P.visibility))};
_.t.onYtScrollToEngagementPanelCommand=function(W){var l,V=(l=this.data)==null?void 0:l.targetId,f,r,R;l=((f=this.data)==null?void 0:(r=f.identifier)==null?void 0:r.tag)||((R=this.data)==null?void 0:R.panelIdentifier);W=_.k(W,_.mXa);var y;(V&&(W==null?void 0:W.targetId)===V||l&&(W==null?void 0:(y=W.panelIdentifier)==null?void 0:y.tag)===l)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.Gt(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.t.attachVEs=function(W){var l,V;(W==null?0:(l=W.content)==null?0:(V=l.productListRenderer)==null?0:V.trackingParams)&&_.Qq().graftServerVe(W.content.productListRenderer.trackingParams);var f,r;(W==null?0:(f=W.content)==null?0:(r=f.transcriptRenderer)==null?0:r.trackingParams)&&_.Qq().graftServerVe(W.content.transcriptRenderer.trackingParams)};
_.t.onYtUpdateEngagementPanelAction=function(W){var l,V=(l=this.data)==null?void 0:l.targetId;W=_.k(W,QvO);V&&(W==null?void 0:W.targetId)===V&&(this.updatePanel({engagementPanelSectionListRenderer:{header:W==null?void 0:W.header,content:W==null?void 0:W.content}},!1),this.attachVEs(W))};
_.t.onYtShowEngagementPanelScrimAction=function(W){var l,V=(l=this.data)==null?void 0:l.targetId;W=_.k(W,AOy);V&&(W==null?void 0:W.engagementPanelTargetId)===V&&(this.scrimmed=!0)};
_.t.onYtHideEngagementPanelScrimAction=function(W){var l,V=(l=this.data)==null?void 0:l.targetId;W=_.k(W,Ta7);V&&(W==null?void 0:W.engagementPanelTargetId)===V&&(this.scrimmed=!1)};
_.t.getIdentifier=function(){var W,l,V;return((W=this.data)==null?void 0:W.panelIdentifier)||((l=this.data)==null?void 0:(V=l.identifier)==null?void 0:V.tag)};
_.t.getSurface=function(){var W,l;return(W=this.data)==null?void 0:(l=W.identifier)==null?void 0:l.surface};
_.rc.Object.defineProperties(DW.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var W=this.getIdentifier();return W==="engagement-panel-youchat"||W==="PAyouchat"}}});
DW.prototype.visibilityChanged=DW.prototype.visibilityChanged;DW.prototype.isFullscreenChanged=DW.prototype.isFullscreenChanged;DW.prototype.isTheaterModeChanged=DW.prototype.isTheaterModeChanged;DW.prototype.dataChanged=DW.prototype.dataChanged;DW.prototype.forwardPopupClosedToFlowRootRenderer=DW.prototype.forwardPopupClosedToFlowRootRenderer;DW.prototype.onYtRendererstamperFinished=DW.prototype.onYtRendererstamperFinished;
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],DW.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],DW.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],DW.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],DW.prototype,"ytEventForwardingBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],DW.prototype,"data",void 0);
_.a([_.b({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.z("design:type",Object)],DW.prototype,"headerData",void 0);_.a([_.b(),_.z("design:type",Object)],DW.prototype,"secondaryHeaderData",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],DW.prototype,"visibility",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],DW.prototype,"contentEmpty",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],DW.prototype,"scrimmed",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],DW.prototype,"dialog",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],DW.prototype,"dropdown",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],DW.prototype,"darkerPanels",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],DW.prototype,"matchContentTheme",void 0);_.a([_.b(),_.z("design:type",Object)],DW.prototype,"disableAutoFill",void 0);
_.a([_.b({reflectToAttribute:!0,value:_.U("optimal_reading_width_comments_ep")}),_.z("design:type",Boolean)],DW.prototype,"optimalReadingWidthComments",void 0);_.a([_.b(),_.z("design:type",Number)],DW.prototype,"hideDelayMs",void 0);_.a([_.b({selector:_.S1,reflectToAttribute:!0}),_.z("design:type",Object)],DW.prototype,"isFullscreen",void 0);_.a([_.b({selector:_.h2,reflectToAttribute:!0}),_.z("design:type",Object)],DW.prototype,"isTheaterMode",void 0);
_.a([_.b(),_.z("design:type",Number)],DW.prototype,"showDelayMs",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("data.targetId"),_.z("design:type",Object),_.z("design:paramtypes",[])],DW.prototype,"targetId",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],DW.prototype,"webSize",null);_.a([_.b(),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],DW.prototype,"hideFooterBorder",null);
_.a([_.b(),_.z("design:type",Object)],DW.prototype,"isWatch",void 0);_.a([_.b(),_.z("design:type",Object)],DW.prototype,"originalTheaterState",void 0);_.a([_.b(),_.z("design:type",Object)],DW.prototype,"theaterDisablementPanelIdentifier",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],DW.prototype,"modernPanels",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],DW.prototype,"isWatchWhilePanel",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],DW.prototype,"shortsPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],DW.prototype,"liveChatEngagementPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],DW.prototype,"learningChatEngagementPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],DW.prototype,"liveChatReplyPanel",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],DW.prototype,"enableAnchoredPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],DW.prototype,"disableBackdropFilter",void 0);_.a([_.b(),_.z("design:type",Object)],DW.prototype,"trackEngagementPanelVisibility",void 0);_.a([_.Aa("#header"),_.z("design:type",HTMLElement)],DW.prototype,"headerElement",void 0);_.a([_.Aa("#header > *"),_.z("design:type",HTMLElement)],DW.prototype,"header",void 0);
_.a([_.Aa("ytd-section-list-renderer"),_.z("design:type",Object)],DW.prototype,"sectionListRendererElement",void 0);_.a([_.Aa("panel-ad-header-image-lockup-view-model"),_.z("design:type",HTMLElement)],DW.prototype,"adHeaderImageLockupViewModel",void 0);_.a([_.Aa("#content"),_.z("design:type",HTMLElement)],DW.prototype,"contentElement",void 0);
_.a([_.XI("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],DW.prototype,"onYtRendererstamperFinished",null);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],DW.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.a([_.zS("data","isFullscreen","isTheaterMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],DW.prototype,"dataChanged",null);
_.a([_.TS("isTheaterMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],DW.prototype,"isTheaterModeChanged",null);_.a([_.TS("isFullscreen"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],DW.prototype,"isFullscreenChanged",null);_.a([_.TS("visibility"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],DW.prototype,"visibilityChanged",null);
_.a([_.A({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],DW);
_.Z(DW,"ytd-engagement-panel-section-list-renderer",function(){if(ptk!==void 0)return ptk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return ptk=W},{mode:_.bD("kevlar_poly_si_batch_j028")?1:2});var tmy;var U4=function(){var W=_.I.apply(this,arguments)||this;W.lastRenderedPanelIds=new Set;W.visiblePanels=[];W.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return W};
_.v(U4,_.I);_.t=U4.prototype;_.t.dataChanged=function(){if(this.data){for(var W=[],l=_.L(this.data),V=l.next();!V.done;V=l.next()){V=V.value;var f=void 0,r=void 0,R=(f=V)==null?void 0:(r=f.engagementPanelSectionListRenderer)==null?void 0:r.visibility;r=f=void 0;((f=V)==null?0:(r=f.engagementPanelSectionListRenderer)==null?0:r.targetId)&&R!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&W.push(V)}this.visiblePanels=W}else this.visiblePanels=[]};
_.t.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}}};
_.t.withoutVisiblePanelById=function(W){return this.visiblePanels.filter(function(l){var V;return((V=l.engagementPanelSectionListRenderer)==null?void 0:V.targetId)!==W})};
_.t.onYtChangeEngagementPanelVisibilityAction=function(W){var l=this,V=_.k(W,_.kW$);if(this.data&&(V==null?0:V.targetId)&&(V==null?0:V.visibility)){var f,r=(f=this.data.find(function(y){var P;return((P=y.engagementPanelSectionListRenderer)==null?void 0:P.targetId)===V.targetId}))==null?void 0:f.engagementPanelSectionListRenderer;
if(r){var R=this.withoutVisiblePanelById(V.targetId);V.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(W=this.data.find(function(y){var P;return((P=y.engagementPanelSectionListRenderer)==null?void 0:P.targetId)===V.targetId}))&&(R=[W].concat(_.QK(R)));
this.hideDelayMs&&V.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&R.length===0?_.w8.addJob(function(){r.visibility=V.visibility;l.visiblePanels=R},10,this.hideDelayMs):(r.visibility=V.visibility,this.visiblePanels=R);
_.bj(this.hostElement,"yt-engagement-panels-visible-changed",[R])}}};
_.t.onRendererstamperFinished=function(){var W=new Set(this.visiblePanels.map(function(l){var V;return(V=l.engagementPanelSectionListRenderer)==null?void 0:V.targetId}));
this.handlePanelVisibilityChange(W,this.lastRenderedPanelIds);this.lastRenderedPanelIds=W};
_.t.handlePanelVisibilityChange=function(W,l){W=W===void 0?new Set:W;l=l===void 0?new Set:l;if(this.data)for(var V=_.L(this.data),f=V.next();!f.done;f=V.next()){f=f.value;var r=void 0,R=void 0,y=(r=f)==null?void 0:(R=r.engagementPanelSectionListRenderer)==null?void 0:R.targetId;if(y&&(r=l.has(y),R=W.has(y),y=void 0,!r&&R?(R=r=void 0,y=(r=f)==null?void 0:(R=r.engagementPanelSectionListRenderer)==null?void 0:R.onShowCommands):r&&!R&&(R=r=void 0,y=(r=f)==null?void 0:(R=r.engagementPanelSectionListRenderer)==
null?void 0:R.onHideCommands),y))for(f=_.L(y),y=f.next();!y.done;y=f.next())this.ytComponentBehavior.resolveCommand(y.value)}};
U4.prototype.onRendererstamperFinished=U4.prototype.onRendererstamperFinished;U4.prototype.dataChanged=U4.prototype.dataChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],U4.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],U4.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],U4.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],U4.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],U4.prototype,"lastRenderedPanelIds",void 0);_.a([_.b(),_.z("design:type",Number)],U4.prototype,"hideDelayMs",void 0);_.a([_.b(),_.z("design:type",Array)],U4.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Array)],U4.prototype,"visiblePanels",void 0);_.a([_.b(),_.z("design:type",Boolean)],U4.prototype,"isWatchWhilePanel",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],U4.prototype,"dataChanged",null);_.a([_.XI("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],U4.prototype,"onRendererstamperFinished",null);_.a([_.A({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],U4);
_.Z(U4,"ytd-watch-engagement-panels",function(){if(tmy!==void 0)return tmy;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return tmy=W},{mode:1});var sia;var uJ=function(){return _.I.apply(this,arguments)||this};
_.v(uJ,_.I);uJ.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.sx(_.GS(this.hostElement).querySelector("#text"),_.LNX(_.PsI,this.data.companionLegalText))};
uJ.prototype.computeAutoScrollEnabled=function(W,l){return W&&!l};
uJ.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
uJ.prototype.onToggleTap=function(){this.expanded=!this.expanded};
uJ.prototype.expandedChanged=uJ.prototype.expandedChanged;uJ.prototype.dataChanged=uJ.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],uJ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.o31),_.z("design:type",Object)],uJ.prototype,"ytdAutoScrollBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],uJ.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],uJ.prototype,"expanded",void 0);
_.a([_.b({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.z("design:type",Boolean)],uJ.prototype,"autoScrollEnabled",void 0);_.a([_.b(),_.z("design:type",String)],uJ.prototype,"expanderIcon",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uJ.prototype,"dataChanged",null);
_.a([_.TS("expanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uJ.prototype,"expandedChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],uJ);
_.Z(uJ,"ytd-companion-legal-text-renderer",function(){if(sia!==void 0)return sia;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return sia=W},{mode:1});var L1I;var kn=function(){var W=_.I.apply(this,arguments)||this;W.buttonUpdate=_.U("web_modern_buttons");W.kevlarWatchGrid=_.U("kevlar_watch_grid");W.centerAlignDescription=_.U("action_companion_center_align_description");W.truncateDomain=_.U("action_companion_truncate_domain");return W};
_.v(kn,_.I);_.t=kn.prototype;_.t.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.t.getOnLayoutVisibleCallback=function(){var W=_.Y2("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.onLayoutVisibleCallback:null};
_.t.getLayoutId=function(){var W=_.Y2("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
_.t.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",kn.JSC$22831_DEFAULT_AD_BADGE_RENDERER);var W=this.getOnLayoutVisibleCallback();W&&W()}};
_.t.getButtonRenderer=function(W){return W.actionButton&&_.k(W.actionButton,_.CE)?(delete _.k(W.actionButton,_.CE).navigationEndpoint,_.k(W.actionButton,_.CE)):{}};
_.t.onClick=function(W){var l=this;if((!_.U("web_modern_buttons")||!_.Cv(_.d_(W),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){W=_.Jy();var V=this.getLayoutId();W&&V&&_.U("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?W.getPlayerPromise().then(function(f){(new _.R4(f)).executeCommand(l.data.navigationEndpoint,V)}):_.U("kevlar_companion_resolve_command_killswitch")?_.FN(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.Gt(this.hostElement,"yt-companion-ad-clicked",["action-companion",V])}};
_.rc.Object.defineProperties(kn.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return((W=this.data)==null?0:(l=W.detailsLine)==null?0:(V=l.adRating)==null?0:V.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 W,l,V,f;return((W=this.data)==null?0:(l=W.detailsLine)==null?0:(V=l.adRating)==null?0:(f=V.ratingIcon)==null?0:f.iconType)?_.IJ(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var W,l,V,f;return((W=this.data)==null?0:(l=W.detailsLine)==null?0:(V=l.texts)==null?0:(f=V[0])==null?0:f.text)?this.data.detailsLine.texts[0].text:null}},
computeDetailsLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDetailsLine}},
getDescriptionText:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.data)==null?0:(l=W.description)==null?0:l.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var W=_.Y2("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var W=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return W?W.indexOf("/default_banner")!==-1:!0}}});
kn.prototype.onClick=kn.prototype.onClick;kn.prototype.dataChanged=kn.prototype.dataChanged;kn.JSC$22831_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.wg("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],kn.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],kn.prototype,"rendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],kn.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],kn.prototype,"buttonUpdate",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],kn.prototype,"kevlarWatchGrid",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],kn.prototype,"centerAlignDescription",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],kn.prototype,"truncateDomain",void 0);
_.a([_.b({computed:"computeButtonOverride(buttonUpdate)"}),_.z("design:type",Object)],kn.prototype,"buttonOverride",void 0);_.a([_.G("data.detailsLine.adRating.ratingText"),_.z("design:type",Object),_.z("design:paramtypes",[])],kn.prototype,"getRating",null);_.a([_.G("getRating"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kn.prototype,"computeRatingHidden",null);
_.a([_.G("data.detailsLine.adRating.ratingIcon.iconType"),_.z("design:type",Object),_.z("design:paramtypes",[])],kn.prototype,"iconType",null);_.a([_.G("data.detailsLine.texts.0.text"),_.z("design:type",Object),_.z("design:paramtypes",[])],kn.prototype,"getDetailsLine",null);_.a([_.G("getDetailsLine"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kn.prototype,"computeDetailsLineHidden",null);
_.a([_.G("data.description.text"),_.z("design:type",Object),_.z("design:paramtypes",[])],kn.prototype,"getDescriptionText",null);_.a([_.G("getDescriptionText"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kn.prototype,"computeDescriptionTextHidden",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],kn.prototype,"interactionLoggingClientData",null);
_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kn.prototype,"hideBanner",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kn.prototype,"dataChanged",null);_.a([_.XI("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],kn.prototype,"onClick",null);_.a([_.A({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],kn);
_.Z(kn,"ytd-action-companion-ad-renderer",function(){if(L1I!==void 0)return L1I;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return L1I=W},{mode:_.bD("kevlar_poly_si_batch_j067")?1:2});var y4k;var gWM;var vu=function(){var W=_.I.apply(this,arguments)||this;W.buttonUpdate=_.U("web_modern_buttons");W.hideLegacyBanner=_.U("enable_dsa_one_click_ata_translators_infeed_elements");W.adInfoButtonStyle="mono";W.adInfoButtonType="text";W.noDotAdBadge=!0;return W};
_.v(vu,_.I);_.t=vu.prototype;_.t.getOnLayoutVisibleCallback=function(){var W=_.Y2("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.onLayoutVisibleCallback:null};
_.t.getLayoutId=function(){var W=_.Y2("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
_.t.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 W=this.data.image.thumbnail.thumbnails[0];this.imageSrc=W.url?_.NI(W.url):void 0;this.imageWidth=W.width||0;this.imageHeight=W.height||0}this.data.clickthroughEndpoint&&_.k(this.data.clickthroughEndpoint,_.x_)&&(W=_.k(this.data.clickthroughEndpoint,_.x_).url,_.U("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
W||"":W?(W=_.NI(W),this.clickThroughUrl=_.MI(W)):this.clickThroughUrl=void 0);(W=this.getOnLayoutVisibleCallback())&&W()}};
_.t.onClick=function(W){_.Cv(_.d_(W),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(W)};
_.t.handleClick=function(){var W=this;this.data&&this.data.clickthroughEndpoint&&(_.FN(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(l){W.macroReplacementBehavior.sendServiceRequestAction([l])}),_.Gt(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.t.onLoad=function(){_.bj(this.hostElement,"yt-refit-popups-action")};
_.rc.Object.defineProperties(vu.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var W=_.Y2("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var W=_.Y2("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.interactionLoggingClientData:null}}});
vu.prototype.onLoad=vu.prototype.onLoad;vu.prototype.onClick=vu.prototype.onClick;vu.prototype.dataChanged=vu.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],vu.prototype,"rendererBehavior",void 0);_.a([_.F(mCI.YtMacroReplacementBehavior),_.z("design:type",Object)],vu.prototype,"macroReplacementBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],vu.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vu.prototype,"buttonUpdate",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vu.prototype,"hideLegacyBanner",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vu.prototype,"adInfoButtonStyle",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vu.prototype,"adInfoButtonType",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],vu.prototype,"macros",null);
_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],vu.prototype,"interactionLoggingClientData",null);_.a([_.b(),_.z("design:type",String)],vu.prototype,"clickThroughUrl",void 0);_.a([_.b(),_.z("design:type",_.wa)],vu.prototype,"imageSrc",void 0);_.a([_.b(),_.z("design:type",Number)],vu.prototype,"imageWidth",void 0);_.a([_.b(),_.z("design:type",Number)],vu.prototype,"imageHeight",void 0);_.a([_.b(),_.z("design:type",Object)],vu.prototype,"noDotAdBadge",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vu.prototype,"dataChanged",null);_.a([_.XI("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],vu.prototype,"onClick",null);_.a([_.XI("load"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vu.prototype,"onLoad",null);_.a([_.A({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],vu);
_.Z(vu,"ytd-image-companion-renderer",function(){if(gWM!==void 0)return gWM;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return gWM=W},{mode:_.bD("kevlar_poly_si_batch_j067")?1:2});var PWa;var Hu=function(){return _.I.apply(this,arguments)||this};
_.v(Hu,_.I);_.t=Hu.prototype;_.t.dataChanged=function(){this.set("data.adBadge",Hu.JSC$22840_DEFAULT_AD_BADGE_RENDERER);if(this.data){var W=this.getOnLayoutVisibleCallback();W&&W()}};
_.t.getOnLayoutVisibleCallback=function(){var W=_.Y2("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.onLayoutVisibleCallback:null};
_.t.getLayoutId=function(){var W=_.Y2("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
_.t.onCompanionClicked=function(W){this.data&&(W.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.Gt(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.t.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var W=_.Jy(),l=this.getLayoutId(),V=this.data.clickToAdvSiteEndpoint;W&&l&&_.U("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?W.getPlayerPromise().then(function(f){(new _.R4(f)).executeCommand(V,l)}):_.FN(this.hostElement,"yt-navigate",{endpoint:V})}};
_.t.sendTrackingPings=function(W){if(W&&W.length!==0&&W[0].loggingUrls&&(W=W[0].loggingUrls.map(this.getBaseUrl)))for(var l=0;l<W.length;l++)_.xs(W[l])};
_.t.getBaseUrl=function(W){return W.baseUrl||""};
_.rc.Object.defineProperties(Hu.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var W=_.Y2("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.interactionLoggingClientData:null}}});
Hu.prototype.onCompanionClicked=Hu.prototype.onCompanionClicked;Hu.prototype.dataChanged=Hu.prototype.dataChanged;Hu.JSC$22840_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.wg("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Hu.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Hu.prototype,"data",void 0);_.a([_.Aa("#title"),_.z("design:type",HTMLElement)],Hu.prototype,"shopTitle",void 0);
_.a([_.zS("data.impressionEndpoints"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hu.prototype,"dataChanged",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Hu.prototype,"interactionLoggingClientData",null);_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Hu.prototype,"onCompanionClicked",null);
_.a([_.A({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Hu);
_.Z(Hu,"ytd-shopping-companion-renderer",function(){if(PWa!==void 0)return PWa;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return PWa=W},{mode:1});_.HI(_.Q(function(W){var l=W.data;W=_.su({visibilityCallback:function(f){var r,R=(r=l().interaction)==null?void 0:r.onFirstVisible;f&&R&&_.sZ(R)},
showOption:_.ir});var V=_.Vl(function(){return l().interaction},h4P);
_.A4(function(){var f,r;r=(r=_.Y2("yt.www.ads.eventcache.getLastCompanionData"))?(r=r())&&r.onLayoutVisibleCallback:null;(f=r)==null||f()});
return _.C("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.ip(function(f){_.bj(f.currentTarget,"yt-refit-popups-action")}),
el:_.DN(W,V),"aria-label":function(){var f,r;return(f=l().interaction)==null?void 0:(r=f.accessibility)==null?void 0:r.label}},_.C("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.C(_.QH,{data:function(){return l().adImage}},{adImageViewModel:function(f){return _.C(_.qQ,{data:f.data,
targetHeight:80,customCommandResolver:h4P})}})),_.C("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.C("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.C(_.QH,{data:function(){return l().adBadge}},{adBadgeViewModel:function(f){return _.C(_.My,{data:f.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.C("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.C(_.QH,{data:function(){return l().menu}},{buttonViewModel:_.Nq}))))},"Kk"),"banner-image-layout-view-model",{props:{data:_.pA}});_.HI(_.Q(function(W){var l=W.data;W=_.su({visibilityCallback:function(f){var r,R=(r=l().interaction)==null?void 0:r.onFirstVisible;f&&R&&_.sZ(R)},
showOption:_.ir});var V=_.Vl(function(){return l().interaction},S5k);
_.A4(function(){var f,r;r=(r=_.Y2("yt.www.ads.eventcache.getLastCompanionData"))?(r=r())&&r.onLayoutVisibleCallback:null;(f=r)==null||f()});
return _.C("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.DN(W,V)},_.C("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.C(_.QH,{data:function(){return l().adImage}},{adImageViewModel:function(f){return _.C(_.qQ,{data:f.data,
targetHeight:80,customCommandResolver:S5k})}})),_.C("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.C("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.C(_.QH,{data:function(){return l().adAvatarLockup}},{adAvatarLockupViewModel:function(f){return _.C(fzv,{data:f.data,
customCommandResolver:S5k})}})),_.C(_.QH,{data:function(){return l().adButton}},{adButtonViewModel:function(f){return _.C(_.Xq,{data:f.data,
customCommandResolver:S5k})}}),_.C("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.C(_.QH,{data:function(){return l().menu}},{buttonViewModel:_.Nq}))))},"Lk"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.pA}});var nWk={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"},Kn=function(){var W=_.I.apply(this,arguments)||this;W.updateCompanionDataJobId=0;W.contentVideoId=null;W.player=null;W.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return W};
_.v(Kn,_.I);_.t=Kn.prototype;_.t.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:nWk}}};
_.t.attached=function(){var W=this,l=_.Jy();l&&l.getPlayerPromise().then(function(V){W.getCachedDataAndListen(V)})};
_.t.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.t.updateRendererStamper=function(){var W={};if(this.data)for(var l in nWk)if(this.data[l]){W[l]=this.data[l];break}if(this.oneofRenderer!=void 0||Object.keys(W).length)this.oneofRenderer=W};
_.t.getCachedDataAndListen=function(W){var l=this.retrieveCachedCompanionData();l&&Object.keys(l).length&&this.receiveCompanionData(l);this.ytPlayerListenerBehavior.listenToPlayerEvent(W,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=W};
_.t.retrieveCachedCompanionData=function(){return _.rS.yt&&_.rS.yt.www&&_.rS.yt.www.ads&&_.rS.yt.www.ads.eventcache&&_.rS.yt.www.ads.eventcache.getLastCompanionData?_.rS.yt.www.ads.eventcache.getLastCompanionData():null};
_.t.receiveCompanionData=function(W){W&&Object.keys(W).length?(this.contentVideoId=W.contentVideoId,this.setCompanionData(W)):this.setCompanionData(W)};
_.t.setCompanionData=function(W){this.cancelPendingCompanionAdJobs();if(W){this.updateCompanionDataJobId=0;for(var l in nWk)nWk.hasOwnProperty(l)&&(this.data[l]=void 0);W.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",W.shoppingCompanionCarouselRenderer):W.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",W.imageCompanionAdRenderer):W.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",W.actionCompanionAdRenderer),_.bj(this.hostElement,
"yt-hide-unlimited-offer-module"),_.bj(this.hostElement,"yt-hide-tvfilm-offer-module")):W.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",W.bannerImageLayoutViewModel):W.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",W.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.t.dataChanged=function(){var W=this,l=_.Jy();l?l.getPlayerPromise().then(function(V){W.contentVideoId&&V.getVideoUrl().includes("v="+W.contentVideoId)||(W.cancelPendingCompanionAdJobs(),W.updateRendererStamper())}):_.x2(Error("No"))};
_.t.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.w8.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.t.handleCompanionAdClicked=function(W,l){this.player.onAdUxClicked(W,l);this.player.pauseVideo()};
Kn.prototype.dataChanged=Kn.prototype.dataChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Kn.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Kn.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Kn.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.by.YtPlayerListenerBehavior),_.z("design:type",_.pZ)],Kn.prototype,"ytPlayerListenerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Kn.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Kn.prototype,"oneofRenderer",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Kn.prototype,"dataChanged",null);_.a([_.A({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Kn);
_.Z(Kn,"ytd-companion-slot-renderer",function(){if(y4k!==void 0)return y4k;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return y4k=W},{mode:_.bD("kevlar_poly_si_batch_j067")?
1:2});var CWO;var FB=function(){return _.I.apply(this,arguments)||this};
_.v(FB,_.I);FB.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
FB.prototype.dataChanged=FB.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],FB.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],FB.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],FB.prototype,"companionSlotData",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],FB.prototype,"dataChanged",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],FB);
_.Z(FB,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(CWO!==void 0)return CWO;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return CWO=W},{mode:1});var c4e;var Gg=function(){var W=_.I.apply(this,arguments)||this;W.skinnyMode=!1;W.COMPACT_EVENT_COUNT=4;W.onShelfToggleButtonTap=function(){W.logTap(W.data);W.showingMore=!W.showingMore};
W.onShelfToggleButtonFocus=function(){W.showingMore||(W.logTap(W.data),W.showingMore=!0,_.V9(W,function(){var l=W.COMPACT_EVENT_COUNT-1,V;(V=_.GS(W.hostElement).querySelector("#event-"+l))==null||V.focus()}))};
return W};
_.v(Gg,_.I);_.t=Gg.prototype;_.t.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.t.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.t.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.mz(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.mz(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.mz(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.mz(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.mz(this.infoTooltip,this.infoTooltip.hide))};
_.t.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.mz(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.mz(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.mz(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.mz(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.mz(this.infoTooltip,this.infoTooltip.hide))};
_.t.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)};
_.t.onShowingMoreChanged=function(){var W;this.showingMoreChanged((W=this.showingMore)!=null?W:!1)};
_.t.showingMoreChanged=function(W){var l=this.get("data.events")||[];this.set("restEvents",l.slice(1,W?l.length:this.COMPACT_EVENT_COUNT).map(function(V){return V.ticketEventRenderer}));
l.slice(0,W?l.length:this.COMPACT_EVENT_COUNT).forEach(function(V){var f=_.Wh();V=V.ticketEventRenderer.trackingParams;_.$G()&&f&&V&&(V=_.zG(V),f&&_.gJ(f,V))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.t.computeAriaLabel=function(W){return W.subtitle1+", "+W.subtitle2};
_.t.logTap=function(W){_.$G()&&this.ytRendererBehavior.logExplicitClick(W)};
_.t.isKeyboardAction=function(W){return this.get("detail.x",W)===0&&this.get("detail.y",W)===0};
_.t.onFirstEventTap=function(W){W.target&&this.handleTap(W.target,this.firstEvent,this.isKeyboardAction(W))};
_.t.onTicketLinkTap=function(W){W.target&&this.handleTap(W.target,W.model.item,this.isKeyboardAction(W))};
_.t.handleTap=function(W,l,V){if(l.buttonCommand)if(l.hasMultipleOffers)Object.assign(_.k(l.buttonCommand,_.Ss),{properties:{source:V?"keyboard":"tap"}}),this.logTap(l),this.popupPositionTarget=W,_.og(this.hostElement,[l.buttonCommand],this.hostElement);else{var f;if((f=_.k(l.buttonCommand,_.x_))==null?0:f.url)this.logTap(l),_.lM(window,_.k(l.buttonCommand,_.x_).url)}};
Gg.prototype.onShowingMoreChanged=Gg.prototype.onShowingMoreChanged;Gg.prototype.dataChanged=Gg.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Gg.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Gg.prototype,"firstEvent",void 0);_.a([_.b(),_.z("design:type",Object)],Gg.prototype,"restEvents",void 0);_.a([_.b(),_.z("design:type",String)],Gg.prototype,"imageUrl",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Gg.prototype,"showingMore",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Gg.prototype,"canShowMore",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Gg.prototype,"skinnyMode",void 0);_.a([_.b(),_.z("design:type",HTMLElement)],Gg.prototype,"popupPositionTarget",void 0);_.a([_.Aa("#banner-info-tooltip"),_.z("design:type",Object)],Gg.prototype,"infoTooltip",void 0);
_.a([_.Aa("#info-container"),_.z("design:type",HTMLElement)],Gg.prototype,"infoContainer",void 0);_.a([_.Aa("#shelf-toggler"),_.z("design:type",HTMLElement)],Gg.prototype,"shelfToggleButton",void 0);_.a([_.Aa("#separator"),_.z("design:type",HTMLDivElement)],Gg.prototype,"separator",void 0);_.a([_.b(),_.z("design:type",String)],Gg.prototype,"shelfTogglerLabelText",void 0);_.a([_.b(),_.z("design:type",String)],Gg.prototype,"shelfTogglerIcon",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Gg.prototype,"dataChanged",null);_.a([_.zS("showingMore"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Gg.prototype,"onShowingMoreChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],Gg);
_.Z(Gg,"ytd-ticket-shelf-renderer",function(){if(c4e!==void 0)return c4e;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return c4e=W},{mode:1});var B9I;var d_y;var J4a=function(){return _.I.apply(this,arguments)||this};
_.v(J4a,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],J4a.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],J4a.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],J4a);
_.Z(J4a,"ytd-comments-entry-point-message-renderer",function(){if(d_y!==void 0)return d_y;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return d_y=W},{mode:1});var D_P;var bJ=function(){return _.I.apply(this,arguments)||this};
_.v(bJ,_.I);_.rc.Object.defineProperties(bJ.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.teaserAvatar)}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],bJ.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],bJ.prototype,"data",void 0);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],bJ.prototype,"hasAvatar",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],bJ);
_.Z(bJ,"ytd-comments-entry-point-teaser-renderer",function(){if(D_P!==void 0)return D_P;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return D_P=W},{mode:1});var U_7;var ucv=function(){return _.I.apply(this,arguments)||this};
_.v(ucv,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ucv.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ucv.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],ucv);
_.Z(ucv,"ytd-comments-simplebox-renderer",function(){if(U_7!==void 0)return U_7;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return U_7=W},{mode:1});var pn=function(){var W=_.I.apply(this,arguments)||this;W.fullHeight=!_.U("comment_teaser_full_height_kill_switch")&&_.U("kevlar_watch_grid");return W};
_.v(pn,_.I);pn.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"}}}};
pn.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
pn.prototype.onTap=function(){var W=this.tapCommand;W&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(W))};
pn.prototype.onKeyUp=function(W){if(W.keyCode===13)this.onTap()};
_.rc.Object.defineProperties(pn.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.onTap)return this.data.onTap;var l,V;if(((l=this.data)==null?0:l.teaserContent)||((V=this.data)==null?0:V.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)!=null&&W.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
pn.prototype.onKeyUp=pn.prototype.onKeyUp;pn.prototype.onTap=pn.prototype.onTap;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],pn.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],pn.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],pn.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pn.prototype,"fullHeight",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],pn.prototype,"tapCommand",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],pn.prototype,"simpleboxPlaceholder",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],pn.prototype,"hasSimpleboxPlaceholder",null);
_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],pn.prototype,"simpleboxAvatar",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],pn.prototype,"teaserContent",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],pn.prototype,"hasTeaserContent",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],pn.prototype,"teaserAvatar",null);
_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],pn.prototype,"hasTeaserAvatar",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],pn.prototype,"messageText",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],pn.prototype,"contentRenderer",null);_.a([_.G("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],pn.prototype,"hasContents",null);
_.a([_.G("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],pn.prototype,"hasContentRenderer",null);_.a([_.XI("click"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pn.prototype,"onTap",null);_.a([_.XI("keypress"),_.z("design:type",Function),_.z("design:paramtypes",[_.QX]),_.z("design:returntype")],pn.prototype,"onKeyUp",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],pn);
_.Z(pn,"ytd-comments-entry-point-header-renderer",function(){if(B9I!==void 0)return B9I;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return B9I=W},{mode:1});var k_O;_.U("web_enable_sink_animated_rolling_character_and_number")||!_.U("web_watched_wcw_rolling_number_ks")?_.HI(_.wCZ,"yt-animated-rolling-number",{props:{numberText:_.pA,numberValue:_.pA,heightPx:_.pA,fontSizeMultiplier:_.pA,shouldAnimate:_.pA,forceRollUp:_.pA}}):mHa();var vWa=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),HWM={numberText:"",heightPx:2*vWa,shouldAnimate:!1},oK=function(){var W=_.I.apply(this,arguments)||this;W.usingAnimatedComponents=!0;W.wasDetailed=!1;W.JSC$22878_browserSupportsAnimation=_.U("web_supports_animations_api");W.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};W.detailed=!1;W.shouldAnimate=!1;W.viewCountProps=HWM;W.dateTextProps=
HWM;W.metadataBadgesInDescription=_.U("web_metadata_badges_in_description");return W};
_.v(oK,_.I);_.t=oK.prototype;_.t.resetAnimationState=function(){this.shouldAnimate=!1};
_.t.updateDynamicMetadata=function(){if(this.JSC$22878_browserSupportsAnimation){if(!this.detailed){var W,l,V,f;var r=(W=this.videoPrimaryInfoRenderer)==null?void 0:(l=W.viewCount)==null?void 0:(V=l.videoViewCountRenderer)==null?void 0:(f=V.extraShortViewCount)==null?void 0:f.simpleText;var R,y,P,n;var B=(R=this.videoPrimaryInfoRenderer)==null?void 0:(y=R.viewCount)==null?void 0:(P=y.videoViewCountRenderer)==null?void 0:(n=P.shortViewCount)==null?void 0:n.simpleText}if(!B){var d,J,D,u;r=(d=this.videoPrimaryInfoRenderer)==
null?void 0:(J=d.viewCount)==null?void 0:(D=J.videoViewCountRenderer)==null?void 0:(u=D.unlabeledViewCountValue)==null?void 0:u.simpleText;var H,p,X,w;B=(H=this.videoPrimaryInfoRenderer)==null?void 0:(p=H.viewCount)==null?void 0:(X=p.videoViewCountRenderer)==null?void 0:(w=X.viewCount)==null?void 0:w.simpleText}var O,S,N;W=Number((O=this.videoPrimaryInfoRenderer)==null?void 0:(S=O.viewCount)==null?void 0:(N=S.videoViewCountRenderer)==null?void 0:N.originalViewCount);var x,Y;O=(x=this.videoPrimaryInfoRenderer)==
null?void 0:(Y=x.relativeDateText)==null?void 0:Y.simpleText;var W8;x=!((W8=this.videoPrimaryInfoRenderer)==null||!W8.relativeDateText);if(r&&B&&W&&(O||!x)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;W8=B.split(new RegExp("("+r+")"));r=faO(W8[0]);var c8;B={numberText:(c8=W8[1])!=null?c8:"",numberValue:W,heightPx:2*vWa,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var B8;c8=((B8=W8[2])!=null?B8:"")+"  ";this.setViewCount(B,r,faO(c8));
if(!this.detailed&&x){r=O.split(/(\d+)/);B8=faO(r[0]);var Jx;c8={numberText:(Jx=r[1])!=null?Jx:"",heightPx:2*vWa,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var H8;Jx=((H8=r[2])!=null?H8:"")+"  ";this.setDateText(c8,B8,faO(Jx))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.t.setViewCount=function(W,l,V){_.dE(l)!==_.dE(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=l);this.viewCountProps.numberText!==(W==null?void 0:W.numberText)&&(this.viewCountProps=W||HWM);_.dE(V)!==_.dE(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=V)};
_.t.setDateText=function(W,l,V){_.dE(l)!==_.dE(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=l);this.dateTextProps.numberText!==(W==null?void 0:W.numberText)&&(this.dateTextProps=W||HWM);_.dE(V)!==_.dE(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=V)};
_.t.onYtUpdateViewershipAction=function(W){this.videoPrimaryInfoRenderer&&(_.k(W,PMP).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.k(W,PMP).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.k(W,PMP).viewCount)))};
_.t.onYtUpdateDateTextAction=function(W){if(this.videoPrimaryInfoRenderer){W=_.k(W,_.yLa).dateText;this.shouldAnimate=!0;var l;((l=this.videoPrimaryInfoRenderer)==null?0:l.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",W):this.set("videoPrimaryInfoRenderer.dateText",W)}};
_.rc.Object.defineProperties(oK.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return VeP(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.dE(VeP(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.dE(this.viewCountPreNumberText),this.viewCountProps.numberText,_.dE(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.dE(this.dateTextPreNumberText),this.dateTextProps.numberText,_.dE(this.dateTextPostNumberText)].join("")}}});
oK.prototype.updateDynamicMetadata=oK.prototype.updateDynamicMetadata;oK.prototype.resetAnimationState=oK.prototype.resetAnimationState;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],oK.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],oK.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],oK.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],oK.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],oK.prototype,"videoPrimaryInfoRenderer",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],oK.prototype,"detailed",void 0);_.a([_.b(),_.z("design:type",Object)],oK.prototype,"shouldAnimate",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],oK.prototype,"viewCountPreNumberText",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],oK.prototype,"viewCountProps",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],oK.prototype,"viewCountPostNumberText",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],oK.prototype,"dateTextPreNumberText",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],oK.prototype,"dateTextProps",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],oK.prototype,"dateTextPostNumberText",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],oK.prototype,"metadataBadgesInDescription",void 0);_.a([_.G("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.z("design:type",Object),_.z("design:paramtypes",[])],oK.prototype,"infoText",null);
_.a([_.G("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.z("design:type",String),_.z("design:paramtypes",[])],oK.prototype,"descriptionInfoTooltipText",null);_.a([_.G("detailed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oK.prototype,"showDescriptionInfoTooltip",null);
_.a([_.G("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.z("design:type",String),_.z("design:paramtypes",[])],oK.prototype,"animatedViewCountAccessibilityLabel",null);_.a([_.G("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.z("design:type",String),_.z("design:paramtypes",[])],oK.prototype,"animatedDateTextAccessibilityLabel",null);
_.a([_.TS("videoPrimaryInfoRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oK.prototype,"resetAnimationState",null);_.a([_.TS("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oK.prototype,"updateDynamicMetadata",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-watch-info-text"})],oK);
_.Z(oK,"ytd-watch-info-text",function(){if(k_O!==void 0)return k_O;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return k_O=W},{mode:1});var K1e;var F1P="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var G_a=_.Q(function(W){var l=W.data;var V=W.setTapCommand;_.m1(function(){var f=_.fP(l().onTap);V(f)},"Hj6Srd");
return _.C("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.C(_.QH,{data:function(){return l().avatar}},{avatarViewModel:_.gn}),_.C("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.C("span",null,function(){return l().simpleboxText})))},"Mk");var bW$=_.Q(function(W){return _.C("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.C(_.c,{cond:function(){return _.k(W.data().avatar,_.$w)},
then:function(l){return _.C(_.gn,{data:l,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.C("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.C(_.bH,{text:function(){return W.data().teaserText}})))},"Nk");var p4O=_.Q(function(W){var l=W.data;var V=W.setTapCommand;_.m1(function(){var f=_.fP(l().onTap);V(f)},"IlZFqc");
return _.C("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.C(_.QH,{data:function(){return l().teasers}},{commentsEntryPointTeaserViewModel:bW$}))},"Ok");var oWk=_.Q(function(W){var l=W.data;var V=W.setTapCommand;_.m1(function(){var f=_.fP(l().onTap);V(f)},"sYe8ye");
return _.C("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.C(_.bH,{text:function(){return l().messageText}}))},"Pk");var jie=_.Q(function(W){var l=W.data;var V=W.setTapCommand;var f=W.isDisabled;_.m1(function(){var r=(f==null?0:f())?void 0:_.fP(l().onTap);V(r)},"GZxRqd");
return _.C("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.C(_.wN,{icon:function(){return l().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.C(_.c,{cond:function(){return l().image},
then:function(r){return _.C(_.dN,{data:r,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.C(_.bH,{text:function(){return l().text},
className:function(){return l().image||l().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.C(_.QH,{data:function(){return l().button}},{buttonViewModel:function(r){return _.C(_.Nq,{data:r.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:f==null?void 0:f()}}})}}))},"Qk");var IzI=_.Q(function(W){var l=W.data;var V=W.itemIndex;var f=W.selectedIndex;var r=W.indexUpdatedCallback;var R=W.observer;W=W.title;var y=_.WS("yt-carousel-item-view-model",function(J){R&&R().observe(J)}),P=function(J){V()===f()&&r(J)},n=_.$h(oZX),B=_.$h(_.fKg),d=function(){var J,D,u;
return((J=l())==null?void 0:J.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!n()||((D=l())==null?void 0:D.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&B().includes("PAposts_by_host")||((u=l())==null?void 0:u.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&B().includes("PAyouchat")};
return _.C("yt-carousel-item-view-model",{el:y,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":W},_.C(_.QH,{data:function(){var J,D;return(D=(J=_.k(l().carouselItem,iM7))==null?void 0:J.textCarousel)!=null?D:l().carouselItem}},{textCarouselItemViewModel:function(J){return _.C(jie,{data:J.data,
setTapCommand:P,isDisabled:d})},
commentTeaserCarouselItemViewModel:function(J){return _.C(p4O,{data:J.data,setTapCommand:P})},
commentInputBoxCarouselItemViewModel:function(J){return _.C(G_a,{data:J.data,setTapCommand:P})},
commentsEntryPointMessageViewModel:function(J){return _.C(oWk,{data:J.data,setTapCommand:P})}}))},"Rk");var iW7=_.Q(function(W){var l=W.numDots;var V=W.activeIndex;return _.C("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.C(_.G3,{each:function(){return Array.from({length:l()})},
keyBy:"INDEX"},function(f,r){return _.C("div",{class:function(){var R={};return _.Yw("ytCarouselDotsShapeDot",(R.ytCarouselDotsShapeDotActive=r===V(),R))}})}))},"Sk");var m_O=_.Q(function(W){var l=W.data;var V=W.handleCarouselNavigation;var f=W.numItems;var r=W.selectedIndex;var R=function(){return{disabled:r()===0}},y=function(){return{disabled:r()===f()-1}};
return _.C("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.C("div",null,_.C("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return l().title}),_.C(_.c,{cond:function(){return l().subtitle},
then:function(P){return _.C("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return l().subtitleAccessibilityText}},P)}})),_.C(_.c,{cond:function(){return f()>1},
then:function(){return _.C("div",{class:"ytCarouselTitleViewModelNavigation"},_.C(iW7,{numDots:f,activeIndex:r}),_.C(_.c,{cond:function(){return l().previousButton},
then:function(P){return _.C(_.QH,{data:P},{buttonViewModel:function(n){return _.C(_.Nq,{data:n.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return V(-1)},
buttonOverrides:R})}})}}),_.C(_.c,{cond:function(){return l().nextButton},
then:function(P){return _.C(_.QH,{data:P},{buttonViewModel:function(n){return _.C(_.Nq,{data:n.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return V(1)},
buttonOverrides:y})}})}}))}}))},"Tk");_.HI(_.Q(function(W){var l=W.data;var V,f=_.WS("yt-video-metadata-carousel-view-model"),r=_.WS("div",function(x){var Y=function(){var W8=x.offsetWidth*p(),c8=24*(p()-1);D(W8+c8)};
Y();window.ResizeObserver&&(V=new ResizeObserver(Y),V.observe(x))}),R=_.M4("HTML_DIR")==="rtl",y=!1,P=0,n=0;
W=_.L(_.J4(0,void 0,"M49TDf"));var B=W.next().value,d=W.next().value;W=_.L(_.J4(0,void 0,"zLIok"));var J=W.next().value,D=W.next().value;W=_.L(_.J4(!1,void 0,"bhelhc"));var u=W.next().value,H=W.next().value,p=function(){var x,Y,W8;return(W8=(x=l())==null?void 0:(Y=x.carouselTitles)==null?void 0:Y.length)!=null?W8:0},X=function(){r.value&&r.value.scrollLeft!==P&&d((R?r.value.scrollLeft<P:r.value.scrollLeft>P)?Math.min(B()+1,p()-1):Math.max(B()-1,0))},w;
window.IntersectionObserver&&(w=new IntersectionObserver(function(x){x=_.L(x);for(var Y=x.next();!Y.done;Y=x.next())if(Y.value.isIntersecting){if(y){y=!1;break}X()}else d(n)},{threshold:.2}));
_.m1(function(){if(r.value){var x=(R?-1:1)*(J()/p()+12)*(u()&&w?n:B());typeof r.value.scrollTo==="function"?r.value.scrollTo({left:x,behavior:"smooth"}):r.value.scrollLeft=x;P=x;n=u()&&w?n:B()}},"s9rbgc");
var O,S=function(x){O=x};
_.Xc(function(){var x;(x=V)==null||x.disconnect();var Y;(Y=w)==null||Y.disconnect()});
var N=function(x){x=B()+x;x>=0&&x<p()&&(y=!0,d(x))};
return _.C("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:f,"on:click":_.ip(function(x){if(_.eJ(_.xw(x),f.value,["BUTTON".toString()])||!O)return!1;_.tY().resolve(_.s6).resolveCommand(O,{forceClickLogging:!0});return!1}),
"on:touchstart":_.ip(function(){H(!0);return!1}),
"on:touchend":_.ip(function(){w||X();H(!1);return!1}),
hidden:function(){var x,Y;return!((x=l())==null?0:(Y=x.carouselItems)==null?0:Y.length)}},_.C("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.C(_.c,{cond:function(){return l().carouselTitles},
then:function(x){return _.C(_.QH,{data:function(){return x()[u()&&w?n:B()]}},{carouselTitleViewModel:function(Y){return _.C(m_O,{data:Y.data,
handleCarouselNavigation:N,numItems:p,selectedIndex:B})}})}})),_.C("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:r},_.C("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+J()+"px;"}},_.C(_.c,{cond:function(){return l().carouselItems},
then:function(x){return _.C(_.G3,{each:x},function(Y,W8){return _.C(_.QH,{data:function(){return Y}},{carouselItemViewModel:function(c8){return _.C(IzI,{data:c8.data,
itemIndex:W8,selectedIndex:B,indexUpdatedCallback:S,observer:w,title:function(){a:{var B8=W8();var Jx,H8=(Jx=l())==null?void 0:Jx.carouselTitles;if(H8&&(B8=H8[B8])){var Kq;B8=(Kq=_.k(B8,Iak))==null?void 0:Kq.title;break a}B8=void 0}return B8}})}})})}}))))},"Uk"),"yt-video-metadata-carousel-view-model",{props:{data:_.pA}});var X4$=_.U("web_action_buttons_update_owner_width")?32:12,jw=function(){var W=_.I.apply(this,arguments)||this;W.isHovering=!1;W.enableColorSampling=_.U("web_delhi_colorful_sd");W.metadataBadgesInDescription=_.U("web_metadata_badges_in_description");W.descriptionCollapsed=!0;W.useFadedScrimDescription=_.U("kevlar_enable_faded_scrim_on_description");W.skinnyMode=!1;W.playlist=!1;W.isDark=document.documentElement.hasAttribute("dark");W.disableVideoOwnerOnTap=_.U("swatchie_video_owner_on_tap_ks");W.swatcherooDelayLoad=
_.U("swatcheroo_enable_ghost_cards");W.primaryMenuWidth=0;W.videoId="";W.titleHeadlineXs=_.U("web_watch_typography_title_headline_xs");W.titleHeadlineS=_.U("web_watch_typography_title_headline_s");W.titleHeadlineM=_.U("web_watch_typography_title_headline_m");W.titleHashtagBlackLinkified=_.U("web_title_hashtag_black_linkified");W.titleHashtagGreyLinkified=_.U("web_title_hashtag_grey_linkified");W.actionButtonsUpdateOwnerWidth=_.U("web_action_buttons_update_owner_width");W.shouldForceIconOnly=!1;W.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};W.isFullscreen=!1;W.isTheaterMode=!1;return W};
_.v(jw,_.I);_.t=jw.prototype;_.t.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.t.updateOwnerAndDescriptionPosition=function(){_.U("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.Y3(this.bottomRowElement,this.ownerElement)):(_.Y3(this.bottomRowElement,this.descriptionElement),_.Y3(this.topRowElement,this.ownerElement)))};
_.t.titleOnTap=function(W){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Cv(_.d_(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var l;((l=window.getSelection())==null?0:l.toString().length)||this.handleExpandDescriptionCommands()}};
_.t.videoOwnerOnTap=function(W){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Cv(_.d_(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.t.detached=function(){var W=this,l;return _.g(function(V){(l=W.resizeObserver)==null||l.disconnect();_.ju(V)})};
_.t.maybeAttachResizeObserver=function(){var W=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.t$(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){W.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.t.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var W=this.hostElement.clientWidth,l=Math.max(this.largerItemWrap?400:350,W/2-X4$);if(_.U("web_action_buttons_update_owner_width")){var V;l=(((V=document.getElementById("owner"))==null?void 0:V.clientWidth)||0)+X4$}this.actionsOnSeparateLine=this.primaryMenuWidth>W-l?!0:!1}};
_.t.stripAttributedDescription=function(W){return{content:W.content.replace(/[\r\n]{2,}/g,"\n")}};
_.t.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.U("web_modern_buttons"),forceIconButton:!_.U("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:_.U("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"}}}};
_.t.videoPrimaryInfoRendererChanged=function(){var W;if((W=this.videoPrimaryInfoRenderer)==null?0:W.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.t.videoSecondaryInfoRendererChanged=function(){var W,l;(l=(W=this.descriptionInlineExpander).collapse)==null||l.call(W);this.descriptionExpandClientVe=_.GY(110509);this.descriptionCollapseClientVe=_.GY(110510);W=_.Wh();l=_.$G();W&&l&&(_.U("combine_ve_grafts")?(_.aH(_.Qq(),this.descriptionExpandClientVe,l),_.aH(_.Qq(),this.descriptionCollapseClientVe,l)):_.yE(W,l,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.t.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.t.updateTopLevelIconsOnly=function(){var W=this;_.U("top_level_update_killswitch")||this.menu&&_.w8.addLowPriorityJob(function(){W.menu.topLevelIconsOnly=W.skinnyMode},_.yS("swathceroo_delay_flexible_menu_update",100))};
_.t.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.U("web_action_buttons_minimize_subscribe")};
_.t.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.t.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.t.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.t.onYtTextInlineExpanderExpandedChanged=function(){if(!_.U("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var W,l;(l=(W=this.structuredDescriptionContentRendererElement).resize)==null||l.call(W)}};
_.t.onRenderStamperFinished=function(W){(W==null?void 0:W.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.t.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.t.onYtExpanderLessTapped=function(){var W,l=(W=this.videoSecondaryInfoRenderer)==null?void 0:W.showLessCommand;l&&this.ytComponentBehavior.resolveCommand(l)};
_.t.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.t.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.t.onDescriptionClick=function(W){if(!_.Cv(_.d_(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var l;((l=window.getSelection())==null?0:l.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.U("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.t.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.t.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.t.logCollapseClick=function(){var W=_.Wh();W&&this.descriptionCollapseClientVe&&_.C0(W,this.descriptionCollapseClientVe)};
_.t.logExpandClick=function(){var W=_.Wh();W&&this.descriptionExpandClientVe&&_.C0(W,this.descriptionExpandClientVe)};
_.t.collapseDescription=function(){this.descriptionCollapsed=!0};
_.t.scrollToTopOfContainer=function(){_.Gt(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.t.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.t.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.t.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.t.resize=function(){if(this.descriptionInlineExpander){var W,l;(l=(W=this.descriptionInlineExpander).resize)==null||l.call(W)}else _.Qe(new _.bP("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var V;(V=this.menu)==null||V.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.t.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var W,l,V,f,r=_.U("web_action_buttons_update_owner_width")?(V=(W=_.GS(this.menu).querySelector("#button-shape"))==null?void 0:W.clientWidth)!=null?V:0:(f=(l=_.GS(this.menu).querySelector("#button"))==null?void 0:l.clientWidth)!=null?f:0,R,y;W=((y=(R=_.GS(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:R.clientWidth)!=null?y:0)+8+r;var P,n;r=(n=(P=_.GS(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:P.children.length)!=null?n:2;W<=8*r||(this.primaryMenuWidth=W)}};
_.t.onYtUpdateTitleAction=function(W){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.k(W,gdM).title)};
_.t.onYtUpdateDescriptionAction=function(W){if(W=_.k(W,_.C5L)){var l,V=!((l=this.videoSecondaryInfoRenderer)==null||!l.attributedDescription);W.isEmpty||!W.description&&!W.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):W.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",W.attributedDescription):W.description&&(V?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.$J(W.description)):this.set("videoSecondaryInfoRenderer.description",W.description))}};
_.t.onYtDarkModeToggledAction=function(W){this.isDark=W};
_.t.registerPanel=function(){if(!_.U("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var W=_.U("web_watch_imax_theater_mode")&&this.isTheaterMode;W=_.U("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||W;var l=_.tY().resolve(_.tq);l&&!W&&l.registerPanel("engagement-panel-structured-description",this)}};
_.t.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.t.parseColorSamplingData=function(){var W;if(_.U("web_delhi_colorful_sd")&&((W=this.structuredDescriptionContentRenderer)==null?0:W.items)&&(W=this.structuredDescriptionContentRenderer.items.find(function(r){return!!_.k(r,x3)}))){var l,V;
this.hoverColor={lightTheme:(l=_.k(W,x3))==null?void 0:l.lightThemeColorPalette,darkTheme:(V=_.k(W,x3))==null?void 0:V.darkThemeColorPalette};var f;this.hoverText=(f=_.k(W,x3))==null?void 0:f.colorSampledDescriptionBodyText}};
_.t.updateHoverColor=function(){if(_.U("web_delhi_colorful_sd")){var W=this.hoverColor,l={},V;W=(V=this.isDark?W==null?void 0:W.darkTheme:W==null?void 0:W.lightTheme)!=null?V:{};V=_.L(F1P);for(var f=V.next();!f.done;f=V.next()){f=f.value;var r=W[f];l["--yt-saturated-"+_.A6(f)]=r?_.sD(r):"initial"}_.I1(this.hostElement,l)}};
_.t.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.t.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.t.showPanel=function(W){this.expandDescription();var l=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;l.resize();var V,f=W==null?void 0:(V=W.sectionListEngagementPanelExtras)==null?void 0:V.scrollToItemSectionIdentifier;f?_.w8.addJob(function(){l==null||l.scrollToSection(f)},8):this.scrollToTopOfContainer()};
_.t.isVisible=function(){return!this.descriptionCollapsed};
_.t.getReloadContinuation=function(){};
_.t.hidePanel=function(){};
_.t.updatePanel=function(){};
_.rc.Object.defineProperties(jw.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var W;return _.U("web_delhi_colorful_sd")&&(W=this.structuredDescriptionContentRenderer)!=null&&W.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(l){return!_.k(l,x3)&&!_.k(l,CM7)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.structuredDescriptionContentRendererComputed)!=null&&W.items){var l;W=_.L((l=this.structuredDescriptionContentRendererComputed)==null?void 0:l.items);for(l=W.next();!l.done;l=W.next())if(l=_.k(l.value,_.L9B))return l}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.videoPrimaryInfoRenderer)==null?0:W.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return!!((W=this.videoSecondaryInfoRenderer)==null?0:(l=W.owner)==null?0:(V=l.videoOwnerRenderer)==null?0:V.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var W,l;if((W=this.videoSecondaryInfoRenderer)==null?0:(l=W.attributedDescription)==null?0:l.content){var V,f;return(f=this.stripAttributedDescription((V=this.videoSecondaryInfoRenderer)==null?void 0:V.attributedDescription))!=null?f:{runs:[]}}}if(_.U("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var r,R,y,P;return(P=(y=(r=this.videoSecondaryInfoRenderer)==
null?void 0:r.description)!=null?y:(R=this.videoSecondaryInfoRenderer)==null?void 0:R.attributedDescription)!=null?P:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var W,l;return(l=(W=this.videoSecondaryInfoRenderer)==null?void 0:W.headerRuns)!=null?l:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.commentsEntryPointHeaderRenderer)==null||!W.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.videoMetadataCarousel)==null||!W.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.yS("swatchie_desc_lines",3):this.hasTeaserCarousel?_.yS("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var W,l,V=Object.assign({},(W=this.videoSecondaryInfoRenderer)==null?void 0:(l=W.metadataRowContainer)==null?void 0:l.metadataRowContainerRenderer);if(V&&V.rows&&V.collapsedItemCount!==void 0&&!(V.rows.length<=V.collapsedItemCount))return V.rows=V.rows.slice(V.collapsedItemCount),V.collapsedItemCount=0,V}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var W,l,V=Object.assign({},(W=this.videoSecondaryInfoRenderer)==null?void 0:(l=W.metadataRowContainer)==null?void 0:l.metadataRowContainerRenderer);if(V&&V.rows&&V.collapsedItemCount!==void 0)return V.rows=V.rows.slice(0,V.collapsedItemCount),V.collapsedItemCount=V.rows.length,V}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var W,l;return!!((W=this.structuredDescriptionContentRendererComputed)==null?0:(l=W.items)==null?0:l.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 W;return(W=this.videoSecondaryInfoRenderer)==null?void 0:W.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return((W=this.videoSecondaryInfoRenderer)==null?0:(l=W.owner)==null?0:(V=l.videoOwnerRenderer)==null?0:V.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var W,l,V,f;return!!((W=this.videoPrimaryInfoRenderer)==null?0:(l=W.videoActions)==null?0:(V=l.menuRenderer)==null?0:(f=V.flexibleItems)==null?0:f.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.CP(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.CP(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var W=this;if(_.U("web_title_hashtag_grey_delinkified")){var l,V=_.MC.unsafeClone((l=this.videoPrimaryInfoRenderer)==null?void 0:l.title);(l=V==null?void 0:V.runs)&&l.forEach(function(f){if(f==null?0:f.navigationEndpoint)f.textColor=4284506208,W.isDark&&(f.textColor=4289374890)});
return V}return(V=this.videoPrimaryInfoRenderer)==null?void 0:V.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.U("web_title_hashtag_black_delinkified")||_.U("web_title_hashtag_grey_delinkified")}}});
jw.prototype.updateHoverColor=jw.prototype.updateHoverColor;jw.prototype.parseColorSamplingData=jw.prototype.parseColorSamplingData;jw.prototype.resetDescriptionState=jw.prototype.resetDescriptionState;jw.prototype.registerPanel=jw.prototype.registerPanel;jw.prototype.onYtExpanderLessTapped=jw.prototype.onYtExpanderLessTapped;jw.prototype.onYtExpanderMoreTapped=jw.prototype.onYtExpanderMoreTapped;jw.prototype.onRenderStamperFinished=jw.prototype.onRenderStamperFinished;
jw.prototype.onYtTextInlineExpanderExpandedChanged=jw.prototype.onYtTextInlineExpanderExpandedChanged;jw.prototype.onYtTextInlineExpanderCollapseClicked=jw.prototype.onYtTextInlineExpanderCollapseClicked;jw.prototype.onYtTextInlineExpanderExpandClicked=jw.prototype.onYtTextInlineExpanderExpandClicked;jw.prototype.moveActionsElement=jw.prototype.moveActionsElement;jw.prototype.updateShouldForceIconOnly=jw.prototype.updateShouldForceIconOnly;jw.prototype.updateTopLevelIconsOnly=jw.prototype.updateTopLevelIconsOnly;
jw.prototype.structuredDescriptionContentRendererChanged=jw.prototype.structuredDescriptionContentRendererChanged;jw.prototype.videoSecondaryInfoRendererChanged=jw.prototype.videoSecondaryInfoRendererChanged;jw.prototype.videoPrimaryInfoRendererChanged=jw.prototype.videoPrimaryInfoRendererChanged;jw.prototype.maybeUpdateActionsOnSeparateLine=jw.prototype.maybeUpdateActionsOnSeparateLine;jw.prototype.updateOwnerAndDescriptionPosition=jw.prototype.updateOwnerAndDescriptionPosition;
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],jw.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],jw.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],jw.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.dx),_.z("design:type",Object)],jw.prototype,"ytdReduxBehavior",void 0);_.a([_.Aa("#above-the-fold"),_.z("design:type",HTMLElement)],jw.prototype,"aboveTheFoldContainer",void 0);_.a([_.Aa("#menu ytd-menu-renderer"),_.z("design:type",Object)],jw.prototype,"menu",void 0);_.a([_.Aa("#description-inline-expander"),_.z("design:type",Object)],jw.prototype,"descriptionInlineExpander",void 0);
_.a([_.Aa("#faded-structured-description"),_.z("design:type",Object)],jw.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.a([_.Aa("#structured-description"),_.z("design:type",Object)],jw.prototype,"structuredDescriptionContentRendererElement",void 0);_.a([_.Aa("#title"),_.z("design:type",HTMLElement)],jw.prototype,"titleElement",void 0);_.a([_.Aa("#description"),_.z("design:type",HTMLElement)],jw.prototype,"descriptionElement",void 0);
_.a([_.Aa("#description-interaction"),_.z("design:type",Object)],jw.prototype,"descriptionInteraction",void 0);_.a([_.Aa("#owner"),_.z("design:type",HTMLElement)],jw.prototype,"ownerElement",void 0);_.a([_.Aa("#top-row"),_.z("design:type",HTMLElement)],jw.prototype,"topRowElement",void 0);_.a([_.Aa("#bottom-row"),_.z("design:type",HTMLElement)],jw.prototype,"bottomRowElement",void 0);_.a([_.Aa("#actions"),_.z("design:type",HTMLElement)],jw.prototype,"actionsElement",void 0);
_.a([_.Aa("#bottom-actions"),_.z("design:type",HTMLElement)],jw.prototype,"bottomActionsElement",void 0);_.a([_.Aa("#ytd-watch-info-text"),_.z("design:type",Object)],jw.prototype,"watchInfoTextElement",void 0);_.a([_.b(),_.z("design:type",Object)],jw.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],jw.prototype,"videoPrimaryInfoRenderer",void 0);_.a([_.b(),_.z("design:type",Object)],jw.prototype,"videoSecondaryInfoRenderer",void 0);
_.a([_.b(),_.z("design:type",Object)],jw.prototype,"commentsEntryPointHeaderRenderer",void 0);_.a([_.b(),_.z("design:type",Object)],jw.prototype,"videoMetadataCarousel",void 0);_.a([_.b(),_.z("design:type",Object)],jw.prototype,"structuredDescriptionContentRenderer",void 0);_.a([_.G("structuredDescriptionContentRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],jw.prototype,"structuredDescriptionContentRendererComputed",null);
_.a([_.b(),_.z("design:type",Object)],jw.prototype,"videoSummary",void 0);_.a([_.b(),_.z("design:type",Object)],jw.prototype,"merchShelf",void 0);_.a([_.b(),_.z("design:type",Object)],jw.prototype,"infoPanelBelowMetadata",void 0);_.a([_.b(),_.z("design:type",Object)],jw.prototype,"hoverColor",void 0);_.a([_.b(),_.z("design:type",Object)],jw.prototype,"hoverText",void 0);_.a([_.b(),_.z("design:type",Object)],jw.prototype,"isHovering",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jw.prototype,"enableColorSampling",void 0);_.a([_.G("structuredDescriptionContentRendererComputed"),_.z("design:type",Object),_.z("design:paramtypes",[])],jw.prototype,"productShelf",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jw.prototype,"metadataBadgesInDescription",void 0);_.a([_.G("videoPrimaryInfoRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],jw.prototype,"shouldHideBadges",null);
_.a([_.G("productShelf","descriptionCollapsed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],jw.prototype,"shouldShowProductShelf",null);_.a([_.b(),_.z("design:type",Boolean)],jw.prototype,"isWatchFlexy",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jw.prototype,"descriptionCollapsed",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],jw.prototype,"useFadedScrimDescription",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jw.prototype,"skinnyMode",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("videoSecondaryInfoRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],jw.prototype,"largerItemWrap",null);_.a([_.b(),_.z("design:type",Object)],jw.prototype,"playlist",void 0);_.a([_.b(),_.z("design:type",Object)],jw.prototype,"clarifyBox",void 0);_.a([_.b(),_.z("design:type",Object)],jw.prototype,"playerAds",void 0);
_.a([_.b(),_.z("design:type",Boolean)],jw.prototype,"isDark",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],jw.prototype,"actionsOnSeparateLine",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jw.prototype,"disableVideoOwnerOnTap",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jw.prototype,"swatcherooDelayLoad",void 0);_.a([_.b(),_.z("design:type",Boolean)],jw.prototype,"suppressTopLevelMetadataRows",void 0);
_.a([_.b(),_.z("design:type",Object)],jw.prototype,"primaryMenuWidth",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jw.prototype,"videoId",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jw.prototype,"titleHeadlineXs",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jw.prototype,"titleHeadlineS",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jw.prototype,"titleHeadlineM",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jw.prototype,"titleHashtagBlackLinkified",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jw.prototype,"titleHashtagGreyLinkified",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],jw.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.a([_.b(),_.z("design:type",Object)],jw.prototype,"shouldForceIconOnly",void 0);
_.a([_.zS("skinnyMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jw.prototype,"updateOwnerAndDescriptionPosition",null);_.a([_.zS("skinnyMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jw.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.a([_.G("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.z("design:type",Object),_.z("design:paramtypes",[])],jw.prototype,"descriptionText",null);_.a([_.G("videoSecondaryInfoRenderer.headerRuns"),_.z("design:type",Array),_.z("design:paramtypes",[])],jw.prototype,"headerRuns",null);
_.a([_.b({value:!1}),_.G("commentsEntryPointHeaderRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],jw.prototype,"hasTeaser",null);_.a([_.b({value:!1,reflectToAttribute:!0}),_.G("videoMetadataCarousel"),_.z("design:type",Object),_.z("design:paramtypes",[])],jw.prototype,"hasTeaserCarousel",null);_.a([_.b({value:3}),_.G("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.z("design:type",Object),_.z("design:paramtypes",[])],jw.prototype,"descriptionMaxLines",null);
_.a([_.G("videoSecondaryInfoRenderer.metadataRowContainer"),_.z("design:type",Object),_.z("design:paramtypes",[])],jw.prototype,"collapsibleMetadataRows",null);_.a([_.G("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.z("design:type",Object),_.z("design:paramtypes",[])],jw.prototype,"alwaysVisibleMetadataRows",null);
_.a([_.G("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],jw.prototype,"hasInlineStructuredDescription",null);_.a([_.G("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],jw.prototype,"showInlineStructuredDescription",null);
_.a([_.G("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],jw.prototype,"descriptionExpandCommand",null);_.a([_.G("videoSecondaryInfoRenderer.owner"),_.z("design:type",Object),_.z("design:paramtypes",[])],jw.prototype,"videoOwnerCommand",null);_.a([_.b({reflectToAttribute:!0}),_.G("videoPrimaryInfoRenderer.videoActions"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],jw.prototype,"flexMenuEnabled",null);
_.a([_.b({selector:_.S1,reflectToAttribute:!0}),_.z("design:type",Object)],jw.prototype,"isFullscreen",void 0);_.a([_.b({selector:_.h2,reflectToAttribute:!0}),_.z("design:type",Object)],jw.prototype,"isTheaterMode",void 0);_.a([_.G("descriptionText","useFadedScrimDescription"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],jw.prototype,"showAttributedStringDescription",null);
_.a([_.G("descriptionText","useFadedScrimDescription"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],jw.prototype,"showFormattedStringDescription",null);_.a([_.G("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],jw.prototype,"showFadedStructuredDescription",null);
_.a([_.zS("videoPrimaryInfoRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jw.prototype,"videoPrimaryInfoRendererChanged",null);_.a([_.G("videoPrimaryInfoRenderer.title"),_.z("design:type",Object),_.z("design:paramtypes",[])],jw.prototype,"videoTitle",null);_.a([_.G("videoPrimaryInfoRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],jw.prototype,"noEndpoints",null);
_.a([_.zS("videoSecondaryInfoRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jw.prototype,"videoSecondaryInfoRendererChanged",null);_.a([_.TS("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jw.prototype,"structuredDescriptionContentRendererChanged",null);
_.a([_.TS("skinnyMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jw.prototype,"updateTopLevelIconsOnly",null);_.a([_.TS("skinnyMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jw.prototype,"updateShouldForceIconOnly",null);_.a([_.TS("skinnyMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jw.prototype,"moveActionsElement",null);
_.a([_.XI("yt-text-inline-expander-expand-clicked"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jw.prototype,"onYtTextInlineExpanderExpandClicked",null);_.a([_.XI("yt-text-inline-expander-collapse-clicked"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jw.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.a([_.XI("yt-text-inline-expander-expanded-changed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jw.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.a([_.XI("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],jw.prototype,"onRenderStamperFinished",null);
_.a([_.XI("yt-expander-more-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jw.prototype,"onYtExpanderMoreTapped",null);_.a([_.XI("yt-expander-less-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jw.prototype,"onYtExpanderLessTapped",null);
_.a([_.TS("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jw.prototype,"registerPanel",null);_.a([_.TS("videoSecondaryInfoRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jw.prototype,"resetDescriptionState",null);
_.a([_.TS("structuredDescriptionContentRenderer"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jw.prototype,"parseColorSamplingData",null);_.a([_.TS("hoverColor","isDark"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jw.prototype,"updateHoverColor",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-watch-metadata"})],jw);
_.Z(jw,"ytd-watch-metadata",function(){if(K1e!==void 0)return K1e;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return K1e=W},{mode:2});_.azv=function(W){_.iI.call(this);this.JSC$22903_watchApi=W;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;T9P(this);w4a(this);A47(this);Qik(this);Mmv(this);ZW7(this);OWM(this)};
_.v(_.azv,_.iI);var A47=function(W){var l=function(){_.U("kevlar_is_pupi_enabled")||IK(W)};
W.JSC$22903_watchApi.getRoot().addEventListener("yt-player-updated",l);W.addOnDisposeCallback(function(){W.JSC$22903_watchApi.getRoot().removeEventListener("yt-player-updated",l)})},Mmv=function(W){if(_.U("kevlar_endscreen_auto_theater_mode")){var l=W.JSC$22903_watchApi.subscribeToActiveChanged(function(){zaO(W)},!1);
W.addOnDisposeCallback(l)}},T9P=function(W){var l,V,f,r,R;
_.g(function(y){if(y.nextAddress==1)return y.yield(W.JSC$22903_watchApi.playerApi,2);l=y.yieldResult;V=function(P){P=!!P;N9v(W)&&(P=P?2:1,_.IH.getInstance().setState(P,!0,!1))};
f=function(P){P&&_.pee(_.DJ().getState())&&(_.Gt(W.JSC$22903_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),W.temporaryTheaterMode=!0)};
r=function(P){_.U("kevlar_player_update_autonav_on_new_data")&&P.type==="newdata"&&(_.U("kevlar_is_pupi_enabled")||IK(W))};
R=function(P){W.onPlayerStateChange(P)};
_.U("kevlar_endscreen_auto_theater_mode")&&l.addEventListener("onAutonavCancelled",f);l.addEventListener("onAutonavChangeRequest",V);l.addEventListener("onVideoDataChange",r);l.addEventListener("onStateChange",R);W.addOnDisposeCallback(function(){l.removeEventListener("onAutonavChangeRequest",V);l.removeEventListener("onVideoDataChange",r);l.removeEventListener("onStateChange",R);_.U("kevlar_endscreen_auto_theater_mode")&&l.removeEventListener("onAutonavCancelled",f)});
_.ju(y)})},w4a=function(W){W.JSC$22903_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){W.autonavCancelledBySignal=!0;
_.U("kevlar_is_pupi_enabled")||IK(W)});
W.JSC$22903_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(l,V,f){V&&IK(W,f)});
W.JSC$22903_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){N9v(W)&&_.IH.getInstance().setState(2,!0,!0)});
W.JSC$22903_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){N9v(W)&&_.IH.getInstance().setState(1,!0,!0)});
W.addOnDisposeCallback(function(){W.JSC$22903_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");W.JSC$22903_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");W.JSC$22903_watchApi.unregisterActionHandler("yt-enable-autoplay-command");W.JSC$22903_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},Qik=function(W){var l=W.JSC$22903_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){OWM(W)}),V=W.JSC$22903_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){ZW7(W)});
W.addOnDisposeCallback(function(){W.JSC$22903_watchApi.unsubscribeByKey(l);W.JSC$22903_watchApi.unsubscribeByKey(V)})},OWM=function(W){W.autonavCancelledBySignal=!1;
_.U("kevlar_is_pupi_enabled")||IK(W)},ZW7=function(W){var l=W.JSC$22903_watchApi.getWatchNextResponse(),V,f;
var r=(l=(f=_.k(l==null?void 0:(r=l.playerOverlays)==null?void 0:(V=r.playerOverlayRenderer)==null?void 0:V.autonavToggle,_.ByZ))==null?void 0:f.enabled)?2:1;_.U("kevlar_is_pupi_enabled")?_.IH.getInstance().setState(r,!1,!1):IK(W);_.U("web_persist_server_autonav_state_on_client")&&typeof l==="boolean"&&_.DN4(r===2)},N9v=function(W){if(W.autonavCancelledBySignal)return!1;
var l,V,f,r;return!!((l=W.JSC$22903_watchApi.getWatchNextResponse())==null?0:(V=l.contents)==null?0:(f=V.twoColumnWatchNextResults)==null?0:(r=f.autoplay)==null?0:r.autoplay)};
_.azv.prototype.onPlayerStateChange=function(W){if(W===0){W=!_.IH.getInstance().isAutoplaySetExplicitly();var l=this.JSC$22903_watchApi.getWatchNextResponse(),V,f,r,R;l=_.k(l==null?void 0:(V=l.contents)==null?void 0:(f=V.twoColumnWatchNextResults)==null?void 0:(r=f.autoplay)==null?void 0:(R=r.autoplay)==null?void 0:R.autoplayExplicitChoiceDialogRenderer,_.Xme);N9v(this)&&W&&l&&_.mK.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:l},popupType:"DIALOG"}})}else zaO(this)};
var zaO=function(W){W.temporaryTheaterMode&&(W.temporaryTheaterMode=!1,_.Gt(W.JSC$22903_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},IK=function(W,l){l=l===void 0?!1:l;
var V;_.g(function(f){if(f.nextAddress==1)return f.yield(W.JSC$22903_watchApi.playerApi,2);V=f.yieldResult;N9v(W)?V.setAutonavState(_.IH.getInstance().getState(),l):V.setAutonavState(1,l);_.ju(f)})};var YRP={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"};_.eae=function(W){_.iI.call(this);var l=this;this.JSC$22908_watchApi=W;var V=this.JSC$22908_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){x_v(l)});
this.addOnDisposeCallback(function(){l.JSC$22908_watchApi.unsubscribeByKey(V)});
x_v(this)};
_.v(_.eae,_.iI);var x_v=function(W){var l=W.JSC$22908_watchApi.getPlayerResponse(),V=W.JSC$22908_watchApi.getWatchNextResponse();if(!_.cES(l==null?void 0:l.playabilityStatus,V==null?void 0:V.playerOverlays)){var f;var r=l==null?void 0:(f=l.playabilityStatus)==null?void 0:f.errorScreen}W.JSC$22908_watchApi.provideRenderingData("ERROR_SCREEN",r)};var qRa=_.Q(function(W){var l=W.data;W=_.U("web_watch_video_details_hide_subtitle");var V=_.U("web_watch_video_details_single_line_title"),f=_.ip(function(){var P=l().onTap;P&&_.tY().resolve(_.s6).resolveCommand(P)}),r={},R={},y={};
return _.C("yt-player-overlay-video-details-renderer",{class:_.If("ytPlayerOverlayVideoDetailsRendererHost",(r.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.U("web_watch_video_details_transparent_background"),r)),"on:click":f,role:"button"},_.C("h2",{class:_.If("ytPlayerOverlayVideoDetailsRendererTitle",(R.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return V},R))},_.C(_.bH,{text:function(){return l().title}})),_.C("div",{class:_.If("ytPlayerOverlayVideoDetailsRendererSubtitle",
(y.ytPlayerOverlayVideoDetailsRendererHideSubtitle=W,y))},_.C(_.bH,{text:function(){return l().subtitle}})))},"Vk");var iJ={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},haP=_.Q(function(W){var l=W.data;var V=_.$h(_.S1),f=_.U("web_watch_action_bar_resize_buttons"),r=_.U("web_watch_video_action_dsdvb"),R=_.U("delhi_modern_web_player_icons")&&!_.U("enable_web_delhi_icons");W=_.U("delhi_modern_web_player_disable_frosted_glass");var y=function(){return f&&!V()?{size:"M"}:void 0},P={};
return _.C("yt-player-quick-action-buttons",{class:_.If("ytPlayerQuickActionButtonsHost",(P.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!V()},P.ytPlayerQuickActionButtonsHostDisableBackdropFilter=W,P))},_.C(_.G3,{each:function(){var n=l();
if(R){n=JSON.parse(JSON.stringify(n));for(var B=_.L(n),d=B.next();!d.done;d=B.next()){var J=d.value,D=void 0;d=_.k((D=_.k(J,_.LE))==null?void 0:D.toggleButtonViewModel,_.Ub);var u=void 0;D=_.k((u=_.k(J,_.sb))==null?void 0:u.toggleButtonViewModel,_.Ub);u=_.k(J,_.JJ);J=_.k(J,_.Ub);if(d)D=_.k(d.defaultButtonViewModel,_.JJ),d=_.k(d.toggledButtonViewModel,_.JJ),D&&D.iconName&&(D.iconName=iJ[D.iconName]),d&&d.iconName&&(d.iconName=iJ[d.iconName]);else if(D)d=_.k(D.defaultButtonViewModel,_.JJ),D=_.k(D.toggledButtonViewModel,
_.JJ),d&&d.iconName&&(d.iconName=iJ[d.iconName]),D&&D.iconName&&(D.iconName=iJ[D.iconName]);else if(u)u.iconName&&(u.iconName=iJ[u.iconName]);else if(J){d=_.k(J.defaultButtonViewModel,_.JJ);D=_.k(J.toggledButtonViewModel,_.JJ);J=void 0;if((J=d)==null?0:J.iconName)d.iconName=iJ[d.iconName];d=void 0;if((d=D)==null?0:d.iconName)D.iconName=iJ[D.iconName]}}}r&&(n=rOX(n));return n}},function(n){return _.C(_.QH,{data:function(){return n}},{buttonViewModel:function(B){return _.C(_.Nq,{data:B.data,
buttonOverrides:y})},
likeButtonViewModel:function(B){return _.C(_.cR,{data:B.data,buttonShapeOverrideables:y})},
dislikeButtonViewModel:function(B){return _.C(_.C9,{data:B.data,buttonShapeOverrideables:y})},
toggleButtonViewModel:function(B){return _.C(_.gy,{data:B.data,buttonShapeOverrides:y})}})}))},"Wk");_.EW$=function(W){_.iI.call(this);var l=this;this.JSC$22912_watchApi=W;W=_.L(_.J4({},void 0,"n9wCVe"));this.quickActionsViewModel=W.next().value;this.setQuickActionsViewModel=W.next().value;W=_.L(_.J4({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=W.next().value;this.setPlayerOverlayVideoDetailsRenderer=W.next().value;var V=this.JSC$22912_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){SRM(l)});
this.addOnDisposeCallback(function(){l.JSC$22912_watchApi.unsubscribeByKey(V)});
SRM(this)};
_.v(_.EW$,_.iI);
var SRM=function(W){var l,V,f,r,R,y,P,n,B,d,J,D,u,H;_.g(function(p){if(p.nextAddress==1)return p.yield(W.JSC$22912_watchApi.playerApi,2);l=p.yieldResult;V=W.JSC$22912_watchApi.getWatchNextResponse();R=(f=V)==null?void 0:(r=f.playerOverlays)==null?void 0:r.playerOverlayRenderer;P=_.k((y=R)==null?void 0:y.fullscreenQuickActionsBar,_.BTe);(B=(n=W).setQuickActionsViewModel)==null||B.call(n,P||{});P&&$_y(W,l);D=(d=R)==null?void 0:(J=d.videoDetails)==null?void 0:J.playerOverlayVideoDetailsRenderer;(H=(u=
W).setPlayerOverlayVideoDetailsRenderer)==null||H.call(u,D||{});D&&Wwa(W,l);_.ju(p)})},$_y=function(W,l){if(!W.quickActionButtonsContainer)if(l.setFullscreenQuickActions){W.quickActionButtonsContainer=document.createElement("div");
l.setFullscreenQuickActions(W.quickActionButtonsContainer);var V=function(){return W.quickActionsViewModel().quickActionButtons||[]},f=_.Ih(W.quickActionButtonsContainer,function(){return _.C(haP,{data:V})},"Xk");
W.addOnDisposeCallback(function(){l.setFullscreenQuickActions(void 0);f()})}else _.Qe(new _.bP("setFullscreenQuickActions not defined",{playerApi:Object.keys(l),
isReady:l.isReady(),appState:l.getAppState()}))},Wwa=function(W,l){if(!W.playerOverlayVideoDetailsRendererContainer)if(l.setPlayerOverlayVideoDetailsRenderer){W.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
l.setPlayerOverlayVideoDetailsRenderer(W.playerOverlayVideoDetailsRendererContainer);var V=_.Ih(W.playerOverlayVideoDetailsRendererContainer,function(){return _.C(qRa,{data:W.playerOverlayVideoDetailsRenderer})},"Yk");
W.addOnDisposeCallback(function(){l.setPlayerOverlayVideoDetailsRenderer(void 0);V()})}else _.Qe(new _.bP("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(l),
isReady:l.isReady(),appState:l.getAppState()}))};_.mo=function(W){_.iI.call(this);var l=this;this.JSC$22918_watchApi=W;this.JSC$22918_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;W=_.Eb(_.DJ(),_.S1,function(V){l.onFullscreenChanged(V)});
this.addOnDisposeCallback(W);W=_.Eb(_.DJ(),_.a7,function(V){l.onWatchScroll(V)});
this.addOnDisposeCallback(W);_.U("kevlar_watch_while_v2")&&(W=_.Eb(_.DJ(),_.l0,function(V){lLX(l,V)}),this.addOnDisposeCallback(W));
ViI(this);fLy(this);rC7();this.onWatchScroll(_.a7(_.DJ().getState()));_.ZL("START_IN_FULL_WINDOW_MODE")&&this.JSC$22918_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.v(_.mo,_.iI);var ViI=function(W){W.JSC$22918_watchApi.registerActionHandler("yt-fullscreen-change-action",function(l){var V=W.JSC$22918_watchApi.isActive();l&&!V||_.DJ().dispatch(_.GT({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!l}}))});
W.addOnDisposeCallback(function(){W.JSC$22918_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},fLy=function(W){var l,V;
_.g(function(f){if(f.nextAddress==1)return f.yield(W.JSC$22918_watchApi.playerApi,2);l=f.yieldResult;V=function(){W.onFullerscreenEduClicked()};
l.addEventListener("onFullerscreenEduClicked",V);W.addOnDisposeCallback(function(){l.removeEventListener("onFullerscreenEduClicked",V)});
_.ju(f)})};
_.mo.prototype.onFullscreenChanged=function(W){var l=this,V;return _.g(function(f){if(f.nextAddress==1)return l.isFullscreen=!!_.ku(),f.yield(l.JSC$22918_watchApi.playerApi,2);V=f.yieldResult;l.JSC$22918_miniplayerActive||V.setFauxFullscreen(l.isFullscreen);if(W&&(l.JSC$22918_watchApi.focusOnPlayer(),!l.fullerscreenEduButtonShownThisPlayback)){l.fullerscreenEduButtonShownThisPlayback=!0;var r=_.YC("yt-fullerscreen-edu-button-shown-count")||0;_.N5("yt-fullerscreen-edu-button-shown-count",r+1,31536E3);
l.updateFullerscreenEduButtonSubtleModeState()}_.ju(f)})};
var lLX=function(W,l){var V;_.g(function(f){if(f.nextAddress==1)return W.JSC$22918_miniplayerActive=l,f.yield(W.JSC$22918_watchApi.playerApi,2);V=f.yieldResult;V.setFauxFullscreen(!W.JSC$22918_miniplayerActive&&W.isFullscreen);_.ju(f)})};
_.mo.prototype.onWatchScroll=function(W){var l=this,V,f;return _.g(function(r){if(r.nextAddress==1)return _.U("external_fullscreen_with_edu")?r.yield(l.JSC$22918_watchApi.playerApi,2):r.return();V=r.yieldResult;f=W<=0;l.shouldShowFullerscreenEdu!==f&&(l.shouldShowFullerscreenEdu=f,V.updateFullerscreenEduButtonVisibility(!l.shouldShowFullerscreenEdu));_.ju(r)})};
_.mo.prototype.onFullerscreenEduClicked=function(){this.JSC$22918_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var W=_.YC("yt-fullerscreen-edu-button-click-count")||0;_.N5("yt-fullerscreen-edu-button-click-count",W+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.mo.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var W=this,l,V,f,r,R,y;return _.g(function(P){if(P.nextAddress==1)return l=_.YC("yt-fullerscreen-edu-button-click-count")||0,V=_.YC("yt-fullerscreen-edu-button-shown-count")||0,f=_.yS("external_fullscreen_button_click_threshold"),r=_.yS("external_fullscreen_button_shown_threshold"),R=l>=f||V>=r,P.yield(W.JSC$22918_watchApi.playerApi,2);y=P.yieldResult;y.updateFullerscreenEduButtonSubtleModeState(R);_.ju(P)})};
_.mo.prototype.disposeInternal=function(){_.iI.prototype.disposeInternal.call(this);var W=_.ku();_.U("kevlar_exit_fullscreen_leaving_watch")&&W&&_.vh(W)};
var rC7=function(){if(_.U("web_watch_add_viewport_meta_tag")){var W=document.querySelector("meta[name=viewport]"),l=document.head;l&&!W&&(W=document.createElement("meta"),W.name="viewport",W.content="width=device-width, initial-scale=1.0, viewport-fit=cover",l.appendChild(W))}};_.ti7=function(W){_.iI.call(this);var l=this;this.JSC$22922_watchApi=W;this.jobId=0;this.pendingRequestId=void 0;var V=this.JSC$22922_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){RrO(l)});
this.addOnDisposeCallback(function(){l.JSC$22922_watchApi.unsubscribeByKey(V)});
RrO(this)};
_.v(_.ti7,_.iI);var sh$=function(W){_.w8.cancelJob(W.jobId);W.pendingRequestId=void 0},RrO=function(W){sh$(W);
var l=RyO(W.JSC$22922_watchApi.getWatchNextResponse());if(l){var V=250,f,r=(f=_.k(l,_.czB))==null?void 0:f.initialDelayMs;_.U("web_watch_updated_metadata_server_initial_delay")&&r&&(V=r);W.jobId=_.w8.addLowPriorityJob(function(){return W.fetchUpdatedMetadata(l)},V)}};
_.ti7.prototype.fetchUpdatedMetadata=function(W,l){var V=this,f,r,R,y,P,n,B,d,J,D,u,H,p,X,w;return _.g(function(O){switch(O.nextAddress){case 1:l&&(f={continuation:l});if(!_.U("web_get_updated_metadata_fantasy_panel_continuation_params")){O.jumpTo(2);break}r=_.tY().resolve(_.tq);R="PAsports_fantasy";return O.yield(r.isVisible(R,!0),3);case 3:O.yieldResult&&(B=(P=(y=r).getUpdatePanelContinuationData)==null?void 0:(n=P.call(y,R))==null?void 0:n.updatePanelContinuationRequest)&&(f||(f={}),f.clientParams=
{panelContinuationParams:{panelContinuation:B}});case 2:d=_.tY().resolve(_.Vb);if(!d)return _.wv(Error("Oo")),O.return();J={};V.pendingRequestId=J;return O.yield(_.Lv(d,W,f),4);case 4:D=O.yieldResult;if(J!==V.pendingRequestId)return O.return();p=(u=D)==null?void 0:(H=u.continuation)==null?void 0:H.timedContinuationData;((X=p)==null?0:X.continuation)&&((w=p)==null?0:w.timeoutMs)&&(V.jobId=_.w8.addLowPriorityJob(function(){return V.fetchUpdatedMetadata(W,p.continuation)},p.timeoutMs));
_.ju(O)}})};
_.ti7.prototype.disposeInternal=function(){_.iI.prototype.disposeInternal.call(this);sh$(this)};var Lw$=_.Q(function(W){var l=_.ip(function(){var f=W.data().videoId;if(W.active())f=_.vy(f),_.tY().resolve(_.s6).resolveCommand(f);else{var r=W.playerApi(),R=r.getAvailableAudioTracks(),y,P,n=(y=W.sourceVideoConfig().audioTracks)==null?void 0:(P=y.find(function(B){return B.isDefaultForSource}))==null?void 0:P.id;
if(R=R.find(function(B){return B.getLanguageInfo().getId()===n}))r.setAudioTrack(R,!0),r.setCompositeParam({activeVideoId:f}),W.setActiveSourceId(f)}}),V={};
return _.C("ytw-composite-source-video-overlay",{class:_.If("ytwCompositeSourceVideoOverlayHost",(V.ytwCompositeSourceVideoOverlayActive=W.active,V.ytwCompositeSourceVideoOverlayInteracting=W.interacting,V)),style:_.Tm({left:function(){var f;return((f=W.data().topLeftCornerX)!=null?f:0)*100+"%"},
top:function(){var f;return((f=W.data().topLeftCornerY)!=null?f:0)*100+"%"},
width:function(){var f;return((f=W.data().width)!=null?f:0)*100+"%"},
height:function(){var f;return((f=W.data().height)!=null?f:0)*100+"%"}}),
"on:click":l},_.C("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Zk");var yCX=_.Q(function(W){var l=_.L(_.X3(function(){var y,P=(y=W.data().sources)==null?void 0:y.find(function(n){return n.isActive});
if(P)return P.videoId})),V=l.next().value,f=l.next().value;
l=_.L(_.J4(!1,void 0,"yNRzwd"));var r=l.next().value,R=l.next().value;return _.C("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.ip(function(){R(!0)}),
"on:mouseout":_.ip(function(){R(!1)})},_.C(_.c,{cond:function(){return W.data().sources},
then:function(y){return _.C(_.G3,{each:y},function(P){return _.C(Lw$,{data:P,active:function(){return P.videoId===V()},
setActiveSourceId:f,interacting:r,playerApi:W.playerApi,sourceVideoConfig:function(){return te$(W.compositeVideoConfig(),P.videoId)}})})}}))},"$k");_.n2P=function(W){_.iI.call(this);this.JSC$22938_watchApi=W;W=_.L(_.J4({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=W.next().value;this.setCompositeVideoOverlayRenderer=W.next().value;W=_.L(_.J4({},void 0,"OlaJpc"));this.compositeVideoConfig=W.next().value;this.setCompositeVideoConfig=W.next().value;g2P(this);Pz7(this)};
_.v(_.n2P,_.iI);var g2P=function(W){var l=W.JSC$22938_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Pz7(W)});
W.addOnDisposeCallback(function(){W.JSC$22938_watchApi.unsubscribeByKey(l)})},Cz$=function(W){var l;
return _.g(function(V){if(V.nextAddress==1)return V.yield(W.JSC$22938_watchApi.playerApi,2);l=V.yieldResult;l.setCompositeVideoOverlayRendererComponent(W.container);_.ju(V)})},cC7=function(W){var l;
return _.g(function(V){if(V.nextAddress==1)return V.yield(W.JSC$22938_watchApi.playerApi,2);l=V.yieldResult;l.setCompositeVideoOverlayRendererComponent(void 0);_.ju(V)})},BKv=function(W){var l,V;
return _.g(function(f){if(f.nextAddress==1)return f.yield(W.JSC$22938_watchApi.playerApi,2);l=f.yieldResult;W.container=document.createElement("div");V=_.Ih(W.container,function(){return _.C(yCX,{data:W.compositeVideoOverlayRenderer,compositeVideoConfig:W.compositeVideoConfig,playerApi:l})},"al");
W.addOnDisposeCallback(V);_.ju(f)})},Pz7=function(W){var l,V,f,r,R,y,P,n;
_.g(function(B){return B.nextAddress==1?(l=W.JSC$22938_watchApi.getPlayerResponse(),R=_.k((V=l)==null?void 0:(f=V.overlay)==null?void 0:(r=f.playerControlsOverlayRenderer)==null?void 0:r.compositeVideoOverlay,WQa),n=(y=l)==null?void 0:(P=y.playerConfig)==null?void 0:P.compositeVideoConfig,R&&W.setCompositeVideoOverlayRenderer(R),n&&W.setCompositeVideoConfig(n),R&&n?W.container?B.jumpTo(6):B.yield(BKv(W),6):d4X(W)?B.yield(cC7(W),0):B.jumpTo(0)):d4X(W)?B.jumpTo(0):B.yield(Cz$(W),0)})},d4X=function(W){var l;
return!((l=W.container)==null||!l.parentElement)};
_.n2P.prototype.disposeInternal=function(){d4X(this)&&cC7(this);_.iI.prototype.disposeInternal.call(this)};_.k3a=function(W){_.iI.call(this);var l=this;this.JSC$22944_watchApi=W;var V=this.JSC$22944_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var f=l.JSC$22944_watchApi.getPlayerResponse();if(f){var r,R;if(f=_.k((r=f.endscreen)==null?void 0:(R=r.endscreenRenderer)==null?void 0:R.hideButton,_.Ub)){var y;(y=l.setEndscreenHideButton)==null||y.call(l,f);JCX(l)}}});
this.addOnDisposeCallback(function(){l.JSC$22944_watchApi.unsubscribeByKey(V)});
W=_.L(_.J4({},void 0,"ER3tqb"));this.endscreenHideButton=W.next().value;this.setEndscreenHideButton=W.next().value;D4O(this);U47(this);uWa(this)};
_.v(_.k3a,_.iI);
var JCX=function(W){var l,V;_.g(function(f){if(f.nextAddress==1)return W.creatorEndscreenHideButtonContainer?f.return():f.yield(W.JSC$22944_watchApi.playerApi,2);l=f.yieldResult;W.creatorEndscreenHideButtonContainer=document.createElement("div");_.W4(W.creatorEndscreenHideButtonContainer,!1);l.setCreatorEndscreenHideButton(W.creatorEndscreenHideButtonContainer);V=_.Ih(W.creatorEndscreenHideButtonContainer,function(){return _.C(_.gy,{data:W.endscreenHideButton,useOutlinedIcon:!0})},"bl");
W.addOnDisposeCallback(function(){V();var r;(r=l)==null||r.setCreatorEndscreenHideButton(void 0)});
_.ju(f)})},D4O=function(W){var l,V;
_.g(function(f){if(f.nextAddress==1)return f.yield(W.JSC$22944_watchApi.playerApi,2);l=f.yieldResult;V=function(){W.creatorEndscreenHideButtonContainer&&_.W4(W.creatorEndscreenHideButtonContainer,!0)};
l.addEventListener("endscreenelementshown",V);W.addOnDisposeCallback(function(){var r;(r=l)==null||r.removeEventListener("endscreenelementshown",V)});
_.ju(f)})},U47=function(W){var l=function(){W.creatorEndscreenHideButtonContainer&&_.W4(W.creatorEndscreenHideButtonContainer,!1)},V=W.JSC$22944_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",l),f=W.JSC$22944_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",l);
W.addOnDisposeCallback(function(){W.JSC$22944_watchApi.unsubscribeByKey(V);W.JSC$22944_watchApi.unsubscribeByKey(f)})},uWa=function(W){W.JSC$22944_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(l){var V=_.k(l,eyP);
W.JSC$22944_watchApi.playerApi.then(function(f){f==null||f.setCreatorEndscreenVisibility(!!V.hide)})});
W.addOnDisposeCallback(function(){W.JSC$22944_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.HpO=function(W){_.iI.call(this);this.JSC$22950_watchApi=W;v2v(this)};
_.v(_.HpO,_.iI);var v2v=function(W){var l,V;_.g(function(f){if(f.nextAddress==1)return f.yield(W.JSC$22950_watchApi.playerApi,2);l=f.yieldResult;V=function(r){_.DJ().dispatch(_.GT({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:r}}))};
l.addEventListener("onRetroModeChanged",V);W.addOnDisposeCallback(function(){l.removeEventListener("onRetroModeChanged",V)});
_.ju(f)})};var cOP=0,Nb=0,dI7=0;var KwP;KwP=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.XB=function(W){_.iI.call(this);this.JSC$22963_watchApi=W;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;Fwe(this)};
_.v(_.XB,_.iI);
var Fwe=function(W){var l,V,f;_.g(function(r){if(r.nextAddress==1)return r.yield(W.JSC$22963_watchApi.playerApi,2);l=r.yieldResult;if(W.isDisposed())return r.return();W.sessionStorage=_.gN7("yt-sleep-timer");W.sessionStorage||_.Qe(new _.bP("SessionStorage for Sleep Timer is undefined."));((V=W.sessionStorage)==null?void 0:V.get("yt-sleep-timer"))==="true"&&(UI$(),(f=W.sessionStorage)==null||f.remove("yt-sleep-timer"),l.syncVolume());G3v(W,l);bpy(W,l);pPP(W,l);_.ju(r)})},G3v=function(W,l){var V=function(B){W.onSleepTimerSettingsChanged(B,
l)},f=function(B){W.onPlayerStateChange(B,l)},r=function(){W.onLoopChange(l)},R=function(){W.onCloseMiniplayer(l)},y=function(){C7y(l,(0,_.tv)(),uXI(l),W.selectedOption==="End of video",l.getPlayerState()!==1)},P=function(){W.onSeekComplete(l)},n=function(){_.w8.cancelJob(Nb);
var B=l.getCurrentTime()>=l.getDuration(),d=W.selectedOption==="End of video"||W.selectedOption==="End of playlist"&&!gky(W.playlistId);B&&d&&o2P(W,l)};
l.addEventListener("onSleepTimerSettingsChanged",V);l.addEventListener("onLoopChange",r);l.addEventListener("onLoopRangeChange",r);l.addEventListener("onStateChange",f);l.addEventListener("onCloseMiniplayer",R);l.addEventListener("onSleepTimerFeatureAvailable",y);l.addEventListener("SEEK_COMPLETE",P);l.addEventListener("onAdStart",n);W.addOnDisposeCallback(function(){l.removeEventListener("onSleepTimerSettingsChanged",V);l.removeEventListener("onLoopChange",r);l.removeEventListener("onLoopRangeChange",
r);l.removeEventListener("onStateChange",f);l.removeEventListener("onCloseMiniplayer",R);l.removeEventListener("onSleepTimerFeatureAvailable",y);l.removeEventListener("SEEK_COMPLETE",P);l.removeEventListener("onAdStart",n)})},bpy=function(W,l){var V=W.JSC$22963_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var f=l.getVideoData().video_id,r,R=(r=L7O(W.JSC$22963_watchApi))==null?void 0:r.playlistId;
W.pauseAutonavPlayback&&(l.pauseVideo(),l.syncVolume(),W.pauseAutonavPlayback=!1);if(W.selectedOption==="End of video"&&f!==W.videoId)Tg(W,l);else{if(W.selectedOption==="End of playlist"){r=gky(W.playlistId);if(R!==W.playlistId){Tg(W,l);break a}r?r&&jhy(W,l):ILI(W,l)}W.videoId=f;W.playlistId=R}}});
W.addOnDisposeCallback(function(){W.JSC$22963_watchApi.unsubscribeByKey(V)})},pPP=function(W,l){var V=_.tY().resolve(_.Jp),f=_.Eb(V,_.TZU,function(R){R&&W.selectedOption!=="Off"&&Tg(W,l)}),r=W.JSC$22963_watchApi.subscribeToActiveChanged(function(R){var y,P;
return _.g(function(n){if(n.nextAddress==1)return n.yield(_.hJ().navigationFinishPromise,2);y=!_.IOM();P=_.tY().resolve(_.Sl).isMiniplayerActive();R||!svk(W.selectedOption)||P||y||Tg(W,l);_.ju(n)})},!1);
V=_.Eb(V,function(R){return R.entities.playlistLoopStateEntity||{}},function(R){R=R===void 0?{}:R;
var y=yO$(W.JSC$22963_watchApi);if(y){var P;((P=R[y])==null?void 0:P.state)==="PLAYLIST_LOOP_STATE_ALL"&&svk(W.selectedOption)&&Tg(W,l)}});
W.addOnDisposeCallback(f);W.addOnDisposeCallback(V);W.addOnDisposeCallback(r)};
_.XB.prototype.onSleepTimerSettingsChanged=function(W,l){switch(W){case "Off":this.selectedOption!=="Off"&&Tg(this,l);break;case "End of video":case "End of playlist":ipa(this,W,l);break;default:ipa(this,W,l,KwP.get(W))}};
_.XB.prototype.onLoopChange=function(W){(W.getLoopVideo()||W.getLoopRange())&&svk(this.selectedOption)&&Tg(this,W)};
_.XB.prototype.onCloseMiniplayer=function(W){svk(this.selectedOption)&&Tg(this,W)};
var ipa=function(W,l,V,f){m4$(W,V);W.selectedOption=l;W.videoId=V.getVideoData().video_id;W.playlistId="";var r;(r=W.sessionStorage)==null||r.set("yt-sleep-timer","true");W.adjustmentsCount++;C7y(V,(0,_.tv)(),uXI(V),W.selectedOption==="End of video");if(W.selectedOption==="End of video")ILI(W,V),XPO(W,V);else if(W.selectedOption==="End of playlist"){XPO(W,V);var R,y;W.playlistId=(y=(R=L7O(W.JSC$22963_watchApi))==null?void 0:R.playlistId)!=null?y:"";gky(W.playlistId)||ILI(W,V)}else f&&(W.presetFadeSchedulerId=
_.a$(_.w8,function(){JOP(V,15E3)},f-15E3),W.presetPauseSchedulerId=_.a$(_.w8,function(){o2P(W,V)},f),BaI(V,(0,_.tv)(),f))},o2P=function(W,l){if(W.JSC$22963_watchApi.isActive()){var V={dismissDialogEndpoint:{}};
var f={commandExecutorCommand:{commands:[V,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};V={buttonViewModel:{title:_.wg("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:V}}};f={buttonViewModel:{title:_.wg("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:f}}};var r={dialogHeaderViewModel:{headline:{content:_.wg("SLEEP_TIMER_ENDED_TITLE")}}},
R={basicContentViewModel:{paragraphs:[{text:{content:_.wg("SLEEP_TIMER_ENDED_TEXT")}}]}};V={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:r,content:R,footer:{panelFooterViewModel:{primaryButton:V,secondaryButton:f,shouldHideDivider:!0}}}}}}};_.tY().resolve(_.s6).resolveCommand(V,{form:{element:W}})}else UI$();TKP(W,!1);wPa(W,l);l.pauseVideo();_.IH.getInstance().getState()===2&&l.getPlayerState()===5&&(W.pauseAutonavPlayback=!0)},Tg=function(W,l){TKP(W,!0);
wPa(W,l);UI$()},wPa=function(W,l){m4$(W,l);
W.selectedOption="Off";W.videoId="";W.playlistId="";W.adjustmentsCount=0;var V;(V=W.sessionStorage)==null||V.remove("yt-sleep-timer");_.w8.cancelJob(cOP);l.resetSleepTimerMenuSettings()},TKP=function(W,l){l={timer_length_adjustment_times_during_session:W.adjustmentsCount-1,
is_session_cancelled:l};switch(W.selectedOption){case "Off":l.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":l.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":l.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:l.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",l.option_duration_in_minutes=KwP.get(W.selectedOption)/6E4}_.XC("sleepTimerSessionFinishEvent",l)};
_.XB.prototype.onPlayerStateChange=function(W,l){W===1?C7y(l,(0,_.tv)(),uXI(l),this.selectedOption==="End of video"):W===0?(_.w8.cancelJob(Nb),l.setVideoTimeLeft(nka(0,0))):W===2&&_.w8.cancelJob(Nb);this.selectedOption==="End of video"?W===0?o2P(this,l):W===2&&DIa(l):this.selectedOption!=="End of playlist"||gky(this.playlistId)||(W===0?o2P(this,l):W===2&&DIa(l))};
_.XB.prototype.onSeekComplete=function(W){W.getPlayerState()===2&&C7y(W,(0,_.tv)(),uXI(W),this.selectedOption==="End of video",!0)};
_.XB.prototype.onCueRangeEnter=function(W,l){W==="sleep-timer-fade-audio"&&JOP(l,(l.getDuration()-l.getProgressState().current)*1E3)};
_.XB.prototype.onCueRangeExit=function(W,l){W==="sleep-timer-fade-audio"&&l.getPlayerState()!==0&&DIa(l,!0)};
var ILI=function(W,l){l.addCueRange("sleep-timer-fade-audio",l.getDuration()-15,l.getDuration());l.addEventListener("onCueRangeEnter",function(V){W.onCueRangeEnter(V,l)});
l.addEventListener("onCueRangeExit",function(V){W.onCueRangeExit(V,l)})},jhy=function(W,l){l.removeCueRange("sleep-timer-fade-audio");
l.removeEventListener("onCueRangeEnter",function(V){W.onCueRangeEnter(V,l)});
l.removeEventListener("onCueRangeExit",function(V){W.onCueRangeExit(V,l)})},m4$=function(W,l){svk(W.selectedOption)?jhy(W,l):(_.w8.cancelJob(W.presetPauseSchedulerId),_.w8.cancelJob(W.presetFadeSchedulerId),W.presetPauseSchedulerId=0,W.presetFadeSchedulerId=0);
DIa(l,!0)},XPO=function(W,l){l.setLoop(!1);
l.setLoopVideo(!1);l.setLoopRange(null);(W=yO$(W.JSC$22963_watchApi))&&_.tY().resolve(_.Jp).dispatch(_.MB("playlistLoopStateEntity",W,{key:W,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.ZpM=function(W){_.iI.call(this);this.JSC$22966_watchApi=W;ACe(this);QhP(this);MiI(this);W=W.getRoot();if(W.is==="ytd-watch-flexy"||W.is==="ytd-watch-grid")W.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.jwP();_.U("web_watch_log_theater_mode_cookie_state")&&_.vA.get("wide","0")==="1"&&_.UWn("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.v(_.ZpM,_.iI);var ACe=function(W){var l,V;_.g(function(f){if(f.nextAddress==1)return f.yield(W.JSC$22966_watchApi.playerApi,2);l=f.yieldResult;V=function(r){OpI(W,!!r)};
l.addEventListener("SIZE_CLICKED",V);W.addOnDisposeCallback(function(){l.removeEventListener("SIZE_CLICKED",V)});
_.ju(f)})},QhP=function(W){W.JSC$22966_watchApi.registerActionHandler("yt-toggle-theater-mode",function(l,V){OpI(W,l,V===void 0?!0:V)});
W.addOnDisposeCallback(function(){W.JSC$22966_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.ZpM.prototype.getState=function(){return _.h2(_.DJ().getState())};
var OpI=function(W,l,V){V=V===void 0?!0:V;var f,r,R,y=_.U("enable_player_resize_transition")&&!!W.JSC$22966_watchApi.getWatchNextResponse()&&!((f=W.JSC$22966_watchApi.getWatchNextResponse())==null?0:(r=f.contents)==null?0:(R=r.twoColumnWatchNextResults)==null?0:R.conversationBar);_.yCw(function(){_.DJ().dispatch(_.GT({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:l}}));_.U("theater_mode_scroll_to_top_killswitch")||W.JSC$22966_watchApi.scrollWatchTo(0,!1);_.ku()&&_.U("external_fullscreen")&&_.vh(document.documentElement);
MiI(W);V&&_.HA("wide",l?"1":"0",-1);_.Gt(W.JSC$22966_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);W.JSC$22966_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:l});l&&_.jwP()},{shouldWrap:y})},MiI=function(W){var l;
_.g(function(V){if(V.nextAddress==1)return V.yield(W.JSC$22966_watchApi.playerApi,2);l=V.yieldResult;l.setSizeStyle(!0,W.getState());_.ju(V)})};var NK7=function(W){_.iI.call(this);var l=this;this.playerApi=W;this.timeToPanelSyncKeyMap={};var V;if(W==null?0:(V=W.isReady)==null?0:V.call(W)){V=_.Eb(_.tY().resolve(_.Jp),function(r){return r.entities.timedMarkersListSyncEntity||{}},function(r,R){r=r===void 0?{}:r;
R=R===void 0?{}:R;for(var y=_.L(Object.keys(R)),P=y.next();!P.done;P=y.next())P=P.value,r[P]!==R[P]&&aL7(l,R[P]);R=_.L(Object.keys(r));for(y=R.next();!y.done;y=R.next())y=y.value,P=r[y],l.timeToPanelSyncKeyMap[y]&&zrX(l,P)});
this.addOnDisposeCallback(V);var f=function(r){l.onCueRangeEnter(r)};
W.addEventListener("onCueRangeEnter",f);this.addOnDisposeCallback(function(){var r;(r=W.removeEventListener)==null||r.call(W,"onCueRangeEnter",f)})}};
_.v(NK7,_.iI);
var zrX=function(W,l){var V,f;if((V=W.playerApi)==null?0:(f=V.isReady)==null?0:f.call(V)){var r;if((V=l==null?void 0:(r=l.timedListData)==null?void 0:r.sections)&&l!=null&&l.key)for(r=_.L(V),V=r.next();!V.done;V=r.next())if(V=V.value,V.timedSyncDataList&&V.sectionId)for(f=0;f<V.timedSyncDataList.length;f++){var R=V.timedSyncDataList[f];R.syncItemId&&W.playerApi.addCueRange(V.sectionId+"_"+l.key+"_"+R.syncItemId,Number(R.videoTimeMs)/1E3,f===V.timedSyncDataList.length-1?0x8000000000000:Number(V.timedSyncDataList[f+
1].videoTimeMs)/1E3)}}},aL7=function(W,l){var V,f;
if((V=W.playerApi)==null?0:(f=V.isReady)==null?0:f.call(V)){var r;if((V=l==null?void 0:(r=l.timedListData)==null?void 0:r.sections)&&l!=null&&l.key)for(r=_.L(V),V=r.next();!V.done;V=r.next())if(V=V.value,V.timedSyncDataList&&V.sectionId){f=_.L(V.timedSyncDataList);for(var R=f.next();!R.done;R=f.next())R=R.value,R.syncItemId&&W.playerApi.removeCueRange(V.sectionId+"_"+l.key+"_"+R.syncItemId)}}};
NK7.prototype.onCueRangeEnter=function(W){for(var l=_.L(Object.keys(this.timeToPanelSyncKeyMap)),V=l.next();!V.done;V=l.next()){V=V.value;var f=_.L(W.split("_"+V+"_")),r=f.next().value;f=f.next().value;if(r&&f){W=_.tY().resolve(_.Jp);l=this.timeToPanelSyncKeyMap[V];var R=_.vLj(W.getState(),l);V=YJI(V,r,f);if(V===-1)break;V={activeSyncId:f,activeItemIndex:V,activeSectionInfo:{sectionIdentifier:r}};R?W.dispatch(_.Nr("markersEngagementPanelSyncEntity",l,V)):W.dispatch(_.MB("markersEngagementPanelSyncEntity",
l,Object.assign({},{key:l},V)));break}}};
var YJI=function(W,l,V){var f=_.tY().resolve(_.Jp),r,R;W=(r=FN7(f.getState(),W))==null?void 0:(R=r.timedListData)==null?void 0:R.sections;if(!W)return-1;r=0;R=_.L(W);for(W=R.next();!W.done;W=R.next()){W=W.value;f=W.timedSyncDataList||[];if(W.sectionId===l)return l=f.findIndex(function(y){return y.syncItemId===V}),l===-1?l:r+l;
r+=f.length}return-1};_.qJk=function(W){_.iI.call(this);var l=this;this.JSC$22979_watchApi=W;this.unresolvedCommands=[];this.JSC$22979_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(V){x4P(l,V)});
this.addOnDisposeCallback(function(){l.JSC$22979_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
era(this)};
_.v(_.qJk,_.iI);var era=function(W){var l;_.g(function(V){if(V.nextAddress==1)return V.yield(W.JSC$22979_watchApi.playerApi,2);l=V.yieldResult;if(W.isDisposed())return V.return();W.timedSyncObserver=new NK7(l);W.unresolvedCommands.length&&(W.unresolvedCommands.forEach(function(f){return x4P(W,f)}),W.unresolvedCommands=[]);
_.vt(W,W.timedSyncObserver);_.ju(V)})},x4P=function(W,l){if(W.timedSyncObserver){var V=_.k(l,hyO);
if(V&&V.timedSyncEntityKey&&V.panelSyncEntityKey){W=W.timedSyncObserver;l=V.timedSyncEntityKey;var f=V.panelSyncEntityKey;V=!!V.isEnabled;V=V===void 0?!0:V;var r=_.tY().resolve(_.Jp);r=FN7(r.getState(),l);V?W.timeToPanelSyncKeyMap[l]||(W.timeToPanelSyncKeyMap[l]=f,zrX(W,r)):(delete W.timeToPanelSyncKeyMap[l],aL7(W,r))}}else W.unresolvedCommands.push(l)};var hrk=_.Q(function(W){var l=W.data,V=W.maybeLogSmartSkipClientData,f=null,r=null,R=_.U("web_enable_auto_focus_for_timely_action_button"),y=function(){f=document.activeElement},P=function(){l().smartSkipMetadata&&(f=document.activeElement,_.NQ1(function(){return r}))},n=function(d){if(l().smartSkipMetadata&&(!d||d.key!=="Enter")){f&&f.isConnected&&(_.NQ1(function(){return f}),f=null);
var J;(J=r)==null||J.blur()}};
W=_.ip(function(){V==null||V(!0,l());return!1});
var B=_.DN(_.E_(function(){return l().rendererContext},{onTap:function(d,J){J({disableClickTracking:!0})}}),_.su({visibilityCallback:function(d){if(R)d?r&&l().smartSkipMetadata&&(P(),document.addEventListener("focusin",y)):(document.removeEventListener("focusin",y),n());
else if(d){d=_.qB(l().rendererContext);var J=Number(l().maxVisibleDurationMilliseconds),D,u=(D=_.k(l().rendererContext,_.N0))==null?void 0:D.label;d&&J&&u&&(D={label:u,command:d,durationMs:J},_.tY().resolve(_.Rq).enqueue(D))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.iz(function(){if(R){var d;if((r=(d=B.value)==null?void 0:d.querySelector("button"))&&l().smartSkipMetadata){var J;(J=B.value)==null||J.addEventListener("keydown",n)}}});
_.Xc(function(){R&&(r&&l().smartSkipMetadata&&r.removeEventListener("keydown",n),document.removeEventListener("focusin",y),n())});
return _.C("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:B,"on:click":W},_.C(_.QH,{data:function(){return l().content}},{buttonViewModel:_.Nq}))},"cl");var SJ$=_.Q(function(W){var l=W.data,V=W.playerApi,f=_.tY().resolve(_.qM4);W=_.L(_.X3(function(){l()}));
var r=W.next().value,R=W.next().value,y=function(){return HMM(l(),r())},P=function(B,d){var J,D,u=(J=_.k(d==null?void 0:d.rendererContext,_.Ma))==null?void 0:(D=J.loggingDirectives)==null?void 0:D.trackingParams;
if((d=d==null?void 0:d.smartSkipMetadata)&&d.loggingData&&(D=d.loggingData,d=D.algorithmId,J=D.startMilliseconds,D=D.endMilliseconds,d&&J!==void 0&&D!==void 0)){var H,p;B={smartSkipData:Object.assign({},{versionName:d,startMediaTimeMs:J,endMediaTimeMs:D},B&&{userInteractionMediaTimeMs:(Math.floor(((H=_.Jy())==null?void 0:(p=H.getPlayer())==null?void 0:p.getCurrentTime())||0)*1E3).toString()})};H=_.Wh();var X;u&&(X=_.zG(u));H&&X&&_.By(H,X,B)}},n=function(B,d){var J=HMM(l(),B);
if(J){var D=_.k(J,vkP),u;if(u=d)u=V(),J=_.k(J,vkP),u=J!=null&&J.smartSkipMetadata?!(u==null?0:u.isSameMarkerTypeVisible((J==null?void 0:J.smartSkipMetadata.markerKey)||"")):!0;if(u){var H,p;(D==null?0:(H=D.smartSkipMetadata)==null?0:(p=H.loggingData)==null?0:p.isCounterfactual)||(P(!1,D),R(B))}else d||r()!==B||R(void 0)}};
_.m1(function(){var B=l().timelyActions;if(B){B=_.L(B);for(var d=B.next();!d.done;d=B.next()){d=_.k(d.value,vkP);var J=void 0;(J=d)!=null&&J.cueRangeId&&f.timelyActionsMap.set(d.cueRangeId,n)}_.Xc(function(){f.timelyActionsMap.clear()})}},"PSaw4c");
return _.C("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.C(_.QH,{data:y},{timelyActionViewModel:function(B){return _.C(hrk,{data:B.data,maybeLogSmartSkipClientData:function(){P(!0,_.k(y(),vkP))}})}}))},"dl");_.$4I=function(W){_.iI.call(this);this.JSC$22991_watchApi=W;W=_.L(_.J4({},void 0,"UN7k5e"));this.timelyActionsOverlay=W.next().value;this.setTimelyActionsOverlay=W.next().value;E2e(this)};
_.v(_.$4I,_.iI);var E2e=function(W){var l,V,f,r;_.g(function(R){if(R.nextAddress==1)return WSv(W),ljX(W),W.timelyActionsContainer=document.createElement("div"),R.yield(W.JSC$22991_watchApi.playerApi,2);l=R.yieldResult;(f=(V=l).insertTimelyActionUi)==null||f.call(V,W.timelyActionsContainer);r=_.Ih(W.timelyActionsContainer,function(){return _.C(SJ$,{data:W.timelyActionsOverlay,playerApi:l})},"el");
W.addOnDisposeCallback(r);_.ju(R)})},ljX=function(W){var l=W.JSC$22991_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){WSv(W)});
W.addOnDisposeCallback(function(){W.JSC$22991_watchApi.unsubscribeByKey(l)})},WSv=function(W){var l=W.JSC$22991_watchApi.getWatchNextResponse();
if(l){var V,f;if(l=_.k((V=l.playerOverlays)==null?void 0:(f=V.playerOverlayRenderer)==null?void 0:f.timelyActionsOverlayViewModel,SPy)){var r;(r=W.setTimelyActionsOverlay)==null||r.call(W,l)}}};_.fjX=function(W){_.iI.call(this);this.JSC$22995_watchApi=W;VF7(this)};
_.v(_.fjX,_.iI);var VF7=function(W){var l,V;_.g(function(f){if(f.nextAddress==1)return f.yield(W.JSC$22995_watchApi.playerApi,2);l=f.yieldResult;V=function(r){_.mK.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.k(r,_.Oq7)},popupType:"TOAST"}})};
l.addEventListener("onYtShowToast",V);W.addOnDisposeCallback(function(){l.removeEventListener("onYtShowToast",V)});
_.ju(f)})};var rYa,s0a,nYv,RV7,tF7,PPa,yYa,gY$,CPP,BUa;rYa=!1;_.LSa=function(W){_.iI.call(this);this.JSC$22998_watchApi=W;this.fullscreen=this.theater=!1;RV7(this);tF7(this);s0a(this)};
_.v(_.LSa,_.iI);s0a=function(W){var l,V,f;_.g(function(r){if(r.nextAddress==1)return r.yield(W.JSC$22998_watchApi.playerApi,2);l=r.yieldResult;if(W.isDisposed())return r.return();V=W.JSC$22998_watchApi.getElement("CINEMATICS");if(!V)return r.return();W.JSC$22998_cinematicController=new _.F$(V,l);_.vt(W,W.JSC$22998_cinematicController);_.gcM(W.JSC$22998_cinematicController);yYa(W,_.nOJ());f=W.JSC$22998_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(R){gY$(W,R)});
W.addOnDisposeCallback(function(){W.JSC$22998_watchApi.unsubscribeByKey(f)});
PPa(W);gY$(W,W.JSC$22998_cinematicController.isAllowed());nYv(W);CPP(W);_.ju(r)})};
nYv=function(W){W.fullscreen=_.S1(_.DJ().getState());W.theater=_.h2(_.DJ().getState());_.cYI(W,W.fullscreen,W.theater);var l=_.Eb(_.DJ(),_.S1,function(f){W.fullscreen=f;_.cYI(W,W.fullscreen,W.theater)}),V=_.Eb(_.DJ(),_.h2,function(f){W.theater=f;
_.cYI(W,W.fullscreen,W.theater)});
W.addOnDisposeCallback(l);W.addOnDisposeCallback(V)};
RV7=function(W){var l=W.JSC$22998_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){PPa(W)});
W.addOnDisposeCallback(function(){W.JSC$22998_watchApi.unsubscribeByKey(l)})};
tF7=function(W){var l,V;_.g(function(f){if(f.nextAddress==1)return f.yield(W.JSC$22998_watchApi.playerApi,2);l=f.yieldResult;V=function(r){yYa(W,r)};
l.addEventListener("cinematicSettingsToggleChange",V);W.addOnDisposeCallback(function(){l.removeEventListener("cinematicSettingsToggleChange",V)});
_.ju(f)})};
PPa=function(W){var l=W.JSC$22998_watchApi.getWatchNextResponse(),V;l=_.k(l==null?void 0:(V=l.pageVisualEffects)==null?void 0:V[0],_.RN);var f;(f=W.JSC$22998_cinematicController)==null||_.ncP(f,l)};
yYa=function(W,l){var V;(V=W.JSC$22998_cinematicController)==null||_.PB7(V,l);BUa(W)};
gY$=function(W,l){var V;_.g(function(f){if(f.nextAddress==1)return _.U("kevlar_watch_cinematics_invisible")&&(l=!1),f.yield(W.JSC$22998_watchApi.playerApi,2);V=f.yieldResult;V.updateCinematicSettings(l);BUa(W);_.ju(f)})};
CPP=function(W){var l=_.MT();if(_.U("kevlar_measure_ambient_mode_idle")&&!l.getFlag(192)&&!rYa){rYa=!0;var V=_.pS(_.w8,function(){_.tY().resolve(_.LYZ).start(1E4)},5E3);
W.addOnDisposeCallback(function(){_.w8.cancelJob(V);_.tY().resolve(_.LYZ).stop()})}};
_.cYI=function(W,l,V){W.fullscreen=l;W.theater=V;var f;(f=W.JSC$22998_cinematicController)==null||f.setFullscreen(W.fullscreen,W.theater);if(_.U("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(W.theater||W.fullscreen){var r;(r=W.JSC$22998_cinematicController)==null||_.CB7(r)}else if((W=W.JSC$22998_cinematicController)!=null){var R;(R=W.currentCinematicEffect)==null||R.pause()}};
BUa=function(W){if(_.U("web_cinematic_theater_mode")||_.U("web_cinematic_fullscreen")){var l;W.JSC$22998_watchApi.getRoot().toggleCinematicsActive(!((l=W.JSC$22998_cinematicController)==null||!l.isEnabled()))}};_.ULk=function(W){_.iI.call(this);var l=this;this.JSC$23001_watchApi=W;this.commentsReady=!1;this.setCommentsJobId=0;W=_.Eb(_.DJ(),_.a7,function(){dLO(l)});
this.addOnDisposeCallback(W);var V=this.JSC$23001_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){JYI(l)}),f=this.JSC$23001_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){JYI(l)});
this.addOnDisposeCallback(function(){l.JSC$23001_watchApi.unsubscribeByKey(V);l.JSC$23001_watchApi.unsubscribeByKey(f)});
var r=function(){_.U("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&DLI(l,"false")};
this.JSC$23001_watchApi.getRoot().addEventListener("yt-page-data-will-update",r);this.addOnDisposeCallback(function(){l.JSC$23001_watchApi.getRoot().removeEventListener("yt-page-data-will-update",r)});
JYI(this)};
_.v(_.ULk,_.iI);var JYI=function(W){W.commentsReady=!1;_.w8.cancelJob(W.setCommentsJobId);W.setCommentsJobId=_.pS(_.w8,function(){dLO(W)},1E3)},dLO=function(W){if(!W.commentsReady){_.Wy("cmi");
_.w8.cancelJob(W.setCommentsJobId);var l,V,f,r,R=(l=W.JSC$23001_watchApi.getWatchNextResponse())==null?void 0:(V=l.contents)==null?void 0:(f=V.twoColumnWatchNextResults)==null?void 0:(r=f.results)==null?void 0:r.results.contents;l=void 0;if(R&&R.length)for(R=_.L(R),V=R.next();!V.done;V=R.next())if(V=V.value,r=f=void 0,((f=V)==null?void 0:(r=f.itemSectionRenderer)==null?void 0:r.sectionIdentifier)==="comment-item-section"){_.U("web_watch_provide_undefined_comments")?l=V.itemSectionRenderer:W.JSC$23001_watchApi.provideRenderingData("COMMENTS",
V.itemSectionRenderer);DLI(W,"true");break}_.U("web_watch_provide_undefined_comments")&&W.JSC$23001_watchApi.provideRenderingData("COMMENTS",l);W.commentsReady=!0;W.JSC$23001_watchApi.dispatchEvent("yt-watch-comments-ready")}},DLI=function(W,l){var V;
(V=W.JSC$23001_watchApi.getElement("COMMENTS"))==null||V.setAttribute("canScheduleJobs",l)};_.KSa=function(W){_.iI.call(this);var l=this;this.JSC$23004_watchApi=W;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.U("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.U("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.U("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.yS("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)uPa(this);
else{var V=this.JSC$23004_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){k4k(l);wu(l)}),f=this.JSC$23004_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Af(l);
wu(l)});
this.JSC$23004_watchApi.getRoot().is==="ytd-watch-grid"&&_.U("swatcheroo_pbs_load_grid")&&(vYP(this),H7P(this));this.addOnDisposeCallback(function(){l.JSC$23004_watchApi.unsubscribeByKey(V);l.JSC$23004_watchApi.unsubscribeByKey(f);_.w8.cancelJob(l.provideRichGridJobId)});
k4k(this);Af(this)}};
_.v(_.KSa,_.iI);var uPa=function(W){var l=W.JSC$23004_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){W.providePlayerJobId=_.Kt(_.w8,function(){k4k(W);wu(W)},W.provideAllDataDelayMs)}),V=W.JSC$23004_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){W.provideWatchNextJobId=_.Kt(_.w8,function(){Af(W);
wu(W)},W.provideAllDataDelayMs)}),f=W.JSC$23004_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){W.provideWatchNextJobId=_.Kt(_.w8,function(){Af(W);
wu(W)},W.provideAllDataDelayMs)});
W.JSC$23004_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.pS(_.w8,function(){k4k(W);Af(W);wu(W)},100)});
W.JSC$23004_watchApi.addPageDisposeJob(function(){_.w8.cancelJob(W.provideWatchNextJobId);_.w8.cancelJob(W.providePlayerJobId)});
W.addOnDisposeCallback(function(){W.JSC$23004_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");W.JSC$23004_watchApi.unsubscribeByKey(l);W.JSC$23004_watchApi.unsubscribeByKey(V);W.JSC$23004_watchApi.unsubscribeByKey(f);_.w8.cancelJob(W.providePlayerJobId);_.w8.cancelJob(W.provideWatchNextJobId)});
k4k(W);Af(W)},k4k=function(W){var l=W.JSC$23004_watchApi.getPlayerResponse(),V,f,r=(f=l==null?void 0:(V=l.playabilityStatus)==null?void 0:V.messageRenderers)!=null?f:[],R,y;
l=(y=l==null?void 0:(R=l.playabilityStatus)==null?void 0:R.messages)!=null?y:[];R=_.L(l);for(y=R.next();!y.done;y=R.next())r.push({alertRenderer:{text:_.Bl(y.value),type:"WARNING"}});W.JSC$23004_watchApi.provideRenderingData("ALERTS",r)},Af=function(W){var l=[],V,f,r,R=W.JSC$23004_watchApi.getWatchNextResponse(),y,P,n,B,d=R==null?void 0:(y=R.contents)==null?void 0:(P=y.twoColumnWatchNextResults)==null?void 0:(n=P.results)==null?void 0:(B=n.results)==null?void 0:B.contents;
if(d)for(y=_.L(d),P=y.next();!P.done;P=y.next())if(P=P.value,P.videoPrimaryInfoRenderer)var J=P;else if(P.videoSecondaryInfoRenderer){var D=P;B=n=void 0;P=Object.assign({},(n=P.videoSecondaryInfoRenderer)==null?void 0:(B=n.metadataRowContainer)==null?void 0:B.metadataRowContainerRenderer);if(P.rows&&P.collapsedItemCount!==void 0){P.rows=P.rows.slice(0,P.collapsedItemCount).filter(function(VL){return!!VL.richMetadataRowRenderer});
P.collapsedItemCount=P.rows.length;var u={metadataRowContainerRenderer:P}}}else if(P.merchandiseShelfRenderer)var H=P;else if(P.ticketShelfRenderer)var p=P;else if(P.expandableMetadataRenderer)var X=P;else if(P.itemSectionRenderer)if(n=P.itemSectionRenderer.contents,B=void 0,W.directlyProvideComments&&((B=P.itemSectionRenderer)==null?void 0:B.sectionIdentifier)==="comment-item-section")_.Wy("cmi"),W.JSC$23004_watchApi.provideRenderingData("COMMENTS",P.itemSectionRenderer);else if(n)for(P=_.L(n),n=
P.next();!n.done;n=P.next())if(n=n.value,n.commentsEntryPointHeaderRenderer)var w=n;else if(n.clarificationRenderer||n.infoPanelContainerRenderer||n.infoPanelContentRenderer||n.emergencyOneboxRenderer){l.push(n);var O=O||!!D}else n.limitedStateMessageRenderer?f=n:n.videoMetadataCarouselViewModel&&(r=n);if(_.U("web_watch_merch_in_sd_when_ticket_shelf_present")&&H&&p){var S=H;H=void 0}if(W.provideWatchNextSecondaryResults){var N,x,Y;W.JSC$23004_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
R==null?void 0:(N=R.contents)==null?void 0:(x=N.twoColumnWatchNextResults)==null?void 0:(Y=x.secondaryResults)==null?void 0:Y.secondaryResults)}if(W.JSC$23004_watchApi.getRoot().is==="ytd-watch-grid"){var W8,c8;W.JSC$23004_watchApi.provideRenderingData("LIVE_CHAT",R==null?void 0:(W8=R.contents)==null?void 0:(c8=W8.twoColumnWatchNextResults)==null?void 0:c8.conversationBar)}var B8,Jx,H8,Kq;(N=R==null?void 0:(B8=R.contents)==null?void 0:(Jx=B8.twoColumnWatchNextResults)==null?void 0:(H8=Jx.secondaryResults)==
null?void 0:(Kq=H8.secondaryResults)==null?void 0:Kq.offerModule)&&(N.donationShelfRenderer||N.donationUnavailableRenderer)&&W.JSC$23004_watchApi.getRoot().is!=="ytd-watch-grid"&&(V=N);B8=W.JSC$23004_watchApi.getPlayerResponse();if(!B8||!_.cES(B8.playabilityStatus,R==null?void 0:R.playerOverlays)){var Z4;if(R==null?0:(Z4=R.contents)==null?0:Z4.singleColumnWatchNextResults){var Ax,sM;var Ta=R==null?void 0:(Ax=R.contents.singleColumnWatchNextResults.results)==null?void 0:(sM=Ax.results)==null?void 0:
sM.contents}else{var ck,Wk,D$,Bk;Z4=!!(d==null?0:(ck=d[0])==null?0:(Wk=ck.itemSectionRenderer)==null?0:(D$=Wk.contents)==null?0:(Bk=D$[0])==null?0:Bk.backgroundPromoRenderer);var iB,p2;ck=!!(R==null?0:(iB=R.contents)==null?0:(p2=iB.twoColumnWatchNextResults)==null?0:p2.secondaryResults);Z4&&!ck&&(Ta=d)}}d=l[0];iB=l[1];O&&l.length===1&&(iB=d,d=void 0);W.JSC$23004_watchApi.provideRenderingData("PRIMARY_INFO",J);W.JSC$23004_watchApi.provideRenderingData("SECONDARY_INFO",D);W.JSC$23004_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
w);W.JSC$23004_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",r);W.JSC$23004_watchApi.provideRenderingData("CLARIFICATION",d);W.JSC$23004_watchApi.provideRenderingData("RICH_METADATA",u);W.JSC$23004_watchApi.provideRenderingData("MERCH_SHELF",H);_.U("web_watch_merch_in_sd_when_ticket_shelf_present")&&W.JSC$23004_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",S);W.JSC$23004_watchApi.provideRenderingData("TICKET_SHELF",p);W.JSC$23004_watchApi.provideRenderingData("LIMITED_STATE",f);W.JSC$23004_watchApi.getRoot().is!==
"ytd-watch-grid"&&W.JSC$23004_watchApi.provideRenderingData("DONATION_SHELF",V);W.JSC$23004_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Ta);W.JSC$23004_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",iB);W.JSC$23004_watchApi.provideRenderingData("EXPANDABLE_METADATA",X);if(W.swatcherooProvideAllDataOnScheduledJob){var SL,RY,lB,kc,n2,vk;J=R==null?void 0:(SL=R.contents)==null?void 0:(RY=SL.twoColumnWatchNextResults)==null?void 0:(lB=RY.secondaryResults)==null?void 0:(kc=lB.secondaryResults)==
null?void 0:(n2=kc.results)==null?void 0:(vk=n2[0])==null?void 0:vk.richGridRenderer;W.JSC$23004_watchApi.provideRenderingData("RICH_GRID_RENDERER",J)}};
_.KSa.prototype.hasCompanionAds=function(W){var l,V;return(V=W==null?void 0:(l=W.adPlacements)==null?void 0:l.some(function(f){var r,R,y,P;return(f==null?void 0:(r=f.adPlacementRenderer)==null?void 0:(R=r.renderer)==null?void 0:R.actionCompanionAdRenderer)||(f==null?void 0:(y=f.adPlacementRenderer)==null?void 0:(P=y.renderer)==null?void 0:P.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?V:!1};
var wu=function(W){if(!_.U("swaterdoo_ps_wn_handle_ks")){W.swatcherooProvideAllDataOnScheduledJob||H7P(W,3E3);var l=W.JSC$23004_watchApi.getPlayerResponse(),V,f,r,R,y,P=(V=W.JSC$23004_watchApi.getWatchNextResponse())==null?void 0:(f=V.contents)==null?void 0:(r=f.twoColumnWatchNextResults)==null?void 0:(R=r.secondaryResults)==null?void 0:(y=R.secondaryResults)==null?void 0:y.offerModule;l=W.hasCompanionAds(l);var n,B;V=(P==null?void 0:(n=P.tvfilmOfferModuleRenderer)==null?void 0:n.clientShouldSuppressIfCompanionAdDisplayed)||
(P==null?void 0:(B=P.unlimitedOfferModuleRenderer)==null?void 0:B.suppressIfCompanionAds);n=l&&V;W.JSC$23004_watchApi.getRoot().is==="ytd-watch-grid"&&W.JSC$23004_watchApi.provideRenderingData("OFFER_MODULE",n?void 0:P)}},H7P=function(W,l){_.U("swatcheroo_pbs_load_grid")&&(W.provideRichGridJobId&&_.w8.cancelJob(W.provideRichGridJobId),W.provideRichGridJobId=_.Kt(_.w8,function(){W.provideRichGridJobId=0;
var V,f,r,R,y,P,n,B=(V=W.JSC$23004_watchApi.getWatchNextResponse())==null?void 0:(f=V.contents)==null?void 0:(r=f.twoColumnWatchNextResults)==null?void 0:(R=r.secondaryResults)==null?void 0:(y=R.secondaryResults)==null?void 0:(P=y.results)==null?void 0:(n=P[0])==null?void 0:n.richGridRenderer;B&&W.JSC$23004_watchApi.provideRenderingData("RICH_GRID_RENDERER",B)},l))},vYP=function(W){var l,V;
_.g(function(f){if(f.nextAddress==1)return f.yield(W.JSC$23004_watchApi.playerApi,2);l=f.yieldResult;V=function(){W.onPlaybackStart()};
l.addEventListener("onPlaybackStartExternal",V);W.addOnDisposeCallback(function(){l.removeEventListener("onPlaybackStartExternal",V)});
_.ju(f)})};
_.KSa.prototype.onPlaybackStart=function(){H7P(this)};_.G47=function(W){_.iI.call(this);var l=this;this.JSC$23014_watchApi=W;W.playerApi.then(function(V){l.player=V});
this.gestures=new _.i5X(this.JSC$23014_watchApi.getRoot(),W.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.G17(_.DJ().getState())&&_.a7(_.DJ().getState())<=0)if(_.S1(_.DJ().getState())){var V;(V=l.player)==null||V.toggleFullscreen()}else _.Gt(l.JSC$23014_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
FSk(this)};
_.v(_.G47,_.iI);var FSk=function(W){var l=_.Eb(_.DJ(),_.S1,function(V){W.onFullscreenChanged(V)});
W.addOnDisposeCallback(l);l=_.Eb(_.DJ(),_.a7,function(V){W.gestures&&(V>0?W.gestures.detach():W.gestures.attach())});
W.addOnDisposeCallback(l)};
_.G47.prototype.onFullscreenChanged=function(W){this.gestures&&this.gestures.update(W)};_.pAM=function(W){_.iI.call(this);var l=this;this.JSC$23017_watchApi=W;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(W.subscribeToActiveChanged(function(V){l.onActiveChanged(V)}));
b7I(this)};
_.v(_.pAM,_.iI);var oYy=function(W){if(_.U("swatcheroo_page_dispose_all_watch_data"))W.pageDisposalDataTypes=Object.values(YRP).filter(function(V){return V!=="PLAYLIST"});
else if(_.U("swatcheroo_page_dispose_rich_grid")){var l;(l=W.pageDisposalDataTypes)==null||l.push("RICH_GRID_RENDERER")}},b7I=function(W){_.U("swatcheroo_enable_ghost_cards")&&(oYy(W),W.JSC$23017_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.w8.cancelJob(W.clearDataJobId);
W.clearDataJobId=0}),W.runPageDisposeJob=function(){var l=_.tY().resolve(_.Bp).getDestinationPageType()==="watch";
W.clearDataJobId=_.Kt(_.w8,W.runClearDataJob,l?0:_.yS("web_watch_delay_page_dispose_ms",1E4))},W.runClearDataJob=function(){j07(W)},W.runOnYtNavigateAwayFinish=function(){W.clearDataJobId&&(_.w8.cancelJob(W.clearDataJobId),W.clearDataJobId=0,j07(W))},document.addEventListener("yt-navigate-finish",W.runOnYtNavigateAwayFinish),W.JSC$23017_watchApi.addPageDisposeJob(W.runPageDisposeJob),W.addOnDisposeCallback(function(){W.JSC$23017_watchApi.removePageDisposeJob(W.runPageDisposeJob);
W.JSC$23017_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",W.runOnYtNavigateAwayFinish)}))},j07=function(W){W.pageDisposalDataTypes.forEach(function(l){W.JSC$23017_watchApi.provideRenderingData(l,void 0)});
W.clearDataJobId=0};
_.pAM.prototype.onActiveChanged=function(W){W&&((W=document.querySelector("#watch-page-skeleton"))&&_.bI(W),IjO(this),document.body.removeAttribute("no-y-overflow"),_.ZL("IS_SHELL_LOAD")&&_.gew())};
var IjO=function(W){_.g(function(l){if(l.nextAddress==1)return l.yield(W.JSC$23017_watchApi.playerApi,2);_.l4();_.ju(l)})};var i7v;i7v=_.U("kevlar_watch_while_counterfactual")?0:.25;_.wAI=function(W){_.iI.call(this);this.JSC$23020_watchApi=W;this.JSC$23020_watchWhileEnabled=_.U("kevlar_watch_while_v2");this.pipEnabled=_.U("web_enable_pip_on_miniplayer");mLk(this);XAy(this);TUe(this)};
_.v(_.wAI,_.iI);var mLk=function(W){W.JSC$23020_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){AY7(W)});
W.addOnDisposeCallback(function(){W.JSC$23020_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},XAy=function(W){var l,V;
_.g(function(f){if(f.nextAddress==1)return f.yield(W.JSC$23020_watchApi.playerApi,2);l=f.yieldResult;V=function(){AY7(W)};
l.addEventListener("onCollapseMiniplayer",V);W.addOnDisposeCallback(function(){l.removeEventListener("onCollapseMiniplayer",V)});
_.ju(f)})},TUe=function(W){var l=W.JSC$23020_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&l&&W.JSC$23020_watchWhileEnabled&&(W.playerIntersectionObserver=new IntersectionObserver(function(V){W.handleIntersect(V)},{threshold:[i7v]}),W.playerIntersectionObserver.observe(l),W.addOnDisposeCallback(function(){var V;
(V=W.playerIntersectionObserver)==null||V.disconnect()}))},AY7=function(W){var l,V,f;
_.g(function(r){if(r.nextAddress==1){l=_.tY().resolve(_.Bp);V=l.data;f=_.YP(V.response,!1,V.playerResponse);_.hJ().miniplayerButtonActivation=!0;if(W.pipEnabled)return _.hJ().watchPipActivation=!0,r.jumpTo(2);_.tY().resolve(_.Sl).collapse();return r.yield(_.hJ().navigationFinishPromise,2)}if(r.nextAddress!=4)return _.hJ().currentEndpoint=f.watchEndpoint||null,r.yield(_.tY().resolve(_.Sl).activate(W.JSC$23020_watchApi.getElement("PLAYER"),f,V),4);_.hJ().userActivation=!0;_.ju(r)})};
_.wAI.prototype.handleIntersect=function(W){Q07(this,W[W.length-1])};
var Q07=function(W,l){W.watchWhileJobId&&_.w8.cancelJob(W.watchWhileJobId);W.watchWhileJobId=_.w8.addLowPriorityJob(function(){var V,f;return _.g(function(r){if(r.nextAddress==1)return W.watchWhileJobId=void 0,V=_.tY().resolve(_.Sl),l.intersectionRatio>i7v?V.isMiniplayerActive()?r.yield(V.deactivate(),0):r.jumpTo(0):(f=!V.isMiniplayerActive())?r.yield(MF7(W),5):r.jumpTo(4);r.nextAddress!=4&&(f=r.yieldResult);if(!f)return r.jumpTo(0);_.hJ().watchWhileActivation=!0;return r.yield(Z7e(W),0)})},100)},
MF7=function(W){return _.g(function(l){return l.nextAddress==1?_.U("kevlar_watch_while_paused")?l.return(!0):l.yield(W.isPlayerPlaying(),2):l.return(l.yieldResult)})};
_.wAI.prototype.isPlayerPlaying=function(){var W=this,l;return _.g(function(V){if(V.nextAddress==1)return V.yield(W.JSC$23020_watchApi.playerApi,2);l=V.yieldResult;return V.return(l.getPlayerStateObject().isPlaying)})};
var Z7e=function(W){var l,V;return _.g(function(f){l=_.tY().resolve(_.Bp).data;V=_.YP(l.response,!1,l.playerResponse);_.hJ().currentEndpoint=V.watchEndpoint||null;return f.yield(_.tY().resolve(_.Sl).activate(W.JSC$23020_watchApi.getElement("PLAYER"),V,l),0)})};_.zVI=function(W){_.iI.call(this);this.JSC$23024_watchApi=W;O7a(this);ajy(this)};
_.v(_.zVI,_.iI);var ajy=function(W){var l,V;_.g(function(f){if(f.nextAddress==1)return f.yield(W.JSC$23024_watchApi.playerApi,2);l=f.yieldResult;V=function(r){var R;r.sessionData&&r.sessionData.itct&&(R=r.sessionData.itct);var y=r.watchEndpoint;if(y&&r.sessionData&&r.sessionData.autonav)y=_.Zlx(y,R);else{var P;y=_.vy(r.videoId,(P=r.listId)!=null?P:void 0,R)}R={endpoint:y};r.sessionData&&(R.tempData=r.sessionData);W.JSC$23024_watchApi.dispatchEvent("yt-navigate",R)};
l.addEventListener("onPlayVideo",V);W.addOnDisposeCallback(function(){l.removeEventListener("onPlayVideo",V)});
_.ju(f)})},O7a=function(W){var l=function(V){W.onYtNavigate(V)};
W.JSC$23024_watchApi.getRoot().addEventListener("yt-navigate",l);W.addOnDisposeCallback(function(){W.JSC$23024_watchApi.getRoot().removeEventListener("yt-navigate",l)})};
_.zVI.prototype.onYtNavigate=function(W){var l=this,V,f,r,R,y,P,n,B,d;return _.g(function(J){if(J.nextAddress==1){if(!((V=W.detail)==null?0:(f=V.endpoint)==null?0:f.watchEndpoint))return J.return();r=W.detail.endpoint.watchEndpoint;R=l.JSC$23024_watchApi.getWatchNextResponse();P=_.k((y=R)==null?void 0:y.currentVideoEndpoint,_.Bh);if(!P)return J.return();if(r.videoId!==P.videoId||r.playlistId&&r.playlistId!==P.playlistId||typeof r.startTimeSeconds!=="number")return J.jumpTo(0);W.stopPropagation();
(n=_.U("kevlar_watch_while_v2")&&!_.U("kevlar_watch_while_counterfactual"))&&_.tY().resolve(_.Sl).isMiniplayerActive()||l.JSC$23024_watchApi.scrollWatchTo(0,!0);return J.yield(l.JSC$23024_watchApi.playerApi,3)}B=J.yieldResult;d=r.startTimeSeconds;B.seekTo(d,void 0,void 0,void 0,84);B.wakeUpControls();d<B.getDuration()&&B.playVideo();_.ju(J)})};_.Y6k=function(W){_.iI.call(this);var l=this;this.JSC$23027_watchApi=W;var V=this.JSC$23027_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){NUe(l)});
this.addOnDisposeCallback(function(){l.JSC$23027_watchApi.unsubscribeByKey(V)});
NUe(this)};
_.v(_.Y6k,_.iI);var NUe=function(W){var l=W.JSC$23027_watchApi.getWatchNextResponse();if(l){var V,f=[].concat(_.QK((V=l==null?void 0:l.engagementPanels)!=null?V:[]));f.unshift.apply(f,_.QK(xLM(l)));W.JSC$23027_watchApi.provideRenderingData("ENGAGEMENT_PANELS",f)}},eVe=function(W){var l,V,f,r=(l=W.engagementPanels)==null?void 0:(V=l.find(function(u){var H;
return((H=u.engagementPanelSectionListRenderer)==null?void 0:H.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(f=V.engagementPanelSectionListRenderer.content)==null?void 0:f.structuredDescriptionContentRenderer,R;
if(_.k(r==null?void 0:(R=r.items)==null?void 0:R.find(function(u){return!!_.k(u,cLI)}),cLI))return!0;
var y,P,n,B;if(W=(((y=W.contents)==null?void 0:(P=y.twoColumnWatchNextResults)==null?void 0:(n=P.results)==null?void 0:(B=n.results)==null?void 0:B.contents)||[]).find(function(u){return u.videoPrimaryInfoRenderer})){var d,J,D;
return(((d=W.videoPrimaryInfoRenderer)==null?void 0:(J=d.videoActions)==null?void 0:(D=J.menuRenderer)==null?void 0:D.flexibleItems)||[]).some(function(u){u=_.k(u,_.wmL);if(!u)return!1;var H,p;u=(H=u.topLevelButton)==null?void 0:(p=H.buttonViewModel)==null?void 0:p.onTap;if(!u)return!1;H=_.fP(u);if(!H)return!1;var X;return((X=_.k(H,_.zk))==null?void 0:X.panelIdentifier)==="PAyouchat"})}return!1},xLM=function(W){var l=[];
if(!_.U("web_watch_inject_placeholder_fantasy_panel_killswitch")){var V,f,r,R=(V=W.engagementPanels)==null?void 0:(f=V.find(function(P){var n;return((n=P.engagementPanelSectionListRenderer)==null?void 0:n.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(r=f.engagementPanelSectionListRenderer.content)==null?void 0:r.structuredDescriptionContentRenderer,y;
_.k(R==null?void 0:(y=R.items)==null?void 0:y.find(function(P){return!!_.k(P,NaI)}),NaI)&&(V=_.WqF("PAsports_fantasy"),V.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",l.push(V))}eVe(W)&&(W=_.WqF("PAyouchat"),W.engagementPanelSectionListRenderer.targetId="PAyouchat",W.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",l.push(W));
return l};_.hVv=function(W){_.iI.call(this);this.JSC$23030_watchApi=W;q67(this)};
_.v(_.hVv,_.iI);var q67=function(W){W.JSC$23030_watchApi.registerActionHandler("yt-loop-command",function(l){S6e(W,l)});
W.JSC$23030_watchApi.registerActionHandler("yt-repeat-chapter-command",function(l){EYa(W,l)});
W.addOnDisposeCallback(function(){W.JSC$23030_watchApi.unregisterActionHandler("yt-loop-command");W.JSC$23030_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},S6e=function(W,l){var V;
_.g(function(f){if(f.nextAddress==1)return f.yield(W.JSC$23030_watchApi.playerApi,2);V=f.yieldResult;_.k(l,xI$).loop?(V.setLoopRange({startTimeMs:Number(_.k(l,xI$).startTimeMs),endTimeMs:Number(_.k(l,xI$).endTimeMs),postId:_.k(l,xI$).postId,type:"clips"}),V.playVideo()):V.setLoopRange(null);_.ju(f)})},EYa=function(W,l){var V,f;
_.g(function(r){if(r.nextAddress==1)return r.yield(W.JSC$23030_watchApi.playerApi,2);V=r.yieldResult;f=_.k(l,EkM).repeat;f==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(V.setLoopRange({startTimeMs:Number(_.k(l,EkM).startTimeMs),endTimeMs:Number(_.k(l,EkM).endTimeMs),type:"repeatChapter"}),V.playVideo()):f==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&V.setLoopRange(null);_.ju(r)})};_.Wu$=function(W){_.iI.call(this);this.JSC$23035_watchApi=W;$Lv(this)};
_.v(_.Wu$,_.iI);var $Lv=function(W){W.JSC$23035_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(l){lsM(W,l)});
W.addOnDisposeCallback(function(){W.JSC$23035_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},lsM=function(W,l){var V,f,r,R,y,P,n,B,d,J,D;
_.g(function(u){if(u.nextAddress==1)return u.yield(W.JSC$23035_watchApi.playerApi,2);V=u.yieldResult;if(R=(r=(f=_.k(l,$Iy))==null?void 0:f.highlightedMenuItemKey)!=null?r:"")(P=(y=V).highlightSettingsMenuItem)==null||P.call(y,R);if(d=(B=(n=_.k(l,$Iy))==null?void 0:n.openMenuItemKey)!=null?B:"")(D=(J=V).openSettingsMenuItem)==null||D.call(J,d);_.ju(u)})};var VSX=_.i_("/youtube/app/watch/player_state","playerStateEntity");_.rvX=function(W){_.iI.call(this);this.JSC$23038_watchApi=W;fsP(this)};
_.v(_.rvX,_.iI);var Rje=function(W){switch(W){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"}},fsP=function(W){var l,V;
_.g(function(f){if(f.nextAddress==1)return f.yield(W.JSC$23038_watchApi.playerApi,2);l=f.yieldResult;V=function(r){W.onPlayerStateChange(r)};
l.addEventListener("onStateChange",V);W.addOnDisposeCallback(function(){l.removeEventListener("onStateChange",V)});
_.ju(f)})};
_.rvX.prototype.onPlayerStateChange=function(W){var l=this,V,f;return _.g(function(r){if(r.nextAddress==1)return r.yield(l.JSC$23038_watchApi.playerApi,2);V=r.yieldResult;f=V.getVideoData().video_id;_.BE().dispatch(_.MB("playerStateEntity",VSX,{key:VSX,playerState:Rje(W),videoId:f}));_.ju(r)})};_.slk=function(W){_.iI.call(this);var l=this;this.JSC$23042_watchApi=W;this.enableExternalPlaylistPanelInPlayer=_.U("delhi_web_player_use_external_playlist_panel");_.tY().resolve(_.dZ).setPlayer(this.JSC$23042_watchApi.getElement("PLAYER"));W=this.JSC$23042_watchApi.subscribeToActiveChanged(function(V){l.onActiveChanged(V)});
this.addOnDisposeCallback(W);tSk(this)};
_.v(_.slk,_.iI);var tSk=function(W){var l,V;_.g(function(f){if(f.nextAddress==1)return W.enableExternalPlaylistPanelInPlayer?f.yield(W.JSC$23042_watchApi.playerApi,2):f.return();l=f.yieldResult;V=function(){if(W.playlistPanelElement)W.playlistPanelElement.onToggleExpanded()};
l.addEventListener("onToggleExternalPlaylistPanel",V);W.addOnDisposeCallback(function(){l.removeEventListener("onToggleExternalPlaylistPanel",V)});
_.ju(f)})};
_.slk.prototype.onActiveChanged=function(W){var l=this,V=_.tY().resolve(_.dZ),f=function(){Lua(l)};
W?(this.playlistPanelElement=this.JSC$23042_watchApi.getElement("PLAYLIST_PANEL"))?(V.setPlaylistComponent(this.playlistPanelElement),V.addEventListener("yt-playlist-data-updated",f),this.addOnDisposeCallback(function(){V.removeEventListener("yt-playlist-data-updated",f)}),Lua(this)):_.x2(Error("Po")):(V.removeEventListener("yt-playlist-data-updated",f),V.cancelVideoSkip())};
var Lua=function(W){var l=_.tY().resolve(_.dZ);W.JSC$23042_watchApi.provideRenderingData("PLAYLIST",l.getPlaylistData())};_.QV=function(W){_.iI.call(this);var l=this;this.JSC$23045_watchApi=W;this.onPageScroll=function(){l.scrollThrottle.fire();l.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.t$(this.onThrottledScroll,200,this);_.vt(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.t$(this.onMastheadThrottledScroll,50,this);_.vt(this,this.mastheadScrollThrottle);this.animation=new _.KQ(function(V){l.JSC$23045_watchApi.getRoot().setScrollTop(V)});
W=_.Eb(_.DJ(),_.S1,function(){l.onFullscreenChanged()});
this.addOnDisposeCallback(W);yv7(this);gs7(this);this.onThrottledScroll()};
_.v(_.QV,_.iI);
_.QV.prototype.onFullscreenChanged=function(){var W=this,l=this.JSC$23045_watchApi.getRoot();!this.pageScrollElement&&l.pageScrollElement?(this.pageScrollElement=l.pageScrollElement,l.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){W.pageScrollElement&&W.pageScrollElement.removeEventListener("scroll",W.onPageScroll)})):this.pageScrollElement&&!l.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var yv7=function(W){window.addEventListener("scroll",W.onPageScroll);W.addOnDisposeCallback(function(){window.removeEventListener("scroll",W.onPageScroll)})},gs7=function(W){W.JSC$23045_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(l){a:{var V;
if(V=W.JSC$23045_watchApi.getRoot().contains(l)&&!W.animation.isAnimating()){V=l.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var f,r,R=(l==null?void 0:(f=l.parentElement)==null?void 0:(r=f.parentElement)==null?void 0:r.id)==="fixed-secondary";V=!(V&&R)}if(V){if(_.U("kevlar_watch_scroll_manager_absolute_offset_killswitch"))f=l.offsetTop;else for(f=0,r=l;r!==null;)f+=r.offsetTop,f-=r.scrollTop,r=r.offsetParent;r=f;f=r-24;l=r+l.offsetHeight+24;r=W.JSC$23045_watchApi.getRoot().getPageScrollingElement();
V=W.JSC$23045_watchApi.getRoot().getScrollTop();R=V+r.clientHeight-56;if(f<V+56)l=f-56;else if(l>R)l-=r.clientHeight;else break a;W.scrollWatchTo(Math.max(0,l),!0)}}});
W.addOnDisposeCallback(function(){W.JSC$23045_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.QV.prototype.onThrottledScroll=function(){var W=_.DJ(),l=W.dispatch,V=this.JSC$23045_watchApi.getRoot().getScrollTop();l.call(W,_.GT({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:V}}))};
_.QV.prototype.onMastheadThrottledScroll=function(){this.JSC$23045_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23045_watchApi.getRoot().getScrollTop())};
_.QV.prototype.scrollWatchTo=function(W,l){(l===void 0?0:l)?this.animation.start(this.JSC$23045_watchApi.getRoot().getScrollTop(),Math.max(0,W),500):this.JSC$23045_watchApi.getRoot().setScrollTop(W)};_.CiI=function(W){_.iI.call(this);var l=this;this.JSC$23048_watchApi=W;var V=this.JSC$23048_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Pia(l)}),f=this.JSC$23048_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){nsI(l)});
this.addOnDisposeCallback(function(){l.JSC$23048_watchApi.unsubscribeByKey(V);l.JSC$23048_watchApi.unsubscribeByKey(f)});
Pia(this);nsI(this)};
_.v(_.CiI,_.iI);
var Pia=function(W){var l,V,f,r=(f=(l=W.JSC$23048_watchApi.getPlayerResponse())==null?void 0:(V=l.videoDetails)==null?void 0:V.title)!=null?f:"";W.JSC$23048_watchApi.dispatchEvent("yt-update-title",r)},nsI=function(W){var l,V,f,r,R,y,P,n=(P=((y=(l=W.JSC$23048_watchApi.getWatchNextResponse())==null?void 0:(V=l.contents)==null?void 0:(f=V.twoColumnWatchNextResults)==null?void 0:(r=f.results)==null?void 0:(R=r.results)==null?void 0:R.contents)!=null?y:[]).find(function(B){return!!B.videoPrimaryInfoRenderer}))==null?
void 0:P.videoPrimaryInfoRenderer;
(l=_.dE(n==null?void 0:n.title))&&W.JSC$23048_watchApi.dispatchEvent("yt-update-title",l)};_.B8I=function(W){_.iI.call(this);this.JSC$23051_watchApi=W;cvX(this)};
_.v(_.B8I,_.iI);var cvX=function(W){var l,V;_.g(function(f){if(f.nextAddress==1)return f.yield(W.JSC$23051_watchApi.playerApi,2);l=f.yieldResult;V=function(){W.onYpcContentRequest()};
l.addEventListener("onYpcContentRequest",V);W.addOnDisposeCallback(function(){l.removeEventListener("onYpcContentRequest",V)});
_.ju(f)})};
_.B8I.prototype.onYpcContentRequest=function(){var W,l,V,f,r,R=(W=this.JSC$23051_watchApi.getWatchNextResponse())==null?void 0:(l=W.contents)==null?void 0:(V=l.twoColumnWatchNextResults)==null?void 0:(f=V.secondaryResults)==null?void 0:(r=f.secondaryResults)==null?void 0:r.offerModule,y,P,n,B;W=(B=(n=(P=(y=R==null?void 0:R.episodeOfferModuleRenderer)!=null?y:R==null?void 0:R.movieOfferModuleRenderer)!=null?P:R==null?void 0:R.unlimitedOfferModuleRenderer)!=null?n:R==null?void 0:R.liveOfferModuleRenderer)!=
null?B:R==null?void 0:R.tvfilmOfferModuleRenderer;var d,J,D;R=(D=R==null?void 0:(d=R.tvfilmOfferModuleRenderer)==null?void 0:(J=d.actionButtons)==null?void 0:J.length)!=null?D:0;J=Math.max(R-1,0);var u,H,p;d=(p=W==null?void 0:(u=W.offerButton)==null?void 0:u.buttonRenderer)!=null?p:W==null?void 0:(H=W.actionButtons)==null?void 0:H[J].buttonRenderer;var X,w;(u=(w=(X=d==null?void 0:d.navigationEndpoint)!=null?X:d==null?void 0:d.serviceEndpoint)!=null?w:d==null?void 0:d.command)&&_.mK.instance.resolveCommand(u)};
}catch(e){_._DumpException(e)}
try{
var xc1,zc4,OXZ;_.a05=function(){var W=_.MC.clone(ZXw),l;return(new _.Dx(function(V,f){W.onSuccess=function(r){_.qeg(r)?V(new OXZ(r)):f(new _.QQ("Request failed, status="+_.C7(r),"net.badstatus",r))};
W.onError=function(r){f(new _.QQ("Unknown request error","net.unknown",r))};
W.onTimeout=function(r){f(new _.QQ("Request timed out","net.timeout",r))};
l=_.Dj("//googleads.g.doubleclick.net/pagead/id",W)})).thenCatch(function(V){if(V instanceof _.Eg){var f;
(f=l)==null||f.abort()}return _.eM(V)})};
_.Nc4=function(W){a:{var l="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(l="EMBEDDED_PLAYER_MODE_PFL");var V=W.raw_embedded_player_response;if(!V&&(W=W.embedded_player_response))try{V=JSON.parse(W)}catch(r){break a}if(V)b:for(var f in zc4)if(zc4[f]==V.embeddedPlayerMode){l=zc4[f];break b}}return l==="EMBEDDED_PLAYER_MODE_PFL"};
_.YC5=function(){if(_.U("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("sf");if(!_.$VJ())return Error("tf");var W=_.M4("PLAYER_VARS",{});if(_.MC.get(W,"privembed",!1)=="1")return Error("uf");if(_.Nc4(W))return Error("vf")};
xc1=function(W){switch(W){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:_.Yc(W,"unknown result type")}};
_.ecL=function(W,l,V){l=_.Shv[l];V={detected:W===0,source:l.sTF,detectionResult:xc1(W),contentCpn:V};_.XC("biscottiBasedDetection",V);_.kMI.increment(l.sTF,W);l.wrq!==void 0&&_.Qj("CATSTAT",_.qhj(W,l))};
_.Mi=function(W,l){var V={};V.key=W;V.value=l;return _.j28().then(function(f){return new Promise(function(r,R){try{var y=f.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(V);y.onsuccess=function(){r()};
y.onerror=function(){R()}}catch(P){R(P)}})})};
_.hc1=function(){var W=_.yS("user_engagement_experiments_rate_limit_ms"),l=qC7.get("last-user-engagement-exp-trigger-timestamp");return!l||(0,_.tv)()>=l+W?(qC7.set("last-user-engagement-exp-trigger-timestamp",(0,_.tv)()),!0):!1};
_.Zq=function(W,l,V,f,r){l=l===void 0?null:l;V=V===void 0?null:V;f=f===void 0?null:f;r=r===void 0?null:r;W={youThereEventType:W};V&&(W.lactThresholdMs=V.lactThresholdMs,W.mediaPosSec=V.promptDelaySec,W.lactServerRequestMs=V.lactServerRequestMs,W.triggerReason=V.triggerReason);r!=null&&(W.renderingMediaPosSec=Math.round(r));l||(l=_.Wh());l&&(W.clientScreenNonce=l);f&&(W.clientPlaybackNonce=f);_.XC("youThere",W)};
zc4={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"};OXZ=function(W){this.xhr=W};
_.QQ=function(W,l,V){_.VU.call(this,W+", errorCode="+l);this.errorCode=l;this.xhr=V;this.name="PromiseAjaxError"};
_.v(_.QQ,_.VU);var ZXw={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var qC7=new _.Ow("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.MQ5=function(W){return _.GT({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:W})};
}catch(e){_._DumpException(e)}
try{
var aK,ZR7,as$,zja,N8$,YwI,ejP,fxX,rr$,RXa,xty,ORe,Es$,SwX,LyO;_.MSy=function(){var W=window.location.hash;W.charAt(0)==="#"&&(W=W.charAt(1)==="!"?W.substring(2):W.substring(1));return _.hC(W)};
aK=function(W,l,V){var f;return _.g(function(r){if(r.nextAddress==1)return r.yield(l(),2);f=r.yieldResult;V(f,W);_.ju(r)})};
ZR7=function(){return _.g(function(W){return W.nextAddress==1?W.yield((_.YC5()!==void 0?_.eM(Error("wf")):_.a05()).then(function(){return 1},function(l){if(l.message==="Biscotti id is disabled")return 3;
_.Qe("Failed fetching bid");return 0}),2):W.return(W.yieldResult)})};
as$=function(){var W=_.vl("YXllciM2a2c4dWtodWt4bHB5dC1oYXZlbi1lbWJlZC1wbA=="),l=_.vl("Izc0Z3piYXQwdTJqaWlmcmFtZQ==");return document.querySelector(l+ORe+W)?0:1};
zja=function(){return _.Txq(_.K6)};
N8$=function(){return _.wZY()===0?0:_.AMF()};
YwI=function(){return _.aXY(_.rM4([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
ejP=function(){return _.bZz(xty)};
_.qwM=function(W){_.g(function(l){switch(l.nextAddress){case 1:return l.yield(aK("b.f_",ZR7,W),2);case 2:return l.yield(aK("j.s_",_.F46,W),3);case 3:return l.yield(aK("r.s_",_.vMj,W),4);case 4:return l.yield(aK("e.h_",ejP,W),5);case 5:if(!_.U("ab_det_sc_inj")){l.jumpTo(6);break}return l.yield(aK("s.i_",_.mz6,W),6);case 6:if(_.U("ab_deg_unex_thr")){l.jumpTo(8);break}return l.yield(aK("a.o_",_.IX4,W),8);case 8:if(_.U("ks_get_o_pp")){l.jumpTo(10);break}return l.yield(aK("g.o_",_.jR8,W),10);case 10:if(_.U("ks_det_gpbl")){l.jumpTo(12);
break}return l.yield(aK("p.i_",_.oMn,W),12);case 12:return l.yield(aK("f.i_",_.PyY,W),14);case 14:return l.yield(aK("a.b_",_.uKx,W),15);case 15:return l.yield(aK("p.m_",_.cM4,W),16);case 16:if(!_.U("ab_det_el_h_v2")){l.jumpTo(17);break}return l.yield(aK("n.h_",YwI,W),17);case 17:return l.yield(aK("o.p_",zja,W),19);case 19:return l.yield(aK("e.i_",as$,W),20);case 20:if(_.U("ab_det_apm"))return l.yield(aK("o.a_",N8$,W),0);l.jumpTo(0)}})};
_.hjM=function(W,l){W={videoId:W};l&&(W.playlistId=l);return W};
_.$ty=function(){if(_.$VJ()){var W=_.M4("PLAYER_VARS",{});if(_.MC.get(W,"privembed",!1)!="1"&&!_.Nc4(W)){var l=function(){SwX=!0;"google_ad_status"in window?_.Qj("DCLKSTAT",1):_.Qj("DCLKSTAT",2)};
try{_.se(_.jYc,l)}catch(V){}Es$.push(_.w8.addLowPriorityJob(function(){if(!(SwX||"google_ad_status"in window)){try{_.NPz(_.jYc.toString(),l)}catch(V){}SwX=!0;_.Qj("DCLKSTAT",3)}},5E3))}}};
_.WyP=function(W,l,V){V=V===void 0?!1:V;var f=Math.max(W.width,_.dFP);if(_.U("kevlar_watch_feed_big_thumbs")&&W.width>=1550-_.UW()&&W.height>=800)f-=_.vdI;else if(W.width>=_.qb){var r=_.JLP+_.DF7+_.eG;_.U("kevlar_watch_feed_big_thumbs")&&(r=_.ku7);f-=r}else f-=_.JLP;f=Math.min(f,_.UFX);r=240;V&&(r=380);l<.5624||(!_.U("kevlar_watch_flexy_disable_small_window_sizing")&&(W.height<630&&W.width>=657||W.height>=630&&W.width>=_.qb&&W.width<1327)?r=360:!_.U("kevlar_watch_flexy_disable_large_window_sizing")&&
W.height>=630&&W.width>=1327&&(r=480));var R=Math.min(f*l,W.height-(56+_.BIP+_.ufy));R=Math.max(R,r);l<1?f=R/l:W.width>=_.qb&&(f=_.WyP(W,.5625,V).width);return new _.p5(Math.round(f),Math.round(R))};
_.lxP=function(W){var l=0;W.indexOf("h")!=-1&&(W=W.split("h"),l=W[0]*60*60,W=W[1]);W.indexOf("m")!=-1&&(W=W.split("m"),l=W[0]*60+l,W=W[1]);W.indexOf("s")!=-1?(W=W.split("s"),l=W[0]*1+l):l=W*1+l;return l};
_.VCk=function(){_.yS("service_worker_push_logged_out_prompt_watches")!=-1&&_.aq("WatchCount").then(function(W){W>=100||_.Mi("WatchCount",W+1)})};
fxX=function(W){var l=W.externalVideoId||"";return l?W.isShortsEligible?"https://www.youtube.com/shorts/"+l:"https://www.youtube.com/watch?v="+l:""};
rr$=function(W){var l=[];W.viewCount&&l.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:W.viewCount});W.likeCount&&l.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:W.likeCount});return l};
RXa=function(W){var l,V,f={"@context":"https://schema.org","@type":"VideoObject",description:_.dE(W.description),duration:"PT"+(W.lengthSeconds||"0")+"S",embedUrl:W.embed?W.embed.iframeUrl:"",name:_.dE(W.title),thumbnailUrl:((l=W.thumbnail)==null?void 0:(V=l.thumbnails)==null?void 0:V.map(function(d){return d&&d.url||""}))||[],
uploadDate:W.publishDate};_.U("mweb_video_schema_id_killswitch")||(f["@id"]=fxX(W));l=rr$(W);l.length&&(f.interactionStatistic=l);W.category&&(f.genre=W.category);W.ownerChannelName&&(f.author=W.ownerChannelName);W.liveBroadcastDetails&&(f.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:W.liveBroadcastDetails.startTimestamp,endDate:W.liveBroadcastDetails.endTimestamp}]);if(W.learningResource){W=W.learningResource;f["@type"]=["VideoObject","LearningResource"];var r;if((r=W.learningResourceType)==
null?0:r.length)f.learningResourceType=W.learningResourceType[0];var R;if((R=W.educationalAlignment)==null?0:R.length)f.educationalAlignment={"@type":"AlignmentObject",targetName:W.educationalAlignment[0]};var y;if((y=W.educationalLevel)==null?0:y.length){r=W.educationalLevel[0];var P;if((P=W.educationalLevelCountry)==null?0:P.length)r+=" ("+W.educationalLevelCountry+")";f.educationalLevel=r}var n,B;if(((n=W.learningResourceType)==null?0:n.length)&&W.learningResourceType[0]==="Problem walkthrough"&&
((B=W.problemDescriptions)==null?0:B.length))for(f.hasPart=[],P=_.L(W.problemDescriptions),n=P.next();!n.done;n=P.next())r=n.value,n=r.problemDescriptionText,B=r.startOffset,r=r.url,n&&B!==void 0&&r&&f.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:n,text:n,startOffset:B,url:r})}return f};
_.tCX=function(W){return _.GT({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:W}})};
xty=[[["cXhpdzlqNG9zOGRwcmltYXJ5I2w=",null,null],[null,["eXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjMjAwOWMxdDVweW1s","a2Jmc3R5bGUtc2NvcGUjdG80Y2liOWpq"],null],["OTI5bWFzdGhlYWQtYWQja2luMWF3bzVu",["cmVyI251dHkzMGYzY3JzaHl0ZC1yaWNoLWdyaWQtcmVuZGU="],null],[null,["cmVyI3Zna2FkYnZ6eDM4eXl0ZC1yaWNoLWdyaWQtcmVuZGU=","M3Iyc3R5bGUtc2NvcGUjdWFoeG1zdTFs"],null],[null,["I2I2dGl4NHR1ZDU2dnl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXI=","c2xhc3R5bGUtc2NvcGUjYWNiajRuZ3R1"],null],[null,["ZGVyZXIjazcyMm5zNnA2cXJteXRkLWFkLXNsb3QtcmVu"],
null]],[["bnhxaGtwbGF5ZXItYWRzI3draHdjeGI=",null,null]],[["b24taW5uZXIjZjBreGZ4ajJxN2syZGVzY3JpcHRp",null,null],[null,null,"ciNmOHIxNzY3cHZrenZ5dGQtbWVyY2gtc2hlbGYtcmVuZGVyZQ=="],["bWFpbiNmYTB3dmlnY3FianE=",["ciN5NmEzN2I4dDZncnF5dGQtbWVyY2gtc2hlbGYtcmVuZGVyZQ=="],null]]];ORe="#";Es$=[];SwX=!1;_.soI=["engagement-panel-ads"];LyO=new _.uC("updateSentimentBarStateCommand");_.yrX=new _.uC("showSurveyCommand");_.zg=new _.uC("changeMarkersVisibilityCommand");var PT7,n_P,dJe,BvM,crX,Np;_.g_X=function(W,l){this.playerProvider_=W;this.actionSenderElement_=l;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.g_X.prototype.reset=function(){PT7(this);this.isUserPredictedAbsent_=!1};
PT7=function(W,l){!W.youThereData_||W.showWarningJob_||l!==void 0&&l||(_.Zq("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Wh(),W.youThereData_,W.clientPlaybackNonce_),_.Ts());_.w8.cancelJob(W.showWarningJob_);W.showWarningJob_=0;_.w8.cancelJob(W.showBlockingWarningJob_);W.showBlockingWarningJob_=0;_.w8.cancelJob(W.pausePlaybackJob_);W.pausePlaybackJob_=0;W.youThereData_=null;W.clientPlaybackNonce_=void 0;W.inYouThereFlow_=!1};
_.CTP=function(W,l){var V,f,r;_.g(function(R){if(R.nextAddress==1)return W.reset(),R.yield(W.playerProvider_().getPlayerPromise(),2);V=R.yieldResult;W.clientPlaybackNonce_=V.getVideoData().cpn;W.youThereData_=l.configData.youThereData;if(!W.youThereData_)return R.return();if(W.youThereData_.triggerReason&&W.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.hc1())return _.Zq("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Wh(),W.youThereData_,W.clientPlaybackNonce_),R.return();f=W.youThereData_.promptDelaySec;
r=V.getCurrentTime();W.showWarningJob_=_.w8.addLowPriorityJob(function(){return _.g(function(y){W.showWarningJob_=0;return y.yield(n_P(W),0)})},Math.max(f-r,0)*1E3);
_.ju(R)})};
n_P=function(W){var l,V,f,r,R,y;return _.g(function(P){if(P.nextAddress==1)return P.yield(W.playerProvider_().getPlayerPromise(),2);if(P.nextAddress!=3)return l=P.yieldResult,V=l.getCurrentTime(),P.yield(crX(W),3);f=P.yieldResult;if(!f||!W.youThereData_)return P.return();if(_.U("check_user_lact_at_prompt_shown_time_on_web")&&(r=parseInt(W.youThereData_.lactThresholdMs,10),_.sL()<r))return _.Zq("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Wh(),W.youThereData_,W.clientPlaybackNonce_),P.return();if(W.youThereData_.playbackPauseDelayMs<=
0)return BvM(W),P.return();!_.U("external_fullscreen")&&(R=_.ku())&&(W.ignoreFullscreenExitUserActivity_=!0,_.w8.addLowPriorityJob(function(){W.ignoreFullscreenExitUserActivity_=!1},2E3),_.vh(R));
W.youThereData_.showToastWarningPrompt&&(Np(W,W.youThereData_.showWarningActions),W.inYouThereFlow_=!0,_.Zq("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Wh(),W.youThereData_,W.clientPlaybackNonce_,V),_.Zq("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Wh(),W.youThereData_,W.clientPlaybackNonce_,V));y=0;W.youThereData_.blockingPromptDelayMs&&(y=W.youThereData_.blockingPromptDelayMs);W.showBlockingWarningJob_=_.w8.addLowPriorityJob(function(){return _.g(function(n){W.showBlockingWarningJob_=0;return n.yield(dJe(W),
0)})},y);
_.ju(P)})};
dJe=function(W){var l,V,f;return _.g(function(r){if(r.nextAddress==1)return r.yield(crX(W),2);l=r.yieldResult;if(!W.youThereData_)return r.return();l&&(W.youThereData_.showBlockingWarningAction&&(_.Zq("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Wh(),W.youThereData_,W.clientPlaybackNonce_),(V=_.k(W.youThereData_.showBlockingWarningAction,_.Ig))?Np(W,V.commands):Np(W,[W.youThereData_.showBlockingWarningAction]),W.inYouThereFlow_=!0),f=W.youThereData_.playbackPauseDelayMs,W.pausePlaybackJob_=
_.w8.addLowPriorityJob(function(){return _.g(function(R){W.pausePlaybackJob_=0;return R.yield(BvM(W),0)})},f));
_.ju(r)})};
BvM=function(W){var l;return _.g(function(V){if(V.nextAddress==1)return V.yield(crX(W),2);l=V.yieldResult;if(!W.youThereData_)return V.return();l&&(_.Zq("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Wh(),W.youThereData_,W.clientPlaybackNonce_),Np(W,W.youThereData_.showPausedActions),W.inYouThereFlow_=!0);_.ju(V)})};
_.g_X.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var W=_.k(this.youThereData_.userActiveDuringFlowAction,_.Ig);W?Np(this,W.commands):Np(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.Zq("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Wh(),this.youThereData_,this.clientPlaybackNonce_),_.Ts());PT7(this,!0)}_.JrP(this,!1)};
_.DJP=function(W){_.Zq("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Wh(),W.youThereData_,W.clientPlaybackNonce_)};
crX=function(W){var l,V;return _.g(function(f){if(f.nextAddress==1)return f.yield(W.playerProvider_().getPlayerPromise(),2);l=f.yieldResult;V=l.getPlayerState();return f.return(V==-1||V==1||V==3)})};
_.JrP=function(W,l){var V;_.g(function(f){if(f.nextAddress==1){if(W.isUserPredictedAbsent_==l)return f.jumpTo(0);W.isUserPredictedAbsent_=l;return f.yield(W.playerProvider_().getPlayerPromise(),3)}V=f.yieldResult;V.setUserEngagement(l);l&&_.Zq("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Wh(),W.youThereData_,W.clientPlaybackNonce_);_.ju(f)})};
Np=function(W,l){if(_.U("handle_service_request_actions")||_.U("kevlar_youthere_service_endpoint_actions_killswitch"))_.og(W.actionSenderElement_,l,W.actionSenderElement_);else{l=_.L(l);for(var V=l.next();!V.done;V=l.next())V=V.value,V.commandMetadata&&V.commandMetadata.webCommandMetadata&&V.commandMetadata.webCommandMetadata.sendPost?_.pN(W.actionSenderElement_,[V]):_.og(W.actionSenderElement_,[V],W.actionSenderElement_)}};var UJI;var uC7;var Yn=function(){var W=_.I.apply(this,arguments)||this;W.systemIcons=_.U("kevlar_system_icons");W.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return W};
_.v(Yn,_.I);Yn.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var W=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(W=this.data.percentIfLiked||0,this.activated=!0):(W=this.data.percentIfIndifferent||0,this.activated=!1);_.GS(this.hostElement).querySelector("#like-bar").style.width=W+"%"}};
Yn.prototype.handleUpdateSentimentBarStateCommand=function(W){this.data&&this.set("data.likeStatus",_.k(W,LyO).likeStatus)};
Yn.prototype.observeLikeStatus=Yn.prototype.observeLikeStatus;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Yn.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Yn.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Yn.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Yn.prototype,"activated",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Yn.prototype,"systemIcons",void 0);_.a([_.TS("data.likeStatus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yn.prototype,"observeLikeStatus",null);_.a([_.A({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Yn);
_.Z(Yn,"ytd-sentiment-bar-renderer",function(){if(uC7!==void 0)return uC7;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return uC7=W},{mode:1});var ksI;var xn=function(){var W=_.I.apply(this,arguments)||this;W.small=!0;return W};
_.v(xn,_.I);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],xn.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],xn.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],xn.prototype,"small",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],xn);
_.Z(xn,"ytd-video-view-count-renderer",function(){if(ksI!==void 0)return ksI;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return ksI=W},{mode:_.bD("kevlar_poly_si_batch_j080")?1:2});var ew=function(){var W=_.I.apply(this,arguments)||this;W.infoFormattedStrings=[];W.wrapVideoActions=_.U("kevar_watch_wrap_video_actions");W.hideSentimentBar=_.U("kevlar_watch_hide_sentiment_bar");W.actionMap={};return W};
_.v(ew,_.I);_.t=ew.prototype;_.t.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.U("web_modern_buttons"),forceIconButton:!_.U("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.t.dataChanged=function(){_.U("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.t.computeInfoFormattedStrings=function(W){if(!W)return[];var l=[];W.dateText&&l.push(W.dateText);W.stationName&&l.push(W.stationName);W.rating&&l.push(W.rating);W.startEndTimeTemplate&&W.startTimeUtcMillis&&W.endTimeUtcMillis&&l.push(_.Bl(_.IcO(_.dE(W.startEndTimeTemplate),Number(W.startTimeUtcMillis),Number(W.endTimeUtcMillis))));W.upNextProgramText&&l.push(W.upNextProgramText);return l};
_.t.scheduleInitialUpdatedMetadataRequest=function(){var W,l=(W=this.data)==null?void 0:W.updatedMetadataEndpoint;if(l){var V;W=Number((V=_.k(l,_.czB))==null?void 0:V.initialDelayMs);V=isNaN(W)?250:W;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),V)}};
_.t.setSentimentBarWidth=function(){var W=this;_.V9(this,function(){var l=_.GS(W.hostElement).querySelector("ytd-menu-renderer");if(l){l=l.topLevelButtons;for(var V=0,f=0;f<l.length;f++){var r=l[f],R=W.get("toggleButtonSupportedData.toggleButtonIdData.id",r.data);if(R==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||R==="TOGGLE_BUTTON_ID_TYPE_LIKE")V+=r.clientWidth+8;else break}V&&(W.sentiment.style.width=V-8+" px")}})};
_.t.fetchUpdatedMetadata=function(W){var l;W&&(l={continuation:W});var V;(W=(V=this.data)==null?void 0:V.updatedMetadataEndpoint)&&_.tY().resolve(_.s6).resolveCommand(W,{form:Object.assign({},l,{element:this.hostElement})})};
_.t.onYtServiceRequestSent=function(W,l){l.endpoint&&_.k(l.endpoint,_.S$)&&(this.hasUpdateSentimentBarStateCommands()&&!_.U("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.k(l.endpoint,_.S$).status),this.setSentimentBarWidth())};
_.t.hasUpdateSentimentBarStateCommands=function(){var W,l,V,f,r=(f=(W=this.data)==null?void 0:(l=W.videoActions)==null?void 0:(V=l.menuRenderer)==null?void 0:V.topLevelButtons)!=null?f:[];W=_.L(r);for(l=W.next();!l.done;l=W.next()){l=l.value;r=f=V=void 0;var R=(V=l.toggleButtonRenderer)==null?void 0:(f=V.toggleButtonSupportedData)==null?void 0:(r=f.toggleButtonIdData)==null?void 0:r.id;if(R==="TOGGLE_BUTTON_ID_TYPE_LIKE"||R==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){f=V=void 0;l=(f=_.k((V=l.toggleButtonRenderer)==
null?void 0:V.defaultServiceEndpoint,_.Ig))==null?void 0:f.commands;if(!l)break;l=_.L(l);for(V=l.next();!V.done;V=l.next())if(_.k(V.value,LyO))return!0}}return!1};
_.t.onYtServiceRequestCompleted=function(W,l){var V;(W=(V=l.data)==null?void 0:V.loggingDirectives)&&_.PSz(_.Qq(),W);this.get("continuation.timedContinuationData",l.data)&&this.data&&this.data.updatedMetadataEndpoint&&(l=l.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,l.continuation),l.timeoutMs))};
_.t.computeHasDateText=function(W){return!!W&&!!W.dateText};
_.rc.Object.defineProperties(ew.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var W,l,V,f;return!((f=(W=this.data)==null?void 0:(l=W.videoActions)==null?void 0:(V=l.menuRenderer)==null?void 0:V.flexibleItems)==null||!f.length)}}});
ew.prototype.onYtServiceRequestCompleted=ew.prototype.onYtServiceRequestCompleted;ew.prototype.onYtServiceRequestSent=ew.prototype.onYtServiceRequestSent;ew.prototype.dataChanged=ew.prototype.dataChanged;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],ew.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ew.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ew.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.mB.YtTaskEmitterBehavior),_.z("design:type",Object)],ew.prototype,"ytTaskEmitterBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ew.prototype,"data",void 0);_.a([_.b({computed:"computeInfoFormattedStrings(data)"}),_.z("design:type",Array)],ew.prototype,"infoFormattedStrings",void 0);
_.a([_.b({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],ew.prototype,"hasDateText",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ew.prototype,"wrapVideoActions",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ew.prototype,"hideSentimentBar",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],ew.prototype,"flexMenuEnabled",null);
_.a([_.Aa("#sentiment"),_.z("design:type",Object)],ew.prototype,"sentiment",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ew.prototype,"dataChanged",null);_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],ew.prototype,"onYtServiceRequestSent",null);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],ew.prototype,"onYtServiceRequestCompleted",null);
_.Z(ew,"ytd-video-primary-info-renderer",function(){if(UJI===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);UJI=W}W=UJI;return W},{mode:1});var v_a;var qp=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return W};
_.v(qp,_.I);_.t=qp.prototype;_.t.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"}}}};
_.t.dataChanged=function(){var W;this.descriptionToggled=!((W=this.data)==null||!W.defaultExpanded);var l;this.collapsed=this.descriptionAlwaysCollapsed||!((l=this.data)==null?0:l.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.GY(110509);this.showLessClientVe=_.GY(110510);W=_.Wh();l=_.$G();W&&l&&_.yE(W,l,[this.showMoreClientVe,this.showLessClientVe])};
_.t.onYtExpanderMoreTapped=function(){var W,l=(W=this.data)==null?void 0:W.showMoreCommand;l&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(l);(W=_.Wh())&&this.showMoreClientVe&&_.C0(W,this.showMoreClientVe)};
_.t.onYtExpanderLessTapped=function(){var W=_.Wh();W&&this.showLessClientVe&&_.C0(W,this.showLessClientVe);var l;(W=(l=this.data)==null?void 0:l.showLessCommand)&&this.componentBehavior.resolveCommand(W)};
_.t.handleUpdateDateTextAction=function(W){this.data&&this.data.dateText&&this.set("data.dateText",_.k(W,_.yLa).dateText)};
_.t.handleUpdateDescriptionAction=function(W){if(W=_.k(W,_.C5L))W.isEmpty||!W.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.$J(W.description)):this.set("data.description",W.description)};
_.t.onYtChangeEngagementPanelVisibilityAction=function(W){if(_.U("web_structured_description_show_more")||_.U("web_engagement_panel_open_description")){var l,V=(l=_.k(W,_.kW$))==null?void 0:l.targetId,f;W=((f=_.k(W,_.kW$))==null?void 0:f.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";V==="engagement-panel-structured-description"&&W&&(this.descriptionToggled=!0)}};
_.t.updateCollapsedFromBinding=function(W){this.collapsed=W.detail.value};
_.t.updateDescriptionToggledFromBinding=function(W){this.descriptionToggled=W.detail.value};
_.t.updateCanCollapseFromBinding=function(W){this.canCollapse=W.detail.value};
_.rc.Object.defineProperties(qp.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var W,l,V=(W=this.data)==null?void 0:(l=W.metadataRowContainer)==null?void 0:l.metadataRowContainerRenderer;return!!V&&!!V.rows&&V.rows.length>V.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.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}}});
qp.prototype.onYtExpanderLessTapped=qp.prototype.onYtExpanderLessTapped;qp.prototype.onYtExpanderMoreTapped=qp.prototype.onYtExpanderMoreTapped;qp.prototype.dataChanged=qp.prototype.dataChanged;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],qp.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],qp.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],qp.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],qp.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Boolean)],qp.prototype,"collapsed",void 0);_.a([_.b(),_.z("design:type",Boolean)],qp.prototype,"descriptionToggled",void 0);
_.a([_.b(),_.z("design:type",Boolean)],qp.prototype,"canCollapse",void 0);_.a([_.b(),_.z("design:type",Object)],qp.prototype,"subscribeButtonData",void 0);_.a([_.b(),_.z("design:type",Number)],qp.prototype,"descriptionCollapsedHeight",void 0);_.a([_.b(),_.z("design:type",Object)],qp.prototype,"structuredDescriptionContentRenderer",void 0);_.a([_.b({value:function(){return _.U("web_watch_description_always_collapsed")}}),
_.z("design:type",Boolean)],qp.prototype,"descriptionAlwaysCollapsed",void 0);_.a([_.Aa("#description"),_.z("design:type",HTMLDivElement)],qp.prototype,"description",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qp.prototype,"dataChanged",null);_.a([_.XI("yt-expander-more-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qp.prototype,"onYtExpanderMoreTapped",null);
_.a([_.XI("yt-expander-less-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qp.prototype,"onYtExpanderLessTapped",null);_.a([_.G("data.metadataRowContainer"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qp.prototype,"metadataCollapsible",null);_.a([_.G("data","structuredDescriptionContentRenderer"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qp.prototype,"hasInlineStructuredDescription",null);
_.a([_.G("data.attributedDescription"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qp.prototype,"hasAttributedDescription",null);_.a([_.G("hasInlineStructuredDescription","collapsed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qp.prototype,"loadStructuredDescription",null);_.a([_.G("data","structuredDescriptionContentRenderer","collapsed"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qp.prototype,"showInlineStructuredDescription",null);
_.a([_.G("data","hasInlineStructuredDescription","metadataCollapsible"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],qp.prototype,"descriptionAlwaysCollapsible",null);
_.Z(qp,"ytd-video-secondary-info-renderer",function(){if(v_a===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);v_a=W}W=v_a;return W},{mode:2});var HSv;var hf=function(){return _.I.apply(this,arguments)||this};
_.v(hf,_.I);hf.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:_.U("web_modern_buttons"),forceIconButton:!_.U("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
hf.prototype.activate=function(W){W.appendTo(this.player);W.getPlayerPromise().then(function(l){l.setMinimized(!0)});
this.active=!0};
hf.prototype.deactivate=function(){var W=this.player.firstElementChild;W.getPlayerPromise().then(function(l){l.setMinimized(!1)});
this.active=!1;return W};
hf.prototype.onScrollUpTap=function(){var W=_.tY().resolve(_.Bp).getCurrentPage();W&&W.setScrollTop(0)};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],hf.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],hf.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],hf.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],hf.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],hf.prototype,"active",void 0);
_.a([_.b({reflectToAttribute:!0,value:function(){return _.U("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.z("design:type",Boolean)],hf.prototype,"darkLaunch",void 0);_.a([_.Aa("#player"),_.z("design:type",HTMLDivElement)],hf.prototype,"player",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],hf);
_.Z(hf,"ytd-miniplayer-bar-renderer",function(){if(HSv!==void 0)return HSv;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return HSv=W},{mode:1});_.HI(_.Q(function(W){var l=_.WS("script");_.m1(function(){var V;if(V=JSON)V=RXa(W.data()),V=_.rI(JSON.stringify(V).replace(/</g,"\\u003C"));var f=W.data(),r=_.dE(f.title).trim().length===0,R=!f.publishDate||f.publishDate.trim().length===0,y,P,n,B,d=!((y=f.thumbnail)==null?0:(P=y.thumbnails)==null?0:P.length)||!((n=f.thumbnail)==null?0:n.thumbnails[0].url)||((B=f.thumbnail)==null?void 0:B.thumbnails[0].url.trim().length)===0;l.value&&V&&!(r||R||d)&&_.Rt(l.value,V)},"I9AhLd");
return _.C("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.C("script",{el:l,type:"application/ld+json"}))},"fl"),"player-microformat-renderer",{props:{data:_.kh}});
}catch(e){_._DumpException(e)}
try{
var Jv$,Uty;_.dta=function(W){return W.watch.watchWindowSize};
Jv$=function(W,l,V,f){if(W.isLockupToWatchTransitionEnabled){if(l){var r={};W.viewTransitionCoordinator.registerElement(l,(r["lockup-to-watch"]="player-lockup-to-watch",r["watch-next-appears"]="player-watch-next-loaded",r))}V&&(l={},W.viewTransitionCoordinator.registerElement(V,(l["lockup-to-watch"]="below-lockup-to-watch",l["watch-next-appears"]="below-watch-next-loaded",l)));f&&(V={},W.viewTransitionCoordinator.registerElement(f,(V["watch-next-appears"]="secondary-watch-next-loaded",V)))}};
_.Dtv=function(W){return _.GT({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:W}})};
Uty=new _.uC("webWatchNextResponseExtensionData");var kde=function(W){_.iI.call(this);var l=this;this.JSC$23055_watchApi=W;var V=this.JSC$23055_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){uRa(l)});
this.addOnDisposeCallback(function(){l.JSC$23055_watchApi.unsubscribeByKey(V)});
uRa(this)};
_.v(kde,_.iI);var uRa=function(W){var l,V,f,r;_.g(function(R){if(R.nextAddress==1){l=W.JSC$23055_watchApi.getWatchNextResponse();if(!l)return R.return();V=_.k(l,Uty);return(f=V)!=null&&f.enableCreatorChatbot?R.yield((0,_.Zhq)("NSzT5"),3):R.jumpTo(0)}r=_.sg5;r();_.ju(R)})};var HRa=function(W){_.iI.call(this);this.JSC$23059_watchApi=W;vsP(this)};
_.v(HRa,_.iI);var vsP=function(W){_.g(function(l){if(l.nextAddress==1)return l.yield(KuP(W),2);Fuy(W);_.ju(l)})},KuP=function(W){var l,V,f,r;
return _.g(function(R){if(R.nextAddress==1)return R.yield(W.JSC$23059_watchApi.playerApi,2);l=R.yieldResult;W.JSC$23059_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){Gd$(W)});
V=W.JSC$23059_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Fuy(W)});
f=function(y){W.onCueRangeEnter(y)};
l.addEventListener("onCueRangeEnter",f);r=function(y){W.onCueRangeExit(y)};
l.addEventListener("onCueRangeExit",r);W.addOnDisposeCallback(function(){W.JSC$23059_watchApi.unsubscribeByKey(V);l.removeEventListener("onCueRangeEnter",f);l.removeEventListener("onCueRangeExit",r)});
_.ju(R)})},bRP=function(W){var l,V,f,r,R,y,P,n,B;
return(R=(l=W.contents)==null?void 0:(V=l.twoColumnWatchNextResults)==null?void 0:(f=V.results)==null?void 0:(r=f.results)==null?void 0:r.contents)==null?void 0:(y=R.find(function(d){var J,D,u;return(J=d.itemSectionRenderer)==null?void 0:(D=J.contents)==null?void 0:(u=D[0])==null?void 0:u.shoppingTimelyShelfViewModel}))==null?void 0:(P=y.itemSectionRenderer)==null?void 0:(n=P.contents)==null?void 0:(B=n[0])==null?void 0:B.shoppingTimelyShelfViewModel},Fuy=function(W){var l;
_.g(function(V){if(V.nextAddress==1)return(l=W.JSC$23059_watchApi.getWatchNextResponse())?V.yield(Gd$(W),2):V.return();W.shoppingTimelyShelfViewModel=bRP(l);p2P(W);osO(W);_.ju(V)})},p2P=function(W){var l,V=(l=W.shoppingTimelyShelfViewModel)==null?void 0:l.offerIdToVariants;
V&&(l=V.filter(function(f){return f.key&&f.value}).map(function(f){return[f.key,
f.value]}),W.variantsMap=new Map(l))},osO=function(W){var l,V,f,r,R,y;
_.g(function(P){if(P.nextAddress==1)return(V=(l=W.shoppingTimelyShelfViewModel)==null?void 0:l.cueRanges)?P.yield(W.JSC$23059_watchApi.playerApi,2):P.return();f=P.yieldResult;W.cueRanges=V;r=_.L(V);for(R=r.next();!R.done;R=r.next())y=R.value,y.startTime!==void 0&&y.endTime!==void 0&&y.id!==void 0&&f.addCueRange("shopping_timely_shelf"+y.id,jlM(y.startTime),jlM(y.endTime));_.ju(P)})},jlM=function(W){return Number(W.seconds||0)+(W.nanos||0)/1E9};
HRa.prototype.onCueRangeEnter=function(W){if(W.startsWith("shopping_timely_shelf")){var l=W.substring(21),V,f;W=(V=this.variantsMap)==null?void 0:(f=V.get(l))==null?void 0:f.shelf;if(_.U("web_enable_shopping_timely_shelf_client_overwrite")){var r,R,y,P,n;V=W==null?void 0:(r=W.shoppingTimelyShelfContentViewModel)==null?void 0:(R=r.button)==null?void 0:(y=R[1])==null?void 0:(P=y.buttonViewModel)==null?void 0:(n=P.onTap)==null?void 0:n.innertubeCommand;var B,d;if(V==null?0:(B=V.menuEndpoint)==null?0:
(d=B.menu)==null?0:d.menuRenderer)V.openPopupAction=V.menuEndpoint,V.openPopupAction.popup=V.openPopupAction.menu,V.openPopupAction.popup.menuPopupRenderer=V.openPopupAction.popup.menuRenderer,V.openPopupAction.popupType="DROPDOWN",delete V.menuEndpoint,delete V.openPopupAction.menu,delete V.openPopupAction.popup.menuRenderer}W&&this.JSC$23059_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",W)}};
HRa.prototype.onCueRangeExit=function(W){W.startsWith("shopping_timely_shelf")&&this.JSC$23059_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{})};
var Gd$=function(W){var l,V,f,r,R;return _.g(function(y){if(y.nextAddress==1)return y.yield(W.JSC$23059_watchApi.playerApi,2);l=y.yieldResult;if(W.cueRanges)for(V=_.L(W.cueRanges),f=V.next();!f.done;f=V.next())r=f.value,r.id&&(R="shopping_timely_shelf"+r.id,l.removeCueRange(R));W.JSC$23059_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});W.shoppingTimelyShelfViewModel=void 0;W.cueRanges=void 0;W.variantsMap=void 0;_.ju(y)})};var T8X=function(W){_.iI.call(this);var l=this;this.JSC$23066_watchApi=W;W=_.Eb(_.DJ(),_.Vdq,function(){Isa(l)});
this.addOnDisposeCallback(W);W=_.Eb(_.DJ(),_.dta,function(){Isa(l)});
this.addOnDisposeCallback(W);iR$(this);mt7(this);X2a()};
_.v(T8X,_.iI);var iR$=function(W){var l=function(f){_.DJ().dispatch(_.p$e(f.matches))},V=window.matchMedia("(max-width: "+(999+_.UW())+"px)");
V.addListener(l);W.addOnDisposeCallback(function(){V.removeListener(l)});
l(V)},mt7=function(W){W.JSC$23066_watchApi.registerActionHandler("yt-window-resized",function(){X2a()});
W.addOnDisposeCallback(function(){W.JSC$23066_watchApi.unregisterActionHandler("yt-window-resized")})},X2a=function(){var W=_.zL();
_.DJ().dispatch(_.GT({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:W.width,height:W.height}}}))},Isa=function(W){var l;
_.g(function(V){if(V.nextAddress==1)return V.yield(W.JSC$23066_watchApi.playerApi,2);l=V.yieldResult;l.setSize(NaN,NaN);_.ju(V)})};var w2k=function(W){_.iI.call(this);var l=_.tY().resolve(_.$U);Jv$(l,W.getElement("PLAYER_CONTAINER"),W.getElement("BELOW_THE_PLAYER"),W.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var V=W.getElement("PLAYER_CONTAINER"),f=W.getElement("BELOW_THE_PLAYER"),r=W.getElement("SECONDARY");l.isLockupToWatchTransitionEnabled&&(V&&_.lE(l.viewTransitionCoordinator,V),f&&_.lE(l.viewTransitionCoordinator,f),r&&_.lE(l.viewTransitionCoordinator,r))})};
_.v(w2k,_.iI);_.Mp=function(W){_.aE.call(this);var l=this;this.rootElement=W;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return l.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(V){l.initOrDisposeActiveModules(V)}));
this.onAttached()};
_.v(_.Mp,_.aE);_.t=_.Mp.prototype;_.t.getRoot=function(){return this.rootElement};
_.t.getElement=function(W){return this.rootElement.getElement(W)};
_.t.setPlayerResponse=function(W){this.playerResponse=W;this.publish("PLAYER_RESPONSE_UPDATED",W)};
_.t.getPlayerResponse=function(){return this.playerResponse};
_.t.setWatchNextResponse=function(W){this.watchNextResponse===W?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=W,this.publish("WATCH_NEXT_RESPONSE_UPDATED",W))};
_.t.getWatchNextResponse=function(){return this.watchNextResponse};
_.t.registerActionHandler=function(W,l){var V=this;if(_.U("web_watch_controller_reg_multiple_handlers_killswitch")){var f={};_.qJ(_.eC.getInstance(),(f[W]=l,f),this.getRoot())}else this.actionHandlers.has(W)||(this.actionHandlers.set(W,[]),f={},_.qJ(_.eC.getInstance(),(f[W]=function(){var r=_.xk.apply(0,arguments);return(V.actionHandlers.get(W)||[]).map(function(R){return R.apply(null,_.QK(r))})},f),this.getRoot())),this.actionHandlers.get(W).push(l)};
_.t.unregisterActionHandler=function(W){if(_.U("web_watch_controller_reg_multiple_handlers_killswitch")){var l={};_.EL(_.eC.getInstance(),(l[W]=!0,l),this.getRoot())}else(l=this.actionHandlers.get(W))?(l.pop(),l.length===0&&(l={},_.EL(_.eC.getInstance(),(l[W]=!0,l),this.getRoot()),this.actionHandlers.delete(W))):_.Qe(new _.bP("Attempted to unregister an action handler which is not registered.",W))};
_.t.addPageDisposeJob=function(W){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.vzF(this.rootElement.pageDisposeJobs,W)};
_.t.removePageDisposeJob=function(W){this.rootElement.pageDisposeJobs&&_.aY(this.rootElement.pageDisposeJobs,W)};
_.t.dispatchEvent=function(W,l){_.FN(this.rootElement,W,l)};
_.t.provideRenderingData=function(W,l){this.rootElement.provideRenderingData(W,l)};
_.t.scrollWatchTo=function(W,l){var V;(V=this.watchScrollManager)==null||V.scrollWatchTo(W,l)};
_.t.focusOnPlayer=function(){var W=this.getElement("PLAYER");_.V9(W,function(){if(W&&W.firstElementChild){var l=W.querySelector(".html5-video-player");l&&(_.XK(_.tY().resolve(_.OZ)),l.focus())}else _.Qe(Error("Qo"))})};
_.t.subscribeToActiveChanged=function(W,l){l=l===void 0?!0:l;var V=_.Eb(_.DJ(),_.G17,function(f){W(f)});
l&&W(_.G17(_.DJ().getState()));return V};
_.t.isActive=function(){return _.G17(_.DJ().getState())};
_.t.onAttached=function(){var W=_.U("external_fullscreen");_.U("use_unified_flag_accessor")&&(W=_.tY().resolve(_.Zc7).retriever.getFlag(_.A4B));(W||_.ZL("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var AvP=function(W){return W.getRoot().is==="ytd-watch-flexy"||W.getRoot().is==="ytd-watch-grid"},ZW=function(W){return W.getRoot().is==="ytd-watch-fixie"};
_.Mp.prototype.initPersistentModules=function(){if(ZW(this)||AvP(this)&&_.U("kevlar_watch_flexy_theater_manager")){var W=new _.ZpM(this);_.vt(this,W)}W=new _.pAM(this);_.vt(this,W);W=new _.mo(this);_.vt(this,W);W=new _.KSa(this);_.vt(this,W);W=new _.rvX(this);_.vt(this,W);W=new _.XB(this);_.vt(this,W);if(ZW(this)||AvP(this)&&_.U("kevlar_watch_flexy_playlist_manager"))W=new _.slk(this),_.vt(this,W);_.U("web_thumbnail_to_watch_transition")&&(W=new w2k(this),_.vt(this,W))};
_.Mp.prototype.initOrDisposeActiveModules=function(W){W?(this.watchScrollManager=new _.QV(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.zVI(this)),_.U("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new HRa(this)),this.activeModules.push(new _.azv(this)),ZW(this)&&this.activeModules.push(new T8X(this)),this.activeModules.push(new _.CiI(this)),this.activeModules.push(new _.wAI(this)),(ZW(this)||_.U("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.eae(this)),this.activeModules.push(new _.hVv(this)),(ZW(this)||_.U("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.B8I(this)),(ZW(this)||_.U("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.fjX(this)),_.U("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.LSa(this),this.activeModules.push(this.watchCinematicManager)),_.U("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Wu$(this)),_.U("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.G47(this)),W=_.U("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.U("kevlar_watch_flexy_comments_manager")&&!W&&this.activeModules.push(new _.ULk(this)),_.U("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.ti7(this)),this.activeModules.push(new _.qJk(this)),this.activeModules.push(new _.Y6k(this)),_.U("web_enable_timely_actions")&&this.activeModules.push(new _.$4I(this)),_.U("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.k3a(this)),_.U("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.n2P(this)),_.U("web_fullscreen_components")&&this.activeModules.push(new _.EW$(this)),_.U("web_player_rtr_ctrls")&&this.activeModules.push(new _.HpO(this)),_.U("enable_creator_chatbot")&&this.activeModules.push(new kde(this))):(_.y7(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.Mp.prototype.disposeInternal=function(){_.aE.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.rc.Object.defineProperties(_.Mp.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var neN,s$,CeY,cN1,dus,JNs,Brw,Duw;neN=function(){var W=_.Oe();W.info||(W.info={});return W.info};
s$=function(W){return Math.round(_.Yu()+W)};
CeY=function(){var W;if(_.U("csi_use_performance_navigation_timing")){var l,V,f,r=_.NT==null?void 0:(W=_.NT.getEntriesByType)==null?void 0:(l=W.call(_.NT,"navigation"))==null?void 0:(V=l[0])==null?void 0:(f=V.toJSON)==null?void 0:f.call(V);r?(r.requestStart=s$(r.requestStart),r.responseEnd=s$(r.responseEnd),r.redirectStart=s$(r.redirectStart),r.redirectEnd=s$(r.redirectEnd),r.domainLookupEnd=s$(r.domainLookupEnd),r.connectStart=s$(r.connectStart),r.connectEnd=s$(r.connectEnd),r.responseStart=s$(r.responseStart),
r.secureConnectionStart=s$(r.secureConnectionStart),r.domainLookupStart=s$(r.domainLookupStart),r.isPerformanceNavigationTiming=!0,W=r):W=_.NT.timing}else W=_.U("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.NT.timing)):_.NT.timing;return W};
cN1=function(){if(_.NT.getEntriesByType){var W=_.NT.getEntriesByType("paint");if(W=_.T6(W,function(V){return V.name==="first-paint"}))return s$(W.startTime)}var l;
_.U("csi_use_performance_navigation_timing")?l=_.NT.getEntriesByType("first-paint")[0].startTime:l=_.NT.timing.msFirstPaint;return l?Math.max(0,l):0};
dus=function(){var W=window.location.protocol,l=_.NT.getEntriesByType("resource");l=_.Ul(l,function(V){return V.name.indexOf(W+"//fonts.gstatic.com/s/")===0});
(l=Brw(l,function(V,f){return f.duration>V.duration?f:V}))&&l.startTime>0&&l.responseEnd>0&&(_.xu("wffs",s$(l.startTime)),_.xu("wffe",s$(l.responseEnd)))};
JNs=function(W,l){W=document.querySelector(W);if(!W)return!1;var V="",f=W.nodeName;f==="SCRIPT"?(V=W.src,V||(V=W.getAttribute("data-timing-href"))&&(V=window.location.protocol+V)):f==="LINK"&&(V=W.href);_.VK(document)&&W.setAttribute("nonce",_.VK(document));return V?(W=_.NT.getEntriesByName(V))&&W[0]&&(W=W[0],V=_.Yu(),_.xu("rsf_"+l,V+Math.round(W.fetchStart)),_.xu("rse_"+l,V+Math.round(W.responseEnd)),W.transferSize!==void 0&&W.transferSize===0)?!0:!1:!1};
_.Uuw=function(W,l){_.ah(function(){_.zt("").info.actionType=W;l&&_.Qj("TIMING_AFT_KEYS",l);_.Qj("TIMING_ACTION",W);var V=_.ziY(_.M4("TIMING_INFO",{}));Object.keys(V).length>0&&_.ey(V);V={isNavigation:!0,actionType:_.jMn(_.M4("TIMING_ACTION"))};var f=_.M4("PREVIOUS_ACTION");f&&(V.previousAction=_.jMn(f));if(f=_.M4("CLIENT_PROTOCOL"))V.httpProtocol=f;if(f=_.M4("CLIENT_TRANSPORT"))V.transportProtocol=f;(f=_.Wh())&&f!=="UNDEFINED_CSN"&&(V.clientScreenNonce=f);f=_.a3z();if(f===1||f===-1)V.isVisible=!0;
f=_.v6j().loadType==="cold";var r=neN();f||(f=r.yt_lt==="cold");if(f){V.loadType="cold";f=neN();r=CeY();var R=_.Yu(),y=_.M4("CSI_START_TIMESTAMP_MILLIS",0);y>0&&!_.U("embeds_web_enable_csi_start_override_killswitch")&&(R=y);R&&(_.xu("srt",r.responseStart),f.prerender!==1&&_.Tkz(R));f=cN1();f>0&&_.xu("fpt",f);f=CeY();f.isPerformanceNavigationTiming&&_.ey({performanceNavigationTiming:!0},void 0);_.xu("nreqs",f.requestStart,void 0);_.xu("nress",f.responseStart,void 0);_.xu("nrese",f.responseEnd,void 0);
f.redirectEnd-f.redirectStart>0&&(_.xu("nrs",f.redirectStart,void 0),_.xu("nre",f.redirectEnd,void 0));f.domainLookupEnd-f.domainLookupStart>0&&(_.xu("ndnss",f.domainLookupStart,void 0),_.xu("ndnse",f.domainLookupEnd,void 0));f.connectEnd-f.connectStart>0&&(_.xu("ntcps",f.connectStart,void 0),_.xu("ntcpe",f.connectEnd,void 0));f.secureConnectionStart>=_.Yu()&&f.connectEnd-f.secureConnectionStart>0&&(_.xu("nstcps",f.secureConnectionStart,void 0),_.xu("ntcpe",f.connectEnd,void 0));_.NT&&"getEntriesByType"in
_.NT&&dus();f=[];if(document.querySelector&&_.NT&&_.NT.getEntriesByName)for(var P in Duw)Duw.hasOwnProperty(P)&&(r=Duw[P],JNs(P,r)&&f.push(r));if(f.length>0)for(V.resourceInfo=[],P=_.L(f),f=P.next();!f.done;f=P.next())V.resourceInfo.push({resourceCache:f.value})}_.ey(V);V=_.ag();V.preLoggedGelInfos||(V.preLoggedGelInfos=[]);P=V.preLoggedGelInfos;V=_.Kpx();f=void 0;for(r=0;r<P.length;r++)if(R=P[r],R.loadType){f=R.loadType;break}if(_.v6j().loadType==="cold"&&(V.loadType==="cold"||f==="cold")){f=_.HdF();
r=_.ag();r=r.gelTicks?r.gelTicks:r.gelTicks={};for(var n in f)if(!(n in r))if(typeof f[n]==="number")_.xu(n,_.qT(n));else if(_.U("log_repeated_ytcsi_ticks"))for(R=_.L(f[n]),y=R.next();!y.done;y=R.next())y=y.value,_.xu(n.slice(1),y);n={};f=!1;P=_.L(P);for(r=P.next();!r.done;r=P.next())f=r.value,_.rg(V,f),_.rg(n,f),f=!0;f&&_.ey(n)}_.eiq(!0);n=_.M4("TIMING_ACTION");_.Y2("ytglobal.timingready_")&&n&&_.fuz()&&_.xNq()&&_.ZdS()})()};
Brw=function(W,l){return Array.prototype.reduce.call(W,l,{duration:0})};
Duw={'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 uaY={};uaY.YtVisibilityRootBehavior=[_.BR1.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Ls(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.M4("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var W=_.M4("INNERTUBE_CLIENT_NAME")!=="WEB";_.U("kevlar_use_vimio_behavior")&&W&&_.nvc()}}];_.LY={};_.LY.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(W){W.detail.contextProvider=this;W.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
uaY.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.yH();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(W){var l=this;this.pageCount+=1;_.U("kevlar_use_vimio_behavior")&&(_.M4("INNERTUBE_CLIENT_NAME")==="WEB"?_.w8.addJob(function(){l.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(W)},
loadPage_:function(W){this.data=W},
ytPageBehaviorActiveObserver_:function(W){var l=this;_.U("kevlar_use_vimio_behavior")&&(W?_.M4("INNERTUBE_CLIENT_NAME")==="WEB"?_.w8.addJob(function(){l.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(W){if(!this.setScrollTopJobId_){var l=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){l.setScrollTopJobId_=0;var V=_.tY().resolve(_.R0(_.OZ));V&&_.XK(V);this.getPageScrollingElement().scrollTop=W}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.YR(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var Pe4;var tV=function(){var W=_.I.apply(this,arguments)||this;W.playerListenerConfig=null;W.actionMap={"yt-show-watch-page-survey":"openSurvey"};return W};
_.v(tV,_.I);_.t=tV.prototype;_.t.dataChanged=function(){var W=this,l=_.Jy();l&&l.getPlayerPromise().then(function(f){W.maybeRemovePlayerListeners(f)});
var V=this.data&&this.data.survey;V&&((V=(V=V.singleOptionSurveyRenderer||V.checkboxSurveyRenderer||V.multiStageSurveyRenderer)&&V.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(l,V):this.openSurvey())};
_.t.triggerWatchPageSurvey=function(W,l){var V=this,f,r,R,y,P,n,B,d,J;return _.g(function(D){if(D.nextAddress==1)return W?D.yield(W.getPlayerPromise(),2):D.return();V.player=D.yieldResult;if(!V.player)return D.return();f={};r=_.L(l);for(R=r.next();!R.done;R=r.next())y=R.value,P=_.L(V.createEventListenerPair(y)),n=P.next().value,B=P.next().value,d=n,J=B,d&&J&&(f[d]=J,V.ytPlayerListenerBehavior.listenToPlayerEvent(V.player,d,J));V.playerListenerConfig=f;_.ju(D)})};
_.t.createEventListenerPair=function(W){var l=W.playbackEventTrigger;return l?this.handlePlaybackTrigger(l):(W=W.watchTimeTrigger)?this.handleWatchTimeTrigger(W):[void 0,void 0]};
_.t.handleWatchTimeTrigger=function(W){var l=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var V=W.videoWatchFraction,f=W.watchTimeSec;return f&&V?["onVideoProgress",function(){l.player&&l.isWatchTimeConditionMet(l.player,V,f)&&l.showSurvey()}]:[void 0,
void 0]};
_.t.isWatchTimeConditionMet=function(W,l,V){var f=W.getProgressState(),r=f.current-this.lastKnownPlaybackPosition;r<5&&(this.accumulatedMediaTime+=r);this.lastKnownPlaybackPosition=f.current;f=Math.round(this.accumulatedMediaTime/f.duration*1E3)/1E3;return W.getPresentingPlayerType&&W.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>V||f>l)};
_.t.handlePlaybackTrigger=function(W){var l=this;W=W.playbackEvent;if(W==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var V="onStateChange";var f=function(r){r===0&&l.showSurvey()}}else W==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(V="onVideoProgress",f=function(r){l.player&&l.player.getPresentingPlayerType&&l.player.getPresentingPlayerType()===1&&r&&l.showSurvey()}):W==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(V="onAdEnd",f=this.showSurvey);
return[V,f]};
_.t.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.t.openSurvey=function(){var W=this,l=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.MQ5(!!l));_.w8.addJob(function(){W.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:l}})},0,0)};
_.t.maybeRemovePlayerListeners=function(W){if(this.playerListenerConfig){for(var l=_.L(Object.keys(this.playerListenerConfig)),V=l.next();!V.done;V=l.next())V=V.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(W,V,this.playerListenerConfig[V]);this.playerListenerConfig=null}};
tV.prototype.dataChanged=tV.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],tV.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.i5),_.z("design:type",Object)],tV.prototype,"ytdOpenPopupBehavior",void 0);_.a([_.F(_.by.YtPlayerListenerBehavior),_.z("design:type",_.pZ)],tV.prototype,"ytPlayerListenerBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],tV.prototype,"ytActionHandlerBehavior",void 0);
_.a([_.F(_.dx),_.z("design:type",Object)],tV.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],tV.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],tV.prototype,"playerListenerConfig",void 0);_.a([_.b({value:0}),_.z("design:type",Number)],tV.prototype,"lastKnownPlaybackPosition",void 0);_.a([_.b({value:0}),_.z("design:type",Number)],tV.prototype,"accumulatedMediaTime",void 0);_.a([_.b(),_.z("design:type",Object)],tV.prototype,"player",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tV.prototype,"dataChanged",null);_.a([_.A({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],tV);
_.Z(tV,"ytd-survey-trigger-renderer",function(){if(Pe4!==void 0)return Pe4;var W=document.createElement("template");_.K(W,"\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");W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Pe4=W},{mode:1});
}catch(e){_._DumpException(e)}
try{
var tYO=new _.uC("promotedSparklesWebRenderer");var swI=new _.uC("relatedChipCommand");var LNv;var y1X;var TA=function(){return _.I.apply(this,arguments)||this};
_.v(TA,_.I);TA.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],TA.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],TA);
_.Z(TA,"ytd-compact-tvfilm-entry-point-renderer",function(){if(y1X!==void 0)return y1X;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return y1X=W},{mode:1});var gZa;var Psy;var nZX;var w1=function(){return _.I.apply(this,arguments)||this};
_.v(w1,_.I);w1.prototype.ready=function(){this.initializeDefs()};
w1.prototype.initializeDefs=function(){var W=this.meta.byKey("yt-icons"),l=_.GS(W).querySelector("#star"),V=_.GS(W).querySelector("#star_half");W=_.GS(W).querySelector("#star_border");l&&this.defs.appendChild(l.cloneNode(!0));V&&this.defs.appendChild(V.cloneNode(!0));W&&this.defs.appendChild(W.cloneNode(!0))};
w1.prototype.percentChanged=function(){for(var W=this.rating;W.firstChild;)W.removeChild(W.firstChild);var l=Math.round(this.percent/10);W=Math.floor(l/2);l%=2;var V=5-W-l;this.appendStars("star",W,0);this.appendStars("star_half",l,W);this.appendStars("star_border",V,W+l)};
w1.prototype.appendStars=function(W,l,V){for(var f=0;f<l;f++){var r=(18+this.spacing)*(f+V),R=document.createElementNS("http://www.w3.org/2000/svg","use");_.yYc(R,"#"+W);R.setAttribute("x",""+r);R.setAttribute("y","0");this.rating.appendChild(R)}};
w1.prototype.percentChanged=w1.prototype.percentChanged;_.a([_.Aa("#defs"),_.z("design:type",HTMLElement)],w1.prototype,"defs",void 0);_.a([_.Aa("#rating"),_.z("design:type",HTMLElement)],w1.prototype,"rating",void 0);_.a([_.b(),_.z("design:type",Number)],w1.prototype,"percent",void 0);_.a([_.b({value:6}),_.z("design:type",Number)],w1.prototype,"spacing",void 0);_.a([_.b({value:_.xD.create("iron-meta",{type:"iconset"})}),_.z("design:type",_.hu)],w1.prototype,"meta",void 0);
_.a([_.TS("percent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],w1.prototype,"percentChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-ratings"})],w1);
_.Z(w1,"ytd-ratings",function(){if(nZX!==void 0)return nZX;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return nZX=W},{mode:1});var Csv=function(){return _.I.apply(this,arguments)||this};
_.v(Csv,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Csv.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Csv.prototype,"data",void 0);_.a([_.A({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],Csv);
_.Z(Csv,"ytd-offer-review-renderer",function(){if(Psy!==void 0)return Psy;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Psy=W},{mode:1});var A9=function(){var W=_.I.apply(this,arguments)||this;W.badges=[{textBadge:{label:_.Bl("CC")}}];return W};
_.v(A9,_.I);_.t=A9.prototype;_.t.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.t.dataChanged=function(){var W=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(W&&W.commandMetadata&&_.k(W.commandMetadata,_.Ej)&&_.k(W.commandMetadata,_.Ej).fireAutomatically)_.tY().resolve(_.s6).resolveCommand(W,{form:{element:this.hostElement}});else{var l;W&&((l=_.k(W,_.Ej))==null?0:l.fireAutomatically)&&_.tY().resolve(_.s6).resolveCommand(W,{form:{element:this.hostElement}})}};
_.t.isEmptyContent=function(W){return this.isStorefrontEntryPointEmpty(W)&&this.shouldHideOfferModule(W)};
_.t.isStorefrontEntryPointEmpty=function(W){return!W||!W.storefrontEntryPoint};
_.t.shouldHideOfferModule=function(W){return!!W.hideVideoDetails};
_.t.isOfferModuleNavigationInactive=function(W){return!W.navigationEndpoint&&!W.serviceEndpoint};
_.t.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.tY().resolve(_.s6).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
A9.prototype.dataChanged=A9.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],A9.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],A9.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],A9.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.z("design:type",Boolean)],A9.prototype,"hidden",void 0);
_.a([_.b(),_.z("design:type",Object)],A9.prototype,"badges",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],A9.prototype,"dataChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],A9);
_.Z(A9,"ytd-movie-offer-module-renderer",function(){if(gZa!==void 0)return gZa;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return gZa=W},{mode:1});var c1v;var B7I=function(){return _.I.apply(this,arguments)||this};
_.v(B7I,_.I);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],B7I.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],B7I.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],B7I);
_.Z(B7I,"ytd-media-masthead-renderer",function(){if(c1v!==void 0)return c1v;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return c1v=W},{mode:1});var dHP;_.HI(_.AVa,"course-metadata-view-model",{props:{data:_.kh,isOverlay:_.kh}});var Qm=function(){var W=_.I.apply(this,arguments)||this;W.isMetadataVisible=!1;W.modernPanels=_.U("kevlar_watch_modern_panels");W.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return W};
_.v(Qm,_.I);_.t=Qm.prototype;
_.t.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"}}}}};
_.t.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.t.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.t.expanderChanged=function(){var W;if((W=this.data)==null?0:W.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.t.isExpandButtonToggled=function(){var W,l;return(l=_.k((W=this.data)==null?void 0:W.expandMetadataButton,_.Ub))==null?void 0:l.isToggled};
_.t.onVisibilityButtonClick=function(){var W;if((W=this.data)==null?0:W.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.t.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
Qm.prototype.expanderChanged=Qm.prototype.expanderChanged;Qm.prototype.dataChanged=Qm.prototype.dataChanged;Qm.prototype.descriptionChanged=Qm.prototype.descriptionChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F([_.hp.YtActionHandlerBehavior]),_.z("design:type",Object)],Qm.prototype,"actionHandlerBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],Qm.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Qm.prototype,"isMetadataVisible",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Qm.prototype,"modernPanels",void 0);_.a([_.Aa("#expander"),_.z("design:type",Object)],Qm.prototype,"expander",void 0);_.a([_.TS("data.description"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qm.prototype,"descriptionChanged",null);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qm.prototype,"dataChanged",null);_.a([_.TS("isMetadataVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qm.prototype,"expanderChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],Qm);
_.Z(Qm,"ytd-tvfilm-offer-module-renderer",function(){if(dHP!==void 0)return dHP;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return dHP=W},{mode:2});var J1$;var Mb=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return W};
_.v(Mb,_.I);Mb.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Mb.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Mb.prototype.onThumbnailTap=function(W){this.data&&this.data.serviceEndpoint&&(_.tY().resolve(_.s6).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),W.stopPropagation())};
Mb.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
Mb.prototype.dataChanged=Mb.prototype.dataChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Mb.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Mb.prototype,"rendererBehaviors",void 0);_.a([_.F([_.hp.YtActionHandlerBehavior]),_.z("design:type",Object)],Mb.prototype,"actionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Mb.prototype,"data",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mb.prototype,"dataChanged",null);_.a([_.A({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Mb);
_.Z(Mb,"ytd-unlimited-offer-module-renderer",function(){if(J1$!==void 0)return J1$;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return J1$=W},{mode:1});var DHM;var UHy;var Z_=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return W};
_.v(Z_,_.I);Z_.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Z_.prototype.handleRelatedChipCommand=function(W){W=_.k(W,swI);var l=W.contents;l?_.bj(this.hostElement,"yt-item-section-replace-action",[l,W.targetSectionIdentifier]):_.bj(this.hostElement,"yt-item-section-continuation-action",[W.continuationData,W.targetSectionIdentifier])};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Z_.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Z_.prototype,"actionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Z_.prototype,"data",void 0);_.a([_.Vq({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Z_);
_.Z(Z_,"yt-related-chip-cloud-renderer",function(){if(UHy===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;DHM===void 0&&(DHM=document.createElement("template"));var f=DHM;V.call(l,f.content.cloneNode(!0),W.content.firstChild);UHy=W}W=UHy;return W},{mode:2});var Ot=function(){var W=_.I.apply(this,arguments)||this;W.isTwoColumns=!0;W.hideOfferModules=!1;W.watchFeedBigThumbs=_.U("kevlar_watch_feed_big_thumbs");W.watchFeedBigThumbsOnLockup=_.U("web_watch_next_big_thumbs");W.watchNextGridHideChips=_.U("kevlar_watch_grid_hide_chips");W.eligibleToSwitchToGrid=_.U("web_watch_eligible_to_switch_to_grid");W.disableShortsShelfHeightOverride=_.U("web_shorts_wn_shelf_ratio_tuning");W.isWatchNextGrid=!1;W.reuseComponents=!_.U("kevlar_watch_grid");W.nextContinuation=
{continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return W};
_.v(Ot,_.I);_.t=Ot.prototype;
_.t.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:!_.U("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}}};
_.t.getItemsPath=function(){return"data.results"};
_.t.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.t.created=function(){this.ytLazyListBehavior.initialCount=1};
_.t.ready=function(){_.I1(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%"})};
_.t.resultsChanged=function(){if(this.data&&this.data.results){for(var W=this.data.results,l=null,V=null,f=0;f<W.length;f++)W[f].relatedChipCloudRenderer?l=W[f].relatedChipCloudRenderer:W[f].itemSectionRenderer&&(V=W[f].itemSectionRenderer);if(l&&V)for(this.set("data.continuations",[]),W=_.k(l.content,_.MbL).chips,l=0;l<W.length;l++)if(f=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",W[l]),f.loadCached||!f.contents){f.contents=V.contents;break}}};
_.t.dataChanged=function(){var W=this,l;if((l=this.data)!=null&&l.results&&this.hasAllowedInstreamAd(this.playerData)){if(l=this.data.results.filter(function(P){return!!P.promotedSparklesWebRenderer})){for(var V=0;V<l.length;V++){var f=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",l[V]);
if(f)for(var r=0;r<f.length;r++)f[r]&&f[r].baseUrl&&_.xs(f[r].baseUrl)}this.set("data.results",this.data.results.filter(function(P){return!P.promotedSparklesWebRenderer}))}if(l=this.data.results.filter(function(P){return!!W.getSparklesAd(P)})){l=_.L(l);
for(r=l.next();!r.done;r=l.next())if(f=V=void 0,r=(V=this.getSparklesAd(r.value))==null?void 0:(f=V.errorCommand)==null?void 0:f.loggingUrls)for(V=_.L(r),f=V.next();!f.done;f=V.next())(f=f.value)&&f.baseUrl&&_.xs(f.baseUrl);var R,y;this.set("data.results",(R=this.data)==null?void 0:(y=R.results)==null?void 0:y.filter(function(P){return!P.adSlotRenderer}))}}};
_.t.getSparklesAd=function(W){var l,V;W=_.k((l=W.adSlotRenderer)==null?void 0:(V=l.fulfillmentContent)==null?void 0:V.fulfilledLayout,_.URk);return _.k(W==null?void 0:W.renderingContent,tYO)};
_.t.hasAllowedInstreamAd=function(W){W=this.get("adPlacements",W)||[];for(var l=0;l<W.length;l++){var V=this.get("adPlacementRenderer.config.adPlacementConfig",W[l]);if(V&&V.suppressDisplayAd)return!0}return!1};
_.t.computeHideUnlimitedOfferModule=function(W,l){return W&&W.offerModule&&l&&W.offerModule.unlimitedOfferModuleRenderer&&W.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(l)?!0:!1};
_.t.hideUnlimitedOfferModuleChanged=function(){var W=_.GS(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");W&&(W.hidden=this.hideUnlimitedOfferModule)};
_.t.updateLockupContainerTypes=function(W){if(this.eligibleToSwitchToGrid){var l;(l=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||l.forEach(function(V){V.containerType=W})}};
_.t.computeHideTvfilmOfferModule=function(W,l){var V,f;return!!((W==null?0:(V=W.offerModule)==null?0:(f=V.tvfilmOfferModuleRenderer)==null?0:f.clientShouldSuppressIfCompanionAdDisplayed)&&l&&this.hasCompanionAds(l))};
_.t.hideTvfilmOfferModuleChanged=function(){var W=_.GS(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");W&&(W.hidden=this.hideTvfilmOfferModule)};
_.t.hasCompanionAds=function(W){W=this.get("adPlacements",W)||[];for(var l=0;l<W.length;l++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",W[l]))return!0;var V=void 0,f=void 0,r=void 0;if(!_.U("web_watch_top_banner_companion_check_killswitch")&&((V=W[l])==null?0:(f=V.adPlacementRenderer)==null?0:(r=f.renderer)==null?0:r.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.t.hasSuppressedResults=function(W){return W==null?!0:W.filter(function(l){return!l.continuationItemRenderer&&!l.compactPromotedVideoRenderer&&!l.promotedSparklesWebRenderer}).length===0};
_.t.computeShowButton=function(W,l){return this.isWatchNextGrid?W:W||this.hasSuppressedResults(l)};
_.t.showButtonChanged=function(){if(this.isWatchNextGrid){var W=_.GS(this.hostElement).querySelector("ytd-rich-grid-renderer");W&&this.showButton!==null&&(W.continuationShowButton=this.showButton)}else{W=_.GS(this.hostElement).querySelector("yt-next-continuation");var l=_.GS(this.hostElement).querySelector("ytd-continuation-item-renderer"),V=_.GS(this.hostElement).querySelector("ytd-item-section-renderer");W&&(W.showButton=this.showButton);l&&(l.showButton=this.showButton);V&&(V.continuationShowButton=
this.showButton)}};
_.t.continuationTap=function(W){var l;if(((l=this.data)==null?void 0:l.continuations)!=null&&W.target.tagName==="TP-YT-PAPER-BUTTON")for(W=this.data.continuations,l=0;l<W.length;l++)W[l].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(W[l].nextContinuationData||{})};
_.t.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.GD("shown-items-changed",this.shownItems))};
_.rc.Object.defineProperties(Ot.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 W;return!((W=this.shownItems)==null||!W.some(function(l){return!!l.lockupViewModel||l.compactVideoRenderer}))}}});
Ot.prototype.shownItemsChangedForBinding=Ot.prototype.shownItemsChangedForBinding;Ot.prototype.showButtonChanged=Ot.prototype.showButtonChanged;Ot.prototype.hideTvfilmOfferModuleChanged=Ot.prototype.hideTvfilmOfferModuleChanged;Ot.prototype.updateLockupContainerTypes=Ot.prototype.updateLockupContainerTypes;Ot.prototype.hideUnlimitedOfferModuleChanged=Ot.prototype.hideUnlimitedOfferModuleChanged;Ot.prototype.dataChanged=Ot.prototype.dataChanged;Ot.prototype.resultsChanged=Ot.prototype.resultsChanged;
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Ot.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.AM.YtLazyListBehavior),_.z("design:type",Object)],Ot.prototype,"ytLazyListBehavior",void 0);_.a([_.F(_.HH.YtNextContinuationBehavior),_.z("design:type",Object)],Ot.prototype,"ytNextContinuationBehavior",void 0);
_.a([_.F(_.vH),_.z("design:type",Object)],Ot.prototype,"ytContinuationHandlerBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],Ot.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Ot.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Ot.prototype,"playerData",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],Ot.prototype,"autoFill",void 0);_.a([_.b({value:60}),_.z("design:type",Number)],Ot.prototype,"targetFramerate",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ot.prototype,"isTwoColumns",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ot.prototype,"hideOfferModules",void 0);_.a([_.b(),_.z("design:type",Object)],Ot.prototype,"shownItems",void 0);_.a([_.b({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.z("design:type",Boolean)],Ot.prototype,"hideUnlimitedOfferModule",void 0);
_.a([_.b({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.z("design:type",Boolean)],Ot.prototype,"hideTvfilmOfferModule",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ot.prototype,"watchFeedBigThumbs",void 0);_.a([_.b(),_.z("design:type",Object)],Ot.prototype,"watchFeedBigThumbsOnLockup",void 0);_.a([_.b(),_.z("design:type",Object)],Ot.prototype,"watchNextGridHideChips",void 0);_.a([_.b(),_.z("design:type",Object)],Ot.prototype,"eligibleToSwitchToGrid",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ot.prototype,"disableShortsShelfHeightOverride",void 0);_.a([_.b({selector:_.EZ,reflectToAttribute:!0}),_.z("design:type",Object)],Ot.prototype,"isGridViewEnabled",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],Ot.prototype,"showMoreButton",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Ot.prototype,"isWatchNextGrid",void 0);
_.a([_.b({computed:"computeShowButton(showMoreButton, data.results)"}),_.z("design:type",Boolean)],Ot.prototype,"showButton",void 0);_.a([_.zS("data.results.*"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ot.prototype,"resultsChanged",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ot.prototype,"dataChanged",null);
_.a([_.TS("hideUnlimitedOfferModule"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ot.prototype,"hideUnlimitedOfferModuleChanged",null);_.a([_.G("isGridViewEnabled","containsLockups","data"),_.b({reflectToAttribute:!0}),_.z("design:type",Number),_.z("design:paramtypes",[])],Ot.prototype,"lockupContainerType",null);
_.a([_.TS("lockupContainerType","data"),_.z("design:type",Function),_.z("design:paramtypes",[Number]),_.z("design:returntype")],Ot.prototype,"updateLockupContainerTypes",null);_.a([_.TS("hideTvfilmOfferModule"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ot.prototype,"hideTvfilmOfferModuleChanged",null);_.a([_.TS("showButton"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ot.prototype,"showButtonChanged",null);
_.a([_.TS("shownItems"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ot.prototype,"shownItemsChangedForBinding",null);_.a([_.G("shownItems"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Ot.prototype,"containsLockups",null);
_.Z(Ot,"ytd-watch-next-secondary-results-renderer",function(){if(LNv===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);LNv=W}W=LNv;return W},{mode:1});
}catch(e){_._DumpException(e)}
try{
var lg1=new _.uC("replaceFeedContentAction");var VD4;var fge;var ES=function(){return _.I.apply(this,arguments)||this};
_.v(ES,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ES.prototype,"data",void 0);_.a([_.A({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],ES);
_.Z(ES,"ytd-sub-feed-option-renderer",function(){if(fge!==void 0)return fge;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return fge=W},{mode:1});var rNs;var $A=function(){return _.I.apply(this,arguments)||this};
_.v($A,_.I);$A.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],$A.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],$A.prototype,"ytRendererStamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],$A.prototype,"data",void 0);_.a([_.A({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],$A);
_.Z($A,"ytd-sub-feed-selector-renderer",function(){if(rNs!==void 0)return rNs;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return rNs=W},{mode:1});var WQ=function(){return _.I.apply(this,arguments)||this};
_.v(WQ,_.I);
WQ.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}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],WQ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],WQ.prototype,"data",void 0);_.a([_.A({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],WQ);
_.Z(WQ,"ytd-browse-feed-actions-renderer",function(){if(VD4!==void 0)return VD4;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return VD4=W},{mode:1});var RSw;var tD4;var lv=function(){return _.I.apply(this,arguments)||this};
_.v(lv,_.I);lv.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],lv.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],lv.prototype,"data",void 0);_.a([_.A({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],lv);
_.Z(lv,"ytd-mini-channel-renderer",function(){if(tD4!==void 0)return tD4;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return tD4=W},{mode:1});var sx7;var Vw=function(){return _.I.apply(this,arguments)||this};
_.v(Vw,_.I);Vw.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Vw.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Vw.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Vw.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],Vw);
_.Z(Vw,"ytd-vertical-channel-section-renderer",function(){if(sx7!==void 0)return sx7;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return sx7=W},{mode:1});var fY=function(){return _.I.apply(this,arguments)||this};
_.v(fY,_.I);fY.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],fY.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],fY.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],fY.prototype,"data",void 0);_.a([_.A({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],fY);
_.Z(fY,"ytd-browse-secondary-contents-renderer",function(){if(RSw!==void 0)return RSw;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
return RSw=W},{mode:1});var Lsw;var rQ=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};W.notActive=!1;W.isConstrainedList=!1;return W};
_.v(rQ,_.I);_.t=rQ.prototype;
_.t.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(W){var l;return(W==null?void 0:(l=W.webComponentHint)==null?void 0:l.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}}}}};
_.t.getPath=function(W,l){var V="data.tabs.#"+l+".";W.tabs[l].tabRenderer?V+="tabRenderer.":W.tabs[l].expandableTabRenderer&&(V+="expandableTabRenderer.");return V+"content.sectionListRenderer"};
_.t.computeDisplayedContent=function(W){this.unlinkPaths("content");if(W&&W.tabs)for(var l=W.tabs.length,V=0;V<l;V++){var f=W.tabs[V].tabRenderer||W.tabs[V].expandableTabRenderer;if(f.selected&&f.content)return this.linkPaths("content",this.getPath(W,V)),f.content}return null};
_.t.computeHasSecondaryColumnData=function(W){return!!W&&!!W.secondaryContents};
_.t.onRetrieveLocation=function(W,l){l.locationRetrieved(l.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);W.stopPropagation()};
_.t.onYtServiceRequestSent=function(W,l){_.U("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(l)};
_.t.onYtServiceRequestCompleted=function(W,l){_.U("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(l)};
_.t.onReplaceFeedContentAction=function(W){if(!_.U("replace_feed_content_action_killswitch")&&!this.notActive){var l;(W=(l=_.k(W,lg1))==null?void 0:l.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(W)}};
_.t.handleServiceRequestActions=function(W){if(W=W.actions){W=_.L(W);for(var l=W.next();!l.done;l=W.next()){l=l.value;var V=void 0;((V=_.k(l,lg1))==null?0:V.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.k(l,lg1).items)}}};
rQ.prototype.onYtServiceRequestCompleted=rQ.prototype.onYtServiceRequestCompleted;rQ.prototype.onYtServiceRequestSent=rQ.prototype.onYtServiceRequestSent;rQ.prototype.onRetrieveLocation=rQ.prototype.onRetrieveLocation;_.a([_.F(_.uy),_.z("design:type",Object)],rQ.prototype,"ytdGridStateAwareBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],rQ.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],rQ.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],rQ.prototype,"data",void 0);_.a([_.b({computed:"computeDisplayedContent(data)"}),_.z("design:type",Object)],rQ.prototype,"content",void 0);
_.a([_.b({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],rQ.prototype,"hasSecondaryColumnData",void 0);_.a([_.b({value:function(){return window.outerHeight>1024?3:2}}),
_.z("design:type",Number)],rQ.prototype,"initialCount",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],rQ.prototype,"pageSubtype",void 0);_.a([_.Aa("ytd-section-list-renderer"),_.z("design:type",Object)],rQ.prototype,"listRenderer",void 0);_.a([_.b(),_.z("design:type",Object)],rQ.prototype,"notActive",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],rQ.prototype,"isConstrainedList",void 0);
_.a([_.b(),_.z("design:type",String)],rQ.prototype,"responsiveSizing",void 0);_.a([_.XI("yt-retrieve-location"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],rQ.prototype,"onRetrieveLocation",null);_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],rQ.prototype,"onYtServiceRequestSent",null);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],rQ.prototype,"onYtServiceRequestCompleted",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],rQ);
_.Z(rQ,"ytd-two-column-browse-results-renderer",function(){if(Lsw!==void 0)return Lsw;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Lsw=W},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Kya=function(W){if((W==null?void 0:W.value)===void 0||W==null||!W.unit)return"initial";a:{switch(W.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var l="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":l="%";break a}l=void 0}return l?""+W.value+l:"initial"},FyX=new _.uC("shoppingContentLineItemViewModel");var Gse=_.Q(function(W){var l=_.Dd(W,{}).data;return _.C("yt-shopping-content-line-item-view-model",{class:_.If("ytShoppingContentLineItemViewModelHost")},_.C(_.bH,{text:function(){var V;return(V=l().text)==null?void 0:V.attributedString}}))},"gl");var bS7=_.Q(function(W){W=_.Dd(W,{});var l=W.data,V={};return _.C("yt-shopping-content-line-view-model",{class:_.If("ytShoppingContentLineViewModelHost",W.className,(V.ytShoppingContentLineViewModelTruncateText=function(){return!l().wrapContent},V)),
style:_.Tm({"--shopping-content-line-gap":function(){return l().itemGap?l().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return l().lineHeight?l().lineHeight+"px":void 0}})},_.C(_.G3,{each:function(){return(l().items||[]).map(function(f){return _.k(f,FyX)}).filter(function(f){return!!f})}},function(f){return _.C(Gse,{data:f})}))},"hl");_.HI(_.Q(function(W){var l=_.Dd(W,{}).data,V=function(){var f;return((f=l().image)==null?void 0:f.height)||40};
return _.C("yt-shopping-timely-shelf-content-view-model",{el:_.DN(_.E_(function(){var f;return(f=l())==null?void 0:f.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.If("ytShoppingTimelyShelfContentViewModelHost"),style:_.Tm({"--shopping-timely-shelf-content-padding-top":function(){var f;return Kya((f=l().padding)==null?void 0:f.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var f;return Kya((f=l().padding)==null?void 0:f.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var f;return Kya((f=l().padding)==null?void 0:f.start)},
"--shopping-timely-shelf-content-padding-end":function(){var f;return Kya((f=l().padding)==null?void 0:f.end)}})},_.C(_.c,{cond:function(){var f;
return(f=l().image)==null?void 0:f.image},
then:function(f){return _.C(_.dN,{preserveHeight:!0,preserveWidth:!0,height:V,data:f,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.C(_.QH,{data:function(){return l().avatar}},{avatarViewModel:_.gn}),_.C("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.C(_.QH,{data:function(){return l().line1}},{shoppingContentLineViewModel:function(f){return _.C(bS7,{data:f.data})}}),_.C(_.QH,{data:function(){return l().line2}},{shoppingContentLineViewModel:function(f){return _.C(bS7,
{data:f.data})}})),_.C("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.C(_.G3,{each:function(){var f;
return(f=l().button)!=null?f:[]}},function(f){return _.C(_.QH,{data:function(){return f}},{buttonViewModel:_.Nq})})))},"il"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.pA}});_.pqM={};
_.pqM.YtdWatchBehavior=[_.q.YtRendererBehavior,_.by.YtPlayerListenerBehavior,_.Ap.YtRendererstamperBehavior,_.hp.YtActionHandlerBehavior,_.LY.YtPageBehavior,_.qq.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 _.ZL("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.U("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 _.ZL("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 _.U("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,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},
videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.U("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 _.yS("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.yS("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!_.U("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.U("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 _.U("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.U("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("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 _.U("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.U("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.U("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("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 _.U("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("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 _.U("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 W={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:_.vN(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.vN(["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"||_.U("swa_prov_panels_ks")?W.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(W.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},W.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return W},
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 W=this;this.watchController=void 0;this.pageDisposeJobs=[function(){W.showMetadataPlaceholder_()},
function(){_.U("web_watch_dont_clear_comments")||W.clearComments_()},
function(){W.clearPlayerAds_()},
function(){W.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;_.U("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.U("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.g_X(function(){return _.dH(W)},this.hostElement);
this.pageDisposeJobs.push(function(){W.youThereManager_.reset()});
_.U("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){W.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.i9;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;_.U("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));_.U("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.mz(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(W){W&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:W}),W.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(W){_.U("kevlar_watch_flexy_theater_manager")&&(this.theater=W,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(W){!_.U("kevlar_watch_while_v2")&&!_.U("web_watch_pip")||W||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(W){this.active!==void 0&&(this.fullscreen=W,_.U("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(W){this.active!==void 0&&(_.FN(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.U("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(W>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(W){this.initCsi_();this.updatePageData_(W)},
updatePageData_:function(W){var l=this;if(W)if(this.data===W){this.onPageLoadWithSameData_();var V;(V=this.watchController)==null||V.setWatchNextResponse(this.data)}else this.data=W;this.playlist&&_.Sy({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Wy("nw");this.loading=!1;_.pS(_.w8,function(){l.initDclkstatus_();var f,r=((f=l.player)==null?void 0:f.getVideoData().cpn)||"";_.qwM(function(R,y){_.ecL(R,y,r)})})},
onPageLoadWithSameData_:function(){_.U("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 W=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!W);this.set("loadingData.playlistLoading",W&&W!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),W=this.watchNextSkeletonEl_.firstElementChild;W;)W.classList.remove("hidden"),W=W.nextElementSibling;if(_.U("kevlar_watch_frame0_loading_state")){var l,V,f;W=(l=this.loadingData)==null?void 0:(V=l.endpoint)==null?void 0:(f=V.watchEndpoint)==null?void 0:f.videoId;var r;W&&(r="https://i.ytimg.com/vi/"+W+"/frame0.jpg");_.GS(this.hostElement).querySelector("#player").style.backgroundImage=r?"url("+r+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var W=_.GS(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&W&&(W.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var l,V;(V=(l=this.watchMetadata).updateSentimentBarWidth)==
null||V.call(l);var f,r;(r=(f=this.watchMetadata).resize)==null||r.call(f)}_.U("kevlar_watch_frame0_loading_state")&&(_.GS(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(W){var l=_.GS(this.hostElement).querySelector(W);l?_.Hh(l,!1):_.Qe(new _.bP("Overscroll monitor not found for component: ",W))},
removeSplitScrollMouseTrap:function(W){var l=_.GS(this.hostElement).querySelector(W);l?_.KN(l):_.Qe(new _.bP("Disposal component for  overscroll monitoring not found: ",W))},
onLoadingChanged_:function(W){W?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.U("web_thumbnail_to_watch_transition")&&!_.g91||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.U("web_thumbnail_to_watch_transition")&&!_.g91||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(W){var l=this;W?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.w8.addLowPriorityJob(function(){l.onWindowResized_(_.zL(!0))})},
updateTheaterModeState_:function(W){if(!_.U("kevlar_watch_flexy_theater_manager")){W=W||this.fullWindowMode_;if(this.theater!==void 0||W)this.theater=W;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();W&&_.jwP()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();_.U("web_watch_error_screen_fix")&&this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var W=this.fullBleedPlayer;_.U("external_fullscreen")&&this.fullscreen&&(W=!0);_.U("web_watch_error_screen_fix")&&(W=this.fullBleedPlayer);W=W?_.GS(this.hostElement).querySelector("#player-full-bleed-container"):_.GS(this.hostElement).querySelector("#player-container-inner");var l=this.getPlayerContainer(),V=_.U("kevlar_watch_while_v2")||_.U("web_watch_pip");l.parentElement!==W&&(V&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.dH(this).appendTo(W,
l),_.U("web_watch_error_screen_fix")||W.appendChild(_.GS(this.hostElement).querySelector("#error-screen"))))},
updateErrorScreenLocation:function(){var W=_.GS(this.hostElement).querySelector("#error-screen"),l=this.fullBleedPlayer?_.GS(this.hostElement).querySelector("#player-full-bleed-container"):_.GS(this.hostElement).querySelector("#player");W.parentElement!==l&&l.appendChild(W)},
deactivateMiniplayerAndResetPlayer:function(){var W=this;return _.g(function(l){if(l.nextAddress==1)return l.yield(_.tY().resolve(_.Sl).deactivate(),2);W.updatePlayerLocation();_.ju(l)})},
updateCinematicsLocation:function(){var W=this.getElement("CINEMATICS");if(W){var l=this.getCinematicsLocationContainer();W.parentElement!==l&&l.appendChild(W)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.GS(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.GS(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(W,l,V){var f=document.documentElement.hasAttribute("dark"),r=f&&_.U("web_cinematic_theater_mode"),R=f&&_.U("web_cinematic_fullscreen");f=!f&&this.cinematicLightTheme;return V||W&&r||l&&R||(l||W)&&f},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var W=this,l;(l=this.watchController)==null||l.setWatchNextResponse(this.data);_.U("kevlar_watch_flexy_comments_manager")||this.initComments_();_.U("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.tY().resolve(_.dZ).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,_.U("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.w8.addLowPriorityJob(function(){_.bj(W.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.U("web_watch_start_chat_in_theater_mode")){var V,f,r;if((V=this.data)==null?0:(f=V.contents)==null?0:(r=f.twoColumnWatchNextResults)==null?0:r.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var R,y;((R=this.data)==null?0:(y=R.contents)==null?0:y.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(W){var l;(l=this.watchController)==null||l.setPlayerResponse(this.playerData);W&&W.playabilityStatus&&(l=this.isVideoPlayable_(W.playabilityStatus,this.getPlayerOverlays_(this.data)),W=this.isLiveStreamOffline_(W.playabilityStatus),l&&!W||_.V9(this,function(){_.Wy("pbu")}));
this.setPlayerAds_();_.bj(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(W,l){if((_.U("kevlar_watch_while_v2")||_.U("web_watch_pip"))&&this.playerData&&l)return this.playerData.videoDetails},
watchPageActiveChanged_:function(W){_.DJ().dispatch(_.Dtv(this.active));W?this.activate_():this.deactivate_()},
attached:function(){var W=this;this.watchController=new _.Mp(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);_.U("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var l=_.dH(this);_.U("kevlar_disable_prepare_player")||
l.preparePlayer();_.U("kevlar_watch_flexy_playlist_manager")||_.tY().resolve(_.dZ).setPlayer(l);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();l={"--ytd-watch-flexy-scrollbar-width":_.UW()+"px"};this.is==="ytd-watch-grid"&&(l["--ytd-watch-flexy-sidebar-width"]=_.DF7+"px",l["--ytd-watch-grid-horizontal-page-margins"]=_.eG+"px",l["--ytd-watch-grid-columns-top-margins"]=_.BIP+"px",l["--ytd-watch-grid-min-player-height-medium"]="360px");!_.yS("kv_pl_mx_sz_ks")&&
_.yS("kevlar_watch_max_player_width")&&(l["--ytd-watch-flexy-max-player-width-wide-screen"]=_.UFX+"px");_.yS("kevlar_watch_flexy_metadata_height")&&(l["--ytd-watch-flexy-space-below-player"]=_.ufy+"px");this.safeUpdateStyles(l);_.U("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.i5X(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return W.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.GS(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var W=_.UW(),l=_.qb+W,V=l;this.fixedPanels&&(l+=_.DF7);var f=657+W;W=1327+W;_.GS(this.hostElement).querySelector("#two-column-query").query="(min-width: "+l+"px)";_.GS(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(f+"px), (min-height: 630px) and (min-width: ")+(l+"px) and (max-width: ")+(W+"px)");_.GS(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(W+"px)");
_.GS(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+V+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var W=_.GS(this.hostElement).querySelector("#miniplayer-bar").firstChild,l=this.squeezeback&&!_.U("web_watch_squeezeback_player_size_killswitch");return W&&W.active||this.theater||_.U("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||l||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.p5(NaN,NaN):_.WyP(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.WyP(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Ls(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var W=this;this.onWindowResized_(_.zL());_.U("browse_skeleton_removal_on_watch_killswitch")||_.ZL("IS_SHELL_LOAD")&&_.gew();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var l=_.dH(this);l.addEventListener("yt-player-updated",_.mz(this,this.onPlayerUpdated_));l.getPlayerPromise().then(function(V){W.playerApiReady_(V)});
_.U("kevlar_watch_flexy_playlist_manager")||(l=_.tY().resolve(_.dZ),_.U("kevlar_watch_observe_playlist_navigations_killswitch")&&l.addEventListener("yt-navigate",_.mz(this,this.onYtNavigate_)),l.setPlaylistComponent(_.GS(this.hostElement).querySelector("#playlist")),l.addEventListener("yt-playlist-data-updated",_.mz(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.w8.addLowPriorityJob(function(){_.FN(W.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.dH(this).removeEventListener("yt-player-updated",_.mz(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.U("kevlar_watch_flexy_playlist_manager")){var W=_.tY().resolve(_.dZ);_.U("kevlar_watch_observe_playlist_navigations_killswitch")&&W.removeEventListener("yt-navigate",_.mz(this,this.onYtNavigate_));
W.cancelVideoSkip();W.removeEventListener("yt-playlist-data-updated",_.mz(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.FN(this.hostElement,"yt-autonav-pause-player",!1);W=_.ku();_.U("kevlar_exit_fullscreen_leaving_watch")&&W&&_.vh(W)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(W){this.player&&this.player.updateVideoData({rvs:W.rvs})},
getPageContents:function(W){return W&&W.contents&&W.contents.twoColumnWatchNextResults&&W.contents.twoColumnWatchNextResults.results&&W.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(W){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W)},
onRetrieveLocation_:function(W,l){l.hasComments?l.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):l.locationRetrieved("/related_ajax",void 0);W.stopPropagation()},
onSubscriptionChanged_:function(W,l){this.player&&(l?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.Uuw("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.GS(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.GS(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(W){this.player=W;this.setPlayerState(W.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.U("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.U("kevlar_unified_player")||_.U("kevlar_player_new_bootstrap_adoption"))&&_.l4()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(W,l){l=l===void 0?!0:l;_.ku()&&_.U("external_fullscreen")&&_.vh(document.documentElement);this.theaterRequested_=W;l&&_.HA("wide",W?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.Gt(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.FN(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(W){_.MJ(W,typeof this.player),this.player&&_.MJ(W,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var W;((W=this.player)==null?0:W.isFullscreen())?this.player.toggleFullscreen():_.Gt(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(W,l){return this.loading?l:!!Object.keys(W).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(W){if(W){W=_.L(W);for(var l=W.next();!l.done;l=W.next())l=l.value,l.youThereRenderer&&_.CTP(this.youThereManager_,l.youThereRenderer)}},
setPlaylistData_:function(W){return W||{}},
userEngagementConfigDataChanged_:function(W){if(W)if(W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var l=this.youThereManager_;_.sL()<W.lowEngagementThresholdMs||_.JrP(l,!0)}else W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Gt(this.hostElement,"yt-autonav-pause-user-engagement",[W])},
isPlayerUnavailable_:function(W,l,V){return!!W&&!this.isVideoPlayable_(W,V)&&!l},
getPlayerOverlays_:function(W){return(W==null?void 0:W.playerOverlays)||null},
isVideoPlayable_:function(W,l){if(!W)return!1;var V=W.status==="OK"||W.status==="LIVE_STREAM_OFFLINE",f=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",W)||this.get("errorScreen.ypcTrailerRenderer",W);W=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",W);var r;l=l==null?void 0:(r=l.playerOverlayRenderer)==null?void 0:r.gatedActionsOverlayRenderer;return!!V||!!f||!!W||!!l},
hasWatchNextResponseErrorRenderer:function(W){var l=this.getPageContents(W),V,f,r,R,y;return!(W==null?0:(V=W.contents)==null?0:(f=V.twoColumnWatchNextResults)==null?0:f.secondaryResults)&&!!((r=l[0])==null?0:(R=r.itemSectionRenderer)==null?0:(y=R.contents[0])==null?0:y.backgroundPromoRenderer)},
isLiveStreamOffline_:function(W){return W?W.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(W,l,V){var f=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",l),r=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];r=_.U("web_no_skip_video_on_verification_checks")?(W==null?void 0:W.status)&&r.includes(W.status):W&&W.status==="AGE_CHECK_REQUIRED";var R=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",W);R==void 0&&(R=!0);!V||this.isVideoPlayable_(W,this.getPlayerOverlays_(l))||
f||r||!R||_.tY().resolve(_.dZ).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.VCk()},
onPlayerFeedbackStartRequest_:function(W){_.Gt(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:W}])},
onPlayerFeedbackArticleRequest_:function(W){_.Gt(this.hostElement,"yt-help-dialog-requested",[W])},
onPlayerYpcContentRequest_:function(){var W,l,V,f,r,R,y,P,n=((W=this.data)==null?NaN:(l=W.contents)==null?NaN:(V=l.twoColumnWatchNextResults)==null?NaN:(f=V.secondaryResults)==null?NaN:(r=f.secondaryResults)==null?NaN:(R=r.offerModule)==null?NaN:(y=R.tvfilmOfferModuleRenderer)==null?NaN:(P=y.actionButtons)==null?NaN:P.length)-1;W=[".offerButton.buttonRenderer.",".actionButtons."+(n>=0?n:0)+".buttonRenderer."];l=_.L(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(V=l.next();!V.done;V=l.next())for(V=V.value,f=_.L(W),r=f.next();!r.done;r=f.next())if(r="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+V+r.value,r=this.get(r+"navigationEndpoint",this.data)||this.get(r+"serviceEndpoint",this.data)||this.get(r+"command",this.data)){_.XY(r,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(W){_.FN(this.hostElement,"yt-autonav-pause-player",W)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(W){W()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.FN(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(W)},
setPlayerState:function(W){_.DJ().dispatch(_.bFv(W))},
onPlayerSubscribe_:function(W){_.Gt(this.hostElement,"yt-player-subscribe",[W])},
onPlayerUnsubscribe_:function(W){_.Gt(this.hostElement,"yt-player-unsubscribe",[W])},
onPlayerAdYtShowToast_:function(W){_.Gt(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:W.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(W){if(W)return W},
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(W){return!_.U("web_watch_move_summary_to_sd")&&!!W},
computeWatchMetadataRefresh:function(){return _.U("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.U("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var W,l,V,f;this.watchNextSecondaryResults=(W=this.data)==null?void 0:(l=W.contents)==null?void 0:(V=l.twoColumnWatchNextResults)==null?void 0:(f=V.secondaryResults)==null?void 0:f.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.U("swatcheroo_pbs_load_grid")&&!_.U("swatcheroo_provide_all_data_on_scheduled_job")){_.w8.cancelJob(this.setRichGridJobId_);var W,l,V,f,r,R,y;this.setRichGridRendererData((W=this.data)==null?void 0:(l=W.contents)==null?void 0:(V=l.twoColumnWatchNextResults)==null?void 0:(f=V.secondaryResults)==null?void 0:(r=f.secondaryResults)==null?void 0:(R=r.results)==null?void 0:(y=R[0])==null?
void 0:y.richGridRenderer)}},
setRichGridRendererData:function(W){this.richGridRendererData=W},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var W,l=(W=this.data)==null?void 0:W.engagementPanels;if(l==null?0:l.length){W=null;l=_.L(l);for(var V=l.next();!V.done;V=l.next()){V=V.value;var f=void 0;if(((f=V.engagementPanelSectionListRenderer)==null?void 0:f.targetId)==="engagement-panel-structured-description"){W=V;break}}var r,R,y;W=(r=W)==null?void 0:(R=r.engagementPanelSectionListRenderer)==null?void 0:(y=R.content)==null?void 0:y.structuredDescriptionContentRenderer;if(W==null?0:W.items){r=
[];R=_.L(W.items);for(y=R.next();!y.done;y=R.next()){y=y.value;if(!_.U("sd_horizontal_list_show_nav_killswitch")){var P=f=V=l=W=void 0,n=void 0,B=(W=y.horizontalCardListRenderer)==null?void 0:(l=W.header)==null?void 0:(V=l.richListHeaderRenderer)==null?void 0:(f=V.navigationButton)==null?void 0:(P=f.buttonRenderer)==null?void 0:(n=P.command)==null?void 0:n.commandExecutorCommand;B&&B.commands&&(B.commands=B.commands.filter(function(d){return!_.k(d,_.X$k)}))}(!y.expandableVideoDescriptionBodyRenderer&&
!y.videoDescriptionHeaderRenderer||_.U("web_delhi_colorful_sd"))&&r.push(y)}return{items:r}}}},
constructWarning_:function(W){return{text:_.Bl(W),type:"WARNING"}},
isPlaShelfEnabled_:function(W){if((this.get("adPlacements",W)||[]).length)return!0;W=this.get("playerAds",W)||[];return!(!W.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",W[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var W=this;_.FN(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var l=this.getScrollTop()>0;this.gestures_&&(l?this.gestures_.detach():this.gestures_.attach());l!==this.showFullerscreenEdu_&&_.U("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=l,_.dH(this).getPlayerPromise().then(function(V){V.updateFullerscreenEduButtonVisibility(W.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.FN(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var W=this;this.commentsReady=!1;_.w8.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.pS(_.w8,function(){W.setComments_()},1E3)},
setComments_:function(){if(!_.U("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Wy("cmi");_.w8.cancelJob(this.setCommentsJobId_);var W=this.getPageContents(this.data);if(W&&W.length){W=_.L(W);for(var l=W.next();!l.done;l=W.next())if(l=l.value,this.get("itemSectionRenderer.sectionIdentifier",l)==="comment-item-section"){this.comments=l.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.FN(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.U("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.U("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Wy("cmc")},
doRemoveComments_:function(){this.comments={};_.U("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.w8.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.w8.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(W,l){var V=_.k(l.endpoint,_.Bh);V&&(!(l=this.get("data.currentVideoEndpoint.watchEndpoint"))||V.videoId!==l.videoId||V.playlistId&&V.playlistId!==l.playlistId||V.index!==void 0&&V.index!==l.index||typeof V.startTimeSeconds!=="number"||(W.stopPropagation(),this.setScrollTop(0),_.dH(this).getPlayerPromise().then(function(f){var r=V.startTimeSeconds;f.seekTo(r);f.wakeUpControls();r<f.getDuration()&&f.playVideo()})))},
updatePlayerStartTime_:function(){var W=_.MSy();"t"in W&&(W=_.lxP(W.t),this.player.seekTo(W,!0))},
updateTitleFromWatchNext:function(W){W=this.getPageContents(W);var l,V;(W=_.dE(W==null?void 0:(l=W[0])==null?void 0:(V=l.videoPrimaryInfoRenderer)==null?void 0:V.title))&&_.FN(this.hostElement,"yt-update-title",W)},
updateTitle_:function(W){W=this.get("videoDetails.title",W)||"";_.FN(this.hostElement,"yt-update-title",W)},
syncWithRemoteVideo_:function(W,l,V){if(this.active&&this.player){var f=this.player.getVideoData();if(f.video_id===V&&(V=f.list,_.U("polymer_enable_mdx_queue")&&V&&V.startsWith("RQ")&&(V=void 0),f.video_id!==W||V!=l)){var r;_.U("kevlar_player_watch_endpoint_navigation")?r=_.Zlx(_.hjM(W,l)):r=this.buildWatchEndpoint_(W,l);_.FN(this.hostElement,"yt-navigate",{endpoint:r,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(W,l,V){return _.vy(W,l,V)},
initDclkstatus_:function(){_.$ty()},
attachWatchPageSkeleton_:function(){var W=document.querySelector("#watch-page-skeleton");if(W){var l=W.querySelector("#primary-info"),V=W.querySelector("#secondary-info"),f=W.querySelector("#related");l&&_.GS(this.hostElement).querySelector("#info-skeleton").appendChild(l);V&&_.GS(this.hostElement).querySelector("#meta-skeleton").appendChild(V);f&&(_.GS(this.hostElement).querySelector("#related-skeleton").appendChild(f),this.watchNextSkeletonEl_=f);_.bI(W)}},
handlePlayerUpdated_:function(){_.dH(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(W,l){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof l!=="undefined"){var V=this.watchNextSkeletonEl_.children,f=W&&W.indexSplices.length?W.indexSplices[0].index:0;W=Math.min(this.watchNextShownItems.length,V.length);l||(f=0,W=V.length);for(l=f;l<W;l++)V[l].classList.add("hidden")}},
onPlayerFullscreenChange_:function(W){_.U("external_fullscreen")||_.Gt(this.hostElement,"yt-player-fullscreen",[W.fullscreen])},
onFullscreenChange_:function(W){this.fullscreen=W;this.gestures_&&this.gestures_.update(this.fullscreen);var l=_.dH(this);l.getPlayerPromise().then(function(V){V.setFauxFullscreen(!!_.ku())});
this.updateFullBleedElementLocations();W&&(l.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(W,l){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!l},
computeIsDonationShelfCollapsed_:function(W){return W},
computeShouldShowMerchShelf:function(W,l){return l&&!!W},
computeResponseHasComments:function(W){var l,V,f,r,R;return!!(W==null?0:(l=W.contents)==null?0:(V=l.twoColumnWatchNextResults)==null?0:(f=V.results)==null?0:(r=f.results)==null?0:(R=r.contents)==null?0:R.some(function(y){var P;return(y==null?void 0:(P=y.itemSectionRenderer)==null?void 0:P.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(W,l,V,f){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&f?!1:!!W&&!!Object.keys(W).length&&!l},
identity:_.wS,onWindowResized_:function(W){this.windowSize_=W;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(W){var l=this;W&&W.type!=="dataloaded"&&W.type!=="dataupdated"||_.dH(this).getPlayerPromise().then(function(V){var f=V.getPlayerState();f!==5&&f!==0&&(V=1/V.getVideoAspectRatio(),l.videoHeightToWidthRatio_!==V&&(l.videoHeightToWidthRatio_=V))})},
schedulePlayerSizeUpdate_:function(W){var l=this,V=_.U("kevlar_watch_while_v2")||_.U("web_watch_pip"),f=function(){if(l.watchMetadata){var r,R;(R=(r=l.watchMetadata).resize)==null||R.call(r)}_.dH(l).getPlayerPromise().then(function(y){if(_.U("kevlar_set_internal_player_size")){if(!V||!l.isMiniplayerActive()){var P=l.calculateCurrentPlayerSize_();y.setInternalSize(P.width,P.height)}}else y.setSize(NaN,NaN);_.U("kevlar_watch_while")&&l.updateWatchWhileScrollThreshold_()})};
W?f():_.Kt(_.w8,f)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(W){this.set("data.survey",W.detail)},
onYtShowSurveyCommand_:function(W){this.set("data.survey",_.k(W,_.yrX).survey)},
onDownloadedVideoDeleted:function(W){var l=this,V,f;return _.g(function(r){if(r.nextAddress==1){if(!l.active||(V=l.playerData)==null||!V.offlineState||l.videoId!==W)return r.return();(f=l.player)==null||f.stopVideo();_.hJ().navigatingAwayFromWatchDeletedVideo=!0;_.XY(_.TfY,l.hostElement);return r.yield(_.hJ().navigationFinishPromise,2)}_.hJ().navigatingAwayFromWatchDeletedVideo=!1;_.ju(r)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var W;this.theater?W=_.xP(.5625*this.windowSize_.width,480,this.windowSize_.height-185):W=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==W&&(this.watchWhileScrollThreshold_=W,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var W=_.GS(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&W){var l=this.windowSize_.height>=624,V=this.active?this.getScrollTop():0;!W.active&&l&&V>=this.watchWhileScrollThreshold_?(W.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):W.active&&(!l||V<this.watchWhileScrollThreshold_&&!_.ku())&&(W.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var W=_.GS(this.hostElement).querySelector("#secondary-inner");if(W){var l=_.GS(this.hostElement).querySelector("#below"),V=_.GS(this.hostElement).querySelector("#secondary"),f=_.GS(this.hostElement).querySelector("#comments");f&&V&&l&&(this.defaultTwoColumnLayout?(W.appendChild(f),V.appendChild(W)):(l.appendChild(f),_.Y3(l,W)))}}},
isTwoColumnsChanged_:function(W,l){if(W!==!0||l!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(W=_.GS(this.hostElement).querySelector("#secondary-inner"))){l=_.GS(this.hostElement).querySelector("#below");var V=_.GS(this.hostElement).querySelector("#secondary"),f=_.GS(this.hostElement).querySelector("#comments");f&&V&&l&&(this.isTwoColumns_?(W.appendChild(f),V.appendChild(W)):(l.appendChild(f),_.Y3(l,W)))}}else{W=!_.U("web_watch_enable_fs_squeezeback_panels")||
!(this.fullscreen||this.iMaxTheaterMode&&this.theater);l=_.GS(this.hostElement).querySelector("#panels");var r=_.GS(this.hostElement).querySelector("#alerts");V=_.GS(this.hostElement).querySelector("#playlist");f=_.GS(this.hostElement).querySelector("#related");var R=_.GS(this.hostElement).querySelector("#donation-shelf"),y=_.GS(this.hostElement).querySelector("#comments");this.isTwoColumns_?(r=_.GS(this.hostElement).querySelector("#secondary-inner"),W&&(r.appendChild(l),r.appendChild(V)),r.appendChild(R),
r.appendChild(f)):(W&&(_.Sg(l,r),_.Sg(V,r)),_.Sg(R,r),y&&_.Sg(f,y));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.U("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.U("web_watch_enable_fs_squeezeback_panels")&&_.U("web_watch_theater_chat")){var W=_.GS(this.hostElement).querySelector("#chat-container"),l=this.theater&&!this.fullscreen||_.U("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&l?(l=_.GS(this.hostElement).querySelector("#columns"),(W==null?void 0:W.parentElement)!==l&&l.append(W),this.fixedPanels=!0):(this.fixedPanels=
!1,l=_.GS(this.hostElement).querySelector("#playlist"),W&&l?_.Ed(W,l):_.Qe(new _.bP("Missing element when updating chat location",{"chatContainer defined":!!W,"playlist defined":!!l})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(W,l){return _.U("sw_metadata_vis_toggle_ks")?!0:!!W||!!l},
computeForceDarkPanelTheme:function(W){return _.U("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&W:!1},
safeUpdateStyles:function(W){try{_.I1(this.hostElement,W)}catch(l){_.Qe(l)}},
videoHeightToWidthRatioChanged_:function(W,l){l&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(W){this.videoHeightToWidthRatio_=1/W},
computeIsVerticalVideo_:function(W){return W>=1},
computeIsFourThreeToSixteenNineVideo_:function(W){return W<=.7501&&W>=.5624},
computeIsExtraWideVideo_:function(W){return W<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.dH(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.dH(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.DJP(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(W){var l=_.YC(W)||0;_.N5(W,l+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var W=_.YC("yt-fullerscreen-edu-button-click-count")||0,l=_.YC("yt-fullerscreen-edu-button-shown-count")||0,V=_.yS("external_fullscreen_button_shown_threshold"),f=W>=_.yS("external_fullscreen_button_click_threshold")||l>=V;_.dH(this).getPlayerPromise().then(function(r){r.updateFullerscreenEduButtonSubtleModeState(f)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(W,l){return l},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.tY().resolve(_.dZ).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var W=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.w8.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.w8.addLowPriorityJob(function(){W.fullHeightPanelPositionUpdateJobId=0;var l=_.GS(W.hostElement).querySelector("#secondary"),V=_.GS(W.hostElement).querySelector("#fixed-secondary");l=l.getBoundingClientRect();var f=l.width;W.swatcherooSqueezeback&&
(f+=_.eG);if(W.swatcherooSqueezeback){var r=_.GS(W.hostElement).querySelector("#squeezeback-constraining-container");r.style.width=f+"px";r.style.flex="0 0 "+f+"px"}V.style.width=f+"px";V.style.left=l.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var W=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.w8.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.w8.addLowPriorityJob(function(){W.panelMaxHeightUpdateJob_=0;var l;!W.isTwoColumns_||W.theater||W.fullscreen?l=460:l=W.calculateNormalPlayerSize_().height;var V=l+"px";_.U("live_chat_taller_height")&&!W.theater&&(V="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.U("live_chat_medium_height")&&!W.theater&&(V="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.U("live_chat_scaled_height")&&!W.theater&&(V="calc(100vh - var(--ytd-toolbar-height) - 238px)");W.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":l+"px","--ytd-watch-flexy-chat-max-height":V,"--ytd-watch-flexy-structured-description-max-height":l+"px","--ytd-watch-flexy-comments-panel-max-height":l+"px","--ytd-comments-engagement-panel-content-height":l+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(W){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",W)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.og(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(W){var l=_.GS(this.hostElement).querySelector("#engagement-panel-scrim");W?l.addEventListener("tap",_.mz(this,this.onEngagementPanelScrimClick_)):l.removeEventListener("tap",_.mz(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(W){if(this.hostElement.contains(W)&&!this.scrollToAnimation_.isAnimating()){var l=W.offsetTop-24;W=W.offsetTop+W.offsetHeight+24;var V=this.getPageScrollingElement(),f=this.getScrollTop(),r=f+V.clientHeight-56;if(l<f+56)l-=56;else if(W>r)l=W-V.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,l),500)}},
onYtSignalActionScrollToComments:function(){var W=this.hostElement.querySelector("#comments");if(W&&!this.scrollToAnimation_.isAnimating()){W=W.offsetTop-56-24;if(_.U("kevlar_comment_teaser_scroll_to_midpoint")&&(W-=_.oU().height/3,W<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtEngagementPanelVisibleChanged:function(W,l,V){if(this.active&&this.trackEngagementPanelVisibility&&!_.soI.includes(V)){if(l==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.bj(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var f=_.tY().resolve(_.tq);this.visiblePanelIdentifiers_.forEach(function(r){r!==V&&f.hidePanel(r)})}this.visiblePanelIdentifiers_.add(V)}l!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&l!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(V);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(W){return W?"":"watch-active-metadata"},
computeNewMetadataClass:function(W){return W?"watch-active-metadata":""},
computeIsSingleColumn:function(W,l){return l&&!W},
computeFullBleedPlayer:function(W,l,V){return _.U("web_watch_error_screen_fix")?_.U("external_fullscreen")&&W||l||V:W||l||V},
computeDefaultLayout:function(W){return!W},
computeDefaultTwoColumnLayout:function(W,l){return!W&&l},
updatePanelsLocation:function(){if(_.U("web_watch_enable_fs_squeezeback_panels")){var W=_.GS(this.hostElement).querySelector("#below"),l=_.GS(this.hostElement).querySelector("#panels"),V=_.GS(this.hostElement).querySelector("#playlist"),f=_.GS(this.hostElement).querySelector("#chat-container"),r=_.GS(this.hostElement).querySelector("#panels-full-bleed-container"),R=_.GS(this.hostElement).querySelector("#secondary-inner");if(W&&l&&V&&f&&r&&R){var y=this.fullscreen||this.theater&&this.iMaxTheaterMode,
P=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;y?(r.appendChild(l),r.appendChild(f),r.appendChild(V)):this.isTwoColumns_?(P?(W=_.GS(this.hostElement).querySelector("#columns"),(f==null?void 0:f.parentElement)!==W&&W.append(f),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):_.Y3(R,f),_.Y3(R,l),_.Y3(R,V)):(W.appendChild(l),W.appendChild(f),W.appendChild(V))}}},
swatcherooUpdatePanelsLocation:function(W,l,V,f,r,R){if(this.is==="ytd-watch-grid"){l=W&&!l;this.swatcherooSplitScroll&&(l?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));V=_.GS(this.hostElement).querySelector("#panels");var y=_.GS(this.hostElement).querySelector("#playlist"),P=_.GS(this.hostElement).querySelector("#fixed-secondary"),n=_.GS(this.hostElement).querySelector("#fixed-below"),
B=_.GS(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),d=_.GS(this.hostElement).querySelector("#chat-container");R&&(W?P.appendChild(V):n.appendChild(V));r?W?P.appendChild(d):n.appendChild(d):_.Ed(d,B);f?W?P.appendChild(y):n.appendChild(y):_.Ed(y,B);this.swatcherooSplitScroll&&(W=_.GS(this.hostElement).querySelector("#secondary"),f=_.GS(this.hostElement).querySelector("#columns"),r=_.GS(this.hostElement).querySelector("#fixed-columns-secondary"),l?
r.appendChild(W):f.appendChild(W))}},
computeMetadataSkinnyMode:function(W,l,V){return this.is!=="ytd-watch-grid"?!1:W?V:l},
computeWatchWhilePanelsActive:function(W,l){return W||l},
computeNoBorderOnChat:function(W){return _.U("web_watch_theater_chat_no_border")&&W},
computeLiveChatPresentAndExpanded:function(W,l){return W&&!l},
computePanelExpanded:function(W,l,V){return W||l||V},
computeSqueezeback:function(W,l,V,f){if(_.U("web_watch_enable_fs_squeezeback_panels")){var r=this.iMaxTheaterMode&&this.theater;return(W||l||V)&&(f||r)}},
computeSwatcherooSqueezeback:function(W,l,V){return this.is!=="ytd-watch-grid"||_.U("ww_squeezeback_killswitch")?!1:W&&l&&V},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(W){_.dH(this).getPlayerPromise().then(function(l){var V;(V=l.changeMarkerVisibility)==null||V.call(l,_.k(W,_.zg).isVisible||!1,_.k(W,_.zg).entityKeys||[],_.k(W,_.zg).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(W){this.liveChatCollapsed=W.detail;_.DJ().dispatch(_.tCX(W.detail));if(!this.liveChatCollapsed&&this.squeezeback){var l=_.tY().resolve(_.tq);this.visiblePanelIdentifiers_.forEach(function(V){l.hidePanel(V)})}},
onSetPlaylistCollapsed:function(W){_.U("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!W)},
provideRenderingData:function(W,l){switch(W){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=l;break;case "PRIMARY_INFO":_.U("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=l);this.videoPrimaryInfoRendererValue=l==null?void 0:l.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.U("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=l);this.videoSecondaryInfoRendererValue=l==null?void 0:l.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
l;break;case "CLARIFICATION":this.clarifyBoxValue=l;break;case "LIVE_CHAT":this.conversationBar=l;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=l;break;case "PLAYLIST":this.externalPlaylistData_=l!=null?l:{};break;case "MERCH_SHELF":this.merchShelfValue=l==null?void 0:l.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=l;break;case "TICKET_SHELF":this.ticket=l;break;case "OFFER_MODULE":this.offerModule=l;break;case "LIMITED_STATE":this.limitedStateValue=
l;break;case "DONATION_SHELF":this.donation=l;break;case "ALERTS":this.alertsValue=l;break;case "COMMENTS":this.comments=l;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=l;break;case "ENGAGEMENT_PANELS":this.engagementPanels=l;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=l;break;case "RICH_GRID_RENDERER":this.richGridRendererData=l;break;case "EXPANDABLE_METADATA":this.expandableMetadata=l;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
l;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=l}},
toggleCinematicsActive:function(W){this.cinematicsActive=W},
isMiniplayerActive:function(){return _.tY().resolve(_.Sl).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var EGw;_.SCY=function(W){if(!(0,_.pi8)(W))throw Error("K``"+String(W));};
_.$cs=function(W){return W.findIndex(function(l){return EGw.indexOf(l.tagName)>-1})>-1};
_.WA1=function(){var W=_.tY().resolve(_.$C);_.SUY(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(W.isFullscreenEnabled()?_.vh(document.documentElement):_.tqq(document.documentElement))};
EGw=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.zw=new Map;_.zw.set(32,59972);_.zw.set(27,50765);_.zw.set(70,60102);_.zw.set(76,60221);_.zw.set(77,60222);_.zw.set(74,60223);_.zw.set(84,60224);_.zw.set(38,61941);_.zw.set(40,61942);_.zw.set(73,62521);_.zw.set(67,62522);_.zw.set(80,63390);_.zw.set(78,63397);_.zw.set(75,59972);_.zw.set(188,63385);_.zw.set(190,63384);_.zw.set(36,63387);
_.zw.set(35,63386);_.zw.set(37,63388);_.zw.set(39,63389);_.zw.set(79,63423);_.zw.set(87,63424);_.zw.set(107,63426);_.zw.set(109,63425);_.zw.set(65,63428);_.zw.set(83,63430);_.zw.set(68,63429);_.zw.set(221,63431);_.zw.set(219,63432);_.zw.set(97,63439);_.zw.set(98,63440);_.zw.set(99,63441);_.zw.set(100,63442);_.zw.set(101,63443);_.zw.set(102,63444);_.zw.set(103,63445);_.zw.set(104,63446);_.zw.set(105,63447);_.Ni=new Map;_.Ni.set(80,63390);_.Ni.set(78,63397);_.Ni.set(188,63400);_.Ni.set(190,63401);
_.Ni.set(191,60765);_.Ni.set(13,247917);_.Yi=new Map;_.xi=new Map;
}catch(e){_._DumpException(e)}
try{
var Qh5,OpH,aLN,zrw;_.XP1=function(W){return W.ui.guideIsVisibleButNotPersistent};
_.TK5=function(W){return W.ui.tabGesturesIsActive};
_.wPc=function(){var W=_.gU("service_worker_scope");try{return navigator.serviceWorker.getRegistration(W)}catch(l){return Promise.reject(l)}};
_.ACY=function(W){return!(!W||!W.pushManager)};
Qh5=function(){return _.wPc().then(_.ACY).catch(function(){return!1})};
_.MiH=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?Qh5():Promise.resolve(!1)};
_.Zp2=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
OpH=function(){var W,l,V;return _.g(function(f){switch(f.nextAddress){case 1:return f.yield(_.RB.getInstance(),2);case 2:W=f.yieldResult;if(!W){l=void 0;f.jumpTo(3);break}return f.yield(W.get("lmqf"),4);case 4:l=f.yieldResult;case 3:switch((V=l)||(V="SD"),V){case "HD":return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
aLN=function(W){var l,V,f;return _.g(function(r){if(r.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.U("disable_av1_setting")){var R=window.localStorage["yt-player-av1-pref"];R=R==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":R==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else R="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(l=W===R)return r.jumpTo(2);f=V=W;return r.yield(OpH(),3)}r.nextAddress!=2&&(l=f===r.yieldResult);return r.return(l)})};var NKs;var YJ1=_.eq.IronButtonState,x4L=(0,_.YD)(HTMLElement);
_.S3({_template:function(){if(NKs!==void 0)return NKs;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;zrw===void 0&&(zrw=document.createElement("template"));var f=zrw;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return NKs=W},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[YJ1,_.Y6,_.qN,_.E2],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(W){var l=(0,_.HS)(this);l.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:W});l.shadowRoot.appendChild(W);return x4L.prototype._attachDom.call(this,W)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var W=this.contentElement;W&&W.selectedItem&&this._setSelectedItem(W.selectedItem)},
get contentElement(){for(var W=_.YG(this.$.content).getDistributedNodes(),l=0,V=W.length;l<V;l++)if(W[l].nodeType===Node.ELEMENT_NODE)return W[l]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(W){this._setSelectedItem(W.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(W){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W)===this&&this.open()},
_selectedItemChanged:function(W){var l="";W?l=W.label||W.getAttribute("label")||W.textContent.trim():l="";this.value=l;this._setSelectedItemLabel(l)},
_computeMenuVerticalOffset:function(W,l){return l?l:W?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var W=this.opened?"true":"false",l=this.contentElement;l&&l.setAttribute("aria-expanded",W)}});_.i3=new _.uC("navigateAction");var erc=new _.uC("formRenderer");var mG=function(){var W=_.OD.apply(this,arguments)||this;W.showInput=!1;return W};
_.v(mG,_.OD);_.t=mG.prototype;_.t.detached=function(){this.showInput&&window.removeEventListener("click",_.mz(this,this.closeOnOutsideClick_))};
_.t.stopPropagation_=function(W){this.showInput&&W.stopPropagation()};
_.t.closeOnOutsideClick_=function(W){this.closeOnOutsideClickCondition(W)&&(this.showInput=!1,window.removeEventListener("click",_.mz(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.t.closeOnOutsideClickCondition=function(){return!0};
_.t.closeOnOutsideClickHandler=function(){};
_.t.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.mz(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.t.openOnClickHandler=function(){};
_.t.showInputChanged=function(){};
_.t.setShowInput=function(W){this.showInput=W};
mG.prototype.setShowInput=mG.prototype.setShowInput;mG.prototype.showInputChanged=mG.prototype.showInputChanged;mG.prototype.openOnClickHandler=mG.prototype.openOnClickHandler;mG.prototype.openOnClick_=mG.prototype.openOnClick_;mG.prototype.closeOnOutsideClickHandler=mG.prototype.closeOnOutsideClickHandler;mG.prototype.closeOnOutsideClickCondition=mG.prototype.closeOnOutsideClickCondition;mG.prototype.closeOnOutsideClick_=mG.prototype.closeOnOutsideClick_;mG.prototype.stopPropagation_=mG.prototype.stopPropagation_;
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mG.prototype,"showInput",void 0);_.a([_.XI("click"),_.XI("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],mG.prototype,"stopPropagation_",null);_.a([_.TS("showInput"),_.z("design:type",Function),_.z("design:paramtypes",[Boolean]),_.z("design:returntype")],mG.prototype,"showInputChanged",null);_.a([_.a1()],mG);_.qJZ=[mG.prototype];var hrZ;var SJe;var XH=function(){return _.I.apply(this,arguments)||this};
_.v(XH,_.I);_.t=XH.prototype;_.t.computePreselectedOption=function(W,l){return l===this.itemSelected_?W:void 0};
_.t.dataChanged_=function(){var W=this;this.preselectedSubreason=this.itemSelected_=-1;var l;(l=this.data)!=null&&l.key&&_.V9(this,function(){var V,f=Number((V=W.data)==null?void 0:V.key);!Number.isNaN(f)&&(W.itemSelected_=f,V=(V=(W.data.items||[])[f])&&V.optionSelectableItemRenderer&&V.optionSelectableItemRenderer.preselectedIndex)&&(W.preselectedSubreason=V)})};
_.t.isSubReasonHidden_=function(W,l){return W!=l};
_.t.onTopItemSelected_=function(W,l){for(var V=_.GS(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),f=0,r=V.length;f<r;f++)V[f].select(0);_.Gt(this.hostElement,"yt-report-form-update",[l.item.value]);W.stopPropagation()};
_.t.onItemSelected_=function(W,l){_.Gt(this.hostElement,"yt-report-form-update",[l.item.value]);W.stopPropagation()};
_.t.getItem_=function(W){return W.serviceItem?W.serviceItem:W.navigationItem?W.navigationItem:W.optionSelectableItemRenderer?W.optionSelectableItemRenderer:null};
_.t.computeText_=function(W){return(W=this.getItem_(W))?this.ytRendererBehavior.getSimpleString(W.text):null};
_.t.validate=function(){return this.itemSelected_!==-1};
_.t.computeAriaLabel_=function(W){var l=_.dE(W.text);(W=W.accessibility&&W.accessibility.accessibilityData&&W.accessibility.accessibilityData.label)&&(l+=". "+W);return l};
_.t.computeItemSelected_=function(W){return W};
_.t.preventSelection_=function(W){W.stopPropagation();this.tooltipTapped=!0};
_.t.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.t.updateItemSelectedFromBinding=function(W){this.itemSelected_=W.detail.value};
_.t.save=function(){var W;this.validate()&&(W=this.data)!=null&&W.items&&(W=this.data.items[this.itemSelected_],W!=null&&W.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(W.optionSelectableItemRenderer.submitEndpoint)||_.pN(this.hostElement,[W.optionSelectableItemRenderer.submitEndpoint])))};
XH.prototype.onPaperRippleTransitionEnd_=XH.prototype.onPaperRippleTransitionEnd_;XH.prototype.dataChanged_=XH.prototype.dataChanged_;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],XH.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],XH.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],XH.prototype,"data",void 0);_.a([_.b({value:-1}),_.z("design:type",Number)],XH.prototype,"itemSelected_",void 0);
_.a([_.b({computed:"computeItemSelected_(itemSelected_)"}),_.z("design:type",Number)],XH.prototype,"value",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],XH.prototype,"restoreFocusOnClose",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],XH.prototype,"tooltipTapped",void 0);_.a([_.b({value:-1}),_.z("design:type",Number)],XH.prototype,"preselectedSubreason",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],XH.prototype,"dataChanged_",null);_.a([_.XI("transitionend"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],XH.prototype,"onPaperRippleTransitionEnd_",null);_.a([_.Vq({is:"yt-options-renderer",disableElementRegistration:!0})],XH);
_.Z(XH,"yt-options-renderer",function(){if(SJe===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;hrZ===void 0&&(hrZ=document.createElement("template"));var f=hrZ;V.call(l,f.content.cloneNode(!0),W.content.firstChild);SJe=W}W=SJe;return W},{mode:2});var E2Y;var $4H;var WSw;var ljw;var VFN;var fjw;var Tc=function(){return _.I.apply(this,arguments)||this};
_.v(Tc,_.I);Tc.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
Tc.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Tc.prototype.onTap=function(W){if(this.hostElement.classList.contains("selected")||_.Gt(this.hostElement,"yt-share-panel-can-select-contact-action")[0])W&&W.detail&&(W.detail.x||W.detail.y)&&_.GS(this.hostElement).querySelector("#target").blur(),(W=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),W={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:W?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.Gt(this.hostElement,"yt-share-panel-select-contact-action",[W])};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Tc.prototype,"ytRendererBehavior",void 0);_.a([_.b({observer:"onDataChanged"}),_.z("design:type",Object)],Tc.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.z("design:type",String)],Tc.prototype,"componentTitle",void 0);_.a([_.Aa("#thumbnail"),_.z("design:type",Object)],Tc.prototype,"thumbnail",void 0);_.a([_.Vq({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],Tc);
_.Z(Tc,"yt-enrolled-contact-renderer",function(){if(fjw===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;VFN===void 0&&(VFN=document.createElement("template"));var f=VFN;V.call(l,f.content.cloneNode(!0),W.content.firstChild);fjw=W}W=fjw;return W},{mode:2});var rY7;var RVN;var wz=function(){return _.I.apply(this,arguments)||this};
_.v(wz,_.I);wz.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
wz.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
wz.prototype.onTap=function(W){if(this.hostElement.classList.contains("selected")||_.Gt(this.hostElement,"yt-share-panel-can-select-contact-action")[0])W&&W.detail&&(W.detail.x||W.detail.y)&&_.GS(this.hostElement).querySelector("#target").blur(),(W=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),W={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:W?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.Gt(this.hostElement,"yt-share-panel-select-contact-action",[W])};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],wz.prototype,"ytRendererBehavior",void 0);_.a([_.b({observer:"onDataChanged"}),_.z("design:type",Object)],wz.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.z("design:type",String)],wz.prototype,"componentTitle",void 0);_.a([_.Aa("#thumbnail"),_.z("design:type",Object)],wz.prototype,"thumbnail",void 0);_.a([_.Vq({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],wz);
_.Z(wz,"yt-suggested-contact-renderer",function(){if(RVN===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;rY7===void 0&&(rY7=document.createElement("template"));var f=rY7;V.call(l,f.content.cloneNode(!0),W.content.firstChild);RVN=W}W=RVN;return W},{mode:2});var AF=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-share-panel-reset-action":"onReset"};return W};
_.v(AF,_.I);AF.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"}}}}}};
AF.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.Gt(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
AF.prototype.onReset=function(){for(var W=_.GS(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),l=W.length-1;l>=0;l--)W[l].classList.toggle("selected")};
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],AF.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b({observer:"onDataChanged"}),_.z("design:type",Object)],AF.prototype,"data",void 0);
_.a([_.Vq({is:"yt-contact-section-renderer",disableElementRegistration:!0})],AF);
_.Z(AF,"yt-contact-section-renderer",function(){if(ljw===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;WSw===void 0&&(WSw=document.createElement("template"));var f=WSw;V.call(l,f.content.cloneNode(!0),W.content.firstChild);ljw=W}W=ljw;return W},{mode:2});var QD=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return W};
_.v(QD,_.I);_.t=QD.prototype;_.t.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"}}}};
_.t.onYtRefreshFormCommand=function(W){var l;(W=_.k((l=_.k(W,_.IR$))==null?void 0:l.formRenderer,erc))&&this.set("data",W)};
_.t.reset=function(){var W=_.GS(this.hostElement).querySelector("#fields").children;W=_.L(W);for(var l=W.next();!l.done;l=W.next())l=l.value,l.reset&&l.reset()};
_.t.getForm=function(){var W={},l=_.GS(this.hostElement).querySelector("#fields").children;l=_.L(l);for(var V=l.next();!V.done;V=l.next()){V=V.value;if(!V.validate())return null;W[V.data.key]=V.value}return W};
_.t.submitFormFields=function(){if(this.fields)for(var W=_.L(this.fields),l=W.next();!l.done;l=W.next())l=l.value,l.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?l.save():l.nodeName==="YT-OPTIONS-RENDERER"&&l.save()};
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],QD.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],QD.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],QD.prototype,"data",void 0);_.a([_.Qb("#fields > *"),_.z("design:type",Array)],QD.prototype,"fields",void 0);
_.a([_.Vq({is:"yt-form-renderer",disableElementRegistration:!0})],QD);
_.Z(QD,"yt-form-renderer",function(){if($4H===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;E2Y===void 0&&(E2Y=document.createElement("template"));var f=E2Y;V.call(l,f.content.cloneNode(!0),W.content.firstChild);$4H=W}W=$4H;return W},{mode:2});var tFs;var Mm=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return W};
_.v(Mm,_.I);Mm.prototype.onCheckboxChange=function(W){this.data&&(W=(this.checked=_.Ja(W).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.tY().resolve(_.s6).resolveCommand(W,{form:{element:this.hostElement}})};
Mm.prototype.handleUpdateCheckboxCommand=function(W){(W=_.k(W,_.qrM))&&this.data&&this.data.id===W.id&&(this.set("data.disabled",W.disabled),this.set("data.title",W.title))};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Mm.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Mm.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Boolean)],Mm.prototype,"checked",void 0);_.a([_.A({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Mm);
_.Z(Mm,"ytd-settings-checkbox-renderer",function(){if(tFs!==void 0)return tFs;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return tFs=W},{mode:1});var s07;var ZZ=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return W};
_.v(ZZ,_.I);ZZ.prototype.dataChanged=function(){var W=this,l;return _.g(function(V){if(V.nextAddress==1)return W.radio.removeAttribute("checked"),!W.data||!W.data.id||W.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.Zp2()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(l=W.data&&W.data.id)?V.yield(aLN(W.data.id),4):V.jumpTo(3):(W.set("data.hidden",!0),V.jumpTo(0));V.nextAddress!=3&&(l=V.yieldResult);l&&_.Gt(W.hostElement,"yt-select-settings-radio-option",[W.data.id]);_.ju(V)})};
ZZ.prototype.onButtonChanged=function(W){_.Ja(W).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.tY().resolve(_.s6).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.Gt(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
ZZ.prototype.onSelectOption=function(W){this.data&&this.data.id&&(this.data.id===W?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
ZZ.prototype.dataChanged=ZZ.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ZZ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],ZZ.prototype,"ytActionHandlerBehavior",void 0);_.a([_.Aa("#radio"),_.z("design:type",Object)],ZZ.prototype,"radio",void 0);_.a([_.b(),_.z("design:type",Object)],ZZ.prototype,"data",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],ZZ.prototype,"dataChanged",null);_.a([_.A({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],ZZ);
_.Z(ZZ,"ytd-settings-radio-option-renderer",function(){if(s07!==void 0)return s07;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return s07=W},{mode:1});var LSc;var OW=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return W};
_.v(OW,_.I);
OW.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"}}}};
OW.prototype.handleUpdateTextCommand=function(W){(W=_.k(W,_.hd$))&&this.data&&this.data.id===W.id&&this.set("data",W)};
OW.prototype.handleUpdateConnectedAppRendererCommand=function(W){if(_.k(W,_.$X$)&&this.data){var l,V;if(W=(l=_.k(W,_.$X$))==null?void 0:(V=l.newConnectedAppRenderer)==null?void 0:V.connectedAppRenderer)this.data=W}};
OW.prototype.computeConnectedAppStyle=function(W){return W.style?W.style.toLowerCase().replace(/_/g,"-"):""};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],OW.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],OW.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],OW.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],OW.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.z("design:type",String)],OW.prototype,"connectedAppStyle",void 0);_.a([_.A({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],OW);
_.Z(OW,"ytd-connected-app-renderer",function(){if(LSc!==void 0)return LSc;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return LSc=W},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Ms("iuT5Oc");

_.Z1();
}catch(e){_._DumpException(e)}
try{
_.Ms("L3n37");
var Tv7=function(W){return W.watch.isLearningJourneyActive},wq7=_.GY(115994),ArI=_.GY(115993),Qoy=function(W,l,V){var f=this;
var r=V.dragDownAction;this.layer=0;this.JSC$23135_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return f.dragDownAction()}}}};
this.JSC$23135_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return f.dragDownAction()}}}};
this.fullscreen=!1;var R=_.Qq();_.zP(R,wq7,this.layer);_.zP(R,ArI,this.layer);this.dragDownAction=function(){r();_.R$(R,{visualElement:f.fullscreen?wq7:ArI})};
this.gesture=new _.Z2(W,l,this.JSC$23135_watchConfig,"pandown");this.attach()};
Qoy.prototype.attach=function(){this.gesture.attach()};
Qoy.prototype.detach=function(){this.gesture.detach()};
Qoy.prototype.update=function(W){this.fullscreen=W;this.gesture.config=W?this.JSC$23135_watchFullScreenConfig:this.JSC$23135_watchConfig};var MCI=function(W){_.aE.call(this);var l=this;this.rootElement=W;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return l.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(V){l.initOrDisposeActiveModules(V)}));
this.onAttached()};
_.v(MCI,_.aE);_.t=MCI.prototype;_.t.getRoot=function(){return this.rootElement};
_.t.getElement=function(W){return this.rootElement.getElement(W)};
_.t.setPlayerResponse=function(W){this.playerResponse=W;this.publish("PLAYER_RESPONSE_UPDATED",W)};
_.t.getPlayerResponse=function(){return this.playerResponse};
_.t.setWatchNextResponse=function(W){this.watchNextResponse===W?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=W,this.publish("WATCH_NEXT_RESPONSE_UPDATED",W))};
_.t.getWatchNextResponse=function(){return this.watchNextResponse};
_.t.registerActionHandler=function(W,l){var V=this;if(_.U("web_watch_controller_reg_multiple_handlers_killswitch")){var f={};_.qJ(_.eC.getInstance(),(f[W]=l,f),this.getRoot())}else this.actionHandlers.has(W)||(this.actionHandlers.set(W,[]),f={},_.qJ(_.eC.getInstance(),(f[W]=function(){var r=_.xk.apply(0,arguments);return(V.actionHandlers.get(W)||[]).map(function(R){return R.apply(null,_.QK(r))})},f),this.getRoot())),this.actionHandlers.get(W).push(l)};
_.t.unregisterActionHandler=function(W){if(_.U("web_watch_controller_reg_multiple_handlers_killswitch")){var l={};_.EL(_.eC.getInstance(),(l[W]=!0,l),this.getRoot())}else(l=this.actionHandlers.get(W))?(l.pop(),l.length===0&&(l={},_.EL(_.eC.getInstance(),(l[W]=!0,l),this.getRoot()),this.actionHandlers.delete(W))):_.Qe(new _.bP("Attempted to unregister an action handler which is not registered.",W))};
_.t.addPageDisposeJob=function(W){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.vzF(this.rootElement.pageDisposeJobs,W)};
_.t.removePageDisposeJob=function(W){this.rootElement.pageDisposeJobs&&_.aY(this.rootElement.pageDisposeJobs,W)};
_.t.dispatchEvent=function(W,l){_.FN(this.rootElement,W,l)};
_.t.provideRenderingData=function(W,l){this.rootElement.provideRenderingData(W,l)};
_.t.scrollWatchTo=function(W,l){var V;(V=this.watchScrollManager)==null||V.scrollWatchTo(W,l)};
_.t.focusOnPlayer=function(){var W=this.getElement("PLAYER");_.V9(W,function(){if(W&&W.firstElementChild){var l=W.querySelector(".html5-video-player");l&&(_.XK(_.tY().resolve(_.OZ)),l.focus())}else _.Qe(Error("Qo"))})};
var ZSI=function(W){var l=!!W.rootElement.theater,V=!!W.rootElement.fullscreen,f;(f=W.watchCinematicManager)==null||_.cYI(f,V,l)};
_.t=MCI.prototype;_.t.subscribeToActiveChanged=function(W,l){l=l===void 0?!0:l;var V=_.Eb(_.DJ(),Tv7,function(f){W(f)});
l&&W(Tv7(_.DJ().getState()));return V};
_.t.isActive=function(){return Tv7(_.DJ().getState())};
_.t.onAttached=function(){var W=_.U("external_fullscreen");_.U("use_unified_flag_accessor")&&(W=_.tY().resolve(_.Zc7).retriever.getFlag(_.A4B));(W||_.ZL("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.t.initPersistentModules=function(){if(_.U("kevlar_watch_flexy_theater_manager")){var W=new _.ZpM(this);_.vt(this,W)}W=new _.pAM(this);_.vt(this,W);W=new _.mo(this);_.vt(this,W);W=new _.KSa(this);_.vt(this,W);W=new _.rvX(this);_.vt(this,W);W=new _.XB(this);_.vt(this,W);_.U("kevlar_watch_flexy_playlist_manager")&&(W=new _.slk(this),_.vt(this,W))};
_.t.initOrDisposeActiveModules=function(W){W?(this.watchScrollManager=new _.QV(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.zVI(this)),this.activeModules.push(new _.azv(this)),this.activeModules.push(new _.CiI(this)),this.activeModules.push(new _.wAI(this)),_.U("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.eae(this)),this.activeModules.push(new _.hVv(this)),_.U("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.B8I(this)),
_.U("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.fjX(this)),_.U("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.LSa(this),this.activeModules.push(this.watchCinematicManager),ZSI(this)),_.U("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Wu$(this)),_.U("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.G47(this)),W=_.U("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.U("kevlar_watch_flexy_comments_manager")&&
!W&&this.activeModules.push(new _.ULk(this)),_.U("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.ti7(this)),this.activeModules.push(new _.qJk(this)),this.activeModules.push(new _.Y6k(this)),_.U("web_enable_timely_actions")&&this.activeModules.push(new _.$4I(this)),_.U("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.k3a(this)),_.U("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.n2P(this)),_.U("web_fullscreen_components")&&
this.activeModules.push(new _.EW$(this)),_.U("web_player_rtr_ctrls")&&this.activeModules.push(new _.HpO(this))):(_.y7(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.t.disposeInternal=function(){_.aE.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.rc.Object.defineProperties(MCI.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var OSP={},axP=["learning-journey-engagement-panel","PAlearning_chat"];
OSP.YtdLearningJourneyWatchBehavior=[_.q.YtRendererBehavior,_.by.YtPlayerListenerBehavior,_.Ap.YtRendererstamperBehavior,_.hp.YtActionHandlerBehavior,_.LY.YtPageBehavior,_.qq.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 _.ZL("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.U("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 _.ZL("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 _.U("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.U("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 _.yS("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.yS("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!_.U("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.U("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 _.U("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("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 _.U("web_watch_rounded_player_large")||_.U("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 _.U("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.U("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("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 _.U("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.U("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:_.vN(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.vN(["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 W=this;this.watchController=void 0;this.pageDisposeJobs=[function(){W.showMetadataPlaceholder_()},
function(){_.U("web_watch_dont_clear_comments")||W.clearComments_()},
function(){W.clearPlayerAds_()},
function(){W.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;_.U("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.U("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.g_X(function(){return _.dH(W)},this.hostElement);
this.pageDisposeJobs.push(function(){W.youThereManager_.reset()});
_.U("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){W.resetFullerscreenEduButtonForNewPlayback_()}));
_.U("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.i9;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;_.U("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.U("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));_.U("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.mz(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(W){W&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:W}),W.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(W){_.U("kevlar_watch_flexy_theater_manager")&&(this.theater=W,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.U("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(W){!_.U("kevlar_watch_while_v2")&&!_.U("web_watch_pip")||W||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(W){this.active!==void 0&&(this.fullscreen=W,_.U("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(W){this.active!==void 0&&(_.FN(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.U("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(W>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(W){this.initCsi_();this.updatePageData_(W)},
updatePageData_:function(W){var l=this;if(W)if(this.data===W){this.onPageLoadWithSameData_();var V;(V=this.watchController)==null||V.setWatchNextResponse(this.data)}else this.data=W;this.playlist&&_.Sy({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Wy("nw");this.loading=!1;_.pS(_.w8,function(){l.initDclkstatus_();var f,r=((f=l.player)==null?void 0:f.getVideoData().cpn)||"";_.qwM(function(R,y){_.ecL(R,y,r)})})},
onPageLoadWithSameData_:function(){_.U("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 W=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!W);this.set("loadingData.playlistLoading",W&&W!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),W=this.watchNextSkeletonEl_.firstElementChild;W;)W.classList.remove("hidden"),W=W.nextElementSibling;var l,V,f;W=(l=this.loadingData)==null?void 0:(V=l.endpoint)==null?void 0:(f=V.watchEndpoint)==null?void 0:f.videoId;var r;W&&(r="https://i.ytimg.com/vi/"+W+"/frame0.jpg");_.GS(this.hostElement).querySelector("#player").style.backgroundImage=r?"url("+r+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var W=_.GS(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&W&&(W.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var l,V;(V=(l=this.watchMetadata).updateSentimentBarWidth)==
null||V.call(l);var f,r;(r=(f=this.watchMetadata).resize)==null||r.call(f)}_.GS(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(W){var l=_.GS(this.hostElement).querySelector(W);l?_.Hh(l,!1):_.Qe(new _.bP("Overscroll monitor not found for component: ",W))},
removeSplitScrollMouseTrap:function(W){var l=_.GS(this.hostElement).querySelector(W);l?_.KN(l):_.Qe(new _.bP("Disposal component for  overscroll monitoring not found: ",W))},
onLoadingChanged_:function(W){W?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(W){var l=this;W?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.w8.addLowPriorityJob(function(){l.onWindowResized_(_.zL(!0))})},
updateTheaterModeState_:function(W){if(!_.U("kevlar_watch_flexy_theater_manager")){W=W||this.fullWindowMode_;if(this.theater!==void 0||W)this.theater=W;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();W&&_.jwP()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var W=this.theater;_.U("external_fullscreen")&&this.fullscreen&&(W=!0);W=W?_.GS(this.hostElement).querySelector("#player-full-bleed-container"):_.GS(this.hostElement).querySelector("#player-container-inner");var l=this.getPlayerContainer(),V=_.U("kevlar_watch_while_v2")||_.U("web_watch_pip");l.parentElement!==W&&(V&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.dH(this).appendTo(W,l),W.appendChild(_.GS(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var W=this;return _.g(function(l){if(l.nextAddress==1)return l.yield(_.tY().resolve(_.Sl).deactivate(),2);W.updatePlayerLocation();_.ju(l)})},
updateCinematicsLocation:function(){var W=this.getElement("CINEMATICS");if(W){var l=this.getCinematicsLocationContainer();W.parentElement!==l&&l.appendChild(W);var V;(V=this.watchController)==null||ZSI(V)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.GS(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.GS(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(W,l){var V=document.documentElement.hasAttribute("dark"),f=V&&_.U("web_cinematic_theater_mode"),r=V&&_.U("web_cinematic_fullscreen");V=!V&&this.cinematicLightTheme;return W&&f||l&&r||(l||W)&&V},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var W;(W=this.watchController)==null||W.setWatchNextResponse(this.data);_.U("kevlar_watch_flexy_comments_manager")||this.initComments_();_.U("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.tY().resolve(_.dZ).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.U("web_watch_start_chat_in_theater_mode")){var l,
V,f;if((l=this.data)==null?0:(V=l.contents)==null?0:(f=V.twoColumnWatchNextResults)==null?0:f.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var r,R;((r=this.data)==null?0:(R=r.contents)==null?0:R.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(W){var l;(l=this.watchController)==null||l.setPlayerResponse(this.playerData);W&&W.playabilityStatus&&(l=this.isVideoPlayable_(W.playabilityStatus,this.getPlayerOverlays_(this.data)),W=this.isLiveStreamOffline_(W.playabilityStatus),l&&!W||_.V9(this,function(){_.Wy("pbu")}));
this.setPlayerAds_();_.bj(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(W){_.DJ().dispatch(_.GT({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));W?this.activate_():this.deactivate_()},
attached:function(){var W=this;this.watchController=new MCI(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.U("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var l=_.dH(this);_.U("kevlar_disable_prepare_player")||l.preparePlayer();_.U("kevlar_watch_flexy_playlist_manager")||_.tY().resolve(_.dZ).setPlayer(l);this.updatePageMediaQueries();l={"--ytd-watch-flexy-scrollbar-width":_.UW()+
"px"};!_.yS("kv_pl_mx_sz_ks")&&_.yS("kevlar_watch_max_player_width")&&(l["--ytd-watch-flexy-max-player-width-wide-screen"]=_.UFX+"px");_.yS("kevlar_watch_flexy_metadata_height")&&(l["--ytd-watch-flexy-space-below-player"]=_.ufy+"px");this.safeUpdateStyles(l);_.U("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new Qoy(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return W.onPlayerTouchPanDown_()}}));
_.U("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.GS(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var W=_.UW(),l=_.qb+W,V=l;this.fixedPanels&&(l+=_.DF7);var f=657+W;W=1327+W;_.GS(this.hostElement).querySelector("#two-column-query").query="(min-width: "+l+"px)";_.GS(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(f+"px), (min-height: 630px) and (min-width: ")+(l+"px) and (max-width: ")+(W+"px)");_.GS(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(W+"px)");
_.GS(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+V+"px)"},
calculateCurrentPlayerSize_:function(){var W=_.GS(this.hostElement).querySelector("#miniplayer-bar").firstChild;return W&&W.active||this.theater||_.U("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.p5(NaN,NaN):_.WyP(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.WyP(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Ls(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var W=this;this.onWindowResized_(_.zL());_.U("browse_skeleton_removal_on_watch_killswitch")||_.ZL("IS_SHELL_LOAD")&&_.gew();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var l=_.dH(this);l.addEventListener("yt-player-updated",_.mz(this,this.onPlayerUpdated_));l.getPlayerPromise().then(function(V){W.playerApiReady_(V)});
_.U("kevlar_watch_flexy_playlist_manager")||(l=_.tY().resolve(_.dZ),_.U("kevlar_watch_observe_playlist_navigations_killswitch")&&l.addEventListener("yt-navigate",_.mz(this,this.onYtNavigate_)),l.setPlaylistComponent(_.GS(this.hostElement).querySelector("#playlist")),l.addEventListener("yt-playlist-data-updated",_.mz(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.w8.addLowPriorityJob(function(){_.FN(W.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.dH(this).removeEventListener("yt-player-updated",_.mz(this,this.onPlayerUpdated_));if(!_.U("kevlar_watch_flexy_playlist_manager")){var W=_.tY().resolve(_.dZ);_.U("kevlar_watch_observe_playlist_navigations_killswitch")&&W.removeEventListener("yt-navigate",_.mz(this,this.onYtNavigate_));W.cancelVideoSkip();W.removeEventListener("yt-playlist-data-updated",_.mz(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.U("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.FN(this.hostElement,"yt-autonav-pause-player",!1);W=_.ku();_.U("kevlar_exit_fullscreen_leaving_watch")&&W&&_.vh(W)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(W){this.player&&this.player.updateVideoData({rvs:W.rvs})},
getPageContents:function(W){return W&&W.contents&&W.contents.twoColumnWatchNextResults&&W.contents.twoColumnWatchNextResults.results&&W.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(W){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W)},
onRetrieveLocation_:function(W,l){l.hasComments?l.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):l.locationRetrieved("/related_ajax",void 0);W.stopPropagation()},
onSubscriptionChanged_:function(W,l){this.player&&(l?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.Uuw("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.GS(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.GS(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(W){this.player=W;this.setPlayerState(W.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.U("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.U("kevlar_unified_player")||_.U("kevlar_player_new_bootstrap_adoption"))&&_.l4()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(W,l){l=l===void 0?!0:l;_.ku()&&_.U("external_fullscreen")&&_.vh(document.documentElement);this.theaterRequested_=W;l&&_.HA("wide",W?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.U("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.Gt(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.FN(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(W){_.MJ(W,typeof this.player),this.player&&_.MJ(W,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var W;((W=this.player)==null?0:W.isFullscreen())?this.player.toggleFullscreen():_.Gt(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(W,l){return this.loading?l:!!Object.keys(W).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(W){if(W){W=_.L(W);for(var l=W.next();!l.done;l=W.next())l=l.value,l.youThereRenderer&&_.CTP(this.youThereManager_,l.youThereRenderer)}},
setPlaylistData_:function(W){return W||{}},
userEngagementConfigDataChanged_:function(W){if(W)if(W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var l=this.youThereManager_;_.sL()<W.lowEngagementThresholdMs||_.JrP(l,!0)}else W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Gt(this.hostElement,"yt-autonav-pause-user-engagement",[W])},
isPlayerUnavailable_:function(W,l,V){return!!W&&!this.isVideoPlayable_(W,V)&&!l},
getPlayerOverlays_:function(W){return(W==null?void 0:W.playerOverlays)||null},
isVideoPlayable_:function(W,l){if(!W)return!1;var V=W.status==="OK"||W.status==="LIVE_STREAM_OFFLINE",f=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",W)||this.get("errorScreen.ypcTrailerRenderer",W);W=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",W);var r;l=l==null?void 0:(r=l.playerOverlayRenderer)==null?void 0:r.gatedActionsOverlayRenderer;return!!V||!!f||!!W||!!l},
hasWatchNextResponseErrorRenderer:function(W){var l=this.getPageContents(W),V,f,r,R,y;return!(W==null?0:(V=W.contents)==null?0:(f=V.twoColumnWatchNextResults)==null?0:f.secondaryResults)&&!!((r=l[0])==null?0:(R=r.itemSectionRenderer)==null?0:(y=R.contents[0])==null?0:y.backgroundPromoRenderer)},
isLiveStreamOffline_:function(W){return W?W.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(W,l,V){var f=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",l),r=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];r=_.U("web_no_skip_video_on_verification_checks")?(W==null?void 0:W.status)&&r.includes(W.status):W&&W.status==="AGE_CHECK_REQUIRED";var R=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",W);R==void 0&&(R=!0);!V||this.isVideoPlayable_(W,this.getPlayerOverlays_(l))||
f||r||!R||_.tY().resolve(_.dZ).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.VCk()},
onPlayerFeedbackStartRequest_:function(W){_.Gt(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:W}])},
onPlayerFeedbackArticleRequest_:function(W){_.Gt(this.hostElement,"yt-help-dialog-requested",[W])},
onPlayerYpcContentRequest_:function(){var W,l,V,f,r,R,y,P,n=((W=this.data)==null?NaN:(l=W.contents)==null?NaN:(V=l.twoColumnWatchNextResults)==null?NaN:(f=V.secondaryResults)==null?NaN:(r=f.secondaryResults)==null?NaN:(R=r.offerModule)==null?NaN:(y=R.tvfilmOfferModuleRenderer)==null?NaN:(P=y.actionButtons)==null?NaN:P.length)-1;W=[".offerButton.buttonRenderer.",".actionButtons."+(n>=0?n:0)+".buttonRenderer."];l=_.L(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(V=l.next();!V.done;V=l.next())for(V=V.value,f=_.L(W),r=f.next();!r.done;r=f.next())if(r="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+V+r.value,r=this.get(r+"navigationEndpoint",this.data)||this.get(r+"serviceEndpoint",this.data)||this.get(r+"command",this.data)){_.XY(r,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(W){_.FN(this.hostElement,"yt-autonav-pause-player",W)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(W){W()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.FN(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(W)},
setPlayerState:function(W){_.DJ().dispatch(_.bFv(W))},
onPlayerSubscribe_:function(W){_.Gt(this.hostElement,"yt-player-subscribe",[W])},
onPlayerUnsubscribe_:function(W){_.Gt(this.hostElement,"yt-player-unsubscribe",[W])},
onPlayerAdYtShowToast_:function(W){_.Gt(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:W.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(W){if(W)return W},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(W){return!_.U("web_watch_move_summary_to_sd")&&!!W},
computeWatchMetadataRefresh:function(){return _.U("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var W,l,V,f;this.watchNextSecondaryResults=(W=this.data)==null?void 0:(l=W.contents)==null?void 0:(V=l.twoColumnWatchNextResults)==null?void 0:(f=V.secondaryResults)==null?void 0:f.secondaryResults}},
setRichGridRendererData:function(W){this.richGridRendererData=W},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var W,l=(W=this.data)==null?void 0:W.engagementPanels;if(l==null?0:l.length){W=null;l=_.L(l);for(var V=l.next();!V.done;V=l.next()){V=V.value;var f=void 0;if(((f=V.engagementPanelSectionListRenderer)==null?void 0:f.targetId)==="engagement-panel-structured-description"){W=V;break}}var r,R,y;W=(r=W)==null?void 0:(R=r.engagementPanelSectionListRenderer)==null?void 0:(y=R.content)==null?void 0:y.structuredDescriptionContentRenderer;if(W==null?0:W.items){r=
[];R=_.L(W.items);for(y=R.next();!y.done;y=R.next()){y=y.value;if(!_.U("sd_horizontal_list_show_nav_killswitch")){var P=f=V=l=W=void 0,n=void 0,B=(W=y.horizontalCardListRenderer)==null?void 0:(l=W.header)==null?void 0:(V=l.richListHeaderRenderer)==null?void 0:(f=V.navigationButton)==null?void 0:(P=f.buttonRenderer)==null?void 0:(n=P.command)==null?void 0:n.commandExecutorCommand;B&&B.commands&&(B.commands=B.commands.filter(function(d){return!_.k(d,_.X$k)}))}y.expandableVideoDescriptionBodyRenderer||
y.videoDescriptionHeaderRenderer||r.push(y)}return{items:r}}}},
constructWarning_:function(W){return{text:_.Bl(W),type:"WARNING"}},
isPlaShelfEnabled_:function(W){if((this.get("adPlacements",W)||[]).length)return!0;W=this.get("playerAds",W)||[];return!(!W.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",W[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var W=this;_.FN(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var l=this.getScrollTop()>0;this.gestures_&&(l?this.gestures_.detach():this.gestures_.attach());l!==this.showFullerscreenEdu_&&_.U("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=l,_.dH(this).getPlayerPromise().then(function(V){V.updateFullerscreenEduButtonVisibility(W.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.FN(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var W=this;this.commentsReady=!1;_.w8.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.pS(_.w8,function(){W.setComments_()},1E3)},
setComments_:function(){if(!_.U("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Wy("cmi");_.w8.cancelJob(this.setCommentsJobId_);var W=this.getPageContents(this.data);if(W&&W.length){W=_.L(W);for(var l=W.next();!l.done;l=W.next())if(l=l.value,this.get("itemSectionRenderer.sectionIdentifier",l)==="comment-item-section"){this.comments=l.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.FN(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.U("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.U("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Wy("cmc")},
doRemoveComments_:function(){this.comments={};_.U("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.w8.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.w8.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(W,l){var V=_.k(l.endpoint,_.Bh);V&&(!(l=this.get("data.currentVideoEndpoint.watchEndpoint"))||V.videoId!==l.videoId||V.playlistId&&V.playlistId!==l.playlistId||V.index!==void 0&&V.index!==l.index||typeof V.startTimeSeconds!=="number"||(W.stopPropagation(),this.setScrollTop(0),_.dH(this).getPlayerPromise().then(function(f){var r=V.startTimeSeconds;f.seekTo(r);f.wakeUpControls();r<f.getDuration()&&f.playVideo()})))},
updatePlayerStartTime_:function(){var W=_.MSy();"t"in W&&(W=_.lxP(W.t),this.player.seekTo(W,!0))},
updateTitleFromWatchNext:function(W){W=this.getPageContents(W);var l,V;(W=_.dE(W==null?void 0:(l=W[0])==null?void 0:(V=l.videoPrimaryInfoRenderer)==null?void 0:V.title))&&_.FN(this.hostElement,"yt-update-title",W)},
updateTitle_:function(W){W=this.get("videoDetails.title",W)||"";_.FN(this.hostElement,"yt-update-title",W)},
syncWithRemoteVideo_:function(W,l,V){if(this.active&&this.player){var f=this.player.getVideoData();if(f.video_id===V&&(V=f.list,_.U("polymer_enable_mdx_queue")&&V&&V.startsWith("RQ")&&(V=void 0),f.video_id!==W||V!=l)){var r;_.U("kevlar_player_watch_endpoint_navigation")?r=_.Zlx(_.hjM(W,l)):r=this.buildWatchEndpoint_(W,l);_.FN(this.hostElement,"yt-navigate",{endpoint:r,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(W,l,V){return _.vy(W,l,V)},
initDclkstatus_:function(){_.$ty()},
attachWatchPageSkeleton_:function(){var W=document.querySelector("#watch-page-skeleton");if(W){var l=W.querySelector("#primary-info"),V=W.querySelector("#secondary-info"),f=W.querySelector("#related");l&&_.GS(this.hostElement).querySelector("#info-skeleton").appendChild(l);V&&_.GS(this.hostElement).querySelector("#meta-skeleton").appendChild(V);f&&(_.GS(this.hostElement).querySelector("#related-skeleton").appendChild(f),this.watchNextSkeletonEl_=f);_.bI(W)}},
handlePlayerUpdated_:function(){_.dH(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(W,l){if(this.watchNextSkeletonEl_&&typeof l!=="undefined"){var V=this.watchNextSkeletonEl_.children,f=W&&W.indexSplices.length?W.indexSplices[0].index:0;W=Math.min(this.watchNextShownItems.length,V.length);l||(f=0,W=V.length);for(l=f;l<W;l++)V[l].classList.add("hidden")}},
onPlayerFullscreenChange_:function(W){_.U("external_fullscreen")||_.Gt(this.hostElement,"yt-player-fullscreen",[W.fullscreen])},
onFullscreenChange_:function(W){this.fullscreen=W;this.gestures_&&this.gestures_.update(this.fullscreen);var l=_.dH(this);l.getPlayerPromise().then(function(V){V.setFauxFullscreen(!!_.ku())});
this.updateFullBleedElementLocations();W&&(l.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(W,l){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!l},
computeIsDonationShelfCollapsed_:function(W){return W},
computeShouldShowMerchShelf:function(W,l){return l&&!!W},
computeResponseHasComments:function(W){var l,V,f,r,R;return!!(W==null?0:(l=W.contents)==null?0:(V=l.twoColumnWatchNextResults)==null?0:(f=V.results)==null?0:(r=f.results)==null?0:(R=r.contents)==null?0:R.some(function(y){var P;return(y==null?void 0:(P=y.itemSectionRenderer)==null?void 0:P.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(W,l){this.responseHasComments=this.computeResponseHasComments(this.data);return!!W&&!!Object.keys(W).length&&!l},
identity:_.wS,onWindowResized_:function(W){this.windowSize_=W;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.U("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.U("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(W){var l=this;W&&W.type!=="dataloaded"&&W.type!=="dataupdated"||_.dH(this).getPlayerPromise().then(function(V){var f=V.getPlayerState();f!==5&&f!==0&&(V=1/V.getVideoAspectRatio(),l.videoHeightToWidthRatio_!==V&&(l.videoHeightToWidthRatio_=V))})},
schedulePlayerSizeUpdate_:function(W){var l=this,V=_.U("kevlar_watch_while_v2")||_.U("web_watch_pip"),f=function(){if(l.watchMetadata){var r,R;(R=(r=l.watchMetadata).resize)==null||R.call(r)}_.dH(l).getPlayerPromise().then(function(y){if(_.U("kevlar_set_internal_player_size")){if(!V||!l.isMiniplayerActive()){var P=l.calculateCurrentPlayerSize_();y.setInternalSize(P.width,P.height)}}else y.setSize(NaN,NaN);_.U("kevlar_watch_while")&&l.updateWatchWhileScrollThreshold_()})};
W?f():_.Kt(_.w8,f)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(W){this.set("data.survey",W.detail)},
onYtShowSurveyCommand_:function(W){this.set("data.survey",_.k(W,_.yrX).survey)},
onDownloadedVideoDeleted:function(W){var l=this,V,f;return _.g(function(r){if(r.nextAddress==1){if(!l.active||(V=l.playerData)==null||!V.offlineState||l.videoId!==W)return r.return();(f=l.player)==null||f.stopVideo();_.hJ().navigatingAwayFromWatchDeletedVideo=!0;_.XY(_.TfY,l.hostElement);return r.yield(_.hJ().navigationFinishPromise,2)}_.hJ().navigatingAwayFromWatchDeletedVideo=!1;_.ju(r)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var W;this.theater?W=_.xP(.5625*this.windowSize_.width,480,this.windowSize_.height-185):W=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==W&&(this.watchWhileScrollThreshold_=W,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var W=_.GS(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&W){var l=this.windowSize_.height>=624,V=this.active?this.getScrollTop():0;!W.active&&l&&V>=this.watchWhileScrollThreshold_?(W.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):W.active&&(!l||V<this.watchWhileScrollThreshold_&&!_.ku())&&(W.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(W,l){if(W!==!0||l!==void 0){W=!_.U("live_chat_over_engagement_panels");l=_.GS(this.hostElement).querySelector("#chat-container");var V=_.GS(this.hostElement).querySelector("#plj-sidebar"),f=_.GS(this.hostElement).querySelector("#panels"),r=_.GS(this.hostElement).querySelector("#plj-panels"),R=_.GS(this.hostElement).querySelector("#plj-playlist"),y=_.GS(this.hostElement).querySelector("#alerts"),P=_.GS(this.hostElement).querySelector("#playlist"),n=_.GS(this.hostElement).querySelector("#related"),
B=_.GS(this.hostElement).querySelector("#donation-shelf"),d=_.GS(this.hostElement).querySelector("#comments");this.isTwoColumns_?(y=_.GS(this.hostElement).querySelector("#secondary-inner"),y.appendChild(V),V.appendChild(R),R.appendChild(P),V.appendChild(r),W&&y.appendChild(f),_.U("web_watch_theater_chat")||y.appendChild(l),W||y.appendChild(f),y.appendChild(B),y.appendChild(n)):(W&&_.Sg(f,y),_.Sg(P,y),_.U("web_watch_theater_chat")||_.Sg(l,y),W||_.Sg(f,y),_.Sg(B,y),d&&(r&&_.Sg(r,d),_.Sg(n,d)));_.U("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.U("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.U("web_watch_theater_chat")){var W=_.GS(this.hostElement).querySelector("#chat-container"),l=this.theater&&!this.fullscreen||_.U("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&l?_.U("web_watch_theater_chat_beside_player")?(l=_.GS(this.hostElement).querySelector("#panels-full-bleed-container"),(W==null?void 0:W.parentElement)!==l&&l.append(W),this.panelsBesidePlayer=!0):_.U("web_watch_theater_fixed_chat")&&
(l=_.GS(this.hostElement).querySelector("#columns"),(W==null?void 0:W.parentElement)!==l&&l.append(W),this.fixedPanels=!0):(_.U("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.U("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),l=_.GS(this.hostElement).querySelector("#playlist"),W&&l?_.Ed(W,l):_.Qe(new _.bP("Missing element when updating chat location",{"chatContainer defined":!!W,"playlist defined":!!l})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(W,l){return _.U("sw_metadata_vis_toggle_ks")?!0:!!W||!!l},
computeForceDarkPanelTheme:function(W){return _.U("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&W:!1},
safeUpdateStyles:function(W){try{_.I1(this.hostElement,W)}catch(l){_.Qe(l)}},
videoHeightToWidthRatioChanged_:function(W,l){l&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.U("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(W){this.videoHeightToWidthRatio_=1/W},
computeIsVerticalVideo_:function(W){return W>=1},
computeIsFourThreeToSixteenNineVideo_:function(W){return W<=.7501&&W>=.5624},
computeIsExtraWideVideo_:function(W){return W<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.dH(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.dH(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.DJP(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(W){var l=_.YC(W)||0;_.N5(W,l+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var W=_.YC("yt-fullerscreen-edu-button-click-count")||0,l=_.YC("yt-fullerscreen-edu-button-shown-count")||0,V=_.yS("external_fullscreen_button_shown_threshold"),f=W>=_.yS("external_fullscreen_button_click_threshold")||l>=V;_.dH(this).getPlayerPromise().then(function(r){r.updateFullerscreenEduButtonSubtleModeState(f)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(W,l){return l},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.tY().resolve(_.dZ).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var W=this;this.panelMaxHeightUpdateJob_&&_.w8.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.w8.addLowPriorityJob(function(){W.panelMaxHeightUpdateJob_=0;var l;!W.isTwoColumns_||W.theater||W.fullscreen?l=460:l=W.calculateNormalPlayerSize_().height;var V=l+"px";_.U("live_chat_taller_height")&&!W.theater&&(V="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.U("live_chat_medium_height")&&
!W.theater&&(V="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.U("live_chat_scaled_height")&&!W.theater&&(V="calc(100vh - var(--ytd-toolbar-height) - 238px)");W.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":l+"px","--ytd-watch-flexy-chat-max-height":V,"--ytd-watch-flexy-structured-description-max-height":l+"px","--ytd-watch-flexy-comments-panel-max-height":l+"px","--ytd-comments-engagement-panel-content-height":l+"px"})})},
onYtShowEngagementPanelScrimAction_:function(W){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",W)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.og(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(W){var l=_.GS(this.hostElement).querySelector("#engagement-panel-scrim");W?l.addEventListener("tap",_.mz(this,this.onEngagementPanelScrimClick_)):l.removeEventListener("tap",_.mz(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(W){if(this.hostElement.contains(W)&&!this.scrollToAnimation_.isAnimating()){var l=W.offsetTop-24;W=W.offsetTop+W.offsetHeight+24;var V=this.getPageScrollingElement(),f=this.getScrollTop(),r=f+V.clientHeight-56;if(l<f+56)l-=56;else if(W>r)l=W-V.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,l),500)}},
onYtSignalActionScrollToComments:function(){var W=this.hostElement.querySelector("#comments");if(W&&!this.scrollToAnimation_.isAnimating()){W=W.offsetTop-56-24;if(_.U("kevlar_comment_teaser_scroll_to_midpoint")&&(W-=_.oU().height/3,W<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtEngagementPanelVisibleChanged:function(W,l,V){this.active&&this.trackEngagementPanelVisibility&&!_.soI.includes(V)&&(l==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(V),l!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&l!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(V),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(W){return W?"":"watch-active-metadata"},
computeNewMetadataClass:function(W){return W?"watch-active-metadata":""},
computeFullBleedPlayer:function(W,l){return W||l},
computeDefaultLayout:function(W){return!W},
computeDefaultTwoColumnLayout:function(W,l){return!W&&l},
computeWatchWhilePanelsActive:function(W,l){return W||l},
computeNoBorderOnChat:function(W){return _.U("web_watch_theater_chat_no_border")&&W},
computeLiveChatPresentAndExpanded:function(W,l){return W&&!l},
computePanelExpanded:function(W,l,V){return W||l||V},
onChangeMarkersVisibility:function(W){_.dH(this).getPlayerPromise().then(function(l){var V;(V=l.changeMarkerVisibility)==null||V.call(l,_.k(W,_.zg).isVisible||!1,_.k(W,_.zg).entityKeys||[],_.k(W,_.zg).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(W){this.liveChatCollapsed=W.detail;_.DJ().dispatch(_.tCX(W.detail))},
provideRenderingData:function(W,l){switch(W){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=l;break;case "PRIMARY_INFO":_.U("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=l);this.videoPrimaryInfoRendererValue=l==null?void 0:l.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.U("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=l);this.videoSecondaryInfoRendererValue=l==null?void 0:l.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
l;break;case "CLARIFICATION":this.clarifyBoxValue=l;break;case "LIVE_CHAT":this.conversationBar=l;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=l;break;case "PLAYLIST":this.externalPlaylistData_=l!=null?l:{};break;case "MERCH_SHELF":this.merchShelfValue=l==null?void 0:l.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=l;break;case "OFFER_MODULE":this.offerModule=l;break;case "LIMITED_STATE":this.limitedStateValue=l;break;case "DONATION_SHELF":this.donation=l;break;
case "ALERTS":this.alertsValue=l;break;case "COMMENTS":this.comments=l;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=l;break;case "ENGAGEMENT_PANELS":this.engagementPanels=l;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=l;break;case "RICH_GRID_RENDERER":this.richGridRendererData=l;break;case "EXPANDABLE_METADATA":this.expandableMetadata=l;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=l}},
toggleCinematicsActive:function(W){this.cinematicsActive=W},
isMiniplayerActive:function(){return _.tY().resolve(_.Sl).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(W){return axP.map(function(l){return W.find(function(V){var f;return(V==null?void 0:(f=V.engagementPanelSectionListRenderer)==null?void 0:f.targetId)===l})}).filter(function(l){return l!==void 0})},
getNonLearningJourneyEngagementPanels:function(W){return W.filter(function(l){var V;return!axP.includes((l==null?void 0:(V=l.engagementPanelSectionListRenderer)==null?void 0:V.targetId)||"")})}}];var zXX;var $n=function(){var W=_.I.apply(this,arguments)||this;W.flexy=!0;W.learningJourney=!0;W.roundedInfoPanel=!0;W.viewTransitionEnabled=_.U("enable_player_resize_transition");W.smallerChatMinHeight=_.U("live_chat_smaller_min_height");W.cinematicTheaterMode=_.U("web_cinematic_theater_mode");W.transparentTheaterMode=_.U("web_transparent_theater_mode");W.cinematicFullscreen=_.U("web_cinematic_fullscreen");W.useLargerMaxPlayerValue=_.U("kevlar_flexy_use_larger_player_value");W.cinematicFullscreenV2=_.U("web_cinematic_fullscreen_v2");
W.isDarkTheme=document.documentElement.hasAttribute("dark");W.theaterLargerPlayer=_.U("web_watch_theater_larger_player");W.defaultCollapsePlaylist=_.U("web_watch_default_collapse_playlist");W.enableCanvasLayout=_.U("web_enable_canvas_on_learning_journey");return W};
_.v($n,_.I);_.t=$n.prototype;_.t.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.t.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.t.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.t.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.t.ready=function(){var W=this,l=function(){W.onColumnScroll()};
this.primary.addEventListener("scroll",l);this.secondary.addEventListener("scroll",l)};
_.t.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.t.updateIsTwoColumnsFromBinding=function(W){_.U("web_watch_update_narrow_width_killswitch")||_.DJ().dispatch(_.p$e(!W.detail.value));this.ytdWatchBehavior.isTwoColumns_=W.detail.value};
_.t.updateFlexySmallWindowFromBinding=function(W){this.ytdWatchBehavior.flexySmallWindow_=W.detail.value};
_.t.updateFlexyLargeWindowFromBinding=function(W){this.ytdWatchBehavior.flexyLargeWindow_=W.detail.value};
_.t.updateWatchWhileWindowSizeSufficientFromBinding=function(W){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=W.detail.value};
_.t.updateWatchNextCanShowMoreFromBinding=function(W){this.ytdWatchBehavior.watchNextCanShowMore=W.detail.value};
_.t.updateShownItemsFromBinding=function(W){W.detail.path?this.set(W.detail.path,W.detail.value):this.ytdWatchBehavior.watchNextShownItems=W.detail.value};
_.t.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23144_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23144_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.rc.Object.defineProperties($n.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 W;if((W=this.data)==null||!W.pageVisualEffects)return!1;for(var l=0;l<this.data.pageVisualEffects.length;l++)if(W=_.k(this.data.pageVisualEffects[l],_.RN))return l=void 0,(l=W.config)==null?void 0:l.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.learningJourneyEngagementPanels)==null?void 0:W.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var W,l=(W=this.learningJourneyEngagementPanels)==null?void 0:W.find(function(D){var u;return(D==null?void 0:(u=D.engagementPanelSectionListRenderer)==null?void 0:u.panelIdentifier)==="learning-journey-engagement-panel"});
if(l){var V,f,r,R,y,P,n,B,d;if(W=(B=((n=(y=((R=l==null?void 0:(V=l.engagementPanelSectionListRenderer)==null?void 0:(f=V.content)==null?void 0:(r=f.sectionListRenderer)==null?void 0:r.contents)!=null?R:[])[0])==null?void 0:(P=y.itemSectionRenderer)==null?void 0:P.contents)!=null?n:[])[0])==null?void 0:(d=B.accordionViewModel)==null?void 0:d.onTitleTap){var J=_.fP(W);if(J)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.mK.instance.resolveCommand(J)}}}}}}});
_.rc.Object.defineProperties($n,{template:{configurable:!0,enumerable:!0,get:function(){if(zXX===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);zXX=W}W=zXX;return W}}});
$n.prototype.updateMiniplayerIsActiveValue=$n.prototype.updateMiniplayerIsActiveValue;$n.prototype.updateScrollTopValue=$n.prototype.updateScrollTopValue;$n.prototype.updateFullscreenValue=$n.prototype.updateFullscreenValue;$n.prototype.updateTheaterValue=$n.prototype.updateTheaterValue;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],$n.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],$n.prototype,"ytComponentBehavior",void 0);
_.a([_.F(OSP.YtdLearningJourneyWatchBehavior),_.z("design:type",Object)],$n.prototype,"ytdWatchBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],$n.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],$n.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],$n.prototype,"playerData",void 0);_.a([_.b(),_.z("design:type",Object)],$n.prototype,"browseData",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],$n.prototype,"flexy",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],$n.prototype,"learningJourney",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],$n.prototype,"roundedInfoPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],$n.prototype,"viewTransitionEnabled",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],$n.prototype,"smallerChatMinHeight",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],$n.prototype,"cinematicTheaterMode",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],$n.prototype,"transparentTheaterMode",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],$n.prototype,"cinematicFullscreen",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],$n.prototype,"useLargerMaxPlayerValue",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],$n.prototype,"cinematicFullscreenV2",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],$n.prototype,"isDarkTheme",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],$n.prototype,"theaterLargerPlayer",void 0);_.a([_.b(),_.z("design:type",Object)],$n.prototype,"defaultCollapsePlaylist",void 0);_.a([_.b(),_.z("design:type",Object)],$n.prototype,"enableCanvasLayout",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("playerData","browseData","enableCanvasLayout"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$n.prototype,"showBrowseResponse",null);_.a([_.b({reflectToAttribute:!0}),_.G("playerData","enableCanvasLayout"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$n.prototype,"showWatchResponse",null);_.a([_.b({selector:_.h2}),_.z("design:type",Object)],$n.prototype,"theaterValue",void 0);
_.a([_.b({selector:_.S1}),_.z("design:type",Object)],$n.prototype,"fullscreenValue",void 0);_.a([_.b({selector:_.a7}),_.z("design:type",Object)],$n.prototype,"scrollTopValue",void 0);_.a([_.b({selector:_.l0}),_.z("design:type",Object)],$n.prototype,"miniplayerIsActiveValue",void 0);_.a([_.Aa("#ytd-plj-player"),_.z("design:type",HTMLElement)],$n.prototype,"ytdPlayer",void 0);_.a([_.Aa("#playlist"),_.z("design:type",HTMLElement)],$n.prototype,"JSC$23144_ytdPlaylistPanelRenderer",void 0);
_.a([_.OX("ytd-comments"),_.z("design:type",HTMLElement)],$n.prototype,"ytdComments",void 0);_.a([_.Aa("#primary"),_.z("design:type",HTMLElement)],$n.prototype,"primary",void 0);_.a([_.Aa("#secondary"),_.z("design:type",HTMLElement)],$n.prototype,"secondary",void 0);_.a([_.Aa("#player-container"),_.z("design:type",HTMLElement)],$n.prototype,"playerContainer",void 0);_.a([_.Aa("#cinematics"),_.z("design:type",HTMLElement)],$n.prototype,"JSC$23144_cinematics",void 0);
_.a([_.TS("theaterValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$n.prototype,"updateTheaterValue",null);_.a([_.TS("fullscreenValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$n.prototype,"updateFullscreenValue",null);_.a([_.TS("scrollTopValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$n.prototype,"updateScrollTopValue",null);
_.a([_.TS("miniplayerIsActiveValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$n.prototype,"updateMiniplayerIsActiveValue",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],$n.prototype,"cinematicLightTheme",null);_.a([_.b({reflectToAttribute:!0}),_.G("learningJourneyEngagementPanels"),_.z("design:type",Object),_.z("design:paramtypes",[])],$n.prototype,"hasLearningJourneyPanels",null);
_.a([_.G("learningJourneyEngagementPanels"),_.z("design:type",Object),_.z("design:paramtypes",[])],$n.prototype,"backButtonData",null);_.a([_.A({is:"ytd-watch-learning-journey"})],$n);_.ZI.registerService(_.IHx,$n);
_.Z1();
}catch(e){_._DumpException(e)}
try{
_.Ms("Tm0L3c");
var joO;var Ixk;var iSO=function(){return _.I.apply(this,arguments)||this};
_.v(iSO,_.I);_.a([_.A({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],iSO);
_.Z(iSO,"ytd-ghost-comments-renderer",function(){if(Ixk===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);Ixk=W}W=Ixk;return W},{mode:1});var mJI;var Xqk=function(){return _.I.apply(this,arguments)||this};
_.v(Xqk,_.I);_.a([_.A({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],Xqk);
_.Z(Xqk,"ytd-ghost-watch-metadata-renderer",function(){if(mJI===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);mJI=W}W=mJI;return W},{mode:1});var E4=function(){var W=_.I.apply(this,arguments)||this;W.ghostGridRenderer={rows:6};W.roundedInfoPanel=!0;W.hideOfferModules=!0;W.smallerChatMinHeight=_.U("live_chat_smaller_min_height");W.cinematicTheaterMode=_.U("web_cinematic_theater_mode");W.transparentTheaterMode=_.U("web_transparent_theater_mode");W.darkerPanels=_.U("web_watch_darker_panels");W.cinematicFullscreen=_.U("web_cinematic_fullscreen");W.cinematicFullscreenV2=_.U("web_cinematic_fullscreen_v2");W.isDarkTheme=document.documentElement.hasAttribute("dark");
return W};
_.v(E4,_.I);_.t=E4.prototype;_.t.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.t.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.t.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.t.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.t.ready=function(){var W=this,l=function(){W.onColumnScroll()};
this.primary.addEventListener("scroll",l);this.secondary.addEventListener("scroll",l)};
_.t.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.t.updateIsTwoColumnsFromBinding=function(W){this.ytdWatchBehavior.isTwoColumns_=W.detail.value};
_.t.updateFlexySmallWindowFromBinding=function(W){this.ytdWatchBehavior.flexySmallWindow_=W.detail.value};
_.t.updateFlexyLargeWindowFromBinding=function(W){this.ytdWatchBehavior.flexyLargeWindow_=W.detail.value};
_.t.updateWatchWhileWindowSizeSufficientFromBinding=function(W){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=W.detail.value};
_.t.updateWatchNextCanShowMoreFromBinding=function(W){this.ytdWatchBehavior.watchNextCanShowMore=W.detail.value};
_.t.updateShownItemsFromBinding=function(W){_.U("swatcheroo_direct_use_rich_grid")||(W.detail.path?this.set(W.detail.path,W.detail.value):this.ytdWatchBehavior.watchNextShownItems=W.detail.value)};
_.t.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23132_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23132_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.rc.Object.defineProperties(E4.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.pageVisualEffects)return!1;for(var l=0;l<this.data.pageVisualEffects.length;l++)if(W=_.k(this.data.pageVisualEffects[l],_.RN))return l=void 0,(l=W.config)==null?void 0:l.enableInLightTheme;return!1}}});
E4.prototype.updateMiniplayerIsActiveValue=E4.prototype.updateMiniplayerIsActiveValue;E4.prototype.updateScrollTopValue=E4.prototype.updateScrollTopValue;E4.prototype.updateFullscreenValue=E4.prototype.updateFullscreenValue;E4.prototype.updateTheaterValue=E4.prototype.updateTheaterValue;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],E4.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],E4.prototype,"ytComponentBehavior",void 0);
_.a([_.F(_.pqM.YtdWatchBehavior),_.z("design:type",Object)],E4.prototype,"ytdWatchBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],E4.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],E4.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],E4.prototype,"ghostGridRenderer",void 0);_.a([_.b(),_.z("design:type",Object)],E4.prototype,"playerData",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],E4.prototype,"roundedInfoPanel",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],E4.prototype,"hideOfferModules",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],E4.prototype,"smallerChatMinHeight",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],E4.prototype,"cinematicTheaterMode",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],E4.prototype,"transparentTheaterMode",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],E4.prototype,"darkerPanels",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],E4.prototype,"cinematicFullscreen",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],E4.prototype,"cinematicFullscreenV2",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],E4.prototype,"isDarkTheme",void 0);_.a([_.b({selector:_.h2}),_.z("design:type",Object)],E4.prototype,"theaterValue",void 0);
_.a([_.b({selector:_.S1}),_.z("design:type",Object)],E4.prototype,"fullscreenValue",void 0);_.a([_.b({selector:_.a7}),_.z("design:type",Object)],E4.prototype,"scrollTopValue",void 0);_.a([_.b({selector:_.l0}),_.z("design:type",Object)],E4.prototype,"miniplayerIsActiveValue",void 0);_.a([_.Aa("#ytd-player"),_.z("design:type",HTMLElement)],E4.prototype,"ytdPlayer",void 0);_.a([_.Aa("#playlist"),_.z("design:type",HTMLElement)],E4.prototype,"JSC$23132_ytdPlaylistPanelRenderer",void 0);
_.a([_.Aa("#ytd-comments"),_.z("design:type",HTMLElement)],E4.prototype,"ytdComments",void 0);_.a([_.Aa("#primary"),_.z("design:type",HTMLElement)],E4.prototype,"primary",void 0);_.a([_.Aa("#secondary"),_.z("design:type",HTMLElement)],E4.prototype,"secondary",void 0);_.a([_.Aa("#player-container"),_.z("design:type",HTMLElement)],E4.prototype,"playerContainer",void 0);_.a([_.Aa("#cinematics"),_.z("design:type",HTMLElement)],E4.prototype,"JSC$23132_cinematics",void 0);
_.a([_.TS("theaterValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],E4.prototype,"updateTheaterValue",null);_.a([_.TS("fullscreenValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],E4.prototype,"updateFullscreenValue",null);_.a([_.TS("scrollTopValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],E4.prototype,"updateScrollTopValue",null);
_.a([_.TS("miniplayerIsActiveValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],E4.prototype,"updateMiniplayerIsActiveValue",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],E4.prototype,"cinematicLightTheme",null);
_.Z(E4,"ytd-watch-grid",function(){if(joO===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);joO=W}W=joO;return W},{mode:2});_.ZI.registerService(_.jNU,E4);
_.Z1();
}catch(e){_._DumpException(e)}
try{
_.Ms("CF909");
var o_X;var Sw=function(){var W=_.I.apply(this,arguments)||this;W.flexy=!0;W.roundedInfoPanel=!0;W.viewTransitionEnabled=_.U("enable_player_resize_transition");W.smallerChatMinHeight=_.U("live_chat_smaller_min_height");W.cinematicTheaterMode=_.U("web_cinematic_theater_mode");W.transparentTheaterMode=_.U("web_transparent_theater_mode");W.cinematicFullscreen=_.U("web_cinematic_fullscreen");W.useLargerMaxPlayerValue=_.U("kevlar_flexy_use_larger_player_value");W.isDarkTheme=document.documentElement.hasAttribute("dark");
W.defaultCollapsePlaylist=_.U("web_watch_default_collapse_playlist");W.retroModeReduxValue=!1;return W};
_.v(Sw,_.I);_.t=Sw.prototype;_.t.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.t.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.t.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.t.updateRetroModeReduxValue=function(){_.U("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.t.ready=function(){var W=this,l=function(){W.onColumnScroll()};
this.primary.addEventListener("scroll",l);this.secondary.addEventListener("scroll",l)};
_.t.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.t.updateIsTwoColumnsFromBinding=function(W){_.U("web_watch_update_narrow_width_killswitch")||_.DJ().dispatch(_.p$e(!W.detail.value));this.ytdWatchBehavior.isTwoColumns_=W.detail.value};
_.t.updateFlexySmallWindowFromBinding=function(W){this.ytdWatchBehavior.flexySmallWindow_=W.detail.value};
_.t.updateFlexyLargeWindowFromBinding=function(W){this.ytdWatchBehavior.flexyLargeWindow_=W.detail.value};
_.t.updateWatchWhileWindowSizeSufficientFromBinding=function(W){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=W.detail.value};
_.t.updateWatchNextCanShowMoreFromBinding=function(W){this.ytdWatchBehavior.watchNextCanShowMore=W.detail.value};
_.t.updateShownItemsFromBinding=function(W){W.detail.path?this.set(W.detail.path,W.detail.value):this.ytdWatchBehavior.watchNextShownItems=W.detail.value};
_.t.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23127_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23127_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary}};
_.rc.Object.defineProperties(Sw.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.pageVisualEffects)return!1;for(var l=0;l<this.data.pageVisualEffects.length;l++)if(W=_.k(this.data.pageVisualEffects[l],_.RN))return l=void 0,(l=W.config)==null?void 0:l.enableInLightTheme;return!1}}});
_.rc.Object.defineProperties(Sw,{template:{configurable:!0,enumerable:!0,get:function(){if(o_X===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);o_X=W}W=o_X;return W}}});
Sw.prototype.updateRetroModeReduxValue=Sw.prototype.updateRetroModeReduxValue;Sw.prototype.updateScrollTopValue=Sw.prototype.updateScrollTopValue;Sw.prototype.updateFullscreenValue=Sw.prototype.updateFullscreenValue;Sw.prototype.updateTheaterValue=Sw.prototype.updateTheaterValue;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Sw.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Sw.prototype,"ytComponentBehavior",void 0);
_.a([_.F(_.pqM.YtdWatchBehavior),_.z("design:type",Object)],Sw.prototype,"ytdWatchBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],Sw.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Sw.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Sw.prototype,"playerData",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Sw.prototype,"flexy",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Sw.prototype,"roundedInfoPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Sw.prototype,"viewTransitionEnabled",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Sw.prototype,"smallerChatMinHeight",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Sw.prototype,"cinematicTheaterMode",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Sw.prototype,"transparentTheaterMode",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Sw.prototype,"cinematicFullscreen",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Sw.prototype,"useLargerMaxPlayerValue",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Sw.prototype,"isDarkTheme",void 0);_.a([_.b(),_.z("design:type",Object)],Sw.prototype,"defaultCollapsePlaylist",void 0);
_.a([_.b({selector:_.h2}),_.z("design:type",Object)],Sw.prototype,"theaterValue",void 0);_.a([_.b({selector:_.S1}),_.z("design:type",Object)],Sw.prototype,"fullscreenValue",void 0);_.a([_.b({selector:_.a7}),_.z("design:type",Object)],Sw.prototype,"scrollTopValue",void 0);_.a([_.b({selector:_.l0}),_.z("design:type",Object)],Sw.prototype,"miniplayerIsActive",void 0);_.a([_.b({selector:function(W){return W.watch.isWatchRetroMode}}),
_.z("design:type",Object)],Sw.prototype,"retroModeReduxValue",void 0);_.a([_.OX("ytd-player"),_.z("design:type",HTMLElement)],Sw.prototype,"ytdPlayer",void 0);_.a([_.Aa("#playlist"),_.z("design:type",HTMLElement)],Sw.prototype,"JSC$23127_ytdPlaylistPanelRenderer",void 0);_.a([_.OX("ytd-comments"),_.z("design:type",HTMLElement)],Sw.prototype,"ytdComments",void 0);_.a([_.Aa("#primary"),_.z("design:type",HTMLElement)],Sw.prototype,"primary",void 0);
_.a([_.Aa("#secondary"),_.z("design:type",HTMLElement)],Sw.prototype,"secondary",void 0);_.a([_.Aa("#player-container"),_.z("design:type",HTMLElement)],Sw.prototype,"playerContainer",void 0);_.a([_.Aa("#below"),_.z("design:type",HTMLElement)],Sw.prototype,"below",void 0);_.a([_.Aa("#cinematics"),_.z("design:type",HTMLElement)],Sw.prototype,"JSC$23127_cinematics",void 0);
_.a([_.TS("theaterValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Sw.prototype,"updateTheaterValue",null);_.a([_.TS("fullscreenValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Sw.prototype,"updateFullscreenValue",null);_.a([_.TS("scrollTopValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Sw.prototype,"updateScrollTopValue",null);
_.a([_.TS("retroModeReduxValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Sw.prototype,"updateRetroModeReduxValue",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Sw.prototype,"cinematicLightTheme",null);_.a([_.A({is:"ytd-watch-flexy"})],Sw);_.ZI.registerService(_.o8F,Sw);
_.Z1();
}catch(e){_._DumpException(e)}
try{
_.Ms("nmfa2d");
var QlP;var O4=function(){var W=_.I.apply(this,arguments)||this;W.hidden=!1;W.errorScreen=null;W.playlistData={};return W};
_.v(O4,_.I);_.t=O4.prototype;_.t.getPlayer=function(){return this.ytdPlayer};
_.t.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:_.vN(["aa","eocs"])}}};
_.t.onActiveChanged=function(){_.DJ().dispatch(_.Dtv(this.ytPageBehavior.active))};
_.t.playerDataChanged=function(){var W;(W=this.watchController)==null||W.setPlayerResponse(this.playerData)};
_.t.dataChanged=function(){var W;(W=this.watchController)==null||W.setWatchNextResponse(this.data)};
_.t.sizeChanged=function(){var W,l;(l=(W=this.metadata).resize)==null||l.call(W)};
_.t.attached=function(){this.watchController=new _.Mp(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.t.detached=function(){_.Ls(this.watchController);this.watchController=void 0};
_.t.getPlayerContainer=function(){return this.playerContainer};
_.t.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.t.provideRenderingData=function(W,l){switch(W){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=l;break;case "ERROR_SCREEN":this.errorScreen=l!=null?l:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=l;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=l;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=l;break;case "RICH_METADATA":this.richMetadataRowContainer=l;break;case "CLARIFICATION":this.clarificationData=l;break;case "PLAYLIST":this.playlistData=
l!=null?l:{};break;case "MERCH_SHELF":this.merchShelf=l;break;case "TICKET_SHELF":this.ticketShelf=l;break;case "LIMITED_STATE":this.limitedState=l;break;case "DONATION_SHELF":this.donationShelf=l;break;case "ALERTS":this.alerts=l}};
_.rc.Object.defineProperties(O4.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return!this.hidden&&!!((W=this.data)==null?0:(l=W.contents)==null?0:(V=l.twoColumnWatchNextResults)==null?0:V.conversationBar)}}});
O4.prototype.sizeChanged=O4.prototype.sizeChanged;O4.prototype.dataChanged=O4.prototype.dataChanged;O4.prototype.playerDataChanged=O4.prototype.playerDataChanged;O4.prototype.onActiveChanged=O4.prototype.onActiveChanged;_.a([_.F(_.LY.YtPageBehavior),_.z("design:type",Object)],O4.prototype,"ytPageBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],O4.prototype,"ytComponentBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],O4.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],O4.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],O4.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],O4.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],O4.prototype,"playerData",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],O4.prototype,"hidden",void 0);_.a([_.Aa("#ytd-player"),_.z("design:type",HTMLElement)],O4.prototype,"ytdPlayer",void 0);_.a([_.Aa("#player-container"),_.z("design:type",HTMLElement)],O4.prototype,"playerContainer",void 0);_.a([_.Aa("#metadata"),_.z("design:type",Object)],O4.prototype,"metadata",void 0);_.a([_.Aa("#playlist"),_.z("design:type",HTMLElement)],O4.prototype,"playlistPanel",void 0);
_.a([_.b({selector:_.pee,reflectToAttribute:!0}),_.z("design:type",Object)],O4.prototype,"fixie",void 0);_.a([_.b({selector:_.b2O,reflectToAttribute:!0}),_.z("design:type",Object)],O4.prototype,"singleColumn",void 0);_.a([_.b({selector:function(W){return _.h2(W)&&!_.S1(W)},
reflectToAttribute:!0}),_.z("design:type",Object)],O4.prototype,"theater",void 0);_.a([_.b({selector:_.S1,reflectToAttribute:!0}),_.z("design:type",Object)],O4.prototype,"fullscreen",void 0);_.a([_.b({selector:_.dta}),_.z("design:type",Object)],O4.prototype,"windowSize",void 0);_.a([_.b(),_.z("design:type",Object)],O4.prototype,"singleColumnContents",void 0);_.a([_.b(),_.z("design:type",Object)],O4.prototype,"errorScreen",void 0);_.a([_.b(),_.z("design:type",Object)],O4.prototype,"playlistData",void 0);
_.a([_.b(),_.z("design:type",Object)],O4.prototype,"videoPrimaryInfoRenderer",void 0);_.a([_.b(),_.z("design:type",Object)],O4.prototype,"videoSecondaryInfoRenderer",void 0);_.a([_.b(),_.z("design:type",Object)],O4.prototype,"richMetadataRowContainer",void 0);_.a([_.b(),_.z("design:type",Object)],O4.prototype,"clarificationData",void 0);_.a([_.b(),_.z("design:type",Object)],O4.prototype,"commentsEntryPointHeaderRenderer",void 0);_.a([_.b(),_.z("design:type",Object)],O4.prototype,"ticketShelf",void 0);
_.a([_.b(),_.z("design:type",Object)],O4.prototype,"merchShelf",void 0);_.a([_.b(),_.z("design:type",Object)],O4.prototype,"donationShelf",void 0);_.a([_.b(),_.z("design:type",Object)],O4.prototype,"limitedState",void 0);_.a([_.b(),_.z("design:type",Object)],O4.prototype,"alerts",void 0);_.a([_.G("playlistData"),_.z("design:type",Object),_.z("design:paramtypes",[])],O4.prototype,"hasPlaylistData",null);
_.a([_.G("data","hidden"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],O4.prototype,"hasChat",null);_.a([_.TS("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],O4.prototype,"onActiveChanged",null);_.a([_.TS("playerData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],O4.prototype,"playerDataChanged",null);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],O4.prototype,"dataChanged",null);_.a([_.TS("windowSize","singleColumn"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],O4.prototype,"sizeChanged",null);
_.Z(O4,"ytd-watch-fixie",function(){if(QlP===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);QlP=W}W=QlP;return W},{mode:1});_.ZI.registerService(_.pQU,O4);
_.Z1();
}catch(e){_._DumpException(e)}
try{
_.Ms("xwEKAe");
var cZ7=function(W){return _.Wq(W)?W.getAttribute("jsname")==="coFSxe":!1},BL$=function(W,l){l.id||(l.id="ow"+_.qg(l));
W.setAttribute("jsowner",l.id);W.__owner=l;var V=_.YN(l,cZ7);V&&(_.E_L.has(V)||_.E_L.set(V,[]),_.E_L.get(V).push(W));(V=_.SLv.get(l))||_.SLv.set(l,V=[]);V.includes(W)||V.push(W);l.setAttribute("__IS_OWNER",!0)},d1k=function(){var W=_.Gd8(1);
W=_.t4(W,_.iR8);if(!(_.FuJ(W)||W[_.tyz]&&!W.__hasBeenSet))return W.value},JZa=function(W){var l=_.MT();
if(l.getFlag(202))l=l.getFlag(201);else{var V;l=(W==null?void 0:(V=W.config)==null?void 0:V.settingOnByDefault)!==void 0?W.config.settingOnByDefault:!_.U("web_shorts_cinematics_disabled_by_default")}return l},D1M=function(W){var l=_.MT();
_.ZY(0,201,W);_.ZY(0,202,!0);l.save()},U1I=function(W){return(W=_.t0j(W))?_.LRz(W):0},u9e=function(W){return W.shorts.isSmallScreenSqueezeback},kaO=function(W){return W.shorts.isPlaybackStarted},KkO=function(W){var l=_.Gd8(2),V=new Set;
_.Xc(function(){return void V.forEach(function(f){return void f()})});
return function(f){var r=_.Ri(l);try{var R=vc7(Hee(W),f);V.add(R);return function(){R();V.delete(R)}}finally{_.Ri(r)}}},FkP=function(W){var l=W.children;
var V=W.root;_.iz(function(){var f=KkO(V)(l);_.Xc(f)});
return document.createTextNode("")},vc7=function(W,l){var V=Gae(W);
(W=d1k())&&BL$(V,W);l=_.L(_.o1U(l,!0));W=l.next().value;var f=l.next().value;V.append.apply(V,_.QK(W));return function(){f();V.remove()}},Hee=function(W){if(typeof W==="string")return W=document.querySelector(W),_.SCY(W),W;
if(_.gK(W)&&W.nodeType===Node.ELEMENT_NODE)return W;if(!W.__value&&!W.__optional){var l=_.LA8.USE_ELEMENT_NOT_ASSIGNED(W.__expectedTagName);W.__hasErrored=!0;throw l;}return W.value},Gae=function(W){var l=document.createElementNS(W.namespaceURI,W.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return W.appendChild(l)},bea=function(W,l,V,f){W=l-W;
V=f-V;return Math.sqrt(W*W+V*V)},pkX=function(W,l){W&&_.tY().resolve(_.s6).resolveCommand(W,{forceClickLogging:!0,
form:{element:l}})},oce=function(W,l,V,f){W=l-W;
V=f-V;return Math.sqrt(W*W+V*V)},jXv=function(W,l){W&&_.tY().resolve(_.s6).resolveCommand(W,{forceClickLogging:!0,
form:{element:l}})},I$P=function(){return _.tY().resolve(_.$C).dismissedIndices},ieI=function(W,l){var V,f,r,R,y,P,n,B,d;
return _.g(function(J){if(J.nextAddress==1){V=_.tY().resolve(_.Csw);R=(f=V)==null?void 0:(r=f.reelWatchEndpointMap)==null?void 0:r.reelWatchSequence;P=(y=W.innertubeTransportService)!=null?y:_.tY().resolve(_.Vb);if(!R)return J.jumpTo(2);n=R();return(B=n.JSC$13120_getRequest(l,{}))?J.yield(_.B3(P,B.innerTubeRequest,B.input,l.clickTrackingParams,B.config),4):J.jumpTo(2)}return J.nextAddress!=2?(d=J.yieldResult,J.return(d)):J.return(void 0)})},m1e=function(W){return _.GT({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:W}})},XkI=function(W){return _.GT({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:W}})},TLP=function(W){return _.GT({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:W}})};var GA=function(W,l){if(W instanceof GA)this.array_=W.array_;else{var V;if(V=_.Ng(W))a:{for(var f=V=0;f<W.length;f++){if(!_.Ng(W[f])||V>0&&W[f].length!=V){V=!1;break a}for(var r=0;r<W[f].length;r++)if(typeof W[f][r]!=="number"){V=!1;break a}V==0&&(V=W[f].length)}V=V!=0}if(V)this.array_=_.z6(W);else if(W instanceof _.p5)this.array_=wkM(W.height,W.width);else if(typeof W==="number"&&typeof l==="number"&&W>0&&l>0)this.array_=wkM(W,l);else throw Error("Do");}this.size_=new _.p5(this.array_[0].length,
this.array_.length)},AZ$=function(W,l,V){for(var f=0;f<W.getSize().height;f++)for(var r=0;r<W.getSize().width;r++)l.call(V,W.array_[f][r],f,r,W)},QX7=function(W,l){var V=new GA(W.getSize());
AZ$(W,function(f,r,R){V.array_[r][R]=l.call(void 0,f,r,R,W)});
return V},wkM=function(W,l){for(var V=[],f=0;f<W;f++){V[f]=[];
for(var r=0;r<l;r++)V[f][r]=0}return V};
GA.prototype.add=function(W){if(!_.Zq7(this.size_,W.getSize()))throw Error("Eo");return QX7(this,function(l,V,f){return l+W.array_[V][f]})};
GA.prototype.equals=function(W,l){if(this.size_.width!=W.size_.width||this.size_.height!=W.size_.height)return!1;l=l||0;for(var V=0;V<this.size_.height;V++)for(var f=0;f<this.size_.width;f++)if(!_.Mv7(this.array_[V][f],W.array_[V][f],l))return!1;return!0};
GA.prototype.getSize=function(){return this.size_};
var bA=function(W,l,V){return l>=0&&l<W.size_.height&&V>=0&&V<W.size_.width?W.array_[l][V]:null};
GA.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var MLI=function(W,l,V,f){if(!(l>=0&&l<W.size_.height&&V>=0&&V<W.size_.width))throw Error("Fo`"+l+"`"+V+"`"+W.size_.height+"`"+W.size_.width);W.array_[l][V]=f};
GA.prototype.multiply=function(W){if(W instanceof GA){if(this.size_.width!=W.getSize().height)throw Error("Go");return ZeP(this,W)}if(typeof W==="number")return OeI(this,W);throw Error("Ho");};
var ZeP=function(W,l){var V=new GA(W.size_.height,l.getSize().width);AZ$(V,function(f,r,R){for(var y=f=0;y<this.size_.width;y++)f+=bA(this,r,y)*bA(l,y,R);MLI(V,r,R,f)},W);
return V},OeI=function(W,l){return QX7(W,function(V){return V*l})};var a$I=new _.uC("inlineSurveyRenderer");var zII=new _.uC("interstitialViewModel");var NLM=new _.uC("reelNavigateCommand");var YM7=new _.uC("reelNonVideoContentDismissalCommand");var x1e=new _.uC("showReelsCommentsOverlayCommand");var eIM=new _.uC("shortsSuggestedActionViewModel");var qMy=new _.uC("videoInteractionPopUpRenderer");var hI7;var SM7;var Ecy;var po=function(){var W=_.I.apply(this,arguments)||this;W.ctaVisualElement=null;W.currentCsn=null;return W};
_.v(po,_.I);_.t=po.prototype;_.t.onDataChanged=function(){this.maybeLogShows()};
_.t.computeButtonShape=function(){var W=this;if(this.data)return{buttonText:_.dE(this.data.text),state:"active",onTap:function(){W.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.t.maybeCreateCtaVe=function(){var W;if((W=this.data)!=null&&W.badgeInteractionLogging){var l;if(W=(l=this.data.badgeInteractionLogging)==null?void 0:l.trackingParams)this.ctaVisualElement=_.zG(W)}};
_.t.maybeLogClicks=function(){this.currentCsn=_.Wh(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.C0(this.currentCsn,this.ctaVisualElement)};
_.t.maybeLogShows=function(){this.currentCsn=_.Wh(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Py(this.currentCsn,[this.ctaVisualElement])};
_.t.onTap=function(){var W;if((W=this.data)!=null&&W.onClickCommand){var l;this.ytComponentBehavior.resolveCommand((l=this.data)==null?void 0:l.onClickCommand);this.maybeLogClicks()}};
po.prototype.onDataChanged=po.prototype.onDataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],po.prototype,"ytComponentBehavior",void 0);_.a([_.b({}),_.z("design:type",Object)],po.prototype,"data",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],po.prototype,"onDataChanged",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],po);
_.Z(po,"ytd-shopping-overlay-badge-renderer",function(){if(Ecy!==void 0)return Ecy;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Ecy=W},{mode:1});_.HI(_.tuc,"reel-sound-metadata-view-model",{props:{data:_.kh,overlayDensity:_.kh}});_.HI(_.tm4,"player-disclosure-view-model",{props:{data:_.pA}});_.HI(_.MU1,"pivot-button-view-model",{props:{data:_.kh,className:_.kh}});_.HI(_.Zyk,"reel-action-bar-view-model",{props:{data:_.pA,buttonShapeOverrideables:_.pA}});_.HI(_.Q(function(W){function l(){var c8,B8,Jx,H8,Kq=(B8=_.k((c8=S())==null?void 0:c8.command,_.Y0))==null?void 0:(Jx=B8.item)==null?void 0:(H8=Jx.notificationTextRenderer)==null?void 0:H8.successResponseText;if(Kq)_.Gt(f.value,"yt-open-popup-action",[_.u0(Kq),f.value]);else if(N())pkX(N(),H.value);else{var Z4;pkX((Z4=S())==null?void 0:Z4.command,H.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var V=W.data;var f=_.WS("yt-player-overlay-video-interactions");W=_.L(_.J4("0px",void 0,"O3ow6c"));var r=W.next().value,R=W.next().value;W=_.L(_.J4("0px",void 0,"V0TSYd"));var y=W.next().value,P=W.next().value;W=_.L(_.J4(0,void 0,"ipRdDf"));var n=W.next().value,B=W.next().value;W=_.L(_.J4(0,void 0,"ztYEKb"));var d=W.next().value,J=W.next().value,D=function(){var c8;if(((c8=_.I$())==null?void 0:c8.getPlayerState())!==-1){f.value.style.display="inherit";var B8;(B8=_.I$())==null||B8.removeEventListener("onStateChange",
D)}u()},u=function(){var c8=document.querySelector("video");
if(c8){B(c8.getBoundingClientRect().width);J(c8.getBoundingClientRect().height);var B8;R((c8==null?void 0:(B8=c8.style)==null?void 0:B8.left)||"0px");var Jx;P((c8==null?void 0:(Jx=c8.style)==null?void 0:Jx.top)||"0px")}};
_.m1(function(){var c8,B8,Jx;if(((c8=_.I$())==null?void 0:c8.getPlayerState())===-1&&Math.round(((Jx=(B8=_.I$())==null?void 0:B8.getVideoAspectRatio())!=null?Jx:0)*100)!==Math.round(n()/d()*100)){f.value.style.display="none";var H8,Kq;J(n()/((Kq=(H8=_.I$())==null?void 0:H8.getVideoAspectRatio())!=null?Kq:1))}},"ikzYW");
_.iz(function(){var c8;(c8=_.I$())==null||c8.addEventListener("onStateChange",D);window.addEventListener("resize",u);u();var B8,Jx,H8;if((H8=(B8=V())==null?void 0:(Jx=B8.regions)==null?void 0:Jx[0])==null||!H8.transformationMatrix)throw Error("Lo");var Kq;if((Kq=V())==null?0:Kq.trackingParams){var Z4;_.Qq().graftServerVe((Z4=V().trackingParams)!=null?Z4:"")}_.Xc(function(){var Ax;(Ax=_.I$())==null||Ax.removeEventListener("onStateChange",D);window.removeEventListener("resize",u)})});
var H=_.WS("svg"),p=_.L(_.J4(!1,void 0,"Thzfnf"));W=p.next().value;var X=p.next().value,w=_.L(_.J4(!1,void 0,"nsniPd"));p=w.next().value;var O=w.next().value,S=function(){var c8;return _.k((c8=V())==null?void 0:c8.popUp,qMy)},N=function(){var c8;
return(c8=V())==null?void 0:c8.command},x=function(){return _.k(N(),_.Zy)!==void 0};
w=_.ip(function(){l();return!1});
var Y={},W8={};return _.C("yt-player-overlay-video-interactions",{el:f},_.C("svg",{"on:mouseover":_.ip(function(){x()&&X(!0);O(!0);return!1}),
"on:mouseout":_.ip(function(){X(!1);O(!1);return!1}),
"on:keydown":_.ip(function(c8){c8.key==="Enter"&&l();return!1}),
"on:focus":_.ip(function(){x()&&X(!0);return!1}),
"on:blur":_.ip(function(){x()&&X(!1);return!1}),
el:H,tabindex:0,"aria-label":function(){var c8;return(c8=V())==null?void 0:c8.a11yString},
id:"player-overlay-video-interaction-svg",class:_.If("ytPlayerOverlayVideoInteractionsInteractionsSvg",(Y.ytPlayerOverlayVideoInteractionsInteractionsSvgHover=W,Y),(W8.ytPlayerOverlayVideoInteractionsInteractionsSvgHideOutline=p,W8)),role:"button",style:function(){var c8,B8,Jx,H8=(Jx=(c8=V())==null?void 0:(B8=c8.regions)==null?void 0:B8[0].transformationMatrix)!=null?Jx:[];c8=n();B8=d();Jx=[];for(var Kq=0,Z4=-1;Kq<H8.length;Kq++)Kq%3===0&&(Z4++,Jx[Z4]=[]),Jx[Z4].push(H8[Kq]);H8=new GA(Jx);Jx=new GA([[0,
1,1,0],[0,0,1,1],[1,1,1,1]]);Jx=H8.multiply(Jx);H8=new GA([[0,0],[0,0],[0,0],[0,0]]);for(Kq=0;Kq<Jx.getSize().width;Kq++){Z4=bA(Jx,0,Kq);var Ax=bA(Jx,1,Kq);if(Z4===null||Ax===null)throw Error("Ko`"+(Kq+1).toString());MLI(H8,Kq,0,Z4*c8);MLI(H8,Kq,1,Ax*B8)}c8=bA(H8,0,0);Kq=bA(H8,1,0);B8=bA(H8,0,1);Z4=bA(H8,1,1);if(c8===null||Kq===null||B8===null||Z4===null)throw Error("Io");Jx=bea(c8,Kq,B8,Z4);Ax=bA(H8,3,0);H8=bA(H8,3,1);if(Ax===null||H8===null)throw Error("Jo");H8=bea(c8,Ax,B8,H8);Z4=(Number((Z4*-1).toFixed(2))-
Number((B8*-1).toFixed(2)))/(Number(Kq.toFixed(2))-Number(c8.toFixed(2)));Ax=Math.atan(Z4)*180/Math.PI;Kq=Z4===Number.POSITIVE_INFINITY?-90:Z4===Number.NEGATIVE_INFINITY?90:Object.is(Z4,-0)?180:Z4===0?0:Z4>0?Ax*-1:c8<Kq?Ax*-1:Math.abs(Ax)+180;return"left:calc("+c8+"px + "+r()+"); top:calc("+(B8+"px + "+y()+"); width:")+(Jx+"px; height:")+(H8+"px; transform:rotate(")+(Kq+"deg);")},
"on:click":w}))},"rk"),"yt-player-overlay-video-interactions",{props:{data:_.pA}});_.HI(_.PWc,"yt-reel-metapanel-view-model",{props:{data:_.pA,overlayDensity:_.pA}});var $1v=_.Q(function(W){var l=W.children;var V=W.region;W=_.L(_.J4(void 0,void 0,"MsSyte"));var f=W.next().value,r=W.next().value;W=_.L(_.J4("0px",void 0,"U9Yihd"));var R=W.next().value,y=W.next().value;W=_.L(_.J4("0px",void 0,"UO1H6d"));var P=W.next().value,n=W.next().value;W=_.L(_.J4(0,void 0,"sMVTKb"));var B=W.next().value,d=W.next().value;W=_.L(_.J4(0,void 0,"kZZV8b"));var J=W.next().value,D=W.next().value,u=function(){var S=f();if(S){var N;if(((N=_.I$())==null?void 0:N.getPlayerState())!==-1){S.style.display=
"inherit";var x;(x=_.I$())==null||x.removeEventListener("onStateChange",u)}p()}},H=function(){var S=document.querySelectorAll("video");
return Array.from(S).find(function(N){var x;return N==null?void 0:(x=N.style)==null?void 0:x.width})},p=function(){var S=H();
if(S){d(S.getBoundingClientRect().width);D(S.getBoundingClientRect().height);var N;y((S==null?void 0:(N=S.style)==null?void 0:N.left)||"0px");var x;n((S==null?void 0:(x=S.style)==null?void 0:x.top)||"0px")}};
_.m1(function(){var S=f();if(S){var N,x,Y;if(((N=_.I$())==null?void 0:N.getPlayerState())===-1&&Math.round(((Y=(x=_.I$())==null?void 0:x.getVideoAspectRatio())!=null?Y:0)*100)!==Math.round(B()/J()*100)){S.style.display="none";var W8,c8;D(B()/((c8=(W8=_.I$())==null?void 0:W8.getVideoAspectRatio())!=null?c8:1))}}},"jJLfwe");
var X=function(){p()},w;
_.iz(function(){p();var S;if(!(V==null?0:(S=V())==null?0:S.transformationMatrix))throw Error("Lo");var N;(N=_.I$())==null||N.addEventListener("onStateChange",u);if(window.ResizeObserver){if(S=H())w=new ResizeObserver(X),w.observe(S)}else window.addEventListener("resize",p);_.Xc(function(){var x;(x=_.I$())==null||x.removeEventListener("onStateChange",u);w?w.disconnect():window.removeEventListener("resize",p)})});
var O=function(){var S,N,x=(N=V==null?void 0:(S=V())==null?void 0:S.transformationMatrix)!=null?N:[];S=B();N=J();for(var Y=[],W8=0,c8=-1;W8<x.length;W8++)W8%3===0&&(c8++,Y[c8]=[]),Y[c8].push(x[W8]);x=new GA(Y);Y=new GA([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);Y=x.multiply(Y);x=new GA([[0,0],[0,0],[0,0],[0,0]]);for(W8=0;W8<Y.getSize().width;W8++){c8=bA(Y,0,W8);var B8=bA(Y,1,W8);if(c8===null||B8===null)throw Error("Ko`"+(W8+1).toString());MLI(x,W8,0,c8*S);MLI(x,W8,1,B8*N)}S=bA(x,0,0);W8=bA(x,1,0);N=bA(x,0,
1);c8=bA(x,1,1);if(S===null||W8===null||N===null||c8===null)throw Error("Io");Y=oce(S,W8,N,c8);B8=bA(x,3,0);x=bA(x,3,1);if(B8===null||x===null)throw Error("Jo");x=oce(S,B8,N,x);c8=(Number((c8*-1).toFixed(2))-Number((N*-1).toFixed(2)))/(Number(W8.toFixed(2))-Number(S.toFixed(2)));B8=Math.atan(c8)*180/Math.PI;W8=c8===Number.POSITIVE_INFINITY?-90:c8===Number.NEGATIVE_INFINITY?90:Object.is(c8,-0)?180:c8===0?0:c8>0?B8*-1:S<W8?B8*-1:Math.abs(B8)+180;return"left:calc("+S+"px + "+R()+"); top:calc("+(N+"px + "+
P()+"); width:")+(Y+"px; height:")+(x+"px; transform:rotate(")+(W8+"deg);")};
return _.C(FkP,{root:"#sticker-layer"},function(){return _.C("yt-overlay-sticker",{el:_.DN(r),style:O,class:"ytOverlayStickerHost"},l)})},"sk");var WNe=_.Q(function(W){function l(){var u,H,p,X,w=(H=_.k((u=n())==null?void 0:u.command,_.Y0))==null?void 0:(p=H.item)==null?void 0:(X=p.notificationTextRenderer)==null?void 0:X.successResponseText;if(w)_.Gt(f.value,"yt-open-popup-action",[_.u0(w),f.value]);else if(B())jXv(B(),f.value);else{var O;jXv((O=n())==null?void 0:O.command,f.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var V=W.data;var f=_.WS("svg"),r=_.L(_.J4(!1,void 0,"i4BL1"));W=r.next().value;var R=r.next().value,y=_.L(_.J4(!1,void 0,"FzRJKd"));r=y.next().value;var P=y.next().value,n=function(){var u;return _.k((u=V())==null?void 0:u.popUp,qMy)},B=function(){var u;
return(u=V())==null?void 0:u.command},d=function(){return _.k(B(),_.Zy)!==void 0};
y=_.ip(function(){l();return!1});
var J={},D={};return _.C("svg",{"on:mouseover":_.ip(function(){d()&&R(!0);P(!0);return!1}),
"on:mouseout":_.ip(function(){R(!1);P(!1);return!1}),
"on:keydown":_.ip(function(u){u.key==="Enter"&&l();return!1}),
"on:focus":_.ip(function(){d()&&R(!0);return!1}),
"on:blur":_.ip(function(){d()&&R(!1);return!1}),
el:f,tabindex:0,"aria-label":function(){var u;return(u=V())==null?void 0:u.a11yString},
id:"player-overlay-video-interaction-svg",class:_.If("ytPlayerOverlayInteractionInteractionsSvg",(J.ytPlayerOverlayInteractionInteractionsSvgHover=W,J),(D.ytPlayerOverlayInteractionInteractionsSvgHideOutline=r,D)),role:"button","on:click":y})},"uk");_.HI(_.Q(function(W){var l=W.data;_.iz(function(){var V;if((V=l())==null?0:V.trackingParams){var f;_.Qq().graftServerVe((f=l().trackingParams)!=null?f:"")}});
return _.C("yt-player-overlay-interaction",null,_.C($1v,{region:function(){var V,f;return(V=l())==null?void 0:(f=V.regions)==null?void 0:f[0]}},_.C(WNe,Object.assign({},W))))},"tk"),"yt-player-overlay-interaction",{props:{data:_.pA}});var o7=function(){var W=_.I.apply(this,arguments)||this;W.showScrubber=!1;W.isWatchWhileMode=!1;W.enableAnchoredPanel=_.U("desktop_shorts_v2_anchored_panel");W.enableNewStickers=_.U("use_shorts_sticker_overlay_web");W.anchoredPanelActive=!1;W.enableLivingroomLayout=_.U("reels_enable_livingroom_layout");W.enablePlayerMetadataContainer=_.U("reels_web_enable_metadata_container");W.enableSqueezebackPanels=_.U("web_shorts_enable_squeezeback_panels");W.useAspectRatio=_.U("web_use_aspect_ratio");W.isSqueezebackActive=
!1;W.smallScreenSqueezeback=!1;W.isPlayerStarted=!1;W.overlayDensity=0;W.isOverlay=!1;W.isImmersive=!1;W.isImmersiveHorizontal=!1;W.isFullscreen=!1;W.onWindowResized=function(){var l;W.set("isImmersive",((l=window.getComputedStyle(W.hostElement))==null?void 0:l.getPropertyValue("--immersive-mode-on"))==="1");W.set("isImmersiveHorizontal",W.isImmersive&&W.enableLivingroomLayout&&!W.isWatchWhileMode)};
return W};
_.v(o7,_.I);_.t=o7.prototype;_.t.updateIsOverlay=function(W){this.isOverlay=W.detail.value};
_.t.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.U("web_enable_flexible_overlay")||_.U("web_enable_format_first")||_.U("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.t.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.t.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.t.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.t.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.t.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.t.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.t.ready=function(){(_.U("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"))&&(!_.U("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.gU("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.gU("reels_action_justified_content")||"flex-start")};
_.t.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}}};
_.t.setFakeLoadingButtons=function(){_.U("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.wg("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.wg("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.wg("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.wg("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.wg("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()};
_.t.setEmptyOverlayMetadata=function(){_.U("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}))};
_.rc.Object.defineProperties(o7.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.infoPanel)}}});
o7.prototype.onIsActiveChanged=o7.prototype.onIsActiveChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],o7.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],o7.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],o7.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.vZ.YtdGuideStateAwareBehavior),_.z("design:type",Object)],o7.prototype,"ytdGuideStateAwareBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],o7.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Boolean)],o7.prototype,"isActive",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],o7.prototype,"hidden",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],o7.prototype,"useShortsIcon",void 0);_.a([_.b({value:"left"}),_.z("design:type",String)],o7.prototype,"buttonTooltipPosition",void 0);
_.a([_.b({value:_.U("reels_enable_livingroom_layout")?"top":"left"}),_.z("design:type",String)],o7.prototype,"likeButtonTooltipPosition",void 0);_.a([_.b({value:"none"}),_.z("design:type",String)],o7.prototype,"textTransform",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],o7.prototype,"showScrubber",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],o7.prototype,"isWatchWhileMode",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("data.infoPanel"),_.z("design:type",Object),_.z("design:paramtypes",[])],o7.prototype,"hasInfoPanel",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],o7.prototype,"enableAnchoredPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],o7.prototype,"enableNewStickers",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],o7.prototype,"anchoredPanelActive",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],o7.prototype,"enableLivingroomLayout",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],o7.prototype,"enablePlayerMetadataContainer",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],o7.prototype,"enableSqueezebackPanels",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],o7.prototype,"useAspectRatio",void 0);
_.a([_.b({selector:_.Qeg,reflectToAttribute:!0}),_.z("design:type",Object)],o7.prototype,"isSqueezebackActive",void 0);_.a([_.b({selector:u9e,reflectToAttribute:!0}),_.z("design:type",Object)],o7.prototype,"smallScreenSqueezeback",void 0);_.a([_.b({selector:kaO}),_.z("design:type",Object)],o7.prototype,"isPlayerStarted",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],o7.prototype,"overlayDensity",void 0);_.a([_.b(),_.z("design:type",Object)],o7.prototype,"isOverlay",void 0);
_.a([_.b({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.z("design:type",Boolean)],o7.prototype,"isShortsOverlay",void 0);_.a([_.b(),_.z("design:type",Object)],o7.prototype,"isImmersive",void 0);_.a([_.b(),_.z("design:type",Object)],o7.prototype,"isImmersiveHorizontal",void 0);_.a([_.b({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.z("design:type",Boolean)],o7.prototype,"isShortsImmersive",void 0);
_.a([_.b({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.z("design:type",Object)],o7.prototype,"buttonOverride",void 0);_.a([_.b({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.z("design:type",Object)],o7.prototype,"actionBarButtonOverride",void 0);_.a([_.b({selector:_.uE,reflectToAttribute:!0}),_.z("design:type",Object)],o7.prototype,"isFullscreen",void 0);
_.a([_.TS("isActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],o7.prototype,"onIsActiveChanged",null);_.a([_.A({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],o7);
_.Z(o7,"ytd-reel-player-overlay-renderer",function(){if(SM7!==void 0)return SM7;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return SM7=W},{mode:1});var lca;var jG=function(){var W=_.I.apply(this,arguments)||this;W.videoDuration=0;W.playedTime=0;W.isActive=!1;W.JSC$22319_playerEvents=new Map;return W};
_.v(jG,_.I);_.t=jG.prototype;_.t.created=function(){this.JSC$22319_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22319_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.t.attached=function(){this.getPlayerAndInitializeListeners()};
_.t.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22319_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.mz(this,this.onPageChanged))};
_.t.getPlayerAndInitializeListeners=function(){var W=this,l;return _.g(function(V){if(V.nextAddress==1)return l=_.Jy(),l?V.yield(l.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.mz(W,W.onPageChanged)),V.jumpTo(0));W.player=V.yieldResult;W.initializePlayerListeners();_.ju(V)})};
_.t.onPageChanged=function(W){var l=this;return _.g(function(V){if(V.nextAddress==1)return W.detail.newPageType!=="ytd-shorts"?V.return():V.yield(_.Dy().getPlayerPromise(),2);l.player=V.yieldResult;l.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.mz(l,l.onPageChanged));_.ju(V)})};
_.t.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22319_playerEvents)};
_.t.onVideoDataChange=function(W){var l=this;return _.g(function(V){if(!l.player||W.type!=="newdata")return V.return();l.videoDuration=_.U("web_shorts_use_progress_state_for_gapless")?l.player.getProgressState(W.playertype).seekableEnd:l.player.getDuration(W.playertype);l.playedTime=0;_.ju(V)})};
_.t.onVideoProgress=function(W){var l=this,V,f;return _.g(function(r){if(!l.player)return r.return();V=l.player.getPresentingPlayerType();f=l.player.getPlayerState();l.videoDuration=_.U("web_shorts_use_progress_state_for_gapless")?l.player.getProgressState(V).seekableEnd:l.player.getDuration(V);l.playedTime=f===0?l.videoDuration:W;_.ju(r)})};
_.t.getPercentPlayed=function(W,l){return W?_.xP(l/W,0,1):0};
_.rc.Object.defineProperties(jG.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 W="";return W=this.videoDuration&&this.playedTime?W+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):W+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],jG.prototype,"componentBehavior",void 0);_.a([_.F(_.by.YtPlayerListenerBehavior),_.z("design:type",_.pZ)],jG.prototype,"ytPlayerListenerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],jG.prototype,"player",void 0);_.a([_.b(),_.z("design:type",Object)],jG.prototype,"videoDuration",void 0);_.a([_.b(),_.z("design:type",Object)],jG.prototype,"playedTime",void 0);_.a([_.b(),_.z("design:type",Object)],jG.prototype,"isActive",void 0);
_.a([_.G("videoDuration","playedTime"),_.z("design:type",Number),_.z("design:paramtypes",[])],jG.prototype,"percentPlayed",null);_.a([_.G("videoDuration","playedTime"),_.z("design:type",Object),_.z("design:paramtypes",[])],jG.prototype,"percentPlayedStyle",null);_.a([_.G("videoDuration","isActive"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],jG.prototype,"hideProgressBar",null);
_.Z(jG,"ytd-progress-bar-line",function(){if(lca===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);lca=W}W=lca;return W},{mode:_.bD("kevlar_poly_si_batch_j028")?1:2});var VY7;_.HI(_.m4e,"ytm-closed-captioning-button",{props:{captionIconType:_.pA,onClick:_.kh,ariaLabel:_.pA,ariaPressed:_.pA,isOverlay:_.kh,isModern:_.kh}});_.HI(_.RaN,"desktop-shorts-volume-controls",{props:{orientation:_.pA}});var I7=function(){var W=_.I.apply(this,arguments)||this;W.playerState=null;W.isMuted=!1;W.shortsModernControlsEnabled=_.U("web_shorts_modern_controls");W.volumeControlsOrientationState=_.U("web_shorts_modern_controls")?"vertical_down":"horizontal_right";W.isOverlay=!0;W.captionIconType=-1;W.ariaLabel="";W.overlayDensity=0;W.JSC$22322_playerEvents=new Map;W.onClosedCaptionsButtonClick=function(){W.player&&_.FH(W.player)&&(W.player.toggleSubtitles(),W.updateCaptionIconType())};
return W};
_.v(I7,_.I);_.t=I7.prototype;_.t.created=function(){this.JSC$22322_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22322_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22322_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.t.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.GY(28662);this.playPauseButtonClientVE=_.GY(36842);this.fullscreenButtonToggleOffClientVE=_.GY(222256);this.fullscreenButtonToggleOnClientVE=_.GY(222257);var W=_.Wh(),l=_.$G();W&&l&&(_.U("combine_ve_grafts")?(_.aH(_.Qq(),this.muteButtonClientVE,l),_.aH(_.Qq(),this.playPauseButtonClientVE,l)):_.yE(W,l,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.t.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22322_playerEvents),this.player=null)};
_.t.updateCaptionIconType=function(){var W=-1,l=void 0,V=_.wg("CLOSED_CAPTIONS_DISABLED");this.player&&_.FH(this.player)&&(_.k37(this.player)?(l=!0,V=_.wg("CLOSED_CAPTIONS_ON"),W=1):(l=!1,V=_.wg("CLOSED_CAPTIONS_OFF"),W=0));this.captionIconType=W;this.ariaPressedState=l;this.ariaLabel=V};
_.t.getPlayerAndInitializeListeners=function(){var W=this,l;return _.g(function(V){if(V.nextAddress==1)return l=_.Jy(),l?V.yield(l.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.mz(W,W.onPageChanged)),V.jumpTo(0));W.player=V.yieldResult;W.initializePlayerListeners();_.ju(V)})};
_.t.onPageChanged=function(W){var l=this;return _.g(function(V){if(V.nextAddress==1)return W.detail.newPageType!=="ytd-shorts"?V.return():V.yield(_.Dy().getPlayerPromise(),2);l.player=V.yieldResult;l.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.mz(l,l.onPageChanged));_.ju(V)})};
_.t.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22322_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.t.onPlayerStateChange=function(W){this.playerState=W};
_.t.onPlayerVolumeChange=function(W){this.isMuted=W.muted};
_.t.onPlayPauseButtonClick=function(){var W=this,l,V;return _.g(function(f){if(f.nextAddress==1)return f.yield(_.Dy().getPlayerPromise(),2);l=f.yieldResult;(V=_.Wh())&&W.playPauseButtonClientVE&&_.C0(V,W.playPauseButtonClientVE);l.getPlayerState()!==1?l.playVideo():l.pauseVideo();_.ju(f)})};
_.t.computePlayPauseIcon=function(W){return W===2||W===-1||W===5?_.U("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.U("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.U("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.t.computeFullscreenLabel=function(W){return W?_.wg("FULLSCREEN_EXIT_LABEL"):_.wg("FULLSCREEN_ENTER_LABEL")};
_.t.computePlayPauseLabel=function(W){return W===1||W===3?_.wg("PLAYER_LABEL_PAUSE"):_.wg("PLAYER_LABEL_PLAY")};
_.t.onMuteButtonClick=function(){var W=this,l,V;return _.g(function(f){if(f.nextAddress==1)return f.yield(_.Dy().getPlayerPromise(),2);l=f.yieldResult;(V=_.Wh())&&W.muteButtonClientVE&&_.C0(V,W.muteButtonClientVE);l.isMuted()?l.unMute(!0):l.mute(!0);_.ju(f)})};
_.t.computeMuteIcon=function(W){return W?"miniplayer:volume-off":"miniplayer:volume-up"};
_.t.computeMuteLabel=function(W){return W?_.wg("PLAYER_LABEL_UNMUTE"):_.wg("PLAYER_LABEL_MUTE")};
_.t.onFullscreenButtonClick=function(){var W=_.Wh();W&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.C0(W,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.C0(W,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.WA1()};
_.rc.Object.defineProperties(I7.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var W=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(){W.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?_.U("web_shorts_modern_controls")?"player_full_exit_alt":_.U("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.U("web_shorts_modern_controls")?"player_full_enter_alt":_.U("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],I7.prototype,"componentBehavior",void 0);_.a([_.F(_.by.YtPlayerListenerBehavior),_.z("design:type",_.pZ)],I7.prototype,"ytPlayerListenerBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],I7.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],I7.prototype,"player",void 0);_.a([_.b(),_.z("design:type",Object)],I7.prototype,"playerState",void 0);_.a([_.b(),_.z("design:type",Object)],I7.prototype,"isMuted",void 0);
_.a([_.b({computed:"computePlayPauseIcon(playerState)"}),_.z("design:type",String)],I7.prototype,"playPauseIcon",void 0);_.a([_.b({computed:"computeMuteIcon(isMuted)"}),_.z("design:type",String)],I7.prototype,"muteIcon",void 0);_.a([_.b({selector:_.uE}),_.z("design:type",Boolean)],I7.prototype,"isFullscreen",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],I7.prototype,"shortsModernControlsEnabled",void 0);
_.a([_.b(),_.z("design:type",Object)],I7.prototype,"volumeControlsOrientationState",void 0);_.a([_.b(),_.z("design:type",Object)],I7.prototype,"isOverlay",void 0);_.a([_.b(),_.z("design:type",Object)],I7.prototype,"captionIconType",void 0);_.a([_.b(),_.z("design:type",Object)],I7.prototype,"ariaLabel",void 0);_.a([_.b(),_.z("design:type",Object)],I7.prototype,"ariaPressedState",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],I7.prototype,"overlayDensity",void 0);
_.a([_.G("playerState"),_.z("design:type",Object),_.z("design:paramtypes",[])],I7.prototype,"playPauseButtonData",null);_.a([_.G("isFullscreen"),_.z("design:type",Object),_.z("design:paramtypes",[])],I7.prototype,"fullscreenButtonData",null);_.a([_.b(),_.z("design:type",Object)],I7.prototype,"onClosedCaptionsButtonClick",void 0);_.a([_.G("isFullscreen"),_.z("design:type",String),_.z("design:paramtypes",[])],I7.prototype,"fullscreenIcon",null);
_.Z(I7,"ytd-shorts-player-controls",function(){if(VY7===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);VY7=W}W=VY7;return W},{mode:1});var fcM;_.HI(_.KjH,"yt-interstitial-view-model",{props:{data:_.pA}});var r1a=_.Q(function(W){var l=W.data;return _.C("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.C("h1",{class:"reelWatchBreakViewModelHostTitle"},_.C(_.bH,{text:function(){return l().title}})),_.C("h2",{class:"reelWatchBreakViewModelHostBody"},_.C(_.bH,{text:function(){return l().body},
isOverlay:!0})),_.C(_.QH,{data:function(){return l().buttons}},{buttonViewModel:function(V,f){return _.C("div",{class:function(){return f()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.C(_.Nq,{data:V.data}))}}))},"vk");
r1a.idomCompat=!0;_.HI(r1a,"reel-watch-break-view-model",{props:{data:_.pA}});var iA=function(){return _.I.apply(this,arguments)||this};
_.v(iA,_.I);iA.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}}};
_.rc.Object.defineProperties(iA.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.k((W=this.data)==null?void 0:W.renderer,a$I)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.k((W=this.data)==null?void 0:W.renderer,zII)}}});
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],iA.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],iA.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],iA.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],iA.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("data.renderer"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],iA.prototype,"isSurvey",null);_.a([_.b({reflectToAttribute:!0}),_.G("data.renderer"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],iA.prototype,"isInterstitialViewModel",null);_.a([_.A({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],iA);
_.Z(iA,"ytd-reel-non-video-content-renderer",function(){if(fcM!==void 0)return fcM;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
return fcM=W},{mode:_.bD("kevlar_poly_si_batch_j028")?1:2});var R4I;_.HI(_.r4Z,"desktop-shorts-player-controls",{});var mv=function(){var W=_.I.apply(this,arguments)||this;W.isPlayerPaused=!1;W.isPlayerStarted=!1;W.showPlayerControls=!1;W.showScrubber=!1;W.autoHideJobId=0;W.modern=_.U("web_button_rework");W.overlayType=_.gU("web_shorts_expanded_overlay_type");W.panelData=void 0;W.isWatchWhileMode=!1;W.hasError=!1;W.panelShowDelayMs=1;W.scrubberComponent={};W.isFullscreen=!1;W.shouldHideOverlay=!1;W.enableAnchoredPanel=_.U("desktop_shorts_v2_anchored_panel");W.enablePersistentAnchoredPanel=_.U("desktop_shorts_v2_persistent_anchored_panel");
W.hideWatchWhilePanel=_.U("web_shorts_hide_watch_while_panel");W.useAspectRatio=_.U("web_use_aspect_ratio");W.isPersistentPanelActive=!1;W.anchoredPanelActive=!1;W.isShortsPipActive=!1;W.smallScreenSqueezeback=!1;W.enableFlexibleOverlay=_.U("web_enable_flexible_overlay");W.overlayDensity=0;W.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};W.onWindowResized=function(){_.gm(W,
"calculateOverlayDensity",function(){W.calculateOverlayDensity()},100)};
return W};
_.v(mv,_.I);_.t=mv.prototype;_.t.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.t.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.t.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var W=_.tY().resolve(_.tq);this.isWatchWhileMode&&(_.U("web_enable_shorts_new_carousel")?_.w8.addJob(function(){W.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):W.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.t.handleShowReelsCommentsOverlayCommand=function(W){W=_.k(W,x1e);this.isActive&&(W==null?0:W.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))};
_.t.updateEngagementPanelVisibility=function(W,l){W&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:l?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:W}})};
_.t.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.t.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.tY().resolve(_.$C).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.t.handleWatchWhilePanelScrimClick=function(){var W=_.tY().resolve(_.tq);this.activeWatchWhilePanel&&(W.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.t.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.t.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:_.U("web_enable_shorts_new_carousel")?0:void 0}}};
_.t.handlePlayerClick=function(W){var l=this,V,f;if((f=(V=window).matchMedia)!=null&&f.call(V,"(any-pointer: coarse)").matches||!W)this.showPlayerControls=!0,_.w8.cancelJob(this.autoHideJobId),this.autoHideJobId=_.pS(_.w8,function(){l.showPlayerControls=!1},4E3)};
_.t.isFirstReel=function(){return this.index===0};
_.t.handleMouseenter=function(){_.w8.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.t.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.t.handleScrubberEnter=function(){this.showScrubber=!0};
_.t.handleScrubberLeave=function(){this.showScrubber=!1};
_.t.maybeLogNonDefaultAspectRatio=function(){var W;(W=this.data)!=null&&W.thumbnail&&this.isActive&&.5625!==U1I(this.data.thumbnail)&&_.UWn("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.t.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var W=document.querySelector("#shorts-container");if(W){W=W.offsetWidth/2-this.playerContainer.offsetWidth/2;W=W>=368?1:W>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&W===1&&(W=0);this.isPersistentPanelActive&&(W=0);window.innerWidth<=599&&(W=2);this.overlayDensity=W;var l;(l=this.onOverlayDensityChanged)==null||l.call(this,this.index,this.overlayDensity)}}};
_.t.onOverlayDensityChange=function(){var W;(W=this.onOverlayDensityChanged)==null||W.call(this,this.index,this.overlayDensity);(W=_.GS(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&W.set("overlayDensity",this.overlayDensity);if(W=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))W.overlayDensity=this.overlayDensity};
_.t.isVideoContent=function(W){_.tY().resolve(_.$C);return!!_.k(W,_.N$)};
_.t.isNonVideoContent=function(W){_.tY().resolve(_.$C);return!!_.k(W,_.Pm)};
_.t.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.rc.Object.defineProperties(mv.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var W,l;return _.U("web_enable_format_first")||((W=this.data)==null?void 0:W.adsOverlay)&&_.U("web_enable_format_first_ads_only")||((l=this.data)==null?void 0:l.reelPlayerOverlayRenderer)&&_.U("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.U("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var W;return!this.isActive||!this.isPlayerStarted||(W=this.data)!=null&&W.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.data)==null?0:W.command)&&this.isVideoContent(this.data.command)){var l,V;if(((l=this.data)==null?0:l.adsOverlay)&&Object.keys((V=this.data)==null?void 0:V.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var f,r;if(((f=this.data)==null?0:f.reelPlayerOverlayRenderer)&&Object.keys((r=this.data)==null?void 0:r.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
mv.prototype.onOverlayDensityChange=mv.prototype.onOverlayDensityChange;mv.prototype.calculateOverlayDensity=mv.prototype.calculateOverlayDensity;mv.prototype.maybeLogNonDefaultAspectRatio=mv.prototype.maybeLogNonDefaultAspectRatio;mv.prototype.onEngagementPanelsChanged=mv.prototype.onEngagementPanelsChanged;mv.prototype.onScrubberDataChange=mv.prototype.onScrubberDataChange;mv.prototype.updateShouldHideOverlay=mv.prototype.updateShouldHideOverlay;
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],mv.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],mv.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.vZ.YtdGuideStateAwareBehavior),_.z("design:type",Object)],mv.prototype,"ytdGuideStateAwareBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],mv.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Number)],mv.prototype,"index",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],mv.prototype,"isActive",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],mv.prototype,"isHiddenInDom",void 0);_.a([_.b(),_.z("design:type",Object)],mv.prototype,"isPlayerPaused",void 0);_.a([_.b({selector:kaO}),_.z("design:type",Object)],mv.prototype,"isPlayerStarted",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mv.prototype,"showPlayerControls",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mv.prototype,"showScrubber",void 0);_.a([_.b(),_.z("design:type",Object)],mv.prototype,"autoHideJobId",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mv.prototype,"modern",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mv.prototype,"overlayType",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],mv.prototype,"ytdReduxBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],mv.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],mv.prototype,"watchWhileEngagementPanels",void 0);_.a([_.b(),_.z("design:type",Object)],mv.prototype,"panelData",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mv.prototype,"isWatchWhileMode",void 0);_.a([_.b(),_.z("design:type",String)],mv.prototype,"activeWatchWhilePanel",void 0);
_.a([_.b(),_.z("design:type",Object)],mv.prototype,"hasError",void 0);_.a([_.b(),_.z("design:type",Object)],mv.prototype,"panelShowDelayMs",void 0);_.a([_.b(),_.z("design:type",Object)],mv.prototype,"scrubberComponent",void 0);_.a([_.b({selector:_.uE,reflectToAttribute:!0}),_.z("design:type",Object)],mv.prototype,"isFullscreen",void 0);_.a([_.b(),_.z("design:type",Object)],mv.prototype,"shouldHideOverlay",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mv.prototype,"enableAnchoredPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mv.prototype,"enablePersistentAnchoredPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mv.prototype,"hideWatchWhilePanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mv.prototype,"useAspectRatio",void 0);
_.a([_.b({selector:_.Qeg,reflectToAttribute:!0}),_.z("design:type",Object)],mv.prototype,"isPersistentPanelActive",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mv.prototype,"anchoredPanelActive",void 0);_.a([_.b({selector:_.k1,reflectToAttribute:!0}),_.z("design:type",Object)],mv.prototype,"isShortsPipActive",void 0);_.a([_.b({selector:u9e,reflectToAttribute:!0}),_.z("design:type",Object)],mv.prototype,"smallScreenSqueezeback",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],mv.prototype,"enableFormatFirst",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mv.prototype,"enableFlexibleOverlay",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mv.prototype,"overlayDensity",void 0);_.a([_.b(),_.z("design:type",Function)],mv.prototype,"onOverlayDensityChanged",void 0);
_.a([_.b(),_.G("isActive","hasError","isPlayerStarted"),_.z("design:type",Object),_.z("design:paramtypes",[])],mv.prototype,"shouldRenderPlayerElements",null);_.a([_.b(),_.G("isActive","isWatchWhileMode"),_.z("design:type",Object),_.z("design:paramtypes",[])],mv.prototype,"watchWhileOrPersistentActive",null);_.a([_.TS("isActive","hasError","showingExpandedOverlay"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mv.prototype,"updateShouldHideOverlay",null);
_.a([_.b({reflectToAttribute:!0}),_.G("isActive","isPlayerStarted","data"),_.z("design:type",Object),_.z("design:paramtypes",[])],mv.prototype,"shouldRenderScrubber",null);_.a([_.TS("shouldRenderScrubber"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mv.prototype,"onScrubberDataChange",null);_.a([_.G("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.z("design:type",Object),_.z("design:paramtypes",[])],mv.prototype,"overlayComponent",null);
_.a([_.TS("watchWhileEngagementPanels"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mv.prototype,"onEngagementPanelsChanged",null);_.a([_.Aa("#player-container"),_.z("design:type",HTMLElement)],mv.prototype,"playerContainer",void 0);_.a([_.Aa("#cinematic-container"),_.z("design:type",HTMLElement)],mv.prototype,"cinematicContainer",void 0);
_.a([_.TS("isPersistentPanelActive","data.thumbnail"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mv.prototype,"maybeLogNonDefaultAspectRatio",null);_.a([_.TS("isPersistentPanelActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mv.prototype,"calculateOverlayDensity",null);_.a([_.TS("overlayDensity"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mv.prototype,"onOverlayDensityChange",null);
_.a([_.A({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],mv);
_.Z(mv,"ytd-reel-video-renderer",function(){if(R4I!==void 0)return R4I;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return R4I=W},{mode:_.bD("kevlar_poly_si_batch_j028")?1:2});var X$=function(){var W=_.I.apply(this,arguments)||this;W.isPreviousPageShorts=!1;W.index=0;W.delayedActiveIndex=0;W.playablePreviousIndex=null;W.isPlayerPaused=!1;W.isPlayerStarted=!1;W.intersectionObserverThreshold=.6;W.fitToVisibleBounds=!1;W.pageSubtype="shorts";W.enablePreviousContinuation=_.U("shorts_in_playlists_web");W.shortsPipEnabled=_.U("web_shorts_pip");W.isDark=document.documentElement.hasAttribute("dark");W.shortsViewTransitions=_.U("web_shorts_view_transitions");W.isFullscreen=!1;W.isShortsPipActive=
!1;W.buttonOverride={iconPosition:"icon-only",size:"XL"};W.anchoredPanelActive=!1;W.isActive=!1;W.smallScreenPersistentPanel=!1;W.isPersistentPanelActive=!1;W.smallScreenSqueezeBack=!1;W.enableScrollIntoViewCenter=_.U("web_scroll_into_view_center");W.formatFirst=_.U("web_enable_format_first")||_.U("web_enable_format_first_ads_only")||_.U("web_enable_format_first_organic_only");W.enableFlexibleOverlay=_.U("web_enable_flexible_overlay");W.useAspectRatio=_.U("web_use_aspect_ratio");W.isShortsInitialized=
!1;W.hidePreviousButtonImmediately=!1;W.showPreviousButtonImmediately=!1;W.endOfNextContinuation=!1;W.currentPlayerIndex=0;W.nextReelVe=_.GY(56921);W.prevReelVe=_.GY(56922);W.loopToggleOffVe=_.GY(198013);W.loopToggleOnVe=_.GY(198014);W.ambientModeToggleVe=_.GY(227860);W.reelPlayerPausedStateRendererVe=_.GY(141313);W.storedPlaybackSpeed=null;W.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"};W.onOverlayDensityChanged=function(l,V){var f;(f=W.getActiveReelVideo(l))==null||f.setAttribute("overlay-density",String(V))};
return W};
_.v(X$,_.I);_.t=X$.prototype;_.t.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.t.deflateInactivePreviousSlides=function(){var W=_.yS("web_shorts_deflate_inactive_slides_aggressive_distance");if(W>0&&this.shortsProcessedSequence&&this.activeIndex){W=this.activeIndex-W;for(var l=0;l<=W;l++){var V=void 0;((V=this.shortsProcessedSequence[l].reelPlayerOverlayRenderer)==null?0:V.metapanel)&&this.set("shortsProcessedSequence."+l+".reelPlayerOverlayRenderer",{});V=void 0;((V=this.shortsProcessedSequence[l].adsOverlay)==null?0:V.adSlotMetadata)&&this.set("shortsProcessedSequence."+
l+".adsOverlay",{})}}};
_.t.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.t.onResize=function(){var W=_.DJ(),l=W.dispatch,V=this.calculateIsSmallWidth();l.call(W,_.GT({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:V}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.t.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:_.U("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}}};
_.t.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var W=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,l=W,V=0;W<250&&(l=W+this.shortsInnerContainer.clientWidth,V=24);_.I1(this.hostElement,{"--ytd-shorts-header-width":l+"px","--ytd-shorts-top-spacing":V+"px"})}};
_.t.isFirstShorts=function(W){return W?this.index===-W.length:this.index===0};
_.t.isActiveReel=function(W,l,V){V&&(l=this.calculatePrevIndex(l,V));return W===l};
_.t.onFullscreenChange=function(){if(_.U("web_fullscreen_shorts")){var W;(W=this.getActiveReelVideo(this.activeIndex))==null||W.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.tY().resolve(_.Sl).close(!0)}};
_.t.engagementPanelsChanged=function(){var W;this.watchWhileEngagementPanels=(W=this.data)==null?void 0:W.engagementPanels};
_.t.unregisterPanels=function(){var W=_.tY().resolve(_.tq);if(this.watchWhileEngagementPanels)for(var l=_.L(this.watchWhileEngagementPanels),V=l.next();!V.done;V=l.next()){var f=V.value,r=void 0,R=void 0;V=(r=f.engagementPanelSectionListRenderer)==null?void 0:(R=r.identifier)==null?void 0:R.tag;f=this.getPanelContentIdentifier(f.engagementPanelSectionListRenderer);W&&(V&&W.panelMap.delete(V),f&&_.U("web_shorts_panel_caching_bugfix")&&(r=V=void 0,(r=(V=W).unregisterPanelContent)==null||r.call(V,f)))}};
_.t.isVideoContent=function(W){return this.isVideoContentCommand(W==null?void 0:W.command)};
_.t.getActiveReelVideo=function(W){return _.GS(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+W+'"]')};
_.t.calculatePrevIndex=function(W,l){return l?W-((l==null?void 0:l.length)||0):-1};
_.t.onKeydown=function(W){var l=_.d_(W)||[];if(!_.$cs(l))if(W.code==="ArrowUp")W.preventDefault(),this.handlePrevButtonClick();else if(W.code==="ArrowDown")W.preventDefault(),this.handleNextButtonClick();else if(W.code==="KeyM")this.toggleMuteUnmuteVideo();else if(W.code==="KeyK"||W.code==="Space")this.togglePlayPauseVideo();else if((W.code==="KeyA"||W.code==="ArrowLeft")&&_.U("web_shorts_keyboard_enable_seek_shortcuts")){var V;(V=this.player)==null||V.seekBy(-5)}else if((W.code==="KeyD"||W.code===
"ArrowRight")&&_.U("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var f;(f=this.player)==null||f.seekBy(5)}};
_.t.onServiceRequestCompleted=function(W,l){W=l.data;W.continuationEndpoint&&W.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:W.entries,continuationEndpoint:W.continuationEndpoint}}):W.prevContinuationEndpoint&&W.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:W.prevEntries,prevContinuationEndpoint:W.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.t.handleEngagementPanelVisibilityChanged=function(W,l){var V=_.tY().resolve(_.tq);if(W&&V){var f=this.getPanelIdentifier(W);if(l==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==f){V.hidePanel(this.activePanel);var r;this.activePanel=((r=W.identifier)==null?void 0:r.tag)||W.panelIdentifier}else this.isPersistentPanelActive=!0,_.DJ().dispatch(m1e(!0)),this.anchoredPanelActive=!0,this.activePanel=f;else l==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
f&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.DJ().dispatch(m1e(!1)))}};
_.t.handlePanelScrimClick=function(){var W=_.tY().resolve(_.tq);this.activePanel&&(W.hidePanel(this.activePanel),_.DJ().dispatch(m1e(!1)))};
_.t.getShortsLoopSetting=function(){var W,l,V,f,r;return _.g(function(R){switch(R.nextAddress){case 1:return _.U("kevlar_shorts_auto_advance")?R.yield(_.RB.getInstance(),2):R.return(!0);case 2:return(W=R.yieldResult)?R.yield(W.get("sfvles"),3):R.return(!0);case 3:return V=(l=R.yieldResult)!=null?l:!1,R.yield(W.get("sfvle"),4);case 4:return r=(f=R.yieldResult)!=null?f:!0,V?R.return(r):R.return(!0)}})};
_.t.handleSignalActionToggleLoopShortsOff=function(){var W=this,l,V,f;return _.g(function(r){switch(r.nextAddress){case 1:if(!W.player)return r.return();W.player.setLoopVideo(!1);l=_.Qq();_.Nl(l,W.loopToggleOffVe);return r.yield(_.RB.getInstance(),2);case 2:return(V=r.yieldResult)?r.yield(V.set("sfvle",!1),3):r.return();case 3:return r.yield(V.set("sfvles",!0),4);case 4:f=_.MT(),_.ZY(0,203,!1),_.ZY(0,204,!0),f.save(),_.ju(r)}})};
_.t.handleSignalActionToggleLoopShortsOn=function(){var W=this,l,V,f;return _.g(function(r){switch(r.nextAddress){case 1:if(!W.player)return r.return();W.player.setLoopVideo(!0);l=_.Qq();_.Nl(l,W.loopToggleOnVe);return r.yield(_.RB.getInstance(),2);case 2:return(V=r.yieldResult)?r.yield(V.set("sfvle",!0),3):r.return();case 3:return r.yield(V.set("sfvles",!0),4);case 4:f=_.MT(),_.ZY(0,203,!0),_.ZY(0,204,!0),f.save(),_.ju(r)}})};
_.t.handleSignalActionToggleCinematicShortsOn=function(){D1M(!0);var W;(W=this.JSC$22346_cinematicController)==null||_.PB7(W,!0);_.Nl(_.Qq(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.t.handleSignalActionToggleCinematicShortsOff=function(){D1M(!1);var W;(W=this.JSC$22346_cinematicController)==null||_.PB7(W,!1);_.Nl(_.Qq(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.t.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.t.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.t.unhideCurrentOverlay=function(){if(this.overlayContainer){var W=this.overlayContainer.querySelector("#experiment-overlay");W&&_.w8.addLowPriorityJob(function(){W.style.display="unset"},100)}};
_.t.getCurrentShort=function(){if(this.currentEndpoint){var W=this.currentEndpoint;if(this.isNonVideoContentCommand(W)){var l=_.k(W,_.Pm);return{reelNonVideoContentRenderer:_.k(l==null?void 0:l.renderer,_.pm9),command:W}}if(this.data){var V;l=(V=_.k(this.currentEndpoint,_.N$))==null?void 0:V.thumbnail;var f;V=(f=this.data.overlay)==null?void 0:f.reelPlayerOverlayRenderer;_.tY().resolve(_.$C);W=this.data;var r,R;f=(r=W.overlay)==null?void 0:(R=r.shortsAdsRenderer)==null?void 0:R.adSlots;if(f!==void 0)f.length===
0?(_.sg("Shorts ads returned no ad slots."),W=void 0):(f.length>1&&_.sg("Shorts ads has more than one ad slots."),W=_.k(f[0],_.kRk));else{var y,P;W=_.k((y=W.overlay)==null?void 0:(P=y.shortsAdsRenderer)==null?void 0:P.overlay,_.kRk)}y=W;W=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.k(this.currentEndpoint,_.N$),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:V,thumbnail:l,command:W,adsOverlay:y}}}};
_.t.created=function(){var W=this;this.scrollToVideoThrottle=new _.t$(function(l){var V;(V=W.getActiveReelVideo(l))==null||V.scrollIntoView({behavior:"smooth",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.t$(function(l){var V;(V=W.getActiveReelVideo(l))==null||V.scrollIntoView({behavior:"auto",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.t.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.t.attached=function(){var W=this;_.tY().resolve(_.$C).registerRootElement(this);this.pageScrollElement=_.GS(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.mz(this,this.processResetAction));_.U("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var l=W.getActiveReelVideo(W.activeIndex);W.maybeCreateIntersectionObserver();l==null||l.scrollIntoView({behavior:"instant",
block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"});W.shortsContainer.style.overflowY="scroll"}))};
_.t.updateReelWatchSequenceResponse=function(){var W=this,l;_.U("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((l=_.k(this.currentEndpoint,_.N$))==null?0:l.sequenceParams)&&!this.reelWatchSequenceResponse&&(l=_.tY().resolve(_.$C))&&ieI(l,this.currentEndpoint).then(function(V){V&&(W.reelWatchSequenceResponse=V,_.w8.addLowPriorityJob(function(){W.maybeCreateIntersectionObserver(!0)}))})};
_.t.calculateSqueezebackPanelSize=function(){var W=this,l=window.innerWidth-456-(window.innerHeight-106)*.5625;_.w8.addLowPriorityJob(function(){l<360?_.DJ().dispatch(XkI(!0)):(W.hostElement.style.setProperty("--anchored-panel-width",Math.min(l,480)+"px"),_.DJ().dispatch(XkI(!1)))})};
_.t.detached=function(){var W=_.tY().resolve(_.$C);W.rootElement=void 0;var l;(l=W.unsubscribeFromStore)==null||l.call(W);W.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.mz(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.t.onResizeFinished=function(W,l){var V=this,f=new ResizeObserver(function(){V.shortsContainer.style.overflowY="hidden";_.w8.addLowPriorityJob(function(){l()},100)});
f.observe(W);return f};
_.t.resetDocumentScrollTop=function(){var W,l;if((W=document)==null?0:(l=W.scrollingElement)==null?0:l.scrollTop)document.scrollingElement.scrollTop=0};
_.t.loadPage_=function(W){var l=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),W){var V;!_.U("web_enable_delay_shorts_sequence_call")&&((V=_.k(this.currentEndpoint,_.N$))==null?0:V.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=W;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){l.isPlayerStarted&&(l.handleOnPlaybackCommand(),l.afterPlayerStarted=function(){})};
this.registerPanel(W)}};
_.t.afterPlayerStarted=function(){};
_.t.handleOnPlaybackCommand=function(){if(_.U("web_shorts_comment_stickers")&&this.isPlayerStarted){var W,l=(W=_.k(this.currentEndpoint,_.N$))==null?void 0:W.onPlaybackCommand;l&&this.ytComponentBehavior.resolveCommand(l)}};
_.t.maybeCreateIntersectionObserver=function(W){var l=this;W=W===void 0?!1:W;var V=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==V||W){this.intersectionObserverThreshold=V;W={rootMargin:"0px",threshold:V};var f;(f=this.intersectionObserver)==null||f.disconnect();this.intersectionObserver=new IntersectionObserver(function(r){r=_.L(r);for(var R=r.next();!R.done;R=r.next())if(R=R.value,R.intersectionRatio>V){R=Number(R.target.id);if(isNaN(R))break;
if(R===l.index)break;_.W98();l.loadVideo(R);_.VE("r_vtc")}},W);
this.observeShorts()}};
_.t.observeShorts=function(){var W=[].concat(_.QK(_.GS(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));W=_.L(W);for(var l=W.next();!l.done;l=W.next()){l=l.value;var V=void 0;(V=this.intersectionObserver)==null||V.observe(l)}};
_.t.initCsi=function(){_.Uuw("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var W={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"}},l,V;if((l=this.playerData)==null?0:(V=l.cacheMetadata)==null?0:V.isCacheHit)W.isCacheHit=!0;var f;if(l=(f=_.k(this.currentEndpoint,_.N$))==null?void 0:
f.prefetchTaskId)W.prefetchInfo={taskId:l};_.Sy(W)};
_.t.isAd=function(){var W,l;return!!((W=_.k(this.currentEndpoint,_.N$))==null?0:(l=W.adClientParams)==null?0:l.isAd)};
_.t.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.t.getPlayerContainer=function(){var W;return(W=_.GS(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:W.playerContainer};
_.t.onPlayerStateChange=function(W){var l=this;this.isPlayerPaused=W===2;W!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?W===1&&this.index===0&&(this.isPlayerStarted||_.DJ().dispatch(TLP(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.DJ().dispatch(TLP(!0)));this.player&&!this.player.getLoopVideo()&&_.w8.addLowPriorityJob(function(){l.getShortsLoopSetting().then(function(V){var f;(f=l.player)==null||f.setLoopVideo(V)})});
this.isPlayerPaused&&_.U("web_shorts_paused_state_logging")&&_.Py(_.Wh(),[this.reelPlayerPausedStateRendererVe])};
_.t.isInBackground=function(){var W=window.document.visibilityState;return!(!W||W==="visible")};
_.t.isShortPlayable=function(){if(_.U("kevlar_playable_short_killswitch"))return!0;var W;return(W=this.playerData)!=null&&W.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.t.setNormalPlaybackSpeed=function(){var W=this,l,V;return _.g(function(f){if(f.nextAddress==1)return f.yield(W.getPlayer().getPlayerPromise(),2);l=f.yieldResult;V=l.getPlaybackRate();V!==1&&(W.storedPlaybackSpeed=V,l.setPlaybackRate(1));_.ju(f)})};
_.t.restorePlaybackSpeed=function(){var W=this,l;return _.g(function(V){if(V.nextAddress==1)return W.storedPlaybackSpeed===null?V.jumpTo(0):V.yield(W.getPlayer().getPlayerPromise(),3);l=V.yieldResult;l.setPlaybackRate(W.storedPlaybackSpeed);W.storedPlaybackSpeed=null;_.ju(V)})};
_.t.playerDataChanged=function(){var W=this,l,V,f,r,R,y,P,n,B;return _.g(function(d){if(d.nextAddress==1){l=W.getPlayer();(V=W.intersectionObserver)==null||V.disconnect();if(W.playerData){if(((f=W.playerData.videoDetails)==null?void 0:f.videoId)!==((r=l.getPlayer())==null?void 0:r.getVideoData().video_id)){R={};if(y=_.k(W.currentEndpoint,_.N$))R.watch_endpoint=y,y.endTimeSeconds&&(R.end=y.endTimeSeconds);l.loadVideoWithPlayerResponse(W.playerData,R)}}else return d.return();return W.player?d.jumpTo(2):
d.yield(l.getPlayerPromise(),3)}d.nextAddress!=2&&(W.player=d.yieldResult,W.JSC$22346_playerStateChangeListener=W.onPlayerStateChange.bind(W),W.player.addEventListener("onStateChange",W.JSC$22346_playerStateChangeListener),_.U("kevlar_client_enable_shorts_player_bootstrap")&&_.l4(),W.scrollToVideoThrottle.fire(W.index),W.movePlayerToVideo(W.index),_.w8.addLowPriorityJob(function(){W.getShortsLoopSetting().then(function(J){var D;(D=W.player)==null||D.setLoopVideo(J)})}),_.DQI.resolve(W.player),W.player.syncVolume(),
W.getPlayer().focusOnPlayer());
_.w8.addLowPriorityJob(function(){W.observeShorts()},100);
P=W.player.getPlayerState(W.player.getPresentingPlayerType());P!==1||W.isPlayerStarted||_.DJ().dispatch(TLP(!0));W.updateBackNavContainerWidth();n=_.k(W.currentEndpoint,_.N$);((B=n)==null?0:B.startTimeSeconds)&&W.player.seekTo(n.startTimeSeconds);if(W.JSC$22346_cinematicController||W.cinematicsInitializeJobId)return d.return();W.cinematicsInitializeJobId=_.w8.addLowPriorityJob(function(){W.initCinematicController();W.cinematicsInitializeJobId=void 0});
_.ju(d)})};
_.t.onShortUndoDismiss=function(){var W=this,l=I$P().pop();l!==void 0&&(_.V9(this,function(){W.showCardWithIndex(l)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.t.onShortsDismiss=function(W){if(W=W.detail.reelDismissalActionRenderer)(W=_.k(W.onDismissalCompletionRenderer,_.Oq7))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:W}}}),this.scrollAndDismissCard()};
_.t.processReelNonVideoContentDismissalCommand=function(W){var l=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);W=_.k(W,YM7);this.activeDimissalTimeout=setTimeout(function(){l.scrollAndDismissCard()},Number(W==null?void 0:W.delayMs))};
_.t.scrollAndDismissCard=function(){var W=this,l=this.index;I$P().push(l);_.V9(this,function(){var V=W.getPlayableNextIndex();V!==null&&(V=W.getActiveReelVideo(V),W.hideCardWithIndex(l),V==null||V.scrollIntoView({behavior:"smooth",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"}))})};
_.t.hideCardWithIndex=function(W){if(W=this.getActiveReelVideo(W))W.hidden=!0};
_.t.showCardWithIndex=function(W){if(W=this.getActiveReelVideo(W))W.hidden=!1};
_.t.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.t.activeChanged=function(W){_.DJ().dispatch(_.GT({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:W}}));if(W)document.addEventListener("keydown",_.mz(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var l;(l=this.player)==null||l.sendAbandonmentPing()}var V;(V=this.player)==null||V.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.mz(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.t.graftClientVisualElements=function(){if(this.data){var W=_.Qq();_.dy1(W,_.jy({response:this.reelWatchSequenceResponse}));_.aH(W,this.nextReelVe);_.aH(W,this.prevReelVe);_.U("kevlar_shorts_auto_advance")&&(_.aH(W,this.loopToggleOffVe),_.aH(W,this.loopToggleOnVe));_.aH(W,this.ambientModeToggleVe);_.Py(_.Wh(),[this.nextReelVe,this.prevReelVe]);_.U("web_shorts_paused_state_logging")&&_.aH(W,this.reelPlayerPausedStateRendererVe)}};
_.t.graftNvcRenderer=function(){var W,l,V,f,r=this.index<0?(W=this.shortsProcessedPrevSequence)==null?void 0:(l=W[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:l.command:(V=this.shortsProcessedSequence)==null?void 0:(f=V[this.index])==null?void 0:f.command;if(r&&this.isNonVideoContentCommand(r)){W=_.k(r,_.Pm);var R,y;(W=(R=_.k(W==null?void 0:W.renderer,_.pm9))==null?void 0:(y=R.loggingDirectives)==null?void 0:y.trackingParams)&&_.Qq().graftServerVe(W)}};
_.t.setActiveIndex=function(){_.tY().resolve(_.$C).setActiveIndex(this.index)};
_.t.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.t.lazyUpdateMiniplayerData=function(){var W=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.w8.addLowPriorityJob(function(){W.updateMiniplayerData();W.updateMiniplayerDataJobId=void 0}))};
_.t.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.w8.cancelJob(this.updateMiniplayerDataJobId)};
_.t.updateMiniplayerData=function(){var W,l,V,f=_.tY().resolve(_.Sl),r={shortsData:this.getCurrentShort(),previousButtonDisabled:!((W=this.prevButtonData)==null||!W.isDisabled),nextButtonDisabled:!((l=this.nextButtonData)==null||!l.isDisabled),playabilityStatus:(V=this.playerData)==null?void 0:V.playabilityStatus};_.JF(f,r)};
_.t.resetPlayerLocation=function(){var W=this.getPlayer();this.initialPlayerContainer&&W.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.t.movePlayerToVideo=function(W,l){var V=this;l=l===void 0?!0:l;var f=this.getActiveReelVideo(W),r=this.getPlayer();if(f){this.overlayContainer?f.appendChild(this.overlayContainer):(this.overlayContainer=_.GS(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,f.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||r.appendTo(this.overlayContainer.playerContainer,void 0,!0));var R;(R=this.player)==null||R.setSize(NaN,NaN);this.isActive||_.pS(_.w8,function(){V.isActive=
!0});
r.style.visibility="visible";_.U("reels_web_disable_rtr_tick")||_.U("reels_web_use_pbs_first_shorts")&&W===0||_.Wy("r_tr");this.currentPlayerIndex=W;f.appendChild(this.errorScreenContainer);var y;(y=this.JSC$22346_cinematicController)==null||_.CB7(y)}else l?_.w8.addLowPriorityJob(function(){V.movePlayerToVideo(V.index,!1)}):Math.random()<=_.yS("web_shorts_error_logging_threshold")&&_.Ar(new _.bP("Trying to movePlayerToVideo with undefined container.",{firstAttempt:l,
index:W}))};
_.t.enableFormatFirst=function(W){return _.U("web_enable_format_first")||W.adsOverlay&&_.U("web_enable_format_first_ads_only")||W.reelPlayerOverlayRenderer&&_.U("web_enable_format_first_organic_only")};
_.t.getAspectRatio=function(W){if(W!=null&&W.thumbnail&&this.enableFormatFirst(W))return"--ytd-shorts-player-ratio: "+U1I(W.thumbnail)};
_.t.getBackgroundImage=function(W){if(W!=null&&W.thumbnail)return(W=_.F3(W.thumbnail.thumbnails))?'background-image:url("'+W+'");':"background-color:black;"};
_.t.onPersistentPanelActiveChanged=function(){var W=this.getCurrentShort();if(W&&this.enableFormatFirst(W)&&(W==null?0:W.thumbnail)&&U1I(W.thumbnail)!==.5625){var l;(l=this.player)==null||l.setSize(NaN,NaN)}};
_.t.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.t.moveCinematicsToVideo=function(){var W=_.GS(this.hostElement).querySelector("ytd-reel-video-renderer");(W==null?0:W.cinematicContainer)&&W.cinematicContainer!==this.shortsCinematicContainer.parentElement&&W.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.t.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.t.updatePrevButtonData=function(){var W=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(W){var l;this.prevButtonData=W=Object.assign({},W,{accessibility:{label:_.wg("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:W.isDisabled||this.index===-(((l=this.shortsProcessedPrevSequence)==null?void 0:l.length)||0),tooltip:this.isUpArrowHidden?"":_.wg("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=W=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.t.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.t.updateNextButtonData=function(){var W=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(W){var l;this.nextButtonData=W=Object.assign({},W,{accessibility:{label:_.wg("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:W.isDisabled||this.index===((l=this.shortsProcessedSequence)==null?void 0:l.length),tooltip:_.wg("NEXT_VIDEO_LABEL")||""})}};
_.t.getPlayablePreviousIndex=function(){for(var W,l=this.index-1;l>=-(((W=this.prevShortsSequence)==null?void 0:W.length)||0);l--)if(!I$P().includes(l))return l;return null};
_.t.getIndexInSequence=function(W,l){return W.findIndex(function(V){var f;return((f=_.k(V.command,_.N$))==null?void 0:f.videoId)===l})};
_.t.handlePrevButtonClick=function(W){var l=this,V,f;return _.g(function(r){V=l.getPlayablePreviousIndex();if(V===null)return r.return();l.gestureType=((f=W)==null?void 0:f.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";V===0&&(l.hidePreviousButtonImmediately=!0);if(l.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){l.transitionToVideoThrottle.fire(V)}),r.return();
l.scrollToVideoThrottle.fire(V);_.ju(r)})};
_.t.getPlayableNextIndex=function(){for(var W,l=this.index+1;l<(((W=this.shortsProcessedSequence)==null?void 0:W.length)||0);l++)if(!I$P().includes(l))return l;return null};
_.t.handleNextButtonClick=function(W,l){var V=this,f,r;return _.g(function(R){f=V.getPlayableNextIndex();if(f===null)return R.return();f===1&&(V.showPreviousButtonImmediately=!0);V.gestureType=((r=W)==null?void 0:r.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";l&&(V.gestureType=l);if(V.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){V.transitionToVideoThrottle.fire(f)}),R.return();
V.scrollToVideoThrottle.fire(f);_.ju(R)})};
_.t.handleReelNavigateCommand=function(W,l,V){(W=_.k(W,NLM))&&l&&W.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(V)};
_.t.loadVideo=function(W,l){l=l===void 0?!1:l;if(W!==this.currentPlayerIndex){_.DJ().dispatch(TLP(!1));if(this.isAd()&&!l){var V;(V=this.player)==null||V.notifyShortsAdSwipeEvent()}if((l=this.JSC$22346_cinematicController)!=null){var f;(f=l.currentCinematicEffect)==null||f.pause()}if((f=this.JSC$22346_cinematicController)!=null){var r;(r=f.currentCinematicEffect)==null||r.clear()}f=W>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(f));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var R,y,P,n;r=W<0?(R=this.shortsProcessedPrevSequence)==null?void 0:(y=R[this.shortsProcessedPrevSequence.length+W])==null?void 0:y.command:(P=this.shortsProcessedSequence)==null?void 0:(n=P[W])==null?void 0:n.command;this.index=W;this.gestureType||(this.gestureType=f?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
r&&this.isVideoContentCommand(r)&&(this.ytComponentBehavior.resolveCommand(r,{form:{createScreenConfig:{clickedVisualElement:f?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(r&&this.isNonVideoContentCommand(r)){this.currentEndpoint=r;this.data=void 0;R=_.Qq();y=_.k(r,_.Pm);var B,d;(y=(B=_.k(y==null?void 0:y.renderer,_.pm9))==null?void 0:(d=B.screenLoggingData)==null?void 0:d.screenVeType)&&_.Ob(R,y);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(B=this.getActiveReelVideo(W))&&B.appendChild(this.overlayContainer)}var J,D;if(((J=this.reelWatchSequenceResponse)==null?0:J.continuationEndpoint)&&((D=this.reelWatchSequenceResponse)==null?0:D.entries)&&W===this.reelWatchSequenceResponse.entries.length-1){var u,H;J={contentPlaybackContext:_.er({},(H=_.k((u=this.currentEndpoint)==null?void 0:u.commandMetadata,_.XN))==null?void 0:H.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:J})}var p,X,w;((p=this.reelWatchSequenceResponse)==null?0:p.prevContinuationEndpoint)&&W===-(((X=this.reelWatchSequenceResponse)==null?void 0:(w=X.prevEntries)==null?void 0:w.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.t.setMiniplayerPreview=function(W){W=(W===void 0?0:W)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var l,V,f=_.tY().resolve(_.Sl),r={shortsData:void 0,shortsPreviewThumbnail:W?(l=this.shortsProcessedSequence)==null?void 0:(V=l[W])==null?void 0:V.thumbnail:void 0};_.JF(f,r)};
_.t.updateTitle=function(W){var l,V;W=(W==null?0:W.adSlots)?"":(V=W==null?void 0:(l=W.videoDetails)==null?void 0:l.title)!=null?V:"";_.FN(this.hostElement,"yt-update-title",W)};
_.t.registerPanel=function(W){var l=_.tY().resolve(_.tq);if(l){W=_.L(W.engagementPanels||[]);for(var V=W.next();!V.done;V=W.next()){V=V.value;var f=this.getPanelContentIdentifier(V.engagementPanelSectionListRenderer),r=void 0,R=void 0;(R=(r=l).registerPanelContent)==null||R.call(r,f,V)}}};
_.t.getPanelIdentifier=function(W){var l;return(W==null?void 0:(l=W.identifier)==null?void 0:l.tag)||(W==null?void 0:W.panelIdentifier)||(W==null?void 0:W.targetId)};
_.t.getPanelContentIdentifier=function(W){var l;return(W==null?void 0:W.targetId)||(W==null?void 0:W.panelIdentifier)||(W==null?void 0:(l=W.identifier)==null?void 0:l.tag)};
_.t.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;_.DJ().dispatch(TLP(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.firstShortsData=void 0;_.DJ().dispatch(m1e(!1));var W=_.tY().resolve(_.$C);W.dismissedIndices=[];W.watchWhileIndices.clear();
this.isShortsMiniplayerActive()&&_.tY().resolve(_.Sl).close(!0)};
_.t.processAppendReelWatchSequenceContinuationEntriesAction=function(W){var l=this,V;(V=this.intersectionObserver)==null||V.disconnect();W=W.appendReelWatchSequenceContinuationEntriesAction;if(W==null?0:W.entries){var f;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.QK(((f=this.reelWatchSequenceResponse)==null?void 0:f.entries)||[]),_.QK(W.entries)),continuationEndpoint:W.continuationEndpoint})}else if(W==null?0:W.prevEntries){var r;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.QK(((r=this.reelWatchSequenceResponse)==null?void 0:r.prevEntries)||[]),_.QK(W.prevEntries)),prevContinuationEndpoint:W.prevContinuationEndpoint});_.w8.addLowPriorityJob(function(){l.movePlayerToVideo(l.index);var R;(R=l.getActiveReelVideo(l.index))==null||R.scrollIntoView({block:"nearest",inline:l.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.w8.addLowPriorityJob(function(){l.observeShorts()},100)};
_.t.processWatchSequence=function(W){var l=this;return W.map(function(V){V=V.command;if(l.isVideoContentCommand(V)){var f=_.k(V,_.N$);return{reelPlayerOverlayRenderer:_.k(f==null?void 0:f.overlay,_.oQc),thumbnail:f.thumbnail,command:V}}return l.isNonVideoContentCommand(V)?(f=_.k(V,_.Pm),{reelNonVideoContentRenderer:_.k(f==null?void 0:f.renderer,_.pm9),command:V}):{command:V}})};
_.t.calculateIntersectionObserverThreshold=function(){var W=_.GS(this.hostElement).querySelector("ytd-reel-video-renderer"),l=1;(W==null?0:W.offsetHeight)&&(W==null?0:W.offsetWidth)&&(l=Math.min(W.offsetHeight,this.shortsContainer.offsetHeight)/W.offsetHeight*(Math.min(W.offsetWidth,this.shortsContainer.offsetWidth)/W.offsetWidth));return Math.round(l*.6*10)/10};
_.t.isVideoContentCommand=function(W){_.tY().resolve(_.$C);return!!_.k(W,_.N$)};
_.t.isNonVideoContentCommand=function(W){_.tY().resolve(_.$C);return!!_.k(W,_.Pm)};
_.t.initCinematicController=function(){var W=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22346_cinematicController=new _.F$(this.shortsCinematicContainer,this.player);var l,V=_.k((l=this.data)==null?void 0:l.background,_.RN);_.ncP(this.JSC$22346_cinematicController,V);_.PB7(this.JSC$22346_cinematicController,JZa(V));_.gcM(this.JSC$22346_cinematicController);_.w8.addLowPriorityJob(function(){W.moveCinematicsToVideo()})}};
_.t.handleMiniplayerNavigateShorts=function(W){W==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():W==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.t.handleSignalActionToggleShortsPictureInPicture=function(){if(_.tY().resolve(_.Sl).pictureInPictureSupported()){var W=_.tY().resolve(_.$C);if(_.U("web_shorts_pip")){var l=_.tY().resolve(_.Sl);W.isShortsPipActive()?l.deactivate():l.isMiniplayerActive()||(_.hJ().shortsPipActivation=!0,_.B91(l))}}else(W=this.player)==null||W.togglePictureInPicture()};
_.rc.Object.defineProperties(X$.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.reelWatchSequenceResponse)!=null&&W.prevEntries)return this.processWatchSequence([].concat(_.QK(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){if(_.U("web_enable_shorts_sequence_refactor"))return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.QK(this.prevShortsSequence));var W=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!W)return this.shortsProcessedPrevSequence;
if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var l=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.QK(this.prevShortsSequence.slice(0,l)),[W],_.QK(this.prevShortsSequence.slice(l+1)))}l=this.index+this.shortsProcessedPrevSequence.length;W.thumbnail=this.shortsProcessedPrevSequence[l].thumbnail;return[].concat(_.QK(this.shortsProcessedPrevSequence.slice(0,l)),[W],_.QK(this.shortsProcessedPrevSequence.slice(l+
1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.reelWatchSequenceResponse)!=null&&W.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var W=this;if(_.U("web_enable_shorts_sequence_refactor")){if(this.firstShortsData||this.shortsSequence){if(!this.shortsSequence&&this.firstShortsData)return[this.firstShortsData];var l;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((l=this.shortsProcessedSequence)==null?void 0:l.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var V,f=this.getIndexInSequence(this.shortsSequence,_.k((V=
this.firstShortsData)==null?void 0:V.command,_.N$).videoId);if(f!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=f,_.w8.addLowPriorityJob(function(){W.transitionToVideoThrottle.fire(W.index);W.movePlayerToVideo(W.index)}));
return[].concat(_.QK(this.shortsSequence))}return[this.firstShortsData].concat(_.QK(this.shortsSequence))}}else if(this.data||this.shortsSequence){V=this.getCurrentShort();if(!V||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[V];if(V==null||!V.reelNonVideoContentRenderer)if(l=this.getIndexInSequence(this.shortsSequence,_.k(this.currentEndpoint,_.N$).videoId),this.index===0&&l!==-1)return this.currentPlayerIndex=this.index=l,this.scrollToVideoThrottle.fire(this.index),
this.movePlayerToVideo(this.index),[].concat(_.QK(this.shortsSequence.slice(0,this.index)),[V],_.QK(this.shortsSequence.slice(this.index+1)));if(this.shortsProcessedSequence){V.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var r,R,y;l=((r=_.k((f=this.shortsProcessedSequence[0])==null?void 0:f.command,_.N$))==null?void 0:r.videoId)===((y=_.k((R=this.shortsSequence[0])==null?void 0:R.command,_.N$))==null?void 0:y.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.QK(this.shortsProcessedSequence.slice(0,
this.index)),[V],_.QK(this.shortsSequence.slice(l)))}return[V].concat(_.QK(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var W=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;W&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(W)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 W,l;return this.index===((W=this.reelWatchSequenceResponse)==null?void 0:(l=W.entries)==null?void 0:l.length)}var V;return!((V=this.reelWatchSequenceResponse)==null?0:V.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var W;(W=this.delayedActiveIndexUpdateDebouncer)==null||W.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return this.isShortPlayable()||((l=_.k((W=this.data)==null?void 0:W.watchStatus,_.QH9))==null?void 0:(V=l.style)==null?void 0:V.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var W=this,l=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),V;if((this.data||l)&&(((V=this.data)==null?0:V.engagementPanels)||this.isAd()||l)){l=!1;this.activePanel="shorts-comments-panel";var f;V=_.L(((f=this.data)==null?void 0:f.engagementPanels)||[]);for(f=V.next();!f.done;f=V.next())if(this.getPanelIdentifier(f.value.engagementPanelSectionListRenderer)===this.activePanel){l=!0;break}if(this.isPersistentPanelActive){var r=
_.tY().resolve(_.tq);_.pS(_.w8,function(){r.showPanel(W.activePanel,void 0,void 0,void 0,null)},100)}var R;
f=[].concat(_.QK(Object.values(((R=this.data)==null?void 0:R.engagementPanels)||{})));if(_.U("enable_preview_panel_for_shorts_search_suggested_action")){var y,P,n,B,d;((B=_.k((y=this.data)==null?void 0:(P=y.overlay)==null?void 0:(n=P.reelPlayerOverlayRenderer)==null?void 0:n.metapanel,_.bE$))==null?void 0:(d=B.metadataItems)==null?void 0:d.find(function(J){var D,u;return((D=_.k(J,eIM))==null?void 0:(u=D.icon)==null?void 0:u.iconType)==="SEARCH"}))!==void 0&&f.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}R=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);y=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return R===void 0&&y===void 0||(R==null?0:R.isDisabled)||(y==null?void 0:y.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!l?(l=f==null?void 0:f.findIndex(function(J){var D,
u;return((D=J.engagementPanelSectionListRenderer)==null?void 0:(u=D.identifier)==null?void 0:u.tag)==="shorts-comments-panel"}),l===-1||l===void 0||f!=null&&f.splice(l,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.wg("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.wg("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:_.wg("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.wg("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(_.QK(Object.values(f||
{})))):f}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.shortsProcessedSequence)==null?void 0:W[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var W=this,l,V,f;if((l=this.playerData)==null?0:(V=l.playabilityStatus)==null?0:(f=V.errorScreen)==null?0:f.playerInterstitialRenderer)return _.w8.addLowPriorityJob(function(){W.movePlayerToVideo(W.index)}),this.playerData.playabilityStatus.errorScreen;
var r,R;return((r=this.data)==null?void 0:r.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((R=this.data)==null?0:R.watchStatus)&&_.k(this.data.watchStatus,_.ykL)?(_.w8.addLowPriorityJob(function(){W.movePlayerToVideo(W.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.rc.Object.defineProperties(X$,{template:{configurable:!0,enumerable:!0,get:function(){if(hI7===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);hI7=W}W=hI7;return W}}});
X$.prototype.onNextButtonDataChange=X$.prototype.onNextButtonDataChange;X$.prototype.onPrevButtonDataChange=X$.prototype.onPrevButtonDataChange;X$.prototype.onPersistentPanelActiveChanged=X$.prototype.onPersistentPanelActiveChanged;X$.prototype.lazyUpdateMiniplayerData=X$.prototype.lazyUpdateMiniplayerData;X$.prototype.onShortsPipActiveChanged=X$.prototype.onShortsPipActiveChanged;X$.prototype.setActiveIndex=X$.prototype.setActiveIndex;X$.prototype.graftNvcRenderer=X$.prototype.graftNvcRenderer;
X$.prototype.graftClientVisualElements=X$.prototype.graftClientVisualElements;X$.prototype.onActiveChanged=X$.prototype.onActiveChanged;X$.prototype.onShortsDismiss=X$.prototype.onShortsDismiss;X$.prototype.onShortUndoDismiss=X$.prototype.onShortUndoDismiss;X$.prototype.playerDataChanged=X$.prototype.playerDataChanged;X$.prototype.afterPlayerStarted=X$.prototype.afterPlayerStarted;X$.prototype.updateReelWatchSequenceResponse=X$.prototype.updateReelWatchSequenceResponse;
X$.prototype.unhideCurrentOverlay=X$.prototype.unhideCurrentOverlay;X$.prototype.onServiceRequestCompleted=X$.prototype.onServiceRequestCompleted;X$.prototype.engagementPanelsChanged=X$.prototype.engagementPanelsChanged;X$.prototype.onFullscreenChange=X$.prototype.onFullscreenChange;X$.prototype.onResize=X$.prototype.onResize;X$.prototype.setFirstShortsData=X$.prototype.setFirstShortsData;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],X$.prototype,"ytComponentBehavior",void 0);
_.a([_.F(_.LY.YtPageBehavior),_.z("design:type",Object)],X$.prototype,"ytPageBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],X$.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.Wo),_.z("design:type",Object)],X$.prototype,"ironResizableBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],X$.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],X$.prototype,"ytdDismissibleItemBehavior",void 0);
_.a([_.F(_.vZ.YtdGuideStateAwareBehavior),_.z("design:type",Object)],X$.prototype,"ytdGuideStateAwareBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],X$.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"playerData",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"reelWatchSequenceResponse",void 0);
_.a([_.b(),_.z("design:type",Object)],X$.prototype,"cachedReelWatchSequenceResponse",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"cachedSequenceParams",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"cachedSequenceProvider",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"currentEndpoint",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"nextButtonData",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"prevButtonData",void 0);
_.a([_.b(),_.z("design:type",Object)],X$.prototype,"isPreviousPageShorts",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"index",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"delayedActiveIndex",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"playablePreviousIndex",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"player",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"isPlayerPaused",void 0);
_.a([_.b({selector:kaO}),_.z("design:type",Object)],X$.prototype,"isPlayerStarted",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"intersectionObserver",void 0);_.a([_.b(),_.z("design:type",Number)],X$.prototype,"cinematicsInitializeJobId",void 0);_.a([_.b(),_.z("design:type",Number)],X$.prototype,"updateMiniplayerDataJobId",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"fitToVisibleBounds",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"pageSubtype",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],X$.prototype,"enablePreviousContinuation",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X$.prototype,"shortsPipEnabled",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X$.prototype,"isDark",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X$.prototype,"shortsViewTransitions",void 0);
_.a([_.b({selector:_.uE,reflectToAttribute:!0}),_.z("design:type",Object)],X$.prototype,"isFullscreen",void 0);_.a([_.b({selector:_.k1,reflectToAttribute:!0}),_.z("design:type",Object)],X$.prototype,"isShortsPipActive",void 0);_.a([_.Aa("#shorts-inner-container"),_.z("design:type",HTMLElement)],X$.prototype,"shortsInnerContainer",void 0);_.a([_.Aa("#back-nav-button ytd-button-renderer"),_.z("design:type",_.Xj)],X$.prototype,"backNavButton",void 0);
_.a([_.Aa("#shorts-container"),_.z("design:type",HTMLElement)],X$.prototype,"shortsContainer",void 0);_.a([_.OX("error-screen"),_.z("design:type",HTMLElement)],X$.prototype,"errorScreenContainer",void 0);_.a([_.OX("player"),_.z("design:type",Object)],X$.prototype,"playerElement",void 0);_.a([_.OX("shorts-cinematic-container"),_.z("design:type",HTMLElement)],X$.prototype,"shortsCinematicContainer",void 0);
_.a([_.OX("initial-player-container"),_.z("design:type",HTMLElement)],X$.prototype,"initialPlayerContainer",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"buttonOverride",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X$.prototype,"anchoredPanelActive",void 0);_.a([_.b(),_.z("design:type",String)],X$.prototype,"activePanel",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"isActive",void 0);
_.a([_.b({selector:u9e,reflectToAttribute:!0}),_.z("design:type",Object)],X$.prototype,"smallScreenPersistentPanel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X$.prototype,"isPersistentPanelActive",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"smallScreenSqueezeBack",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"enableScrollIntoViewCenter",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X$.prototype,"formatFirst",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X$.prototype,"enableFlexibleOverlay",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],X$.prototype,"useAspectRatio",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"panelContainer",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"overlayContainer",void 0);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"isShortsInitialized",void 0);
_.a([_.b(),_.z("design:type",Object)],X$.prototype,"firstShortsData",void 0);_.a([_.G("reelWatchSequenceResponse"),_.z("design:type",Object),_.z("design:paramtypes",[])],X$.prototype,"prevShortsSequence",null);_.a([_.G("data","prevShortsSequence"),_.z("design:type",Object),_.z("design:paramtypes",[])],X$.prototype,"shortsProcessedPrevSequence",null);_.a([_.G("reelWatchSequenceResponse"),_.z("design:type",Object),_.z("design:paramtypes",[])],X$.prototype,"shortsSequence",null);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X$.prototype,"setFirstShortsData",null);_.a([_.G("data","shortsSequence","firstShortsData"),_.z("design:type",Object),_.z("design:paramtypes",[])],X$.prototype,"shortsProcessedSequence",null);
_.a([_.b({reflectToAttribute:!0}),_.G("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],X$.prototype,"isUpArrowHidden",null);_.a([_.b({reflectToAttribute:!0}),_.G("reelWatchSequenceResponse","index","endOfNextContinuation"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],X$.prototype,"isDownArrowHidden",null);
_.a([_.b(),_.G("index"),_.z("design:type",Number),_.z("design:paramtypes",[])],X$.prototype,"activeIndex",null);_.a([_.G("isShortPlayable","data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],X$.prototype,"shouldRenderOfflineContent",null);_.a([_.XI("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X$.prototype,"onResize",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],X$.prototype,"anchoredEngagementPanels",null);
_.a([_.b(),_.z("design:type",Object)],X$.prototype,"watchWhileEngagementPanels",void 0);_.a([_.TS("isFullscreen"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X$.prototype,"onFullscreenChange",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X$.prototype,"engagementPanelsChanged",null);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],X$.prototype,"onServiceRequestCompleted",null);_.a([_.G("data","shortsSequence","index"),_.z("design:type",Object),_.z("design:paramtypes",[])],X$.prototype,"activeReel",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X$.prototype,"unhideCurrentOverlay",null);
_.a([_.TS("currentEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X$.prototype,"updateReelWatchSequenceResponse",null);_.a([_.TS("isPlayerStarted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X$.prototype,"afterPlayerStarted",null);_.a([_.G("playerData","reelWatchSequenceResponse","data"),_.z("design:type",Object),_.z("design:paramtypes",[])],X$.prototype,"errorScreen",null);
_.a([_.G("errorScreen"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],X$.prototype,"hasError",null);_.a([_.TS("playerData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],X$.prototype,"playerDataChanged",null);_.a([_.XI("yt-dismissible-item-undo-feedback"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X$.prototype,"onShortUndoDismiss",null);
_.a([_.XI("yt-disable-lockup-interaction"),_.z("design:type",Function),_.z("design:paramtypes",[Object]),_.z("design:returntype")],X$.prototype,"onShortsDismiss",null);_.a([_.zS("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X$.prototype,"onActiveChanged",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X$.prototype,"graftClientVisualElements",null);
_.a([_.TS("currentPlayerIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X$.prototype,"graftNvcRenderer",null);_.a([_.TS("index"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X$.prototype,"setActiveIndex",null);_.a([_.TS("isShortsPipActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X$.prototype,"onShortsPipActiveChanged",null);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X$.prototype,"lazyUpdateMiniplayerData",null);_.a([_.b(),_.z("design:type",Object)],X$.prototype,"onOverlayDensityChanged",void 0);_.a([_.TS("isPersistentPanelActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X$.prototype,"onPersistentPanelActiveChanged",null);
_.a([_.TS("index","data","isUpArrowHidden"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X$.prototype,"onPrevButtonDataChange",null);_.a([_.TS("index","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],X$.prototype,"onNextButtonDataChange",null);_.a([_.A({is:"ytd-shorts"})],X$);_.ZI.registerService(_.bYS,X$);
_.Z1();
}catch(e){_._DumpException(e)}
try{
_.Ms("JzFVk");
var PFX;var nzI;var R7=function(){return _.I.apply(this,arguments)||this};
_.v(R7,_.I);R7.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
R7.prototype.computeBlueBottomLink=function(W){return W};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],R7.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],R7.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],R7.prototype,"data",void 0);_.a([_.b({computed:"computeIcon_(data.bottomIcon)"}),_.z("design:type",String)],R7.prototype,"bottomIcon",void 0);
_.a([_.b({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.z("design:type",Boolean)],R7.prototype,"enableBlueBottomLink",void 0);_.a([_.A({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],R7);
_.Z(R7,"ytd-web-answer-renderer",function(){if(nzI!==void 0)return nzI;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return nzI=W},{mode:_.bD("kevlar_poly_si_batch_j035")?1:2});var CF$;var t9=function(){var W=_.I.apply(this,arguments)||this;W.hasChipBar=!1;return W};
_.v(t9,_.I);t9.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}}};
t9.prototype.computeHasChipBar=function(W){return!(W==null||!W.chipBar)};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],t9.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],t9.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],t9.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.z("design:type",Object)],t9.prototype,"hasChipBar",void 0);_.a([_.A({is:"ytd-search-header-renderer",disableElementRegistration:!0})],t9);
_.Z(t9,"ytd-search-header-renderer",function(){if(CF$!==void 0)return CF$;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return CF$=W},{mode:1});var cxy;var st=function(){return _.I.apply(this,arguments)||this};
_.v(st,_.I);st.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],st.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],st.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-page-continuation"})],st);
_.Z(st,"ytd-page-continuation",function(){if(cxy!==void 0)return cxy;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return cxy=W},{mode:1});var BSa;var dgP;var JxI;var Dgv=function(){return _.I.apply(this,arguments)||this};
_.v(Dgv,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Dgv.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Dgv.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Dgv);
_.Z(Dgv,"ytd-watch-card-one-vs-one-event",function(){if(JxI!==void 0)return JxI;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return JxI=W},{mode:1});var Ugk=function(){return _.I.apply(this,arguments)||this};
_.v(Ugk,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Ugk.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Ugk.prototype,"data",void 0);_.a([_.A({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],Ugk);
_.Z(Ugk,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(dgP!==void 0)return dgP;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return dgP=W},{mode:1});var une;var k6P=function(){return _.I.apply(this,arguments)||this};
_.v(k6P,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],k6P.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],k6P.prototype,"data",void 0);_.a([_.A({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],k6P);
_.Z(k6P,"ytd-banner-and-box-hero-image-renderer",function(){if(une!==void 0)return une;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return une=W},{mode:1});var vz7;var Lo=function(){var W=_.I.apply(this,arguments)||this;W.modern=_.U("web_modern_buttons");return W};
_.v(Lo,_.I);Lo.prototype.computeIcon=function(){var W,l,V=(W=this.data)==null?void 0:(l=W.icon)==null?void 0:l.iconType;if(V)return _.IJ(V)};
Lo.prototype.computeButtonShape=function(){var W;return{buttonText:_.dE((W=this.data)==null?void 0:W.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.rc.Object.defineProperties(Lo.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"}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Lo.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Lo.prototype,"modern",void 0);_.a([_.b({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.G("data.style"),_.z("design:type",Object),_.z("design:paramtypes",[])],Lo.prototype,"buttonColor",null);
_.a([_.A({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],Lo);
_.Z(Lo,"ytd-call-to-action-button-renderer",function(){if(vz7!==void 0)return vz7;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return vz7=W},{mode:1});var HqX;var ym=function(){return _.I.apply(this,arguments)||this};
_.v(ym,_.I);ym.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.GS(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.KP(this.data.leftThumbnail.thumbnails,216)+")")};
ym.prototype.onLeftThumbnailChanged=ym.prototype.onLeftThumbnailChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ym.prototype,"data",void 0);_.a([_.TS("data.leftThumbnail"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ym.prototype,"onLeftThumbnailChanged",null);_.a([_.A({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],ym);
_.Z(ym,"ytd-collage-hero-image-renderer",function(){if(HqX!==void 0)return HqX;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return HqX=W},{mode:1});var KjI;var g1=function(){return _.I.apply(this,arguments)||this};
_.v(g1,_.I);g1.prototype.computeStyle=function(W){return W};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],g1.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],g1.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.z("design:type",String)],g1.prototype,"componentStyle",void 0);_.a([_.A({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],g1);
_.Z(g1,"ytd-single-hero-image-renderer",function(){if(KjI!==void 0)return KjI;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return KjI=W},{mode:1});var FjP;var P1=function(){return _.I.apply(this,arguments)||this};
_.v(P1,_.I);_.t=P1.prototype;
_.t.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:_.U("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.t.computeSubtitle=function(W){if(this.data){var l;if(this.data.upcomingEventData){W=_.dE(W.subtitle);var V=Number(this.data.upcomingEventData.startTime);isNaN(V)||(l=_.Bl(_.zY(W,V)))}else l=W.subtitle;return l}};
_.t.onHeroTap=function(W){W.preventDefault();var l=this.data&&this.data.navigationEndpoint;!l||!_.Cv(_.d_(W),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Cv(_.d_(W),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.U("kevlar_watchcard_hero_video_renderer_killswitch")?_.FN(this.hostElement,"yt-navigate",{navigationEndpoint:l}):this.ytComponentBehavior.resolveCommand(l))};
_.t.computeHeroTabIndex=function(W){return W&&W.simpleText?-1:0};
_.t.computeHeroRole=function(W){return W&&W.simpleText?"":"link"};
_.t.computeIsReminderButtonPresent=function(W){return!(!W||!W.reminderButton)};
_.t.computeHideBottomItems=function(W){return!(this.computeIsReminderButtonPresent(W)||W.subtitle)};
_.t.dataChanged=function(){var W=this.get("data.buttons.buttonRenderer.serviceEndpoint"),l;((l=_.k(W==null?void 0:W.commandMetadata,_.Ej))==null?0:l.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(W)};
P1.prototype.dataChanged=P1.prototype.dataChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],P1.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],P1.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],P1.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],P1.prototype,"data",void 0);
_.a([_.b({computed:"computeSubtitle(data)"}),_.z("design:type",String)],P1.prototype,"subtitle",void 0);_.a([_.b({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],P1.prototype,"isReminderButtonPresent",void 0);_.a([_.b({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],P1.prototype,"hideBottomItems",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],P1.prototype,"dataChanged",null);_.a([_.A({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],P1);
_.Z(P1,"ytd-watch-card-hero-video-renderer",function(){if(FjP!==void 0)return FjP;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return FjP=W},{mode:1});var G6k;var no=function(){return _.I.apply(this,arguments)||this};
_.v(no,_.I);_.t=no.prototype;_.t.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"}}}};
_.t.computeTitleBadges=function(W){return W?[W]:[]};
_.t.computeHeaderStyle=function(W){return W?W.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.t.computeAvatarAriaLabel=function(W){if(W){var l,V,f,r;return(r=(l=W.avatar)==null?void 0:(V=l.accessibility)==null?void 0:(f=V.accessibilityData)==null?void 0:f.label)!=null?r:_.dE(W==null?void 0:W.title)}};
_.t.computeAvatarHeight=function(W){return W==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.t.computeBadgeRowClass=function(W){return(W==null?0:W[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],no.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],no.prototype,"data",void 0);_.a([_.b({computed:"computeTitleBadges(data.titleBadge)"}),_.z("design:type",Array)],no.prototype,"titleBadges",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.z("design:type",String)],no.prototype,"headerStyle",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.z("design:type",String)],no.prototype,"badgeRowClass",void 0);_.a([_.A({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],no);
_.Z(no,"ytd-watch-card-rich-header-renderer",function(){if(G6k!==void 0)return G6k;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return G6k=W},{mode:1});var bqe;var p8P;var Co=function(){return _.I.apply(this,arguments)||this};
_.v(Co,_.I);Co.prototype.onMetadataTap=function(W){var l=this.data&&this.data.navigationEndpoint;l&&!_.Cv(_.d_(W),this.hostElement,["A".toString()])&&_.FN(this.hostElement,"yt-navigate",{endpoint:l})};
_.rc.Object.defineProperties(Co.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 W;if(this.data.upcomingEventData){var l=_.dE(this.data.subtitle),V=Number(this.data.upcomingEventData.startTime);isNaN(V)||(W=_.Bl(_.zY(l,V)))}else W=this.data.subtitle;return W}}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Co.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Co.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("data.style"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Co.prototype,"isCondensed",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Co.prototype,"subtitle",null);
_.a([_.A({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],Co);
_.Z(Co,"ytd-watch-card-compact-video-renderer",function(){if(p8P!==void 0)return p8P;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return p8P=W},{mode:1});var ozy;var jYa=function(){return _.I.apply(this,arguments)||this};
_.v(jYa,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],jYa.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],jYa.prototype,"data",void 0);_.a([_.A({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],jYa);
_.Z(jYa,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(ozy!==void 0)return ozy;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return ozy=W},{mode:1});var c1=function(){return _.I.apply(this,arguments)||this};
_.v(c1,_.I);c1.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}}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],c1.prototype,"ytRendererStamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],c1.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],c1.prototype,"data",void 0);_.a([_.A({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],c1);
_.Z(c1,"ytd-vertical-watch-card-list-renderer",function(){if(bqe!==void 0)return bqe;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return bqe=W},{mode:1});var I47;var B1=function(){var W=_.I.apply(this,arguments)||this;W.ariaExpanded="false";return W};
_.v(B1,_.I);_.t=B1.prototype;_.t.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.t.dataChanged=function(){var W;this.currentSeasonIndex=((W=this.data)==null?void 0:W.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.t.computeEpisodesInfo=function(W,l,V){if(W!==void 0&&l.length===W.length)return W[V]};
_.t.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.t.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.t.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.t.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.t.getUppercaseSimpleString=function(W){return this.ytRendererBehavior.getSimpleString(W).toUpperCase()};
_.t.updateCurrentSeasonIndexFromBinding=function(W){this.currentSeasonIndex=W.detail.value};
B1.prototype.onIronOverlayClosed=B1.prototype.onIronOverlayClosed;B1.prototype.currentSeasonIndexChanged=B1.prototype.currentSeasonIndexChanged;B1.prototype.dataChanged=B1.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],B1.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],B1.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],B1.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",String)],B1.prototype,"label",void 0);_.a([_.b({value:0}),_.z("design:type",Number)],B1.prototype,"currentSeasonIndex",void 0);_.a([_.b({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.z("design:type",Object)],B1.prototype,"episodesInfo",void 0);_.a([_.b({value:"false"}),_.z("design:type",Object)],B1.prototype,"ariaExpanded",void 0);_.a([_.Aa("#lists"),_.z("design:type",Object)],B1.prototype,"lists",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],B1.prototype,"dataChanged",null);_.a([_.zS("currentSeasonIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],B1.prototype,"currentSeasonIndexChanged",null);_.a([_.XI("iron-overlay-closed"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],B1.prototype,"onIronOverlayClosed",null);
_.a([_.A({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],B1);
_.Z(B1,"ytd-watch-card-section-dropdown-renderer",function(){if(I47!==void 0)return I47;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return I47=W},{mode:1});var iqM;var d1=function(){var W=_.I.apply(this,arguments)||this;W.isSearch=!1;return W};
_.v(d1,_.I);d1.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}}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],d1.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],d1.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],d1.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],d1.prototype,"isSearch",void 0);_.a([_.A({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],d1);
_.Z(d1,"ytd-watch-card-section-sequence-renderer",function(){if(iqM!==void 0)return iqM;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
return iqM=W},{mode:1});var mgX=_.Q(function(W){return _.C("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.C(_.QH,{data:function(){return W.data().ctaButton}},{buttonViewModel:_.Nq}),_.C(_.bH,{text:function(){return W.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"pk");
mgX.idomCompat=!0;_.HI(mgX,"ytd-button-banner-view-model",{props:{data:_.pA}});var J9=function(){var W=_.I.apply(this,arguments)||this;W.isSearch=!1;return W};
_.v(J9,_.I);
J9.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"}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],J9.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],J9.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],J9.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],J9.prototype,"rounded",void 0);_.a([_.b(),_.z("design:type",Object)],J9.prototype,"isSearch",void 0);
_.a([_.A({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],J9);
_.Z(J9,"ytd-universal-watch-card-renderer",function(){if(BSa!==void 0)return BSa;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return BSa=W},{mode:1});var X8k;_.HI(_.Q(function(W){var l=W.data;var V;W=!((V=_.tY().resolve(_.R0(_.nP)))==null||!V());V={};return _.C("overview-message-view-model",{class:_.If("ytwOverviewMessageViewModelHost",(V.ytwOverviewMessageViewModelDarkBackground=W,V.ytwOverviewMessageViewModelLightBackground=!W,V))},_.C(_.c,{cond:function(){return l().primaryImage},
then:function(f){return _.C(_.dN,{data:f,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.C(_.c,{cond:function(){return l().primaryText},
then:function(){return _.C("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.C(_.bH,{text:function(){return l().primaryText}}))}}),_.C(_.c,{cond:function(){return l().secondaryText},
then:function(){return _.C("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.C(_.bH,{text:function(){return l().secondaryText}}))}}))},"qk"),"overview-message-view-model",{props:{data:_.pA}});_.HI(_.eL9,"ytd-overview-answer-view-model",{props:{data:_.pA}});var D_=function(){return _.I.apply(this,arguments)||this};
_.v(D_,_.I);D_.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"}}}};
D_.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],D_.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],D_.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.vH),_.z("design:type",Object)],D_.prototype,"ytContinuationHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],D_.prototype,"data",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],D_.prototype,"isSearch",void 0);
_.a([_.A({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],D_);
_.Z(D_,"ytd-secondary-search-container-renderer",function(){if(X8k!==void 0)return X8k;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
return X8k=W},{mode:1});var TSP;var Ut=function(){var W=_.I.apply(this,arguments)||this;W.renderSecondarySearchContainer=!1;W.isSearch=!1;return W};
_.v(Ut,_.I);_.t=Ut.prototype;_.t.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"}}}};
_.t.created=function(){var W=this;this.boundStampSecondarySearchContainerIfFits=function(){W.stampSecondarySearchContainerIfFits()};
_.Qj("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.t.computeIsSearchFrictionPage=function(W){var l,V,f,r,R;W=W==null?void 0:(l=W.primaryContents)==null?void 0:(V=l.sectionListRenderer)==null?void 0:(f=V.contents)==null?void 0:(r=f[0])==null?void 0:(R=r.itemSectionRenderer)==null?void 0:R.contents;if(!W)return!1;l=_.L(W);for(V=l.next();!V.done;V=l.next())if(f=void 0,(f=V.value)==null?0:f.searchFrictionViewModel)return!0;return!1};
_.t.computeShowSecondaryColumn=function(W,l){return!!(l&&l.secondaryContents&&W)};
_.t.activeChanged=function(){var W=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.mz(this,this.debounceStampSecondarySearchContainerIfFits)),_.yq(function(){W.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.mz(this,this.debounceStampSecondarySearchContainerIfFits))};
_.t.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.t.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.t.debounceStampSecondarySearchContainerIfFits=function(){_.gm(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.t.onRetrieveLocation=function(W,l){l.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);W.stopPropagation()};
_.t.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
Ut.prototype.dataChanged=Ut.prototype.dataChanged;Ut.prototype.onRetrieveLocation=Ut.prototype.onRetrieveLocation;Ut.prototype.persistentGuideChanged=Ut.prototype.persistentGuideChanged;Ut.prototype.activeChanged=Ut.prototype.activeChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Ut.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.vZ.YtdGuideStateAwareBehavior),_.z("design:type",Object)],Ut.prototype,"ytdGuideStateAwareBehavior",void 0);_.a([_.F(_.Wo),_.z("design:type",Object)],Ut.prototype,"ironResizableBehavior",void 0);_.a([_.b(),_.z("design:type",Boolean)],Ut.prototype,"active",void 0);_.a([_.b(),_.z("design:type",Object)],Ut.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.U("enable_desktop_search_bigger_thumbs")}}),
_.z("design:type",Boolean)],Ut.prototype,"useBiggerThumbs",void 0);_.a([_.b({reflectToAttribute:!0,value:function(){return _.gU("desktop_search_bigger_thumbs_style")}}),
_.z("design:type",String)],Ut.prototype,"biggerThumbsStyle",void 0);_.a([_.b(),_.z("design:type",Object)],Ut.prototype,"renderSecondarySearchContainer",void 0);_.a([_.b({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.z("design:type",Boolean)],Ut.prototype,"showSecondaryColumn",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.z("design:type",Boolean)],Ut.prototype,"isSearchFrictionPage",void 0);
_.a([_.b(),_.z("design:type",Object)],Ut.prototype,"isSearch",void 0);_.a([_.TS("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ut.prototype,"activeChanged",null);_.a([_.TS("guidePersistentAndVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ut.prototype,"persistentGuideChanged",null);
_.a([_.XI("yt-retrieve-location"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],Ut.prototype,"onRetrieveLocation",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ut.prototype,"dataChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],Ut);
_.Z(Ut,"ytd-two-column-search-results-renderer",function(){if(TSP!==void 0)return TSP;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return TSP=W},{mode:1});var uA=function(){var W=_.I.apply(this,arguments)||this;W.hasSearchHeader=!1;W.hasSecondaryContent=!1;W.hasBiggerThumbs=_.U("enable_desktop_search_bigger_thumbs");W.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return W};
_.v(uA,_.I);_.t=uA.prototype;_.t.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:_.vN(["aa","eocs"])}}};
_.t.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.t.loadPage_=function(W){this.initCsi();W&&(this.data=W,_.Qj("REFINEMENTS_TUPLE",["FromSearchResponse",W.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.$s(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.t.initCsi=function(){_.Uuw("results",["ol","cpt"])};
_.t.updateTitle=function(){var W=_.qs(window.location.href,"q");W||(W=_.qs(window.location.href,"search_query"));_.FN(this.hostElement,"yt-update-title",W||"")};
_.t.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.t.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.U("web_srp_data_changed_terminate_imp_killswitch")||_.Gt(this.hostElement,"yt-terminate-video-preview-action")};
_.t.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.t.computeHasSearchHeader=function(W){var l;W=W==null?void 0:(l=W.header)==null?void 0:l.searchHeaderRenderer;return!!W&&(!!W.searchFilterButton||!!W.chipBar)};
_.t.computeHasSecondaryContent=function(W){var l,V;return!!(W==null?0:(l=W.contents)==null?0:(V=l.twoColumnSearchResultsRenderer)==null?0:V.secondaryContents)};
_.rc.Object.defineProperties(uA,{template:{configurable:!0,enumerable:!0,get:function(){if(PFX===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);PFX=W}W=PFX;return W}}});
uA.prototype.onReloadContinuationFinish=uA.prototype.onReloadContinuationFinish;uA.prototype.dataChanged=uA.prototype.dataChanged;_.a([_.F(_.LY.YtPageBehavior),_.z("design:type",Object)],uA.prototype,"ytPageBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],uA.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],uA.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.vH),_.z("design:type",Object)],uA.prototype,"ytContinuationHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],uA.prototype,"data",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],uA.prototype,"monitorScroll",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],uA.prototype,"hasSearchHeader",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],uA.prototype,"hasSecondaryContent",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],uA.prototype,"hasBiggerThumbs",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uA.prototype,"dataChanged",null);
_.a([_.XI("yt-reload-continuation-finish"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uA.prototype,"onReloadContinuationFinish",null);_.a([_.A({is:"ytd-search"})],uA);_.ZI.registerService(_.GB6,uA);
_.Z1();
}catch(e){_._DumpException(e)}
try{
_.Ms("h8y2qb");
var kNL=function(W){if(W=_.t0j(W)){var l;(l=W.sources)!=null&&l[0]?(l=_.LRz(W),l=l<1?"VERTICAL":l>1?"HORIZONTAL":"SQUARE"):l=void 0;return l}},yw=function(W){_.zW.call(this,"upload");
this.opts.query=W},HK1=function(W,l){return _.C(veH,{data:W,
onYtNavigate:l})},Ks1=function(W,l){return _.mL(W.entities,"pageHeaderEntity",l)},GNw=function(W,l){return W.map(function(V){if(V.tabRenderer)return Fsw(V.tabRenderer);
if(V.expandableTabRenderer&&l){var f=V.expandableTabRenderer;return{customTabRenderable:function(){return l(f)}}}return{}})},Fsw=function(W){return{identifier:W.tabIdentifier,
aTagConfig:_.Rf({innertubeCommand:W.endpoint,forceNewState:!0}),title:W.title,selected:W.selected,disabled:W.unselectable,icon:W.icon}},bKe=function(W){return _.GT({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:W})},pie=function(W){if(!_.U_(document,"gtm-noscript")){var l=document.createElement("noscript");
l.id="gtm-noscript";l.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+W+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(l)}};_.Jj(yw,_.zW);yw.prototype.JSC$10068_setLabel=function(W){yw.superClass_.JSC$10068_setLabel.call(this,W);return this};
yw.prototype.addUploadMetadata=function(W,l){yw.superClass_.addUploadMetadata.call(this,W,l);return this};var oe2=function(W){if(W!=="youtubebanner"&&W!=="youtube-channel-banner")throw Error("zo");yw.call(this,W)};
_.v(oe2,yw);oe2.prototype.JSC$10068_setLabel=function(W){yw.prototype.JSC$10068_setLabel.call(this,W);return this};
oe2.prototype.addUploadMetadata=function(W,l){yw.prototype.addUploadMetadata.call(this,W,l);return this};var jxN=[_.Wo,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(W){_.YG(W).path[0]!==this&&(this.resetLayout(),W.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var W=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.I3(this._layoutDebouncer,_.xJ,W);_.iZ(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var W=this;requestAnimationFrame(function(){W.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(W){this.resizerShouldNotify(W)&&this._notifyDescendant(W)},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 Igc=[_.t$a,{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(W,l){var V=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[W];if(!V)throw new ReferenceError(this._getUndefinedMsg(W));W=this._boundEffect(V,l||{});W.setUp();return W},
_effectsChanged:function(W,l,V){this._tearDownEffects();W&&V&&(W.split(" ").forEach(function(f){var r;f!==""&&((r=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[f])?this._effects.push(this._boundEffect(r,l[f])):console.warn(this._getUndefinedMsg(f)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(W,l){l=l||{};var V=parseFloat(l.startsAt||0),f=parseFloat(l.endsAt||1),r=f-V,R=function(){};
f=V===0&&f===1?W.run:function(y,P){W.run.call(this,Math.max(0,(y-V)/r),P)};
return{setUp:W.setUp?W.setUp.bind(this,l):R,run:W.run?f.bind(this):R,tearDown:W.tearDown?W.tearDown.bind(this):R}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(W){W.setUp()!==!1&&this._effectsRunFn.push(W.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(W){W.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(W,l){this._effectsRunFn&&this._effectsRunFn.forEach(function(V){V(W,l)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var W=this._clampedScrollTop;this._updateScrollState(W);this.threshold>0&&this._setThresholdTriggered(W>=this.threshold)}},
_getDOMRef:function(W){console.warn("_getDOMRef","`"+W+"` is undefined")},
_getUndefinedMsg:function(W){return"Scroll effect `"+W+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+W+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Ao`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(W){var l={};W=parseFloat(W.scalar);l.background=this._getDOMRef("background");l.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");l.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");l.deltaBg=l.backgroundFrontLayer.offsetHeight-l.background.offsetHeight;l.deltaBg===0?(isNaN(W)&&(W=.8),l.deltaBg=(this._dHeight||0)*W):(isNaN(W)&&(W=
1),l.deltaBg*=W);this._fxParallaxBackground=l},
run:function(W){var l=this._fxParallaxBackground;this.transform("translate3d(0px, "+l.deltaBg*Math.min(1,W)+"px, 0px)",l.backgroundFrontLayer);l.backgroundRearLayer&&this.transform("translate3d(0px, "+l.deltaBg*Math.min(1,W)+"px, 0px)",l.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var iKY;var muw;var Xi1=function(){};
_.t=Xi1.prototype;_.t._scrollTargetChanged=function(){};
_.t.scroll=function(){};
_.t._isValidScrollTarget=function(){};
_.t._toggleScrollListener=function(){};
_.t.toggleScrollListener=function(){};
_.t.createEffect=function(){};
_.t._effectsChanged=function(){};
_.t._layoutIfDirty=function(){};
_.t._boundEffect=function(){};
_.t._setUpEffect=function(){};
_.t._tearDownEffects=function(){};
_.t._runEffects=function(){};
_.t._scrollHandler=function(){};
_.t._scrollStateChanged=function(){};
_.t._getUndefinedMsg=function(){};
_.t.notifyResize=function(){};
_.t.assignParentResizable=function(){};
_.t.stopResizeNotificationsFor=function(){};
_.t._subscribeIronResize=function(){};
_.t._unsubscribeIronResize=function(){};
_.t.resizerShouldNotify=function(){};
_.t._onDescendantIronResize=function(){};
_.t._fireResize=function(){};
_.t._onIronRequestResizeNotifications=function(){};
_.t._parentResizableChanged=function(){};
_.t._notifyDescendant=function(){};
_.t._requestResizeNotifications=function(){};
_.t._findParent=function(){};
_.t._appResetLayoutHandler=function(){};
_.t.resetLayout=function(){};
_.t._notifyLayoutChanged=function(){};
_.t._notifyDescendantResize=function(){};
_.t._setThresholdTriggered=function(){};
Xi1=_.S3({_template:function(){if(muw!==void 0)return muw;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;iKY===void 0&&(iKY=document.createElement("template"));var f=iKY;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return muw=W},
is:"tp-yt-app-header",behaviors:[Igc,jxN],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 W=_.YG(this.$.slot).getDistributedNodes(),l=0,V;V=W[l];l++)if(V.nodeType===Node.ELEMENT_NODE)if(V.hasAttribute("sticky")){this._stickyElRef=V;break}else this._stickyElRef||(this._stickyElRef=V);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var W=this._clampedScrollTop,l=this._height===0||W===0,V=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;l||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();l?this._updateScrollState(W,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=V}},
_updateScrollState:function(W,l){if(this._height!==0){var V=0,f=this._top;var r=this._maxHeaderTop;var R=W-this._lastScrollTop,y=Math.abs(R),P=W>this._lastScrollTop,n=performance.now();this._mayMove()&&(V=this._clamp(this.reveals?f+R:W,0,r));W>=this._dHeight&&(V=this.condenses&&!this.fixed?Math.max(this._dHeight,V):V,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&y<100){if(n-this._initTimestamp>300||this._wasScrollingDown!==P)this._initScrollTop=W,this._initTimestamp=n;W>=r&&
(Math.abs(this._initScrollTop-W)>30||y>10?(P&&W>=r?V=r:!P&&W>=this._dHeight&&(V=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((V-f)/(R/(n-this._lastTimestamp)),0,300)+"ms"):V=this._top)}r=this._dHeight===0?W>0?1:0:V/this._dHeight;l||(this._lastScrollTop=W,this._top=V,this._wasScrollingDown=P,this._lastTimestamp=n);if(l||r!==this._progress||f!==V||W===0)this._progress=r,this._runEffects(r,V),this._transformHeader(V)}},
_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(W){this.translate3d(0,-W+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&W>=this._stickyElTop?Math.min(W,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(W,l,V){return Math.min(V,Math.max(l,W))},
_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),_.YG(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(W){switch(W){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.YG(this).querySelector("[main-title]");case "condensedTitle":return _.YG(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var Tr5;var wiZ;_.S3({_template:function(){if(wiZ!==void 0)return wiZ;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;Tr5===void 0&&(Tr5=document.createElement("template"));var f=Tr5;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return wiZ=W},
is:"tp-yt-app-header-layout",behaviors:[jxN],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.YG(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var W=this.header;if(this.isAttached&&W){this.$.wrapper.classList.remove("initializing");W.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)W.style.left=
"",W.style.right="";else{var l=this.getBoundingClientRect(),V=document.documentElement.clientWidth-l.right;W.style.left=l.left+"px";W.style.right=V+"px"}l=this.$.contentContainer.style;V=W.offsetHeight;W.fixed&&!W.condenses&&this.hasScrollingRegion?(l.marginTop=V+"px",l.paddingTop=""):(l.paddingTop=V+"px",l.marginTop="")}}});var ANw=new _.uC("alertCommand");var Qx4=new _.uC("manageLabsStateCommand");var MDL=new _.uC("inlineFormRenderer");var ZKe=new _.uC("playlistSidebarPrimaryInfoRenderer");var OK2=new _.uC("productDetailsThumbnailRenderer"),agZ=new _.uC("productDetailsVariantRenderer"),zSZ=new _.uC("productDetailsVariantOptionRenderer"),Nrw=new _.uC("productDetailsOffersContainerRenderer"),Y9N=new _.uC("productDetailsOfferRenderer");var xuH=new _.uC("shoppingFlaggingRenderer");var eSL=new _.uC("playlistBylineRenderer");var q9c=new _.uC("insertChannelTabCommand");var gQ=function(){return _.OD.apply(this,arguments)||this};
_.v(gQ,_.OD);_.t=gQ.prototype;_.t.activeChanged=function(){if(this.active){var W=_.GS(this.hostElement).querySelector("#header");W&&_.FN(W,"iron-resize");window.addEventListener("scroll",_.mz(this,this.onScroll))}else window.removeEventListener("scroll",_.mz(this,this.onScroll)),_.FN(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.t.guideVisibleChanged=function(){var W=_.GS(this.hostElement).querySelector("#header");W&&_.FN(W,"iron-resize")};
_.t.onScroll=function(){var W=this;_.gm(this,"onScroll",function(){var l=_.GS(W.hostElement).querySelector("#header");l&&l.polymerController&&(l=l.polymerController.getScrollState().progress===1?"standard":"seamed",_.FN(W.hostElement,"yt-request-panel-mode-change",{mode:l}))},10)};
_.t.tabsChanged=function(){if(this.tabs){for(var W=null,l=0,V=this.tabs.length;l<V;++l){var f=this.tabs[l].tabRenderer;if(f&&f.selected){W=l;break}}this.selected=W}};
_.t.onTabsActivate=function(W){_.FN(this.hostElement,"yt-navigate",{endpoint:this.tabs[W.detail.selected].tabRenderer.endpoint})};
gQ.prototype.tabsChanged=gQ.prototype.tabsChanged;gQ.prototype.guideVisibleChanged=gQ.prototype.guideVisibleChanged;gQ.prototype.activeChanged=gQ.prototype.activeChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.vZ.YtdGuideStateAwareBehavior),_.z("design:type",Object)],gQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.a([_.b(),_.z("design:type",Array)],gQ.prototype,"tabs",void 0);
_.a([_.b(),_.z("design:type",Object)],gQ.prototype,"selected",void 0);_.a([_.b(),_.z("design:type",Boolean)],gQ.prototype,"active",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],gQ.prototype,"disableHeaderFluidWidth",void 0);_.a([_.TS("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gQ.prototype,"activeChanged",null);
_.a([_.TS("guidePersistentAndVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gQ.prototype,"guideVisibleChanged",null);_.a([_.TS("tabs"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gQ.prototype,"tabsChanged",null);_.a([_.a1()],gQ);var hSc=[_.q.YtRendererBehavior,_.vZ.YtdGuideStateAwareBehavior,gQ.prototype];var S91=2/3,Ee1=_.GY(130749),$uw=function(W,l){var V=this;this.element=W;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){V.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:S91,moveAction:function(f){V.moveAction(f)},
triggerAction:function(){V.element.isReloading=!0;_.R$(_.Qq(),{visualElement:Ee1});_.mK.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:V.element}})}}}};
_.zP(_.Qq(),Ee1,this.layer);this.gesture=new _.Z2(W,l,this.refreshConfig,"pan-down");this.attach()};
_.t=$uw.prototype;_.t.attach=function(){this.gesture.attach()};
_.t.detach=function(){this.gesture.detach()};
_.t.reset=function(){this.element.close()};
_.t.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.t.moveAction=function(W){this.element.rotation=W*360};var Wow=_.GY(130750),PQ=function(W,l,V,f,r){var R=this;this.element=W;this.parent=V;this.channelHeader=f;this.ytdReduxDispatch=r;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){R.tabsStartAtInPx=R.channelHeader.clientHeight-48;var y;(y=R.selectedTab)!=null&&y.title&&(y=_.tY().resolve(_.R0(_.Bp)))&&(y=y.getCurrentPage(),R.lastVisitedTabScrollPosition=y.getScrollTop(),R.previousTab&&
((R.lastVisitedTabScrollPosition===void 0?0:R.lastVisitedTabScrollPosition<R.channelHeader.clientHeight-48)?R.scrollPositionForTabs.has(R.selectedTab.title)&&R.scrollPositionForTabs.delete(R.selectedTab.title):R.scrollPositionForTabs.set(R.selectedTab.title,y.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:lW2(),triggerAction:function(){R.navigate(R.previousTab)},
moveAction:function(y,P){R.moveAction(y,P)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-lW2(),triggerAction:function(){R.navigate(R.nextTab)},
moveAction:function(y,P){R.moveAction(y,P)}}}};
_.zP(_.Qq(),Wow,this.layer);this.gesture=new _.Z2(W,l,this.tabConfig);this.attach()};
PQ.prototype.attach=function(){this.gesture.attach()};
PQ.prototype.detach=function(){this.gesture.detach()};
PQ.prototype.tabsChanged=function(W){if(W){var l=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;W=_.L(W);for(var V=W.next();!V.done;V=W.next()){V=V.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=V);var f=void 0;if((f=V)==null?0:f.selected)this.previousTab=l,this.selectedTab=V;l=V}l=this.gesture;W=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}});
l.config=W;this.scrollPositionNeedsUpdate=!0}};
PQ.prototype.moveAction=function(W,l){if(!this.tabsElement){var V;this.tabsElement=(V=this.parent.header)==null?void 0:V.tabsElement;l==="right"&&this.previousTab?_.chZ(_.lH.instance,this.previousTab.endpoint,{},""):l==="left"&&this.nextTab&&_.chZ(_.lH.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}V=this.tabsElement._pos;l==="right"&&(W*=-1);this.tabsElement._positionBar(V.width,V.left*1+V.width*W)};
var lW2=function(){var W,l;return(l=(W=_.tY().resolve(_.Bp).getCurrentPage())==null?void 0:W.clientWidth)!=null?l:0};
PQ.prototype.navigate=function(W){this.element.data=void 0;if(W=W==null?void 0:W.endpoint)this.ytdReduxDispatch(bKe(!0)),_.R$(_.Qq(),{visualElement:Wow}),_.mK.instance.resolveCommand({navigateAction:{endpoint:W}},{form:{element:this.element}})};var Vw4;var fW4;var nY=function(){return _.I.apply(this,arguments)||this};
_.v(nY,_.I);nY.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],nY.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],nY.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],nY.prototype,"data",void 0);_.a([_.A({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],nY);
_.Z(nY,"ytd-labs-edit-renderer",function(){if(fW4!==void 0)return fW4;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return fW4=W},{mode:1});var rfs;var CY=function(){var W=_.I.apply(this,arguments)||this;W.dark=!1;W.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";W.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.v(CY,_.I);CY.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
CY.prototype.ready=function(){var W=document.documentElement.hasAttribute("dark");this.setBackgroundImage(W);this.dark=W};
CY.prototype.onDarkModeToggledAction=function(W){this.setBackgroundImage(W);this.dark=W};
CY.prototype.setBackgroundImage=function(W){_.I1(this.hostElement,{"--yt-labs-header-background":"url("+(W?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],CY.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],CY.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],CY.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],CY.prototype,"dark",void 0);
_.a([_.A({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],CY);
_.Z(CY,"ytd-labs-header-renderer",function(){if(rfs!==void 0)return rfs;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return rfs=W},{mode:1});var RF4;var cQ=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return W};
_.v(cQ,_.I);cQ.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"}}}}}};
cQ.prototype.onYtToggleButton=function(W){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",W.detail.toggled)};
cQ.prototype.onManageLabsState=function(W){if(W=_.k(W,Qx4))W.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?W.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&W.labsItemId===this.data.labsItemId&&(W.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.Gt(this.hostElement,"yt-check-labs-opted-in-state").some(function(l){return l})&&this.data.confirmationDialogCommand?_.og(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.tY().resolve(_.s6).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&W.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.tY().resolve(_.s6).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
cQ.prototype.onCheckLabsOptedInState=function(){var W=this.get("data.primaryButton.toggleButtonRenderer");return W?W.isToggled:!1};
_.rc.Object.defineProperties(cQ.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
cQ.prototype.onYtToggleButton=cQ.prototype.onYtToggleButton;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],cQ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],cQ.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],cQ.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],cQ.prototype,"itemStyle",null);_.a([_.XI("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],cQ.prototype,"onYtToggleButton",null);_.a([_.A({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],cQ);
_.Z(cQ,"ytd-labs-item-renderer",function(){if(RF4!==void 0)return RF4;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return RF4=W},{mode:1});var tw4;var sK1;var LoN=function(){return _.I.apply(this,arguments)||this};
_.v(LoN,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],LoN.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],LoN.prototype,"data",void 0);_.a([_.A({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],LoN);
_.Z(LoN,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(sK1!==void 0)return sK1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return sK1=W},{mode:1});var yf2;var BQ=function(){return _.I.apply(this,arguments)||this};
_.v(BQ,_.I);BQ.prototype.observeSuperchatChip=function(){if(this.data){var W={"--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)};_.I1(this.hostElement,W)}};
BQ.prototype.colorFromDecimal=function(W){return _.sD(Number(W||0))};
BQ.prototype.observeSuperchatChip=BQ.prototype.observeSuperchatChip;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],BQ.prototype,"data",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BQ.prototype,"observeSuperchatChip",null);_.a([_.A({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],BQ);
_.Z(BQ,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(yf2!==void 0)return yf2;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return yf2=W},{mode:1});var dQ=function(){return _.I.apply(this,arguments)||this};
_.v(dQ,_.I);dQ.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"}}}};
_.rc.Object.defineProperties(dQ.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],dQ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],dQ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.DX),_.z("design:type",Object)],dQ.prototype,"ytdDismissibleItemBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],dQ.prototype,"data",void 0);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],dQ.prototype,"hideMessageBlock",null);
_.a([_.A({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],dQ);
_.Z(dQ,"ytd-live-chat-history-entry-renderer",function(){if(tw4!==void 0)return tw4;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return tw4=W},{mode:1});var gne;var PJ4=function(){return _.I.apply(this,arguments)||this};
_.v(PJ4,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],PJ4.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],PJ4.prototype,"data",void 0);_.a([_.A({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],PJ4);
_.Z(PJ4,"ytd-channel-options-renderer",function(){if(gne!==void 0)return gne;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return gne=W},{mode:1});var nnc;var JV=function(){return _.I.apply(this,arguments)||this};
_.v(JV,_.I);JV.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],JV.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],JV.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],JV.prototype,"data",void 0);_.a([_.A({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],JV);
_.Z(JV,"ytd-settings-email-item-renderer",function(){if(nnc!==void 0)return nnc;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return nnc=W},{mode:1});var CJ1;var DH=function(){return _.I.apply(this,arguments)||this};
_.v(DH,_.I);DH.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"}}}};
DH.prototype.getExpansionIcon=function(W){return W?"COLLAPSE":"EXPAND"};
DH.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.rc.Object.defineProperties(DH.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],DH.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],DH.prototype,"data",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],DH.prototype,"expanded",void 0);_.a([_.G("expanded"),_.z("design:type",String),_.z("design:paramtypes",[])],DH.prototype,"emailListExpanded",null);
_.a([_.Aa("#options"),_.z("design:type",Object)],DH.prototype,"options",void 0);_.a([_.A({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],DH);
_.Z(DH,"ytd-settings-email-list-renderer",function(){if(CJ1!==void 0)return CJ1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return CJ1=W},{mode:1});var cfw;var U$=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return W};
_.v(U$,_.I);U$.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"}}}};
U$.prototype.handleSignalActionSubmitForm=function(){var W,l=(W=this.formRenderer)==null?void 0:W.getForm();l&&this.data.serviceEndpoint&&_.tY().resolve(_.s6).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},l,{element:this.hostElement})})};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],U$.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],U$.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],U$.prototype,"data",void 0);_.a([_.Aa("yt-form-renderer"),_.z("design:type",Object)],U$.prototype,"formRenderer",void 0);
_.a([_.A({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],U$);
_.Z(U$,"ytd-settings-gaia-link-renderer",function(){if(cfw!==void 0)return cfw;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return cfw=W},{mode:1});var BuL;var uv=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return W};
_.v(uv,_.I);uv.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.Zp2()&&this.set("data.hidden",!1)};
uv.prototype.onSwitchReady=function(){var W=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.U("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.MiH().then(function(l){l&&(Notification.permission==="default"?W.set("data.hidden",!1):Notification.permission==="granted"&&_.aq("NotificationsDisabled").then(function(V){V||_.Gt(W.hostElement,"yt-toggle-settings-switch",[W.data.id,!V]);W.set("data.hidden",!1)}).catch(function(){}))})})};
uv.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}}}}};
uv.prototype.handleUpdateOptionsCommand=function(W){(W=_.k(W,_.Srk))&&this.data&&this.data.id===W.id&&(this.set("data.hidden",W.hidden),W.text!==void 0&&this.set("data.text",W.text),W.clearOptions&&this.set("data.options",[]))};
uv.prototype.onSwitchReady=uv.prototype.onSwitchReady;uv.prototype.dataChanged=uv.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],uv.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],uv.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],uv.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],uv.prototype,"data",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uv.prototype,"dataChanged",null);_.a([_.XI("yt-settings-switch-ready"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uv.prototype,"onSwitchReady",null);_.a([_.A({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],uv);
_.Z(uv,"ytd-settings-options-renderer",function(){if(BuL!==void 0)return BuL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return BuL=W},{mode:1});var dpL;var k8=function(){return _.I.apply(this,arguments)||this};
_.v(k8,_.I);k8.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
k8.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
k8.prototype.onYtExpanderMoreTapped=k8.prototype.onYtExpanderMoreTapped;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],k8.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],k8.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],k8.prototype,"data",void 0);
_.a([_.XI("yt-expander-more-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],k8.prototype,"onYtExpanderMoreTapped",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],k8);
_.Z(k8,"ytd-product-details-description-renderer",function(){if(dpL!==void 0)return dpL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return dpL=W},{mode:1});var Jf1;var vQ=function(){var W=_.I.apply(this,arguments)||this;W.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";W.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";W.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";W.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return W};
_.v(vQ,_.I);vQ.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.rc.Object.defineProperties(vQ.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.data)==null?void 0:(l=W.offerData)==null?void 0:l.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.data)==null?void 0:W.purchaseButtonRenderers)!==void 0&&((l=this.data)==null?void 0:l.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var W,l;return!((W=this.data)==null||!W.formattedFromMerchantText)&&(!((l=this.data)==null||!l.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],vQ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],vQ.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],vQ.prototype,"data",void 0);
_.a([_.b({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0}),_.z("design:type",Object)],vQ.prototype,"shippingIcon",void 0);_.a([_.b({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0}),_.z("design:type",Object)],vQ.prototype,"shippingAddressIcon",void 0);_.a([_.b({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0}),_.z("design:type",Object)],vQ.prototype,"googleGuaranteeIcon",void 0);
_.a([_.b({type:_.U("kevlar_property_type_migration_killswitch")?String:void 0}),_.z("design:type",Object)],vQ.prototype,"returnPolicyIcon",void 0);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],vQ.prototype,"showAdditionalFees",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],vQ.prototype,"showMultiPurchaseButtons",null);
_.a([_.G("data","showMultiPurchaseButtons"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],vQ.prototype,"showPurchaseData",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],vQ);
_.Z(vQ,"ytd-product-details-hero-offer-renderer",function(){if(Jf1!==void 0)return Jf1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Jf1=W},{mode:1});var Dp1;var Upe;var HQ=function(){return _.I.apply(this,arguments)||this};
_.v(HQ,_.I);_.t=HQ.prototype;_.t.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.t.onKeyDown=function(W){W=W.keyCode;W!==13&&W!==32||this.handleSelection()};
_.t.onMouseEnterImage=function(){var W;((W=this.data)==null?void 0:W.thumbnailDetails)!==void 0&&_.bj(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.t.onMouseLeaveImage=function(){_.bj(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.t.handleSelection=function(){this.data&&_.FN(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.rc.Object.defineProperties(HQ.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isSelected)}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],HQ.prototype,"data",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],HQ.prototype,"isSelected",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],HQ);
_.Z(HQ,"ytd-product-details-thumbnail-renderer",function(){if(Upe!==void 0)return Upe;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Upe=W},{mode:1});var KY=function(){var W=_.I.apply(this,arguments)||this;var l={};W.actionMap=(l["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",l["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",l);W.selectedThumbnailIndex=0;W.selectItem=function(V){V.target.onKeyDown(V)};
return W};
_.v(KY,_.I);_.t=KY.prototype;_.t.handlePreviewImageSelect=function(W){this.hoverThumbnail=W};
_.t.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.t.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.t.onThumbnailSelected=function(W,l){this.selectedThumbnailIndex=l};
_.t.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.t.updateOffset=function(){var W=_.GS(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-W));this.ytdHorizontalListBehavior.reposition_()};
_.rc.Object.defineProperties(KY.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.imageRenderer){var l,V;return((l=this.data)==null?void 0:(V=l.imageRenderer)==null?void 0:V.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var W;if((W=this.data)==null?0:W.imageRenderer){var l;return(l=_.k(this.data.imageRenderer[this.selectedThumbnailIndex],OK2))==null?void 0:l.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var W=this,l,V,f,r=(f=(l=this.data)==null?void 0:(V=l.imageRenderer)==null?void 0:V.map(function(R,y){return{productDetailsThumbnailRenderer:Object.assign({},_.k(R,OK2),{index:y,isSelected:y===W.selectedThumbnailIndex})}}))!=null?f:[];
return Object.assign({},this.data,{imageRenderer:r})}}});
KY.prototype.updateOffset=KY.prototype.updateOffset;KY.prototype.dataChanged=KY.prototype.dataChanged;KY.prototype.onThumbnailSelected=KY.prototype.onThumbnailSelected;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],KY.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],KY.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.QG.YtdHorizontalListBehavior),_.z("design:type",Object)],KY.prototype,"ytdHorizontalListBehavior",void 0);
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],KY.prototype,"componentBehavior",void 0);_.a([_.F([_.hp.YtActionHandlerBehavior]),_.z("design:type",Object)],KY.prototype,"actionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],KY.prototype,"data",void 0);_.a([_.b({value:"$.items.children"}),_.z("design:type",String)],KY.prototype,"itemsPath",void 0);_.a([_.b({value:3}),_.z("design:type",Number)],KY.prototype,"initialCount",void 0);
_.a([_.Aa("#items"),_.z("design:type",Object)],KY.prototype,"items",void 0);_.a([_.b(),_.z("design:type",Object)],KY.prototype,"selectedThumbnailIndex",void 0);_.a([_.b(),_.z("design:type",Object)],KY.prototype,"hoverThumbnail",void 0);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],KY.prototype,"showThumbnails",null);
_.a([_.XI("ytd-product-details-thumbnail-renderer-selected"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Number]),_.z("design:returntype")],KY.prototype,"onThumbnailSelected",null);_.a([_.G("data","selectedThumbnailIndex","hoverThumbnail"),_.z("design:type",Object),_.z("design:paramtypes",[])],KY.prototype,"thumbnailDetails",null);_.a([_.G("data","selectedThumbnailIndex"),_.z("design:type",Object),_.z("design:paramtypes",[])],KY.prototype,"populatedData",null);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KY.prototype,"dataChanged",null);_.a([_.XI("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KY.prototype,"updateOffset",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],KY);
_.Z(KY,"ytd-product-details-image-carousel-renderer",function(){if(Dp1!==void 0)return Dp1;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Dp1=W},{mode:_.bD("kevlar_poly_si_batch_j079")?1:2});var uB1;var F0=function(){return _.I.apply(this,arguments)||this};
_.v(F0,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],F0.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],F0.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],F0.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],F0.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],F0);
_.Z(F0,"ytd-product-details-offer-renderer",function(){if(uB1!==void 0)return uB1;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return uB1=W},{mode:1});var kg1;var GB=function(){var W=_.I.apply(this,arguments)||this;W.isOffersHidden=!0;return W};
_.v(GB,_.I);GB.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var W,l=_.k((W=this.data)==null?void 0:W.viewOffersButton,_.CE);l&&this.ytRendererBehavior.logExplicitClick(l)};
GB.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.rc.Object.defineProperties(GB.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var W,l,V,f;return(V=_.k((W=this.data)==null?void 0:(l=W.offers)==null?void 0:l[0],Y9N))==null?void 0:(f=V.offerData)==null?void 0:f.vendorLogoUrl}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],GB.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],GB.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],GB.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],GB.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],GB.prototype,"isOffersHidden",void 0);
_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],GB.prototype,"firstOfferVendorLogoUrl",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],GB);
_.Z(GB,"ytd-product-details-offers-container-renderer",function(){if(kg1!==void 0)return kg1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return kg1=W},{mode:1});var vn4;var Hn7;var bv=function(){return _.I.apply(this,arguments)||this};
_.v(bv,_.I);bv.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
bv.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.bj(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
bv.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.bj(this,"ytd-product-details-variant-image-unselect")};
_.rc.Object.defineProperties(bv.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 W;return((W=this.data)==null?void 0:W.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return((W=this.data)==null?void 0:W.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((l=this.data)==null?void 0:l.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((V=this.data)==null?void 0:V.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var W;if(((W=this.data)==null?void 0:W.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var W,l;return this.isUnavailable?(W=this.data)==null?void 0:W.variantOptionUnavailableAccessibilityLabel:(l=this.data)==null?void 0:l.variantOptionAccessibilityLabel}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],bv.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],bv.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],bv.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],bv.prototype,"data",void 0);_.a([_.b(),_.z("design:type",String)],bv.prototype,"displayType",void 0);
_.a([_.G("displayType","data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],bv.prototype,"isImageButton",null);_.a([_.G("displayType","data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],bv.prototype,"isPillButton",null);_.a([_.G("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],bv.prototype,"isActive",null);
_.a([_.G("data"),_.b({reflectToAttribute:!0}),_.z("design:type",Boolean),_.z("design:paramtypes",[])],bv.prototype,"isUnavailable",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],bv.prototype,"thumbnailDetails",null);_.a([_.G("isUnavailable","data"),_.z("design:type",Object),_.z("design:paramtypes",[])],bv.prototype,"accessibilityLabel",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],bv);
_.Z(bv,"ytd-product-details-variant-option-renderer",function(){if(Hn7!==void 0)return Hn7;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Hn7=W},{mode:1});var KoY;var pY=function(){var W=_.I.apply(this,arguments)||this;W.variantsExpanded=!1;W.hideShowMoreLessVariantButton=!0;W.initialized=!1;W.computeVariantsDebouncer=null;W.computeVariants=function(l){l=l===void 0?!1:l;W.variantsExpanded||W.showOptions()||!l||(W.variantsExpanded=!0);if(W.variantsExpanded){l=_.L(W.items.children);for(var V=l.next();!V.done;V=l.next())V.value.hidden=!1}W.initialized=!0};
return W};
_.v(pY,_.I);_.t=pY.prototype;_.t.ready=function(){var W=this;setTimeout(function(){W.computeVariants(!0)})};
_.t.showOptions=function(){for(var W=_.L(this.items.children),l=W.next();!l.done;l=W.next())l.value.hidden=!0;var V=this.container.getBoundingClientRect().width,f=0,r=W=0;l=!1;for(var R=_.L(this.items.children),y=R.next();!y.done;y=R.next()){y=y.value;y.hidden=!1;var P=y.getBoundingClientRect().width;if(f+P<V)f+=P;else if(++r<2)f=P;else break;W+=1;y.hasAttribute("is-active")&&(l=!0)}for(V=W;V<this.items.children.length;V++)this.items.children[V].hidden=!0;this.hideShowMoreLessVariantButton=W===this.items.children.length;
return l};
_.t.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.I3(this.computeVariantsDebouncer,_.Us.after(100),this.computeVariants)};
_.t.onShowMoreLessVariantsButtonClick=function(){var W;(W=this.data)!=null&&W.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.t.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.rc.Object.defineProperties(pY.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var W,l,V=(W=this.data)==null?void 0:(l=W.variantOptionRenderers)==null?void 0:l.find(function(R){return _.k(R,zSZ).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),f,r;
return(r=(f=_.k(V,zSZ))==null?void 0:f.name)!=null?r:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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"}}}});
pY.prototype.debouncedComputeVariants=pY.prototype.debouncedComputeVariants;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],pY.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],pY.prototype,"componentBehavior",void 0);_.a([_.F(_.Wo),_.z("design:type",Object)],pY.prototype,"ironResizableBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],pY.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],pY.prototype,"variantsExpanded",void 0);_.a([_.b(),_.z("design:type",Object)],pY.prototype,"hideShowMoreLessVariantButton",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],pY.prototype,"initialized",void 0);_.a([_.Aa("#items"),_.z("design:type",HTMLDivElement)],pY.prototype,"items",void 0);_.a([_.Aa("#container"),_.z("design:type",HTMLDivElement)],pY.prototype,"container",void 0);
_.a([_.Aa("#more-variants-button"),_.z("design:type",HTMLElement)],pY.prototype,"moreVariantsButton",void 0);_.a([_.G("data"),_.z("design:type",String),_.z("design:paramtypes",[])],pY.prototype,"selectedOptionName",null);_.a([_.TS("data","variantsExpanded"),_.XI("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],pY.prototype,"debouncedComputeVariants",null);
_.a([_.G("data"),_.z("design:type",String),_.z("design:paramtypes",[])],pY.prototype,"displayType",null);_.a([_.G("displayType"),_.z("design:type",Object),_.z("design:paramtypes",[])],pY.prototype,"variantItemsClassname",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],pY);
_.Z(pY,"ytd-product-details-variant-renderer",function(){if(KoY!==void 0)return KoY;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return KoY=W},{mode:1});var oN=function(){return _.I.apply(this,arguments)||this};
_.v(oN,_.I);
oN.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"}}}};
_.rc.Object.defineProperties(oN.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var W,l,V=(l=_.k((W=this.data)==null?void 0:W.offersContainerRenderer,Nrw))==null?void 0:l.offers;return V!==void 0&&(V==null?void 0:V.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 W,l,V;return((V=(W=this.data)==null?void 0:(l=W.variants)==null?void 0:l.map(function(f){var r,R;f=(R=(r=_.k(f,agZ))==null?void 0:r.variantOptionRenderers)==null?void 0:R.find(function(P){var n;return((n=_.k(P,zSZ))==null?void 0:n.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var y;return(y=_.k(f,zSZ))==null?void 0:y.name}).filter(function(f){return typeof f==="string"}))!=null?V:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var W,l,V,f=(l=_.k((W=this.data)==null?void 0:W.shoppingFlaggingRenderer,xuH))==null?void 0:(V=l.reportButton)==null?void 0:V.buttonRenderer;if(f)return{text:f.text,command:f.command,icon:{iconType:"FLAG"},accessibilityData:f.accessibilityData,trackingParams:f.trackingParams,loggingDirectives:f.loggingDirectives}}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],oN.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],oN.prototype,"data",void 0);_.a([_.Aa("#image-carousel-renderer"),_.z("design:type",Object)],oN.prototype,"imageCarouselRenderer",void 0);
_.a([_.Aa("#hero-offer-renderer"),_.z("design:type",Object)],oN.prototype,"productDetailsHeroOfferRenderer",void 0);_.a([_.Aa("#variants"),_.z("design:type",Object)],oN.prototype,"productDetailsVariantRenderer",void 0);_.a([_.Aa("#offers"),_.z("design:type",Object)],oN.prototype,"productDetailsOffersContainerRenderer",void 0);_.a([_.Aa("#description-renderer"),_.z("design:type",Object)],oN.prototype,"productDetailsDescriptionRenderer",void 0);
_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oN.prototype,"showPurchaseData",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oN.prototype,"showHeroOfferRenderer",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oN.prototype,"showBrandText",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oN.prototype,"showOffers",null);
_.a([_.G("showOffers","showPurchaseData"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oN.prototype,"showBuySeparator",null);_.a([_.G("showOffers","showPurchaseData"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oN.prototype,"showBuyCard",null);_.a([_.G("data"),_.z("design:type",String),_.z("design:paramtypes",[])],oN.prototype,"selectedVariantsText",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oN.prototype,"shoppingReportingButtonData",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],oN);
_.Z(oN,"ytd-product-details-renderer",function(){if(vn4!==void 0)return vn4;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return vn4=W},{mode:1});var Fos;var Gg4;var bnZ;var j_=function(){return _.I.apply(this,arguments)||this};
_.v(j_,_.I);j_.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.rc.Object.defineProperties(j_.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],j_.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],j_.prototype,"data",void 0);_.a([_.b(),_.z("design:type",String)],j_.prototype,"formattedAmount",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],j_.prototype,"ariaLabel",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("data.style"),_.z("design:type",String),_.z("design:paramtypes",[])],j_.prototype,"vcBalanceWidgetStyle",null);_.a([_.Vq({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],j_);
_.Z(j_,"yt-vc-balance-renderer",function(){if(bnZ===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;Gg4===void 0&&(Gg4=document.createElement("template"));var f=Gg4;V.call(l,f.content.cloneNode(!0),W.content.firstChild);bnZ=W}W=bnZ;return W},{mode:2});_.e1("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var IN=function(){return _.I.apply(this,arguments)||this};
_.v(IN,_.I);_.rc.Object.defineProperties(IN.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:""}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],IN.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],IN.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],IN.prototype,"data",void 0);_.a([_.b({selectorArgs:["data.vcBalanceEntityKey"],selector:function(W,l){return _.mL(W.entities,"vcBalanceEntity",l)}}),
_.z("design:type",Object)],IN.prototype,"vcBalanceEntity",void 0);_.a([_.G("vcBalanceEntity"),_.z("design:type",String),_.z("design:paramtypes",[])],IN.prototype,"formattedAmount",null);_.a([_.G("vcBalanceEntity"),_.z("design:type",String),_.z("design:paramtypes",[])],IN.prototype,"vcBalanceAriaLabel",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],IN);
_.Z(IN,"ytd-vc-balance-renderer",function(){if(Fos!==void 0)return Fos;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Fos=W},{mode:1});var puL;var iv=function(){var W=_.I.apply(this,arguments)||this;W.rotation=0;W.isReloading=!1;return W};
_.v(iv,_.I);iv.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
iv.prototype.reset=function(){this.hostElement.style.opacity=""};
iv.prototype.close=function(){var W=this;return _.g(function(l){if(l.nextAddress==1)return l.yield(W.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);W.hostElement.style.opacity="0";_.ju(l)})};
iv.prototype.rotationChanged=iv.prototype.rotationChanged;_.a([_.b(),_.z("design:type",Object)],iv.prototype,"rotation",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],iv.prototype,"isReloading",void 0);_.a([_.Aa("#icon"),_.z("design:type",HTMLElement)],iv.prototype,"icon",void 0);_.a([_.TS("rotation"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],iv.prototype,"rotationChanged",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-refresh"})],iv);
_.Z(iv,"ytd-refresh",function(){if(puL!==void 0)return puL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return puL=W},{mode:1});var on7;var m0=function(){return _.I.apply(this,arguments)||this};
_.v(m0,_.I);m0.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"}}}};
m0.prototype.dataChanged=function(){if(this.data){var W=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var l=_.KP(this.data.banner.thumbnails,this.hostElement.clientWidth);l&&(l.indexOf("//")===0&&(l="https:"+l),this.hasBannerArt=!0,_.I1(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+l+")"}))}this.hasBannerArt!==W&&_.GS(this.hostElement).querySelector("#header").fire("iron-resize")}};
m0.prototype.updateSelectedFromBinding=function(W){this.selected=W.detail.value};
m0.prototype.dataChanged=m0.prototype.dataChanged;_.a([_.F(hSc),_.z("design:type",Object)],m0.prototype,"ytdTabbedHeaderBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],m0.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uy),_.z("design:type",Object)],m0.prototype,"ytdGridStateAwareBehavior",void 0);_.a([_.F(_.vZ.YtdGuideStateAwareBehavior),_.z("design:type",Object)],m0.prototype,"ytdGuideStateAwareBehavior",void 0);
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],m0.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],m0.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Number)],m0.prototype,"selected",void 0);_.a([_.b(),_.z("design:type",Boolean)],m0.prototype,"active",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],m0.prototype,"hasBannerArt",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],m0.prototype,"dataChanged",null);_.a([_.A({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],m0);
_.Z(m0,"ytd-interactive-tabbed-header-renderer",function(){if(on7!==void 0)return on7;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return on7=W},{mode:1});var jKc;var X0=function(){return _.I.apply(this,arguments)||this};
_.v(X0,_.I);X0.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
X0.prototype.computeActionsAlignment=function(W){return(W==null?void 0:W.actionsAlignment)||""};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],X0.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],X0.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],X0.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.z("design:type",String)],X0.prototype,"actionsAlignment",void 0);_.a([_.A({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],X0);
_.Z(X0,"ytd-page-footer-renderer",function(){if(jKc!==void 0)return jKc;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return jKc=W},{mode:1});var IWc;var in5;var TB=function(){var W=_.I.apply(this,arguments)||this;W.isEditing=!1;W.useSlot=!1;W.isMultiline=!1;return W};
_.v(TB,_.I);_.t=TB.prototype;_.t.onKeydown=function(W){if(W.keyCode===13&&!this.isMultiline)this.onSave();else if(W.keyCode===27)this.onCancel()};
_.t.computeComponentStyle=function(W){return(W==null?0:W.style)?W.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.t.computeisMultiline=function(W){if(this.multilineOverride!==void 0)return this.multilineOverride;var l,V;return!!(W==null?0:(l=W.formField)==null?0:(V=l.textInputFormFieldRenderer)==null?0:V.isMultiline)};
_.t.computeTextDisplayed=function(W,l){if(W)return W;if(l)return l};
_.t.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.t.onSave=function(){if(this.textForm.validate()){this.textForm.save();var W=this.textForm.value;if(W)this.set("data.textDisplayed",_.Bl(W));else{var l;((l=this.data)==null?0:l.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.GD("inline-form-changed",this.data));this.isEditing=!1}};
_.t.onCancel=function(){var W=_.dE(this.data.textDisplayed);W===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(W);this.isEditing=!1};
TB.prototype.onKeydown=TB.prototype.onKeydown;_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],TB.prototype,"ytEventForwardingBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],TB.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],TB.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],TB.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],TB.prototype,"isEditing",void 0);_.a([_.b(),_.z("design:type",Object)],TB.prototype,"useSlot",void 0);_.a([_.b(),_.z("design:type",Boolean)],TB.prototype,"multilineOverride",void 0);_.a([_.b(),_.z("design:type",Boolean)],TB.prototype,"enableOverlayTheme",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.z("design:type",String)],TB.prototype,"componentStyle",void 0);
_.a([_.b({computed:"computeisMultiline(data)"}),_.z("design:type",Object)],TB.prototype,"isMultiline",void 0);_.a([_.Aa("#text-form"),_.z("design:type",Object)],TB.prototype,"textForm",void 0);_.a([_.XI("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],TB.prototype,"onKeydown",null);_.a([_.A({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],TB);
_.Z(TB,"ytd-inline-form-renderer",function(){if(in5!==void 0)return in5;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return in5=W},{mode:1});var mpL;var wQ=function(){var W=_.I.apply(this,arguments)||this;W.previousSelectValue=void 0;W.selectedItemMessage=void 0;return W};
_.v(wQ,_.I);wQ.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
wQ.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var W,l,V,f,r=(W=this.data)==null?void 0:(l=W.dropdown)==null?void 0:(V=l.dropdownRenderer)==null?void 0:(f=V.entries)==null?void 0:f.map(function(P){return P.privacyDropdownItemRenderer});
W=_.L(r!=null?r:[]);for(l=W.next();!l.done;l=W.next())if((l=l.value)&&l.int32Value===this.selectedValue){this.selectedItemMessage=l.itemMessage;break}}else this.selectedItemMessage=void 0;var R;(R=this.onValueChanged)==null||R.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var y;(y=this.data)!=null&&y.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
wQ.prototype.onValueChangedForSelectedValue=function(W){this.selectedValue=W.detail.value};
wQ.prototype.selectedValueChanged=wQ.prototype.selectedValueChanged;_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],wQ.prototype,"ytEventForwardingBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],wQ.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],wQ.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],wQ.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],wQ.prototype,"data",void 0);_.a([_.b(),_.z("design:type",String)],wQ.prototype,"theme",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Number)],wQ.prototype,"selectedValue",void 0);_.a([_.b(),_.z("design:type",Function)],wQ.prototype,"onValueChanged",void 0);
_.a([_.zS("selectedValue"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],wQ.prototype,"selectedValueChanged",null);_.a([_.A({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],wQ);
_.Z(wQ,"ytd-dropdown-form-field-renderer",function(){if(mpL!==void 0)return mpL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return mpL=W},{mode:_.bD("kevlar_poly_si_batch_j025")?1:2});var XuL;var AV=function(){return _.I.apply(this,arguments)||this};
_.v(AV,_.I);_.rc.Object.defineProperties(AV.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var W=[],l=_.L(this.data||[]),V=l.next();!V.done;V=l.next())(V=_.k(V.value,eSL))&&W.push(V);return W}}});
_.a([_.b(),_.z("design:type",Array)],AV.prototype,"data",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],AV.prototype,"byline",null);_.a([_.A({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],AV);
_.Z(AV,"ytd-playlist-byline-renderer",function(){if(XuL!==void 0)return XuL;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return XuL=W},{mode:1});var Tuc;var Qw=function(){var W=_.I.apply(this,arguments)||this;W.rtlBullet=_.U("web_playlist_stats_rtl_bullet_icon_killswitch");W.modern=_.U("web_modern_buttons");W.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return W};
_.v(Qw,_.I);_.t=Qw.prototype;_.t.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"}}}}};
_.t.attached=function(){};
_.t.computeIsCustomThumbnail=function(W){return W?!!W.playlistCustomThumbnailRenderer:!1};
_.t.onYtNavigate=function(W,l){if(l&&l.actions&&l.actions.indexOf("shuffle")>-1){W=_.tY().resolve(_.dZ);var V=l.tempData||{};V.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);l.tempData=V;W.isShuffleNextPlaylist=!0}};
_.t.onUpdatePlaylistAction=function(W){var l;W=(l=_.k(W,_.GWa))==null?void 0:l.updatedRenderer;if(l=_.k(W,ZKe))this.data=l};
_.t.computeStyleType=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.t.computeThumbnailWidth=function(W){return W==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.t.computeHideThumbnailAria=function(W){if(W==null?0:W.thumbnailOverlays)for(var l=0;l<W.thumbnailOverlays.length;l++){var V=void 0;if((V=W.thumbnailOverlays[l])==null?0:V.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
Qw.prototype.onYtNavigate=Qw.prototype.onYtNavigate;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Qw.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Qw.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Qw.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Qw.prototype,"ytComponentBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],Qw.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Qw.prototype,"rtlBullet",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.z("design:type",String)],Qw.prototype,"styleType",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.z("design:type",Number)],Qw.prototype,"thumbnailWidth",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Qw.prototype,"modern",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.z("design:type",Boolean)],Qw.prototype,"isCustomThumbnail",void 0);_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[Event,Object]),_.z("design:returntype")],Qw.prototype,"onYtNavigate",null);_.a([_.A({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],Qw);
_.Z(Qw,"ytd-playlist-sidebar-primary-info-renderer",function(){if(Tuc!==void 0)return Tuc;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Tuc=W},{mode:1});var wus;var MM=function(){return _.I.apply(this,arguments)||this};
_.v(MM,_.I);MM.prototype.computeOwnerVisibility=function(W){return!(!W.videoOwner&&!W.button)};
MM.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"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],MM.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],MM.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],MM.prototype,"data",void 0);_.a([_.A({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],MM);
_.Z(MM,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(wus!==void 0)return wus;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return wus=W},{mode:1});var AfN;var ZH=function(){var W=_.I.apply(this,arguments)||this;W.expanded=!1;W.isCompact=!1;return W};
_.v(ZH,_.I);_.t=ZH.prototype;_.t.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.t.dataChanged=function(){this.data&&_.sx(_.GS(this.text),_.LNX(_.PsI,_.dE(this.data.text||null)))};
_.t.computeAutoScrollEnabled=function(W,l){return W&&!l};
_.t.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.t.toggleOnTap=function(){this.expanded=!this.expanded};
ZH.prototype.expandedChanged=ZH.prototype.expandedChanged;ZH.prototype.dataChanged=ZH.prototype.dataChanged;_.a([_.F(_.o31),_.z("design:type",Object)],ZH.prototype,"ytdAutoScrollBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ZH.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ZH.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ZH.prototype,"expanded",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ZH.prototype,"isCompact",void 0);_.a([_.b({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.z("design:type",Boolean)],ZH.prototype,"autoScrollEnabled",void 0);_.a([_.Aa("#text"),_.z("design:type",Object)],ZH.prototype,"text",void 0);_.a([_.Aa("#expander-icon"),_.z("design:type",Object)],ZH.prototype,"expanderIcon",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZH.prototype,"dataChanged",null);_.a([_.TS("expanded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZH.prototype,"expandedChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],ZH);
_.Z(ZH,"ytd-channel-legal-info-renderer",function(){if(AfN!==void 0)return AfN;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return AfN=W},{mode:1});var QKs;var Mww=_.wg("DOWNLOAD",{},"Download"),ZnH=_.wg("DOWNLOADING",{},"Downloading"),On2=_.wg("DOWNLOADED",{},"Downloaded"),O$=function(){var W=_.I.apply(this,arguments)||this;W.downloadProgress=0;W.isDownloadComplete=!1;W.transferState="TRANSFER_STATE_UNKNOWN";return W};
_.v(O$,_.I);_.t=O$.prototype;_.t.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.t.dataChanged=function(){var W;(W=this.data)!=null&&W.tooltip||(W=_.RD(_.DJ().getState(),this.playlistId),this.updateButtonState(W))};
_.t.computePlaylistId=function(W){return W};
_.t.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.t.updateButtonState=function(W){if(this.data&&(this.data.tooltip!==ZnH||!_.as(W))){this.isDownloadComplete=!1;switch(W){case "TRANSFER_STATE_UNKNOWN":W=Mww;var l="OFFLINE_DOWNLOAD";var V="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":W=On2;l="OFFLINE_PIN";V="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":W=ZnH;l="OFFLINE_DOWNLOADING_ZERO";V="ACTION_REMOVE_WITH_PROMPT";
break;default:W=Mww,l="OFFLINE_DOWNLOAD",V="ACTION_ADD"}var f=Object.assign({},this.data);f.tooltip=W;f.accessibilityData={accessibilityData:{label:W}};f.icon={iconType:l};f.size="SIZE_DEFAULT";_.k(f.command,_.TY)&&(_.k(f.command,_.TY).action=V);this.set("data",f)}};
_.t.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var W="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?W="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?W="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?W="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?W="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?W="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(W="OFFLINE_PIN",this.isDownloadComplete=!0);var l;W!==((l=this.data.icon)==null?void 0:l.iconType)&&(l=Object.assign({},this.data),l.tooltip=ZnH,l.accessibilityData={accessibilityData:{label:ZnH}},l.icon={iconType:W},_.k(l.command,_.TY)&&(_.k(l.command,_.TY).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",l))}};
O$.prototype.updateProgress=O$.prototype.updateProgress;O$.prototype.onTransferStateChanged=O$.prototype.onTransferStateChanged;O$.prototype.dataChanged=O$.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],O$.prototype,"ytdReduxBehavior",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],O$.prototype,"forceIconButton",void 0);
_.a([_.b({value:!0}),_.z("design:type",Boolean)],O$.prototype,"forceIconOnly",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],O$.prototype,"overrides",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],O$.prototype,"buttonTooltipPosition",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],O$.prototype,"styleActionButton",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],O$.prototype,"disableTextTransform",void 0);
_.a([_.b({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.z("design:type",String)],O$.prototype,"playlistId",void 0);_.a([_.b(),_.z("design:type",Object)],O$.prototype,"data",void 0);_.a([_.b({selector:_.Y7g,selectorArgs:["playlistId"]}),_.z("design:type",Object)],O$.prototype,"downloadProgress",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],O$.prototype,"isDownloadComplete",void 0);
_.a([_.b({selector:_.RD,selectorArgs:["playlistId"]}),_.z("design:type",String)],O$.prototype,"transferState",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],O$.prototype,"showTooltips",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],O$.prototype,"sendCommandWhenDisabled",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],O$.prototype,"disabled",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],O$.prototype,"dataChanged",null);_.a([_.zS("transferState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],O$.prototype,"onTransferStateChanged",null);_.a([_.zS("downloadProgress"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],O$.prototype,"updateProgress",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],O$);
_.Z(O$,"ytd-download-playlist-button-renderer",function(){if(QKs!==void 0)return QKs;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return QKs=W},{mode:1});var aW7;_.HI(_.Pxk,"thumbnail-overlay-button-view-model",{props:{data:_.pA,lockupExperiments:_.pA}});var aN=function(){var W=_.I.apply(this,arguments)||this;W.isSquare=!1;W.isVertical=!1;return W};
_.v(aN,_.I);aN.prototype.computeIsSquare=function(W){return W!=null&&W.thumbnail?kNL(W.thumbnail)==="SQUARE":!1};
aN.prototype.computeIsVertical=function(W){return W!=null&&W.thumbnail?kNL(W.thumbnail)==="VERTICAL":!1};
aN.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],aN.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.z("design:type",Object)],aN.prototype,"isSquare",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.z("design:type",Object)],aN.prototype,"isVertical",void 0);
_.a([_.b(),_.z("design:type",Object)],aN.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],aN);
_.Z(aN,"ytd-hero-playlist-thumbnail-renderer",function(){if(aW7!==void 0)return aW7;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return aW7=W},{mode:1});var zB=function(){var W=_.I.apply(this,arguments)||this;W.isDarkTheme=!1;W.isUltraWide=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return W};
_.v(zB,_.I);_.t=zB.prototype;_.t.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.tY();var W;(W=_.tY().resolve(_.R0(_.M9)))!=null&&(W.headerElement=this.hostElement)};
_.t.detached=function(){var W;(W=_.tY().resolve(_.R0(_.M9)))!=null&&(W.headerElement=void 0)};
_.t.onUpdateHeader=function(W){(W=W.detail)&&this.set("data",W)};
_.t.computeTextDisplayed=function(W){if(W)return W.textDisplayed?W.textDisplayed:W.placeholder};
_.t.gradientColorToLinearGradientStop=function(W){var l=this.isDarkTheme?W.darkThemeColor:W.lightThemeColor;return l?_.sD(l)+" "+((W==null?void 0:W.startLocation)||0)*100+"%":"transparent"};
_.t.onWindowResize=function(){var W;((W=this.data)==null?0:W.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.t.onIronResize=function(W){this.isUltraWide=!W.detail.value};
_.t.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.t.onUpdatePlaylistName=function(W){var l=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},W.detail.value));_.V9(this,function(){var V;(V=l.editableTitle)==null||V.resize()})};
_.t.onUpdatePlaylistDescription=function(W){var l=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},W.detail.value));_.V9(this,function(){var V;(V=l.editableDescriptionInlineExpander)==null||V.resize()})};
_.t.getCinematicData=function(W){return _.k(W==null?void 0:W.cinematicContainer,_.RN)};
_.rc.Object.defineProperties(zB.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 W,l=(W=this.getCinematicData(this.data))==null?void 0:W.config;return(W=this.isDarkTheme?l==null?void 0:l.darkThemeBackgroundColor:l==null?void 0:l.lightThemeBackgroundColor)?"background-color:"+_.ta(W)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var W;return _.k((W=this.data)==null?void 0:W.descriptionForm,MDL)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var W=this,l,V,f;return"background:linear-gradient(to bottom, "+(((f=(l=this.getCinematicData(this.data))==null?void 0:(V=l.gradientColorConfig)==null?void 0:V.map(function(r){return W.gradientColorToLinearGradientStop(r)}))==null?void 0:f.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var W;return _.dE((W=this.data)==null?void 0:W.descriptionTapText)}}});
zB.prototype.onUpdateHeader=zB.prototype.onUpdateHeader;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],zB.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],zB.prototype,"actionHandlerBehavior",void 0);_.a([_.Aa("#description-inline-expander"),_.z("design:type",Object)],zB.prototype,"descriptionInlineExpander",void 0);
_.a([_.Aa("#editable-description-inline-expander"),_.z("design:type",Object)],zB.prototype,"editableDescriptionInlineExpander",void 0);_.a([_.b(),_.z("design:type",Object)],zB.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],zB.prototype,"isUltraWide",void 0);_.a([_.Aa("#editable-title-display"),_.z("design:type",Object)],zB.prototype,"editableTitle",void 0);_.a([_.G("isUltraWide"),_.z("design:type",Object),_.z("design:paramtypes",[])],zB.prototype,"maxDescriptionLines",null);
_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],zB.prototype,"noCinematicData",null);_.a([_.XI("yt-new-playlist-header"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],zB.prototype,"onUpdateHeader",null);_.a([_.G("data","isDarkTheme"),_.z("design:type",Object),_.z("design:paramtypes",[])],zB.prototype,"backgroundStyle",null);
_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],zB.prototype,"descriptionFormData",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],zB.prototype,"getDropdownTheme",null);_.a([_.G("data","isDarkTheme"),_.z("design:type",String),_.z("design:paramtypes",[])],zB.prototype,"gradientStyle",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],zB.prototype,"descriptionTapText",null);
_.a([_.A({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],zB);
_.Z(zB,"ytd-playlist-header-renderer",function(){if(IWc!==void 0)return IWc;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return IWc=W},{mode:_.bD("kevlar_poly_si_batch_j078")?1:2});var zF1;var Nuw;var NM=function(){return _.I.apply(this,arguments)||this};
_.v(NM,_.I);NM.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],NM.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],NM.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],NM.prototype,"data",void 0);_.a([_.A({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],NM);
_.Z(NM,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(Nuw!==void 0)return Nuw;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Nuw=W},{mode:1});var Y8=function(){return _.I.apply(this,arguments)||this};
_.v(Y8,_.I);
Y8.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}}}}};
Y8.prototype.computeUsePremiumShowStyle=function(W){if(!W||!W.items)return!1;for(var l=0;l<W.items.length;l++)if(_.k(W.items[l],ZKe)){var V=void 0;return((V=_.k(W.items[l],ZKe))==null?void 0:V.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Y8.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Y8.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Y8.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.z("design:type",Boolean)],Y8.prototype,"usePremiumShowStyle",void 0);
_.a([_.A({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],Y8);
_.Z(Y8,"ytd-playlist-sidebar-renderer",function(){if(zF1!==void 0)return zF1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return zF1=W},{mode:1});var Y4w;var xp5;var eFY=function(W,l,V,f,r,R,y,P){this.minWidth=W;this.minHeight=l;this.recommendedWidth=V;this.recommendedHeight=f;this.JSC$22128_maxFileSize=r;this.title=R;this.bannerGalleryTitle=y;this.channelId=P;this.picker_=null;W=_.kjJ("yt-banner");l=W.addView;V=(new oe2("youtubebanner")).addUploadMetadata("silo_id","19");V.opts.ytMaxFileSize=this.JSC$22128_maxFileSize;f=this.recommendedHeight;V.opts.ytRecWidth=this.recommendedWidth;V.opts.ytRecHeight=f;l.call(W,V);W.addView(new _.xg);l=W.addView;V=new _.xg;
V.opts.type="ytbanner";l.call(W,V.JSC$10068_setLabel(this.bannerGalleryTitle));l=W.setTitle(this.title).setSize(1E3);l.urlParamMap_.set("thumbs","orig");V=this.minWidth;f=this.minHeight;if(isNaN(V)||isNaN(f))throw Error("gb`"+V+"`"+f);l.urlParamMap_.set("minSize",V+"x"+f);l.urlParamMap_.set("cropMode","ytcb");this.builder_=W};
eFY.prototype.open=function(){var W=this;return new _.Dx(function(l,V){_.hVX(W.builder_,function(f){f.action=="picked"?l(f):f.action=="cancel"&&V(Error("Bo"))});
W.picker_&&W.picker_.dispose();W.picker_=W.builder_.build();W.picker_.setVisible(!0)})};
eFY.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var q47=function(W){this.channelId=W};
q47.prototype.upload=function(W){var l="";W.viewToken&&(l=W.viewToken[2].type);var V=W.docs[0];W=V.crop;l={channel_id:this.channelId,fife_url:V.thumbnails[0].url,photo_id:V.id,is_gallery_image:l=="ytbanner"};W&&(l.crop_top=W.top,l.crop_right=W.right,l.crop_bottom=W.bottom,l.crop_left=W.left);return _.eeY("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:l})};var x8=function(){var W=_.I.apply(this,arguments)||this;W.ariaLabel=null;return W};
_.v(x8,_.I);_.t=x8.prototype;_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.t.detached=function(){this.picker&&this.picker.dispose()};
_.t.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.t.computeAriaLabel=function(W){return W};
_.t.onTap=function(){var W=this,l;if((l=this.data)==null||!l.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new eFY(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 V;(V=this.picker)==null||V.open().then(function(f){W.handleBannerPicked(f)},function(){})}};
_.t.handleBannerPicked=function(W){var l=this;this.uploader||(this.uploader=new q47(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(W).then(function(V){l.handleBannerUploadSucceeded(V)},function(V){l.handleBannerUploadFailed(V)})};
_.t.handleBannerUploadSucceeded=function(W){W&&W.errors?this.handleBannerUploadFailed(W):(_.FN(this.hostElement,"yt-banner-updated",W),this.message=null)};
_.t.handleBannerUploadFailed=function(W){this.message=W&&W.errors&&W.errors.length?W.errors[0]:null};
x8.prototype.dataChanged=x8.prototype.dataChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],x8.prototype,"componentBehavior",void 0);_.a([_.F(_.VO),_.z("design:type",Object)],x8.prototype,"ironButtonState",void 0);_.a([_.b(),_.z("design:type",Object)],x8.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.z("design:type",Object)],x8.prototype,"ariaLabel",void 0);
_.a([_.b(),_.z("design:type",Object)],x8.prototype,"message",void 0);_.a([_.b(),_.z("design:type",Object)],x8.prototype,"picker",void 0);_.a([_.b(),_.z("design:type",Object)],x8.prototype,"uploader",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],x8.prototype,"dataChanged",null);_.a([_.A({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],x8);
_.Z(x8,"ytd-channel-banner-editor-renderer",function(){if(xp5!==void 0)return xp5;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return xp5=W},{mode:1});var hFL;var S4w=_.tj(["#"]),e_=function(){return _.I.apply(this,arguments)||this};
_.v(e_,_.I);e_.prototype.computeHrefWithDefault=function(W){return this.ytComponentBehavior.computeHref_(W,!0)||_.l7S(S4w)};
e_.prototype.dataChanged=function(){var W=this.data;W&&W.targetId&&_.jbc(_.rY(),W.targetId,this.moreIcon)};
e_.prototype.dataChanged=e_.prototype.dataChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],e_.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],e_.prototype,"data",void 0);_.a([_.Aa("#more-icon"),_.z("design:type",Object)],e_.prototype,"moreIcon",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],e_.prototype,"dataChanged",null);
_.a([_.A({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],e_);
_.Z(e_,"ytd-channel-tagline-renderer",function(){if(hFL!==void 0)return hFL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return hFL=W},{mode:1});var EnZ;var qM=function(){return _.I.apply(this,arguments)||this};
_.v(qM,_.I);_.t=qM.prototype;_.t.ready=function(){var W=this;_.GS(this.hostElement).querySelector("#form").addEventListener("submit",function(l){W.onSubmit(l)})};
_.t.onDataChanged=function(){var W;((W=this.data)==null?0:W.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.t.onIconButtonKeydown=function(W){W.keyCode===13&&this.iconButton.click()};
_.t.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.t.openOnClickHandler=function(){this.input.focus()};
_.t.onSubmit=function(W){W.preventDefault();return!1};
_.t.submitOnEnterKeyUp=function(W){var l;if(W.keyCode===13&&((l=this.data)==null?0:l.expandedText)){W=this.data.endpoint;l=_.MC.unsafeClone(W);var V;((V=_.k(l==null?void 0:l.commandMetadata,_.XN))==null?0:V.url)?(_.k(l.commandMetadata,_.XN).url=_.OL(_.k(l.commandMetadata,_.XN).url,"query",this.data.expandedText),_.k(l,_.ZJ)&&(_.k(l,_.ZJ).query=this.data.expandedText),_.FN(this.hostElement,"yt-navigate",{endpoint:l,tempData:{disableCache:!0}})):(V=new _.bP("Error: Trying to navigate to an endpoint without url",
W),_.wv(V))}};
_.t.updateDataExpandedTextFromBinding=function(W){this.set("data.expandedText",W.detail.value)};
_.rc.Object.defineProperties(qM.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.U("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
qM.prototype.onDataChanged=qM.prototype.onDataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],qM.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.qJZ),_.z("design:type",Object)],qM.prototype,"ytdExpandableInputBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],qM.prototype,"data",void 0);_.a([_.Aa("#input"),_.z("design:type",Object)],qM.prototype,"input",void 0);_.a([_.Aa("#icon-button"),_.z("design:type",HTMLElement)],qM.prototype,"iconButton",void 0);
_.a([_.b(),_.z("design:type",String),_.z("design:paramtypes",[])],qM.prototype,"searchIcon",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qM.prototype,"onDataChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],qM);
var veH=_.GG()(qM,"ytd-expandable-tab-renderer",function(){if(EnZ===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);EnZ=W}W=EnZ;return W},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var $ps;var hV=function(){var W=_.I.apply(this,arguments)||this;W.avatarSize=80;W.ariaLabel=_.wg("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return W};
_.v(hV,_.I);hV.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
hV.prototype.computeHref=function(W){var l;return((l=_.k(W,_.x_))==null?0:l.url)?this.componentBehavior.computeHref_(W):null};
hV.prototype.onTap=function(){var W,l;(W=this.data)==null||!W.editAvatarServiceEndpoint||((l=_.k(this.data.editAvatarServiceEndpoint,_.x_))==null?0:l.url)||_.tY().resolve(_.s6).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.a([_.F(_.VO),_.z("design:type",Object)],hV.prototype,"ironButtonState",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],hV.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],hV.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],hV.prototype,"avatarSize",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],hV.prototype,"ariaLabel",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],hV);
_.Z(hV,"ytd-channel-avatar-editor",function(){if($ps!==void 0)return $ps;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return $ps=W},{mode:1});var Wj$=_.Q(function(W){var l=W.data;var V=W.noPadding;var f=W.enableBanner;var r=W.cinematicContainerTopbarOffset;var R=W.allowCinematicContainerOverflow;var y=W.displayAsSidebar;W=W.className;_.m1(function(){l().tagManagerId&&(_.LA(l().tagManagerId,_.M4("GL")),pie(l().tagManagerId))},"vUc8md");
var P=_.wH(Ks1,function(){return l().pageHeaderEntityKey});
return _.C("yt-page-header-renderer",{class:_.If("pageHeaderRendererHost",W)},_.C(_.QH,{data:function(){var n;return((n=P())==null?0:n.header)?P().header:(y==null?0:y())&&l().sidebarContent?l().sidebarContent:l().content}},{pageHeaderViewModel:function(n){return _.C(_.OYv,{data:n.data,
noPadding:V,enableBanner:f,cinematicContainerTopbarOffset:r,allowCinematicContainerOverflow:R,displayAsSidebar:function(){return(y==null?void 0:y())&&l().enableSidebarView}})}}))},"nk");
Wj$.idomCompat=!0;_.HI(Wj$,"yt-page-header-renderer",{props:{data:_.pA,noPadding:_.pA,enableBanner:_.pA,cinematicContainerTopbarOffset:_.pA,allowCinematicContainerOverflow:_.pA,displayAsSidebar:_.pA,className:_.pA}});_.HI(_.uf,"yt-image-banner-view-model",{props:{data:_.pA,isPositionRelative:_.pA}});_.HI(_.Rqc,"yt-tab-group-shape",{props:{shape:_.pA}});var S_=function(){var W=_.I.apply(this,arguments)||this;W.expandableCustomTabRenderable=function(l){return HK1(l,function(){return void W.onSearchNavigate()})};
W.isRichGrid=!1;W.isConstrainedList=!1;W.richGridMiniMode=!1;W.richGridStyle="RICH_GRID_STYLE_UNKNOWN";W.isRichGridShorts=!1;W.responsiveSizing="COMPACT";W.disableGridStateAware=!1;W.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return W};
_.v(S_,_.I);_.t=S_.prototype;_.t.computeHeaderDisabled=function(W,l){return l||!W||this.tabsHidden};
_.t.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.t.computeIsRichGridShorts=function(W){return W==="RICH_GRID_STYLE_SHORTS_GRID"||W==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.t.computeImageBannerViewModel=function(){var W,l;return _.k((l=_.k((W=this.data)==null?void 0:W.content,_.SqI))==null?void 0:l.banner,_.zlL)};
_.t.computeHasCinematicContainer=function(){var W,l;return!((l=_.k((W=this.data)==null?void 0:W.content,_.SqI))==null||!l.background)};
_.t.handleHeaderResize=function(){var W=_.GS(this.hostElement).querySelector("#header");W&&_.FN(W,"iron-resize")};
_.t.handleInsertTabCommand=function(W){var l=_.k(W,q9c);l&&(l.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(V){return V.tabRenderer&&V.tabRenderer.tabIdentifier===l.tabIdentifier})||this.splice("tabs",l.tabIndex||-1,0,l.tab))};
_.t.handleRefreshChannelTabAction=function(W){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===W&&_.FN(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.t.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.I1(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.t.observerRichGridSlimItemsPerRow=function(){_.I1(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.t.updateCssVars=function(){this.richGridItemsPerRow&&_.I1(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.yS("rich_grid_max_item_width",500))+16)-16+"px"})};
_.t.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.I1(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.t.onDataChanged=function(){this.handleHeaderResize()};
_.t.onWindowResize=function(){this.handleHeaderResize()};
_.t.onFocusedChanged=function(W){(W=_.Ja(W))&&W.is==="tp-yt-paper-tab"&&W.hasRipple()&&(W.getRipple().holdDown=!W.pointerDown&&W.focused)};
_.t.updateSelectedFromBinding=function(W){this.ytdTabbedHeaderBehavior.selected=W.detail.value};
_.t.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.rc.Object.defineProperties(S_.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:GNw(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.imageBannerViewModel)==null?void 0:W.style)==="IMAGE_BANNER_STYLE_INSET"}}});
S_.prototype.onDataChanged=S_.prototype.onDataChanged;S_.prototype.updateCssVarsForResponsiveGrid=S_.prototype.updateCssVarsForResponsiveGrid;S_.prototype.updateCssVars=S_.prototype.updateCssVars;S_.prototype.observerRichGridSlimItemsPerRow=S_.prototype.observerRichGridSlimItemsPerRow;S_.prototype.observerRichGridItemsPerRow=S_.prototype.observerRichGridItemsPerRow;_.a([_.F(_.uy),_.z("design:type",Object)],S_.prototype,"ytdGridStateAwareBehavior",void 0);
_.a([_.F(hSc),_.z("design:type",Object)],S_.prototype,"ytdTabbedHeaderBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],S_.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],S_.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.vZ.YtdGuideStateAwareBehavior),_.z("design:type",Object)],S_.prototype,"ytdGuideStateAwareBehavior",void 0);
_.a([_.F(_.dx),_.z("design:type",Object)],S_.prototype,"ytdReduxBehavior",void 0);_.a([_.Aa("#tabs"),_.z("design:type",Object)],S_.prototype,"tabsElement",void 0);_.a([_.b(),_.z("design:type",Array)],S_.prototype,"tabs",void 0);_.a([_.b(),_.z("design:type",Object)],S_.prototype,"expandableCustomTabRenderable",void 0);_.a([_.G("tabs.*"),_.z("design:type",Object),_.z("design:paramtypes",[])],S_.prototype,"tabGroupShape",null);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],S_.prototype,"isRichGrid",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],S_.prototype,"isConstrainedList",void 0);_.a([_.b({reflectToAttribute:!0,selector:_.$H}),_.z("design:type",Object)],S_.prototype,"richGridMiniMode",void 0);_.a([_.b({selector:function(W){return W.ui.richGridStyle}}),
_.z("design:type",Object)],S_.prototype,"richGridStyle",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.z("design:type",Object)],S_.prototype,"isRichGridShorts",void 0);_.a([_.b({selector:_.Wl}),_.z("design:type",Number)],S_.prototype,"richGridItemsPerRow",void 0);_.a([_.b({selector:function(W){return W.ui.richGridContainerWidth}}),
_.z("design:type",Number)],S_.prototype,"richGridContainerWidth",void 0);_.a([_.b({selector:_.II6}),_.z("design:type",Number)],S_.prototype,"richGridSlimItemsPerRow",void 0);_.a([_.b(),_.z("design:type",Object)],S_.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],S_.prototype,"responsiveSizing",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],S_.prototype,"disableGridStateAware",void 0);
_.a([_.b({computed:"computeImageBannerViewModel(data)"}),_.z("design:type",Object)],S_.prototype,"imageBannerViewModel",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.z("design:type",Boolean)],S_.prototype,"hasCinematicContainer",void 0);_.a([_.b({selector:_.XP1,reflectToAttribute:!0}),_.z("design:type",Boolean)],S_.prototype,"guideIsVisibleButNotPersistent",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("imageBannerViewModel"),_.z("design:type",Object),_.z("design:paramtypes",[])],S_.prototype,"hasBanner",null);_.a([_.b({reflectToAttribute:!0}),_.G("imageBannerViewModel"),_.z("design:type",Object),_.z("design:paramtypes",[])],S_.prototype,"hasInsetBanner",null);_.a([_.b({computed:"computeTabsHidden(tabs)",value:!0}),_.z("design:type",Boolean)],S_.prototype,"tabsHidden",void 0);
_.a([_.TS("richGridItemsPerRow","isRichGrid"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S_.prototype,"observerRichGridItemsPerRow",null);_.a([_.TS("richGridSlimItemsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S_.prototype,"observerRichGridSlimItemsPerRow",null);
_.a([_.TS("richGridItemsPerRow","richGridMiniMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S_.prototype,"updateCssVars",null);_.a([_.TS("richGridContainerWidth"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S_.prototype,"updateCssVarsForResponsiveGrid",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],S_.prototype,"onDataChanged",null);
_.a([_.A({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],S_);
_.Z(S_,"ytd-tabbed-page-header",function(){if(Y4w!==void 0)return Y4w;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Y4w=W},{mode:1});var l4P;var E$=function(){return _.I.apply(this,arguments)||this};
_.v(E$,_.I);E$.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.I1(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.rc.Object.defineProperties(E$.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var W,l;return this.componentBehavior.computeIcon_(((l=_.k((W=this.data)==null?void 0:W.badge,_.LEL))==null?void 0:l.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var W,l;return(l=_.k((W=this.data)==null?void 0:W.badge,_.LEL))==null?void 0:l.label}}});
E$.prototype.observerRichGridItemsPerRow=E$.prototype.observerRichGridItemsPerRow;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],E$.prototype,"componentBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],E$.prototype,"ytdReduxBehavior",void 0);_.a([_.b({reflectToAttribute:!0,selector:_.$H}),_.z("design:type",Boolean)],E$.prototype,"richGridMiniMode",void 0);
_.a([_.b({selector:_.Wl}),_.z("design:type",Number)],E$.prototype,"richGridItemsPerRow",void 0);_.a([_.b(),_.z("design:type",Object)],E$.prototype,"data",void 0);_.a([_.TS("richGridItemsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],E$.prototype,"observerRichGridItemsPerRow",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],E$.prototype,"badgeIconName",null);
_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],E$.prototype,"badgeLabel",null);_.a([_.A({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],E$);
_.Z(E$,"ytd-member-hub-profile-renderer",function(){if(l4P!==void 0)return l4P;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return l4P=W},{mode:1});var VvM;var $8=function(){return _.I.apply(this,arguments)||this};
_.v($8,_.I);$8.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],$8.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],$8.prototype,"data",void 0);_.a([_.A({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],$8);
_.Z($8,"ytd-settings-sidebar-renderer",function(){if(VvM!==void 0)return VvM;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return VvM=W},{mode:1});var f4k;var W1=function(){var W=_.I.apply(this,arguments)||this;W.expandableCustomTabRenderable=function(l){return HK1(l,function(){return void W.onSearchNavigate()})};
return W};
_.v(W1,_.I);W1.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
W1.prototype.onSearchNavigate=function(){this.selected=void 0};
W1.prototype.onTabsChange=function(){var W,l=(W=this.tabs)==null?void 0:W.findIndex(function(V){var f;return V==null?void 0:(f=V.tabRenderer)==null?void 0:f.selected});
l!==void 0&&(this.selected=l)};
W1.prototype.onTabsActive=function(W){if(this.tabs!==void 0){var l,V;(W=(l=this.tabs[W.detail.selected])==null?void 0:(V=l.tabRenderer)==null?void 0:V.endpoint)&&_.FN(this.hostElement,"yt-navigate",{endpoint:W})}};
_.rc.Object.defineProperties(W1.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:GNw(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
W1.prototype.onTabsChange=W1.prototype.onTabsChange;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],W1.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uy),_.z("design:type",Object)],W1.prototype,"ytdGridStateAwareBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],W1.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.vZ.YtdGuideStateAwareBehavior),_.z("design:type",Object)],W1.prototype,"ytdGuideStateAwareBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],W1.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Array)],W1.prototype,"tabs",void 0);_.a([_.b(),_.z("design:type",Number)],W1.prototype,"selected",void 0);_.a([_.G("tabs.*"),_.z("design:type",Object),_.z("design:paramtypes",[])],W1.prototype,"tabGroupShape",null);_.a([_.b(),_.z("design:type",Object)],W1.prototype,"expandableCustomTabRenderable",void 0);
_.a([_.G("tabs"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],W1.prototype,"tabsEnabled",null);_.a([_.zS("tabs"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],W1.prototype,"onTabsChange",null);_.a([_.A({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],W1);
_.Z(W1,"ytd-topic-channel-details-renderer",function(){if(f4k!==void 0)return f4k;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return f4k=W},{mode:1});var rxk;var lA=function(){var W=_.I.apply(this,arguments)||this;W.disableGridStateAware=!1;return W};
_.v(lA,_.I);lA.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]]"}}}}}};
lA.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
lA.prototype.updateCssVars=function(){_.I1(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.yS("rich_grid_max_item_width",500))+16)-16+"px"})};
lA.prototype.updateCssVars=lA.prototype.updateCssVars;lA.prototype.activeChanged=lA.prototype.activeChanged;_.a([_.F(_.vZ.YtdGuideStateAwareBehavior),_.z("design:type",Object)],lA.prototype,"ytdGuideStateAwareBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],lA.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],lA.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],lA.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Array)],lA.prototype,"tabs",void 0);_.a([_.b(),_.z("design:type",Boolean)],lA.prototype,"active",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],lA.prototype,"disableGridStateAware",void 0);
_.a([_.b({selector:_.Wl}),_.z("design:type",Number)],lA.prototype,"richGridItemsPerRow",void 0);_.a([_.b({selector:_.$H}),_.z("design:type",Boolean)],lA.prototype,"richGridMiniMode",void 0);_.a([_.Aa("ytd-carousel-item-renderer"),_.z("design:type",Object)],lA.prototype,"carousel",void 0);_.a([_.TS("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lA.prototype,"activeChanged",null);
_.a([_.TS("richGridItemsPerRow","richGridMiniMode"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lA.prototype,"updateCssVars",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],lA);
_.Z(lA,"ytd-carousel-header-renderer",function(){if(rxk!==void 0)return rxk;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return rxk=W},{mode:1});var RJv;var tvO=_.tj(["https://www.google-analytics.com/analytics.js"]),Vm=function(){var W=_.I.apply(this,arguments)||this;W.scriptAnalyticsAdded=!1;return W};
_.v(Vm,_.I);Vm.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var W,l=(W=this.data)==null?void 0:W.tagManagerId;l&&(_.LA(l,_.M4("GL")),pie(l))};
Vm.prototype.sendGoogleAnalyticsPageview=function(W){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var V=_.xk.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(V)};
var l=window.ga;l("set","page",window.location.pathname);l.l=+new Date;l("set","forceSSL",!0);l("create",W,"'auto'");l("send","pageview")};
Vm.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var W=_.Gz("SCRIPT");W.name="ga-analytics";var l=_.dO(tvO);_.tL(W,l);W.async=!0;_.GS(this.hostElement).appendChild(W)};
Vm.prototype.dataChanged=Vm.prototype.dataChanged;_.a([_.b(),_.z("design:type",Object)],Vm.prototype,"data",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vm.prototype,"dataChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],Vm);
_.Z(Vm,"ytd-channel-metadata-renderer",function(){if(RJv!==void 0)return RJv;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return RJv=W},{mode:1});var sYe;var Lje;var fo=function(){var W=_.I.apply(this,arguments)||this;W.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"]);W.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"]);W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return W};
_.v(fo,_.I);_.t=fo.prototype;_.t.attached=function(){this.requestElementsPerRow()};
_.t.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_]]"}}}}}};
_.t.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W)};
_.t.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.t.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.t.computeAlertStyle_=function(W){return W};
_.t.observerElementsPerRow=function(){this.elementsPerRow&&_.I1(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.t.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.t.requestElementsPerRow=function(){_.FN(this.hostElement,"yt-request-elements-per-row")};
fo.prototype.onIsVisibleChanged_=fo.prototype.onIsVisibleChanged_;fo.prototype.observerElementsPerRow=fo.prototype.observerElementsPerRow;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],fo.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],fo.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],fo.prototype,"actionHandlerBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],fo.prototype,"data",void 0);_.a([_.b({value:6,reflectToAttribute:!0}),_.z("design:type",Number)],fo.prototype,"elementsPerRow",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],fo.prototype,"wrapButtons",void 0);_.a([_.b({value:_.M4("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.z("design:type",Boolean)],fo.prototype,"isMusic",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.z("design:type",String)],fo.prototype,"alertStyle",void 0);_.a([_.b({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.z("design:type",Function)],fo.prototype,"dismissBoundButtonTap_",void 0);_.a([_.b({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.z("design:type",Function)],fo.prototype,"acceptBoundButtonTap_",void 0);_.a([_.TS("elementsPerRow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fo.prototype,"observerElementsPerRow",null);_.a([_.TS("data.isVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fo.prototype,"onIsVisibleChanged_",null);_.a([_.Vq({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],fo);
_.Z(fo,"yt-alert-with-actions-renderer",function(){if(Lje===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;sYe===void 0&&(sYe=document.createElement("template"));var f=sYe;V.call(l,f.content.cloneNode(!0),W.content.firstChild);Lje=W}W=Lje;return W},{mode:2});_.HI(_.Q(function(W){function l(D){var u={};return _.C(_.bH,{text:D,className:_.If("ytPersonalGreetingViewModelHeadline",(u.ytPersonalGreetingViewModelHeadlineSmall=function(){return P()===48},u))})}
function V(D,u){return _.C("span",{el:D,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},l(u))}
var f=_.DN(_.E_(function(){var D;return(D=W.data())==null?void 0:D.rendererContext},void 0,void 0,void 0,!0)),r=_.WS("span"),R=_.WS("span"),y=function(){return W.data().canvasPromoData},P=function(){var D;
return(D=W.data().bannerHeight)!=null?D:56},n=_.Ghg(f,{throttleMs:100}),B=_.Ghg(r,{throttleMs:100}),d=_.Ghg(R,{throttleMs:100}),J=function(){return B.width()-n.width()>1};
return _.C("yt-personal-greeting-view-model",{el:f,"aria-hidden":J,class:_.If(W.className,"ytPersonalGreetingViewModelHost"),style:_.Tm({height:(0,_.nD)(function(){return J()?0:P()})})},_.C(_.c,{cond:function(){return W.data().avatar&&!(d.width()+(W.data().avatar?48:0)-n.width()>1)},
then:function(){return _.C(_.QH,{data:function(){return W.data().avatar}},{decoratedAvatarViewModel:function(D){return _.C(_.Px,{data:D.data,
className:_.If("ytPersonalGreetingViewModelAvatar")})}})}}),_.C("h1",null,l(function(){var D;
return(y==null?void 0:(D=y())==null?void 0:D.headline)||(d.width()+(W.data().avatar?48:0)-n.width()>1?W.data().shorterGreeting:W.data().greeting)})),V(R,function(){return W.data().greeting}),V(r,function(){return W.data().shorterGreeting}))},"ok"),"yt-personal-greeting-view-model",{props:{data:_.pA,
className:_.pA}});var r1=function(){var W=_.I.apply(this,arguments)||this;W.hidden=!1;W.isConstrainedList=!1;W.darkerDarkTheme=_.U("web_darker_dark_theme");W.responsiveSizing="COMPACT";W.attachedPlayers=_.U("kevlar_channel_trailer_multi_attach")?[]:void 0;W.player=null;W.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return W};
_.v(r1,_.I);_.t=r1.prototype;
_.t.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}}}}};
_.t.created=function(){var W=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){W.disposeMastheadAd()}]};
_.t.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new $uw(this.refresh,this.contents))};
_.t.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.t.activeChanged=function(){var W=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=W)};
_.t.tabsChanged=function(){var W=this,l,V;if(this.pageSubtype==="channels"||_.U("kevlar_tab_gestures_for_tabbed_header_data")&&((l=this.data)==null?0:(V=l.header)==null?0:V.carouselHeaderRenderer))this.tabGestures=new PQ(this.contents,this.contents,this.hostElement,this.header,function(y){W.ytdReduxBehavior.dispatch(y)});
var f,r,R;l=(f=this.data)==null?void 0:(r=f.contents)==null?void 0:(R=r.twoColumnBrowseResultsRenderer)==null?void 0:R.tabs;this.tabGestures&&this.tabGestures.tabsChanged(l)};
_.t.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.t.engagementPanelsChanged=function(){var W=_.tY().resolve(_.tq);if(W){if(this.engagementPanels)for(var l=_.L(this.engagementPanels),V=l.next();!V.done;V=l.next()){var f=void 0;(V=(f=V.value.identifier)==null?void 0:f.tag)&&W.panelMap.delete(V)}this.engagementPanels=[];var r;l=_.L(((r=this.data)==null?void 0:r.panels)||[]);for(r=l.next();!r.done;r=l.next()){r=_.k(r.value,_.kA7);var R=V=void 0,y=void 0,P=void 0;if(f=((V=r)==null?void 0:V.targetId)||((R=r)==null?void 0:R.panelIdentifier)||((y=r)==
null?void 0:(P=y.identifier)==null?void 0:P.tag))R=V=void 0,(R=(V=W).registerPanelContent)==null||R.call(V,f,{engagementPanelSectionListRenderer:r}),this.engagementPanels.push(r)}}};
_.t.onStampFinished=function(){var W=this;_.V9(this,function(){if(W.tabGestures){var l=W.tabGestures;if(l.scrollPositionNeedsUpdate){var V=_.tY().resolve(_.R0(_.Bp)),f;if((f=l.selectedTab)!=null&&f.title&&V&&(f=V.getCurrentPage())){if(l.scrollPositionForTabs.has(l.selectedTab.title)){var r,R;V=(R=(r=V.getCurrentPage())==null?void 0:r.clientHeight)!=null?R:0;r=l.scrollPositionForTabs.get(l.selectedTab.title);f.setScrollTop(r);V>r+100&&(l.scrollPositionNeedsUpdate=!1)}else f.setScrollTop(Math.min(l.lastVisitedTabScrollPosition!==
void 0?l.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,l.tabsStartAtInPx)),l.scrollPositionNeedsUpdate=!1;l.ytdReduxDispatch(bKe(!1))}}}})};
_.t.loadPage_=function(W){this.initCsi();W&&(this.data=W);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.t.getTitle=function(W){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",W))return this.get("microformat.microformatDataRenderer.title",W);if(this.get("header.feedTabbedHeaderRenderer.title",W))return _.dE(this.get("header.feedTabbedHeaderRenderer.title",W));if(this.get("header.interactiveTabbedHeaderRenderer.title",W))return this.get("header.interactiveTabbedHeaderRenderer.title",W);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
W))return _.dE(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",W));var l,V;return(W==null?0:(l=W.header)==null?0:(V=l.pageHeaderRenderer)==null?0:V.pageTitle)?W.header.pageHeaderRenderer.pageTitle:""};
_.t.updateTitle=function(W){_.FN(this.hostElement,"yt-update-title",this.getTitle(W))};
_.t.initCsi=function(){_.Uuw(this.pageSubtype||"browse",["ol","cpt"])};
_.t.getPlayer=function(){if(_.U("kevlar_channel_trailer_multi_attach")){for(var W=_.L(this.attachedPlayers),l=W.next();!l.done;l=W.next())if(l=l.value,l.isConnected||_.eV(this.hostElement,l))return l;return null}return this.player};
_.t.getPlayerContainer=function(){return null};
_.t.onPlayerAttached=function(W,l){_.U("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(l):this.player=l};
_.t.onPlayerDetached=function(W,l){_.U("kevlar_channel_trailer_multi_attach")?(W=this.attachedPlayers.indexOf(l),W<0||this.attachedPlayers.splice(W,1)):this.player=null};
_.t.getServiceTrackingParams=function(){var W,l;return((W=this.data)==null?void 0:(l=W.responseContext)==null?void 0:l.serviceTrackingParams)||[]};
_.t.setMastheadAd=function(W){W&&W.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=W&&W.mastheadAd};
_.t.dataChanged=function(){var W=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.gew();_.V9(this,function(){_.bj(W.hostElement,"ytd-update-grid-state-action")})};
_.t.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.t.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var W=this.data.alerts;return W&&W.find(function(l){return!!l.alertWithActionsRenderer})}};
_.t.computeGreetingData=function(){if(this.data&&this.data.alerts){var W=this.data.alerts;return W&&W.find(function(l){return!!l.personalGreetingViewModel})}};
_.t.computeHasMemberHubProfileRenderer=function(W){var l;return!!(W==null?0:(l=W.header)==null?0:l.memberHubProfileRenderer)};
_.t.handleAlertCommand=function(W){this.get("alertCommand.alert.alertWithActionsRenderer",W)&&(W=_.k(W,ANw),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",W.alert))};
_.t.handleYtPlaylistDeletionRedirect=function(W){W=this.get("playlistDeletionRedirectCommand.redirectEndpoint",W);_.FN(this.hostElement,"yt-navigate",{endpoint:W})};
_.t.computeFluidWidth=function(W,l,V){if(l==="mini_app"||V)return!0;var f,r,R;W=W==null?void 0:(f=W.contents)==null?void 0:(r=f.twoColumnBrowseResultsRenderer)==null?void 0:(R=r.tabs)==null?void 0:R.find(function(n){var B;return n==null?void 0:(B=n.tabRenderer)==null?void 0:B.selected});
if(!W)return!1;var y,P;return!!((y=W.tabRenderer)==null?0:(P=y.content)==null?0:P.richGridRenderer)&&!["channel","channels","playables"].includes(l)};
_.t.computeHeaderFluidWidth=function(W){return W==="hashtag-landing-page"};
_.t.computeHasSidebar=function(W){var l;return!!(W.sidebar||((l=W.header)==null?0:l.playlistHeaderRenderer))};
_.t.computeHasPageHeaderSidebar=function(W){var l,V;return!!((l=W.header)==null?0:(V=l.pageHeaderRenderer)==null?0:V.enableSidebarView)};
_.t.computeUseUnifiedShowPageLayout=function(W){if(!W||this.pageSubtype!=="show"||!W.sidebar||!W.sidebar.playlistSidebarRenderer)return!1;W=W.sidebar.playlistSidebarRenderer;if(!W.items)return!1;for(var l=0;l<W.items.length;l++)if(_.k(W.items[l],ZKe)){var V=void 0;return((V=_.k(W.items[l],ZKe))==null?void 0:V.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.t.computeIsConstrainedList=function(W){return _.U("web_enable_constrained_list_subscriptions_channels")&&W==="subscriptions-channels"};
_.t.computeResponsiveSizing=function(W){return W==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.rc.Object.defineProperties(r1.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var W,l;return((W=this.data)==null?0:(l=W.header)==null?0:l.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var W,l;if(!((W=this.data)==null?0:(l=W.sidebar)==null?0:l.playlistSidebarRenderer))return!1;var V;return(V=this.data)!=null&&V.header?!1:!0}}});
_.rc.Object.defineProperties(r1,{template:{configurable:!0,enumerable:!0,get:function(){if(Vw4===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);Vw4=W}W=Vw4;return W}}});
r1.prototype.dataChanged=r1.prototype.dataChanged;r1.prototype.onPlayerDetached=r1.prototype.onPlayerDetached;r1.prototype.onPlayerAttached=r1.prototype.onPlayerAttached;r1.prototype.onStampFinished=r1.prototype.onStampFinished;r1.prototype.engagementPanelsChanged=r1.prototype.engagementPanelsChanged;r1.prototype.scrollAtTopChanged=r1.prototype.scrollAtTopChanged;r1.prototype.tabsChanged=r1.prototype.tabsChanged;r1.prototype.activeChanged=r1.prototype.activeChanged;
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],r1.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.i5),_.z("design:type",Object)],r1.prototype,"ytdOpenPopupBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],r1.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],r1.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.LY.YtPageBehavior),_.z("design:type",Object)],r1.prototype,"ytPageBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],r1.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.vZ.YtdGuideStateAwareBehavior),_.z("design:type",Object)],r1.prototype,"ytdGuideStateAwareBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],r1.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],r1.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],r1.prototype,"hidden",void 0);
_.a([_.b(),_.z("design:type",Object)],r1.prototype,"mastheadAdData",void 0);_.a([_.b({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.z("design:type",Object)],r1.prototype,"alertBannerData",void 0);_.a([_.b({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.z("design:type",Object)],r1.prototype,"greetingData",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],r1.prototype,"pageSubtype",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.z("design:type",Boolean)],r1.prototype,"hasMemberHubProfileRenderer",void 0);_.a([_.b({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],r1.prototype,"hasSidebar",void 0);_.a([_.b({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],r1.prototype,"hasPageHeaderSidebar",void 0);
_.a([_.b({reflectToAttribute:!0,value:!0}),_.z("design:type",Boolean)],r1.prototype,"roundedContainer",void 0);_.a([_.b({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],r1.prototype,"useUnifiedShowPageLayout",void 0);_.a([_.b({computed:"computeIsConstrainedList(pageSubtype)"}),_.z("design:type",Object)],r1.prototype,"isConstrainedList",void 0);
_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],r1.prototype,"usePlaylistHeaderRenderer",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],r1.prototype,"useOldPlaylistSidebarRenderer",null);_.a([_.b({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.z("design:type",Boolean)],r1.prototype,"fluidWidth",void 0);_.a([_.b({selector:function(W){return W.ui.scrollAtTop}}),
_.z("design:type",Boolean)],r1.prototype,"scrollAtTop",void 0);_.a([_.b({selector:_.TK5}),_.z("design:type",Boolean)],r1.prototype,"tabGesturesIsActive",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],r1.prototype,"darkerDarkTheme",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.z("design:type",Boolean)],r1.prototype,"disableHeaderFluidWidth",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.z("design:type",String)],r1.prototype,"responsiveSizing",void 0);_.a([_.Aa("ytd-two-column-browse-results-renderer"),_.z("design:type",HTMLElement)],r1.prototype,"contents",void 0);_.a([_.Aa("#header"),_.z("design:type",HTMLElement)],r1.prototype,"header",void 0);_.a([_.Aa("ytd-refresh"),_.z("design:type",Object)],r1.prototype,"refresh",void 0);
_.a([_.TS("active"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],r1.prototype,"activeChanged",null);_.a([_.TS("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],r1.prototype,"tabsChanged",null);_.a([_.TS("scrollAtTop"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],r1.prototype,"scrollAtTopChanged",null);
_.a([_.b(),_.z("design:type",Object)],r1.prototype,"engagementPanels",void 0);_.a([_.TS("data.panels"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],r1.prototype,"engagementPanelsChanged",null);_.a([_.XI("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],r1.prototype,"onStampFinished",null);
_.a([_.XI("yt-player-attached"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Element]),_.z("design:returntype")],r1.prototype,"onPlayerAttached",null);_.a([_.XI("yt-player-detached"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Element]),_.z("design:returntype")],r1.prototype,"onPlayerDetached",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],r1.prototype,"dataChanged",null);
_.a([_.A({is:"ytd-browse"})],r1);_.ZI.registerService(_.F0J,r1);
_.Z1();
}catch(e){_._DumpException(e)}
try{
_.Ms("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 $i,DTZ,UT5,uN1,ktY,vu4,HNe,KAH,FA5,GtH,bNY,ph2,jgw,IY1,mTw,XhN,Tg1,Agw,QgH,Mys,ZNY,WX,aYs,la,zMZ,Ng5,Ye1,xT7,eM7,hMH,Eu2,qeH,ouZ,$T1,WL7,lA2,VEZ,fA2,rWN,ssw,LLZ,yW4,gH2,nHs,C_c,BJ2,JWH,DdN,Udw,kT1,H01,KLe,FLY,GTN,b0s,py2,oHe,jse,IAw,i01,md5,XyY,TJ1,wyw,AWw,QsN,ME5,Z05,O01,zus,NJ1,YKL,xdw,euZ,qK5,hu5,SKw,EHw,$dZ,WgZ,lJZ,VrN,fJY,r5s,Rss,trw,sD1,Lg5,y52,gVw,P02,nV7,C0s,c5e,gG,BE1,d$N,J51,U$Y,u2e,kLw,vVZ,Has,Kgs,Fg1,plH,A5s,Oa2,aJ5,esL,qmL,x$e,NE7,$$Z,V3L,LzH,zsc,raY,Wz1,dG,g7s,CmH,d67,ca2,B_w,Ja1,
kSL,U6w,v7Y,HG2,uIw,D6s,Kzw,ua,ko,j11,Ir1,vX,iGL,m65,XVc,ZGe,OGs,HX,Kb,zoY,ars,N_w,YDe,x65,Fp,Gl,ba,ld1,VMs,fd1,oP,LKY,rGZ,sJw,yGw,RW7,PDH,tMw,cG4,nJ1,CD7,jz,da2,BmL,uYs,KK2,Xp,Tl,vJw,GGs,Hkw,FKw,Ac,MW,Ze,Ok,eW5,AGw,SUw,EJ4,$a7,Wrw,V1Y,ike,maY,NW,Tm7,aP,zl,wE4,lNs,qUs,XE1,xo,r2s,RwH,t1Y,Lrc,ghe,Ppc,nhY,Cp4,BN1,c2Y,J25,De1,u3s,kmL,HP1,Kr1,Fr4,GmL,bPN,pIZ,oh1,INN,jf5,iPN,meY,ez,XIe,TNw,qW,wIc,A27,Qfc,M11,ZPL,OPZ,aNe,zw4,YZc,hc,xe7,ew2,SZ5,$eY,W$L,VJH,lyZ,fyY,ryw,RP1,s$Z,L$Z,yys,gwY,P$w,nw7,C$5,cye,
BHw,dBw,JyH,DBH,vw4,Hvc,uxw,kYL,UB1,K$L,bvL,F$s,GYc,j$s,ppN,owL,Iy5,ivc,mB1,Xpw,wpc,Aye,Q$Z,Zvw,OvL,zPY,Y_7,ePH,hPL,Ew1,W25,V$L,r$s,spY,L24,y$L,PE2,g1c,CE4,c$2,BCc,dr4,Ek,J$Y,Dre,Ur5,o1L,Ipw,ihw,wfZ,A$H,QpY,M$e,Oh7,Zh2,aps,z24,NC2,YgL,xr2,PX,e2s,fr,q_Z,qg5,h2N;
$i=function(W){if(!W)return"browse";var l=W.page,V=W.url,f,r,R,y=(f=W.response)==null?void 0:(r=f.responseContext)==null?void 0:(R=r.webResponseContextExtensionData)==null?void 0:R.pageTheme;if(y)l=y.toLowerCase().replace(/_/g,"-");else if(l!=="watch"&&l!=="learning_journey_watch"){var P,n;if((l==="browse"||l==="settings")&&((P=W.response)==null?0:(n=P.sidebar)==null?0:n.settingsSidebarRenderer))l="WEB_PAGE_TYPE_SETTINGS";else{var B,d;l==="browse"&&((B=W.response)==null?0:(d=B.metadata)==null?0:d.channelMetadataRenderer)?
l="channel":V&&(l=_.Q1(V)||l)}}return l};
DTZ=function(){var W=_.Y2("yt.aba.att");return W?W:_.zn.instance!==void 0?_.zn.instance.nHw.bind(_.zn.instance):null};
UT5=function(W,l){var V;return _.g(function(f){return(V=DTZ())?f.return(V(W,l,6E4)):f.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
uN1=function(W,l,V,f,r){l=l===void 0?[]:l;r=r?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:r}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Hy(W),dialogMessages:l.map(function(R){return _.Hy(R)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Hy(V),serviceEndpoint:r}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Hy(f)}}}}}};
ktY=function(W){var l=!!_.kC().queueProxy;var V,f,r;W=W==null?void 0:(V=W.response)==null?void 0:(f=V.currentVideoEndpoint)==null?void 0:(r=f.watchEndpoint)==null?void 0:r.playlistId;return!(!l&&!W)};
vu4=function(W,l){var V=_.hJ();if(ktY(W))return V.playlistWatchPageActivation=!0;switch($i(l)){case "yts-products":return V.productDetailsPageActivation=!0;case "mini_app":return V.miniAppPageActivation=!0;case "playables":return V.playablesDestPageActivation=!0;default:return!1}};
HNe=function(W,l,V){for(var f=typeof W==="string"?W.split(""):W,r=W.length-1;r>=0;--r)r in f&&l.call(V,f[r],r,W)};
KAH=function(W,l){l=_.unv(W,l);l>=0&&_.Hqn(W,l)};
FA5=function(W){return Array.prototype.concat.apply([],arguments)};
GtH=function(W){var l=0;l=l===void 0?0:l;if(!_.We(W))throw _.Vv("uint64");var V=typeof W;switch(l){case 512:switch(V){case "string":return _.beS(W);case "bigint":return String((0,_.d7)(64,W));default:return _.FkU(W)}case 1024:switch(V){case "string":return _.pkn(W);case "bigint":return _.wL((0,_.d7)(64,W));default:return _.Gav(W)}case 0:switch(V){case "string":return _.beS(W);case "bigint":return _.wL((0,_.d7)(64,W));default:return _.Kkx(W)}default:return _.Yc(l,"Unknown format requested type for int64")}};
bNY=function(W){W!=null&&(W=W.JSC$8814_value_||"",W=typeof W==="string"?W:new Uint8Array(W));return W};
ph2=function(W,l){if(/-[a-z]/.test(l))return null;if(_.GIX&&W.dataset){if(_.PFn()&&!(l in W.dataset))return null;W=W.dataset[l];return W===void 0?null:W}return W.getAttribute("data-"+_.A6(l))};
jgw=function(){var W=ouZ;_.Y2("yt.ads.biscotti.getId_")||_.fR("yt.ads.biscotti.getId_",W)};
IY1=function(W){_.fR("yt.ads.biscotti.lastId_",W)};
mTw=function(){var W={};for(_.iP=new iNs(W.handleError===void 0?_.Ar:W.handleError,W.logEvent===void 0?_.XC:W.logEvent);_.mS.length>0;)switch(W=_.mS.shift(),W.type){case "ERROR":_.iP.logError(W.payload);break;case "EVENT":_.iP.logEvent(W.eventType,W.payload)}};
XhN=function(W,l,V){return _.EHn(function(f){return V?f.userIdentifier!==void 0&&!W.includes(f.userIdentifier)&&V.includes(f.publicName):f.userIdentifier!==void 0&&!W.includes(f.userIdentifier)},l)};
Tg1=function(W){var l,V;return _.g(function(f){if(f.nextAddress==1)return l=_.FP("YtIdbMeta hasAnyMeta other"),f.yield(_.EHn(function(r){return r.userIdentifier!==void 0&&r.userIdentifier!==l},W),2);
V=f.yieldResult;return f.return(V.length>0)})};
Agw=function(W,l){whY||(whY=_.w8.addLowPriorityJob(function(){var V,f,r,R,y;return _.g(function(P){switch(P.nextAddress){case 1:return P.yield(_.r8(),2);case 2:V=P.yieldResult;if(!V)return P.return();f=!0;_.HG(P,3);return P.yield(XhN(W,V,l),5);case 5:r=P.yieldResult;if(!r.length){f=!1;P.jumpTo(6);break}R=r[0];return P.yield(_.hY(R.actualName),7);case 7:return P.yield(_.$Y(R.actualName,V),6);case 6:_.qL(P,4);break;case 3:y=_.pc(P),_.XP(y),f=!1;case 4:_.w8.cancelJob(whY),whY=0,f&&Agw(W,l),_.ju(P)}})}))};
QgH=function(){var W;return _.g(function(l){return l.nextAddress==1?l.yield(_.r8(),2):(W=l.yieldResult)?l.return(Tg1(W)):l.return(!1)})};
Mys=function(W){var l=100;l=l===void 0?500:l;var V,f,r,R,y,P;return _.g(function(n){return n.nextAddress==1?(V=_.M4("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[V,(0,_.tv)()-2592E6],r=[V,(0,_.tv)()],R=IDBKeyRange.bound(f,r),n.yield(_.KKq(W),2)):n.nextAddress!=3?(y=n.yieldResult,P=[],n.yield(_.E6(y,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(B){P.length=0;return _.sw(B.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:R,direction:"prev"},function(d){if(d.getValue()&&P.length<
l)return P.push(d.getValue()),d.delete().then(function(){return d.continue()})})}),3)):n.return(P)})};
ZNY=function(){var W;return _.g(function(l){if(l.nextAddress==1)return l.yield(_.r8(),2);W=l.yieldResult;if(!W||!_.G4()&&!_.U("nwl_init_require_datasync_id_killswitch")||!_.zW4())return l.jumpTo(0);_.YUU=!0;_.Nmq.isNwlInitialized=_.YUU;return l.yield(_.a0M().awaitInitialization(),0)})};
WX=function(W,l){_.Lr4[W]=!0;var V=_.LS();V&&V.publish.apply(V,arguments);_.Lr4[W]=!1};
aYs=function(){if(_.M3F()&&!ONY){var W=function(V){V=V.data;if(V.op==="serializedGelBatch"){var f=_.yyF.get(V.key);f&&(_.P$Y(V.serializedBatch,f.client,f.resolve,f.networklessOptions,f.isIsolated,f.useVSSEndpoint,f.dangerousLogToVisitorSession,f.requestsOutstanding),_.yyF.delete(V.key))}},l=_.Q1z();
l&&(l.addEventListener("message",W),l.onerror=function(){_.yyF.clear()});
ONY=!0}};
la=function(){this.relativeTimeStart_=_.d5()};
zMZ=function(W,l){W!=null&&this.append.apply(this,arguments)};
Ng5=function(){return _.Rg("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
Ye1=function(W,l,V){V=V===void 0?!1:V;var f,r,R,y,P;return _.g(function(n){switch(n.nextAddress){case 1:_.HA("SOCS",W,34128E3,"youtube.com",!0);if(_.Fe)return r=fetch(l,{method:"POST",mode:_.Ph(l),credentials:_.gg(l),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),R=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Ph("/upgrade_visitor_cookie?eom=1"),credentials:_.gg("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),n.yield(Promise.all([r,R]).then(function(B){return B[1]}),5);
fetch(l,{method:"POST",mode:_.Ph(l),credentials:_.gg(l),cache:"no-store",headers:{"Content-Type":"text/plain"}});return n.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Ph("/upgrade_visitor_cookie?eom=1"),credentials:_.gg("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:f=n.yieldResult;n.jumpTo(3);break;case 5:f=y=n.yieldResult;case 3:if(!f.ok)throw Error("rf");return n.yield(f.text(),7);case 7:P=n.yieldResult,
!P.includes('"state_switch":true')&&!V||P.includes("skip_reload_for_test")||window.location.reload(),_.ju(n)}})};
xT7=function(W){return _.g(function(l){return l.nextAddress==1?l.yield(Ye1(W.socsCookie,W.savePreferenceUrl,!0),2):l.return()})};
eM7=function(W){return _.g(function(l){return l.nextAddress==1?l.yield(Ye1(W.socsCookie,W.savePreferenceUrl),2):l.return()})};
hMH=function(W){W=W.xhr.responseText;if(!_.sz(W,")]}'"))throw new Vf;W=JSON.parse(W.substr(4));if((W.type||1)>1)throw new Vf;W=W.id;IY1(W);fb=_.F6(W);qeH(18E5,2);return W};
Eu2=function(W,l){l=new Sec(l);IY1("");fb=_.L4k(l);W>0&&qeH(12E4,W-1);throw l;};
qeH=function(W,l){_.cA(function(){_.a05().then(hMH,function(V){return Eu2(l,V)}).thenCatch(_.QR)},W)};
ouZ=function(){var W=_.YC5();if(W!==void 0)return _.eM(W);fb||(fb=_.a05().then(hMH).thenCatch(function(l){return Eu2(2,l)}));
return fb};
$T1=function(){var W=document;return _.T6(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(l){return"on"+l.toLowerCase()in W})};
WL7=function(W){W.addEventListener("click",function(l){var V=l.target;V&&V.getAttribute("href")&&(V=V.getAttribute("href"),_.lM(window,V,"_blank"),l.preventDefault(),l.stopImmediatePropagation())})};
lA2=function(W){var l,V,f,r=(f=(V=((l=W.mainDownloadsListEntity)!=null?l:{})[_.H6q])==null?void 0:V.refresh)!=null?f:"",R;W=(R=W.refresh)==null?void 0:R[r];r=W!=null?W:{};return(r==null?0:r.refreshTime)?Number(r==null?void 0:r.refreshTime):0};
VEZ=function(W,l){var V=_.eE(W);return l.every(function(f){var r;f=f==null?void 0:(r=f.playbackDataEntity)==null?void 0:r.key;if(!f)return!1;r=_.i_(_.p0(f).entityId,"mainVideoEntity");return!!V[r]})};
fA2=function(W){W=_.Nd(W.entities);return _.AJx(W).length};
rWN=function(W,l){if(l){var V;W=(V=_.mL(W.entities,"downloadQualityPickerEntity",l))!=null?V:void 0}else W=void 0;return W};
ssw=function(){Ru2||(_.cl=_.vrj,Ru2=new tEs);return Ru2};
LLZ=function(W){var l=document.getElementsByTagName("ytd-enforcement-message-view-model");l.length===0||getComputedStyle(l[0]).display==="none"?W(0,"p.h_"):W(1,"p.h_")};
yW4=function(){rG=0;var W=[_.zL(!0)];RP&&_.bj(RP,"yt-window-resized",W)};
gH2=function(){rG||(rG=_.w8.addLowPriorityJob(yW4,200))};
nHs=function(){tc=0;P_1=_.b2Z(document);var W=[P_1];RP&&_.bj(RP,"yt-window-scrolled",W)};
C_c=function(){tc||(tc=_.w8.addLowPriorityJob(nHs,200))};
BJ2=function(W){W=W===void 0?null:W;cWL.push(_.rv(window,"resize",gH2));cWL.push(_.rv(window,"scroll",C_c));W&&(RP=W)};
JWH=function(){var W={isWide:_.vA.get("wide","0")==="1"},l=_.MT();if(l=l.getFlag(165)||l.getFlag(174))W.theme=_.h5(!0);if(_.BiS()){var V=_.q$()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";W.systemTheme=V}!l&&_.U("parent_tools_enable_app_settings")&&_.Si(window.location.href).theme!==void 0&&(W.theme=_.h5());if((l=sk)?!_.MC.equals(l,W):W)l={currentValue:W},ddN&&(l.timeSinceLastSnapshotSecs=Math.round(((0,_.tv)()-ddN)/1E3)),sk&&(l.previousValue=sk),_.XC("appSettingsCaptured",l),sk=W,ddN=
(0,_.tv)()};
DdN=function(W){_.g(function(l){if(l.nextAddress==1)return l.yield(W.delete("yt-appshell-assets"),2);_.ju(l)})};
Udw=function(W){return _.SF((0,_.McX)(),W)};
kT1=function(){var W;_.g(function(l){return l.nextAddress==1?l.yield(Lb.getInstance(),2):(W=l.yieldResult)?l.yield(uyH(W),0):l.jumpTo(0)})};
H01=function(){var W;_.g(function(l){return l.nextAddress==1?l.yield(yf.getInstance(),2):(W=l.yieldResult)?l.yield(vH1(W),0):l.jumpTo(0)})};
KLe=function(W){DdN(W);kT1();H01()};
FLY=function(W){var l,V;return _.g(function(f){if(f.nextAddress==1)return f.yield(_.Aq4(W),2);if(l=f.yieldResult){var r;a:{if(l.headers&&(r=l.headers.get("date"))&&(r=Date.parse(r),!isNaN(r))){r=Math.round((0,_.tv)()-r);break a}r=-1}V=r;if(V>-1)return f.return(V)}return f.return(-1)})};
GTN=function(){var W=_.rS.caches,l=_.ZL("IS_SHELL_LOAD"),V,f;_.g(function(r){if(r.nextAddress==1)return V=-1,l?r.yield(FLY(W),3):(f=_.Yu(),V=Math.round((0,_.tv)()-f),r.jumpTo(2));r.nextAddress!=2&&(V=r.yieldResult);V>=0&&V<2147483648&&_.Sy({appInstallDataAgeMs:V});_.ju(r)})};
b0s=function(W){var l=_.SV(_.rS.location.href),V={};"absolute_experiments forced_experiments expflag conditional_experiments client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url build mloader debugjs".split(" ").forEach(function(f){var r=l.JSC$10026_queryData_.getValues(f);if(r==null?0:r.length)V[f]=r});
return _.Js(W,new Map(Object.entries(V)))};
py2=function(W){W=W.match(/(.*)::.*::.*/);if(W!==null)return W[1]};
oHe=function(W){if(_.Voj()){var l=Object.keys(window.localStorage);l=_.L(l);for(var V=l.next();!V.done;V=l.next()){V=V.value;var f=py2(V);f===void 0||W.includes(f)||self.localStorage.removeItem(V)}}};
jse=function(){if(!_.Voj())return!1;var W=_.FP(),l=Object.keys(window.localStorage);l=_.L(l);for(var V=l.next();!V.done;V=l.next())if(V=py2(V.value),V!==void 0&&V!==W)return!0;return!1};
IAw=function(W){return _.Mi("NotificationsDisabled",W)};
i01=function(){return Notification.permission!="granted"?Promise.resolve():_.wPc().then(function(W){return W?W.pushManager.getSubscription().then(function(l){if(l)return Promise.resolve();l={userVisibleOnly:!0,applicationServerKey:_.$z("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return W.pushManager.subscribe(l).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
md5=function(W){return _.wPc().then(function(l){if(!l||!l.active)return Promise.reject(new _.bP("serviceworker.postMessage",W,l));try{return l.active.postMessage(W),Promise.resolve()}catch(V){return Promise.reject(V)}})};
XyY=function(){md5({type:"notifications_register",data:_.M4("ID_TOKEN")})};
TJ1=function(){if(!_.ZL("LOGGED_IN"))return Promise.resolve(!1);var W=_.gU("service_worker_push_force_notification_prompt_tag");return W?_.aq("PromptTags").then(function(l){if(!l)return!0;var V=[];try{V=JSON.parse(l)}catch(f){return!1}return V&&V.indexOf(W)==-1}):Promise.resolve(!1)};
wyw=function(){var W=_.yS("service_worker_push_prompt_delay_microseconds");return W?_.aq("PromptTime").then(function(l){return Promise.resolve(Date.now()-W>(l||0))}):Promise.resolve(!0)};
AWw=function(){var W=_.yS("service_worker_push_logged_out_prompt_watches");return W==-1?Promise.resolve(!1):_.aq("WatchCount").then(function(l){return l>=W})};
QsN=function(){var W=_.U_(document,"yt-push-prompt-modal-bg");W&&_.bI(W)};
ME5=function(){return _.yS("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.aq("PromptCount").then(function(W){W||(W=0);return Promise.resolve(W<_.yS("service_worker_push_prompt_cap"))})};
Z05=function(W){return _.ZL("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.ZL("LOGGED_IN")&&(W===void 0?0:W)?TJ1().then(function(l){if(l)return!0;l=[ME5(),wyw()];_.ZL("LOGGED_IN")||l.push(AWw());return Promise.all(l).then(function(V){return V.every(function(f){return f})})}):Promise.resolve(!1)};
O01=function(){_.aq("PromptCount").then(function(W){return _.Mi("PromptCount",W+1)}).then(function(){return _.Mi("PromptTime",Date.now())}).then(function(){var W=_.gU("service_worker_push_force_notification_prompt_tag");
if(W)return _.aq("PromptTags").then(function(l){var V=[];if(l)try{V=JSON.parse(l)}catch(f){return!1}V||(V=[]);V.push(W);return _.Mi("PromptTags",JSON.stringify(V))})})};
zus=function(){aA5||QsN()};
NJ1=function(W){W.style.zIndex=2147483648;W.style.pointerEvents="auto";W.style.backgroundColor="rgba(0, 0, 0, 0.6)";W.style.width="100%";W.style.height="100vh";W.style.position="absolute";W.style.top="0";W.style.left="0";W.style.border="none"};
YKL=function(){var W=_.U_(document,"yt-push-prompt-modal-bg");aA5=_.U("service_worker_push_prompt_modal_ignore_click");W?NJ1(W):(W=_.xR("div",{id:"yt-push-prompt-modal-bg"}),NJ1(W),document.body.appendChild(W),_.r2F(document,"click",zus))};
xdw=function(){var W=arguments;_.U("service_worker_push_prompt_modal_enable")&&YKL();return Notification.requestPermission().then(function(l){QsN();var V=document.getElementById("ticker");V&&(V.className=V.classList.remove("show"));if(l=="granted")return i01().then(function(){IAw(!1);XyY();return Promise.resolve(!0)});
l=="denied"&&XyY();return Promise.resolve(!1)}).catch(function(){QsN();
return Promise.reject.apply(Promise,_.QK(W))})};
euZ=function(W){W=W===void 0?!1:W;var l=_.uVS().client;if(l&&l.browserVersion){var V=l.browserVersion,f=l.browserName=="CHROME"&&_.dS(V,"50.0.0")<0;l=l.browserName=="OPERA"&&_.dS(V,"42.0.0")<0;if(f||l)return Promise.resolve()}return _.MiH().then(function(r){if(!r)return Promise.resolve();r=i01().then(function(){return md5({type:"notifications_check_registration",data:_.M4("ID_TOKEN")})});
return Notification.permission!="default"?r.catch(function(){}):r.then(function(){return Z05(W)}).then(function(R){if(R)return O01(),xdw().then(function(){})}).catch(function(){})})};
qK5=function(W){return _.ACY(W)?euZ():Promise.resolve()};
hu5=function(W){var l=W.installing||W.waiting;return W.active||!l?Promise.resolve(W):new Promise(function(V){var f=function(r){r=r.target;if(r.state==="activated"||r.state==="redundant")l.removeEventListener("statechange",f),V(W)};
l.addEventListener("statechange",f)})};
SKw=function(){var W=new _.Ii6("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.kP(W,{mainAppWeb:_.nG()});var l=_.fwv;_.U("service_worker_forward_exp_params")&&(l=b0s(l));try{var V=_.vvx(l).catch(function(){_.v0(W,"FAILURE");return new Promise(function(){})});
_.U("service_worker_push_enabled")&&V.then(function(f){_.v0(W,"SUCCESS");return f}).then(hu5).then(qK5)}catch(f){if(_.v0(W,"FAILURE"),f.name!=="SecurityError")throw f;
}};
EHw=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&SKw()};
$dZ=function(W,l){var V={};l&&(V.serializedYpcFamilyCreateLoggingParams=l);_.XC(W,V);_.Ts()};
WgZ=function(W,l){var V={};V.serializedYpcRefundFlowLoggingParams=l;W&&(V.eventType=W);_.XC("ypcRefundFlowEvent",V);_.Ts()};
lJZ=function(W){W&&_.KO8("transactionFlowSucceeded",W)};
VrN=function(W){W&&_.kp("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",W,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
fJY=function(W){var l,V,f,r,R,y,P;_.g(function(n){if(n.nextAddress==1)return n.yield(_.t5g(),2);if(n.nextAddress!=3){if(!n.yieldResult)return n.return(!1);l=[];return n.yield(_.of.keys(),3)}V=n.yieldResult;f=_.L(V);for(r=f.next();!r.done;r=f.next())R=r.value,y=_.rXY(R),P=y.datasyncId,!P||W.includes(P)||l.push(_.of.delete(R));return n.return(Promise.all(l).then(function(B){return B.some(function(d){return d})}))})};
r5s=function(){var W,l,V,f,r,R,y;return _.g(function(P){if(P.nextAddress==1)return P.yield(_.t5g(),2);if(P.nextAddress!=3){if(!P.yieldResult)return P.return(!1);W=_.FP("cache contains other");return P.yield(_.of.keys(),3)}l=P.yieldResult;V=_.L(l);for(f=V.next();!f.done;f=V.next())if(r=f.value,R=_.rXY(r),(y=R.datasyncId)&&y!==W)return P.return(!0);return P.return(!1)})};
Rss=function(){var W=_.tY().resolve(_.R0(_.WGZ));return W?W.getCurrentTime():0};
trw=function(){var W,l,V,f,r,R,y,P,n,B,d,J,D,u;return _.g(function(H){switch(H.nextAddress){case 1:W={},l=_.RQv(),V=_.L(Object.entries(l)),f=V.next();case 4:if(f.done){H.jumpTo(3);break}r=f.value;R=_.L(r);y=R.next().value;P=R.next().value;n=y;B=P;if(!B){H.jumpTo(5);break}return H.yield(B(),8);case 8:W[n]=H.yieldResult;case 5:f=V.next();H.jumpTo(4);break;case 2:d=_.L(void 0),J=d.next();case 9:if(J.done){H.jumpTo(3);break}D=J.value;u=l[D];if(!u){H.jumpTo(10);break}return H.yield(u(),13);case 13:W[D]=
H.yieldResult;case 10:J=d.next();H.jumpTo(9);break;case 3:return H.return(W)}})};
sD1=function(){var W;_.g(function(l){if(l.nextAddress==1)return l.yield(trw(),2);W=l.yieldResult;return l.yield(navigator.clipboard.writeText(JSON.stringify(W,null,2)),0)})};
Lg5=function(W,l){return _.mL(W.entities,"superThanksSelectedTierEntity",l)};
y52=function(W,l){return{popup:{searchSuggestionReportDialog:{searchQuery:W,title:_.wg("SBOX_INAPPROPRIATE_TITLE"),suggestions:l,categoryLabel:_.wg("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.wg("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.wg("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.wg("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.wg("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.wg("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.wg("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.wg("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.wg("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.wg("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
gVw=function(W){var l,V,f,r,R,y,P,n,B,d,J,D,u,H,p,X,w,O,S;return _.g(function(N){switch(N.nextAddress){case 1:return N.yield(_.wJ(),2);case 2:return(l=N.yieldResult)?N.yield(_.O$g(l),3):N.return();case 3:V=N.yieldResult;if(!V)return N.return();r=((f=V.offlineVideos)==null?void 0:f.length)||0;y=((R=V.offlinePlaylists)==null?void 0:R.length)||0;if(r===0&&y===0)return N.return();P=0;if(V.offlineVideos)for(n=_.L(V.offlineVideos),B=n.next();!B.done;B=n.next())d=B.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
d.videoState&&(P+=1);W.offline_videos_count=r.toString();_.U("kevlar_log_offline_current_network_type_ks")||(W.offline_current_network_type=(J=_.GTj())!=null?J:"CONN_INVALID");_.U("kevlar_log_updated_time_for_smart_downloads")&&(D=_.DJ().getState().entities,u=_.EK(D),H=lA2(D),W.offline_smart_downloads_last_sync_time_ms=u.toString(),W.offline_smart_downloads_next_sync_time_ms=H.toString());W.offline_videos_playable=P.toString();W.offline_playlists_count=y.toString();V.offlineVideos&&(p=V.offlineVideos.reduce(function(x,
Y){Y.downloadedBytes&&(x+=Number(Y.downloadedBytes));return x},0).toString())&&(W.offline_used_disk_space_bytes=p);
if(!((X=navigator)==null?0:(w=X.storage)==null?0:w.estimate)){N.jumpTo(4);break}return N.yield(navigator.storage.estimate(),5);case 5:O=N.yieldResult,W.offline_free_disk_space_bytes=(((S=O)==null?void 0:S.quota)||0).toString();case 4:W.offline_client_state=JSON.stringify(V),_.ju(N)}})};
P02=function(W){W=_.L(W);for(var l=W.next(),V={};!l.done;V={setter$jscomp$5:void 0},l=W.next()){var f=l.value;l=f.params;f=f.service;l&&f&&(V.setter$jscomp$5=_.NIL[f],V.setter$jscomp$5&&l.forEach(function(r){return function(R){var y=R.key;R=R.value;y&&R&&(0,r.setter$jscomp$5)(y,R)}}(V)))}};
nV7=function(W){W=W.match(/(.*)::.*::.*/);if(W!==null)return W[1]};
C0s=function(W){if(_.Eyz()){var l=Object.keys(window.sessionStorage);l=_.L(l);for(var V=l.next();!V.done;V=l.next()){V=V.value;var f=nV7(V);f===void 0||W.includes(f)||self.sessionStorage.removeItem(V)}}};
c5e=function(){if(!_.Eyz())return!1;var W=_.FP(),l=Object.keys(window.sessionStorage);l=_.L(l);for(var V=l.next();!V.done;V=l.next())if(V=nV7(V.value),V!==void 0&&V!==W)return!0;return!1};
gG=function(W,l,V){(_.U("desktop_keyboard_shortcut_usage_log")||V&&_.U("web_shorts_keyboard_shortcut_usage_log"))&&(l?_.Ni.get(W):_.zw.get(W))&&(W=l?_.xi.get(W):_.Yi.get(W))&&_.C0(_.Wh(),W)};
BE1=function(W,l){return W.findIndex(function(V){return V.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(l.keyCode):!1};
d$N=function(){var W,l;return typeof CSS!=="undefined"&&((l=(W=CSS).supports)==null?void 0:l.call(W,"selector(:has(*))"))};
J51=function(W){return W.visibility!=="hidden"&&W.display!=="none"};
U$Y=function(W){if(d$N()||W.tagName!=="DETAILS"?!W.matches(D$7):W.querySelector("summary")!==null)return-1;W=W.getAttribute("tabindex")||"0";return Number(W)};
u2e=function(W){return W.some(function(l){return U$Y(l)>0})};
kLw=function(W){if(W.textContent)return!0;if(W instanceof HTMLInputElement){if(!W.labels)return!1;W=_.L(W.labels);for(var l=W.next();!l.done;l=W.next())if(l.value.textContent)return!0}return!1};
vVZ=function(W){return W.sort(function(l,V){return U$Y(V)-U$Y(l)})};
Has=function(W){W=Array.from(W.querySelectorAll(D$7)).filter(function(l){return(J51(l.style)?J51(window.getComputedStyle(l)):!1)&&kLw(l)});
return u2e(W)?vVZ(W):W};
Kgs=function(W){W=Has(W);W.length>0&&W[0].focus()};
Fg1=function(W,l){l.stack&&(W.stack+="\n"+l.stack);return W};
plH=function(W){var l=PX(W,"Content-Type");if(!l)return null;l=l.toLowerCase();if(l.startsWith("application/json"))return l.startsWith("application/json+protobuf")?new GL2:new _.oM;if(l.startsWith("application/x-protobuf")){W=PX(W,"Content-Transfer-Encoding");if(!W)return new nb;if(W.toLowerCase()=="base64")return new baN}return null};
A5s=function(W,l,V,f){var r=new oVZ(function(P,n){return jDZ.has(n)?P.sentinel==="gal"&&P.event!==void 0:!1},function(P){P.event?(P=IJY(P.event),P=!P||ia7(f,P)?!0:_.iK(W.lastEvent,Cb,2,cX)?!_.iK(P,BX,1,cX)&&!_.iK(P,Cb,2,cX):!_.iK(P,BX,1,cX)&&!_.iK(P,Cb,3,cX)):P=!0;
return P});
V=_.Js(W.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",m$N(V)]]));if(W.nestedOrigins!==void 0)for(var R=_.L(W.nestedOrigins),y=R.next();!y.done;y=R.next())V=_.Js(V,new Map([["origin",y.value]]));return Xl5(r,V,l).then(function(P){P=TEZ(P.event);if(_.iK(P,BX,1,cX)){var n,B=(n=_.xt(P,BX,1,cX))==null?void 0:_.zy(n,2);B&&f.JSC$19373_logErrorEvent(wl4(B));n=_.xt(P,BX,1,cX);_.zy(n,2)===4?(P=_.xt(P,BX,1,cX),P={statusCode:11,statusMessage:_.aQ(P,
3)}):(P=_.xt(P,BX,1,cX),P={statusCode:12,statusMessage:_.aQ(P,3)});return P}_.iK(P,Cb,3,cX)?(P=_.xt(P,Cb,3,cX),P={statusCode:1,consentLanguageKeys:_.aQ(P,2)}):P={statusCode:1};return P}).catch(function(P){return P.errorCode!==void 0?{statusCode:P.errorCode,
statusMessage:P.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
Oa2=function(W){var l={};if(W===void 0||W===null)return l;W.getToken()!==void 0&&QDN(W.getToken())&&QDN(W.getToken()).length>0&&(l.scopes=new Set(QDN(W.getToken())));W.getToken()!==void 0&&MrH(W.getToken())&&MrH(W.getToken()).length>0&&(l.capabilities=new Set(MrH(W.getToken())));_.aQ(W,3)!==void 0&&(l.consistencyKey=_.aQ(W,3));W.getName()!==void 0&&W.getName()!==""&&(l.linkName=W.getName());_.IQ(W,Za7,4)&&(W=_.yy(W,Za7,4),W=Object.assign({},_.aQ(W,1)&&{userId:_.aQ(W,1)},_.aQ(W,2)&&{displayName:_.aQ(W,
2)},_.aQ(W,3)&&{email:_.aQ(W,3)},_.aQ(W,5)&&{username:_.aQ(W,5)},_.aQ(W,4)&&{profilePicture:_.aQ(W,4)}),l.profile=W);return l};
aJ5=function(W,l){var V=W.flowParams,f;return{serviceId:V.serviceId,sessionId:V.sessionId,currentFlow:W.currentFlow,googleScopesString:l,linkingSessionSerialized:W.session.serialize(),consentLanguageKeys:V.consentLanguageKeys,callerState:W.callerState,dynamicUrlParameters:V.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(f=V.partnerConfigMinReadTimestamp)==null?void 0:f.serialize()}};
esL=function(W){var l=W.googleScopes!==void 0?Array.from(W.googleScopes).join(","):"";zsc(aJ5(W,l));l=NE7(W);return l===null?Promise.resolve(Ymw):l.start().then(function(V){var f,r=(f=V.link)==null?void 0:f.consistencyKey;return V.statusCode===1&&W.googleScopes!==void 0&&W.googleScopes.size>0&&r!==void 0?(f=W.flowParams,x$e(f.serviceId,f.sessionId,W.googleScopes,r,f.galService,W.config,V)):V})};
qmL=function(W){var l=NE7(W);return l===null?Promise.resolve(dG({statusCode:7,statusMessage:"Failed to create flow object"},W.callerState)):l.complete().then(function(V){var f,r=(f=V.link)==null?void 0:f.consistencyKey;return V.statusCode===1&&W.googleScopes!==void 0&&W.googleScopes.size>0&&r!==void 0?(f=W.flowParams,x$e(f.serviceId,f.sessionId,W.googleScopes,r,f.galService,W.config,V)):dG(V,W.callerState)},function(V){return dG({statusCode:12,
statusMessage:"Failed to complete the flow: "+V.message},W.callerState)})};
x$e=function(W,l,V,f,r,R,y){return hs5(r,{serviceId:W,sessionId:l,googleScopes:V,consistencyKey:f}).then(function(){return y},function(P){return r.deleteLink({serviceId:W,
sessionId:l,accountLinkingEntryPoint:R.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+P.message}},function(n){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+n.message}})})};
NE7=function(W){switch(W.currentFlow){case 1:var l=W.flowParams;W=_.yy(W.session,Sm4,1);return Jc.createOAuthFlow(l,W);case 2:case 3:return l=W.flowParams,W=_.yy(W.session,EV1,6),De.createStreamlinedFlow(l,W);default:return null}};
$$Z=function(W,l){W===2&&(W=3);var V=0;Uk.indexOf(W)!==-1&&(V=Uk.indexOf(W)+1);for(W=V;W<Uk.length;W++)if(l.has(Uk[W]))return Uk[W]};
V3L=function(W){var l=W.serviceId;var V=W.sessionId;var f=W.config;var r=W.galService;var R=W.capabilities;var y=W.scopes;var P=W.loginHint;var n=W.callerState;var B=W.consentLanguageKeys;var d=W.linkName;var J=W.dynamicUrlParameters;var D=W.partnerConfigMinReadTimestamp;W=f.dataUsageNoticeConfig?f.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return r.startLinkingSession({serviceId:l,sessionId:V,capabilities:R,scopes:y,loginHint:P,callerState:n,supportedFlows:Wz1(f.supportedFlows),completionUrl:f.completionUrl,
accountLinkingEntryPoint:f.accountLinkingEntryPoint,consentLanguageKeys:B,dataUsageNoticeConfig:W,linkName:d,dynamicUrlParameters:J,partnerConfigMinReadTimestamp:D}).then(function(u){return new lrZ(l,V,f,r,u,void 0,n,B,J,D)})};
LzH=function(W,l,V){var f=(new frw).getSession(W);if(f===null)return Promise.resolve({statusCode:2});raY(W);var r=RoN(f.linkingSessionSerialized),R=f.googleScopesString!==""&&f.googleScopesString!==void 0?new Set(f.googleScopesString.split(",")):void 0,y=f.partnerConfigMinReadTimestampSerialized?t3w(f.partnerConfigMinReadTimestampSerialized):void 0;return s17(new lrZ(W,f.sessionId,l,V,r,R,f.callerState,f.consentLanguageKeys,f.dynamicUrlParameters,y),f.currentFlow,f.consentLanguageKeys)};
zsc=function(W){var l=new frw;l.storage!==null&&l.storage.set("SAVED_SESSION",W)};
raY=function(W){var l=new frw;if(l.storage!==null){var V=l.storage.get("SAVED_SESSION");V!==void 0&&V.serviceId===W&&l.storage.remove("SAVED_SESSION")}};
Wz1=function(W){var l=new Set;W=_.L(W);for(var V=W.next();!V.done;V=W.next())V=V.value,V!==1&&yaL.has(V)&&l.add(yaL.get(V));return l};
dG=function(W,l){l!==void 0&&(W.callerState=l);return W};
g7s=function(W){switch(W){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
CmH=function(W){return new PmY(W,new n7N(W))};
d67=function(W,l){l=l===void 0?!1:l;var V=document.createElement("div");W&&(V.style.transform="scaleX(-1)");V.style.backgroundColor=l?"rgba(138,180,248,.24)":"#e8f0fe";V.style.height="4px";V.style.overflow="hidden";V.style.position="absolute";V.style.top="0";V.style.width="100%";V.style.zIndex="1500";V.setAttribute("aria-label","Loading");V.setAttribute("aria-live","polite");W=document.createElement("style");W.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  }";
V.appendChild(W);W=ca2();W.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";W.style.left="-145.166611%";var f=B_w(l);f.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";W.appendChild(f);V.appendChild(W);W=ca2();W.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";W.style.left="-54.888891%";l=B_w(l);l.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
W.appendChild(l);V.appendChild(W);return V};
ca2=function(){var W=document.createElement("div");W.style.height="100%";W.style.position="absolute";W.style.transformOrigin="top left";W.style.width="100%";return W};
B_w=function(W){var l=document.createElement("span");l.style.borderTop=W?"4px solid #669df6":"4px solid #4285f4";l.style.display="inline-block";l.style.position="absolute";l.style.width="100%";return l};
Ja1=function(W){return W==null?void 0:_.X$c(W).valueOf()};
kSL=function(W){var l=document.body,V=!1,f=function(){V||(V=!0,D6s(r,R),setTimeout(function(){l.removeChild(R);l.removeChild(r)},150))},r=U6w(W,getComputedStyle(l).direction==="rtl",f),R=uIw(f);
D6s(r,R);l.appendChild(R);l.appendChild(r);window.requestAnimationFrame(function(){R.style.opacity="1";r.style.opacity="1";r.style.transform="translate(-50%, -50%) scale(1)";r.children[0].focus()})};
U6w=function(W,l,V){var f=document.createElement("div");f.style.position="fixed";f.style.alignItems="center";f.style.backgroundColor=W?"rgb(32, 33, 36)":"white";f.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";f.style.display="flex";f.style.flexDirection="column";f.style.justifyContent="center";f.style.left="50%";f.style.top="50%";f.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";f.style.zIndex="2002";document.body.clientWidth>=
660?(f.style.borderRadius="8px",f.style.minHeight="220px",f.style.maxHeight="90%",f.style.maxWidth="90%",f.style.minWidth="540px"):(f.style.height="100%",f.style.width="100%");f.setAttribute("aria-label","Error");f.setAttribute("aria-modal","true");f.setAttribute("role","alertdialog");f.addEventListener("keydown",function(R){R.key==="Escape"&&V()});
l=v7Y(W,l,V);f.appendChild(HG2(l));f.appendChild(l);var r=document.createElement("img");r.src=W?"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","");f.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=W?"rgb(232,234,237)":"#3c4043";f.appendChild(r);f.appendChild(HG2(l));return f};
v7Y=function(W,l,V){var f=document.createElement("button");f.style.backgroundColor="transparent";f.style.border="none";f.style.borderRadius="50%";f.style.cursor="pointer";f.style.outline="none";f.style.padding="12px";f.setAttribute("aria-label","Close dialog");f.style.position="absolute";f.style.top="0";l?f.style.right="0":f.style.left="0";f.addEventListener("focus",function(){f.style.backgroundColor=W?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
f.addEventListener("blur",function(){f.style.backgroundColor="transparent"});
f.addEventListener("mouseenter",function(){f.style.backgroundColor=W?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
f.addEventListener("mouseleave",function(){f.style.backgroundColor="transparent"});
f.addEventListener("click",V);f.addEventListener("keydown",function(r){r.key!=="Enter"&&r.key!=="Space"||V()});
l=document.createElement("img");l.src=W?"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";l.style.display="block";l.style.height="24px";l.style.width="24px";l.setAttribute("alt","");f.appendChild(l);return f};
HG2=function(W){var l=document.createElement("div");l.setAttribute("tabindex","0");l.setAttribute("aria-hidden","true");l.addEventListener("focus",function(){return void W.focus()});
return l};
uIw=function(W){var l=document.createElement("div");l.style.backgroundColor="rgba(32,33,36,0.6)";l.style.bottom="0";l.style.left="0";l.style.position="fixed";l.style.right="0";l.style.top="0";l.style.transition=" opacity 150 ms linear";l.style.zIndex="2001";l.addEventListener("click",W);return l};
D6s=function(W,l){l.style.opacity="0";W.style.opacity="0";W.style.transform="translate(-50%, -50%) scale(0.8)"};
Kzw=function(W,l){W.sandbox&&W.sandbox.add&&(W.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),W.sandbox.add("allow-downloads"));W.src=l};
ua=function(W){Fz7.call(this,W)};
ko=function(W,l){l=l===void 0?!1:l;this.parsedImageUrl_=null;W instanceof GS5||(bGw==void 0&&(bGw=new pV4),W=bGw.parse(W.toString(),l));W=this.parsedImageUrl_=W;W.JSC$19585_parsedOptions_==void 0&&((l=W.getOptions())||(l=""),W.JSC$19585_parsedOptions_=(new o7w).parse(l));Fz7.call(this,W.JSC$19585_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;W=this.parsedImageUrl_;l=W.uri_.JSC$10026_port_;this.JSC$19587_domain_=W.uri_.JSC$10026_domain_+(l?":"+l:"");this.JSC$19587_query_=
this.parsedImageUrl_.uri_.JSC$10026_queryData_.toString()};
j11=function(W){this.mode=4;this.data=W;this.parsedData=[];W=0;for(var l=this.data.length;W<l;W++){var V=[],f=this.data.charCodeAt(W);f>65536?(V[0]=240|(f&1835008)>>>18,V[1]=128|(f&258048)>>>12,V[2]=128|(f&4032)>>>6,V[3]=128|f&63):f>2048?(V[0]=224|(f&61440)>>>12,V[1]=128|(f&4032)>>>6,V[2]=128|f&63):f>128?(V[0]=192|(f&1984)>>>6,V[1]=128|f&63):V[0]=f;this.parsedData.push(V)}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))};
Ir1=function(W){this.typeNumber=0;this.errorCorrectLevel=W===void 0?2:W;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
vX=function(W,l){if(W.length==void 0)throw Error("Hk`"+W.length+"`"+l);for(var V=0;V<W.length&&W[V]==0;)V++;this.num=Array(W.length-V+l);for(l=0;l<W.length-V;l++)this.num[l]=W[l+V]};
iGL=function(W,l){this.totalCount=W;this.dataCount=l};
m65=function(){this.buffer=[];this.length=0};
XVc=function(){var W=!1;if(_.BS4()){W=_.Uz();var l="";_.DgY()?(l=/Windows (?:NT|Phone) ([0-9.]+)/,l=(W=l.exec(W))?W[1]:"0.0"):_.iF()?(l=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,l=(W=l.exec(W))&&W[1].replace(/_/g,".")):_.Jx6()?(l=/Mac OS X ([0-9_.]+)/,l=(W=l.exec(W))?W[1].replace(/_/g,"."):"10"):_.nq(_.Uz(),"KaiOS")?(l=/(?:KaiOS)\/(\S+)/i,l=(W=l.exec(W))&&W[1]):_.BS4()?(l=/Android\s+([^\);]+)(\)|;)/,l=(W=l.exec(W))&&W[1]):_.Ugz()&&(l=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,l=(W=l.exec(W))&&W[1]);W=
l||""}return W};
ZGe=function(W,l){this.JSC$19610__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(l)for(var V in l)this.JSC$19610__htOption[V]=l[V];this.JSC$19610__htOption.useSVG&&(T_w=wVe);this.JSC$19610__android=XVc();this.JSC$19610__el=W;this._oQRCode=null;this._oDrawing=new T_w(this.JSC$19610__el,this.JSC$19610__htOption);this.JSC$19610__htOption.text&&(W=this.JSC$19610__htOption.text,this._oQRCode=new Ir1(this.JSC$19610__htOption.correctLevel),AaZ(this._oQRCode,
W),l=this._oQRCode,Q15(l,!1,M3s(l)),this.JSC$19610__el.title=W,this._oDrawing.draw(this._oQRCode),this.makeImage())};
OGs=function(W,l,V,f,r){W.save();var R=new Path2D;R.roundRect(l,V,f*7,f*7,f*2);R.roundRect(l+f,V+f,f*5,f*5,f*1.3);R.roundRect(l+2*f,V+2*f,f*3,f*3,f);W.clip(R,"evenodd");W.fillStyle=r;W.fillRect(0,0,W.canvas.width,W.canvas.height);W.restore()};
HX=function(W,l){if(typeof W!=="function")throw Error("Kk");return _.rS.setTimeout(function(){W()},l)};
Kb=function(){};
zoY=function(W,l,V,f,r){(new Kb).debug("TestLoadImageWithRetries: "+r);if(f==0)V(!1);else{var R=r||0;f--;ars(W,l,function(y){y?V(!0):_.rS.setTimeout(function(){zoY(W,l,V,f,R)},R)})}};
ars=function(W,l,V){var f=new Kb;f.debug("TestLoadImage: loading "+W);var r=new Image;r.onload=function(){try{f.debug("TestLoadImage: loaded"),N_w(r),V(!0)}catch(R){}};
r.onerror=function(){try{f.debug("TestLoadImage: error"),N_w(r),V(!1)}catch(R){}};
r.onabort=function(){try{f.debug("TestLoadImage: abort"),N_w(r),V(!1)}catch(R){}};
r.ontimeout=function(){try{f.debug("TestLoadImage: timeout"),N_w(r),V(!1)}catch(R){}};
_.rS.setTimeout(function(){if(r.ontimeout)r.ontimeout()},l);
r.src=W};
N_w=function(W){W.onload=null;W.onerror=null;W.onabort=null;W.ontimeout=null};
YDe=function(){this.front_=[];this.back_=[]};
x65=function(W,l){_.iI.call(this);this.delay_=new _.X7(this.JSC$19736_onTick_,0,this);_.vt(this,this.delay_);this.JSC$19734_interval_=5E3;this.nextTickTime_=0;if(typeof W==="function")l&&(W=(0,_.ml)(W,l));else if(W&&typeof W.handleEvent==="function")W=(0,_.ml)(W.handleEvent,W);else throw Error("ya");this.JSC$19736_listener_=W};
Fp=function(W,l,V,f,r,R,y,P,n,B,d,J,D,u){V=V===void 0?!1:V;f=f===void 0?function(){return""}:f;
r=r===void 0?!1:r;R=R===void 0?!1:R;y=y===void 0?!1:y;P=P===void 0?function(){return _.jy({})}:P;
n=n===void 0?!1:n;d=d===void 0?!1:d;J=J===void 0?!1:J;D=D===void 0?!1:D;u=u===void 0?!1:u;this.JSC$19737_pathPrefix_=W;this.defaultQueryParams_=l;this.pubsub_=new _.uP;this.reconnectTimer_=new x65(this.safeReconnect_,this);this.JSC$19737_channel_=null;this.JSC$19737_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19737_pendingMessages_=[];this.enableAsyncTest_=V;this.JSC$19737_getXsrfToken_=f;this.useAsyncBrowserChannelHandler_=R;this.getAuthorizationHeader_=
P;this.getAuthorizationHeaderSync_=B;this.enableCachedUpdateAuthorizationHeader_=y;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.jy();this.enableLoungeTokenRefresh_=r;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=n;this.disableMdxAuthForNonPlaybackMessages_=d;this.disableMdxAuthForAdMessages_=J;this.enableMdxAuthForConnectionOnly_=D;this.disableMdxAuthForShortsMessages_=u;this.JSC$19737_channelOpenedCounter=new eoc;this.JSC$19737_channelClosedCounter=new qDN;this.channelMessageSentCounter=
new ho1;this.JSC$19737_channelMessageReceivedCounter=new SDN;this.JSC$19737_channelErrorCounter=new E7w;this.pendingMapsOnClosedCounter=new $6w;this.undeliveredMapsOnClosedCounter=new WK5};
Gl=function(W){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;W=W||document.location.href;var l=Number(_.WA(W)[4]||null)||"";l&&(this.port=":"+l);this.domain=_.lP(W)||"";W=_.Uz();W.search("MSIE")>=0&&_.dS(W.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
ba=function(W){W=W||{};this.name=W.name||"";this.id=W.id||W.screenId||"";this.token=W.token||W.loungeToken||"";this.uuid=W.uuid||W.dialId||"";this.idType=W.screenIdType||"normal"};
ld1=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(W){var l=Math.random()*16|0;return(W=="x"?l:l&3|8).toString(16)})};
VMs=function(W){return _.Zl(W,function(l){return{key:l.id,name:l.name}})};
fd1=function(W,l){return _.T6(W,function(V){return V||l?!V!=!l?!1:V.id==l.id:!0})};
oP=function(W,l){return _.T6(W,function(V){return pb(V,l)})};
LKY=function(){var W=rGZ(),l=RW7();if(tMw()){var V=W,f=_.p8z(V,l);f<0&&_.FjU(V,-(f+1),0,l)}W=sJw(W);if(W.length==0)try{_.vH6("remote_sid")}catch(r){}else try{_.HA("remote_sid",W.join(","),-1)}catch(r){}};
rGZ=function(){var W=_.YC("yt-remote-connected-devices")||[];W.sort(_.bqv);return W};
sJw=function(W){if(W.length==0)return[];var l=W[0].indexOf("#"),V=l==-1?W[0]:W[0].substring(0,l);return _.Zl(W,function(f,r){return r==0?f:f.substring(V.length)})};
yGw=function(W){_.N5("yt-remote-connected-devices",W,86400)};
RW7=function(){if(gJc)return gJc;var W=_.YC("yt-remote-device-id");W||(W=ld1(),_.N5("yt-remote-device-id",W,31536E3));for(var l=rGZ(),V=1,f=W;_.Oz(l,f);)V++,f=W+"#"+V;return gJc=f};
PDH=function(){return _.YC("yt-remote-session-browser-channel")};
tMw=function(){return _.YC("yt-remote-session-screen-id")};
cG4=function(W){W.length>5&&(W=W.slice(W.length-5));var l=_.Zl(nJ1(),function(f){return f.loungeToken}),V=_.Zl(W,function(f){return f.loungeToken});
_.$Aq(V,function(f){return!_.Oz(l,f)})&&CD7();
_.N5("yt-remote-local-screens",W,31536E3)};
nJ1=function(){return _.YC("yt-remote-local-screens")||[]};
CD7=function(){_.N5("yt-remote-lounge-token-expiration",!0,86400)};
jz=function(W){W||(_.xC("yt-remote-session-screen-id"),_.xC("yt-remote-session-video-id"));LKY();W=rGZ();_.aY(W,RW7());yGw(W)};
da2=function(){BmL();return IP?!!IP.get("yt-remote-use-staging-server"):!1};
BmL=function(){if(!IP){var W=_.IAn();W&&(IP=new _.p7(W))}};
uYs=function(W,l,V,f,r){V=V===void 0?function(){return""}:V;
var R=function(){return new Fp(ia(W,"/bc"),l,!1,V,f)};
return _.U("enable_mdx_web_channel_desktop")?new JGs(function(){return new Da7(ia(W,"/wc"),l,V)}):new Uaw(R,r)};
KK2=function(){var W=kGw;vJw();mC.push(W);Hkw()};
Xp=function(W,l){vJw();var V=FKw(W,String(l));mC.length==0?GGs(V):(Hkw(),_.q4(mC,function(f){f(V)}))};
Tl=function(W){Xp("CP",W)};
vJw=function(){mC||(mC=_.Y2("yt.mdx.remote.debug.handlers_")||[],_.fR("yt.mdx.remote.debug.handlers_",mC))};
GGs=function(W){var l=(wG+1)%50;wG=l;bk1[l]=W;pEw||(pEw=l==49)};
Hkw=function(){var W=mC;if(bk1[0]){var l=pEw?wG:-1,V={};do V={record$jscomp$15:void 0},l=(l+1)%50,V.record$jscomp$15=bk1[l],_.q4(W,function(f){return function(r){r(f.record$jscomp$15)}}(V));
while(l!=wG);bk1=Array(50);wG=-1;pEw=!1}};
FKw=function(W,l){var V=(Date.now()-oJY)/1E3;V.toFixed&&(V=V.toFixed(3));var f=[];f.push("[",V+"s","] ");f.push("[","yt.mdx.remote","] ");f.push(W+": "+l,"\n");return f.join("")};
Ac=function(W){_.aE.call(this);this.JSC$19761_logName_=W;this.screens=[]};
MW=function(W){Ac.call(this,"LocalScreenService");this.JSC$19768_http_=W;this.loungeTokenRefreshTimer_=NaN;Qf(this);this.info("Initializing with "+jJe(this.screens))};
Ze=function(W,l){l=l===void 0?!1:l;Ac.call(this,"ScreenService");this.JSC$19774_http_=W;this.disableAutomaticScreenCache_=l;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};IdZ(this)};
Ok=function(W,l,V){_.aE.call(this);this.JSC$19778_logName_=V;this.JSC$19778_screenService_=W;this.receiver_=l;this.screen_=null};
eW5=function(W,l,V){V.disableCastApi?aP("Cannot initialize because disabled by Mdx config."):ike()?maY(W,V)&&(XE1(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?Tm7(l):(window.__onGCastApiAvailable=function(f,r){f?Tm7(l):(zl("Failed to load cast API: "+r),wE4(!1),XE1(!1),_.xC("yt-remote-cast-available"),_.xC("yt-remote-cast-receiver"),AGw(),l(!1))},V.loadCastApiSetupScript?_.se(QJ5):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
MM7()>=60&&Zk1():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?OkY():MM7()>=89?adc():(zWc(),Nm2(YUL.map(xa1))))):aP("Cannot initialize because not running Chrome")};
AGw=function(){aP("dispose");var W=NW();W&&W.dispose();_.fR("yt.mdx.remote.cloudview.instance_",null);qUs(!1);_.y26(hW1);hW1.length=0};
SUw=function(){return!!_.YC("yt-remote-cast-installed")};
EJ4=function(){var W=_.YC("yt-remote-cast-receiver");return W?W.friendlyName:null};
$a7=function(){aP("clearCurrentReceiver");_.xC("yt-remote-cast-receiver")};
Wrw=function(){return SUw()?NW()?NW().getCastSession():(zl("getCastSelector: Cast is not initialized."),null):(zl("getCastSelector: Cast API is not installed!"),null)};
V1Y=function(W,l){lNs()?NW().setConnectedScreenStatus(W,l):zl("setConnectedScreenStatus called before ready.")};
ike=function(){var W=_.Uz().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.Gy||W};
maY=function(W,l){var V=!1;NW()||(W=new Yo(W,l),W.subscribe("yt-remote-cast2-availability-change",function(f){_.N5("yt-remote-cast-available",f);WX("yt-remote-cast2-availability-change",f)}),W.subscribe("yt-remote-cast2-receiver-selected",function(f){aP("onReceiverSelected: "+f.friendlyName);
_.N5("yt-remote-cast-receiver",f);WX("yt-remote-cast2-receiver-selected",f)}),W.subscribe("yt-remote-cast2-receiver-resumed",function(f){aP("onReceiverResumed: "+f.friendlyName);
_.N5("yt-remote-cast-receiver",f);WX("yt-remote-cast2-receiver-resumed",f)}),W.subscribe("yt-remote-cast2-session-change",function(f){aP("onSessionChange: "+fNZ(f));
f||_.xC("yt-remote-cast-receiver");WX("yt-remote-cast2-session-change",f)}),_.fR("yt.mdx.remote.cloudview.instance_",W),V=!0);
aP("cloudview.createSingleton_: "+V);return V};
NW=function(){return _.Y2("yt.mdx.remote.cloudview.instance_")};
Tm7=function(W){wE4(!0);XE1(!1);NW().init(!1,function(l){l?(qUs(!0),_.gh8("yt-remote-cast2-api-ready")):(zl("Failed to initialize cast API."),wE4(!1),_.xC("yt-remote-cast-available"),_.xC("yt-remote-cast-receiver"),AGw());W(l)})};
aP=function(W){Xp("cloudview",W)};
zl=function(W){Xp("cloudview",W)};
wE4=function(W){aP("setCastInstalled_ "+W);_.N5("yt-remote-cast-installed",W)};
lNs=function(){return!!_.Y2("yt.mdx.remote.cloudview.apiReady_")};
qUs=function(W){aP("setApiReady_ "+W);_.fR("yt.mdx.remote.cloudview.apiReady_",W)};
XE1=function(W){_.fR("yt.mdx.remote.cloudview.initializing_",W)};
xo=function(W){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(W)};
r2s=function(){var W,l;return _.g(function(V){if(V.nextAddress==1)return(_.xax()||_.U("use_new_nwl"))&&_.ad4().isNetworkAvailable()?V.yield(_.r8(),2):V.return();if(V.nextAddress!=3)return(W=V.yieldResult)?V.yield(Mys(W),3):V.return();l=V.yieldResult;if(!l.length)return V.return();l.forEach(function(f){var r={timestamp:f.timestamp};f=f.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:f.appShellAssetLoadReport,options:r}:f.clientError?{payloadName:"clientError",payload:f.clientError,
options:r}:void 0;f&&_.XC(f.payloadName,f.payload,f.options)});
l.length===100&&_.w8.addLowPriorityJob(r2s);_.ju(V)})};
RwH=function(W){if(W.playerResponse){if(W=W.playerResponse,W.messages&&W.messages.length>0&&(W=W.messages.find(function(l){return!(!l||!l.mealbarPromoRenderer)}))&&W.mealbarPromoRenderer)return W.mealbarPromoRenderer}else if(W.response&&(W=W.response)&&W.overlay&&W.overlay.mealbarPromoRenderer)return W.overlay.mealbarPromoRenderer};
t1Y=function(W){if(W.response){var l=W.response;if(l&&l.overlay&&l.overlay.tooltipRenderer)return l.overlay.tooltipRenderer}if(W.playerResponse&&(W=W.playerResponse,W.messages&&W.messages.length>0&&(W=W.messages.find(function(V){return!(!V||!V.tooltipRenderer)}))&&W.tooltipRenderer))return W.tooltipRenderer};
Lrc=function(W){if(!sfZ&&(W=W||_.M4("ZWIEBACK_PING_URLS"))&&W.length){sfZ=!0;for(var l=0;l<W.length;l++)_.xs(W[l])}};
ghe=function(W){if(_.MC.get(_.M4("PLAYER_VARS",{}),"privembed",!1)!="1"){W&&jgw();try{y21().then(function(){},function(){}),_.cA(ghe,18E5)}catch(l){_.OJ(l)}}};
Ppc=function(){var W=_.MT(),l=W.getFlag(119),V=window.devicePixelRatio>1;document.body&&_.y3(document.body,"exp-invert-logo")&&(V&&!_.y3(document.body,"inverted-hdpi")?_.J2(document.body,"inverted-hdpi"):!V&&_.y3(document.body,"inverted-hdpi")&&_.BI(document.body,"inverted-hdpi"));l!=V&&(_.ZY(0,119,V),W.save())};
nhY=function(W){return W.filter(function(l){return"ypcGetCartEndpoint"in l||"ypcFixInstrumentEndpoint"in l})};
Cp4=function(W){return W.filter(function(l){return!_.k(l,_.xDk)})};
BN1=function(W,l){var V,f,r,R,y,P,n;_.g(function(B){switch(B.nextAddress){case 1:V=_.$V.getInstance();f=_.mK.instance;r=_.ty.instance;if(!r)return c2Y(W,f,l),B.return();_.HG(B,2);W.onLoadingCommand&&f.resolveCommand(W.onLoadingCommand);return B.yield(V.getCurrentPositionFromGeolocation(),4);case 4:R=B.yieldResult;if(!W.resolveLocationCommand){B.jumpTo(5);break}y=V.createLocationInfo(R);return B.yield(_.Lv(r,W.resolveLocationCommand,{locationInfo:y}),6);case 6:P=B.yieldResult;if(!P||"error"in P&&P.error||
P.errorMetadata)return c2Y(W,f,l),B.return();var d;if(P==null?0:(d=P.onResponseReceivedActions)==null?0:d.length){d=_.L(P.onResponseReceivedActions);for(var J=d.next();!J.done;J=d.next())f.resolveCommand(J.value)}(_.k(W.onSuccessCommand,_.Bh)||_.k(W.onSuccessCommand,_.ZJ))&&_.FN(l.hostElement,"yt-navigate",{endpoint:W.onSuccessCommand,reload:!0});case 5:_.qL(B,0);break;case 2:n=_.pc(B);if(n instanceof GeolocationPositionError&&n.code===GeolocationPositionError.PERMISSION_DENIED)return W.onDeniedCommand&&
f.resolveCommand(W.onDeniedCommand),B.return();c2Y(W,f,l);_.ju(B)}})};
c2Y=function(W,l,V){W.onFailureCommand&&(l.resolveCommand(W.onFailureCommand),_.Gt(V.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
J25=function(W,l){var V=_.k(W,_.bC1);if(V&&l){W=V.videoIds||[V.videoId];var f;l=(f=_.FN(l,"yt-lockup-requested",{videoIds:W}).detail)==null?void 0:f.returnValue;var r;V.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?r=l?l:W.map(function(R){return{videoId:R,navigationEndpoint:V.videoCommand}}):l&&(r=l);
r&&(f=r.map(function(R){var y=Object,P=y.assign;var n=R.navigationEndpoint;if(!_.k(n,_.N$)){var B=_.k(n,_.Bh);if(B){if(delete B.index,delete B.playlistId,B=_.k(n==null?void 0:n.commandMetadata,_.XN),B==null?0:B.url){var d=B.url;d=_.uj(d,"list");d=_.uj(d,"index");B.url=d}}else n=void 0}return P.call(y,{},R,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:n})}),des(f,V))}};
De1=function(W){var l=_.kC();if(W=_.k(W,_.pDv))W.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&l.clearQueue(),W.closeMiniplayer&&_.tY().resolve(_.Sl).close(!0)};
u3s=function(W){UeL(_.kC(),W)};
kmL=function(W){var l;(W=(l=_.k(W,_.Fx$))==null?void 0:l.setVideoIds)&&W.forEach(function(V){_.tZI(_.kC(),V)})};
HP1=function(W){vh1(_.kC(),W)};
Kr1=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(W){return!1}};
Fr4=function(W){var l=["h","m","s"],V=_.z6(l);V.reverse();var f={};W=(W.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(y){var P=(y.match(/[hms]/)||[""])[0];return P?(f[P]=parseInt(y.match(/\d+/)[0],10),!1):!0});
for(W.reverse();W.length&&V.length;){var r=V.shift();r in f||(f[r]=parseInt(W.shift(),10))}if(W.length||f.s>59||f.m>59||f.h>9)return null;var R="";l.forEach(function(y){f[y]&&(R+=""+f[y]+y)});
return R||null};
GmL=function(W,l){var V=_.SdL(l,{},W,!0);return new Promise(function(f,r){V.listenOnce("n",function(){r(Error("vl`"+V.JSC$29449_getErrorDescription()))});
V.listenOnce("l",function(){var R=V.getResponseCode();if(R!==200)r(Error("wl`"+l+"`"+W.type+"`"+W.size+"`"+R));else try{f(JSON.parse(V.getResponseText()).encryptedBlobId)}catch(y){r(y)}});
V.run()})};
bPN=function(W){return W.substring(W.indexOf(":")+1,W.indexOf(";"))};
pIZ=function(W){return new Promise(function(l,V){var f=new FileReader;f.onloadend=function(){try{var r=new Uint8Array(f.result);r.length<8&&V(void 0);var R=r.subarray(0,8);r="";for(var y=0;y<R.length;y++)r+=("0"+R[y].toString(16)).substr(-2);r.startsWith("ffd8ff")?l("image/jpeg"):r.startsWith("47494638")?l("image/gif"):r.startsWith("89504e470d0a1a0a")?l("image/png"):r.startsWith("424d")?l("image/bmp"):l(void 0)}catch(P){V(P)}};
f.onerror=V;f.readAsArrayBuffer(W)})};
oh1=function(W){return new Promise(function(l,V){var f=new Image;f.crossOrigin="anonymous";f.onload=function(){var r=document.createElement("canvas");r.width=f.naturalWidth;r.height=f.naturalHeight;var R=r.getContext("2d");if(!R)throw Error("xl");R.drawImage(f,0,0);R=bPN(W);r.toBlob(function(y){y?l(y):V()},R)};
f.src=W})};
INN=function(W,l){var V;if(((V=_.k(W,_.N$))==null?void 0:V.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var f;_.FN((f=l.hostElement)!=null?f:l,"yt-shorts-reset");_.gUL(_.tY().resolve(_.$C),W).then(function(R){jf5(R,l,W)})}else{var r;
_.pN((r=l.hostElement)!=null?r:l,[W]).then(function(R){R&&jf5(R.data,l,W)})}};
jf5=function(W,l,V){if(W){var f=_.k(W.replacementEndpoint,_.N$);if(f){W.sequenceContinuation&&(f.sequenceParams=W.sequenceContinuation);var r;_.FN((r=l.hostElement)!=null?r:l,"yt-navigate",{endpoint:W.replacementEndpoint})}else if((W==null?void 0:W.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(W==null?0:W.watchStatus)&&_.k(W.watchStatus,_.ykL)){var R;_.FN((R=l.hostElement)!=null?R:l,"yt-navigate",{endpoint:V})}}};
iPN=function(W){var l=_.tY().resolve(_.Jp),V=_.Rp.currentPageTypeSelector(l.getState())||"";l=_.Rp.currentPageSubTypeSelector(l.getState())||"";V=V==="ytd-browse"&&l==="home";return _.U("web_guide_entry_enable_cache_for_non_home_pages")?(W=(W==null?void 0:W.navigationEndpoint)&&_.M$(W.navigationEndpoint)==="home",{disableCache:V&&W}):{disableCache:V}};
meY=function(W){if(!W)return!1;try{if(W.host&&W.host.tagName==="YT-FORMATTED-STRING"&&W.host.id==="contenteditable-textarea"||W.nodeType===Node.ELEMENT_NODE&&W.tagName==="YTD-COMMENT-INPUT")return!0}catch(l){return!1}return meY(W.parentNode)};
ez=function(W){return W?W.tagName==="A"&&W.href&&W.classList.contains("yt-simple-endpoint"):!1};
XIe=function(W){return W?W.tagName==="IMG"&&W.classList.contains("emoji"):!1};
TNw=function(W,l,V){if(!W)return null;var f=ez(W);if(f&&V)return l=W.pathname.substring(W.pathname.indexOf("/channel/")+9),document.createTextNode("@"+l);if(f&&!V)return document.createTextNode("");if(XIe(W))return V=W.alt,W=W.dataset.emojiId,!W&&l&&(l=_.Hf(l,V))&&l.isCustomEmoji&&(W=l.emojiId),W?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+W+">"):document.createTextNode(V);f=W.cloneNode(!1);for(var r=0;r<W.childNodes.length;++r){var R=TNw(W.childNodes[r],l,V);R&&f.appendChild(R)}return f};
qW=function(W){return W?ez(W)?W:qW(W.lastChild):null};
wIc=function(W){return W?ez(W)?W:wIc(W.firstChild):null};
A27=function(W){if(!W)return null;for(var l=W.previousSibling;l;)if(l.nodeType===Node.ELEMENT_NODE&&l.nodeName==="BR")l=l.previousSibling;else if(l.nodeType===Node.TEXT_NODE&&/\s+/.test(l.textContent))l=l.previousSibling;else break;(l=qW(l))?W=l:W=(W=W.parentNode)?qW(W.previousElementSibling):null;return W};
Qfc=function(W){if(!W)return null;for(var l=W.nextSibling;l;)if(l.nodeType===Node.ELEMENT_NODE&&l.nodeName==="BR")l=l.nextSibling;else if(l.nodeType===Node.TEXT_NODE&&/\s+/.test(l.textContent))l=l.nextSibling;else break;return(l=wIc(l))?l:Qfc(W.parentNode)};
M11=function(W){var l=_.FJ(),V=l.JSC$11343_getStartNode();if(!meY(V.parentNode))return null;l=l.JSC$11343_getStartOffset();if(V.nodeType===Node.TEXT_NODE){var f=_.YN(V,ez);if(f){if(W&&l===0||!W&&l===V.length)return f}else{if(W&&l===V.length)return!V||V.nodeName==="BR"||V.nextElementSibling&&_.Gb(V.nextElementSibling,"display")==="block"?null:wIc(V.nextElementSibling);if(!W&&l===0)return V?qW(V.previousElementSibling):null}}if(V.nodeType===Node.ELEMENT_NODE)if(W){if(0<=l&&l<V.childNodes.length)return wIc(V.childNodes[l])}else if(0<
l&&l<=V.childNodes.length)return qW(V.childNodes[l-1]);return null};
ZPL=function(W,l,V){if(!W)return null;if(W.nodeType===Node.TEXT_NODE)if(V){var f=A27(W);if(f&&!/^\s+\S/.test(W.wholeText.substr(0,l)))return f}else if((f=Qfc(W))&&!/\S\s+/.test(W.wholeText.substr(l,W.wholeText.length)))return f;return W.nodeType===Node.ELEMENT_NODE?V?A27(W.childNodes[l]):Qfc(W.childNodes[l]):ZPL(W.parentNode,l,V)};
OPZ=function(W){if(W.hasChildNodes())switch(W.tagName){case "DIV":case "A":case "SPAN":var l="";for(W=W.firstChild;W;W=W.nextSibling)l+=OPZ(W);return l;default:return""}else switch(W.nodeType){case 3:return W.textContent;default:return""}};
aNe=function(W){switch(W){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"}};
zw4=function(W){return W.map(function(l){return{settingsRadioOptionRenderer:{title:_.Fy(l.name),asideText:_.Fy(l.approximateSize),id:aNe(l.format)}}})};
YZc=function(W){if(W&&W.length!==0)return W.filter(NN5()).map(function(l){return{settingsRadioOptionRenderer:{title:l.name,asideText:l.approximateSize,id:aNe(l.formatType)}}})};
hc=function(W){if(W)return W.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
xe7=function(W,l){W=new Set(W!=null?W:[]);if(W.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(W.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(W.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(W.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(W.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(l)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
ew2=function(W){var l=W.indexOf("(");return l!==-1?W.substring(l+1,W.length-1):W};
_.hw5=function(W,l,V,f,r){V||(V=qZ2);var R;(R=_.k(V.commandMetadata,_.XN))!=null&&R.url||(V=Error("Cl`"+JSON.stringify(V)),_.wv(V),V=qZ2);V=_.MC.unsafeClone(V);R=_.OL(_.k(V.commandMetadata,_.XN).url,"search_query",W);_.qs(location.href,"sv")==="1"&&(_.k(V,_.Om).params="EgOAAgE%3D",R=_.OL(R,"sv","1"));_.k(V,_.Om)&&(_.k(V,_.Om).query=W);R=R.replace(/%20/g,"+");_.k(V.commandMetadata,_.XN).url=R;r=_.U("desktop_enable_entity_suggest")?{entityMid:r}:{};_.tY().resolve(_.s6).resolveCommand(V,{form:{tempData:Object.assign({},
{gs_l:l,oq:f!=null?f:W},r)}})};
SZ5=function(W){switch(W){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
$eY=function(W,l,V,f,r,R){var y=_.MC.clone(Eh4);y.locale=_.M4("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;y.report={description:r||"<empty>"};r=_.M4("SBOX_SETTINGS",{});l=l.join(",");var P=Date.now();W={choice_cc:f,choice_id_cc:V,choices_sc:l,gl:r.REQUEST_DOMAIN,hl:r.REQUEST_LANGUAGE,query:W,time:P};R&&(W.choice_additional_comment_cc=R);_.fnv(y,W)};
W$L=function(W){var l=new Map;l.set("authuser",_.M4("SESSION_INDEX","0"));return _.Js(W,l)};
VJH=function(W){var l;return _.g(function(V){switch(V.nextAddress){case 1:if(!W||!lyZ(W))return V.return(null);l=null;switch(_.M4("INNERTUBE_CLIENT_NAME")){case "WEB":return V.jumpTo(2);case "WEB_REMIX":l=W.getPlayer()}V.jumpTo(3);break;case 2:return V.yield(W.getPlayerPromise(),4);case 4:l=V.yieldResult;V.jumpTo(3);break;case 3:return V.return(l)}})};
lyZ=function(W){return["ytd-player","ytmusic-player"].includes(String(W.tagName||"").toLowerCase())};
fyY=function(W){W=Math.round(W);return W%2?W-1:W};
ryw=function(W){W=Math.round(W);return W%2===0?W-1:W};
RP1=function(W){var l,V,f;if(W=(l=W.createPlaylistDialogFormSchema)==null?void 0:(V=l.fieldSchemas)==null?void 0:(f=V.title)==null?void 0:f.validationSchema)for(l=[W.syncStep,W.asyncStep].filter(function(r){return r!==void 0}),l=_.L(l),V=l.next();!V.done;V=l.next()){V=V.value.rules;
if(!V)break;V=_.L(V);for(V=V.next();!V.done;V=V.next())return _.k(V.value,_.Wue)}};
s$Z=function(W){var l,V,f;if(W=(l=W.createPlaylistDialogFormSchema)==null?void 0:(V=l.fieldSchemas)==null?void 0:(f=V.visibility)==null?void 0:f.validationSchema)for(l=[W.syncStep,W.asyncStep].filter(function(r){return r!==void 0}),l=_.L(l),V=l.next();!V.done;V=l.next()){V=V.value.rules;
if(!V)break;V=_.L(V);for(f=V.next();!f.done;f=V.next())if(f=_.k(f.value,tJN))return l=void 0,(l=f.translations)==null?void 0:l.visibilityNotValidErrorMessage}};
L$Z=function(){var W,l;return(l=(W=_.tY().resolve(_.R0(_.nP)))==null?void 0:W())!=null?l:!1};
yys=function(W){var l=21;if(!W)return l;l+=W.headerTitle?27:0;l+=W.headerTitle&&W.hasHeaderActionHeader?4:0;return l+=W.headerTitle&&W.headerSubtitle?16:0};
gwY=function(W){var l=0;if(!W)return l;l+=W.hasFooterPrimaryButton||W.hasFooterSecondaryButton?48:0;l+=W.footerTrailingLabel||W.footerLeadingLabel?30:0;return l+=W.hasFooterPrimaryButton||W.hasFooterSecondaryButton||!W.footerTrailingLabel&&!W.footerLeadingLabel?0:12};
P$w=function(W){var l=new _.uP,V=W;return{subscribe:function(f){l.subscribe("changed",f)},
dispatch:function(f,r){var R=V;f==="Touch Start"?V=Object.assign({},R,{isAnimating:!1,initialY:r.event.touches[0].clientY}):f==="Touch Move"?(f=Math.min(r.fullContentWrapperHeight,r.contentHeightMap[r.contentWrapperId]+yys(r.header)-gwY(r.footer)),V=Object.assign({},R,{currentY:Math.max(r.contentScrollable?-1*(R.initialY-24):0,r.event.touches[0].clientY-R.initialY),maxHeightForContentWrapper:Math.min(f,Math.max(0,(R.isFullScreen?f:r.contentWrapperHeight)-R.currentY))})):V=f==="Snap To Full Screen"?
Object.assign({},R,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:r.maxHeight}):f==="Snap To Neutral Position"?Object.assign({},R,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:r.maxHeight}):f==="Close Sheet"?Object.assign({},R,{isAnimating:!0,currentY:r.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:r.maxHeight}):R;l.publish("changed",V)}}};
nw7=function(W){return _.ip(function(l){W(l);return!1})};
C$5=function(){_.tY().resolve(_.sT).closeSheet()};
cye=function(W){var l,V,f,r,R,y,P,n,B,d,J;return{headerTitle:(l=W.headerTitle)==null?void 0:l.call(W),headerSubtitle:(V=W.headerSubtitle)==null?void 0:V.call(W),headerActionHeader:W.headerActionHeader,footerPrimaryButton:W.footerPrimaryButton,footerSecondaryButton:W.footerSecondaryButton,footerButtonType:(f=W.footerButtonType)==null?void 0:f.call(W),footerLeadingLabel:(r=W.footerLeadingLabel)==null?void 0:r.call(W),footerTrailingLabel:(R=W.footerTrailingLabel)==null?void 0:R.call(W),shouldShowIcons:(y=
W.shouldShowIcons)==null?void 0:y.call(W),skipContentClick:(P=W.skipContentClick)==null?void 0:P.call(W),additionalClassName:(n=W.additionalClassName)==null?void 0:n.call(W),onClosedCallback:W.onClosedCallback,focusOnClose:(B=W.focusOnClose)==null?void 0:B.call(W),isDisabled:(d=W.isDisabled)==null?void 0:d.call(W),disabledCommand:(J=W.disabledCommand)==null?void 0:J.call(W),headerFn:W.headerFn,contentFn:W.contentFn,footerFn:W.footerFn,hasHeaderFn:W.hasHeaderFn(),hasContentFn:W.hasContentFn(),hasFooterFn:W.hasFooterFn(),
hasFooterPrimaryButton:W.hasFooterPrimaryButton(),hasFooterSecondaryButton:W.hasFooterSecondaryButton(),hasHeaderActionHeader:W.hasHeaderActionHeader()}};
BHw=function(W){switch(W){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""}};
dBw=function(W){switch(W){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""}};
JyH=function(W){switch(W){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""}};
DBH=function(W,l,V){l.forEach(function(f){_.YQ(_.tY().resolve(_.yM),f)});
_.Gt(W,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",V])};
vw4=function(W,l,V,f){var r=_.k(V,_.uO).commandLifeCycleConfig;r&&r.onStartCommand&&_.og(W,[r.onStartCommand],l);_.$1(l);var R=_.ty.instance;R&&_.s_(R,V)?_.Lv(R,V,f).then(function(y){if(!y||(y==null?0:y.error))return y=_.k(V,_.uO).serializedTransactionFlowLoggingParams,_.W0(l),_.eM(new Sz("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",y));_.W0(l);return{data:y}}).then(function(y){_.W0(l);
UB1(y.data);var P=y.data.command;P&&_.og(W,[P],l);P=uxw(V,y.data);if(!P){var n=y.data;y=!1;if(n&&n.command&&_.k(n.command,_.Ig)){var B;n=((B=_.k(n.command,_.Ig))==null?void 0:B.commands)||[];for(B=0;B<n.length;B++)if(_.k(n[B],_.oIB)){y=!0;break}}y||_.y5('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!P&&r&&r.onSuccessCommand?_.og(W,[r.onSuccessCommand],l):P&&r&&r.onFailureCommand&&_.og(W,[r.onFailureCommand],l)},function(){_.W0(l);
r&&r.onFailureCommand&&_.og(W,[r.onFailureCommand],l);kYL(V)}):_.wv(Error("Ol"),"ERROR")};
Hvc=function(W,l,V){var f=[l];V&&f.push(V);return _.pN(W,f).then(function(r){var R=_.k(l,_.uO).serializedTransactionFlowLoggingParams,y=r.data,P=uxw(l,y);P?r=_.eM(new Sz(P,R)):UB1(y);return r},function(){var r=_.k(l,_.uO).serializedTransactionFlowLoggingParams;
kYL(l);return _.eM(new Sz("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",r))})};
uxw=function(W,l){W=_.k(W,_.uO).serializedTransactionFlowLoggingParams;var V=null;switch(l.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":V="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":V="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":V="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}V?_.cV(V,W):lJZ(W);return V};
kYL=function(W){_.cV("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.k(W,_.uO).serializedTransactionFlowLoggingParams)};
UB1=function(W){if(W.trackingParams){var l=_.Wh(),V=_.$G();l&&V&&_.L0(l,V,_.zG(W.trackingParams))}};
K$L=function(W,l,V){var f=_.ty.instance,r=_.BqS(_.M4("YPC_MB_URL")),R=(new _.Cox).init(),y=_.cDz(),P=_.k(V,_.FTe).languageCode;P===void 0?_.wv(Error("Ki"),"ERROR"):_.YS([R,r]).then(function(){var n={ctk:payments.business.integration.ClientTokenFactory.createClientToken(P,y)};f&&_.s_(f,V)?_.Lv(f,V,n).then(function(B){return{data:B}}).then(function(B){_.FN(l,"yt-service-request-completed",B);
B.code!=="ERROR"&&(B=B.data.command)&&_.og(W,[B],l)}):_.wv(Error("Ol"),"ERROR")})};
bvL=function(W,l,V,f){var r=_.ty.instance;r&&_.s_(r,V)?_.Lv(r,V,f).then(function(R){return{data:R}}).then(function(R){F$s(W,l,V,R)},function(){GYc(V)}):(r=_.tY().resolve(_.R0(_.lm)))&&r.requestDataForServiceEndpoint(V,f).then(function(R){F$s(W,l,V,R)},function(){GYc(V)})};
F$s=function(W,l,V,f){_.FN(l,"yt-service-request-completed",f);if(f.code&&f.code=="ERROR")GYc(V);else{(f=f.data.commands)&&_.og(W,f,l);var r;(W=(r=_.k(V,_.IPc))==null?void 0:r.serializedYpcPauseFlowLoggingParams)&&W&&_.kp("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",W)}};
GYc=function(W){var l;(W=(l=_.k(W,_.IPc))==null?void 0:l.serializedYpcPauseFlowLoggingParams)&&W&&_.kp("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",W,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
j$s=function(W,l,V){var f=_.ty.instance;f&&_.s_(f,V)?_.Lv(f,V).then(function(r){return{data:r}}).then(function(r){ppN(W,l,V,r)},function(){owL(V)}):(f=_.tY().resolve(_.R0(_.lm)))&&f.requestDataForServiceEndpoint(V).then(function(r){ppN(W,l,V,r)},function(){owL(V)})};
ppN=function(W,l,V,f){_.FN(l,"yt-service-request-completed",f);f.code&&f.code=="ERROR"?owL(V):((f=f.data.commands)&&_.og(W,f,l),(W=_.k(V,_.ifX).serializedYpcResumeFlowLoggingParams)&&W&&_.kp("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",W))};
owL=function(W){(W=_.k(W,_.ifX).serializedYpcResumeFlowLoggingParams)&&W&&_.kp("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",W,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
Iy5=function(W){W=W===void 0?{}:W;_.tY().resolve(_.Jx1).showFeedbackDialog(W.customProductData,W.feedbackContent,W.onFeedbackSubmitted,W.bucket)};
ivc=function(W){W=W===void 0?{}:W;_.tY().resolve(_.Jx1).showHelpDialog(W.helpContext,W.articleId,W.productData)};
mB1=function(){ivc()};
Xpw=function(){Iy5()};
wpc=function(W,l,V){var f,r,R,y,P,n,B;return _.g(function(d){switch(d.nextAddress){case 1:f=_.k(W,THc);if((r=f)==null?0:r.productId){n={productId:f.productId,bucket:f.bucket,enableAnonymousFeedback:(P=f.enableAnonymousFeedback)!=null?P:!0,allowNonLoggedInFeedback:!0};B={feedbackChoice:V.feedbackChoice};if(!_.U("web_collect_offline_state")){d.jumpTo(8);break}_.HG(d,9);return d.yield(gVw(B),11)}y={bucket:(R=f)==null?void 0:R.bucket};if(!_.U("web_collect_offline_state")){d.jumpTo(4);break}y.customProductData=
{};_.HG(d,5);return d.yield(gVw(y.customProductData),7);case 7:_.qL(d,4);break;case 5:_.pc(d);case 4:Iy5(y);d.jumpTo(0);break;case 11:_.qL(d,8);break;case 9:_.pc(d);case 8:_.lQn(B),_.WFj("GFEEDBACK",B),f.productId==="5295751"&&(B.client_attestation=Number(_.M4("CATSTAT",0))),f.productId==="5295751"&&(B.client_time=Date.now()/1E3/3600),f.productId==="5295751"&&(B.original_playback_id=_.JR$||""),_.fnv(n,B),_.ju(d)}})};
Aye=function(W){if(W=_.k(W,_.J_z)){var l={bucket:W.bucketIdentifier};W.additionalDatas&&(l.customProductData={},W.additionalDatas.forEach(function(V){if(V=V.userFeedbackEndpointProductSpecificValueData)l.customProductData[V.key]=V.value}));
Iy5(l)}};
Q$Z=function(W){var l=_.eC.getInstance();var V=_.wg("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var f=_.wg("DELETE",void 0,"Delete"),r=_.wg("CANCEL",void 0,"Cancel");V=uN1(V,void 0,f,r,{signal:"DELETE_ALL_DOWNLOADS"});_.rP(l,[{openPopupAction:V}],W)};
Zvw=function(){return _.g(function(W){return W.nextAddress==1?W.yield(_.tY().resolve(_.YX),2):W.yield(MJH(),0)})};
OvL=function(W){var l,V;return _.g(function(f){return f.nextAddress==1?(V=(l=_.k(W,_.zs))==null?void 0:l.targetId)?f.yield(_.tY().resolve(_.YX),3):f.jumpTo(0):f.yield(_.tY().resolve(_.NZ).deleteVideo(V),0)})};
zPY=function(W){var l,V;return _.g(function(f){return f.nextAddress==1?(V=(l=_.k(W,_.zs))==null?void 0:l.targetId)?f.yield(_.tY().resolve(_.YX),3):f.jumpTo(0):f.yield(aye(_.tY().resolve(_.NZ),V),0)})};
Y_7=function(W){var l,V;return _.g(function(f){return(V=(l=_.k(W,_.zs))==null?void 0:l.targetId)?f.yield(NHw(V),0):f.jumpTo(0)})};
ePH=function(){_.U("kevlar_woffle_refresh_dl_load_killswitch")||xBw()};
hPL=function(){_.U("kevlar_woffle")&&_.Em.instance&&q_Z()};
Ew1=function(W){var l;if((l=_.k(W,_.Xx))==null||!l.videoId)return!1;S_e(_.tY().resolve(_.NZ),_.k(W,_.Xx),W.clickTrackingParams);return!0};
W25=function(W){var l;if((l=_.k(W,_.TY))==null||!l.playlistId)return!1;$B1(_.tY().resolve(_.NZ),_.k(W,_.TY),W.clickTrackingParams);return!0};
V$L=function(W){var l=_.k(W,_.d5M);(l==null?void 0:l.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(l==null?void 0:l.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||lpZ(_.tY().resolve(_.NZ),_.k(W,_.d5M))};
r$s=function(W){W=_.k(W,_.x0X);var l;(W==null?0:(l=W.actions)==null?0:l.length)&&fp1(W)};
spY=function(W){var l,V;return _.g(function(f){l=_.k(W,R25);return(V=l)!=null&&V.localWatchHistoryCommandType?f.yield(t$1(l),0):f.return()})};
L24=function(W){setTimeout(function(){requestAnimationFrame(W)},80)};
y$L=function(W){return Object.entries(W).map(function(l){return l.join(":")}).join(";")};
PE2=function(W){var l,V,f;_.g(function(r){if(r.nextAddress==1)return r.yield(g1c(),2);l=r.yieldResult;V=_.mK.instance;switch(l){case "granted":f=W.getLocationCommand;break;case "denied":f=W.openDeniedDialogAction;break;case "prompt":f=W.openCollectionDialogAction;break;default:f=W.openCollectionDialogAction}f&&V.resolveCommand(f);_.ju(r)})};
g1c=function(){var W,l;return _.g(function(V){if(V.nextAddress==1)return W="prompt",navigator.permissions?V.yield(navigator.permissions.query({name:"geolocation"}),3):V.jumpTo(2);V.nextAddress!=2&&(l=V.yieldResult,W=l.state);return V.return(W)})};
CE4=function(){_.g(function(W){return W.yield(_.n1e(),0)})};
c$2=function(){var W,l,V;return _.g(function(f){if(f.nextAddress==1)return W=_.tY().resolve(_.Vb),W?f.yield(_.Lv(W,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Qe(Error("Rl")),f.return(void 0));if(l=f.yieldResult){if(l.errorMetadata)return _.Qe(Error("Sl`"+l.errorMetadata.status+"`"+l.error)),f.return(void 0);V=l.datasyncIds;_.u9Y=V.length;return f.return(V)}_.Qe(Error("Tl"));return f.return(void 0)})};
BCc=function(){c$2().then(function(W){W&&(Agw(W),fJY(W),oHe(W),C0s(W))})};
dr4=function(W){_.w8.addLowPriorityJob(function(){var l,V,f,r,R;return _.g(function(y){switch(y.nextAddress){case 1:if(_.U("ytidb_clear_optimizations_killswitch")){y.jumpTo(2);break}l=_.FP("clear");if(l.startsWith("V")&&l.endsWith("||")){var P=[l];Agw(P);fJY(P);oHe(P);C0s(P);return y.return()}V=jse();f=c5e();return y.yield(r5s(),3);case 3:return r=y.yieldResult,y.yield(QgH(),4);case 4:if(R=y.yieldResult,!(V||f||r||R))return y.return();case 2:W.isNetworkAvailable()?BCc():W.listenOnce("publicytnetworkstatus-online",
BCc),_.ju(y)}})})};
Ek=function(W){W={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.Bl(W)}}}};_.mK.instance&&_.mK.instance.resolveCommand(W)};
J$Y=function(W){if(W){var l=_.Qq();_.Ob(l,3854,void 0,{layer:0,parentLayer:4});switch(W){case 1:var V=238708;break;case 2:V=238715;break;case 3:V=238710;break;case 6:V=238709}V&&(W=_.AG(l,{veType:V}))&&_.Nl(l,W)}};
Dre=function(W){if(W){var l=_.Qq();_.Ob(l,3854,void 0,{layer:0,parentLayer:4});switch(W){case 1:var V=238714;break;case 2:V=238711;break;case 8:V=238709;break;case 7:V=238713;break;case 3:case 4:case 5:V=238712}V&&(W=_.AG(l,{veType:V}))&&_.Nl(l,W)}};
Ur5=function(W){switch(W.latencyType){case 0:_.$u("consent_primitive_flow");_.Wy("cpit",W.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Wy("cpist",W.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Wy("cprtif",W.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Wy("cprtli",W.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Wy("cprt",W.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Wy("cpdt",W.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.Wy("cpjct",W.timestampEpochMillis,"consent_primitive_flow")}};
o1L=function(W,l){var V,f,r,R,y,P,n,B,d,J,D,u,H,p,X,w,O,S,N,x;return _.g(function(Y){switch(Y.nextAddress){case 1:_.HG(Y,2);(f=(V=_.k(W,uJ7))==null?void 0:V.serializedConsentRequest)||(f=(r=_.k(W,kb2))==null?void 0:r.serializedConsentRequest);f&&(R=v1N(_.$z(f)));if(R===void 0)return Y.return();y=Hh5(R);y.latencyCallback=Ur5;l&&K2Y(y,function(){l.then(function(W8){W8.pauseVideo();(new F2e).increment()})});
return((P=_.k(W,uJ7))==null?void 0:P.consentAction)==="CONSENT_ACTION_PREWARM"||((n=_.k(W,kb2))==null?void 0:n.consentAction)==="CONSENT_ACTION_PREWARM"?Y.yield(Gb1(y),5):Y.yield(bhc(y),6);case 6:B=Y.yieldResult;d=_.Ty(B,$o);if(d===1){if(((J=_.xt(B,W5,1,$o))==null?void 0:_.zy(J,1))===1||((D=_.xt(B,W5,1,$o))==null?void 0:_.zy(D,1))===2||((u=_.xt(B,W5,1,$o))==null?void 0:_.zy(u,1))===3)_.k(W,kb2)?Ek(_.wg("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Ek(_.wg("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));J$Y((H=_.xt(B,W5,1,$o))==null?void 0:_.zy(H,1),_.Pt(B,pfw,3,_.ns()))}else d===2?(((p=l6(B))==null?void 0:_.zy(p,1))===5?_.k(W,kb2)?Ek(_.wg("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Ek(_.wg("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((X=l6(B))==null?void 0:_.zy(X,1))===1||((w=l6(B))==null?void 0:_.zy(w,1))===4?Ek(_.wg("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((O=l6(B))==null?void 0:_.zy(O,1))===7&&((S=R)==null?void 0:(N=_.yy(S,Vk,4))==null?void 0:_.zy(N,4))!==1&&Ek(_.wg("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),Dre((x=l6(B))==null?void 0:_.zy(x,1))):Ek(_.wg("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));Y.jumpTo(5);break;case 5:_.qL(Y,0);break;case 2:_.pc(Y),Ek(_.wg("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.ju(Y)}})};
Ipw=function(){if(!jp1.has("Worker")){jp1.set("Worker",!0);var W={api:"BROWSER_API_WEB_WORKER"};W.available="Worker"in window?!0:!1;_.XC("apiTest",W)}};
ihw=function(W){return typeof W==="undefined"?"-1":String(Math.ceil(W/1048576))};
wfZ=function(W,l){mrL(new XfN(_.k(l,TC7).addToken,_.k(l,TC7).commonToken)).then(function(){_.FN(W,"yt-invoke-instrument-manager-action-completed")},function(V){_.FN(W,"yt-invoke-instrument-manager-action-error",V)})};
A$H=function(){var W,l;return(l=(W=window).matchMedia)==null?void 0:l.call(W,"(prefers-reduced-motion: reduce)").matches};
QpY=function(W){var l=_.tY().resolve(_.R0(_.$U));if(l&&l.isAnyTransitionEnabled){var V={};l.viewTransitionCoordinator.registerElement(W,(V.slide="miniplayer-page-transition",V["lockup-to-watch"]="miniplayer-page-transition",V["learning-journey"]="miniplayer-page-transition",V))}};
M$e=function(W,l,V){return{horizontalAlignment:W.x+V.width/2<l.width/2?"west":"east",verticalAlignment:W.y+V.height/2<l.height/2?"north":"south"}};
Oh7=function(W,l,V,f,r){r=r===void 0?new _.O1(0,0):r;W=Zh2(W,l,V,f);return new _.O1(W.x+r.x,W.y+r.y)};
Zh2=function(W,l,V,f){return new _.O1(W==="west"?16:V.width-f.width-16,l==="north"?16:V.height-f.height-16)};
aps=function(W,l){var V=0;W&&(V+=76);l&&(V+=285);return V};
z24=function(W){return _.El(W)};
NC2=function(W){var l=1;W=W.split(":");for(var V=[];l>0&&W.length;)V.push(W.shift()),l--;W.length&&V.push(W.join(":"));return V};
YgL=function(W){var l=new _.jk;return _.eP(l,11,W)};
xr2=function(W){var l={};W=W.getAllResponseHeaders().split("\r\n");for(var V=0;V<W.length;V++)if(!_.gS(W[V])){var f=NC2(W[V]),r=f[0];f=f[1];if(typeof f==="string"){f=f.trim();var R=l[r]||[];l[r]=R;R.push(f)}}return _.MC.map(l,function(y){return y.join(", ")})};
PX=function(W,l){return W.JSC$9791_xhr_?W.JSC$9791_xhr_.getResponseHeader(l):null};
e2s=function(W,l){if(W.isDisposed())throw Error("Ea");W.zh.ti("n");var V=_.WD(W.zh,function(){return W.iFO([l.nf,l.pE6,l.sMU,l.awT])},"n");
W.zh.txn(V.length);W.zh.bJ();return V};
fr=function(W,l,V){Array.isArray(V)||(V=[String(V)]);_.ipL(W.JSC$10026_queryData_,l,V);return W};
q_Z=function(){var W=_.Em.instance;_.g(function(l){return W.deferredInstallPrompt?l.yield(W.deferredInstallPrompt.prompt(),0):l.jumpTo(0)})};
qg5=function(W,l,V){if(_.Ng(W))_.q4(W,l,V);else for(W=_.OjZ(W);;){var f=W.next();if(f.done)break;l.call(V,f.value,void 0,W)}};
h2N={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}"]};
h2N={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 SgZ=function(W,l){var V=[];qg5(l,function(f){try{var r=_.Bj.prototype.getWrapper.call(this,f,!0)}catch(R){if(R=="Storage: Invalid value was encountered")return;throw R;}r===void 0?V.push(f):_.Zj9(r)&&V.push(f)},W);
return V},E1L=function(W,l){SgZ(W,l).forEach(function(V){_.Bj.prototype.remove.call(this,V)},W)},$r4=function(W){var l=_.CB;
l._minimumZ=Math.max(l._minimumZ,W)},WHN=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],lmY=function(W,l){_.Ls(W.vm);W.vm=l},VlY=function(W,l,V,f){W.setState(5);
var r=!!W.p4Y&&WHN.includes(_.lP(W.p4Y)||"");try{var R=new _.lc({program:l,globalName:V,rYJ:{disable:!_.U("att_web_record_metrics")||!_.U("att_skip_metrics_for_cookieless_domains_ks")&&r,qM:"aGIf"}});R.wwq.then(function(){W.setState(6);f&&f(l)});
lmY(W,R)}catch(y){W.setState(7),y instanceof Error&&_.Qe(y)}},fms=function(W,l,V,f,r,R){var y=y===void 0?"trayride":y;
V?(W.setState(2),_.se(_.Tz(V),function(){if(window[y])VlY(W,f,y,r);else{W.setState(3);var P=_.YsJ(V),n=document.getElementById(P);n&&(_.nhv(P),n.parentNode.removeChild(n));_.Qe(new _.bP("BL:ULB",V))}},R)):l?(R=_.Gz("SCRIPT"),l instanceof _.fc?_.Rt(R,l):R.textContent=l,R.nonce=_.VK(document),document.head.appendChild(R),document.head.removeChild(R),window[y]?VlY(W,f,y,r):(W.setState(4),_.Qe(new _.bP("BL:ULBJ")))):_.Qe(new _.bP("BL:ULV"))},rm4=function(){this.state=1;
this.vm=null;this.p4Y=void 0};
_.t=rm4.prototype;_.t.initialize=function(W,l,V,f){this.p4Y=f;if(W.program){var r;f=(r=W.interpreterUrl)!=null?r:null;if(W.interpreterSafeScript)r=_.XV4(W.interpreterSafeScript);else{var R;r=(R=W.interpreterScript)!=null?R:null}W.interpreterSafeUrl&&(f=_.Av(W.interpreterSafeUrl).toString());fms(this,r,f,W.program,l,V)}else _.Qe(Error("pf"))};
_.t.isInitialized=function(){return!!this.vm};
_.t.getState=function(){return this.state};
_.t.isLoading=function(){return this.state===2};
_.t.invoke=function(W){W=W===void 0?{}:W;var l;this.vm?l=e2s(this.vm,{nf:W}):l=null;return l};
_.t.dispose=function(){lmY(this,null);this.setState(8)};
_.t.setState=function(W){this.state=W};
var RDL=function(W,l){return W.vm.snapshot(l)},tlc=function(W,l){var V=_.yS("botguard_async_snapshot_timeout_ms",3E3);
l=l===void 0?{}:l;V=V===void 0?3E3:V;return W.vm?new Promise(function(f,r){var R=!1,y=_.w8.addJob(function(){R=!0;r(Error("qf"))},1,V);
W.vm?RDL(W,{nf:l}).then(function(P){_.w8.cancelJob(y);R||f(P)}).catch(function(P){_.w8.cancelJob(y);
R||r(P)}):(_.w8.cancelJob(y),f(null))}):Promise.resolve(null)},sms=["att/log"],qZ2;
qZ2={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var LH7={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},ymH=function(W,l){return _.Md(W,{mode:"readwrite",enableRetries:!0},function(V){return _.vQY(V,l,"settingEntity")})},gPs=function(W,l,V){return _.Md(W,{mode:"readonly",
enableRetries:!0},function(f){return _.lov(f,l,V)})},P44=function(W){if(!W.storage)return!1;
a:{if(W.storage){try{var l=W.storage.get("TLPQtimestamp")}catch(V){}W=Number(l);if(!isNaN(W))break a}W=void 0}return W?Date.now()-W<864E5:!1},nPY=function(W){if(W.storage){try{var l=W.storage.get("TLPQindex")}catch(V){}W=Number(l);
if(!isNaN(W))return W}},C45=function(W,l){W.queueProxy&&l.forEach(function(V){if(V.videoId&&V.trackingParams&&W.queueProxy instanceof _.C6){var f=_.Wh();
W.queueProxy.attributionData.set(V.videoId,{enqueueingVe:_.zG(V.trackingParams).getAsJson(),enqueueingCsn:f?f:void 0,clientEnqueueingTimeMs:Math.floor((0,_.tv)()).toString()})}})},cm1=function(W){var l=_.TWc(W);
l!=W.currentSnapState_&&(W.currentSnapState_=l,W.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},r$=function(W){this.JSC$13172_networkManager_=W;
this.partCallbacks_=[]};
r$.prototype.getCacheKeyForEndpoint=function(W){return _.s2z(W,!1)};
r$.prototype.onPartsCallback_=function(W){this.partCallbacks_.forEach(function(l){W&&l(W)})};
var RS=function(W,l,V){r$.call(this,W);this.player_=l;this.autoplayData_=V};
_.v(RS,r$);RS.prototype.getCacheKeyForEndpoint=function(W){return _.s2z(W,!!this.autoplayData_)};
RS.prototype.getTempData=function(W,l){l=l.timeBeforeNextVideo;W={itct:W.clickTrackingParams,lact:_.sL(),pbis:l,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(W.autonav=1);return W};
RS.prototype.getXhrParams=function(W){return Object.assign({pbj:"prefetch"},W)};
RS.prototype.getParams=function(W){W={frags:W.fragmentsRequested.join(",")};_.U("kevlar_droppable_prefetchable_requests")&&(W.prefetch=1);return W};
var Blc=function(W){W.playerEvents_.forEach(function(l){W.player.removeEventListener(l.eventName,l.callback)});
W.playerEvents_.length=0},t0=function(W,l,V){this.player=W;
this.JSC$13182_taskManager=l;this.prefetchDelay=V;this.completionResolver_=null;this.playerEvents_=[]};
t0.prototype.start=function(){var W=this;this.completionResolver_=_.yH();_.xS(this.completionResolver_.promise,function(){Blc(W);W.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var dPs=function(W,l,V){W.player.addEventListener(l,V);W.playerEvents_.push({eventName:l,callback:V})},Jms={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},DPc={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},UPe=function(W,l,V){t0.call(this,W,l,V);this.cueId_="playbackTrigger-"+Math.random()};
_.v(UPe,t0);
UPe.prototype.prepareTrigger=function(W){var l=this,V=this.player.getDuration(),f=this.player.getVideoData(),r=f.isLive&&f.hasProgressBarBoundaries;if(r&&f.progressBarEndPositionUtcTimeMillis){var R=f.progressBarEndPositionUtcTimeMillis/1E3;isNaN(R)||(V=R)}var y=0;this.prefetchDelay>=0?r?f.progressBarStartPositionUtcTimeMillis&&(f=f.progressBarStartPositionUtcTimeMillis/1E3,isNaN(f)||(y=f+this.prefetchDelay)):y=this.prefetchDelay:y=V+this.prefetchDelay;r?this.player.addUtcCueRange(this.cueId_,y,V):
this.player.addCueRange(this.cueId_,y,V);_.xS(W.promise,function(){l.player.removeCueRange(l.cueId_)});
dPs(this,"onCueRangeEnter",function(P){P==l.cueId_&&W.resolve(V-y)})};
var uA2=function(W,l){W.fragmentConfiguration_[l].requiredKeys.every(function(V){return!!W.prefetchedData_[V]})&&(W.validatedFragments_.push(l),l=W.missingFragments_.indexOf(l),l!==-1&&W.missingFragments_.splice(l,1))},kk5=function(W){W.prefetchedFragments_.forEach(function(l){uA2(W,l)})},vPL=function(W,l,V){this.pageFragments_=W;
this.prefetchedFragments_=l;this.fragmentConfiguration_=DPc;this.prefetchedData_=V;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;kk5(this)},HtY=function(){},KHN=function(W){this.JSC$13196_playlistManager_=W};
_.v(KHN,HtY);KHN.prototype.getPrefetchEndpoint=function(){return this.JSC$13196_playlistManager_.getAutoplayEndpoint()};
var FH5=function(W){this.autonavEndpoints_=W};
_.v(FH5,HtY);FH5.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var GkH=function(W,l,V,f,r){this.autonavEndpoints=W;this.foregroundTrigger=l;this.backgroundTrigger=V;this.pageType=f;this.isInPlaylist=r},btN=function(W,l){if(W.webPrefetchData&&W.webPrefetchData.navigationEndpoints&&W.webPrefetchData.navigationEndpoints.length){W=W.webPrefetchData.navigationEndpoints;
var V=_.k(W[0],_.Bh);if(V.watchEndpointSupportedPrefetchConfig&&V.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var f=V.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;V=f.playbackRelativeSecondsPrefetchCondition;V=typeof V==="number"&&Math.abs(V)<l.videoDuration?V:void 0;f=f.countdownUiRelativeSecondsPrefetchCondition;f=typeof f!=="number"||_.U("prefetch_job_config_cleanup_ks")&&l.inPlaylist?void 0:f;if(typeof f==="number")return new GkH(W,l.makeUpNextTrigger(f),l.makePlaybackTrigger(f),
"watch",l.inPlaylist);if(typeof V==="number")return new GkH(W,l.makePlaybackTrigger(V),null,"watch",l.inPlaylist)}}},p01=function(W){return W.prefetchJobConfig_.backgroundTrigger?_.ah(_.a3z)()==0?W.prefetchJobConfig_.backgroundTrigger:W.prefetchJobConfig_.foregroundTrigger:W.prefetchJobConfig_.foregroundTrigger},oPL=function(W){_.Of(document,"visibilitychange",W.onVisibilityChange_,!1,W)},sG=function(W){r$.call(this,W)};
_.v(sG,r$);sG.prototype.getCacheKeyForEndpoint=function(W){return r$.prototype.getCacheKeyForEndpoint.call(this,W)};
sG.prototype.getTempData=function(){return{}};
sG.prototype.getXhrParams=function(W){return W};
sG.prototype.getParams=function(){return{}};
var jmw=function(W,l,V){var f=W.prefetchDelay*1E3;if(Math.abs(f)>l)V.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var r=f,R=l-f;f<0&&(r=l+f,R=Math.abs(f));var y=W.JSC$13182_taskManager.addJob(function(){V.resolve(R/1E3)},10,r);
V.promise.thenCatch(function(){W.JSC$13182_taskManager.cancelJob(y)})}},ImH=function(W,l,V){t0.call(this,W,l,V)};
_.v(ImH,t0);ImH.prototype.prepareTrigger=function(W){var l=this;dPs(this,"onAutonavCoundownStarted",function(V){jmw(l,V,W)})};
var its=function(W){W.pendingPrefetchJob_&&(W.pendingPrefetchJob_.cancel(),W.pendingPrefetchJob_=null)},mPZ=function(W,l,V){if(!W.triggeredTargets.has(l)){var f=_.oUv(W,l);
f.action=V;_.b3I(W,l,f)}},X02=function(W){_.Bb9();
_.VsY("cpt")&&_.Qe(Error("ph"));_.rS.requestAnimationFrame(function(){_.rS.setTimeout(function(){_.Wy("cpt");var l=_.f0("vpl"),V=_.f0("cpt");l&&V&&_.Wy("ol",Math.max(l,V))})});
try{_.Wy("fr_s"),W()}catch(l){_.wv(l)}_.rS.requestAnimationFrame(function(){_.Wy("bcp")})},Tl1=function(W,l){W.serviceEndpointHandlers.push(l)},w01=function(W,l){l=W.pendingPages_.indexOf(l);
l>-1&&W.pendingPages_.splice(l,1)},Am2=function(W,l){var V=_.Mdv.indexOf(l);
V>-1&&_.Mdv.splice(V,1);W.targetPage_==l?(W.abort(),_.OlI(W)):w01(W,l)},Qm4=function(W,l,V,f){l={challenge:l};
V&&(l.webResponse=V);return _.B3(W.innertubeTransportService,l,_.Um(sms),f)},Mlw=function(W,l,V){if(!l.challenge)throw Error("si");
if(l.botguardData&&l.botguardData.program){var f=new rm4;f.initialize(l.botguardData,function(){tlc(f,{atr_challenge:l.challenge}).then(function(r){if(!r)throw Error("ti");return Qm4(W,l.challenge,r,V)}).catch(function(r){_.Qe(r);
return Qm4(W,l.challenge,void 0,V)})},void 0)}else Qm4(W,l.challenge,void 0,V)},Zte=function(W,l,V){var f={};
l.ids&&(f.ids=[].concat(_.QK(l.ids)));l.engagementType&&(f.engagementType=l.engagementType);return _.B3(W.innertubeTransportService,f,_.Um(_.JMc),V).then(function(r){if(!r)throw new _.bP("GetAttestationChallenge returned falsy");Mlw(W,r,V)}).thenCatch(function(r){_.wv(r)})},OtH=function(W,l,V){return new _.Dx(function(f,r){var R;
return _.g(function(y){if(y.nextAddress==1){var P=y.yield,n=l.engagementType,B=l.ids,d={};B=_.L(B!=null?B:[]);for(var J=B.next();!J.done;J=B.next())J=J.value,J.encryptedVideoId?d.encryptedVideoId=J.encryptedVideoId:J.externalChannelId?d.externalChannelId=J.externalChannelId:J.commentId?d.commentId=J.commentId:J.externalOwnerId?d.externalOwnerId=J.externalOwnerId:J.artistId?d.artistId=J.artistId:J.playlistId?d.playlistId=J.playlistId:J.externalPostId?d.externalPostId=J.externalPostId:J.shareId&&(d.shareId=
J.shareId);return P.call(y,UT5(n,d),2)}R=y.yieldResult;if(!R.challenge)return _.Qe(Error("ui")),Zte(W,l,V).then(f,r),y.return();P=R;n={challenge:P.challenge};n.webResponse=P.webResponse;n.engagementType=l.engagementType;n.ids=l.ids;_.B3(W.innertubeTransportService,n,_.Um(sms),V).then(f,r);_.ju(y)})})},vh1=function(W,l){var V,f,r,R;
_.g(function(y){if(y.nextAddress==1){V=_.k(l,_.jrc);if(!(V&&V.listId&&W.response&&W.response.playingVideoId)||W.listId!==V.listId)return y.return();W.index===void 0&&(W.index=0);return y.yield(_.ATk(W.JSC$12924_playlistNetworkManager,V.listId,W.index,W.response.playingVideoId),2)}f=y.yieldResult;if(!f)return y.return();r=f.playlistId;R=f.playlistPanelRenderer;W.setPlaylistData(r,R,f.autoplayRenderer);_.ju(y)})},am7=function(W,l,V){var f=W.getParams(V),r=_.zPv(l,f),R=W.getTempData(l,V);
R.endpoint=JSON.stringify(l);_.U("enable_unknown_lact_fix_on_html5")&&(_.tY().resolve(_.OZ),R.lact=_.sL());var y={headers:{"X-YouTube-STS":_.M4("STS"),"x-youtube-csoc":1}};_.Ue(r,R);return new _.Dx(function(P,n){var B=W.getXhrParams(f),d;_.U("kevlar_cache_on_ttl_player")&&(d=_.lH.instance);d&&_.tcZ(d,l)?_.chZ(d,l,R,window.location.href).then(function(J){J?P(J):n()},n):_.TXI(W.JSC$13172_networkManager_,l,B,W.onPartsCallback_.bind(W),y).then(function(J){J?P(J):n()},n)})},zDe=function(W,l){W.triggerPromise_=
l.start();
W.triggerPromise_.then(function(V){var f=W.prefetchEndpointProvider_.getPrefetchEndpoint();if(f){var r=Jms[W.prefetchJobConfig_.pageType].prefetchedFragments;W.prefetchRequestPromise_=am7(W.JSC$13208_networkPrefetchRequest_,f,{fragmentsRequested:r,timeBeforeNextVideo:V});W.prefetchResponseCacheKey_=W.JSC$13208_networkPrefetchRequest_.getCacheKeyForEndpoint(f);oPL(W);W.prefetchRequestPromise_.then(function(R){W.storePrefetchedDataCallback_(W.prefetchResponseCacheKey_,R);if(_.U("web_prefetch_preload_video")&&
r.length===1&&r[0]==="pl"&&R&&!R.playerAds&&!R.adPlacements){var y=_.k(f,_.N$),P=y!=null,n={raw_player_response:R,watch_endpoint:y};(R=_.tY().resolve(P?_.UQ1:_.vp))&&f&&R.then(function(B){P&&_.U("web_queue_preload_video")?(n.prefer_gapless=!0,B.queueNextVideo(n)):B.preloadVideoByPlayerVars(n)})}})}})},Lr=function(W,l,V,f){this.prefetchEndpointProvider_=W;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=l;this.prefetchJobConfig_=V;this.JSC$13208_networkPrefetchRequest_=f;this.prefetchResponseCacheKey_=null};
Lr.prototype.enqueue=function(){this.triggerPromise_||(zDe(this,p01(this)),_.YJ(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
Lr.prototype.resolve=function(){this.cancel()};
Lr.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.");oPL(this)};
Lr.prototype.onVisibilityChange_=function(){var W=this;_.ah(_.a3z)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){W.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||zDe(this,p01(this))};
var Nlw=function(W,l,V,f,r){l&&(l==null?0:l.videoId)&&V&&V.entries&&_.U("kevlar_enable_shorts_prefetch_in_sequence")&&(its(W),l=V.entries.map(function(R){var y;return(y=_.k(R.command,_.N$))==null?void 0:y.videoId}).indexOf(l.videoId),V=V.entries[l+1],V!=null&&V.command&&!_.k(V==null?void 0:V.command,_.Pm)&&(f=new GkH([V.command],new UPe(f,_.w8,1),null,"shorts",!1),W.pendingPrefetchJob_=new Lr(new FH5(f.autonavEndpoints),function(){return!1},f,new sG(r)),W.pendingPrefetchJob_.enqueue()))},YHH=function(W,
l,V,f,r,R){var y=_.IH.getInstance();
if(!_.U("block_all_player_prefetch_requests")){its(W);var P=!!V.getPlaylistId(),n=V.getVideoData().isLive&&V.getVideoData().hasProgressBarBoundaries;if((y.getState()==2||P||n)&&(!V.getVideoData().isLive||n)){y={inPlaylist:P,videoDuration:V.getDuration(),makeUpNextTrigger:function(d){return new ImH(V,_.w8,d)},
makePlaybackTrigger:function(d){return new UPe(V,_.w8,d)}};
var B=btN(l,y);B&&(W.pendingPrefetchJob_=new Lr(B.isInPlaylist?new KHN(r):new FH5(B.autonavEndpoints),function(d,J){J=new vPL(Jms[B.pageType].pageFragments,Jms[B.pageType].prefetchedFragments,J);return _.Dxk(J)?(W.prefetchCache_.set(d,J),!0):!1},B,new RS(f,V,R,r)),W.pendingPrefetchJob_.enqueue())}}},xPZ=function(){var W=_.kC();
W.signals.parkOrScheduleJob(function(){var l=W.storage;if(l.storage)if(P44(l)){var V=l.getPlaylistId();l=nPY(l);V=!!V&&l!==void 0}else l.clear(),V=!1;else V=!1;if(V){V=W.pageManager.isOnWatch();a:{var f=W.storage;if(f.storage&&P44(f)&&(l=f.getPlaylistId(),f=nPY(f),l&&f!==void 0)){V={recoverPlaylistCommand:{listId:l,index:f,openMiniplayer:!V,openListPanel:V,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}V=void 0}V&&_.rP(W.JSC$12924_actionRouter,[V],null)}},0,"ma")},eD1=function(W,l,V,f,r,R){var y=
_.GY(7111);
_.aH(W.JSC$18321_screenManager,y,R?_.zG(R):void 0);_.Nl(W.JSC$18321_screenManager,y,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:f,offlineId:l,offlineabilityFormatType:V,isDefaultFormatType:r==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:r}})},qHc=function(W,l,V,f,r){var R,y,P,n,B;
return _.g(function(d){if(d.nextAddress==1)return d.yield(W.JSC$18321_playerApiPromise,2);R=d.yieldResult;eD1(W,l,V,"OFFLINE_OBJECT_TYPE_PLAYLIST",f,r);if(P=_.Ln1[W.entityTypeMap.listEntityType])B={},y=(B[P]={maximumDownloadQuality:(n=V)!=null?n:void 0},B);return d.yield(R.queueOfflineAction(l,W.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",y),0)})},hDc=function(W,l){var V,f,r,R;
return _.g(function(y){if(y.nextAddress==1)return y.yield(W.JSC$18321_persistentStorePromiseAccessor(),2);if(y.nextAddress!=3){V=y.yieldResult;if(!V)return _.Qe(new _.bP("PES is undefined")),y.return();f=_.i_(l,"downloadStatusEntity");return y.yield(gPs(V,f,"downloadStatusEntity"),3)}r=y.yieldResult;return y.return((R=r)==null?void 0:R.downloadState)})},SHH=function(W,l,V,f,r){var R,y,P,n,B,d;
return _.g(function(J){switch(J.nextAddress){case 1:return J.yield(W.JSC$18321_playerApiPromise,2);case 2:R=J.yieldResult;eD1(W,l,V,"OFFLINE_OBJECT_TYPE_VIDEO",f,r);if(P=_.Ln1[W.entityTypeMap.singleEntityType])B={},y=(B[P]={maximumDownloadQuality:(n=V)!=null?n:void 0},B);return J.yield(hDc(W,l),3);case 3:d=J.yieldResult;if(d!=="DOWNLOAD_STATE_USER_DELETED"){J.jumpTo(4);break}return J.yield(W.deleteVideo(l),4);case 4:return J.yield(R.queueOfflineAction(l,W.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
y),0)}})},EPw=function(W,l,V,f,r){return _.g(function(R){return R.nextAddress==1?R.yield(W.deleteVideo(l,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):R.yield(SHH(W,l,V,f,r),0)})},$P7=function(W,l,V){var f,r;
return _.g(function(R){if(R.nextAddress==1)return R.yield(W.JSC$18321_playerApiPromise,2);f=R.yieldResult;r=_.i_(l,"mainVideoDownloadStateEntity");return R.yield(f.updateDownloadState(r,V),0)})},NHw=function(W){var l=_.tY().resolve(_.NZ);
return _.g(function(V){if(V.nextAddress==1)return l.previousDownloadStateForVideo[W]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&l.previousDownloadStateForVideo[W]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?V.jumpTo(2):V.yield(l.resumeVideoDownload(W),2);if(V.nextAddress!=4)return V.yield($P7(l,W,l.previousDownloadStateForVideo[W]),4);delete l.previousDownloadStateForVideo[W];_.ju(V)})},aye=function(W,l){var V;
return _.g(function(f){if(f.nextAddress==1)return f.yield(W.JSC$18321_playerApiPromise,2);V=f.yieldResult;return f.yield(V.queueOfflineAction(l,W.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},MJH=function(){var W=_.tY().resolve(_.NZ),l,V;
return _.g(function(f){if(f.nextAddress==1)return f.yield(W.JSC$18321_playerApiPromise,2);if(f.nextAddress!=3)return l=f.yieldResult,V={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},f.yield(l.queueOfflineAction("!*$_ALL_ENTITIES_!*$",W.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",V),3);var r=W.JSC$18321_commandHandler,R=r.resolveCommand,y=_.wg("DELETING_ALL",void 0,"Downloads are being deleted");R.call(r,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Hy(y)}},
popupType:"TOAST"}});_.ju(f)})},WZ4=function(W,l){var V,f,r,R,y,P;
return _.g(function(n){if(n.nextAddress==1)return n.yield(W.JSC$18321_persistentStorePromiseAccessor(),2);if(n.nextAddress!=3)return V=n.yieldResult,V?n.yield(gPs(V,_.qd,"downloadsPageViewConfigurationEntity"),3):(_.Qe(new _.bP("PES is undefined")),n.return());r=(f=n.yieldResult)!=null?f:{};P=(y=(R=r)==null?void 0:R.downloadsUpsellBannerVisibility)!=null?y:{};return P.visibleWithConnection?n.yield(l.refreshAllStaleEntities(0),0):n.jumpTo(0)})},lbN=function(W){var l,V;
return _.g(function(f){if(f.nextAddress==1)return f.yield(W.JSC$18321_prefStorage,2);l=f.yieldResult;return f.return((V=l)==null?void 0:V.get("sdois"))})},VPY=function(W){var l,V,f,r,R,y;
return _.g(function(P){if(P.nextAddress==1)return P.yield(W.JSC$18321_persistentStorePromiseAccessor(),2);if(P.nextAddress!=3){l=P.yieldResult;if(!l)return _.Qe(new _.bP("PES is undefined")),P.return();V=_.i_("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return P.yield(gPs(l,V,"settingEntity"),3)}f=P.yieldResult;return P.return((y=(r=f)==null?void 0:(R=r.settingOptionValue)==null?void 0:R.boolValue)!=null?y:!1)})},fb5=function(W,l){var V,f,r,R;
return _.g(function(y){switch(y.nextAddress){case 1:return((V=l)==null?void 0:V.formatType)===void 0?y.return():y.yield(W.JSC$18321_prefStorage,2);case 2:f=y.yieldResult;if(f===void 0)return y.return();if(((r=l)==null?void 0:r.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return y.yield(f.set("lmqf",l.formatType),8);if(((R=l)==null?void 0:R.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){y.jumpTo(0);break}return y.yield(f.set("lmqf",l.formatType),6);case 6:return y.yield(f.set("lmqflst",
Math.floor((0,_.tv)())),0);case 8:return y.yield(f.remove("lmqflst"),0)}})},rjL=function(W){var l,V;
return _.g(function(f){switch(f.nextAddress){case 1:return f.yield(W.JSC$18321_prefStorage,2);case 2:l=f.yieldResult;if(!l){f.jumpTo(3);break}return f.yield(l.get("lmqflst"),4);case 4:if(V=f.yieldResult,V!==void 0)return f.return(V);case 3:return f.return(0)}})},RpY=function(W){var l,V;
return _.g(function(f){switch(f.nextAddress){case 1:return f.yield(W.JSC$18321_prefStorage,2);case 2:l=f.yieldResult;if(l===void 0){f.jumpTo(3);break}return f.yield(l.get("lmqf"),4);case 4:if(V=f.yieldResult,V!==void 0)return f.return(V);case 3:return f.return("SD")}})},$B1=function(W,l,V){var f,r,R,y,P,n,B,d;
_.g(function(J){switch(J.nextAddress){case 1:return J.yield(fb5(W,(f=l)==null?void 0:f.actionParams),2);case 2:r=l.playlistId;if(!r)return J.return();if(l.action==="ACTION_ADD")return((y=l.actionParams)==null?0:y.formatType)?J.yield(qHc(W,r,l.actionParams.formatType,(d=l.actionParams)==null?void 0:d.settingsAction,V),0):J.yield(W.offlineWebClientEligibility,14);if(l.action==="ACTION_REMOVE_WITH_PROMPT"){var D=W.JSC$18321_commandHandler,u=D.resolveCommand,H=_.M4("INNERTUBE_CLIENT_NAME");var p=H===
"WEB_REMIX"?_.wg("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.wg("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var X=H==="WEB_REMIX"?[_.wg("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];H=H==="WEB_REMIX"?_.wg("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.wg("DELETE",void 0,"Delete");var w=_.wg("CANCEL",void 0,"Cancel");p=uN1(p,X,H,w,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:r});u.call(D,{openPopupAction:p});return J.return()}if(l.action===
"ACTION_REMOVE")return J.yield(aye(W,r),0);if(l.action!=="ACTION_SYNC"){J.jumpTo(0);break}return J.yield(W.JSC$18321_playerApiPromise,9);case 9:return R=J.yieldResult,J.yield(R.queueOfflineAction(r,W.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return P=J.yieldResult,J.yield(RpY(W),15);case 15:return n=J.yieldResult,J.yield(rjL(W),16);case 16:B=J.yieldResult,l.onAddCommand&&W.JSC$18321_commandHandler.resolveCommand(l.onAddCommand,{form:{preferredFormatType:n,
offlineWebClientEligibility:P,lastOfflineQualitySettingsSavedMs:B.toString()}}),J.jumpTo(0)}})},S_e=function(W,l,V){var f,r,R,y,P,n,B,d,J,D,u,H,p,X;
_.g(function(w){switch(w.nextAddress){case 1:return w.yield(fb5(W,(f=l)==null?void 0:f.actionParams),2);case 2:r=l.videoId;if(!r)return w.return();if(l.action==="ACTION_REMOVE_WITH_PROMPT"){var O=W.JSC$18321_commandHandler,S=O.resolveCommand,N=_.M4("INNERTUBE_CLIENT_NAME");var x=N==="WEB_REMIX"?_.wg("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.wg("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var Y=N==="WEB_REMIX"?[_.wg("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];N=N==="WEB_REMIX"?_.wg("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.wg("DELETE",void 0,"Delete");var W8=_.wg("CANCEL",void 0,"Cancel");x=uN1(x,Y,N,W8,{signal:"DELETE_DOWNLOAD",targetId:r});S.call(O,{openPopupAction:x});return w.return()}if(l.action==="ACTION_ADD")return((D=l.actionParams)==null?0:D.formatType)?w.yield(SHH(W,r,l.actionParams.formatType,(X=l.actionParams)==null?void 0:X.settingsAction,V),0):w.yield(W.offlineWebClientEligibility,23);if(l.action==="ACTION_RETRY")return w.yield(RpY(W),
19);if(l.action==="ACTION_PAUSE")return w.yield(W.pauseVideoDownload(r),0);if(l.action==="ACTION_RESUME")return w.yield(W.resumeVideoDownload(r),0);if(l.action!=="ACTION_REMOVE"){w.jumpTo(0);break}return w.yield(hDc(W,r),13);case 13:return R=w.yieldResult,W.previousDownloadStateForVideo[r]=(y=R)!=null?y:"DOWNLOAD_STATE_UNKNOWN",w.yield($P7(W,r,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(W.previousDownloadStateForVideo[r]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&W.previousDownloadStateForVideo[r]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){w.jumpTo(15);break}return w.yield(W.pauseVideoDownload(r),15);case 15:O=_.wg("DELETED_VIDEO",void 0,"Video deleted from downloads.");S=_.wg("UNDO_ACTION",void 0,"Undo");x=_.wg("CLOSE",void 0,"Close");P={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Hy(O),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Hy(S),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:r}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:O+" "+S}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:r}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:x}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};W.JSC$18321_commandHandler.resolveCommand(P);
w.jumpTo(0);break;case 19:n=w.yieldResult;n==="UNKNOWN_FORMAT_TYPE"&&(n="SD");B="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((d=l.actionParams)==null?0:d.formatType)n=l.actionParams.formatType,B=(J=l.actionParams)==null?void 0:J.settingsAction;return w.yield(EPw(W,r,n,B,V),20);case 20:return w.return();case 23:return u=w.yieldResult,w.yield(RpY(W),24);case 24:return H=w.yieldResult,w.yield(rjL(W),25);case 25:p=w.yieldResult,l.onAddCommand&&W.JSC$18321_commandHandler.resolveCommand(l.onAddCommand,
{form:{preferredFormatType:H,offlineWebClientEligibility:u,lastOfflineQualitySettingsSavedMs:p.toString()}}),w.jumpTo(0)}})},tPY=function(W,l){var V,f,r,R,y,P,n;
return _.g(function(B){if(B.nextAddress==1)return B.yield(W.JSC$18321_persistentStorePromiseAccessor(),2);V=B.yieldResult;if(!V)return _.Qe(new _.bP("PES is undefined")),B.return();if((f=l)==null||!f.settingItemId)return B.return();r=l;R=r.settingItemId;y=r.boolValue;P=_.i_(R,"settingEntity");n={key:P,settingOptionValue:{boolValue:y}};return B.yield(ymH(V,n),0)})},sQ4=function(W,l){var V,f,r,R,y,P,n;
return _.g(function(B){switch(B.nextAddress){case 1:return B.yield(W.JSC$18321_prefStorage,2);case 2:return V=B.yieldResult,f=_.MT(),B.yield(W.JSC$18321_persistentStorePromiseAccessor(),3);case 3:return r=B.yieldResult,V?r?B.yield(V.get("sdois"),4):(_.Qe(new _.bP("PES is undefined")),B.return()):(_.Qe(new _.bP("prefStorage is undefined")),B.return());case 4:R=B.yieldResult;P=(y=l)==null?void 0:y.boolValue;P===void 0||_.U("kevlar_set_sd_enabled_flag_killswitch")||_.ZY(0,197,!0);R===void 0&&P===void 0&&
(P=!1);if(P===void 0){B.jumpTo(0);break}return B.yield(V.set("sdois",P),6);case 6:return _.U("kevlar_set_sd_enabled_flag_killswitch")||(_.ZY(0,196,P),f.save()),n={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:P},B.yield(tPY(W,n),0)}})},LZ1=function(W,l,V){var f,r,R,y,P;
return _.g(function(n){switch(n.nextAddress){case 1:return n.yield(lbN(W),2);case 2:return f=n.yieldResult,n.yield(sQ4(W,V),3);case 3:return n.yield(lbN(W),4);case 4:return r=n.yieldResult,R=r!==f,n.yield(VPY(W),5);case 5:y=n.yieldResult&&!_.U("kevlar_modern_downloads_page");if((P=!r&&!y)||R)return n.yield(l.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);n.jumpTo(0)}})},xBw=function(){var W=_.tY().resolve(_.NZ),
l;
_.g(function(V){switch(V.nextAddress){case 1:return V.yield(W.JSC$18321_playerApiPromise,2);case 2:l=V.yieldResult;if(!_.U("kevlar_force_refresh_smart_downloads")){V.jumpTo(3);break}return V.yield(l.refreshAllStaleEntities(0),4);case 4:return V.return();case 3:return V.yield(l.refreshAllStaleEntities(),5);case 5:return V.yield(LZ1(W,l),6);case 6:if(_.U("enable_download_pep_for_premium_countries_web"))return V.yield(WZ4(W,l),0);V.jumpTo(0)}})},lpZ=function(W,l){var V,f;
_.g(function(r){switch(r.nextAddress){case 1:return r.yield(W.JSC$18321_playerApiPromise,2);case 2:V=r.yieldResult;switch((f=l)==null?void 0:f.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(LZ1(W,V,l),6);case 6:r.jumpTo(0);break;case 4:return r.yield(tPY(W,l),7);case 7:r.jumpTo(0)}})},yjL=function(W,l){var V,f,r;
return _.g(function(R){if(R.nextAddress==1)return R.yield(W.JSC$18321_persistentStorePromiseAccessor(),2);if(R.nextAddress!=3){V=R.yieldResult;if(!V)return _.Qe(new _.bP("PES is undefined")),R.return(!1);if(!l)return R.return(!1);f=_.i_(l,"mainVideoEntity");return R.yield(gPs(V,f,"mainVideoEntity"),3)}r=R.yieldResult;return R.return(r!==void 0)})},fp1=function(W){var l=_.tY().resolve(_.NZ),V,f,r,R,y,P,n,B,d,J,D;
_.g(function(u){switch(u.nextAddress){case 1:return u.yield(l.JSC$18321_playerApiPromise,2);case 2:V=u.yieldResult;r=(f=W)==null?void 0:f.actions;if(!r)return u.return();R=_.L(r);y=R.next();case 3:if(y.done){u.jumpTo(0);break}P=y.value;B=n=void 0;if(!(((n=P)==null?0:n.entityKey)&&((B=P)==null?0:B.actionType))){u.jumpTo(4);break}d=_.p0(P.entityKey);J=d.entityId;D=d.entityType;return u.yield(V.queueOfflineAction(J,D,P.actionType),4);case 4:y=R.next(),u.jumpTo(3)}})},gtL=function(W,l){var V,f,r,R,y;
return _.g(function(P){if(P.nextAddress==1)return P.yield(W.JSC$18321_prefStorage,2);if(P.nextAddress!=3)return(V=P.yieldResult)?P.yield(V.get("psi"),3):P.return();f=P.yieldResult;y={isPaused:l,lastSyncTimestamp:(R=(r=f)==null?void 0:r.lastSyncTimestamp)!=null?R:"0"};return P.yield(V.set("psi",y),0)})},t$1=function(W){var l=_.tY().resolve(_.NZ),V,f,r,R,y,P,n,B;
return _.g(function(d){switch(d.nextAddress){case 1:return d.yield(l.JSC$18321_playerApiPromise,2);case 2:V=d.yieldResult;r=((f=W)==null?void 0:f.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((P=W)==null?void 0:P.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":R="!*$_ALL_ENTITIES_!*$";y="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return d.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return d.jumpTo(4)}d.jumpTo(5);break;case 3:return d.yield(gtL(l,r),6);case 6:d.jumpTo(5);break;case 4:return d.yield(yjL(l,(n=W)==null?void 0:n.videoId),7);case 7:d.yieldResult&&(R=(B=W)==null?void 0:B.videoId,y="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");d.jumpTo(5);break;case 5:if(R&&y)return d.yield(V.queueOfflineAction(R,"videoPlaybackPositionEntity",y),0);d.jumpTo(0)}})},PKZ=function(W,l){var V;
l!==1||((V=W.currentPersistentToast)==null?0:V.isOpened())?W.openToast():W.currentPersistentToast=void 0},ntZ=function(W,l){var V;
return(V=W.transitionTasksMap.get(l))!=null?V:[]},CKY=function(W,l){var V=[];
W.elementTasksMap.forEach(function(f){(f=f.get(l))&&V.push(f)});
return V},cjs=function(W,l,V,f,r){r=r===void 0?{}:r;
var R=l.defaultViewTransitionOptions;return Object.assign({},R,r,{beforeTransition:function(){f.forEach(function(B){B.beforeTransition()});
var y;(y=R.beforeTransition)==null||y.call(R);var P,n;(n=(P=r).beforeTransition)==null||n.call(P);V.forEach(function(B){B.beforeTransition()})},
afterTransition:function(){f.forEach(function(B){B.afterTransition()});
var y;(y=R.afterTransition)==null||y.call(R);var P,n;(n=(P=r).afterTransition)==null||n.call(P);V.forEach(function(B){B.afterTransition()})},
ignoredErrors:W.config.ignoredErrors})},B5N=function(W,l,V){W.transitionTasksMap.has(l)?W.transitionTasksMap.get(l).push(V):(W=new _.bP("Transition task registered for unknown transition type",l),_.wv(W))},dG2=function(W,l,V){if(W.transitionTasksMap.has(l)){var f=W.transitionTasksMap.get(l).filter(function(r){return r!==V});
W.transitionTasksMap.set(l,f)}},JjZ=function(W,l){var V=ntZ(W,l);
V=_.L(V);for(var f=V.next();!f.done;f=V.next())f=f.value,f.runOnce&&dG2(W,l,f);W.elementTasksMap.forEach(function(r,R){r.forEach(function(y,P){y.runOnce&&l===P&&(r.delete(P),r.size===0&&W.elementTasksMap.delete(R))})})},DGN=function(W,l,V){var f,r,R,y,P,n,B,d,J;
_.g(function(D){if(D.nextAddress==1){if(W.config.disableAllTransitions)return D.return(l());if((f=V)==null||!f.transitionType)return D.return(_.yCw(l,Object.assign({},(r=V)==null?void 0:r.viewTransitionOptions,{ignoredErrors:W.config.ignoredErrors})));R=V;y=R.transitionType;P=R.viewTransitionOptions;n=W.config.transitionConfigs.get(y);if(!n)return D.return(l());B=ntZ(W,y);d=CKY(W,y);J=_.yCw(l,cjs(W,n,B,d,P));return D.yield(J,2)}JjZ(W,y);_.ju(D)})},UGw=function(){var W,l,V,f;
return _.g(function(r){if(r.nextAddress==1)return W=navigator,(l=W.storage)!=null&&l.persisted?r.yield((V=W.storage)==null?void 0:V.persisted(),2):r.return("PERSISTED_STATE_NOT_SUPPORTED");f=r.yieldResult;return r.return(f?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},uew=function(){var W,l,V,f;
return _.g(function(r){if(r.nextAddress==1)return W=navigator,(l=W.storage)!=null&&l.persist?r.yield((V=W.storage)==null?void 0:V.persist(),2):r.return("PERSISTED_STATE_NOT_SUPPORTED");f=r.yieldResult;return r.return(f?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},kyY=function(){var W,l;
return _.g(function(V){switch(V.nextAddress){case 1:return W="PERSISTED_STATE_NOT_SUPPORTED",_.HG(V,2),V.yield(UGw(),4);case 4:W=V.yieldResult;if(W!=="PERSISTED_STATE_NOT_GRANTED"){V.jumpTo(5);break}return V.yield(uew(),6);case 6:W=V.yieldResult;case 5:_.qL(V,3);break;case 2:l=_.pc(V),l instanceof Error&&_.wv(l);case 3:return _.XC("persistentStorageStateChecked",{persistedState:W}),V.return(W)}})},vtw=function(W,l){var V=[],f=!1;
l=_.L(l);for(var r=l.next();!r.done;r=l.next()){r=W.moduleRegistry[r.value];var R=void 0,y=void 0;((R=r)==null?0:R.isFetching)&&((y=r)==null?0:y.resolver)?(V.push(r.resolver.promise),f=!0):(r=new _.mg,r.resolve(void 0),V.push(r.promise))}return f?Promise.all(V):void 0},H42=function(W,l,V){if(W.isAnyTransitionEnabled){var f={beforeTransition:function(){V(!0);
l.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){l.style.viewTransitionName&&(l.style.viewTransitionName="",V(!1))}};
B5N(W.viewTransitionCoordinator,"slide",f);B5N(W.viewTransitionCoordinator,"lockup-to-watch",f);B5N(W.viewTransitionCoordinator,"watch-next-appears",f);B5N(W.viewTransitionCoordinator,"learning-journey",f)}},KZ5=function(W,l){W.isBrowseTransitionEnabled?DGN(W.viewTransitionCoordinator,l,{transitionType:"slide"}):(l(),Promise.resolve())},FZc=function(W,l){W.isLockupToWatchTransitionEnabled?DGN(W.viewTransitionCoordinator,l,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){W.registeredLockupThumbnail=void 0;W.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(l(),Promise.resolve())},Gy2=function(W,l){W.isLockupToWatchTransitionEnabled?DGN(W.viewTransitionCoordinator,l,{transitionType:"watch-next-appears"}):(l(),Promise.resolve())},b42=function(W,l){W.isLearningJourneyTransitionEnabled?DGN(W.viewTransitionCoordinator,l,{transitionType:"learning-journey"}):(l(),Promise.resolve())},pF1=function(W,l,V){if(W.isInitialized()){var f=
$i(V),r=f==="watch";
f=f==="shorts";var R=$i(l)==="watch";if(r)R||(W.backgroundPageData=l),W.watchPipMode&&R||W.deactivate(V.endpoint);else if(f){if($i(l)!=="shorts"){var y;(y=W.getPlayerElement())==null||y.pause()}}else R&&!W.watchPipMode&&(vu4(l,V)?(W.watchWhileMode&&_.ucw(W,!1),_.c4Y(W,l)):W.isMiniplayerActive()&&W.watchWhileMode&&W.deactivate());R&&_.vWc(W);W.shortsPipMode&&!f&&(window.focus(),W.deactivate());if(W.pictureInPictureEnabled())if(f&&W.shortsPipEnabled||r&&W.watchPipEnabled)_.hvS(W.handleMediaSessionPipActivation);
else if(!W.isMiniplayerActive()&&(W.shortsPipEnabled||W.watchPipEnabled)&&window.documentPictureInPicture&&_.jv()&&_.cxJ("Chromium")>=120){W=_.qoz().mediaSession;try{W.setActionHandler("enterpictureinpicture",null)}catch(P){}}}},ot2=function(W,l){var V,f;
_.g(function(r){if(r.nextAddress==1){if(!W||!W.navigationEndpoint)return r.return();_.hJ().lockupActivation=!0;var R;l?R=_.Bl(_.wg("QUEUE",void 0,"Queue")):R=W.longBylineText;f=(V=R)&&W.title?{miniplayerTitle:W.title,miniplayerSubtitle:V,playlistData:null}:void 0;return r.yield(_.oy9(_.tY().resolve(_.Sl),W.navigationEndpoint,!0,f),2)}_.hJ().userActivation=!0;_.ju(r)})},UeL=function(W,l){var V,f,r,R,y,P;
_.g(function(n){if(n.nextAddress==1){V=_.k(l,_.ogc);if(!V||!V.listId)return n.return();W.index=V.index||W.index||0;f=W.response&&W.response.playingVideoId||void 0;return n.yield(_.ATk(W.JSC$12924_playlistNetworkManager,V.listId,W.index,f),2)}r=n.yieldResult;if(!r)return n.return();R=r.playlistId;y=r.playlistPanelRenderer;!W.queueProxy&&R&&y&&R.startsWith("TLPQ")&&(W.queueProxy=new _.C6(W.JSC$12924_playlistNetworkManager,R,W.setPlaylistData.bind(W),W.clearQueue.bind(W),_.$D4(y),W.storage));if(V.openMiniplayer&&
(P=_.W4v(y))&&!W.pageManager.isOnWatch()){var B=P,d=V.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";W.isMiniplayerActive()?W.openToast(B):ot2(B,d)}W.setPlaylistData(R,y,r.autoplayRenderer);_.ju(n)})},des=function(W,l){var V=_.kC();
V.index===void 0&&(V.index=0);V.temporaryItems.push.apply(V.temporaryItems,_.QK(W));if((l.videoId||l.videoIds)&&V.index!==void 0&&l.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!V.queueProxy){var f=[];if(V.response){var r=_.tY().resolve(_.Sl).isMiniplayerActive();if(V.response.playlistPanelRenderer&&V.response.playlistId&&!V.response.playlistId.startsWith("TLPQ")){if(V.pageManager.isOnWatch()||r)f=_.$D4(V.response.playlistPanelRenderer)}else V.response.playingVideoId&&!l.openMiniplayer?f.push(V.response.playingVideoId):
r&&V.response.playingVideoId&&l.openMiniplayer&&f.push(V.response.playingVideoId)}V.queueProxy=new _.C6(V.JSC$12924_playlistNetworkManager,"",V.setPlaylistData.bind(V),V.clearQueue.bind(V),f,V.storage);V.queueProxy.JSC$12870_setCurrentIndex(V.index)}V.queueProxy.addVideos(l.videoIds||[l.videoId],l)}C45(V,W);V.response&&_.v3(V,_.H3(V,V.response.autoplayRenderer));V.pageManager.isOnWatch()?V.isMiniplayerActive()&&V.openToast(W[0]):(W=W[0],l=l.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",V.isMiniplayerActive()?
V.openToast(W):ot2(W,l))},jQ1=function(W){var l=_.EM(W);
if(l=="object"||l=="array"){if(typeof W.clone==="function")return W.clone();if(typeof Map!=="undefined"&&W instanceof Map)return new Map(W);if(typeof Set!=="undefined"&&W instanceof Set)return new Set(W);l=l=="array"?[]:{};for(var V in W)l[V]=jQ1(W[V]);return l}return W},yk=function(W,l){return _.PBj(_.jP(W,l,void 0,_.oQ))},g$=function(W,l){return _.t1(_.jP(W,l,void 0,_.oQ))},P5=function(W,l){return _.ieg(_.jP(W,l,void 0,_.oQ))},nr=function(W,l){return _.jP(W,l,void 0,_.oQ,_.eL)},Ib2=_.CM(function(W,
l,V){if(W.nextWireType_!==0)return!1;
_.c$(l,V,_.SP(W.decoder_,_.yZn));return!0},_.Da,_.VR),i4Y=_.CM(function(W,l,V,f){if(W.nextWireType_!==0)return!1;
_.Xe(l,V,f,_.SP(W.decoder_,_.yZn));return!0},_.Da,_.VR),mGe=_.CM(function(W,l,V){if(W.nextWireType_!==1)return!1;
var f=W.decoder_;W=_.$t(f);f=_.$t(f);W=_.Z$(W,f);_.c$(l,V,W);return!0},_.jvJ,_.Jf6),XF2=_.CM(function(W,l,V){if(W.nextWireType_!==5)return!1;
_.c$(l,V,_.$t(W.decoder_));return!0},function(W,l,V){l=_.cZj(l);
l!=null&&(_.B$(W,V,5),_.da(W.encoder_,l))},_.cfY),T5L=_.CM(function(W,l,V){if(W.nextWireType_!==2)return!1;
W=_.Won(W);_.c$(l,V,W===_.bB()?void 0:W);return!0},_.TaF,_.uBx),wFe=_.HMq(function(W,l,V){if(W.nextWireType_!==0&&W.nextWireType_!==2)return!1;
l=_.fM(l,l[_.Le]|0,V);W.nextWireType_==2?_.lWq(W,z24,l):l.push(_.El(W.decoder_));return!0},function(W,l,V){l=_.vkz(_.t1,l,!0);
if(l!=null&&l.length){V=_.Loj(W,V);for(var f=0;f<l.length;f++)_.bMS(W.encoder_,l[f]);_.yfq(W,V)}},_.kg6),Aj4=_.CM(function(W,l,V,f){if(W.nextWireType_!==0)return!1;
_.Xe(l,V,f,_.El(W.decoder_));return!0},_.AOJ,_.kg6),QQ1=function(W){return W.previousElementSibling!==void 0?W.previousElementSibling:_.Xev(W.previousSibling,!1)},MP5=function(W,l){var V=[];
for(l=l||0;l<W.length;l+=2)_.HMe(W[l],W[l+1],V);return V.join("&")},Z4s=function(W,l){var V=arguments.length==2?MP5(arguments[1],0):MP5(arguments,1);
return _.vkM(W,V)},t3w=_.FX(_.Y1),O4w=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(O4w,_.yP);O4w.prototype.getTypeName=function(){return _.aQ(this,1).split("/").pop()};
O4w.prototype.getValue=function(){var W=_.jP(this,2);if(Array.isArray(W)||W instanceof _.yP)throw Error("W");return _.mZ(this,2)};
var eoc=function(){var W=_.oD();this.JSC$9912_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.dd("channel_type"))};
eoc.prototype.increment=function(W){this.JSC$9912_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",W)};
var qDN=function(){var W=_.oD();this.JSC$9915_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.dd("channel_type"))};
qDN.prototype.increment=function(W){this.JSC$9915_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",W)};
var SDN=function(){var W=_.oD();this.JSC$9918_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.dd("channel_type"))};
SDN.prototype.increment=function(W){this.JSC$9918_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",W)};
var ho1=function(){var W=_.oD();this.JSC$9921_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
ho1.prototype.increment=function(){this.JSC$9921_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var E7w=function(){var W=_.oD();this.JSC$9924_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.dd("channel_type"),_.dd("error_type"))};
E7w.prototype.increment=function(W,l){this.JSC$9924_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",W,l)};
var $6w=function(){var W=_.oD();this.JSC$9927_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
$6w.prototype.increment=function(){this.JSC$9927_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var WK5=function(){var W=_.oD();this.JSC$9930_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
WK5.prototype.increment=function(){this.JSC$9930_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var F2e=function(){var W=_.oD();this.JSC$9936_streamzService=W;W.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
F2e.prototype.increment=function(){this.JSC$9936_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var abN=function(W){return W.getCount&&typeof W.getCount=="function"?W.getCount():_.Ng(W)||typeof W==="string"?W.length:_.MC.getCount(W)},zp1=function(W,l){if(typeof W.every=="function")return W.every(l,void 0);
if(_.Ng(W)||typeof W==="string")return Array.prototype.every.call(W,l,void 0);for(var V=_.HpZ(W),f=_.DR(W),r=f.length,R=0;R<r;R++)if(!l.call(void 0,f[R],V&&V[R],W))return!1;return!0},N5w=function(W,l,V,f){var r=new _.dg(null);
W&&_.Ur(r,W);l&&_.uc(r,l);V&&_.kg(r,V);f&&_.vD(r,f);return r},Yl5=function(){var W=_.O6&&_.dS(_.Avv,10)>=0,l;
if(l=_.sxS)l=_.dS(_.w2c,10)>=0;var V=_.Gy&&_.dS(_.Avv,85)>=0;return _.vF||W||l||V},xGL=function(W){var l=_.faZ(W);
return l&&Yl5()?-W.scrollLeft:l&&_.x9(W,"overflowX")!="visible"?W.scrollWidth-W.clientWidth-W.scrollLeft:W.scrollLeft},epe=function(W,l){l=Math.max(l,0);
_.faZ(W)?Yl5()?W.scrollLeft=-l:W.scrollLeft=W.scrollWidth-l-W.clientWidth:W.scrollLeft=l},whY=0,ONY=!1;
la.prototype.set=function(W){this.relativeTimeStart_=W};
la.prototype.reset=function(){this.set(_.d5())};
la.prototype.get=function(){return this.relativeTimeStart_};
var qlw=null,hpN=function(){qlw||(qlw=new la)},Sl4=function(){qlw||(qlw=new la)};
_.Jj(Sl4,hpN);_.t=zMZ.prototype;_.t.JSC$11352_buffer_="";_.t.set=function(W){this.JSC$11352_buffer_=""+W};
_.t.append=function(W,l,V){this.JSC$11352_buffer_+=String(W);if(l!=null)for(var f=1;f<arguments.length;f++)this.JSC$11352_buffer_+=arguments[f];return this};
_.t.clear=function(){this.JSC$11352_buffer_=""};
_.t.getLength=function(){return this.JSC$11352_buffer_.length};
_.t.toString=function(){return this.JSC$11352_buffer_};
var EtL=function(){var W={type:"unit",style:"narrow"};this.listType_=W&&W.type?W.type:"conjunction";this.listStyle_=W&&W.style?W.style:"long";this.listSymbols_=h2N;W=0;switch(this.listStyle_){case "short":W=1;break;case "narrow":W=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[W];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[W];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[W];this.listEndPattern_=
this.listSymbols_.AND_END[W];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[W];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[W];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[W];this.listEndPattern_=this.listSymbols_.OR_END[W];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[W],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[W],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[W],this.listEndPattern_=this.listSymbols_.UNIT_END[W]}};
EtL.prototype.format=function(W){return $Gc(this,W)};
var $Gc=function(W,l){var V=l.length;switch(V){case 0:return"";case 1:return String(l[0]);case 2:return W.listTwoPattern_.replace("{0}",String(l[0])).replace("{1}",String(l[1]))}for(var f=W.listStartPattern_.replace("{0}",String(l[0])).replace("{1}",String(l[1])),r=2;r<V-1;++r)f=W.listMiddlePattern_.replace("{0}",f).replace("{1}",String(l[r]));return W.listEndPattern_.replace("{0}",f).replace("{1}",String(l[V-1]))},tEs=function(){var W={style:1};
this.style_=(W==null?void 0:W.style)||0;this.durationSymbols_=_.gF$||_.HkX},WJN=function(W,l){switch(l){default:case "years":return W.durationSymbols_.YEAR;
case "months":return W.durationSymbols_.MONTH;case "weeks":return W.durationSymbols_.WEEK;case "days":return W.durationSymbols_.DAY;case "hours":return W.durationSymbols_.HOUR;case "minutes":return W.durationSymbols_.MINUTE;case "seconds":return W.durationSymbols_.SECOND}},Cr=function(W,l,V){a:{V=WJN(W,V);
switch(W.style_){case 1:if(V.LONG!=void 0){W=V.LONG;break a}case 2:if(V.NARROW!=void 0){W=V.NARROW;break a}default:W=V.SHORT;break a}W=void 0}return W?(new _.YUv("{DURATION_VALUE,plural,"+W+"}")).format({DURATION_VALUE:l}):""};
tEs.prototype.format=function(W){var l=[],V=W.years,f=W.months,r=W.weeks,R=W.days,y=W.hours,P=W.minutes;W=W.seconds;V!=null&&l.push(Cr(this,V,"years"));f!=null&&l.push(Cr(this,f,"months"));r!=null&&l.push(Cr(this,r,"weeks"));R!=null&&l.push(Cr(this,R,"days"));y!=null&&l.push(Cr(this,y,"hours"));P!=null&&l.push(Cr(this,P,"minutes"));W!=null&&l.push(Cr(this,W,"seconds"));return(new EtL).format(l)};
var lh7=!1,Sec=function(W){_.VU.call(this,W.message||W.description||W.name);this.isMissing=W instanceof Vf;this.isTimeout=W instanceof _.QQ&&W.errorCode=="net.timeout";this.isCanceled=W instanceof _.Eg};
_.v(Sec,_.VU);Sec.prototype.name="BiscottiError";var Vf=function(){_.VU.call(this,"Biscotti ID is missing from server")};
_.v(Vf,_.VU);Vf.prototype.name="BiscottiMissingError";var fb=null,y21=function(){try{var W=_.Y2("yt.ads.biscotti.getId_");return W?W():ouZ()}catch(l){return _.eM(l)}},Ru2,VgH=function(W,l){return _.GT({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:W,command:l}})},fhe=function(W){return _.GT({type:"SET_GUIDE_IS_EXPANDED",
payload:W})},rIc=function(W){return _.GT({type:"SET_ONLINE_STATUS",
payload:W})},RE1=function(W,l){return _.GT({type:"SET_TRANSCRIPTION_STATE",
payload:{high:W,low:l}})},tgw=function(W){return _.GT({type:"SET_OVERLAY_STATE",
payload:W})},snw=0,LJ4=function(W,l,V){var f=this;
this.priority=l;this.delay=V;this.jobId=0;this.completionCallback=_.QR;this.wrappedJob=function(){W();f.completionCallback()};
this.id=++snw};
LJ4.prototype.enqueue=function(W){this.completionCallback=W;this.jobId=_.w8.addJob(this.wrappedJob,this.priority,this.delay)};
var c5=function(){_.FZ.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.v(c5,_.FZ);c5.prototype.addJob=function(W,l,V){W=new LJ4(W,l,V);this.taskIdToTask.set(W.id,W);this.isActive?yI7(this,W):this.suspendedTasks.add(W);return W.id};
var yI7=function(W,l){W.scheduledTasks.add(l);l.enqueue(function(){W.scheduledTasks.delete(l)})};
c5.prototype.cancelJob=function(W){(W=this.taskIdToTask.get(W))&&(this.scheduledTasks.delete(W)?_.w8.cancelJob(W.jobId):this.suspendedTasks.delete(W))};
c5.prototype.pause=function(){var W=this;this.isActive=!1;this.scheduledTasks.forEach(function(l){_.w8.cancelJob(l.jobId);W.suspendedTasks.add(l)});
this.scheduledTasks.clear()};
c5.prototype.start=function(){var W=this;this.isActive=!0;this.suspendedTasks.forEach(function(l){yI7(W,l)});
this.suspendedTasks.clear()};
c5.prototype.reset=function(){this.scheduledTasks.forEach(function(W){_.w8.cancelJob(W.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var B5=function(W,l){this.JSC$13056_networkService_=W;this.pageRequestPromise=l};
B5.prototype.fetchData=function(W){gR1(this,this.JSC$13056_networkService_.fetchData(W))};
B5.prototype.postData=function(W,l){gR1(this,this.JSC$13056_networkService_.postData(W,l))};
B5.prototype.requestDataForServiceEndpoint=function(W,l){gR1(this,this.JSC$13056_networkService_.requestDataForServiceEndpoint(W,l))};
var gR1=function(W,l){l.then(W.pageRequestPromise.onSuccess,W.pageRequestPromise.onFailure,W.pageRequestPromise)};
B5.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var d$=function(W){this.buildNetworkRequest_=W;this.pendingRequests_=new Set};
d$.prototype.reset=function(){this.pendingRequests_.forEach(function(W){W.cancel()});
this.pendingRequests_.clear()};
d$.prototype.fetchData=function(W){var l=Pkw(this);l.fetchData(W);return l.pageRequestPromise};
d$.prototype.postData=function(W,l){var V=Pkw(this);V.postData(W,l);return V.pageRequestPromise};
d$.prototype.requestDataForServiceEndpoint=function(W,l){var V=Pkw(this);V.requestDataForServiceEndpoint(W,l);return V.pageRequestPromise};
var Pkw=function(W){var l=W.buildNetworkRequest_();W.pendingRequests_.add(l);var V=function(){W.pendingRequests_.delete(l)};
l.pageRequestPromise.then(V,V);return l},nR2=function(W){var l=new c5;
this.JSC$13063_networkService_=W;this.JSC$13063_taskManager_=l;this.JSC$13063_networkManager_=new d$(this.networkRequestFactory_.bind(this))};
_.t=nR2.prototype;_.t.networkRequestFactory_=function(){return new B5(this.JSC$13063_networkService_,new _.Az(this.JSC$13063_taskManager_))};
_.t.reset=function(){this.JSC$13063_taskManager_.reset();this.JSC$13063_networkManager_.reset()};
_.t.start=function(){this.JSC$13063_taskManager_.start()};
_.t.pause=function(){this.JSC$13063_taskManager_.pause()};
_.t.getTaskManager=function(){return this.JSC$13063_taskManager_};
_.t.getNetworkManager=function(){return this.JSC$13063_networkManager_};
var P_1=null,cWL=[],rG=0,tc=0,RP=null,Cks=!1,sk=null,ddN=void 0,cIL=function(){var W=(0,_.S81)();W&&E1L(W,W.mechanism.__iterator__(!0))},yf=function(W){this.token=W};
yf.getInstance=function(){var W;return _.g(function(l){if(l.nextAddress==1)return l.yield(_.r8(),2);W=l.yieldResult;if(!W)return l.return();yf.instance||(yf.instance=new yf(W));return l.return(yf.instance)})};
var vH1=function(W){var l;return _.g(function(V){if(V.nextAddress==1)return V.yield(Udw(W.token),2);l=V.yieldResult;return V.return(l.clear("resource-manifest-assets"))})},Lb=function(W){this.token=W};
Lb.getInstance=function(){var W;return _.g(function(l){if(l.nextAddress==1)return l.yield(_.r8(),2);W=l.yieldResult;if(!W)return l.return();Lb.instance||(Lb.instance=new Lb(W));return l.return(Lb.instance)})};
var uyH=function(W){var l;return _.g(function(V){if(V.nextAddress==1)return V.yield(Udw(W.token),2);l=V.yieldResult;return V.yield(l.clear("auth"),0)})},aA5=!1,BeN=function(W){_.VU.call(this,W)};
_.v(BeN,_.olM);var d7s="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(" ");d$N()&&d7s.push("details:not(:has(summary))");var D$7=d7s.join(",");var MM7=function(){var W=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return W?parseInt(W[1],10):0},JI1=function(W){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+W)!=-1||document.currentScript.src.indexOf("&"+W)!=-1)},D7H=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},Nm2=function(W){W.length?U7N(W.shift(),function(){Nm2(W)}):OkY()},xa1=function(W){return"chrome-extension://"+W+"/cast_sender.js"},U7N=function(W,
l,V){var f=document.createElement("script");
f.onerror=l;V&&(f.onload=V);_.tL(f,_.Tz(W));(document.head||document.documentElement).appendChild(f)},uzs=function(){var W=MM7(),l=[];
if(W>1){var V=W-1;l.push("//www.gstatic.com/eureka/clank/"+W+"/cast_sender.js");l.push("//www.gstatic.com/eureka/clank/"+V+"/cast_sender.js")}return l},OkY=function(){var W=D7H();
W&&W(!1,"No cast extension found")},zWc=function(){if(kQ5){var W=2,l=D7H(),V=function(){W--;
W==0&&l&&l(!0)};
window.__onGCastApiAvailable=V;U7N("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",OkY,V)}},Zk1=function(){zWc();
var W=uzs();W.push("//www.gstatic.com/eureka/clank/cast_sender.js");Nm2(W)},adc=function(){zWc();
var W=uzs();W.push.apply(W,_.QK(YUL.map(xa1)));W.push("//www.gstatic.com/eureka/clank/cast_sender.js");Nm2(W)},kQ5=JI1("loadCastFramework")||JI1("loadCastApplicationFramework"),YUL=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var vR5=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(vR5,_.yP);var HVs=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(HVs,_.yP);var KJs=function(){var W=new HVs;return _.qG(W,1,3)};var J0=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(J0,_.yP);var Za7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Za7,_.yP);var FJ5=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(FJ5,_.yP);FJ5.prototype.getToken=function(){return _.aQ(this,1)};
FJ5.prototype.setToken=function(W){return _.ft(this,1,W)};
var QDN=function(W){return _.SY(W,3,_.He,_.ns())},MrH=function(W){return _.SY(W,6,_.He,_.ns())};var DC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(DC,_.yP);DC.prototype.getToken=function(){return _.yy(this,FJ5,2)};
DC.prototype.setToken=function(W){return _.b7(this,2,W)};
DC.prototype.getName=function(){return _.aQ(this,6)};
var GQ1=_.FX(DC);var bVH=function(W,l,V){this.requestMessage=W;this.methodDescriptor=l;this.metadata=V};
bVH.prototype.getMetadata=function(){return this.metadata};var ps7=function(W,l){l=l===void 0?{}:l;this.responseMessage=W;this.metadata=l;this.status=null};
ps7.prototype.getMetadata=function(){return this.metadata};
ps7.prototype.getStatus=function(){return this.status};var UG=function(W,l,V,f,r){this.name=W;this.methodType="unary";this.requestType=l;this.responseType=V;this.requestSerializeFn=f;this.responseDeserializeFn=r},oR2=function(W,l,V){V=V===void 0?{}:V;
return new bVH(l,W,V)};
UG.prototype.getName=function(){return this.name};var u6=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(u6,_.yP);u6.prototype.getHeader=function(){return _.yy(this,J0,1)};
u6.prototype.setHeader=function(W){return _.b7(this,1,W)};
u6.prototype.hasHeader=function(){return _.IQ(this,J0,1)};var jn7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(jn7,_.yP);var IhN=new UG("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",u6,jn7,function(W){return W.serialize()},_.FX(jn7));var km=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(km,_.yP);km.prototype.getHeader=function(){return _.yy(this,J0,1)};
km.prototype.setHeader=function(W){return _.b7(this,1,W)};
km.prototype.hasHeader=function(){return _.IQ(this,J0,1)};var iVZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(iVZ,_.yP);var m7w=new UG("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",km,iVZ,function(W){return W.serialize()},_.FX(iVZ));var v5=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(v5,_.yP);v5.prototype.getHeader=function(){return _.yy(this,J0,1)};
v5.prototype.setHeader=function(W){return _.b7(this,1,W)};
v5.prototype.hasHeader=function(){return _.IQ(this,J0,1)};var XsH=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(XsH,_.yP);XsH.prototype.getLink=function(){return _.yy(this,DC,1)};var Te1=new UG("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",v5,XsH,function(W){return W.serialize()},_.FX(XsH));var H5=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(H5,_.yP);H5.prototype.getHeader=function(){return _.yy(this,J0,1)};
H5.prototype.setHeader=function(W){return _.b7(this,1,W)};
H5.prototype.hasHeader=function(){return _.IQ(this,J0,1)};var ws1=new UG("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",H5,DC,function(W){return W.serialize()},GQ1);var AI4=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(AI4,_.yP);var Qnw=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Qnw,_.yP);Qnw.prototype.getUrl=function(){return _.aQ(this,2)};
Qnw.prototype.setUrl=function(W){return _.ft(this,2,W)};var Mg4=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Mg4,_.yP);var ZV1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(ZV1,_.yP);var OVs=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(OVs,_.yP);var EV1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(EV1,_.yP);var Sm4=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Sm4,_.yP);var ahZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(ahZ,_.yP);var RoN=_.FX(ahZ);var zE1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(zE1,_.yP);var NeZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(NeZ,_.yP);_.t=NeZ.prototype;_.t.getHeader=function(){return _.yy(this,J0,1)};
_.t.setHeader=function(W){return _.b7(this,1,W)};
_.t.hasHeader=function(){return _.IQ(this,J0,1)};
_.t.getCompletionUrl=function(){return _.aQ(this,6)};
_.t.getDeviceId=function(){return _.aQ(this,11)};var Yd5=new UG("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",NeZ,ahZ,function(W){return W.serialize()},RoN);var x72=new Set(["SAPISIDHASH","APISIDHASH"]);var eEH=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(eEH,_.yP);eEH.prototype.getMessage=function(){return _.aQ(this,2)};
var qdw=_.FX(eEH);var Kr=function(W,l){this.xhrNodeReadableStream_=W.nodeReadableStream;this.grpcResponseDeserializeFn_=l;this.JSC$19300_xhr_=W.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19300_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&hEN(this)},Vk5=function(W,l){var V=new Sd7;
_.YJ(W.JSC$19300_xhr_,"complete",function(){if(W.JSC$19300_xhr_.isSuccess()){var f=W.JSC$19300_xhr_.getResponseText();var r;if(r=l)r=W.JSC$19300_xhr_,r.JSC$9791_xhr_&&r.isComplete()?(r=r.JSC$9791_xhr_.getResponseHeader("Content-Type"),r=r===null?void 0:r):r=void 0,r=r==="text/plain";if(r){if(!atob)throw Error("ak");f=atob(f)}try{var R=W.grpcResponseDeserializeFn_(f)}catch(P){FO(W,Fg1(new _.qR(13,"Error when deserializing response data; error: "+P+(", response: "+f)),V));return}f=_.$4g(W.JSC$19300_xhr_.getStatus());
ERN(W,$7H(W));f==0?WMe(W,R):FO(W,Fg1(new _.qR(f,"Xhr succeeded but the status code is not 200"),V))}else{f=W.JSC$19300_xhr_.getResponseText();R=$7H(W);if(f){var y=ln2(W,f);f=y.code;r=y.details;y=y.metadata}else f=2,r="Rpc failed due to xhr error. uri: "+String(W.JSC$19300_xhr_.JSC$9791_lastUri_)+", error code: "+W.JSC$19300_xhr_.JSC$9791_lastErrorCode_+", error: "+W.JSC$19300_xhr_.getLastError(),y=R;ERN(W,R);FO(W,Fg1(new _.qR(f,r,y),V))}})},hEN=function(W){W.xhrNodeReadableStream_.on("data",function(l){if("1"in
l){var V=l["1"];
try{var f=W.grpcResponseDeserializeFn_(V)}catch(r){FO(W,new _.qR(13,"Error when deserializing response data; error: "+r+(", response: "+V)))}f&&WMe(W,f)}if("2"in l)for(l=ln2(W,l["2"]),V=0;V<W.onStatusCallbacks_.length;V++)W.onStatusCallbacks_[V](l)});
W.xhrNodeReadableStream_.on("end",function(){ERN(W,$7H(W));for(var l=0;l<W.onEndCallbacks_.length;l++)W.onEndCallbacks_[l]()});
W.xhrNodeReadableStream_.on("error",function(){if(W.JSC$19300_onErrorCallbacks_.length!=0){var l=W.JSC$19300_xhr_.JSC$9791_lastErrorCode_;l!==0||W.JSC$19300_xhr_.isSuccess()||(l=6);var V=-1;switch(l){case 0:var f=2;break;case 7:f=10;break;case 8:f=4;break;case 6:V=W.JSC$19300_xhr_.getStatus();f=_.$4g(V);break;default:f=14}ERN(W,$7H(W));l=_.l1c(l)+", error: "+W.JSC$19300_xhr_.getLastError();V!=-1&&(l+=", http status code: "+V);FO(W,new _.qR(f,l))}})},$7H=function(W){var l={},V=xr2(W.JSC$19300_xhr_);
Object.keys(V).forEach(function(f){l[f]=V[f]});
return l},ln2=function(W,l){var V=2,f={};
try{var r=qdw(l);V=_.Cs(r,1);var R=r.getMessage();_.Pt(r,O4w,3,_.ns()).length&&(f["grpc-web-status-details-bin"]=l)}catch(y){W.JSC$19300_xhr_&&W.JSC$19300_xhr_.getStatus()===404?(V=5,R="Not Found: "+String(W.JSC$19300_xhr_.JSC$9791_lastUri_)):(V=14,R="Unable to parse RpcStatus: "+y)}return{code:V,details:R,metadata:f}};
Kr.prototype.on=function(W,l){W=="data"?this.onDataCallbacks_.push(l):W=="metadata"?this.onMetadataCallbacks_.push(l):W=="status"?this.onStatusCallbacks_.push(l):W=="end"?this.onEndCallbacks_.push(l):W=="error"&&this.JSC$19300_onErrorCallbacks_.push(l);return this};
var G0=function(W,l){l=W.indexOf(l);l>-1&&W.splice(l,1)};
Kr.prototype.removeListener=function(W,l){W=="data"?G0(this.onDataCallbacks_,l):W=="metadata"?G0(this.onMetadataCallbacks_,l):W=="status"?G0(this.onStatusCallbacks_,l):W=="end"?G0(this.onEndCallbacks_,l):W=="error"&&G0(this.JSC$19300_onErrorCallbacks_,l);return this};
Kr.prototype.cancel=function(){this.JSC$19300_xhr_.abort()};
var WMe=function(W,l){for(var V=0;V<W.onDataCallbacks_.length;V++)W.onDataCallbacks_[V](l)},ERN=function(W,l){for(var V=0;V<W.onMetadataCallbacks_.length;V++)W.onMetadataCallbacks_[V](l)},FO=function(W,l){for(var V=0;V<W.JSC$19300_onErrorCallbacks_.length;V++)W.JSC$19300_onErrorCallbacks_[V](l)};
Kr.prototype.cancel=Kr.prototype.cancel;Kr.prototype.removeListener=Kr.prototype.removeListener;Kr.prototype.on=Kr.prototype.on;var Sd7=function(){var W=Error.call(this);this.message=W.message;"stack"in W&&(this.stack=W.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.v(Sd7,Error);var b6=function(W){this.JSC$19309_worker_=W.worker||null;this.JSC$19309_streamBinaryChunks_=W.streamBinaryChunks||!1;this.JSC$19309_credentialsMode_=void 0};
_.Jj(b6,_.ljn);b6.prototype.createInstance=function(){var W=new pr(this.JSC$19309_worker_,this.JSC$19309_streamBinaryChunks_);this.JSC$19309_credentialsMode_&&W.setCredentialsMode(this.JSC$19309_credentialsMode_);return W};
b6.prototype.setCredentialsMode=function(W){this.JSC$19309_credentialsMode_=W};
var pr=function(W,l){_.aj.call(this);this.JSC$19313_worker_=W;this.JSC$19313_streamBinaryChunks_=l;this.JSC$19313_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$19313_responseHeaders_=null;this.JSC$19313_method_="GET";this.JSC$19313_url_="";this.inProgress_=!1;this.JSC$19313_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.Jj(pr,_.aj);pr.prototype.open=function(W,l){if(this.readyState!=0)throw this.abort(),Error("bk");this.JSC$19313_method_=W;this.JSC$19313_url_=l;this.readyState=1;oS(this)};
pr.prototype.send=function(W){if(this.readyState!=1)throw this.abort(),Error("ck");if(this.abortController_.signal.aborted)throw this.abort(),Error("dk");this.inProgress_=!0;var l={headers:this.requestHeaders_,method:this.JSC$19313_method_,credentials:this.JSC$19313_credentialsMode_,cache:void 0,signal:this.abortController_.signal};W&&(l.body=W);(this.JSC$19313_worker_||_.rS).fetch(new Request(this.JSC$19313_url_,l)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
pr.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,jT(this));this.readyState=0};
pr.prototype.handleResponse_=function(W){if(this.inProgress_&&(this.fetchResponse_=W,this.JSC$19313_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19313_responseHeaders_=W.headers,this.readyState=2,oS(this)),this.inProgress_&&(this.readyState=3,oS(this),this.inProgress_)))if(this.responseType==="arraybuffer")W.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.rS.ReadableStream!==
"undefined"&&"body"in W){this.currentReader_=W.body.getReader();if(this.JSC$19313_streamBinaryChunks_){if(this.responseType)throw Error("ek");this.response=[]}else this.response=this.responseText="",this.JSC$19313_textDecoder_=new TextDecoder;fnL(this)}else W.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var fnL=function(W){W.currentReader_.read().then(W.handleDataFromStream_.bind(W)).catch(W.handleSendFailure_.bind(W))};
pr.prototype.handleDataFromStream_=function(W){if(this.inProgress_){if(this.JSC$19313_streamBinaryChunks_&&W.value)this.response.push(W.value);else if(!this.JSC$19313_streamBinaryChunks_){var l=W.value?W.value:new Uint8Array(0);if(l=this.JSC$19313_textDecoder_.decode(l,{stream:!W.done}))this.response=this.responseText+=l}W.done?jT(this):oS(this);this.readyState==3&&fnL(this)}};
pr.prototype.handleResponseText_=function(W){this.inProgress_&&(this.response=this.responseText=W,jT(this))};
pr.prototype.handleResponseArrayBuffer_=function(W){this.inProgress_&&(this.response=W,jT(this))};
pr.prototype.handleSendFailure_=function(){this.inProgress_&&jT(this)};
var jT=function(W){W.readyState=4;W.fetchResponse_=null;W.currentReader_=null;W.JSC$19313_textDecoder_=null;oS(W)};
pr.prototype.setRequestHeader=function(W,l){this.requestHeaders_.append(W,l)};
pr.prototype.getResponseHeader=function(W){return this.JSC$19313_responseHeaders_?this.JSC$19313_responseHeaders_.get(W.toLowerCase())||"":""};
pr.prototype.getAllResponseHeaders=function(){if(!this.JSC$19313_responseHeaders_)return"";for(var W=[],l=this.JSC$19313_responseHeaders_.entries(),V=l.next();!V.done;)V=V.value,W.push(V[0]+": "+V[1]),V=l.next();return W.join("\r\n")};
pr.prototype.setCredentialsMode=function(W){this.JSC$19313_credentialsMode_=W};
var oS=function(W){W.onreadystatechange&&W.onreadystatechange.call(W)};
Object.defineProperty(pr.prototype,"withCredentials",{get:function(){return this.JSC$19313_credentialsMode_==="include"},
set:function(W){this.setCredentialsMode(W?"include":"same-origin")}});var rSw=function(W){var l="";_.MC.forEach(W,function(V,f){l+=f;l+=":";l+=V;l+="\r\n"});
return l},RN1=function(W,l,V){if(_.MC.isEmpty(V))return W;
V=rSw(V);if(typeof W==="string")return _.LU(W,_.ei(l),V);_.$9(W,l,V);return W};var tkc=function(){this.isInputValid_=!0;this.JSC$19318_streamPos_=0;this.leftoverInput_=""};
tkc.prototype.isInputValid=function(){return this.isInputValid_};
tkc.prototype.decode=function(W){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("fk`"+this.JSC$19318_streamPos_+"`stream already broken`"+W);this.leftoverInput_+=W;W=Math.floor(this.leftoverInput_.length/4);if(W==0)return null;try{var l=_.dUS(this.leftoverInput_.slice(0,W*4))}catch(V){throw l=this.leftoverInput_,W=V.message,this.isInputValid_=!1,Error("fk`"+this.JSC$19318_streamPos_+"`"+W+"`"+l);}this.JSC$19318_streamPos_+=W*4;this.leftoverInput_=this.leftoverInput_.slice(W*4);return l};var nb=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19321_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
nb.prototype.isInputValid=function(){return this.state_!=3};
var IS=function(W,l,V,f){W.state_=3;W.errorMessage_="The stream is broken @"+W.JSC$19321_streamPos_+"/"+V+". Error: "+f+". With input:\n"+l;throw Error(W.errorMessage_);};
nb.prototype.acceptsBinaryInput=function(){return!0};
nb.prototype.parse=function(W){function l(n){n&128&&IS(R,y,P,"invalid tag");(n&7)!=2&&IS(R,y,P,"invalid wire type");R.tag_=n>>>3;R.tag_!=1&&R.tag_!=2&&R.tag_!=15&&IS(R,y,P,"unexpected tag");R.state_=1;R.length_=0;R.countLengthBytes_=0}
function V(n){R.countLengthBytes_++;R.countLengthBytes_==5&&n&240&&IS(R,y,P,"message length too long");R.length_|=(n&127)<<(R.countLengthBytes_-1)*7;n&128||(R.state_=2,R.countMessageBytes_=0,typeof Uint8Array!=="undefined"?R.messageBuffer_=new Uint8Array(R.length_):R.messageBuffer_=Array(R.length_),R.length_==0&&r())}
function f(n){R.messageBuffer_[R.countMessageBytes_++]=n;R.countMessageBytes_==R.length_&&r()}
function r(){if(R.tag_<15){var n={};n[R.tag_]=R.messageBuffer_;R.result_.push(n)}R.state_=0}
for(var R=this,y=W instanceof Array?W:new Uint8Array(W),P=0;P<y.length;){switch(R.state_){case 3:IS(R,y,P,"stream already broken");break;case 0:l(y[P]);break;case 1:V(y[P]);break;case 2:f(y[P]);break;default:throw Error("gk`"+R.state_);}R.JSC$19321_streamPos_++;P++}W=R.result_;R.result_=[];return W.length>0?W:null};var baN=function(){this.errorMessage_=null;this.JSC$19324_streamPos_=0;this.base64Decoder_=new tkc;this.pbParser_=new nb};
baN.prototype.isInputValid=function(){return this.errorMessage_===null};
var sjN=function(W,l,V){W.errorMessage_="The stream is broken @"+W.JSC$19324_streamPos_+". Error: "+V+". With input:\n"+l;throw Error(W.errorMessage_);};
baN.prototype.acceptsBinaryInput=function(){return!1};
baN.prototype.parse=function(W){this.errorMessage_!==null&&sjN(this,W,"stream already broken");var l=null;try{var V=this.base64Decoder_.decode(W);l=V===null?null:this.pbParser_.parse(V)}catch(f){sjN(this,W,f.message)}this.JSC$19324_streamPos_+=W.length;return l};var GL2=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19327_streamPos_=0;this.result_=[];this.statusParsed_=!1};
GL2.prototype.isInputValid=function(){return this.errorMessage_===null};
GL2.prototype.acceptsBinaryInput=function(){return!1};
GL2.prototype.parse=function(W){function l(n){R.state_=6;R.errorMessage_="The stream is broken @"+R.JSC$19327_streamPos_+"/"+y+". Error: "+n+". With input:\n";throw Error(R.errorMessage_);}
function V(){R.jsonStreamParser_=new _.oM({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function f(n){if(n)for(var B=0;B<n.length;B++){var d={};d[1]=n[B];R.result_.push(d)}}
function r(n){if(n){(R.statusParsed_||n.length>1)&&l("extra status: "+n);R.statusParsed_=!0;var B={};B[2]=n[0];R.result_.push(B)}}
for(var R=this,y=0;y<W.length;){var P;if(P=R.state_!==2){a:{for(;y<W.length;){if(!_.pd(W[y])){P=!0;break a}y++;R.JSC$19327_streamPos_++}P=!1}P=!P}if(P)return null;switch(R.state_){case 6:l("stream already broken");break;case 0:W[y]==="["?(R.state_=1,y++,R.JSC$19327_streamPos_++):l("unexpected input token");break;case 1:W[y]==="["?(R.state_=2,V()):W[y]===","||W.slice(y,y+5)=="null,"?R.state_=3:W[y]==="]"?(R.state_=5,y++,R.JSC$19327_streamPos_++):l("unexpected input token");break;case 2:P=R.jsonStreamParser_.parse(W.substring(y));
f(P);R.jsonStreamParser_.done()?(R.state_=3,P=R.jsonStreamParser_.JSC$11479_buffer_,R.JSC$19327_streamPos_+=W.length-y-P.length,W=P,y=0):(R.JSC$19327_streamPos_+=W.length-y,y=W.length);break;case 3:W[y]===","||W.slice(y,y+5)=="null,"?(R.state_=4,V(),R.jsonStreamParser_.parse("["),y+=W[y]===","?1:5,R.JSC$19327_streamPos_++):W[y]==="]"&&(R.state_=5,y++,R.JSC$19327_streamPos_++);break;case 4:P=R.jsonStreamParser_.parse(W.substring(y));r(P);R.jsonStreamParser_.done()?(R.state_=5,P=R.jsonStreamParser_.JSC$11479_buffer_,
R.JSC$19327_streamPos_+=W.length-y-P.length,W=P,y=0):(R.JSC$19327_streamPos_+=W.length-y,y=W.length);break;case 5:l("extra input after stream end")}}return R.result_.length>0?(W=R.result_,R.result_=[],W):null};var LM5=function(W){this.JSC$19330_xhr_=W;this.JSC$19330_parser_=null;this.status_=this.JSC$19330_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19330_textDecoder_=null;this.JSC$19330_eventHandler_=new _.nX(this);this.JSC$19330_eventHandler_.listen(this.JSC$19330_xhr_,"readystatechange",this.JSC$19332_readyStateChangeHandler_)},i6=function(W,l){W.status_!=l&&(W.status_=l,W.statusHandler_&&W.statusHandler_())},mU=function(W){W.JSC$19330_eventHandler_.removeAll();
if(W.JSC$19330_xhr_){var l=W.JSC$19330_xhr_;W.JSC$19330_xhr_=null;l.abort();l.dispose()}};
LM5.prototype.getStatus=function(){return this.status_};
LM5.prototype.JSC$19332_readyStateChangeHandler_=function(W){W=W.target;try{if(W==this.JSC$19330_xhr_)a:{var l=_.Ef(this.JSC$19330_xhr_),V=this.JSC$19330_xhr_.JSC$9791_lastErrorCode_,f=this.JSC$19330_xhr_.getStatus(),r=this.JSC$19330_xhr_.getResponseText();W=[];if(this.JSC$19330_xhr_.getResponse()instanceof Array){var R=this.JSC$19330_xhr_.getResponse();R.length>0&&R[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,W=R)}if(!(l<3||l==3&&!r&&W.length==0))if(f=f==200||f==206,l==4&&(V==8?i6(this,
7):V==7?i6(this,8):f||i6(this,3)),this.JSC$19330_parser_||(this.JSC$19330_parser_=plH(this.JSC$19330_xhr_),this.JSC$19330_parser_==null&&i6(this,5)),this.status_>2)mU(this);else{if(W.length>this.JSC$19330_pos_){var y=W.length;V=[];try{if(this.JSC$19330_parser_.acceptsBinaryInput())for(var P=0;P<y;P++){var n=this.JSC$19330_parser_.parse(Array.from(W[P]));n&&(V=V.concat(n))}else{n="";if(!this.JSC$19330_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("hk");this.JSC$19330_textDecoder_=new TextDecoder}for(P=
0;P<y;P++)n+=this.JSC$19330_textDecoder_.decode(W[P],{stream:l==4&&P==y-1});V=this.JSC$19330_parser_.parse(n)}W.splice(0,y);V&&this.dataHandler_(V)}catch(d){i6(this,5);mU(this);break a}}else if(r.length>this.JSC$19330_pos_){P=r.slice(this.JSC$19330_pos_);this.JSC$19330_pos_=r.length;try{var B=this.JSC$19330_parser_.parse(P);B!=null&&this.dataHandler_&&this.dataHandler_(B)}catch(d){i6(this,5);mU(this);break a}}l==4?(r.length!=0||this.hasStreamingResponseData_?i6(this,2):i6(this,4),mU(this)):i6(this,
1)}}}catch(d){i6(this,6),mU(this)}};var ySw=function(W){W=this.xhrReader_=W;var l=(0,_.ml)(this.onData_,this);W.dataHandler_=l;W=this.xhrReader_;l=(0,_.ml)(this.onStatusChange_,this);W.statusHandler_=l;this.JSC$19334_callbackMap_={};this.callbackOnceMap_={}};
_.t=ySw.prototype;_.t.on=function(W,l){var V=this.JSC$19334_callbackMap_[W];V||(V=[],this.JSC$19334_callbackMap_[W]=V);V.push(l);return this};
_.t.addListener=function(W,l){this.on(W,l);return this};
_.t.removeListener=function(W,l){var V=this.JSC$19334_callbackMap_[W];V&&_.aY(V,l);(W=this.callbackOnceMap_[W])&&_.aY(W,l);return this};
_.t.once=function(W,l){var V=this.callbackOnceMap_[W];V||(V=[],this.callbackOnceMap_[W]=V);V.push(l);return this};
_.t.onData_=function(W){var l=this.JSC$19334_callbackMap_.data;l&&gS5(W,l);(l=this.callbackOnceMap_.data)&&gS5(W,l);this.callbackOnceMap_.data=[]};
var gS5=function(W,l){for(var V={},f=0;f<W.length;V={message$jscomp$1007:void 0},f++)V.message$jscomp$1007=W[f],l.forEach(function(r){return function(R){try{R(r.message$jscomp$1007)}catch(y){}}}(V))};
ySw.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:Pl1(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Pl1(this,"error");break;case 8:Pl1(this,"close");break;case 2:Pl1(this,"end")}};
var Pl1=function(W,l){var V=W.JSC$19334_callbackMap_[l];V&&V.forEach(function(f){try{f()}catch(r){}});
(V=W.callbackOnceMap_[l])&&V.forEach(function(f){f()});
W.callbackOnceMap_[l]=[]};var nS7=function(){var W={format:"jspb"};W=W===void 0?{}:W;this.suppressCorsPreflight=W.suppressCorsPreflight||_.Y2("suppressCorsPreflight",W)||!1;this.withCredentials=W.withCredentials||_.Y2("withCredentials",W)||!1;this.streamInterceptors=W.streamInterceptors||[];this.unaryInterceptors=W.unaryInterceptors||[];this.workerScope=W.workerScope;this.chunkedServerStreaming=W.useFetchDownloadStreams||!1},B3s=function(W,l,V,f,r,R){R=R===void 0?{}:R;
var y=l.substring(0,l.length-r.name.length),P,n=(P=R)==null?void 0:P.signal;return Clc(function(B){return new Promise(function(d,J){if(n==null?0:n.aborted){var D=new _.qR(1,"Aborted");D.cause=n.reason;J(D)}else{var u={},H=cSZ(W,B,y);H.on("error",function(p){return void J(p)});
H.on("metadata",function(p){u=p});
H.on("data",function(p){var X=u;X=X===void 0?{}:X;d(new ps7(p,X))});
n&&n.addEventListener("abort",function(){H.cancel();var p=new _.qR(1,"Aborted");p.cause=n.reason;J(p)})}})},W.unaryInterceptors).call(W,oR2(r,V,f)).then(function(B){return B.responseMessage})},XO=function(W,l,V,f,r,R){R=R===void 0?{}:R;
return B3s(W,l,V,f,r,R)};
nS7.prototype.serverStreaming=function(W,l,V,f){var r=this,R=W.substring(0,W.length-f.name.length);return dRL(function(y){var P=y.methodDescriptor,n=y.getMetadata(),B=JS7(r,!1);n=DRe(r,n,B,R+P.getName());var d=URe(B,P.responseDeserializeFn,!0);y=P.requestSerializeFn(y.requestMessage);B.send(n,"POST",y);return d},this.streamInterceptors).call(this,oR2(f,l,V))};
var cSZ=function(W,l,V){var f=l.methodDescriptor,r=l.getMetadata(),R=JS7(W,!0);W=DRe(W,r,R,V+f.getName());V=URe(R,f.responseDeserializeFn,!1);Vk5(V,r["X-Goog-Encode-Response-If-Executable"]==="base64");l=f.requestSerializeFn(l.requestMessage);R.send(W,"POST",l);return V},JS7=function(W,l){l=W.chunkedServerStreaming&&!l;
return W.workerScope||l?new _.Sk(new b6({worker:W.workerScope,streamBinaryChunks:l})):new _.Sk},DRe=function(W,l,V,f){l["Content-Type"]="application/json+protobuf";
l["X-User-Agent"]="grpc-web-javascript/0.1";var r=l.Authorization;if(r&&x72.has(r.split(" ")[0])||W.withCredentials)V.JSC$9791_withCredentials_=!0;if(W.suppressCorsPreflight)f=RN1(f,"$httpHeaders",l);else for(W=_.L(Object.keys(l)),r=W.next();!r.done;r=W.next())r=r.value,V.headers.set(r,l[r]);return f},URe=function(W,l,V){if(V){V=new LM5(W);
var f=new ySw(V)}return new Kr({xhr:W,nodeReadableStream:f},l)},dRL=function(W,l){return l.reduce(function(V,f){return function(r){return f.intercept(r,V)}},W)},Clc=function(W,l){return l.reduce(function(V,f){return function(r){return f.intercept(r,V)}},W)};var ude=function(W){this.client_=new nS7;this.hostname_=W==void 0?W:W.replace(/\/+$/,"")};
_.t=ude.prototype;_.t.JSC$19352_depositGoogleCredential=function(W,l,V){return XO(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",W,l||{},m7w,V)};
_.t.deleteLink=function(W,l,V){return XO(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",W,l||{},IhN,V)};
_.t.JSC$19352_finishOAuth=function(W,l,V){return XO(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",W,l||{},Te1,V)};
_.t.getLink=function(W,l,V){return XO(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",W,l||{},ws1,V)};
_.t.startLinkingSession=function(W,l,V){return XO(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",W,l||{},Yd5,V)};var kRN=[0,_.yR,1,wFe,[0,_.CV,[0,_.Ps,-1]],[0,T5L],[0,_.de,-1]];var vS2=function(){this.storage=new Map},KM5=function(W,l,V,f,r){if(!W.storage.has(l))return null;
W=_.L(W.storage.get(l));for(l=W.next();!l.done;l=W.next())if(l=l.value,!r||l.linkName===r)if(V&&l.scopes&&HU1(l.scopes,V)||f&&l.capabilities&&HU1(l.capabilities,f))return l;return null},FM5=function(W,l,V){if(!V)W.storage.delete(l);
else if(W.storage.has(l)){var f=W.storage.get(l).filter(function(r){return r.linkName!==V});
f.length>0?W.storage.set(l,f):W.storage.delete(l)}},HU1=function(W,l){l=_.L(l);
for(var V=l.next();!V.done;V=l.next())if(!W.has(V.value))return!1;return!0};var GRw=function(){var W=_.M4("LINK_GAL_DOMAIN");this.alsDomain1p=_.M4("LINK_GAL_DOMAIN");this.alsDomain3p=W;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},bUY=function(W,l){W.apiKey=l;
return W};
GRw.prototype.build=function(){var W={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("ik");W.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("jk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("kk");W.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(W.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)W.apiKey=
this.apiKey,W.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("lk");W.oauthToken=this.oauthToken;W.alsDomain=this.alsDomain3p}W.clientXd3=this.clientXd3;W.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(W.authUser=this.authUser);this.bucket!==void 0&&(W.bucket=this.bucket);this.completionUrl!==void 0&&(W.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(W.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(W.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(W.locale=this.locale);W.loggerType=this.loggerType;W.clientEnvironment=this.clientEnvironment;W.colorScheme=this.colorScheme;W.showCloseOption=this.showCloseOption;return W};var Cb=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Cb,_.yP);var pW4=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(pW4,_.yP);var oSw=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(oSw,_.yP);var BX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(BX,_.yP);var jjs=function(W){return _.zy(W,1)};var Inw=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Inw,_.yP);var TEZ=_.FX(Inw),cX=[1,2,3,4,5];var IJY=function(W){try{return TEZ(W)}catch(l){return null}},iU2=function(){},ia7=function(W,l){switch(_.Ty(l,cX)){case 4:return(l=_.xt(l,oSw,4,cX))&&W.logStateTransition(_.zy(l,1)),!0;
case 5:return(l=_.xt(l,pW4,5,cX))&&W.logInternalEvent(_.zy(l,1)),!0}return!1},wl4=function(W){switch(W){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Yc(W)}};var oVZ=function(W,l){var V=this;this.validator=W;this.messageListener=l;this.dismissCallback=function(){mR7(V,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19381_receiveMessage=function(f){f.type==="message"&&(f=f.event_,f!==null&&(new URL(V.iframe.src)).origin===f.origin&&V.validator(f.data,f.origin)&&!V.messageListener(f.data)&&(V.JSC$19381_resolveCb!==void 0&&V.JSC$19381_resolveCb(f.data),XWL(V)))}},Xl5=function(W,l,V){W.uiHandler!==void 0&&mR7(W,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(f,r){W.JSC$19381_resolveCb=f;W.JSC$19381_rejectCb=r;W.iframe=document.createElement("iframe");_.WG(W.iframe,l);W.uiHandler=V.displayContent(W.iframe,W.dismissCallback);_.YJ(window,"message",W.JSC$19381_receiveMessage,!1,W)})},mR7=function(W,l){W.JSC$19381_rejectCb!==void 0&&W.JSC$19381_rejectCb(l);
XWL(W)},XWL=function(W){W.uiHandler!==void 0&&W.uiHandler.hideContent();
_.Of(window,"message",W.JSC$19381_receiveMessage,!1,W);W.JSC$19381_resolveCb=void 0;W.JSC$19381_rejectCb=void 0;W.uiHandler=void 0;W.iframe=void 0};var T3w=function(W){if(W===2){var l;W=((l=window)==null?0:l.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return W},m$N=function(W){W=T3w(W);
switch(W){case 0:return"light";case 1:return"dark";default:_.Yc(W)}};var jDZ=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),wWL=function(W,l){this.JSC$19393_linkingSession=W;this.noticeConfig=l;this.displayInfoMap=new Map;var V=new Map;if(_.IQ(this.JSC$19393_linkingSession,Mg4,7))for(W=_.yy(this.JSC$19393_linkingSession,Mg4,7),W=_.Pt(W,Qnw,1,_.ns()),W=_.L(W),l=W.next();!l.done;l=W.next())l=l.value,V.set(_.zy(l,1),_.BUS(_.yy(l,_.kKF,3)));if(V.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){l=this.noticeConfig.enabledDataUsageNoticeUis;W=l.has(0)?V.get(1):void 0;l=l.has(1)?V.get(2):void 0;V=W!==void 0&&l!==void 0?V.get(3):void 0;var f=this.noticeConfig.nestedOrigins;var r=new Inw;var R=new Cb;r=_.pM(r,2,cX,R);R=new Inw;var y=new Cb;R=_.pM(R,3,cX,y);y=[];W!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:W,lastEvent:r,nestedOrigins:f}]),y.push({trustedUrl:W,lastEvent:r,nestedOrigins:f}));l!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:l,lastEvent:R,nestedOrigins:f}]),y.push({trustedUrl:l,lastEvent:R,nestedOrigins:f}));V!==void 0?this.displayInfoMap.set(3,[{trustedUrl:V,lastEvent:R,nestedOrigins:f}]):this.displayInfoMap.set(3,y)}};var ASs=function(W){var l=new vS2;this.galService=W;this.galCache=l};
ASs.prototype.getLink=function(W){var l=W.serviceId;var V=W.scopes;var f=W.capabilities;var r=W.linkName;var R=this,y;return _.g(function(P){if(f!==void 0&&V!==void 0)throw Error("mk");y=KM5(R.galCache,l,V,f,r);return y!==null?P.return(y):P.return(R.galService.getLink({serviceId:l,sessionId:Math.floor(Math.random()*2147483648),scopes:V,capabilities:f,linkName:r}).then(function(n){n=Oa2(n);var B=R.galCache;B.storage.has(l)?B.storage.get(l).push(n):B.storage.set(l,[n]);return n}))})};
ASs.prototype.deleteLink=function(W,l,V){var f=this;return _.g(function(r){FM5(f.galCache,W,V);return r.return(f.galService.deleteLink({serviceId:W,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:l,linkName:V}).then(function(){return!0}))})};var Mk4=function(W,l){var V=this;this.validator=W;this.msgHandler=l;this.closedPopupTimeout=this.JSC$19415_rejectCb=this.JSC$19415_resolveCb=this.popup=null;this.JSC$19415_receiveMessage=function(f){if(f!==null&&(f=f.event_,f.source===V.popup)){var r=f.data;if(V.validator(r,f.origin)){var R;(R=V.msgHandler)!=null&&R.call(V,r)||(V.JSC$19415_resolveCb!==null&&V.JSC$19415_resolveCb(r),Qje(V))}}}};
Mk4.prototype.open=function(W,l){var V=this;this.popup!==null&&ZU7(this);return new Promise(function(f,r){V.JSC$19415_resolveCb=f;V.JSC$19415_rejectCb=r;V.popup=_.lM(window,W,"",l);_.YJ(window,"message",V.JSC$19415_receiveMessage,!1,V);OUw(V)})};
var ZU7=function(W,l){W.JSC$19415_rejectCb!==null&&W.JSC$19415_rejectCb(l);Qje(W)},Qje=function(W){W.closedPopupTimeout&&(W.closedPopupTimeout.cancel(),W.closedPopupTimeout=null);
W.popup&&W.popup.close();_.Of(window,"message",W.JSC$19415_receiveMessage,!1,W);W.popup=null;W.JSC$19415_resolveCb=null;W.JSC$19415_rejectCb=null},OUw=function(W){W.closedPopupTimeout=_.hKL(100).then(function(){W.popup?W.popup.closed?anH(W):OUw(W):ZU7(W,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},anH=function(W){W.closedPopupTimeout=_.hKL(100).then(function(){ZU7(W,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var zN1=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),N3w=function(W,l,V,f,r,R,y,P,n,B){var d=this;this.serviceId=W;this.sessionId=l;this.galService=V;this.oauthDetails=f;this.galLogger=r;this.interactionMode=R;this.redirectServiceUrl=y;this.consentLanguageKeys=P;this.dynamicUrlParameters=n;this.partnerConfigMinReadTimestamp=B;this.started=!1;this.JSC$19421_dataValidator=function(J,
D){var u=zN1.has(D);u||d.redirectServiceUrl===void 0||(u=d.redirectServiceUrl===D);return u?J.sentinel==="gdi":!1}};
N3w.prototype.complete=function(){var W=this,l;return _.g(function(V){if(W.interactionMode!==1)return V.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));l=Jc.getRedirectStateFromUri();return l===null?V.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):V.return(Yf1(W,l))})};
N3w.prototype.start=function(){var W=this,l;return _.g(function(V){if(W.started)return V.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.aQ(W.oauthDetails,1))return V.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(W.interactionMode===1)return Jc.setLocation(_.aQ(W.oauthDetails,1)),V.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));W.started=!0;W.galLogger.logStateTransition(5);
l=Jc.getPostMessagePopup(W.JSC$19421_dataValidator);return V.return(l.open(_.aQ(W.oauthDetails,1),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(f){W.started=!1;var r=W.galLogger;if((f==null?void 0:f.error)!==void 0)throw r.logInternalEvent(59),Error("nk");if((f==null?void 0:f.redirect_state)===void 0)throw r.logInternalEvent(131),Error("ok");return Yf1(W,f.redirect_state)}).catch(function(f){W.started=
!1;
return f.errorCode!==void 0?{statusCode:f.errorCode,statusMessage:f.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var Yf1=function(W,l){return _.g(function(V){return V.return(xRN(W.galService,{serviceId:W.serviceId,sessionId:W.sessionId,dynamicUrlParameters:W.dynamicUrlParameters,redirectState:l,consentLanguageKeys:W.consentLanguageKeys,partnerConfigMinReadTimestamp:W.partnerConfigMinReadTimestamp}).then(function(f){var r={statusCode:1,link:Oa2(f.getLink())};bNY(_.mZ(f,3))!==void 0&&(r.callerState=bNY(_.mZ(f,3)));W.galLogger.logInternalEvent(134);return r}))})},Jc={getPostMessagePopup:function(W){return new Mk4(W)},
getRedirectStateFromUri:function(){var W=_.SV(Jc.getLocation()).fragment_;return(new _.GW(W)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(W){_.CMF(window.location,_.NI(W))},
createOAuthFlow:function(W,l){return new N3w(W.serviceId,W.sessionId,W.galService,l,W.galLogger,W.interactionMode,W.redirectServiceUrl,W.consentLanguageKeys,W.dynamicUrlParameters,W.partnerConfigMinReadTimestamp)}};var eN2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(eN2,_.yP);var qfN=_.FX(eN2);var hN2=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),SfL=function(W,l,V,f,r,R,y,P,n){var B=this;this.serviceId=W;this.sessionId=l;this.galService=V;this.gsiWebFlowDetails=f;this.colorScheme=r;this.showCloseOption=R;this.galLogger=y;this.interactionMode=P;this.redirectServiceUrl=n;this.started=!1;this.JSC$19433_dataValidator=function(d,J){var D=hN2.has(J);D||B.redirectServiceUrl===
void 0||(D=B.redirectServiceUrl===J);return D?d.sentinel==="gal":!1};
this.logEventProcessor=function(d){return d.result?(d=IJY(d.result))?ia7(B.galLogger,d):!1:!1}};
SfL.prototype.complete=function(){var W=this,l,V;return _.g(function(f){if(W.interactionMode!==1)return f.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));l=De.getRedirectStateFromUri();if(l===void 0)return W.galLogger.JSC$19373_logErrorEvent(131),f.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return V=ESL(W,l),f.return($R1(W,V))}catch(r){return f.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
SfL.prototype.start=function(){var W=this,l;return _.g(function(V){if(W.started)return V.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.aQ(W.gsiWebFlowDetails,1))return V.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(W.interactionMode===1)return De.setLocation(Wxw(W,_.aQ(W.gsiWebFlowDetails,1))),V.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
W.started=!0;l=De.getPostMessagePopup(W.JSC$19433_dataValidator,W.logEventProcessor);return V.return(l.open(Wxw(W,_.aQ(W.gsiWebFlowDetails,1)),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(f){W.started=!1;if((f==null?void 0:f.result)===void 0)throw W.galLogger.JSC$19373_logErrorEvent(131),Error("ok");f=ESL(W,f.result);return $R1(W,f)}).catch(function(f){W.started=!1;
return f.errorCode!==void 0?{statusCode:f.errorCode,statusMessage:f.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var Wxw=function(W,l){W=["result_channel",W.interactionMode===1?"2":"1","color_scheme",m$N(W.colorScheme),"show_close_option",W.showCloseOption];return Z4s(l,W)},$R1=function(W,l){if(l!==null&&_.IQ(l,BX,2)){var V,f=l==null?void 0:(V=_.yy(l,BX,2))==null?void 0:_.zy(V,2);
f&&W.galLogger.JSC$19373_logErrorEvent(wl4(f));return jjs(_.yy(l,BX,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 W.galService.getLink({serviceId:W.serviceId,sessionId:W.sessionId,consistencyKey:_.aQ(l,1)}).then(function(r){r=Oa2(r);W.galLogger.logInternalEvent(134);return{statusCode:1,link:r}})},ESL=function(W,l){l=qfN(l);
if(!_.IQ(l,BX,2)&&_.aQ(l,1)==="")throw W.galLogger.JSC$19373_logErrorEvent(5),Error("pk");return l},De={getPostMessagePopup:function(W,l){return new Mk4(W,l)},
getRedirectStateFromUri:function(){return _.Ec(_.SV(De.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(W){_.CMF(window.location,_.NI(W))},
createStreamlinedFlow:function(W,l){return new SfL(W.serviceId,W.sessionId,W.galService,l,W.colorScheme,W.showCloseOption,W.galLogger,W.interactionMode,W.redirectServiceUrl)}};var frw=function(){var W=_.i06("GAL");this.storage=W?new _.p7(W):null};
frw.prototype.getSession=function(W){if(this.storage!==null)try{var l=this.storage.get("SAVED_SESSION");if(l===void 0)return null;if(l.serviceId===W)return l}catch(V){}return null};var T0=function(){};
_.v(T0,iU2);T0.prototype.logStateTransition=function(){};
T0.prototype.logInternalEvent=function(){};
T0.prototype.JSC$19373_logErrorEvent=function(){};var lRw=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(lRw,_.yP);lRw.prototype.getCompletionUrl=function(){return _.aQ(this,15)};var w$=function(W,l,V,f,r,R){this.serviceId=W;this.environment=l;this.sessionId=V;this.colorSchemeSelected=f;this.colorThemeDisplayed=r;this.JSC$19446_transport=R;this.currentState=1};
_.v(w$,iU2);w$.prototype.logStateTransition=function(W){var l=VhY(this);l=_.g8(l,3,this.currentState);l=_.g8(l,1,W);this.currentState=W;W=YgL(1);this.dispatch(l,W)};
w$.prototype.logInternalEvent=function(W){W=YgL(W);this.dispatch(VhY(this),W)};
w$.prototype.JSC$19373_logErrorEvent=function(W){var l=VhY(this);l=_.g8(l,1,10);W=YgL(W);this.dispatch(l,W)};
var VhY=function(W){var l=new lRw;l=_.g8(l,1,W.currentState);l=_.mY(l,7,W.serviceId);var V,f;var r=((V=window)==null?0:(f=V.location)==null?0:f.href)?_.SV(window.location.href).JSC$10026_domain_:"NO_PACKAGE_NAME";V=_.mY(l,8,r);V=_.g8(V,6,W.environment);V=_.mY(V,5,"100");V=_.g8(V,11,W.colorSchemeSelected);return _.g8(V,12,W.colorThemeDisplayed)};
w$.prototype.dispatch=function(W,l){l===void 0&&(l=new _.jk);var V=l;W=W.serialize();V=_.mY(V,8,W);_.Gs(V,12,this.sessionId);this.JSC$19446_transport.dispatch(l)};var fRZ=function(W,l){this.loggerType=W;this.sessionIndex=l!=null?l:0},rd7;
fRZ.prototype.create=function(W,l,V,f,r){switch(this.loggerType){case 0:return new T0;case 1:return rd7||(rd7=(new _.k9(555,this.sessionIndex.toString())).build()),new w$(W,l,V,f,r,rd7);default:_.Yc(this.loggerType,"unknown logger type")}};var Uk=[6,2,3,1],yaL=new Map([[4,1],[1,6],[2,2],[3,3]]),Ymw={statusCode:7,statusMessage:"Failed to create flow object"},lrZ=function(W,l,V,f,r,R,y,P,n,B){this.serviceId=W;this.sessionId=l;this.config=V;this.galService=f;this.JSC$19453_linkingSession=r;this.googleScopes=R;this.callerState=y;this.consentLanguageKeys=P;this.dynamicUrlParameters=n;this.partnerConfigMinReadTimestamp=B;this.currentFlow=0;f=this.JSC$19453_linkingSession;r=new Set;_.IQ(f,Sm4,1)&&r.add(1);_.IQ(f,OVs,2)&&_.IQ(f,EV1,6)&&r.add(2);
_.IQ(f,ZV1,3)&&_.IQ(f,EV1,6)&&r.add(3);_.IQ(f,AI4,4)&&r.add(6);this.supportedFlows=r;f=V.loggerType;r=V.clientEnvironment;a:{R=V.colorScheme;switch(R){case 0:R=1;break a;case 1:R=2;break a;case 2:R=3;break a;default:_.Yc(R)}R=void 0}a:{y=V.colorScheme;y=T3w(y);switch(y){case 0:y=1;break a;case 1:y=2;break a;default:_.Yc(y)}y=void 0}this.galLogger=(new fRZ(f,V.authUser)).create(W,r,l,R,y)},th4=function(W){return new Promise(function(l){var V,f,r,R,y,P,n,B,d,J;
return _.g(function(D){switch(D.nextAddress){case 1:V=$$Z(W.currentFlow,W.supportedFlows),f=!1,r=new wWL(W.JSC$19453_linkingSession,W.config.dataUsageNoticeConfig);case 2:if(V===void 0){D.jumpTo(4);break}_.HG(D,5);var u=r,H=V,p=void 0;f?H===1&&(p=u.displayInfoMap.get(2)):H===2||H===3?p=u.displayInfoMap.get(1):H===1&&(p=u.displayInfoMap.get(3));R=p?p:[];y=W.consentLanguageKeys;P=_.L(R);n=P.next();case 7:if(n.done)return W.currentFlow=V,D.yield(esL(Rd1(W,y)),11);B=n.value;return D.yield(A5s(B,W.config.dataUsageNoticeConfig.uiAdapter,
W.config.colorScheme,W.galLogger),10);case 10:d=D.yieldResult;if(d.statusCode!==1)return raY(W.serviceId),W.currentFlow=0,l(dG({statusCode:d.statusCode,statusMessage:d.statusMessage},W.callerState)),D.return();d.consentLanguageKeys!==void 0&&(y=d.consentLanguageKeys);n=P.next();D.jumpTo(7);break;case 11:J=D.yieldResult;if(J.statusCode!==10)return J.statusCode!==6&&(raY(W.serviceId),W.currentFlow=0),J.statusCode!==1&&W.callerState!==void 0&&(J.callerState=W.callerState),l(J),D.return();_.qL(D,6);break;
case 5:_.pc(D);case 6:V=$$Z(W.currentFlow,W.supportedFlows);f=!0;D.jumpTo(2);break;case 4:raY(W.serviceId),W.currentFlow=0,l(dG({statusCode:12,statusMessage:"Linking failed"},W.callerState)),_.ju(D)}})})},s17=function(W,l,V){W.currentFlow=l;
return qmL(Rd1(W,V)).then(function(f){return f.statusCode===10&&W.config.interactionMode===1&&$$Z(W.currentFlow,W.supportedFlows)!==void 0?th4(W):f})},Rd1=function(W,l){return{flowParams:{serviceId:W.serviceId,
sessionId:W.sessionId,galService:W.galService,galLogger:W.galLogger,interactionMode:W.config.interactionMode,redirectServiceUrl:W.config.redirectServiceUrl,colorScheme:W.config.colorScheme,consentLanguageKeys:l,dynamicUrlParameters:W.dynamicUrlParameters,showCloseOption:W.config.showCloseOption,partnerConfigMinReadTimestamp:W.partnerConfigMinReadTimestamp},currentFlow:W.currentFlow,config:W.config,session:W.JSC$19453_linkingSession,googleScopes:W.googleScopes,callerState:W.callerState}};var PmY=function(W,l){this.config=W;this.galService=l.getService();this.JSC$19466_galRepository=l.JSC$19484_galRepository};
PmY.prototype.getLink=function(W,l){return srZ(this,W,l)};
var srZ=function(W,l,V){return W.JSC$19466_galRepository.getLink({serviceId:l,scopes:void 0,capabilities:void 0,linkName:V}).then(function(f){return{statusCode:1,link:f}}).catch(function(f){return{statusCode:g7s(f.code),
statusMessage:f.message}})};
PmY.prototype.deleteLink=function(W,l){return this.JSC$19466_galRepository.deleteLink(W,this.config.accountLinkingEntryPoint,l).then(function(){return{statusCode:1}}).catch(function(V){return{statusCode:g7s(V.code),
statusMessage:V.message}})};
PmY.prototype.startLinkingSession=function(W){var l=W.serviceId;var V=W.sessionId;return V3L({serviceId:l,sessionId:V!==void 0?V:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:W.loginHint,callerState:W.callerState,consentLanguageKeys:W.consentLanguageKeys,linkName:W.linkName,dynamicUrlParameters:W.dynamicUrlParameters,partnerConfigMinReadTimestamp:W.partnerConfigMinReadTimestamp})};var A0=function(W,l,V,f,r,R,y){this.apiKey=l;this.authUser=V;this.oauthToken=f;this.bucket=r;this.locale=R;this.galSdkEventHandler=y;if(f===void 0){if(l===void 0)throw Error("qk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new ude(W)};
A0.prototype.deleteLink=function(W){var l=W.serviceId;var V=W.sessionId;var f=W.accountLinkingEntryPoint;var r=W.linkName;var R=this,y;return _.g(function(P){var n=(new u6).setHeader(R.getHeader(V));var B=LxH({serviceId:l,linkName:r});n=_.b7(n,2,B);y=_.qG(n,3,f);return P.return(R.makeRequest(R.galServiceClient.deleteLink,y,[1,3],[2,4]))})};
var xRN=function(W,l){var V=l.serviceId;var f=l.sessionId;var r=l.dynamicUrlParameters;var R=l.redirectState;var y=l.consentLanguageKeys;var P=l.partnerConfigMinReadTimestamp;var n;return _.g(function(B){var d=(new v5).setHeader(W.getHeader(f,r));d=_.ft(d,2,V);n=_.ft(d,4,R);y!==void 0&&_.ft(n,5,y);P!==void 0&&_.b7(n,6,P);return B.return(W.makeRequest(W.galServiceClient.JSC$19352_finishOAuth,n,[1,3],[2,4]))})};
A0.prototype.getLink=function(W){var l=W.serviceId;var V=W.sessionId;var f=W.scopes;var r=W.capabilities;var R=W.consistencyKey;var y=W.linkName;var P=this,n;return _.g(function(B){var d=(new H5).setHeader(P.getHeader(V)),J=LxH({serviceId:l,scopes:f,capabilities:r,linkName:y});n=_.b7(d,2,J);R!==void 0&&(d=KJs(),d=_.ft(d,2,R),_.b7(n,3,d));return B.return(P.makeRequest(P.galServiceClient.getLink,n,[1,3],[2,4]))})};
var hs5=function(W,l){var V=l.serviceId;var f=l.sessionId;var r=l.googleScopes;var R=l.consistencyKey;var y;return _.g(function(P){var n=(new km).setHeader(W.getHeader(f));n=_.ft(n,2,V);var B=Array.from(r.values());n=_.l7(n,3,B,_.us);B=KJs();B=_.ft(B,2,R);y=_.b7(n,4,B);return P.return(W.makeRequest(W.galServiceClient.JSC$19352_depositGoogleCredential,y,[1,3],[2,4]))})};
A0.prototype.startLinkingSession=function(W){var l=W.serviceId;var V=W.sessionId;var f=W.scopes;var r=W.capabilities;var R=W.loginHint;var y=W.supportedFlows;var P=W.completionUrl;var n=W.usePingPong;var B=W.twoWayLinking;var d=W.accountLinkingEntryPoint;var J=W.callerState;var D=W.consentLanguageKeys;var u=W.googleScopes;var H=W.dataUsageNoticeConfig;var p=W.linkName;var X=W.dynamicUrlParameters;var w=W.partnerConfigMinReadTimestamp;var O=this,S,N;return _.g(function(x){if(r!==void 0&&f!==void 0)throw Error("mk");
var Y=(new NeZ).setHeader(O.getHeader(V,X));S=_.ft(Y,2,l);p!==void 0&&_.ft(S,14,p);if(r!==void 0){Y=S;var W8=Array.from(r.values());_.l7(Y,5,W8,_.us)}else f!==void 0&&(Y=S,W8=Array.from(f.values()),_.l7(Y,3,W8,_.us));P!==void 0&&_.ft(S,6,P);n!==void 0&&_.h6(S,15,n);y!==void 0&&(Y=S,W8=Array.from(y.values()),_.l7(Y,4,W8,_.f2));if(B!==void 0){if(B&&(!u||u.size===0))throw Error("rk");_.h6(S,8,B)}d!==void 0&&_.qG(S,9,d);R!==void 0&&_.ft(S,13,R);J!==void 0&&(Y=S,W8=(new TextEncoder).encode(J),_.VP(Y,12,
_.jL(W8,!1),_.bB()));D!==void 0&&_.ft(S,16,D);w!==void 0&&_.b7(S,18,w);if(H!==void 0&&H.size>0||u!==void 0&&u.size>0)N=new zE1,u!==void 0&&u.size>0&&(Y=N,W8=Array.from(u.values()),_.l7(Y,1,W8,_.us)),H!==void 0&&(H.has(0)&&_.wev(N,2,_.f2,1,_.r7),H.has(1)&&_.wev(N,2,_.f2,2,_.r7)),_.b7(S,17,N);return x.return(O.makeRequest(O.galServiceClient.startLinkingSession,S,[1],[2]))})};
A0.prototype.getMetadata=function(){var W=this,l,V;return _.g(function(f){l={};W.useFpa?(l["X-Goog-Api-Key"]=W.apiKey,l["X-Goog-AuthUser"]=W.authUser!==void 0?W.authUser.toString():"0",(V=_.rGz([]))&&(l.Authorization=V)):l.Authorization="Bearer "+W.oauthToken;W.locale&&(l["accept-language"]=W.locale);return f.return(l)})};
A0.prototype.makeRequest=function(W,l,V,f){var r=this,R;return _.g(function(y){if(y.nextAddress==1)return y.yield(r.getMetadata(),2);R=y.yieldResult;yd1(r,V);return y.return(W.bind(r.galServiceClient)(l,R).finally(function(){yd1(r,f)}))})};
var yd1=function(W,l){W.galSdkEventHandler!==void 0&&l.forEach(function(V){W.galSdkEventHandler.onEvent(V)})};
A0.prototype.getHeader=function(W,l){var V=new J0;W=_.VP(V,2,_.Rw(W),0);W=_.qG(W,5,3);l=_.l7(W,8,l,_.us);this.bucket!==void 0&&_.ft(l,1,this.bucket);return l};
var LxH=function(W){var l=W.serviceId;var V=W.scopes;var f=W.capabilities;W=W.linkName;if(f!==void 0&&V!==void 0)throw Error("mk");var r=new vR5;l=_.ft(r,1,l);f!==void 0?(V=Array.from(f.values()),_.l7(l,5,V,_.us)):V!==void 0&&(V=Array.from(V.values()),_.l7(l,3,V,_.us));W!==void 0&&_.ft(l,6,W);return l};var n7N=function(W){this.galService=new A0(W.alsDomain,W.apiKey,W.authUser,W.oauthToken,W.bucket,W.locale,W.galSdkEventHandler);this.JSC$19484_galRepository=new ASs(this.galService)};
n7N.prototype.getService=function(){return this.galService};var ggc=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(ggc,_.yP);var Pc7=function(W){var l=new ggc;return _.g8(l,1,W)};
ggc.prototype.setErrorMessage=function(W){return _.mY(this,2,W)};var ngw=[0,_.Bs,_.ge,_.Bs];var Qk=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Qk,_.yP);var Ccw=[0,[1,2,3],_.cs,[0,Ib2,XF2,-1],_.cs,[0,mGe,-1],_.nV];var cds=[0,_.sd,1,_.Bs,_.ge,-1,1,_.Tu4,_.re,_.Bs,-1,Ccw];var Bww=[0,_.Bs,[0,_.Tu4,_.re,[0,_.ge]],_.LV,[0,_.Bs,-1]];var Vk=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Vk,_.yP);var dX4=[0,_.ge,_.Bs,-2,_.sd,_.Bs,_.sd,_.Bs,-2,1,_.LV];var Jd1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Jd1,_.yP);var DXZ=[0,_.sd];var UXe=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(UXe,_.yP);var ug4=[0,_.Bs,Bww,DXZ,dX4,cds];var v1N=_.v$(UXe,ug4);var kWc=[0,kRN];var pfw=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(pfw,_.yP);var vg5=[0,[1,3],Aj4,_.Bs,Aj4];var W5=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(W5,_.yP);var HCZ=[0,_.Bs];var KxY=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(KxY,_.yP);var l6=function(W){return _.xt(W,ggc,2,$o)},Fxc=function(W){var l=new KxY;
return _.pM(l,2,$o,W)},$o=[1,
2];var GW1=[0,$o,_.cs,HCZ,_.cs,ngw,_.CV,vg5,1,_.Bs,kWc];var bCH=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(bCH,_.yP);var ogZ=function(W){var l=new bCH;return _.pM(l,3,pDL,W)},pDL=[2,
3];var Mk=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(Mk,_.yP);var jrZ=function(W,l){return _.b7(W,2,l)},IRc=function(W,l){return _.b7(W,8,l)},iC7=function(W,l){return _.b7(W,3,l)};var mX1=[0,_.Bs,GW1,ug4,_.ul,[0,[5,6,7],[0,_.Bs,-2],[0,_.sd,_.Bs,_.ge],[0,Ccw],[0,_.ge,_.Bs,-1,_.Uf,_.Bs],_.cs,[0,[0,_.sd],_.Bs,-1],_.cs,[0,[3,4],_.Bs,-1,_.cs,[0,[0,_.Bs,_.LV]],_.cs,[0,[0,[0,[1,2],_.cs,[0],_.cs,[0]]]]],_.cs,[0]],_.ul,-1,[0,pDL,_.Bs,_.cs,HCZ,_.cs,ngw,_.CV,vg5,[0,kRN]]];var XDH=_.v$(Mk,mX1),TwH=_.KM(mX1);var wDH=function(){_.iI.call(this)};
_.v(wDH,_.iI);wDH.prototype.init=function(){};
new wDH;var AdY=_.tj(["data-"]),Qrw=_.tj(["aria-"]),Mhw=_.tj(["aria-"]),ZC=function(W,l){this.isLatencyMeasurementExperiment=W===void 0?!1:W;this.enableDialogA11yFix=l===void 0?!1:l;this.JSC$19513_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.DI$(_.rS.location.href)},K2Y=function(W,l){W.onConsentPrimitiveShownCallback=l},ZC5=function(W,l){return W.overriddenIframeLoadTimeout?W.overriddenIframeLoadTimeout:l!==void 0?l:5E3},Gb1=function(W){if(W.prewarmPromise!==void 0)return W.prewarmPromise;
W.prewarmPromise=new Promise(function(l,V){OG(W,1);OC4(W,aRN(W,!0),zdY(W));W.iframe?W.prewarmChannel||NwL(W,W.iframe,l):V(Error("sk"))});
W.prewarmPromise.finally(function(){W.prewarmPromise=void 0});
return W.prewarmPromise};
ZC.prototype.showPrimitive=function(){var W=this;if(this.consentPromise!==void 0)return this.consentPromise;var l=Date.now();Yr7(this,l);this.consentPromise=new Promise(function(V,f){OG(W,0,l);var r=W.isDarkTheme();W.isLatencyMeasurementExperiment||W.initialLoadingStrategy===1||W.initialLoadingStrategy===2||(W.loadingBar||(W.loadingBar=d67(getComputedStyle(document.body).direction==="rtl",r),W.loadingBar.style.position="fixed",W.loadingBar.style.zIndex="15000"),document.body.appendChild(W.loadingBar));
OC4(W,aRN(W),zdY(W));W.iframe?W.channel||xXw(W,W.iframe,V,f):(edN(W),f(Error("sk")))});
this.consentPromise.finally(function(){W.consentPromise=void 0});
return this.consentPromise};
var xXw=function(W,l,V,f){var r,R;_.g(function(y){switch(y.nextAddress){case 1:OG(W,3);r=!1;setTimeout(function(){if(!r){edN(W);qr5(W);hdc(W);var P=Pc7(7).setErrorMessage("Timeout connecting to iframe");V(IRc(jrZ(new Mk,Fxc(P)),ogZ(P)))}},ZC5(W,SrN(W)));
if(!W.prewarmPromise){y.jumpTo(2);break}_.HG(y,3);return y.yield(W.prewarmPromise,5);case 5:_.qL(y,2);break;case 3:_.pc(y),R=Pc7(4).setErrorMessage("Error while prewarming."),V(IRc(jrZ(new Mk,Fxc(R)),ogZ(R)));case 2:W.prewarmChannel&&W.prewarmChannel.send(TwH(iC7(new Mk,W.consentPrimitiveRequest))),W.channel=_.Ud({destination:W.JSC$19513_win,iframe:l,origin:Eg1(W),channelName:"cpw",onEstablished:function(){r=!0;edN(W);W.isLatencyMeasurementExperiment||(W.JSC$19513_previousBodyOverflow=document.body.style.overflow,
W.JSC$19513_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,W.JSC$19513_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",W.enableDialogA11yFix&&window.addEventListener("blur",W.focusChangeListener));var P=W.iframe;P.style.bottom="0";P.style.position="fixed";P.style.right="0";P.style.border="none";P.style.left="0";P.style.top=
"0";P.style.zIndex="5000";P.style.pointerEvents="";P.style.visibility="";W.initialLoadingStrategy===2||W.initialLoadingStrategy===3?OG(W,4):OG(W,6);var n;(n=W.onConsentPrimitiveShownCallback)==null||n.call(W)},
onMessage:function(P){P=XDH(P.data);switch(_.zy(P,1)){case 1:qr5(W);var n=Ja1(_.yy(P,_.Y1,7));n&&(W.initialLoadingStrategy!==2&&W.initialLoadingStrategy!==3||OG(W,6,n),OG(W,5,n));if(n=Ja1(_.yy(P,_.Y1,6)))OG(W,7,n),OG(W,8);var B,d;((B=_.yy(P,KxY,2))==null?void 0:_.Ty(B,$o))!==0&&((d=_.yy(P,bCH,8))==null?void 0:_.Ty(d,pDL))!==0||f(Error("tk"));V(P);break;case 2:hdc(W)}}}),_.ju(y)}})},NwL=function(W,l,V){W.prewarmChannel=_.Ud({destination:W.JSC$19513_win,
iframe:l,origin:Eg1(W),channelName:"pwcp",onEstablished:function(){OG(W,2);V()}})},Eg1=function(W){var l=_.m7(W.src).toString();
return l&&l.indexOf("://")<0&&l.indexOf("//")!==0?W.origin:_.DI$(l)},aRN=function(W,l){l=l===void 0?!1:l;
var V,f=new Map([["origin",W.origin],["hl",(V=$Xc(W))!=null?V:null]]);l&&f.set("pw","1");l=_.L([["cpr",W.consentPrimitiveRequest.serialize()]]);for(V=l.next();!V.done;V=l.next()){var r=_.L(V.value);V=r.next().value;r=r.next().value;f.set(V,r)}W.isDarkTheme()&&f.set("color_scheme","dark");return _.Js(W.src,f)},edN=function(W){W.isLatencyMeasurementExperiment||W.loadingBar&&document.body.removeChild(W.loadingBar)};
ZC.prototype.getSrc=function(){var W=_.lP(this.origin),l;var V=(l=_.yy(this.consentPrimitiveRequest,Jd1,3))==null?void 0:_.Cs(l,1);l="consent.google.com";V=V?"/u/"+encodeURIComponent(V.toString()):"";(W==null?0:W.endsWith("youtube.com"))?l="consent.youtube.com":(W=W==null?void 0:W.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(l="consent.google."+((W[1]?"co.":"")+encodeURIComponent(W[2])));return _.i7("https://"+l+"/signedin"+V+"/landing")};
var OC4=function(W,l,V){W.iframe||(W.iframe=document.createElement("iframe"),W.iframe.style.width="100%",W.iframe.style.height="100%",V!==112496729&&(W.iframe.style.colorScheme="auto"),W.isLatencyMeasurementExperiment&&(W.iframe.style.display="none"),_.WG(W.iframe,l),W.iframe.setAttribute("jsname","C5o1O"),WEH(W.iframe),document.body.appendChild(W.iframe))},WEH=function(W){W.style.bottom="-200vh";
W.style.position="fixed";W.style.right="-200vw";W.style.border="";W.style.left="";W.style.top="";W.style.zIndex="";W.style.pointerEvents="none";W.style.visibility="hidden"},qr5=function(W){W.iframe&&(W.isLatencyMeasurementExperiment||(W.JSC$19513_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=W.JSC$19513_previousHtmlOverscroll),W.JSC$19513_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=W.JSC$19513_previousBodyOverscroll),W.JSC$19513_previousBodyOverflow!==
void 0&&(document.body.style.overflow=W.JSC$19513_previousBodyOverflow),W.enableDialogA11yFix&&lv5(W,!1)),WEH(W.iframe))};
ZC.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(lv5(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var lv5=function(W,l){var V,f,r=(V=W.iframe)==null?void 0:(f=V.parentElement)==null?void 0:f.children;if(r)for(V=0;V<r.length;V++)f=r[V],f!==W.iframe&&(l?(f.hasAttribute("aria-hidden")&&_.yK([_.n5(AdY)],f,"data-old-aria-hidden",f.getAttribute("aria-hidden")),_.yK([_.n5(Qrw)],f,"aria-hidden","true")):(f.removeAttribute("aria-hidden"),f.hasAttribute("data-old-aria-hidden")&&(_.yK([_.n5(Mhw)],f,"aria-hidden",f.getAttribute("data-old-aria-hidden")),f.removeAttribute("data-old-aria-hidden"))))},OG=function(W,
l,V){var f;
(f=W.latencyCallback)==null||f.call(W,{latencyType:l,timestampEpochMillis:V!=null?V:Date.now()})};var Vas=function(W,l,V){ZC.call(this,l,V===void 0?!1:V);this.consentPrimitiveRequest=W;W=$Xc(this);_.SCY(W);this.src=this.getSrc();var f;this.initialLoadingStrategy=(f=_.yy(this.consentPrimitiveRequest,Vk,4))==null?void 0:_.zy(f,4)},fv1;
_.v(Vas,ZC);var Hh5=function(W){var l=_.U("enable_primitive_dialog_aria_hide_siblings");W={request:W,enableDialogA11yFix:l===void 0?!1:l};fv1||(fv1=new Vas(W.request,W.isLatencyMeasurementExperiment||_.zy(W.request,1)===2,W.enableDialogA11yFix));return fv1},$Xc=function(W){var l;
return(l=_.yy(W.consentPrimitiveRequest,Vk,4))==null?void 0:_.aQ(l,1)},Yr7=function(W,l){if(!_.IQ(W.consentPrimitiveRequest,Qk,5)){var V=W.consentPrimitiveRequest,f=new Qk;
_.b7(V,5,f)}var r;if((r=_.yy(W.consentPrimitiveRequest,Qk,5))==null||_.jXY(_.jP(r,8))==null){var R;(R=_.yy(W.consentPrimitiveRequest,Qk,5))!=null&&_.Gs(R,8,l)}},zdY=function(W){var l;
return(l=_.yy(W.consentPrimitiveRequest,Qk,5))==null?void 0:_.Cs(l,1)};
Vas.prototype.isDarkTheme=function(){var W;return((W=_.yy(this.consentPrimitiveRequest,Vk,4))==null?void 0:_.zy(W,2))===2};
var SrN=function(W){var l;return((l=_.yy(W.consentPrimitiveRequest,Vk,4))==null?void 0:_.Cs(l,5))||void 0},hdc=function(W){W.channel=void 0;
W.prewarmChannel=void 0;W.iframe&&(document.body.contains(W.iframe)&&document.body.removeChild(W.iframe),W.iframe=void 0);fv1=void 0},bhc=function(W){return ZC.prototype.showPrimitive.call(W).then(function(l){return _.yy(l,KxY,2)})};for(var aS={},rUs=(aS[64]="ma",aS[73]="ogb",aS[89]="cr",aS[21]="test",aS[0]="unkn",aS[137]="con",aS[155]="hl",aS[78]="yt",aS[171]="lp",aS[172]="ap",aS[177]="amo",aS[178]="pqe",aS[74]="gg",aS[1]="gm",aS[140]="am",aS[193]="sc",aS),RCY=_.L(Object.keys(rUs)),taw=RCY.next();!taw.done;taw=RCY.next());var s9w=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(s9w,_.yP);var LE7=[0,[2,3,4],_.Bs,i4Y,Aj4,_.nV];var yU1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(yU1,_.yP);var g$N=_.v$(yU1,[0,_.de,_.ge,_.Bs,_.ge,_.Bs,LE7]);var PCZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(PCZ,_.yP);PCZ.prototype.getCommand=function(){return _.zy(this,1)};
var n$4=function(){var W=new PCZ;return _.qG(W,1,0)};var CC4=_.KM([0,_.de,_.ge,[0,_.Bs,_.ge,-1]]);var cU1=new _.w3("s"),BAY=new _.w3("t"),d3L=new _.w3("u"),JU4=new _.w3("v"),D3c=function(W,l,V){_.AS.call(this,cU1);this.mediaKey=W;this.photoUrl=l;this.photoSource=V};
_.v(D3c,_.AS);var U32=function(){_.AS.call(this,BAY)};
_.v(U32,_.AS);var uZ1=function(W){W=W===void 0?!1:W;_.AS.call(this,d3L);this.isError=W};
_.v(uZ1,_.AS);var kre=function(){_.AS.call(this,JU4)};
_.v(kre,_.AS);var v$w=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,Grc=function(W){if(typeof W=="string"){if(W.charAt(0)==".")return Hi5(W.substr(1));if(W.charAt(0)=="["){var l=v$w.exec(W);W=W.indexOf("=")==-1?void 0:l[3];return KEw(l[1],W)}return FEe(W)}return W},Hi5=function(W){return function(l){return l.getAttribute&&_.y3(l,W)}},KEw=function(W,l){return function(V){return l!==void 0?V.getAttribute&&V.getAttribute(W)==l:V.hasAttribute&&V.hasAttribute(W)}},FEe=function(W){W=W.toUpperCase();
return function(l){return(l=l.tagName)&&l.toUpperCase()==W}},biY=function(){return!0};var z0=function(W,l){this.JSC$19541_key_=W;this.JSC$19541_value_=l},Nk=function(W){throw Error("uk`"+W.JSC$19541_key_);
},pd5=function(W,l){return new TypeError("vk`"+l+"`"+W.JSC$19541_key_+"`"+W.JSC$19541_value_+"`"+typeof W.JSC$19541_value_)};
z0.prototype.string=function(W){return arguments.length==0?o$Y(this):j9w(this,W)};
var j9w=function(W,l){var V;return(V=Ivw(W))!=null?V:l},o$Y=function(W){var l=Ivw(W);
l===null&&Nk(W);return l},Ivw=function(W){var l=W.JSC$19541_value_;
if(l==null)return null;if(typeof l==="string")return l;throw pd5(W,"string");};
z0.prototype.bool=function(W){if(arguments.length==0){var l=this.optionalBool();l===null&&Nk(this)}else{var V;l=(V=this.optionalBool())!=null?V:W}return l};
z0.prototype.optionalBool=function(){var W=this.JSC$19541_value_;if(W==null)return null;if(typeof W==="boolean")return W;if(typeof W==="string"){W=W.toLowerCase();if(W==="true"||W==="1")return!0;if(W==="false"||W==="0")return!1}throw pd5(this,"boolean");};
z0.prototype.number=function(W){if(arguments.length==0){var l=iis(this);l===null&&Nk(this)}else l=m35(this,W);return l};
var m35=function(W,l){var V;return(V=iis(W))!=null?V:l},iis=function(W){var l=W.JSC$19541_value_;
if(l==null)return null;if(typeof l==="number")return l;if(typeof l==="string"){var V=Number(l);if(!isNaN(V)&&(V!==0||l.trim().length!==0))return V}throw pd5(W,"number");};
z0.prototype.toString=function(){return o$Y(this)};
z0.prototype.enum=function(W,l){var V=!0,f=void 0,r;for(r in W){var R=W[r];V&&(V=!1,f=typeof R==="number"?m35(this,l):j9w(this,l));if(R==f)return f}JSON.stringify(W);return f};
z0.prototype.array=function(W){if(arguments.length==0){var l=XdZ(this);l===null&&Nk(this);return l}l=XdZ(this);return l==null?W:l};
var XdZ=function(W){var l=W.JSC$19541_value_;if(l==null)return null;Array.isArray(l)||(typeof l!=="string"?l=[l]:(l=l.trim(),l=l==""?[]:l.split(",").map(function(V){return V.trim()})));
return TAc(W,l)},TAc=function(W,l){var V=W.JSC$19541_key_+"[";
return Array.from(l,function(f,r){return new z0(V+r+"]",f)})};
z0.prototype.object=function(W){var l=this.JSC$19541_value_;if(l==null)return W===void 0&&Nk(this),W;if(typeof l==="object"&&l.constructor===Object){W={};var V=this.JSC$19541_key_+".",f;for(f in l)W[f]=new z0(V+f,l[f]);return W}throw pd5(this,"object");};var Ym=function(W){this.list_=wdc(W)},wdc=function(W){if(W instanceof Ym)W=W.list_;
else if(W[0]instanceof Ym){for(var l=new Set,V=0;V<W.length;V++)for(var f=_.L(W[V].list_),r=f.next();!r.done;r=f.next())l.add(r.value);W=l}return[].concat(_.QK(W))};
_.t=Ym.prototype;_.t.each=function(W,l,V){((V===void 0?0:V)?HNe:_.q4)(this.list_,W,l);return this};
_.t.size=function(){return this.list_.length};
_.t.isEmpty=function(){return this.list_.length===0};
_.t.get=function(W){return this.list_[W]||null};
_.t.el=function(){return this.list_[0]||null};
_.t.map=function(W,l){return _.Zl(this.list_,W,l)};
_.t.equals=function(W){return this===W||_.hx(this.list_,W.list_)};
_.t.first=function(){return this.list_.length==0?null:new xm(this.list_[0])};
_.t.last=function(){return this.list_.length==0?null:new xm(this.list_[this.list_.length-1])};
_.t.find=function(W){var l=[];this.each(function(V){V=V.querySelectorAll(String(W));for(var f=0;f<V.length;f++)l.push(V[f])});
return new Ym(l)};
_.t.parent=function(){var W=[];this.each(function(l){(l=l.parentElement||null)&&!_.Oz(W,l)&&W.push(l)});
return new Ym(W)};
_.t.children=function(){var W=[];this.each(function(l){l=_.$R(l);for(var V=0;V<l.length;V++)W.push(l[V])});
return new Ym(W)};
_.t.filter=function(W){W=_.Ul(this.list_,Grc(W));return new Ym(W)};
_.t.closest=function(W){var l=[],V=Grc(W),f=function(r){return _.Wq(r)&&V(r)};
this.each(function(r){(r=_.YN(r,f,!0))&&!_.Oz(l,r)&&l.push(r)});
return new Ym(l)};
_.t.next=function(W){return AUZ(this,_.T7a,W)};
_.t.prev=function(W){return AUZ(this,QQ1,W)};
var AUZ=function(W,l,V){var f=[];var r=V?Grc(V):biY;W.each(function(R){(R=l(R))&&r(R)&&f.push(R)});
return new Ym(f)};
Ym.prototype.setClass=function(W){return this.each(function(l){_.LC(l,W)})};
var Q91=function(W,l){return W.each(function(V){_.J2(V,l)})},Ma5=function(W,l){return W.each(function(V){_.BI(V,l)})};
Ym.prototype.toggleClass=function(W,l){return l===!0?Q91(this,W):l===!1?Ma5(this,W):this.each(function(V){_.y3(V,W)?_.BI(V,W):_.J2(V,W)})};
Ym.prototype.setText=function(W){return this.each(function(l){_.WW(l,W)})};
var Zis=function(W){W.each(function(l){l.removeAttribute("aria-hidden")})};
Ym.prototype.getStyle=function(W){if(this.list_.length>0){var l=this.list_[0],V=l.style[_.Q9(W)];return typeof V!=="undefined"?V:l.style[_.q5$(l,W)]||""}};
Ym.prototype.getData=function(W){if(this.list_.length===0)return new z0(W,null);var l=ph2(this.list_[0],W);return new z0(W,l)};
Ym.prototype.focus=function(W){try{W?this.el().focus(W):this.el().focus()}catch(l){}return this};
Ym.prototype.click=function(){var W=_.z7(this.el());if(W.createEvent){var l=W.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,W.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(l)}else W=W.createEventObject(),W.clientX=0,W.clientY=0,W.screenX=0,W.screenY=0,W.altKey=!1,W.ctrlKey=!1,W.shiftKey=!1,W.button=0,this.el().fireEvent("onclick",W)};
var eT=function(W,l,V,f){function r(P,n,B){var d=n;n&&n.parentNode&&(d=n.cloneNode(!0));P(d,B)}
f=f===void 0?!1:f;if(W.list_.length==1){var R=W.list_[0],y=function(P){return l(P,R)};
V instanceof Ym?V.each(y,void 0,f):Array.isArray(V)?(f?HNe:_.q4)(V,y):y(V);return W}return W.each(function(P){V instanceof Ym?V.each(function(n){r(l,n,P)}):Array.isArray(V)?_.q4(V,function(n){r(l,n,P)}):r(l,V,P)})};
_.t=Ym.prototype;_.t.append=function(W){return eT(this,function(l,V){l&&V.appendChild(l)},W)};
_.t.appendTo=function(W){(new Ym([W])).append(this);return this};
_.t.remove=function(){return eT(this,function(W,l){_.bI(l)},null)};
_.t.empty=function(){return eT(this,function(W,l){_.hI(l)},null)};
_.t.after=function(W,l){return eT(this,function(V,f){V&&_.Ed(V,f)},W,!(l===void 0||l))};
_.t.before=function(W){return eT(this,function(l,V){l&&_.Sg(l,V)},W)};
_.t.replaceWith=function(W){return eT(this,function(l,V){l&&_.i29(l,V)},W)};
_.t.toggle=function(W){return this.each(function(l){_.W4(l,W)})};
_.t.show=function(){return this.toggle(!0)};
_.t.hide=function(){return this.toggle(!1)};
_.t.trigger=function(W,l,V,f){return Ois(this,W,l,V,f)};
var Ois=function(W,l,V,f,r){return W.each(function(R){_.HRS(_.z7(R)).triggerWizEventInternal(R,l,V,f,r)})},xm=function(W,l){W instanceof Ym&&(l=W.list_,W=null);
this.list_=wdc(W!=null?[W]:l)};
_.Jj(xm,Ym);_.t=xm.prototype;_.t.children=function(){return new Ym(Array.prototype.slice.call(_.$R(this.list_[0])))};
_.t.each=function(W,l){W.call(l,this.list_[0],0);return this};
_.t.size=function(){return 1};
_.t.el=function(){return this.list_[0]};
_.t.first=function(){return this};var qk=function(W,l){l=l===void 0?window:l;this.hostId=W;this.JSC$19552_win=l;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$19552_previousHtmlOverscroll=this.JSC$19552_previousBodyOverscroll=this.JSC$19552_previousBodyOverflow="";this.eventTarget=new _.aj;this.JSC$19552_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
NAZ=function(W){var l=ave(ave(ave(new zC5(78),"po"),"hppp"),"hhc");
l.authUser=Number(_.M4("SESSION_INDEX","0"));l.colorScheme=W;return l};
qk.prototype.getOrigin=function(){return this.origin?this.origin:_.kg(_.uc(_.Ur(new _.dg,this.JSC$19552_win.location.protocol),this.JSC$19552_win.location.hostname),this.JSC$19552_win.location.port).toString()};
qk.prototype.getTargetOrigin=function(){return _.kg(_.uc(_.Ur(new _.dg,this.scheme),this.domain),this.port)};
qk.prototype.preloadIframe=function(W){var l=this;if(this.iframeLoadPromise===void 0){var V=document.createElement("iframe");this.iframe=V;Kzw(V,W);this.iframeLoadPromise=new Promise(function(f,r){var R=!1,y=function(P){P.stopPropagation();V.removeEventListener("error",y);V.removeEventListener("securitypolicyviolation",y);r(Error("wk",{cause:P}))};
V.addEventListener("error",y);V.addEventListener("securitypolicyviolation",y);setTimeout(function(){R||r(Error("xk"))},3E4);
YY7(l,V,function(){R=!0;V.removeEventListener("error",y);V.removeEventListener("securitypolicyviolation",y);f()})});
x31(this);W=this.getTargetOrigin().toString();V.setAttribute("allow","camera "+W+"; display-capture "+W);this.parentElement.appendChild(V)}return this.iframeLoadPromise};
var hCs=function(W,l){var V,f;return _.g(function(r){if(r.nextAddress==1)return V=d67(getComputedStyle(W.parentElement).direction==="rtl"),W.parentElement.appendChild(V),document.activeElement instanceof HTMLElement&&(W.elementToFocusAfterClose=document.activeElement),_.HG(r,2),r.yield(W.preloadIframe(l),4);if(r.nextAddress!=2){W.parentElement.removeChild(V);W.JSC$19552_previousBodyOverflow=W.parentElement.style.overflow;W.JSC$19552_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
W.JSC$19552_previousBodyOverscroll=W.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";W.parentElement.style.overscrollBehavior="contain";W.parentElement.style.overflow="hidden";var R=W.iframe;R.style.bottom="0";R.style.border="none";R.style.height="100%";R.style.left="0";R.style.position=W.iframePosition;R.style.right="0";R.style.top="0";R.style.width="100%";R.style.zIndex="2202";R.setAttribute("aria-hidden","false");R.setAttribute("aria-modal","true");
W.opened=!0;eCY(W);return _.qL(r,0)}f=_.pc(r);W.parentElement.removeChild(V);kSL(W.isDarkTheme());qYN(W,!1);throw Error("yk",{cause:f});})},qYN=function(W,l){l=l===void 0?!0:l;
W.iframe!==void 0&&(SY5(W),document.documentElement.style.overscrollBehavior=W.JSC$19552_previousHtmlOverscroll,W.parentElement.style.overscrollBehavior=W.JSC$19552_previousBodyOverscroll,W.parentElement.style.overflow=W.JSC$19552_previousBodyOverflow,W.elementToFocusAfterClose!==void 0&&(W.elementToFocusAfterClose.focus(),W.elementToFocusAfterClose=void 0),l?x31(W):(W.parentElement.removeChild(W.iframe),W.iframe=void 0,W.iframeLoadPromise=void 0,W.mainChannel=void 0),W.opened=!1)},SY5=function(W){W.backgroundElementsAriaHiddenIsNull&&
(Zis(W.backgroundElementsAriaHiddenIsNull),W.backgroundElementsAriaHiddenIsNull=void 0);
W.backgroundElementsAriaHiddenIsFalse&&(W.backgroundElementsAriaHiddenIsFalse.each(function(l){l.setAttribute("aria-hidden","false")}),W.backgroundElementsAriaHiddenIsFalse=void 0);
W.backgroundElementsWithoutInert&&(W.backgroundElementsWithoutInert.each(function(l){l.removeAttribute("inert")}),W.backgroundElementsWithoutInert=void 0)},eCY=function(W){W.backgroundElementsAriaHiddenIsNull=(new xm(W.iframe.parentElement)).children().filter(function(l){return l.getAttribute("aria-hidden")===null&&l!==W.iframe});
W.backgroundElementsAriaHiddenIsNull.each(function(l){l.setAttribute("aria-hidden","true")});
W.backgroundElementsAriaHiddenIsFalse=(new xm(W.iframe.parentElement)).children().filter(function(l){return l.getAttribute("aria-hidden")==="false"&&l!==W.iframe});
W.backgroundElementsAriaHiddenIsFalse.each(function(l){l.setAttribute("aria-hidden","true")});
W.backgroundElementsWithoutInert=(new xm(W.iframe.parentElement)).children().filter(function(l){return!l.hasAttribute("inert")&&l!==W.iframe});
W.backgroundElementsWithoutInert.each(function(l){l.setAttribute("inert","true")})},x31=function(W){W=W.iframe;
W.style.bottom="-1000px";W.style.position="fixed";W.style.right="-1000px";W.style.border="";W.style.height="";W.style.left="";W.style.top="";W.style.width="";W.style.zIndex="";W.setAttribute("aria-hidden","true");W.setAttribute("aria-modal","false")};
qk.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var zC5=function(W,l){qk.call(this,rUs[W],l);this.options=[];this.style=""};
_.v(zC5,qk);var E$4=function(W){W.style="youtube";return W},$3s=function(W,l){W.eventTarget.listen(d3L,l);
return W},W3e=function(W,l){W.eventTarget.listen(cU1,l);
return W},ave=function(W,l){W.options.push(l);
return W},lie=function(W){var l=[W.getOrigin()];
W.ancestorOrigins&&l.push.apply(l,_.QK(W.ancestorOrigins));var V=new _.dg(W.JSC$19552_win.location.href),f=W.startUrl?W.startUrl:W.options.includes("po")?"profile-picture/art":"profile-picture";l=fr(_.vD(W.getTargetOrigin(),f),"origin",l);W.startUrl&&_.$9(l,"startPath",W.startUrl);W.authUser>0&&_.$9(l,"authuser",W.authUser);W.pageId!==void 0&&_.$9(l,"pageId",W.pageId);_.$9(l,"hostId",W.hostId);W.jsMode!==void 0&&_.$9(l,"jsmode",W.jsMode);W.rectangleRatio!==void 0&&_.$9(l,"rectangleRatio",W.rectangleRatio);
W.options.length>0&&_.$9(l,"opts",W.options.join(","));try{for(var r=_.L(["utm_source","utm_medium","utm_campaign","utm_content"]),R=r.next();!R.done;R=r.next()){var y=R.value;_.Ec(V,y)&&_.$9(l,y,_.Ec(V,y))}var P,n=(P=W.hl)!=null?P:_.Ec(V,"hl");n!==void 0&&_.$9(l,"hl",n)}catch(B){if(!(B instanceof URIError))throw B;}W.colorScheme&&_.$9(l,"theme",W.colorScheme);W.style&&_.$9(l,"style",W.style);return l},VNe=function(W,l){W.mainChannel=_.Ud({destination:W.JSC$19552_win,
iframe:l,origin:W.getTargetOrigin().toString(),channelName:"ow",onMessage:function(V){V=g$N(V.data);if(l===W.iframe)switch(_.zy(V,1)){case 1:W.eventTarget.dispatchEvent(new uZ1);qYN(W);break;case 2:W.eventTarget.dispatchEvent(new D3c(_.aQ(V,4),_.aQ(V,2),_.zy(V,5),_.yy(V,s9w,6)));break;case 0:var f;W.eventTarget.dispatchEvent(new U32(_.aQ(V,2),(f=_.zy(V,3))!=null?f:0));break;case 3:W.eventTarget.dispatchEvent(new uZ1(!0));qYN(W,!1);break;case 4:W.eventTarget.dispatchEvent(new kre)}}})},YY7=function(W,
l,V){_.Ud({destination:W.JSC$19552_win,
iframe:l,origin:_.kg(_.uc(_.Ur(new _.dg,W.scheme),W.domain),W.port).toString(),channelName:"owi",onMessage:function(f){l===W.iframe&&(V!==void 0&&V(),VNe(W,l),W.opened&&W.mainChannel.send(CC4(n$4())),f.reply(),YY7(W,l))}})};
zC5.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?qk.prototype.preloadIframe.call(this,lie(this).toString()):this.iframeLoadPromise};
zC5.prototype.openPicker=function(W){var l=this;return _.g(function(V){if(V.nextAddress==1)return l.startUrl=W?W:l.options.includes("po")?"profile-picture/art":"profile-picture",V.yield(hCs(l,lie(l).toString()),2);if(l.mainChannel){var f=l.mainChannel,r=f.send;var R=n$4();R=_.mY(R,2,l.startUrl);r.call(f,CC4(R))}_.ju(V)})};var fis=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(fis,_.yP);_.t=fis.prototype;_.t.getSize=function(){return g$(this,1)};
_.t.setSize=function(W){return _.eP(this,1,W)};
_.t.getWidth=function(){return g$(this,12)};
_.t.getHeight=function(){return g$(this,13)};
_.t.setCenterCrop=function(W){return _.Jl(this,20,W)};
_.t.getHtml=function(){return _.MG(this,4)};
_.t.getToken=function(){return _.F7(this,24)};
_.t.setToken=function(W){return _.mY(this,24,W)};
_.t.getBackgroundColor=function(){return g$(this,87)};
_.t.hasBackgroundColor=function(){return _.t1(_.jP(this,87))!=null};
_.t.getStoryboardLevel=function(){return g$(this,109)};var h0=function(W){this.JSC$19560_value_=void 0;this.childNodes_={};if(W){var l=_.HpZ(W);W=_.DR(W);for(var V=0;V<l.length;V++)this.set(l[V],W[V])}};
h0.prototype.set=function(W,l){rkL(this,W,l,!1)};
h0.prototype.add=function(W,l){rkL(this,W,l,!0)};
var rkL=function(W,l,V,f){for(var r=0;r<l.length;r++){var R=l.charAt(r);W.childNodes_[R]||(W.childNodes_[R]=new h0);W=W.childNodes_[R]}if(f&&W.JSC$19560_value_!==void 0)throw Error("zk`"+l);W.JSC$19560_value_=V},R8w=function(W,l){for(var V=0;V<l.length;V++)if(W=W.childNodes_[l.charAt(V)],!W)return;
return W};
h0.prototype.get=function(W){return(W=R8w(this,W))?W.JSC$19560_value_:void 0};
h0.prototype.getValues=function(){var W=[];tNL(this,W);return W};
var tNL=function(W,l){W.JSC$19560_value_!==void 0&&l.push(W.JSC$19560_value_);for(var V in W.childNodes_)tNL(W.childNodes_[V],l)};
h0.prototype.getKeys=function(W){var l=[];if(W){for(var V=this,f=0;f<W.length;f++){var r=W.charAt(f);if(!V.childNodes_[r])return[];V=V.childNodes_[r]}s32(V,W,l)}else s32(this,"",l);return l};
var s32=function(W,l,V){W.JSC$19560_value_!==void 0&&V.push(l);for(var f in W.childNodes_)s32(W.childNodes_[f],l+f,V)};
_.t=h0.prototype;_.t.containsKey=function(W){return this.get(W)!==void 0};
_.t.containsValue=function(W){if(this.JSC$19560_value_===W)return!0;for(var l in this.childNodes_)if(this.childNodes_[l].containsValue(W))return!0;return!1};
_.t.clear=function(){this.childNodes_={};this.JSC$19560_value_=void 0};
_.t.remove=function(W){for(var l=this,V=[],f=0;f<W.length;f++){var r=W.charAt(f);if(!l.childNodes_[r])throw Error("Ak`"+W);V.push([l,r]);l=l.childNodes_[r]}W=l.JSC$19560_value_;for(delete l.JSC$19560_value_;V.length>0;)if(f=V.pop(),l=f[0],f=f[1],l.childNodes_[f].isEmpty())delete l.childNodes_[f];else break;return W};
_.t.clone=function(){return new h0(this)};
_.t.getCount=function(){return abN(this.getValues())};
_.t.isEmpty=function(){return this.JSC$19560_value_===void 0&&_.MC.isEmpty(this.childNodes_)};var o7w=function(){if(!L3s){var W=L3s=new h0,l;for(l in yk7)W.add(l,yk7[l])}},L3s,ST=function(W,l){this.types=W;
this.setters=l},yk7={a:new ST([3,
0],[function(W,l){_.Jl(W,21,l)},
function(W,l){_.eP(W,56,l)}]),
al:new ST([3],[function(W,l){_.Jl(W,74,l)}]),
b:new ST([3,0],[function(W,l){_.Jl(W,23,l)},
function(W,l){_.eP(W,38,l)}]),
ba:new ST([0],[function(W,l){_.eP(W,85,l)}]),
bc:new ST([0],[function(W,l){_.eP(W,87,l)}]),
br:new ST([0],[function(W,l){_.eP(W,86,l)}]),
c:new ST([3,0],[function(W,l){_.Jl(W,2,l)},
function(W,l){_.eP(W,39,l)}]),
cc:new ST([3],[function(W,l){_.Jl(W,51,l)}]),
ci:new ST([3],[function(W,l){_.Jl(W,32,l)}]),
ckm:new ST([3],[function(W,l){_.Jl(W,104,l)}]),
cp:new ST([0],[function(W,l){_.eP(W,92,l)}]),
cr:new ST([3],[function(W,l){_.Jl(W,108,l)}]),
cv:new ST([0],[function(W,l){_.eP(W,94,l)}]),
d:new ST([3],[function(W,l){_.Jl(W,3,l)}]),
dc:new ST([5],[function(W,l){_.mY(W,99,l)}]),
df:new ST([3],[function(W,l){_.Jl(W,80,l)}]),
dv:new ST([3],[function(W,l){_.Jl(W,90,l)}]),
e:new ST([0],[function(W,l){_.eP(W,15,l)}]),
em:new ST([0],[function(W,l){_.eP(W,107,l)}]),
f:new ST([4],[function(W,l){_.mY(W,16,l)}]),
fg:new ST([3],[function(W,l){_.Jl(W,34,l)}]),
fh:new ST([3],[function(W,l){_.Jl(W,30,l)}]),
fm:new ST([3],[function(W,l){_.Jl(W,84,l)}]),
fo:new ST([2],[function(W,l){_.P2(W,79,_.xc(l))}]),
ft:new ST([3],[function(W,l){_.Jl(W,50,l)}]),
fv:new ST([3],[function(W,l){_.Jl(W,31,l)}]),
g:new ST([3],[function(W,l){_.Jl(W,14,l)}]),
gce:new ST([4],[function(W,l){_.mY(W,112,l)}]),
gd:new ST([3],[function(W,l){_.Jl(W,83,l)}]),
gm:new ST([3],[function(W,l){_.Jl(W,105,l)}]),
h:new ST([3,0],[function(W,l){_.Jl(W,4,l)},
function(W,l){_.eP(W,13,l)}]),
i:new ST([3],[function(W,l){_.Jl(W,22,l)}]),
ic:new ST([0],[function(W,l){_.eP(W,71,l)}]),
id:new ST([3],[function(W,l){_.Jl(W,70,l)}]),
il:new ST([3],[function(W,l){_.Jl(W,96,l)}]),
ip:new ST([3],[function(W,l){_.Jl(W,54,l)}]),
iv:new ST([0],[function(W,l){_.Gs(W,75,l)}]),
j:new ST([1],[function(W,l){l=l==null?l:GtH(l);_.P2(W,29,l)}]),
k:new ST([3,0],[function(W,l){_.Jl(W,17,l)},
function(W,l){_.eP(W,42,l)}]),
l:new ST([0],[function(W,l){_.eP(W,44,l)}]),
lf:new ST([3],[function(W,l){_.Jl(W,65,l)}]),
lo:new ST([3],[function(W,l){_.Jl(W,97,l)}]),
m:new ST([0],[function(W,l){_.eP(W,63,l)}]),
md:new ST([3],[function(W,l){_.Jl(W,91,l)}]),
mm:new ST([4],[function(W,l){_.mY(W,81,l)}]),
mo:new ST([3],[function(W,l){_.Jl(W,73,l)}]),
mp:new ST([0],[function(W,l){_.eP(W,115,l)}]),
mv:new ST([3],[function(W,l){_.Jl(W,66,l)}]),
n:new ST([3],[function(W,l){W.setCenterCrop(l)}]),
nc:new ST([3],[function(W,l){_.Jl(W,55,l)}]),
nd:new ST([3],[function(W,l){_.Jl(W,53,l)}]),
ng:new ST([3],[function(W,l){_.Jl(W,95,l)}]),
ngm:new ST([3],[function(W,l){_.Jl(W,106,l)}]),
no:new ST([3],[function(W,l){_.Jl(W,37,l)}]),
ns:new ST([3],[function(W,l){_.Jl(W,40,l)}]),
nt0:new ST([4],[function(W,l){_.mY(W,36,l)}]),
ntm:new ST([3],[function(W,l){_.Jl(W,114,l)}]),
nu:new ST([3],[function(W,l){_.Jl(W,46,l)}]),
nw:new ST([3],[function(W,l){_.Jl(W,48,l)}]),
o:new ST([1,3],[function(W,l){l=l==null?l:GtH(l);_.P2(W,7,l)},
function(W,l){_.Jl(W,27,l)}]),
p:new ST([3,0],[function(W,l){_.Jl(W,19,l)},
function(W,l){_.eP(W,43,l)}]),
pa:new ST([3],[function(W,l){_.Jl(W,61,l)}]),
pc:new ST([0],[function(W,l){_.eP(W,88,l)}]),
pd:new ST([3],[function(W,l){_.Jl(W,60,l)}]),
pf:new ST([3],[function(W,l){_.Jl(W,67,l)}]),
pg:new ST([3],[function(W,l){_.Jl(W,72,l)}]),
pi:new ST([2],[function(W,l){_.P2(W,76,_.xc(l))}]),
pp:new ST([3],[function(W,l){_.Jl(W,52,l)}]),
pt:new ST([4],[function(W,l){_.mY(W,111,l)}]),
q:new ST([4],[function(W,l){_.mY(W,28,l)}]),
r:new ST([3,0],[function(W,l){_.Jl(W,6,l)},
function(W,l){_.eP(W,26,l)}]),
ra:new ST([3],[function(W,l){_.Jl(W,103,l)}]),
rf:new ST([3],[function(W,l){_.Jl(W,100,l)}]),
rg:new ST([3],[function(W,l){_.Jl(W,59,l)}]),
rh:new ST([3],[function(W,l){_.Jl(W,49,l)}]),
rj:new ST([3],[function(W,l){_.Jl(W,57,l)}]),
ro:new ST([2],[function(W,l){_.P2(W,78,_.xc(l))}]),
rp:new ST([3],[function(W,l){_.Jl(W,58,l)}]),
rw:new ST([3],[function(W,l){_.Jl(W,35,l)}]),
rwa:new ST([3],[function(W,l){_.Jl(W,64,l)}]),
rwu:new ST([3],[function(W,l){_.Jl(W,41,l)}]),
s:new ST([3,0],[function(W,l){_.Jl(W,33,l)},
function(W,l){W.setSize(l)}]),
sb:new ST([0],[function(W,l){_.eP(W,110,l)}]),
sc:new ST([0],[function(W,l){_.eP(W,89,l)}]),
sg:new ST([3],[function(W,l){_.Jl(W,82,l)}]),
sl:new ST([0],[function(W,l){_.eP(W,109,l)}]),
sm:new ST([3],[function(W,l){_.Jl(W,93,l)}]),
t:new ST([4],[function(W,l){W.setToken(l)}]),
tm:new ST([3],[function(W,l){_.Jl(W,113,l)}]),
u:new ST([3],[function(W,l){_.Jl(W,18,l)}]),
ut:new ST([3],[function(W,l){_.Jl(W,45,l)}]),
v:new ST([0],[function(W,l){_.eP(W,62,l)}]),
vb:new ST([0],[function(W,l){_.Gs(W,68,l)}]),
vf:new ST([4],[function(W,l){_.mY(W,102,l)}]),
vl:new ST([0],[function(W,l){_.Gs(W,69,l)}]),
vm:new ST([3],[function(W,l){_.Jl(W,98,l)}]),
w:new ST([0],[function(W,l){_.eP(W,12,l)}]),
x:new ST([0],[function(W,l){_.eP(W,9,l)}]),
y:new ST([0],[function(W,l){_.eP(W,10,l)}]),
ya:new ST([2],[function(W,l){_.P2(W,77,_.xc(l))}]),
z:new ST([0],[function(W,l){_.eP(W,11,l)}])};
o7w.prototype.parse=function(W){var l=new fis,V=new fis;if(W=="")W=!0;else{W=W.split("-");for(var f=!0,r=0;r<W.length;r++){var R=W[r];if(R.length==0)f=!1;else{var y=R,P=!1;var n=y;var B=y.charAt(0);B!=B.toLowerCase()&&(P=!0,n=y.charAt(0).toLowerCase()+y.substring(1));var d=L3s;for(B=1;B<=n.length;++B){var J=d,D=n.substring(0,B);if(D.length==0?J.isEmpty():!R8w(J,D))break}n=B==1?null:(n=d.get(n.substring(0,B-1)))?{option:y.substring(0,B-1),value:y.substring(B-1),signed:P,attributes:n}:null;if(n){y=
[];P=[];B=!1;for(d=0;d<n.attributes.types.length;d++){J=n.attributes.types[d];var u=n.value;D=r;if(n.signed&&J==1)for(var H=u.length;H<12&&D<W.length-1;)u+="-"+W[D+1],H=u.length,++D;else if(J==2)for(;D<W.length-1&&W[D+1].match(/^[\d\.]/);)u+="-"+W[D+1],++D;H=n.attributes.setters[d];u=gDs(this,J)(n.option,u,l,V,H);if(u===null){B=!0;r=D;break}else y.push(J),P.push(u)}if(!B)for(n=0;n<P.length;n++)d=y[n],u=P[n],PZw(this,d)(R,u);f=f&&B}else f=!1}}W=f}return new nDL(l,V,W)};
var EG=function(W,l,V,f,r,R){r(V,l);W=W.charAt(0);R=R(W==W.toUpperCase());r(f,R)};
_.t=o7w.prototype;_.t.parseAndSetIntOption_=function(W,l,V,f,r){if(l=="")return 0;isFinite(l)&&(l=String(l));l=typeof l==="string"?/^\s*-?0x/i.test(l)?parseInt(l,16):parseInt(l,10):NaN;if(isNaN(l))return 1;EG(W,l,V,f,r,Number);return null};
_.t.logIntParseError_=function(){};
_.t.parseAndSetFloatOption_=function(W,l,V,f,r){if(l=="")return 0;var R=Number(l);l=R==0&&_.gS(l)?NaN:R;if(isNaN(l))return 1;EG(W,l,V,f,r,Number);return null};
_.t.logFloatParseError_=function(){};
_.t.parseAndSetBoolOption_=function(W,l,V,f,r){if(l!="")return 2;EG(W,!0,V,f,r,Boolean);return null};
_.t.logBoolParseError_=function(){};
_.t.parseAndSetStringOption_=function(W,l,V,f,r){if(l=="")return 0;EG(W,l,V,f,r,function(R){return R?"1":""});
return null};
_.t.logStringParseError_=function(){};
_.t.parseAndSetUint64Base64Option_=function(W,l,V,f,r){if(l=="")return 0;EG(W,l,V,f,r,function(R){return R?1:0});
return null};
var gDs=function(W,l){switch(l){case 0:return(0,_.ml)(W.parseAndSetIntOption_,W);case 2:return(0,_.ml)(W.parseAndSetFloatOption_,W);case 3:return(0,_.ml)(W.parseAndSetBoolOption_,W);case 4:return(0,_.ml)(W.parseAndSetStringOption_,W);case 1:return(0,_.ml)(W.parseAndSetUint64Base64Option_,W);default:return function(){}}},PZw=function(W,l){switch(l){case 0:return(0,_.ml)(W.logIntParseError_,W);
case 2:return(0,_.ml)(W.logFloatParseError_,W);case 3:return(0,_.ml)(W.logBoolParseError_,W);case 4:case 1:return(0,_.ml)(W.logStringParseError_,W);default:return function(){}}},nDL=function(W,l,V){this.valueProto_=W;
this.signatureFlagProto_=l;this.JSC$19572_valid_=V};
nDL.prototype.isValid=function(){return this.JSC$19572_valid_};var Fz7=function(W){this.JSC$19573_parser_=null;this.JSC$19573_components_=[];this.JSC$19573_parsedOptions_=null;CZw(this,W)},ckL=function(W){W.JSC$19573_parser_==null&&(W.JSC$19573_parser_=new o7w);
return W.JSC$19573_parser_},CZw=function(W,l){W.JSC$19573_parsedOptions_=l?typeof l==="string"?ckL(W).parse(l):l:ckL(W).parse("")},$m=function(W,l){return W==l?!1:!0};
_.t=Fz7.prototype;_.t.JSC$19575_setCrop=function(W){W=W||void 0;var l=this.JSC$19573_parsedOptions_,V=l.valueProto_;$m(W,_.MG(V,2),_.MG(l.signatureFlagProto_,2))&&_.Jl(V,2,W);return this};
_.t.JSC$19575_setCircleCrop=function(W){W=W||void 0;var l=this.JSC$19573_parsedOptions_,V=l.valueProto_;$m(W,yk(V,51),yk(l.signatureFlagProto_,51))&&_.Jl(V,51,W);return this};
_.t.JSC$19575_setImageCrop=function(W){W=W||void 0;var l=this.JSC$19573_parsedOptions_,V=l.valueProto_;$m(W,yk(V,32),yk(l.signatureFlagProto_,32))&&_.Jl(V,32,W);return this};
_.t.JSC$19575_setHeight=function(W){var l=this.JSC$19573_parsedOptions_,V=l.valueProto_;$m(W,V.getHeight(),l.signatureFlagProto_.getHeight())&&_.eP(V,13,W);return this};
_.t.setCenterCrop=function(W){W=W||void 0;var l=this.JSC$19573_parsedOptions_,V=l.valueProto_;$m(W,_.MG(V,20),_.MG(l.signatureFlagProto_,20))&&V.setCenterCrop(W);return this};
_.t.JSC$19575_setSmartCrop=function(W){W=W||void 0;var l=this.JSC$19573_parsedOptions_,V=l.valueProto_;$m(W,_.MG(V,19),_.MG(l.signatureFlagProto_,19))&&_.Jl(V,19,W);return this};
_.t.JSC$19575_setPad=function(W){W=W||void 0;var l=this.JSC$19573_parsedOptions_,V=l.valueProto_;$m(W,yk(V,60),yk(l.signatureFlagProto_,60))&&_.Jl(V,60,W);return this};
_.t.JSC$19575_setSmartCropUseFace=function(W){W=W||void 0;var l=this.JSC$19573_parsedOptions_,V=l.valueProto_;$m(W,_.MG(V,67),_.MG(l.signatureFlagProto_,67))&&_.Jl(V,67,W);return this};
_.t.JSC$19575_setSmartCropNoClip=function(W){W=W||void 0;var l=this.JSC$19573_parsedOptions_,V=l.valueProto_;$m(W,_.MG(V,52),_.MG(l.signatureFlagProto_,52))&&_.Jl(V,52,W);return this};
_.t.setSize=function(W){var l=this.JSC$19573_parsedOptions_,V=l.valueProto_;$m(W,V.getSize(),l.signatureFlagProto_.getSize())&&V.setSize(W);return this};
_.t.setToken=function(W){W=W||void 0;var l=this.JSC$19573_parsedOptions_,V=l.valueProto_;$m(W,V.getToken(),l.signatureFlagProto_.getToken())&&V.setToken(W);return this};
_.t.JSC$19575_setWidth=function(W){var l=this.JSC$19573_parsedOptions_,V=l.valueProto_;$m(W,V.getWidth(),l.signatureFlagProto_.getWidth())&&_.eP(V,12,W);return this};
_.t.clearOptions=function(){CZw(this,"");return this};
_.t.build=function(){this.JSC$19573_components_.length=0;var W=this.JSC$19573_parsedOptions_,l=W.valueProto_;W=W.signatureFlagProto_;Wa(this,"s",l.getSize(),W.getSize());Wa(this,"w",l.getWidth(),W.getWidth());lx(this,"c",_.MG(l,2),_.MG(W,2));lx(this,"d",_.MG(l,3),_.MG(W,3));Wa(this,"h",l.getHeight(),W.getHeight());lx(this,"s",yk(l,33),yk(W,33));lx(this,"h",l.getHtml(),W.getHtml());lx(this,"p",_.MG(l,19),_.MG(W,19));lx(this,"pp",_.MG(l,52),_.MG(W,52));lx(this,"pf",_.MG(l,67),_.MG(W,67));lx(this,"n",
_.MG(l,20),_.MG(W,20));Wa(this,"r",g$(l,26),g$(W,26));lx(this,"r",_.MG(l,6),_.MG(W,6));lx(this,"o",yk(l,27),yk(W,27));var V=_.QI(l,7,_.oQ);Va(this,"o",V,_.QI(W,7,_.oQ));V=_.QI(l,29,_.oQ);Va(this,"j",V,_.QI(W,29,_.oQ));Wa(this,"x",g$(l,9),g$(W,9));Wa(this,"y",g$(l,10),g$(W,10));Wa(this,"z",g$(l,11),g$(W,11));lx(this,"g",_.MG(l,14),_.MG(W,14));Wa(this,"e",g$(l,15),g$(W,15));Va(this,"f",_.F7(l,16),_.F7(W,16));lx(this,"k",yk(l,17),yk(W,17));lx(this,"u",yk(l,18),!0);lx(this,"ut",yk(l,45),!0);lx(this,"i",
yk(l,22),!0);lx(this,"a",yk(l,21),yk(W,21));lx(this,"b",_.MG(l,23),_.MG(W,23));Wa(this,"b",g$(l,38),g$(W,38));Wa(this,"c",g$(l,39),g$(W,39),16,8);Va(this,"q",_.F7(l,28),_.F7(W,28));lx(this,"fh",yk(l,30),yk(W,30));lx(this,"fv",yk(l,31),yk(W,31));lx(this,"fg",_.MG(l,34),_.MG(W,34));lx(this,"ci",yk(l,32),yk(W,32));Va(this,"t",l.getToken(),W.getToken());Va(this,"nt0",_.F7(l,36),_.F7(W,36));lx(this,"rw",_.MG(l,35),_.MG(W,35));lx(this,"rwu",_.MG(l,41),_.MG(W,41));lx(this,"rwa",_.MG(l,64),_.MG(W,64));lx(this,
"nw",_.MG(l,48),_.MG(W,48));lx(this,"rh",_.MG(l,49),_.MG(W,49));lx(this,"no",_.MG(l,37),_.MG(W,37));lx(this,"ns",yk(l,40),yk(W,40));Wa(this,"k",g$(l,42),g$(W,42));Wa(this,"p",g$(l,43),g$(W,43));Wa(this,"l",g$(l,44),g$(W,44));Wa(this,"v",g$(l,62),g$(W,62));lx(this,"nu",yk(l,46),yk(W,46));lx(this,"ft",yk(l,50),yk(W,50));lx(this,"cc",yk(l,51),yk(W,51));lx(this,"nd",yk(l,53),yk(W,53));lx(this,"ip",yk(l,54),yk(W,54));lx(this,"nc",yk(l,55),yk(W,55));Wa(this,"a",g$(l,56),g$(W,56));lx(this,"rj",yk(l,57),
yk(W,57));lx(this,"rp",yk(l,58),yk(W,58));lx(this,"rg",yk(l,59),yk(W,59));lx(this,"pd",yk(l,60),yk(W,60));lx(this,"pa",yk(l,61),yk(W,61));Wa(this,"m",g$(l,63),g$(W,63));Wa(this,"vb",P5(l,68),P5(W,68));Wa(this,"vl",P5(l,69),P5(W,69));lx(this,"lf",yk(l,65),yk(W,65));lx(this,"mv",yk(l,66),yk(W,66));lx(this,"id",yk(l,70),yk(W,70));Wa(this,"ic",g$(l,71),!0);lx(this,"pg",_.MG(l,72),_.MG(W,72));lx(this,"mo",yk(l,73),yk(W,73));lx(this,"al",yk(l,74),yk(W,74));Wa(this,"iv",P5(l,75),P5(W,75));Wa(this,"pi",nr(l,
76),nr(W,76));Wa(this,"ya",nr(l,77),nr(W,77));Wa(this,"ro",nr(l,78),nr(W,78));Wa(this,"fo",nr(l,79),nr(W,79));lx(this,"df",yk(l,80),yk(W,80));Va(this,"mm",_.F7(l,81),_.F7(W,81));lx(this,"sg",yk(l,82),yk(W,82));lx(this,"gd",yk(l,83),yk(W,83));lx(this,"fm",yk(l,84),yk(W,84));Wa(this,"ba",g$(l,85),g$(W,85));Wa(this,"br",g$(l,86),g$(W,86));Wa(this,"bc",l.getBackgroundColor(),W.getBackgroundColor(),16,8);Wa(this,"pc",g$(l,88),g$(W,88),16,8);Wa(this,"sc",g$(l,89),g$(W,89),16,8);lx(this,"dv",yk(l,90),yk(W,
90));lx(this,"md",yk(l,91),yk(W,91));Wa(this,"cp",g$(l,92),g$(W,92));lx(this,"sm",yk(l,93),yk(W,93));Wa(this,"cv",g$(l,94),g$(W,94));lx(this,"ng",yk(l,95),yk(W,95));lx(this,"il",yk(l,96),yk(W,96));lx(this,"lo",yk(l,97),yk(W,97));lx(this,"vm",yk(l,98),yk(W,98));Va(this,"dc",_.F7(l,99),_.F7(W,99));lx(this,"rf",yk(l,100),yk(W,100));Va(this,"vf",_.F7(l,102),_.F7(W,102));lx(this,"ra",_.MG(l,103),_.MG(W,103));lx(this,"ckm",yk(l,104),yk(W,104));lx(this,"gm",yk(l,105),yk(W,105));lx(this,"ngm",yk(l,106),yk(W,
106));Wa(this,"em",g$(l,107),g$(W,107));lx(this,"cr",yk(l,108),yk(W,108));Wa(this,"sl",l.getStoryboardLevel(),W.getStoryboardLevel());Wa(this,"sb",g$(l,110),g$(W,110));Va(this,"pt",_.F7(l,111),_.F7(W,111));Va(this,"gce",_.F7(l,112),_.F7(W,112));lx(this,"tm",yk(l,113),yk(W,113));lx(this,"ntm",yk(l,114),yk(W,114));Wa(this,"mp",g$(l,115),g$(W,115));return this.JSC$19573_components_.join("-")};
var Wa=function(W,l,V,f,r,R){if(V!=null){var y=r==void 0||r!=10&&r!=16?10:r;V=Number(V).toString(y);r=new zMZ;r.append(y==16?"0x":"");y=r.append;R==void 0?R="":(R-=V.length,R=R<=0?"":(0,_.D1e)("0",R));y.call(r,R);r.append(V);BPN(W,l,r.toString(),!!Number(f))}},lx=function(W,l,V,f){V&&BPN(W,l,"",!!f)},Va=function(W,l,V,f){V&&BPN(W,l,String(V),!!Number(f))},BPN=function(W,l,V,f){f&&(l=l.charAt(0).toUpperCase()+l.substring(1));
W.JSC$19573_components_.push(l+V)};_.Jj(ua,Fz7);_.t=ua.prototype;_.t.JSC$19575_setCrop=function(W){W&&fw(this);return ua.superClass_.JSC$19575_setCrop.call(this,W)};
_.t.JSC$19575_setHeight=function(W){W=W==null||W<0?void 0:W;W!=null&&this.setSize();return ua.superClass_.JSC$19575_setHeight.call(this,W)};
_.t.JSC$19575_setImageCrop=function(W){W&&fw(this);return ua.superClass_.JSC$19575_setImageCrop.call(this,W)};
_.t.JSC$19575_setCircleCrop=function(W){W&&fw(this);return ua.superClass_.JSC$19575_setCircleCrop.call(this,W)};
_.t.setSize=function(W){_.ev(W)&&(W=Math.max(W.width,W.height));W=W==null||W<0?void 0:W;W!=null&&(this.JSC$19575_setWidth(),this.JSC$19575_setHeight());return ua.superClass_.setSize.call(this,W)};
_.t.JSC$19575_setSmartCrop=function(W){W&&fw(this);return ua.superClass_.JSC$19575_setSmartCrop.call(this,W)};
_.t.JSC$19575_setSmartCropNoClip=function(W){W&&fw(this);return ua.superClass_.JSC$19575_setSmartCropNoClip.call(this,W)};
_.t.JSC$19575_setSmartCropUseFace=function(W){W&&fw(this);return ua.superClass_.JSC$19575_setSmartCropUseFace.call(this,W)};
_.t.setCenterCrop=function(W){W&&fw(this);return ua.superClass_.setCenterCrop.call(this,W)};
_.t.JSC$19575_setPad=function(W){W&&fw(this);return ua.superClass_.JSC$19575_setPad.call(this,W)};
_.t.JSC$19575_setWidth=function(W){W=W==null||W<0?void 0:W;W!=null&&this.setSize();return ua.superClass_.JSC$19575_setWidth.call(this,W)};
var dVN=function(W){W.clearOptions();var l=W.JSC$19573_parsedOptions_,V=l.valueProto_;$m(!0,_.MG(V,3),_.MG(l.signatureFlagProto_,3))&&_.Jl(V,3,!0);return W},fw=function(W){W.setCenterCrop();
W.JSC$19575_setCircleCrop();W.JSC$19575_setCrop();W.JSC$19575_setImageCrop();W.JSC$19575_setPad();W.JSC$19575_setSmartCrop();W.JSC$19575_setSmartCropNoClip();W.JSC$19575_setSmartCropUseFace()};
ua.prototype.build=function(){var W=this.JSC$19573_parsedOptions_.valueProto_;yk(W,18)||yk(W,45)?W.getSize()||this.setSize(0):(W=this.JSC$19573_parsedOptions_.valueProto_,W.getSize()||W.getWidth()||W.getHeight()||(this.setSize(),this.JSC$19575_setHeight(),this.JSC$19575_setWidth(),fw(this)));return ua.superClass_.build.call(this)};var Jkw=/^[^\/]*\/\//,rj=function(W,l){l=l===void 0?!1:l;this.original_=W;this.originalPrefix_="";(W=this.original_.match(Jkw))&&W[0]?(this.originalPrefix_=W[0],W=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):W="http://"+this.original_;this.uri_=_.SV(W,!0);this.isFreeformUrl_=l;this.JSC$19579_valid_=!0;this.obfuscated_=!1},DVH=function(W,l){W.JSC$19581_pathPrefix_=W.JSC$19581_pathPrefix_?W.JSC$19581_pathPrefix_+("/"+l):l},Re=function(W){if(W.JSC$19581_components_==
void 0){var l=W.uri_.getPath().substring(1);
W.JSC$19581_pathPrefix_=null;if(W.isFreeformUrl_){W.JSC$19581_components_=[];if((l.match(/=/g)||[]).length>1)return W.JSC$19579_valid_=!1,W.JSC$19581_components_;var V=l.indexOf("=");V!=-1?(W.JSC$19581_components_.push(l.substr(0,V)),W.JSC$19581_components_.push(l.substr(V+1))):W.JSC$19581_components_.push(l);return W.JSC$19581_components_}W.JSC$19581_components_=l.split("/");l=W.JSC$19581_components_.length;l>2&&W.JSC$19581_components_[0]=="u"&&(DVH(W,W.JSC$19581_components_[0]+"/"+W.JSC$19581_components_[1]),
W.JSC$19581_components_.shift(),W.JSC$19581_components_.shift(),l-=2);if(l==0||l==4||l>7)return W.JSC$19579_valid_=!1,W.JSC$19581_components_;if(l==2)DVH(W,W.JSC$19581_components_[0]);else if(W.JSC$19581_components_[0]=="image")DVH(W,W.JSC$19581_components_[0]);else if(l==7||l==3)return W.JSC$19579_valid_=!1,W.JSC$19581_components_;if(l<=3){W.obfuscated_=!0;l==3&&(DVH(W,W.JSC$19581_components_[1]),W.JSC$19581_components_.shift(),--l);--l;V=W.JSC$19581_components_[l];var f=V.indexOf("=");f!=-1&&(W.JSC$19581_components_[l]=
V.substr(0,f),W.JSC$19581_components_.push(V.substr(f+1)))}}return W.JSC$19581_components_};
rj.prototype.isValid=function(){Re(this);return this.JSC$19579_valid_};
rj.prototype.isObfuscated=function(){Re(this);return this.obfuscated_};
var UVw=function(W){Re(W);return W.isFreeformUrl_},to=function(W){Re(W);
W.JSC$19581_pathPrefix_==void 0&&(W.JSC$19581_pathPrefix_=null);return W.JSC$19581_pathPrefix_},ub1=function(W){switch(Re(W).length){case 7:return!0;
case 6:return to(W)==null;case 5:return!1;case 3:return!0;case 2:return to(W)==null;case 1:return!1;default:return!1}},sn=function(W,l){if(UVw(W))a:{switch(l){case 7:l=0;
break;case 4:if(!ub1(W)){W=null;break a}l=1;break;default:W=null;break a}W=Re(W)[l]}else if(W.isObfuscated())a:{var V=to(W)!=null?1:0;switch(l){case 6:l=V;break;case 4:if(!ub1(W)){W=null;break a}l=1+V;break;default:W=null;break a}W=Re(W)[l]}else a:{V=to(W)!=null?1:0;switch(l){case 0:l=V;break;case 1:l=1+V;break;case 2:l=2+V;break;case 3:l=3+V;break;case 4:if(!ub1(W)){W=null;break a}l=4+V;break;case 5:l=ub1(W)?1:0;l=4+V+l;break;default:W=null;break a}W=Re(W)[l]}return W};
rj.prototype.getOptions=function(){this.options_==void 0&&(this.options_=sn(this,4));return this.options_};var pV4=function(){};
pV4.prototype.parse=function(W,l){return new GS5(W,l===void 0?!1:l)};
var GS5=function(W,l){rj.call(this,W,l===void 0?!1:l)};
_.v(GS5,rj);_.Jj(ko,ua);var bGw;ko.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
ko.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var W=ko.superClass_.build.call(this),l=[];to(this.parsedImageUrl_)!=null&&l.push(to(this.parsedImageUrl_));var V=UVw(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var f=this.parsedImageUrl_;f.obfuscatedData_==void 0&&(f.obfuscatedData_=sn(f,6));l.push(f.obfuscatedData_+(W?"="+W:""))}else if(V){f=l.push;var r=this.parsedImageUrl_;r.freeformUrlPath_===void 0&&(r.freeformUrlPath_=sn(r,
7));f.call(l,r.freeformUrlPath_);W&&l.push(W)}else f=l.push,r=this.parsedImageUrl_,r.obfuscatedGaiaId_==void 0&&(r.obfuscatedGaiaId_=sn(r,0)),f.call(l,r.obfuscatedGaiaId_),f=l.push,r=this.parsedImageUrl_,r.photoId_==void 0&&(r.photoId_=sn(r,1)),f.call(l,r.photoId_),f=l.push,r=this.parsedImageUrl_,r.imageVersion_==void 0&&(r.imageVersion_=sn(r,2)),f.call(l,r.imageVersion_),f=l.push,r=this.parsedImageUrl_,r.signature_==void 0&&(r.signature_=sn(r,3)),f.call(l,r.signature_),W&&l.push(W),W=l.push,f=this.parsedImageUrl_,
f.filename_==void 0&&(f.filename_=sn(f,5)),W.call(l,f.filename_);l=V?l.join("="):l.join("/");l=_.SV(this.protocolPrefix_+this.JSC$19587_domain_+"/"+l+(this.JSC$19587_query_?"?"+this.JSC$19587_query_:"")).toString();l.startsWith("%3a//")&&(l=l.replace("%3a//","://"));return l};var kXe=_.tj(["viewBox"]),vDc=_.tj(["width"]),Hz1=_.tj(["height"]),K3Y=_.tj(["fill"]),F31=_.tj(["id"]),GXY=_.tj(["x"]),bz2=_.tj(["y"]);j11.prototype.getLength=function(){return this.parsedData.length};
j11.prototype.write=function(W){for(var l=0,V=this.parsedData.length;l<V;l++)W.put(this.parsedData[l],8)};
var AaZ=function(W,l){var V=new j11(l);W.dataList.push(V);V=W.errorCorrectLevel;var f=1,r=encodeURI(l).toString().replace(/%[0-9a-fA-F]{2}/g,"a");l=r.length+(r.length!=l?3:0);r=0;for(var R=Lw.length;r<=R;r++){var y=0;switch(V){case 1:y=Lw[r][0];break;case 0:y=Lw[r][1];break;case 3:y=Lw[r][2];break;case 2:y=Lw[r][3]}if(l<=y)break;else f++}if(f>Lw.length)throw Error("Jk");W.typeNumber=f;W.dataCache=null};
Ir1.prototype.isDark=function(W,l){if(W<0||this.moduleCount<=W||l<0||this.moduleCount<=l)throw Error("Bk`"+W+"`"+l);return this.modules[W][l]};
for(var Q15=function(W,l,V){W.moduleCount=W.typeNumber*4+17;W.modules=Array(W.moduleCount);for(var f=0;f<W.moduleCount;f++){W.modules[f]=Array(W.moduleCount);for(var r=0;r<W.moduleCount;r++)W.modules[f][r]=null}pww(W,0,0);pww(W,W.moduleCount-7,0);pww(W,0,W.moduleCount-7);f=oD1[W.typeNumber-1];for(r=0;r<f.length;r++)for(var R=0;R<f.length;R++){var y=f[r],P=f[R];if(W.modules[y][P]==null)for(var n=-2;n<=2;n++)for(var B=-2;B<=2;B++)W.modules[y+n][P+B]=n==-2||n==2||B==-2||B==2||n==0&&B==0?!0:!1}for(f=
8;f<W.moduleCount-8;f++)W.modules[f][6]==null&&(W.modules[f][6]=f%2==0);for(f=8;f<W.moduleCount-8;f++)W.modules[6][f]==null&&(W.modules[6][f]=f%2==0);f=W.errorCorrectLevel<<3|V;for(r=f<<10;ya(r)-ya(1335)>=0;)r^=1335<<ya(r)-ya(1335);f=(f<<10|r)^21522;for(r=0;r<15;r++)R=!l&&(f>>r&1)==1,r<6?W.modules[r][8]=R:r<8?W.modules[r+1][8]=R:W.modules[W.moduleCount-15+r][8]=R;for(r=0;r<15;r++)R=!l&&(f>>r&1)==1,r<8?W.modules[8][W.moduleCount-r-1]=R:r<9?W.modules[8][15-r-1+1]=R:W.modules[8][15-r-1]=R;W.modules[W.moduleCount-
8][8]=!l;if(W.typeNumber>=7){f=W.typeNumber;for(r=f<<12;ya(r)-ya(7973)>=0;)r^=7973<<ya(r)-ya(7973);f=f<<12|r;for(r=0;r<18;r++)R=!l&&(f>>r&1)==1,W.modules[Math.floor(r/3)][r%3+W.moduleCount-8-3]=R;for(r=0;r<18;r++)R=!l&&(f>>r&1)==1,W.modules[r%3+W.moduleCount-8-3][Math.floor(r/3)]=R}if(W.dataCache==null){r=W.typeNumber;R=W.dataList;l=W.errorCorrectLevel;f=j37(r,l);if(f==void 0)throw Error("Ik`"+r+"`"+l);y=f.length/3;l=[];for(P=0;P<y;P++){n=f[P*3];B=f[P*3+1];for(var d=f[P*3+2],J=0;J<n;J++)l.push(new iGL(B,
d))}f=new m65;for(y=0;y<R.length;y++)P=R[y],f.put(P.mode,4),f.put(P.getLength(),Ii1(P.mode,r)),P.write(f);for(y=r=0;y<l.length;y++)r+=l[y].dataCount;if(f.length>r*8)throw Error("Ck`"+f.length+"`"+r*8);for(f.length+4<=r*8&&f.put(0,4);f.length%8!=0;)izN(f,!1);for(;!(f.length>=r*8);){f.put(236,8);if(f.length>=r*8)break;f.put(17,8)}R=r=B=0;y=Array(l.length);P=Array(l.length);for(n=0;n<l.length;n++){J=l[n].dataCount;var D=l[n].totalCount-J;r=Math.max(r,J);R=Math.max(R,D);y[n]=Array(J);for(d=0;d<y[n].length;d++)y[n][d]=
255&f.buffer[d+B];B+=J;d=D;J=new vX([1],0);for(D=0;D<d;D++)J=J.multiply(new vX([1,mVN(D)],0));d=J;J=(new vX(y[n],d.getLength()-1)).mod(d);P[n]=Array(d.getLength()-1);for(d=0;d<P[n].length;d++)D=d+J.getLength()-P[n].length,P[n][d]=D>=0?J.get(D):0}for(d=f=0;d<l.length;d++)f+=l[d].totalCount;f=Array(f);for(d=B=0;d<r;d++)for(n=0;n<l.length;n++)d<y[n].length&&(f[B++]=y[n][d]);for(d=0;d<R;d++)for(n=0;n<l.length;n++)d<P[n].length&&(f[B++]=P[n][d]);W.dataCache=f}l=W.dataCache;f=-1;r=W.moduleCount-1;R=7;y=
0;for(P=W.moduleCount-1;P>0;P-=2)for(P==6&&P--;;){for(n=0;n<2;n++)W.modules[r][P-n]==null&&(B=!1,y<l.length&&(B=(l[y]>>>R&1)==1),XwY(V,r,P-n)&&(B=!B),W.modules[r][P-n]=B,R--,R==-1&&(y++,R=7));r+=f;if(r<0||W.moduleCount<=r){r-=f;f=-f;break}}},pww=function(W,l,V){for(var f=-1;f<=7;f++)if(!(l+f<=-1||W.moduleCount<=l+f))for(var r=-1;r<=7;r++)V+r<=-1||W.moduleCount<=V+r||(W.modules[l+f][V+r]=0<=f&&f<=6&&(r==0||r==6)||0<=r&&r<=6&&(f==0||f==6)||2<=f&&f<=4&&2<=r&&r<=4?!0:!1)},M3s=function(W){for(var l=0,
V=0,f=0;f<8;f++){Q15(W,!0,f);
var r=W;for(var R=r.moduleCount,y=0,P=0;P<R;P++)for(var n=0;n<R;n++){for(var B=0,d=r.isDark(P,n),J=-1;J<=1;J++)if(!(P+J<0||R<=P+J))for(var D=-1;D<=1;D++)n+D<0||R<=n+D||(J!=0||D!=0)&&d==r.isDark(P+J,n+D)&&B++;B>5&&(y+=3+B-5)}for(P=0;P<R-1;P++)for(n=0;n<R-1;n++)if(B=0,r.isDark(P,n)&&B++,r.isDark(P+1,n)&&B++,r.isDark(P,n+1)&&B++,r.isDark(P+1,n+1)&&B++,B==0||B==4)y+=3;for(P=0;P<R;P++)for(n=0;n<R-6;n++)r.isDark(P,n)&&!r.isDark(P,n+1)&&r.isDark(P,n+2)&&r.isDark(P,n+3)&&r.isDark(P,n+4)&&!r.isDark(P,n+5)&&
r.isDark(P,n+6)&&(y+=40);for(n=0;n<R;n++)for(P=0;P<R-6;P++)r.isDark(P,n)&&!r.isDark(P+1,n)&&r.isDark(P+2,n)&&r.isDark(P+3,n)&&r.isDark(P+4,n)&&!r.isDark(P+5,n)&&r.isDark(P+6,n)&&(y+=40);for(n=B=0;n<R;n++)for(P=0;P<R;P++)r.isDark(P,n)&&B++;r=y+=Math.abs(100*B/R/R-50)/5*10;if(f==0||l>r)l=r,V=f}return V},oD1=[[],
[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]],ya=function(W){for(var l=0;W!=0;)l++,W>>>=1;return l},XwY=function(W,l,V){switch(W){case 0:return(l+V)%2==0;
case 1:return l%2==0;case 2:return V%3==0;case 3:return(l+V)%3==0;case 4:return(Math.floor(l/2)+Math.floor(V/3))%2==0;case 5:return l*V%2+l*V%3==0;case 6:return(l*V%2+l*V%3)%2==0;case 7:return(l*V%3+(l+V)%2)%2==0;default:throw Error("Dk`"+W);}},Ii1=function(W,l){if(1<=l&&l<10)switch(W){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Ek`"+W);}else if(l<27)switch(W){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Ek`"+W);}else if(l<41)switch(W){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Ek`"+W);}else throw Error("Fk`"+l);},gj=function(W){if(W<1)throw Error("Gk`"+W);
return TPY[W]},mVN=function(W){for(;W<0;)W+=255;
for(;W>=256;)W-=255;return Pa[W]},Pa=Array(256),TPY=Array(256),wwN=0;wwN<8;wwN++)Pa[wwN]=1<<wwN;
for(var nw=8;nw<256;nw++)Pa[nw]=Pa[nw-4]^Pa[nw-5]^Pa[nw-6]^Pa[nw-8];for(var Ak4=0;Ak4<255;Ak4++)TPY[Pa[Ak4]]=Ak4;vX.prototype.get=function(W){return this.num[W]};
vX.prototype.getLength=function(){return this.num.length};
vX.prototype.multiply=function(W){for(var l=Array(this.getLength()+W.getLength()-1),V=0;V<this.getLength();V++)for(var f=0;f<W.getLength();f++)l[V+f]^=mVN(gj(this.get(V))+gj(W.get(f)));return new vX(l,0)};
vX.prototype.mod=function(W){if(this.getLength()-W.getLength()<0)return this;for(var l=gj(this.get(0))-gj(W.get(0)),V=Array(this.getLength()),f=0;f<this.getLength();f++)V[f]=this.get(f);for(f=0;f<W.getLength();f++)V[f]^=mVN(gj(W.get(f))+l);return(new vX(V,0)).mod(W)};
var Q3c=[[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]],j37=function(W,l){switch(l){case 1:return Q3c[(W-1)*4];case 0:return Q3c[(W-1)*4+1];case 3:return Q3c[(W-1)*4+2];case 2:return Q3c[(W-1)*4+3]}};
m65.prototype.get=function(W){return(this.buffer[Math.floor(W/8)]>>>7-W%8&1)==1};
m65.prototype.put=function(W,l){for(var V=0;V<l;V++)izN(this,(W>>>l-V-1&1)==1)};
var izN=function(W,l){var V=Math.floor(W.length/8);W.buffer.length<=V&&W.buffer.push(0);l&&(W.buffer[V]|=128>>>W.length%8);W.length++},Lw=[[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]],wVe=function(){var W=function(l,V){this.JSC$19607__el=l;this.JSC$19607__htOption=V};
W.prototype.draw=function(l){function V(d,J){d=document.createElementNS("http://www.w3.org/2000/svg",d);for(var D in J)J.hasOwnProperty(D)&&(D==="href"?_.yYc(d,J[D]):_.yK([_.n5(kXe),_.n5(vDc),_.n5(Hz1),_.n5(K3Y),_.n5(F31),_.n5(GXY),_.n5(bz2)],d,D,J[D]));return d}
var f=this.JSC$19607__htOption,r=this.JSC$19607__el,R=l.moduleCount;this.clear();var y=V("svg",{viewBox:"0 0 "+String(R)+" "+String(R),width:"100%",height:"100%",fill:f.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});r.appendChild(y);y.appendChild(V("rect",{fill:f.colorLight,width:"100%",height:"100%"}));y.appendChild(V("rect",{fill:f.colorDark,width:"1",height:"1",id:"template"}));for(var P=0;P<R;P++)for(var n=0;n<R;n++)if(l.isDark(P,n)){var B=V("use",{x:String(P),y:String(n),href:"#template"});
y.appendChild(B)}};
W.prototype.clear=function(){for(;this.JSC$19607__el.hasChildNodes();)this.JSC$19607__el.removeChild(this.JSC$19607__el.lastChild)};
return W}(),T_w=document.documentElement.tagName.toLowerCase()==="svg"?wVe:typeof CanvasRenderingContext2D!="undefined"?function(){var W=function(l,V){this._bIsPainted=!1;
XVc();this.JSC$19607__htOption=V;this._elCanvas=document.createElement("canvas");this._elCanvas.width=V.width;this._elCanvas.height=V.height;l.appendChild(this._elCanvas);this.JSC$19607__el=l;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$19607__el.appendChild(this._elImage);this._bSupportDataURI=null};
W.prototype._onMakeImage=function(){var l=this._elCanvas.toDataURL("image/png");this._elImage.src=l;this._elImage.style.display="block";this._elCanvas.style.display="none"};
W.prototype._safeSetDataURI=function(l,V){var f=this;f._fFail=V;f._fSuccess=l;f._bSupportDataURI===null?(l=_.Gz("IMG"),V=function(){f._bSupportDataURI=!1;f._fFail&&f._fFail.call(f)},l.onabort=V,l.onerror=V,l.onload=function(){f._bSupportDataURI=!0;
f._fSuccess&&f._fSuccess.call(f)},l.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):f._bSupportDataURI===!0&&f._fSuccess?f._fSuccess.call(f):f._bSupportDataURI===!1&&f._fFail&&f._fFail.call(f)};
W.prototype.draw=function(l){var V=this._oContext,f=this.JSC$19607__htOption,r=l.moduleCount,R=f.width/r,y=f.height/r,P=Math.round(R),n=Math.round(y);this._elImage.style.display="none";this.clear();for(var B=0;B<r;B++)for(var d=0;d<r;d++){var J=l.isDark(B,d),D=d*R,u=B*y;V.strokeStyle=J?f.colorDark:f.colorLight;V.lineWidth=1;V.fillStyle=J?f.colorDark:f.colorLight;V.fillRect(D,u,R,y);V.strokeRect(Math.floor(D)+.5,Math.floor(u)+.5,P,n);V.strokeRect(Math.ceil(D)-.5,Math.ceil(u)-.5,P,n)}this._bIsPainted=
!0};
W.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
W.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
W.prototype.round=function(l){return l?Math.floor(l*1E3)/1E3:l};
return W}():function(){var W=function(l,V){this.JSC$19607__el=l;
this.JSC$19607__htOption=V};
W.prototype.draw=function(l){for(var V=this.JSC$19607__htOption,f=this.JSC$19607__el,r=l.moduleCount,R=Math.floor(V.width/r),y=Math.floor(V.height/r),P=['<table style="border:0;border-collapse:collapse;">'],n=0;n<r;n++){P.push("<tr>");for(var B=0;B<r;B++)P.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+R+"px;height:"+y+"px;background-color:"+(l.isDark(n,B)?V.colorDark:V.colorLight)+';"></td>');P.push("</tr>")}P.push("</table>");l=P.join("");l=_.LNX(_.gZL,l);_.sx(f,l);
l=f.childNodes[0];r=(V.width-l.offsetWidth)/2;R=(V.height-l.offsetHeight)/2;r>0&&R>0&&(l.style.margin=R+"px "+r+"px")};
W.prototype.clear=function(){this.JSC$19607__el.textContent=""};
return W}();
ZGe.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19610__android||this.JSC$19610__android>=3)&&this._oDrawing.makeImage()};
ZGe.prototype.clear=function(){this._oDrawing.clear()};
_.rS.QRCode=ZGe;var MNH={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var Cw=function(){};
Cw.prototype.stringify=function(W){return _.rS.JSON.stringify(W,void 0)};
Cw.prototype.parse=function(W){return _.rS.JSON.parse(W,void 0)};var ZzH=function(){_.AS.call(this,"z")};
_.Jj(ZzH,_.AS);var Oz1=function(){_.AS.call(this,"y")};
_.Jj(Oz1,_.AS);var ai4=null,z8Z=function(){return ai4=ai4||new _.aj},NPZ=function(W){_.AS.call(this,"serverreachability",W)};
_.Jj(NPZ,_.AS);var ca=function(W){var l=z8Z();l.dispatchEvent(new NPZ(l,W))},Ys4=function(W,l){_.AS.call(this,"statevent",W);
this.stat=l};
_.Jj(Ys4,_.AS);var Ba=function(W){var l=z8Z();l.dispatchEvent(new Ys4(l,W))},xV1=function(W,l,V,f){_.AS.call(this,"timingevent",W);
this.size=l;this.rtt=V;this.retries=f};
_.Jj(xV1,_.AS);var e85=function(W,l,V){var f=z8Z();f.dispatchEvent(new xV1(f,W,l,V))},dj=function(W,l){if(typeof W!=="function")throw Error("Kk");
return _.rS.setTimeout(function(){W()},l)};var Jo=function(){this.redactEnabled_=!0};
Jo.prototype.disableRedact=function(){this.redactEnabled_=!1};
var qsY=function(W,l,V,f,r,R){W.info(function(){if(W.redactEnabled_)if(R){var y="";for(var P=R.split("&"),n=0;n<P.length;n++){var B=P[n].split("=");if(B.length>1){var d=B[0];B=B[1];var J=d.split("_");y=J.length>=2&&J[1]=="type"?y+(d+"="+B+"&"):y+(d+"=redacted&")}}}else y=null;else y=R;return"XMLHTTP REQ ("+f+") [attempt "+r+"]: "+l+"\n"+V+"\n"+y})},h84=function(W,l,V,f,r,R,y){W.info(function(){return"XMLHTTP RESP ("+f+") [ attempt "+r+"]: "+l+"\n"+V+"\n"+R+" "+y})},DE=function(W,l,V,f){W.info(function(){return"XMLHTTP TEXT ("+
l+"): "+Sse(W,V)+(f?" "+f:"")})},EDL=function(W,l){W.info(function(){return"TIMEOUT: "+l})};
Jo.prototype.debug=function(){};
Jo.prototype.info=function(){};
Jo.prototype.warning=function(){};
var Sse=function(W,l){if(!W.redactEnabled_)return l;if(!l)return null;try{var V=JSON.parse(l);if(V)for(var f=0;f<V.length;f++)if(Array.isArray(V[f])){var r=V[f];if(!(r.length<2)){var R=r[1];if(Array.isArray(R)&&!(R.length<1)){var y=R[0];if(y!="noop"&&y!="stop"&&y!="close")for(var P=1;P<R.length;P++)R[P]=""}}}return(0,_.hS)(V)}catch(n){return W.debug("Exception parsing expected JS array - probably was not JS"),l}};var Un=function(W,l,V,f,r){this.JSC$19632_channel_=W;this.JSC$19632_channelDebug_=l;this.sid_=V;this.JSC$19632_rid_=f;this.JSC$19632_retryId_=r||1;this.JSC$19632_eventHandler_=new _.nX(this);this.timeout_=45E3;this.JSC$19632_extraHeaders_=null;this.JSC$19632_successful_=!1;this.JSC$19632_postData_=this.JSC$19632_requestUri_=this.JSC$19632_baseUri_=this.JSC$19632_type_=this.JSC$19632_requestStartTime_=this.JSC$19632_watchDogTimeoutTime_=this.JSC$19632_watchDogTimerId_=null;this.JSC$19632_pendingMessages_=
[];this.JSC$19632_xmlHttp_=null;this.JSC$19632_xmlHttpChunkStart_=0;this.JSC$19632_lastError_=this.JSC$19632_verb_=null;this.JSC$19632_lastStatusCode_=-1;this.JSC$19632_cancelled_=!1;this.JSC$19632_readyStateChangeThrottleMs_=0;this.JSC$19632_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new $V4},$V4=function(){this.JSC$19634_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},Wps=function(W,l){switch(W){case 0:return"Non-200 return code ("+l+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},l3Z={},Vq4={};
Un.prototype.setTimeout=function(W){this.timeout_=W};
var ruH=function(W,l,V){W.JSC$19632_type_=1;W.JSC$19632_baseUri_=_.or(l.clone());W.JSC$19632_postData_=V;W.decodeChunks_=!0;f35(W,null)},f35=function(W,l){W.JSC$19632_requestStartTime_=Date.now();
RiY(W);W.JSC$19632_requestUri_=W.JSC$19632_baseUri_.clone();fr(W.JSC$19632_requestUri_,"t",W.JSC$19632_retryId_);W.JSC$19632_xmlHttpChunkStart_=0;var V=W.JSC$19632_channel_.JSC$19651_supportsCrossDomainXhrs_;W.fetchResponseState_=new $V4;W.JSC$19632_xmlHttp_=tq2(W.JSC$19632_channel_,V?l:null,!W.JSC$19632_postData_);W.JSC$19632_readyStateChangeThrottleMs_>0&&(W.JSC$19632_readyStateChangeThrottle_=new _.t$((0,_.ml)(W.JSC$19636_xmlHttpHandler_,W,W.JSC$19632_xmlHttp_),W.JSC$19632_readyStateChangeThrottleMs_));
W.JSC$19632_eventHandler_.listen(W.JSC$19632_xmlHttp_,"readystatechange",W.JSC$19636_readyStateChangeHandler_);l=W.JSC$19632_extraHeaders_?_.MC.clone(W.JSC$19632_extraHeaders_):{};W.JSC$19632_postData_?(W.JSC$19632_verb_||(W.JSC$19632_verb_="POST"),l["Content-Type"]="application/x-www-form-urlencoded",W.JSC$19632_xmlHttp_.send(W.JSC$19632_requestUri_,W.JSC$19632_verb_,W.JSC$19632_postData_,l)):(W.JSC$19632_verb_="GET",W.JSC$19632_xmlHttp_.send(W.JSC$19632_requestUri_,W.JSC$19632_verb_,null,l));ca(1);
qsY(W.JSC$19632_channelDebug_,W.JSC$19632_verb_,W.JSC$19632_requestUri_,W.JSC$19632_rid_,W.JSC$19632_retryId_,W.JSC$19632_postData_)};
Un.prototype.JSC$19636_readyStateChangeHandler_=function(W){W=W.target;var l=this.JSC$19632_readyStateChangeThrottle_;l&&_.Ef(W)==3?(this.JSC$19632_channelDebug_.debug("Throttling readystatechange."),l.fire()):this.JSC$19636_xmlHttpHandler_(W)};
Un.prototype.JSC$19636_xmlHttpHandler_=function(W){try{W==this.JSC$19632_xmlHttp_?sMZ(this):this.JSC$19632_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(l){this.JSC$19632_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),LpL(this)}finally{}};
var sMZ=function(W){var l=_.Ef(W.JSC$19632_xmlHttp_),V=W.JSC$19632_xmlHttp_.JSC$9791_lastErrorCode_,f=W.JSC$19632_xmlHttp_.getStatus();if(!(l<3||l==3&&!LpL(W))){W.JSC$19632_cancelled_||l!=4||V==7||(V==8||f<=0?ca(3):ca(2));yu1(W);var r=W.JSC$19632_xmlHttp_.getStatus();W.JSC$19632_lastStatusCode_=r;V=g6Y(W);LpL(W)||W.JSC$19632_channelDebug_.debug(function(){return"No response text for uri "+W.JSC$19632_requestUri_+" status "+r});
W.JSC$19632_successful_=r==200;h84(W.JSC$19632_channelDebug_,W.JSC$19632_verb_,W.JSC$19632_requestUri_,W.JSC$19632_rid_,W.JSC$19632_retryId_,l,r);if(W.JSC$19632_successful_){if(W.decodeInitialResponse_&&!W.initialResponseDecoded_)if(f=P9Y(W))DE(W.JSC$19632_channelDebug_,W.JSC$19632_rid_,f,"Initial handshake response via X-HTTP-Initial-Response"),W.initialResponseDecoded_=!0,n6w(W,f);else{W.JSC$19632_successful_=!1;W.JSC$19632_lastError_=3;Ba(12);W.JSC$19632_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
W.JSC$19632_rid_+")");ux(W);k5(W);return}W.decodeChunks_?C9s(W,l,V):(DE(W.JSC$19632_channelDebug_,W.JSC$19632_rid_,V,null),n6w(W,V));l==4&&ux(W);W.JSC$19632_successful_&&!W.JSC$19632_cancelled_&&(l==4?cus(W.JSC$19632_channel_,W):(W.JSC$19632_successful_=!1,RiY(W)))}else xr2(W.JSC$19632_xmlHttp_),r==400&&V.indexOf("Unknown SID")>0?(W.JSC$19632_lastError_=3,Ba(12),W.JSC$19632_channelDebug_.warning("XMLHTTP Unknown SID ("+W.JSC$19632_rid_+")")):(W.JSC$19632_lastError_=0,Ba(13),W.JSC$19632_channelDebug_.warning("XMLHTTP Bad status "+
r+" ("+W.JSC$19632_rid_+")")),ux(W),k5(W)}},P9Y=function(W){return W.JSC$19632_xmlHttp_&&(W=PX(W.JSC$19632_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.gS(W)?W:null},g6Y=function(W){if(!Bk5(W))return W.JSC$19632_xmlHttp_.getResponseText();
var l=W.JSC$19632_xmlHttp_.getResponse();if(l==="")return"";var V="",f=l.length,r=_.Ef(W.JSC$19632_xmlHttp_)==4;if(!W.fetchResponseState_.JSC$19634_textDecoder){if(typeof TextDecoder==="undefined")return ux(W),k5(W),"";W.fetchResponseState_.JSC$19634_textDecoder=new _.rS.TextDecoder}for(var R=0;R<f;R++)W.fetchResponseState_.responseArrivedForFetch=!0,V+=W.fetchResponseState_.JSC$19634_textDecoder.decode(l[R],{stream:!(r&&R==f-1)});l.length=0;W.fetchResponseState_.responseBuffer+=V;W.JSC$19632_xmlHttpChunkStart_=
0;return W.fetchResponseState_.responseBuffer},LpL=function(W){return W.JSC$19632_xmlHttp_?W.fetchResponseState_.responseArrivedForFetch?!0:!(!W.JSC$19632_xmlHttp_.getResponseText()&&!W.JSC$19632_xmlHttp_.getResponse()):!1},Bk5=function(W){return W.JSC$19632_xmlHttp_?W.JSC$19632_verb_=="GET"&&W.JSC$19632_type_!=2&&W.JSC$19632_channel_.usesFetchStreams_:!1},C9s=function(W,l,V){for(var f=!0,r;!W.JSC$19632_cancelled_&&W.JSC$19632_xmlHttpChunkStart_<V.length;)if(r=dNw(W,V),r==Vq4){l==4&&(W.JSC$19632_lastError_=
4,Ba(14),f=!1);
DE(W.JSC$19632_channelDebug_,W.JSC$19632_rid_,null,"[Incomplete Response]");break}else if(r==l3Z){W.JSC$19632_lastError_=4;Ba(15);DE(W.JSC$19632_channelDebug_,W.JSC$19632_rid_,V,"[Invalid Chunk]");f=!1;break}else DE(W.JSC$19632_channelDebug_,W.JSC$19632_rid_,r,null),n6w(W,r);Bk5(W)&&W.JSC$19632_xmlHttpChunkStart_!=0&&(W.fetchResponseState_.responseBuffer=W.fetchResponseState_.responseBuffer.slice(W.JSC$19632_xmlHttpChunkStart_),W.JSC$19632_xmlHttpChunkStart_=0);l!=4||V.length!=0||W.fetchResponseState_.responseArrivedForFetch||
(W.JSC$19632_lastError_=1,Ba(16),f=!1);W.JSC$19632_successful_=W.JSC$19632_successful_&&f;f?V.length>0&&!W.firstByteReceived_&&(W.firstByteReceived_=!0,l=W.JSC$19632_channel_,l.JSC$19651_backChannelRequest_==W&&l.detectBufferingProxy_&&!l.bpDetectionDone_&&(l.JSC$19651_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+V.length),Jus(l),l.bpDetectionDone_=!0,Ba(11))):(DE(W.JSC$19632_channelDebug_,W.JSC$19632_rid_,V,"[Invalid Chunked Response]"),ux(W),k5(W))},dNw=function(W,l){var V=
W.JSC$19632_xmlHttpChunkStart_,f=l.indexOf("\n",V);
if(f==-1)return Vq4;V=Number(l.substring(V,f));if(isNaN(V))return l3Z;f+=1;if(f+V>l.length)return Vq4;l=l.slice(f,f+V);W.JSC$19632_xmlHttpChunkStart_=f+V;return l};
Un.prototype.cancel=function(){this.JSC$19632_cancelled_=!0;ux(this)};
var RiY=function(W){W.JSC$19632_watchDogTimeoutTime_=Date.now()+W.timeout_;DNc(W,W.timeout_)},DNc=function(W,l){if(W.JSC$19632_watchDogTimerId_!=null)throw Error("Lk");
W.JSC$19632_watchDogTimerId_=dj((0,_.ml)(W.JSC$19636_onWatchDogTimeout_,W),l)},yu1=function(W){W.JSC$19632_watchDogTimerId_&&(_.rS.clearTimeout(W.JSC$19632_watchDogTimerId_),W.JSC$19632_watchDogTimerId_=null)};
Un.prototype.JSC$19636_onWatchDogTimeout_=function(){this.JSC$19632_watchDogTimerId_=null;var W=Date.now();W-this.JSC$19632_watchDogTimeoutTime_>=0?(EDL(this.JSC$19632_channelDebug_,this.JSC$19632_requestUri_),this.JSC$19632_type_!=2&&(ca(3),Ba(17)),ux(this),this.JSC$19632_lastError_=2,k5(this)):(this.JSC$19632_channelDebug_.warning("WatchDog timer called too early"),DNc(this,this.JSC$19632_watchDogTimeoutTime_-W))};
var k5=function(W){W.JSC$19632_channel_.state_==0||W.JSC$19632_cancelled_||cus(W.JSC$19632_channel_,W)},ux=function(W){yu1(W);
_.Ls(W.JSC$19632_readyStateChangeThrottle_);W.JSC$19632_readyStateChangeThrottle_=null;W.JSC$19632_eventHandler_.removeAll();if(W.JSC$19632_xmlHttp_){var l=W.JSC$19632_xmlHttp_;W.JSC$19632_xmlHttp_=null;l.abort();l.dispose()}};
Un.prototype.getLastError=function(){return this.JSC$19632_lastError_};
var n6w=function(W,l){try{var V=W.JSC$19632_channel_;if(V.state_!=0&&(V.JSC$19651_backChannelRequest_==W||UNw(V.forwardChannelRequestPool_,W)))if(!W.initialResponseDecoded_&&UNw(V.forwardChannelRequestPool_,W)&&V.state_==3){try{var f=V.wireCodec_.JSC$19646_parser_.parse(l)}catch(P){f=null}if(Array.isArray(f)&&f.length==3){l=f;if(l[0]==0)a:if(V.JSC$19651_channelDebug_.debug("Server claims our backchannel is missing."),V.JSC$19651_backChannelTimerId_)V.JSC$19651_channelDebug_.debug("But we are currently starting the request.");
else{if(V.JSC$19651_backChannelRequest_)if(V.JSC$19651_backChannelRequest_.JSC$19632_requestStartTime_+3E3<W.JSC$19632_requestStartTime_)uS2(V),kpH(V);else break a;else V.JSC$19651_channelDebug_.warning("We do not have a BackChannel established");v6N(V);Ba(18)}else{V.JSC$19651_lastPostResponseArrayId_=l[1];var r=V.JSC$19651_lastPostResponseArrayId_-V.JSC$19651_lastArrayId_;if(0<r){var R=l[2];V.JSC$19651_channelDebug_.debug(R+" bytes (in "+r+" arrays) are outstanding on the BackChannel");R<37500&&
V.enableStreaming_&&V.JSC$19651_backChannelRetryCount_==0&&!V.JSC$19651_deadBackChannelTimerId_&&(V.JSC$19651_deadBackChannelTimerId_=dj((0,_.ml)(V.JSC$19653_onBackChannelDead_,V),6E3))}}if(Hds(V.forwardChannelRequestPool_)<=1&&V.forwardChannelFlushedCallback_){try{V.forwardChannelFlushedCallback_()}catch(P){}V.forwardChannelFlushedCallback_=void 0}}else V.JSC$19651_channelDebug_.debug("Bad POST response data returned"),va(V,11)}else if((W.initialResponseDecoded_||V.JSC$19651_backChannelRequest_==
W)&&uS2(V),!_.gS(l)){var y=V.wireCodec_.JSC$19646_parser_.parse(l);V.onInput_(y,W)}ca(4)}catch(P){}};var Kp1=function(W,l){this.JSC$19639_mapId=W;this.map=l;this.context=null};var Fpw=function(W){this.maxPoolSizeConfigured_=W||10;_.rS.PerformanceNavigationTiming?(W=_.rS.performance.getEntriesByType("navigation"),W=W.length>0&&(W[0].nextHopProtocol=="hq"||W[0].nextHopProtocol=="h2")):W=!!(_.rS.chrome&&_.rS.chrome.loadTimes&&_.rS.chrome.loadTimes()&&_.rS.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19642_maxSize_=W?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19642_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19642_request_=null;this.JSC$19642_pendingMessages_=
[]},Gp1=function(W){return W.JSC$19642_request_?!0:W.requestPool_?W.requestPool_.size>=W.JSC$19642_maxSize_:!1},Hds=function(W){return W.JSC$19642_request_?1:W.requestPool_?W.requestPool_.size:0},UNw=function(W,l){return W.JSC$19642_request_?W.JSC$19642_request_==l:W.requestPool_?W.requestPool_.has(l):!1},bdL=function(W,l){W.requestPool_?W.requestPool_.add(l):W.JSC$19642_request_=l},pOH=function(W,l){W.JSC$19642_request_&&W.JSC$19642_request_==l?W.JSC$19642_request_=null:W.requestPool_&&W.requestPool_.has(l)&&
W.requestPool_.delete(l)};
Fpw.prototype.cancel=function(){this.JSC$19642_pendingMessages_=o65(this);if(this.JSC$19642_request_)this.JSC$19642_request_.cancel(),this.JSC$19642_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var W=_.L(this.requestPool_.values()),l=W.next();!l.done;l=W.next())l.value.cancel();this.requestPool_.clear()}};
var o65=function(W){if(W.JSC$19642_request_!=null)return W.JSC$19642_pendingMessages_.concat(W.JSC$19642_request_.JSC$19632_pendingMessages_);if(W.requestPool_!=null&&W.requestPool_.size!==0){var l=W.JSC$19642_pendingMessages_;W=_.L(W.requestPool_.values());for(var V=W.next();!V.done;V=W.next())l=l.concat(V.value.JSC$19632_pendingMessages_);return l}return _.z6(W.JSC$19642_pendingMessages_)},jMw=function(W,l){W.JSC$19642_pendingMessages_=W.JSC$19642_pendingMessages_.concat(l)};var I37=function(W,l){var V=new Jo;V.debug("TestLoadImage: loading "+W);if(_.rS.Image){var f=new Image;f.onload=_.QW(Ha,V,"TestLoadImage: loaded",!0,l,f);f.onerror=_.QW(Ha,V,"TestLoadImage: error",!1,l,f);f.onabort=_.QW(Ha,V,"TestLoadImage: abort",!1,l,f);f.ontimeout=_.QW(Ha,V,"TestLoadImage: timeout",!1,l,f);_.rS.setTimeout(function(){if(f.ontimeout)f.ontimeout()},1E4);
f.src=W}else l(!1)},id2=function(W,l){var V=new Jo,f=new AbortController,r=setTimeout(function(){f.abort();
Ha(V,"TestPingServer: timeout",!1,l)},1E4);
fetch(W,{signal:f.signal}).then(function(R){clearTimeout(r);R.ok?Ha(V,"TestPingServer: ok",!0,l):Ha(V,"TestPingServer: server error",!1,l)}).catch(function(){clearTimeout(r);
Ha(V,"TestPingServer: error",!1,l)})},Ha=function(W,l,V,f,r){try{W.debug(l),r&&(r.onload=null,r.onerror=null,r.onabort=null,r.ontimeout=null),f(V)}catch(R){}};var mN7=function(){this.JSC$19646_parser_=new Cw};var Kw=function(W,l,V){return V&&V.internalChannelParams?V.internalChannelParams[W]||l:l},FT=function(W){this.serverVersion_=0;
this.JSC$19651_outgoingMaps_=[];this.JSC$19651_channelDebug_=new Jo;this.JSC$19651_hostPrefix_=this.JSC$19651_backChannelUri_=this.JSC$19651_forwardChannelUri_=this.JSC$19651_path_=this.JSC$19651_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19651_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19651_extraHeaders_=null;this.JSC$19651_nextMapId_=this.JSC$19651_nextRid_=0;this.JSC$19651_failFast_=Kw("failFast",!1,W);this.enableStreaming_=this.JSC$19651_deadBackChannelTimerId_=
this.JSC$19651_backChannelTimerId_=this.JSC$19651_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19651_lastPostResponseArrayId_=this.JSC$19651_lastArrayId_=-1;this.JSC$19651_backChannelAttemptId_=this.JSC$19651_backChannelRetryCount_=this.JSC$19651_forwardChannelRetryCount_=0;this.JSC$19651_baseRetryDelayMs_=Kw("baseRetryDelayMs",5E3,W);this.JSC$19651_retryDelaySeedMs_=Kw("retryDelaySeedMs",1E4,W);this.JSC$19651_forwardChannelMaxRetries_=
Kw("forwardChannelMaxRetries",2,W);this.JSC$19651_forwardChannelRequestTimeoutMs_=Kw("forwardChannelRequestTimeoutMs",2E4,W);this.JSC$19651_xmlHttpFactory_=W&&W.xmlHttpFactory||void 0;this.networkTestUrl_=W&&W.networkTestUrl||void 0;this.usesFetchStreams_=W&&W.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19651_supportsCrossDomainXhrs_=W&&W.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new Fpw(W&&W.concurrentRequestLimit);this.wireCodec_=new mN7;this.fastHandshake_=
W&&W.fastHandshake||!1;this.encodeInitMessageHeaders_=W&&W.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19651_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=W&&W.blockingHandshake||!1;W&&W.disableRedact&&this.JSC$19651_channelDebug_.disableRedact();W&&W.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
W&&W.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;W&&W.longPollingTimeout&&W.longPollingTimeout>0&&(this.longPollingTimeout_=W.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
FT.prototype.JSC$19653_channelVersion_=8;FT.prototype.state_=1;
FT.prototype.connect=function(W,l,V,f){this.JSC$19651_channelDebug_.debug("connect()");Ba(0);this.JSC$19651_path_=W;this.JSC$19651_extraParams_=l||{};V&&f!==void 0&&(this.JSC$19651_extraParams_.OSID=V,this.JSC$19651_extraParams_.OAID=f);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19651_channelDebug_.debug("connectChannel_()");W=XO1(this,null,this.JSC$19651_path_);this.JSC$19651_channelDebug_.debug("GetForwardChannelUri: "+W);this.JSC$19651_forwardChannelUri_=W;Tk5(this)};
FT.prototype.disconnect=function(){this.JSC$19651_channelDebug_.debug("disconnect()");wOe(this);if(this.state_==3){var W=this.JSC$19651_nextRid_++,l=this.JSC$19651_forwardChannelUri_.clone();_.$9(l,"SID",this.sid_);_.$9(l,"RID",W);_.$9(l,"TYPE","terminate");G8(this,l);W=new Un(this,this.JSC$19651_channelDebug_,this.sid_,W);W.JSC$19632_type_=2;W.JSC$19632_baseUri_=_.or(l.clone());l=!1;if(_.rS.navigator&&_.rS.navigator.sendBeacon)try{l=_.rS.navigator.sendBeacon(W.JSC$19632_baseUri_.toString(),"")}catch(V){}!l&&
_.rS.Image&&((new Image).src=W.JSC$19632_baseUri_,l=!0);l||(W.JSC$19632_xmlHttp_=tq2(W.JSC$19632_channel_,null),W.JSC$19632_xmlHttp_.send(W.JSC$19632_baseUri_));W.JSC$19632_requestStartTime_=Date.now();RiY(W)}AuN(this)};
var kpH=function(W){W.JSC$19651_backChannelRequest_&&(Jus(W),W.JSC$19651_backChannelRequest_.cancel(),W.JSC$19651_backChannelRequest_=null)},wOe=function(W){kpH(W);
W.JSC$19651_backChannelTimerId_&&(_.rS.clearTimeout(W.JSC$19651_backChannelTimerId_),W.JSC$19651_backChannelTimerId_=null);uS2(W);W.forwardChannelRequestPool_.cancel();W.JSC$19651_forwardChannelTimerId_&&(typeof W.JSC$19651_forwardChannelTimerId_==="number"&&_.rS.clearTimeout(W.JSC$19651_forwardChannelTimerId_),W.JSC$19651_forwardChannelTimerId_=null)};
FT.prototype.getState=function(){return this.state_};
var Tk5=function(W){Gp1(W.forwardChannelRequestPool_)||W.JSC$19651_forwardChannelTimerId_||(W.JSC$19651_forwardChannelTimerId_=!0,_.NR(W.JSC$19653_onStartForwardChannelTimer_,W),W.JSC$19651_forwardChannelRetryCount_=0)},Mq4=function(W,l){if(Hds(W.forwardChannelRequestPool_)>=W.forwardChannelRequestPool_.JSC$19642_maxSize_-(W.JSC$19651_forwardChannelTimerId_?1:0))return!1;
if(W.JSC$19651_forwardChannelTimerId_)return W.JSC$19651_channelDebug_.debug("Use the retry request that is already scheduled."),W.JSC$19651_outgoingMaps_=l.JSC$19632_pendingMessages_.concat(W.JSC$19651_outgoingMaps_),!0;if(W.state_==1||W.state_==2||W.JSC$19651_forwardChannelRetryCount_>=(W.JSC$19651_failFast_?0:W.JSC$19651_forwardChannelMaxRetries_))return!1;W.JSC$19651_channelDebug_.debug("Going to retry POST");W.JSC$19651_forwardChannelTimerId_=dj((0,_.ml)(W.JSC$19653_onStartForwardChannelTimer_,
W,l),QMY(W,W.JSC$19651_forwardChannelRetryCount_));W.JSC$19651_forwardChannelRetryCount_++;return!0};
FT.prototype.JSC$19653_onStartForwardChannelTimer_=function(W){if(this.JSC$19651_forwardChannelTimerId_)if(this.JSC$19651_forwardChannelTimerId_=null,this.JSC$19651_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!W){this.JSC$19651_channelDebug_.debug("open_()");this.JSC$19651_nextRid_=Math.floor(Math.random()*1E5);W=this.JSC$19651_nextRid_++;var l=new Un(this,this.JSC$19651_channelDebug_,"",W),V=this.JSC$19651_extraHeaders_;this.initHeaders_&&(V?(V=_.MC.clone(V),_.MC.extend(V,this.initHeaders_)):
V=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(l.JSC$19632_extraHeaders_=V,V=null);var f;if(this.fastHandshake_)a:{for(var r=f=0;r<this.JSC$19651_outgoingMaps_.length;r++){b:{var R=this.JSC$19651_outgoingMaps_[r];if("__data__"in R.map&&(R=R.map.__data__,typeof R==="string")){R=R.length;break b}R=void 0}if(R===void 0)break;f+=R;if(f>4096){f=r;break a}if(f===4096||r===this.JSC$19651_outgoingMaps_.length-1){f=r+1;break a}}f=1E3}else f=1E3;f=Zd7(this,l,f);
r=this.JSC$19651_forwardChannelUri_.clone();_.$9(r,"RID",W);_.$9(r,"CVER",22);this.httpSessionIdParam_&&_.$9(r,"X-HTTP-Session-Id",this.httpSessionIdParam_);G8(this,r);V&&(this.encodeInitMessageHeaders_?f="headers="+_.ei(rSw(V))+"&"+f:this.httpHeadersOverwriteParam_&&RN1(r,this.httpHeadersOverwriteParam_,V));bdL(this.forwardChannelRequestPool_,l);this.blockingHandshake_&&_.$9(r,"TYPE","init");this.fastHandshake_?(_.$9(r,"$req",f),_.$9(r,"SID","null"),l.decodeInitialResponse_=!0,ruH(l,r,null)):ruH(l,
r,f);this.state_=2}}else this.state_==3&&(W?Odc(this,W):this.JSC$19651_outgoingMaps_.length==0?this.JSC$19651_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):Gp1(this.forwardChannelRequestPool_)||(Odc(this),this.JSC$19651_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var Odc=function(W,l){var V;l?V=l.JSC$19632_rid_:V=W.JSC$19651_nextRid_++;var f=W.JSC$19651_forwardChannelUri_.clone();_.$9(f,"SID",W.sid_);_.$9(f,"RID",V);_.$9(f,"AID",W.JSC$19651_lastArrayId_);G8(W,f);W.httpHeadersOverwriteParam_&&W.JSC$19651_extraHeaders_&&RN1(f,W.httpHeadersOverwriteParam_,W.JSC$19651_extraHeaders_);V=new Un(W,W.JSC$19651_channelDebug_,W.sid_,V,W.JSC$19651_forwardChannelRetryCount_+1);W.httpHeadersOverwriteParam_===null&&(V.JSC$19632_extraHeaders_=W.JSC$19651_extraHeaders_);l&&
(W.JSC$19651_outgoingMaps_=l.JSC$19632_pendingMessages_.concat(W.JSC$19651_outgoingMaps_));l=Zd7(W,V,1E3);V.setTimeout(Math.round(W.JSC$19651_forwardChannelRequestTimeoutMs_*.5)+Math.round(W.JSC$19651_forwardChannelRequestTimeoutMs_*.5*Math.random()));bdL(W.forwardChannelRequestPool_,V);ruH(V,f,l)},G8=function(W,l){W.JSC$19651_extraParams_&&_.MC.forEach(W.JSC$19651_extraParams_,function(V,f){_.$9(l,f,V)});
W.handler_&&_.MC.forEach({},function(V,f){_.$9(l,f,V)})},Zd7=function(W,l,V){V=Math.min(W.JSC$19651_outgoingMaps_.length,V);
var f=W.handler_?(0,_.ml)(W.handler_.JSC$19657_badMapError,W.handler_,W):null;a:{for(var r=W.JSC$19651_outgoingMaps_,R=-1;;){var y=["count="+V];R==-1?V>0?(R=r[0].JSC$19639_mapId,y.push("ofs="+R)):R=0:y.push("ofs="+R);for(var P=!0,n=0;n<V;n++){var B=r[n].JSC$19639_mapId,d=r[n].map;B-=R;if(B<0)R=Math.max(0,r[n].JSC$19639_mapId-100),P=!1;else try{B="req"+B+"_"||"";try{var J=d instanceof Map?d:Object.entries(d);for(var D=_.L(J),u=D.next();!u.done;u=D.next()){var H=_.L(u.value),p=H.next().value,X=H.next().value,
w=X;_.ev(X)&&(w=(0,_.hS)(X));y.push(B+p+"="+encodeURIComponent(w))}}catch(O){throw y.push(B+"type="+encodeURIComponent("_badmap")),O;}}catch(O){f&&f(d)}}if(P){J=y.join("&");break a}}J=void 0}W=W.JSC$19651_outgoingMaps_.splice(0,V);l.JSC$19632_pendingMessages_=W;return J},a35=function(W){W.JSC$19651_backChannelRequest_||W.JSC$19651_backChannelTimerId_||(W.JSC$19651_backChannelAttemptId_=1,_.NR(W.JSC$19653_onStartBackChannelTimer_,W),W.JSC$19651_backChannelRetryCount_=0)},v6N=function(W){if(W.JSC$19651_backChannelRequest_||
W.JSC$19651_backChannelTimerId_||W.JSC$19651_backChannelRetryCount_>=3)return!1;
W.JSC$19651_channelDebug_.debug("Going to retry GET");W.JSC$19651_backChannelAttemptId_++;W.JSC$19651_backChannelTimerId_=dj((0,_.ml)(W.JSC$19653_onStartBackChannelTimer_,W),QMY(W,W.JSC$19651_backChannelRetryCount_));W.JSC$19651_backChannelRetryCount_++;return!0};
FT.prototype.JSC$19653_onStartBackChannelTimer_=function(){this.JSC$19651_backChannelTimerId_=null;ziw(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19651_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19651_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19651_backChannelRequest_+" "+this.handshakeRttMs_);else{var W=4*this.handshakeRttMs_;this.JSC$19651_channelDebug_.info("BP detection timer enabled: "+W);this.bpDetectionTimerId_=dj((0,_.ml)(this.onBpDetectionTimer_,
this),W)}};
FT.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19651_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19651_backChannelRequest_.JSC$19632_xmlHttp_!=null){var W=this.JSC$19651_backChannelRequest_.JSC$19632_xmlHttp_.getResponseText();W&&this.JSC$19651_channelDebug_.warning("Timer should have been cancelled : "+W)}this.JSC$19651_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Ba(10);kpH(this);ziw(this)}else this.JSC$19651_channelDebug_.warning("Invalid operation.")};
var Jus=function(W){W.bpDetectionTimerId_!=null&&(W.JSC$19651_channelDebug_.debug("Cancel the BP detection timer."),_.rS.clearTimeout(W.bpDetectionTimerId_),W.bpDetectionTimerId_=null)},ziw=function(W){W.JSC$19651_channelDebug_.debug("Creating new HttpRequest");
W.JSC$19651_backChannelRequest_=new Un(W,W.JSC$19651_channelDebug_,W.sid_,"rpc",W.JSC$19651_backChannelAttemptId_);W.httpHeadersOverwriteParam_===null&&(W.JSC$19651_backChannelRequest_.JSC$19632_extraHeaders_=W.JSC$19651_extraHeaders_);W.JSC$19651_backChannelRequest_.JSC$19632_readyStateChangeThrottleMs_=0;var l=W.JSC$19651_backChannelUri_.clone();_.$9(l,"RID","rpc");_.$9(l,"SID",W.sid_);_.$9(l,"AID",W.JSC$19651_lastArrayId_);_.$9(l,"CI",W.enableStreaming_?"0":"1");!W.enableStreaming_&&W.longPollingTimeout_&&
_.$9(l,"TO",W.longPollingTimeout_);_.$9(l,"TYPE","xmlhttp");G8(W,l);W.httpHeadersOverwriteParam_&&W.JSC$19651_extraHeaders_&&RN1(l,W.httpHeadersOverwriteParam_,W.JSC$19651_extraHeaders_);W.backChannelRequestTimeoutMs_&&W.JSC$19651_backChannelRequest_.setTimeout(W.backChannelRequestTimeoutMs_);var V=W.JSC$19651_backChannelRequest_,f=W.JSC$19651_hostPrefix_;V.JSC$19632_type_=1;V.JSC$19632_baseUri_=_.or(l.clone());V.JSC$19632_postData_=null;V.decodeChunks_=!0;f35(V,f);W.JSC$19651_channelDebug_.debug("New Request created")};
FT.prototype.JSC$19653_onBackChannelDead_=function(){this.JSC$19651_deadBackChannelTimerId_!=null&&(this.JSC$19651_deadBackChannelTimerId_=null,kpH(this),v6N(this),Ba(19))};
var uS2=function(W){W.JSC$19651_deadBackChannelTimerId_!=null&&(_.rS.clearTimeout(W.JSC$19651_deadBackChannelTimerId_),W.JSC$19651_deadBackChannelTimerId_=null)},cus=function(W,l){W.JSC$19651_channelDebug_.debug("Request complete");
var V=null;if(W.JSC$19651_backChannelRequest_==l){uS2(W);Jus(W);W.JSC$19651_backChannelRequest_=null;var f=2}else if(UNw(W.forwardChannelRequestPool_,l))V=l.JSC$19632_pendingMessages_,pOH(W.forwardChannelRequestPool_,l),f=1;else return;if(W.state_!=0)if(l.JSC$19632_successful_)f==1?(e85(l.JSC$19632_postData_?l.JSC$19632_postData_.length:0,Date.now()-l.JSC$19632_requestStartTime_,W.JSC$19651_forwardChannelRetryCount_),Tk5(W)):a35(W);else{var r=l.JSC$19632_lastStatusCode_,R=l.getLastError();if(R==3||
R==0&&r>0)W.JSC$19651_channelDebug_.debug("Not retrying due to error type"),r>200&&(W.errorResponseStatusCode_=l.JSC$19632_lastStatusCode_);else{W.JSC$19651_channelDebug_.debug(function(){return"Maybe retrying, last error: "+Wps(R,W.errorResponseStatusCode_)});
if(f==1&&Mq4(W,l)||f==2&&v6N(W))return;W.JSC$19651_channelDebug_.debug("Exceeded max number of retries")}V&&V.length>0&&jMw(W.forwardChannelRequestPool_,V);W.JSC$19651_channelDebug_.debug("Error: HTTP request failed");switch(R){case 1:va(W,5);break;case 4:va(W,10);break;case 3:va(W,6);break;default:va(W,2)}}},QMY=function(W,l){var V=W.JSC$19651_baseRetryDelayMs_+Math.floor(Math.random()*W.JSC$19651_retryDelaySeedMs_);
W.isActive()||(W.JSC$19651_channelDebug_.debug("Inactive channel"),V*=2);return V*l};
FT.prototype.onInput_=function(W,l){for(var V=0;V<W.length;V++){var f=W[V];this.JSC$19651_lastArrayId_=f[0];f=f[1];if(this.state_==2)if(f[0]=="c"){this.sid_=f[1];this.JSC$19651_hostPrefix_=f[2];var r=f[3];r!=null&&(this.JSC$19653_channelVersion_=r,this.JSC$19651_channelDebug_.info("VER="+this.JSC$19653_channelVersion_));r=f[4];r!=null&&(this.serverVersion_=r,this.JSC$19651_channelDebug_.info("SVER="+this.serverVersion_));f=f[5];f!=null&&typeof f==="number"&&f>0&&(this.backChannelRequestTimeoutMs_=
f*=1.5,this.JSC$19651_channelDebug_.info("backChannelRequestTimeoutMs_="+f));if(f=l.JSC$19632_xmlHttp_){var R=PX(f,"X-Client-Wire-Protocol");R&&(r=this.forwardChannelRequestPool_,!r.requestPool_&&(_.P8(R,"spdy")||_.P8(R,"quic")||_.P8(R,"h2"))&&(r.JSC$19642_maxSize_=r.maxPoolSizeConfigured_,r.requestPool_=new Set,r.JSC$19642_request_&&(bdL(r,r.JSC$19642_request_),r.JSC$19642_request_=null)));this.httpSessionIdParam_&&((f=PX(f,"X-HTTP-Session-Id"))?(this.httpSessionId_=f,_.$9(this.JSC$19651_forwardChannelUri_,
this.httpSessionIdParam_,f)):this.JSC$19651_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$19657_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-l.JSC$19632_requestStartTime_,this.JSC$19651_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));f=l;r=XO1(this,this.JSC$19651_supportsCrossDomainXhrs_?this.JSC$19651_hostPrefix_:null,this.JSC$19651_path_);this.JSC$19651_channelDebug_.debug("GetBackChannelUri: "+
r);this.JSC$19651_backChannelUri_=r;f.initialResponseDecoded_?(this.JSC$19651_channelDebug_.debug("Upgrade the handshake request to a backchannel."),pOH(this.forwardChannelRequestPool_,f),r=f,(R=this.backChannelRequestTimeoutMs_)&&r.setTimeout(R),r.JSC$19632_watchDogTimerId_&&(yu1(r),RiY(r)),this.JSC$19651_backChannelRequest_=f):a35(this);this.JSC$19651_outgoingMaps_.length>0&&Tk5(this)}else f[0]!="stop"&&f[0]!="close"||va(this,7);else this.state_==3&&(f[0]=="stop"||f[0]=="close"?f[0]=="stop"?va(this,
7):this.disconnect():f[0]!="noop"&&this.handler_&&this.handler_.JSC$19657_channelHandleArray(f),this.JSC$19651_backChannelRetryCount_=0)}};
var va=function(W,l){W.JSC$19651_channelDebug_.info("Error code "+l);if(l==2){var V=(0,_.ml)(W.testNetworkCallback_,W),f=W.networkTestUrl_,r=!f;f=new _.dg(f||"//www.google.com/images/cleardot.gif");_.rS.location&&_.rS.location.protocol=="http"||_.Ur(f,"https");_.or(f);r?I37(f.toString(),V):id2(f.toString(),V)}else Ba(2);W.onError_(l)};
FT.prototype.testNetworkCallback_=function(W){W?(this.JSC$19651_channelDebug_.info("Successfully pinged google.com"),Ba(2)):(this.JSC$19651_channelDebug_.info("Failed to ping google.com"),Ba(1))};
FT.prototype.onError_=function(W){this.JSC$19651_channelDebug_.debug("HttpChannel: error - "+W);this.state_=0;this.handler_&&this.handler_.JSC$19657_channelError(W);AuN(this);wOe(this)};
var AuN=function(W){W.state_=0;W.nonAckedMapsAtChannelClose_=[];if(W.handler_){var l=o65(W.forwardChannelRequestPool_);if(l.length!=0||W.JSC$19651_outgoingMaps_.length!=0)W.JSC$19651_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+l.length+", outgoing: "+W.JSC$19651_outgoingMaps_.length}),_.xz(W.nonAckedMapsAtChannelClose_,l),_.xz(W.nonAckedMapsAtChannelClose_,W.JSC$19651_outgoingMaps_),W.forwardChannelRequestPool_.JSC$19642_pendingMessages_.length=0,_.z6(W.JSC$19651_outgoingMaps_),
W.JSC$19651_outgoingMaps_.length=0;
W.handler_.JSC$19657_channelClosed()}},NkN=function(W){if(W.state_==0)return W.nonAckedMapsAtChannelClose_;
var l=[];_.xz(l,o65(W.forwardChannelRequestPool_));_.xz(l,W.JSC$19651_outgoingMaps_);return l},XO1=function(W,l,V){var f=_.SV(V);
f.JSC$10026_domain_!=""?(l&&_.uc(f,l+"."+f.JSC$10026_domain_),_.kg(f,f.JSC$10026_port_)):(f=_.rS.location,f=N5w(f.protocol,l?l+"."+f.hostname:f.hostname,+f.port,V));l=W.httpSessionIdParam_;V=W.httpSessionId_;l&&V&&_.$9(f,l,V);_.$9(f,"VER",W.JSC$19653_channelVersion_);G8(W,f);return f},tq2=function(W,l,V){if(l&&!W.JSC$19651_supportsCrossDomainXhrs_)throw Error("Mk");
l=W.usesFetchStreams_&&!W.JSC$19651_xmlHttpFactory_?new _.Sk(new b6({streamBinaryChunks:V})):new _.Sk(W.JSC$19651_xmlHttpFactory_);l.JSC$9791_withCredentials_=W.JSC$19651_supportsCrossDomainXhrs_;return l};
FT.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var Y2N=function(){};
_.t=Y2N.prototype;_.t.JSC$19657_channelOpened=function(){};
_.t.JSC$19657_channelHandleArray=function(){};
_.t.JSC$19657_channelError=function(){};
_.t.JSC$19657_channelClosed=function(){};
_.t.isActive=function(){return!0};
_.t.JSC$19657_badMapError=function(){};var xN2=function(){},pw=function(W,l){_.aj.call(this);
this.JSC$19660_channel_=new FT(l);this.JSC$19660_url_=W;this.messageUrlParams_=l&&l.messageUrlParams||null;W=l&&l.messageHeaders||null;l&&l.clientProtocolHeaderRequired&&(W?_.MC.set(W,"X-Client-Protocol","webchannel"):W=_.MC.create("X-Client-Protocol","webchannel"));this.JSC$19660_channel_.JSC$19651_extraHeaders_=W;W=l&&l.initMessageHeaders||null;l&&l.messageContentType&&(W?_.MC.set(W,"X-WebChannel-Content-Type",l.messageContentType):W=_.MC.create("X-WebChannel-Content-Type",l.messageContentType));
l&&l.clientProfile&&(W?_.MC.set(W,"X-WebChannel-Client-Profile",l.clientProfile):W=_.MC.create("X-WebChannel-Client-Profile",l.clientProfile));this.JSC$19660_channel_.initHeaders_=W;(W=l&&l.httpHeadersOverwriteParam)&&!_.gS(W)&&(this.JSC$19660_channel_.httpHeadersOverwriteParam_=W);this.supportsCrossDomainXhr_=l&&l.supportsCrossDomainXhr||!1;this.sendRawJson_=l&&l.sendRawJson||!1;(l=l&&l.httpSessionIdParam)&&!_.gS(l)&&(this.JSC$19660_channel_.httpSessionIdParam_=l,_.MC.containsKey(this.messageUrlParams_,
l)&&_.MC.remove(this.messageUrlParams_,l));this.channelHandler_=new bx(this)};
_.Jj(pw,_.aj);pw.prototype.open=function(){this.JSC$19660_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19660_channel_.JSC$19651_supportsCrossDomainXhrs_=!0);this.JSC$19660_channel_.connect(this.JSC$19660_url_,this.messageUrlParams_||void 0)};
pw.prototype.close=function(){this.JSC$19660_channel_.disconnect()};
pw.prototype.send=function(W){var l=this.JSC$19660_channel_;if(typeof W==="string"){var V={};V.__data__=W;W=V}else this.sendRawJson_&&(V={},V.__data__=(0,_.hS)(W),W=V);l.JSC$19651_outgoingMaps_.push(new Kp1(l.JSC$19651_nextMapId_++,W));l.state_==3&&Tk5(l)};
pw.prototype.disposeInternal=function(){this.JSC$19660_channel_.handler_=null;delete this.channelHandler_;this.JSC$19660_channel_.disconnect();delete this.JSC$19660_channel_;pw.superClass_.disposeInternal.call(this)};
var ei2=function(W){ZzH.call(this);W.__headers__&&(this.headers=W.__headers__,this.statusCode=W.__status__,delete W.__headers__,delete W.__status__);var l=W.__sm__;l?this.data=(this.metadataKey=_.MC.getAnyKey(l))?_.MC.get(l,this.metadataKey):l:this.data=W};
_.Jj(ei2,ZzH);var q2w=function(W){Oz1.call(this);this.status=1;this.errorCode=W};
_.Jj(q2w,Oz1);var bx=function(W){this.JSC$19667_channel_=W};
_.Jj(bx,Y2N);bx.prototype.JSC$19657_channelOpened=function(){this.JSC$19667_channel_.dispatchEvent("w")};
bx.prototype.JSC$19657_channelHandleArray=function(W){this.JSC$19667_channel_.dispatchEvent(new ei2(W))};
bx.prototype.JSC$19657_channelError=function(W){this.JSC$19667_channel_.dispatchEvent(new q2w(W))};
bx.prototype.JSC$19657_channelClosed=function(){this.JSC$19667_channel_.dispatchEvent("x")};
var hi7=function(W,l){this.transportChannel_=W;this.JSC$19670_channel_=l},S21=function(W){return NkN(W.JSC$19670_channel_).map(function(l){var V=W.transportChannel_;
l=l.map;"__data__"in l?(l=l.__data__,V=V.sendRawJson_?(0,_.Wle)(l):l):V=l;return V})};
hi7.prototype.commit=function(W){this.JSC$19670_channel_.forwardChannelFlushedCallback_=W};var oe=function(W){E61.dispatchEvent(new $NL(E61,W))},E61=new _.aj,$NL=function(W,l){_.AS.call(this,"statevent",W);
this.stat=l};
_.v($NL,_.AS);var jH=function(W,l,V,f,r){this.JSC$19675_channel_=W;this.JSC$19675_channelDebug_=l;this.sid_=V;this.JSC$19675_rid_=f;this.JSC$19675_retryId_=r||1;this.timeout_=45E3;this.JSC$19675_eventHandler_=new _.nX(this);this.pollingTimer_=new _.Pj;this.pollingTimer_.setInterval(250)};
_.t=jH.prototype;_.t.JSC$19677_extraHeaders_=null;_.t.JSC$19677_successful_=!1;_.t.JSC$19677_watchDogTimerId_=null;_.t.JSC$19677_watchDogTimeoutTime_=null;_.t.JSC$19677_requestStartTime_=null;_.t.JSC$19677_type_=null;_.t.JSC$19677_baseUri_=null;_.t.JSC$19677_requestUri_=null;_.t.JSC$19677_postData_=null;_.t.JSC$19677_xmlHttp_=null;_.t.JSC$19677_xmlHttpChunkStart_=0;_.t.trident_=null;_.t.JSC$19677_verb_=null;_.t.JSC$19677_lastError_=null;_.t.JSC$19677_lastStatusCode_=-1;_.t.sendClose_=!0;
_.t.JSC$19677_cancelled_=!1;_.t.JSC$19677_readyStateChangeThrottleMs_=0;_.t.JSC$19677_readyStateChangeThrottle_=null;var W9e=function(W,l){switch(W){case 0:return"Non-200 return code ("+l+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},luc={},Vsw={};
jH.prototype.setTimeout=function(W){this.timeout_=W};
var reN=function(W,l,V){W.JSC$19677_type_=1;W.JSC$19677_baseUri_=_.or(l.clone());W.JSC$19677_postData_=V;W.decodeChunks_=!0;fuZ(W,null)},R5L=function(W,l,V,f,r){W.JSC$19677_type_=1;
W.JSC$19677_baseUri_=_.or(l.clone());W.JSC$19677_postData_=null;W.decodeChunks_=V;r&&(W.sendClose_=!1);fuZ(W,f)},fuZ=function(W,l){W.JSC$19677_requestStartTime_=Date.now();
ts4(W);W.JSC$19677_requestUri_=W.JSC$19677_baseUri_.clone();fr(W.JSC$19677_requestUri_,"t",W.JSC$19675_retryId_);W.JSC$19677_xmlHttpChunkStart_=0;W.JSC$19677_xmlHttp_=W.JSC$19675_channel_.JSC$19684_createXhrIo(W.JSC$19675_channel_.JSC$19684_shouldUseSecondaryDomains()?l:null);W.JSC$19677_readyStateChangeThrottleMs_>0&&(W.JSC$19677_readyStateChangeThrottle_=new _.t$((0,_.ml)(W.JSC$19677_xmlHttpHandler_,W,W.JSC$19677_xmlHttp_),W.JSC$19677_readyStateChangeThrottleMs_));W.JSC$19675_eventHandler_.listen(W.JSC$19677_xmlHttp_,
"readystatechange",W.JSC$19677_readyStateChangeHandler_);l=W.JSC$19677_extraHeaders_?_.MC.clone(W.JSC$19677_extraHeaders_):{};W.JSC$19677_postData_?(W.JSC$19677_verb_="POST",l["Content-Type"]="application/x-www-form-urlencoded",W.JSC$19677_xmlHttp_.send(W.JSC$19677_requestUri_,W.JSC$19677_verb_,W.JSC$19677_postData_,l)):(W.JSC$19677_verb_="GET",W.sendClose_&&!_.HF&&(l.Connection="close"),W.JSC$19677_xmlHttp_.send(W.JSC$19677_requestUri_,W.JSC$19677_verb_,null,l));W.JSC$19675_channel_.notifyServerReachabilityEvent(1);
l=W.JSC$19675_channelDebug_;var V=W.JSC$19677_postData_;if(V){var f="";V=V.split("&");for(var r=0;r<V.length;r++){var R=V[r].split("=");if(R.length>1){var y=R[0];R=R[1];var P=y.split("_");f=P.length>=2&&P[1]=="type"?f+(y+"="+R+"&"):f+(y+"=redacted&")}}}else f=null;l.info("XMLHTTP REQ ("+W.JSC$19675_rid_+") [attempt "+W.JSC$19675_retryId_+"]: "+W.JSC$19677_verb_+"\n"+W.JSC$19677_requestUri_+"\n"+f)};
jH.prototype.JSC$19677_readyStateChangeHandler_=function(W){W=W.target;var l=this.JSC$19677_readyStateChangeThrottle_;l&&_.Ef(W)==3?(this.JSC$19675_channelDebug_.debug("Throttling readystatechange."),l.fire()):this.JSC$19677_xmlHttpHandler_(W)};
jH.prototype.JSC$19677_xmlHttpHandler_=function(W){try{if(W==this.JSC$19677_xmlHttp_)a:{var l=_.Ef(this.JSC$19677_xmlHttp_),V=this.JSC$19677_xmlHttp_.JSC$9791_lastErrorCode_,f=this.JSC$19677_xmlHttp_.getStatus();if(_.HF&&!_.K4("420+")){if(l<4)break a}else if(l<3||l==3&&!this.JSC$19677_xmlHttp_.getResponseText())break a;this.JSC$19677_cancelled_||l!=4||V==7||(V==8||f<=0?this.JSC$19675_channel_.notifyServerReachabilityEvent(3):this.JSC$19675_channel_.notifyServerReachabilityEvent(2));szN(this);var r=
this.JSC$19677_xmlHttp_.getStatus();this.JSC$19677_lastStatusCode_=r;var R=this.JSC$19677_xmlHttp_.getResponseText();R||this.JSC$19675_channelDebug_.debug("No response text for uri "+this.JSC$19677_requestUri_+" status "+r);this.JSC$19677_successful_=r==200;this.JSC$19675_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19675_rid_+") [ attempt "+this.JSC$19675_retryId_+"]: "+this.JSC$19677_verb_+"\n"+this.JSC$19677_requestUri_+"\n"+l+" "+r);if(this.JSC$19677_successful_){l==4&&Ie(this);if(this.decodeChunks_){for(W=
!0;!this.JSC$19677_cancelled_&&this.JSC$19677_xmlHttpChunkStart_<R.length;){var y=L9s(this,R);if(y==Vsw){l==4&&(this.JSC$19677_lastError_=4,oe(15),W=!1);ix(this.JSC$19675_channelDebug_,this.JSC$19675_rid_,null,"[Incomplete Response]");break}else if(y==luc){this.JSC$19677_lastError_=4;oe(16);ix(this.JSC$19675_channelDebug_,this.JSC$19675_rid_,R,"[Invalid Chunk]");W=!1;break}else ix(this.JSC$19675_channelDebug_,this.JSC$19675_rid_,y,null),ye1(this,y)}l==4&&R.length==0&&(this.JSC$19677_lastError_=1,
oe(17),W=!1);this.JSC$19677_successful_=this.JSC$19677_successful_&&W;W||(ix(this.JSC$19675_channelDebug_,this.JSC$19675_rid_,R,"[Invalid Chunked Response]"),Ie(this),g0w(this))}else ix(this.JSC$19675_channelDebug_,this.JSC$19675_rid_,R,null),ye1(this,R);this.JSC$19677_successful_&&!this.JSC$19677_cancelled_&&(l==4?this.JSC$19675_channel_.JSC$19684_onRequestComplete(this):(this.JSC$19677_successful_=!1,ts4(this)))}else r==400&&R.indexOf("Unknown SID")>0?(this.JSC$19677_lastError_=3,oe(13),this.JSC$19675_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19675_rid_+")")):(this.JSC$19677_lastError_=0,oe(14),this.JSC$19675_channelDebug_.warning("XMLHTTP Bad status "+r+" ("+this.JSC$19675_rid_+")")),Ie(this),g0w(this)}else this.JSC$19675_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(P){this.JSC$19675_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var L9s=function(W,l){var V=W.JSC$19677_xmlHttpChunkStart_,f=l.indexOf("\n",V);if(f==-1)return Vsw;V=Number(l.substring(V,f));if(isNaN(V))return luc;f+=1;if(f+V>l.length)return Vsw;l=l.slice(f,f+V);W.JSC$19677_xmlHttpChunkStart_=f+V;return l};
jH.prototype.cancel=function(){this.JSC$19677_cancelled_=!0;Ie(this)};
var ts4=function(W){W.JSC$19677_watchDogTimeoutTime_=Date.now()+W.timeout_;PGs(W,W.timeout_)},PGs=function(W,l){if(W.JSC$19677_watchDogTimerId_!=null)throw Error("Lk");
W.JSC$19677_watchDogTimerId_=HX((0,_.ml)(W.JSC$19677_onWatchDogTimeout_,W),l)},szN=function(W){W.JSC$19677_watchDogTimerId_&&(_.rS.clearTimeout(W.JSC$19677_watchDogTimerId_),W.JSC$19677_watchDogTimerId_=null)};
jH.prototype.JSC$19677_onWatchDogTimeout_=function(){this.JSC$19677_watchDogTimerId_=null;var W=Date.now();W-this.JSC$19677_watchDogTimeoutTime_>=0?(this.JSC$19675_channelDebug_.info("TIMEOUT: "+this.JSC$19677_requestUri_),this.JSC$19677_type_!=2&&this.JSC$19675_channel_.notifyServerReachabilityEvent(3),Ie(this),this.JSC$19677_lastError_=2,oe(18),g0w(this)):(this.JSC$19675_channelDebug_.warning("WatchDog timer called too early"),PGs(this,this.JSC$19677_watchDogTimeoutTime_-W))};
var g0w=function(W){W.JSC$19675_channel_.JSC$19684_isClosed()||W.JSC$19677_cancelled_||W.JSC$19675_channel_.JSC$19684_onRequestComplete(W)},Ie=function(W){szN(W);
_.Ls(W.JSC$19677_readyStateChangeThrottle_);W.JSC$19677_readyStateChangeThrottle_=null;W.pollingTimer_.stop();W.JSC$19675_eventHandler_.removeAll();if(W.JSC$19677_xmlHttp_){var l=W.JSC$19677_xmlHttp_;W.JSC$19677_xmlHttp_=null;l.abort();l.dispose()}W.trident_&&(W.trident_=null)};
jH.prototype.getLastError=function(){return this.JSC$19677_lastError_};
var ye1=function(W,l){try{W.JSC$19675_channel_.JSC$19684_onRequestData(W,l),W.JSC$19675_channel_.notifyServerReachabilityEvent(4)}catch(V){}};var ix=function(W,l,V,f){var r=W.info;a:if(V&&V!="y2f%"){try{var R=JSON.parse(V);if(R)for(var y=0;y<R.length;y++)if(Array.isArray(R[y])){var P=R[y];if(!(P.length<2)){var n=P[1];if(Array.isArray(n)&&!(n.length<1)){var B=n[0];if(B!="noop"&&B!="stop")for(var d=1;d<n.length;d++)n[d]=""}}}var J=(0,_.hS)(R);break a}catch(D){W.debug("Exception parsing expected JS array - probably was not JS");J=V;break a}J=void 0}else J=V;r.call(W,"XMLHTTP TEXT ("+l+"): "+J+(f?" "+f:""))};
Kb.prototype.debug=function(W){this.info(W)};
Kb.prototype.info=function(){};
Kb.prototype.warning=function(){};var n0s=function(W,l){this.JSC$19682_channel_=W;this.JSC$19682_channelDebug_=l;this.JSC$19682_parser_=new Cw};
_.t=n0s.prototype;_.t.JSC$19684_extraHeaders_=null;_.t.JSC$19684_request_=null;_.t.receivedIntermediateResult_=!1;_.t.JSC$19684_path_=null;_.t.state_=null;_.t.JSC$19684_lastStatusCode_=-1;_.t.JSC$19684_hostPrefix_=null;_.t.blockedPrefix_=null;
_.t.connect=function(W){this.JSC$19684_path_=W;W=CG1(this.JSC$19682_channel_,this.JSC$19684_path_);oe(3);Date.now();var l=this.JSC$19682_channel_.firstTestResults_;l!=null?(this.JSC$19684_hostPrefix_=l[0],(this.blockedPrefix_=l[1])?(this.state_=1,ce1(this)):(this.state_=2,BtH(this))):(fr(W,"MODE","init"),this.JSC$19684_request_=new jH(this,this.JSC$19682_channelDebug_),this.JSC$19684_request_.JSC$19677_extraHeaders_=this.JSC$19684_extraHeaders_,R5L(this.JSC$19684_request_,W,!1,null,!0),this.state_=
0)};
var ce1=function(W){var l=d01(W.JSC$19682_channel_,W.blockedPrefix_,"/mail/images/cleardot.gif");_.or(l);zoY(l.toString(),5E3,(0,_.ml)(W.checkBlockedCallback_,W),3,2E3);W.notifyServerReachabilityEvent(1)};
n0s.prototype.checkBlockedCallback_=function(W){if(W)this.state_=2,BtH(this);else{oe(4);var l=this.JSC$19682_channel_;l.JSC$19685_channelDebug_.debug("Test Connection Blocked");l.JSC$19689_lastStatusCode_=l.connectionTest_.JSC$19684_lastStatusCode_;mi(l,9)}W&&this.notifyServerReachabilityEvent(2)};
var BtH=function(W){W.JSC$19682_channelDebug_.debug("TestConnection: starting stage 2");var l=W.JSC$19682_channel_.secondTestResults_;l!=null?(W.JSC$19682_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+l?"Buffered":"Unbuffered"),oe(5),l?(oe(11),XT(W.JSC$19682_channel_,W,!1)):(oe(12),XT(W.JSC$19682_channel_,W,!0))):(W.JSC$19684_request_=new jH(W,W.JSC$19682_channelDebug_),W.JSC$19684_request_.JSC$19677_extraHeaders_=W.JSC$19684_extraHeaders_,l=Jec(W.JSC$19682_channel_,
W.JSC$19684_hostPrefix_,W.JSC$19684_path_),oe(5),fr(l,"TYPE","xmlhttp"),R5L(W.JSC$19684_request_,l,!1,W.JSC$19684_hostPrefix_,!1))};
_.t=n0s.prototype;_.t.JSC$19684_createXhrIo=function(W){return this.JSC$19682_channel_.JSC$19684_createXhrIo(W)};
_.t.abort=function(){this.JSC$19684_request_&&(this.JSC$19684_request_.cancel(),this.JSC$19684_request_=null);this.JSC$19684_lastStatusCode_=-1};
_.t.JSC$19684_isClosed=function(){return!1};
_.t.JSC$19684_onRequestData=function(W,l){this.JSC$19684_lastStatusCode_=W.JSC$19677_lastStatusCode_;if(this.state_==0)if(this.JSC$19682_channelDebug_.debug("TestConnection: Got data for stage 1"),l){try{var V=this.JSC$19682_parser_.parse(l)}catch(f){D07(this.JSC$19682_channel_,this);return}this.JSC$19684_hostPrefix_=V[0];this.blockedPrefix_=V[1]}else this.JSC$19682_channelDebug_.debug("TestConnection: Null responseText"),D07(this.JSC$19682_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(oe(7),Date.now()):l=="11111"?(oe(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19684_lastStatusCode_=200,this.JSC$19684_request_.cancel(),this.JSC$19682_channelDebug_.debug("Test connection succeeded; using streaming connection"),oe(12),XT(this.JSC$19682_channel_,this,!0)):(oe(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.t.JSC$19684_onRequestComplete=function(){this.JSC$19684_lastStatusCode_=this.JSC$19684_request_.JSC$19677_lastStatusCode_;this.JSC$19684_request_.JSC$19677_successful_?this.state_==0?(this.JSC$19682_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,ce1(this)):(this.state_=2,BtH(this))):this.state_==2&&(this.JSC$19682_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19682_channelDebug_.debug("Test connection succeeded; using streaming connection"),
oe(12),XT(this.JSC$19682_channel_,this,!0)):(this.JSC$19682_channelDebug_.debug("Test connection failed; not using streaming"),oe(11),XT(this.JSC$19682_channel_,this,!1))):(this.JSC$19682_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?oe(9):this.state_==2&&oe(10),D07(this.JSC$19682_channel_,this,this.JSC$19684_request_.getLastError()))};
_.t.JSC$19684_shouldUseSecondaryDomains=function(){return this.JSC$19682_channel_.JSC$19684_shouldUseSecondaryDomains()};
_.t.isActive=function(){return this.JSC$19682_channel_.isActive()};
_.t.notifyServerReachabilityEvent=function(W){this.JSC$19682_channel_.notifyServerReachabilityEvent(W)};var T8=function(W,l,V){this.state_=1;this.JSC$19685_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19685_channelDebug_=new Kb;this.JSC$19685_parser_=new Cw;this.firstTestResults_=W||null;this.secondTestResults_=l!=null?l:null;this.asyncTest_=V||!1},U0e=function(W,l){this.JSC$19687_mapId=W;
this.map=l;this.context=null};
_.t=T8.prototype;_.t.JSC$19689_extraHeaders_=null;_.t.JSC$19689_extraParams_=null;_.t.forwardChannelRequest_=null;_.t.JSC$19689_backChannelRequest_=null;_.t.JSC$19689_path_=null;_.t.JSC$19689_forwardChannelUri_=null;_.t.JSC$19689_backChannelUri_=null;_.t.JSC$19689_hostPrefix_=null;_.t.JSC$19689_nextRid_=0;_.t.JSC$19689_nextMapId_=0;_.t.handler_=null;_.t.JSC$19689_forwardChannelTimerId_=null;_.t.JSC$19689_backChannelTimerId_=null;_.t.JSC$19689_deadBackChannelTimerId_=null;_.t.connectionTest_=null;
_.t.useChunked_=null;_.t.JSC$19689_lastArrayId_=-1;_.t.JSC$19689_lastPostResponseArrayId_=-1;_.t.JSC$19689_lastStatusCode_=-1;_.t.JSC$19689_forwardChannelRetryCount_=0;_.t.JSC$19689_backChannelRetryCount_=0;_.t.JSC$19689_channelVersion_=8;var u52={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},kf5=function(W,l,V,f){_.AS.call(this,"timingevent",W);this.size=l;this.rtt=V;this.retries=f};
_.Jj(kf5,_.AS);var v0c=function(W){_.AS.call(this,"serverreachability",W)};
_.Jj(v0c,_.AS);T8.prototype.connect=function(W,l,V,f,r){this.JSC$19685_channelDebug_.debug("connect()");oe(0);this.JSC$19689_path_=l;this.JSC$19689_extraParams_=V||{};f&&r!==void 0&&(this.JSC$19689_extraParams_.OSID=f,this.JSC$19689_extraParams_.OAID=r);this.asyncTest_?(HX((0,_.ml)(this.connectTest_,this,W),100),HB5(this)):this.connectTest_(W)};
T8.prototype.disconnect=function(){this.JSC$19685_channelDebug_.debug("disconnect()");K97(this);if(this.state_==3){var W=this.JSC$19689_nextRid_++,l=this.JSC$19689_forwardChannelUri_.clone();_.$9(l,"SID",this.sid_);_.$9(l,"RID",W);_.$9(l,"TYPE","terminate");wj(this,l);W=new jH(this,this.JSC$19685_channelDebug_,this.sid_,W);W.JSC$19677_type_=2;W.JSC$19677_baseUri_=_.or(l.clone());(new Image).src=W.JSC$19677_baseUri_.toString();W.JSC$19677_requestStartTime_=Date.now();ts4(W)}F9Y(this)};
T8.prototype.connectTest_=function(W){this.JSC$19685_channelDebug_.debug("connectTest_()");this.connectionTest_=new n0s(this,this.JSC$19685_channelDebug_);this.connectionTest_.JSC$19684_extraHeaders_=this.JSC$19689_extraHeaders_;this.connectionTest_.JSC$19682_parser_=this.JSC$19685_parser_;this.connectionTest_.connect(W)};
var HB5=function(W){W.JSC$19685_channelDebug_.debug("connectChannel_()");W.JSC$19689_ensureInState_(1,0);W.JSC$19689_forwardChannelUri_=CG1(W,W.JSC$19689_path_);GfY(W)},K97=function(W){W.connectionTest_&&(W.connectionTest_.abort(),W.connectionTest_=null);
W.JSC$19689_backChannelRequest_&&(W.JSC$19689_backChannelRequest_.cancel(),W.JSC$19689_backChannelRequest_=null);W.JSC$19689_backChannelTimerId_&&(_.rS.clearTimeout(W.JSC$19689_backChannelTimerId_),W.JSC$19689_backChannelTimerId_=null);bBs(W);W.forwardChannelRequest_&&(W.forwardChannelRequest_.cancel(),W.forwardChannelRequest_=null);W.JSC$19689_forwardChannelTimerId_&&(_.rS.clearTimeout(W.JSC$19689_forwardChannelTimerId_),W.JSC$19689_forwardChannelTimerId_=null)},poH=function(W,l){if(W.state_==0)throw Error("Ok");
W.JSC$19685_outgoingMaps_.length==1E3&&W.JSC$19685_parser_.stringify(l);W.JSC$19685_outgoingMaps_.push(new U0e(W.JSC$19689_nextMapId_++,l));W.state_!=2&&W.state_!=3||GfY(W)};
T8.prototype.JSC$19684_isClosed=function(){return this.state_==0};
T8.prototype.getState=function(){return this.state_};
var GfY=function(W){W.forwardChannelRequest_||W.JSC$19689_forwardChannelTimerId_||(W.JSC$19689_forwardChannelTimerId_=HX((0,_.ml)(W.JSC$19689_onStartForwardChannelTimer_,W),0),W.JSC$19689_forwardChannelRetryCount_=0)};
T8.prototype.JSC$19689_onStartForwardChannelTimer_=function(W){this.JSC$19689_forwardChannelTimerId_=null;o01(this,W)};
var o01=function(W,l){W.JSC$19685_channelDebug_.debug("startForwardChannel_");if(W.state_==1){if(!l){W.JSC$19685_channelDebug_.debug("open_()");W.JSC$19689_nextRid_=Math.floor(Math.random()*1E5);l=W.JSC$19689_nextRid_++;var V=new jH(W,W.JSC$19685_channelDebug_,"",l);V.JSC$19677_extraHeaders_=W.JSC$19689_extraHeaders_;var f=jze(W),r=W.JSC$19689_forwardChannelUri_.clone();_.$9(r,"RID",l);_.$9(r,"CVER","1");wj(W,r);reN(V,r,f);W.forwardChannelRequest_=V;W.state_=2}}else W.state_==3&&(l?Iuw(W,l):W.JSC$19685_outgoingMaps_.length==
0?W.JSC$19685_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):W.forwardChannelRequest_||(Iuw(W),W.JSC$19685_channelDebug_.debug("startForwardChannel_ finished, sent request")))},Iuw=function(W,l){if(l)if(W.JSC$19689_channelVersion_>6){W.JSC$19685_outgoingMaps_=W.pendingMaps_.concat(W.JSC$19685_outgoingMaps_);
W.pendingMaps_.length=0;var V=W.JSC$19689_nextRid_-1;l=jze(W)}else V=l.JSC$19675_rid_,l=l.JSC$19677_postData_;else V=W.JSC$19689_nextRid_++,l=jze(W);var f=W.JSC$19689_forwardChannelUri_.clone();_.$9(f,"SID",W.sid_);_.$9(f,"RID",V);_.$9(f,"AID",W.JSC$19689_lastArrayId_);wj(W,f);V=new jH(W,W.JSC$19685_channelDebug_,W.sid_,V,W.JSC$19689_forwardChannelRetryCount_+1);V.JSC$19677_extraHeaders_=W.JSC$19689_extraHeaders_;V.setTimeout(1E4+Math.round(1E4*Math.random()));W.forwardChannelRequest_=V;reN(V,f,l)},
wj=function(W,l){W.handler_&&(W=W.handler_.JSC$19696_getAdditionalParams())&&_.MC.forEach(W,function(V,f){_.$9(l,f,V)})},jze=function(W){var l=Math.min(W.JSC$19685_outgoingMaps_.length,1E3),V=["count="+l];
if(W.JSC$19689_channelVersion_>6&&l>0){var f=W.JSC$19685_outgoingMaps_[0].JSC$19687_mapId;V.push("ofs="+f)}else f=0;for(var r={},R=0;R<l;r={mapId$jscomp$3:void 0},R++){r.mapId$jscomp$3=W.JSC$19685_outgoingMaps_[R].JSC$19687_mapId;var y=W.JSC$19685_outgoingMaps_[R].map;r.mapId$jscomp$3=W.JSC$19689_channelVersion_<=6?R:r.mapId$jscomp$3-f;try{_.MC.forEach(y,function(P){return function(n,B){V.push("req"+P.mapId$jscomp$3+"_"+B+"="+encodeURIComponent(n))}}(r))}catch(P){V.push("req"+r.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}W.pendingMaps_=W.pendingMaps_.concat(W.JSC$19685_outgoingMaps_.splice(0,l));
return V.join("&")},iBN=function(W){W.JSC$19689_backChannelRequest_||W.JSC$19689_backChannelTimerId_||(W.JSC$19689_backChannelAttemptId_=1,W.JSC$19689_backChannelTimerId_=HX((0,_.ml)(W.JSC$19689_onStartBackChannelTimer_,W),0),W.JSC$19689_backChannelRetryCount_=0)},Xo1=function(W){if(W.JSC$19689_backChannelRequest_||W.JSC$19689_backChannelTimerId_||W.JSC$19689_backChannelRetryCount_>=3)return!1;
W.JSC$19685_channelDebug_.debug("Going to retry GET");W.JSC$19689_backChannelAttemptId_++;W.JSC$19689_backChannelTimerId_=HX((0,_.ml)(W.JSC$19689_onStartBackChannelTimer_,W),m04(W,W.JSC$19689_backChannelRetryCount_));W.JSC$19689_backChannelRetryCount_++;return!0};
T8.prototype.JSC$19689_onStartBackChannelTimer_=function(){this.JSC$19689_backChannelTimerId_=null;this.JSC$19685_channelDebug_.debug("Creating new HttpRequest");this.JSC$19689_backChannelRequest_=new jH(this,this.JSC$19685_channelDebug_,this.sid_,"rpc",this.JSC$19689_backChannelAttemptId_);this.JSC$19689_backChannelRequest_.JSC$19677_extraHeaders_=this.JSC$19689_extraHeaders_;this.JSC$19689_backChannelRequest_.JSC$19677_readyStateChangeThrottleMs_=0;var W=this.JSC$19689_backChannelUri_.clone();_.$9(W,
"RID","rpc");_.$9(W,"SID",this.sid_);_.$9(W,"CI",this.useChunked_?"0":"1");_.$9(W,"AID",this.JSC$19689_lastArrayId_);wj(this,W);_.$9(W,"TYPE","xmlhttp");R5L(this.JSC$19689_backChannelRequest_,W,!0,this.JSC$19689_hostPrefix_,!1);this.JSC$19685_channelDebug_.debug("New Request created")};
var XT=function(W,l,V){W.JSC$19685_channelDebug_.debug("Test Connection Finished");W.useChunked_=W.secondTestResults_==null?V:!W.secondTestResults_;W.JSC$19689_lastStatusCode_=l.JSC$19684_lastStatusCode_;W.asyncTest_||HB5(W)},D07=function(W,l){W.JSC$19685_channelDebug_.debug("Test Connection Failed");
W.JSC$19689_lastStatusCode_=l.JSC$19684_lastStatusCode_;mi(W,2)};
T8.prototype.JSC$19684_onRequestData=function(W,l){if(this.state_!=0&&(this.JSC$19689_backChannelRequest_==W||this.forwardChannelRequest_==W))if(this.JSC$19689_lastStatusCode_=W.JSC$19677_lastStatusCode_,this.forwardChannelRequest_==W&&this.state_==3)if(this.JSC$19689_channelVersion_>7){try{var V=this.JSC$19685_parser_.parse(l)}catch(f){V=null}if(Array.isArray(V)&&V.length==3)if(l=V,l[0]==0)a:if(this.JSC$19685_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19689_backChannelTimerId_)this.JSC$19685_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19689_backChannelRequest_)if(this.JSC$19689_backChannelRequest_.JSC$19677_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19677_requestStartTime_)bBs(this),this.JSC$19689_backChannelRequest_.cancel(),this.JSC$19689_backChannelRequest_=null;else break a;else this.JSC$19685_channelDebug_.warning("We do not have a BackChannel established");Xo1(this);oe(19)}else this.JSC$19689_lastPostResponseArrayId_=l[1],W=this.JSC$19689_lastPostResponseArrayId_-this.JSC$19689_lastArrayId_,0<
W&&(l=l[2],this.JSC$19685_channelDebug_.debug(l+" bytes (in "+W+" arrays) are outstanding on the BackChannel"),l<37500&&this.useChunked_&&this.JSC$19689_backChannelRetryCount_==0&&!this.JSC$19689_deadBackChannelTimerId_&&(this.JSC$19689_deadBackChannelTimerId_=HX((0,_.ml)(this.JSC$19689_onBackChannelDead_,this),6E3)));else this.JSC$19685_channelDebug_.debug("Bad POST response data returned"),mi(this,11)}else l!="y2f%"&&(this.JSC$19685_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
mi(this,11));else this.JSC$19689_backChannelRequest_==W&&bBs(this),_.gS(l)||(W=this.JSC$19685_parser_.parse(l),this.onInput_(W))};
T8.prototype.JSC$19689_onBackChannelDead_=function(){this.JSC$19689_deadBackChannelTimerId_!=null&&(this.JSC$19689_deadBackChannelTimerId_=null,this.JSC$19689_backChannelRequest_.cancel(),this.JSC$19689_backChannelRequest_=null,Xo1(this),oe(20))};
var bBs=function(W){W.JSC$19689_deadBackChannelTimerId_!=null&&(_.rS.clearTimeout(W.JSC$19689_deadBackChannelTimerId_),W.JSC$19689_deadBackChannelTimerId_=null)};
T8.prototype.JSC$19684_onRequestComplete=function(W){this.JSC$19685_channelDebug_.debug("Request complete");if(this.JSC$19689_backChannelRequest_==W){bBs(this);this.JSC$19689_backChannelRequest_=null;var l=2}else if(this.forwardChannelRequest_==W)this.forwardChannelRequest_=null,l=1;else return;this.JSC$19689_lastStatusCode_=W.JSC$19677_lastStatusCode_;if(this.state_!=0)if(W.JSC$19677_successful_)if(l==1){l=W.JSC$19677_postData_?W.JSC$19677_postData_.length:0;W=Date.now()-W.JSC$19677_requestStartTime_;
var V=E61;V.dispatchEvent(new kf5(V,l,W,this.JSC$19689_forwardChannelRetryCount_));GfY(this);this.handler_&&this.handler_.JSC$19696_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else iBN(this);else{V=W.getLastError();if(V==3||V==7||V==0&&this.JSC$19689_lastStatusCode_>0)this.JSC$19685_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19685_channelDebug_.debug("Maybe retrying, last error: "+W9e(V,this.JSC$19689_lastStatusCode_));var f;if(f=l==1)this.forwardChannelRequest_||
this.JSC$19689_forwardChannelTimerId_||this.state_==1||this.JSC$19689_forwardChannelRetryCount_>=2?f=!1:(this.JSC$19685_channelDebug_.debug("Going to retry POST"),this.JSC$19689_forwardChannelTimerId_=HX((0,_.ml)(this.JSC$19689_onStartForwardChannelTimer_,this,W),m04(this,this.JSC$19689_forwardChannelRetryCount_)),this.JSC$19689_forwardChannelRetryCount_++,f=!0);if(f||l==2&&Xo1(this))return;this.JSC$19685_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19685_channelDebug_.debug("Error: HTTP request failed");
switch(V){case 1:mi(this,5);break;case 4:mi(this,10);break;case 3:mi(this,6);break;case 7:mi(this,12);break;default:mi(this,2)}}};
var m04=function(W,l){var V=5E3+Math.floor(Math.random()*1E4);W.isActive()||(W.JSC$19685_channelDebug_.debug("Inactive channel"),V*=2);return V*l};
T8.prototype.onInput_=function(W){for(var l=0;l<W.length;l++){var V=W[l];this.JSC$19689_lastArrayId_=V[0];V=V[1];this.state_==2?V[0]=="c"?(this.sid_=V[1],this.JSC$19689_hostPrefix_=V[2],V=V[3],V!=null?this.JSC$19689_channelVersion_=V:this.JSC$19689_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19696_channelOpened(),this.JSC$19689_backChannelUri_=Jec(this,this.JSC$19689_hostPrefix_,this.JSC$19689_path_),iBN(this)):V[0]=="stop"&&mi(this,7):this.state_==3&&(V[0]=="stop"?mi(this,7):
V[0]!="noop"&&this.handler_&&this.handler_.JSC$19696_channelHandleArray(V),this.JSC$19689_backChannelRetryCount_=0)}};
T8.prototype.JSC$19689_ensureInState_=function(W){if(!_.Oz(arguments,this.state_))throw Error("Pk`"+this.state_);};
var mi=function(W,l){W.JSC$19685_channelDebug_.info("Error code "+l);if(l==2||l==9){var V=null;W.handler_&&(V=null);var f=(0,_.ml)(W.testGoogleComCallback_,W);V||(V=new _.dg("//www.google.com/images/cleardot.gif"),_.or(V));ars(V.toString(),1E4,f)}else oe(2);W.onError_(l)};
T8.prototype.testGoogleComCallback_=function(W){W?(this.JSC$19685_channelDebug_.info("Successfully pinged google.com"),oe(2)):(this.JSC$19685_channelDebug_.info("Failed to ping google.com"),oe(1),this.onError_(8))};
T8.prototype.onError_=function(W){this.JSC$19685_channelDebug_.debug("HttpChannel: error - "+W);this.state_=0;this.handler_&&this.handler_.JSC$19696_channelError(W);F9Y(this);K97(this)};
var F9Y=function(W){W.state_=0;W.JSC$19689_lastStatusCode_=-1;if(W.handler_)if(W.pendingMaps_.length==0&&W.JSC$19685_outgoingMaps_.length==0)W.handler_.JSC$19696_channelClosed();else{W.JSC$19685_channelDebug_.debug("Number of undelivered maps, pending: "+W.pendingMaps_.length+", outgoing: "+W.JSC$19685_outgoingMaps_.length);var l=_.z6(W.pendingMaps_),V=_.z6(W.JSC$19685_outgoingMaps_);W.pendingMaps_.length=0;W.JSC$19685_outgoingMaps_.length=0;W.handler_.JSC$19696_channelClosed(l,V)}},CG1=function(W,
l){l=d01(W,null,l);
W.JSC$19685_channelDebug_.debug("GetForwardChannelUri: "+l);return l},Jec=function(W,l,V){l=d01(W,W.JSC$19684_shouldUseSecondaryDomains()?l:null,V);
W.JSC$19685_channelDebug_.debug("GetBackChannelUri: "+l);return l},d01=function(W,l,V){var f=_.SV(V);
if(f.JSC$10026_domain_!="")l&&_.uc(f,l+"."+f.JSC$10026_domain_),_.kg(f,f.JSC$10026_port_);else{var r=window.location;f=N5w(r.protocol,l?l+"."+r.hostname:r.hostname,+r.port,V)}W.JSC$19689_extraParams_&&_.MC.forEach(W.JSC$19689_extraParams_,function(R,y){_.$9(f,y,R)});
_.$9(f,"VER",W.JSC$19689_channelVersion_);wj(W,f);return f};
T8.prototype.JSC$19684_createXhrIo=function(W){if(W)throw Error("Mk");W=new _.Sk;W.JSC$9791_withCredentials_=!1;return W};
T8.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
T8.prototype.notifyServerReachabilityEvent=function(W){var l=E61;l.dispatchEvent(new v0c(l,W))};
T8.prototype.JSC$19684_shouldUseSecondaryDomains=function(){return!1};
new Sl4;var Tt1=function(){};
_.t=Tt1.prototype;_.t.JSC$19696_channelOpened=function(){};
_.t.JSC$19696_channelHandleArray=function(){};
_.t.JSC$19696_channelSuccess=function(){};
_.t.JSC$19696_channelError=function(){};
_.t.JSC$19696_channelClosed=function(){};
_.t.JSC$19696_getAdditionalParams=function(){return{}};
_.t.isActive=function(){return!0};var wo7=function(W){W.front_.length===0&&(W.front_=W.back_,W.front_.reverse(),W.back_=[])};
_.t=YDe.prototype;_.t.enqueue=function(W){this.back_.push(W)};
_.t.peek=function(){wo7(this);return _.Xn(this.front_)};
_.t.getCount=function(){return this.front_.length+this.back_.length};
_.t.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.t.clear=function(){this.front_=[];this.back_=[]};
_.t.contains=function(W){return _.Oz(this.front_,W)||_.Oz(this.back_,W)};
_.t.remove=function(W){var l=this.front_;var V=Array.prototype.lastIndexOf.call(l,W,l.length-1);V>=0?(_.Hqn(l,V),l=!0):l=!1;return l||_.aY(this.back_,W)};
_.t.getValues=function(){for(var W=[],l=this.front_.length-1;l>=0;--l)W.push(this.front_[l]);l=this.back_.length;for(var V=0;V<l;++V)W.push(this.back_[V]);return W};var Ao=function(W){this.JSC$19700_map_=new _.i9;this.size=0;W&&this.addAll(W)},Ae2=function(W){var l=typeof W;
return l=="object"&&W||l=="function"?"o"+_.qg(W):l.charAt(0)+W};
_.t=Ao.prototype;_.t.getCount=function(){return this.JSC$19700_map_.size};
_.t.add=function(W){this.JSC$19700_map_.set(Ae2(W),W);this.size=this.JSC$19700_map_.size};
_.t.addAll=function(W){W=_.DR(W);for(var l=W.length,V=0;V<l;V++)this.add(W[V]);this.size=this.JSC$19700_map_.size};
_.t.removeAll=function(W){W=_.DR(W);for(var l=W.length,V=0;V<l;V++)this.remove(W[V]);this.size=this.JSC$19700_map_.size};
_.t.delete=function(W){W=this.JSC$19700_map_.remove(Ae2(W));this.size=this.JSC$19700_map_.size;return W};
_.t.remove=function(W){return this.delete(W)};
_.t.clear=function(){this.JSC$19700_map_.clear();this.size=0};
_.t.isEmpty=function(){return this.JSC$19700_map_.size===0};
_.t.has=function(W){return this.JSC$19700_map_.containsKey(Ae2(W))};
_.t.contains=function(W){return this.JSC$19700_map_.containsKey(Ae2(W))};
_.t.getValues=function(){return this.JSC$19700_map_.getValues()};
_.t.values=function(){return this.JSC$19700_map_.values()};
_.t.clone=function(){return new Ao(this)};
_.t.equals=function(W){return this.getCount()==abN(W)&&Qzc(this,W)};
var Qzc=function(W,l){var V=abN(l);if(W.getCount()>V)return!1;!(l instanceof Ao)&&V>5&&(l=new Ao(l));return zp1(W,function(f){var r=l;return r.contains&&typeof r.contains=="function"?r.contains(f):r.containsValue&&typeof r.containsValue=="function"?r.containsValue(f):_.Ng(r)||typeof r==="string"?_.Oz(r,f):_.MC.containsValue(r,f)})};
Ao.prototype.__iterator__=function(){return this.JSC$19700_map_.__iterator__(!1)};
Ao.prototype[Symbol.iterator]=function(){return this.values()};var Msw={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(W){return(this._clampValue(W)-this.min)/(this.max-this.min)},
_clampValue:function(W){return Math.min(this.max,Math.max(this.min,this._calcStep(W)))},
_calcStep:function(W){W=parseFloat(W);if(!this.step)return W;W=Math.round((W-this.min)/this.step);return this.step<1?W/(1/this.step)+this.min:W*this.step+this.min},
_validateValue:function(){var W=this._clampValue(this.value);this.value=this.oldValue=isNaN(W)?this.oldValue:W;return this.value!==W},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var ZBL;var OB4;_.S3({_template:function(){if(OB4!==void 0)return OB4;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;ZBL===void 0&&(ZBL=document.createElement("template"));var f=ZBL;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return OB4=W},
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(){_.V9(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(W){W.keyCode===27&&(W.preventDefault(),this.close())},
_track:function(W){if(!this.persistent&&!this.disableSwipe)switch(W.preventDefault(),W.detail.state){case "start":this._trackStart(W);break;case "track":this._trackMove(W);break;case "end":this._trackEnd(W)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var W=this.$.contentContainer.getBoundingClientRect();this._savedWidth=W.width;this._translateOffset=this.position==="left"?W.left:W.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(W){this._trackDetails&&(this._translateDrawer(W.detail.dx+this._translateOffset),this._trackDetails.push({dx:W.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(W){if(this._trackDetails){var l=W.detail.dx+this._translateOffset,V=this.getWidth();l=this.position==="left"?l>=0||l<=-V:l<=0||l>=V;if(!l){var f=this._trackDetails;this._trackDetails=null;this._flingDrawer(W,f);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}V/=2;W.detail.dx<-V?this.opened=this.position==="right":W.detail.dx>V&&(this.opened=this.position==="left");l?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(W,l){for(var V=Date.now(),f=V-100,r,R=0,y=l.length-1;R<=y;){var P=R+y>>1,n=l[P];n.timeStamp>=f?(r=n,y=P-1):R=P+1}return r?(W.detail.dx-r.dx)/(V-r.timeStamp||1):0},
_flingDrawer:function(W,l){l=this._calculateVelocity(W,l);if(!(Math.abs(l)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;W=W.detail.dx+this._translateOffset;var V=this.getWidth(),f=this.position==="left",r=l>0;r?(l=Math.max(l,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(l=Math.min(l,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");l=this._FLING_INITIAL_SLOPE*(!r&&f?-(W+V):r&&!f?V-W:-W)/l;this._styleTransitionDuration(l);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,l)}},
_styleTransitionDuration:function(W){this.style.transitionDuration=W+"ms";this.$.contentContainer.style.transitionDuration=W+"ms";this.$.scrim.style.transitionDuration=W+"ms"},
_styleTransitionTimingFunction:function(W){this.$.contentContainer.style.transitionTimingFunction=W;this.$.scrim.style.transitionTimingFunction=W},
_translateDrawer:function(W){var l=this.getWidth();this.position==="left"?(W=Math.max(-l,Math.min(W,0)),this.$.scrim.style.opacity=1+W/l):(W=Math.max(0,Math.min(W,l)),this.$.scrim.style.opacity=1-W/l);this.translate3d(W+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var W=this._drawerState;W===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;W!==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=""),W!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var W=_.YG(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"])');W.length>0?(this._firstTabStop=W[0],this._lastTabStop=W[W.length-1]):
this._lastTabStop=this._firstTabStop=null;(W=this.getAttribute("tabindex"))&&parseInt(W,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(W){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||W.keyCode!==9||(W.shiftKey?this._firstTabStop&&_.YG(W).localTarget===this._firstTabStop&&(W.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.YG(W).localTarget===this._lastTabStop&&(W.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(W,l){this.toggleClass("visible",W&&!l,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 iA5;var mqZ;_.S3({_template:function(){if(mqZ!==void 0)return mqZ;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;iA5===void 0&&(iA5=document.createElement("template"));var f=iA5;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return mqZ=W},
is:"tp-yt-paper-progress",behaviors:[Msw],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(W){this.toggleClass("indeterminate",W,this.$.primaryProgress)},
_transformProgress:function(W,l){W.style.transform=W.style.webkitTransform="scaleX("+l/100+")"},
_mainRatioChanged:function(W){this._transformProgress(this.$.primaryProgress,W)},
_progressChanged:function(W,l,V,f,r){W=this._clampValue(W);l=this._clampValue(l);var R=this._calcRatio(W)*100,y=this._calcRatio(l)*100;this._setSecondaryRatio(R);this._transformProgress(this.$.secondaryProgress,R);this._transformProgress(this.$.primaryProgress,y);this.secondaryProgress=W;r?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",l);this.setAttribute("aria-valuemin",V);this.setAttribute("aria-valuemax",f)},
_disabledChanged:function(W){this.setAttribute("aria-disabled",W?"true":"false")},
_hideSecondaryProgress:function(W){return W===0}});var XLN;var TY1;var wLY=function(){};
_.t=wLY.prototype;_.t.registered=function(){};
_.t.addOwnKeyBinding=function(){};
_.t.removeOwnKeyBindings=function(){};
_.t.keyboardEventMatchesKeys=function(){};
_.t._collectKeyBindings=function(){};
_.t._prepKeyBindings=function(){};
_.t._addKeyBinding=function(){};
_.t._resetKeyEventListeners=function(){};
_.t._listenKeyEventListeners=function(){};
_.t._unlistenKeyEventListeners=function(){};
_.t._onKeyBindingEvent=function(){};
_.t._triggerKeyHandler=function(){};
_.t._tapHandler=function(){};
_.t._focusChanged=function(){};
_.t._detectKeyboardFocus=function(){};
_.t._userActivate=function(){};
_.t._upHandler=function(){};
_.t._spaceKeyDownHandler=function(){};
_.t._spaceKeyUpHandler=function(){};
_.t._asyncClick=function(){};
_.t._pressedChanged=function(){};
_.t._ariaActiveAttributeChanged=function(){};
_.t._activeChanged=function(){};
_.t._controlStateChanged=function(){};
_.t._changedButtonState=function(){};
_.t._focusBlurHandler=function(){};
_.t._disabledChanged=function(){};
_.t._changedControlState=function(){};
_.t._buttonStateChanged=function(){};
_.t._downHandler=function(){};
_.t.ensureRipple=function(){};
_.t.getRipple=function(){};
_.t.hasRipple=function(){};
_.t._noinkChanged=function(){};
_.t._calcRatio=function(){};
_.t._clampValue=function(){};
_.t._calcStep=function(){};
_.t._validateValue=function(){};
_.t._update=function(){};
_.t._setImmediateValue=function(){};
_.t._setExpand=function(){};
_.t._setDragging=function(){};
_.t._setTransiting=function(){};
_.t._setMarkers=function(){};
_.t._setPressed=function(){};
_.t._setPointerDown=function(){};
_.t._setReceivedFocusFromKeyboard=function(){};
_.t._setFocused=function(){};
_.t._setRatio=function(){};
wLY=_.S3({_template:function(){if(TY1!==void 0)return TY1;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;XLN===void 0&&(XLN=document.createElement("template"));var f=XLN;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return TY1=W},
is:"tp-yt-paper-slider",behaviors:[_.NN,_.qN,_.zDk,Msw],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&&_.Z5(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(W,l,V){this.setAttribute("aria-valuemin",l);this.setAttribute("aria-valuemax",V);this.setAttribute("aria-valuenow",W);this._positionKnob(this._calcRatio(W)*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(W){this._setImmediateValue(this._calcStep(this._calcKnobPosition(W)));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(W){return(this.max-this.min)*W/100+this.min},
_onTrack:function(W){W.stopPropagation();switch(W.detail.state){case "start":this._trackStart(W);break;case "track":this._trackX(W);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(W){this.dragging||this._trackStart(W);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,W.detail.dx*(this._isRTL?-1:1)));W=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(W);W=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(W+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var W=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;W.transform=W.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(W){this._expandKnob();W.preventDefault();this.focus()},
_bartrack:function(W){this._allowBarEvent(W)&&this._onTrack(W)},
_barclick:function(W){this._w=this.$.sliderBar.offsetWidth;var l=this.$.sliderBar.getBoundingClientRect();l=(W.detail.x-l.left)/this._w*100;this._isRTL&&(l=100-l);var V=this.ratio;this._setTransiting(!0);this._positionKnob(l);V===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
W.preventDefault();this.focus()},
_bardown:function(W){this._allowBarEvent(W)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(W))},
_knobTransitionEnd:function(W){W.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(W,l,V,f){f||this._setMarkers([]);l=Math.round((V-l)/this.step);l>W&&(l=W);if(l<0||!isFinite(l))l=0;this._setMarkers(Array(l))},
_mergeClasses:function(W){return Object.keys(W).filter(function(l){return W[l]}).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(W){return!this.ignoreBarTouch||W.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(W){this._isRTL?this._incrementKey(W):this._decrementKey(W)},
_rightKey:function(W){this._isRTL?this._decrementKey(W):this._incrementKey(W)},
_incrementKey:function(W){this.disabled||(W.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),W.preventDefault())},
_decrementKey:function(W){this.disabled||(W.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),W.preventDefault())},
_changeValue:function(W){this.value=W.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(W){W.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.amL._createRipple.call(this)},
_focusedChanged:function(W){W&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=W?"":"none",this._ripple.holdDown=W)}});var ApL;var Qk1;var Qa=null,MXN=function(){};
_.t=MXN.prototype;_.t.fit=function(){};
_.t._discoverInfo=function(){};
_.t.resetFit=function(){};
_.t.refit=function(){};
_.t.position=function(){};
_.t.constrain=function(){};
_.t._sizeDimension=function(){};
_.t.__sizeDimension=function(){};
_.t.center=function(){};
_.t.__getNormalizedRect=function(){};
_.t.__getOffscreenArea=function(){};
_.t.__getPosition=function(){};
_.t.notifyResize=function(){};
_.t.assignParentResizable=function(){};
_.t.stopResizeNotificationsFor=function(){};
_.t._subscribeIronResize=function(){};
_.t._unsubscribeIronResize=function(){};
_.t.resizerShouldNotify=function(){};
_.t._onDescendantIronResize=function(){};
_.t._fireResize=function(){};
_.t._onIronRequestResizeNotifications=function(){};
_.t._parentResizableChanged=function(){};
_.t._notifyDescendant=function(){};
_.t._requestResizeNotifications=function(){};
_.t._findParent=function(){};
_.t.toggle=function(){};
_.t.open=function(){};
_.t.close=function(){};
_.t.cancel=function(){};
_.t.invalidateTabbables=function(){};
_.t._ensureSetup=function(){};
_.t._canceledChanged=function(){};
_.t._withBackdropChanged=function(){};
_.t._prepareRenderOpened=function(){};
_.t._finishRenderOpened=function(){};
_.t._finishRenderClosed=function(){};
_.t._preparePositioning=function(){};
_.t._finishPositioning=function(){};
_.t._applyFocus=function(){};
_.t._onCaptureClick=function(){};
_.t._onCaptureFocus=function(){};
_.t._onCaptureEsc=function(){};
_.t._onCaptureTab=function(){};
_.t._onIronResize=function(){};
_.t._onNodesChange=function(){};
_.t.__ensureFirstLastFocusables=function(){};
_.t.__openedChanged=function(){};
_.t.__deraf=function(){};
_.t.__updateScrollObservers=function(){};
_.t.__addScrollListeners=function(){};
_.t.__removeScrollListeners=function(){};
_.t.__isValidScrollAction=function(){};
_.t.__onCaptureScroll=function(){};
_.t.__saveScrollPosition=function(){};
_.t.__restoreScrollPosition=function(){};
_.t._setCanceled=function(){};
MXN=_.S3({_template:function(){if(Qk1!==void 0)return Qk1;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;ApL===void 0&&(ApL=document.createElement("template"));var f=ApL;V.call(l,f.content.cloneNode(!0),W.content.firstChild);return Qk1=W},
is:"tp-yt-paper-toast",behaviors:[_.Bo],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(){_.xD._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.gt.requestAvailability()},
show:function(W){typeof W=="string"&&(W={text:W});for(var l in W)l.indexOf("_")===0?_.xD._warn('The property "'+l+'" is private and was not set.'):l in this?this[l]=W[l]:_.xD._warn('The property "'+l+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(W){W&&W.target===this&&W.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(Qa&&Qa!==this&&Qa.close(),Qa=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Qa===this&&(Qa=null);_.co._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(W){this.positionTarget=W},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var ZAw=new _.uC("disablePersonalizationAction");var uJ7=new _.uC("showDmaConsentFlowCommand");var kb2=new _.uC("showMmgNoticeCommand");var OAL=new _.uC("saveConsentAction");var aS4=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.MH(W)};
_.v(aS4,_.yP);var zl7=_.ZMU(aS4);var NYZ=new _.uC("updateTopbarAvatarAction");var YqL=new _.uC("channelHandleValidationResultRenderer");var xq1=new _.uC("generateHandleFromNameResultRenderer");var elL=new _.uC("channelHandleInputRenderer");var qqe=new _.uC("copyLinkRenderer");var hl1=new _.uC("timedCommand");var Sq4=new _.uC("clearCookieAction");var Er1=new _.uC("getMultiPageMenuAction");var $qY=new _.uC("addToGuideSectionAction"),WTw=new _.uC("removeFromGuideSectionAction");var lPw=new _.uC("updateNotificationsUnseenCountAction");var V67=new _.uC("resetChannelUnreadCountCommand");var fP4=new _.uC("resetSubscriptionsUnreadDotCommand");var rPw=new _.uC("selectLanguageCommand");var THc=new _.uC("sendFeedbackAction");var Rfw=new _.uC("uploadImageToScottyCommand");var t6w=new _.uC("registerPromoCommand");var s87=new _.uC("setPushNotificationsEnabledCommand");var LT1=new _.uC("desktopTopbarRenderer");var yPL=new _.uC("surveyFollowUpRenderer");var gIZ=new _.uC("handlesClaimingRadioOptionRenderer");var P5s=new _.uC("hotkeyDialogRenderer");var nIY=new _.uC("modifyReportFormCommand");var C57=new _.uC("accountLinkCommand");var cP1=new _.uC("accountUnlinkCommand");var By1=new _.uC("logAccountLinkingEventCommand");var dD1=new _.uC("guideCollapsibleEntryRenderer");var JP4=new _.uC("guideDownloadsEntryRenderer");var M8=new _.uC("guideEntryRenderer");var DDe=new _.uC("getLocationCommand");var UDZ=new _.uC("locationCollectionCommand");var ujs=new _.uC("storiesItemViewModel");var kDH=new _.uC("addToRemoteQueueAction");var vI1=new _.uC("insertInRemoteQueueAction");var Hfs=new _.uC("removeFromRemoteQueueAction");var KTH=new _.uC("notificationRenderer");var R25=new _.uC("localWatchHistoryCommand");var FT2=new _.uC("pdgBuyFlowHeaderRenderer");var GD1=new _.uC("pdgColorSliderRenderer");var bfs=new _.uC("pdgCommentOptionRenderer");var pBs=new _.uC("pdgCommentPreviewRenderer");var oIs=new _.uC("superVodSelectableItemButtonRenderer");var j8Z=new _.uC("switchButtonRenderer");var IPZ=new _.uC("upsellDialogRenderer");var ifw=new _.uC("feedbackQuestionRenderer"),mDw=new _.uC("feedbackOptionRenderer");var XB5=new _.uC("sponsorshipsTierRenderer"),Ty5=new _.uC("sponsorshipsPromotionChannelRenderer");var wBs=new _.uC("simpleSurveyMessageRenderer");var TC7=new _.uC("invokeInstrumentManagerAction");var APZ=new _.uC("logYpcFlowDismissCommand");var Q8s=new _.uC("logYpcFlowStartCommand");var M6Y=new _.uC("unlimitedCreateFamilyEndpoint");var Zf5=new _.uC("iconBadgeRenderer");var tJN=new _.uC("collaborativePlaylistVisibilityValidationRule");var Of2=function(W){_.AS.call(this,"channelMessage");this.message=W};
_.v(Of2,_.AS);var aP1=function(W){_.AS.call(this,"channelError");this.error=W};
_.v(aP1,_.AS);var zf1={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"},Nyc={UNKNOWN_THEME:"u",CLASSIC:"cl",
KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},YBH={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},xDe={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},ef1={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var ZE=function(W){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 _.i9;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;W&&(this.id=W.id||W.name,this.name=W.name,this.clientName=W.clientName?W.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=W.app,this.type=W.type||"REMOTE_CONTROL",this.username=W.user||"",this.avatar=W.userAvatarUri||"",this.obfuscatedGaiaId=W.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=W.ownerObfuscatedGaiaId||"",this.castUserId=W.castUserId||"",this.theme=W.theme||"u",qB1(this,W.capabilities||""),hfw(this,
W.compatibleSenderThemes||""),SBZ(this,W.experiments||""),this.remoteControllerUrl=W.remoteControllerUrl||"",this.localChannelEncryptionKey=W.localChannelEncryptionKey||"",this.deviceContext=W.deviceContext,this.brand=W.brand||"",this.model=W.model||"",this.year=W.year||0,this.os=W.os||"",this.osVersion=W.osVersion||"",this.chipset=W.chipset||"",this.mdxDialServerType=W.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=W.pairingType||"unknown",W=W.deviceInfo)&&(W=JSON.parse(W),this.brand=
W.brand||"",this.model=W.model||"",this.year=W.year||0,this.os=W.os||"",this.osVersion=W.osVersion||"",this.chipset=W.chipset||"",this.clientName=W.clientName?W.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=W.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
ZE.prototype.copy=function(){var W={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&&(W.brand=this.brand);
this.model&&(W.model=this.model);this.year&&(W.year=this.year);this.os&&(W.os=this.os);this.osVersion&&(W.osVersion=this.osVersion);this.chipset&&(W.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(W.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(W.mdxDialServerType=this.mdxDialServerType);W=new ZE(W);W.connected=this.connected;W.remoteControllerUrl=this.remoteControllerUrl;W.localChannelEncryptionKey=this.localChannelEncryptionKey;W.deviceContext=
this.deviceContext;W.castUserId=this.castUserId;return W};
ZE.prototype.equals=function(W){return W?this.id==W.id:!1};
var qB1=function(W,l){W.capabilities.clear();_.Ul(l.split(","),_.QW(_.MC.contains,zf1)).forEach(function(V){W.capabilities.add(V)})},hfw=function(W,l){W.compatibleSenderThemes.clear();
_.Ul(l.split(","),_.QW(_.MC.contains,Nyc)).forEach(function(V){W.compatibleSenderThemes.add(V)})},SBZ=function(W,l){W.experiments.clear();
l.split(",").forEach(function(V){W.experiments.add(V)})};var EI5=function(W,l){this.action=W;this.params=l||{}};_.Jj(x65,_.iI);_.t=x65.prototype;_.t.JSC$19736_onTick_=function(){this.JSC$19734_interval_=Math.min(3E5,this.JSC$19734_interval_*2);this.JSC$19736_listener_();this.nextTickTime_&&this.start()};
_.t.start=function(){var W=this.JSC$19734_interval_+15E3*Math.random(),l=this.delay_;l.isActive()||l.start(W);this.nextTickTime_=Date.now()+W};
_.t.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.t.isActive=function(){return this.delay_.isActive()};
_.t.reset=function(){this.delay_.stop();this.JSC$19734_interval_=5E3};_.Jj(Fp,Tt1);_.t=Fp.prototype;_.t.subscribe=function(W,l,V){return this.pubsub_.subscribe(W,l,V)};
_.t.unsubscribe=function(W,l,V){return this.pubsub_.unsubscribe(W,l,V)};
_.t.unsubscribeByKey=function(W){return this.pubsub_.unsubscribeByKey(W)};
_.t.publish=function(W,l){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.t.dispose=function(){this.JSC$19737_disposed_||(this.JSC$19737_disposed_=!0,_.Ls(this.pubsub_),this.disconnect(),_.Ls(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19737_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.jy({})})};
_.t.isDisposed=function(){return this.JSC$19737_disposed_};
_.t.connect=function(W,l,V){var f=this,r,R,y,P;return _.g(function(n){if(n.nextAddress==1)return _.Gu(n,2),f.useAsyncBrowserChannelHandler_?n.yield(f.connectPromise_,2):n.jumpTo(2);_.Ff(n);if(f.JSC$19737_disposed_||f.JSC$19737_channel_&&f.JSC$19737_channel_.getState()==2)return n.return();f.sCookie_="";f.reconnectTimer_.stop();f.connectionParams_=W||null;f.connectUi_=l||0;r=f.JSC$19737_pathPrefix_+"/test";R=f.JSC$19737_pathPrefix_+"/bind";y=new T8(V?V.firstTestResults:null,V?V.secondTestResults:null,
f.enableAsyncTest_);if(P=f.JSC$19737_channel_)P.handler_=null;y.handler_=f;f.JSC$19737_channel_=y;if(f.useAsyncBrowserChannelHandler_)return f.connectPromise_=$Dc(f).then(function(){return W4Y(f,r,R,P,V)}),n.return(f.connectPromise_.then(function(){f.connectPromise_=_.jy()}));
W4Y(f,r,R,P,V);return _.bM(n,0)})};
var W4Y=function(W,l,V,f,r){lX7(W);if(W.JSC$19737_channel_){var R=_.M4("ID_TOKEN"),y=W.JSC$19737_channel_.JSC$19689_extraHeaders_||{};R?y["x-youtube-identity-token"]=R:delete y["x-youtube-identity-token"];W.JSC$19737_channel_.JSC$19689_extraHeaders_=y}VK7(W);f?(f.getState(),W.JSC$19737_channel_.connect(l,V,W.defaultQueryParams_,f.sid_,f.JSC$19689_lastArrayId_)):r?W.JSC$19737_channel_.connect(l,V,W.defaultQueryParams_,r.sessionId,r.arrayId):W.JSC$19737_channel_.connect(l,V,W.defaultQueryParams_)};
Fp.prototype.disconnect=function(W){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.jy())}finally{this.disconnectUi_=W||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),lX7(this),this.JSC$19737_channel_&&(this.JSC$19737_channel_.getState()==3&&o01(this.JSC$19737_channel_),this.JSC$19737_channel_.disconnect()),this.disconnectUi_=0}};
Fp.prototype.sendMessage=function(W,l){var V=this,f;return _.g(function(r){switch(r.nextAddress){case 1:_.Gu(r,2);if(!V.useAsyncBrowserChannelHandler_){r.jumpTo(2);break}return r.yield(V.connectPromise_,2);case 2:_.Ff(r);if(V.JSC$19737_disposed_)return r.return();f={_sc:W};l&&_.MC.extend(f,l);if(V.reconnectTimer_.isActive()||(V.JSC$19737_channel_?V.JSC$19737_channel_.getState():0)==2){V.JSC$19737_pendingMessages_.push(f);r.jumpTo(6);break}if(!V.isChannelOpened()){r.jumpTo(6);break}_.Gu(r,8);if(!V.useAsyncBrowserChannelHandler_||
fXZ(V,W)){r.jumpTo(8);break}return r.yield($Dc(V),8);case 8:_.Ff(r,0,0,1);V.isChannelOpened()&&(fXZ(V,W)||VK7(V),lX7(V),poH(V.JSC$19737_channel_,f));_.bM(r,6,1);break;case 6:_.bM(r,0)}})};
var fXZ=function(W,l){return W.enableMdxAuthForConnectionOnly_?!0:W.disableMdxAuthForAdMessages_?Object.values(YBH).includes(l):W.disableMdxAuthForNonPlaybackMessages_?!Object.values(xDe).includes(l):W.disableMdxAuthForShortsMessages_?Object.values(ef1).includes(l):!1};
Fp.prototype.JSC$19696_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19737_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)rMc(this);else{var W=this.JSC$19737_pendingMessages_;this.JSC$19737_pendingMessages_=[];var l=W.length;VK7(this);Rn1(this,W,l);tK4(this)}else tK4(this)};
var rMc=function(W){var l,V;_.g(function(f){if(f.nextAddress==1)return _.Gu(f,2),f.yield($Dc(W),2);_.Ff(f);l=W.JSC$19737_pendingMessages_;W.JSC$19737_pendingMessages_=[];V=l.length;Rn1(W,l,V);tK4(W);return _.bM(f,0)})},Rn1=function(W,l,V){for(var f=0;f<V;++f)poH(W.JSC$19737_channel_,l[f]);
tK4(W)},tK4=function(W){W.publish("handlerOpened");
W.JSC$19737_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.t=Fp.prototype;_.t.JSC$19696_channelError=function(W){var l=W==2&&this.JSC$19737_channel_.JSC$19689_lastStatusCode_==401;W==4||l||this.reconnectTimer_.start();this.publish("handlerError",W,l);l=Object.keys(u52).find(function(V){return u52[V]===W});
this.JSC$19737_channelErrorCounter.increment("BROWSER_CHANNEL",l!=null?l:"UNKNOWN")};
_.t.JSC$19696_channelClosed=function(W,l){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(l)for(var V=l.length,f=0;f<V;++f){var r=l[f].map;r&&this.JSC$19737_pendingMessages_.push(r)}this.JSC$19737_channelClosedCounter.increment("BROWSER_CHANNEL");W&&this.pendingMapsOnClosedCounter.JSC$9927_streamzService.JSC$9782_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",W.length);l&&this.undeliveredMapsOnClosedCounter.JSC$9930_streamzService.JSC$9782_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
l.length)};
_.t.JSC$19696_channelSuccess=function(W,l){l!=null&&W!=null&&this.channelMessageSentCounter.increment()};
_.t.JSC$19696_getAdditionalParams=function(){var W={v:2};this.sCookie_&&(W.gsessionid=this.sCookie_);this.connectUi_!=0&&(W.ui=""+this.connectUi_);this.disconnectUi_!=0&&(W.ui=""+this.disconnectUi_);this.connectionParams_&&_.MC.extend(W,this.connectionParams_);return W};
_.t.JSC$19696_channelHandleArray=function(W){W[0]=="S"?this.sCookie_=W[1]:W[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19737_channel_.disconnect()):this.publish("handlerMessage",new EI5(W[0],W[1]));this.JSC$19737_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.t.isChannelOpened=function(){return!!this.JSC$19737_channel_&&this.JSC$19737_channel_.getState()==3};
var lX7=function(W){if(W.JSC$19737_channel_){var l=W.JSC$19737_getXsrfToken_(),V=W.JSC$19737_channel_.JSC$19689_extraHeaders_||{};l?V["x-youtube-lounge-xsrf-token"]=l:delete V["x-youtube-lounge-xsrf-token"];W.JSC$19737_channel_.JSC$19689_extraHeaders_=V}},$Dc=function(W){if(W.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.jy();
if(!W.enableCachedUpdateAuthorizationHeader_)return sRY(W);W.updateAuthorizationHeaderPromise_===null&&(W.updateAuthorizationHeaderPromise_=sRY(W));return W.updateAuthorizationHeaderPromise_},sRY=function(W){return _.xS(W.getAuthorizationHeader_().then(function(l){L4e(W,l)}).thenCatch(function(){}),function(){W.updateAuthorizationHeaderPromise_=null})},L4e=function(W,l){if(W.JSC$19737_channel_){var V=W.JSC$19737_channel_.JSC$19689_extraHeaders_||{};
l&&Object.keys(l).length>0?V=Object.assign({},V,l):delete V.Authorization;W.JSC$19737_channel_.JSC$19689_extraHeaders_=V}},VK7=function(W){W.getAuthorizationHeaderSync_&&!W.useAsyncBrowserChannelHandler_&&L4e(W,W.getAuthorizationHeaderSync_())};
_.t=Fp.prototype;_.t.setLoungeToken=function(W){(this.defaultQueryParams_.loungeIdToken=W)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19737_channel_){var l=this.JSC$19737_channel_.JSC$19689_extraHeaders_||{};W?l["X-YouTube-LoungeId-Token"]=W:delete l["X-YouTube-LoungeId-Token"];this.JSC$19737_channel_.JSC$19689_extraHeaders_=l}};
_.t.getDeviceId=function(){return this.defaultQueryParams_.id};
_.t.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.t.reconnect=function(){var W=this.reconnectTimer_;W.delay_.fire();W.start()};
_.t.safeReconnect_=function(){var W=this.JSC$19737_channel_,l=0;W.JSC$19689_backChannelRequest_&&l++;W.forwardChannelRequest_&&l++;l==0&&this.connect(this.connectionParams_,this.connectUi_)};var ia=function(W,l){var V=W.basePath;W.supportCors&&(V=W.scheme+"://"+W.domain+W.port+W.basePath);return _.$2(V+l,{})};
Gl.prototype.sendRequest=function(W,l,V,f,r,R,y){W={format:R?"RAW":"JSON",method:W,context:this,timeout:5E3,withCredentials:!!y,onSuccess:_.QW(this.JSC$19742_onSuccess_,f,!R),onError:_.QW(this.onError_,r),onTimeout:_.QW(this.JSC$19742_onTimeout_,r)};V&&(W.postParams=V,W.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.Dj(l,W)};
Gl.prototype.JSC$19742_onSuccess_=function(W,l,V,f){l?W(f):W({text:V.responseText})};
Gl.prototype.onError_=function(W,l){W(Error("Qk`"+l.status))};
Gl.prototype.JSC$19742_onTimeout_=function(W){W(Error("Rk"))};var pb=function(W,l){return!!l&&(W.id==l||W.uuid==l)},yMN=function(W){return{name:W.name,
screenId:W.id,loungeToken:W.token,dialId:W.uuid,screenIdType:W.idType}},gMs=function(W){return new ba(W)},Pyw=function(W){return Array.isArray(W)?_.Zl(W,gMs):[]},fNZ=function(W){if(!W)return"null";
var l=W.token?".."+W.token.slice(-6):"-",V=W.uuid?".."+W.uuid.slice(-6):"-";return'{name:"'+W.name+'",id:'+W.id.substr(0,6)+"..,token:"+(l+",uuid:"+V+",idType:"+W.idType+"}")},jJe=function(W){return Array.isArray(W)?"["+_.Zl(W,fNZ).join(",")+"]":"null"};var gJc="",IP=null;var Uaw=function(W,l){_.aj.call(this);var V=this;this.handler=W();this.handler.subscribe("handlerOpened",this.JSC$19749_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(f,r){V.onError(r)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=l};
_.v(Uaw,_.aj);_.t=Uaw.prototype;_.t.connect=function(W,l,V){this.handler.connect(W,l,V)};
_.t.disconnect=function(W){this.handler.disconnect(W)};
_.t.reconnect=function(){this.handler.reconnect()};
_.t.getDeviceId=function(){return this.handler.getDeviceId()};
_.t.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.t.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.t.JSC$19749_onOpened=function(){this.dispatchEvent("channelOpened");var W=this.handler,l=this.currentScreenId;_.N5("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!W.JSC$19737_channel_.useChunked_,sessionId:W.JSC$19737_channel_.sid_,arrayId:W.JSC$19737_channel_.JSC$19689_lastArrayId_});_.N5("yt-remote-session-screen-id",l);W=rGZ();l=RW7();_.Oz(W,l)||W.push(l);yGw(W);LKY()};
_.t.onClosed=function(){this.dispatchEvent("channelClosed")};
_.t.onMessage=function(W){this.dispatchEvent(new Of2(W))};
_.t.onError=function(W){this.dispatchEvent(new aP1(W?1:0))};
_.t.sendMessage=function(W,l){this.handler.sendMessage(W,l)};
_.t.setLoungeToken=function(W){this.handler.setLoungeToken(W)};
_.t.dispose=function(){this.handler.dispose()};var Da7=function(W,l,V){var f=this;V=V===void 0?function(){return""}:V;
var r=r===void 0?new xN2:r;var R=R===void 0?new _.uP:R;this.pathPrefix=W;this.defaultQueryParams=l;this.getXsrfToken=V;this.JSC$19752_pubsub=R;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new x65(function(){var y;((y=f.channel)==null?void 0:Hds((new hi7(y,y.JSC$19660_channel_)).JSC$19670_channel_.forwardChannelRequestPool_))===0&&f.connect(f.connectionParams,f.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19752_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19752_channelOpenedCounter=new eoc;this.JSC$19752_channelClosedCounter=new qDN;this.JSC$19752_channelMessageReceivedCounter=new SDN;this.JSC$19752_channelErrorCounter=new E7w};
Da7.prototype.connect=function(W,l){W=W===void 0?{}:W;l=l===void 0?0:l;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=W,this.connectUi=l,nM5(this),(W=_.M4("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=W: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 pw(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,Cye(this))};
var Cye=function(W){_.YJ(W.channel,"w",function(){W.channelState=3;W.reconnectTimer.reset();W.connectionParams=null;W.connectUi=0;for(var l=_.L(W.nonAckedMessagesOnChannelClosed),V=l.next();!V.done;V=l.next())V=V.value,W.channel&&W.channel.send(V);W.nonAckedMessagesOnChannelClosed=[];W.publish("webChannelOpened");W.JSC$19752_channelOpenedCounter.increment("WEB_CHANNEL")});
_.YJ(W.channel,"x",function(){W.channelState=0;W.reconnectTimer.isActive()||W.publish("webChannelClosed");var l,V=(l=W.channel)==null?void 0:S21(new hi7(l,l.JSC$19660_channel_));V&&(W.nonAckedMessagesOnChannelClosed=[].concat(_.QK(V)));W.JSC$19752_channelClosedCounter.increment("WEB_CHANNEL")});
_.YJ(W.channel,"z",function(l){var V=l.data;V[0]==="gracefulReconnect"?(W.reconnectTimer.start(),W.channel&&W.channel.close()):W.publish("webChannelMessage",new EI5(V[0],V[1]));W.lastStatusCode=l.statusCode;W.JSC$19752_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.YJ(W.channel,"y",function(){W.lastStatusCode===401||W.reconnectTimer.start();W.publish("webChannelError");W.JSC$19752_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.t=Da7.prototype;_.t.disconnect=function(W){this.disconnectUi=W===void 0?0:W;this.reconnectTimer.stop();nM5(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.t.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.t.reconnect=function(){var W=this.reconnectTimer;W.delay_.fire();W.start()};
_.t.sendMessage=function(W,l){this.channel&&(nM5(this),W=Object.assign({},{_sc:W},l),this.channel.send(W))};
_.t.setLoungeToken=function(W){W||this.reconnectTimer.stop();W?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=W:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var nM5=function(W){var l=W.getXsrfToken();l?W.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=l:delete W.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.t=Da7.prototype;_.t.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.t.publish=function(W){return this.JSC$19752_pubsub.publish.apply(this.JSC$19752_pubsub,[W].concat(_.QK(_.xk.apply(1,arguments))))};
_.t.subscribe=function(W,l,V){return this.JSC$19752_pubsub.subscribe(W,l,V)};
_.t.unsubscribe=function(W,l,V){return this.JSC$19752_pubsub.unsubscribe(W,l,V)};
_.t.unsubscribeByKey=function(W){return this.JSC$19752_pubsub.unsubscribeByKey(W)};
_.t.dispose=function(){this.JSC$19752_disposed||(this.JSC$19752_disposed=!0,_.Ls(this.JSC$19752_pubsub),this.disconnect(),_.Ls(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.t.isDisposed=function(){return this.JSC$19752_disposed};var JGs=function(W){_.aj.call(this);this.webChannelService=W();this.webChannelService.subscribe("webChannelOpened",this.JSC$19760_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.v(JGs,_.aj);_.t=JGs.prototype;_.t.connect=function(W,l){this.webChannelService.connect(W,l)};
_.t.disconnect=function(W){this.webChannelService.disconnect(W)};
_.t.reconnect=function(){this.webChannelService.reconnect()};
_.t.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.t.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.t.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.t.JSC$19760_onOpened=function(){this.dispatchEvent("channelOpened")};
_.t.onClosed=function(){this.dispatchEvent("channelClosed")};
_.t.onMessage=function(W){this.dispatchEvent(new Of2(W))};
_.t.onError=function(){this.dispatchEvent(new aP1(this.webChannelService.lastStatusCode===401?1:0))};
_.t.sendMessage=function(W,l){this.webChannelService.sendMessage(W,l)};
_.t.setLoungeToken=function(W){this.webChannelService.setLoungeToken(W)};
_.t.dispose=function(){this.webChannelService.dispose()};var oJY=Date.now(),mC=null,bk1=Array(50),wG=-1,pEw=!1;_.Jj(Ac,_.aE);Ac.prototype.getScreens=function(){return this.screens};
Ac.prototype.contains=function(W){return!!fd1(this.screens,W)};
Ac.prototype.get=function(W){return W?oP(this.screens,W):null};
var cMc=function(W,l){var V=W.get(l.uuid)||W.get(l.id);if(V)return W=V.name,V.id=l.id||V.id,V.name=l.name,V.token=l.token,V.uuid=l.uuid||V.uuid,V.name!=W;W.screens.push(l);return!0},BxY=function(W,l){var V=W.screens.length!=l.length;
W.screens=_.Ul(W.screens,function(R){return!!fd1(l,R)});
for(var f=l.length,r=0;r<f;r++)V=cMc(W,l[r])||V;return V},dz1=function(W,l){var V=W.screens.length;
W.screens=_.Ul(W.screens,function(f){return!(f||l?!f!=!l?0:f.id==l.id:1)});
return W.screens.length<V};
Ac.prototype.info=function(W){Xp(this.JSC$19761_logName_,W)};var JMZ=function(W,l,V,f,r){_.aE.call(this);this.JSC$19764_http_=W;this.pairingCode_=l;this.deviceId_=V;this.friendlyName_=f;this.enableShortLivedLoungeToken_=r;this.pollIndex_=0;this.JSC$19764_xhr_=null;this.JSC$19764_timer_=NaN};
_.v(JMZ,_.aE);_.t=JMZ.prototype;_.t.start=function(){!this.JSC$19764_xhr_&&isNaN(this.JSC$19764_timer_)&&this.poll_()};
_.t.stop=function(){this.JSC$19764_xhr_&&(this.JSC$19764_xhr_.abort(),this.JSC$19764_xhr_=null);isNaN(this.JSC$19764_timer_)||(_.dU(this.JSC$19764_timer_),this.JSC$19764_timer_=NaN)};
_.t.disposeInternal=function(){this.stop();_.aE.prototype.disposeInternal.call(this)};
_.t.poll_=function(){this.JSC$19764_timer_=NaN;this.JSC$19764_xhr_=_.Dj(ia(this.JSC$19764_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.ml)(this.JSC$19766_onSuccess_,this),onError:(0,_.ml)(this.onError_,this),onTimeout:(0,_.ml)(this.JSC$19766_onTimeout_,this)})};
_.t.JSC$19766_onSuccess_=function(W,l){this.JSC$19764_xhr_=null;W=l.screen||{};W.dialId=this.deviceId_;W.name=this.friendlyName_;l=-1;this.enableShortLivedLoungeToken_&&W.shortLivedLoungeToken&&W.shortLivedLoungeToken.value&&W.shortLivedLoungeToken.refreshIntervalMs&&(W.screenIdType="shortLived",W.loungeToken=W.shortLivedLoungeToken.value,l=W.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new ba(W),l)};
_.t.onError_=function(W){this.JSC$19764_xhr_=null;W.status&&W.status==404?this.pollIndex_>=Dzc.length?this.publish("pairingFailed",Error("Sk")):(W=Dzc[this.pollIndex_],this.JSC$19764_timer_=_.cA((0,_.ml)(this.poll_,this),W),this.pollIndex_++):this.publish("pairingFailed",Error("Tk`"+W.status))};
_.t.JSC$19766_onTimeout_=function(){this.JSC$19764_xhr_=null;this.publish("pairingFailed",Error("Uk"))};
var Dzc=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Jj(MW,Ac);_.t=MW.prototype;_.t.start=function(){Qf(this)&&this.publish("screenChange");!_.YC("yt-remote-lounge-token-expiration")&&Uzs(this);_.dU(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.cA((0,_.ml)(this.start,this),1E4)};
_.t.add=function(W,l){Qf(this);cMc(this,W);uK1(this,!1);this.publish("screenChange");l(W);W.token||Uzs(this)};
_.t.remove=function(W,l){var V=Qf(this);dz1(this,W)&&(uK1(this,!1),V=!0);l(W);V&&this.publish("screenChange")};
_.t.updateName=function(W,l,V,f){var r=Qf(this),R=this.get(W.id);R?(R.name!=l&&(R.name=l,uK1(this,!1),r=!0),V(W)):f(Error("Vk"));r&&this.publish("screenChange")};
_.t.disposeInternal=function(){_.dU(this.loungeTokenRefreshTimer_);MW.superClass_.disposeInternal.call(this)};
var Uzs=function(W){if(W.screens.length){var l=_.Zl(W.screens,function(f){return f.id}),V=ia(W.JSC$19768_http_,"/pairing/get_lounge_token_batch");
W.JSC$19768_http_.sendRequest("POST",V,{screen_ids:l.join(",")},(0,_.ml)(W.handleLoungeTokens_,W),(0,_.ml)(W.handleLoungeTokenError_,W))}};
MW.prototype.handleLoungeTokens_=function(W){Qf(this);var l=this.screens.length;W=W&&W.screens||[];for(var V=W.length,f=0;f<V;++f){var r=W[f],R=this.get(r.screenId);R&&(R.token=r.loungeToken,--l)}uK1(this,!l);l&&Xp(this.JSC$19761_logName_,"Missed "+l+" lounge tokens.")};
MW.prototype.handleLoungeTokenError_=function(W){Xp(this.JSC$19761_logName_,"Requesting lounge tokens failed: "+W)};
var Qf=function(W){if(_.U("deprecate_pair_servlet_enabled"))return BxY(W,[]);var l=Pyw(nJ1());l=_.Ul(l,function(V){return!V.uuid});
return BxY(W,l)},uK1=function(W,l){cG4(_.Zl(W.screens,yMN));
l&&CD7()};var On=function(W,l){_.aE.call(this);this.getScreensToCheck_=l;l=(l=_.YC("yt-remote-online-screen-ids")||"")?l.split(","):[];for(var V={},f=this.getScreensToCheck_(),r=f.length,R=0;R<r;++R){var y=f[R].id;V[y]=_.Oz(l,y)}this.screenIdSet_=V;this.JSC$19771_http_=W;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;kJH("Initialized with "+(0,_.hS)(this.screenIdSet_))};
_.v(On,_.aE);On.prototype.isOnline=function(W){return!!this.screenIdSet_[W]};
On.prototype.start=function(){var W=parseInt(_.YC("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.d5()-144E5<W?0:W)?vMN(this):(this.fastCheckEndTime_=_.d5()+3E5,_.N5("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
On.prototype.isEmpty=function(){return _.MC.isEmpty(this.screenIdSet_)};
On.prototype.update=function(){kJH("Updating availability on schedule.");var W=this.getScreensToCheck_(),l=_.MC.filter(this.screenIdSet_,function(V,f){return V&&!!oP(W,f)},this);
HZw(this,l)};
var K41=function(W,l,V){var f=ia(W.JSC$19771_http_,"/pairing/get_screen_availability");W.JSC$19771_http_.sendRequest("POST",f,{lounge_token:l.token},(0,_.ml)(function(r){r=r.screens||[];for(var R=r.length,y=0;y<R;++y)if(r[y].loungeToken==l.token){V(r[y].status=="online");return}V(!1)},W),(0,_.ml)(function(){V(!1)},W))};
On.prototype.disposeInternal=function(){_.dU(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.aE.prototype.disposeInternal.call(this)};
var HZw=function(W,l){a:if(_.MC.getCount(l)!=_.MC.getCount(W.screenIdSet_))var V=!1;else{V=_.MC.getKeys(l);for(var f=V.length,r=0;r<f;++r)if(!W.screenIdSet_[V[r]]){V=!1;break a}V=!0}V||(kJH("Updated online screens: "+(0,_.hS)(W.screenIdSet_)),W.screenIdSet_=l,W.publish("screenChange"));F41(W)},vMN=function(W){isNaN(W.refreshTimer_)||_.dU(W.refreshTimer_);
W.refreshTimer_=_.cA((0,_.ml)(W.requestScreenAvailability_,W),W.fastCheckEndTime_>0&&W.fastCheckEndTime_<_.d5()?2E4:1E4)};
On.prototype.requestScreenAvailability_=function(){_.dU(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var W=GJH(this);if(_.MC.getCount(W)){var l=ia(this.JSC$19771_http_,"/pairing/get_screen_availability"),V={lounge_token:_.MC.getKeys(W).join(",")};this.currentRequest_=this.JSC$19771_http_.sendRequest("POST",l,V,(0,_.ml)(this.onScreenAvailability_,this,W),(0,_.ml)(this.onScreenAvailabilityError_,this))}else HZw(this,{}),vMN(this)};
On.prototype.onScreenAvailability_=function(W,l){this.currentRequest_=null;var V=_.MC.getKeys(GJH(this));if(_.hx(V,_.MC.getKeys(W))){l=l.screens||[];V={};for(var f=l.length,r=0;r<f;++r)V[W[l[r].loungeToken]]=l[r].status=="online";HZw(this,V);vMN(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
On.prototype.onScreenAvailabilityError_=function(W){this.warn_("Screen availability failed: "+W);this.currentRequest_=null;vMN(this)};
var kJH=function(W){Xp("OnlineScreenService",W)};
On.prototype.warn_=function(W){Xp("OnlineScreenService",W)};
var GJH=function(W){var l={};_.q4(W.getScreensToCheck_(),function(V){V.token?l[V.token]=V.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return l},F41=function(W){W=_.MC.getKeys(_.MC.filter(W.screenIdSet_,function(l){return l}));
W.sort(_.bqv);W.length?_.N5("yt-remote-online-screen-ids",W.join(","),60):_.xC("yt-remote-online-screen-ids")};_.Jj(Ze,Ac);_.t=Ze.prototype;_.t.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.t.add=function(W,l,V){this.localScreenService_.add(W,l,V)};
_.t.remove=function(W,l,V){this.localScreenService_.remove(W,l,V);this.onlineScreenService_.update()};
_.t.updateName=function(W,l,V,f){this.localScreenService_.contains(W)?this.localScreenService_.updateName(W,l,V,f):(W="Updating name of unknown screen: "+W.name,Xp(this.JSC$19761_logName_,W),f(Error(W)))};
_.t.getScreens=function(W){return W?this.screens:FA5(this.screens,_.Ul(this.automaticScreens_,function(l){return!this.contains(l)},this))};
_.t.JSC$19776_getOnlineScreens=function(){return _.Ul(this.getScreens(!0),function(W){return this.onlineScreenService_.isOnline(W.id)},this)};
var pZ5=function(W,l,V,f,r,R){W.info("getAutomaticScreenByIds "+V+" / "+l);V||(V=W.deviceToScreenId_[l]);var y=W.getScreens(),P=V?oP(y,V):null;V&&(W.disableAutomaticScreenCache_||P)||(P=oP(y,l));if(P){P.uuid=l;var n=ae(W,P);K41(W.onlineScreenService_,n,function(B){r(B?n:null)})}else V?bZ5(W,V,(0,_.ml)(function(B){var d=ae(this,new ba({name:f,
screenId:V,loungeToken:B,dialId:l||""}));K41(this.onlineScreenService_,d,function(J){r(J?d:null)})},W),R):r(null)};
Ze.prototype.JSC$19776_getScreenByPollingPairingCode=function(W,l,V,f,r,R){var y=this;this.info("getDialScreenByPairingCode "+W+" / "+l);var P=new JMZ(this.JSC$19774_http_,W,l,V,f);P.subscribe("pairingComplete",function(n,B){_.Ls(P);r(ae(y,n),B)});
P.subscribe("pairingFailed",function(n){_.Ls(P);R(n)});
P.start();return(0,_.ml)(P.stop,P)};
var oMw=function(W,l){for(var V=W.screens.length,f=0;f<V;++f)if(W.screens[f].name==l)return W.screens[f];return null};
Ze.prototype.JSC$19776_getScreenByPairingCode=function(W,l,V,f){_.Dj(ia(this.JSC$19774_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:W},timeout:5E3,onSuccess:(0,_.ml)(function(r,R){r=new ba(R.screen||{});if(!r.name||oMw(this,r.name)){a:{R=r.name;for(var y=2,P=l(R,y);oMw(this,P);){y++;if(y>20)break a;P=l(R,y)}R=P}r.name=R}V(ae(this,r))},this),
onError:(0,_.ml)(function(r){f(Error("Wk`"+r.status))},this),
onTimeout:(0,_.ml)(function(){f(Error("Xk"))},this)})};
var jRe=function(W,l,V){K41(W.onlineScreenService_,l,V)};
Ze.prototype.disposeInternal=function(){_.Ls(this.localScreenService_);_.Ls(this.onlineScreenService_);Ze.superClass_.disposeInternal.call(this)};
var bZ5=function(W,l,V,f){W.info("requestLoungeToken_ for "+l);var r={postParams:{screen_ids:l},method:"POST",context:W,onSuccess:function(R,y){R=y&&y.screens||[];R[0]&&R[0].screenId==l?V(R[0].loungeToken):f(Error("Yk"))},
onError:function(){f(Error("Zk"))}};
_.Dj(ia(W.JSC$19774_http_,"/pairing/get_lounge_token_batch"),r)},IXc=function(W){W.screens=W.localScreenService_.getScreens();
for(var l=_.MC.transpose(W.deviceToScreenId_),V=W.screens.length,f=0;f<V;++f){var r=W.screens[f];r.uuid=l[r.id]||""}W.info("Updated manual screens: "+jJe(W.screens))};
Ze.prototype.handleScreenChange_=function(){IXc(this);this.publish("screenChange");this.onlineScreenService_.update()};
var IdZ=function(W){iZs(W);W.localScreenService_=new MW(W.JSC$19774_http_);W.localScreenService_.subscribe("screenChange",(0,_.ml)(W.handleScreenChange_,W));IXc(W);W.disableAutomaticScreenCache_||(W.automaticScreens_=Pyw(_.YC("yt-remote-automatic-screen-cache")||[]));iZs(W);W.info("Initializing automatic screens: "+jJe(W.automaticScreens_));W.onlineScreenService_=new On(W.JSC$19774_http_,(0,_.ml)(W.getScreens,W,!0));W.onlineScreenService_.subscribe("screenChange",(0,_.ml)(function(){this.publish("onlineScreenChange")},
W))},ae=function(W,l){var V=W.get(l.id);
V?(V.uuid=l.uuid,l=V):((V=oP(W.automaticScreens_,l.uuid))?(V.id=l.id,V.token=l.token,l=V):W.automaticScreens_.push(l),W.disableAutomaticScreenCache_||mz1(W));iZs(W);W.deviceToScreenId_[l.uuid]=l.id;_.N5("yt-remote-device-id-map",W.deviceToScreenId_,31536E3);return l},mz1=function(W){W=_.Ul(W.automaticScreens_,function(l){return l.idType!="shortLived"});
_.N5("yt-remote-automatic-screen-cache",_.Zl(W,yMN))},iZs=function(W){W.deviceToScreenId_=_.YC("yt-remote-device-id-map")||{}};
Ze.prototype.dispose=Ze.prototype.dispose;_.Jj(Ok,_.aE);var z8=function(W,l){W.screen_=l;W.publish("sessionScreen",W.screen_)},XZs=function(W,l){W.screen_&&(W.screen_.token=l,ae(W.JSC$19778_screenService_,W.screen_));
W.publish("sessionScreen",W.screen_)};
Ok.prototype.onSessionStopped=function(W){this.isDisposed()||(W&&(N8(this,""+W),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
Ok.prototype.info=function(W){Xp(this.JSC$19778_logName_,W)};
var N8=function(W,l){Xp(W.JSC$19778_logName_,l)};
Ok.prototype.JSC$19780_getCastSession=function(){return null};
Ok.prototype.setDisplayStatus=function(W){var l=this.receiver_;W?(l.displayStatus=new chrome.cast.ReceiverDisplayStatus(W,[]),l.displayStatus.showStop=!0):l.displayStatus=null;chrome.cast.setReceiverDisplayStatus(l,(0,_.ml)(function(){this.info("Updated receiver status for "+l.friendlyName+": "+W)},this),(0,_.ml)(function(){N8(this,"Failed to update receiver status for: "+l.friendlyName)},this))};
Ok.prototype.disposeInternal=function(){this.setDisplayStatus("");Ok.superClass_.disposeInternal.call(this)};var Y5=function(W,l,V){Ok.call(this,W,l,"CastSession");var f=this;this.config_=V;this.JSC$19783_session_=null;this.JSC$19783_boundSessionUpdate_=(0,_.ml)(this.JSC$19785_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.ml)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.cA(function(){Tx2(f,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19783_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19783_isInitLoungeToken_=!1;this.JSC$19783_lastLoungeTokenRefreshError_="unknown"};
_.v(Y5,Ok);_.t=Y5.prototype;
_.t.setCastSession=function(W){if(this.JSC$19783_session_){if(this.JSC$19783_session_==W)return;N8(this,"Overriding cast session with new session object");wZw(this);this.JSC$19783_isInitLoungeToken_=!1;this.JSC$19783_lastLoungeTokenRefreshError_="unknown";this.JSC$19783_session_.removeUpdateListener(this.JSC$19783_boundSessionUpdate_);this.JSC$19783_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19783_session_=W;this.JSC$19783_session_.addUpdateListener(this.JSC$19783_boundSessionUpdate_);this.JSC$19783_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);AMs(this,"getMdxSessionStatus")};
_.t.launchWithParams=function(W){this.info("launchWithParams no-op for Cast: "+(0,_.hS)(W))};
_.t.stop=function(){if(this.JSC$19783_session_)this.JSC$19783_session_.stop((0,_.ml)(function(){this.onSessionStopped()},this),(0,_.ml)(function(){this.onSessionStopped(Error("$k"))},this));
else this.onSessionStopped(Error("al"))};
_.t.setDisplayStatus=function(){};
_.t.disposeInternal=function(){this.info("disposeInternal");wZw(this);this.JSC$19783_session_&&(this.JSC$19783_session_.removeUpdateListener(this.JSC$19783_boundSessionUpdate_),this.JSC$19783_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19783_session_=null;Ok.prototype.disposeInternal.call(this)};
var MKL=function(W,l){_.dU(W.getLoungeTokenTimeoutKey_);W.getLoungeTokenTimeoutKey_=0;l==0?QR4(W):W.getLoungeTokenTimeoutKey_=_.cA(function(){QR4(W)},l)},QR4=function(W){AMs(W,"getLoungeToken");
_.dU(W.onLoungeTokenTimeoutKey_);W.onLoungeTokenTimeoutKey_=_.cA(function(){ZZ7(W,null)},3E4)},AMs=function(W,l){W.info("sendYoutubeMessage_: "+l+" "+(0,_.hS)(void 0));
var V={};V.type=l;W.JSC$19783_session_?W.JSC$19783_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",V,function(){},(0,_.ml)(function(){N8(this,"Failed to send message: "+l+".")},W)):N8(W,"Sending yt message without session: "+(0,_.hS)(V))};
Y5.prototype.onYoutubeMessage_=function(W,l){if(!this.isDisposed())if(l)if(l=(0,_.qc)(l),_.ev(l))switch(W=""+l.type,l=l.data||{},this.info("onYoutubeMessage_: "+W+" "+(0,_.hS)(l)),W){case "mdxSessionStatus":Tx2(this,l);break;case "loungeToken":ZZ7(this,l);break;default:N8(this,"Unknown youtube message: "+W)}else N8(this,"Unable to parse message.");else N8(this,"No data in message.")};
var OZL=function(W,l){if(l)W.info("onConnectedScreenId_: Received screenId: "+l),W.screen_&&W.screen_.id==l||W.getScreen_(l,function(V){z8(W,V)},function(){return W.onSessionStopped()},5);
else W.onSessionStopped(Error("bl"))},zn2=function(W,l,V){W.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(l));
var f=new ba(l);aXw(W,f,function(r){r?(W.JSC$19783_isInitLoungeToken_=!0,ae(W.JSC$19778_screenService_,f),z8(W,f),W.JSC$19783_lastLoungeTokenRefreshError_="unknown",MKL(W,V)):(_.OJ(Error("cl`"+JSON.stringify(l))),W.onSessionStopped())},5)},Tx2=function(W,l){_.dU(W.sessionStatusTimeoutKey_);
W.sessionStatusTimeoutKey_=0;if(l)W.config_.enableCastLoungeToken&&l.loungeToken?l.deviceId?W.screen_&&W.screen_.uuid==l.deviceId||(l.loungeTokenRefreshIntervalMs?zn2(W,{name:W.receiver_.friendlyName,screenId:l.screenId,loungeToken:l.loungeToken,dialId:l.deviceId,screenIdType:"shortLived"},l.loungeTokenRefreshIntervalMs):(_.OJ(Error("el`"+JSON.stringify(l))),OZL(W,l.screenId))):(_.OJ(Error("dl`"+JSON.stringify(l))),OZL(W,l.screenId)):OZL(W,l.screenId);else W.onSessionStopped(Error("bl"))},ZZ7=function(W,
l){_.dU(W.onLoungeTokenTimeoutKey_);
W.onLoungeTokenTimeoutKey_=0;var V=null;if(l)if(l.loungeToken){var f;((f=W.screen_)==null?void 0:f.token)==l.loungeToken&&(V="staleLoungeToken")}else V="missingLoungeToken";else V="noLoungeTokenResponse";V?(W.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(l)+", error: "+V)),W.JSC$19783_lastLoungeTokenRefreshError_=V,MKL(W,3E4)):(XZs(W,l.loungeToken),W.JSC$19783_isInitLoungeToken_=!1,W.JSC$19783_lastLoungeTokenRefreshError_="unknown",MKL(W,l.loungeTokenRefreshIntervalMs))};
Y5.prototype.getScreen_=function(W,l,V,f){_.dU(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;pZ5(this.JSC$19778_screenService_,this.receiver_.label,W,this.receiver_.friendlyName,(0,_.ml)(function(r){r?l(r):f>=0?(N8(this,"Screen "+W+" appears to be offline. "+f+" retries left."),this.getScreenTimeoutKey_=_.cA((0,_.ml)(this.getScreen_,this,W,l,V,f-1),300)):V(Error("fl"))},this),V)};
var aXw=function(W,l,V,f){_.dU(W.JSC$19783_checkScreenAvailabilityTimeoutKey_);W.JSC$19783_checkScreenAvailabilityTimeoutKey_=0;jRe(W.JSC$19778_screenService_,l,function(r){r||f<0?V(r):W.JSC$19783_checkScreenAvailabilityTimeoutKey_=_.cA(function(){aXw(W,l,V,f-1)},300)})};
Y5.prototype.JSC$19780_getCastSession=function(){return this.JSC$19783_session_};
Y5.prototype.JSC$19785_onSessionUpdate_=function(W){this.isDisposed()||W||(N8(this,"Cast session died."),this.onSessionStopped())};
var wZw=function(W){_.dU(W.getScreenTimeoutKey_);W.getScreenTimeoutKey_=0;_.dU(W.JSC$19783_checkScreenAvailabilityTimeoutKey_);W.JSC$19783_checkScreenAvailabilityTimeoutKey_=0;_.dU(W.sessionStatusTimeoutKey_);W.sessionStatusTimeoutKey_=0;_.dU(W.onLoungeTokenTimeoutKey_);W.onLoungeTokenTimeoutKey_=0;_.dU(W.getLoungeTokenTimeoutKey_);W.getLoungeTokenTimeoutKey_=0};var x5=function(W,l,V,f){Ok.call(this,W,l,"DialSession");this.config_=f;this.JSC$19787_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19787_theme_=V;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19787_deferredLaunchDeadlineTimer_=NaN;this.JSC$19787_boundSessionUpdate_=(0,_.ml)(this.JSC$19789_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19787_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19787_isInitLoungeToken_=!1;this.JSC$19787_lastLoungeTokenRefreshError_="unknown"};
_.v(x5,Ok);x5.prototype.setCastSession=function(W){this.JSC$19787_session_=W;this.JSC$19787_session_.addUpdateListener(this.JSC$19787_boundSessionUpdate_)};
x5.prototype.launchWithParams=function(W){this.connectData_=W;this.deferredLaunch_()};
x5.prototype.stop=function(){Nxs(this);if(this.JSC$19787_session_)this.JSC$19787_session_.stop((0,_.ml)(this.onSessionStopped,this,null),(0,_.ml)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
x5.prototype.disposeInternal=function(){Nxs(this);this.JSC$19787_session_&&this.JSC$19787_session_.removeUpdateListener(this.JSC$19787_boundSessionUpdate_);this.JSC$19787_session_=null;Ok.prototype.disposeInternal.call(this)};
var YhH=function(W){var l;return!!(W.config_.enableDialLoungeToken&&((l=W.JSC$19787_session_)==null?0:l.getDialAppInfo))},xz7=function(W){W.cancelPolling_=W.JSC$19778_screenService_.JSC$19776_getScreenByPollingPairingCode(W.reversePairingCode_,W.receiver_.label,W.receiver_.friendlyName,YhH(W),function(l,V){W.cancelPolling_=function(){};
W.JSC$19787_isInitLoungeToken_=!0;z8(W,l);l.idType=="shortLived"&&V>0&&eH(W,V)},function(l){W.cancelPolling_=function(){};
W.onSessionStopped(l)})};
x5.prototype.JSC$19789_onSessionUpdate_=function(W){this.isDisposed()||W||(N8(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var en1=function(W){var l={};l.pairingCode=W.reversePairingCode_;l.theme=W.JSC$19787_theme_;da2()&&(l.env_useStageMdx=1);return _.U6(l)},qhN=function(W){return new Promise(function(l){W.reversePairingCode_=ld1();
if(W.connectData_){var V=new chrome.cast.DialLaunchResponse(!0,en1(W));l(V);xz7(W)}else W.deferredLaunch_=function(){_.dU(W.JSC$19787_deferredLaunchDeadlineTimer_);W.deferredLaunch_=function(){};
W.JSC$19787_deferredLaunchDeadlineTimer_=NaN;var f=new chrome.cast.DialLaunchResponse(!0,en1(W));l(f);xz7(W)},W.JSC$19787_deferredLaunchDeadlineTimer_=_.cA(function(){W.deferredLaunch_()},100)})},ShY=function(W,l,V){W.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(l));
var f=new ba(l);return(new Promise(function(r){hnY(W,f,function(R){R?(W.JSC$19787_isInitLoungeToken_=!0,ae(W.JSC$19778_screenService_,f),z8(W,f),eH(W,V)):_.OJ(Error("hl`"+JSON.stringify(l)));r(R)},5)})).then(function(r){return r?new chrome.cast.DialLaunchResponse(!1):qhN(W)})},EM4=function(W,l){var V=W.launchData_.receiver.label,f=W.receiver_.friendlyName;
return(new Promise(function(r){pZ5(W.JSC$19778_screenService_,V,l,f,function(R){R&&R.token&&z8(W,R);r(R)},function(R){N8(W,"Failed to get DIAL screen: "+R);
r(null)})})).then(function(r){return r&&r.token?new chrome.cast.DialLaunchResponse(!1):qhN(W)})},hnY=function(W,l,V,f){_.dU(W.JSC$19787_checkScreenAvailabilityTimeoutKey_);
W.JSC$19787_checkScreenAvailabilityTimeoutKey_=0;jRe(W.JSC$19778_screenService_,l,function(r){r||f<0?V(r):W.JSC$19787_checkScreenAvailabilityTimeoutKey_=_.cA(function(){hnY(W,l,V,f-1)},300)})},eH=function(W,l){W.info("getDialAppInfoWithTimeout_ "+l);
YhH(W)&&(_.dU(W.getDialAppInfoTimeoutKey_),W.getDialAppInfoTimeoutKey_=0,l==0?$zZ(W):W.getDialAppInfoTimeoutKey_=_.cA(function(){$zZ(W)},l))},$zZ=function(W){YhH(W)&&W.JSC$19787_session_.getDialAppInfo(function(l){W.info("getDialAppInfo dialLaunchData: "+JSON.stringify(l));
l=l.extraData||{};var V=null;if(l.loungeToken){var f;((f=W.screen_)==null?void 0:f.token)==l.loungeToken&&(V="staleLoungeToken")}else V="missingLoungeToken";V?(W.JSC$19787_lastLoungeTokenRefreshError_=V,eH(W,3E4)):(W.JSC$19787_isInitLoungeToken_=!1,W.JSC$19787_lastLoungeTokenRefreshError_="unknown",XZs(W,l.loungeToken),eH(W,l.loungeTokenRefreshIntervalMs))},function(l){W.info("getDialAppInfo error: "+l);
W.JSC$19787_lastLoungeTokenRefreshError_="noLoungeTokenResponse";eH(W,3E4)})},Nxs=function(W){_.dU(W.JSC$19787_checkScreenAvailabilityTimeoutKey_);
W.JSC$19787_checkScreenAvailabilityTimeoutKey_=0;_.dU(W.getDialAppInfoTimeoutKey_);W.getDialAppInfoTimeoutKey_=0;W.cancelPolling_();W.cancelPolling_=function(){};
_.dU(W.JSC$19787_deferredLaunchDeadlineTimer_)};var q8=function(W,l){Ok.call(this,W,l,"ManualSession");this.JSC$19791_deferredLaunchDeadlineTimer_=_.cA((0,_.ml)(this.launchWithParams,this,null),150)};
_.v(q8,Ok);q8.prototype.stop=function(){this.onSessionStopped()};
q8.prototype.setCastSession=function(){};
q8.prototype.launchWithParams=function(){_.dU(this.JSC$19791_deferredLaunchDeadlineTimer_);this.JSC$19791_deferredLaunchDeadlineTimer_=NaN;var W=oP(this.JSC$19778_screenService_.getScreens(),this.receiver_.label);if(W)z8(this,W);else this.onSessionStopped(Error("il"))};
q8.prototype.disposeInternal=function(){_.dU(this.JSC$19791_deferredLaunchDeadlineTimer_);this.JSC$19791_deferredLaunchDeadlineTimer_=NaN;Ok.prototype.disposeInternal.call(this)};var Yo=function(W,l){_.aE.call(this);this.config_=l;this.JSC$19794_screenService_=W;this.JSC$19794_appId_=l.appId||"233637DE";this.JSC$19794_theme_=l.theme||"cl";this.disableDial_=l.disableCastApi||!1;this.forceMirroring_=l.forceMirroring||!1;this.JSC$19794_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.ml)(this.onReceiverAction_,this)};
_.v(Yo,_.aE);
Yo.prototype.init=function(W,l){chrome.cast.timeout.requestSession=3E4;var V=new chrome.cast.SessionRequest(this.JSC$19794_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.U("desktop_enable_cast_connect")&&(V.androidReceiverCompatible=!0);this.disableDial_||(V.dialRequest=new chrome.cast.DialRequest("YouTube"));var f=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;W=W||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var r=(0,_.ml)(this.onReceiverUpdated_,
this);V=new chrome.cast.ApiConfig(V,(0,_.ml)(this.onSessionEstablished_,this),r,f,W);V.customDialLaunchCallback=(0,_.ml)(this.onDialLaunchRequested_,this);chrome.cast.initialize(V,(0,_.ml)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),KK2(),this.JSC$19794_screenService_.subscribe("onlineScreenChange",(0,_.ml)(this.JSC$19796_onScreenChange_,this)),this.customReceivers_=Wa5(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.ml)(function(R){this.warn_("Failed to set initial custom receivers: "+(0,_.hS)(R))},this)),this.publish("yt-remote-cast2-availability-change",ho(this)),l(!0))},this),(0,_.ml)(function(R){this.warn_("Failed to initialize API: "+(0,_.hS)(R));
l(!1)},this))};
Yo.prototype.setConnectedScreenStatus=function(W,l){SH("Setting connected screen ID: "+W+" -> "+l);if(this.JSC$19794_session_){var V=this.JSC$19794_session_.screen_;if(!W||V&&V.id!=W)SH("Unsetting old screen status: "+this.JSC$19794_session_.receiver_.friendlyName),En(this,null)}if(W&&l){if(!this.JSC$19794_session_){W=oP(this.JSC$19794_screenService_.getScreens(),W);if(!W){SH("setConnectedScreenStatus: Unknown screen.");return}if(W.idType=="shortLived"){SH("setConnectedScreenStatus: Screen with id type to be short lived.");
return}V=lB7(this,W);V||(SH("setConnectedScreenStatus: Connected receiver not custom..."),V=new chrome.cast.Receiver(W.uuid?W.uuid:W.id,W.name),V.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(V),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.ml)(function(f){this.warn_("Failed to set initial custom receivers: "+(0,_.hS)(f))},this)));
SH("setConnectedScreenStatus: new active receiver: "+V.friendlyName);En(this,new q8(this.JSC$19794_screenService_,V),!0)}this.JSC$19794_session_.setDisplayStatus(l)}else SH("setConnectedScreenStatus: no screen.")};
var lB7=function(W,l){return l?_.T6(W.customReceivers_,function(V){return pb(l,V.label)},W):null};
Yo.prototype.setLaunchParams=function(W){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19794_session_?this.JSC$19794_session_.launchWithParams(W):this.warn_("Setting connection data without a session")};
Yo.prototype.JSC$19796_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19794_session_?(this.JSC$19794_session_.stop(),En(this,null)):SH("Stopping non-existing session")};
Yo.prototype.requestSession=function(){chrome.cast.requestSession((0,_.ml)(this.onSessionEstablished_,this),(0,_.ml)(this.onSessionRequestFailed_,this))};
Yo.prototype.disposeInternal=function(){this.JSC$19794_screenService_.unsubscribe("onlineScreenChange",(0,_.ml)(this.JSC$19796_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.aY(_.Y2("yt.mdx.remote.debug.handlers_")||[],kGw);_.Ls(this.JSC$19794_session_);_.aE.prototype.disposeInternal.call(this)};
var SH=function(W){Xp("Controller",W)};
Yo.prototype.warn_=function(W){Xp("Controller",W)};
var kGw=function(W){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(W)},ho=function(W){return W.hasCastReceiver_||!!W.customReceivers_.length||!!W.JSC$19794_session_},En=function(W,l,V){l!=W.JSC$19794_session_&&(_.Ls(W.JSC$19794_session_),(W.JSC$19794_session_=l)?(V?W.publish("yt-remote-cast2-receiver-resumed",l.receiver_):W.publish("yt-remote-cast2-receiver-selected",l.receiver_),l.subscribe("sessionScreen",(0,_.ml)(W.onSessionScreen_,W,l)),l.subscribe("sessionFailed",
function(){return VWs(W,l)}),l.screen_?W.publish("yt-remote-cast2-session-change",l.screen_):V&&W.JSC$19794_session_.launchWithParams(null)):W.publish("yt-remote-cast2-session-change",null))},VWs=function(W,l){W.JSC$19794_session_==l&&W.publish("yt-remote-cast2-session-failed")};
_.t=Yo.prototype;_.t.onSessionScreen_=function(W,l){this.JSC$19794_session_==W&&(l||En(this,null),this.publish("yt-remote-cast2-session-change",l))};
_.t.onReceiverAction_=function(W,l){if(!this.isDisposed())if(W)switch(W.friendlyName=chrome.cast.unescape(W.friendlyName),SH("onReceiverAction_ "+W.label+" / "+W.friendlyName+"-- "+l),l){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19794_session_)if(this.JSC$19794_session_.receiver_.label!=W.label)SH("onReceiverAction_: Stopping active receiver: "+this.JSC$19794_session_.receiver_.friendlyName),this.JSC$19794_session_.stop();else{SH("onReceiverAction_: Casting to active receiver.");this.JSC$19794_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19794_session_.screen_);break}switch(W.receiverType){case chrome.cast.ReceiverType.CUSTOM:En(this,new q8(this.JSC$19794_screenService_,W));break;case chrome.cast.ReceiverType.DIAL:En(this,new x5(this.JSC$19794_screenService_,W,this.JSC$19794_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:En(this,new Y5(this.JSC$19794_screenService_,W,this.config_));break;default:this.warn_("Unknown receiver type: "+W.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19794_session_&&
this.JSC$19794_session_.receiver_.label==W.label?this.JSC$19794_session_.stop():this.warn_("Stopping receiver w/o session: "+W.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.t.onDialLaunchRequested_=function(W){if(this.isDisposed())return Promise.reject(Error("jl"));var l=W.receiver;l.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+l.friendlyName),l.receiverType=chrome.cast.ReceiverType.DIAL);var V=this.JSC$19794_session_?this.JSC$19794_session_.receiver_:null;if(!V||V.label!=l.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+l.friendlyName),Promise.reject(Error("kl"));if(V&&V.label==l.label&&V.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19794_session_.screen_)return SH("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19794_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+V.receiverType+'" to "dial" for '+l.friendlyName);En(this,new x5(this.JSC$19794_screenService_,l,this.JSC$19794_theme_,this.config_))}l=this.JSC$19794_session_;l.launchData_=W;l.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(W=l.launchData_.extraData||{},V=W.screenId||null,YhH(l)&&W.loungeToken?W.loungeTokenRefreshIntervalMs?W=ShY(l,{name:l.receiver_.friendlyName,screenId:W.screenId,loungeToken:W.loungeToken,dialId:l.launchData_.receiver.label,screenIdType:"shortLived"},W.loungeTokenRefreshIntervalMs):(_.OJ(Error("gl`"+JSON.stringify(W))),W=EM4(l,V)):W=EM4(l,V)):W=qhN(l);return W};
_.t.onSessionEstablished_=function(W){var l=this;if(!this.isDisposed()&&!this.forceMirroring_){SH("New cast session ID: "+W.sessionId);var V=W.receiver;if(V.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19794_session_)if(V.receiverType==chrome.cast.ReceiverType.CAST)SH("Got resumed cast session before resumed mdx connection."),V.friendlyName=chrome.cast.unescape(V.friendlyName),En(this,new Y5(this.JSC$19794_screenService_,V,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var f=this.JSC$19794_session_.receiver_,r=oP(this.JSC$19794_screenService_.getScreens(),f.label);r&&pb(r,V.label)&&f.receiverType!=chrome.cast.ReceiverType.CAST&&V.receiverType==chrome.cast.ReceiverType.CAST&&(SH("onSessionEstablished_: manual to cast session change "+V.friendlyName),_.Ls(this.JSC$19794_session_),this.JSC$19794_session_=new Y5(this.JSC$19794_screenService_,V,this.config_),this.JSC$19794_session_.subscribe("sessionScreen",(0,_.ml)(this.onSessionScreen_,this,this.JSC$19794_session_)),
this.JSC$19794_session_.subscribe("sessionFailed",function(){return VWs(l,l.JSC$19794_session_)}),this.JSC$19794_session_.launchWithParams(null));
this.JSC$19794_session_.setCastSession(W)}}};
_.t.JSC$19796_getCastSession=function(){return this.JSC$19794_session_?this.JSC$19794_session_.JSC$19780_getCastSession():null};
_.t.onSessionRequestFailed_=function(W){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.hS)(W)),W.code!=chrome.cast.ErrorCode.CANCEL&&En(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.t.onReceiverUpdated_=function(W){SH("Receiver availability updated: "+W);if(!this.isDisposed()){var l=ho(this);this.hasCastReceiver_=W==chrome.cast.ReceiverAvailability.AVAILABLE;ho(this)!=l&&this.publish("yt-remote-cast2-availability-change",ho(this))}};
var Wa5=function(W){var l=W.JSC$19794_screenService_.JSC$19776_getOnlineScreens(),V=W.JSC$19794_session_&&W.JSC$19794_session_.receiver_;W=_.Zl(l,function(f){V&&pb(f,V.label)&&(V=null);var r=f.uuid?f.uuid:f.id,R=lB7(this,f);R?(R.label=r,R.friendlyName=f.name):(R=new chrome.cast.Receiver(r,f.name),R.receiverType=chrome.cast.ReceiverType.CUSTOM);return R},W);
V&&(V.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(V=new chrome.cast.Receiver(V.label,V.friendlyName),V.receiverType=chrome.cast.ReceiverType.CUSTOM),W.push(V));return W};
Yo.prototype.JSC$19796_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=Wa5(this),SH("Updating custom receivers: "+(0,_.hS)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.ml)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",ho(this)))};
Yo.prototype.setLaunchParams=Yo.prototype.setLaunchParams;Yo.prototype.setConnectedScreenStatus=Yo.prototype.setConnectedScreenStatus;Yo.prototype.stopSession=Yo.prototype.JSC$19796_stopSession;Yo.prototype.getCastSession=Yo.prototype.JSC$19796_getCastSession;Yo.prototype.requestSession=Yo.prototype.requestSession;Yo.prototype.init=Yo.prototype.init;Yo.prototype.dispose=Yo.prototype.dispose;var fBY=_.tj(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),hW1=[],QJ5=_.dO(fBY);var rqe=function(W){W.audioTrackId=null;W.trackData=null;W.playerState=-1;W.hasPrevious=!1;W.hasNext=!1;W.playerTime_=0;W.playerTimeAt_=_.d5();W.seekableStart_=0;W.seekableEnd_=0;W.duration_=0;W.loadedTime=0;W.liveIngestionTime_=NaN;W.isLive_=!1};
_.t=xo.prototype;
_.t.reset=function(W){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;W&&(this.index=W.index,this.listId=W.listId,this.videoId=W.videoId,this.playerState=W.playerState,this.volume=W.volume,this.muted=W.muted,this.audioTrackId=W.audioTrackId,this.trackData=W.trackData,this.hasPrevious=W.hasPrevious,this.hasNext=W.hasNext,this.playerTime_=W.playerTime,this.playerTimeAt_=W.playerTimeAt,this.seekableStart_=W.seekableStart,this.seekableEnd_=W.seekableEnd,this.duration_=W.duration,this.loadedTime=
W.loadedTime,this.liveIngestionTime_=W.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.t.stopPlayer=function(){this.index=-1;this.videoId="";rqe(this)};
_.t.isPlaying=function(){return this.playerState==1};
_.t.isBuffering=function(){return this.playerState==3};
_.t.isAdPlaying=function(){return this.playerState==1081};
var $5=function(W,l){W.playerTime_=l;W.playerTimeAt_=_.d5()},RB1=function(W){switch(W.playerState){case 1:case 1081:return(_.d5()-W.playerTimeAt_)/1E3+W.playerTime_;
case -1E3:return 0}return W.playerTime_};
xo.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.d5()-this.playerTimeAt_)/1E3:0):this.duration_};
var tW5=function(W,l,V){var f=W.videoId;W.videoId=l;W.index=V;l!=f&&rqe(W)},s25=function(W){var l={};
l.index=W.index;l.listId=W.listId;l.videoId=W.videoId;l.playerState=W.playerState;l.volume=W.volume;l.muted=W.muted;l.audioTrackId=W.audioTrackId;l.trackData=_.MC.unsafeClone(W.trackData);l.hasPrevious=W.hasPrevious;l.hasNext=W.hasNext;l.playerTime=W.playerTime_;l.playerTimeAt=W.playerTimeAt_;l.seekableStart=W.seekableStart_;l.seekableEnd=W.seekableEnd_;l.duration=W.duration_;l.loadedTime=W.loadedTime;l.liveIngestionTime=W.liveIngestionTime_;return l};
xo.prototype.clone=function(){return new xo(s25(this))};var WY=function(W,l){_.aE.call(this);var V=this;this.state_=0;this.connection_=W;this.contextSubscriptions_=[];this.actionQueue_=new YDe;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.ml)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.ml)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.ml)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.ml)(this.onCloudviewAvailabilityChange_,this);var f=0;W?(f=W.getProxyState(),
f!=3&&(W.subscribe("proxyStateChange",this.setState_,this),Las(this))):f=3;f!=0&&(l?this.setState_(f):_.cA(function(){V.setState_(f)},0));
(W=Wrw())&&yqc(this,W);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.v(WY,_.aE);WY.prototype.getState=function(){return this.state_};
WY.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
WY.prototype.reconnect=function(){this.connection_.reconnect()};
var lV=function(W){return new xo(W.connection_.getPlayerContextData())};
_.t=WY.prototype;_.t.play=function(){Vg(this)?(this.castMedia_?this.castMedia_.play(null,_.QR,gOw(this,"play")):fH(this,"play"),PX5(this,1,RB1(lV(this))),this.publish("remotePlayerChange")):rf(this,this.play)};
_.t.pause=function(){Vg(this)?(this.castMedia_?this.castMedia_.pause(null,_.QR,gOw(this,"pause")):fH(this,"pause"),PX5(this,2,RB1(lV(this))),this.publish("remotePlayerChange")):rf(this,this.pause)};
_.t.seekTo=function(W){if(Vg(this)){if(this.castMedia_){var l=lV(this),V=new chrome.cast.media.SeekRequest;V.currentTime=W;l.isPlaying()||l.isBuffering()?V.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:V.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(V,_.QR,gOw(this,"seekTo",{newTime:W}))}else fH(this,"seekTo",{newTime:W});PX5(this,3,W);this.publish("remotePlayerChange")}else rf(this,_.QW(this.seekTo,W))};
_.t.stop=function(){if(Vg(this)){this.castMedia_?this.castMedia_.stop(null,_.QR,gOw(this,"stopVideo")):fH(this,"stopVideo");var W=lV(this);W.stopPlayer();RI(this,W);this.publish("remotePlayerChange")}else rf(this,this.stop)};
_.t.setVolume=function(W,l){if(Vg(this)){var V=lV(this);if(this.castSession_){if(V.volume!=W){var f=Math.round(W)/100;this.castSession_.setReceiverVolumeLevel(f,(0,_.ml)(function(){Tl("set receiver volume: "+f)},this),(0,_.ml)(function(){this.warn_("failed to set receiver volume.")},this))}V.muted!=l&&this.castSession_.setReceiverMuted(l,(0,_.ml)(function(){Tl("set receiver muted: "+l)},this),(0,_.ml)(function(){this.warn_("failed to set receiver muted.")},this))}else{var r={volume:W,
muted:l};V.volume!=-1&&(r.delta=W-V.volume);fH(this,"setVolume",r)}V.muted=l;V.volume=W;RI(this,V)}else rf(this,_.QW(this.setVolume,W,l))};
_.t.setAudioTrack=function(W,l){Vg(this)?(l=l.getLanguageInfo().getId(),fH(this,"setAudioTrack",{videoId:W,audioTrackId:l}),W=lV(this),W.audioTrackId=l,RI(this,W)):rf(this,_.QW(this.setAudioTrack,W,l))};
_.t.addVideo=function(W){Vg(this)?fH(this,"addVideo",{videoId:W}):rf(this,_.QW(this.addVideo,W))};
_.t.addPlaylist=function(W){Vg(this)?fH(this,"addVideos",{listId:W}):rf(this,_.QW(this.addPlaylist,W))};
_.t.addVideos=function(W){W.length==0?this.warn_("Ignore add videos request due to empty list"):Vg(this)?fH(this,"addVideos",{videoIds:W.join(",")}):rf(this,_.QW(this.addVideos,W))};
_.t.JSC$19806_removeVideo=function(W){Vg(this)?fH(this,"removeVideo",{videoId:W}):rf(this,_.QW(this.JSC$19806_removeVideo,W))};
_.t.JSC$19806_insertVideo=function(W){Vg(this)?fH(this,"insertVideo",{videoId:W}):rf(this,_.QW(this.JSC$19806_insertVideo,W))};
_.t.playVideo=function(W,l,V,f,r,R,y){f=f===void 0?null:f;r=r===void 0?null:r;R=R===void 0?null:R;y=y===void 0?null:y;var P=lV(this),n={videoId:W};V!==void 0&&(n.currentIndex=V);tW5(P,W,V||0);l!==void 0&&($5(P,l),n.currentTime=l);f&&(n.listId=f);r&&(n.playerParams=r);R&&(n.clickTrackingParams=R);y&&(n.locationInfo=(0,_.hS)(y));fH(this,"setPlaylist",n);f||RI(this,P)};
_.t.nextVideo=function(W,l){if(Vg(this)){if(W&&l){var V=lV(this);tW5(V,W,l);RI(this,V)}fH(this,"next")}else rf(this,_.QW(this.nextVideo,W,l))};
_.t.clearPlaylist=function(){if(Vg(this)){fH(this,"clearPlaylist");var W=lV(this);W.reset();RI(this,W);this.publish("remotePlayerChange")}else rf(this,this.clearPlaylist)};
_.t.dispose=function(){if(this.state_!=3){var W=this.state_;this.state_=3;this.publish("proxyStateChange",W,this.state_)}_.aE.prototype.dispose.call(this)};
_.t.disposeInternal=function(){nO4(this);this.connection_=null;this.actionQueue_.clear();yqc(this,null);_.aE.prototype.disposeInternal.call(this)};
var Las=function(W){_.q4("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(l){this.contextSubscriptions_.push(this.connection_.subscribe(l,_.QW(this.onProxyEvent_,l),this))},W)},nO4=function(W){_.q4(W.contextSubscriptions_,function(l){this.connection_.unsubscribeByKey(l)},W);
W.contextSubscriptions_.length=0},Vg=function(W){return W.getState()==1},rf=function(W,l){W.actionQueue_.getCount()<50&&W.actionQueue_.enqueue(l)},PX5=function(W,l,V){var f=lV(W);
$5(f,V);f.playerState!=-1E3&&(f.playerState=l);RI(W,f)},fH=function(W,l,V){W.connection_.sendMessage(l,V)},RI=function(W,l){nO4(W);
W.connection_.setPlayerContextData(s25(l));Las(W)};
WY.prototype.setState_=function(W){if((W!=this.state_||W==2)&&this.state_!=3&&W!=0){var l=this.state_;this.state_=W;this.publish("proxyStateChange",l,W);if(W==1)for(;!this.actionQueue_.isEmpty();)W=this.actionQueue_,wo7(W),W.front_.pop().apply(this);else W==3&&this.dispose()}};
WY.prototype.onProxyEvent_=function(W,l){this.publish(W,l)};
var yqc=function(W,l){W.castSession_&&(W.castSession_.removeUpdateListener(W.boundCastStatusListener_),W.castSession_.removeMediaListener(W.boundCastMediaListener_),W.onCastMediaChange_(null));W.castSession_=l;if(W.castSession_&&(Tl("Setting cast session: "+W.castSession_.sessionId),W.castSession_.addUpdateListener(W.boundCastStatusListener_),W.castSession_.addMediaListener(W.boundCastMediaListener_),W.castSession_.media.length))W.onCastMediaChange_(W.castSession_.media[0])};
WY.prototype.onCastStatusUpdate_=function(W){if(!W)this.onCastMediaChange_(null),yqc(this,null);else if(this.castSession_.receiver.volume){W=this.castSession_.receiver.volume;var l=lV(this),V=Math.round(100*W.level||0);if(l.volume!=V||l.muted!=W.muted)Tl("Cast volume update: "+W.level+(W.muted?" muted":"")),l.volume=V,l.muted=!!W.muted,RI(this,l)}};
WY.prototype.onCastMediaChange_=function(W){Tl("Cast media: "+!!W);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=W)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),CXw(this),this.publish("remotePlayerChange")};
var CXw=function(W){var l=W.castMedia_.media,V=W.castMedia_.customData;if(l&&V){var f=lV(W);l.contentId!=f.videoId&&Tl("Cast changing video to: "+l.contentId);f.videoId=l.contentId;f.playerState=V.playerState;$5(f,W.castMedia_.getEstimatedTime());RI(W,f)}else Tl("No cast media video. Ignoring state update.")};
WY.prototype.onCastMediaUpdate_=function(W){if(W)CXw(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
WY.prototype.onCloudviewAvailabilityChange_=function(){var W=Wrw();W&&yqc(this,W)};
WY.prototype.warn_=function(W){Xp("CP",W)};
var gOw=function(W,l,V){return(0,_.ml)(function(f){this.warn_("Failed to "+l+" with cast v2 channel. Error code: "+f.code);f.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+l+" using MDx browser channel."),fH(this,l,V))},W)};var si=function(W,l,V,f){f=f===void 0?!1:f;_.aE.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$19811_http_=W;this.enableConnectWithInitialState_=f;this.listeners_.push(_.rv(window,"beforeunload",function(){r.JSC$19814_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new xo;this.currentScreenId_=l.id;this.currentScreenIdType_=l.idType;this.channelService=uYs(this.JSC$19811_http_,V,this.JSC$19814_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){cqs(r)});
this.channelService.listen("channelClosed",function(){tt("Channel closed");isNaN(r.connectTimerId_)?jz(!0):jz();r.dispose()});
this.channelService.listen("channelError",function(R){jz();isNaN(r.getReconnectTimeout_())?(R==1&&r.currentScreenIdType_=="shortLived"&&r.publish("browserChannelAuthError",R),tt("Channel error: "+R+" without reconnection"),r.dispose()):(r.reconnecting_=!0,tt("Channel error: "+R+" with reconnection in "+r.getReconnectTimeout_()+" ms"),Bi7(r,2))});
this.channelService.listen("channelMessage",function(R){dAw(r,R)});
this.channelService.setLoungeToken(l.token);this.subscribe("remoteQueueChange",function(){var R=r.playerContext_.videoId;tMw()&&_.N5("yt-remote-session-video-id",R)})};
_.v(si,_.aE);
si.prototype.connect=function(W,l){if(l){var V=l.listId,f=l.videoId,r=l.videoIds,R=l.playerParams,y=l.clickTrackingParams,P=l.index,n={videoId:f},B=l.currentTime,d=l.locationInfo;l=l.loopMode;B!==void 0&&(n.currentTime=B<=5?0:B);R&&(n.playerParams=R);d&&(n.locationInfo=d);y&&(n.clickTrackingParams=y);V&&(n.listId=V);r&&r.length>0&&(n.videoIds=r.join(","));P!==void 0&&(n.currentIndex=P);this.enableConnectWithInitialState_&&(n.loopMode=l||"LOOP_MODE_OFF");V&&(this.playerContext_.listId=V);this.playerContext_.videoId=
f;this.playerContext_.index=P||0;this.playerContext_.state=3;$5(this.playerContext_,B);this.autoplayMode_="UNSUPPORTED";V=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";tt("Connecting with "+V+" and params: "+(0,_.hS)(n));this.channelService.connect({method:V,params:(0,_.hS)(n)},W,PDH())}else tt("Connecting without params"),this.channelService.connect({},W,PDH());Jqe(this)};
si.prototype.setLoungeToken=function(W){this.channelService.setLoungeToken(W)};
si.prototype.dispose=function(){this.isDisposed()||(_.fR("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),Bi7(this,3));_.aE.prototype.dispose.call(this)};
si.prototype.disposeInternal=function(){DAc(this);UAw(this);uV7(this);_.dU(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.dU(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.fNz(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.aE.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var kj4=function(W){return _.T6(W.connectedDevices_,function(l){return l.type=="LOUNGE_SCREEN"})},tt=function(W){Xp("conn",W)},Bi7=function(W,l){W.publish("proxyStateChange",l)},Jqe=function(W){W.connectTimerId_=_.cA(function(){tt("Connecting timeout");
W.JSC$19814_disconnect_(1)},2E4)},DAc=function(W){_.dU(W.connectTimerId_);
W.connectTimerId_=NaN},uV7=function(W){_.dU(W.reconnectedCheckScreenTimeout_);
W.reconnectedCheckScreenTimeout_=NaN},vOZ=function(W){UAw(W);
W.playingSyncTimerId_=_.cA(function(){LH(W,"getNowPlaying")},2E4)},UAw=function(W){_.dU(W.playingSyncTimerId_);
W.playingSyncTimerId_=NaN},cqs=function(W){tt("Channel opened");
W.reconnecting_&&(W.reconnecting_=!1,uV7(W),W.reconnectedCheckScreenTimeout_=_.cA(function(){tt("Timing out waiting for a screen.");W.JSC$19814_disconnect_(1)},15E3))},KaZ=function(W,l){var V=null;
if(l){var f=kj4(W);f&&(V={clientName:f.clientName,deviceMake:f.brand,deviceModel:f.model,osVersion:f.osVersion})}_.fR("yt.mdx.remote.remoteClient_",V);l&&(DAc(W),uV7(W));V=W.channelService.isChannelOpened()&&isNaN(W.connectTimerId_);l==V?l&&(Bi7(W,1),LH(W,"getSubtitlesTrack")):l?(W.getOtherConnectedRemoteId_()&&W.playerContext_.reset(),Bi7(W,1),LH(W,"getNowPlaying"),H9w(W)):W.JSC$19814_disconnect_(1)},Fa4=function(W,l){var V=l.params.videoId;
delete l.params.videoId;V==W.playerContext_.videoId&&(_.MC.isEmpty(l.params)?W.playerContext_.trackData=null:W.playerContext_.trackData=l.params,W.publish("remotePlayerChange"))},Gjc=function(W,l,V){var f=l.params.videoId||l.params.video_id,r=parseInt(l.params.currentIndex,10);
W.playerContext_.listId=l.params.listId||W.playerContext_.listId;tW5(W.playerContext_,f,r);W.publish("remoteQueueChange",V)},b9Z=function(W,l){l.params=l.params||{};
Gjc(W,l,"NOW_PLAYING_MAY_CHANGE");W.onStateChange_(l);W.publish("autoplayDismissed")};
si.prototype.onStateChange_=function(W){var l=parseInt(W.params.currentTime||W.params.current_time,10);$5(this.playerContext_,isNaN(l)?0:l);l=parseInt(W.params.state,10);l=isNaN(l)?-1:l;l==-1&&this.playerContext_.playerState==-1E3&&(l=-1E3);this.playerContext_.playerState=l;l=Number(W.params.loadedTime);this.playerContext_.loadedTime=isNaN(l)?0:l;l=Number(W.params.duration);this.playerContext_.duration_=isNaN(l)?0:l;l=this.playerContext_;var V=Number(W.params.liveIngestionTime);l.liveIngestionTime_=
V;l.isLive_=isNaN(V)?!1:!0;l=this.playerContext_;V=Number(W.params.seekableStartTime);W=Number(W.params.seekableEndTime);l.seekableStart_=isNaN(V)?0:V;l.seekableEnd_=isNaN(W)?0:W;this.playerContext_.playerState==1?vOZ(this):UAw(this);this.publish("remotePlayerChange")};
si.prototype.onAdStateChange_=function(W){if(this.playerContext_.playerState!=-1E3){var l=1085;switch(parseInt(W.params.adState,10)){case 1:l=1081;break;case 2:l=1084;break;case 0:l=1083}this.playerContext_.playerState=l;W=parseInt(W.params.currentTime,10);$5(this.playerContext_,isNaN(W)?0:W);this.publish("remotePlayerChange")}};
var pR2=function(W,l){var V=l.params.muted=="true";W.playerContext_.volume=parseInt(l.params.volume,10);W.playerContext_.muted=V;W.publish("remotePlayerChange")},oOs=function(W,l){W.autoplayVideoId_=l.params.videoId;
W.publish("nowAutoplaying",parseInt(l.params.timeout,10))},j2e=function(W,l){W.autoplayVideoId_=l.params.videoId||null;
W.publish("autoplayUpNext",W.autoplayVideoId_)},IBH=function(W,l){W.autoplayMode_=l.params.autoplayMode;
W.publish("autoplayModeChange",W.autoplayMode_);W.autoplayMode_=="DISABLED"&&W.publish("autoplayDismissed")},i9s=function(W,l){var V=l.params.hasNext=="true";
W.playerContext_.hasPrevious=l.params.hasPrevious=="true";W.playerContext_.hasNext=V;W.publish("previousNextChange")};
si.prototype.isCapabilitySupportedOnConnectedDevices_=function(W){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var l=_.L(this.connectedDevices_),V=l.next();!V.done;V=l.next())if(!V.value.capabilities.has(W))return!1;return!0};
var dAw=function(W,l){l=l.message;l.params?tt("Received: action="+l.action+", params="+(0,_.hS)(l.params)):tt("Received: action="+l.action+" {}");switch(l.action){case "loungeStatus":l=(0,_.qc)(l.params.devices);W.connectedDevices_=_.Zl(l,function(f){return new ZE(f)});
l=!!_.T6(W.connectedDevices_,function(f){return f.type=="LOUNGE_SCREEN"});
KaZ(W,l);l=W.isCapabilitySupportedOnConnectedDevices_("mlm");W.publish("multiStateLoopEnabled",l);break;case "loungeScreenDisconnected":KAH(W.connectedDevices_,function(f){return f.type=="LOUNGE_SCREEN"});
KaZ(W,!1);break;case "remoteConnected":var V=new ZE((0,_.qc)(l.params.device));_.T6(W.connectedDevices_,function(f){return f.equals(V)})||_.vzF(W.connectedDevices_,V);
break;case "remoteDisconnected":V=new ZE((0,_.qc)(l.params.device));KAH(W.connectedDevices_,function(f){return f.equals(V)});
break;case "gracefulDisconnect":break;case "playlistModified":Gjc(W,l,"QUEUE_MODIFIED");break;case "nowPlaying":b9Z(W,l);break;case "onStateChange":W.onStateChange_(l);break;case "onAdStateChange":W.onAdStateChange_(l);break;case "onVolumeChanged":pR2(W,l);break;case "onSubtitlesTrackChanged":Fa4(W,l);break;case "nowAutoplaying":oOs(W,l);break;case "autoplayDismissed":W.publish("autoplayDismissed");break;case "autoplayUpNext":j2e(W,l);break;case "onAutoplayModeChanged":IBH(W,l);break;case "onHasPreviousNextChanged":i9s(W,
l);break;case "requestAssistedSignIn":W.publish("assistedSignInRequested",l.params.authCode);break;case "onLoopModeChanged":W.publish("loopModeChange",l.params.loopMode);break;default:tt("Unrecognized action: "+l.action)}};
_.t=si.prototype;_.t.getProxyState_=function(){var W=3;this.isDisposed()||(W=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(W=1):W=2);return W};
_.t.JSC$19814_disconnect_=function(W){tt("Disconnecting with "+W);_.fR("yt.mdx.remote.remoteClient_",null);DAc(this);this.publish("beforeDisconnect",W);W==1&&jz();this.channelService.disconnect(W);this.dispose()};
_.t.getPlayerContextData_=function(){var W=this.playerContext_;this.clientVideoId_&&(W=this.playerContext_.clone(),tW5(W,this.clientVideoId_,W.index));return s25(W)};
_.t.setPlayerContextData_=function(W){var l=this,V=new xo(W);V.videoId&&V.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=V.videoId,_.dU(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.cA(function(){if(l.clientVideoId_){var r=l.clientVideoId_;l.clientVideoId_=null;l.playerContext_.videoId!=r&&LH(l,"getNowPlaying")}},5E3));
var f=[];this.playerContext_.listId==V.listId&&this.playerContext_.videoId==V.videoId&&this.playerContext_.index==V.index||f.push("remoteQueueChange");this.playerContext_.playerState==V.playerState&&this.playerContext_.volume==V.volume&&this.playerContext_.muted==V.muted&&RB1(this.playerContext_)==RB1(V)&&(0,_.hS)(this.playerContext_.trackData)==(0,_.hS)(V.trackData)||f.push("remotePlayerChange");this.playerContext_.reset(W);_.q4(f,function(r){this.publish(r)},this)};
_.t.getOtherConnectedRemoteId_=function(){var W=this.channelService.getDeviceId(),l=_.T6(this.connectedDevices_,function(V){return V.type=="REMOTE_CONTROL"&&V.id!=W});
return l?l.id:""};
_.t.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.t.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.t.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.t.JSC$19814_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var H9w=function(W){_.dU(W.idleDisconnectTimerId_);W.idleDisconnectTimerId_=_.cA(function(){W.JSC$19814_disconnect_(1)},864E5)},LH=function(W,l,V){V?tt("Sending: action="+l+", params="+(0,_.hS)(V)):tt("Sending: action="+l);
W.channelService.sendMessage(l,V)};
si.prototype.sendMessageWithUserAction_=function(W,l){LH(this,W,l);H9w(this)};
si.prototype.JSC$19814_getXsrfToken_=function(){var W=_.vA.get("SAPISID","")||_.vA.get("__Secure-1PAPISID",void 0)||"",l=_.vA.get("__Secure-3PAPISID","")||"";if(!W&&!l)return"";W=_.Xw(_.IZ(W),2);l=_.Xw(_.IZ(l),2);return _.Xw(_.IZ(","+W+","+l),2)};
si.prototype.subscribe=si.prototype.subscribe;si.prototype.unsubscribeByKey=si.prototype.unsubscribeByKey;si.prototype.getProxyState=si.prototype.getProxyState_;si.prototype.disconnect=si.prototype.JSC$19814_disconnect_;si.prototype.getPlayerContextData=si.prototype.getPlayerContextData_;si.prototype.setPlayerContextData=si.prototype.setPlayerContextData_;si.prototype.getOtherConnectedRemoteId=si.prototype.getOtherConnectedRemoteId_;si.prototype.getReconnectTimeout=si.prototype.getReconnectTimeout_;
si.prototype.getAutoplayMode=si.prototype.getAutoplayMode_;si.prototype.getAutoplayVideoId=si.prototype.getAutoplayVideoId_;si.prototype.reconnect=si.prototype.JSC$19814_reconnect_;si.prototype.sendMessage=si.prototype.sendMessageWithUserAction_;si.prototype.getXsrfToken=si.prototype.JSC$19814_getXsrfToken_;si.prototype.isCapabilitySupportedOnConnectedDevices=si.prototype.isCapabilitySupportedOnConnectedDevices_;var mAN=function(W){Ac.call(this,"ScreenServiceProxy");this.instance_=W;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.ml)(this.JSC$19817_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.ml)(this.onOnlineScreenChange_,this)))};
_.v(mAN,Ac);_.t=mAN.prototype;_.t.getScreens=function(W){return this.instance_.$_gs(W)};
_.t.contains=function(W){return!!this.instance_.$_c(W)};
_.t.get=function(W){return this.instance_.$_g(W)};
_.t.start=function(){this.instance_.$_st()};
_.t.add=function(W,l,V){this.instance_.$_a(W,l,V)};
_.t.remove=function(W,l,V){this.instance_.$_r(W,l,V)};
_.t.updateName=function(W,l,V,f){this.instance_.$_un(W,l,V,f)};
_.t.disposeInternal=function(){for(var W=this.subscriptionKeys_.length,l=0;l<W;++l)this.instance_.$_ubk(this.subscriptionKeys_[l]);this.subscriptionKeys_.length=0;this.instance_=null;Ac.prototype.disposeInternal.call(this)};
_.t.JSC$19817_onScreenChange_=function(){this.publish("screenChange")};
_.t.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
Ze.prototype.$_st=Ze.prototype.start;Ze.prototype.$_gspc=Ze.prototype.JSC$19776_getScreenByPairingCode;Ze.prototype.$_gsppc=Ze.prototype.JSC$19776_getScreenByPollingPairingCode;Ze.prototype.$_c=Ze.prototype.contains;Ze.prototype.$_g=Ze.prototype.get;Ze.prototype.$_a=Ze.prototype.add;Ze.prototype.$_un=Ze.prototype.updateName;Ze.prototype.$_r=Ze.prototype.remove;Ze.prototype.$_gs=Ze.prototype.getScreens;Ze.prototype.$_gos=Ze.prototype.JSC$19776_getOnlineScreens;Ze.prototype.$_s=Ze.prototype.subscribe;
Ze.prototype.$_ubk=Ze.prototype.unsubscribeByKey;var Z9N=function(W){BmL();if(!IP||!IP.get("yt-remote-disable-remote-module-for-dev")){W=_.M4("MDX_CONFIG")||W;cIL();LKY();yg||(yg=new Gl(W?W.loungeApiHost:void 0),da2()&&(yg.basePath="/api/loungedev"));gf||(gf=_.Y2("yt.mdx.remote.deferredProxies_")||[],_.fR("yt.mdx.remote.deferredProxies_",gf));XRN();var l=PY();if(!l){var V=new Ze(yg,W?W.disableAutomaticScreenCache||!1:!1);_.fR("yt.mdx.remote.screenService_",V);l=PY();var f={};W&&(f={appId:W.appId,disableDial:W.disableDial,theme:W.theme,loadCastApiSetupScript:W.loadCastApiSetupScript,
disableCastApi:W.disableCastApi,enableDialLoungeToken:W.enableDialLoungeToken,enableCastLoungeToken:W.enableCastLoungeToken,forceMirroring:W.forceMirroring});_.fR("yt.mdx.remote.enableConnectWithInitialState_",W?W.enableConnectWithInitialState||!1:!1);eW5(V,function(R){R?nH()&&V1Y(nH(),"YouTube TV"):V.subscribe("onlineScreenChange",function(){WX("yt-remote-receiver-availability-change")})},f)}if(W&&!_.Y2("yt.mdx.remote.initialized_")){_.fR("yt.mdx.remote.initialized_",!0);
CH("Initializing: "+(0,_.hS)(W));cY.push(_.nS("yt-remote-cast2-api-ready",function(){WX("yt-remote-api-ready")}));
cY.push(_.nS("yt-remote-cast2-availability-change",function(){WX("yt-remote-receiver-availability-change")}));
cY.push(_.nS("yt-remote-cast2-receiver-selected",function(){TiZ();WX("yt-remote-auto-connect","cast-selector-receiver")}));
cY.push(_.nS("yt-remote-cast2-receiver-resumed",function(){WX("yt-remote-receiver-resumed","cast-selector-receiver")}));
cY.push(_.nS("yt-remote-cast2-session-change",wR4));cY.push(_.nS("yt-remote-connection-change",function(R){R?V1Y(nH(),"YouTube TV"):Aqc()||(V1Y(null,null),$a7())}));
cY.push(_.nS("yt-remote-cast2-session-failed",function(){WX("yt-remote-connection-failed")}));
f=Q21();W.isAuto&&(f.id+="#dial");var r=W.capabilities||[];r.length>0&&(f.capabilities=r);f.name=W.device;f.app=W.app;(W=W.theme)&&(f.theme=W);CH(" -- with channel params: "+(0,_.hS)(f));f?(_.N5("yt-remote-session-app",f.app),_.N5("yt-remote-session-name",f.name)):(_.xC("yt-remote-session-app"),_.xC("yt-remote-session-name"));_.fR("yt.mdx.remote.channelParams_",f);l.start();nH()||MW5()}}},aBN=function(){var W=PY().instance_.$_gos();
var l=O9L();l&&BY()&&(fd1(W,l)||W.push(l));return VMs(W)},zB2=function(){var W=aBN(),l=O9L();
l||(l=Aqc());return _.T6(W,function(V){return l&&pb(l,V.key)?!0:!1})},O9L=function(){var W=nH();
if(!W)return null;var l=PY().getScreens();return oP(l,W)},wR4=function(W){CH("remote.onCastSessionChange_: "+fNZ(W));
if(W){var l=O9L();l&&l.id==W.id?(V1Y(l.id,"YouTube TV"),W.idType=="shortLived"&&(W=W.token)&&(l=BY())&&l.setLoungeToken(W)):(l&&NiN(),YTY(W,1))}else BY()&&NiN()},NiN=function(){lNs()?NW().stopSession():zl("stopSession called before API ready.");
var W=BY();W&&(W.disconnect(1),xA1(null))},eB2=function(){var W=BY();
return W&&W.getProxyState()!=3?new WY(BY(),void 0):null},CH=function(W){Xp("remote",W)},PY=function(){if(!qTN){var W=_.Y2("yt.mdx.remote.screenService_");
qTN=W?new mAN(W):null}return qTN},nH=function(){return _.Y2("yt.mdx.remote.currentScreenId_")},hBN=function(W){_.fR("yt.mdx.remote.currentScreenId_",W)},TiZ=function(){_.fR("yt.mdx.remote.connectData_",null)},BY=function(){return _.Y2("yt.mdx.remote.connection_")},xA1=function(W){var l=BY();
TiZ();W||hBN("");_.fR("yt.mdx.remote.connection_",W);gf&&(_.q4(gf,function(V){V(W)}),gf.length=0);
l&&!W?WX("yt-remote-connection-change",!1):!l&&W&&WX("yt-remote-connection-change",!0)},Aqc=function(){var W=tMw();
if(!W)return null;var l=PY();if(!l)return null;l=l.getScreens();return oP(l,W)},YTY=function(W,l){hBN(W.id);
W=new si(yg,W,Q21(),_.Y2("yt.mdx.remote.enableConnectWithInitialState_")||!1);W.connect(l,_.Y2("yt.mdx.remote.connectData_"));W.subscribe("beforeDisconnect",function(V){WX("yt-remote-before-disconnect",V)});
W.subscribe("beforeDispose",function(){BY()&&xA1(null)});
W.subscribe("browserChannelAuthError",function(){var V=O9L();V&&V.idType=="shortLived"&&(lNs()?NW().handleBrowserChannelAuthError():zl("refreshLoungeToken called before API ready."))});
xA1(W)},MW5=function(){var W=Aqc();
W?(CH("Resume connection to: "+fNZ(W)),YTY(W,0)):(jz(),$a7(),CH("Skipping connecting because no session screen found."))},yg=null,gf=null,qTN=null,XRN=function(){var W=Q21();
if(_.MC.isEmpty(W)){W=RW7();var l=_.YC("yt-remote-session-name")||"",V=_.YC("yt-remote-session-app")||"";W={device:"REMOTE_CONTROL",id:W,name:l,app:V,mdxVersion:3};W.authuser=String(_.M4("SESSION_INDEX","0"));(l=_.M4("DELEGATED_SESSION_ID"))&&(W.pageId=String(l));_.fR("yt.mdx.remote.channelParams_",W)}},Q21=function(){return _.Y2("yt.mdx.remote.channelParams_")||{}},cY=[];var ST7=new _.Ow("yt-menu"),EOw=function(){},WO4=function(W,l,V){W=l=="right-click"?V.rightClickMenuPopupHint:V.menuPopupHint;
if(!($A2(l)>10))return l=l||"default",ST7.set(l+"-impression",$A2(l)+1),W},$A2=function(W){return parseInt(ST7.get((W||"default")+"-impression")||0,10)};
_.BF(EOw);var lO4=function(){this.contexts_=new WeakMap;this.JSC$19823_networkService_=this.activeContext_=null},VoN=function(W,l,V){var f=W.contexts_.get(l);
f||(f=new nR2(W.JSC$19823_networkService_),W.contexts_.set(l,f));W.activeContext_=f;V&&W.activeContext_.reset();W.activeContext_.start();return W.activeContext_};var df=function(){};
df.prototype.enqueue=function(){var W=this,l;return _.g(function(V){if(W.isCounterfactual())return(l=W.getCounterfactualData())&&W.shouldLogCounterfactualImpression()&&W.sendImpressionEndpoints(l),V.return();W.doEnqueue();_.ju(V)})};
df.prototype.sendImpressionEndpoints=function(W){_.eC.getInstance().triggerOptionalAction("yt-service-request",{},W[0])};var Jt=function(W,l){this.renderer=W;this.page=l};
_.v(Jt,df);Jt.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
Jt.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
Jt.prototype.shouldLogCounterfactualImpression=function(){return!0};
Jt.prototype.doEnqueue=function(){var W=_.dH(this.page);W&&W.pause();this.renderer.impressionCommand&&_.eC.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.rP(_.eC.getInstance(),[this.renderer.promoCommand],this.page)};var fOZ=function(W,l){this.renderer=W;this.resolver=_.yH();this.JSC$19835_enforcementCounter=new _.k_Z;l?this.JSC$19835_playerManager=_.dH(l):this.JSC$19835_playerManager=null;_.A5(1,!0)};
_.v(fOZ,df);_.t=fOZ.prototype;_.t.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var W=[];this.renderer.impressionEndpoints.forEach(function(l){(l=_.fP(l))&&W.push(l)});
return W}};
_.t.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.t.shouldLogCounterfactualImpression=function(){var W=_.gf8();W?(this.JSC$19835_enforcementCounter.increment("POPUP"),_.A5(3)):_.A5(2);return W};
_.t.cancel=function(){this.resolver.promise.cancel()};
_.t.doEnqueue=function(){var W=this;_.gf8()?(this.JSC$19835_enforcementCounter.increment("POPUP"),_.A5(3),r82(this)):this.JSC$19835_playerManager?(this.resolver.promise.then(function(){r82(W)}),RTw(this.resolver,this.JSC$19835_playerManager)):_.A5(2)};
var RTw=function(W,l){var V=_.yH();l.getPlayerPromise().then(function(f){V.resolve(f)});
V.promise.then(function(f){f.addEventListener("onAbnormalityDetected",W.resolve);_.xS(W.promise,function(){f.removeEventListener("onAbnormalityDetected",W.resolve)})});
W.promise.thenCatch(function(){V.promise.cancel()})},r82=function(W){_.A5(3);
var l={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:W.renderer}};l=_.eC.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:l},{});Promise.all(l).then(function(){toe();W.JSC$19835_playerManager&&W.JSC$19835_playerManager.pause()})},toe=function(){LLZ(function(W,l){_.ecL(W,l);
W===0?_.A5(7):_.A5(4)})};var suw=function(W,l){this.renderer=W;this.page=l;this.resolver=_.yH()};
_.v(suw,df);_.t=suw.prototype;_.t.cancel=function(){this.resolver.promise.cancel()};
_.t.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.t.isCounterfactual=function(){return!this.renderer.isVisible};
_.t.shouldLogCounterfactualImpression=function(){return!0};
_.t.doEnqueue=function(){var W=this;this.resolver.promise.then(function(){var V={popup:{mealbarPromoRenderer:W.renderer},popupType:"MEALBAR"};_.eC.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:V},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var l=_.dH(this.page);l&&LOY(this.resolver,l)}break;default:this.resolver.resolve()}};
var LOY=function(W,l){var V=_.yH();l.getPlayerPromise().then(function(f){V.resolve(f)});
V.promise.then(function(f){f.addEventListener("onAdEnd",W.resolve);_.xS(W.promise,function(){f.removeEventListener("onAdEnd",W.resolve)})});
W.promise.thenCatch(function(){V.promise.cancel()})};var y85=function(W,l){this.renderer=W;this.page=l};
_.v(y85,df);_.t=y85.prototype;_.t.cancel=function(){this.JSC$19843_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19843_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19843_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.t.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.t.isCounterfactual=function(){return!this.renderer.isVisible};
_.t.shouldLogCounterfactualImpression=function(){return!0};
_.t.doEnqueue=function(){var W=this,l,V;((l=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(V=l.playbackUpsellDialogTriggerConditionData)==null?void 0:V.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19843_downloadedVideosCountSelectorUnsubscriber=_.Eb(_.DJ(),fA2,function(f,r){f>r&&(gv5(W),W.cancel())}):gv5(this)};
var gv5=function(W){var l={popup:{upsellDialogRenderer:W.renderer},popupType:"MODAL"};_.eC.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:l},{});(W=_.dH(W.page))&&W.pause()};var DM={},Pr1=(DM.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",DM.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",DM.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",DM.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",DM.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",DM.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",DM.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",DM),nvZ=function(W,l){this.renderer=W;this.targetManager=
l};
_.v(nvZ,df);_.t=nvZ.prototype;_.t.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19850_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19850_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19850_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.t.getCounterfactualData=function(){if(this.isCounterfactual()){var W;return(W=this.renderer.promoConfig)==null?void 0:W.impressionEndpoints}};
_.t.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.t.shouldLogCounterfactualImpression=function(){return!0};
_.t.doEnqueue=function(){var W=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19850_downloadedVideosCountSelectorUnsubscriber=_.Eb(_.DJ(),fA2,function(l,V){W.renderer.targetId&&l>V&&(mPZ(W.targetManager,W.renderer.targetId,Cr1(W)),W.cancel())});
break;default:mPZ(this.targetManager,this.renderer.targetId,Cr1(this))}};
var Cr1=function(W){var l;if((l=W.renderer.suggestedPosition)==null?0:l.type)var V=Pr1[W.renderer.suggestedPosition.type];V||(V="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:W.renderer},popupType:"HINT",position:V}}};var c8N=function(){this.previousPage=null},BnZ;
c8N.prototype.registerPromoCommand=function(W,l){dyH(this,void 0,void 0,_.k(W.roadblock,IPZ),void 0,void 0,l)};
var dyH=function(W,l,V,f,r,R,y){W.previousPage!==y&&W.pendingTooltipPromo&&W.pendingTooltipPromo.cancel();W.previousPage=y;r?(W.pendingEnforcementPromo&&W.pendingEnforcementPromo.cancel(),W.pendingEnforcementPromo=new fOZ(r,y),W.pendingEnforcementPromo.enqueue()):R?(W.pendingCommandWrapperPromo=new Jt(R,y),W.pendingCommandWrapperPromo.enqueue()):f?(W.pendingRoadblockPromo&&W.pendingRoadblockPromo.cancel(),W.pendingRoadblockPromo=new y85(f,y),W.pendingRoadblockPromo.enqueue()):l?(W.pendingMealbarPromo&&
W.pendingMealbarPromo.cancel(),W.pendingMealbarPromo=new suw(l,y),W.pendingMealbarPromo.enqueue()):V&&(W.pendingTooltipPromo&&W.pendingTooltipPromo.cancel(),W.pendingTooltipPromo=new nvZ(V,_.rY()),W.pendingTooltipPromo.enqueue())},J8L=function(){BnZ||(BnZ=new c8N);
return BnZ};var sfZ=!1;var XfN=function(W,l){var V=_.M4("SESSION_INDEX");this.actionToken_=W;this.commonToken_=l;this.sessionIndex_=V},mrL=function(W){var l=_.yH(),V=_.Y2("payments.business.integration.bootstrap"),f=_.Y2("payments.business.integration"),r=f.Style.create().withMaterialDesignStyle(),R=f.mashupMode.popup("instrument-manager");
V.asMashupMode(R).usingUserIndex(W.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(r).inStandaloneContext(f.standaloneContextAuthId.forUserId()).instrumentManager(W.actionToken_,W.commonToken_.length>0?W.commonToken_:void 0,function(y){var P=y.instrumentId;P?l.resolve(P):(P=_.Y2("payments.business.integration.scenario.InstrumentManager"),l.reject(y.errorCode&&y.errorCode===P.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(y){_.OJ(y);
l.reject("instrumentManagerLoadError")});
return l.promise};var Sz=function(W,l,V){this.payloadName="transactionFlowFailed";this.payload={errorType:W,serializedTransactionFlowLoggingParams:l,isUserDismiss:V===void 0?!1:V}};
_.fR("yt.ypc.shared.YpcTransactionFlowError",Sz);var Ui=function(){return _.OD.apply(this,arguments)||this};
_.v(Ui,_.OD);Ui.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Ui.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Ui.prototype.onErrorMessageDismiss=Ui.prototype.onErrorMessageDismiss;_.a([_.b({readOnly:!0,observer:"errorRendererChanged"}),_.z("design:type",Object)],Ui.prototype,"errorRenderer",void 0);_.a([_.XI("yt-live-chat-error-message-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ui.prototype,"onErrorMessageDismiss",null);_.a([_.a1()],Ui);var Dy1=[Ui.prototype];var Uy1;var uq2;var k25=new _.Ow("yt-live-chat"),vv1=new Map;vv1.set("timestamp_toggle","show-timestamps");vv1.set("reactions_toggle","allow-reactions");var uV=function(){return _.I.apply(this,arguments)||this};
_.v(uV,_.I);_.t=uV.prototype;_.t.menuItemIdentifierChanged=function(){var W;(W=this.data)!=null&&W.menuItemIdentifier&&(W=vv1.get(this.data.menuItemIdentifier))&&(_.U("enable_lwe_web_mute")?(W=k25.get(W),this.isToggled=!(W===void 0?!this.data.isToggled:!W)):this.isToggled=k25.get(W))};
_.t.onFocus=function(){this.toggleButton.focus()};
_.t.onTap=function(){var W=this.data.command;W&&this.componentBehavior.resolveCommand(W)};
_.t.computeText=function(W,l,V){return this.componentBehavior.getSimpleString(W?V:l)};
_.t.computeIcon=function(W,l,V){return(W=W?V:l)&&W.iconType?_.IJ(W.iconType):""};
uV.prototype.onTap=uV.prototype.onTap;uV.prototype.onFocus=uV.prototype.onFocus;uV.prototype.menuItemIdentifierChanged=uV.prototype.menuItemIdentifierChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],uV.prototype,"componentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],uV.prototype,"data",void 0);
_.a([_.b({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.z("design:type",String)],uV.prototype,"icon",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],uV.prototype,"isToggled",void 0);_.a([_.Aa("tp-yt-paper-toggle-button"),_.z("design:type",Object)],uV.prototype,"toggleButton",void 0);_.a([_.TS("data.menuItemIdentifier"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uV.prototype,"menuItemIdentifierChanged",null);
_.a([_.XI("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uV.prototype,"onFocus",null);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uV.prototype,"onTap",null);_.a([_.Vq({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],uV);
_.Z(uV,"yt-live-chat-toggle-renderer",function(){if(uq2===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;Uy1===void 0&&(Uy1=document.createElement("template"));var f=Uy1;V.call(l,f.content.cloneNode(!0),W.content.firstChild);uq2=W}W=uq2;return W},{mode:_.U("live_chat_enable_sink_wrapper")?2:0});var H_Y=new _.vd("NAVIGATION_PROGRESS_TOKEN");var KOe={},FO2={},G2c=(FO2[UDZ.name]=!0,FO2),kl=function(){var W=_.OD.apply(this,arguments)||this;W._noAccessors=!0;W.tabGesturesIsActive=!1;W.actionRouterIsRoot=!0;W.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"};W.pageTitle="";W.titleSuffix="YouTube";W.unseenNotificationCount=
0;W.hasNavigated=!1;W.hasSetScrollTopForNavigation=!1;W.pagePreparer=null;W.zwiebackInitJobId=0;W.dataUpdatePromise=null;W.loadDepsPromise=_.jy();W.hasPendingNavigation=!1;W.pendingPlayerOnResponseReceivedActions=[];return W};
_.v(kl,_.OD);kl.prototype.attached=function(){b_w(this);document.addEventListener("yt-navigate-cache",_.mz(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var W=vY();W.init();W.dispatchElement=this.hostElement};
var b_w=function(W,l){l=l===void 0?0:l;var V=_.tY().resolve(_.R0(_.fA));if(V)pxH(W,V);else{if(l>=5)throw Error("ll");setTimeout(function(){b_w(W,l+1)},0)}},pxH=function(W,l){l.addEventListener("yt-navigate-start",_.mz(W,W.onYtNavigateStart));
l.addEventListener("yt-navigate-finish",_.mz(W,W.onYtNavigateFinish));l.addEventListener("yt-navigate-error",_.mz(W,W.onYtNavigateError));l.addEventListener("yt-page-data-fetched",_.mz(W,W.onYtPageDataFetched))};
_.t=kl.prototype;_.t.detached=function(){var W=_.tY().resolve(_.fA);W.removeEventListener("yt-navigate-start",_.mz(this,this.onYtNavigateStart));W.removeEventListener("yt-navigate-finish",_.mz(this,this.onYtNavigateFinish));W.removeEventListener("yt-navigate-error",_.mz(this,this.onYtNavigateError));W.removeEventListener("yt-page-data-fetched",_.mz(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.mz(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.t.setPageOffset=function(W,l){W?_.Gt(this.hostElement,"yt-set-page-offset",[W,l]):_.wv(Error("ml"))};
_.t.setPageOffsetForNavigation=function(W,l){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(W,l))};
_.t.onYtNavigateSetPageOffset=function(W,l){this.setPageOffsetForNavigation(l.page,l.offset)};
_.t.getPageOffset=function(){var W=_.GS(this.hostElement).querySelector("#page-manager").getCurrentPage(),l=0;W&&(l=_.Gt(this.hostElement,"yt-get-page-offset",[W])[0]);return l};
_.t.onYtHistoryPop=function(W,l){if(_.ZL("DISABLE_WARM_LOADS"))W.preventDefault(),window.location.reload();else{var V=_.tY().resolve(_.fA);V.hasPendingNavigation()&&W.preventDefault();V.cancelPendingNavigation();_.bj(this.hostElement,"yt-pending-navigation-cancelled");l.errorMsg&&(W=l.errorMsg.split(" - "),l=Error(W[0]),W.length==2&&W[1]&&(_.MJ(l,W[1]),_.Qe(l)),window.location.reload())}};
_.t.onYtHistoryLoad=function(W,l){var V=this;if(_.ZL("DISABLE_WARM_LOADS"))window.location.reload();else{(W=l.endpoint)&&Object.keys(W).length||(W=null);var f=l.historyEntry,r=_.tY().resolve(_.fA),R=_.tY().resolve(_.Bp),y=null;f&&f.rootData&&(y=f.rootData);var P=y&&ov2(y);!y||P||y.filler?W?(r.navigate(W,!0),juN(this,W)):(l.legacyBorder||P||(l.JSC$30157_savedComponentState==null&&y==null?_.Qe(new _.bP("Incomplete history entry",l.forward)):_.Ar(new _.bP("Malformed history entry",l.JSC$30157_savedComponentState,
l.forward,y))),window.location.reload()):(_.W98({isHot:!0}),_.Sy({webInfo:{navigationReason:"h"}}),_.cF8(),_.Wy("srt"),_.Wy("pdc"),this.cancelPendingTasks(),IO5(this,l.forward,y),y.player&&(y.player.loaded=!1),juN(this,W),_.KfI(r,W||{},y,2,{},!1,l).then(function(){V.setPageOffset(R.getCurrentPage(),f.scrollTop||0)}))}};
_.t.initHistoryManager=function(W){if(!this.hasNavigated){this.hasNavigated=!0;var l=_.GS(this.hostElement).querySelector("#page-manager").getCurrentData();W=isNaN(W)?this.getPageOffset():W;var V=_.tY().resolve(_.fA).currentEndpoint;this.replaceState(V,l,W)}};
_.t.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.t.onYtNavigateStart=function(W,l){this.cancelPendingTasks();l.noProgressBar||(W=_.tY().resolve(_.R0(H_Y)))&&W.start();W=this.hasPendingNavigation?null:this.data;var V=_.tY().resolve(_.Bp),f,r,R;_.U("kevlar_use_vimio_behavior")&&!((f=l.endpoint)==null?0:(r=f.commandMetadata)==null?0:(R=r.webCommandMetadata)==null?0:R.ignoreNavigation)&&(f=V.getCurrentPage())&&f.disconnectVisibilityRoot();V.prepareForNavigation(l.pageType,l.endpoint);_.U("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.Tv(1,
"pcl"),_.wY(this.pagePreparer,V.preparePage.bind(V,l.pageType,l.endpoint)));f=this.getPageOffset();this.initHistoryManager(f);l.reload||this.hasPendingNavigation?(_.U("web_enable_delay_shorts_sequence_call")&&l.pageType==="shorts"&&l.reload&&_.FN(this.hostElement,"yt-shorts-reset"),this.replaceState(l.endpoint,W,f)):(W==null?void 0:W.page)==="watch"&&l.pageType==="watch"&&_.U("kevlar_replace_watch_to_watch_history_state")?this.replaceState(l.endpoint,W,f):(W==null?void 0:W.page)!=="shorts"||l.pageType!==
"shorts"||l.endpoint.reelWatchEndpoint.sequenceParams||_.U("short_to_short_back_nav_killswitch")?l.type!="navigate-back"&&l.type!="navigate-forward"&&(l.pageType==="shorts"&&_.FN(this.hostElement,"yt-shorts-reset"),this.saveAndPush(l.url,l.endpoint,W,f)):(_.U("web_enable_delay_shorts_sequence_call")&&(l.endpoint.reelWatchEndpoint.sequenceParams=W==null?void 0:W.cachedSequenceParams,l.endpoint.reelWatchEndpoint.sequenceProvider=W==null?void 0:W.cachedSequenceProvider),this.replaceState(l.endpoint,
W,0));this.hasPendingNavigation=!0};
var i_1=function(W){W.hasPendingNavigation=!1;(W=_.tY().resolve(_.R0(H_Y)))&&W.finish()};
kl.prototype.onYtNavigateError=function(W,l){i_1(this);W=this.get("endpoint.commandMetadata.webCommandMetadata.url",l);var V=_.Si(window.location.href);W&&!V.pbjreload&&(l=l.navigationErrorReason||"10",_.U("kevlar_parent_on_pbjreload")&&(V={csn:_.Wh()},this.get("data.endpoint.clickTrackingParams")&&(V.itct=this.data.endpoint.clickTrackingParams),_.Ue(W,V)),_.PV(_.EJ(W,{pbjreload:l})))};
kl.prototype.onYtNavigateCache=function(W,l){var V=this,f=l.url,r=l.endpoint,R=l.data;W=!!l.miniplayer;l=!!l.skipHistory;if(f&&r&&R){var y=this.getPageOffset(),P=this.data||null;l||this.saveAndPush(f,r,P,y);f=_.KfI(_.tY().resolve(_.fA),r,R,W?4:3,{},W);W&&f.then(function(){V.dataUpdatePromise&&V.dataUpdatePromise.then(function(){var n=_.tY().resolve(_.Bp);V.setPageOffset(n.getCurrentPage(),0)})})}};
kl.prototype.onYtNavigateFinish=function(W,l){var V=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){my4(V,l.fromHistory)})};
var my4=function(W,l){i_1(W);if(W.pendingPlayerOnResponseReceivedActions){for(var V=_.L(W.pendingPlayerOnResponseReceivedActions),f=V.next();!f.done;f=V.next())_.XY(f.value,W.hostElement);W.pendingPlayerOnResponseReceivedActions=[]}V=_.tY().resolve(_.Bp);l||!W.hasNavigated||_.U("web_disable_scroll_on_navigate_finish")||((l=V.getCurrentPage())?l.is==="ytd-shorts"||W.tabGesturesIsActive||W.setPageOffsetForNavigation(l,0):_.Qe(Error("nl")));_.yq(function(){_.yq(function(){_.Wy("pda")})})};
kl.prototype.onYtNavigate=function(W){if(!W.detail.endpoint){var l=new _.bP("Error: Missing yt-navigate endpoint from target:",W.target,W.target.nodeName);_.wv(l)}if(l=_.U("cold_missing_history"))l=vY(),l.init(!1),l=!(l.browserHistory.boundHistoryReplaceState&&l.browserHistory.boundHistoryPushState);if(l){_.Qj("DISABLE_WARM_LOADS",!0);l=new _.bP("Failed to initialize history manager",this.getDebugString());var V=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
V?_.Qe(l):_.wv(l)}l=W.detail.endpoint;var f,r;_.U("debug_forward_web_query_parameters")&&((f=l.commandMetadata)==null?0:(r=f.webCommandMetadata)==null?0:r.url)&&(l=JSON.parse(JSON.stringify(l)),l.commandMetadata.webCommandMetadata.url=_.fAq(l.commandMetadata.webCommandMetadata.url,window.location.search));W={type:0,command:l,form:{params:W.detail.params,tempData:W.detail.tempData||{},requestType:W.detail.type,createScreenConfig:W.detail.createScreenConfig,reload:W.detail.reload?W.detail.reload:!1,
requestForm:W.detail}};_.U("kevlar_yt_navigate_command_handler")?(f=_.tY().resolve(_.s6),W.form.skipDefaultElement=!0,f.resolveCommand(l,{form:W.form})):this.handleNavigate(W)};
kl.prototype.handleNavigate=function(W){this.hasSetScrollTopForNavigation=!1;var l=_.tY().resolve(_.fA),V=W.form||{};l.navigate(W.command,V.reload,V.params,V.tempData,V.requestType,V.createScreenConfig,V.ignoreConfirmation,V.requestForm)&&juN(this,W.command,V.tempData)};
kl.prototype.onYtPageDataFetched=function(W,l){try{_.Bb9().reset();this.data=l.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.tY().resolve(_.Bp).updatePageData(this.data);if(!_.U("web_service_params_response_processor")){var V=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);V&&P02(V);var f=this.get("response.responseContext.serviceTrackingParams",
this.data);f&&P02(f)}var r=this.get("playerResponse.onResponseReceivedActions",this.data);r&&(r=Xx2(this,r));r&&_.og(this.hostElement,r,this.hostElement);var R=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),y=this.get("response.responseContext.consistencyTokenJar",this.data);if(R||y){var P=_.UAn(),n=(0,_.MC.getValues)(P.tokenJars);R&&P.replace(n,R);y&&P.replace(n,y)}}catch(B){_.wv(B)}};
var juN=function(W,l,V){try{W.onYtEndpointChangeHandler(l,V)}catch(f){_.wv(f)}};
_.t=kl.prototype;_.t.onYtEndpointChangeHandler=function(){};
_.t.setPageTitle=function(W){W=(this.pageTitle=W)?W+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+W};
_.t.onYtUpdateTitle=function(W,l){this.setPageTitle(l)};
_.t.setUnseenNotificationCount=function(W){this.unseenNotificationCount=W;this.setPageTitle(this.pageTitle)};
_.t.handleUpdateNotificationsUnseenCountAction=function(W){_.k(W,lPw)&&((W=_.k(W,lPw).unseenCount)?this.setUnseenNotificationCount(W):this.setUnseenNotificationCount(0))};
_.t.handleClearCookieAction=function(W){var l;(W=(l=_.k(W,Sq4))==null?void 0:l.cookieName)&&_.vH6(W)};
_.t.onYtUpdateUnseenNotificationCount=function(W,l){this.setUnseenNotificationCount(l)};
_.t.loadData=function(W){var l=this;this.loadDepsPromise.then(function(){var V=_.tY().resolve(_.R0(_.fA));V||_.wv(Error("ol"));if(W&&W.response){if(!W.endpoint){var f=_.yW(window.document.location.href)||"/",r="";if(f==="/"||f.startsWith("/?"))r="WEB_PAGE_TYPE_BROWSE";W.endpoint={commandMetadata:{webCommandMetadata:{url:f,webPageType:r,rootVe:3854}}}}_.KfI(V,W.endpoint,W,5,{})}else W.endpoint?V.navigate(W.endpoint):V.navigate(_.Sb);_.w8.cancelJob(l.zwiebackInitJobId);l.zwiebackInitJobId=_.w8.addLowPriorityJob(Lrc)})};
var vY=function(){return _.tY().resolve(_.qz)};
kl.prototype.getDebugString=function(){return vY().getDebugString()};
kl.prototype.getThirdPartyManipulationSuspected=function(){return vY().getThirdPartyManipulationSuspected()};
kl.prototype.replaceState=function(W,l,V){vY().saveAndReplace(W,l,V)};
kl.prototype.saveAndPush=function(W,l,V,f){vY().saveAndPush(W,l,V,f)};
var ov2=function(W){return _.k(W.endpoint,_.Bh)||_.k(W.endpoint,_.N$)?!0:!W||isNaN(W.expirationTime)?!1:(0,_.tv)()>W.expirationTime},IO5=function(W,l,V){var f=W.get("response.trackingParams",V),r=_.$G(),R=_.Wh();
if(f&&r&&R&&(f=W.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",V),!f&&V.rootVe&&(f=V.rootVe),r=l?"forwardButton":"backButton",l=W.get("playerResponse.topbar.desktopTopbarRenderer."+r+".buttonRenderer.command.clickTrackingParams",W.data),W=W.get("response.topbar.desktopTopbarRenderer."+r+".buttonRenderer.command.clickTrackingParams",W.data),l=(W=l||W)?_.zG(W):void 0,W=_.Qq(),r=[_.jy(V)],_.Ob(W,f,l,{dataPromises:r,csnToClone:V.csn}),V.graftedVes))for(V=
_.L(V.graftedVes),f=V.next();!f.done;f=V.next())_.aH(W,f.value)};
kl.prototype.onStoreGraftedVeAction=function(W){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(W)):_.Qe(Error("pl"))};
var Xx2=function(W,l){return l.filter(function(V){for(var f in V)if(G2c[f])return W.pendingPlayerOnResponseReceivedActions.push(V),!0;return!1})};
_.rc.Object.defineProperties(kl.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
kl.prototype.onStoreGraftedVeAction=kl.prototype.onStoreGraftedVeAction;kl.prototype.loadData=kl.prototype.loadData;kl.prototype.onYtUpdateUnseenNotificationCount=kl.prototype.onYtUpdateUnseenNotificationCount;kl.prototype.handleClearCookieAction=kl.prototype.handleClearCookieAction;kl.prototype.handleUpdateNotificationsUnseenCountAction=kl.prototype.handleUpdateNotificationsUnseenCountAction;kl.prototype.setUnseenNotificationCount=kl.prototype.setUnseenNotificationCount;
kl.prototype.onYtUpdateTitle=kl.prototype.onYtUpdateTitle;kl.prototype.setPageTitle=kl.prototype.setPageTitle;kl.prototype.onYtEndpointChangeHandler=kl.prototype.onYtEndpointChangeHandler;kl.prototype.onYtPageDataFetched=kl.prototype.onYtPageDataFetched;kl.prototype.handleNavigate=kl.prototype.handleNavigate;kl.prototype.onYtNavigate=kl.prototype.onYtNavigate;kl.prototype.onYtNavigateFinish=kl.prototype.onYtNavigateFinish;kl.prototype.onYtNavigateCache=kl.prototype.onYtNavigateCache;
kl.prototype.onYtNavigateError=kl.prototype.onYtNavigateError;kl.prototype.onYtNavigateStart=kl.prototype.onYtNavigateStart;kl.prototype.cancelPendingTasks=kl.prototype.cancelPendingTasks;kl.prototype.initHistoryManager=kl.prototype.initHistoryManager;kl.prototype.onYtHistoryLoad=kl.prototype.onYtHistoryLoad;kl.prototype.onYtHistoryPop=kl.prototype.onYtHistoryPop;kl.prototype.onYtNavigateSetPageOffset=kl.prototype.onYtNavigateSetPageOffset;kl.prototype.setPageOffset=kl.prototype.setPageOffset;
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],kl.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],kl.prototype,"data",void 0);_.a([_.XI("yt-navigate-set-page-offset"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],kl.prototype,"onYtNavigateSetPageOffset",null);
_.a([_.XI("yt-history-pop"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],kl.prototype,"onYtHistoryPop",null);_.a([_.XI("yt-history-load"),_.z("design:type",Function),_.z("design:paramtypes",[Event,_.NzL]),_.z("design:returntype")],kl.prototype,"onYtHistoryLoad",null);_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],kl.prototype,"onYtNavigate",null);
_.a([_.XI("yt-update-title"),_.z("design:type",Function),_.z("design:paramtypes",[Event,String]),_.z("design:returntype")],kl.prototype,"onYtUpdateTitle",null);_.a([_.XI("yt-update-unseen-notification-count"),_.z("design:type",Function),_.z("design:paramtypes",[Event,Number]),_.z("design:returntype")],kl.prototype,"onYtUpdateUnseenNotificationCount",null);_.a([_.a1()],kl);KOe.YtdAppBehavior=[_.hp.YtActionHandlerBehavior,kl.prototype];var HY=function(){var W=_.OD.apply(this,arguments)||this;W._noAccessors=!0;return W};
_.v(HY,_.OD);HY.prototype.ready=function(){var W=this;_.GS(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){W.onChange_()})};
HY.prototype.dataChanged_=function(){_.GS(this.hostElement).querySelector("#checkbox").checked=!1};
HY.prototype.onChange_=function(){var W=_.GS(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.FN(this.hostElement,"yt-dismissal-reason-"+W,this.data.feedbackToken)};
HY.prototype.dataChanged_=HY.prototype.dataChanged_;_.a([_.b(),_.z("design:type",Object)],HY.prototype,"data",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],HY.prototype,"dataChanged_",null);_.a([_.a1()],HY);var TnH=[HY.prototype];var KH=function(){var W=_.OD.apply(this,arguments)||this;W.timeoutJobId=0;W.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return W};
_.v(KH,_.OD);KH.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
KH.prototype.startTimeout=function(){var W=this,l=this.data&&this.data.displayDurationSeconds;l&&!this.timeoutJobId&&(this.timeoutJobId=_.pS(_.w8,function(){_.Gt(W.hostElement,"yt-close-popup-action",[W.is]);W.timeoutJobId=0},l*1E3))};
KH.prototype.cancelTimeout=function(){_.w8.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
KH.prototype.ytdHatsSurveyBehaviorDataChanged=KH.prototype.ytdHatsSurveyBehaviorDataChanged;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],KH.prototype,"ytActionHandlerBehavior",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KH.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.a([_.a1()],KH);var wxe=[_.hp.YtActionHandlerBehavior,KH.prototype];var A8Y=function(W,l){var V;return((V=W.prefixMapping)==null?0:V[l])?W.prefixMapping[l]:W.SHARED_RENDERERS_.hasOwnProperty(l)?"yt":W.prefix},Fu={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}};Fu.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.U("kevlar_mealbar_above_player"),modern:_.U("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"}};
Fu.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};Fu.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};Fu.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
Fu.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)"}};
Fu.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};
Fu.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};
Fu.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};
Fu.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};Fu.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"}};
Fu.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};Fu.TOAST={component:null,properties:{}};var QuL=new function(W,l,V){this.supportedPopups=W;this.navigationEndpointPopupMap=l;this.popupTypeMap=V;this.supportedPopups=W;this.navigationEndpointPopupMap=l;this.popupTypeMap=V}({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:_.U("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"}),Mo4=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$19900_popupConfig=Fu;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 Z_w=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.CZ.getInstance()},GC=function(W,l){var V=W.pageNameToElement.get(l);
if(!V){switch(l){case "watch":var f=_.U("web_watch_force_learning_journey_for_testing")?_.XE("ytd-watch-learning-journey"):_.U("kevlar_watch_fixie")?_.XE("ytd-watch-fixie"):_.U("kevlar_watch_grid")?_.XE("ytd-watch-grid"):_.XE("ytd-watch-flexy");break;case "learning_journey_watch":f=_.XE("ytd-watch-learning-journey");break;case "shorts":f=_.XE("ytd-shorts");break;case "search":f=_.XE("ytd-search");break;case "channel":f=_.XE("ytd-browse");f.pageSubtype="channels";break;case "trending":f=_.XE("ytd-browse");
f.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":f=
_.XE("ytd-browse");f.pageSubtype=l;break;case "browse":f=_.XE("ytd-browse");break;default:_.Qe(new _.bP("Error getting page element for type",l))}V=f;W.pageNameToElement.set(l,V)}return V};
Z_w.prototype.preparePage=function(W,l,V){V&&(W=_.M$(V)||W);if(W!=="watch"&&W!=="learning_journey_watch"){var f=this.elementPoolPopulator,r=W;r!=f.targetPage_&&f.pendingPages_.indexOf(r)>-1&&(f.targetPage_&&(f.pendingPages_.unshift(f.targetPage_),f.abort()),w01(f,r),_.ZlZ(f,r))}if((f=GC(this,W))||!_.k(V,_.x_)){f.isAttached||f===l||(f.hidden=!0);if(!f.data&&(W!=="watch"&&W!=="learning_journey_watch"||!_.U("swatcheroo_page_pool_dont_provide_filler_data"))){var R;if(W=(R=_.M4("FILLER_DATA",{})[W])==
null?void 0:R.response)f.data=W}return f}};var O_7=function(W){this.JSC$32051_clientRoot=W;this.playlistHandlerActionMap={"yt-add-to-playlist-command":J25,"yt-end-playlist-command":De1,"yt-recover-playlist-command":u3s,"yt-refresh-playlist-command":HP1,"yt-playlist-remove-videos-action":kmL};_.qJ(_.eC.getInstance(),this.playlistHandlerActionMap,this.JSC$32051_clientRoot);xPZ()},aOc;var bV=function(W,l,V){this.apiKey=W;this.endpoint=l;this.confidenceThreshold=V===void 0?.5:V;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=l==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||l==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
l==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||l==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new xN2};
_.t=bV.prototype;
_.t.start=function(W){if(this.state===0)if(this.isOnline()){W.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=W.supportsHttpHeadersOverwriteParam);W.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=W.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.$u("voice_assistant");_.l_("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=W.languageCode||"en-US";this.supportsCrossDomainXhr=W.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=W.youtubeAssistantRequest||null;this.listeningHandler=W.listeningHandler||this.listeningHandler;this.audioDetectedHandler=W.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=W.stopHandler||this.stopHandler;this.completeHandler=W.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=W.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=W.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
W.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=W.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=W.accessToken;this.additionalHeaders=W.additionalHeaders||{};var l;this.prefetchResponseTimeoutMs=(l=W.prefetchResponseTimeoutMs)!=null?l:this.prefetchResponseTimeoutMs;zTL(this);this.startAudio();Nn1(this)}else this.errorHandler("OFFLINE")};
_.t.stop=function(W){var l=W===void 0?{}:W;W=l.logCancel===void 0?!0:l.logCancel;var V=l.logMicClosed===void 0?!0:l.logMicClosed;var f=l.handleError===void 0?!0:l.handleError;l=l.handleStop===void 0?!0:l.handleStop;this.state!==0&&(W&&pH("voz_cx"),oI(this,{logMicClosed:V,handleStop:l}),f&&this.errorHandler("ABORTED"))};
_.t.getState=function(){return this.state};
_.t.isSupported=function(){return!0};
_.t.stopAudio=function(W){(W===void 0||W)&&pH("voz_mf")};
_.t.startAudio=function(){pH("voz_vp");return _.jy(null)};
var Yp5=function(W,l){W.channelOpen&&(W.state!==2&&(W.state=2,pH("voz_ss"),W.listeningHandler()),l=new Uint8Array(l),l='{ "audioIn": "'+_.Xw(l)+'" }',W.channel.send(l))},oI=function(W,l){var V=l===void 0?{}:l;
l=V.logMicClosed===void 0?!0:V.logMicClosed;V=V.handleStop===void 0?!0:V.handleStop;W.vozEndOfDataTimeout>-1&&(clearTimeout(W.vozEndOfDataTimeout),W.vozEndOfDataTimeout=-1);xyw(W);W.stopAudio(l);W.channel&&(W.channelOpen=!1,W.manuallyClosedChannel=!0,W.channel.close(),W.channel=void 0);W.transcribedSpeechResults=[];W.state=0;V&&W.stopHandler()},zTL=function(W){var l={httpHeadersOverwriteParam:W.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},W.additionalHeaders,W.accessToken&&W.isUsingVoz?{Authorization:"Bearer "+W.accessToken}:{"x-goog-api-key":W.apiKey}),supportsCrossDomainXhr:W.supportsCrossDomainXhr};W.channel=new pw(W.endpoint,l);W.channel.open();_.YJ(W.channel,"w",function(){var V=W.channel,f=V.send,r=W.isUsingVoz?"PLACEHOLDER":"example";r={config:{dialogStateIn:{languageCode:W.languageCode},deviceConfig:{deviceId:r,deviceModelId:r},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!W.isUsingVoz)r.config.requestType=4;else if(W.isUsingVoz&&W.youtubeAssistantRequest){var R=JSON.stringify(W.youtubeAssistantRequest);r.config.internalIn={youtubeAssistantS3InputJson:R}}f.call(V,r);W.channelOpen=!0;W.manuallyClosedChannel=!1});
_.YJ(W.channel,"x",function(){W.manuallyClosedChannel||(W.channelOpen=!1,W.channel=void 0,oI(W))});
_.YJ(W.channel,"z",function(V){if(V.data){xyw(W);for(var f=0;f<V.data.length;f++){var r=W,R=V.data[f],y=R.speechResults;if(y)a:{var P=[];R=[];var n=!1;y=_.L(y);for(var B=y.next();!B.done;B=y.next()){B=B.value;if(B.noSpeech){oI(r);r.errorHandler("NO_SPEECH");break a}B.transcript!==void 0&&B.stability!==void 0&&(B.stability<r.confidenceThreshold&&(n=!0),n?R.push(B.transcript):P.push(B.transcript))}if(P.length!==0||R.length!==0)P=P.join(" "),R=R.join(" "),r.receivedEndOfUtterance&&!r.isUsingVoz?r.isUsingVoz||
r.completeHandler([P,R]):(n=r,y=P,B=R,pH("voz_sf"),n.transcriptionUpdateHandler(y,B),n.transcribedSpeechResults=[y,B]),r.receivedEndOfUtterance&&(pH("voz_eou"),r.transcriptionCompleteHandler([P,R]),r.isUsingVoz&&(r.prefetchResponseTimeoutMs===0?oI(r,{logMicClosed:!1,handleStop:!0}):r.prefetchResponseTimeoutMs>0&&eTw(r)))}else r.isUsingVoz&&(R==null?0:R.internalOut)?(R=JSON.parse(R.internalOut.youtubeAssistantS3OutputJson),R.userHasOptedInToVaa||R.vaaConsent?r.vaaConsentUpdateHandler(!!R.userHasOptedInToVaa,
!!R.vaaConsent):(qpw(r),R&&(P=r.transcribedSpeechResults,pH("voz_rqf"),r.completeHandler(P,R)))):R.eventType==="END_OF_UTTERANCE"?r.receivedEndOfUtterance=!0:(pH("voz_err"),r.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Qe(Error("ql")))}}});
_.YJ(W.channel,"y",function(V){oI(W);switch(V.status){case 1:V="WEBCHANNEL_NETWORK_ERROR";break;case 2:V="WEBCHANNEL_SERVER_ERROR";break;default:V="WEBCHANNEL_UNKNOWN_ERROR"}W.errorHandler(V);W.logError(Error(V))})};
bV.prototype.logError=function(W){_.wv(W)};
bV.prototype.isOnline=function(){return!0};
var eTw=function(W){qpw(W);W.prefetchResponseSetTimeoutId=setTimeout(function(){oI(W,{logMicClosed:!1,handleStop:!0})},W.prefetchResponseTimeoutMs)},qpw=function(W){W.prefetchResponseSetTimeoutId>-1&&(clearTimeout(W.prefetchResponseSetTimeoutId),W.prefetchResponseSetTimeoutId=-1)},Nn1=function(W){xyw(W);
W.noResponseReceivedTimeout=window.setTimeout(function(){oI(W);W.errorHandler("NO_SPEECH")},11E3)},xyw=function(W){W.noResponseReceivedTimeout>-1&&(window.clearTimeout(W.noResponseReceivedTimeout),W.noResponseReceivedTimeout=-1)},pH=function(W){_.Wy(W,void 0,"voice_assistant")};var jI=function(){bV.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.v(jI,bV);jI.prototype.isSupported=function(){return Kr1()};
jI.prototype.startAudio=function(){var W=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.eM(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(f){hTN(W,f)};
this.processor.connect(this.audioContext.destination);var l=function(f){W.stream=f;if(!W.audioContext)return _.jy(null);f=W.audioContext.createMediaStreamSource(f);W.processor&&f.connect(W.processor);return _.jy(null)},V={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?l(this.stream):(V=navigator.mediaDevices.getUserMedia(V))?V.then(l).catch(function(f){oI(W);f.name&&f.name==="NotAllowedError"?W.errorHandler("NO_MICROPHONE_PERMISSION"):(W.errorHandler("AUDIO_ERROR"),W.logError(f));return _.eM(null)}):(oI(this),this.errorHandler("AUDIO_ERROR"),_.Qe(Error("rl")));
return bV.prototype.startAudio.call(this)};
jI.prototype.stopAudio=function(W){W=W===void 0?!0:W;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(l){l.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;bV.prototype.stopAudio.call(this,W)};
jI.prototype.isOnline=function(){return navigator.onLine};
var hTN=function(W,l){if(W.audioContext)if(window.OfflineAudioContext){var V=W.audioContext.sampleRate,f=l.inputBuffer.getChannelData(0);l=new window.OfflineAudioContext(1,f.length,16E3);for(var r=l.createBuffer(1,f.length,V),R=r.getChannelData(0),y=0,P=0;P<f.length;P++)R[P]=f[P],y+=R[P]*R[P];!W.audioDetected&&Math.sqrt(y/f.length)>.01&&(W.audioDetected=!0,W.audioDetectedHandler());f=l.createBufferSource();f.buffer=r;f.connect(l.destination);f.start(0);l.oncomplete=function(n){n=n.renderedBuffer.getChannelData(0);
for(var B=Math.floor(16384E3/V),d=new Int16Array(B),J=0;J<B;++J)d[J]=Math.max(-1,Math.min(1,n[J]))*32767;Yp5(W,d.buffer)};
l.startRendering()}else SpL(W,l)},SpL=function(W,l){var V=W.audioContext.sampleRate,f=l.inputBuffer.getChannelData(0),r=Math.floor((V+8E3)/16E3);
V=f.length/r;l=new Float32Array(V);for(var R=0;R<V;++R)l[R]=f[R*r];f=new Int16Array(V);for(r=0;r<V;++r)f[r]=Math.max(-1,Math.min(1,l[r]))*32767;Yp5(W,f.buffer)};var Evw={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var $yN=function(){this.JSC$19965_audioEnabled=!0;this.audioFeedbackHolder={}};
$yN.prototype.isPlaying=function(W){return W.currentTime>0&&!W.paused&&!W.ended&&W.readyState>2};
var Wn5=function(W){for(var l=_.L(Object.values(Evw)),V=l.next();!V.done;V=l.next())V=V.value,W.audioFeedbackHolder[V]=new Audio,W.audioFeedbackHolder[V].src="/s/search/audio/"+V+".mp3",W.audioFeedbackHolder[V].load()},II=function(W,l){if(W.JSC$19965_audioEnabled!==!1&&l in W.audioFeedbackHolder){for(var V=_.L(Object.values(W.audioFeedbackHolder)),f=V.next();!f.done;f=V.next())f=f.value,W.isPlaying(f)&&f.pause();
W.audioFeedbackHolder[l].currentTime=0;W.audioFeedbackHolder[l].play().catch(function(){})}};var loL=function(W,l){var V=this;this.store=W;this.service=l;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){V.setState("offline");V.stop()};
this.audioPlayer=new $yN;var f;(f=this.audioPlayer)==null||Wn5(f)};
_.t=loL.prototype;_.t.getService=function(){return this.service};
_.t.isEnabled=function(){return!!this.service};
_.t.isSupported=function(){var W;return(W=this.service)==null?void 0:W.isSupported()};
_.t.start=function(){var W=this,l,V,f,r,R,y,P,n,B,d,J,D,u;return _.g(function(H){switch(H.nextAddress){case 1:W.store.dispatch(RE1("",""));if(!navigator.onLine)return W.setState("offline"),H.return();window.addEventListener("offline",W.handleOfflineEvent);W.stream=null;if(!W.permissionsSupported){H.jumpTo(2);break}_.HG(H,3);return H.yield(V91(W),5);case 5:l=H.yieldResult;if(!l)return(V=W.audioPlayer)==null||II(V,"failure"),H.return();W.service.stream=W.stream;W.setState("listening");_.qL(H,2);break;
case 3:_.pc(H),W.permissionsSupported=!1;case 2:f={context:_.plg(_.LR())},f.youtubeAssistantParams={searchParams:{inlineSearchResponse:W.enableInlineSearchResponse}},r=function(p,X){W.store.dispatch(tgw("transcribing"));W.store.dispatch(RE1(p,X))},R=function(){var p;
(p=W.audioPlayer)==null||II(p,"open");W.setState("listening")},y=function(){W.setState("transcribing")},P=function(p){W.setErrorState(p)},n=function(p,X){var w;
(w=W.audioPlayer)==null||II(w,"success");X&&(_.U("kevlar_voice_search_inline_search")&&(W.responseProcessor=_.tY().resolve(_.M_z),W.responseProcessor&&(w=X.navigationAction,p=X.prefetchedSearchResponse,w&&p&&(w=(new _.H27).JSC$13127_getStoreKey(w),_.lK(W.responseProcessor,p,w)))),W.JSC$19983_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",X))},B=function(){window.removeEventListener("offline",W.handleOfflineEvent)},d=_.A5F(!1),J=d.Authorization!=null,D=W.enableFirstPartyAuth||
W.enableFPAForSignedInUsers&&J?d:{"X-Goog-Visitor-Id":d["X-Goog-Visitor-Id"]},u={completeHandler:n,
errorHandler:P,listeningHandler:R,audioDetectedHandler:y,stopHandler:B,transcriptionUpdateHandler:r,youtubeAssistantRequest:f,languageCode:fo1(),additionalHeaders:D,supportsCrossDomainXhr:W.enableFirstPartyAuth||W.enableFPAForSignedInUsers&&J,supportsHttpHeadersOverwriteParam:!W.disableHttpHeadersOverwrite},W.service.start(u),_.ju(H)}})};
_.t.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.t.reset=function(){this.store.dispatch(_.GT({type:"RESET_VOICE_SEARCH_STATE"}))};
_.t.setState=function(W){this.store.dispatch(tgw(W))};
_.t.setErrorState=function(W){switch(W){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var l;(l=this.audioPlayer)==null||II(l,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)V91(this);else{var V;(V=this.audioPlayer)==null||II(V,"failure");this.setState("permission-denied")}break;case "ABORTED":var f;(f=this.audioPlayer)==null||II(f,"no_input");break;default:var r;(r=this.audioPlayer)==
null||II(r,"no_input");this.setState("timeout")}};
var V91=function(W){var l,V;return _.g(function(f){switch(f.nextAddress){case 1:return f.yield(navigator.permissions.query({name:"microphone"}),2);case 2:l=f.yieldResult;if(l.state==="granted")return f.return(!0);if(l.state==="denied")return W.setState("permission-denied"),f.return(!1);W.setState("permission");V={audio:{sampleSize:16,channelCount:1},video:!1};_.HG(f,3);return f.yield(navigator.mediaDevices.getUserMedia(V),5);case 5:return W.stream=f.yieldResult,f.return(!0);case 3:return _.pc(f),
W.setState("permission-denied"),f.return(!1)}})},fo1=function(){var W=_.M4("INNERTUBE_CONTEXT_HL"),l=_.M4("INNERTUBE_CONTEXT_GL");
return W.indexOf("-")>-1?W:W+"-"+l};var rTL=function(W,l,V){loL.call(this,l,V);this.JSC$19983_actionRouter=W;this.enableInlineSearchResponse=_.U("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.U("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.U("kevlar_voice_search_enable_fpa_signedin_users")},RgY;
_.v(rTL,loL);
var t9w=function(){if(!RgY){var W="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.U("kevlar_voice_search_auth_enabled")||_.U("kevlar_voice_search_use_yt_endpoint")?W="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.U("kevlar_voice_search_use_fp_endpoint")&&(W="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");RgY=
new rTL(_.eC.getInstance(),_.DJ(),new jI(_.M4("VOZ_API_KEY"),W,.5))}return RgY};var s42=function(W){this.JSC$19987_clientRoot=W;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$19987_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)]]));W=_.L(this.eventListeners);for(var l=W.next();!l.done;l=W.next()){var V=_.L(l.value);l=V.next().value;V=V.next().value;V=_.L(V);for(var f=V.next();!f.done;f=V.next()){var r=
_.L(f.value);f=r.next().value;r=r.next().value;l.addEventListener(f,r)}}_.qJ(_.eC.getInstance(),this.autonavPauseActionMap,this.JSC$19987_clientRoot)},LnH,yTZ=function(W){return _.U("kevlar_autonav_popup_filtering")?(W=_.Ja(W))?W.hasAttribute("prevent-autonav"):!0:!0};
_.t=s42.prototype;_.t.onIronOverlayOpened=function(W){yTZ(W)&&(this.autonavPauseReasons.overlayOpen=!0,iV(this))};
_.t.onIronOverlayClosed=function(W){yTZ(W)&&(this.autonavPauseReasons.overlayOpen=!1,iV(this))};
_.t.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;iV(this)};
_.t.onYtAutonavPauseBlur=function(){var W=this;_.w8.addJob(function(){W.isInBackground()||(W.autonavPauseReasons.inputBoxFocus=!1,iV(W))},8,0)};
_.t.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;iV(this)};
_.t.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;iV(this)};
_.t.onYtAutonavPauseScroll=function(){var W=_.tY().resolve(_.Bp);W.isOnWatch()&&(W=W.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=W.getBoundingClientRect().top<-200,iV(this))};
_.t.onYtAutonavPauseUserEngagement=function(W){var l=this;if(_.U("user_engagement_enable_autoplay_pause_feature")){var V=Number(W.lowEngagementThresholdMs);isNaN(V)||V<=0||W.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.Zq("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.tY().resolve(_.OZ),_.sL()<V?_.pS(_.w8,function(){_.Zq("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.hc1()?(this.userEngagementCsn=_.Wh(),_.pS(_.w8,function(){_.Zq("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
l.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,iV(this)):_.Zq("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.Zvn(Error("sl`"+JSON.stringify(W)))};
_.t.onYtAutonavPausePlayer=function(W){this.autonavPauseReasons.requestedByPlayer=!!W.detail;iV(this)};
_.t.onYtAutonavVisibilityChanged=function(){var W=this,l,V,f;return _.g(function(r){if(r.nextAddress==1)return(l=_.Jy())?r.yield(l.getPlayerPromise(),2):r.return();V=r.yieldResult;f=V.isMuted()||V.getVolume()===0;W.autonavPauseReasons.backgroundAndMute=W.isInBackground()&&f;iV(W);_.ju(r)})};
_.t.onYtAutonavPausePlayerEnded=function(){_.tY().resolve(_.OZ);var W=144E5;_.U("user_engagement_enable_autoplay_pause_feature")||_.U("is_part_of_any_user_engagement_experiment")||(W=45E5);this.autonavPauseReasons.longIdle=_.sL()>W;gFc(this);iV(this)};
_.t.onYtUserActivity=function(){var W=this;this.autonavPauseReasons.userEngagement&&(_.pS(_.w8,function(){_.Zq("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",W.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,iV(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.pS(_.w8,function(){_.Zq("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",W.userEngagementCsn);_.Ts()}),this.autonavPauseReasons.youthereLactExperiment=!1,iV(this));
this.autonavPauseReasons.longIdle&&!_.U("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,iV(this))};
_.t.isInBackground=function(){var W=window.document.visibilityState;return!(!W||W==="visible")};
var iV=function(W){for(var l=!1,V=_.L(Object.values(W.autonavPauseReasons)),f=V.next();!f.done;f=V.next())f=f.value,l=l||f;l?_.IH.getInstance().pause(W.autonavPauseReasons):(W=_.IH.getInstance(),W.autonavState_==3?(W.setState(2,!1,!1),W.autonavPauseReason_=void 0):W.autonavState_==1&&(W.disabledAutonavPauseReason_=void 0))},gFc=function(W){var l=!1;
if(_.U("enable_autoplay_pause_by_lact")){_.tY().resolve(_.OZ);l=_.yS("autoplay_pause_by_lact_sec")*1E3;var V=_.yS("autoplay_pause_by_lact_sampling_fraction");(l=_.sL()>=l&&Math.random()<V)&&!_.hc1()&&(_.pS(_.w8,function(){_.Zq("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),l=!1)}l!==W.autonavPauseReasons.youthereLactExperiment&&(W.autonavPauseReasons.youthereLactExperiment=l)&&(W.userEngagementCsn=_.Wh(),_.pS(_.w8,function(){_.Zq("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",W.userEngagementCsn)}));
W.autonavPauseReasons.userEngagement&&_.pS(_.w8,function(){_.Zq("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",W.userEngagementCsn)})};
s42.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.Zq("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.Ts(),this.autonavPauseReasons.youthereLactExperiment=!1,iV(this));this.autonavPauseReasons.userEngagement&&(_.Zq("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,iV(this))};
s42.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var mh=function(){var W=_.I.apply(this,arguments)||this;W.miniGuideVisible=!1;W.guideOpened=_.U("disable_initial_guide_state_fix")?!1:W.canFitPersistentGuide(W.initialBodyClientWidth);W.guideUserStateOpened=W.getInitialGuideUserStateOpened();W.isFullscreenShorts=!1;W.miniGuideWidthThreshold=_.yS("kevlar_mini_guide_width_threshold",791);W.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");W.persistentGuideBlockedPagesPatterns=
"^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");W.persistentGuideBlockedPagePathRegex=new RegExp(W.persistentGuideBlockedPagesPatterns.join("|"));W.animationTransitionDuration=0;W.lateDataResolver=_.yH();W.initialGuideDataFetchFailed=!1;W.initialLoad=!0;W.guideRenderers=new Set;W.isMouseOverGuide=!1;W.sessionUserManuallyExpandedGuideState=!1;W.actionMap={"yt-start-loading-watch":"startLoadingWatch",
"yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return W};
_.v(mh,_.I);_.t=mh.prototype;_.t.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.t.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.t.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.t.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.t.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.t.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.t.ready=function(){_.tY().addProvider({provide:_.kM,useValue:this.hostElement})};
_.t.attached=function(){var W=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.mz(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.mz(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.mz(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.mz(this,this.onYtGuideShow));_.V9(this,function(){W.animationTransitionDuration=200})};
_.t.detached=function(){document.removeEventListener("yt-navigate-finish",_.mz(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.mz(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.mz(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.mz(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.mz(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.mz(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.mz(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.t.getData=function(){return this.data};
_.t.load=function(){var W=this,l,V,f,r;return _.g(function(R){switch(R.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=W.lateDataResolver.resolve.bind(W),R.return(W.lateDataResolver.promise);if(window.ytInitialGuideData)return l=_.yH(),l.resolve(window.ytInitialGuideData),R.return(l.promise);f=!1;_.HG(R,2);return R.yield(W.fetchGuideData(),4);case 4:V=R.yieldResult;_.qL(R,3);break;case 2:r=_.pc(R),r.message==="Returned error"&&(f=
!0);case 3:if(V)return R.return(V);W.onYtGuideClose();f||(W.initialGuideDataFetchFailed=!0);return R.return(W.lateDataResolver.promise)}})};
_.t.fetchGuideData=function(){var W=this,l,V,f,r,R,y,P;return _.g(function(n){if(n.nextAddress==1)return l=_.tY(),W.guidePromise||(V=l.resolve(_.Vb),W.guidePromise=_.Lv(V,LH7)),n.yield(W.guidePromise,2);if(n.nextAddress!=3)return f=n.yieldResult,r=l.resolve(_.wh),n.yield(r(),3);(R=n.yieldResult)&&((y=f)==null?void 0:(P=y.responseContext)==null?void 0:P.maxAgeSeconds)!==0&&R.put("service:guide:fallback",new _.Nz({innertubeResponse:f}));return n.return(f)})};
_.t.initializeGuideDataIfEmpty=function(){var W=this,l,V;return _.g(function(f){if(f.nextAddress==1){if(!W.initialGuideDataFetchFailed||W.data)return f.return();_.HG(f,2);return f.yield(W.fetchGuideData(),4)}if(f.nextAddress!=2)return(l=f.yieldResult)&&W.lateDataResolver.resolve(l),_.qL(f,0);V=_.pc(f);_.Qe(V);_.ju(f)})};
_.t.initializeGuideData=function(){var W=this,l;return _.g(function(V){switch(V.nextAddress){case 1:return _.kP(Ng5(),{mainAppWeb:_.nG()}),_.HG(V,2),V.yield(W.load(),4);case 4:W.data=V.yieldResult;_.qL(V,3);break;case 2:_.pc(V),_.v0(Ng5(),"FAILURE");case 3:l=W.data&&W.data.items&&W.data.items.length>0?"SUCCESS":"FAILURE",_.v0(Ng5(),l),_.ju(V)}})};
_.t.setGuideData=function(W){var l=this,V,f;return _.g(function(r){if(r.nextAddress==1)return l.disabled?r.return():l.data?(W.data=l.data,l.guideRenderers.add(W),r.return()):r.yield(l.initializeGuideData(),2);l.graftGuideToPage();V=_.ZL("IS_HOMEPAGE_COLD")?"eop":void 0;_.U("disable_element_pool_populator")?l.setGuideDataAfterInit(W):(f=new _.Tv(1,V),_.wY(f,l.setGuideDataAfterInit.bind(l,W)));_.ju(r)})};
_.t.setGuideDataAfterInit=function(W){W.data=this.data;W.markDirty();this.guideRenderers.add(W);_.yq(function(){_.Wy("gle")});
_.V9(this,function(){_.Wy("gpe")})};
_.t.graftGuideToPage=function(){if(this.data){var W=this.data&&this.data.trackingParams;W&&(W=_.zG(W),_.zP(_.Qq(),W))}};
_.t.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.mz(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.t.onDrawerOpenedChanged=function(W,l){!l.value&&this.guideOpened&&(this.guideOpened=!1)};
_.t.onYtGuideToggle=function(W){var l=this.guideOpened;this.guideOpened=!l;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var V=_.MT();_.ZY(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;V.save()}this.updateGuideDrawerElementState();if(this.guideElement){var f;this.guideOpened&&((f=W.detail)==null?0:f.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.mz(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.mz(this,this.onAppDrawerTransitioned))}l||this.initializeGuideDataIfEmpty()};
_.t.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.mz(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.$s(this.guideElement)};
_.t.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.mz(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(fhe(this.guideOpened))};
_.t.guidePersistentAndVisibleChanged=function(){_.bj(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.t.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.GT({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.t.miniGuideVisibleChanged=function(){_.bj(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.t.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(fhe(this.guideOpened)),this.initialLoad=!1);_.bj(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.t.activeEndpointChanged=function(){_.bj(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.t.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.t.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()};
_.t.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var W=this.canFitPersistentGuide(this.cachedClientWidth);W?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=W}this.updateGuideDrawerElementState()};
_.t.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.t.getGuideOpened=function(){return this.guideOpened};
_.t.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.t.getActiveEndpoint=function(){return this.activeEndpoint};
_.t.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.t.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&&_.FN(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.t.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.U("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.t.handleGuideMouseLeave=function(){var W=this;!this.sessionUserManuallyExpandedGuideState&&_.U("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.gm(this,"handleGuideMouseLeave",function(){W.isMouseOverGuide||!W.guideOpened||W.miniGuideVisible||(W.guideOpened=!1,W.updateGuideDrawerElementState())},100))};
_.t.computeGuidePersistentAndVisible=function(){var W=this;_.gm(this,"computeGuidePersistentAndVisible",function(){W.guidePersistentAndVisible=W.guideOpened&&W.guidePersistent;W.guideIsVisibleButNotPersistent=!(!W.guideOpened||W.guidePersistent)})};
_.t.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.t.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.t.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.t.startLoadingWatch=function(){this.closeGuide()};
_.t.startLoadingShorts=function(){_.U("web_hide_guide_on_shorts")&&this.closeGuide()};
_.t.onYtNavigateFinish=function(W,l){if(!_.kt||l){this.activeEndpoint=l.endpoint;this.pageType=l.pageType;this.pageUrl=l.response.url;var V,f;W=(f=_.k((V=l.endpoint)==null?void 0:V.commandMetadata,_.XN))==null?void 0:f.url;!this.pageUrl&&W&&(this.pageUrl=W);_.U("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.t.getVisibleGuideRenderer=function(){for(var W=_.L(this.guideRenderers),l=W.next();!l.done;l=W.next())if(l=l.value,this.miniGuideVisible&&l.is==="ytd-mini-guide-renderer"||this.guideOpened&&l.is==="ytd-guide-renderer")return l;return null};
_.t.markGuideRendererDirty=function(W){if(W){typeof W.markDirty==="function"&&W.markDirty();W=_.L([].concat(_.QK(_.GS(W).children)));for(var l=W.next();!l.done;l=W.next())this.markGuideRendererDirty(l.value)}};
_.t.persistentGuideEnabled=function(W,l){if(!l||W==="watch"||W==="settings"||W==="shorts"&&this.isFullscreenShorts||_.U("reels_web_disable_persistent_guide_shorts")&&W==="shorts")return!1;var V=_.JY(l)||"";return _.U("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(f){return V===f}):!this.persistentGuideBlockedPagePathRegex.test(V)};
_.t.canFitPersistentGuide=function(W){var l=_.yS("kevlar_persistent_guide_width_threshold",1312);return l===-1||_.U("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:W>l};
_.t.canFitMiniGuide=function(W){return this.miniGuideWidthThreshold===-1?!1:W>this.miniGuideWidthThreshold};
_.t.onResize=function(){var W=this;_.gm(this,"calculateGuideState",function(){W.onResizeDebounced()})};
_.t.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.t.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.t.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.t.getInitialGuideUserStateOpened=function(){return _.U("web_force_mini_guide_default")?!1:!_.MT().getFlag(109)};
_.rc.Object.defineProperties(mh.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.M4("initialBodyClientWidth")||window.innerWidth}}});
mh.prototype.onResize=mh.prototype.onResize;mh.prototype.observeForMiniGuideVisible=mh.prototype.observeForMiniGuideVisible;mh.prototype.computeGuidePersistentAndVisible=mh.prototype.computeGuidePersistentAndVisible;mh.prototype.cachedClientWidthChanged=mh.prototype.cachedClientWidthChanged;mh.prototype.resetGuide=mh.prototype.resetGuide;mh.prototype.activeEndpointChanged=mh.prototype.activeEndpointChanged;mh.prototype.guideOpenedChanged=mh.prototype.guideOpenedChanged;
mh.prototype.miniGuideVisibleChanged=mh.prototype.miniGuideVisibleChanged;mh.prototype.guideIsVisibleButNotPersistentChanged=mh.prototype.guideIsVisibleButNotPersistentChanged;mh.prototype.guidePersistentAndVisibleChanged=mh.prototype.guidePersistentAndVisibleChanged;mh.prototype.onGuideElementChanged=mh.prototype.onGuideElementChanged;mh.prototype.onGuidePersistentChanged=mh.prototype.onGuidePersistentChanged;mh.prototype.onRenderGuideChanged=mh.prototype.onRenderGuideChanged;
mh.prototype.onActiveEndpointChanged=mh.prototype.onActiveEndpointChanged;mh.prototype.onMiniGuideVisibleChanged=mh.prototype.onMiniGuideVisibleChanged;mh.prototype.onGuideIsVisibleButNotPersistentChanged=mh.prototype.onGuideIsVisibleButNotPersistentChanged;mh.prototype.onGuidePersistendAndVisibleChanged=mh.prototype.onGuidePersistendAndVisibleChanged;_.a([_.F(_.Wo),_.z("design:type",Object)],mh.prototype,"ironResizableBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],mh.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],mh.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],mh.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],mh.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Boolean)],mh.prototype,"disabled",void 0);
_.a([_.b(),_.z("design:type",Boolean)],mh.prototype,"guidePersistentAndVisible",void 0);_.a([_.TS("guidePersistentAndVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mh.prototype,"onGuidePersistendAndVisibleChanged",null);_.a([_.b(),_.z("design:type",Boolean)],mh.prototype,"guideIsVisibleButNotPersistent",void 0);
_.a([_.TS("guideIsVisibleButNotPersistent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mh.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.a([_.b(),_.z("design:type",Object)],mh.prototype,"miniGuideVisible",void 0);_.a([_.TS("miniGuideVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mh.prototype,"onMiniGuideVisibleChanged",null);_.a([_.b(),_.z("design:type",Boolean)],mh.prototype,"forceMiniGuideClose",void 0);
_.a([_.b(),_.z("design:type",Object)],mh.prototype,"activeEndpoint",void 0);_.a([_.TS("activeEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mh.prototype,"onActiveEndpointChanged",null);_.a([_.b(),_.z("design:type",Boolean)],mh.prototype,"renderGuide",void 0);_.a([_.TS("renderGuide"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mh.prototype,"onRenderGuideChanged",null);
_.a([_.b(),_.z("design:type",Object)],mh.prototype,"guideOpened",void 0);_.a([_.b(),_.z("design:type",Boolean)],mh.prototype,"guidePersistent",void 0);_.a([_.TS("guidePersistent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mh.prototype,"onGuidePersistentChanged",null);_.a([_.b(),_.z("design:type",Object)],mh.prototype,"guideUserStateOpened",void 0);_.a([_.b(),_.z("design:type",String)],mh.prototype,"pageUrl",void 0);
_.a([_.b(),_.z("design:type",String)],mh.prototype,"pageType",void 0);_.a([_.b(),_.z("design:type",Number)],mh.prototype,"cachedClientWidth",void 0);_.a([_.b(),_.z("design:type",Object)],mh.prototype,"guideElement",void 0);_.a([_.b({selector:_.uE}),_.z("design:type",Object)],mh.prototype,"isFullscreenShorts",void 0);_.a([_.TS("guideElement"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mh.prototype,"onGuideElementChanged",null);
_.a([_.TS("guidePersistentAndVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mh.prototype,"guidePersistentAndVisibleChanged",null);_.a([_.zS("guideIsVisibleButNotPersistent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mh.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.a([_.TS("miniGuideVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mh.prototype,"miniGuideVisibleChanged",null);_.a([_.zS("guideOpened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mh.prototype,"guideOpenedChanged",null);_.a([_.TS("activeEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mh.prototype,"activeEndpointChanged",null);
_.a([_.zS("pageUrl"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mh.prototype,"resetGuide",null);_.a([_.zS("cachedClientWidth"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mh.prototype,"cachedClientWidthChanged",null);_.a([_.TS("guideOpened","guidePersistent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mh.prototype,"computeGuidePersistentAndVisible",null);
_.a([_.zS("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mh.prototype,"observeForMiniGuideVisible",null);_.a([_.XI("iron-resize"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mh.prototype,"onResize",null);_.a([_.A({disableElementRegistration:!0,is:"yt-guide-manager"})],mh);var Pnc=_.Z(mh,"yt-guide-manager",void 0,{mode:_.bD("kevlar_poly_si_batch_j081")?1:2});var Xu=function(){var W=_.I.apply(this,arguments)||this;W.JSC$19997_keyboardInUse=!1;W.boundHandleCapturedKeydownEvent=function(l){W.handleCapturedKeydownEvent(l)};
return W};
_.v(Xu,_.I);_.t=Xu.prototype;_.t.attached=function(){this.listenToDocument(document)};
_.t.listenToDocument=function(W){W.addEventListener("keydown",_.mz(this,this.onKeyDownEvent));W.addEventListener("keyup",_.mz(this,this.onKeyUpEvent));W.addEventListener("mousedown",_.mz(this,this.onMouseDownEvent));_.U("desktop_keyboard_capture_keydown_killswitch")||W.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);W.addEventListener("yt-page-data-updated",_.mz(this,this.onPageUpdate))};
_.t.detached=function(){this.unlistenFromDocument(document)};
_.t.unlistenFromDocument=function(W){W.removeEventListener("keydown",_.mz(this,this.onKeyDownEvent));W.removeEventListener("keyup",_.mz(this,this.onKeyUpEvent));W.removeEventListener("mousedown",_.mz(this,this.onMouseDownEvent));_.U("desktop_keyboard_capture_keydown_killswitch")||W.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);W.removeEventListener("yt-page-data-updated",_.mz(this,this.onPageUpdate))};
_.t.ready=function(){_.tY().addProvider({provide:_.Q5,useValue:this})};
_.t.isKeyBoardInUse=function(){return this.JSC$19997_keyboardInUse};
_.t.handleCapturedKeydownEvent=function(W){if(W.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(W)};
_.t.onMouseDownEvent=function(){this.JSC$19997_keyboardInUse=!1};
_.t.onPageUpdate=function(){if(_.U("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.U("web_shorts_keyboard_shortcut_usage_log")){_.Yi.clear();for(var W=_.L(_.zw),l=W.next();!l.done;l=W.next()){var V=_.L(l.value);l=V.next().value;V=V.next().value;V=_.GY(V);_.Yi.set(l,V);_.L0(_.Wh(),_.$G(),V)}_.xi.clear();W=_.L(_.Ni);for(l=W.next();!l.done;l=W.next())V=_.L(l.value),l=V.next().value,V=V.next().value,V=_.GY(V),_.xi.set(l,V),_.L0(_.Wh(),_.$G(),V);_.yE(_.Wh(),_.$G(),[].concat(_.QK(_.xi.values()),
_.QK(_.Yi.values())));_.Py(_.Wh(),[].concat(_.QK(_.xi.values()),_.QK(_.Yi.values())))}};
_.t.onMiniplayerActiveChange=function(){var W;(W=_.tY().resolve(_.Sl).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(W.document):this.unlistenFromDocument(W.document))};
_.t.ignoreKeyEvent=function(W){if(W.ctrlKey||W.altKey)if(_.U("kevlar_macro_markers_keyboard_shortcut")){if(W.keyCode!==37&&W.keyCode!==39)return!0}else return!0;var l=_.d_(W)||[];return _.$cs(l)?(_.U("web_button_or_anchor_list_item")&&BE1(l,W)&&(this.JSC$19997_keyboardInUse=!0),!0):W.defaultPrevented?(gG(W.keyCode,W.shiftKey,this.isShortsPage),!0):W.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(W):!1};
_.t.isSpacebarClick=function(W){var l=W||window.event;var V;l.composedPath&&typeof l.composedPath==="function"?V=l.composedPath():V=l.path;V&&V.length?l=V[0]:(l=l||window.event,l=l.target||l.srcElement,l.nodeType==3&&(l=l.parentNode));return l&&W.keyCode===32&&(W=l.tagName==="BUTTON"||l.tagName==="A"||l.tagName==="INPUT",l=(l=l.getAttribute("role"))&&(l==="option"||l==="button"||l.indexOf("menuitem")===0),W||l)?!0:!1};
_.t.onKeyDownEvent=function(W){if(!this.ignoreKeyEvent(W)&&(W.keyCode===191&&(W.shiftKey||W.metaKey?W.repeat!=null&&W.repeat||(this.openHotkeyDialog(),gG(W.keyCode,W.shiftKey,this.isShortsPage)):(this.focusSearchBox(),W.preventDefault())),!W.metaKey)){var l=_.tY().resolve(_.Sl);switch(W.keyCode){case 9:this.JSC$19997_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(W);break;case 84:l.pipController.getWindow()&&window.focus();this.toggleTheaterMode(W.keyCode,W.shiftKey);break;case 73:l.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(W.keyCode,W.shiftKey);break;case 70:if(this.isShortsPage&&_.U("web_fullscreen_shorts")){_.WA1();break}this.isMiniplayerActive()?l.pipController.getWindow()&&(l.close(!0),window.focus()):this.passEventToPlayer(W);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(W.keyCode,W.shiftKey):this.closeMiniplayer(W.keyCode,W.shiftKey)||this.passEventToPlayer(W);break;case 13:W.shiftKey&&_.tY().resolve(_.Rq).activate(W);break;default:this.passEventToPlayer(W)}}};
_.t.onKeyUpEvent=function(W){if(!this.ignoreKeyEvent(W))if(_.U("web_speedmaster_spacebar_control")&&W.keyCode===32)this.handlePlayerSpaceKey(W,!0);else{var l=this.getPlayerManager();l&&(l=l.getPlayer())&&l.handleGlobalKeyUp(W.keyCode,W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code)}};
_.t.getPlayerManager=function(){var W=_.Jy(),l=_.tY().resolve(_.R0(_.Bp));return W&&l&&l.isOnWatch()?W:null};
_.t.passEventToPlayer=function(W,l){var V=this,f,r,R,y;return _.g(function(P){if(P.nextAddress==1){if(!_.U("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&V.isMiniplayerActive())f=_.tY().resolve(_.Sl).getPlayerElement();else if(V.inlinePreviewIsActive){if(r=_.bj(V.hostElement,"yt-get-inline-preview-player-action"),(R=r)==null?0:R[0])f=r[0]}else f=_.Jy();return f?P.yield(f.getPlayerPromise(),3):P.jumpTo(0)}y=P.yieldResult;l?y.handleGlobalKeyUp(W.keyCode,W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,
W.key,W.code):y.handleGlobalKeyDown(W.keyCode,W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code,W.repeat);W.keyCode!==38&&W.keyCode!==40&&gG(W.keyCode,W.shiftKey,V.isShortsPage);_.ju(P)})};
_.t.focusSearchBox=function(){_.FN(this.hostElement,"yt-focus-searchbox")};
_.t.openHotkeyDialog=function(){_.FN(this.hostElement,"yt-open-hotkey-dialog")};
_.t.isMiniplayerActive=function(){return _.tY().resolve(_.Sl).isMiniplayerActive()};
_.t.closeMiniplayer=function(W,l){return this.isMiniplayerActive()?(_.tY().resolve(_.Sl).close(),gG(W,l,this.isShortsPage),!0):!1};
_.t.toggleTheaterMode=function(W,l){var V=_.h2(_.DJ().getState()),f=this.getPlayerManager(),r=_.U("disable_theater_mode_keyboard")||_.ZL("START_IN_FULL_WINDOW_MODE");f&&!r&&(V=!V,_.ku()&&_.U("external_fullscreen")&&(V=!0),_.Gt(this.hostElement,"yt-toggle-theater-mode",[V]),gG(W,l,this.isShortsPage))};
_.t.toggleMiniplayer=function(W,l){var V=this.getPlayerManager();if(this.isMiniplayerActive()){var f;((f=_.tY().resolve(_.R0(_.Bp)))==null?0:f.isOnWatch())?_.tY().resolve(_.Sl).close(!0):_.Cm(_.tY().resolve(_.Sl));gG(W,l,this.isShortsPage)}else V&&(_.Gt(this.hostElement,"yt-activate-miniplayer-from-watch-action"),gG(W,l,this.isShortsPage))};
_.t.handlePlayerSpaceKey=function(W,l){var V=!!_.Jy()||this.isMiniplayerActive();V=_.U("disable_space_scroll_fix")||V;_.U("global_spacebar_pause")&&!this.isKeyBoardInUse()&&V&&(W.preventDefault(),this.passEventToPlayer(W,l))};
_.t.isPresentingTheaterMode=function(){return _.U("web_watch_enable_tm_esc_key")?_.h2(_.DJ().getState())&&!_.ku():!1};
Xu.prototype.onMiniplayerActiveChange=Xu.prototype.onMiniplayerActiveChange;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Xu.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],Xu.prototype,"ytdReduxBehavior",void 0);_.a([_.b({selector:_.w3g}),_.z("design:type",Boolean)],Xu.prototype,"inlinePreviewIsActive",void 0);_.a([_.b({selector:_.Aoq}),_.z("design:type",Boolean)],Xu.prototype,"isShortsPage",void 0);
_.a([_.b({selector:_.l0}),_.z("design:type",Boolean)],Xu.prototype,"miniplayerIsActive",void 0);_.a([_.TS("miniplayerIsActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Xu.prototype,"onMiniplayerActiveChange",null);_.a([_.A({disableElementRegistration:!0,is:"yt-hotkey-manager"})],Xu);_.Z(Xu,"yt-hotkey-manager",void 0,{mode:_.bD("kevlar_poly_si_batch_j081")?1:2});var TC=function(){var W=_.I.apply(this,arguments)||this;W.loopStateEntityKey_=null;W.playlistLoopStateEntity_=null;W.isShuffleNextPlaylist=!1;W.PLAYER_EVENTS_=new Map;W.playerListenersSetup_=!1;W.videoSkipJob_=0;W.canAutoAdvance_=!1;W.playerManager_=null;W.TEST_ONLY={};return W};
_.v(TC,_.I);_.t=TC.prototype;_.t.ready=function(){_.tY().addProvider({provide:_.dZ,useValue:this.hostElement})};
_.t.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_)};
_.t.attached=function(){document.addEventListener("yt-navigate-start",_.mz(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.mz(this,this.onYtNavigateFinish_))};
_.t.detached=function(){document.removeEventListener("yt-navigate-start",_.mz(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.mz(this,this.onYtNavigateFinish_))};
_.t.updatePlaylistEventListeners=function(W,l){l&&!this.playerListenersSetup_?(this.playerManager_=W,this.registerPlaylistEventListeners_(W)):!l&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(W))};
_.t.setPlayer=function(W){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=W};
_.t.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.t.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.t.registerPlaylistEventListeners_=function(W){var l=this;W.getPlayerPromise().then(function(V){l.playerListenersSetup_||(l.ytPlayerListenerBehavior.listenToPlayerEvents(V,l.PLAYER_EVENTS_),l.playerListenersSetup_=!0)})};
_.t.removePlaylistEventListeners_=function(W){var l=this;W.getPlayerPromise().then(function(V){l.playerListenersSetup_&&(l.ytPlayerListenerBehavior.unlistenFromPlayerEvents(V,l.PLAYER_EVENTS_),l.playerListenersSetup_=!1)})};
_.t.setPlaylistComponent=function(W){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.mz(this,this.onPlaylistYtNavigate_)),W&&(W.data&&this.playlistComponent.data&&W.data.playlistId==this.playlistComponent.data.playlistId?(W.loopOn=this.playlistComponent.loopOn,W.shuffleOn=this.playlistComponent.shuffleOn):(W.loopOn=!1,W.shuffleOn=!1),this.isShuffleNextPlaylist&&(W.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=W;this.playlistComponent.addEventListener("yt-navigate",
_.mz(this,this.onPlaylistYtNavigate_))};
_.t.setAutoplayRenderer=function(W){this.autoplayData=W};
_.t.setPlaylistData=function(W){this.currentPlaylistData_=W;_.FN(this.hostElement,"yt-playlist-data-updated");_.MC.isEmpty(W)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(W)};
_.t.setPlayerPlaybackControlData=function(W){this.playerManager_&&this.playerManager_.updatePlayerComponents(W.playlistPanelRenderer)};
_.t.getPlaylistData=function(){return this.currentPlaylistData_};
_.t.getTempData_=function(W,l){if(this.playlistComponent==null)return null;W={};this.playlistComponent.shuffleOn&&(W.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(W.loop_on=this.playlistComponent.loopOn);l&&(W.autonav="1",_.tY().resolve(_.OZ),l=_.sL(),l>0&&(W.lact=l),this.playerManager_&&(l=this.playerManager_.getPlayer())&&l.shouldSendVisibilityState()&&(l=l.getVisibilityState(),l!=0&&(W.vis=l)));_.U("enable_unknown_lact_fix_on_html5")&&(_.tY().resolve(_.OZ),W.lact=
_.sL());return W};
_.t.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.t.setLoopStateEntityKey_=function(W){var l;this.loopStateEntityKey_=((l=this.getPlaylistLoopData_(W))==null?void 0:l.playlistLoopStateEntityKey)||null};
_.t.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.t.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.t.skipVideo=function(){var W=this,l=_.U("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||l)l=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.a$(_.w8,function(){W.onPlaylistNext();W.videoSkipJob_=0},l)};
_.t.cancelVideoSkip=function(){this.videoSkipJob_&&(_.w8.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.t.isInBackground_=function(){var W=window.document.visibilityState;return!(!W||W=="visible")};
_.t.onPlaylistIndex_=function(W){this.playlistComponent&&(W=this.playlistComponent.data.contents[W].playlistPanelVideoRenderer.navigationEndpoint,_.FN(this.hostElement,"yt-navigate",{endpoint:W,tempData:this.getTempData_(W)}))};
_.t.onPlayerStateChange_=function(W){if(W=W==0&&this.playlistComponent&&this.canAutoAdvance_)W=_.IH.getInstance(),W=!(W.autonavState_===3?W.autonavPauseReason_&&W.autonavPauseReason_.inputBoxFocus===!0:W.autonavState_===1&&W.disabledAutonavPauseReason_&&W.disabledAutonavPauseReason_.inputBoxFocus===!0);W&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.t.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.t.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.t.navigateToAutoplayWatchEndpoint_=function(W,l,V){var f=this.playlistComponent.data.currentIndex,r=this.getNumPlayableVideos_();W=="NORMAL"&&l=="autoplayVideo"&&f+1>=r&&V||!(W=this.getVideoEndpoint_(W,l))||(V=this.getTempData_(W,V),_.FN(this.hostElement,"yt-navigate",{endpoint:W,tempData:V}))};
_.t.getNumPlayableVideos_=function(){for(var W=0,l=_.L(this.playlistComponent.data.contents||[]),V=l.next();!V.done;V=l.next())V.value.playlistPanelVideoRenderer&&(W+=1);return W};
_.t.getVideoEndpoint_=function(W,l){if(this.autoplayData&&this.autoplayData.sets)for(var V=0,f=this.autoplayData.sets.length;V<f;V++){var r=this.autoplayData.sets[V];if(r.mode==W){if(r[l])return r[l];break}}else W=new _.bP("AutoplayData is undefined in playlist manager","Mode: "+W+" endpoint: "+l),_.Qe(W)};
_.t.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.t.onPlaylistYtNavigate_=function(W){if(W.detail.endpoint){W.stopPropagation();var l=W.detail;l.tempData=this.getTempData_(W.detail.endpoint);_.FN(this.hostElement,"yt-navigate",l)}};
_.t.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.t.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.t.playlistLoopStateEntityChanged_=function(W){var l=this,V,f,r;return _.g(function(R){if(R.nextAddress==1){if(!W)return R.return();V=W.state==="PLAYLIST_LOOP_STATE_ONE";return l.playerManager_?R.yield(l.playerManager_.getPlayerPromise(),3):R.jumpTo(2)}R.nextAddress!=2&&(f=R.yieldResult,f.setLoopVideo(V));r=W.state==="PLAYLIST_LOOP_STATE_ALL";l.playlistComponent&&(l.playlistComponent.loopOn=r);_.ju(R)})};
_.t.getPlaylistLoopData_=function(W){var l,V;if(W=W==null?void 0:(l=W.playlistButtons)==null?void 0:(V=l.menuRenderer)==null?void 0:V.topLevelButtons)for(l=_.L(W),V=l.next();!V.done;V=l.next())if(V=V.value,V.playlistLoopButtonRenderer)return V.playlistLoopButtonRenderer};
_.t.getLoopStateCommand_=function(W){var l=this.getPlaylistData(),V;l=((V=this.getPlaylistLoopData_(l))==null?void 0:V.states)||[];var f;W=(f=_.k(l[W?1:2],_.g$k))==null?void 0:f.button;var r;return(r=_.k(W,_.CE))==null?void 0:r.command};
_.t.onPlayerLoopChange_=function(W){this.playlistLoopStateEntity_&&(W?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(W=this.getLoopStateCommand_(W))&&this.ytComponentBehavior.resolveCommand(W)};
_.t.onSleepTimerSettingsChanged_=function(W){this.canAutoAdvance_=W!=="End of video"};
TC.prototype.onPlaylistLoopStateEntityChanged=TC.prototype.onPlaylistLoopStateEntityChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],TC.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.by.YtPlayerListenerBehavior),_.z("design:type",_.pZ)],TC.prototype,"ytPlayerListenerBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],TC.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],TC.prototype,"loopStateEntityKey_",void 0);
_.a([_.b({selectorArgs:["loopStateEntityKey_"],selector:_.imS}),_.z("design:type",Object)],TC.prototype,"playlistLoopStateEntity_",void 0);_.a([_.TS("playlistLoopStateEntity_"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TC.prototype,"onPlaylistLoopStateEntityChanged",null);_.a([_.A({disableElementRegistration:!0,is:"yt-playlist-manager"})],TC);_.Z(TC,"yt-playlist-manager",void 0,{mode:_.bD("kevlar_poly_si_batch_j081")?1:2});var nFN,CnH=function(){if(nFN!==void 0)return nFN;var W=document.createElement("template");_.K(W,"\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");W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return nFN=W};var wf=function(){var W=_.I.apply(this,arguments)||this;W.lastCallback=null;W.getAccountLinkPromises={};W.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);W.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return W};
_.v(wf,_.I);_.t=wf.prototype;_.t.getLocation=function(){return window.location.href};
_.t.getCompletionUrl=function(){return _.DY(this.getLocation())};
_.t.containsRedirectState=function(W){return(W=_.wl(_.P34(W)))?(new URLSearchParams(W)).get("redirect_state")!==null:!1};
_.t.createGalConfig=function(W,l){var V=new GRw;W=V=l?this.getPopupOrRedirectSetting(V,_.M4("LINK_API_KEY"),_.M4("LINK_API_KEY_REDIRECT"),W):bUY(V,_.M4("LINK_API_KEY"));W.authUser=_.M4("SESSION_INDEX")||0;W.supportedFlows=new Set([4]);return W.build()};
_.t.getPopupOrRedirectSetting=function(W,l,V,f){this.isGalInteractionPopupMode(f)?(W.interactionMode=0,W=bUY(W,l)):(W.interactionMode=1,l=this.getCompletionUrl(),W.completionUrl=l,W=bUY(W,V));return W};
_.t.isGalInteractionPopupMode=function(W){if(this.redirectModeProviderAllowlist.has(W))switch(W){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.t.getStatusEntityKeyForProviderId=function(W){return _.i_(W+":all","accountLinkStatusEntity")};
_.t.findNestedPropValue=function(W,l){var V=!1,f=null;JSON.stringify(W,function(r,R){V||r!==l||(V=!0,f=R);return V?null:R});
return f};
_.t.findAccountLinkButtonViewModel=function(W,l){var V=null,f=!1;JSON.stringify(W,function(r,R){f||R.accountLinkStatusEntityKey!==l||R.accountLinkStatusSecondaryEntityKey||(f=!0,V=R);return f?null:R});
return V};
_.t.executeLinkingSuccessOrFailureCommands=function(W,l,V){var f=null,r;(l==null?0:(r=l.url)==null?0:r.includes("account_sharing"))?f=l==null?void 0:l.response:f=l==null?void 0:l.response;(l=this.findAccountLinkButtonViewModel(f,W))?(W=V?this.findNestedPropValue(l,"onSuccessCommand"):this.findNestedPropValue(l,"onFailureCommand"))?_.ij([W],this.hostElement):_.x2(Error("tl")):_.x2(Error("ul`"+W))};
_.t.handleInitializeRequest=function(W,l){var V=this,f=CmH(this.createGalConfig(W,!0));this.containsRedirectState(this.getLocation())?LzH(W,f.config,f.galService).then(function(r){var R=V.getStatusEntityKeyForProviderId(W);if(r.statusCode===1)l&&V.executeLinkingSuccessOrFailureCommands(R,l,!0),r=V.getLocation().indexOf("#"),r!==-1&&window.history.pushState(null,"",V.getLocation().substring(0,r));else return l&&V.executeLinkingSuccessOrFailureCommands(R,l,!1),Promise.reject(Error(r.statusMessage))}).catch(function(r){_.Qe(r);
_.XC("gamingAccountLinkStatusChanged",{serviceId:W,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(r)}):this.getAccountLinkPromises[W]=f.startLinkingSession({serviceId:W})};
_.t.handleAccountLinkCommand=function(W){_.k(W,C57)&&this.handleLinkRequest(_.k(W,C57))};
_.t.handleLinkRequest=function(W){var l=this,V=W.thirdPartyId;if(V)if(this.isGalInteractionPopupMode(V)){var f=function(){l.closeAndFire("ytd-gaming-account-link-setting-renderer",W.onFailureCommand)},r=function(){l.closeAndFire("ytd-gaming-account-link-setting-renderer",W.onSuccessCommand)};
this.lastCallback=r;this.getAccountLinkPromises[V].then(function(R){th4(R).then(function(y){y.statusCode===1?r():f()})}).catch(function(){f()})}else this.getAccountLinkPromises[V].then(function(R){th4(R).then(function(y){if(y.statusCode!==1)return Promise.reject(Error(y.statusMessage))})}).catch(function(R){_.Qe(R);
_.XC("gamingAccountLinkStatusChanged",{serviceId:V,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(R)})};
_.t.closeAndFire=function(W,l){_.Gt(this.hostElement,"yt-close-popup-action",[W]);l&&_.ij([l],this.hostElement)};
_.t.handleAccountUnlinkCommand=function(W){_.k(W,cP1)&&this.handleUnlinkRequest(_.k(W,cP1))};
_.t.handleUnlinkRequest=function(W){var l=this,V=W.thirdPartyId;if(V){var f=function(){l.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",W.onFailureCommand)},r=function(){l.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",W.onSuccessCommand)};
this.lastCallback=r;var R=CmH(this.createGalConfig(V,!1));this.unlinkUserGal(R,V).then(function(y){y.statusCode===1?r():f()}).catch(function(){f()})}};
_.t.unlinkUserGal=function(W,l){return W.deleteLink(l)};
_.t.handleLogAccountLinkingEventCommand=function(W){_.U("enable_gel_log_commands")&&_.k(W,By1)&&(W=_.k(W,By1).event)&&_.XC("gamingAccountLinkStatusChanged",W)};
_.rc.Object.defineProperties(wf,{template:{configurable:!0,enumerable:!0,get:function(){return CnH()}}});
_.a([_.F(_.eX.YtOpenPopupBehavior),_.z("design:type",Object)],wf.prototype,"ytOpenPopupBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],wf.prototype,"ytActionHandlerBehavior",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-third-party-manager"})],wf);_.Z(wf,"ytd-third-party-manager",function(){return CnH()},{mode:_.bD("kevlar_poly_si_batch_j081")?1:2});var cTZ,BDL=function(){if(cTZ!==void 0)return cTZ;var W=document.createElement("template");_.K(W,"\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");W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return cTZ=W};var At=function(){var W=_.I.apply(this,arguments)||this;W.currentPage=void 0;W.renderLoadingStateJobId=0;W.updatePageDataJobId=0;W.pageDisposeJobsets=new WeakMap;W.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"};W.shouldApplyLockupToWatchTransition=_.U("web_thumbnail_to_watch_transition");W.shouldApplySlideTransition=_.gU("web_page_transition_type")==="slide"||_.U("enable_plj_landing_page");W.shouldApplyLearningJourneyTransition=_.U("enable_plj_landing_page");W.TEST_ONLY=void 0;return W};
_.v(At,_.I);_.t=At.prototype;_.t.ready=function(){var W=_.tY();W.addProvider({provide:_.Bp,useValue:this});W.addProvider({provide:_.inM,useValue:this})};
_.t.created=function(){this.pagePool=new Z_w;this.contextSwitcher=new lO4};
_.t.attached=function(){_.FN(this.hostElement,"attached");var W=_.tY().resolve(_.R0(_.lm));W&&(this.contextSwitcher.JSC$19823_networkService_=W);this.viewTransitionManager=_.tY().resolve(_.$U)};
_.t.getPageOffset=function(W){return W.getScrollTop()};
_.t.setPageOffset=function(W,l){try{W.setScrollTop(l)}catch(V){}};
_.t.setPageOffsetForNavigation=function(W,l){_.FN(this.hostElement,"yt-navigate-set-page-offset",{page:W,offset:l===void 0?0:l})};
_.t.pauseActiveContext=function(){var W=this.contextSwitcher;W.activeContext_&&W.activeContext_.pause()};
_.t.getModuleNameForType=function(W){return W==="watch"?_.U("kevlar_watch_fixie")?"watchFixie":_.U("kevlar_watch_grid")?"watchGrid":"watchFlexy":W==="shorts"||W==="search"?W:"browse"};
_.t.attachPage=function(W){var l,V=!_.U("pc_is_attached_ks")&&(W==null?void 0:(l=W.polymerController)==null?void 0:l.isAttached);if(!W.isAttached&&!V)try{_.GS(this.hostElement).appendChild(W)}catch(r){var f;_.Qe(new _.bP("Error attaching page element for component",{origin:(f=this.currentPage)==null?void 0:f.is,component:W.is}))}};
_.t.setActivePage=function(W){var l=this,V=!1,f=function(){var r=l.isOnWatch(),R=l.currentPage;if(W)if(W!==l.currentPage){R&&(R.hidden=!0,R.active=!1,R.removeAttribute("role"));l.currentPage=W;var y,P=_.M$((y=l.data)==null?void 0:y.endpoint);R&&_.FN(l.hostElement,"yt-page-type-changed",{oldPageType:R.is,newPageType:W.is,newPageSubtype:P});_.BE().dispatch(_.GT({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:W.is}));_.BE().dispatch(_.GT({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:P||""}));W.hidden=
!1;l.attachPage(W);W.active=!0;W.setAttribute("role","main");R&&l.setPageOffsetForNavigation(W,0);_.U("kevlar_remove_page_dom_on_switch")&&!r&&R&&_.GS(l.hostElement).removeChild(R)}else V=!0;else l.handleMissingDestinationPage(R)};
this.shouldRunBrowseTransition(this.currentPage,W)?KZ5(this.viewTransitionManager,f):this.shouldRunLearningJourneyTransition(this.currentPage,W)?b42(this.viewTransitionManager,f):f();return V};
_.t.handleMissingDestinationPage=function(W){if(this.isColdLoadForUnknownPage(W))_.Qe(new _.bP("Cold load for unknown page"));else{var l;W=new _.bP("Unable to set active page",W?W.is:"unknown origin",(l=this.data)==null?void 0:l.endpoint);_.wv(W)}};
_.t.isColdLoadForUnknownPage=function(W){return!W&&$i(this.data)==="unknown"};
_.t.shouldRunBrowseTransition=function(W,l){return this.shouldApplySlideTransition&&(W==null?void 0:W.is)==="ytd-browse"&&(l==null?void 0:l.is)==="ytd-browse"&&W!==l};
_.t.shouldRunLearningJourneyTransition=function(W,l){return this.shouldApplyLearningJourneyTransition&&(W==null?void 0:W.is)==="ytd-browse"&&((l==null?void 0:l.is)==="ytd-watch-learning-journey"||(l==null?void 0:l.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.t.shouldRunWatchNextLoadedTransition=function(W,l){return this.viewTransitionManager&&W.is==="ytd-watch-flexy"&&l};
_.t.updatePageData=function(W){var l=this,V=this.data;this.updatePageDataJobId&&_.w8.cancelJob(this.updatePageDataJobId);this.data=W;return new _.Dx(function(f){var r=function(){W.filler?l.performDataUpdate(W,V):X02(function(){l.performDataUpdate(W,V)});
var n=_.DI();_.U7(n,"cr")||n.processSignal("cr");f()},R=function(){W&&W.page==="watch"?l.updatePageDataJobId=_.a$(_.w8,r):r()};
if(_.U("kevlar_enable_mss_page_modules_client")&&W){var y=_.tY().resolve(_.$P),P=l.getModuleNameForType(W.page);(y=vtw(y,[P]))?y.then(R):R()}else R()})};
_.t.isDownloadsPage=function(W){var l,V;return(W==null?void 0:(l=W.endpoint)==null?void 0:(V=l.browseEndpoint)==null?void 0:V.browseId)==="FEdownloads"};
_.t.setPlayerSyncInterval=function(W){var l;return _.g(function(V){if(V.nextAddress==1)return V.yield(_.tY().resolve(_.vp),2);l=V.yieldResult;l.setUpPositionSyncInterval(W);_.ju(V)})};
_.t.performDataUpdate=function(W,l){_.U("kevlar_early_popup_close")||_.Gt(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var V=!W.filler;V&&(_.Wy("lps"),_.U("config_age_report_killswitch")||GTN());var f=$i(W),r,R=!1;if(_.U("kevlar_remove_page_dom_on_switch")){var y=l&&$i(l);f===y&&(r=this.getCurrentPage())}r||(r=GC(this.pagePool,f));V&&Am2(this.pagePool.elementPoolPopulator,f);V&&!this.renderLoadingStateJobId&&(R=this.setActivePage(r));if(r){y=f==="watch";var P=
f==="shorts",n=f==="learning_journey_watch";_.U("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(r);if(y||P||n)r.playerData=W.playerResponse;if(P)if(_.U("web_enable_delay_shorts_sequence_call")){W.reelWatchSequenceResponse&&(W.reelWatchSequenceResponse.entries||W.reelWatchSequenceResponse.prevEntries)&&(r.reelWatchSequenceResponse=W.reelWatchSequenceResponse);r.currentEndpoint=W.endpoint;var B;r.isPreviousPageShorts=!!(l==null?0:(B=l.endpoint)==null?0:B.reelWatchEndpoint);
var d,J;W.cachedSequenceParams=((d=W.endpoint)==null?void 0:(J=d.reelWatchEndpoint)==null?void 0:J.sequenceParams)||W.cachedSequenceParams||(l==null?void 0:l.cachedSequenceParams);var D,u;W.cachedSequenceProvider=((D=W.endpoint)==null?void 0:(u=D.reelWatchEndpoint)==null?void 0:u.sequenceProvider)||W.cachedSequenceProvider||(l==null?void 0:l.cachedSequenceProvider);r.cachedSequenceParams=W.cachedSequenceParams;r.cachedSequenceProvider=W.cachedSequenceProvider}else{W.reelWatchSequenceResponse&&(W.reelWatchSequenceResponse.entries||
W.reelWatchSequenceResponse.prevEntries)?r.reelWatchSequenceResponse=W.reelWatchSequenceResponse:W.cachedReelWatchSequenceResponse?r.reelWatchSequenceResponse=W.cachedReelWatchSequenceResponse:_.U("web_enable_cached_reel_sequence_fix")&&r.cachedReelWatchSequenceResponse&&!r.reelWatchSequenceResponse&&(r.reelWatchSequenceResponse=r.cachedReelWatchSequenceResponse);r.currentEndpoint=W.endpoint;var H;r.isPreviousPageShorts=!!(l==null?0:(H=l.endpoint)==null?0:H.reelWatchEndpoint);W.cachedReelWatchSequenceResponse=
W.reelWatchSequenceResponse||W.cachedReelWatchSequenceResponse||(l==null?void 0:l.cachedReelWatchSequenceResponse);r.cachedReelWatchSequenceResponse=W.cachedReelWatchSequenceResponse}B=this.isDownloadsPage(W);d=this.isDownloadsPage(l);B&&!d?this.setPlayerSyncInterval(6E5):!B&&d&&this.setPlayerSyncInterval();_.U("block_all_player_prefetch_requests")||this.preparePrefetchRequest(W,r,V,y,P,n);pF1(_.tY().resolve(_.Sl),l,W);_.XK(_.tY().resolve(_.OZ));_.U("kevlar_flush_jobs_before_setting_player_response")||
this.flushPageDisposeJobset(r);V?(V=typeof r.loadPage,V==="function"?(r.pageContext=VoN(this.contextSwitcher,r,r.data!==W.response),V=function(){r.loadPage(W.response)},this.shouldApplySlideTransition&&r.is==="ytd-browse"&&R&&(f==="learning"||this.isDifferentBrowseId(W==null?void 0:W.endpoint,l==null?void 0:l.endpoint))?KZ5(this.viewTransitionManager,V):this.shouldRunWatchNextLoadedTransition(r,R)?Gy2(this.viewTransitionManager,V):V()):_.Ar(new _.bP("b/38014653 ",[f,
r.is,r.nodeName,V,r.isAttached,l&&$i(l),this.hostElement.children.length])),_.Wy("pdl")):(r.hidden=!0,W.response.filler=!0,r.data=W.response,this.attachPage(r));_.FN(this.hostElement,"yt-page-data-updated",{pageType:f})}_.pS(_.w8,function(){_.U("logging_avoid_blocking_during_navigation")&&_.C$z().transition("none");var p=J8L(),X=r;if(W){var w=RwH(W),O=t1Y(W),S;a:{if(W.playerResponse){var N=W.playerResponse,x;if((S=N.auxiliaryUi)==null?0:(x=S.messageRenderers)==null?0:x.upsellDialogRenderer){S=N.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(W.response&&(S=W.response,(N=S.overlay)==null?0:N.upsellDialogRenderer)){S=S.overlay.upsellDialogRenderer;break a}S=void 0}var Y;var W8;x=(Y=W.playerResponse)==null?void 0:(W8=Y.auxiliaryUi)==null?void 0:W8.messageRenderers;Y=(x==null?void 0:x.enforcementMessageViewModel)||(x==null?void 0:x.bkaEnforcementMessageViewModel);Y=(Y==null?void 0:Y.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?Y:void 0;var c8;a:{if(W.response&&(W8=W.response,(c8=W8.overlay)==null?0:
c8.commandWrapperPromoRenderer)){c8=W8.overlay.commandWrapperPromoRenderer;break a}c8=void 0}dyH(p,w,O,S,Y,c8,X)}})};
_.t.preparePrefetchRequest=function(W,l,V,f,r,R){var y,P,n,B,d,J,D,u,H,p,X,w,O,S,N;return _.g(function(x){if(x.nextAddress==1)return!V||!(f||r||R)||_.U("kevlar_disable_background_prefetch")&&_.ah(_.a3z)()===0?x.return():(y=_.dH(l))?x.yield(y.getPlayerPromise(),2):x.return();P=x.yieldResult;n=_.tY().resolve(_.R0(_.lm));if(!n)return x.return();if(r)return B=_.nt(_.V5),Nlw(B,(d=W.endpoint)==null?void 0:d.reelWatchEndpoint,l.reelWatchSequenceResponse,P,n),x.return();u=(J=W.response)==null?void 0:(D=J.responseContext)==
null?void 0:D.webResponseContextExtensionData;if(!u)return x.return();O=(H=W.response)==null?void 0:(p=H.contents)==null?void 0:(X=p.twoColumnWatchNextResults)==null?void 0:(w=X.autoplay)==null?void 0:w.autoplay;S=_.tY().resolve(_.dZ);N=_.nt(_.V5);YHH(N,u,P,n,S,O);_.ju(x)})};
_.t.movePlayerToWatch=function(W){var l=this,V,f;return _.g(function(r){V=GC(l.pagePool,"watch");f=V.getPlayerContainer();W.appendTo(f);_.ju(r)})};
_.t.movePlayerToShorts=function(W){var l=this,V,f,r;return _.g(function(R){V=GC(l.pagePool,"shorts");f=V.getPlayerContainer();(r=W)==null||r.appendTo(f,void 0,!0);_.ju(R)})};
_.t.getPlayerFromWatch=function(){var W=GC(this.pagePool,"watch");return _.dH(W)};
_.t.getPlayerFromShorts=function(){var W=GC(this.pagePool,"shorts");return _.dH(W)};
_.t.startLoadingWatch=function(){var W=this,l=GC(this.pagePool,"watch");this.renderLoadingStateJobId?(_.w8.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.U("web_watch_transition_enable_start_loading_watch_callsite")?FZc(this.viewTransitionManager,function(){W.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(l)};
_.t.startLoadingShorts=function(){var W=GC(this.pagePool,"shorts");this.setActivePage(W)};
_.t.startLoadingLearningJourney=function(){var W=GC(this.pagePool,"learning_journey_watch");this.setActivePage(W)};
_.t.getCurrentPage=function(){return this.currentPage};
_.t.getDestinationPageType=function(){return this.destinationPageType};
_.t.getCurrentData=function(){return this.data};
_.t.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.t.isOnShorts=function(){var W;return((W=this.currentPage)==null?void 0:W.is)==="ytd-shorts"};
_.t.isWatchPage=function(W){return!!W&&(W.is==="ytd-watch-flexy"||W.is==="ytd-watch-fixie"||W.is==="ytd-watch-grid")};
_.t.preparePage=function(W,l){var V=this,f=function(){var y=V.pagePool.preparePage(W,V.currentPage,l);y&&V.attachPage(y)},r=function(y){_.MJ(y,l);
_.Qe(y)};
if(_.U("kevlar_enable_mss_page_modules_client")){var R=this.getModuleNameForType(W);if(R=vtw(_.tY().resolve(_.$P),[R])){R.then(f.bind(this)).catch(r.bind(this));return}}try{f()}catch(y){r(y)}};
_.t.lazyPrepareCriticalPages=function(W,l){W=_.M$(l)||W;_.U("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(W).then(this.maybePrepareWatchPage.bind(this,W)):this.maybePrepareWatchPage(W)};
_.t.maybePrepareWatchPage=function(W){W==="watch"||W==="learning_journey_watch"&&_.U("web_watch_learning_journey_disable_lazy_pages")||_.pS(_.w8,this.preparePage.bind(this,"watch"))};
_.t.downloadPageModules=function(W){W=this.getModuleNameForType(W);var l=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);l.delete(W);var V=_.tY().resolve(_.$P);V.JSC$18565_loadModules(W);return V.JSC$18565_loadModules.apply(V,_.QK(l))};
_.t.renderPageLoadingState=function(W,l){this.preparePage(W,l);var V=GC(this.pagePool,W);V.loadingData&&(V.loadingData.endpoint=l);V.loading=!0;this.setActivePage(V);W!=="watch"&&W!=="learning_journey_watch"||_.FN(this.hostElement,"yt-guide-close")};
_.t.prepareForNavigation=function(W,l){var V=this;if(this.currentPage&&this.data){var f=_.M$(l)||W;this.destinationPageType=f;$i(this.data)==f&&_.FN(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((W==="watch"||W==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.w8.cancelJob(this.renderLoadingStateJobId);_.tY().resolve(_.Sl).deactivate(l);_.Kt(_.w8,function(){var R=V.viewTransitionManager,y=V.currentPage;
if(R.isLockupToWatchTransitionEnabled&&R.isLockupThumbnailRegistrationEnabled&&y)if(R.registeredLockupThumbnail)R.lockupThumbnailRegisteredFromWatchEndpoint&&_.Qe(new _.bP("Lockup thumbnail already registered from watch endpoint."));else{a:{var P=_.k(l,_.Bh);if(P==null?0:P.videoId){var n="yt-lockup-view-model ."+_.aCU(P.videoId)+" yt-thumbnail-view-model";y=y.querySelectorAll(n);if(y.length===1){P=y[0];break a}y.length>1?_.Qe(new _.bP("Multiple LockupViewModel thumbnails found for videoId: "+P.videoId+
". Selector: "+n)):_.U("web_thumbnail_to_watch_transition_debug")&&_.Qe(new _.bP("No LockupViewModel thumbnail found for videoId: "+P.videoId+". Selector: "+n))}P=void 0}P&&(R.registeredLockupThumbnail=P,R.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.Bd2(R,P))}});
var r=this.data;this.renderLoadingStateJobId=_.Kt(_.w8,function(){FZc(V.viewTransitionManager,function(){if(V.data!=r){var R=GC(V.pagePool,W);V.setActivePage(R)}else V.renderPageLoadingState(W,l);V.renderLoadingStateJobId=0})},150)}};
_.t.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var W=new _.Tv(1);this.currentPage.pageDisposeJobs.forEach(function(l){_.wY(W,l)});
this.pageDisposeJobsets.set(this.currentPage,W)}};
_.t.flushPageDisposeJobset=function(W){var l=this.pageDisposeJobsets.get(W);l&&(l.flushJobs(),this.pageDisposeJobsets.delete(W))};
_.t.onYtStopOldPlayer=function(W,l){l=l===void 0?!1:l;var V,f=_.n7("kevlar_new_stop_old_player_logic_pages");if(_.U("kevlar_check_current_page_on_stop_old_player")&&(f.length===0||this.currentPage&&f.includes(this.currentPage.is)))if(this.data&&(V=$i(this.data)),$i(W)===V&&this.currentPage&&$i(this.currentPage.data)!==V)var r=_.dH(this.currentPage);else V=$i(this.data),r=GC(this.pagePool,V),r=_.dH(r);else this.data&&(V=$i(this.data),r=GC(this.pagePool,V),r=_.dH(r));if(r)if(W=$i(W),f=GC(this.pagePool,
W),f=_.dH(f),r==f)l&&!_.U("kevlar_disable_preemptive_player_reset")&&r.resetForNewPlayback();else if(l=V==="watch"&&W!=="watch",!l||W==="shorts"||_.IOM()&&!ktY(this.data)&&W!=="yts-products"&&W!="mini_app"&&W!="playables")V=_.tY().resolve(_.Sl),l&&V.isMiniplayerActive()&&V.pipController.getWindow()||r.stop()};
_.t.isDifferentBrowseId=function(W,l){W=_.k(W,_.ZJ);l=_.k(l,_.ZJ);return(W==null?void 0:W.browseId)!==(l==null?void 0:l.browseId)};
_.rc.Object.defineProperties(At,{template:{configurable:!0,enumerable:!0,get:function(){return BDL()}}});
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],At.prototype,"ytActionHandlerBehavior",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-page-manager"})],At);_.Z(At,"ytd-page-manager",function(){return BDL()},{mode:_.bD("kevlar_poly_si_batch_j081")?1:2});var dQe;var Qg=function(){var W=_.I.apply(this,arguments)||this;W.useListItemStyles=_.U("web_list_item_style_for_menu_items");W.systemIcons=_.U("kevlar_system_icons");return W};
_.v(Qg,_.I);_.t=Qg.prototype;_.t.ready=function(){this.hostElement.addEventListener("tap",_.mz(this,this.onEndpointTapExtra))};
_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.t.onFocus=function(){var W;(W=_.GS(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.t.onEndpointTapExtra=function(W){_.FN(this.hostElement,"iron-activate");var l=this.data.navigationEndpoint;l&&_.k(l,_.J_z)&&(W.stopPropagation(),_.og(this.hostElement,[l],this.hostElement))};
_.t.computeIcon=function(W){return W&&W.iconType?_.IJ(W.iconType):""};
_.t.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.t.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.t.forceUpdateStylesOnLegacyBrowsers=function(){_.U("kevlar_legacy_browsers")&&_.I1(this.hostElement)};
Qg.prototype.forceUpdateStylesOnLegacyBrowsers=Qg.prototype.forceUpdateStylesOnLegacyBrowsers;Qg.prototype.onFocus=Qg.prototype.onFocus;_.a([_.F(_.i5),_.z("design:type",Object)],Qg.prototype,"ytdOpenPopupBehavior",void 0);_.a([_.F(_.tv1.YtConditionalRendererBehavior),_.z("design:type",Object)],Qg.prototype,"ytConditionalRendererBehavior",void 0);_.a([_.F(_.qq.YtEndpointBehavior),_.z("design:type",Object)],Qg.prototype,"ytEndpointBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],Qg.prototype,"data",void 0);_.a([_.b({computed:"computeIcon(data.icon)",value:""}),_.z("design:type",String)],Qg.prototype,"icon",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],Qg.prototype,"useIcons",void 0);_.a([_.b({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.z("design:type",Boolean)],Qg.prototype,"hasSeparator",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Qg.prototype,"useListItemStyles",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Qg.prototype,"systemIcons",void 0);_.a([_.XI("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qg.prototype,"onFocus",null);_.a([_.TS("useIcons","hasSeparator"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Qg.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.Z(Qg,"ytd-menu-navigation-item-renderer",function(){if(dQe===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);dQe=W}W=dQe;return W},{mode:1});var JTs;var DQ4=_.Bl(_.wg("DOWNLOAD",{},"Download")),UQH=_.Bl(_.wg("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),uG1=_.Bl(_.wg("RETRY",{},"Retry")),kOH=_.Bl(_.wg("PAUSE_DOWNLOADING",{},"Pause downloading")),vF4=_.Bl(_.wg("RESUME_DOWNLOAD",{},"Resume download")),Mw=function(){var W=_.I.apply(this,arguments)||this;W.primaryText=DQ4;W.primaryIconType="OFFLINE_DOWNLOAD";W.hasSecondaryContent=!1;W.hasSeparator=!1;W.transferState="TRANSFER_STATE_UNKNOWN";W.isVideoDeletedByUser=!1;W.isHidden=!1;W.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return W};
_.v(Mw,_.I);_.t=Mw.prototype;_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.t.onFocus=function(){this.primaryEntry.focus()};
_.t.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.t.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.t.getRemoveAction=function(){return"ACTION_REMOVE"};
_.t.sendOfflineAction=function(W){var l=this.data.serviceEndpoint;if(l){var V=_.k(l,_.Xx);V&&W&&(V.action=W);this.ytComponentBehavior.resolveCommand(l)}};
_.t.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=DQ4,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=DQ4;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=uG1;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=UQH;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=vF4;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=UQH;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
kOH;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=UQH;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=UQH;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=DQ4,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.t.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.t.isSecondaryEntryHidden=function(W,l){return W?!0:!l};
_.t.computeHasSeparator=function(){var W;return!((W=this.data)==null||!W.hasSeparator)};
Mw.prototype.showHideButton=Mw.prototype.showHideButton;Mw.prototype.onTransferStateChange=Mw.prototype.onTransferStateChange;Mw.prototype.onFocus=Mw.prototype.onFocus;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],Mw.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Mw.prototype,"ytComponentBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],Mw.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Mw.prototype,"primaryText",void 0);_.a([_.b(),_.z("design:type",String)],Mw.prototype,"primaryIconType",void 0);_.a([_.b(),_.z("design:type",String)],Mw.prototype,"primaryAction",void 0);_.a([_.b(),_.z("design:type",Object)],Mw.prototype,"secondaryText",void 0);_.a([_.b(),_.z("design:type",String)],Mw.prototype,"secondaryIconType",void 0);
_.a([_.b(),_.z("design:type",String)],Mw.prototype,"secondaryAction",void 0);_.a([_.b(),_.z("design:type",Object)],Mw.prototype,"hasSecondaryContent",void 0);_.a([_.b({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.z("design:type",Object)],Mw.prototype,"hasSeparator",void 0);_.a([_.b({selector:_.rE,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.z("design:type",String)],Mw.prototype,"transferState",void 0);
_.a([_.b({selector:_.lSx,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.z("design:type",Object)],Mw.prototype,"isVideoDeletedByUser",void 0);_.a([_.b(),_.z("design:type",Object)],Mw.prototype,"isHidden",void 0);_.a([_.b({selector:_.emj,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.z("design:type",Object)],Mw.prototype,"offlineabilityState",void 0);_.a([_.Aa("#primary-entry"),_.z("design:type",Object)],Mw.prototype,"primaryEntry",void 0);
_.a([_.XI("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mw.prototype,"onFocus",null);_.a([_.zS("transferState","isVideoDeletedByUser"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mw.prototype,"onTransferStateChange",null);_.a([_.zS("offlineabilityState"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Mw.prototype,"showHideButton",null);
_.Z(Mw,"ytd-menu-service-item-download-renderer",function(){if(JTs===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);JTs=W}W=JTs;return W},{mode:1});var HFe;var ZM=function(){var W=_.I.apply(this,arguments)||this;W.useIcons=!1;W.systemIcons=_.U("kevlar_system_icons");W.useListItemStyles=_.U("web_list_item_style_for_menu_items");return W};
_.v(ZM,_.I);_.t=ZM.prototype;_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.t.onFocus=function(){var W;(W=_.GS(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.t.onTap=function(){_.bj(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var W=this.data.serviceEndpoint,l=this.data.command;if(W){var V,f=(V=this.data)==null?void 0:V.trackingParams;V=!!_.k(W,_.OBI);f&&V&&_.DJ().dispatch(_.GT({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:f}}));this.ytComponentBehavior.resolveCommand(W)||_.tY().resolve(_.s6).resolveCommand(W,{form:{element:this.hostElement}})}l&&(this.ytComponentBehavior.resolveCommand(l)||_.og(this.hostElement,
[l],this.hostElement))};
_.t.computeIcon=function(W){return W&&W.iconType?_.IJ(W.iconType):""};
_.t.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.t.computeHasSeparator=function(){var W;return!((W=this.data)==null||!W.hasSeparator)};
_.t.forceUpdateStylesOnLegacyBrowsers=function(){_.U("kevlar_legacy_browsers")&&_.I1(this.hostElement)};
_.t.computeIsSelected=function(){var W;return!((W=this.data)==null||!W.isSelected)};
ZM.prototype.forceUpdateStylesOnLegacyBrowsers=ZM.prototype.forceUpdateStylesOnLegacyBrowsers;ZM.prototype.onTap=ZM.prototype.onTap;ZM.prototype.onFocus=ZM.prototype.onFocus;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ZM.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.i5),_.z("design:type",Object)],ZM.prototype,"ytdOpenPopupBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],ZM.prototype,"ytComponentBehavior",void 0);
_.a([_.F(_.tv1.YtConditionalRendererBehavior),_.z("design:type",Object)],ZM.prototype,"ytConditionalRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ZM.prototype,"data",void 0);_.a([_.b({computed:"computeIcon(data.icon)",value:""}),_.z("design:type",String)],ZM.prototype,"icon",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ZM.prototype,"useIcons",void 0);
_.a([_.b({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.z("design:type",Boolean)],ZM.prototype,"hasSeparator",void 0);_.a([_.b({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.z("design:type",Boolean)],ZM.prototype,"isSelected",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ZM.prototype,"systemIcons",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],ZM.prototype,"useListItemStyles",void 0);
_.a([_.XI("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZM.prototype,"onFocus",null);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],ZM.prototype,"onTap",null);_.a([_.TS("useIcons","hasSeparator"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ZM.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.Z(ZM,"ytd-menu-service-item-renderer",function(){if(HFe===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);HFe=W}W=HFe;return W},{mode:2});var Kn2;var Oi=function(){return _.I.apply(this,arguments)||this};
_.v(Oi,_.I);_.t=Oi.prototype;_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.onDataChanged=function(){var W=this;_.V9(this,function(){W.postbox.openDialog();W.focus();_.FN(W.hostElement,"yt-refit")})};
_.t.focus=function(){this.postbox.focus()};
_.t.closePopup=function(){_.Gt(this.hostElement,"yt-close-popup-action")};
_.t.onYtCommentboxDismiss=function(){this.closePopup()};
Oi.prototype.onYtCommentboxDismiss=Oi.prototype.onYtCommentboxDismiss;Oi.prototype.onDataChanged=Oi.prototype.onDataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Oi.prototype,"data",void 0);_.a([_.b({value:function(){return _.wg("SBOX_INAPPROPRIATE_CANCEL")}}),
_.z("design:type",String)],Oi.prototype,"closeButtonAriaLabel",void 0);_.a([_.Aa("#postbox"),_.z("design:type",Object)],Oi.prototype,"postbox",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Oi.prototype,"onDataChanged",null);_.a([_.XI("yt-commentbox-dismiss"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Oi.prototype,"onYtCommentboxDismiss",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],Oi);
_.Z(Oi,"ytd-backstage-post-dialog-popup-renderer",function(){if(Kn2!==void 0)return Kn2;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Kn2=W},{mode:1});var Fne;var aI=function(){return _.I.apply(this,arguments)||this};
_.v(aI,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],aI.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],aI.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],aI);
_.Z(aI,"ytd-sender-id-section-renderer",function(){if(Fne!==void 0)return Fne;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
return Fne=W},{mode:1});var GO1;var bFL;var pH7;var zC=function(){return _.I.apply(this,arguments)||this};
_.v(zC,_.I);zC.prototype.closePopup=function(){_.Gt(this.hostElement,"yt-close-popup-action")};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],zC.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],zC.prototype,"data",void 0);_.a([_.Vq({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],zC);
_.Z(zC,"yt-community-post-section-renderer",function(){if(pH7===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;bFL===void 0&&(bFL=document.createElement("template"));var f=bFL;V.call(l,f.content.cloneNode(!0),W.content.firstChild);pH7=W}W=pH7;return W},{mode:2});var oFe;var j4e;var Io1;var iFY;var mQN;var XH5;var Nw=function(){return _.I.apply(this,arguments)||this};
_.v(Nw,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Nw.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Nw.prototype,"data",void 0);_.a([_.Vq({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Nw);
_.Z(Nw,"yt-share-start-time-with-context-renderer",function(){if(XH5===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;mQN===void 0&&(mQN=document.createElement("template"));var f=mQN;V.call(l,f.content.cloneNode(!0),W.content.firstChild);XH5=W}W=XH5;return W},{mode:2});var Yl=function(){return _.I.apply(this,arguments)||this};
_.v(Yl,_.I);Yl.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Yl.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Yl.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Yl.prototype,"data",void 0);_.a([_.Vq({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],Yl);
_.Z(Yl,"yt-share-panel-title-v15-renderer",function(){if(iFY===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;Io1===void 0&&(Io1=document.createElement("template"));var f=Io1;V.call(l,f.content.cloneNode(!0),W.content.firstChild);iFY=W}W=iFY;return W},{mode:2});var xl=function(){return _.I.apply(this,arguments)||this};
_.v(xl,_.I);xl.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"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],xl.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],xl.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],xl.prototype,"data",void 0);_.a([_.Vq({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],xl);
_.Z(xl,"yt-share-panel-header-renderer",function(){if(j4e===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;oFe===void 0&&(oFe=document.createElement("template"));var f=oFe;V.call(l,f.content.cloneNode(!0),W.content.firstChild);j4e=W}W=j4e;return W},{mode:2});var TDc;var wHw;var eI=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-open-popup-action":"onOpen"};return W};
_.v(eI,_.I);_.t=eI.prototype;_.t.attached=function(){this.onOpen()};
_.t.updateTimeSecs=function(W){this.currentTimeSecs=W};
_.t.computeTimeString=function(W){W=W.toString();var l=Math.floor(Number(W)/3600),V=Math.floor(Number(W)%3600%60);return(l>0?l+":":"")+_.vs(Math.floor(Number(W)%3600/60),l>0?2:1)+":"+_.vs(V,2)};
_.t.computeTimeStringA11y=function(W){W=_.fS4({seconds:W});var l=W.hours===void 0?0:W.hours,V=W.minutes===void 0?0:W.minutes,f=W.seconds===void 0?0:W.seconds;W=[];if(l>0){var r=ssw().format({hours:l});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.La)||l>9999)r=r.replace(l.toString(),_.rpq(l)),_.La==="km"&&(r=r.replace(".",","));W.push(r)}V>0&&W.push(ssw().format({minutes:V}));f>0&&W.push(ssw().format({seconds:f}));l="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");V=_.La==
"am"?"{0}\u1363 ":_.La=="fa"?"{0}\u060c\u200f ":_.La=="my"?"{0} - ":_.La=="ne"?"{0},":_.La=="th"?"{0} ":_.La=="ur"?"{0}\u060c ":_.La=="ar"||_.La=="ar-XB"?"{0} \u0648":_.La=="ja"||_.La=="zh-CN"||_.La=="zh-HK"||_.La=="zh-TW"?"{0}\u3001":"{0}, ";f=_.La=="am"?"\u1363 ":_.La=="fa"?"\u060c\u200f ":_.La=="my"?" - ":_.La=="th"?" ":_.La=="ur"?"\u060c ":_.La=="ar"||_.La=="ar-XB"?" \u0648":_.La=="ja"||_.La=="zh-CN"||_.La=="zh-HK"||_.La=="zh-TW"?"\u3001":", ";r=_.La=="am"?" \u12a5\u1293 {0}":_.La=="as"?" \u0986\u09f0\u09c1 {0}":
_.La=="az"?" v\u0259 {0}":_.La=="bn"?" \u098f\u09ac\u0982 {0}":_.La=="cs"?" a\u00a0{0}":_.La=="de"?" und {0}":_.La=="el"?" \u03ba\u03b1\u03b9 {0}":_.La=="eu"?" eta {0}":_.La=="fa"?"\u060c \u0648 {0}":_.La=="fil"?", at {0}":_.La=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.La=="hi"?", \u0914\u0930 {0}":_.La=="hu"?" \u00e9s {0}":_.La=="hy"?" \u0587 {0}":_.La=="id"?", dan {0}":_.La=="iw"?" \u05d5-{0}":_.La=="ja"?"\u3001{0}":_.La=="ka"?" \u10d3\u10d0 {0}":_.La=="km"?" \u1793\u17b7\u1784 {0}":_.La=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.La=="ko"?" \ubc0f {0}":_.La=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.La=="lt"?" ir {0}":_.La=="lv"?" un {0}":_.La=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.La=="mr"?" \u0906\u0923\u093f {0}":_.La=="ms"?" dan {0}":_.La=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.La=="ne"?" \u0930 {0}":_.La=="or"?", \u0b13 {0}":_.La=="pa"?" \u0a05\u0a24\u0a47 {0}":_.La=="ro"?" \u0219i {0}":_.La=="si"?", \u0dc3\u0dc4 {0}":_.La=="sk"?" a {0}":_.La=="sl"?" in {0}":_.La=="sq"?" dhe {0}":_.La=="sv"?" och {0}":
_.La=="sw"?" na {0}":_.La=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.La=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.La=="th"?" \u0e41\u0e25\u0e30{0}":_.La=="tr"?" ve {0}":_.La=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.La=="uz"?" va {0}":_.La=="vi"?" v\u00e0 {0}":_.La=="zh-HK"?"\u53ca{0}":_.La=="zu"?", ne-{0}":_.La=="af"||_.La=="nl"?" en {0}":_.La=="ar"||_.La=="ar-XB"?" \u0648{0}":_.La=="be"||_.La=="uk"?" \u0456 {0}":_.La=="en-GB"||_.La=="en-IN"?" and {0}":_.La=="en"||_.La=="en-XA"?
", and {0}":_.La=="et"||_.La=="fi"?" ja {0}":_.La=="fr"||_.La=="fr-CA"?" et {0}":_.La=="zh-CN"||_.La=="zh-TW"?"\u548c{0}":_.La=="da"||_.La=="is"||_.La=="no"?" og {0}":_.La=="es"||_.La=="es-419"||_.La=="es-US"?" y {0}":_.La=="kk"||_.La=="lo"||_.La=="mn"?", {0}":_.La=="bg"||_.La=="mk"||_.La=="ru"||_.La=="sr"?" \u0438 {0}":_.La=="gl"||_.La=="it"||_.La=="pt-BR"||_.La=="pt-PT"?" e {0}":" i {0}";var R=_.La=="am"?"{0} \u12a5\u1293 {1}":_.La=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.La=="az"?"{0} v\u0259 {1}":
_.La=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.La=="de"?"{0} und {1}":_.La=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.La=="eu"?"{0} eta {1}":_.La=="fa"?"{0} \u0648 {1}":_.La=="fil"?"{0} at {1}":_.La=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.La=="hi"?"{0} \u0914\u0930 {1}":_.La=="hu"?"{0} \u00e9s {1}":_.La=="hy"?"{0} \u0587 {1}":_.La=="iw"?"{0} \u05d5-{1}":_.La=="ja"?"{0}\u3001{1}":_.La=="ka"?"{0} \u10d3\u10d0 {1}":_.La=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.La=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.La=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.La=="ko"?"{0} \ubc0f {1}":_.La=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.La=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.La=="lt"?"{0} ir {1}":_.La=="lv"?"{0} un {1}":_.La=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.La=="mn"?"{0}, {1}":_.La=="mr"?"{0} \u0906\u0923\u093f {1}":_.La=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.La=="ne"?"{0} \u0930 {1}":_.La=="or"?"{0} \u0b13 {1}":_.La=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.La=="ro"?"{0} \u0219i {1}":_.La==
"si"?"{0} \u0dc3\u0dc4 {1}":_.La=="sl"?"{0} in {1}":_.La=="sq"?"{0} dhe {1}":_.La=="sv"?"{0} och {1}":_.La=="sw"?"{0} na {1}":_.La=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.La=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.La=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.La=="tr"?"{0} ve {1}":_.La=="ur"?"{0} \u0627\u0648\u0631 {1}":_.La=="uz"?"{0} va {1}":_.La=="vi"?"{0} v\u00e0 {1}":_.La=="zh-HK"?"{0}\u53ca{1}":_.La=="zu"?"{0} ne-{1}":_.La=="af"||_.La=="nl"?"{0} en {1}":_.La=="ar"||_.La==
"ar-XB"?"{0} \u0648{1}":_.La=="be"||_.La=="uk"?"{0} \u0456 {1}":_.La=="cs"||_.La=="sk"?"{0} a\u00a0{1}":_.La=="et"||_.La=="fi"?"{0} ja {1}":_.La=="fr"||_.La=="fr-CA"?"{0} et {1}":_.La=="id"||_.La=="ms"?"{0} dan {1}":_.La=="zh-CN"||_.La=="zh-TW"?"{0}\u548c{1}":_.La=="da"||_.La=="is"||_.La=="no"?"{0} og {1}":_.La=="es"||_.La=="es-419"||_.La=="es-US"?"{0} y {1}":_.La=="bg"||_.La=="mk"||_.La=="ru"||_.La=="sr"?"{0} \u0438 {1}":_.La=="en"||_.La=="en-GB"||_.La=="en-IN"||_.La=="en-XA"?"{0} and {1}":_.La==
"gl"||_.La=="it"||_.La=="pt-BR"||_.La=="pt-PT"?"{0} e {1}":"{0} i {1}";_.La==="sq"?(r=r.replace("dhe","e"),R=R.replace("dhe","e")):_.La==="th"?(f=f.replace("{0}"," {0}"),R=R.replace("{0}","{0} "),R=R.replace("{1}"," {1}")):_.La==="ne"?f=",":_.La==="zh-CN"?f="":l.includes(_.La)&&(f=" ");return W.length<2?W.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(_.La)?W.length===2?
R.replace("{0}",W[0]).replace("{1}",W[1]):V.replace("{0}",W[0])+W.slice(1,-1).join(f)+r.replace("{0}",W[W.length-1]):W.join(f)};
_.t.getTimeParam=function(){return Fr4(this.timeString)};
_.t.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var W={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},l;_.YQ(_.Qq(),(l=this.data)==null?void 0:l.trackingParams,W,7)};
_.t.onChangeStartAtTimestamp=function(){for(var W=this.startAtTimestamp.value.split(":"),l=0,V=1,f=W.length-1;f>=0;f--)l+=Number(W[f])*V,V*=60;this.updateTimeSecs(l);this.setTimestamp()};
_.t.onOpen=function(){var W=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var l=_.Jy();l?l.getPlayerPromise().then(function(V){V=V.getCurrentTime();W.updateTimeSecs(V)}):Rss()&&this.updateTimeSecs(Rss())};
_.t.setTimestamp=function(){var W=Math.floor(this.currentTimeSecs);_.Gt(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!W,timestamp:W||""}])};
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],eI.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],eI.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],eI.prototype,"data",void 0);_.a([_.b({value:!1,notify:!0}),_.z("design:type",Boolean)],eI.prototype,"isStartAtChecked",void 0);_.a([_.b(),_.z("design:type",Number)],eI.prototype,"currentTimeSecs",void 0);
_.a([_.b({computed:"computeTimeString(currentTimeSecs)"}),_.z("design:type",String)],eI.prototype,"timeString",void 0);_.a([_.b({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.z("design:type",String)],eI.prototype,"timeStringA11y",void 0);_.a([_.Aa("#start-at-timestamp"),_.z("design:type",Object)],eI.prototype,"startAtTimestamp",void 0);_.a([_.Vq({is:"yt-start-at-renderer",disableElementRegistration:!0})],eI);
_.Z(eI,"yt-start-at-renderer",function(){if(wHw===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;TDc===void 0&&(TDc=document.createElement("template"));var f=TDc;V.call(l,f.content.cloneNode(!0),W.content.firstChild);wHw=W}W=wHw;return W},{mode:2});var ATe;var Q47;var M91=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"]]),ZF2=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"]]),OFw=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var aoY={};aoY.YtBindingExpressionsBehavior={identity:_.wS,msg:function(W,l){l=l===void 0?{}:l;return _.wg(W,l,W)},
msgPlural:function(W,l){return _.Ag(W,l)},
getMusicIconFromType:function(W){if(_.U("music_web_enable_icon_wil"))W=_.IJ(W);else if(ZF2.has(W))W="yt-sys-icons:"+ZF2.get(W);else{var l=M91.get(W)||_.IJ(W).split(":")[1];l=_.ja4(l);var V;W=((V=OFw.get(W))!=null?V:"yt-sys-icons:")+l}return W}};var zgZ;var NDN;var Y3w;var xQ5=document.head,egc=xQ5.appendChild,q3e;if(Y3w===void 0){var hgN=document.createElement("template");_.K(hgN,'\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>');Y3w=hgN}q3e=Y3w;egc.call(xQ5,q3e.content);var qw=function(){var W=_.I.apply(this,arguments)||this;W.screenLayer=7;return W};
_.v(qw,_.I);qw.prototype.getScreenLayer=function(){return this.screenLayer};
qw.prototype.onTap=function(W){W&&W.detail&&(W.detail.x||W.detail.y)&&_.GS(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.pN(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(W=this.getScreenLayer(),_.FN(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:W}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.rc.Object.defineProperties(qw.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()}}});
qw.prototype.onTap=qw.prototype.onTap;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],qw.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],qw.prototype,"data",void 0);_.a([_.G("data.title"),_.z("design:type",Object),_.z("design:paramtypes",[])],qw.prototype,"title",null);
_.a([_.G("data.serviceName"),_.z("design:type",String),_.z("design:paramtypes",[])],qw.prototype,"icon",null);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],qw.prototype,"onTap",null);_.a([_.Vq({is:"yt-share-target-renderer",disableElementRegistration:!0})],qw);
_.Z(qw,"yt-share-target-renderer",function(){if(NDN===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;zgZ===void 0&&(zgZ=document.createElement("template"));var f=zgZ;V.call(l,f.content.cloneNode(!0),W.content.firstChild);NDN=W}W=NDN;return W},{mode:2});var S3c;var EF1;var ht=function(){var W=_.I.apply(this,arguments)||this;W.SHARE_TARGET_WIDTH=70;W.SHARE_TARGET_MARGIN_RIGHT=8;W.PAGE_SCROLL_SPEED=9;W.actionMap={"yt-share-panel-reset-action":"onReset_"};return W};
_.v(ht,_.I);_.t=ht.prototype;_.t.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.t.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.GS(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.GS(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.t.onReset_=function(){if(_.GS(this.hostElement).querySelector("#list")){var W=_.GS(this.hostElement).querySelector("#list");var l=_.GS(this.hostElement).querySelector("#list");var V=l.offsetLeft,f=l.offsetParent;f||_.S5c(l)!="fixed"||(f=_.z7(l).documentElement);if(f){if(_.vF&&!_.K4(58)){var r=_.RyZ(f);V+=r.left}else Number(_.JNF)>=8&&!(Number(_.JNF)>=9)&&(r=_.RyZ(f),V-=r.left);l=_.faZ(f)?f.clientWidth-(V+l.offsetWidth):V}else l=V;epe(W,l);this.updateScrollButtons_()}};
_.t.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.t.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.t.onScrollWheel_=function(W){W.stopPropagation();W.preventDefault();var l=xGL(_.GS(this.hostElement).querySelector("#list"));W=Math.abs(W.deltaX)>Math.abs(W.deltaY)?W.deltaX:W.deltaY;epe(_.GS(this.hostElement).querySelector("#list"),l+W);this.updateScrollButtons_()};
_.t.smoothScrollByOnePage_=function(W){var l=_.GS(this.hostElement).querySelector("#list"),V=(Math.floor(l.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,f=xGL(l),r=V*(W?1:-1),R=this.PAGE_SCROLL_SPEED,y=this.updateScrollButtons_.bind(this),P=0,n;(function d(){P+=R;n=P/V*2;epe(l,f+r*(n<1?n*n:-n*n+4*n-2));P<V?window.requestAnimationFrame(d):y()})()};
_.t.updateScrollButtons_=function(){var W=xGL(_.GS(this.hostElement).querySelector("#list")),l=_.GS(this.hostElement).querySelector("#list").scrollWidth-_.GS(this.hostElement).querySelector("#list").clientWidth;_.GS(this.hostElement).querySelector("#scroll-button-back").hidden=W<=0;_.GS(this.hostElement).querySelector("#scroll-button-forward").hidden=W>=l};
ht.prototype.onScrollWheel_=ht.prototype.onScrollWheel_;ht.prototype.onDataChanged_=ht.prototype.onDataChanged_;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ht.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],ht.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(aoY.YtBindingExpressionsBehavior),_.z("design:type",Object)],ht.prototype,"ytBindingExpressionsBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ht.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ht.prototype,"data",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ht.prototype,"onDataChanged_",null);_.a([_.XI("wheel"),_.z("design:type",Function),_.z("design:paramtypes",[WheelEvent]),_.z("design:returntype")],ht.prototype,"onScrollWheel_",null);
_.a([_.Vq({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],ht);
_.Z(ht,"yt-third-party-share-target-section-renderer",function(){if(EF1===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;S3c===void 0&&(S3c=document.createElement("template"));var f=S3c;V.call(l,f.content.cloneNode(!0),W.content.firstChild);EF1=W}W=EF1;return W},{mode:2});var SI=function(){return _.I.apply(this,arguments)||this};
_.v(SI,_.I);SI.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"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],SI.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],SI.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],SI.prototype,"data",void 0);_.a([_.Vq({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],SI);
_.Z(SI,"yt-third-party-network-section-renderer",function(){if(Q47===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;ATe===void 0&&(ATe=document.createElement("template"));var f=ATe;V.call(l,f.content.cloneNode(!0),W.content.firstChild);Q47=W}W=Q47;return W},{mode:2});_.HI(_.Q(function(W){return _.C("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.C("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.C(_.QH,{data:function(){return W.data().firstPartyItems}},{listItemViewModel:_.dR})))},"kh"),"first-party-network-section-view-model",{props:{data:_.pA}});var $Qs=_.tj(["data:image/svg+xml;charset=UTF-8;base64,",""]),Ei=function(){var W=_.I.apply(this,arguments)||this;W.screenLayer=7;W.qrCodeEnabled=_.U("web_enable_sharing_qr_code");W.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return W};
_.v(Ei,_.I);_.t=Ei.prototype;_.t.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"}}}};
_.t.attached=function(){this.JSC$20062_scroller&&(this.JSC$20062_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20062_scroller.attached&&typeof this.JSC$20062_scroller.attached==="function"&&this.JSC$20062_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.t.onDataChanged=function(){var W=this,l;(l=this.data)!=null&&l.contents&&(this.hostElement.setAttribute("links-only","true"),_.o1(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.V9(this,function(){_.FN(W.hostElement,"yt-refit");W.focusSharePanelHeader()}))};
_.t.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.t.handleSetTimestamp=function(W){var l=this.shortUrl();W.isSet&&(l=_.LU(l,"t",W.timestamp));this.maybeRenderQrCode(l)};
_.t.shortUrl=function(){var W,l=(W=this.data)==null?void 0:W.contents;if(l)for(W=0;W<l.length;W++){var V=void 0,f=void 0;if((V=l[W])==null?0:(f=V.thirdPartyNetworkSection)==null?0:f.copyLinkContainer){var r=f=V=void 0;return(r=_.k((V=l[W])==null?void 0:(f=V.thirdPartyNetworkSection)==null?void 0:f.copyLinkContainer,qqe))==null?void 0:r.shortUrl}}};
_.t.maybeRenderQrCode=function(W){var l=this,V,f,r,R,y,P,n,B,d;return _.g(function(J){if(J.nextAddress==1){V=_.GS(l.hostElement).querySelector("#qr-code");if(!l.qrCodeEnabled||!W)return V&&(V.style.display="none"),J.return();f=_.QVn(_.tY().resolve(_.iD),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});r=document.createElement("div");return typeof f==="function"?(f(r),J.jumpTo(2)):J.yield(f,3)}J.nextAddress!=2&&(R=J.yieldResult,R(r));n=(y=r)==null?void 0:(P=y.firstChild)==null?void 0:P.firstChild;
B=document.createElement("img");d=_.l7S($Qs,btoa(n.outerHTML));B.onload=function(){var D={canvas:V,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:B},u=new Ir1;AaZ(u,W);Q15(u,!1,M3s(u));var H=u.modules,p=Object.assign({},MNH,D);H=structuredClone(H);D=H.length;var X,w=(X=p.canvas)!=null?X:document.createElement("canvas");X=p.cellSize;u=p.logo;var O,S=(O=p.logoSize)!=null?O:Math.floor(D/4);D%2!==S%2&&S++;var N=p.logoPadding,x=p.backgroundColor;O=D*X;var Y=
p.width,W8=0;Y&&(W8=p.padding,W8=Math.ceil(W8*O/(Y-W8*2)),w.style.width=Y+"px",w.style.height=Y+"px");w.width!==O+W8*2&&(w.width=O+W8*2);w.height!==O+W8*2&&(w.height=O+W8*2);O=w.getContext("2d");p.autoClear&&O.clearRect(0,0,w.width,w.height);O.fillStyle=x;O.beginPath();O.roundRect(0,0,w.width,w.height,p.borderRadius);O.fill();O.save();O.translate(W8,W8);if(u)for(w=Math.floor(D-S)/2-N,N=Math.floor(D+S)/2+N,x=w;x<N;x++)for(Y=w;Y<N;Y++)H[x][Y]=!1;for(w=0;w<D;w++)for(N=0;N<D;N++)(w<7&&N<7||w<7&&N>=D-
7||w>=D-7&&N<7)&&(H[w][N]=!1);var c8;w=(c8=p.markerColor)!=null?c8:p.color;OGs(O,0,0,X,w);OGs(O,X*(D-7),0,X,w);OGs(O,0,X*(D-7),X,w);switch(p.cellStyle){case 0:c8=H;H=c8.length;w=p.cellSize;O.beginPath();for(N=0;N<H;N++)for(x=0;x<H;x++)c8[N][x]&&O.rect(N*w,x*w,w,w);O.fillStyle=p.color;O.fill();break;case 1:c8=H;H=c8.length;w=p.cellSize;N=w*p.relativeCircleSize;O.fillStyle=p.color;O.beginPath();for(p=0;p<H;p++)for(x=0;x<H;x++)c8[p][x]&&(O.beginPath(),O.ellipse((p+.5)*w,(x+.5)*w,N/2,N/2,0,0,2*Math.PI),
O.fill());O.fill();break;case 2:c8=H;H=c8.length;w=p.cellSize;O.fillStyle=p.color;p=[[1,1],[-1,1],[-1,-1],[1,-1]];O.beginPath();for(N=0;N<H;N++)for(x=0;x<H;x++)if(c8[N][x])O.roundRect(N*w,x*w,w,w,w/2),N+1<H&&c8[N+1][x]&&O.rect(N*w+w/2,x*w,w,w),x+1<H&&c8[N][x+1]&&O.rect(N*w,x*w+w/2,w,w);else{Y=N*w+w/2;W8=x*w+w/2;for(var B8=0;B8<4;B8++){var Jx=_.L(p[B8]),H8=Jx.next().value;Jx=Jx.next().value;N+H8>=0&&N+H8<H&&x+Jx>=0&&x+Jx<H&&c8[N+H8][x]&&c8[N][x+Jx]&&c8[N+H8][x+Jx]&&(H8=B8*Math.PI/2,Jx=w/2,O.moveTo(Y+
Jx*Math.cos(H8),W8+Jx*Math.sin(H8)),O.arc(Y,W8,w/2,H8,H8+Math.PI/2,!1),O.lineTo(Y+Jx*(Math.cos(H8)-Math.sin(H8)),W8+Jx*(Math.cos(H8)+Math.sin(H8))),O.lineTo(Y+Jx*Math.cos(H8),W8+Jx*Math.sin(H8)))}}O.fill()}u&&O.drawImage(u,(D-S)*X/2,(D-S)*X/2,S*X,S*X);O.restore();V.style.removeProperty("display")};
B.src=_.MI(d);_.ju(J)})};
_.t.hasCommunityPostRenderer=function(){var W,l,V,f;return!!((W=this.data)==null?0:(l=W.header)==null?0:(V=l.sharePanelHeaderRenderer)==null?0:(f=V.communityPost)==null?0:f.communityPostSectionRenderer)};
_.t.onTapClose=function(){_.Gt(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.t.getScreenLayer=function(){return this.screenLayer};
_.t.logSharePanelPage=function(){if(!_.U("enable_share_panel_navigation_logging_fix_on_web")){var W;if((W=this.data)!=null&&W.trackingParams){W=this.data.trackingParams;var l=this.parentClickTrackingParams;l=l?_.zG(l):void 0;var V=_.Qq();_.Ob(V,21760,l,{layer:7,parentLayer:0});V.graftServerVe(W,void 0,7);_.DJ().dispatch(_.GT({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
Ei.prototype.onDataChanged=Ei.prototype.onDataChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Ei.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],Ei.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Ei.prototype,"ytActionHandlerBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],Ei.prototype,"data",void 0);_.a([_.b({value:_.wg("SBOX_INAPPROPRIATE_CANCEL")}),_.z("design:type",String)],Ei.prototype,"closeButtonAriaLabel",void 0);_.a([_.Aa("yt-share-panel-header-renderer"),_.z("design:type",HTMLElement)],Ei.prototype,"header",void 0);_.a([_.b({selector:function(W){return W.share.parentClickTrackingParams}}),
_.z("design:type",String)],Ei.prototype,"parentClickTrackingParams",void 0);_.a([_.b(),_.z("design:type",Object)],Ei.prototype,"qrCodeEnabled",void 0);_.a([_.Aa("#scroller"),_.z("design:type",Object)],Ei.prototype,"JSC$20062_scroller",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Ei.prototype,"onDataChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],Ei);
_.Z(Ei,"ytd-unified-share-panel-renderer",function(){if(GO1!==void 0)return GO1;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return GO1=W},{mode:1});var WW7;var $l=function(){var W=_.I.apply(this,arguments)||this;W.modernModal=!0;return W};
_.v($l,_.I);$l.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
$l.prototype.computeShouldHideOldButtons=function(){var W;return!((W=this.data)==null?0:W.button)};
_.rc.Object.defineProperties($l.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var W,l;return(W=this.data)==null?void 0:(l=W.button)==null?void 0:l.buttonRenderer}}});
_.a([_.b(),_.z("design:type",Object)],$l.prototype,"data",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],$l.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],$l.prototype,"ytEventForwardingBehavior",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],$l.prototype,"modernModal",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],$l.prototype,"buttonRendererData",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],$l);
_.Z($l,"ytd-modal-with-title-and-button-renderer",function(){if(WW7!==void 0)return WW7;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return WW7=W},{mode:1});var l82;var Wn=function(){return _.I.apply(this,arguments)||this};
_.v(Wn,_.I);Wn.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.GD("page-changed",this.page))};
Wn.prototype.pageChangedForBinding=Wn.prototype.pageChangedForBinding;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Wn.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Wn.prototype,"data",void 0);_.a([_.b(),_.z("design:type",String)],Wn.prototype,"page",void 0);_.a([_.TS("page"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wn.prototype,"pageChangedForBinding",null);
_.a([_.A({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],Wn);
_.Z(Wn,"ytd-account-item-section-header-renderer",function(){if(l82!==void 0)return l82;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return l82=W},{mode:1});var VZ1;var ld=function(){return _.I.apply(this,arguments)||this};
_.v(ld,_.I);ld.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"}}}};
ld.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ld.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.vH),_.z("design:type",Object)],ld.prototype,"ytContinuationHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ld.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!1}),_.z("design:type",Function)],ld.prototype,"onAccountItemTap",void 0);
_.a([_.A({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],ld);
_.Z(ld,"ytd-account-item-section-renderer",function(){if(VZ1!==void 0)return VZ1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return VZ1=W},{mode:1});var f8w;var rR1;var Vd=function(){return _.I.apply(this,arguments)||this};
_.v(Vd,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Vd.prototype,"data",void 0);_.a([_.A({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],Vd);
_.Z(Vd,"ytd-accounts-dialog-header-renderer",function(){if(rR1!==void 0)return rR1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return rR1=W},{mode:1});var Rbs;var fy=function(){return _.I.apply(this,arguments)||this};
_.v(fy,_.I);fy.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],fy.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],fy.prototype,"data",void 0);_.a([_.A({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],fy);
_.Z(fy,"ytd-google-account-header-renderer",function(){if(Rbs!==void 0)return Rbs;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Rbs=W},{mode:1});var r0=function(){return _.I.apply(this,arguments)||this};
_.v(r0,_.I);r0.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"}}}};
r0.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.GD("page-changed",this.page))};
r0.prototype.pageChangedForBinding=r0.prototype.pageChangedForBinding;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],r0.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],r0.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],r0.prototype,"data",void 0);_.a([_.b(),_.z("design:type",String)],r0.prototype,"page",void 0);
_.a([_.TS("page"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],r0.prototype,"pageChangedForBinding",null);_.a([_.A({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],r0);
_.GG()(r0,"ytd-account-section-list-renderer",function(){if(f8w===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);f8w=W}W=f8w;return W},{allowedProps:["data"],
mode:1});var tZ4;var RL=function(){var W=_.I.apply(this,arguments)||this;W.enableHandlesAccountMenuSwitcher=_.U("enable_handles_account_menu_switcher");return W};
_.v(RL,_.I);RL.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
RL.prototype.dataChanged=RL.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],RL.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],RL.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.a([_.Aa("#avatar"),_.z("design:type",Object)],RL.prototype,"avatar",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RL.prototype,"dataChanged",null);_.a([_.A({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],RL);
_.GG()(RL,"ytd-active-account-header-renderer",function(){if(tZ4===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);tZ4=W}W=tZ4;return W},{allowedProps:["data"],
mode:1});var sW1;var LWZ;var tn=function(){return _.I.apply(this,arguments)||this};
_.v(tn,_.I);tn.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
tn.prototype.onBackTap=function(){_.FN(this.hostElement,"yt-menu-back-tapped")};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],tn.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],tn.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],tn.prototype,"data",void 0);_.a([_.A({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],tn);
_.GG()(tn,"ytd-simple-menu-header-renderer",function(){if(LWZ===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);LWZ=W}W=LWZ;return W},{allowedProps:["data"],
mode:2});var yRc;var sE=function(){return _.I.apply(this,arguments)||this};
_.v(sE,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],sE.prototype,"data",void 0);_.a([_.A({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],sE);
_.Z(sE,"ytd-comment-video-thumbnail-header-renderer",function(){if(yRc!==void 0)return yRc;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return yRc=W},{mode:1});var gaZ;var Ly=function(){return _.I.apply(this,arguments)||this};
_.v(Ly,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Ly.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Ly.prototype,"data",void 0);_.a([_.A({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],Ly);
_.Z(Ly,"ytd-abuse-type-selector-renderer",function(){if(gaZ!==void 0)return gaZ;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return gaZ=W},{mode:1});var PtN;var yd=function(){return _.I.apply(this,arguments)||this};
_.v(yd,_.I);yd.prototype.attached=function(){var W=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){W.additionalContextInput.focusTextInput()})};
yd.prototype.handleAdditionalContextChanged=function(){var W=this;_.gm(this,"ytd-report-channel-additional-context-update",function(){W.ytdReduxBehavior.dispatch(_.GT({type:"ADDITIONAL_CONTEXT_UPDATED",payload:W.additionalContext}))},300)};
yd.prototype.updateAdditionalContextFromBinding=function(W){this.additionalContext=W.detail.value};
yd.prototype.handleAdditionalContextChanged=yd.prototype.handleAdditionalContextChanged;_.a([_.F(_.dx),_.z("design:type",Object)],yd.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",String)],yd.prototype,"additionalContext",void 0);_.a([_.b({selector:function(W){return W.reportChannelAbuse.additionalContext}}),
_.z("design:type",String)],yd.prototype,"additionalContextRedux",void 0);_.a([_.b(),_.z("design:type",Object)],yd.prototype,"data",void 0);_.a([_.Aa("yt-text-input-form-field-renderer"),_.z("design:type",Object)],yd.prototype,"additionalContextInput",void 0);_.a([_.TS("additionalContext"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yd.prototype,"handleAdditionalContextChanged",null);
_.a([_.A({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],yd);
_.Z(yd,"ytd-report-channel-modal-additional-context-renderer",function(){if(PtN!==void 0)return PtN;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return PtN=W},{mode:1});var naL;var g0=function(){var W=_.I.apply(this,arguments)||this;W.nextButtonDisabled=null;W.submitEndpoint=null;W.navigationEndpoint=null;W.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return W};
_.v(g0,_.I);_.t=g0.prototype;_.t.computeNextButtonData=function(W,l,V){var f={};l&&(f.navigationEndpoint=l);V&&(f.serviceEndpoint=V);W&&W.buttonRenderer&&_.MC.extend(f,W.buttonRenderer);return f};
_.t.handleReportChannelModalDisableNextButtonAction=function(W){this.setNextButtonIsDisabled(W)};
_.t.handleReportFormEndpointUpdateAction=function(W){this.setNextButtonIsDisabled(!!W.disableSubmitButton);this.resetEndpointData();W.submitEndpoint?this.submitEndpoint=W.submitEndpoint:W.submitNavigationEndpoint&&(this.navigationEndpoint=W.submitNavigationEndpoint)};
_.t.handleSignalActionSubmitForm=function(){var W,l=Object.keys(((W=this.reportChannelAbuseForm)==null?void 0:W.selectedVideoIds)||{}),V;W=((V=this.reportChannelAbuseForm)==null?void 0:V.additionalContext)||"";var f;V=((f=this.reportChannelAbuseForm)==null?void 0:f.impersonatedChannelUrl)||"";var r;if((r=this.data)==null?0:r.submitEndpoint){l={impersonated_channel_url:V,text:W,video_ids:l};var R;_.tY().resolve(_.s6).resolveCommand((R=this.data)==null?void 0:R.submitEndpoint,{form:Object.assign({},
l,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.t.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.t.onYtServiceRequestError=function(W){this.setNextButtonIsDisabled(!1);_.Lh(this.hostElement,W.detail.error.message)};
_.t.setNextButtonIsDisabled=function(W){this.set("data.nextButton.buttonRenderer.isDisabled",W)};
_.t.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
g0.prototype.onYtServiceRequestError=g0.prototype.onYtServiceRequestError;g0.prototype.onYtServiceRequestCompleted=g0.prototype.onYtServiceRequestCompleted;_.a([_.b(),_.z("design:type",Object)],g0.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],g0.prototype,"nextButtonDisabled",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],g0.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],g0.prototype,"ytActionHandlerBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],g0.prototype,"submitEndpoint",void 0);_.a([_.b(),_.z("design:type",Object)],g0.prototype,"navigationEndpoint",void 0);_.a([_.b({selector:function(W){return W.reportChannelAbuse}}),
_.z("design:type",Object)],g0.prototype,"reportChannelAbuseForm",void 0);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],g0.prototype,"onYtServiceRequestCompleted",null);_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],g0.prototype,"onYtServiceRequestError",null);
_.a([_.A({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],g0);
_.Z(g0,"ytd-report-channel-modal-footer-renderer",function(){if(naL!==void 0)return naL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return naL=W},{mode:1});var CtL;var Pn=function(){var W=_.I.apply(this,arguments)||this;W.boundOnTapDismissButton=function(){W.closePopup()};
return W};
_.v(Pn,_.I);Pn.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
Pn.prototype.handleDataChanged=function(){_.Ew(this.hostElement)};
Pn.prototype.closePopup=function(){_.Gt(this.hostElement,"yt-close-popup-action")};
Pn.prototype.handleDataChanged=Pn.prototype.handleDataChanged;_.a([_.b(),_.z("design:type",Object)],Pn.prototype,"boundOnTapDismissButton",void 0);_.a([_.b(),_.z("design:type",Object)],Pn.prototype,"data",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Pn.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Pn.prototype,"handleDataChanged",null);_.a([_.A({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],Pn);
_.Z(Pn,"ytd-report-channel-modal-header-renderer",function(){if(CtL!==void 0)return CtL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return CtL=W},{mode:1});var cR1;var ny=function(){var W=_.I.apply(this,arguments)||this;W.autoValidate=!1;W.invalid=!1;W.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return W};
_.v(ny,_.I);_.t=ny.prototype;_.t.attached=function(){var W=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){W.channelUrlInput.focusTextInput()})};
_.t.disableNextButton=function(W){_.Gt(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[W])};
_.t.handleImpersonatedChannelUrlChanged=function(){var W=this;this.disableNextButton(!0);this.invalid=!1;_.gm(this,"ytd-report-channel-impersonated-channel-update",function(){var l=W.impersonatedChannelUrl.trim();W.ytdReduxBehavior.dispatch(_.GT({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:l}));var V;((V=W.data)==null?0:V.submitEndpoint)&&l&&_.tY().resolve(_.s6).resolveCommand(W.data.submitEndpoint,{form:{impersonated_channel_url:l,element:W.hostElement}})},500)};
_.t.handleModifyReportFormCommand=function(W){this.invalid=this.get("modifyReportFormCommand.action",W)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.t.updateInvalidFromBinding=function(W){this.invalid=W.detail.value};
_.t.updateImpersonatedChannelUrlFromBinding=function(W){this.impersonatedChannelUrl=W.detail.value};
ny.prototype.handleImpersonatedChannelUrlChanged=ny.prototype.handleImpersonatedChannelUrlChanged;_.a([_.F(_.dx),_.z("design:type",Object)],ny.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],ny.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ny.prototype,"autoValidate",void 0);_.a([_.b(),_.z("design:type",Object)],ny.prototype,"invalid",void 0);
_.a([_.b(),_.z("design:type",String)],ny.prototype,"impersonatedChannelUrl",void 0);_.a([_.b({selector:function(W){return W.reportChannelAbuse.impersonatedChannelUrl}}),
_.z("design:type",String)],ny.prototype,"impersonatedChannelUrlRedux",void 0);_.a([_.b(),_.z("design:type",Object)],ny.prototype,"data",void 0);_.a([_.Aa("#text-input"),_.z("design:type",Object)],ny.prototype,"channelUrlInput",void 0);_.a([_.TS("impersonatedChannelUrl"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],ny.prototype,"handleImpersonatedChannelUrlChanged",null);
_.a([_.A({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],ny);
_.Z(ny,"ytd-report-channel-modal-impersonation-renderer",function(){if(cR1!==void 0)return cR1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return cR1=W},{mode:1});var BWL;var dvH;var Cy=function(){return _.I.apply(this,arguments)||this};
_.v(Cy,_.I);Cy.prototype.onCheckboxToggled=function(W){var l,V,f=(V=_.k((l=this.data)==null?void 0:l.video,_.Bm))==null?void 0:V.videoId;f&&this.ytdReduxBehavior.dispatch(W.target.checked?_.GT({type:"VIDEO_SELECTED",payload:f}):_.GT({type:"VIDEO_UNSELECTED",payload:f}))};
Cy.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.rc.Object.defineProperties(Cy.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var W,l=(W=this.data)==null?void 0:W.video;if(!l)return{};var V;W=(V=_.k(l,_.Bm))==null?void 0:V.navigationEndpoint;if(!W)return l;_.k(W==null?void 0:W.commandMetadata,_.XN)&&(_.k(W.commandMetadata,_.XN).ignoreNavigation=!0);return l}}});
_.a([_.b({reflectToAttribute:!0,selector:function(W,l){return l in W.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.z("design:type",Boolean)],Cy.prototype,"checked",void 0);_.a([_.b(),_.z("design:type",Object)],Cy.prototype,"data",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Cy.prototype,"video",null);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Cy.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.dx),_.z("design:type",Object)],Cy.prototype,"ytdReduxBehavior",void 0);_.a([_.A({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],Cy);
_.Z(Cy,"ytd-selectable-video-renderer",function(){if(dvH!==void 0)return dvH;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return dvH=W},{mode:1});var cn=function(){var W=_.I.apply(this,arguments)||this;W.monitorScroll=!0;return W};
_.v(cn,_.I);cn.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],cn.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],cn.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],cn.prototype,"data",void 0);_.a([_.A({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],cn);
_.Z(cn,"ytd-selectable-video-list-renderer",function(){if(BWL!==void 0)return BWL;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return BWL=W},{mode:1});var JRc;_.e1("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Bn=function(){return _.I.apply(this,arguments)||this};
_.v(Bn,_.I);Bn.prototype.onChange=function(W){if(W=_.Ja(W).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.U("kevlar_command_handler_migration_killswitch"))_.og(this.hostElement,W,this.hostElement);else{W=_.L(W);for(var l=W.next();!l.done;l=W.next())this.ytComponentBehavior.resolveCommand(l.value)}};
Bn.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Bn.prototype.updateDataToggledFromBinding=function(W){this.set("data.toggled",W.detail.value)};
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Bn.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Bn.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Bn.prototype,"data",void 0);_.a([_.b({computed:"isEnabled(data)"}),_.z("design:type",Boolean)],Bn.prototype,"enabled",void 0);_.a([_.A({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Bn);
_.Z(Bn,"ytd-toggle-item-renderer",function(){if(JRc!==void 0)return JRc;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return JRc=W},{mode:1});var Dv1;var UvZ;var u17;var d0=function(){var W=_.I.apply(this,arguments)||this;W.setVisible=!1;W.boundOnSubmitButtonClick=function(){W.onSubmitButtonClick()};
W.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return W};
_.v(d0,_.I);d0.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}}}}}};
d0.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
d0.prototype.onSubmitButtonClick=function(){var W;((W=this.data)==null?0:W.submitEndpoint)&&!_.U("enable_ytc_refunds_submit_form_signal_action")&&_.pN(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
d0.prototype.handleSignalActionSubmitForm=function(){var W;((W=this.data)==null?0:W.submitEndpoint)&&_.pN(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.rc.Object.defineProperties(d0.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.hiddenByDefault)&&!this.setVisible}}});
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],d0.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],d0.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],d0.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],d0.prototype,"setVisible",void 0);_.a([_.b(),_.z("design:type",Object)],d0.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Object)],d0.prototype,"surveyFeedbackData",void 0);_.a([_.b(),_.z("design:type",Object)],d0.prototype,"boundOnSubmitButtonClick",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("data","setVisible"),_.z("design:type",Object),_.z("design:paramtypes",[])],d0.prototype,"visibilityHidden",null);_.a([_.Vq({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],d0);
_.Z(d0,"yt-flow-footer-renderer",function(){if(u17===void 0){var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;UvZ===void 0&&(UvZ=document.createElement("template"));var f=UvZ;V.call(l,f.content.cloneNode(!0),W.content.firstChild);u17=W}W=u17;return W},{mode:2});var Jn=function(){return _.I.apply(this,arguments)||this};
_.v(Jn,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],Jn.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Jn.prototype,"data",void 0);_.a([_.b({selector:function(W){return W.ypc.surveyFeedbackData}}),
_.z("design:type",Object)],Jn.prototype,"surveyFeedbackData",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Jn);
_.Z(Jn,"ytd-flow-footer-renderer",function(){if(Dv1!==void 0)return Dv1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Dv1=W},{mode:_.bD("kevlar_poly_si_batch_j025")?1:2});var kM4;var vaZ;var DG=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return W};
_.v(DG,_.I);_.t=DG.prototype;_.t.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.qe("multiPageMenuSectionItems")}}};
_.t.handleHideEnclosingAction_=function(W){if(this.data&&this.data.items)for(var l=0;l<this.data.items.length;l++){var V=this.data.items[l].notificationRenderer;if(V&&V.notificationId==W.hideEnclosingAction.notificationId){this.splice("data.items",l,1);_.Gt(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.t.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.o1(this.hostElement,"hidden",!0)};
_.t.updateMenu_=function(W){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&W&&!W.doNotRefreshInbox){W=this.data.continuations;for(var l=0;l<W.length;l++)if(W[l].invalidationContinuationData){var V=void 0;var f=(V=W[l].invalidationContinuationData)==null?void 0:V.continuation;break}W=_.MC.clone(this.data.continuationUpdateEndpoint||null);W.continuation=f;W.click_tracking_params=this.data.trackingParams;_.pN(this.hostElement,[W])}};
_.t.onServiceRequestCompleted_=function(W,l){if(this.data&&(W=l.actions)){l=0;for(var V=W.length;l<V;l++){var f=_.k(W[l],_.ugI);if(!f)break;if((f.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||f.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&f.continuationItems&&this.data.items){var r=this.data.items.length-1;this.data.items[r].continuationItemRenderer&&(f=["data.items",r,1].concat(f.continuationItems),this.splice.apply(this,f))}}}};
DG.prototype.onServiceRequestCompleted_=DG.prototype.onServiceRequestCompleted_;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],DG.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],DG.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],DG.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],DG.prototype,"data",void 0);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],DG.prototype,"onServiceRequestCompleted_",null);_.a([_.Vq({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],DG);
_.GG()(DG,"yt-multi-page-menu-section-renderer",function(){if(vaZ===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;kM4===void 0&&(kM4=document.createElement("template"));var f=kM4;V.call(l,f.content.cloneNode(!0),W.content.firstChild);vaZ=W}W=vaZ;return W},{allowedProps:["data"],
mode:2});var Hx7;var KWY;var UE=function(){return _.I.apply(this,arguments)||this};
_.v(UE,_.I);UE.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.rc.Object.defineProperties(UE.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.progress)==null?0:this.data.progress*100}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],UE.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],UE.prototype,"data",void 0);_.a([_.G("data.progress"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],UE.prototype,"showProgressBar",null);
_.a([_.G("data.progress"),_.z("design:type",Number),_.z("design:paramtypes",[])],UE.prototype,"progress",null);_.a([_.Vq({is:"yt-flow-header-renderer",disableElementRegistration:!0})],UE);
_.Z(UE,"yt-flow-header-renderer",function(){if(KWY===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;Hx7===void 0&&(Hx7=document.createElement("template"));var f=Hx7;V.call(l,f.content.cloneNode(!0),W.content.firstChild);KWY=W}W=KWY;return W},{mode:2});var FWe;var GM2;var ud=function(){return _.I.apply(this,arguments)||this};
_.v(ud,_.I);ud.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ud.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ud.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ud.prototype,"data",void 0);_.a([_.Vq({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],ud);
_.Z(ud,"yt-post-confirmation-flow-step-renderer",function(){if(GM2===void 0){var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;FWe===void 0&&(FWe=document.createElement("template"));var f=FWe;V.call(l,f.content.cloneNode(!0),W.content.firstChild);GM2=W}W=GM2;return W},{mode:2});var bxN;var p7Z;var kj=function(){return _.I.apply(this,arguments)||this};
_.v(kj,_.I);
kj.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"}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],kj.prototype,"data",void 0);_.a([_.Vq({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],kj);
_.Z(kj,"yt-refund-confirmation-flow-step-renderer",function(){if(p7Z===void 0){var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;bxN===void 0&&(bxN=document.createElement("template"));var f=bxN;V.call(l,f.content.cloneNode(!0),W.content.firstChild);p7Z=W}W=p7Z;return W},{mode:2});var oa2=_.Q(function(W){var l=W.data;return _.C("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.C("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.C(_.dN,{data:function(){return{thumbnails:[{url:l().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.C("div",{class:"profileBadgeViewModelContent"},_.C("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return l().badgeDesc}),_.C(_.c,{cond:function(){return l().badgeSubtitle},
then:function(){return _.C("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return l().badgeSubtitle})}})))},"lh");
oa2.idomCompat=!0;var jWN=_.Q(function(W){var l=W.data;return _.C("yt-comment-interaction-view-model",{el:_.DN(_.E_(function(){return l().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.C("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return l().onTapA11yLabel},
"on:keydown":_.Iez(),tabindex:0},_.C("div",{class:"ytCommentInteractionViewModelHeader"},_.C("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return l().headerPrefix},' "',function(){return l().videoTitle}),_.C("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.C("div",{class:"ytCommentInteractionViewModelContent"},_.C("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return l().commentContent}),_.C("div",{class:"ytCommentInteractionViewModelChevron"},
_.C(_.dN,{data:function(){return{thumbnails:[{url:l().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"mh");
jWN.idomCompat=!0;var I8L=_.Q(function(W){var l=W.data;return _.C("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.C(_.QH,{data:function(){return l().avatar}},{avatarViewModel:_.gn}),_.C("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return l().channelName}))},"nh");
I8L.idomCompat=!0;var w77=_.Q(function(W){var l=W.data;W={};return _.C("yt-profile-info-view-model",{class:_.If("ytProfileInfoViewModelHost",(W.ytProfileInfoViewModelWithVideoShelf=function(){return l().videosHorizontalShelf},W))},_.C(ix7,{profileInfo:l}),_.C(_.QH,{data:function(){return l().videosHorizontalShelf}},{horizontalShelfViewModel:function(V){return _.C("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.C(_.DF,{data:V.data}))}}),_.C(_.c,{cond:function(){return l().comments},
then:function(){return _.C(mvL,{profileInfo:l})}}),_.C(_.c,{cond:function(){return l().sharedSubscriptionsTitle},
then:function(){return _.C(_.c,{cond:function(){return l().subscriptionsAccessButtonCommand},
then:function(){return _.C(X7N,{profileInfo:l})},
else:function(){return _.C(TWZ,{profileInfo:l})}})}}))},"oh");
w77.idomCompat=!0;var mvL=_.Q(function(W){var l=W.profileInfo;return _.C("div",{class:"ytProfileInfoViewModelActivity"},_.C("div",{class:"ytProfileInfoViewModelHeader"},_.C("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return l().commentsInteractionTitle})),_.C(_.QH,{data:function(){return l().comments}},{commentInteractionViewModel:function(V){return _.C("div",{class:"ytProfileInfoViewModelActivity"},_.C(jWN,{data:V.data}))}}))},"ph"),X7N=_.Q(function(W){var l=W.profileInfo;
return _.C("div",{class:"ytProfileInfoViewModelSubSection"},_.C("div",{class:"ytProfileInfoViewModelSubHeader"},_.C(_.Mq,{command:function(){return l().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.C("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return l().sharedSubscriptionsTitle}),_.C("div",null,_.C(_.QH,{data:function(){return l().subscriptionsAccessButton}},{buttonViewModel:_.Nq})))),_.C(AR4,{sharedSubscriptions:function(){var V;
return((V=l().sharedSubscriptions)==null?void 0:V.slice(0,5))||[]}}))},"qh"),TWZ=_.Q(function(W){var l=W.profileInfo;
return _.C("div",{class:"ytProfileInfoViewModelSubSection"},_.C("div",{class:"ytProfileInfoViewModelSubHeader"},_.C("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return l().sharedSubscriptionsTitle})),_.C(AR4,{sharedSubscriptions:function(){var V;
return((V=l().sharedSubscriptions)==null?void 0:V.slice(0,5))||[]}}))},"rh"),AR4=_.Q(function(W){return _.C("div",{class:"ytProfileInfoViewModelSubs"},_.C(_.QH,{data:W.sharedSubscriptions},{sharedSubscriptionViewModel:function(l){return _.C("div",{class:"ytProfileInfoViewModelSub"},_.C(I8L,{data:l.data}))}}))},"sh"),ix7=_.Q(function(W){var l=W.profileInfo;
return _.C("div",{class:"ytProfileInfoViewModelActivity"},_.C(_.G3,{each:function(){return[l().profileBadgeInfoYtWide,l().profileBadgeInfoChannelWide].filter(function(V){return!!V})},
keyBy:"INDEX"},function(V){return _.C(_.Lp,null,_.C("div",{class:"ytProfileInfoViewModelHeader"},_.C("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return V().profileSectionTitle}),_.C("div",{class:"ytProfileInfoViewModelSectionDesc"},_.C("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var f;
return(f=V().commentBadge)==null?void 0:f.commentDesc}),_.C(_.c,{cond:function(){var f;
return(f=V().commentBadge)==null?void 0:f.blackHeartDesc},
then:function(){return _.C("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.C("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.C(_.dN,{data:function(){var f;
return{thumbnails:[{url:(f=V().commentBadge)==null?void 0:f.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.C("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var f;return(f=V().commentBadge)==null?void 0:f.blackHeartDesc}))),_.C("div",{class:"ytProfileInfoViewModelBadge"},_.C(_.G3,{each:function(){return V().badges||[]}},function(f){return _.C(oa2,{data:f})})))}))},"th");var QW4=_.Q(function(W){var l=W.data;var V=function(){return l().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.C("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.C(_.QH,{data:function(){return l().profileIdentityInfo}},{profileIdentityInfoViewModel:function(f){return _.C(_.jo1,{data:f.data,
hideDivider:V,isChannelInfoCard:V})},
profileInfoViewModel:w77}),_.C(_.QH,{data:function(){return l().profileInfo}},{profileIdentityInfoViewModel:_.jo1,
profileInfoViewModel:w77}))},"uh");
QW4.idomCompat=!0;_.HI(QW4,"yt-profile-card-view-model",{props:{data:_.pA}});var vn=function(){var W=_.I.apply(this,arguments)||this;W.enableFocusFix=_.U("music_web_enable_focus_on_setting_menu_fix")&&_.ZL("IS_MOBILE_WEB",!1);W.covered=!1;W.hideMenu=!1;W.isCommentNotificationOnProfileCard=!1;W.scrolledByTouch=!1;W.disableBackdropFilter=_.U("web_disable_backdrop_filter");W.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return W};
_.v(vn,_.I);_.t=vn.prototype;
_.t.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"}}}};
_.t.ready=function(){var W=this;this.JSC$20164_containerElement.addEventListener("scroll",function(){W.ytRendererBehavior.markDirty()})};
_.t.attributeChanged=function(W,l){W==="menu-style"&&_.Gt(this.hostElement,"yt-multi-page-menu-closed-action",[l])};
_.t.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.mz(this,this.focusOnStampFinished))};
_.t.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.mz(this,this.focusOnStampFinished))};
_.t.reset=function(){this.closeJobId&&(_.w8.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.t.focusOnStampFinished=function(W){W.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.mz(this,this.focusOnStampFinished)),this.doFocus())};
_.t.doFocus=function(){var W=_.HtL(this.sectionsElement);W.length&&W[0].focus()};
_.t.computeMenuStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.t.computeIsCommentNotificationOnProfileCard=function(W){return _.U("enable_profile_cards_on_comments")&&W.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.t.computeHideMenu=function(W,l){return W||!(!l||!l.showLoadingSpinner)};
_.t.onPopupClosed=function(){this.isPopUpOpen=!1;_.Gt(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.t.onPopupOpened=function(W,l){this.isPopUpOpen=!0;l.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.FN(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.GT({type:"CHANNEL_REPORT_RESET"})))};
_.t.onYtNavigate=function(W,l){this.shouldCloseOnNavigateEvent(l.endpoint)&&_.Gt(this.hostElement,"yt-close-all-popups-action")};
_.t.handleEndpoint=function(W){W=_.k(W,_.yB);!this.isCommentNotificationOnProfileCard&&W&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20164_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.t.handleActions=function(W){for(var l=0,V=W.length;l<V;l++){var f=_.k(W[l],Er1);f&&this.handleGetMultiPageMenuAction(f);(f=_.k(W[l],_.ugI))&&this.handleAppendContinuationItemsAction(f)}};
_.t.onServiceRequestSentOrCompleted=function(W,l){W.detail&&W.detail.endpoint&&this.handleEndpoint(W.detail.endpoint);l.actions&&this.handleActions(l.actions)};
_.t.handleGetMultiPageMenuAction=function(W){var l=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.GS(this.submenuElement).appendChild(l);(W=W.menu.multiPageMenuRenderer)&&this.logSubmenu(W);l.data=W;l.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.t.handleAppendContinuationItemsAction=function(W){if(this.data&&W.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&W.continuationItems&&this.data.sections){var l=this.data.sections.length-1;this.data.sections[l].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),l--);if(this.data.sections[l].multiPageMenuNotificationSectionRenderer&&W.continuationItems){W=_.L(W==null?void 0:W.continuationItems);for(var V=W.next();!V.done;V=W.next())if(V=V.value,_.k(V,KTH)){var f=
void 0,r=void 0,R=void 0,y=void 0,P=void 0;((f=this)==null?0:(r=f.data)==null?0:(R=r.sections)==null?0:(y=R[l])==null?0:(P=y.multiPageMenuNotificationSectionRenderer)==null?0:P.items)&&this.push("data.sections."+l+".multiPageMenuNotificationSectionRenderer.items",V)}else if(_.k(V,_.yUa)||_.k(V,_.P0))this.push("data.sections",V),l++}}};
_.t.logSubmenu=function(W){if(!_.U("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var l=this.ytRendererBehavior.getScreenLayer(),V=_.Wh(l),f=_.$G(l);if((W=W.trackingParams)&&V&&f){var r=_.zG(W);_.U("combine_ve_grafts")?_.Qq().graftServerVe(W,f,l):_.L0(V,f,r)}}};
_.t.emptySubmenuContainer=function(){for(var W=_.GS(this.submenuElement);W.firstChild;)W.removeChild(W.firstChild)};
_.t.onMenuBackTap=function(W){_.FN(this.hostElement,"yt-submenu-closed");W.stopPropagation()};
_.t.onSubmenuClosed=function(W){_.Ja(W)!==this.hostElement&&(this.covered=!1,_.FN(this.hostElement,"yt-refit"),W.stopPropagation())};
_.t.onRetrieveLocation=function(W,l){l.hasComments&&(l.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),W.stopPropagation())};
_.t.shouldCloseOnNavigateEvent=function(W){if(!W)return!0;if(_.k(W,_.Xoa)||_.k(W,_.TtZ)||_.k(W,_.m0I)||_.k(W,_.x_))return!1;var l;return((l=_.k(W==null?void 0:W.commandMetadata,_.XN))==null?0:l.ignoreNavigation)?!1:!0};
_.t.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.t.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.t.refitAfterRender=function(){var W=this;_.V9(this,function(){_.FN(W.hostElement,"yt-refit")})};
vn.prototype.refitAfterRender=vn.prototype.refitAfterRender;vn.prototype.onRetrieveLocation=vn.prototype.onRetrieveLocation;vn.prototype.onSubmenuClosed=vn.prototype.onSubmenuClosed;vn.prototype.onMenuBackTap=vn.prototype.onMenuBackTap;vn.prototype.onServiceRequestSentOrCompleted=vn.prototype.onServiceRequestSentOrCompleted;vn.prototype.onYtNavigate=vn.prototype.onYtNavigate;vn.prototype.onPopupOpened=vn.prototype.onPopupOpened;vn.prototype.onPopupClosed=vn.prototype.onPopupClosed;
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],vn.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],vn.prototype,"ytEventForwardingBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],vn.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],vn.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],vn.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Object)],vn.prototype,"enableFocusFix",void 0);_.a([_.b(),_.z("design:type",Object)],vn.prototype,"covered",void 0);_.a([_.b({computed:"computeHideMenu(covered, data)"}),_.z("design:type",Object)],vn.prototype,"hideMenu",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.z("design:type",String)],vn.prototype,"menuStyle",void 0);
_.a([_.b({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.z("design:type",Object)],vn.prototype,"isCommentNotificationOnProfileCard",void 0);_.a([_.b(),_.z("design:type",Boolean)],vn.prototype,"isPopUpOpen",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vn.prototype,"scrolledByTouch",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vn.prototype,"disableBackdropFilter",void 0);
_.a([_.Aa("#sections"),_.z("design:type",HTMLElement)],vn.prototype,"sectionsElement",void 0);_.a([_.Aa("#spinner"),_.z("design:type",HTMLElement)],vn.prototype,"spinnerElement",void 0);_.a([_.Aa("#header"),_.z("design:type",HTMLElement)],vn.prototype,"headerElement",void 0);_.a([_.Aa("#container"),_.z("design:type",HTMLElement)],vn.prototype,"JSC$20164_containerElement",void 0);_.a([_.Aa("#submenu"),_.z("design:type",HTMLElement)],vn.prototype,"submenuElement",void 0);
_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vn.prototype,"onPopupClosed",null);_.a([_.XI("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],vn.prototype,"onPopupOpened",null);_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],vn.prototype,"onYtNavigate",null);
_.a([_.XI("yt-service-request-completed"),_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],vn.prototype,"onServiceRequestSentOrCompleted",null);_.a([_.XI("yt-menu-back-tapped"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],vn.prototype,"onMenuBackTap",null);
_.a([_.XI("yt-submenu-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],vn.prototype,"onSubmenuClosed",null);_.a([_.XI("yt-retrieve-location"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],vn.prototype,"onRetrieveLocation",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vn.prototype,"refitAfterRender",null);
_.a([_.A({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],vn);
_.Z(vn,"ytd-multi-page-menu-renderer",function(){if(sW1!==void 0)return sW1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return sW1=W},{mode:1});var MZc;var Hn=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return W};
_.v(Hn,_.I);_.t=Hn.prototype;_.t.created=function(){this.showTooltips=!0};
_.t.computeAccessibility_=function(W){return this.get("accessibility.accessibilityData",W)||null};
_.t.onTap=function(){var W=_.bj(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(W&&W.length===1&&W[0])_.Gt(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var l;if((l=this.data)==null?0:l.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var V;((V=this.data)==null?0:V.menuRequest)&&_.pN(this.hostElement,[this.data.menuRequest])}}};
_.t.handleTopbarMenuClosedAction=function(W){var l,V;(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(W)===((l=this.data)==null?void 0:(V=l.icon)==null?void 0:V.iconType)&&this.toggleIconState(!1)};
_.t.toggleIconState=function(W){_.U("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=W)};
_.t.handleUpdateTopbarAvatarAction=function(W){var l;W=(l=_.k(W,NYZ))==null?void 0:l.avatarUrl;var V,f;l=(V=this.data)==null?void 0:(f=V.avatar)==null?void 0:f.thumbnails;W&&l&&(V={thumbnails:[Object.assign({},l[0],{url:W})]},this.set("data.avatar",V))};
_.rc.Object.defineProperties(Hn.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.GS(this.hostElement).querySelector("#button")}}});
Hn.prototype.onTap=Hn.prototype.onTap;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Hn.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Hn.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.i5),_.z("design:type",Object)],Hn.prototype,"ytdOpenPopupBehavior",void 0);_.a([_.F(_.U9k.YtButtonBehavior),_.z("design:type",Object)],Hn.prototype,"ytButtonBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Hn.prototype,"data",void 0);
_.a([_.Aa("yt-icon-button#button"),_.z("design:type",Object)],Hn.prototype,"iconButton",void 0);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hn.prototype,"onTap",null);_.a([_.A({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Hn);
_.GG()(Hn,"ytd-topbar-menu-button-renderer",function(){if(MZc===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);MZc=W}W=MZc;return W},{allowedProps:["data"],
mode:1});var ZxL;var Ky=function(){return _.I.apply(this,arguments)||this};
_.v(Ky,_.I);Ky.prototype.getSelected=function(){return this.reasons.selected};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Ky.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Ky.prototype,"data",void 0);_.a([_.Aa("#reasons"),_.z("design:type",Object)],Ky.prototype,"reasons",void 0);_.a([_.A({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Ky);
_.Z(Ky,"ytd-ad-feedback-content",function(){if(ZxL!==void 0)return ZxL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return ZxL=W},{mode:1});var Ox1;var FM=function(){return _.I.apply(this,arguments)||this};
_.v(FM,_.I);_.t=FM.prototype;_.t.onPopupOpened=function(){_.Gt(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.t.computeConfirmButton=function(W){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:W.confirmLabel}};
_.t.computeCancelButton=function(W){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:W.cancelLabel}};
_.t.onConfirmTap=function(){var W=this.content.getSelected();W!==void 0&&(W=this.data.reasons[W].endpoint)&&(_.tY().resolve(_.s6).resolveCommand(W,{form:{element:this.hostElement}}),_.Gt(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.t.sendFeedbackSubmitToastAction=function(){var W;(W=this.data)!=null&&W.completionMessage&&_.Gt(this.hostElement,"yt-open-popup-action",[_.u0(this.data.completionMessage),this])};
_.t.onCancelTap=function(){_.Gt(this.hostElement,"yt-close-popup-action")};
FM.prototype.onPopupOpened=FM.prototype.onPopupOpened;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],FM.prototype,"data",void 0);_.a([_.Aa("#content"),_.z("design:type",Object)],FM.prototype,"content",void 0);_.a([_.XI("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],FM.prototype,"onPopupOpened",null);
_.a([_.A({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],FM);
_.Z(FM,"ytd-ad-feedback-renderer",function(){if(Ox1!==void 0)return Ox1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Ox1=W},{mode:1});var a8Z;var Gh=function(){return _.I.apply(this,arguments)||this};
_.v(Gh,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Gh.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Gh.prototype,"data",void 0);_.a([_.A({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Gh);
_.Z(Gh,"ytd-ad-info-dialog-content",function(){if(a8Z!==void 0)return a8Z;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return a8Z=W},{mode:1});var zb7;var bd=function(){return _.I.apply(this,arguments)||this};
_.v(bd,_.I);bd.prototype.computeConfirmButton=function(W){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:W.confirmLabel}};
bd.prototype.onConfirmTap=function(){_.Gt(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
bd.prototype.computeShouldShowTitle=function(){var W;return!((W=this.data)==null||!W.title)};
bd.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.tY().resolve(_.s6).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
bd.prototype.onPopupClosed=bd.prototype.onPopupClosed;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],bd.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],bd.prototype,"data",void 0);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],bd.prototype,"onPopupClosed",null);_.a([_.A({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],bd);
_.Z(bd,"ytd-ad-info-dialog-renderer",function(){if(zb7!==void 0)return zb7;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return zb7=W},{mode:1});var NWw;var py=function(){var W=_.I.apply(this,arguments)||this;W.actionButtonClass="action-button";W.dismissButtonId="dismiss-button";W.dialogDismiss=!0;return W};
_.v(py,_.I);_.t=py.prototype;_.t.computeInPlayer=function(W){return(W==null?void 0:W.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.t.computedLogo=function(){var W,l;return this.isDarkTheme()?(W=this.data)==null?void 0:W.logoDark:(l=this.data)==null?void 0:l.logo};
_.t.computedHeaderImage=function(){var W,l;return this.isDarkTheme()?(W=this.data)==null?void 0:W.headerImageDark:(l=this.data)==null?void 0:l.headerImage};
_.t.computeLogoIconId=function(){var W,l,V,f=(W=this.computedLogo())==null?void 0:(l=W.sources)==null?void 0:(V=l[0])==null?void 0:V.height;return f&&f%31===0?"logo-icon-with-padding":"logo-icon"};
_.t.computeLogoIconHeight=function(){var W,l,V,f=(W=this.computedLogo())==null?void 0:(l=W.sources)==null?void 0:(V=l[0])==null?void 0:V.height;return f&&f%31===0?"31":"24"};
_.t.onPopupClosed=function(){_.tY().resolve(_.h3).dispose()};
_.t.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.t.onShow=function(){this.inPlayer&&_.A5(6);this.titleElement.focus()};
_.t.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var W=0;W<this.data.impressionEndpoints.length;W++){var l=_.k(this.data.impressionEndpoints[W],_.VY);l&&this.ytComponentBehavior.resolveCommand(l)}};
_.t.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.Gt(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.rc.Object.defineProperties(py.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var W,l;return!((W=this.data)==null||!W.headerImageDark)&&!((l=this.data)==null||!l.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.secondaryButton)}}});
py.prototype.onPopupClosed=py.prototype.onPopupClosed;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],py.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],py.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.HL.YtVisibilityBehavior),_.z("design:type",Object)],py.prototype,"ytVisibilityBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],py.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Object)],py.prototype,"actionButtonClass",void 0);_.a([_.b(),_.z("design:type",Object)],py.prototype,"dismissButtonId",void 0);_.a([_.b(),_.z("design:type",Object)],py.prototype,"dialogDismiss",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],py.prototype,"hasHeaderImage",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],py.prototype,"hasPremiumButton",null);
_.a([_.b({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.z("design:type",Boolean)],py.prototype,"inPlayer",void 0);_.a([_.Aa("#dismiss-button"),_.z("design:type",HTMLElement)],py.prototype,"dismissButton",void 0);_.a([_.Aa("#title"),_.z("design:type",HTMLElement)],py.prototype,"titleElement",void 0);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],py.prototype,"onPopupClosed",null);
_.a([_.A({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],py);
_.Z(py,"ytd-enforcement-message-view-model",function(){if(NWw!==void 0)return NWw;var W=document.createElement("template");_.K(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return NWw=W},{mode:1});var Y8Z;var xvY;var oL=function(){var W=_.I.apply(this,arguments)||this;W.TEST_ONLY={immediateValidation:function(){W.immediateValidation()},
onValidationResponse:function(l){W.onValidationResponse(l)},
onGenerateHandleFromNameResponse:function(l){W.onGenerateHandleFromNameResponse(l)}};
return W};
_.v(oL,_.I);_.t=oL.prototype;_.t.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.t.validate=function(){this.immediateValidation()};
_.t.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.t.setHandleInputValue=function(W){this.handleDir=this.getHandleDir(W);this.handleInput.value=W;this.validationState={status:"PENDING"};this.immediateValidation()};
_.t.getHandleDir=function(W){var l=W===""&&!1;return(l=_.CNB.test.call(_.CNB,W))?"rtl":"ltr"};
_.t.onDataChanged=function(){var W,l;this.handleDir=this.getHandleDir((l=(W=this.data)==null?void 0:W.handle)!=null?l:"");var V;this.validationState=((V=this.data)==null?0:V.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var f;((f=this.data)==null?0:f.validateOnInit)&&this.immediateValidation()};
_.t.stopPropagation=function(W){W.stopPropagation()};
_.t.onInput=function(){var W;this.handleDir=this.getHandleDir((W=this.handleInput.value)!=null?W:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.t.onFocusout=function(W){this.handleInput.contains(W.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.t.delayedValidation=function(){var W,l;this.debouncedValidation((l=(W=this.data)==null?void 0:W.validationDelayMs)!=null?l:1E3)};
_.t.immediateValidation=function(){this.debouncedValidation(0)};
_.t.debouncedValidation=function(W){var l=this;_.gm(this,"debouncedValidation",function(){var V,f=l.staticValidation((V=l.handleInput.value)!=null?V:"");if(f!==void 0)l.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:f};else{var r;if((r=l.data)!=null&&r.validateChannelHandleCommand){l.validationState={status:"LOADING"};var R;l.ytComponentBehavior.resolveCommand(l.data.validateChannelHandleCommand,{form:{handle:(R=l.handleInput.value)!=null?R:""},commandController:{onSuccess:function(y,
P){l.onValidationResponse(P)},
onServerError:function(y,P){l.onValidationServerError(P)}}})}else l.handleUnexpectedValidationError(new _.bP("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",l.data))}},W)};
_.t.staticValidation=function(W){var l;if(((l=this.data)==null?void 0:l.channelHandleStaticValidationParams)!==void 0){l=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(W)&&l.validValueRegexpErrorMessage!==void 0)return l.validValueRegexpErrorMessage;if(l.minLength!==void 0&&W.length<l.minLength&&l.minLengthErrorMessage!==void 0)return l.minLengthErrorMessage;if(l.maxLength!==void 0&&W.length>l.maxLength&&l.maxLengthErrorMessage!==void 0)return l.maxLengthErrorMessage}};
_.t.onValidationResponse=function(W){var l=_.k(W.result,YqL);l===void 0?this.handleUnexpectedValidationError(new _.bP("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",W)):this.handleValidationResultRenderer(l)};
_.t.onValidationServerError=function(W){this.handleUnexpectedValidationError(new _.bP("ValidateChannelHandle request failed.",W))};
_.t.handleValidationResultRenderer=function(W){if(W.handle===void 0)this.handleUnexpectedValidationError(new _.bP("ChannelHandleValidationResultRenderer does not contain handle.",W));else if(W.handle===this.handleInput.value)switch(W.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:W.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:W.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.bP("Unrecognized ChannelHandleValidationResult",W));break;default:_.Yc(W.result)}};
_.t.handleUnexpectedValidationError=function(W){var l;this.validationState={status:"UNKNOWN",handle:(l=this.handleInput.value)!=null?l:""};_.Qe(W)};
_.t.stopEventPropagation=function(W){W.stopPropagation()};
_.t.updateHandleOnChannelNameInputChange=function(W){if(!this.wasEdited){var l,V;this.debouncedGenerateHandleFromName(W,(V=(l=this.data)==null?void 0:l.validationDelayMs)!=null?V:1E3)}};
_.t.debouncedGenerateHandleFromName=function(W,l){var V=this;_.gm(this,"debouncedGenerateHandleFromName",function(){var f;(f=V.data)!=null&&f.validateChannelHandleCommand?V.ytComponentBehavior.resolveCommand(V.data.validateChannelHandleCommand,{form:{name:W},commandController:{onSuccess:function(r,R){V.onGenerateHandleFromNameResponse(R)},
onServerError:function(r,R){_.Qe(new _.bP("Error calling GenerateHandleFromName",R))}}}):_.Qe(new _.bP("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",V.data))},l)};
_.t.onGenerateHandleFromNameResponse=function(W){this.wasEdited||((W=_.k(W.result,xq1))?this.setHandleInputValue(W.handle):_.Qe(new _.bP("Invalid results when generate handle from name")))};
_.rc.Object.defineProperties(oL.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var W;if(W=this.validationState)W=this.validationState,W=W.status==="OK"||W.status==="UNKNOWN";if(W)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.validationState)==null?void 0:W.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 W,l=(W=this.channelHandleEntity)==null?void 0:W.handleEdit;this.handleDir=this.getHandleDir(l!=null?l:"");return l}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var W,l;if(((W=this.data)==null?void 0:(l=W.channelHandleStaticValidationParams)==null?void 0:l.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
oL.prototype.stopEventPropagation=oL.prototype.stopEventPropagation;oL.prototype.onDataChanged=oL.prototype.onDataChanged;oL.prototype.applyHandleEdit=oL.prototype.applyHandleEdit;oL.prototype.onValueChanged=oL.prototype.onValueChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],oL.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],oL.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],oL.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Boolean)],oL.prototype,"wasEdited",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],oL.prototype,"handleDir",void 0);_.a([_.Aa("#handle-input"),_.z("design:type",Object)],oL.prototype,"handleInput",void 0);_.a([_.b(),_.G("validationState"),_.z("design:type",Object),_.z("design:paramtypes",[])],oL.prototype,"value",null);
_.a([_.TS("value"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oL.prototype,"onValueChanged",null);_.a([_.G("validationState"),_.z("design:type",Object),_.z("design:paramtypes",[])],oL.prototype,"errorIndicator",null);_.a([_.b({reflectToAttribute:!0}),_.G("errorIndicator"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],oL.prototype,"borderErrorIndicator",null);
_.a([_.b({selectorArgs:["data.channelHandleEntityKey"],selector:function(W,l){return _.mL(W.entities,"channelHandle",l)}}),
_.z("design:type",Object)],oL.prototype,"channelHandleEntity",void 0);_.a([_.G("channelHandleEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],oL.prototype,"handleEdit",null);_.a([_.TS("handleEdit"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oL.prototype,"applyHandleEdit",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oL.prototype,"onDataChanged",null);
_.a([_.G("data.channelHandleStaticValidationParams.validValueRegexp"),_.z("design:type",Object),_.z("design:paramtypes",[])],oL.prototype,"validValueRegexp",null);_.a([_.XI("yt-service-request-sent"),_.XI("yt-service-request-completed"),_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],oL.prototype,"stopEventPropagation",null);_.a([_.A({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],oL);
_.Z(oL,"ytd-channel-handle-input-renderer",function(){if(xvY!==void 0)return xvY;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return xvY=W},{mode:_.bD("kevlar_poly_si_batch_j025")?1:2});var jU=function(){var W=_.I.apply(this,arguments)||this;W.data=null;W.errorMessage=null;W.isLoading=!0;W.hideContainer=!1;W.enableNewChannelCreationOnIdForAll=_.U("enable_new_channel_creation_for_id4all");W.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"};W.testOnly={setErrorMessage:function(l){W.resetErrorState();
W.setErrorState(l)}};
return W};
_.v(jU,_.I);_.t=jU.prototype;_.t.created=function(){this.logScreenVe()};
_.t.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")};
_.t.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var W;((W=this.zeroStepErrorMessageEntity)==null?0:W.value)&&this.set("errorMessage",_.Bl(this.zeroStepErrorMessageEntity.value))};
_.t.onCreateTap=function(){var W=this;if(this.data&&this.data.channelCreationEndpoint){var l,V;if(!((l=this.data.createChannelButton)==null?0:(V=l.buttonRenderer)==null?0:V.isDisabled)){var f;if((f=this.nameInput)!=null&&f.value){this.setLoadingState();var r,R;l=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((R=this.handleInput)==null?void 0:R.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:l,commandController:{onSuccess:function(y,P){W.onChannelCreationEndpointSuccess(P);W.obakeImageSource&&_.XC("channelCreatedWithObakeImage",{imageSourceType:W.obakeImageSource})},
onServerError:function(){W.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.t.endpointRequiresServiceRequestAction=function(W){return!!_.k(W,_.zk)||!!_.k(W,NYZ)};
_.t.isNavigateAction=function(W){var l;return!!_.k(W,_.i3)||!!_.k((l=_.k(W,hl1))==null?void 0:l.command,_.i3)};
_.t.isPlaylistAction=function(W){return!!_.k(W,_.gT)||!!_.k(W,_.dT)};
_.t.onChannelCreationEndpointSuccess=function(W){if(W.createChannelError){var l;this.setErrorState((l=W.createChannelError)==null?void 0:l.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.U("enable_secondary_channel_creation_form")&&W.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(W.navigationEndpoint);if(W.actions){l=_.L(W.actions);for(var V=l.next();!V.done;V=l.next())if(V=V.value,this.endpointRequiresServiceRequestAction(V)&&this.ytComponentBehavior.resolveCommand(V),
this.isNavigateAction(V)){var f=void 0;V=_.k((f=_.k(V,hl1))==null?void 0:f.command,_.i3);f=void 0;this.isPlaylistAction((f=V)==null?void 0:f.endpoint)&&(_.Gt(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),f=void 0,this.ytComponentBehavior.resolveCommand((f=V)==null?void 0:f.endpoint))}}W.actions&&W.actions.some(function(r){var R;return _.k(r,_.i3)||_.k((R=_.k(r,hl1))==null?void 0:R.command,_.i3)})||_.Gt(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.t.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.t.onCancelTap=function(){var W,l,V;if(!((W=this.data)==null?0:(l=W.cancelButton)==null?0:(V=l.buttonRenderer)==null?0:V.isDisabled)){var f,r,R;W=(f=this.data)==null?void 0:(r=f.cancelButton)==null?void 0:(R=r.buttonRenderer)==null?void 0:R.command;if(!W||!_.k(W,_.ukn)){var y;this.nameInput&&((y=this.data)==null?0:y.name)&&(this.nameInput.value=this.data.name);var P;this.handleInput&&((P=this.data)==null?0:P.channelHandleInput)&&(this.handleInput.data=_.k(this.data.channelHandleInput,elL));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.t.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.t.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.t.onClearProfilePhotoTap=function(){var W,l,V;((W=this.data)==null?0:(l=W.clearProfilePhotoButton)==null?0:(V=l.buttonRenderer)==null?0:V.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.t.onEditAvatarTap=function(){var W,l,V;((W=this.data)==null?0:(l=W.editAvatarButton)==null?0:(V=l.buttonRenderer)==null?0:V.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.t.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)};
_.t.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var W;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((W=this.data)==null?0:W.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.t.setErrorState=function(W){this.resetErrorState();if(W)this.set("errorMessage",W);else{var l;if((l=this.zeroStepErrorMessageEntity)==null?0:l.value)this.set("errorMessage",_.Bl(this.zeroStepErrorMessageEntity.value));else{var V;((V=this.data)==null?0:V.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.t.fetchImageBlobWithAlr=function(W,l){l=l===void 0?5:l;var V=this,f,r,R,y,P;return _.g(function(n){switch(n.nextAddress){case 1:return n.yield(fetch(W,{method:"GET",mode:"cors"}),2);case 2:f=n.yieldResult;if(f.ok){n.jumpTo(3);break}if(l===0)throw Error();r=V.addJitter(Math.pow(2,5-l));return n.yield(new Promise(function(B){setTimeout(B,r*1E3)}),4);
case 4:return n.return(V.fetchImageBlobWithAlr(W,l-1));case 3:if(!f.headers.get("content-type").split(";").some(function(B){return B.trim()==="text/plain"})){n.jumpTo(5);
break}R=V;y=R.fetchImageBlobWithAlr;return n.yield(f.text(),6);case 6:return n.return(y.call(R,n.yieldResult,l-1));case 5:return n.yield(f.blob(),7);case 7:return P=n.yieldResult,n.return(P)}})};
_.t.addJitter=function(W){var l=W*.3*Math.random();Math.random()>.5&&(l*=-1);return W+l};
_.t.openProfilePicturePicker=function(){var W=this,l,V,f,r,R;return _.g(function(y){if(y.nextAddress==1){l=W.data.scottyUploadUrl;if(!l)return y.return();V=document.documentElement.hasAttribute("dark");f=document.body.style.colorScheme;V&&(document.body.style.colorScheme="dark");r=$3s(W3e(E$4(NAZ(V?"dark":"light")),function(P){var n,B,d,J,D;return _.g(function(u){if(u.nextAddress==1)return n=_.LU(dVN(new ko(P.photoUrl,!1)).build(),"alr","yes"),W.obakeImageSource=W.pictureChangeSourceToObakeImageSourceType(P.photoSource),
_.HG(u,2),W.setLoadingState(),u.yield(W.fetchImageBlobWithAlr(n),4);if(u.nextAddress!=2)return B=u.yieldResult,d=new FileReader,d.addEventListener("load",function(){var H,p,X,w,O,S;return _.g(function(N){if(N.nextAddress==1){if(B.size>15728640)return W.setErrorState((H=W.data)==null?void 0:H.imageSizeErrorMessage),_.Qe(Error("yl")),N.return();if(!d.result)return W.setErrorState((p=W.data)==null?void 0:p.genericImageLoadErrorMessage),_.Qe(Error("zl")),N.return();X=d.result;_.HG(N,2);return N.yield(GmL(B,
l),4)}if(N.nextAddress!=2)return w=N.yieldResult,W.handleImageUpdatedAction(X,w),W.resetErrorState(),_.qL(N,0);O=_.pc(N);W.setErrorState((S=W.data)==null?void 0:S.uploadErrorMessage);if(O instanceof Error)_.wv(O);else{var x=new _.bP(JSON.stringify(O));_.wv(x)}_.ju(N)})}),d.readAsDataURL(B),_.qL(u,0);
J=_.pc(u);W.setErrorState((D=W.data)==null?void 0:D.genericImageLoadErrorMessage);J instanceof Error?_.wv(J):_.Ar(new _.bP(JSON.stringify(J)));_.ju(u)})}),function(){W.hideContainer=!1;
document.body.style.colorScheme=f});
_.HG(y,2);return y.yield(r.openPicker(),4)}if(y.nextAddress!=2)return _.qL(y,0);_.pc(y);W.setErrorState((R=W.data)==null?void 0:R.selectImageErrorMessage);_.ju(y)})};
_.t.pictureChangeSourceToObakeImageSourceType=function(W){switch(W){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.t.logScreenVe=function(){_.Ob(_.Qq(),124448)};
_.t.graftServerVe=function(){var W=_.$G(),l,V,f=(l=this.data)==null?void 0:(V=l.loggingDirectives)==null?void 0:V.trackingParams;f&&W&&(this.channelCreationFormVe=_.Qq().graftServerVe(f,W),W={visualElement:this.channelCreationFormVe},_.wm().reportShown(W))};
_.t.isNameChanged=function(W){var l;return((l=this.data)==null?void 0:l.name)!==W};
_.t.isHandleChanged=function(W){var l,V=_.k((l=this.data)==null?void 0:l.channelHandleInput,elL);return V&&W?V.handle!==W:!1};
_.t.handleImageUpdatedAction=function(W,l){this.hideContainer=!1;this.previewDataUrl=W;this.encryptedBlobId=l};
_.t.handleImageSelectionErrorAction=function(W){this.hideContainer=!1;this.setErrorState(W)};
_.t.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.t.showContainer=function(){this.hideContainer=!1};
_.t.maybeWipeZeroStepErrorMessage=function(){var W,l=(W=this.data)==null?void 0:W.zeroStepErrorMessageEntityKey,V;l&&((V=this.zeroStepErrorMessageEntity)==null?0:V.value)&&this.ytdReduxBehavior.dispatch(_.MB("stringEntity",l,{key:l,value:""}))};
_.rc.Object.defineProperties(jU.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 W;return((W=this.photoThumbnail)==null?0:W.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 W;return!((W=this.data)==null||!W.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.descriptionInfo}}});
jU.prototype.dataChanged=jU.prototype.dataChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],jU.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],jU.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],jU.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],jU.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],jU.prototype,"errorMessage",void 0);
_.a([_.b(),_.z("design:type",Object)],jU.prototype,"isLoading",void 0);_.a([_.b(),_.z("design:type",String)],jU.prototype,"previewDataUrl",void 0);_.a([_.b(),_.z("design:type",Number)],jU.prototype,"obakeImageSource",void 0);_.a([_.b(),_.z("design:type",Object)],jU.prototype,"hideContainer",void 0);_.a([_.Aa("#title-input"),_.z("design:type",Object)],jU.prototype,"nameInput",void 0);_.a([_.Aa("#handle-input"),_.z("design:type",Object)],jU.prototype,"handleInput",void 0);
_.a([_.b(),_.z("design:type",Boolean)],jU.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.a([_.b({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.l$}),_.z("design:type",Object)],jU.prototype,"zeroStepErrorMessageEntity",void 0);_.a([_.G("data","data.isDefaultProfilePhoto","previewDataUrl"),_.z("design:type",Object),_.z("design:paramtypes",[])],jU.prototype,"photoThumbnail",null);
_.a([_.G("data","data.isDefaultProfilePhoto","photoThumbnail"),_.z("design:type",Object),_.z("design:paramtypes",[])],jU.prototype,"userSetPhotoThumbnailUrl",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],jU.prototype,"hideProfilePhotoButtonLayer",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],jU.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.a([_.zS("data","zeroStepErrorMessageEntity"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jU.prototype,"dataChanged",null);_.a([_.b({reflectToAttribute:!0}),_.G("data.descriptionInfo","zeroStepErrorMessageEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],jU.prototype,"description",null);_.a([_.A({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],jU);
_.Z(jU,"ytd-channel-creation-dialog-renderer",function(){if(Y8Z!==void 0)return Y8Z;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Y8Z=W},{mode:1});var eb7;var IL=function(){var W=_.I.apply(this,arguments)||this;W.isLoading=!1;W.isDisabled=!1;return W};
_.v(IL,_.I);IL.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
IL.prototype.updateDisabled=function(){var W;this.isDisabled=this.isLoading||((W=this.handleInput)==null?void 0:W.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
IL.prototype.onSaveClick=function(){var W=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var l;((l=this.data)==null?void 0:l.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 V;if((V=W.data)==null?0:V.nextEndpoint){var f;W.ytComponentBehavior.resolveCommand((f=W.data)==null?void 0:f.nextEndpoint)}else W.isLoading=
!1,W.closeDialog()},
onServerError:function(){W.isLoading=!1;W.handleInput.validate();var V;W.errorMessage=(V=W.data)==null?void 0:V.errorMessage}}}))}};
IL.prototype.closeDialog=function(){_.Gt(this.hostElement,"yt-close-popup-action",[this.is])};
IL.prototype.updateDisabled=IL.prototype.updateDisabled;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],IL.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],IL.prototype,"data",void 0);_.a([_.Aa("#handle-input"),_.z("design:type",Object)],IL.prototype,"handleInput",void 0);_.a([_.TS("isLoading"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],IL.prototype,"updateDisabled",null);
_.a([_.A({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],IL);
_.Z(IL,"ytd-channel-handle-edit-dialog-renderer",function(){if(eb7!==void 0)return eb7;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return eb7=W},{mode:1});var q8w;var id=function(){return _.I.apply(this,arguments)||this};
_.v(id,_.I);id.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],id.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],id.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],id.prototype,"data",void 0);_.a([_.A({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],id);
_.Z(id,"ytd-channel-switcher-footer-renderer",function(){if(q8w!==void 0)return q8w;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return q8w=W},{mode:1});var hbL;var S8H;var m6=function(){return _.I.apply(this,arguments)||this};
_.v(m6,_.I);m6.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
m6.prototype.onIronChange=m6.prototype.onIronChange;_.a([_.b(),_.z("design:type",Object)],m6.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!1}),_.z("design:type",Function)],m6.prototype,"onDontAskAgainChanged",void 0);_.a([_.Aa("#checkbox"),_.z("design:type",Object)],m6.prototype,"checkbox",void 0);_.a([_.XI("iron-change"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],m6.prototype,"onIronChange",null);
_.a([_.A({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],m6);
_.Z(m6,"ytd-identity-prompt-footer-renderer",function(){if(S8H!==void 0)return S8H;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return S8H=W},{mode:1});var XM=function(){var W=_.I.apply(this,arguments)||this;W.dontAskAgain=!1;W.showPopup=!1;W.boundDontAskAgainChanged=function(l){W.dontAskAgainChanged(l)};
W.boundOnAccountItemTap=function(l){W.onAccountItemTap(l)};
return W};
_.v(XM,_.I);_.t=XM.prototype;
_.t.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]]"}}}}}};
_.t.ready=function(){var W=this;_.GS(this.hostElement).querySelector("#container").addEventListener("scroll",function(){W.ytRendererBehavior.markDirty()})};
_.t.dontAskAgainChanged=function(W){this.dontAskAgain=W};
_.t.onAccountItemTap=function(W){if(W){var l={};this.dontAskAgain&&(l={dont_ask_again:this.dontAskAgain});_.PV(W,l)}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.t.redirectOnlyAccount=function(W){W.sections&&W.sections.length>0&&(W=_.k(W.sections[0],_.LMM),(W==null?0:W.contents)&&(W==null?void 0:W.contents.length)<=1?(W=_.Si(window.location.href),(W==null?0:W.next)&&_.Xhj(W.next)?_.PV(W.next):_.PV("/")):this.showPopup=!0)};
XM.prototype.dataChanged=XM.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],XM.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],XM.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!1}),_.z("design:type",Object)],XM.prototype,"dontAskAgain",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],XM.prototype,"showPopup",void 0);_.a([_.b({reflectToAttribute:!1}),_.z("design:type",Object)],XM.prototype,"boundDontAskAgainChanged",void 0);_.a([_.b({reflectToAttribute:!1}),_.z("design:type",Object)],XM.prototype,"boundOnAccountItemTap",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],XM.prototype,"dataChanged",null);
_.a([_.A({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],XM);
_.Z(XM,"ytd-channel-switcher-renderer",function(){if(hbL!==void 0)return hbL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return hbL=W},{mode:1});var Ea2;var Qd=function(){return _.I.apply(this,arguments)||this};
_.v(Qd,_.I);_.rc.Object.defineProperties(Qd.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.a([_.b(),_.z("design:type",Object)],Qd.prototype,"data",void 0);_.a([_.G("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],Qd.prototype,"steps",null);_.a([_.A({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Qd);
_.Z(Qd,"ytd-channel-transfer-stepper-renderer",function(){if(Ea2!==void 0)return Ea2;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Ea2=W},{mode:1});var $vc;var M2=function(){var W=_.I.apply(this,arguments)||this;W.data=null;W.isError=!1;W.isLoading=!1;return W};
_.v(M2,_.I);_.t=M2.prototype;_.t.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"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.t.computeProfileName=function(W){return W?W.givenNameValue+" "+W.familyNameValue:""};
_.t.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)};
_.t.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)};
M2.prototype.onYtServiceRequestError=M2.prototype.onYtServiceRequestError;M2.prototype.onYtServiceRequestSent=M2.prototype.onYtServiceRequestSent;M2.prototype.dataChanged=M2.prototype.dataChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],M2.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],M2.prototype,"data",void 0);
_.a([_.b({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.z("design:type",String)],M2.prototype,"profileName",void 0);_.a([_.b(),_.z("design:type",Object)],M2.prototype,"isError",void 0);_.a([_.b(),_.z("design:type",Object)],M2.prototype,"isLoading",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],M2.prototype,"dataChanged",null);
_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],M2.prototype,"onYtServiceRequestSent",null);_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],M2.prototype,"onYtServiceRequestError",null);_.a([_.A({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],M2);
_.Z(M2,"ytd-channel-warm-welcome-cont-renderer",function(){if($vc!==void 0)return $vc;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return $vc=W},{mode:1});var Wb4;var ZG=function(){var W=_.I.apply(this,arguments)||this;W.data=null;return W};
_.v(ZG,_.I);ZG.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ZG.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ZG.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ZG.prototype,"data",void 0);_.a([_.A({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],ZG);
_.Z(ZG,"ytd-channel-warm-welcome-renderer",function(){if(Wb4!==void 0)return Wb4;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Wb4=W},{mode:1});var l9H;var OE=function(){return _.I.apply(this,arguments)||this};
_.v(OE,_.I);_.rc.Object.defineProperties(OE.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.authorThumbnail)||{}}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],OE.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],OE.prototype,"data",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],OE.prototype,"thumbnailDetails",null);_.a([_.A({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],OE);
_.Z(OE,"ytd-comment-preview-renderer",function(){if(l9H!==void 0)return l9H;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return l9H=W},{mode:1});var Vcc;var aL=function(){return _.I.apply(this,arguments)||this};
_.v(aL,_.I);aL.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.rc.Object.defineProperties(aL.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.submitButton}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],aL.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],aL.prototype,"data",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],aL.prototype,"submitButton",null);_.a([_.A({is:"ytd-notice-renderer",disableElementRegistration:!0})],aL);
_.Z(aL,"ytd-notice-renderer",function(){if(Vcc!==void 0)return Vcc;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Vcc=W},{mode:1});var f91;var zh=function(){return _.I.apply(this,arguments)||this};
_.v(zh,_.I);zh.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],zh.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],zh.prototype,"data",void 0);_.a([_.A({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],zh);
_.Z(zh,"ytd-preview-comment-dialog-content",function(){if(f91!==void 0)return f91;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return f91=W},{mode:1});var rh4;var N2=function(){return _.I.apply(this,arguments)||this};
_.v(N2,_.I);N2.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
N2.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],N2.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],N2.prototype,"data",void 0);_.a([_.A({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],N2);
_.Z(N2,"ytd-preview-comment-dialog-renderer",function(){if(rh4!==void 0)return rh4;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return rh4=W},{mode:1});var RxL;var tc1=_.U("web_button_rework")&&_.ZL("BUTTON_REWORK")||_.U("web_button_rework_with_live"),Yj=function(){var W=_.I.apply(this,arguments)||this;W.closeLabel=_.wg("CLOSE");W.selectedAmountIndex=1;W.privacyCheckboxValue=!1;W.useAmsterdamStyle=tc1;W.amountPlaceholderIndex=-1;return W};
_.v(Yj,_.I);_.t=Yj.prototype;_.t.onAmountClick=function(W){this.selectedAmountIndex=_.GS(this.hostElement).querySelector("#amounts").indexForElement(W.currentTarget)};
_.t.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.Gt(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.t.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.Gt(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.Gt(this.hostElement,"yt-close-popup-action",[this.is]);var W;(W=_.Jy())==null||W.getPlayerPromise().then(function(l){l.pauseVideo()})}};
_.t.donationCallback=function(W){W.success?(this.hostElement.hasAttribute("live-chat")&&W.response&&W.response.data&&W.response.data.actions&&_.Gt(this.hostElement,"yt-live-chat-open-popup",[W.response.data.actions[0]]),_.Gt(this.hostElement,"yt-close-popup-action",[this.is]),_.Gt(this.hostElement,"yt-live-chat-close-buy-flow")):W.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(W.errorMessageRenderer)};
_.t.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.GS(this.hostElement).querySelector("#custom-amount-input").focus()};
_.t.updateConfirmationDialogTextWithAmount=function(W){var l=this.getConfirmDialogRuns();l&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(l),"text"],this.getFormattedAmount(W))};
_.t.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.t.getAmountPlaceholderIndex=function(W){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=W.findIndex(function(l){return l.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.t.getFormattedAmount=function(W){var l;return(new _.y1(4,((l=this.data)==null?void 0:l.currencyCode)||"")).format(W)};
_.t.isAmountValid=function(W){if(W==="")return!1;W=Number(W)*1E6;var l=this.get("minAmountMicros",this.data),V=this.get("maxAmountMicros",this.data);return l&&W<l||V&&W>V?!1:!0};
_.t.setInputError=function(){this.shouldShowValidationError?_.GS(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.GS(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.t.setInitialCheckboxValue=function(){var W;this.privacyCheckboxValue=!((W=this.data)==null||!W.privacyCheckboxInitialState)};
_.t.updateCustomAmountInputFromBinding=function(W){this.customAmountInput=W.detail.value};
_.t.updatePrivacyCheckboxValueFromBinding=function(W){this.privacyCheckboxValue=W.detail.value};
_.rc.Object.defineProperties(Yj.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var W=this,l,V;return((l=this.data)==null?void 0:(V=l.suggestedAmounts)==null?void 0:V.map(function(f,r){return{buttonRenderer:{style:W.selectedAmountIndex===r?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:f.label}}}))||[]}},
isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}},
showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.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 W=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(W&&this.amountMicros!==null)return Object.assign({},W,{ypcGetCartEndpoint:Object.assign({},W.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 W=this.get("confirmLargeAmount",this.data);if(W&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),W}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W=this.get("donateButton.buttonRenderer",this.data);if(W)return Object.assign({},W,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
Yj.prototype.setInitialCheckboxValue=Yj.prototype.setInitialCheckboxValue;Yj.prototype.setInputError=Yj.prototype.setInputError;Yj.prototype.setFocusOnCustomAmountInput=Yj.prototype.setFocusOnCustomAmountInput;_.a([_.F(Dy1),_.z("design:type",Object)],Yj.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Yj.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Yj.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Yj.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Yj.prototype,"closeLabel",void 0);_.a([_.b(),_.z("design:type",Object)],Yj.prototype,"selectedAmountIndex",void 0);_.a([_.b(),_.z("design:type",String)],Yj.prototype,"customAmountInput",void 0);_.a([_.b(),_.z("design:type",Object)],Yj.prototype,"privacyCheckboxValue",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Yj.prototype,"useAmsterdamStyle",void 0);_.a([_.TS("customAmount"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yj.prototype,"setFocusOnCustomAmountInput",null);_.a([_.G("data","selectedAmountIndex"),_.z("design:type",Array),_.z("design:paramtypes",[])],Yj.prototype,"suggestedAmountButtons",null);
_.a([_.G("data","selectedAmountIndex"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Yj.prototype,"isCustomAmountSelected",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Yj.prototype,"showPrivacyCheckbox",null);_.a([_.G("data","selectedAmountIndex","customAmount"),_.z("design:type",Object),_.z("design:paramtypes",[])],Yj.prototype,"amountMicros",null);
_.a([_.G("isCustomAmountSelected","customAmountInput"),_.z("design:type",Object),_.z("design:paramtypes",[])],Yj.prototype,"customAmount",null);_.a([_.G("customAmount"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Yj.prototype,"shouldShowValidationError",null);_.a([_.G("customAmount"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Yj.prototype,"isDonateButtonEnabled",null);
_.a([_.G("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.z("design:type",Object),_.z("design:paramtypes",[])],Yj.prototype,"donateCommand",null);_.a([_.G("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.z("design:type",Object),_.z("design:paramtypes",[])],Yj.prototype,"donateCommandWithConfirmation",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Yj.prototype,"largeDonationThreshold",null);
_.a([_.G("customAmount","donateCommand","amountMicros"),_.z("design:type",Object),_.z("design:paramtypes",[])],Yj.prototype,"confirmLargeAmountCommand",null);_.a([_.G("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.z("design:type",Object),_.z("design:paramtypes",[])],Yj.prototype,"donateButtonRenderer",null);_.a([_.TS("shouldShowValidationError"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yj.prototype,"setInputError",null);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Yj.prototype,"setInitialCheckboxValue",null);_.a([_.A({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],Yj);
_.Z(Yj,"ytd-donation-amount-picker-renderer",function(){if(RxL!==void 0)return RxL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return RxL=W},{mode:1});var sb7;var xj=function(){return _.I.apply(this,arguments)||this};
_.v(xj,_.I);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],xj.prototype,"ytComponentBehavior",void 0);_.a([_.b({}),_.z("design:type",Object)],xj.prototype,"data",void 0);_.a([_.A({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],xj);
_.Z(xj,"ytd-donation-post-transaction-content",function(){if(sb7!==void 0)return sb7;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return sb7=W},{mode:1});var Lb5;var eU=function(){return _.I.apply(this,arguments)||this};
_.v(eU,_.I);eU.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],eU.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],eU.prototype,"ytRendererBehavior",void 0);_.a([_.b({}),_.z("design:type",Object)],eU.prototype,"data",void 0);_.a([_.A({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],eU);
_.Z(eU,"ytd-donation-post-transaction-renderer",function(){if(Lb5!==void 0)return Lb5;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Lb5=W},{mode:1});var yh1;var gU7;var q2=function(){return _.I.apply(this,arguments)||this};
_.v(q2,_.I);q2.prototype.computeIsStreamingProvider=function(W){return!!W.isStreamingShelf};
q2.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],q2.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],q2.prototype,"data",void 0);_.a([_.b({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],q2.prototype,"isStreamingProvider",void 0);
_.a([_.A({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],q2);
_.Z(q2,"ytd-media-provider-renderer",function(){if(gU7!==void 0)return gU7;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return gU7=W},{mode:1});var PU1;var hn=function(){return _.I.apply(this,arguments)||this};
_.v(hn,_.I);hn.prototype.observeLightsourcePalette=function(){var W,l=(W=this.data)==null?void 0:W.vibrantsourceColorPaletteData;l&&_.Yh(this.hostElement,l)};
hn.prototype.observeLightsourcePalette=hn.prototype.observeLightsourcePalette;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],hn.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],hn.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],hn.prototype,"data",void 0);
_.a([_.TS("data.vibrantsourceColorPaletteData"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],hn.prototype,"observeLightsourcePalette",null);_.a([_.A({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],hn);
_.Z(hn,"ytd-streaming-pop-up-dialog",function(){if(PU1!==void 0)return PU1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return PU1=W},{mode:1});var SU=function(){return _.I.apply(this,arguments)||this};
_.v(SU,_.I);SU.prototype.onPopupOpened_=function(){var W;((W=this.data)==null?0:W.serviceEndpoint)&&_.tY().resolve(_.s6).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
SU.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
SU.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"}}}}};
SU.prototype.onPopupOpened_=SU.prototype.onPopupOpened_;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],SU.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.vH),_.z("design:type",Object)],SU.prototype,"ytContinuationHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],SU.prototype,"data",void 0);
_.a([_.XI("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],SU.prototype,"onPopupOpened_",null);_.a([_.A({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],SU);
_.Z(SU,"ytd-brandconnect-popup-renderer",function(){if(yh1!==void 0)return yh1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return yh1=W},{mode:1});var nU5;var EE=function(){return _.I.apply(this,arguments)||this};
_.v(EE,_.I);_.t=EE.prototype;_.t.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.dataChanged=function(){for(var W=0;W<this.getOptionRenderers().length;W++)this.notifyPath("data.options."+W+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+W+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.t.updateSubmitButton=function(W){this.set("data.submitButton.buttonRenderer.isDisabled",!W)};
_.t.computeAlt=function(W){return _.dE(W)};
_.t.onDismissTap=function(){_.Gt(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.tY().resolve(_.s6).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.t.getOptionRenderers=function(W){return(W=W||this.data)&&W.options?W.options.reduce(function(l,V){V.checkboxSurveyOptionRenderer&&l.push(V.checkboxSurveyOptionRenderer);return l},[]):[]};
_.t.onOptionChange=function(W){var l=this,V=!1;if(W.detail.checked)for(var f=this.getOptionRenderers().find(function(P){return P.value===W.detail.value}),r=this.getOptionRenderers(),R=0;R<r.length;R++){var y=r[R];
this.notifyPath("data.options."+R+".checkboxSurveyOptionRenderer.checked");y.checked&&((f==null?0:f.isExclusiveOption)?!y.isExclusiveOption:y.isExclusiveOption)?this.set("data.options."+R+".checkboxSurveyOptionRenderer.checked",!1):y.checked&&(V=!0)}else V=this.getOptionRenderers().some(function(P,n){l.notifyPath("data.options."+n+".checkboxSurveyOptionRenderer.checked");return P.checked});
this.updateSubmitButton(V)};
_.t.onSubmitTap=function(){var W=this.getOptionRenderers().filter(function(R){return R.checked});
if(W.length!==0){var l=W.map(function(R){return R.responseEndpoint});
W=[];for(var V=1;V<l.length;V++){var f=void 0,r=(f=_.k(l[V],_.NP))==null?void 0:f.feedbackToken;r&&W.push(r)}l=[l[0]];W.length&&l.push({extra_feedback_tokens:W});_.pN(this.hostElement,l);_.Gt(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);W=this.data&&this.data.submitActions||[];if(_.U("kevlar_command_handler_migration_killswitch"))_.og(this.hostElement,W,this.hostElement);else for(W=_.L(W),l=W.next();!l.done;l=W.next())this.ytComponentBehavior.resolveCommand(l.value)}};
EE.prototype.onOptionChange=EE.prototype.onOptionChange;EE.prototype.dataChanged=EE.prototype.dataChanged;_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],EE.prototype,"ytEventForwardingBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],EE.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],EE.prototype,"ytComponentBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.a([_.F(wxe),_.z("design:type",Object)],EE.prototype,"ytdHatsSurveyBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],EE.prototype,"data",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],EE.prototype,"dataChanged",null);
_.a([_.XI("ytd-checkbox-survey-option-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],EE.prototype,"onOptionChange",null);_.a([_.A({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],EE);
_.Z(EE,"ytd-checkbox-survey-renderer",function(){if(nU5!==void 0)return nU5;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return nU5=W},{mode:1});var CUZ;var ch1;var WM=function(){return _.I.apply(this,arguments)||this};
_.v(WM,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.a([_.F(TnH),_.z("design:type",Object)],WM.prototype,"ytdDismissalReasonBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],WM.prototype,"data",void 0);_.a([_.A({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],WM);
_.Z(WM,"ytd-dismissal-reason-text-renderer",function(){if(ch1!==void 0)return ch1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return ch1=W},{mode:1});var Bs2;var l2=function(){return _.I.apply(this,arguments)||this};
_.v(l2,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],l2.prototype,"ytRendererBehavior",void 0);_.a([_.F(TnH),_.z("design:type",Object)],l2.prototype,"ytdDismissalReasonBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],l2.prototype,"data",void 0);_.a([_.A({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],l2);
_.Z(l2,"ytd-dismissal-reason-video-renderer",function(){if(Bs2!==void 0)return Bs2;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Bs2=W},{mode:1});var Vc=function(){var W=_.I.apply(this,arguments)||this;W.darkerDarkTheme=_.U("web_darker_dark_theme");return W};
_.v(Vc,_.I);_.t=Vc.prototype;_.t.created=function(){this.selectedFeedbackTokens=new Ao};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.t.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.t.onDismissalReasonSelected=function(W,l){_.FN(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(l);this.hasReasonsSelected=!0};
_.t.onDismissalReasonDeselected=function(W,l){_.FN(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(l);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.t.onCancelTap=function(){_.Gt(this.hostElement,"yt-close-popup-action")};
_.t.onSubmitTap=function(){var W=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(W={feedback_tokens:W},_.tY().resolve(_.s6).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},W,{element:this.hostElement})}));_.Gt(this.hostElement,"yt-close-popup-action")};
Vc.prototype.onDismissalReasonDeselected=Vc.prototype.onDismissalReasonDeselected;Vc.prototype.onDismissalReasonSelected=Vc.prototype.onDismissalReasonSelected;Vc.prototype.dataChanged=Vc.prototype.dataChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Vc.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Vc.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Boolean)],Vc.prototype,"hasReasonsSelected",void 0);_.a([_.b(),_.z("design:type",Ao)],Vc.prototype,"selectedFeedbackTokens",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Vc.prototype,"darkerDarkTheme",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Vc.prototype,"dataChanged",null);
_.a([_.XI("yt-dismissal-reason-selected"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,String]),_.z("design:returntype")],Vc.prototype,"onDismissalReasonSelected",null);_.a([_.XI("yt-dismissal-reason-deselected"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,String]),_.z("design:returntype")],Vc.prototype,"onDismissalReasonDeselected",null);_.a([_.A({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],Vc);
_.Z(Vc,"ytd-dismissal-follow-up-renderer",function(){if(CUZ!==void 0)return CUZ;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return CUZ=W},{mode:1});var dxH;var fL=function(){return _.I.apply(this,arguments)||this};
_.v(fL,_.I);_.t=fL.prototype;_.t.onCheckedChange=function(){this.multiselect||_.FN(this.hostElement,"yt-feedback-single-select-changed");_.GS(this.hostElement).querySelector("#freeform").focus();_.FN(this.hostElement,"yt-refit")};
_.t.showTextBox=function(W,l){return W&&l};
_.t.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))};
_.t.updateDataCheckedFromBinding=function(W){this.set("data.checked",W.detail.value)};
_.t.updateDataResultTextFromBinding=function(W){this.set("data.resultText",W.detail.value)};
fL.prototype.dataChanged=fL.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],fL.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],fL.prototype,"data",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],fL.prototype,"multiselect",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],fL.prototype,"dataChanged",null);
_.a([_.A({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],fL);
_.Z(fL,"ytd-feedback-option-renderer",function(){if(dxH!==void 0)return dxH;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return dxH=W},{mode:1});var Jh7;var rB=function(){return _.I.apply(this,arguments)||this};
_.v(rB,_.I);rB.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
rB.prototype.onSingleSelectCheckedChanged=function(W){W=_.Ja(W);for(var l=0;l<this.data.options.length;l++)if(W.data!==_.k(this.data.options[l],mDw)){var V="data.options."+l+".feedbackOptionRenderer.checked";this.notifyPath(V);this.set(V,!1)}};
rB.prototype.onSingleSelectCheckedChanged=rB.prototype.onSingleSelectCheckedChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],rB.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],rB.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],rB.prototype,"data",void 0);
_.a([_.XI("yt-feedback-single-select-changed"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],rB.prototype,"onSingleSelectCheckedChanged",null);_.a([_.A({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],rB);
_.Z(rB,"ytd-feedback-question-renderer",function(){if(Jh7!==void 0)return Jh7;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Jh7=W},{mode:1});var DxN;var Rc=function(){return _.I.apply(this,arguments)||this};
_.v(Rc,_.I);Rc.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
Rc.prototype.getSelectedFeedbackResults=function(){for(var W={},l=0;l<this.data.questions.length;l++)for(var V=_.k(this.data.questions[l],ifw),f=0;f<V.options.length;f++){var r=_.k(V.options[f],mDw);r&&r.checked&&(W[r.optionKey]=r.resultText)}return W};
Rc.prototype.onKeyUp=function(){var W=this;_.pP(_.w8,function(){_.FN(W.hostElement,"yt-refit")});
_.w8.start()};
Rc.prototype.submitSurvey=function(){var W=this.getSelectedFeedbackResults();Object.keys(W).length>0&&this.data.submitFeedbackEndpoint&&(W={survey_results:W,is_feedback_token_unencrypted:!0},_.tY().resolve(_.s6).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},W,{element:this.hostElement})}))};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Rc.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Rc.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Rc.prototype,"data",void 0);_.a([_.A({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],Rc);
_.Z(Rc,"ytd-feedback-survey-renderer",function(){if(DxN!==void 0)return DxN;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return DxN=W},{mode:1});var UxL;var utZ;var tw=function(){return _.I.apply(this,arguments)||this};
_.v(tw,_.I);tw.prototype.computeAlt=function(W){return _.dE(W)};
tw.prototype.submitResponse=function(){var W,l;(W=this.data)!=null&&W.feedbackToken&&((l=this.data)==null?void 0:l.nextStageIndex)!==void 0&&(_.bj(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.bj(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
tw.prototype.onClick=function(){this.submitResponse()};
tw.prototype.onClick=tw.prototype.onClick;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],tw.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],tw.prototype,"vertical",void 0);_.a([_.XI("click"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],tw.prototype,"onClick",null);
_.a([_.A({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],tw);
_.Z(tw,"ytd-single-select-answer-option-renderer",function(){if(utZ!==void 0)return utZ;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return utZ=W},{mode:1});var kE1;var sO=function(){var W=_.I.apply(this,arguments)||this;W.darkerDarkTheme=_.U("web_darker_dark_theme");W.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return W};
_.v(sO,_.I);sO.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
sO.prototype.dataChanged=function(){var W,l;this.vertical=((l=(W=this.data)==null?void 0:W.answerOrientation)!=null?l:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
sO.prototype.submitFeedback=function(W){var l;((l=this.data)==null?0:l.responseEndpoint)&&W&&_.pN(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[W]}])};
sO.prototype.dataChanged=sO.prototype.dataChanged;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],sO.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],sO.prototype,"eventForwardingBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],sO.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],sO.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],sO.prototype,"vertical",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],sO.prototype,"darkerDarkTheme",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],sO.prototype,"dataChanged",null);_.a([_.A({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],sO);
_.Z(sO,"ytd-single-select-question-renderer",function(){if(kE1!==void 0)return kE1;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return kE1=W},{mode:1});var LL=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return W};
_.v(LL,_.I);_.t=LL.prototype;_.t.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"}}}};
_.t.dataChanged=function(){this.jumpToStage(0)};
_.t.jumpToStage=function(W){var l,V;if((l=this.data)==null?0:(V=l.stages)==null?0:V[W])this.currentStage=this.data.stages[W],this.refitAfterRender()};
_.t.computeAlt=function(W){return _.dE(W)};
_.t.computeSimpleMessage=function(W){var l;return(l=_.k(W,wBs))==null?void 0:l.messageText};
_.t.computeHideDismiss=function(W){var l;return(l=_.k(W,yPL))==null?void 0:l.hideParentDismissButton};
_.t.onDismissTap=function(){_.Gt(this.hostElement,"yt-close-popup-action");_.k(this.currentStage,wBs)||this.data.dismissalEndpoint&&_.tY().resolve(_.s6).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.t.refitAfterRender=function(){var W=this;_.V9(this,function(){_.FN(W.hostElement,"yt-refit")})};
LL.prototype.dataChanged=LL.prototype.dataChanged;_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],LL.prototype,"eventForwardingBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],LL.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],LL.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],LL.prototype,"ytActionHandlerBehavior",void 0);
_.a([_.F(wxe),_.z("design:type",Object)],LL.prototype,"ytdHatsSurveyBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],LL.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],LL.prototype,"currentStage",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],LL.prototype,"dataChanged",null);_.a([_.A({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],LL);
_.Z(LL,"ytd-multi-stage-survey-renderer",function(){if(UxL!==void 0)return UxL;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return UxL=W},{mode:1});var vUc;var yc=function(){return _.I.apply(this,arguments)||this};
_.v(yc,_.I);yc.prototype.computeAlt=function(W){return _.dE(W)};
yc.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.tY().resolve(_.s6).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.Gt(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.MQ5(!1)))};
yc.prototype.onTap=function(){this.vertical&&this.submitResponse()};
yc.prototype.onTap=yc.prototype.onTap;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],yc.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],yc.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],yc.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],yc.prototype,"vertical",void 0);
_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yc.prototype,"onTap",null);_.a([_.A({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],yc);
_.Z(yc,"ytd-single-option-survey-option-renderer",function(){if(vUc!==void 0)return vUc;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return vUc=W},{mode:1});var H3w;var gB=function(){return _.I.apply(this,arguments)||this};
_.v(gB,_.I);_.t=gB.prototype;_.t.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.dataChanged=function(){var W,l;this.vertical=(((W=this.data)==null?void 0:(l=W.surveyOrientation)==null?void 0:l.type)||"HORIZONTAL")==="VERTICAL"};
_.t.computeAlt=function(W){return _.dE(W)};
_.t.onDismissTap=function(){_.Gt(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.tY().resolve(_.s6).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.MQ5(!1))};
gB.prototype.dataChanged=gB.prototype.dataChanged;_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],gB.prototype,"eventForwardingBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],gB.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],gB.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(wxe),_.z("design:type",Object)],gB.prototype,"ytdHatsSurveyBehavior",void 0);
_.a([_.F(_.dx),_.z("design:type",Object)],gB.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],gB.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],gB.prototype,"vertical",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],gB.prototype,"dataChanged",null);_.a([_.A({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],gB);
_.Z(gB,"ytd-single-option-survey-renderer",function(){if(H3w!==void 0)return H3w;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return H3w=W},{mode:1});var Kb5;var PM=function(){var W=_.I.apply(this,arguments)||this;W.darkerDarkTheme=_.U("web_darker_dark_theme");return W};
_.v(PM,_.I);PM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
PM.prototype.onDismissTap=function(){_.Gt(this.hostElement,"yt-close-popup-action")};
PM.prototype.onNavigate=function(){_.Gt(this.hostElement,"yt-close-popup-action")};
PM.prototype.onNavigate=PM.prototype.onNavigate;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],PM.prototype,"ytEventForwardingBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],PM.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],PM.prototype,"darkerDarkTheme",void 0);
_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],PM.prototype,"onNavigate",null);_.a([_.A({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],PM);
_.Z(PM,"ytd-survey-follow-up-renderer",function(){if(Kb5!==void 0)return Kb5;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Kb5=W},{mode:1});var Fb1;var GEZ;var b34;var nL=function(){var W=_.I.apply(this,arguments)||this;W.polymer2="Element"in Polymer;return W};
_.v(nL,_.I);_.t=nL.prototype;_.t.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.t.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.t.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.t.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.GD("minutes-changed",this.minutes))};
_.t.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.GD("seconds-changed",this.seconds))};
_.t.updateMinutesFromBinding=function(W){this.minutes=W.detail.value};
_.t.updateSecondsFromBinding=function(W){this.seconds=W.detail.value};
nL.prototype.secondsChangedForBinding=nL.prototype.secondsChangedForBinding;nL.prototype.minutesChangedForBinding=nL.prototype.minutesChangedForBinding;nL.prototype.secondsChanged=nL.prototype.secondsChanged;_.a([_.b(),_.z("design:type",String)],nL.prototype,"minutes",void 0);_.a([_.b(),_.z("design:type",String)],nL.prototype,"seconds",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],nL.prototype,"polymer2",void 0);
_.a([_.Aa("#seconds"),_.z("design:type",Object)],nL.prototype,"secondsEl",void 0);_.a([_.TS("seconds"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nL.prototype,"secondsChanged",null);_.a([_.TS("minutes"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nL.prototype,"minutesChangedForBinding",null);
_.a([_.TS("seconds"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],nL.prototype,"secondsChangedForBinding",null);_.a([_.Vq({is:"yt-timestamp-input",disableElementRegistration:!0})],nL);
_.Z(nL,"yt-timestamp-input",function(){if(b34===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;GEZ===void 0&&(GEZ=document.createElement("template"));var f=GEZ;V.call(l,f.content.cloneNode(!0),W.content.firstChild);b34=W}W=b34;return W},{mode:2});var CL=function(){return _.I.apply(this,arguments)||this};
_.v(CL,_.I);_.t=CL.prototype;_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20336_scroller.dialogElement=this.hostElement.parentNode};
_.t.dataChanged=function(){var W=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.Dy().getPlayerPromise().then(function(l){l=l.getCurrentTime();W.minutes=Math.floor(l/60).toString();W.seconds=(Math.floor(l)%60).toString()})};
_.t.onTapSubmit=function(W){W.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(W={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(W.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(W.minutes=this.minutes,W.seconds=this.seconds),_.tY().resolve(_.s6).resolveCommand(this.serviceEndpoint,{form:Object.assign({},W,{element:this.hostElement})}))};
_.t.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.t.onYtServiceRequestCompleted=function(W,l){l=l.actions;if(Array.isArray(l))for(var V=0,f=l.length;V<f;V++)_.k(l[V],_.Ss)&&(W.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(l[V]))};
_.t.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.t.toggleSubmitButton=function(W){this.set("submitButton.isDisabled",!W)};
_.t.handleInput=function(){var W=this.issueType,l=this.affiliation,V=this.minutes,f=this.seconds;V=!this.showTimestamp||!!V&&!!f;this.toggleSubmitButton(!!this.descriptionText&&!!W&&!!l&&V)};
_.t.computeServiceEndpoint=function(W){return this.get("submitButton.buttonRenderer.serviceEndpoint",W)};
_.t.computeSubmitButton=function(W){(W=this.get("submitButton.buttonRenderer",W))&&(W=Object.assign({},W,{serviceEndpoint:void 0}));return W};
_.t.computeShowTimestamp=function(W){return!!W};
_.t.onValueChangedForIssueType=function(W){this.issueType=W.detail.value};
_.t.onValueChangedForAffiliation=function(W){this.affiliation=W.detail.value};
_.t.updateDescriptionTextFromBinding=function(W){this.descriptionText=W.detail.value};
_.t.updateFullNameTextFromBinding=function(W){this.fullNameText=W.detail.value};
_.t.updateMinutesFromBinding=function(W){this.minutes=W.detail.value};
_.t.updateSecondsFromBinding=function(W){this.seconds=W.detail.value};
CL.prototype.handleInput=CL.prototype.handleInput;CL.prototype.onYtServiceRequestError=CL.prototype.onYtServiceRequestError;CL.prototype.onYtServiceRequestCompleted=CL.prototype.onYtServiceRequestCompleted;CL.prototype.onYtServiceRequestSent=CL.prototype.onYtServiceRequestSent;CL.prototype.dataChanged=CL.prototype.dataChanged;_.a([_.F(_.eX.YtOpenPopupBehavior),_.z("design:type",Object)],CL.prototype,"ytOpenPopupBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],CL.prototype,"ytRendererBehavior",void 0);_.a([_.Aa("#scroller"),_.z("design:type",Object)],CL.prototype,"JSC$20336_scroller",void 0);_.a([_.Aa("#description"),_.z("design:type",HTMLInputElement)],CL.prototype,"description",void 0);_.a([_.Aa("#full-name"),_.z("design:type",Object)],CL.prototype,"fullName",void 0);_.a([_.b(),_.z("design:type",Object)],CL.prototype,"data",void 0);
_.a([_.b({computed:"computeShowTimestamp(data.timestampLabel)"}),_.z("design:type",Boolean)],CL.prototype,"showTimestamp",void 0);_.a([_.b({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.z("design:type",Object)],CL.prototype,"serviceEndpoint",void 0);_.a([_.b({computed:"computeSubmitButton(data)"}),_.z("design:type",Object)],CL.prototype,"submitButton",void 0);_.a([_.b(),_.z("design:type",String)],CL.prototype,"descriptionText",void 0);
_.a([_.b(),_.z("design:type",Number)],CL.prototype,"issueType",void 0);_.a([_.b(),_.z("design:type",Number)],CL.prototype,"affiliation",void 0);_.a([_.b(),_.z("design:type",String)],CL.prototype,"fullNameText",void 0);_.a([_.b(),_.z("design:type",String)],CL.prototype,"minutes",void 0);_.a([_.b(),_.z("design:type",String)],CL.prototype,"seconds",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],CL.prototype,"dataChanged",null);
_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],CL.prototype,"onYtServiceRequestSent",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],CL.prototype,"onYtServiceRequestCompleted",null);
_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],CL.prototype,"onYtServiceRequestError",null);_.a([_.TS("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],CL.prototype,"handleInput",null);_.a([_.A({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],CL);
_.Z(CL,"ytd-legal-report-details-form-renderer",function(){if(Fb1!==void 0)return Fb1;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Fb1=W},{mode:1});var pc7;var cM=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return W};
_.v(cM,_.I);cM.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
cM.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var W=this.formRenderer.getForm();W&&this.data.submitEndpoint&&(_.tY().resolve(_.s6).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},W,{element:this.hostElement})}),_.Gt(this.hostElement,"yt-close-popup-action"))}};
cM.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.Gt(this.hostElement,"yt-close-popup-action"))};
cM.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
cM.prototype.onPopupClosed=cM.prototype.onPopupClosed;_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],cM.prototype,"ytEventForwardingBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],cM.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);
_.a([_.Aa("yt-form-renderer"),_.z("design:type",Object)],cM.prototype,"formRenderer",void 0);_.a([_.b(),_.z("design:type",Object)],cM.prototype,"data",void 0);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],cM.prototype,"onPopupClosed",null);_.a([_.A({is:"ytd-form-popup-content",disableElementRegistration:!0})],cM);
_.Z(cM,"ytd-form-popup-content",function(){if(pc7!==void 0)return pc7;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return pc7=W},{mode:1});var oUL;var BM=function(){return _.I.apply(this,arguments)||this};
_.v(BM,_.I);BM.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
BM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
BM.prototype.onPopupOpened=function(){_.FN(this.hostElement,"yt-invalidate-popup-tabbables")};
BM.prototype.onYtServiceRequestCompleted=function(W,l){l.data&&l.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.FN(this.hostElement,"yt-invalidate-popup-tabbables"))};
BM.prototype.onYtServiceRequestCompleted=BM.prototype.onYtServiceRequestCompleted;BM.prototype.onPopupOpened=BM.prototype.onPopupOpened;_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],BM.prototype,"ytEventForwardingBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],BM.prototype,"data",void 0);_.a([_.XI("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],BM.prototype,"onPopupOpened",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],BM.prototype,"onYtServiceRequestCompleted",null);_.a([_.A({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],BM);
_.Z(BM,"ytd-form-popup-renderer",function(){if(oUL!==void 0)return oUL;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return oUL=W},{mode:1});var jbZ;var dB=function(){var W=_.I.apply(this,arguments)||this;W.isLoading=!1;return W};
_.v(dB,_.I);_.t=dB.prototype;_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");WL7(this.hostElement)};
_.t.onYtServiceRequestSent=function(){this.isLoading=!0};
_.t.onYtServiceRequestCompleted=function(){_.Gt(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.t.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.og(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.t.closePopupHandler=function(){this.fireOnCloseActions()};
_.t.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var W=this.get("data.headerImage.thumbnails");W&&(W=_.KP(W,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+W+")")}};
_.t.onYtNavigate=function(W){(W=_.Ja(W))&&W.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
dB.prototype.onYtNavigate=dB.prototype.onYtNavigate;dB.prototype.onHeaderImageChanged=dB.prototype.onHeaderImageChanged;dB.prototype.closePopupHandler=dB.prototype.closePopupHandler;dB.prototype.onYtServiceRequestCompleted=dB.prototype.onYtServiceRequestCompleted;dB.prototype.onYtServiceRequestSent=dB.prototype.onYtServiceRequestSent;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],dB.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],dB.prototype,"ytEventForwardingBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],dB.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],dB.prototype,"isLoading",void 0);_.a([_.Aa("#header"),_.z("design:type",HTMLDivElement)],dB.prototype,"header",void 0);_.a([_.Aa("#confirm-button"),_.z("design:type",_.tP)],dB.prototype,"confirmButton",void 0);
_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],dB.prototype,"onYtServiceRequestSent",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],dB.prototype,"onYtServiceRequestCompleted",null);
_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],dB.prototype,"closePopupHandler",null);_.a([_.TS("data.headerImage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dB.prototype,"onHeaderImageChanged",null);_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],dB.prototype,"onYtNavigate",null);
_.a([_.A({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],dB);
_.Z(dB,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(jbZ!==void 0)return jbZ;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return jbZ=W},{mode:1});var I9Z;var Jw=function(){var W=_.I.apply(this,arguments)||this;W.isLoading=!1;return W};
_.v(Jw,_.I);_.t=Jw.prototype;_.t.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"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);WL7(this.hostElement)};
_.t.onYtServiceRequestCompleted=function(){_.Gt(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.t.onYtServiceRequestError=function(W){_.Lh(this.hostElement,W.detail.error.message)};
_.t.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.t.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.Gt(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.t.onDataChanged=function(){this.isLoading=!1;var W=this.get("data.headerImage.thumbnails");W&&(W=_.KP(W,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+W+")");W=_.Wh();var l=_.$G(),V=this.get("data.trackingParams");V&&l&&W&&_.L0(W,l,_.zG(V))};
_.rc.Object.defineProperties(Jw.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
Jw.prototype.onDataChanged=Jw.prototype.onDataChanged;Jw.prototype.onDomChange=Jw.prototype.onDomChange;Jw.prototype.onYtServiceRequestError=Jw.prototype.onYtServiceRequestError;Jw.prototype.onYtServiceRequestCompleted=Jw.prototype.onYtServiceRequestCompleted;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Jw.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Jw.prototype,"ytRendererBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],Jw.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Jw.prototype,"isLoading",void 0);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Jw.prototype,"hasDescription",null);_.a([_.Aa("tp-yt-paper-dialog-scrollable"),_.z("design:type",Object)],Jw.prototype,"scrollable",void 0);_.a([_.Aa("#header"),_.z("design:type",HTMLElement)],Jw.prototype,"header",void 0);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Jw.prototype,"onYtServiceRequestCompleted",null);_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Jw.prototype,"onYtServiceRequestError",null);
_.a([_.XI("dom-change"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Jw.prototype,"onDomChange",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Jw.prototype,"onDataChanged",null);_.a([_.A({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],Jw);
_.Z(Jw,"ytd-gaming-account-link-setting-renderer",function(){if(I9Z!==void 0)return I9Z;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return I9Z=W},{mode:1});var i3e;var mxL;var DT=function(){var W=_.I.apply(this,arguments)||this;W.isHeader=!1;W.getEndpointForm=function(){return iPN(W.data)};
return W};
_.v(DT,_.I);_.t=DT.prototype;_.t.triggerHintActions=function(){var W=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var l=_.bj(W.hostElement,"yt-get-opened-popups-action");!(l&&l.length===1?l[0]:[]).some(function(V){V=V.openPopupAction.popupType;return V==="SURVEY"||V==="MEALBAR"||V==="HINT"})&&W.data.hintActions&&W.guideOpened&&(_.og(W.hostElement,W.data.hintActions,W.hostElement),W.data.hintActions=void 0)})};
_.t.getBadgeIconType=function(W){return W&&W.liveBroadcasting?"live":null};
_.t.onDown=function(){this.interaction.triggerDown()};
_.t.onUp=function(){this.interaction.triggerUp()};
_.t.onTap=function(W){if(this.data.serviceEndpoint){var l;_.U("shorts_controller_retrieve_seedless_sequence_v2")&&((l=_.k(this.data.serviceEndpoint,_.N$))==null?void 0:l.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):INN(this.data.serviceEndpoint,this);W.preventDefault()}else this.data.navigationEndpoint&&!_.Cv(_.d_(W),this.hostElement,["A".toString()])&&_.FN(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.t.computeActive=function(W,l){if(!W)return!1;var V=W.navigationEndpoint;W=W.serviceEndpoint;if(!V&&!W||!l)return!1;if(V){W=(W=_.M$(l))&&["subscriptions","filteredsubscriptions"].includes(W);if(_.k(V,_.ZJ)&&_.k(l,_.ZJ)&&!W){var f=_.k(V,_.ZJ).browseId;l=_.k(l,_.ZJ).browseId;return f!==void 0&&l!==void 0&&(f===l||f==="VLWL"&&l==="FEwatch_later"||f==="FEwatch_later"&&l==="VLWL")}var r;V=(r=_.k(V.commandMetadata,_.XN))==null?void 0:r.url;l=(f=_.k(l.commandMetadata,_.XN))==null?void 0:f.url;return!(!V||
!l||V!==l&&V!==_.JY(l))}return this.isActiveShortsTab(W,l)};
_.t.isActiveShortsTab=function(W,l){l=!!_.k(l,_.N$)||!!_.k(l,_.Pm);return(!!_.k(W,_.N$)||!!_.k(W,_.Pm))&&l};
_.t.computeIsPrimary=function(W){return!!W};
_.rc.Object.defineProperties(DT.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 W=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&W)return W}}});
DT.prototype.onTap=DT.prototype.onTap;DT.prototype.onUp=DT.prototype.onUp;DT.prototype.onDown=DT.prototype.onDown;DT.prototype.triggerHintActions=DT.prototype.triggerHintActions;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],DT.prototype,"componentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],DT.prototype,"rendererBehavior",void 0);_.a([_.F(_.mB.YtTaskEmitterBehavior),_.z("design:type",Object)],DT.prototype,"taskEmitterBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],DT.prototype,"activeEndpoint",void 0);_.a([_.b(),_.z("design:type",Object)],DT.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Boolean)],DT.prototype,"guideOpened",void 0);_.a([_.b(),_.z("design:type",String)],DT.prototype,"type",void 0);_.a([_.Aa("yt-interaction"),_.z("design:type",Object)],DT.prototype,"interaction",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],DT.prototype,"isHeader",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("data","activeEndpoint"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],DT.prototype,"active",null);_.a([_.b({reflectToAttribute:!0}),_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],DT.prototype,"isPrimary",null);_.a([_.b({reflectToAttribute:!0}),_.G("data.count","data.presentationStyle","data.badges.*"),_.z("design:type",String),_.z("design:paramtypes",[])],DT.prototype,"lineEndStyle",null);
_.a([_.G("lineEndStyle"),_.z("design:type",Object),_.z("design:paramtypes",[])],DT.prototype,"ariaLabel",null);_.a([_.TS("data.hintActions","guideOpened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],DT.prototype,"triggerHintActions",null);_.a([_.XI("down"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],DT.prototype,"onDown",null);
_.a([_.XI("up"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],DT.prototype,"onUp",null);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],DT.prototype,"onTap",null);_.a([_.A({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],DT);
_.Z(DT,"ytd-guide-entry-renderer",function(){if(mxL!==void 0)return mxL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return mxL=W},{mode:1});var UO=function(){var W=_.I.apply(this,arguments)||this;W.userToggled=!1;return W};
_.v(UO,_.I);_.t=UO.prototype;_.t.getItemsPath=function(){return"data.expandableItems"};
_.t.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.t.onExpanderItemTapped=function(W){var l=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.U("kevlar_guide_expandable_items_killswitch")&&_.V9(this,function(){_.$s(l.expandableItems)});
W.preventDefault()};
_.t.onCollapserItemTapped=function(W){var l=this;this._setExpanded(!1);this.userToggled=!0;W.preventDefault();this.expandableItems&&!_.U("kevlar_guide_collapsible_items_killswitch")&&_.V9(this,function(){_.Ew(l.hostElement)})};
_.t.observeActiveEndpoint=function(){for(var W=this.activeEndpoint,l=this.data,V=this.expandableItems.children,f=0,r=V.length;f<r;f++)V[f].activeEndpoint=W;l&&l.autoExpandCommand&&W&&!this.userToggled&&(V=this.data.autoExpandCommand,l=!(!_.k(V,_.ZJ)||!_.k(W,_.ZJ)||_.k(V,_.ZJ).browseId!==_.k(W,_.ZJ).browseId),W=this.get("commandMetadata.webCommandMetadata.url",W),V=this.get("commandMetadata.webCommandMetadata.url",V),l=l||!!(W&&V&&W.includes(V)),this._setExpanded(l),l&&this.ytLazyListBehavior.fillRemainingListItems())};
UO.prototype.observeActiveEndpoint=UO.prototype.observeActiveEndpoint;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],UO.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.AM.YtLazyListBehavior),_.z("design:type",Object)],UO.prototype,"ytLazyListBehavior",void 0);_.a([_.Aa("#expandable-items"),_.z("design:type",HTMLElement)],UO.prototype,"expandableItems",void 0);
_.a([_.b(),_.z("design:type",Object)],UO.prototype,"data",void 0);_.a([_.b({readOnly:!0,reflectToAttribute:!0}),_.z("design:type",Boolean)],UO.prototype,"expanded",void 0);_.a([_.b({value:0}),_.z("design:type",Number)],UO.prototype,"initialCount",void 0);_.a([_.b(),_.z("design:type",Object)],UO.prototype,"activeEndpoint",void 0);_.a([_.TS("data","activeEndpoint","canShowMore"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],UO.prototype,"observeActiveEndpoint",null);
_.a([_.A({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],UO);
_.Z(UO,"ytd-guide-collapsible-entry-renderer",function(){if(i3e!==void 0)return i3e;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return i3e=W},{mode:_.bD("kevlar_poly_si_batch_j079")?1:2});var Xc4;var Ts2;var u2=function(){var W=_.I.apply(this,arguments)||this;W.allVideosCount=0;W.renderGuideEntry=!1;return W};
_.v(u2,_.I);u2.prototype.observeRenderEntry=function(){var W;this.renderGuideEntry=!((W=this.data)==null||!W.alwaysShow)||!!this.allVideosCount};
u2.prototype.observeRenderEntry=u2.prototype.observeRenderEntry;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],u2.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],u2.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],u2.prototype,"activeEndpoint",void 0);_.a([_.b({selector:_.aI8}),_.z("design:type",Object)],u2.prototype,"allVideosCount",void 0);
_.a([_.b(),_.z("design:type",Object)],u2.prototype,"renderGuideEntry",void 0);_.a([_.zS("allVideosCount","data.alwaysShow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],u2.prototype,"observeRenderEntry",null);_.a([_.A({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],u2);
_.Z(u2,"ytd-guide-downloads-entry-renderer",function(){if(Ts2===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);Ts2=W}W=Ts2;return W},{mode:1});var kE=function(){var W=_.I.apply(this,arguments)||this;W.youtab=_.U("web_enable_youtab");W.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return W};
_.v(kE,_.I);_.t=kE.prototype;_.t.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]]"}}}}}};
_.t.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var W=this.sectionItems.children,l=0,V=W.length;l<V;l++)W[l].activeEndpoint=this.activeEndpoint}};
_.t.handleAddToGuideSectionAction=function(W){var l=_.k(W,$qY);if(l&&this.data&&(W=l.items,l=l.handlerData,W&&l&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(l)>-1)){l=0;for(var V=W.length;l<V;l++)W[l].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,W[l])}};
_.t.handleRemoveFromGuideSectionAction=function(W){var l=_.k(W,WTw);l&&this.data&&(W=l.guideEntryId,l=l.handlerData,W&&l&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(l)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(W,this.data.sectionItems),this.removeFromCollapsedSection(W,this.data.sectionItems)))};
_.t.removeFromExpandedSection=function(W,l){W=this.getEntryIndexMatchingId(W,l);W!==-1&&this.splice("data.sectionItems",W,1)};
_.t.removeFromCollapsedSection=function(W,l){var V=l.findIndex(function(f){return!!_.k(f,dD1)});
V&&V!==-1&&l[V]&&_.k(l[V],dD1)&&(l=_.k(l[V],dD1).expandableItems)&&(W=this.getEntryIndexMatchingId(W,l),W!==-1&&this.splice("data.sectionItems."+V+".guideCollapsibleEntryRenderer.expandableItems",W,1))};
_.t.getEntryIndexMatchingId=function(W,l){var V=this;return l.findIndex(function(f){return V.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",f)===W})};
kE.prototype.activeEndpointChanged=kE.prototype.activeEndpointChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],kE.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],kE.prototype,"actionHandlerBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],kE.prototype,"ytRendererstamperBehavior",void 0);_.a([_.Aa("#section-items"),_.z("design:type",HTMLDivElement)],kE.prototype,"sectionItems",void 0);
_.a([_.Aa("#header-entry"),_.z("design:type",Object)],kE.prototype,"headerEntry",void 0);_.a([_.b(),_.z("design:type",Object)],kE.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],kE.prototype,"activeEndpoint",void 0);_.a([_.b(),_.z("design:type",Object)],kE.prototype,"youtab",void 0);_.a([_.TS("activeEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kE.prototype,"activeEndpointChanged",null);
_.a([_.A({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],kE);
_.Z(kE,"ytd-guide-collapsible-section-entry-renderer",function(){if(Xc4===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);Xc4=W}W=Xc4;return W},{mode:1});var wcw;var AhL;var vM=function(){var W=_.I.apply(this,arguments)||this;W.modernTypography=_.U("web_modern_typography");W.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 W};
_.v(vM,_.I);_.t=vM.prototype;
_.t.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}}}}};
_.t.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var W=_.bj(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);W&&W.length===1&&W[0]&&_.bj(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.t.handleResetChannelUnreadCountCommand=function(W){var l;(W=(l=_.k(W,V67))==null?void 0:l.channelId)&&this.data&&this.data.items&&(l=this.getPathToEntryMatchingId(W))&&(this.set(l+".guideEntryRenderer.count",0),this.set(l+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.t.handleResetSubscriptionsUnreadDotCommand=function(W){var l,V=(l=_.k(W,fP4))==null?void 0:l.targetId,f;V&&(f=this.data)!=null&&f.items&&(W=this.data.items.findIndex(function(r){var R;return((R=r.guideEntryRenderer)==null?void 0:R.targetId)===V}),W<0||this.set("data.items."+W+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.t.getPathToEntryMatchingId=function(W){if(this.data&&this.data.items){var l=this.getEntryIndexMatchingId(W,this.data.items);if(l>-1)return"data.items."+l;for(var V=0;V<this.data.items.length;V++)if(l=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[V]))if(l=this.getEntryIndexMatchingId(W,l),l>-1)return"data.items."+V+".guideCollapsibleEntryRenderer.expandableItems."+l}};
_.t.handleAddToGuideSectionAction=function(W){var l=this;if(_.k(W,$qY)){var V=_.k(W,$qY).items;W=_.k(W,$qY).handlerData;var f,r;if(V&&W&&((f=this.data)==null?void 0:(r=f.handlerDatas)==null?void 0:r.indexOf(W))>-1){V=V.filter(function(y){return(y=l.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",y))&&!l.isGuideItemPresent(y)});
var R;if(W==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((R=this.data)==null?0:R.items)&&(f=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),f>-1)){this.splice.apply(this,["data.items",f+1,0].concat(_.QK(V)));return}this.unshift.apply(this,["data.items"].concat(_.QK(V)))}}};
_.t.isGuideItemPresent=function(W){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(W,this.data.items)!==-1)return!0;var l=this.data.items.find(function(V){return!!V.guideCollapsibleEntryRenderer});
if((l==null?0:l.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(W,l.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.t.getEntryIndexMatchingId=function(W,l){var V=this;return l.findIndex(function(f){return V.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",f)===W})};
_.t.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(W,l){var V=this;return l.findIndex(function(f){return V.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",f)===W})};
_.t.handleRemoveFromGuideSectionAction=function(W){if(_.k(W,WTw)){var l=_.k(W,WTw).guideEntryId;W=_.k(W,WTw).handlerData;var V,f;l&&W&&((V=this.data)==null?void 0:(f=V.handlerDatas)==null?void 0:f.indexOf(W))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(l,this.data.items),this.removeFromCollapsedSection(l,this.data.items))}};
_.t.removeFromExpandedSection=function(W,l){W=this.getEntryIndexMatchingId(W,l);W!==-1&&this.splice("data.items",W,1)};
_.t.removeFromCollapsedSection=function(W,l){var V=l.findIndex(function(f){return!!f.guideCollapsibleEntryRenderer});
V!==-1&&(l=l[V].guideCollapsibleEntryRenderer.expandableItems)&&(W=this.getEntryIndexMatchingId(W,l),W!==-1&&this.splice("data.items."+V+".guideCollapsibleEntryRenderer.expandableItems",W,1))};
_.t.activeEndpointChanged=function(){for(var W=_.GS(this.hostElement).querySelector("#items").children,l=0,V=W.length;l<V;l++)W[l].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.t.guideOpenedChanged=function(){for(var W=_.GS(this.hostElement).querySelector("#items").children,l=0,V=W.length;l<V;l++)W[l].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
vM.prototype.guideOpenedChanged=vM.prototype.guideOpenedChanged;vM.prototype.activeEndpointChanged=vM.prototype.activeEndpointChanged;vM.prototype.persistentGuideChanged=vM.prototype.persistentGuideChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],vM.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],vM.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.AM.YtLazyListBehavior),_.z("design:type",Object)],vM.prototype,"ytLazyListBehavior",void 0);_.a([_.F(_.vZ.YtdGuideStateAwareBehavior),_.z("design:type",Object)],vM.prototype,"ytdGuideStateAwareBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],vM.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],vM.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],vM.prototype,"modernTypography",void 0);_.a([_.b(),_.z("design:type",String)],vM.prototype,"type",void 0);_.a([_.b({value:20}),_.z("design:type",Number)],vM.prototype,"initialCount",void 0);_.a([_.b({value:10}),_.z("design:type",Number)],vM.prototype,"targetFramerate",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],vM.prototype,"autoFill",void 0);_.a([_.b({value:50}),_.z("design:type",Number)],vM.prototype,"renderDelay",void 0);
_.a([_.TS("guidePersistentAndVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vM.prototype,"persistentGuideChanged",null);_.a([_.zS("activeEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vM.prototype,"activeEndpointChanged",null);_.a([_.zS("guideOpened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vM.prototype,"guideOpenedChanged",null);
_.a([_.A({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],vM);
_.Z(vM,"ytd-guide-section-renderer",function(){if(AhL!==void 0)return AhL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return AhL=W},{mode:_.bD("kevlar_poly_si_batch_j073")?1:2});var Qb5;var HM=function(){return _.I.apply(this,arguments)||this};
_.v(HM,_.I);_.rc.Object.defineProperties(HM.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],HM.prototype,"rendererBehaviors",void 0);_.a([_.b(),_.z("design:type",Object)],HM.prototype,"data",void 0);_.a([_.b(),_.G("data.signInButton.buttonRenderer.style"),_.z("design:type",Object),_.z("design:paramtypes",[])],HM.prototype,"alignByText",null);_.a([_.A({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],HM);
_.Z(HM,"ytd-guide-signin-promo-renderer",function(){if(Qb5===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);Qb5=W}W=Qb5;return W},{mode:1});var KL=function(){var W=_.I.apply(this,arguments)||this;W.showFooter=!1;return W};
_.v(KL,_.I);KL.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}}}}};
KL.prototype.attached=function(){var W=this,l;return _.g(function(V){if(V.nextAddress==1){l=_.tY().resolve(_.R0(_.kM));if(!l)return V.jumpTo(0);l.setGuideData(W.hostElement);return V.yield(0,3)}W.ytLazyListBehavior.initialCount=2;return V.return()})};
KL.prototype.onMouseExit=function(){_.U("web_guide_hover_expansion")&&_.bj(this.hostElement,"yt-guide-mouseleaved",[])};
KL.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
KL.prototype.dataChanged=KL.prototype.dataChanged;KL.prototype.onMouseExit=KL.prototype.onMouseExit;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],KL.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],KL.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.AM.YtLazyListBehavior),_.z("design:type",Object)],KL.prototype,"ytLazyListBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],KL.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],KL.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],KL.prototype,"showFooter",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],KL.prototype,"autoFill",void 0);_.a([_.XI("mouseleave"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KL.prototype,"onMouseExit",null);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],KL.prototype,"dataChanged",null);_.a([_.A({is:"ytd-guide-renderer",disableElementRegistration:!0})],KL);
_.Z(KL,"ytd-guide-renderer",function(){if(wcw!==void 0)return wcw;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return wcw=W},{mode:_.bD("kevlar_poly_si_batch_j073")?1:2});var Mcw;var F8=function(){var W=_.I.apply(this,arguments)||this;W.systemIcons=_.U("kevlar_system_icons");W.frostedGlass=_.U("web_frosted_glass");W.getEndpointForm=function(){return iPN(W.data)};
return W};
_.v(F8,_.I);_.t=F8.prototype;_.t.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.t.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.dE(this.data.formattedTitle))};
_.t.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.t.onDown=function(){this.interaction.triggerDown()};
_.t.onUp=function(){this.interaction.triggerUp()};
_.t.onTap=function(W){if(this.data.serviceEndpoint){var l;_.U("shorts_controller_retrieve_seedless_sequence_v2")&&((l=_.k(this.data.serviceEndpoint,_.N$))==null?void 0:l.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):INN(this.data.serviceEndpoint,this);W.preventDefault()}else{var V;((V=this.data)==null?0:V.navigationEndpoint)&&!_.Cv(_.d_(W),this.hostElement,["A".toString()])&&_.FN(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.t.computeActive=function(W,l){if(!W)return!1;var V=W.navigationEndpoint;W=W.serviceEndpoint;if(!V&&!W||!l)return!1;if(V){W=_.k(V,_.ZJ);var f=_.k(l,_.ZJ);if(W&&f)return W.browseId===f.browseId&&W.params===f.params;var r;V=(r=_.k(V.commandMetadata,_.XN))==null?void 0:r.url;var R;l=(R=_.k(l.commandMetadata,_.XN))==null?void 0:R.url;return!(!V||!l||V!==l&&V!==_.JY(l))}return this.isActiveShortsTab(W,l)};
_.t.isActiveShortsTab=function(W,l){l=!!_.k(l,_.N$)||!!_.k(l,_.Pm);return(!!_.k(W,_.N$)||!!_.k(W,_.Pm))&&l};
_.t.computeTitle=function(W,l){return l?"":_.dE(W)};
_.rc.Object.defineProperties(F8.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
F8.prototype.onTap=F8.prototype.onTap;F8.prototype.onUp=F8.prototype.onUp;F8.prototype.onDown=F8.prototype.onDown;F8.prototype.onActiveStateChange=F8.prototype.onActiveStateChange;F8.prototype.dataChanged=F8.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],F8.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],F8.prototype,"ytComponentBehavior",void 0);
_.a([_.F(_.VO),_.z("design:type",Object)],F8.prototype,"ironButtonState",void 0);_.a([_.b(),_.z("design:type",Object)],F8.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],F8.prototype,"activeEndpoint",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],F8.prototype,"noLabels",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.z("design:type",Boolean)],F8.prototype,"isActive",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],F8.prototype,"systemIcons",void 0);_.a([_.Aa("yt-interaction"),_.z("design:type",Object)],F8.prototype,"interaction",void 0);_.a([_.G("isActive"),_.z("design:type",Object),_.z("design:paramtypes",[])],F8.prototype,"ariaSelected",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],F8.prototype,"frostedGlass",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],F8.prototype,"dataChanged",null);_.a([_.TS("isActive"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],F8.prototype,"onActiveStateChange",null);_.a([_.XI("down"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],F8.prototype,"onDown",null);
_.a([_.XI("up"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],F8.prototype,"onUp",null);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],F8.prototype,"onTap",null);_.a([_.A({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],F8);
_.Z(F8,"ytd-mini-guide-entry-renderer",function(){if(Mcw!==void 0)return Mcw;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Mcw=W},{mode:_.bD("kevlar_poly_si_batch_j063")?1:2});var Z31;var GV=function(){var W=_.I.apply(this,arguments)||this;W.allVideosCount=0;W.noLabels=_.U("kevlar_mini_guide_no_labels");W.frostedGlass=_.U("web_frosted_glass");return W};
_.v(GV,_.I);_.t=GV.prototype;_.t.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.t.onMouseEnter=function(){_.U("web_guide_hover_expansion")&&_.bj(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.t.visibleChanged=function(){if(this.visible&&!this.data){var W=_.tY().resolve(_.R0(_.kM));W&&W.setGuideData(this.hostElement)}};
_.t.dataChanged=function(){var W=[],l;if((l=this.data)!=null&&l.items){l=_.L(this.data.items);for(var V=l.next();!V.done;V=l.next()){V=V.value;var f=void 0;if((f=V.guideSectionRenderer)==null?0:f.items)for(f=void 0,V=_.L((f=V.guideSectionRenderer)==null?void 0:f.items),f=V.next();!f.done;f=V.next())if(f=f.value,f.guideEntryRenderer)f=f.guideEntryRenderer,f.isPrimary&&W.push({guideEntryRenderer:f});else if(f.guideCollapsibleSectionEntryRenderer){var r=void 0;((r=_.k(f.guideCollapsibleSectionEntryRenderer.headerEntry,
M8))==null?0:r.isPrimary)&&W.push({guideEntryRenderer:_.k(f.guideCollapsibleSectionEntryRenderer.headerEntry,M8)});if(f=f.guideCollapsibleSectionEntryRenderer.sectionItems)for(f=_.L(f),r=f.next();!r.done;r=f.next()){var R=r.value;r=_.k(R,JP4);var y=void 0;((y=_.k(R,M8))==null?0:y.isPrimary)?W.push({guideEntryRenderer:_.k(R,M8)}):r&&(R=void 0,_.k((R=r)==null?void 0:R.entryRenderer,M8)&&(r.alwaysShow||this.allVideosCount)&&W.push({guideEntryRenderer:_.k(r.entryRenderer,M8)}))}}}}this.miniGuideItems=
W};
_.t.activeEndpointChanged=function(){for(var W=this.items.children,l=0;l<W.length;l++)W[l].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.t.registerWithViewTransitionManager=function(){var W=this;_.pS(_.w8,function(){var l=_.tY().resolve(_.R0(_.$U));if(l&&l.isAnyTransitionEnabled){var V={};l.viewTransitionCoordinator.registerElement(W.hostElement,(V.slide="mini-guide-page-transition",V))}})};
GV.prototype.activeEndpointChanged=GV.prototype.activeEndpointChanged;GV.prototype.dataChanged=GV.prototype.dataChanged;GV.prototype.visibleChanged=GV.prototype.visibleChanged;GV.prototype.onMouseEnter=GV.prototype.onMouseEnter;_.a([_.F(_.dx),_.z("design:type",Object)],GV.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],GV.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],GV.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.vZ.YtdGuideStateAwareBehavior),_.z("design:type",Object)],GV.prototype,"ytdGuideStateAwareBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],GV.prototype,"ytComponentBehavior",void 0);_.a([_.Aa("#items"),_.z("design:type",Object)],GV.prototype,"items",void 0);_.a([_.b(),_.z("design:type",Object)],GV.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Boolean)],GV.prototype,"visible",void 0);_.a([_.b(),_.z("design:type",Object)],GV.prototype,"miniGuideItems",void 0);_.a([_.b({selector:_.aI8}),_.z("design:type",Object)],GV.prototype,"allVideosCount",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],GV.prototype,"noLabels",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],GV.prototype,"frostedGlass",void 0);
_.a([_.XI("mouseenter"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GV.prototype,"onMouseEnter",null);_.a([_.zS("visible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GV.prototype,"visibleChanged",null);_.a([_.zS("data","allVideosCount"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GV.prototype,"dataChanged",null);
_.a([_.zS("activeEndpoint"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],GV.prototype,"activeEndpointChanged",null);_.a([_.A({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],GV);
_.Z(GV,"ytd-mini-guide-renderer",function(){if(Z31===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);Z31=W}W=Z31;return W},{mode:1});var O34;var a97=/^[\x00-\x7F]+$/,b2=function(){var W=_.I.apply(this,arguments)||this;W.darkerDarkTheme=_.U("web_darker_dark_theme");return W};
_.v(b2,_.I);_.rc.Object.defineProperties(b2.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var W,l=_.dE((W=this.data)==null?void 0:W.handle);if(l)return _.Bl("@"+l)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var W=_.dE(this.displayHandle),l,V=_.dE((l=this.data)==null?void 0:l.handleUrl);if(W&&V)return _.Bl(V+W)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var W=_.dE(this.displayHandle);if(W&&!a97.test(W)){var l;return(l=this.data)==null?void 0:l.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var W=_.dE(this.displayHandleUrl),l,V=_.dE((l=this.data)==null?void 0:l.urlInfoText);if(W&&V)return _.Bl(V+" "+W)}}});
_.a([_.b(),_.z("design:type",Object)],b2.prototype,"data",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],b2.prototype,"displayHandle",null);_.a([_.G("displayHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],b2.prototype,"displayHandleUrl",null);_.a([_.G("displayHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],b2.prototype,"warningText",null);
_.a([_.G("displayHandleUrl"),_.z("design:type",Object),_.z("design:paramtypes",[])],b2.prototype,"urlInfoTextWithUrl",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],b2.prototype,"darkerDarkTheme",void 0);_.a([_.A({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],b2);
_.Z(b2,"ytd-handles-claiming-confirm-dialog-content",function(){if(O34!==void 0)return O34;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return O34=W},{mode:1});var zxN;var pL=function(){var W=_.I.apply(this,arguments)||this;W.okButtonOverride={style:"mono",type:"outline",size:"M"};return W};
_.v(pL,_.I);pL.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
pL.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],pL.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],pL.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],pL.prototype,"okButtonOverride",void 0);_.a([_.b(),_.z("design:type",Object)],pL.prototype,"data",void 0);_.a([_.A({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],pL);
_.Z(pL,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(zxN!==void 0)return zxN;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return zxN=W},{mode:1});var Ns1;var YyH=/^[\x00-\x7F]+$/,oc=function(){var W=_.I.apply(this,arguments)||this;W.isLoading=!1;W.darkerDarkTheme=_.U("web_darker_dark_theme");return W};
_.v(oc,_.I);oc.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var W;this.selectedHandle=(W=this.handleInput)==null?void 0:W.value;this.onSelectedHandleChanged(this.selectedHandle);_.bj(this.hostElement,"yt-refit-popups-action")}};
_.rc.Object.defineProperties(oc.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Bl("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Bl(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!YyH.test(this.selectedHandle)){var W;return(W=this.data)==null?void 0:W.warningText}}}});
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],oc.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],oc.prototype,"data",void 0);_.a([_.b(),_.z("design:type",String)],oc.prototype,"selectedHandle",void 0);_.a([_.b(),_.z("design:type",Object)],oc.prototype,"isLoading",void 0);_.a([_.b(),_.z("design:type",Function)],oc.prototype,"onSelectedHandleChanged",void 0);_.a([_.Aa("#channel-handle-input"),_.z("design:type",Object)],oc.prototype,"handleInput",void 0);
_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],oc.prototype,"handleUrlPrefix",null);_.a([_.G("selectedHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],oc.prototype,"displayHandle",null);_.a([_.G("selectedHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],oc.prototype,"displayHandleUrl",null);_.a([_.G("selectedHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],oc.prototype,"warningText",null);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],oc.prototype,"darkerDarkTheme",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],oc.prototype,"ytRendererBehavior",void 0);_.a([_.A({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],oc);
_.Z(oc,"ytd-handles-claiming-edit-dialog-content",function(){if(Ns1!==void 0)return Ns1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Ns1=W},{mode:1});var xxL;var jf=function(){var W=_.I.apply(this,arguments)||this;W.actionButtonOverride={style:"mono",type:"filled",size:"M"};W.cancelButtonOverride={style:"mono",type:"text",size:"M"};W.selectButtonDisabled=!1;W.isLoading=!1;W.hasSelectedHandleEventListener=!1;W.selectedHandleChanged=function(l){W.selectedHandle=l};
return W};
_.v(jf,_.I);_.t=jf.prototype;_.t.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.t.onDataChanged=function(){var W,l;this.selectedHandle=(l=_.k((W=this.data)==null?void 0:W.inputField,elL))==null?void 0:l.handle};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.onCancel=function(){this.selectedHandle="";_.Gt(this.hostElement,"yt-close-popup-action",[this.is])};
_.t.onSelectHandle=function(){var W=this;if(this.selectedHandle!==void 0){var l;((l=this.data)==null?void 0:l.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(V,f){if(f.newHandleUpdateStatus!==void 0&&f.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&f.newHandleUpdateStatus.errorMessage)_.Lh(W.hostElement,_.dE(f.newHandleUpdateStatus.errorMessage)),
W.isLoading=!1;else{var r;if((r=W.data)==null?0:r.onChannelUpdateSuccess){V=W.data.onChannelUpdateSuccess;var R,y;if(f=(R=_.k(V,_.Ss))==null?void 0:(y=R.popup)==null?void 0:y.handlesClaimingConfirmDialogRenderer)f.handle=_.Bl(W.selectedHandle);W.ytComponentBehavior.resolveCommand(V);_.Gt(W.hostElement,"yt-close-popup-action",[W.is])}else W.isLoading=!1}},
onServerError:function(){var V;W.content&&((V=W.content)==null?0:V.handleInput)&&W.content.handleInput.validate();W.isLoading=!1;_.Lh(W.hostElement,_.wg("TRY_AGAIN_LATER"))}}}))}};
_.t.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
jf.prototype.onDataChanged=jf.prototype.onDataChanged;jf.prototype.onSelectedHandleChanged=jf.prototype.onSelectedHandleChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],jf.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],jf.prototype,"actionButtonOverride",void 0);_.a([_.b(),_.z("design:type",Object)],jf.prototype,"cancelButtonOverride",void 0);_.a([_.b(),_.z("design:type",Object)],jf.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",String)],jf.prototype,"selectedHandle",void 0);_.a([_.b(),_.z("design:type",Object)],jf.prototype,"selectButtonDisabled",void 0);_.a([_.b(),_.z("design:type",Object)],jf.prototype,"isLoading",void 0);_.a([_.b(),_.z("design:type",Object)],jf.prototype,"hasSelectedHandleEventListener",void 0);_.a([_.b(),_.z("design:type",Object)],jf.prototype,"handleInput",void 0);
_.a([_.TS("selectedHandle"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jf.prototype,"onSelectedHandleChanged",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],jf.prototype,"onDataChanged",null);_.a([_.Aa("ytd-handles-claiming-edit-dialog-content"),_.z("design:type",Object)],jf.prototype,"content",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],jf.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],jf.prototype,"ytRendererstamperBehavior",void 0);_.a([_.A({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],jf);
_.Z(jf,"ytd-handles-claiming-edit-dialog-renderer",function(){if(xxL!==void 0)return xxL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return xxL=W},{mode:1});var exs;var Ic=function(){return _.I.apply(this,arguments)||this};
_.v(Ic,_.I);_.rc.Object.defineProperties(Ic.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.handle){var l;return _.Bl("@"+_.dE((l=this.data)==null?void 0:l.handle))}}}});
_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Ic.prototype,"formattedHandle",null);_.a([_.b(),_.z("design:type",Object)],Ic.prototype,"data",void 0);_.a([_.A({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],Ic);
_.Z(Ic,"ytd-handles-claiming-radio-option-renderer",function(){if(exs!==void 0)return exs;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return exs=W},{mode:1});var qyL;var hx5=/^[\x00-\x7F]+$/,i2=function(){var W=_.I.apply(this,arguments)||this;W.initialRadioIndex="-1";W.isLoading=!1;W.darkerDarkTheme=_.U("web_darker_dark_theme");W.maybeSubmitFeedback=function(){W.feedbackSurveyRenderer.submitSurvey()};
return W};
_.v(i2,_.I);i2.prototype.updateSelectedHandleIndexFromBinding=function(W){this.selectedRadioIndex=+W.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(W)};
i2.prototype.selectedHandleChanged=function(W){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var l;this.selectedHandle=(l=this.handleInput)==null?void 0:l.value;this.onSelectedHandleChanged(W)}};
_.rc.Object.defineProperties(i2.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var W;return this.ytRendererBehavior.getSimpleString((W=this.data)==null?void 0:W.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Bl("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Bl(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!hx5.test(this.selectedHandle)){var W;return(W=this.data)==null?void 0:W.warningText}}}});
_.a([_.b(),_.z("design:type",Object)],i2.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],i2.prototype,"initialRadioIndex",void 0);_.a([_.b(),_.z("design:type",Number)],i2.prototype,"selectedRadioIndex",void 0);_.a([_.b(),_.z("design:type",String)],i2.prototype,"selectedHandle",void 0);_.a([_.b(),_.z("design:type",Object)],i2.prototype,"isLoading",void 0);_.a([_.b(),_.z("design:type",Function)],i2.prototype,"onSelectedHandleChanged",void 0);
_.a([_.b(),_.z("design:type",Function)],i2.prototype,"onSelectedRadioIndexChanged",void 0);_.a([_.Aa("#channel-handle-input"),_.z("design:type",Object)],i2.prototype,"handleInput",void 0);_.a([_.Aa("ytd-feedback-survey-renderer"),_.z("design:type",Object)],i2.prototype,"feedbackSurveyRenderer",void 0);_.a([_.G("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],i2.prototype,"radioButtonLength",null);
_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],i2.prototype,"handleUrlPrefix",null);_.a([_.G("selectedHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],i2.prototype,"displayHandle",null);_.a([_.G("selectedHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],i2.prototype,"displayHandleUrl",null);_.a([_.G("selectedHandle"),_.z("design:type",Object),_.z("design:paramtypes",[])],i2.prototype,"warningText",null);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],i2.prototype,"darkerDarkTheme",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],i2.prototype,"ytRendererBehavior",void 0);_.a([_.A({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],i2);
_.Z(i2,"ytd-handles-claiming-select-dialog-content",function(){if(qyL!==void 0)return qyL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return qyL=W},{mode:1});var Sy7;var mc=function(){var W=_.I.apply(this,arguments)||this;W.actionButtonOverride={style:"mono",type:"filled",size:"M"};W.cancelButtonOverride={style:"mono",type:"text",size:"M"};W.initialRadioIndex="-1";W.selectButtonDisabled=!1;W.isLoading=!1;W.selectedRadioIndexChanged=function(l){W.selectedRadioIndex=Number(l.detail.value)};
W.selectedHandleChanged=function(l){W.selectedHandle=l.detail.value};
W.darkerDarkTheme=_.U("web_darker_dark_theme");return W};
_.v(mc,_.I);_.t=mc.prototype;_.t.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.t.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.t.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.bj(this.hostElement,"yt-refit-popups-action")};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.Gt(this.hostElement,"yt-close-popup-action",[this.is])};
_.t.onSelectHandle=function(){var W=this;if(this.selectedHandle!==void 0){var l;((l=this.data)==null?void 0:l.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(V,f){if(f.newHandleUpdateStatus!==void 0&&f.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&f.newHandleUpdateStatus.errorMessage)_.Lh(W.hostElement,_.dE(f.newHandleUpdateStatus.errorMessage)),
W.isLoading=!1;else{var r;if((r=W.data)==null?0:r.onChannelUpdateSuccess){V=W.data.onChannelUpdateSuccess;f=_.k(V,_.Ss);var R;if(f==null?0:(R=f.popup)==null?0:R.handlesClaimingConfirmDialogRenderer)f.popup.handlesClaimingConfirmDialogRenderer.handle=_.Bl(W.selectedHandle);W.ytComponentBehavior.resolveCommand(V);_.Gt(W.hostElement,"yt-close-popup-action",[W.is])}else W.isLoading=!1}},
onServerError:function(){if(W.selectedRadioIndex===W.radioButtonLength){var V;W.content&&((V=W.content)==null?0:V.handleInput)&&W.content.handleInput.validate()}W.isLoading=!1;_.Lh(W.hostElement,_.wg("TRY_AGAIN_LATER"))}}}))}};
_.t.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var W,l;this.selectedHandle=(W=this.content)==null?void 0:(l=W.handleInput)==null?void 0:l.value}else this.selectedRadioIndex>=0&&((W=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(W==null?void 0:W.handle):this.selectedHandle=void 0)};
_.t.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.t.getRadioItem=function(W){if(this.radioButtonLength>W&&W>=0)return _.k(this.data.radioButton[W],gIZ)};
_.rc.Object.defineProperties(mc.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.radioButton)||[]).length}}});
mc.prototype.onSelectedHandleChanged=mc.prototype.onSelectedHandleChanged;mc.prototype.onSelectedHandleIndexChanged=mc.prototype.onSelectedHandleIndexChanged;mc.prototype.onDataChanged=mc.prototype.onDataChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],mc.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],mc.prototype,"actionButtonOverride",void 0);_.a([_.b(),_.z("design:type",Object)],mc.prototype,"cancelButtonOverride",void 0);
_.a([_.b(),_.z("design:type",Object)],mc.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],mc.prototype,"initialRadioIndex",void 0);_.a([_.b(),_.z("design:type",Number)],mc.prototype,"selectedRadioIndex",void 0);_.a([_.b(),_.z("design:type",String)],mc.prototype,"selectedHandle",void 0);_.a([_.b(),_.z("design:type",Object)],mc.prototype,"selectButtonDisabled",void 0);_.a([_.b(),_.z("design:type",Object)],mc.prototype,"isLoading",void 0);
_.a([_.G("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],mc.prototype,"radioButtonLength",null);_.a([_.Aa("ytd-handles-claiming-select-dialog-content"),_.z("design:type",Object)],mc.prototype,"content",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mc.prototype,"onDataChanged",null);
_.a([_.TS("selectedRadioIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mc.prototype,"onSelectedHandleIndexChanged",null);_.a([_.TS("selectedHandle"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],mc.prototype,"onSelectedHandleChanged",null);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],mc.prototype,"darkerDarkTheme",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],mc.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],mc.prototype,"ytRendererstamperBehavior",void 0);_.a([_.A({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],mc);
_.Z(mc,"ytd-handles-claiming-select-dialog-renderer",function(){if(Sy7!==void 0)return Sy7;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Sy7=W},{mode:1});var EUN;var $xw;var X8=function(){return _.I.apply(this,arguments)||this};
_.v(X8,_.I);X8.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],X8.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],X8.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],X8.prototype,"data",void 0);_.a([_.A({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],X8);
_.Z(X8,"ytd-hotkey-dialog-section-option-renderer",function(){if($xw!==void 0)return $xw;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return $xw=W},{mode:1});var WI4;var TV=function(){return _.I.apply(this,arguments)||this};
_.v(TV,_.I);TV.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],TV.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],TV.prototype,"data",void 0);_.a([_.A({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],TV);
_.Z(TV,"ytd-hotkey-dialog-section-renderer",function(){if(WI4!==void 0)return WI4;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return WI4=W},{mode:1});var wB=function(){var W=_.I.apply(this,arguments)||this;W.darkerDarkTheme=_.U("web_darker_dark_theme");return W};
_.v(wB,_.I);wB.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],wB.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],wB.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],wB.prototype,"darkerDarkTheme",void 0);_.a([_.A({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],wB);
_.Z(wB,"ytd-hotkey-dialog-content",function(){if(EUN!==void 0)return EUN;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return EUN=W},{mode:1});var lwe;var Aw=function(){return _.I.apply(this,arguments)||this};
_.v(Aw,_.I);Aw.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var W=document.querySelector("ytd-hotkey-dialog-content #scrollable");W&&(W.dialogElement=this.hostElement.parentElement)};
Aw.prototype.onCloseTap=function(){_.Gt(this.hostElement,"yt-close-popup-action")};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Aw.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Aw.prototype,"data",void 0);_.a([_.A({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Aw);
_.Z(Aw,"ytd-hotkey-dialog-renderer",function(){if(lwe!==void 0)return lwe;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return lwe=W},{mode:1});var Vj2;var Qc=function(){return _.I.apply(this,arguments)||this};
_.v(Qc,_.I);Qc.prototype.onYtServiceRequestError=function(){if(this.blocked){var W;var l=(W=this.data)==null?void 0:W.defaultServiceEndpoint}else{var V;l=(V=this.data)==null?void 0:V.toggledServiceEndpoint}var f;(l=(f=_.k(l,_.PZ9))==null?void 0:f.onFailureAction)&&this.ytComponentBehavior.resolveCommand(l);this.updateBlockState(!this.blocked)};
Qc.prototype.onYtToggleButton=function(W){this.updateBlockState(W.detail.toggled)};
Qc.prototype.updateBlockState=function(W){if(W!==this.blocked){var l=this.blockedEntityKey;l&&this.ytdReduxBehavior.dispatch(_.MB("blockStateEntity",l,{key:l,blocked:W}));this.set("data.isToggled",W)}};
_.rc.Object.defineProperties(Qc.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)}}});
Qc.prototype.onYtToggleButton=Qc.prototype.onYtToggleButton;Qc.prototype.onYtServiceRequestError=Qc.prototype.onYtServiceRequestError;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Qc.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],Qc.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Qc.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Qc.prototype,"blockedEntityKey",void 0);
_.a([_.b({selectorArgs:["blockedEntityKey"],selector:function(W,l){return _.mL(W.entities,"blockStateEntity",l)}}),
_.z("design:type",Object)],Qc.prototype,"blockStateEntity",void 0);_.a([_.G("data","blockStateEntity"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Qc.prototype,"blocked",null);_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Qc.prototype,"onYtServiceRequestError",null);
_.a([_.XI("yt-toggle-button"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],Qc.prototype,"onYtToggleButton",null);_.a([_.A({is:"ytd-block-button",disableElementRegistration:!0})],Qc);
_.Z(Qc,"ytd-block-button",function(){if(Vj2!==void 0)return Vj2;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Vj2=W},
{mode:1});var fwL;var rQY;var MK=function(){return _.I.apply(this,arguments)||this};
_.v(MK,_.I);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],MK.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],MK.prototype,"data",void 0);_.a([_.A({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],MK);
_.Z(MK,"ytd-kids-blocklist-picker-item-renderer",function(){if(rQY!==void 0)return rQY;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return rQY=W},{mode:1});var ZT=function(){return _.I.apply(this,arguments)||this};
_.v(ZT,_.I);ZT.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ZT.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ZT.prototype,"data",void 0);_.a([_.A({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],ZT);
_.Z(ZT,"ytd-kids-blocklist-picker-content",function(){if(fwL!==void 0)return fwL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return fwL=
W},{mode:_.bD("kevlar_poly_si_batch_j025")?1:2});var Rz5;var OO=function(){var W=_.I.apply(this,arguments)||this;W.hasAnyRequestSucceeded=!1;W.hasAnyRequestFailed=!1;W.numPendingRequests=0;return W};
_.v(OO,_.I);_.t=OO.prototype;_.t.attached=function(){this.hostElement.setAttribute("dialog","")};
_.t.onDoneButtonTap=function(){_.Gt(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.t.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.t.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.t.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.t.onPopupClosed=function(W){var l,V;if(((l=W.detail)==null?void 0:(V=l.popup)==null?void 0:V.is)==="tp-yt-paper-dialog"){var f;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((f=this.data)==null?0:f.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.u0(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
OO.prototype.onPopupClosed=OO.prototype.onPopupClosed;OO.prototype.onYtServiceRequestError=OO.prototype.onYtServiceRequestError;OO.prototype.onYtServiceRequestCompleted=OO.prototype.onYtServiceRequestCompleted;OO.prototype.onYtServiceRequestSent=OO.prototype.onYtServiceRequestSent;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],OO.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],OO.prototype,"data",void 0);_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OO.prototype,"onYtServiceRequestSent",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OO.prototype,"onYtServiceRequestCompleted",null);
_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],OO.prototype,"onYtServiceRequestError",null);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],OO.prototype,"onPopupClosed",null);_.a([_.A({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],OO);
_.Z(OO,"ytd-kids-blocklist-picker-renderer",function(){if(Rz5!==void 0)return Rz5;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Rz5=W},{mode:1});var tjY;var sT1;var ac=function(){return _.I.apply(this,arguments)||this};
_.v(ac,_.I);ac.prototype.setTip=function(W){var l=this;this.data&&(this.tip=WO4(EOw.getInstance(),W,this.data),_.V9(this,function(){_.FN(l.hostElement,"yt-refit")}))};
ac.prototype.clearTip=function(){this.tip=void 0};
ac.prototype.computeHidden=function(W){return!W};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ac.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.z("design:type",Boolean)],ac.prototype,"hidden",void 0);_.a([_.b(),_.z("design:type",Object)],ac.prototype,"tip",void 0);_.a([_.A({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],ac);
_.Z(ac,"ytd-menu-popup-tip-renderer",function(){if(sT1!==void 0)return sT1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);
return sT1=W},{mode:1});var LIw;var zV=function(){var W=_.I.apply(this,arguments)||this;W.useIcons=!1;W.systemIcons=_.U("kevlar_system_icons");W.useListItemStyles=_.U("web_list_item_style_for_menu_items");return W};
_.v(zV,_.I);_.t=zV.prototype;_.t.onFocus=function(){var W;(W=_.GS(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.t.onTap=function(){var W=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(W&&_.k(W,_.Ig))this.componentBehavior.resolveCommand(W),this.updateToggledStateInEntity();else if(W){this.componentBehavior.resolveCommand(W)||_.tY().resolve(_.s6).resolveCommand(W,{form:{element:this.hostElement}});var l;((l=_.k(W,_.mA))==null?void 0:l.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.t.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.t.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.t.updateToggledStateInEntity=function(){var W=this.data.toggleMenuServiceItemEntityKey,l=!this.data.isToggled;W&&this.ytdReduxBehavior.dispatch(_.MB("toggleMenuServiceItemEntity",W,{key:W,isToggled:l}))};
_.t.computeIcon=function(W,l,V){return(W=W?V:l)&&W.iconType?_.IJ(W.iconType):""};
_.t.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.t.isIconActive=function(W){return!_.U("toggle_menu_active_icon_killswitch")&&W};
_.rc.Object.defineProperties(zV.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return((W=this.data)==null?0:W.isToggled)?(l=this.data)==null?void 0:l.toggledText:(V=this.data)==null?void 0:V.defaultText}}});
zV.prototype.toggledStateEntityChanged=zV.prototype.toggledStateEntityChanged;zV.prototype.onYtServiceRequestCompleted=zV.prototype.onYtServiceRequestCompleted;zV.prototype.onTap=zV.prototype.onTap;zV.prototype.onFocus=zV.prototype.onFocus;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],zV.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],zV.prototype,"componentBehavior",void 0);
_.a([_.F(_.dx),_.z("design:type",Object)],zV.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],zV.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],zV.prototype,"useIcons",void 0);_.a([_.b({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.z("design:type",String)],zV.prototype,"icon",void 0);
_.a([_.b({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(W,l){return _.mL(W.entities,"toggleMenuServiceItemEntity",l)}}),
_.z("design:type",Object)],zV.prototype,"toggleMenuServiceItemEntity",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],zV.prototype,"systemIcons",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],zV.prototype,"useListItemStyles",void 0);_.a([_.XI("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zV.prototype,"onFocus",null);
_.a([_.G("data.isToggled"),_.z("design:type",Object),_.z("design:paramtypes",[])],zV.prototype,"toggleButtonText",null);_.a([_.XI("tap"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zV.prototype,"onTap",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zV.prototype,"onYtServiceRequestCompleted",null);
_.a([_.TS("toggleMenuServiceItemEntity.isToggled","data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],zV.prototype,"toggledStateEntityChanged",null);_.a([_.A({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],zV);
_.Z(zV,"ytd-toggle-menu-service-item-renderer",function(){if(LIw!==void 0)return LIw;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return LIw=W},{mode:1});var yQc;var NK=function(){return _.I.apply(this,arguments)||this};
_.v(NK,_.I);NK.prototype.onFocus=function(){var W;(W=_.GS(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.rc.Object.defineProperties(NK.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.NI(this.data.iconUrl)}}});
NK.prototype.onFocus=NK.prototype.onFocus;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],NK.prototype,"rendererBehavior",void 0);_.a([_.F(_.qq.YtEndpointBehavior),_.z("design:type",Object)],NK.prototype,"ytEndpointBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],NK.prototype,"data",void 0);_.a([_.XI("focus"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],NK.prototype,"onFocus",null);
_.a([_.G("data.iconUrl"),_.z("design:type",Object),_.z("design:paramtypes",[])],NK.prototype,"imageSource",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],NK);
_.Z(NK,"ytd-menu-custom-icon-item-renderer",function(){if(yQc!==void 0)return yQc;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return yQc=W},{mode:_.bD("kevlar_poly_si_batch_j028")?1:2});_.HI(_.dR,"yt-list-item-view-model",{props:{data:_.pA,isMenuItem:_.pA,isCompact:_.pA,onTap:_.kh,trailingAccessory:_.kh,hideSelectionTextChevron:_.pA,disabled:_.pA,inPopup:_.pA,disableHorizontalPadding:_.pA,isOverlay:_.pA,isToggled:_.pA,ariaLabel:_.pA,ariaPressed:_.pA}});var YE=function(){var W=_.I.apply(this,arguments)||this;W.disableBackdropFilter=_.U("web_disable_backdrop_filter");return W};
_.v(YE,_.I);_.t=YE.prototype;
_.t.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"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.t.computeAriaLabel=function(W){return W};
_.t.onPopupOpened=function(){this.items.selected=0;for(var W=_.L(_.GS(this.items).children),l=W.next();!l.done;l=W.next())l.value.popupPositionTarget=this.positionTarget;if(W=this.popupTip||void 0)W.setTip(this.source||""),this.source=void 0;this.veData&&(W=_.Wh())&&_.Py(W,[this.veData])};
_.t.onPopupClosed=function(){var W=this.popupTip||void 0;W&&W.clearTip()};
_.t.onIronActivate=function(W){this.shouldPersist(W)||_.Gt(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(W=_.Wh())&&_.C0(W,this.veData)};
_.t.shouldPersist=function(W){var l,V;if(((l=W.detail)==null?void 0:l.selected)===void 0||(V=this.data)==null||!V.items)return!1;var f,r;return!((r=(f=this.data.items[W.detail.selected])==null?void 0:f.toggleMenuServiceItemRenderer)==null||!r.persistentOnMenuPopup)};
_.t.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(W){return W.menuNavigationItemRenderer?!!W.menuNavigationItemRenderer.icon:W.menuServiceItemRenderer?!!W.menuServiceItemRenderer.icon:W.menuConditionalServiceItemRenderer?!!W.menuConditionalServiceItemRenderer.icon:W.menuConditionalNavigationItemRenderer?!!W.menuConditionalNavigationItemRenderer.icon:W.toggleMenuServiceItemRenderer?!!W.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
YE.prototype.onPopupClosed=YE.prototype.onPopupClosed;YE.prototype.onPopupOpened=YE.prototype.onPopupOpened;_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],YE.prototype,"ytEventForwardingBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],YE.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],YE.prototype,"ytRendererBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],YE.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],YE.prototype,"veData",void 0);_.a([_.b({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.z("design:type",String)],YE.prototype,"ariaLabel",void 0);_.a([_.b({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],YE.prototype,"useIcons",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],YE.prototype,"disableBackdropFilter",void 0);_.a([_.Aa("#items"),_.z("design:type",Object)],YE.prototype,"items",void 0);_.a([_.Aa("ytd-menu-popup-tip-renderer"),_.z("design:type",Object)],YE.prototype,"popupTip",void 0);_.a([_.XI("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YE.prototype,"onPopupOpened",null);
_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],YE.prototype,"onPopupClosed",null);_.a([_.A({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],YE);
_.Z(YE,"ytd-menu-popup-renderer",function(){if(tjY!==void 0)return tjY;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return tjY=W},{mode:1});var gx2;var P1s=_.Q(function(W){W=_.Dd(W,{icon:void 0});var l=W.data;W=W.icon;var V=function(){return l().iconBadgeText},f={},r=_.If("yt-spec-icon-badge-shape",function(){a:switch(l().iconBadgeType){case "notification":var R="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":R="yt-spec-icon-badge-shape--type-cart";break a;default:R=""}return R},function(){a:switch(l().iconBadgeStyle){case "overlay":var R="yt-spec-icon-badge-shape--style-overlay";
break a;default:R=""}return R},(f["yt-spec-icon-badge-shape--text-size-small"]=function(){var R=V();
return!!((R==null?0:R.length)&&R.length>2)},f));
return _.C("yt-icon-badge-shape",null,_.C(_.c,{cond:W,then:function(R){return _.C("div",{class:r},_.C("div",{class:"yt-spec-icon-badge-shape__icon"},_.C(_.wN,{icon:R})),_.C(_.c,{cond:V,then:function(y){return _.C("div",{class:"yt-spec-icon-badge-shape__badge"},y)}}))}}))},"vh");
P1s.idomCompat=!0;_.HI(P1s,"yt-icon-badge-shape",{props:{data:_.pA,icon:_.pA}});var xE=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};W.unseenCount=0;W.isOverlay=!1;return W};
_.v(xE,_.I);_.t=xE.prototype;_.t.attached=function(){var W=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(l){W.onServiceWorkerMessage(l)})};
_.t.onDataChanged=function(){this.isAttached&&!this.JSC$20467_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20467_lastData=this.data};
_.t.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.t.computeIcon=function(){var W,l;return(W=this.data)==null?void 0:(l=W.icon)==null?void 0:l.iconType};
_.t.onServiceWorkerMessage=function(W){W.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.t.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.k(this.data.updateUnseenCountEndpoint,_.mA)&&_.k(this.data.updateUnseenCountEndpoint,_.mA).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.t.handleUpdateNotificationsUnseenCountAction=function(W){var l=this;W=_.k(W,lPw);W!=null&&W.unseenCount&&W.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(W.unseenCount),_.w8.addLowPriorityJob(function(){l.data.updateUnseenCountEndpoint&&l.ytComponentBehavior.resolveCommand(l.data.updateUnseenCountEndpoint)},W.timeoutMs))};
_.t.onClick=function(){_.FN(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var W=_.bj(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),l=this.data.menuRequest;W&&W.length===1&&W[0]?_.Gt(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):l&&this.ytComponentBehavior.resolveCommand(l)};
_.t.handleTopbarMenuClosedAction=function(W){W==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.t.toggleIconState=function(W){this.iconButton&&(this.iconButton.pressed=W)};
_.t.sendUnseenCountRequest=function(W){var l=this;_.pS(_.w8,function(){l.ytComponentBehavior.resolveCommand(W)})};
_.t.updateCountUI=function(W){this.set("unseenCount",W<9?W:"9+")};
_.rc.Object.defineProperties(xE.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
xE.prototype.handleUpdateNotificationsUnseenCountAction=xE.prototype.handleUpdateNotificationsUnseenCountAction;xE.prototype.onDataChanged=xE.prototype.onDataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],xE.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.i5),_.z("design:type",Object)],xE.prototype,"ytdOpenPopupBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],xE.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],xE.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],xE.prototype,"unseenCount",void 0);_.a([_.b(),_.z("design:type",Object)],xE.prototype,"isOverlay",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],xE.prototype,"showTooltips",void 0);_.a([_.Aa("yt-icon-button"),_.z("design:type",Object)],xE.prototype,"iconButton",void 0);
_.a([_.G("unseenCount"),_.z("design:type",Object),_.z("design:paramtypes",[])],xE.prototype,"showNotificationCount",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],xE.prototype,"onDataChanged",null);_.a([_.XI("yt-update-notifications-unseen-count-action"),_.z("design:type",Function),_.z("design:paramtypes",[Object]),_.z("design:returntype")],xE.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.a([_.A({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],xE);
_.Z(xE,"ytd-notification-topbar-button-renderer",function(){if(gx2!==void 0)return gx2;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return gx2=W},{mode:_.bD("kevlar_poly_si_batch_j025")?1:2});var nxH;var ef=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return W};
_.v(ef,_.I);ef.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}}}}}};
ef.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
ef.prototype.onDarkModeToggled=function(W){this.dark=W};
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],ef.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],ef.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],ef.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],ef.prototype,"data",void 0);_.a([_.b({value:!0,reflectToAttribute:!0}),_.z("design:type",Boolean)],ef.prototype,"dark",void 0);
_.a([_.A({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],ef);
_.Z(ef,"yt-pdg-buy-flow-header-renderer",function(){if(nxH!==void 0)return nxH;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return nxH=W},{mode:1});var C1e;var cQw;var qK=function(){var W=_.I.apply(this,arguments)||this;W.immediateValue=0;W.isDarkTheme=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.v(qK,_.I);_.t=qK.prototype;_.t.created=function(){_.gt.requestAvailability()};
_.t.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.t.dataChanged=function(){var W=_.GS(this.hostElement).querySelector("#color-slider");W.immediateValue&&this.updateSliderKnobAndGradientStyles(W.immediateValue);this.data.notches[0].knobColorArgb&&_.I1(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.sD(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.M4("HTML_DIR")==="rtl"&&_.GS(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.t.onSliderImmediateChange=function(){var W=_.GS(this.hostElement).querySelector("#color-slider");W.dragging&&(W.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(W.immediateValue),this.updateSliderKnobAndGradientStyles(W.immediateValue)),this.updateSliderAria())};
_.t.onSliderChange=function(){var W=_.GS(this.hostElement).querySelector("#color-slider");W.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(W.immediateValue),this.updateSliderKnobAndGradientStyles(W.immediateValue));this.updateSliderAria()};
_.t.updateSliderAria=function(){var W=_.GS(this.hostElement).querySelector("#color-slider"),l=_.GS(this.hostElement).querySelector("#color-slider");l=_.dE(this.data.notches[l.immediateValue].tierValue);_.gzJ()&&_.FN(this.hostElement,"iron-announce",{text:l});W.setAttribute("aria-valuetext",l)};
_.t.updateSuperThanksSelectedTierEntity=function(W){if(W!==this.immediateValue){var l,V,f=this==null?void 0:(l=this.data)==null?void 0:(V=l.superThanksSelectedTierEntity)==null?void 0:V.key;f&&f.length>0&&this.ytdReduxBehavior.dispatch(_.MB("superThanksSelectedTierEntity",f,{key:f,index:W}))}};
_.t.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.t.updateSliderKnobAndGradientStyles=function(W){this.immediateValue=W;W=this.data.notches[W];if(W==null?0:W.knobColorArgb)var l={"--ytd-pdg-color-slider-knob-color":_.sD(W.knobColorArgb)};(W==null?0:W.linearGradientCssStyle)&&l!==null&&(l=Object.assign({},l,{"--ytd-pdg-color-slider-active-color":W==null?void 0:W.linearGradientCssStyle}));l!==null&&_.I1(this.hostElement,l)};
qK.prototype.onSliderChange=qK.prototype.onSliderChange;qK.prototype.onSliderImmediateChange=qK.prototype.onSliderImmediateChange;qK.prototype.dataChanged=qK.prototype.dataChanged;_.a([_.b(),_.z("design:type",Object)],qK.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],qK.prototype,"immediateValue",void 0);_.a([_.b(),_.z("design:type",Number)],qK.prototype,"maxMarkers",void 0);
_.a([_.b({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Lg5}),_.z("design:type",Object)],qK.prototype,"superThanksSelectedTierEntity",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],qK.prototype,"isDarkTheme",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],qK.prototype,"ytdReduxBehavior",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qK.prototype,"dataChanged",null);
_.a([_.XI("immediate-value-change"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qK.prototype,"onSliderImmediateChange",null);_.a([_.XI("change"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],qK.prototype,"onSliderChange",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],qK);
_.Z(qK,"ytd-pdg-color-slider-renderer",function(){if(cQw!==void 0)return cQw;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return cQw=W},{mode:1});var B2L;var dj7;var hw=null;
_.S3({is:"ytd-comment-input",_template:function(){if(dj7!==void 0)return dj7;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return dj7=W},
behaviors:[_.f8Y.YtHostElementBehavior,_.NN,_.uH.YtComponentBehavior,_.Ap.YtRendererstamperBehavior,_.EX9.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 _.vB}},
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",_.mz(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;_.wP();this.focus()},
detached:function(){document.removeEventListener("tap",_.mz(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(W){W=W.detail;W=W.isCustomEmoji?W.shortcuts[0]:W.emojiId;var l=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(l,W);this.maybeUpdateTextDirection_();_.FN(this.hostElement,"input")},
getInputRange_:function(){var W=_.FJ();if(W){W=W.getBrowserRangeObject();for(var l=W.commonAncestorContainer;l;){if(l===this.getEditableTextArea_())return W;l=l.parentNode}}W=this.getEditableTextArea_();W=_.tu(W,W.childNodes.length);W.select();return W.getBrowserRangeObject()},
insertTextWithEmojis_:function(W,l,V){(l=this.emojiManager.createDocumentFragment(l,!0,!1,V===void 0?!0:V))&&l.childNodes.length!==0&&(W.collapsed||W.deleteContents(),V=l.lastChild,W.insertNode(l),_.KzX(V).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var W=_.FJ();if(W){var l=W.JSC$11343_getStartNode(),V=W.JSC$11343_getEndNode();if(meY(l)&&meY(V)){var f=W.JSC$11343_getStartOffset(),r;if(_.Fe&&l.nodeType===Node.ELEMENT_NODE&&(r=_.KNe(l)))_.tu(r,0).select();else{r=ez(l)?l:_.YN(l,ez);var R=ez(V)?V:_.YN(V,ez);if(r||R)if(W.isCollapsed()){if(l.nodeType===Node.TEXT_NODE){W=!0;f===l.length&&(W=!1);if(hw==="end"||hw==="right")W=!1;l=l.parentNode;W=[].concat(_.QK(l.parentNode.childNodes)).indexOf(l)+(W?0:1);_.tu(l.parentNode,
W).select()}}else r?r.previousSibling&&r.previousSibling.length>0?_.s2(V,W.JSC$11343_getEndOffset(),r.previousSibling,r.previousSibling.length-1).select():(l=document.createTextNode("\u200b"),r.parentNode.insertBefore(l,r),_.s2(V,W.JSC$11343_getEndOffset(),l,0).select()):R&&(R.nextSibling&&R.nextSibling.length>0?_.s2(l,W.JSC$11343_getStartOffset(),R.nextSibling,1).select():(V=document.createTextNode("\u200b"),R.parentNode.insertBefore(V,R.nextSibling),_.s2(l,W.JSC$11343_getStartOffset(),V,V.length).select()));
hw=null}}else hw=null}else hw=null},
leftKeyPressed_:function(){hw="left"},
rightKeyPressed_:function(){hw="right"},
endKeyPressed_:function(){hw="end"},
maybeDeleteChip_:function(){var W=M11(!0);if(W){var l=_.FJ(),V=l.JSC$11343_getStartNode();l=l.JSC$11343_getStartOffset();_.l9(V,l,W,W.childNodes.length).select()}},
maybeBackspaceChip_:function(){var W=M11(!1);if(W){var l=_.FJ(),V=l.JSC$11343_getStartNode();l=l.JSC$11343_getStartOffset();_.l9(V,l,W,0).select()}},
maybeBackspaceChipWordMode_:function(W){var l=_.FJ();if(l.isCollapsed()){var V=l.JSC$11343_getStartNode();l=l.JSC$11343_getStartOffset();var f=ZPL(V,l,!0);f&&(_.l9(V,l,f,0).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(W){var l=_.FJ();if(l.isCollapsed()){var V=l.JSC$11343_getStartNode();l=l.JSC$11343_getStartOffset();var f=ZPL(V,l,!1);f&&(_.l9(V,l,f,f.childNodes.length).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
onContentClick:function(W){W.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(W){W.defaultPrevented||W.currentTarget.tagName==="YTD-COMMENT-INPUT"&&ez(W.target)&&W.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.GS(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.GS(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(W,l){W=TNw(W,this.emojiManager,l).cloneNode(!0);for(l=W.firstChild;l;)if(l.nodeType!==1)l=l.nextSibling;else switch(l.tagName){case "BR":var V=_.eg();_.i29(V,l);l=V.nextSibling;break;case "DIV":(V=l.lastChild)&&l.nextSibling&&_.Ed(_.eg(),V);l.previousSibling&&(l.previousSibling.nodeType===1||l.previousSibling.nodeType===3&&!l.previousSibling.textContent.endsWith("\n"))&&_.Sg(_.eg(),l);V&&V.nodeName==="BR"&&_.bI(V);V=l;l.hasChildNodes()?(l=l.firstChild,
_.mH$(V)):(l=l.nextSibling,_.bI(V));break;default:l=l.nextSibling}return OPZ(W)},
setTextAreaValue:function(W){W||(W="");var l=this.getEditableFormattedString_();l.text="";this.getEditableTextArea_().innerText="";typeof W==="string"&&(W={runs:[{text:W}]});l.text=W},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();hw=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var W=this.getEditableTextArea_();W&&(_.tu(W,W.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.M4("HTML_DIR")==="rtl"){var W=this.getEditableTextArea_(),l=this.getTextAreaValue()!==""?"auto":"rtl";W.setAttribute("dir",l)}},
handleInputEvent_:function(){var W=null;if(this.isEmojiButtonDisplayed){var l=this.getInputRange_();l&&(W=this.emojiInput.retrieveTextBeforeRange(l))}this.insertText_(W,!0);this.updateCharCount_();W=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=W.scrollHeight>W.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var W=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:W})},
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(W){this.isEmojiButtonDisplayed&&(W.preventDefault(),W.stopImmediatePropagation(),W=W.clipboardData.getData("text/plain"),this.insertText_(W,!1,!1),_.FN(this.hostElement,"input"))},
insertText_:function(W,l,V){l=l===void 0?!1:l;V=V===void 0?!0:V;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&W){var f=this.getInputRange_().cloneRange();this.emojiManager&&f&&(l&&this.emojiInput.offsetStartOfRangeBy(f,W.length),this.insertTextWithEmojis_(f,W,V),XIe(this.getEditableTextArea_().lastChild)||(f=this.getInputRange_().cloneRange()),f&&(this.emojiInput.updateSuggestions(f,W),this.updateSuggestionOffset_(f)))}},
getSimpleString:_.dE,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(W){return W?"focused":"not-focused"},
computePlaceholderText_:function(W){return this.getSimpleString(W)},
computeEditableText_:function(W){return this.getSimpleString(W)},
onPrefilledContentDismissed_:function(W){W.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(W,l){W?this.fire("yt-autonav-pause-focus"):l!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(W){var l=this.getEditableTextArea_();[].concat(_.QK(W.dataTransfer.items)).forEach(function(V){V.kind==="string"&&V.type.match("^text/plain")&&V.getAsString(function(f){l.appendChild(document.createTextNode(f))})});
W.preventDefault()},
preventDefault_:function(W){W.preventDefault()},
onSuggestionInsert_:function(W){this.insertTextWithEmojis_(W.detail.range,W.detail.text)},
onEmojiSuggestionClick_:function(W){this.emojiInput.insertSuggestion(W.detail)},
updateSuggestionOffset_:function(W){if(this.emojiInput&&_.GS(this.emojiInput).querySelector("#dropdown")){var l=this.getEditableTextArea_().getBoundingClientRect().bottom,V=W.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(l-V)+5;l=this.getEditableTextArea_().getBoundingClientRect().left;W=W.getBoundingClientRect().left-l;_.GS(this.emojiInput).querySelector("#dropdown").style.marginLeft=W+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Ow("yt-post"));return this.localStorage}});var Sf=function(){var W=_.I.apply(this,arguments)||this;W.currentCommentOptionIndex=0;W.isEmojiPickerDisplayed=!1;W.emojiManager=_.vB;W.isUgcEmpty=!1;W.userGeneratedCommentChangedHandler=function(){_.FN(W.hostElement,"ytd-pdg-user-generated-comment-changed");W.isEmojiYtdCommentInputEnabled&&(W.isUgcEmpty=!W.ytdCommentInputEl.getTextAreaValue())};
W.pasteHandler=function(l){l.preventDefault();l.stopImmediatePropagation();var V;if(l=(V=l.clipboardData)==null?void 0:V.getData("text/plain"))V=document.getSelection().getRangeAt(0),V.collapsed||V.deleteContents(),l=document.createTextNode(l),V.insertNode(l),V.selectNodeContents(l),V.collapse(!1),l=window.getSelection(),l.removeAllRanges(),l.addRange(V)};
W.onDocumentClick=function(l){if(W.isEmojiPickerDisplayed){var V,f,r;!(l.target instanceof Node)||(V=l.composedPath())!=null&&V.includes(W.editableTextEl)||(f=l.composedPath())!=null&&f.includes(W.emojiButtonEl)||(r=l.composedPath())!=null&&r.includes(W.emojiPickerEl)||(W.isEmojiPickerDisplayed=!1)}};
return W};
_.v(Sf,_.I);_.t=Sf.prototype;_.t.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.t.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.t.detached=function(){var W;(W=this.contentEl)==null||W.removeEventListener("input",this.userGeneratedCommentChangedHandler);var l;(l=this.contentEl)==null||l.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.t.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.t.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var W;this.contentEl.textContent=this.rendererBehavior.getSimpleString((W=this.data)==null?void 0:W.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.t.reloadEmojis=function(){this.emojiPickerEl&&_.k(this.emojiPicker,_.NPc)&&this.emojiPickerEl.updateEmojiCategories()};
_.t.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.I1(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.t.handleBackgroundColorStyling=function(){var W;if((W=this.currentCommentOption)==null?0:W.commentBackgroundColorArgb){var l;_.I1(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.sD((l=this.currentCommentOption)==null?void 0:l.commentBackgroundColorArgb)})}else _.I1(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.t.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var W;(W=this.contentEl)==null||W.focus()}};
_.t.onEditButtonClick=function(W){var l=document.getSelection();l&&this.contentEl&&(W.stopPropagation(),W.preventDefault(),l.selectAllChildren(this.contentEl),l.collapseToEnd())};
_.t.onContentDrop=function(W){var l=this;if(W.dataTransfer){W=_.L(W.dataTransfer.items);for(var V=W.next();!V.done;V=W.next())V=V.value,V.kind==="string"&&V.type.match("^text/plain")&&V.getAsString(function(f){var r;(r=l.contentEl)==null||r.appendChild(document.createTextNode(f))})}};
_.t.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.t.getUserGeneratedCommentText=function(){var W,l=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(W=this.contentEl)==null?void 0:W.textContent;return l?l.trim():""};
_.t.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.t.onEmojiSelect=function(W){this.ytdCommentInputEl.onEmojiSelect(W)};
_.rc.Object.defineProperties(Sf.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.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 W;return!((W=this.currentCommentOption)==null||!W.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var W;if(_.k((W=this.currentCommentOption)==null?void 0:W.chipRenderer,_.gQM)){var l;return _.k((l=this.currentCommentOption)==null?void 0:l.chipRenderer,_.gQM)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var W,l;return((W=this.data)==null?0:W.commentOptionRenderers)?_.k((l=this.data)==null?void 0:l.commentOptionRenderers[this.superThanksSelectedTierEntity.index],bfs):void 0}var V,f;return((V=this.data)==null?0:V.commentOptionRenderers)?_.k((f=this.data)==null?void 0:f.commentOptionRenderers[this.currentCommentOptionIndex],bfs):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var W;return this.rendererBehavior.getSimpleString((W=this.data)==null?void 0:W.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var W;return this.rendererBehavior.getSimpleString((W=this.data)==null?void 0:W.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var W,l;return(l=_.k((W=this.data)==null?void 0:W.commentDialog,_.Cc9))==null?void 0:l.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var W,l;return(l=_.k((W=this.data)==null?void 0:W.commentDialog,_.Cc9))==null?void 0:l.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var W,l;return(l=_.k((W=this.data)==null?void 0:W.commentDialog,_.Cc9))==null?void 0:l.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var W,l,V=(l=_.k((W=this.data)==null?void 0:W.commentDialog,_.Cc9))==null?void 0:l.emojiPicker;if(!_.k(V,_.NPc)||!_.k(V,_.NPc).categories)return!1;W=function(R){return R.emojiPickerCategoryRenderer?R.emojiPickerCategoryRenderer.emojiIds&&R.emojiPickerCategoryRenderer.emojiIds.length>0:R.emojiPickerUpsellCategoryRenderer?R.emojiPickerUpsellCategoryRenderer.emojis&&R.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var f,r;return((f=_.k(V,_.NPc))==null?0:(r=f.categories)==null?0:r.find(W))?!0:!1}}});
Sf.prototype.onEmojiSelect=Sf.prototype.onEmojiSelect;Sf.prototype.dataChanged=Sf.prototype.dataChanged;Sf.prototype.currentCommentOptionChanged=Sf.prototype.currentCommentOptionChanged;_.a([_.F(_.dx),_.z("design:type",Object)],Sf.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Sf.prototype,"rendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Sf.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.Aa("#content-dom-if"),_.z("design:type",_.$7)],Sf.prototype,"contentDomIfEl",void 0);_.a([_.Aa("#content-no-emojis"),_.z("design:type",HTMLElement)],Sf.prototype,"contentEl",void 0);_.a([_.Aa("#container"),_.z("design:type",HTMLElement)],Sf.prototype,"containerEl",void 0);_.a([_.Aa("#comment-chip-container"),_.z("design:type",HTMLElement)],Sf.prototype,"paidCommentChipContainerEl",void 0);_.a([_.Aa("#text-input"),_.z("design:type",HTMLElement)],Sf.prototype,"editableTextEl",void 0);
_.a([_.Aa("#emoji-button"),_.z("design:type",HTMLElement)],Sf.prototype,"emojiButtonEl",void 0);_.a([_.Aa("#emoji-picker > yt-emoji-picker-renderer"),_.z("design:type",Object)],Sf.prototype,"emojiPickerEl",void 0);_.a([_.Aa("#text-input > ytd-comment-input"),_.z("design:type",Object)],Sf.prototype,"ytdCommentInputEl",void 0);_.a([_.b(),_.z("design:type",Object)],Sf.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Sf.prototype,"currentCommentOptionIndex",void 0);
_.a([_.b({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Lg5}),_.z("design:type",Object)],Sf.prototype,"superThanksSelectedTierEntity",void 0);_.a([_.b(),_.z("design:type",Object)],Sf.prototype,"isEmojiPickerDisplayed",void 0);_.a([_.b(),_.z("design:type",Object)],Sf.prototype,"emojiManager",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Sf.prototype,"isUgcEmpty",void 0);
_.a([_.TS("currentCommentOption"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Sf.prototype,"currentCommentOptionChanged",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Sf.prototype,"dataChanged",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Sf.prototype,"isEmojiYtdCommentInputEnabled",null);
_.a([_.G("data.title"),_.z("design:type",Object),_.z("design:paramtypes",[])],Sf.prototype,"title",null);_.a([_.G("data.authorText"),_.z("design:type",Object),_.z("design:paramtypes",[])],Sf.prototype,"channelName",null);_.a([_.G("data.commentOptionRenderers","currentCommentOption"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Sf.prototype,"shouldShowPaidCommentChipRenderer",null);
_.a([_.G("data.commentOptionRenderers","currentCommentOption"),_.z("design:type",Object),_.z("design:paramtypes",[])],Sf.prototype,"paidCommentChipRenderer",null);_.a([_.G("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],Sf.prototype,"currentCommentOption",null);
_.a([_.G("data.defaultCommentText","superThanksSelectedTierEntity"),_.z("design:type",Object),_.z("design:paramtypes",[])],Sf.prototype,"commentText",null);_.a([_.G("data.placeholderText"),_.z("design:type",Object),_.z("design:paramtypes",[])],Sf.prototype,"placeholderText",null);_.a([_.G("data.commentDialog.commentDialogRenderer.editableText"),_.z("design:type",Object),_.z("design:paramtypes",[])],Sf.prototype,"editableText",null);
_.a([_.G("data.commentDialog.commentDialogRenderer.emojiButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],Sf.prototype,"emojiButton",null);_.a([_.G("data.commentDialog.commentDialogRenderer.emojiPicker"),_.z("design:type",Object),_.z("design:paramtypes",[])],Sf.prototype,"emojiPicker",null);
_.a([_.G("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Sf.prototype,"isEmojiButtonDisplayed",null);_.a([_.XI("yt-emoji-select"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],Sf.prototype,"onEmojiSelect",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Sf);
_.Z(Sf,"ytd-pdg-comment-preview-renderer",function(){if(B2L!==void 0)return B2L;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return B2L=W},{mode:2});var JQc;var EO=function(){var W=_.I.apply(this,arguments)||this;W.selected=!1;return W};
_.v(EO,_.I);_.t=EO.prototype;_.t.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.t.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.t.dataChanged=function(){this.data&&(_.bm(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.I1(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.sD(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.sD(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.t.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.t.onClick=function(){this.logClick()};
_.t.onKeyboardSelect=function(){_.FN(this.hostElement,"tap");this.onClick()};
_.t.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
EO.prototype.onClick=EO.prototype.onClick;EO.prototype.selectedChanged=EO.prototype.selectedChanged;EO.prototype.dataChanged=EO.prototype.dataChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],EO.prototype,"componentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],EO.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.NN),_.z("design:type",Object)],EO.prototype,"ironA11yKeysBehavior",void 0);
_.a([_.F(_.nk),_.z("design:type",Object)],EO.prototype,"ironSelectableBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],EO.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],EO.prototype,"shownThumbnail",void 0);_.a([_.b(),_.z("design:type",Object)],EO.prototype,"basePriceText",void 0);_.a([_.b(),_.z("design:type",Object)],EO.prototype,"purchaseCommand",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],EO.prototype,"selected",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],EO.prototype,"dataChanged",null);_.a([_.TS("selected"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],EO.prototype,"selectedChanged",null);_.a([_.XI("click"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],EO.prototype,"onClick",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],EO);
_.Z(EO,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(JQc!==void 0)return JQc;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return JQc=W},{mode:1});var $E=function(){var W=_.I.apply(this,arguments)||this;W.selectedItemIndex=0;W.buyButtonDisabled=!1;return W};
_.v($E,_.I);_.t=$E.prototype;
_.t.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]]"}}}}}};
_.t.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var W;var l=(W=_.k(this.data.colorSlider,GD1))==null?void 0:W.notches[this.selectedItemIndex].purchaseCommand}else{var V;l=(V=_.k(this.data.selectableItemButtons[this.selectedItemIndex],oIs))==null?void 0:V.purchaseCommand}if(l){W=_.k(l,_.xDk);W.productData||(W.productData={});var f;W.productData={pdgData:{commentMessageText:(f=this.commentPreviewRenderer)==null?void 0:f.getUserGeneratedCommentText()}};
_.FN(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(l)}}};
_.t.dataChanged=function(){if(this.data){_.vB.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.bg1(_.vB,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.vB.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var W;this.buyButtonDisabled=!((W=_.k(this.data.commentPreview,pBs))==null||!W.placeholderText);this.updatePriceSelectorStatus();var l;if((l=this.data)==null?0:l.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;W=[];this.data.preloadImages&&(W=this.data.preloadImages);
W=W.map(function(V){return _.KP(V.thumbnails,1920)});
W=_.L(W);for(l=W.next();!l.done;l=W.next())(l=l.value)&&_.IKz(l).thenCatch(function(){_.Qe(Error("Al"))})}};
_.t.superThanksSelectedTierEntityChanged=function(){var W;(this==null?void 0:(W=this.superThanksSelectedTierEntity)==null?void 0:W.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.t.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.t.updatePriceSelectorStatus=function(){this.isColorSlider?(_.GS(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.GS(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.GS(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.GS(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.t.closeBuyFlow=function(){_.Gt(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.t.onUserGeneratedContentChanged=function(){var W;this.buyButtonDisabled=!((W=this.commentPreviewRenderer)==null?0:W.getUserGeneratedCommentText())};
_.t.updateSelectedItemIndexFromBinding=function(W){this.selectedItemIndex=W.detail.value};
_.rc.Object.defineProperties($E.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.disclaimerText)}}});
$E.prototype.onUserGeneratedContentChanged=$E.prototype.onUserGeneratedContentChanged;$E.prototype.closeBuyFlow=$E.prototype.closeBuyFlow;$E.prototype.selectedItemIndexChanged=$E.prototype.selectedItemIndexChanged;$E.prototype.superThanksSelectedTierEntityChanged=$E.prototype.superThanksSelectedTierEntityChanged;$E.prototype.dataChanged=$E.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],$E.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],$E.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],$E.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],$E.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],$E.prototype,"selectedItemIndex",void 0);_.a([_.b(),_.z("design:type",Boolean)],$E.prototype,"isColorSlider",void 0);
_.a([_.b(),_.z("design:type",Object)],$E.prototype,"buyButtonDisabled",void 0);_.a([_.b({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Lg5}),_.z("design:type",Object)],$E.prototype,"superThanksSelectedTierEntity",void 0);_.a([_.Aa("ytd-pdg-comment-preview-renderer"),_.z("design:type",Object)],$E.prototype,"commentPreviewRenderer",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],$E.prototype,"ytdReduxBehavior",void 0);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$E.prototype,"dataChanged",null);_.a([_.TS("superThanksSelectedTierEntity"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$E.prototype,"superThanksSelectedTierEntityChanged",null);_.a([_.TS("selectedItemIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$E.prototype,"selectedItemIndexChanged",null);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$E.prototype,"closeBuyFlow",null);_.a([_.XI("ytd-pdg-user-generated-comment-changed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$E.prototype,"onUserGeneratedContentChanged",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],$E.prototype,"isDisclaimerTextShown",null);
_.a([_.A({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],$E);
_.Z($E,"yt-super-vod-buy-flow-content-renderer",function(){if(C1e!==void 0)return C1e;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return C1e=W},{mode:1});var DjZ;var Wz=function(){var W=_.I.apply(this,arguments)||this;W.lottieAnimationRef={};return W};
_.v(Wz,_.I);_.t=Wz.prototype;_.t.created=function(){_.gt.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.mz(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.t.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.FN(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.t.detached=function(){this.autoCloseJobId&&_.w8.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.mz(this,this.onPopupIronOverlayOpened))};
_.t.dataChanged=function(){var W=this;this.data&&this.data.autoCloseDelay&&(_.Gt(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.pP(_.w8,function(){W.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.I1(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.t.onDOMLoadedLottie=function(){var W=this,l,V,f=Number((l=this.data)==null?void 0:(V=l.autoCloseDelay)==null?void 0:V.seconds)||0;this.fadeOutJobId=_.pP(_.w8,function(){W.lottiePlayerEl.classList.add("fadeout")},(f-.25)*1E3);
this.autoCloseJobId=_.pP(_.w8,function(){W.closePopup()},f*1E3)};
_.t.openPopup=function(){this.ironOverlayBehavior.open()};
_.t.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.Gt(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.og(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.tY().resolve(_.s6).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.w8.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.w8.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.t.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var W,l;(W=this.lottieAnimationRef)==null||(l=W.lottieEl)==null||l.destroy();W=this.data.lottie;var V,f;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:W.url+"_"+Math.random(),path:W.url,autoplay:!0,loop:(f=(V=W.settings)==null?void 0:V.loop)!=null?f:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.rc.Object.defineProperties(Wz.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var W,l;return!!((W=this.data)==null?0:(l=W.lottie)==null?0:l.url)}}});
Wz.prototype.maybeInitializeLottie=Wz.prototype.maybeInitializeLottie;Wz.prototype.dataChanged=Wz.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Wz.prototype,"rendererBehavior",void 0);_.a([_.F(_.Bo),_.z("design:type",Object)],Wz.prototype,"ironOverlayBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Wz.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Wz.prototype,"lottiePlayerProps",void 0);
_.a([_.b(),_.z("design:type",Object)],Wz.prototype,"lottieAnimationRef",void 0);_.a([_.Aa("ytd-lottie-player"),_.z("design:type",HTMLElement)],Wz.prototype,"lottiePlayerEl",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wz.prototype,"dataChanged",null);_.a([_.G("data"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Wz.prototype,"hasLottieAnimation",null);
_.a([_.TS("data.lottie.url"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Wz.prototype,"maybeInitializeLottie",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Wz);
_.Z(Wz,"ytd-desktop-image-overlay-renderer",function(){if(DjZ!==void 0)return DjZ;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return DjZ=W},{mode:1});var Uj5;var lR=function(){return _.I.apply(this,arguments)||this};
_.v(lR,_.I);_.t=lR.prototype;_.t.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"}}}}};
_.t.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",_.mz(this,this.closePopup))};
_.t.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.mz(this,this.closePopup))};
_.t.dataChanged=function(){_.bj(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.k(this.data.header,FT2)&&(this.hasBackgroundBanner=!!_.k(this.data.header,FT2).backgroundBanner)};
_.t.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.mz(this,this.closePopup))};
_.t.closePopup=function(){this.data&&this.data.onCloseCommand&&_.pN(this.hostElement,[this.data.onCloseCommand])};
lR.prototype.handleBuyflowSelectionSubmitted=lR.prototype.handleBuyflowSelectionSubmitted;lR.prototype.dataChanged=lR.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],lR.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],lR.prototype,"data",void 0);
_.a([_.b({value:!0,reflectToAttribute:!0}),_.z("design:type",Boolean)],lR.prototype,"hasBackgroundBanner",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lR.prototype,"dataChanged",null);_.a([_.XI("yt-pdg-buy-flow-selection-submitted"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lR.prototype,"handleBuyflowSelectionSubmitted",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],lR);
_.Z(lR,"ytd-pdg-buy-flow-renderer",function(){if(Uj5!==void 0)return Uj5;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Uj5=W},{mode:1});var u_2;var VZ=function(){var W=_.I.apply(this,arguments)||this;W.isOpen=!1;W.isPlaylistCreated=!1;return W};
_.v(VZ,_.I);_.t=VZ.prototype;_.t.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.t.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.FN(this.hostElement,"yt-refit")};
_.t.onCreateTap=function(){var W=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.pN(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(l,V){if(!_.U("killswitch_ep_in_create_playlist_response")&&(V==null?0:V.actions))for(l=_.L(V.actions),V=l.next();!V.done;V=l.next())V=V.value,_.k(V,_.zk)&&W.ytComponentBehavior.resolveCommand(V)}}]),this.isPlaylistCreated=!0)};
_.t.onKeydown=function(W){if(W.keyCode===13)this.onCreateTap()};
_.t.onServiceRequestCompleted=function(W){W.stopPropagation();_.Gt(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.t.computePrivacyBadge=function(W){return W?[{metadataBadgeRenderer:W}]:[]};
VZ.prototype.onServiceRequestCompleted=VZ.prototype.onServiceRequestCompleted;VZ.prototype.onKeydown=VZ.prototype.onKeydown;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],VZ.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],VZ.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],VZ.prototype,"isOpen",void 0);
_.a([_.b(),_.z("design:type",Object)],VZ.prototype,"isPlaylistCreated",void 0);_.a([_.b({value:{REQUIRED_LABEL:_.wg("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.wg("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.z("design:type",Object)],VZ.prototype,"addToStrings",void 0);_.a([_.b({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.z("design:type",Array)],VZ.prototype,"privacyBadge",void 0);
_.a([_.Aa("#privacy-input"),_.z("design:type",Object)],VZ.prototype,"privacyInput",void 0);_.a([_.Aa("#name-input"),_.z("design:type",Object)],VZ.prototype,"nameInput",void 0);_.a([_.XI("keydown"),_.z("design:type",Function),_.z("design:paramtypes",[KeyboardEvent]),_.z("design:returntype")],VZ.prototype,"onKeydown",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],VZ.prototype,"onServiceRequestCompleted",null);
_.a([_.A({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],VZ);
_.Z(VZ,"ytd-add-to-playlist-create-renderer",function(){if(u_2!==void 0)return u_2;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return u_2=W},{mode:1});var kxw;var vxs;var f8=function(){var W=_.I.apply(this,arguments)||this;W.transferState="TRANSFER_STATE_UNKNOWN";return W};
_.v(f8,_.I);f8.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
f8.prototype.onCheckboxChange=function(W){var l=this;this.data&&_.gm(this,"yt-playlist-checkbox-changed",function(){var V=_.Ja(W).checked?l.data.addToPlaylistServiceEndpoint:l.data.removeFromPlaylistServiceEndpoint;V&&_.tY().resolve(_.s6).resolveCommand(V,{form:{element:l.hostElement}});_.U("dl_playlist_killswitch")||l.transferState!=="TRANSFER_STATE_UNKNOWN"&&l.transferState!=="TRANSFER_STATE_FAILED"&&l.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:l.data.playlistId,action:"ACTION_SYNC"}})},
100)};
f8.prototype.computeIconType=function(W){return W?"yt-icons:"+W.toLowerCase():null};
f8.prototype.dataChanged=f8.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],f8.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],f8.prototype,"data",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],f8.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],f8.prototype,"ytComponentBehavior",void 0);_.a([_.Aa("#checkbox"),_.z("design:type",HTMLInputElement)],f8.prototype,"checkbox",void 0);
_.a([_.b({selector:_.RD,selectorArgs:["data.playlistId"]}),_.z("design:type",String)],f8.prototype,"transferState",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],f8.prototype,"dataChanged",null);_.a([_.A({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],f8);
_.Z(f8,"ytd-playlist-add-to-option-renderer",function(){if(vxs!==void 0)return vxs;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return vxs=W},{mode:1});var H1w=_.Q(function(W){var l=W.data;return _.C("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.C("div",null,_.C(_.bH,{text:function(){return l().title}})),_.C(_.c,{cond:function(){return l().subtitle},
then:function(V){return _.C("div",{class:"ytdMenuTitleRendererSubtitle"},_.C(_.bH,{text:V}))}}))},"wh");
H1w.idomCompat=!0;_.HI(H1w,"ytd-menu-title-renderer",{props:{data:_.pA}});var rV=function(){var W=_.I.apply(this,arguments)||this;W.addToStrings={ADD_TO_DROPDOWN_LABEL:_.wg("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};W.closeButtonAriaLabel=_.wg("SBOX_INAPPROPRIATE_CANCEL");W.dialog=_.U("desktop_add_to_playlist_renderer_dialog_popup");return W};
_.v(rV,_.I);_.t=rV.prototype;_.t.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"}}}};
_.t.onPopupOpened=function(){_.pG(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.t.onPopupClosed=function(){_.pG(this.playlists,"scrollable",!1)};
_.t.computeAriaLabel=function(){var W;if(this==null?0:(W=this.data)==null?0:W.actions){W=_.L(this.data.actions);for(var l=W.next();!l.done;l=W.next())if(l=l.value,l.menuTitleRenderer)return _.dE(l.menuTitleRenderer.title)}};
_.t.onTapClose=function(){_.Gt(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.rc.Object.defineProperties(rV.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var W;if(this==null?0:(W=this.data)==null?0:W.actions){W=_.L(this.data.actions);for(var l=W.next();!l.done;l=W.next())if(l=l.value,l.menuTitleRenderer)return l.menuTitleRenderer}return!1}}});
rV.prototype.onPopupClosed=rV.prototype.onPopupClosed;rV.prototype.onPopupOpened=rV.prototype.onPopupOpened;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],rV.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],rV.prototype,"ytEventForwardingBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],rV.prototype,"ytRendererStamperBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],rV.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],rV.prototype,"addToStrings",void 0);_.a([_.b({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.z("design:type",String)],rV.prototype,"ariaLabel",void 0);_.a([_.b(),_.z("design:type",String)],rV.prototype,"closeButtonAriaLabel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],rV.prototype,"dialog",void 0);
_.a([_.Aa("#playlists"),_.z("design:type",HTMLElement)],rV.prototype,"playlists",void 0);_.a([_.Aa("ytd-add-to-playlist-create-renderer"),_.z("design:type",Object)],rV.prototype,"createRenderer",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],rV.prototype,"menuTitleRenderer",null);_.a([_.XI("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rV.prototype,"onPopupOpened",null);
_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],rV.prototype,"onPopupClosed",null);_.a([_.A({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],rV);
_.Z(rV,"ytd-add-to-playlist-renderer",function(){if(kxw!==void 0)return kxw;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return kxw=W},{mode:1});var KIc;var RF=function(){var W=_.I.apply(this,arguments)||this;W.isPlaylistEditComplete=!1;W.isCollabEngagementDisabled=!1;W.closeButtonAriaLabel=_.wg("SBOX_INAPPROPRIATE_CANCEL");W.saveButton={title:_.wg("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"};W.onValueChanged=function(){W.updateSaveButtonState();W.computeCollabEngagementDisabled()};
return W};
_.v(RF,_.I);_.t=RF.prototype;_.t.attached=function(){this.JSC$20521_scroller&&(this.JSC$20521_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20521_scroller.attached&&typeof this.JSC$20521_scroller.attached==="function"&&this.JSC$20521_scroller.attached())};
_.t.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.t.onPopupClosed=function(){this.reset()};
_.t.close=function(){_.Gt(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.t.onClickSave=function(){var W=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var l=[];this.nameInput.value!==null&&l.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&l.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var V=Number(this.privacyInput.value);isNaN(V)||l.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:V})}this.votingInput.value!==null&&(V=this.votingInput.value)&&l.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:V});if(l.length>0){var f;_.k((f=this.data)==null?void 0:f.updateSettingsEndpoint,_.gT).actions=l;var r;if((r=this.data)==null?0:r.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){W.close()}}}),this.isPlaylistEditComplete=!0}}};
_.t.computePrivacyBadge=function(W){return W?[{metadataBadgeRenderer:W}]:[]};
_.t.computeEditorData=function(W){var l,V;return W==null?void 0:(l=W.sections)==null?void 0:(V=l[0])==null?void 0:V.playlistSettingsEditorCasualSectionRenderer};
_.t.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.t.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}}}}}};
_.t.computeAriaLabel=function(){var W,l,V,f=(W=this.data)==null?void 0:(l=W.sections)==null?void 0:(V=l[0])==null?void 0:V.playlistSettingsEditorCasualSectionRenderer;return _.dE(f==null?void 0:f.title)};
_.t.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"}))};
_.t.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.t.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.t.isNameChanged=function(){var W,l,V;return(((W=this.editorData)==null?void 0:(l=W.name)==null?void 0:(V=l.textInputFormFieldRenderer)==null?void 0:V.value)||"")!==(this.nameInput.value||"")};
_.t.isDescriptionChanged=function(){var W,l,V;return(((W=this.editorData)==null?void 0:(l=W.description)==null?void 0:(V=l.textInputFormFieldRenderer)==null?void 0:V.value)||"")!==(this.descriptionInput.value||"")};
_.t.isPrivacyChanged=function(){var W,l,V,f,r,R,y,P;return((y=(W=this.editorData)==null?void 0:(l=W.privacy)==null?void 0:(V=l.dropdownFormFieldRenderer)==null?void 0:(f=V.dropdown)==null?void 0:(r=f.dropdownRenderer)==null?void 0:(R=r.entries)==null?void 0:R.find(function(n){var B;return n==null?void 0:(B=n.privacyDropdownItemRenderer)==null?void 0:B.isSelected}))==null?void 0:(P=y.privacyDropdownItemRenderer)==null?void 0:P.int32Value)!==this.privacyInput.value};
_.t.isVotingChanged=function(){var W,l,V,f,r,R,y,P;return((y=(W=this.editorData)==null?void 0:(l=W.voting)==null?void 0:(V=l.dropdownFormFieldRenderer)==null?void 0:(f=V.dropdown)==null?void 0:(r=f.dropdownRenderer)==null?void 0:(R=r.entries)==null?void 0:R.find(function(n){var B;return n==null?void 0:(B=n.privacyDropdownItemRenderer)==null?void 0:B.isSelected}))==null?void 0:(P=y.privacyDropdownItemRenderer)==null?void 0:P.int32Value)!==this.votingInput.value};
RF.prototype.onPopupClosed=RF.prototype.onPopupClosed;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],RF.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],RF.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],RF.prototype,"ytEventForwardingBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],RF.prototype,"ytRendererStamperBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],RF.prototype,"data",void 0);_.a([_.b({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.z("design:type",Array)],RF.prototype,"privacyBadge",void 0);_.a([_.b({computed:"computeEditorData(data)"}),_.z("design:type",Object)],RF.prototype,"editorData",void 0);_.a([_.b(),_.z("design:type",Object)],RF.prototype,"isPlaylistEditComplete",void 0);_.a([_.b(),_.z("design:type",Object)],RF.prototype,"isCollabEngagementDisabled",void 0);
_.a([_.b({value:{REQUIRED_LABEL:_.wg("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.wg("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.z("design:type",Object)],RF.prototype,"addToStrings",void 0);_.a([_.b({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.z("design:type",String)],RF.prototype,"ariaLabel",void 0);_.a([_.b(),_.z("design:type",String)],RF.prototype,"closeButtonAriaLabel",void 0);
_.a([_.b(),_.z("design:type",Object)],RF.prototype,"saveButton",void 0);_.a([_.Aa("#name-input"),_.z("design:type",Object)],RF.prototype,"nameInput",void 0);_.a([_.Aa("#description-input"),_.z("design:type",Object)],RF.prototype,"descriptionInput",void 0);_.a([_.Aa("#privacy-input"),_.z("design:type",Object)],RF.prototype,"privacyInput",void 0);_.a([_.Aa("#voting-input"),_.z("design:type",Object)],RF.prototype,"votingInput",void 0);
_.a([_.Aa("#scroller"),_.z("design:type",Object)],RF.prototype,"JSC$20521_scroller",void 0);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RF.prototype,"onPopupClosed",null);_.a([_.b(),_.z("design:type",Object)],RF.prototype,"onValueChanged",void 0);_.a([_.A({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],RF);
_.Z(RF,"ytd-playlist-settings-editor-renderer",function(){if(KIc===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);KIc=W}W=KIc;return W},{mode:1});var FIc;_.e1("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var t7=function(){return _.I.apply(this,arguments)||this};
_.v(t7,_.I);_.t=t7.prototype;_.t.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}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.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 W=this.get("data.nextButton.buttonRenderer.navigationEndpoint");W&&(this.nextNavigationEndpoint=W,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.t.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 W={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",W)}}};
_.t.onPopupOpened=function(W){W.detail!==this&&W.detail!==this.hostElement||!_.U("enable_premium_voluntary_pause")||_.Gt(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.t.onNextButtonTap=function(){var W=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);W&&this.ytdOpenPopupBehavior.openPopup(W)};
_.t.updateSelectedResponseIndexFromBinding=function(W){this.selectedResponseIndex=W.detail.value};
t7.prototype.onPopupOpened=t7.prototype.onPopupOpened;t7.prototype.onSelectedResponseIndexChange=t7.prototype.onSelectedResponseIndexChange;t7.prototype.dataChanged=t7.prototype.dataChanged;_.a([_.F(_.i5),_.z("design:type",Object)],t7.prototype,"ytdOpenPopupBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],t7.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],t7.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],t7.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Number)],t7.prototype,"selectedResponseIndex",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],t7.prototype,"dataChanged",null);_.a([_.TS("selectedResponseIndex"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],t7.prototype,"onSelectedResponseIndexChange",null);
_.a([_.XI("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],t7.prototype,"onPopupOpened",null);_.a([_.A({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],t7);
_.Z(t7,"ytd-red-cancel-survey-renderer",function(){if(FIc!==void 0)return FIc;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return FIc=W},{mode:1});var Gx2;var sQ=function(){var W=_.I.apply(this,arguments)||this;W.closeButtonAriaLabel=_.wg("SBOX_INAPPROPRIATE_CANCEL");return W};
_.v(sQ,_.I);sQ.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
sQ.prototype.onClickClose=function(){_.Gt(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],sQ.prototype,"rendererStamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],sQ.prototype,"data",void 0);_.a([_.b(),_.z("design:type",String)],sQ.prototype,"closeButtonAriaLabel",void 0);_.a([_.A({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],sQ);
_.Z(sQ,"ytd-search-filter-options-dialog-renderer",function(){if(Gx2!==void 0)return Gx2;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Gx2=W},{mode:1});var b11;var NN5=function(){return function(W){W=W.availabilityType;return W===void 0||W==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||W==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var L8=function(){var W=_.I.apply(this,arguments)||this;W.qualityOptions=[];W.upsellOptions=[];W.showUpsellSection=!1;W.darkerDarkTheme=_.U("web_darker_dark_theme");W.rememberSettingsChecked=!1;return W};
_.v(L8,_.I);_.t=L8.prototype;_.t.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}}}}};
_.t.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.t.updateQualityOptions=function(){if(this.formats===void 0)_.Gt(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var W=[],l=[];this.showUpsellSection=!1;for(var V=_.L(this.formats),f=V.next();!f.done;f=V.next())(f=f.value)&&(f.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?l.push(f):W.push(f));W.length&&(this.qualityOptions=zw4(W));l.length&&(this.showUpsellSection=!0,this.upsellOptions=zw4(l))}};
_.t.updateRememberString=function(){if(this.downloadQualityPickerEntity)var W=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var l;W=(l=this.data)==null?void 0:l.premiumRememberSettingString}else{var V;W=(V=this.data)==null?void 0:V.rememberSettingString}W=W===void 0?_.wg("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):W;this.rememberSettingsCheckboxRenderer={title:_.Hy(W),disabled:!1}};
_.t.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.rc.Object.defineProperties(L8.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var W;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(W=this.data)==null?void 0:W.qualityFormats}}});
L8.prototype.updateRememberString=L8.prototype.updateRememberString;L8.prototype.updateQualityOptions=L8.prototype.updateQualityOptions;L8.prototype.dataChanged=L8.prototype.dataChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],L8.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],L8.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],L8.prototype,"data",void 0);
_.a([_.F(_.dx),_.z("design:type",Object)],L8.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Boolean)],L8.prototype,"selectedUpsellQuality",void 0);_.a([_.b({computed:"computeIcon_(data.premiumIcon)",value:""}),_.z("design:type",String)],L8.prototype,"premiumIcon",void 0);_.a([_.b({selector:rWN,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.z("design:type",Object)],L8.prototype,"downloadQualityPickerEntity",void 0);
_.a([_.b(),_.z("design:type",Array)],L8.prototype,"qualityOptions",void 0);_.a([_.b(),_.z("design:type",Array)],L8.prototype,"upsellOptions",void 0);_.a([_.b(),_.z("design:type",Object)],L8.prototype,"showUpsellSection",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],L8.prototype,"darkerDarkTheme",void 0);_.a([_.b(),_.z("design:type",Object)],L8.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.a([_.Aa("#remember-settings"),_.z("design:type",HTMLInputElement)],L8.prototype,"rememberSettingsCheckbox",void 0);_.a([_.b(),_.z("design:type",Object)],L8.prototype,"rememberSettingsChecked",void 0);_.a([_.b(),_.z("design:type",Function)],L8.prototype,"onRememberSettingsCheckedChanged",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],L8.prototype,"dataChanged",null);
_.a([_.TS("downloadQualityPickerEntity"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],L8.prototype,"updateQualityOptions",null);_.a([_.TS("selectedUpsellQuality"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],L8.prototype,"updateRememberString",null);_.a([_.A({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],L8);
_.Z(L8,"ytd-download-quality-selector-content",function(){if(b11!==void 0)return b11;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return b11=W},{mode:1});var p9s;var yZ=function(){var W=_.I.apply(this,arguments)||this;W.selectedUpsellQuality=!1;W.qualityOptions=[];W.darkerDarkTheme=_.U("web_darker_dark_theme");W.useUpsellDismissAlternate=_.U("use_not_now_dl_upsell_dismiss_cta");W.shouldShowAlternateUpsellDimiss=!1;W.rememberSettings=!1;W.rememberSettingsChecked=!1;W.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};W.rememberSettingsCheckedChanged=function(l){W.rememberSettingsChecked=l};
return W};
_.v(yZ,_.I);_.t=yZ.prototype;
_.t.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Hy(_.wg("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Hy(_.wg("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Hy(_.wg("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Hy(_.wg("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.t.updateQualityOptions=function(){this.formats===void 0?_.Gt(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=zw4(this.formats)};
_.t.onQualityOptionsSelect=function(W){if(this.qualityOptions&&W){W!==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 l=_.L(this.qualityOptions.entries()),V=l.next();!V.done;V=
l.next()){V=_.L(V.value);var f=V.next().value;V=V.next().value;var r=void 0,R=void 0;if(((r=V)==null?void 0:(R=r.settingsRadioOptionRenderer)==null?void 0:R.id)===W){this.selectedQualityIndex=f;W=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((W=this.formats[f])==null?void 0:W.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.t.onClickSubmit=function(){var W;if((W=this.downloadButtonRenderer)==null||!W.isDisabled){var l,V;W=(V=(l=this.data)==null?void 0:l.onSubmitEndpoint)!=null?V:{};var f,r;if(this.formats&&(((f=_.k(W,_.Xx))==null?0:f.videoId)||((r=_.k(W,_.TY))==null?0:r.playlistId))){var R,y,P,n,B,d;l={formatType:(n=(R=this.formats)==null?void 0:(y=R[(P=this.selectedQualityIndex)!=null?P:0])==null?void 0:y.format)!=null?n:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(B=this.getOfflineEndpoint(W))==null?void 0:(d=B.actionParams)==null?void 0:d.settingsAction)};this.getOfflineEndpoint(W).actionParams=l;this.ytComponentBehavior.resolveCommand(W)}_.Gt(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.t.onClickUpsell=function(){var W;if((W=this.upsellButtonRenderer)==null||!W.isDisabled){var l,V;W=(V=(l=this.data)==null?void 0:l.upsellEndpoint)!=null?V:{};this.ytComponentBehavior.resolveCommand(W);_.Gt(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);l="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var f,r,R,y;l=(y=(f=this.formats)==null?void 0:(r=f[(R=this.selectedQualityIndex)!=null?R:0])==null?void 0:r.format)!=null?y:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:l}})}};
_.t.onClickClose=function(){_.Gt(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.t.getOfflineSettingsAction=function(W,l){return W?l===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":l:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.t.getOfflineEndpoint=function(W){return _.k(W,_.Xx)?_.k(W,_.Xx):_.k(W,_.TY)};
_.rc.Object.defineProperties(yZ.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Hy(_.wg("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var W;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(W=this.data)==null?void 0:W.qualityFormats}}});
yZ.prototype.updateQualityOptions=yZ.prototype.updateQualityOptions;yZ.prototype.dataChanged=yZ.prototype.dataChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],yZ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],yZ.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],yZ.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],yZ.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Number)],yZ.prototype,"selectedQualityIndex",void 0);_.a([_.b(),_.z("design:type",Object)],yZ.prototype,"selectedUpsellQuality",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],yZ.prototype,"ytdReduxBehavior",void 0);
_.a([_.b({selector:rWN,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.z("design:type",Object)],yZ.prototype,"downloadQualityPickerEntity",void 0);_.a([_.b(),_.z("design:type",Array)],yZ.prototype,"qualityOptions",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],yZ.prototype,"darkerDarkTheme",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],yZ.prototype,"useUpsellDismissAlternate",void 0);
_.a([_.b(),_.z("design:type",Object)],yZ.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.a([_.b(),_.z("design:type",Object)],yZ.prototype,"downloadButtonRenderer",void 0);_.a([_.b(),_.z("design:type",Object)],yZ.prototype,"upsellButtonRenderer",void 0);_.a([_.b(),_.z("design:type",Object)],yZ.prototype,"cancelButtonRenderer",void 0);_.a([_.b(),_.z("design:type",Object)],yZ.prototype,"upsellCancelButtonRenderer",void 0);_.a([_.b(),_.z("design:type",Object)],yZ.prototype,"rememberSettings",void 0);
_.a([_.b(),_.z("design:type",Object)],yZ.prototype,"rememberSettingsChecked",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yZ.prototype,"dataChanged",null);_.a([_.TS("downloadQualityPickerEntity"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],yZ.prototype,"updateQualityOptions",null);_.a([_.A({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],yZ);
_.Z(yZ,"ytd-download-quality-selector-renderer",function(){if(p9s!==void 0)return p9s;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return p9s=W},{mode:1});var oxw;var gV=function(){var W=_.I.apply(this,arguments)||this;W.darkerDarkTheme=_.U("web_darker_dark_theme");return W};
_.v(gV,_.I);gV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
gV.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"}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],gV.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],gV.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],gV.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],gV.prototype,"darkerDarkTheme",void 0);_.a([_.b({computed:"computeIcon_(data.infoIcon)"}),_.z("design:type",Object)],gV.prototype,"infoIcon",void 0);
_.a([_.b({computed:"computeIcon_(data.warningIcon)"}),_.z("design:type",Object)],gV.prototype,"warningIcon",void 0);_.a([_.A({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],gV);
_.Z(gV,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(oxw!==void 0)return oxw;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return oxw=W},{mode:1});var jTN;var Pz=function(){var W=_.I.apply(this,arguments)||this;W.darkerDarkTheme=_.U("web_darker_dark_theme");return W};
_.v(Pz,_.I);Pz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Pz.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"}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Pz.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Pz.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Pz.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Pz.prototype,"darkerDarkTheme",void 0);_.a([_.A({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],Pz);
_.Z(Pz,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(jTN!==void 0)return jTN;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return jTN=W},{mode:1});var Iws;var n8=function(){var W=_.I.apply(this,arguments)||this;W.darkerDarkTheme=_.U("web_darker_dark_theme");return W};
_.v(n8,_.I);n8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
n8.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"}}}}};
n8.prototype.onServiceRequestSentOrCompleted=function(W,l){l&&l.actions&&l.actions.length>0&&_.Gt(this.hostElement,"yt-close-popup-action",[this.is])};
n8.prototype.onServiceRequestSentOrCompleted=n8.prototype.onServiceRequestSentOrCompleted;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],n8.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],n8.prototype,"darkerDarkTheme",void 0);_.a([_.b(),_.z("design:type",Object)],n8.prototype,"data",void 0);
_.a([_.XI("yt-service-request-completed"),_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],n8.prototype,"onServiceRequestSentOrCompleted",null);_.a([_.A({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],n8);
_.Z(n8,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(Iws!==void 0)return Iws;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return Iws=W},{mode:1});var i11;var C8=function(){var W=_.I.apply(this,arguments)||this;W.darkerDarkTheme=_.U("web_darker_dark_theme");W.submitButtonDisabled=!0;return W};
_.v(C8,_.I);_.t=C8.prototype;_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.t.onDataChanged=function(){var W,l,V;if(((W=this.data)==null?void 0:(l=W.confirmButton)==null?void 0:(V=l.buttonRenderer)==null?void 0:V.isDisabled)!==void 0){var f,r,R;this.submitButtonDisabled=(f=this.data)==null?void 0:(r=f.confirmButton)==null?void 0:(R=r.buttonRenderer)==null?void 0:R.isDisabled}};
_.t.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.t.updateSubmitButtonDisabledFromBinding=function(W){this.submitButtonDisabled=W.detail.value};
_.t.updateSubmitButtonDisabledFromConfirmCheckbox=function(W){this.submitButtonDisabled=!W.detail.value};
C8.prototype.onDataChanged=C8.prototype.onDataChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],C8.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],C8.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],C8.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],C8.prototype,"darkerDarkTheme",void 0);
_.a([_.b(),_.z("design:type",Object)],C8.prototype,"submitButtonDisabled",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],C8.prototype,"onDataChanged",null);_.a([_.A({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],C8);
_.Z(C8,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(i11!==void 0)return i11;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return i11=W},{mode:1});var mj2;var cz=function(){return _.I.apply(this,arguments)||this};
_.v(cz,_.I);_.rc.Object.defineProperties(cz.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var W,l,V;return((W=this.data)==null?void 0:W.title)+" "+((l=this.data)==null?void 0:l.metadataPrimary)+" "+((V=this.data)==null?void 0:V.metadataSecondary)}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],cz.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],cz.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],cz.prototype,"data",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],cz.prototype,"ariaLabel",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],cz);
_.Z(cz,"ytd-compact-product-list-item-renderer",function(){if(mj2!==void 0)return mj2;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return mj2=W},{mode:1});var X9Y;var Bz=function(){return _.I.apply(this,arguments)||this};
_.v(Bz,_.I);Bz.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]]"}}}}}};
_.rc.Object.defineProperties(Bz.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Bz.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],Bz.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Bz.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Bz.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],Bz);
_.Z(Bz,"ytd-compact-product-list-renderer",function(){if(X9Y!==void 0)return X9Y;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return X9Y=W},{mode:1});var T27;var dV=function(){var W=_.I.apply(this,arguments)||this;W.darkerDarkTheme=_.U("web_darker_dark_theme");return W};
_.v(dV,_.I);_.t=dV.prototype;_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.t.getBackgroundUrl=function(){var W=this.get("data.headerImage.thumbnails");return W?"url("+_.KP(W,this.hostElement.clientWidth)+")":""};
_.t.onDataChanged=function(){var W=this.getBackgroundUrl();W&&(this.header.style.backgroundImage=W);W=_.Wh();var l=_.$G(),V=this.get("data.trackingParams");V&&l&&W&&_.L0(W,l,_.zG(V));W=_.L(this.hostElement.querySelectorAll("yt-img-shadow"));for(l=W.next();!l.done;l=W.next())l.value.onShow()};
_.t.onPopupClosed=function(W){_.Ja(W).localName==="ytd-membership-post-cancel-renderer"&&_.Gt(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
dV.prototype.onPopupClosed=dV.prototype.onPopupClosed;dV.prototype.onDataChanged=dV.prototype.onDataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],dV.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],dV.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],dV.prototype,"darkerDarkTheme",void 0);
_.a([_.Aa("#header"),_.z("design:type",HTMLDivElement)],dV.prototype,"header",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dV.prototype,"onDataChanged",null);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],dV.prototype,"onPopupClosed",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],dV);
_.Z(dV,"ytd-membership-post-cancel-renderer",function(){if(T27!==void 0)return T27;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return T27=W},{mode:1});var w9L;var J7=function(){var W=_.I.apply(this,arguments)||this;W.darkerDarkTheme=_.U("web_darker_dark_theme");return W};
_.v(J7,_.I);J7.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
J7.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],J7.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],J7.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],J7.prototype,"darkerDarkTheme",void 0);_.a([_.Aa("ytd-feedback-survey-renderer"),_.z("design:type",Object)],J7.prototype,"feedbackSurveyRenderer",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],J7);
_.Z(J7,"ytd-sponsorship-confirm-cancel-content",function(){if(w9L!==void 0)return w9L;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return w9L=W},{mode:1});var AQ1;var DQ=function(){var W=_.I.apply(this,arguments)||this;W.darkerDarkTheme=_.U("web_darker_dark_theme");W.maybeSubmitFeedback=function(){W.content&&W.content.maybeSubmitFeedback()};
return W};
_.v(DQ,_.I);_.t=DQ.prototype;_.t.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.t.onYtPopupOpened=function(W,l){l===this&&this.data&&this.data.onOpenCommands&&_.og(this.hostElement,this.data.onOpenCommands,this.hostElement);_.Gt(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.t.onYtPopupClosed=function(W,l){(l&&l.canceled===!0||l&&l.canceled===!1&&l.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.og(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.t.onYtServiceRequestCompleted=function(){_.Gt(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.t.onYtServiceRequestError=function(W){_.Lh(this.hostElement,W.detail.error.message)};
_.t.onDataChanged=function(){if(this.isAttached){var W=this.backgroundUrl;W&&(_.GS(this.hostElement).querySelector("#header").style.backgroundImage=W)}};
_.rc.Object.defineProperties(DQ.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return W?"url("+_.KP(W,this.hostElement.clientWidth)+")":""}}});
DQ.prototype.onDataChanged=DQ.prototype.onDataChanged;DQ.prototype.onYtServiceRequestError=DQ.prototype.onYtServiceRequestError;DQ.prototype.onYtServiceRequestCompleted=DQ.prototype.onYtServiceRequestCompleted;DQ.prototype.onYtPopupClosed=DQ.prototype.onYtPopupClosed;DQ.prototype.onYtPopupOpened=DQ.prototype.onYtPopupOpened;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],DQ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],DQ.prototype,"data",void 0);_.a([_.b({value:function(){return _.wg("SBOX_INAPPROPRIATE_CANCEL")}}),
_.z("design:type",String)],DQ.prototype,"closeButtonAriaLabel",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],DQ.prototype,"darkerDarkTheme",void 0);_.a([_.Aa("#scrollable"),_.z("design:type",Object)],DQ.prototype,"scrollable",void 0);_.a([_.Aa("ytd-sponsorship-confirm-cancel-content"),_.z("design:type",Object)],DQ.prototype,"content",void 0);
_.a([_.XI("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],DQ.prototype,"onYtPopupOpened",null);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],DQ.prototype,"onYtPopupClosed",null);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],DQ.prototype,"onYtServiceRequestCompleted",null);_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],DQ.prototype,"onYtServiceRequestError",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],DQ.prototype,"onDataChanged",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],DQ);
_.Z(DQ,"ytd-sponsorship-confirm-cancel-renderer",function(){if(AQ1!==void 0)return AQ1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return AQ1=W},{mode:_.bD("kevlar_poly_si_batch_j081")?1:2});var QTw;var UQ=function(){var W=_.I.apply(this,arguments)||this;W.darkerDarkTheme=_.U("web_darker_dark_theme");return W};
_.v(UQ,_.I);UQ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],UQ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],UQ.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],UQ.prototype,"darkerDarkTheme",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],UQ);
_.Z(UQ,"ytd-sponsorships-celebration-content",function(){if(QTw!==void 0)return QTw;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return QTw=
W},{mode:1});var Mje;var Z1L=_.tj(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),uR=function(){var W=_.I.apply(this,arguments)||this;W.scriptsAppended=!1;W.useFullWidthPrimaryButton=!1;W.buttonOverrides={type:"tonal",style:"overlay-dark"};return W};
_.v(uR,_.I);_.t=uR.prototype;_.t.dataChanged=function(){var W;this.useFullWidthPrimaryButton=!((W=this.data)==null||!W.useFullWidthPrimaryButton)};
_.t.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:_.U("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.onDataChanged=function(){var W;(W=this.header)==null||W.style.setProperty("background-color",this.backgroundColor);if(W=this.headerImageUrl){var l;(l=this.header)==null||l.style.setProperty("background-image",W)}l=_.Wh(4);W=_.$G(4);var V=this.get("data.trackingParams");if(V&&W&&l){var f=_.zG(V);_.L0(l,W,f);_.U("combine_ve_grafts")?_.Qq().graftServerVe(V,W,4):_.L0(l,W,f)}l=_.L(this.hostElement.querySelectorAll("yt-img-shadow"));for(W=l.next();!W.done;W=l.next())W.value.onShow();if(l=this.get("data.gtmId"))_.LA(l,
_.M4("GL","")),this.setupConversionTracking()};
_.t.setupConversionTracking=function(){if(!this.scriptsAppended){var W=document.createElement("script");var l=_.rI(Z1L.join(""));_.Rt(W,l);document.head.appendChild(W);W=document.createElement("noscript");W.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(W);this.scriptsAppended=!0}};
_.t.onPopupClosed=function(W){if(_.Ja(W).localName==="ytd-sponsorships-celebration-renderer"){_.Gt(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var l;this.data&&((l=this.data)==null?0:l.dismissCommand)&&_.mK.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.rc.Object.defineProperties(uR.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.sD(W)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return W?"url("+_.KP(W,this.hostElement.getBoundingClientRect().width)+")":""}}});
uR.prototype.onPopupClosed=uR.prototype.onPopupClosed;uR.prototype.onDataChanged=uR.prototype.onDataChanged;uR.prototype.dataChanged=uR.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],uR.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],uR.prototype,"data",void 0);
_.a([_.Aa("#header"),_.z("design:type",HTMLElement)],uR.prototype,"header",void 0);_.a([_.b(),_.z("design:type",Object)],uR.prototype,"scriptsAppended",void 0);_.a([_.b({type:Boolean,reflectToAttribute:!0}),_.z("design:type",Object)],uR.prototype,"useFullWidthPrimaryButton",void 0);_.a([_.b(),_.z("design:type",Object)],uR.prototype,"buttonOverrides",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uR.prototype,"dataChanged",null);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],uR.prototype,"onDataChanged",null);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],uR.prototype,"onPopupClosed",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],uR);
_.Z(uR,"ytd-sponsorships-celebration-renderer",function(){if(Mje!==void 0)return Mje;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return Mje=W},{mode:1});var O11;var kf=function(){var W=_.I.apply(this,arguments)||this;W.isToggleChecked=!1;return W};
_.v(kf,_.I);kf.prototype.onDataChanged=function(){var W;this.isToggleChecked=((W=this.data)==null?void 0:W.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
kf.prototype.close=function(){var W;((W=this.data)==null?0:W.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
kf.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var W,l=_.k((W=this.data)==null?void 0:W.switchButton,j8Z);l&&(this.isToggleChecked&&l.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(l.switchOnInnertubeCommand),!this.isToggleChecked&&l.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(l.switchOffInnertubeCommand))};
kf.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
kf.prototype.onDataChanged=kf.prototype.onDataChanged;_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],kf.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],kf.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],kf.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],kf.prototype,"isToggleChecked",void 0);_.a([_.b({value:_.wg("CLOSE")}),_.z("design:type",String)],kf.prototype,"closeButtonAriaLabel",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kf.prototype,"onDataChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],kf);
_.Z(kf,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(O11!==void 0)return O11;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return O11=W},{mode:1});var awN;var vz=function(){return _.I.apply(this,arguments)||this};
_.v(vz,_.I);_.t=vz.prototype;_.t.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"}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.detached=function(){this.playerElement.stop()};
_.t.onYtServiceRequestCompleted=function(){_.Gt(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.t.onYtServiceRequestError=function(W){_.Lh(this.hostElement,W.detail.error.message)};
_.t.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.t.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.t.getTier=function(W,l){return!W||!W.tiers||l<0?null:_.k(W.tiers[l],XB5)};
_.t.moreThanOne=function(W){return!!(W&&W.length>1)};
_.t.tierOverviewTap=function(W){var l=this;this.selectedTier=W.model.index;_.V9(this,function(){_.FN(l.hostElement,"yt-refit")})};
_.t.computeSelectedClass=function(W,l){return this.isSelected(W,l)?"selected":""};
_.t.computeButtonAriaPressed=function(W,l){return this.isSelected(W,l)?"true":"false"};
_.t.isSelected=function(W,l){return W===l};
_.t.onDataChanged=function(){_.GS(this.hostElement).querySelector("#header-overlay").style.visibility="";_.GS(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 W=_.L(this.hostElement.querySelectorAll("yt-img-shadow")),
l=W.next();!l.done;l=W.next())l.value.onShow();var V;this.set("selectedTier",(V=this.get("data.targetTierIndex"))!=null?V:0);var f;(W=(f=this.data)==null?void 0:f.onVisible)&&this.ytComponentBehavior.resolveCommand(W)};
_.t.initializeVe=function(W){var l=_.Wh(),V=_.$G(),f=this.get("data.trackingParams");V&&l&&(this.screenLayer=4,l=_.ah(_.n0F)(void 0,69877,{clientScreenNonce:l,visualElement:V},void 0,void 0,void 0),_.VW(l,69877,4),V=_.$G(4),f&&V&&(f=_.zG(f),_.L0(l,V,f),W&&(this.offerVideoVe=_.GY(74659),_.L0(l,f,this.offerVideoVe))))};
_.t.setHeaderBackground=function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.GS(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.sD(W);if(W=this.getHeaderImage())W=_.KP(W,screen.width),_.GS(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+W+")"};
_.t.getHeaderImage=function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&W?W:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.t.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.t.setupVideoPlayer=function(W){var l=this,V,f,r,R;return _.g(function(y){if(y.nextAddress==1)return V=l.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),f=l.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.U("kevlar_player_update_killswitch")?l.playerElement.update({args:{autoplay:V,video_id:W,player_params:f}}):l.playerElement.loadVideoWithPlayerVars({autoplay:V,video_id:W,player_params:f}),
y.yield(l.playerElement.getPlayerPromise(),2);r=y.yieldResult;r.addEventListener("onStateChange",function(P){l.onPlayerStateChange(P)});
r.setScreenLayer(l.screenLayer);(R=_.Wh(4))&&l.offerVideoVe&&_.gJ(R,l.offerVideoVe);V&&(l.pauseOtherPlayers(),l.playerElement.focusOnPlayer(),l.playerElement.getPlayer().hideControls(),_.pS(_.w8,function(){l.fadeOutHeaderOverlay()},4E3));
_.ju(y)})};
_.t.onPlayerStateChange=function(W){W===1?this.backgroundPlayerElement&&(W=this.backgroundPlayerElement.player_.getPlayerState(),W!==1&&W!==3||this.backgroundPlayerElement.pause()):W===0&&(_.GS(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.GS(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.t.fadeOutHeaderOverlay=function(){_.GS(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.t.onHeaderTap=function(){if(this.offerVideo){_.GS(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var W;((W=this.playerElement.player_)==null?void 0:W.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(W=_.Wh(4))&&this.offerVideoVe&&_.C0(W,this.offerVideoVe)}};
_.t.getBackgroundImageLayerClass=function(W){return W?"background-image-layer-with-video":""};
_.t.getHeaderClass=function(W){return W?"header-with-video":""};
_.t.getHeaderOverlayClass=function(W){return W?"header-overlay-with-video":""};
_.t.getTitleContainerClass=function(W,l){return W?"title-container-with-video":l?"title-container-without-video-flexible":"title-container-without-video"};
_.t.tierTitleDisplayStatus=function(W){return this.moreThanOne(W)?"hide":"show"};
_.t.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.tY().resolve(_.Sl).getPlayerElement():this.backgroundPlayerElement=_.Jy();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var W=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=W===1||W===3;this.backgroundPlayerElement.pause()}};
_.t.isMiniplayerActive=function(){return _.tY().resolve(_.Sl).isMiniplayerActive()};
_.t.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.GD("selected-tier-changed",this.selectedTier))};
vz.prototype.selectedTierChangedForBinding=vz.prototype.selectedTierChangedForBinding;vz.prototype.onDataChanged=vz.prototype.onDataChanged;vz.prototype.onYtPopupClosed=vz.prototype.onYtPopupClosed;vz.prototype.onYtPopupOpened=vz.prototype.onYtPopupOpened;vz.prototype.onYtServiceRequestError=vz.prototype.onYtServiceRequestError;vz.prototype.onYtServiceRequestCompleted=vz.prototype.onYtServiceRequestCompleted;
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],vz.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],vz.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],vz.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],vz.prototype,"data",void 0);_.a([_.b({value:0}),_.z("design:type",Number)],vz.prototype,"selectedTier",void 0);
_.a([_.b({value:""}),_.z("design:type",String)],vz.prototype,"offerVideo",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],vz.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.a([_.b({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.qg(this)}}),
_.z("design:type",String)],vz.prototype,"playerId",void 0);_.a([_.Aa("tp-yt-paper-dialog-scrollable"),_.z("design:type",Object)],vz.prototype,"scrollable",void 0);_.a([_.Aa("ytd-sponsorships-tier-renderer"),_.z("design:type",Object)],vz.prototype,"tierRenderer",void 0);_.a([_.Aa("#player"),_.z("design:type",Object)],vz.prototype,"playerElement",void 0);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],vz.prototype,"onYtServiceRequestCompleted",null);_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],vz.prototype,"onYtServiceRequestError",null);
_.a([_.XI("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vz.prototype,"onYtPopupOpened",null);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vz.prototype,"onYtPopupClosed",null);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vz.prototype,"onDataChanged",null);
_.a([_.TS("selectedTier"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],vz.prototype,"selectedTierChangedForBinding",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],vz);
_.Z(vz,"ytd-sponsorships-offer-renderer",function(){if(awN!==void 0)return awN;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return awN=W},{mode:_.bD("kevlar_poly_si_batch_j077")?1:2});var zz1;var Hz=function(){var W=_.I.apply(this,arguments)||this;W.buttonOverrides={type:"filled",style:"mono"};return W};
_.v(Hz,_.I);Hz.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}}}}}};
Hz.prototype.backgroundColorChanged=function(){var W,l,V,f=(l=_.k((W=this.data)==null?void 0:W.content,Ty5))==null?void 0:(V=l.backgroundColor)==null?void 0:V.backgroundColor;f&&(W=_.ta(f),_.GS(this.hostElement).querySelector("#banner").style.backgroundColor=W,_.GS(this.hostElement).querySelector("#abstract-art").style.backgroundColor=W)};
Hz.prototype.attached=function(){this.JSC$20607_scroller&&(this.JSC$20607_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20607_scroller.attached&&typeof this.JSC$20607_scroller.attached==="function"&&this.JSC$20607_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Hz.prototype.backgroundColorChanged=Hz.prototype.backgroundColorChanged;_.a([_.b(),_.z("design:type",Object)],Hz.prototype,"data",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Hz.prototype,"ytRendererstamperBehavior",void 0);_.a([_.Aa("#scroller"),_.z("design:type",Object)],Hz.prototype,"JSC$20607_scroller",void 0);_.a([_.b(),_.z("design:type",Object)],Hz.prototype,"buttonOverrides",void 0);
_.a([_.TS("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Hz.prototype,"backgroundColorChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],Hz);
_.Z(Hz,"ytd-sponsorships-promotion-celebration-renderer",function(){if(zz1!==void 0)return zz1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return zz1=W},{mode:_.bD("kevlar_poly_si_batch_j077")?1:2});var N2N;var YIc;var K8=function(){return _.I.apply(this,arguments)||this};
_.v(K8,_.I);K8.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
K8.prototype.computeIsInitiallyChecked=function(W){return W===1};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],K8.prototype,"data",void 0);_.a([_.Aa("#checkbox"),_.z("design:type",Object)],K8.prototype,"checkbox",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],K8);
_.Z(K8,"ytd-subscription-toggle-option-renderer",function(){if(YIc!==void 0)return YIc;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return YIc=W},{mode:1});var Fm=function(){var W=_.I.apply(this,arguments)||this;W.darkerDarkTheme=_.U("web_darker_dark_theme");W.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return W};
_.v(Fm,_.I);Fm.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"}}}};
Fm.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Fm.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var W=_.GS(this.hostElement).querySelector("#options").selected;W=this.data.options[W].subscriptionRadioOptionRenderer.serviceEndpoint;var l=_.GS(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");l&&W&&W.modifyChannelNotificationPreferenceEndpoint&&(l=l.getValue())&&(W.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[l]);_.tY().resolve(_.s6).resolveCommand(W,{form:{element:this.hostElement}});
_.Gt(this.hostElement,"yt-close-popup-action")};
_.rc.Object.defineProperties(Fm.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var W=this.data.options,l=0;l<W.length;l++){var V=W[l].subscriptionRadioOptionRenderer;if(V&&V.selected)return l}return null}}});
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],Fm.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Fm.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],Fm.prototype,"eventForwardingBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Fm.prototype,"ytRendererBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],Fm.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],Fm.prototype,"darkerDarkTheme",void 0);_.a([_.G("data.options"),_.z("design:type",Object),_.z("design:paramtypes",[])],Fm.prototype,"initialIndex",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],Fm);
_.Z(Fm,"ytd-subscription-notification-options-renderer",function(){if(N2N!==void 0)return N2N;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return N2N=W},{mode:1});var xjL;var GK=function(){return _.I.apply(this,arguments)||this};
_.v(GK,_.I);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],GK.prototype,"data",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],GK);
_.Z(GK,"ytd-tvfilm-offer-groups-renderer",function(){if(xjL!==void 0)return xjL;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return xjL=W},{mode:1});var ez5;var bR=function(){var W=_.I.apply(this,arguments)||this;W.darkerDarkTheme=_.U("web_darker_dark_theme");return W};
_.v(bR,_.I);_.t=bR.prototype;_.t.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"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.t.computeThumbnailClass=function(W){return W.thumbnailOverlays?W.isShow?"thumbnail-show":"thumbnail-movie":W.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.t.computeCommerceSectionClass=function(W){return W.offers&&W.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.t.computeTitleClass=function(W){return W.offers&&W.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.t.onDataChanged=function(){[].concat(_.QK(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(W){W.onShow()})};
bR.prototype.onDataChanged=bR.prototype.onDataChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],bR.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],bR.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],bR.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],bR.prototype,"darkerDarkTheme",void 0);
_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],bR.prototype,"onDataChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],bR);
_.Z(bR,"ytd-ypc-offers-overlay-renderer",function(){if(ez5!==void 0)return ez5;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return ez5=W},{mode:_.bD("kevlar_poly_si_batch_j028")?1:2});var qI5;var hzL=function(){this.usedMethods=new Set};
hzL.prototype.add=function(W){this.usedMethods.add(W)};
hzL.prototype.reset=function(){this.usedMethods.clear()};var $je=function(W,l){this.query=W;this.previousSearchQuery=l;this.id=SIe++;if(!Ex1){l=_.M4("SBOX_SETTINGS");W="https://"+((l==null?void 0:l.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var V=l==null?void 0:l.REQUEST_LANGUAGE;V&&(W+="&hl="+V);(V=l==null?void 0:l.REQUEST_DOMAIN)&&(W+="&gl="+V);W+="&client=youtube&gs_ri=youtube";(V=l==null?void 0:l.SUGG_EXP_ID)&&(W+="&sugexp="+encodeURIComponent(V));(V=l==null?void 0:l.PSUGGEST_TOKEN)&&(W+="&tok="+V);(l=
l==null?void 0:l.SESSION_INDEX)&&(W+="&authuser="+l);_.U("desktop_enable_visual_suggest")&&(W+="&h=180&w=320&ytvs=1");Ex1=W}},W87=function(W){var l="q="+encodeURIComponent(W.query);
W.previousSearchQuery&&(l+="&pq="+encodeURIComponent(W.previousSearchQuery));return l},lFL=function(){var W=_.M4("SBOX_SETTINGS"),l={};
if(W==null?0:W.SEND_VISITOR_DATA)l["X-Goog-Visitor-Id"]=W==null?void 0:W.VISITOR_DATA;return l},Vx1=function(W){var l=Ex1;
l+="&gs_id="+W.id.toString(36);l+="&q="+encodeURIComponent(W.query);l+="&cp="+W.query.length;W.previousSearchQuery&&(l+="&pq="+encodeURIComponent(W.previousSearchQuery));(W=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(l+="&video_id="+W);return l},SIe=0,Ex1="";var fFH=_.wo.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,rB7=_.wo.SEARCH_ENTITY_SUGGESTION_MOVIE,Rh4=_.wo.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,txL=_.wo.SEARCH_ENTITY_SUGGESTION_TV_SHOW,sa1=function(W,l){this.text=W;this.bold=l},L8Z=function(W,l,V){this.input=l;
this.index=V;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=W[0];this.type=W[1];this.subtypes=W[2];var f;this.displayText=hc((f=W[3])==null?void 0:f.b);var r;this.ignoredPrefix=hc((r=W[3])==null?void 0:r.a);var R,y;this.hasNewVideo=((R=W[3])==null?void 0:(y=R.zam)==null?void 0:y.toString())==="true"?!0:!1;var P;this.visualSuggestUrl=(P=W[3])==null?void 0:P.zai;var n;this.entityType=hc((n=W[3])==null?void 0:n.zap);var B;this.entityName=hc((B=W[3])==null?void 0:B.zao);var d;l=hc((d=
W[3])==null?void 0:d.zaf);var J;this.entityMid=(J=W[3])==null?void 0:J.zae;d=xe7(this.subtypes,this.entityMid);if(l&&d){if(l){J="";switch(d){case "YOUTUBE_ENTITY_TYPE_SONG":J=Rh4;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":J=fFH;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":J=txL;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":J=rB7}d=d==="YOUTUBE_ENTITY_TYPE_SONG"||d==="YOUTUBE_ENTITY_TYPE_ALBUM"?J+" \u2022  \u2022 "+l:l}else d="";this.entitySubtitle=d}var D;this.externalChannelId=(D=W[3])==null?void 0:D.zav;var u;
this.entityThumbnailAttributionUrl=(u=W[3])==null?void 0:u.zaq},gqe=function(W,l){var V=[],f,r=(f=W.displayText)!=null?f:W.text;
(l==null?0:l.useEntityName)&&yBL(W)&&W.entityName&&(r=W.entityName);if(W.type===33)return V.push(new sa1(r,!1)),V;if(r.length>=W.input.length&&r.substring(0,W.input.length)===W.input)V.push(new sa1(W.input,!1)),V.push(new sa1(r.substring(W.input.length),!0));else{var R=new Set(W.input.split(/\s/)),y=r.split(/\s/);V=y.map(function(P,n){return new sa1(P.trim()+(n===y.length-1?"":" "),!R.has(P))})}return V},yBL=function(W){var l=!!xe7(W.subtypes);
W=!!W.entityMid;return l||W};var PfZ=function(W){this.rawResponse=["",[],{}];this.suggestions=[];try{var l=JSON.parse(ew2(W));if(typeof l==="object"&&l!==null)this.rawResponse=l;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(f){console.log("Suggest: Failed to parse SuggestResponse!");return}var V=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(f,r){return new L8Z(f,V,r)})};var nq4=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new hzL;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20644_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},Cfc,cBH=function(){Cfc||(Cfc=new nq4);
return Cfc};
nq4.prototype.updateSuggestions=function(W){var l=this;this.availableSuggestions.forEach(function(V){l.previousSuggestions[V]=!0});
this.availableSuggestions=W.map(function(V){var f=V.type.toString();V.subtypes.length>0&&(f+="i"+V.subtypes.join("i"),f+="k"+V.suggestionSources.COMPLETE_SERVER.toString());return f})};
var BRH=function(W,l){var V=Date.now();W.firstEditTime<0&&(W.firstEditTime=V);l&&(W.lastQueryBuildTime=V);W.lastEditTime=V};
nq4.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20644_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var dOL=function(W){var l="";W.availableSuggestions.forEach(function(r){delete W.previousSuggestions[r]});
for(var V=_.L(Object.keys(W.previousSuggestions)),f=V.next();!f.done;f=V.next())f=f.value,W.previousSuggestions[f]&&(l+=(l?"j":"")+f);return l},JB2=function(W,l){var V=[];
l&&(V[1]=l.toString());V[0]="youtube";V[7]=Date.now()-W.startTime;V[6]=W.sessionNumber;W.zeroPrefixSuggestionCount>=0&&(V[33]=W.zeroPrefixSuggestionCount);V[13]=W.outOfSyncResponseCount;if(W.availableSuggestions.length>0){for(var f=l="",r=0,R=_.L(W.availableSuggestions),y=R.next();!y.done;y=R.next())y=y.value,y!==f&&(r>1&&(l+="l"+r),l+=(f?"j":"")+y,r=0,f=y),r+=1;r>1&&(l+="l"+r);V[3]=l}V[35]=dOL(W);W.selectedSuggestionIndex>=0&&(V[2]=W.selectedSuggestionIndex);var P;if(l=(P=_.M4("SBOX_SETTINGS"))==
null?void 0:P.SUGG_EXP_ID)V[19]=W.normalize(l),P=0,W.experimentTriggeredBeforeFinal&&(P|=1),W.experimentTriggeredFinal&&(P|=2),V[20]=P;V[26]=Array.from(W.inputMethodsTracker.usedMethods).join("j");if(W.JSC$20644_totalRoundTripTime>0){V[15]=W.JSC$20644_totalRoundTripTime;V[14]=W.maxRoundTripTime;P=[];for(r=l=0;r<10;r++)f=W.roundTripTimeHistogram[r],f===0?l++:(l>1?P.push(r+"-"+f):l===1?P.push("0j"+f):P.push(f.toString()),l=0);P=P.join("j");V[16]=P}W.zeroPrefixRoundTripTime>0&&(V[36]=W.zeroPrefixRoundTripTime);
W.lastQueryBuildTime>0&&(V[18]=W.lastQueryBuildTime-W.startTime);W.firstEditTime>0&&(V[4]=W.firstEditTime-W.startTime);W.lastEditTime>0&&(V[5]=W.lastEditTime-W.startTime);return V.join(".")};
nq4.prototype.normalize=function(W){return W.replaceAll(".","-")};
var DOH=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var p8=function(){var W=_.I.apply(this,arguments)||this;W.microphoneSpinnerActive=!1;W.noAnimations=!1;W.boundExitClick=function(){W.onExitButtonClick()};
W.speechOverlayClassName="";W.isLevelAnimating=!1;W.playCloseDialogAudioFeedback=!0;W.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return W};
_.v(p8,_.I);_.t=p8.prototype;_.t.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.t.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=t9w()};
_.t.dataChanged=function(){this.logDialog()};
_.t.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var W;(W=this.manager.audioPlayer)!=null&&(W.JSC$19965_audioEnabled=!1)}this.manager.stop();(W=this.manager.audioPlayer)!=null&&(W.JSC$19965_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.t.handleSpeechQueryCompleteAction=function(W){var l=W.navigationAction;l&&(W.trackingParams&&_.Qq().graftServerVe(W.trackingParams,this.dialogVe,5),_.FN(this.hostElement,"yt-navigate",{endpoint:l,tempData:this.getNavigationParams(l),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.t.onExitButtonClick=function(){this.closeDialog()};
_.t.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var W;if((W=this.manager)!=null){var l;(l=W.audioPlayer)==null||II(l,"failure");W.setState("microphone-off");W.stop()}}else(W=this.manager)==null||W.start()};
_.t.transcriptionChanged=function(){var W,l;(((W=this.transcription)==null?0:W.low)||((l=this.transcription)==null?0:l.high))&&this.setState("transcribing",this.transcription)};
_.t.stateChanged=function(){this.setState(this.state,this.transcription)};
_.t.logDialog=function(){var W;(W=this.data)!=null&&W.trackingParams&&(W=_.Qq(),_.Ob(W,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=W.graftServerVe(this.data.trackingParams,void 0,5))};
_.t.getNavigationParams=function(W){var l={};if(_.U("web_yt_searchbox")){var V=cBH();V.inputMethodsTracker.add(6);V=JB2(V,15);l.gs_l=V;var f;l.oq=((f=_.k(W,_.Om))==null?void 0:f.query)||""}else if(W=window.ytvoicesearchloggingparams){if(W=W())l.oq=W.oq,l.gs_l=W.gs_l}else _.x2(Error("Bl"));return l};
_.t.closeDialog=function(){_.Gt(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.t.setState=function(W,l){if(this.data){var V=this.data,f={};switch(W){case "listening":f={headerText:V.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:V.microphoneButtonAriaLabel};break;case "timeout":f={headerText:V.promptHeader,microphoneState:"try-again",microphoneLabel:V.promptMicrophoneLabel,microphoneAriaLabel:V.promptMicrophoneLabel};break;case "microphone-off":f={headerText:V.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:V.promptMicrophoneLabel,
microphoneAriaLabel:V.promptMicrophoneLabel};break;case "transcribing":(l==null?0:l.low)||(l==null?0:l.high)?f={transcriptionLow:l==null?void 0:l.low,transcriptionHigh:l==null?void 0:l.high,microphoneState:"speaking",microphoneAriaLabel:V.microphoneButtonAriaLabel}:f={headerText:V.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:V.microphoneButtonAriaLabel};break;case "processing":f={headerText:V.loadingHeader,microphoneState:"processing",microphoneAriaLabel:V.microphoneButtonAriaLabel};
break;case "offline":f={headerText:V.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:V.connectionErrorMicrophoneLabel,microphoneAriaLabel:V.connectionErrorMicrophoneLabel};break;case "permission":f={headerText:V.permissionsHeader,bodyLine1:V.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:V.permissionsSubtext};break;case "permission-denied":f={headerText:V.disabledHeader,bodyLine1:V.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:V.disabledSubtext}}f.className=
W;this.speechOverlayState=f;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.t.setMicrophoneState=function(W){var l=this.isLevelAnimating;this.isLevelAnimating=W==="speaking";!l&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=W==="processing"&&!this.noAnimations};
_.t.setClass=function(W){this.speechOverlayClassName&&_.pG(this.hostElement,this.speechOverlayClassName,!1);W&&(this.speechOverlayClassName=W,_.pG(this.hostElement,W,!0))};
_.t.runLevelAnimation=function(){var W=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var l=1+Math.random()*.75,V=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+V/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+l+")");_.w8.addJob(function(){W.runLevelAnimation()},3,V)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
p8.prototype.stateChanged=p8.prototype.stateChanged;p8.prototype.transcriptionChanged=p8.prototype.transcriptionChanged;p8.prototype.onPopupClosed=p8.prototype.onPopupClosed;p8.prototype.dataChanged=p8.prototype.dataChanged;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],p8.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],p8.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],p8.prototype,"rendererStamperBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],p8.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],p8.prototype,"eventForwardingBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],p8.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],p8.prototype,"speechOverlayState",void 0);
_.a([_.b(),_.z("design:type",Object)],p8.prototype,"microphoneSpinnerActive",void 0);_.a([_.b({type:_.U("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.z("design:type",Object)],p8.prototype,"noAnimations",void 0);_.a([_.b({selector:function(W){var l;return(l=W.voiceSearch)==null?void 0:l.transcription}}),
_.z("design:type",Object)],p8.prototype,"transcription",void 0);_.a([_.b({selector:function(W){var l;return(l=W.voiceSearch)==null?void 0:l.overlay}}),
_.z("design:type",String)],p8.prototype,"state",void 0);_.a([_.b(),_.z("design:type",Object)],p8.prototype,"boundExitClick",void 0);_.a([_.Aa("#microphone-levels"),_.z("design:type",HTMLElement)],p8.prototype,"level",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],p8.prototype,"dataChanged",null);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],p8.prototype,"onPopupClosed",null);
_.a([_.zS("transcription"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],p8.prototype,"transcriptionChanged",null);_.a([_.zS("state"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],p8.prototype,"stateChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],p8);
_.Z(p8,"ytd-voice-search-dialog-renderer",function(){if(qI5!==void 0)return qI5;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return qI5=W},{mode:1});var UO1;var oF=function(){var W=_.I.apply(this,arguments)||this;W.isOverlay=!1;W.hidden=!1;return W};
_.v(oF,_.I);_.t=oF.prototype;_.t.onPopupClosed=function(){this.toggleIconState(!1)};
_.t.computeIcon=function(){var W,l,V;return(l=_.k((W=this.data)==null?void 0:W.icon,Zf5))==null?void 0:(V=l.icon)==null?void 0:V.iconType};
_.t.computeIconBadgeShape=function(){var W;return{iconBadgeType:"cart",iconBadgeText:(W=this.iconBadgeEntity)==null?void 0:W.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.t.onClick=function(){var W;(W=this.data)!=null&&W.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.t.computeHidden=function(W){return!W};
_.t.toggleIconState=function(W){this.iconButton&&(this.iconButton.pressed=W)};
oF.prototype.onPopupClosed=oF.prototype.onPopupClosed;_.a([_.F(_.dx),_.z("design:type",Object)],oF.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],oF.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],oF.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],oF.prototype,"isOverlay",void 0);
_.a([_.b({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.z("design:type",Object)],oF.prototype,"hidden",void 0);_.a([_.b({selectorArgs:["data.iconBadgeEntityKey"],selector:function(W,l){return _.mL(W.entities,"iconBadgeEntity",l)}}),
_.z("design:type",Object)],oF.prototype,"iconBadgeEntity",void 0);_.a([_.Aa("yt-icon-button"),_.z("design:type",HTMLButtonElement)],oF.prototype,"iconButton",void 0);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],oF.prototype,"onPopupClosed",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],oF);
_.Z(oF,"ytd-icon-badge-topbar-button-renderer",function(){if(UO1!==void 0)return UO1;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return UO1=W},{mode:1});var uFZ;var j2=function(){var W=_.I.apply(this,arguments)||this;W.premiumOptions=[];W.darkerDarkTheme=_.U("web_darker_dark_theme");return W};
_.v(j2,_.I);j2.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.rc.Object.defineProperties(j2.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],j2.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],j2.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Array)],j2.prototype,"premiumOptions",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],j2.prototype,"darkerDarkTheme",void 0);_.a([_.G("premiumOptions"),_.z("design:type",Object),_.z("design:paramtypes",[])],j2.prototype,"hasPremiumOptions",null);
_.a([_.A({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],j2);
_.Z(j2,"ytd-offline-promo-content",function(){if(uFZ!==void 0)return uFZ;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return uFZ=W},{mode:1});var kq4;var IF=function(){var W=_.I.apply(this,arguments)||this;W.premiumOptions=[];return W};
_.v(IF,_.I);IF.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var W;this.premiumOptions=YZc((W=this.data)==null?void 0:W.formats)};
IF.prototype.onClickSubmit=function(){_.Gt(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var W;(W=_.Jy())==null||W.pause()};
IF.prototype.attached=function(){this.JSC$20664_scroller&&(this.JSC$20664_scroller.dialogElement=this.hostElement.parentNode)};
_.rc.Object.defineProperties(IF.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
IF.prototype.dataChanged=IF.prototype.dataChanged;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],IF.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],IF.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],IF.prototype,"data",void 0);
_.a([_.b({computed:"computeIcon_(data.headersIcon)",value:""}),_.z("design:type",String)],IF.prototype,"headersIcon",void 0);_.a([_.b(),_.z("design:type",Array)],IF.prototype,"premiumOptions",void 0);_.a([_.Aa("#scroller"),_.z("design:type",Object)],IF.prototype,"JSC$20664_scroller",void 0);_.a([_.G("headersIcon"),_.z("design:type",Object),_.z("design:paramtypes",[])],IF.prototype,"showIcon",null);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],IF.prototype,"dataChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],IF);
_.Z(IF,"ytd-offline-promo-renderer",function(){if(kq4!==void 0)return kq4;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return kq4=W},{mode:1});var vq2;var iR=function(){var W=_.I.apply(this,arguments)||this;W.playbackPauseInterval=NaN;W.isLoading=!1;W.hasError=!1;W.dialogClass="";W.youtubeLabel=_.wg("LOGO_ALT_LABEL",{},"YouTube Home");W.logoName="yt-logos-ext:yt-logo-updated";W.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return W};
_.v(iR,_.I);_.t=iR.prototype;_.t.onDataChange=function(){var W;if(this.showEOMV1Text=!((W=this.data)==null||!W.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.t.attached=function(){this.pausePlayer()};
_.t.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.t.handleLangSelect=function(W){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[W.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.t.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.t.handleSaveConsent=function(W){var l=this;this.showLoadingSpinner();this.showLoadingSpinner();xT7(_.k(W,OAL)).catch(function(V){_.Qe(new _.bP("Something went wrong when save consent "+(V.message?V.message:V)+"."));l.hideLoadingSpinner();l.showErrorMessage()})};
_.t.handleDisablePersonalization=function(W){var l=this;this.showLoadingSpinner();eM7(_.k(W,ZAw)).then(function(){l.dialog.close();l.resumePlayer()}).catch(function(V){_.Qe(new _.bP("Something went wrong when disable personalization "+(V.message?V.message:V)+"."));
l.hideLoadingSpinner();l.showErrorMessage()})};
_.t.showLoadingSpinner=function(){var W=this;this.showSpinnerJobId=_.w8.addLowPriorityJob(function(){W.isLoading=!0},500)};
_.t.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.w8.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.t.showErrorMessage=function(){var W=this;this.hasError=!0;_.w8.addLowPriorityJob(function(){W.hasError=!1},2E3)};
_.t.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.BA(function(){try{var W=_.Jy();W&&W.pause()}catch(l){}},100))};
_.t.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var W=_.Jy();W&&W.play()}catch(l){}};
_.rc.Object.defineProperties(iR.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.eomV1Text)return[];W=[];for(var l=["SHIELD","WARNING","BAR_CHART"],V=this.data.eomV1Text.essentialCookieMsg.items,f=0;f<l.length&&f<V.length;f++)W.push({icon:l[f],text:V[f]});return W}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.eomV1Text)return[];W=[];for(var l=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],V=this.data.eomV1Text.nonEssentialCookieMsg.items,f=0;f<l.length&&f<V.length;f++)W.push({icon:l[f],text:V[f]});return W}}});
iR.prototype.onDataChange=iR.prototype.onDataChange;_.a([_.b(),_.z("design:type",Object)],iR.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Boolean)],iR.prototype,"showEOMV1Text",void 0);_.a([_.b(),_.z("design:type",Object)],iR.prototype,"isLoading",void 0);_.a([_.b(),_.z("design:type",Object)],iR.prototype,"hasError",void 0);_.a([_.b(),_.z("design:type",Number)],iR.prototype,"showSpinnerJobId",void 0);_.a([_.b(),_.z("design:type",Object)],iR.prototype,"dialogClass",void 0);
_.a([_.Aa("#dialog"),_.z("design:type",Object)],iR.prototype,"dialog",void 0);_.a([_.Aa("#cb-header"),_.z("design:type",HTMLElement)],iR.prototype,"header",void 0);_.a([_.Aa("#lang-select"),_.z("design:type",HTMLElement)],iR.prototype,"langSelect",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],iR.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],iR.prototype,"ytComponentBehavior",void 0);
_.a([_.b(),_.z("design:type",String)],iR.prototype,"youtubeLabel",void 0);_.a([_.b(),_.z("design:type",Object)],iR.prototype,"logoName",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],iR.prototype,"onDataChange",null);_.a([_.G("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],iR.prototype,"eomEssentialCookieMsgItems",null);
_.a([_.G("data"),_.z("design:type",Array),_.z("design:paramtypes",[])],iR.prototype,"eomNonEssentialCookieMsgItems",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],iR);
_.Z(iR,"ytd-consent-bump-v2-lightbox",function(){if(vq2!==void 0)return vq2;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return vq2=W},{mode:1});var HDw;var mF=function(){return _.I.apply(this,arguments)||this};
_.v(mF,_.I);mF.prototype.ready=function(){if(!_.K7()||lh7)var W=!0;else lh7=!0,W=!1;W||(W=document.querySelector("ytd-app"),W||(W=document.body),this.internalLightBox=_.GS(W).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.a([_.b(),_.z("design:type",Object)],mF.prototype,"data",void 0);_.a([_.Aa("#lightbox"),_.z("design:type",Object)],mF.prototype,"lightBox",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],mF);
_.Z(mF,"ytd-consent-bump-v2-renderer",function(){if(HDw!==void 0)return HDw;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return HDw=W},{mode:1});var K85;var F8Y;var Gq4;var Xm=function(){return _.I.apply(this,arguments)||this};
_.v(Xm,_.I);_.t=Xm.prototype;_.t.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&PKZ(this.toastManager,this.toastType)};
_.t.open=function(W){this.toast&&(this.ephemeralAction&&_.tY().resolve(_.Rq).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=W!=null?W:0,this.toastManager.enqueue(this.toast,W)):this.toast.open())};
_.t.close=function(W){var l;(l=this.toast)==null||l.close();this.toastManager&&W===1&&PKZ(this.toastManager,W)};
_.t.refit=function(){var W;(W=this.toast)==null||W.refit()};
_.t.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var W;(W=this.toast)==null||W.close()}};
_.t.setVerticalOffset=function(W){this.toast&&(this.toast.verticalOffset=W,this.toast.fit())};
_.t.computeButtonClass_=function(W){return W?"toast-button":""};
_.t.computeText_=function(W){return _.dE(W)};
_.t.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.GD("toast-opened-changed",this.toastOpened))};
_.t.updateToastOpenedFromBinding=function(W){this.toastOpened=W.detail.value};
_.rc.Object.defineProperties(Xm.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var W,l,V=(W=this.data)==null?void 0:(l=W.actionButton)==null?void 0:l.buttonRenderer;return(V==null?void 0:V.command)||(V==null?void 0:V.serviceEndpoint)||(V==null?void 0:V.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 W=[],l;((l=this.data)==null?0:l.responseText)&&W.push(_.dE(this.data.responseText));var V;((V=this.data)==null?0:V.subText)&&W.push(_.dE(this.data.subText));var f,r;if((f=this.data)==null?0:(r=f.actionButton)==null?0:r.buttonRenderer){var R,y;W.push(((R=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(y=R.accessibilityData)==null?void 0:y.label)||_.dE(this.data.actionButton.buttonRenderer.text))}return W.filter(function(P){return P}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var W,l;return(l=(W=this.toast)==null?void 0:W.opened)!=null?l:!1}}});
Xm.prototype.toastOpenedChangedForBinding=Xm.prototype.toastOpenedChangedForBinding;Xm.prototype.toastOpenedChanged=Xm.prototype.toastOpenedChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],Xm.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],Xm.prototype,"ytEventForwardingBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Xm.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],Xm.prototype,"duration",void 0);
_.a([_.b(),_.z("design:type",Number)],Xm.prototype,"toastType",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],Xm.prototype,"useCloseButton",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],Xm.prototype,"closeToastOnActionButtonClick",void 0);_.a([_.b({value:function(){return _.wg("SBOX_INAPPROPRIATE_CANCEL")}}),
_.z("design:type",String)],Xm.prototype,"closeButtonAriaLabel",void 0);_.a([_.b(),_.z("design:type",Boolean)],Xm.prototype,"toastOpened",void 0);_.a([_.b(),_.z("design:type",Boolean)],Xm.prototype,"hasOpened",void 0);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],Xm.prototype,"command",null);_.a([_.G("labelText","command","duration"),_.z("design:type",Object),_.z("design:paramtypes",[])],Xm.prototype,"ephemeralAction",null);
_.a([_.G("ephemeralAction"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],Xm.prototype,"hasEphemeralAction",null);_.a([_.Aa("#toast"),_.z("design:type",Object)],Xm.prototype,"toast",void 0);_.a([_.b({value:function(){return{style:"call-to-action-inverse"}}}),
_.z("design:type",Object)],Xm.prototype,"buttonOverrides",void 0);_.a([_.b({value:{style:"mono-inverse"}}),_.z("design:type",Object)],Xm.prototype,"closeButtonOverrides",void 0);_.a([_.b({value:function(){return _.tY().resolve(_.R0(_.WN))}}),
_.z("design:type",Object)],Xm.prototype,"toastManager",void 0);_.a([_.G("data.responseText","data.subText","data.actionButton"),_.z("design:type",Object),_.z("design:paramtypes",[])],Xm.prototype,"labelText",null);_.a([_.TS("toastOpened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Xm.prototype,"toastOpenedChanged",null);
_.a([_.TS("toastOpened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],Xm.prototype,"toastOpenedChangedForBinding",null);_.a([_.Vq({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Xm);
_.Z(Xm,"yt-notification-action-renderer",function(){if(Gq4===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;F8Y===void 0&&(F8Y=document.createElement("template"));var f=F8Y;V.call(l,f.content.cloneNode(!0),W.content.firstChild);Gq4=W}W=Gq4;return W},{mode:2});var TK=function(){var W=_.I.apply(this,arguments)||this;W.duration=4E3;W.downloadingCount=0;W.downloadedCount=0;W.downloadingOnlySmartDownloads=!1;W.sessionTotalDownloads=0;W.sessionDownloaded=0;W.previousSessionsDownloaded=0;W.totalDownloadPercentage=0;W.currentDownloadProgress=0;W.currentDownloadPercentage=0;W.isLeaderTab=!0;W.isFullScreen=!1;W.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};W.boundBeforeUnload=function(l){W.isLeaderTab&&W.downloadingCount>0&&(l.preventDefault(),
l.returnValue=!0)};
return W};
_.v(TK,_.I);_.t=TK.prototype;
_.t.open=function(){this.updateDownloadState();if(this.data){var W=this.sessionDownloaded+1,l=this.sessionTotalDownloads>1?_.wg("VIDEOS_DOWNLOADING_RATIO",{downloaded:W.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+W+"/"+this.sessionTotalDownloads):_.wg("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(l=this.sessionTotalDownloads>1?_.wg("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:W.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
W+"/"+this.sessionTotalDownloads):_.wg("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));W=this.isLeaderTab?_.wg("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.dE(this.data.responseText)!==l||_.dE(this.data.subText)!==W)this.set("data.responseText",_.Bl(l)),this.set("data.subText",_.Bl(W)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.t.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.t.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.t.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.t.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var W=this.downloadedCount-this.previousSessionsDownloaded;W<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-W);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.t.handleFullscreenChange=function(W){(this.isFullScreen=W)||this.updatePopup()};
TK.prototype.updateCurrentDownloadProgress=TK.prototype.updateCurrentDownloadProgress;TK.prototype.updatePopup=TK.prototype.updatePopup;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],TK.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],TK.prototype,"ytEventForwardingBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],TK.prototype,"actionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],TK.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],TK.prototype,"duration",void 0);_.a([_.b({selector:function(W){return _.OES(W.entities).length}}),
_.z("design:type",Object)],TK.prototype,"downloadingCount",void 0);_.a([_.b({selector:fA2}),_.z("design:type",Object)],TK.prototype,"downloadedCount",void 0);_.a([_.b({selector:function(W){var l=_.OES(W.entities);return VEZ(W.entities,l)}}),
_.z("design:type",Object)],TK.prototype,"downloadingOnlySmartDownloads",void 0);_.a([_.b(),_.z("design:type",Object)],TK.prototype,"sessionTotalDownloads",void 0);_.a([_.b(),_.z("design:type",Object)],TK.prototype,"sessionDownloaded",void 0);_.a([_.b(),_.z("design:type",Object)],TK.prototype,"previousSessionsDownloaded",void 0);_.a([_.b(),_.z("design:type",Object)],TK.prototype,"totalDownloadPercentage",void 0);
_.a([_.b({selector:function(W){var l;W=(l=_.OES(W.entities))!=null?l:[];return W.length>0?_.jHx(W.slice(-1)):0}}),
_.z("design:type",Object)],TK.prototype,"currentDownloadProgress",void 0);_.a([_.b(),_.z("design:type",Object)],TK.prototype,"currentDownloadPercentage",void 0);_.a([_.b({selector:_.x5S}),_.z("design:type",Object)],TK.prototype,"isLeaderTab",void 0);_.a([_.Aa("yt-notification-action-renderer"),_.z("design:type",Object)],TK.prototype,"notificationActionRenderer",void 0);
_.a([_.zS("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TK.prototype,"updatePopup",null);_.a([_.zS("currentDownloadProgress"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],TK.prototype,"updateCurrentDownloadProgress",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],TK);
_.Z(TK,"ytd-video-download-toast-renderer",function(){if(K85!==void 0)return K85;var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return K85=W},{mode:1});var bDw;var prY;var wV=function(){return _.I.apply(this,arguments)||this};
_.v(wV,_.I);wV.prototype.computeIsRedLogo=function(W,l){!W&&l&&(W=l);return W==="YOUTUBE_RED_LOGO"||W==="YOUTUBE_PREMIUM_LOGO"};
wV.prototype.computeLogoName=function(W){W=this.componentBehavior.computeIcon_(W);return W===""?"yt-logos-ext:yt-logo-updated":W};
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],wV.prototype,"componentBehavior",void 0);_.a([_.b({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.z("design:type",Boolean)],wV.prototype,"isRedLogo",void 0);_.a([_.b({computed:"computeLogoName(data)"}),_.z("design:type",String)],wV.prototype,"logoName",void 0);_.a([_.b({value:{}}),_.z("design:type",Object)],wV.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Object)],wV.prototype,"logoType",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-logo"})],wV);
_.Z(wV,"ytd-logo",function(){if(prY!==void 0)return prY;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return prY=W},{mode:_.bD("kevlar_poly_si_batch_j074")?1:2});var A7=function(){var W=_.I.apply(this,arguments)||this;W.animationRef={};return W};
_.v(A7,_.I);_.t=A7.prototype;_.t.attached=function(){document.addEventListener("yt-navigate-finish",_.mz(this,this.logYoodle))};
_.t.detached=function(){document.removeEventListener("yt-navigate-finish",_.mz(this,this.logYoodle))};
_.t.logYoodle=function(){var W,l;if((W=this.data)==null?0:(l=W.loggingDirectives)==null?0:l.trackingParams)this.ytRendererBehavior.markDirty(),_.Qq().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.t.computeHideImg=function(W,l){return!!W||!!l};
_.t.computeHideYtdLogo=function(W,l){return!W||!!l};
_.t.computeHideLottie=function(W){return!W};
_.t.computeIsRedLogo=function(W){return W==="YOUTUBE_RED_LOGO"||W==="YOUTUBE_PREMIUM_LOGO"};
_.t.renderLogoEntity=function(){var W=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),l=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),V=this.getLogoTitleText(this.data),f=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==W&&(this.url=W);this.animatedUrl!==l&&(this.animatedUrl=l);this.logoTitleText!==V&&(this.logoTitleText=V);this.lottieUrl!==f&&(this.lottieUrl=f,this.lottiePlayerProps=this.computeLottiePlayerProps(f))};
_.t.getSanitizedThumbnail=function(W){return W&&W.thumbnails?_.qvY(W.thumbnails,122)||"":""};
_.t.getThumbnailUrl=function(W,l){if(!l)return"";var V,f;W=W?(V=l.darkThemeLogo)==null?void 0:V.thumbnail:(f=l.lightThemeLogo)==null?void 0:f.thumbnail;return this.getSanitizedThumbnail(W)};
_.t.getAnimatedThumbnailUrl=function(W,l){return l?this.getSanitizedThumbnail(W?l.darkThemeAnimatedLogo:l.lightThemeAnimatedLogo):""};
_.t.getLogoTitleText=function(W){if(W)return _.dE(W.tooltipText)};
_.t.computeLogoIcon=function(W,l){if(l){var V,f;return W?(V=l.darkThemeLogo)==null?void 0:V.icon:(f=l.lightThemeLogo)==null?void 0:f.icon}};
_.t.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.t.getLottieUrl=function(W,l){var V,f,r,R;return W?l==null?void 0:(V=l.darkThemeLogo)==null?void 0:(f=V.lottieAnimation)==null?void 0:f.url:l==null?void 0:(r=l.lightThemeLogo)==null?void 0:(R=r.lottieAnimation)==null?void 0:R.url};
_.t.computeLottiePlayerProps=function(W){if(W){var l;if((l=this.animationRef)==null?0:l.lottieEl){var V;(V=this.animationRef)==null||V.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:W,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.t.onLottieError=function(){this.data&&this.lottieUrl&&_.FN(this.hostElement,"yoodle-error")};
_.t.onImgError=function(){this.data&&!this.lottieUrl&&_.FN(this.hostElement,"yoodle-error")};
A7.prototype.playAnimation=A7.prototype.playAnimation;A7.prototype.renderLogoEntity=A7.prototype.renderLogoEntity;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],A7.prototype,"data",void 0);_.a([_.b({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.z("design:type",Boolean)],A7.prototype,"hideImg",void 0);
_.a([_.b({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.z("design:type",Boolean)],A7.prototype,"hideYtdLogo",void 0);_.a([_.b({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.z("design:type",Boolean)],A7.prototype,"hideLottie",void 0);_.a([_.b({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.z("design:type",Boolean)],A7.prototype,"isRedLogo",void 0);
_.a([_.b(),_.z("design:type",Boolean)],A7.prototype,"useDarkThemeYoodle",void 0);_.a([_.b(),_.z("design:type",String)],A7.prototype,"url",void 0);_.a([_.b(),_.z("design:type",String)],A7.prototype,"animatedUrl",void 0);_.a([_.b(),_.z("design:type",String)],A7.prototype,"logoTitleText",void 0);_.a([_.b({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.z("design:type",Object)],A7.prototype,"logoIcon",void 0);_.a([_.b(),_.z("design:type",Object)],A7.prototype,"logoType",void 0);
_.a([_.b(),_.z("design:type",String)],A7.prototype,"lottieUrl",void 0);_.a([_.b(),_.z("design:type",Object)],A7.prototype,"lottiePlayerProps",void 0);_.a([_.b(),_.z("design:type",Object)],A7.prototype,"animationRef",void 0);_.a([_.TS("data"),_.TS("useDarkThemeYoodle"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],A7.prototype,"renderLogoEntity",null);
_.a([_.XI("click"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],A7.prototype,"playAnimation",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],A7);
_.Z(A7,"ytd-yoodle-renderer",function(){if(bDw!==void 0)return bDw;var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return bDw=W},{mode:_.bD("kevlar_poly_si_batch_j074")?1:2});var oqc;var jac;var IF5=_.Rp.currentPageTypeSelector,iDN=_.Rp.currentPageSubTypeSelector,QZ=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return W};
_.v(QZ,_.I);_.t=QZ.prototype;_.t.onYoodleError=function(){_.U("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.t.computeLogoName=function(W){W=this.componentBehavior.computeIcon_(W);return W===""?"yt-logos-ext:yt-logo-updated":W};
_.t.computeTitle=function(W,l,V){return V&&(l==null?0:l.tooltipText)?_.dE(l.tooltipText):_.dE(W)};
_.t.computeAriaLabel=function(W,l,V){return V&&(l==null?0:l.tooltipText)?_.dE(W):""};
_.t.computeShowYoodle=function(W,l,V){return!W||!l&&!!V&&!_.MC.isEmpty(V)};
_.t.onNavigateHomeAction=function(){if(_.U("kevlar_miniplayer_navigate_home_from_app_killswitch")){var W;(W=_.GS(this.hostElement).querySelector(".yt-simple-endpoint"))==null||W.click()}};
_.t.computeLogoHref=function(W,l,V){var f;(V==null?0:V.onTapCommand)?f=this.componentBehavior.computeHref_(V.onTapCommand):W&&(f=this.componentBehavior.computeHref_(W));return f?f:l};
_.t.computeCommand=function(W,l){return(l==null?void 0:l.onTapCommand)||W};
_.t.getEndpointForm=function(){if(_.U("kevlar_topbar_disable_cache_only_home")){var W=_.tY().resolve(_.Jp),l=IF5(W.getState())||"";W=iDN(W.getState())||"";return{disableCache:l==="ytd-browse"&&W==="home"}}return{disableCache:!0}};
QZ.prototype.onYoodleError=QZ.prototype.onYoodleError;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],QZ.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],QZ.prototype,"componentBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],QZ.prototype,"ytdReduxBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],QZ.prototype,"data",void 0);_.a([_.b(),_.z("design:type",String)],QZ.prototype,"countryCode",void 0);_.a([_.b({selectorArgs:["data.overrideEntityKey"],selector:function(W,l){return _.mL(W.entities,"logoEntity",l)}}),
_.z("design:type",Object)],QZ.prototype,"logoEntity",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.z("design:type",Boolean)],QZ.prototype,"showYoodle",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],QZ.prototype,"yoodleError",void 0);_.a([_.b({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.z("design:type",String)],QZ.prototype,"titleText",void 0);
_.a([_.b({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.z("design:type",String)],QZ.prototype,"ariaLabelText",void 0);_.a([_.b({value:"/"}),_.z("design:type",String)],QZ.prototype,"defaultEndpointUrl",void 0);_.a([_.b({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.z("design:type",String)],QZ.prototype,"endpointUrl",void 0);
_.a([_.b({computed:"computeCommand(data.endpoint, logoEntity)"}),_.z("design:type",String)],QZ.prototype,"command",void 0);_.a([_.b(),_.z("design:type",Object)],QZ.prototype,"logoType",void 0);_.a([_.b({}),_.z("design:type",Boolean)],QZ.prototype,"useDarkThemeYoodle",void 0);_.a([_.XI("yoodle-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],QZ.prototype,"onYoodleError",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],QZ);
_.Z(QZ,"ytd-topbar-logo-renderer",function(){if(jac!==void 0)return jac;var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return jac=W},{mode:_.bD("kevlar_poly_si_batch_j027")?1:2});var mO2=0;var Xrw=_.wo.SEARCH_APPEND_LABEL,TR2=_.wo.SUGGESTION_NEW_VIDEOS_TEXT,wrN=_.wo.SUGGESTION_THUMBNAIL_LABEL,AB1=_.wo.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,Qas=_.Q(function(W){function l(oX){var ve,dI;return _.g(function(J1){if(J1.nextAddress==1)return ve=new Request(oX),_.HG(J1,2),J1.yield(fetch(ve,{credentials:"include"}),4);if(J1.nextAddress!=2)return p2(!0),_.qL(J1,0);dI=_.pc(J1);_.Qe(dI);_.ju(J1)})}
var V=W.isHighlighted;var f=W.suggestion;var r=W.onClickCallback;var R=W.onHoverUpdateCallback;var y=W.labels;var P=W.queryBuilderFunction;var n=W.onRemoveCallback;var B=W.suggestionIndex;var d=W.generateUniqueId;var J=W.highlightedId;var D=W.useScrollMargin;var u=W.isKeyboardMode;var H=null,p=null,X=_.WS("div"),w=_.WS("span");W=_.L(_.J4(!1,void 0,"NIdw2c"));var O=W.next().value,S=W.next().value,N=_.lN("a",function(oX){oX&&_.Ql(237477,oX,p,function(ve){p=ve})}),x=_.lN("button",function(oX){oX&&_.Ql(237477,
oX,p,function(ve){p=ve})}),Y=_.ip(function(oX){if((oX==null?void 0:oX.button)===2)return oX.preventDefault(),!1;
var ve=_.Wh();ve&&H&&_.cy(ve,H,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var dI;r(oX,f().text,f().index,f().entityMid,oX==null?void 0:(dI=oX.detail)==null?void 0:dI.wasSelectedByKeyboard);return!1}),W8=function(){return f().type===35},c8=function(){return _.U("desktop_enable_single_suggestion_highlight")},B8=function(){return _.yS("desktop_suggestions_panel_row_height")||0},Jx=function(){var oX;
return _.U("desktop_enable_new_video_metadata")&&((oX=f())==null?void 0:oX.hasNewVideo)===!0},H8=function(){return _.U("desktop_enable_visual_suggest")},Kq=function(){return _.U("desktop_enable_entity_suggest")&&yBL(f())},Z4=function(){return f().entitySubtitle},Ax=function(){return c8()?(V==null?void 0:V())||lB()&&!(u==null?0:u()):(V==null?void 0:V())||lB()},sM=function(){var oX=_.M4("SBOX_SETTINGS");
return W8()&&!(oX==null?0:oX.HIDE_REMOVE_LINK)},Ta=function(){return gqe(f(),{useEntityName:Kq()})},ck,Wk=!((ck=_.tY().resolve(_.R0(_.nP)))==null||!ck()),D$=function(){return W8()?_.U("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},Bk=function(){return y==null?void 0:y().SUGGESTION_DISMISS_LABEL},iB=function(){return y==null?void 0:y().SUGGESTION_DISMISSED_LABEL};
W=_.L(_.J4(!1,void 0,"ze5Bhc"));ck=W.next().value;var p2=W.next().value;W=_.L(_.J4(!1,void 0,"Mx5LWc"));var SL=W.next().value,RY=W.next().value,lB=SL,kc=_.ip(function(){P(w.value.innerText);return!1}),n2=_.ip(function(oX){oX.preventDefault();
return!1}),vk=_.ip(function(oX){var ve=f().text,dI=_.M4("SBOX_SETTINGS"),J1="https://"+(dI.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
J1+="&delq="+encodeURIComponent(ve);(ve=dI==null?void 0:dI.PSUGGEST_TOKEN)&&(J1+="&tok="+ve);(dI=dI==null?void 0:dI.SESSION_INDEX)&&(J1+="&authuser="+dI);l(J1);oX.preventDefault();(oX=_.Wh())&&p&&_.cy(oX,p,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");n(B==null?void 0:B());return!1}),VL=_.ip(function(){if(c8()&&(u==null?0:u()))return!1;
RY(!0);R(!0);return!1}),Lc=_.ip(function(){RY(!1);
R(!1);return!1}),ls=_.ip(function(){S(!0);
return!1}),Pk=_.ip(function(){S(!1);
return!1}),q1=_.ip(function(oX){oX.preventDefault();
var ve;(oX=(ve=f().entityThumbnailAttributionUrl)!=null?ve:"")&&_.J8U(oX);return!1});
W=_.L(_.J4("",void 0,"aYzCJe"));var Dc=W.next().value,pe=W.next().value;_.iz(function(){sM()&&pe(d==null?void 0:d(B==null?void 0:B()));X.value&&_.Ql(12453,X.value,H,function(oX){H=oX})});
return _.C(_.c,{cond:ck,then:function(){var oX={};return _.C("div",{class:_.If("ytSuggestionComponentRemovedText",(oX.ytSuggestionComponentLargerRemovedText=function(){return H8()},oX)),
style:function(){return B8()>0?"height: "+B8()+"px;":""},
role:"button"},iB)},
else:function(){var oX={},ve={};return _.C("div",{class:_.If("ytSuggestionComponentSuggestion",(oX.ytSuggestionComponentSuggestionHover=function(){return!c8()},oX.ytSuggestionComponentHighlighted=Ax,oX.ytSuggestionComponentPersonalizedSuggestion=W8,oX.ytSuggestionComponentMweb=!1,oX.ytSuggestionComponentLargerSuggestion=function(){return Jx()||H8()},oX.ytSuggestionComponentThumbnailSuggestion=function(){return H8()},oX.ytSuggestionComponentRoundedSuggestion=function(){return _.U("desktop_enable_scrollable_suggestions_panel")&&
_.U("desktop_enable_suggestions_panel_padding")},oX.ytSuggestionComponentThumbnailPadding=function(){return H8()&&!W8()},oX)),
style:function(){return B8()>0?"height: "+B8()+"px;":""},
role:"presentation","on:mousedown":Y,"on:mouseover":VL,"on:mouseout":Lc,el:X},_.C("div",{class:_.If("ytSuggestionComponentText",(ve.ytSuggestionComponentScrollMargin=D,ve)),"aria-label":function(){return Jx()?f().text+" "+TR2:f().text},
id:function(){return d==null?void 0:d(B==null?void 0:B())},
"on:mousedown":Y,role:"option"},_.C(_.c,{cond:function(){return f().type!==33},
then:function(){return _.C(_.wN,{icon:D$,className:"ytSuggestionComponentIcon"})}}),_.C("div",{class:"ytSuggestionComponentLeftContainer"},_.C("span",{el:w,
role:"button",tabindex:0},_.C(_.G3,{each:Ta},function(dI){return dI.bold?_.C("span",{class:"ytSuggestionComponentBold"},dI.text):_.C("span",null,dI.text)})),_.C(_.c,{cond:function(){return Kq()&&!!f().entitySubtitle||Jx()},
then:function(){return _.C("div",{class:"ytSuggestionComponentMetadataContainer"},_.C(_.c,{cond:function(){return Kq()&&!!f().entitySubtitle},
then:function(){return _.C("div",{class:"ytSuggestionComponentEntitySubtitle"},Z4)}}),_.C(_.c,{cond:function(){return Jx()},
then:function(){return _.C("div",{class:"ytSuggestionComponentNewVideoContainer"},_.C("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.C("div",{class:"ytSuggestionComponentNewVideoText"},TR2))}}))}}))),_.C("div",{class:"ytSuggestionComponentRightContainer"},_.C(_.c,{cond:function(){return H8()&&f().visualSuggestUrl!==void 0},
then:function(){var dI={};return _.C("div",{class:"ytSuggestionComponentThumbnailContainer"},_.C("img",{"aria-label":wrN,class:_.If("ytSuggestionComponentVisualSuggestThumbnail",(dI.ytSuggestionComponentCircularFrame=function(){return Kq()&&f().subtypes.includes(790)},dI.ytSuggestionComponentEntitySuggestThumbnail=function(){return Kq()},dI)),
src:function(){return f().visualSuggestUrl}}),_.C(_.c,{cond:function(){return Kq()&&!!f().entityThumbnailAttributionUrl},
then:function(){var J1={};return _.C("span",{title:AB1,role:"tooltip"},_.C("div",{"on:mouseover":ls,"on:mouseout":Pk,"on:mousedown":q1,class:_.If("ytSuggestionComponentThumbnailOverlay",(J1.ytSuggestionComponentThumbnailOverlayHidden=function(){return!O()},J1))},_.C(_.wN,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.C(_.oh,null,_.C(_.bz,{when:function(){return H8()&&sM()}},function(){var dI={};
return _.C("button",{class:_.If("ytSuggestionComponentRemoveLinkClearButton",(dI.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return Dc()&&Dc()===(J==null?void 0:J())},dI.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Ax()},dI)),
el:x,"on:mousedown":vk,"aria-label":Bk,id:function(){return Dc()}},_.C(_.wN,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.C(_.bz,{when:function(){return!(H8()&&f().visualSuggestUrl!==void 0)&&sM()}},function(){var dI={};
return _.C("a",{class:_.If("ytSuggestionComponentRemoveLink",(dI.ytSuggestionComponentRemoveLinkDark=Wk,dI.ytSuggestionComponentRemoveLinkSelected=function(){return Dc()&&Dc()===(J==null?void 0:J())},dI)),
el:N,"on:mousedown":vk,"aria-label":Bk,tabindex:0,role:"button",id:function(){return Dc()}},Bk)}),_.C(_.bz,{when:function(){return!1}},function(){return _.C("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":kc,"on:mousedown":n2,role:"button","aria-label":Xrw},_.C(_.wN,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"xh");var MxN=_.tj(["//www.google.com/textinputassistant/","/","_tia.js"]),ZD4=_.Q(function(){return _.C("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.C("button",{class:"ytdTextInputAssistantButton","on:click":_.ip(function(){cBH().inputMethodsTracker.add(3);var W,l=(W=_.M4("SBOX_SETTINGS"))==null?void 0:W.REQUEST_LANGUAGE;if(l)return _.se(_.dO(MxN,14,l)),!1})},_.C("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"yh");var ODs=function(){this.cache=new Map},aF1=function(W){for(var l=_.L(W.cache.entries()),V=l.next();!V.done;V=l.next()){var f=_.L(V.value);
V=f.next().value;f=f.next().value;f.suggestions.some(function(r){return r.type===35})&&W.cache.delete(V)}};var zh1=_.wo.SEARCH,NRc=_.wo.SEARCH_CLEAR_LABEL,YNe=new _.vd("FAKE_SUGGEST_RESPONSE");_.HI(_.Q(function(W){function l(){ls||(ls=setTimeout(function(){q1()},1E3))}
function V(Ke,Hk,T1){if(Ke.trim()){Lc=Ke;_.Qj("REFINEMENTS_TUPLE",void 0);vk=!0;var u7;Hk=JB2(SL,Hk);var JZ=(u7=W.searchEndpoint)==null?void 0:u7.call(W);_.hw5(Ke,Hk,JZ,D$.value.value,T1);q1();D$.value.value=Ke;D$.value.blur();SL.reset()}}
function f(Ke){return _.g(function(Hk){return Hk.return(new Promise(function(T1){var u7=new XMLHttpRequest;u7.open("GET",Vx1(Ke),!0);u7.withCredentials=!0;var JZ=_.M4("SBOX_SETTINGS");(JZ==null?0:JZ.SEND_VISITOR_DATA)&&u7.setRequestHeader("X-Goog-Visitor-Id",JZ==null?void 0:JZ.VISITOR_DATA);u7.onload=function(){T1(u7.responseText)};
u7.onerror=function(){_.Qe(Error("Dl"));T1(null)};
setTimeout(function(){u7.abort()},1E4);
u7.send(null)}))})}
function r(Ke){var Hk,T1,u7,JZ;return _.g(function(G7){switch(G7.nextAddress){case 1:return Hk={credentials:"include",headers:lFL()},window.AbortController&&(T1=new AbortController,setTimeout(function(){T1.abort("ytsbox-suggest-timeout")},1E4),Hk.signal=T1.signal),_.HG(G7,2),G7.yield(fetch(Vx1(Ke),Hk),4);
case 4:u7=G7.yieldResult.text();_.qL(G7,3);break;case 2:return JZ=_.pc(G7),JZ!=="ytsbox-abort-last"&&JZ!=="ytsbox-suggest-timeout"&&_.Qe(JZ),G7.return(null);case 3:return G7.return(u7)}})}
function R(Ke){var Hk,T1,u7;return _.g(function(JZ){switch(JZ.nextAddress){case 1:if(Hk=_.tY().resolve(_.R0(YNe)))return JZ.return(Hk);T1=Date.now();l();return _.U("yt_searchbox_xhr")?JZ.yield(f(Ke),5):JZ.yield(r(Ke),4);case 4:u7=JZ.yieldResult;JZ.jumpTo(3);break;case 5:u7=JZ.yieldResult;case 3:if(u7){ls&&(clearTimeout(ls),ls=null);var G7=SL,wK=T1,Za=Ke.query.length===0;wK=Date.now()-wK;Za?G7.zeroPrefixRoundTripTime=wK:(G7.JSC$20644_totalRoundTripTime+=wK,G7.maxRoundTripTime=Math.max(G7.maxRoundTripTime,
wK),Za=Math.floor(wK/100),Za>=DOH.length?++G7.roundTripTimeHistogram[9]:++G7.roundTripTimeHistogram[DOH[Za]])}return JZ.return(u7)}})}
function y(Ke){var Hk,T1,u7;return _.g(function(JZ){if(JZ.nextAddress==1)return(Hk=p2.cache.get(W87(Ke)))?JZ.return(Hk):JZ.yield(R(Ke),2);T1=JZ.yieldResult;if(T1===null)return JZ.return(null);u7=new PfZ(T1);Ke.query.length===0&&u7.suggestions.length===0||p2.cache.set(W87(Ke),u7);return JZ.return(u7)})}
function P(Ke){var Hk,T1;return _.g(function(u7){if(u7.nextAddress==1){VL=!1;var JZ=Lc;JZ=_.CxJ()==="search"?(_.qs(location.href,"search_query")||_.qs(location.href,"q"))===JZ:!1;Hk=new $je(Ke,JZ?Lc:null);return u7.yield(y(Hk),2)}T1=u7.yieldResult;if(T1===null)return u7.return();Hk.query.length===0&&(SL.zeroPrefixSuggestionCount=T1.suggestions.length);if(Hk.id<=Pk)return SL.outOfSyncResponseCount++,u7.return();if(document.activeElement!==D$.value)return u7.return();Pk=Hk.id;var G7=SL,wK=T1.rawResponse[2]||
{};G7.experimentTriggeredBeforeFinal||(G7.experimentTriggeredBeforeFinal=G7.experimentTriggeredFinal);G7.experimentTriggeredFinal=!!wK.e;SL.updateSuggestions(T1.suggestions);X(-1);sM([]);T1.suggestions!==u()&&ML(T1.suggestions.length);H(T1.suggestions);c8(T1.suggestions.length>0&&T1.suggestions[0].type===33);iB&&(iB.hidden=T1.suggestions.length===0,W8()?(iB.style.minWidth="",G7=iB.style,wK=(JZ=u()[0])==null?void 0:JZ.ignoredPrefix,G7.marginLeft=(wK?Math.min(wK.length*6,Bk.value.offsetWidth):0).toString()+
"px"):(iB.style.minWidth=Bk.value.offsetWidth+"px",iB.style.marginLeft="0"),zu());_.ju(u7)})}
function n(){if(!vk)return!1;var Ke=_.M4("REFINEMENTS_TUPLE");return Ke?(Ke=Ke[1].map(function(Hk,T1){return new L8Z([Hk,0,[71]],D$.value.value,T1)}),u()!==Ke&&ML(Ke.length),sM([]),H(Ke),SL.updateSuggestions(Ke),vk=!1,iB.hidden=Ke.length===0,VL=Ke.length>0,!0):!1}
function B(){var Ke=D$.value.value;(typeof Ke==="string"||Ke instanceof String)&&Ke!==""?N(!0):N(!1)}
function d(){if(_.CxJ()==="search"){var Ke=window.location.href;try{var Hk=_.qs(Ke,"search_query")||_.qs(Ke,"q")||""}catch(T1){Hk=""}Hk&&(D$.value.value=Hk,N(!0))}}
var J=_.L(_.J4([],void 0,"OC8EPc")),D=J.next().value;J=J.next().value;var u=D,H=J;D=_.L(_.J4(-1,void 0,"t2tVQb"));var p=D.next().value,X=D.next().value;D=_.L(_.J4(-1,void 0,"v0RZCe"));var w=D.next().value,O=D.next().value;D=_.L(_.J4(!1,void 0,"rjAnI"));var S=D.next().value,N=D.next().value;D=_.L(_.J4(!1,void 0,"SyGLvb"));var x=D.next().value,Y=D.next().value;J=_.L(_.J4(!1,void 0,"tL09Cb"));D=J.next().value;J=J.next().value;var W8=D,c8=J;J=_.L(_.J4(!1,void 0,"FlH7mc"));D=J.next().value;var B8=J.next().value;
J=_.L(_.J4(!1,void 0,"ea3fwe"));var Jx=J.next().value,H8=J.next().value;J=_.L(_.J4(1,void 0,"vSK1xe"));var Kq=J.next().value,Z4=J.next().value;J=_.L(_.J4([],void 0,"ijlw4b"));var Ax=J.next().value,sM=J.next().value;J=_.L(_.J4(!1,void 0,"HcRey"));var Ta=J.next().value,ck=J.next().value;J=_.U("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var Wk=_.WS("yt-searchbox"),D$=_.WS("input"),Bk=_.WS("div"),iB,p2=
new ODs,SL=cBH(),RY=_.tY().resolve(_.R0(_.nP)),lB=function(){var Ke;return((Ke=W.forceDarkMode)==null?void 0:Ke.call(W))||!(RY==null||!RY())},kc=function(){return _.U("desktop_enable_scrollable_suggestions_panel")},n2="i"+mO2++,vk=!1,VL=!1,Lc="",ls=null,Pk=-1,q1=function(){sM([]);
H([]);c8(!1);iB&&(iB.hidden=!0);ls&&(clearTimeout(ls),ls=null);X(-1)},Dc=function(Ke,Hk){Ke.preventDefault();
ck(!0);iB&&(iB.hidden=!1);var T1=p();Ke=u();var u7=Ax();Hk=SZ5(Hk);T1+=Hk;for(T1>=Ke.length?T1=-1:T1<-1&&(T1=Ke.length-1);T1!==-1&&(u7.includes(T1)||T1>=Ke.length||T1<0);)T1+=Hk,T1>=Ke.length&&(T1=-1);X(T1);p()>=0&&(D$.value.value=u()[p()].text,O(0),B(),Ke=p(),u7=w(),(u7=document.getElementById(F4[Ke][u7]))&&kc()&&(Ke===u().length-1?iB.scrollTop=iB.scrollHeight:u7.scrollIntoView({block:"nearest",inline:"start"})))},pe=_.ip(function(Ke){if(!(Ke.relatedTarget instanceof Element&&Ke.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){Y(!0);
var Hk;(Hk=W.focusCallback)==null||Hk.call(W,!0);n()||(VL?iB.hidden=!1:(_.FN(Wk.value,"yt-autonav-pause-focus",{}),P(Ke.target.value)))}}),oX=_.ip(function(Ke){if(!(Ke.relatedTarget instanceof Element&&Ke.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){Y(!1);
var Hk;(Hk=W.focusCallback)==null||Hk.call(W,!1);iB.scrollTop=0;iB.hidden=!0;_.FN(Wk.value,"yt-autonav-pause-blur",{})}}),ve=function(Ke){Ke=SZ5(Ke);
var Hk;((Hk=F4[p()])==null?0:Hk[w()+Ke])&&O(w()+Ke)},dI=_.ip(function(Ke){var Hk=Ke.target;
switch(Ke.keyCode){case 13:Ke.preventDefault();var T1;if((T1=F4[p()])==null?0:T1[w()]){var u7;(u7=document.getElementById(F4[p()][w()]))==null||u7.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}Ke=Ke.shiftKey?4:3;T1=SL;u7=p();T1.selectedSuggestionIndex=u7;V(Hk.value,Ke);break;case 27:iB&&(iB.hidden=!0);break;case 40:Dc(Ke,40);break;case 38:Dc(Ke,38);break;case 39:ve(39);break;case 37:ve(37);break;case 229:SL.inputMethodsTracker.add(4);break;default:SL.inputMethodsTracker.add(1),
BRH(SL)}return!1}),J1=_.ip(function(Ke){P(Ke.target.value);
B();kc()&&iB&&(iB.scrollTop=0);return!1}),ih=_.ip(function(){SL.inputMethodsTracker.add(2);
BRH(SL);return!1});
_.iz(function(){if(iB){SL.reset();if(window.ResizeObserver){var Ke=new ResizeObserver(function(){W8()||(iB.style.minWidth=Bk.value.offsetWidth+"px")});
Ke.observe(Bk.value);(new ResizeObserver(function(){zu()})).observe(iB);
_.Xc(function(){Ke.disconnect()})}d();
window.addEventListener("yt-navigate-finish",d);window.addEventListener("yt-focus-searchbox",function(){D$.value.focus()});
var Hk;B8((Hk=_.M4("SBOX_SETTINGS"))==null?void 0:Hk.HAS_ON_SCREEN_KEYBOARD)}else _.wv(new _.bP("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var jn=_.ip(function(Ke){Ke.preventDefault();V(D$.value.value,12);return!1}),aX=_.ip(function(Ke){Ke.preventDefault();
var Hk,T1;(Hk=D$)==null||(T1=Hk.value)==null||T1.focus();var u7,JZ;((u7=D$)==null?void 0:(JZ=u7.value)==null?void 0:JZ.value)!==""&&(D$.value.value="",D$.value.dispatchEvent(new Event("input")));return!1}),A1=_.ip(function(){var Ke=y52(D$.value.value,u().filter(function(Hk){return Hk.type!==35}).map(function(Hk){return{label:Hk.text}}));
_.Gt(Wk.value,"yt-open-popup-action",[{openPopupAction:Ke},document.body]);return!1}),xZ=_.ip(function(){D$.value.focus();
return!1}),$Z=function(Ke,Hk,T1,u7,JZ){SL.selectedSuggestionIndex=T1;
V(Hk,JZ?3:1,u7)},ai=function(Ke){D$.value.value=Ke;
D$.value.dispatchEvent(new Event("input"));SL.inputMethodsTracker.add(5);BRH(SL,!0)},F4=[[]],fS=function(Ke){var Hk="searchbox-suggestion"+_.Wd(_.Pr);
F4[Ke].push(Hk);return Hk},ML=function(Ke){if(u()){F4=[[]];
for(var Hk=0;Hk<Ke;Hk++)F4.push([])}},zu=function(){if(kc()){var Ke=iB,Hk=Ke.scrollTop;
Ke=Ke.scrollHeight-Ke.clientHeight;H8(Hk>=Ke);Hk=Math.abs(Ke-Hk);Hk<=40?Z4(1-(40-Hk)/40):Z4(1)}},cj=function(){return"opacity: "+Kq()*100+"%"},pq=_.ip(function(){zu();
return!1}),QU=_.ip(function(){ck(!1);
return!1}),Yz,uB={},C2={},XX={},Fw={};
return _.C("yt-searchbox",{class:_.If("ytSearchboxComponentHost",(uB.ytSearchboxComponentMweb=!1,uB.ytSearchboxComponentDesktop=!0,uB["yt-searchbox-filled-query"]=function(){return S()},uB["ytd-masthead"]=function(){return!x()},uB.ytSearchboxComponentHostDark=lB,uB)),
role:"search",el:Wk,"client-ve-type":10349},_.C("div",{el:Bk,"on:click":xZ,class:_.If("ytSearchboxComponentInputBox",(C2.ytSearchboxComponentInputBoxDark=lB,C2.ytSearchboxComponentInputBoxHasFocus=x,C2))},_.C("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":jn},_.C(_.c,{cond:x,then:function(){return _.C("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.C(_.wN,{icon:"SEARCH"}))}}),_.C("input",{el:D$,
class:_.If("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":n2,"aria-expanded":!((Yz=iB)==null?0:Yz.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":oX,"on:focus":pe,"on:input":J1,"on:keydown":dI,"on:paste":ih,placeholder:W.placeholderText,"aria-activedescendant":function(){var Ke;return(Ke=F4[p()])==null?void 0:Ke[w()]},
"aria-autocomplete":"list",role:"combobox"})),_.C(_.c,{cond:D,then:function(){return _.C("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.C(ZD4,null))}}),_.C(_.c,{cond:S,
then:function(){return _.C("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.C("button",{class:"ytSearchboxComponentClearButton","on:click":aX,"aria-label":W.clearButtonAriaLabel||NRc},_.C(_.wN,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.C(_.ZS,{model:{}})))}})),_.C("button",{class:_.If("ytSearchboxComponentSearchButton",(XX.ytSearchboxComponentSearchButtonDark=lB,XX)),
"on:click":jn,"aria-label":zh1,title:W.placeholderText},_.C(_.wN,{icon:"SEARCH"})),_.C(_.c,{cond:function(){if(Kr1()&&_.U("mweb_voice_search")&&W.voiceSearchButton)return W.voiceSearchButton()},
then:function(Ke){var Hk={};return _.C("div",{class:_.If("ytSearchboxComponentVoiceSearchWrapper",(Hk.ytSearchboxComponentHideVoiceSearchButton=function(){return S()},Hk))},_.C(_.QH,{data:Ke},{buttonRenderer:function(T1){return _.C(_.G2,{data:T1.data,
onButtonClickCallback:function(){}})}}))}}),_.C("div",{el:_.DN(function(Ke){return void(iB=Ke)}),
id:n2,class:_.If("ytSearchboxComponentSuggestionsContainer",(Fw.ytSearchboxComponentSuggestionsContainerDark=lB,Fw["yt-searchbox-suggestions-container"]=!1,Fw.ytSearchboxComponentSuggestionsContainerScrollable=kc(),Fw.ytSearchboxComponentSuggestionsContainerAnimated=J,Fw)),"on:scroll":pq,"on:mousemove":QU,role:"listbox",hidden:!0},_.C(_.G3,{each:u},function(Ke,Hk){return _.C(Qas,{suggestion:Ke,isHighlighted:function(){return Hk()===p()},
onClickCallback:$Z,onHoverUpdateCallback:function(T1){if(_.U("desktop_enable_single_suggestion_highlight")){var u7=Hk();T1&&(O(0),X(u7))}},
onRemoveCallback:function(T1){aF1(p2);T1===void 0||T1<0||Ax().includes(T1)||sM([].concat(_.QK(Ax()),[T1]))},
labels:W.labels,queryBuilderFunction:ai,suggestionIndex:Hk,generateUniqueId:fS,highlightedId:function(){var T1;return(T1=F4[p()])==null?void 0:T1[w()]},
useScrollMargin:kc(),isKeyboardMode:Ta})}),_.C(_.c,{cond:function(){return!W8()&&u().find(function(Ke){return Ke.type!==35})&&_.U("searchbox_reporting")},
then:function(){return _.C("button",{class:"ytSearchboxComponentReportButton","on:mousedown":A1},_.wg("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.C(_.c,{cond:function(){return!Jx()&&kc()},
then:function(){return _.C("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.C("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:cj}))}})))},"zh"),"yt-searchbox",{props:{searchEndpoint:_.pA,
placeholderText:_.pA,labels:_.pA,voiceSearchButton:_.pA,focusCallback:_.kh,clearButtonAriaLabel:_.pA,forceDarkMode:_.pA}});var MU=function(){var W=_.I.apply(this,arguments)||this;W.menuButtonTargetId="topbar-guide-menu";W.narrow=!1;W.menuStrings={BACK_ALT_LABEL:_.wg("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.wg("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.wg("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.wg("SBOX_PLACEHOLDER",void 0,"Search")};W.pageDarkTheme=document.documentElement.hasAttribute("dark");W.watchPageScrollTop=0;W.theater=!1;W.fullscreen=!1;W.disableFrostedGlassDuringViewTransition=
!1;W.desktopUnifiedSearchPanelMode=_.U("desktop_enable_unified_search_panel");W.cinematicTheaterMode=_.U("web_cinematic_theater_mode");W.ytSearchboxFocused=!1;W.searchboxLabels=_.M4("SBOX_LABELS");W.topbarIsAboveChipbar=!1;W.isDarkThemeForced=!1;W.areGhostCardsHidden=!1;W.guideKeyboardToggle=!1;W.voiceSearchManager=t9w();W.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};W.setYtSearchboxFocused=function(l){W.ytSearchboxFocused=
l};
W.toggleFrostedGlassDuringViewTransition=function(l){W.disableFrostedGlassDuringViewTransition=l};
return W};
_.v(MU,_.I);_.t=MU.prototype;_.t.computeSimpleText=function(W){return _.dE(W)};
_.t.onDarkChanged=function(){for(var W=_.L(this.buttons||[]),l=W.next();!l.done;l=W.next())l.value.isOverlay=!!this.dark;W=_.L(this.buttonRenderers||[]);for(l=W.next();!l.done;l=W.next())l.value.overrides=this.computeButtonOverride()};
_.t.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.t.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]]"}},
buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var W=_.U7(_.DI(),"aa");_.pG(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||W||(this.isDarkThemeForced=this.dark=!0);this.logoType?(W=this.hostElement.querySelector("#masthead-logo"))&&(_.U("polymer_on_demand_shady_dom")?W.setAttribute("slot","masthead-logo-old"):_.bI(W)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.mz(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.mz(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.t.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.mz(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.mz(this,this.onSetTheaterModeEnabled))};
_.t.dataChanged=function(){var W=this.data;W&&(this.voiceEnabled=W.voiceSearchButton?t9w().isSupported():!1,_.jbc(_.rY(),this.menuButtonTargetId,this.guideButton),W.onReceivedActions&&W.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.og(this.hostElement,W.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&W&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.pG(this.hostElement,"dark",!1),_.pG(this.hostElement,"theater",!1),
(W=this.hostElement.querySelector("#masthead-logo"))&&(_.U("polymer_on_demand_shady_dom")?W.setAttribute("slot","masthead-logo-old"):_.bI(W))))};
_.t.computeCenterHidden=function(){var W;return this.data&&!((W=this.data.searchbox)==null?0:W.fusionSearchboxRenderer)};
_.t.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.pG(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.t.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.t.onWatchScroll=function(W){this.watchPageScrollTop=W.detail||0;this.updateMastheadBackgroundOpacity()};
_.t.onFullscreenChangeAction=function(W){W||(this.watchPageScrollTop=0);this.fullscreen=W;this.updateMastheadBackgroundOpacity()};
_.t.onSetTheaterModeEnabled=function(W){this.theater=W.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.t.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.t.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.t.setBackgroundOpacity=function(W){W=this.calculateBackgroundOpacity(W);this.background.style.opacity=""+W};
_.t.calculateBackgroundOpacity=function(W){var l=this.theater&&this.cinematicTheaterMode?.6:0,V=this.hostElement.clientHeight/2;return Math.min(Math.max(W,0),V)/V*(1-l)+l};
_.t.shouldShowCinematicMastHead=function(){var W=_.U("kevlar_watch_grid")&&!_.U("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(W||this.pageDarkTheme)};
_.t.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.t.focusGuide=function(){this.guideButton.focus()};
_.t.onGuideToggleTap=function(){_.FN(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.t.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.t.onGuideToggleHover=function(){_.FN(this.hostElement,"yt-guide-hover")};
_.t.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.t.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.t.closeOnOutsideClickCondition=function(W){for(W=_.d_(W);W[0];){var l=W.shift();if(l instanceof Element&&l.id==="kbd")return!1}return!0};
_.t.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.t.pausePlayer=function(){var W;(W=_.Jy())==null||W.pause();this.pauseMiniplayer()};
_.t.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var W;(W=_.tY().resolve(_.Sl).getPlayerElement())==null||W.pause()}};
_.t.isMiniplayerActive=function(){return _.tY().resolve(_.Sl).isMiniplayerActive()};
_.t.updateNarrowFromBinding=function(W){this.narrow=W.detail.value};
_.t.onYtSendFeedbackAction=function(){_.Gt(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.t.registerWithViewTransitionManager=function(){H42(_.tY().resolve(_.$U),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.rc.Object.defineProperties(MU.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.U("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 W;return(W=this.data)==null?void 0:W.voiceSearchButton}}}});
MU.prototype.narrowChanged=MU.prototype.narrowChanged;MU.prototype.onWatchPageChange=MU.prototype.onWatchPageChange;MU.prototype.onRendererStamperFinished=MU.prototype.onRendererStamperFinished;MU.prototype.dataChanged=MU.prototype.dataChanged;MU.prototype.onDarkChanged=MU.prototype.onDarkChanged;_.a([_.F(_.Wo),_.z("design:type",Object)],MU.prototype,"ironResizableBehavior",void 0);_.a([_.F(_.qJZ),_.z("design:type",Object)],MU.prototype,"ytdExpandableInputBehavior",void 0);
_.a([_.F(_.vZ.YtdGuideStateAwareBehavior),_.z("design:type",Object)],MU.prototype,"ytdGuideStateAwareBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],MU.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],MU.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],MU.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],MU.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.dx),_.z("design:type",Object)],MU.prototype,"ytdReduxBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],MU.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],MU.prototype,"narrow",void 0);_.a([_.b(),_.z("design:type",Object)],MU.prototype,"logoType",void 0);_.a([_.b(),_.z("design:type",Boolean)],MU.prototype,"voiceEnabled",void 0);
_.a([_.b(),_.z("design:type",Object)],MU.prototype,"menuStrings",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],MU.prototype,"dark",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],MU.prototype,"pageDarkTheme",void 0);_.a([_.b(),_.z("design:type",Object)],MU.prototype,"watchPageScrollTop",void 0);_.a([_.b({reflectToAttribute:!0,selector:_.X3j}),_.z("design:type",Boolean)],MU.prototype,"isWatchPage",void 0);
_.a([_.b({reflectToAttribute:!0,selector:_.TZU}),_.z("design:type",Boolean)],MU.prototype,"isShortsPage",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],MU.prototype,"theater",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],MU.prototype,"fullscreen",void 0);_.a([_.b({reflectToAttribute:!0,selector:_.M7q}),_.z("design:type",String)],MU.prototype,"frostedGlassMode",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],MU.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.a([_.b(),_.z("design:type",Object)],MU.prototype,"ytSearchboxFocused",void 0);_.a([_.Qb("#buttons > *"),_.z("design:type",Array)],MU.prototype,"buttons",void 0);_.a([_.Qb("ytd-button-renderer"),_.z("design:type",Array)],MU.prototype,"buttonRenderers",void 0);_.a([_.Aa("#background"),_.z("design:type",HTMLDivElement)],MU.prototype,"background",void 0);
_.a([_.Aa("#guide-button"),_.z("design:type",Object)],MU.prototype,"guideButton",void 0);_.a([_.Aa("#logo"),_.z("design:type",Object)],MU.prototype,"logo",void 0);_.a([_.b({computed:"computeButtonOverride(dark)"}),_.z("design:type",Object)],MU.prototype,"buttonOverrides",void 0);_.a([_.zS("dark"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],MU.prototype,"onDarkChanged",null);_.a([_.b({value:function(){return this.onVoiceTap.bind(this)}}),
_.z("design:type",Function)],MU.prototype,"boundOnTapVoiceButton",void 0);_.a([_.b(),_.z("design:type",Object)],MU.prototype,"topbarIsAboveChipbar",void 0);_.a([_.b(),_.z("design:type",String),_.z("design:paramtypes",[])],MU.prototype,"guideIcon",null);_.a([_.G("voiceEnabled"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],MU.prototype,"shouldShowVoiceSearchButton",null);_.a([_.G("data"),_.z("design:type",Object),_.z("design:paramtypes",[])],MU.prototype,"voiceSearchButton",null);
_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],MU.prototype,"dataChanged",null);_.a([_.XI("yt-rendererstamper-finished"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],MU.prototype,"onRendererStamperFinished",null);_.a([_.zS("isWatchPage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],MU.prototype,"onWatchPageChange",null);
_.a([_.zS("narrow"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],MU.prototype,"narrowChanged",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-masthead"})],MU);
_.Z(MU,"ytd-masthead",function(){if(oqc!==void 0)return oqc;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return oqc=W},{mode:_.bD("kevlar_poly_si_batch_j036")?1:2});var xO1;var ehH={},qNe={},hh1={},SNs={},Eqw=(SNs.OFFLINE=(ehH["publicytnetworkstatus-online"]="BACK_ONLINE",ehH),SNs.ONLINE=(qNe["publicytnetworkstatus-offline"]="OFFLINE",qNe),SNs.BACK_ONLINE=(hh1["publicytnetworkstatus-offline"]="OFFLINE",hh1.TIMER_TRIGGER="ONLINE",hh1),SNs),ZQ=function(){var W=_.I.apply(this,arguments)||this;W.currentState="ONLINE";W.scheduledJobId=0;W.bannerString="";W.bannerVe=null;W.networkStatusManagerInstance=new _.qt;return W};
_.v(ZQ,_.I);_.t=ZQ.prototype;_.t.attached=function(){var W=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){W.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){W.stateChangeHandler("publicytnetworkstatus-offline")})};
_.t.detached=function(){var W=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){W.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){W.stateChangeHandler("publicytnetworkstatus-offline")})};
_.t.enterState=function(W){var l=this;this.scheduledJobId&&_.w8.cancelJob(this.scheduledJobId);W==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):W==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.wg("NO_INTERNET_CONNECTION",void 0,"No internet connection")):W==="BACK_ONLINE"&&(this.bannerString=_.wg("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.pS(_.w8,function(){l.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=W};
_.t.stateChangeHandler=function(W){(W=Eqw[this.currentState][W])&&this.enterState(W)};
_.t.logVisibility=function(W){var l=_.Wh();this.createBannerVe(W);l&&this.bannerVe&&(W?_.Py(l,[this.bannerVe]):_.n0(l,[this.bannerVe]))};
_.t.createBannerVe=function(W){!this.bannerVe&&W&&(this.bannerVe=_.GY(37929),_.zP(_.Qq(),this.bannerVe))};
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",String)],ZQ.prototype,"currentState",void 0);_.a([_.b(),_.z("design:type",Object)],ZQ.prototype,"scheduledJobId",void 0);_.a([_.b(),_.z("design:type",Object)],ZQ.prototype,"bannerString",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-network-status-banner"})],ZQ);
_.Z(ZQ,"ytd-network-status-banner",function(){if(xO1!==void 0)return xO1;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return xO1=
W},{mode:1});var $Oe;var OQ=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};W.hidden=!0;W.frostedGlass=_.U("web_frosted_glass");return W};
_.v(OQ,_.I);OQ.prototype.computeHidden=function(W){return W&&W.status?!1:!0};
OQ.prototype.handleUpdatePermissionRoleCommand=function(W){if(W=_.k(W,_.nQM))if(W=_.k(W.renderer,_.POe))this.data=W};
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],OQ.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],OQ.prototype,"componentBehavior",void 0);_.a([_.b({value:!0,computed:"computeHidden(data)"}),_.z("design:type",Object)],OQ.prototype,"hidden",void 0);_.a([_.b(),_.z("design:type",Object)],OQ.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],OQ.prototype,"frostedGlass",void 0);
_.a([_.A({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],OQ);
_.Z(OQ,"ytd-permission-role-bottom-bar-renderer",function(){if($Oe!==void 0)return $Oe;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return $Oe=W},{mode:1});var W5c;var lfZ;var Eh4={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var aF=function(){return _.I.apply(this,arguments)||this};
_.v(aF,_.I);_.t=aF.prototype;_.t.attached=function(){this.JSC$20747_scroller&&(this.JSC$20747_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20747_scroller.attached&&typeof this.JSC$20747_scroller.attached==="function"&&this.JSC$20747_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(V){V.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var W=_.GS(this.hostElement);W.querySelector("tp-yt-paper-radio-group").selected="";var l=W.querySelector("#reason-text");l&&(l.value="");W.querySelector("#description-text").value=""}};
_.t.canSubmit=function(W,l){_.FN(this.hostElement,"yt-invalidate-popup-tabbables");return!(W&&l)};
_.t.onCancel=function(){_.Gt(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.t.onSubmit=function(){var W=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(R){return R.active}).map(function(R){return R.innerText.trim()}),l=this.hostElement.querySelector("tp-yt-paper-radio-group"),V=l.selectedItem,f=V.name;
V=V.innerText.trim();var r=l.querySelector("#reason-text");l=void 0;r&&(l=r.value);(r=this.descriptionText.value)&&(r=r.trim());$eY(this.data.searchQuery,W,f,V,r,l);_.Gt(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.t.sendFormSubmitToast=function(){var W=_.kV(_.wg("SBOX_INAPPROPRIATE_TOAST"));_.Gt(this.hostElement,"yt-open-popup-action",[W,this])};
_.t.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(W){return W.active})};
_.t.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
aF.prototype.onIronSelect=aF.prototype.onIronSelect;aF.prototype.onIronChange=aF.prototype.onIronChange;aF.prototype.dataChanged=aF.prototype.dataChanged;_.a([_.b(),_.z("design:type",Object)],aF.prototype,"data",void 0);_.a([_.b({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.z("design:type",Boolean)],aF.prototype,"submitDisabled",void 0);_.a([_.b(),_.z("design:type",Boolean)],aF.prototype,"suggestionSelected",void 0);
_.a([_.b(),_.z("design:type",Boolean)],aF.prototype,"catagorySelected",void 0);_.a([_.Aa("#scroller"),_.z("design:type",Object)],aF.prototype,"JSC$20747_scroller",void 0);_.a([_.Aa("#description-text"),_.z("design:type",Object)],aF.prototype,"descriptionText",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],aF.prototype,"dataChanged",null);
_.a([_.XI("iron-change"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],aF.prototype,"onIronChange",null);_.a([_.XI("iron-select"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],aF.prototype,"onIronSelect",null);_.a([_.A({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],aF);
_.Z(aF,"ytd-search-suggestion-report-dialog",function(){if(lfZ!==void 0)return lfZ;var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);return lfZ=W},{mode:1});var zK=function(W){var l=W.openPopupAction;var V=W.target;var f=W.container;var r=W.popupContainerConfig;var R=W.getElement;W=W.removeWhenClosed===void 0?!1:W.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=l;this.target=V;this.container=f;this.popupContainerConfig=r;this.getElement=R;this.JSC$20753_popupConfig=this.popupContainerConfig.JSC$19900_popupConfig[this.openPopupAction.popupType];this.rendererName=(l=this.getName())?_.xBn(l,A8Y(this.popupContainerConfig,
l)):"";_.U("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=W);this.createPopup()};
zK.prototype.updatePopup=function(W){this.openPopupAction=W;this.JSC$20753_popupConfig=this.popupContainerConfig.JSC$19900_popupConfig[this.openPopupAction.popupType];V8N(this);_.U("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
zK.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var R31=function(W,l,V){(l=l&&W.JSC$20753_popupConfig.narrowProperties?W.JSC$20753_popupConfig.narrowProperties:W.JSC$20753_popupConfig.properties)&&V!==void 0&&(l.isAriaModal=V);ffY(W,l);W.isRtl()&&ffY(W,W.JSC$20753_popupConfig.rtlProperties);r3e(W)};
zK.prototype.createPopup=function(){var W=this.JSC$20753_popupConfig.component;if(this.popupContent=t8w(this,this.rendererName)){if(W){this.popup=t8w(this,W);var l=this.popupContent;_.U("web_enable_wrapper_for_cow_component_in_popup")&&(l=document.createElement("div"),l.appendChild(this.popupContent));_.U("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20753_popupConfig.slotName&&l.setAttribute("slot",this.JSC$20753_popupConfig.slotName);W=this.popup;var V=this.container.tagName.toLowerCase(),
f=_.Dr(l);_.Rgv(_.um(W),_.HV(l,V,f));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.U("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.GS(this.container).appendChild(this.popup)}};
var V8N=function(W){var l,V,f=(l=W.openPopupAction.accessibilityData)==null?void 0:(V=l.accessibilityData)==null?void 0:V.label;f&&(W.popup.ariaLabel=f);var r;((r=W.popupContent.polymerController)!=null?r:W.popupContent).data=(0,_.MC.unsafeClone)(W.openPopupAction.popup[W.getName()]);W.popupContent.duration=s5Y(W);W.popupContent.positionType=W.openPopupAction.position;var R=W.openPopupAction.properties;R&&Object.keys(R).forEach(function(y){W.popupContent[y]=R[y]})},ffY=function(W,l){if(l)for(var V=
_.L(Object.keys(l)),f=V.next();!f.done;f=V.next())f=f.value,W.popup[f]=l[f]},r3e=function(W){if(W.openPopupAction.position){var l=W.JSC$20753_popupConfig.positionalProperties&&W.JSC$20753_popupConfig.positionalProperties[W.openPopupAction.position],V=W.JSC$20753_popupConfig.rtlPositionalProperties&&W.JSC$20753_popupConfig.rtlPositionalProperties[W.openPopupAction.position];
l=W.isRtl()&&V?V:l;l.shiftedHorizontalOffset&&(V=W.popup.style.display,W.popup.style.display="block",W.popupContent&&W.popup.positionTarget&&W.popupContent.clientWidth>W.popup.positionTarget.clientWidth&&(l.horizontalOffset=W.popup.positionTarget.clientWidth/2-l.shiftedHorizontalOffset),W.popup.style.display=V);ffY(W,l)}},L5N=function(W,l){if(l)for(var V=_.L(Object.keys(l)),f=V.next();!f.done;f=V.next())f=f.value,W.popup.style[f]=l[f]};
zK.prototype.getName=function(){return _.T3(this.openPopupAction.popup,"renderer")||_.T3(this.openPopupAction.popup,"dialog")||_.T3(this.openPopupAction.popup,"model")||void 0};
var s5Y=function(W){W=W.openPopupAction.durationHintMs;return W===0?W:Math.max(4E3,W||4E3)};
zK.prototype.isRtl=function(){return _.M4("HTML_DIR")==="rtl"};
var t8w=function(W,l){W=W.getElement(l,W.target);W==null&&_.Qe(new _.bP("popup getElement returned null",l));return W};var y37={};
y37.YtPopupContainerBehavior=[_.uH.YtComponentBehavior,_.hp.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_);_.Hh(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.KN(this.hostElement)},
closePopup:function(W){var l=this.createCacheKey(void 0,W);this.popups_[l]&&this.handleClosePopupAction_(void 0,W)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.w8.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.w8.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(W){W.opened&&W.keepBelowPlayer&&this.ensurePopupBelowPlayer(W)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var W in this.popups_){var l=this.popups_[W];if(l.popup.scrollAction==="refit"){var V=l.popup.positionTarget.getBoundingClientRect(),f=l.popup;V=V.top;var r=l;if(!r.naturalHeight){r.popup.hidden=!1;r.popup.style.position="fixed";r.popup.style.top="0px";r.popup.style.left="0px";var R=r.popup.getBoundingClientRect();r.naturalHeight=R.bottom-R.top;r.popup.refit()}f.hidden=!(V>=r.naturalHeight+60);l.popupContent.clientHeight===0&&l.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(W){this.popupContainerConfig=W},
handleOpenPopupAction:function(W,l){var V=W.openPopupAction,f=_.tY().resolve(_.R0(_.WN))&&V.popupType==="TOAST";f&&!V.uniqueId&&(V.uniqueId=_.DZ());if(!_.U("popup_container_parent_target_killswitch")){var r;l=(r=this.getParentTarget(l))!=null?r:l}var R=this.ensurePopup_(V,l);return new _.Dx(function(y){R.then(function(P){if(!P)return y();this.maybeCreateNarrowMediaQuery_();var n=this.createCacheKey(P.rendererName,P.openPopupAction.uniqueId);if(V.showOncePerUniqueId){if(this.shownPopupKeys_.has(n))return y();
this.shownPopupKeys_.add(n)}n=this.popups_[n];var B=!(!n||!n.openPopupAction.beReused);B=!!V.reusePopup||B;if(P.popup.opened&&!B){f&&!P.openPopupAction.replacePopup||this.handleClosePopupAction_(P.rendererName,P.openPopupAction.uniqueId);B=V.popupType==="DIALOG"&&!_.U("popup_container_dialog_reopen_killswitch");if(!f&&!B&&n&&n.target==l&&!P.openPopupAction.replacePopup)return y();_.V9(P.popup,function(){this.completeOpenPopupAction_(V,l,P);y()}.bind(this))}else P.popup.opened?P.updatePopup(V):this.completeOpenPopupAction_(V,
l,P),y()}.bind(this))}.bind(this))},
getParentTarget:function(W){if(W&&W instanceof HTMLElement)for(var l=_.L(Object.entries(this.popups_)),V=l.next();!V.done;V=l.next())if(V=_.L(V.value),V.next(),V=V.next().value,this.popupClosesOnClick(V)&&V.popup.contains(W))return V.target},
popupClosesOnClick:function(W){return W.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER"].includes(W.rendererName.toUpperCase())},
completeOpenPopupAction_:function(W,l,V){V.updatePopup(W);W=this.narrowMediaQuery_.queryMatches;var f=this.isAriaModal;V.target=l;var r;l=((r=V.target.polymerController)!=null?r:V.target).popupPositionTarget||V.target;V.JSC$20753_popupConfig.targetContainer&&(l=V.container);V.popup.positionTarget=l;V.popupContent.positionTarget=l;r3e(V);V.JSC$20753_popupConfig.forceFocus&&(V.popupContent.style.outline="none");V.popupContent.tabIndex=-1;V.JSC$20753_popupConfig.narrowProperties&&(V.popup.style.position=
"static");V.JSC$20753_popupConfig.preventAutonav&&V.popup.setAttribute("prevent-autonav",!0);V.JSC$20753_popupConfig.forceCloseOnOutsideClick&&V.popup.setAttribute("force-close-on-outside-click",!0);R31(V,W,f);L5N(V,V.JSC$20753_popupConfig.styles);V.isRtl()&&L5N(V,V.JSC$20753_popupConfig.rtlStyles);if(!V.openPopupAction.shouldStopParentSignal){var R;r=(R=V.target.polymerController)!=null?R:V.target;(V.popupContent.startForwardingEvents||V.popupContainerConfig.forwardingEnabledPopups.has(V.rendererName))&&
r.parentComponent!==V.popupContent&&V.popupContent!==V.target&&V.target!==document.body&&(V.popupContent.startForwardingEvents?V.popupContent.startForwardingEvents(V.popupContainerConfig.forwardedEvents,V.target):(V.JSC$20753_eventForwarder||(V.JSC$20753_eventForwarder=new _.Dm(V.popupContent)),V.JSC$20753_eventForwarder.start(V.popupContainerConfig.forwardedEvents,V.target)))}V=V.popup;V.addEventListener("iron-overlay-opened",_.mz(this,this.onPopupIronOverlayOpened_));V.addEventListener("iron-overlay-closed",
_.mz(this,this.onPopupIronOverlayClosed_));V.addEventListener("iron-overlay-canceled",_.mz(this,this.onPopupIronOverlayCanceled_));V.addEventListener("yt-refit",_.mz(this,this.refitPopup_));V.addEventListener("yt-invalidate-popup-tabbables",_.mz(this,this.handleInvalidatePopupTabbables_));V.open()},
getPopupDurationMs_:function(W){return W.durationHintMs===0?W.durationHintMs:Math.max(4E3,W.durationHintMs||4E3)},
handleClosePopupAction_:function(W,l){var V=_.U("web_popup_cache_key_killswitch")||!!l;if(W||V){var f=this.createCacheKey(W,l);W=(W=this.popups_[f])&&W.popup}else W=_.Gk1(_.CB);if(W&&W.close){if(l=_.tY().resolve(_.R0(_.Q5)))W.restoreFocusOnClose=l.isKeyBoardInUse();W.close();this.removePopup_(W,f)}},
handleClosePopupCommand_:function(W){W.closePopupCommand&&W.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,W.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(W){var l={},V;for(V in this.popups_)if(l={key$jscomp$1212:l.key$jscomp$1212},l.key$jscomp$1212=V,!W||!W.some(function(R){return function(y){return y==R.key$jscomp$1212}}(l))){var f=this.popups_[l.key$jscomp$1212],r=f.popup;
_.tY().resolve(_.R0(_.WN))&&f.openPopupAction.popupType==="TOAST"||(r&&r.close&&r.close(),this.removePopup_(r,l.key$jscomp$1212))}},
handleClosePopupsAction_:function(W){W.forEach(function(l){var V=this.popups_[l];V&&((V=V.popup)&&V.close&&V.close(),this.removePopup_(V,l))}.bind(this))},
handleGetPopupOpenedAction_:function(W,l){return(l=this.createCacheKey(W,l))&&this.popups_[l]?this.popups_[W].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var W=[],l;for(l in this.popups_){var V=this.popups_[l];V.popup.opened&&W.push(V)}return W},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(W,l){_.U("ytpopup_disable_default_html_caching")&&W&&W.removeWhenClosed&&(_.GS(this.hostElement).removeChild(W),l&&this.popups_[l]&&delete this.popups_[l])},
shouldReusePopup_:function(W){return!(!W||!W.reusePopup)||!(!W||!W.beReused)},
ensurePopup_:function(W,l){this.maybeCreateNarrowMediaQuery_();var V=_.T3(W.popup,"renderer")||_.T3(W.popup,"dialog")||_.T3(W.popup,"model");if(!V)return _.jy();V=_.xBn(V,A8Y(this.popupContainerConfig,V));return _.jy(this.getAndMaybeCreatePopup_(W,V,l))},
getAndMaybeCreatePopup_:function(W,l,V){var f=this.createCacheKey(l,W.uniqueId);if(this.popups_[f])return this.popups_[f];W=new zK({openPopupAction:W,target:V,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(l)});return this.popups_[f]=W},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(W){return _.U("ytpopup_disable_default_html_caching")?W&&W.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",_.mz(this,this.openPopupQueryMatchesChanged_)),_.GS(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(W){W=W.detail.value;for(var l in this.popups_)R31(this.popups_[l],W)},
onPopupIronOverlayClosed_:function(W){var l=W.currentTarget,V=_.Fn8(l);V=V.length>0?V[0]:l;if(V.is!=="ytd-reel-watch-while-dialog-renderer"||W.target.is!=="tp-yt-iron-dropdown"){W.detail.popup=l;W.detail.popupRenderer=V;var f,r={context:{openingElement:((f=this.popups_[(V==null?void 0:V.is)||""])==null?void 0:f.target)||void 0}};Object.assign(r,W.detail);var R;_.FN((R=V.hostElement)!=null?R:V,"yt-popup-closed",r);l.removeEventListener("yt-refit",_.mz(this,this.refitPopup_));l.removeEventListener("yt-invalidate-popup-tabbables",
_.mz(this,this.handleInvalidatePopupTabbables_));l.removeEventListener("iron-overlay-canceled",_.mz(this,this.onPopupIronOverlayCanceled_));l.removeEventListener("iron-overlay-closed",_.mz(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(l)}},
onPopupIronOverlayCanceled_:function(W,l){var V=W.currentTarget,f=_.Fn8(V);f=f.length>0?f[0]:V;if(f.is!=="ytd-reel-watch-while-dialog-renderer"||W.target.is!=="tp-yt-iron-dropdown"){var r;_.FN((r=f.hostElement)!=null?r:f,"yt-popup-canceled",W.detail);r=l?_.d_(l):null;(!l||["click","tap"].includes(l.type))&&!V.hasAttribute("force-close-on-outside-click")&&V.positionTarget&&r&&r.includes(V.positionTarget)&&W.preventDefault();V.restoreFocusOnClose=_.NN.keyboardEventMatchesKeys(l,"esc")}},
onPopupIronOverlayOpened_:function(W){W=W.currentTarget;var l=_.Fn8(W);l=l.length>0?l[0]:W;var V,f;_.FN((V=l.hostElement)!=null?V:l,"yt-popup-opened",(f=l.hostElement)!=null?f:l);W.keepBelowPlayer&&(this.ensurePopupBelowPlayer(W,!0),this.dynamicallyPositionedElements_.add(W));V=_.tY().resolve(_.R0(_.Q5));f=!!l.querySelector("#toast");V&&V.isKeyBoardInUse()&&!f&&(typeof l.focusFirstItem==="function"?l.focusFirstItem():(l=_.HtL(W),l.length&&l[0].focus()));W.removeEventListener("iron-overlay-opened",
_.mz(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(W){W=W.currentTarget;W.refit&&W.refit()},
refitPopups_:function(){for(var W in this.popups_)this.popups_[W].refit()},
handleInvalidatePopupTabbables_:function(W){W=W.currentTarget;W.invalidateTabbables&&W.invalidateTabbables()},
createCacheKey:function(W,l){return _.U("web_popup_cache_key_killswitch")?l?W+"#"+l:W:l?"#"+l:W},
openSheet:function(W,l){var V=W==null?void 0:W.openPopupActionCommand;!V&&(W==null?0:W.viewModel)&&(V={openPopupAction:{popup:{sheetViewModel:W.viewModel},popupType:"CONTEXTUAL_SHEET"}});V&&this.handleOpenPopupAction(V,l)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var W=this;return _.g(function(l){return l.return(W.handleGetOpenedPopupsAction_().filter(function(V){var f;return((f=V.openPopupAction)==null?void 0:f.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(W,l,V){if(_.U("web_dialog_utils_killswitch")){var f=W==null?void 0:W.openPopupActionCommand,r=(V==null?0:V.ariaLabel)?{accessibilityData:{accessibilityData:{label:V.ariaLabel}}}:void 0;!f&&(W==null?0:W.viewModel)&&(f={openPopupAction:Object.assign({},{popup:{dialogViewModel:W.viewModel},popupType:(V==null?0:V.isModal)?"MODAL":"DIALOG"},r&&r)});f&&this.handleOpenPopupAction(f,l)}else{if(r=W==null?void 0:W.viewModel){var R=V=V===void 0?{}:V;V=R.ariaLabel;r={popup:{dialogViewModel:r},
popupType:R.isModal?"MODAL":"DIALOG"};R={accessibilityData:{label:V}};V&&(r.accessibilityData=R);r={openPopupAction:r}}else r=void 0;if(r=(f=r)!=null?f:W==null?void 0:W.openPopupActionCommand)this.isAriaModal=_.U("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(r,l)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var W=this;return _.g(function(l){return l.return(W.handleGetOpenedPopupsAction_().filter(function(V){var f;return((f=V.openPopupAction)==null?void 0:f.popupType)==="DIALOG"}).length>0)})}}];var g4L;var PYY;var n42=_.tj(["about:blank"]),NU=function(){var W=_.I.apply(this,arguments)||this;W.isMuted=!1;W.pageLoadTimeoutId=void 0;return W};
_.v(NU,_.I);_.t=NU.prototype;_.t.dataChanged=function(){var W=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var l=this.data.url,V=_.Av(l);_.U("enable_yt_ata_iframe_authuser")?(V=_.Av(l),_.WG(this.iframe,W$L(V))):_.WG(this.iframe,V);this.pageLoadTimeoutId=_.pS(_.Am(),function(){return void W.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Ud({destination:window,iframe:this.iframe,origin:_.DI$(V.toString()),channelName:"ataiframe",onMessage:_.Hq9(aS4,function(f){zl7(f.data)?(f=_.SY(f.data,1,_.r7,_.ns()),f.length!==1?_.Qe(Error("El")):(f=f[0],f===3?(W.isMuted=!0,W.logStateChanged({adMuteRequested:!0})):f===1&&W.close())):_.Qe(Error("Fl"))}),
onEstablished:function(){W.cancelPageLoadTimeout();W.logStateChanged({pageLoadSucceeded:!0})}})}};
_.t.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Am().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.t.logStateChanged=function(W){var l;if((l=this.data)==null?0:l.trackingParams)W={adsClientData:{aboutThisAdData:W}},_.Qq().stateChanged(this.data.trackingParams,W)};
_.t.close=function(){_.Gt(this.hostElement,"yt-close-popup-action",[this.is])};
_.t.handlesPopupClosed=function(W,l){var V=this,f,r;return _.g(function(R){if(R.nextAddress==1)return _.M4("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.Gt(V.hostElement,"on-about-this-ad-popup-closed",[V.isMuted,l]),R.jumpTo(0)):W&&lyZ(W)?R.yield(VJH(W),4):(V.isMuted&&_.Gt(V.hostElement,"yt-mute-ad-action",[V.is,V]),R.jumpTo(0));if(f=R.yieldResult){var y=r=new _.R4(f),P=V.isMuted;y.getOptions().includes("onAboutThisAdPopupClosed")?_.Lhe(y,"onAboutThisAdPopupClosed",{isMuted:P,layoutId:l}):_.sg("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.ju(R)})};
_.t.onPopupClosed=function(W){var l=this,V,f;return _.g(function(r){V=_.dO(n42);_.WG(l.iframe,V);l.cancelPageLoadTimeout();if(!l.data)return r.jumpTo(0);l.ytRendererBehavior.markDirty();f=W.detail.context.openingElement;return r.yield(l.handlesPopupClosed(f,l.data.layoutId),0)})};
_.t.detached=function(){this.cancelPageLoadTimeout()};
_.t.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
NU.prototype.onPopupClosed=NU.prototype.onPopupClosed;NU.prototype.dataChanged=NU.prototype.dataChanged;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],NU.prototype,"ytRendererBehavior",void 0);_.a([_.Aa("#iframe"),_.z("design:type",HTMLIFrameElement)],NU.prototype,"iframe",void 0);_.a([_.b(),_.z("design:type",Object)],NU.prototype,"data",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],NU.prototype,"dataChanged",null);
_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype",Promise)],NU.prototype,"onPopupClosed",null);_.a([_.Vq({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],NU);
_.Z(NU,"yt-about-this-ad-renderer",function(){if(PYY===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;g4L===void 0&&(g4L=document.createElement("template"));var f=g4L;V.call(l,f.content.cloneNode(!0),W.content.firstChild);PYY=W}W=PYY;return W},{mode:2});var CY1;var c3w;var Yf=function(W){var l=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=l.message;"stack"in l&&(this.stack=l.stack);this.maxFileSizeMB=W;Object.setPrototypeOf(this,Yf.prototype)};
_.v(Yf,Error);var Bbw=function(W,l){var V=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=V.message;"stack"in V&&(this.stack=V.stack);this.minWidth=W;this.minHeight=l;Object.setPrototypeOf(this,Bbw.prototype)};
_.v(Bbw,Error);var dfZ=function(W){this.requirements=W;this.JSC$20781_maxFileSize=W.maxFileSizeMB*1024*1024},J31=function(W,l){if(l.size>W.JSC$20781_maxFileSize)throw new Yf(W.requirements.maxFileSizeMB);
};var DfN=function(W,l){this.canvas=W;this.imageEditorBuilder=l};
DfN.prototype.addEventListeners=function(W){var l=function(r){Ufe(W,r)};
this.JSC$20787_mouseDownEvent=l;var V=function(r){uQw(W,r)};
this.JSC$20787_mouseMoveEvent=V;var f=function(){kn7(W)};
this.JSC$20787_mouseUpEvent=f;this.canvas.addEventListener("mousedown",l);this.canvas.addEventListener("mousemove",V);document.addEventListener("mouseup",f)};
DfN.prototype.removeEventListeners=function(){this.JSC$20787_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20787_mouseDownEvent);this.JSC$20787_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20787_mouseMoveEvent);this.JSC$20787_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20787_mouseUpEvent)};
var v4s=function(W,l){W.removeEventListeners();return new Promise(function(V){var f=new Image;f.crossOrigin="anonymous";f.onload=function(){var r=W.imageEditorBuilder(W.canvas,f);W.addEventListeners(r);V(r)};
f.src=l})},xf=function(W,l,V,f,r,R,y,P){this.canvas=W;
this.image=l;this.requiredRatio=V;this.minImageCropDimension=f;this.minOutputImageResolution=r;this.component=R;this.styleFocusedCorner=P===void 0?!0:P;this.action=2;this.focusedCorner=this.resizeCorner=0;W=this.canvas.getContext("2d");if(!W)throw Error("Gl");this.ctx=W;this.canvasMargin=y!=null?y:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;y=this.image;W=this.canvasInnerWidth/y.width;y.height*W>912&&(W=y.width/y.height*912/y.width);y=W;this.scaledImageWidth=this.canvas.width%2?
ryw(this.image.width*y):fyY(this.image.width*y);this.scaledImageHeight=Math.round(this.image.height*y);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20790_overlayMarginBottom=this.JSC$20790_overlayMarginTop=this.canvasMargin;this.JSC$20790_overlayMarginRight=this.JSC$20790_overlayMarginLeft=this.horizontalMargin;this.JSC$20790_overlayWidth=this.scaledImageWidth;this.JSC$20790_overlayHeight=this.scaledImageHeight;
W=this.image.width/this.image.height;W>this.requiredRatio?(this.JSC$20790_overlayWidth=this.canvas.width%2?ryw(this.scaledImageHeight*this.requiredRatio):fyY(this.scaledImageHeight*this.requiredRatio),this.JSC$20790_overlayMarginRight=this.JSC$20790_overlayMarginLeft=(this.canvas.width-this.JSC$20790_overlayWidth)/2):W<this.requiredRatio&&(this.JSC$20790_overlayHeight=this.canvas.height%2?ryw(this.scaledImageWidth/this.requiredRatio):fyY(this.scaledImageWidth/this.requiredRatio),this.JSC$20790_overlayMarginBottom=
this.JSC$20790_overlayMarginTop=(this.canvas.height-this.JSC$20790_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*y,this.scaledImageWidth);HQ5(this)};
xf.prototype.getContext=function(){return this.ctx};
var Ufe=function(W,l){l={x:Math.round(l.pageX-W.canvas.getBoundingClientRect().left),y:Math.round(l.pageY-W.canvas.getBoundingClientRect().top)};W.dragStart=l;K5Y(W,l)!==0?(W.action=1,F51(W,l),W.resizeCorner=K5Y(W,l)):l.x>W.JSC$20790_overlayMarginLeft&&l.x<W.JSC$20790_overlayMarginLeft+W.JSC$20790_overlayWidth&&l.y>W.JSC$20790_overlayMarginTop&&l.y<W.JSC$20790_overlayMarginTop+W.JSC$20790_overlayHeight&&(W.action=0)},Gn5=function(W,l){switch(l){case 1:return{x:W.JSC$20790_overlayMarginLeft,
y:W.JSC$20790_overlayMarginTop};case 2:return{x:W.JSC$20790_overlayMarginLeft,y:W.JSC$20790_overlayMarginTop+W.JSC$20790_overlayHeight};case 3:return{x:W.JSC$20790_overlayMarginLeft+W.JSC$20790_overlayWidth,y:W.JSC$20790_overlayMarginTop};case 4:return{x:W.JSC$20790_overlayMarginLeft+W.JSC$20790_overlayWidth,y:W.JSC$20790_overlayMarginTop+W.JSC$20790_overlayHeight};default:throw Error("Hl");}},pC1=function(W,l){if(W.focusedCorner!==0){W.dragStart=Gn5(W,W.focusedCorner);
W.action=1;W.resizeCorner=W.focusedCorner;var V=W.dragStart.x,f=W.dragStart.y;switch(l){case 0:W.focusedCorner===1||W.focusedCorner===4?(V-=10,f-=10):(V-=10,f+=10);break;case 1:W.focusedCorner===1||W.focusedCorner===4?(V+=10,f+=10):(V+=10,f-=10);break;case 2:V=W.focusedCorner===1||W.focusedCorner===4?V-10:V+10;f-=10;break;case 3:V=W.focusedCorner===1||W.focusedCorner===4?V+10:V-10;f+=10;break;default:throw Error("Il");}bQH(W,{x:V,y:f});HQ5(W);W.action=2;W.dragStart=void 0}},uQw=function(W,l){l={x:Math.round(l.pageX-
W.canvas.getBoundingClientRect().left),
y:Math.round(l.pageY-W.canvas.getBoundingClientRect().top)};F51(W,l);switch(W.action){case 1:bQH(W,l);break;case 0:W.dragStart&&(W.JSC$20790_overlayMarginLeft=Math.max(W.horizontalMargin,Math.min(W.JSC$20790_overlayMarginLeft-(W.dragStart.x-l.x),W.horizontalMargin+W.scaledImageWidth-W.JSC$20790_overlayWidth)),W.JSC$20790_overlayMarginRight=W.canvas.width-W.JSC$20790_overlayMarginLeft-W.JSC$20790_overlayWidth,W.JSC$20790_overlayMarginTop=Math.max(W.canvasMargin,Math.min(W.JSC$20790_overlayMarginTop-
(W.dragStart.y-l.y),W.scaledImageHeight-W.JSC$20790_overlayHeight+W.canvasMargin)),W.JSC$20790_overlayMarginBottom=W.canvas.height-(W.JSC$20790_overlayMarginTop+W.JSC$20790_overlayHeight));break;default:return}HQ5(W);W.dragStart=l},kn7=function(W){W.action=2;
W.dragStart=void 0;document.body.style.cursor="auto"},F51=function(W,l){switch(K5Y(W,l)){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:W.action!==1&&(document.body.style.cursor="auto")}},K5Y=function(W,l){var V=W.JSC$20790_overlayMarginLeft-5,f=W.JSC$20790_overlayMarginTop-5,r=W.JSC$20790_overlayMarginLeft+W.JSC$20790_overlayWidth-5;
W=W.JSC$20790_overlayMarginTop+W.JSC$20790_overlayHeight-5;return o4N(l,{x:V,y:f})?1:o4N(l,{x:r,y:f})?3:o4N(l,{x:V,y:W})?2:o4N(l,{x:r,y:W})?4:0},o4N=function(W,l){return W.x>=l.x&&W.x<=l.x+10&&W.y>=l.y&&W.y<=l.y+10},bQH=function(W,l){if(W.dragStart)switch(W.resizeCorner){case 2:Math.abs((W.JSC$20790_overlayMarginLeft+W.JSC$20790_overlayWidth-l.x)/(l.y-W.JSC$20790_overlayMarginTop))>=W.requiredRatio?j5H(W,l.x):IfY(W,l.y);
break;case 1:Math.abs((W.JSC$20790_overlayMarginLeft+W.JSC$20790_overlayWidth-l.x)/(W.JSC$20790_overlayMarginTop+W.JSC$20790_overlayHeight-l.y))>=W.requiredRatio?iQZ(W,l.x):IfY(W,l.y);break;case 4:Math.abs((l.x-W.JSC$20790_overlayMarginLeft)/(l.y-W.JSC$20790_overlayMarginTop))>=W.requiredRatio?j5H(W,l.x):mfN(W,l.y);break;case 3:Math.abs((l.x-W.JSC$20790_overlayMarginLeft)/(W.JSC$20790_overlayMarginTop+W.JSC$20790_overlayHeight-l.y))>=W.requiredRatio?iQZ(W,l.x):mfN(W,l.y);break;default:throw Error("Jl");
}},j5H=function(W,l){var V=W.JSC$20790_overlayMarginTop;
W.JSC$20790_overlayMarginBottom=XCN(W,l);W.JSC$20790_overlayHeight=W.canvas.height-W.JSC$20790_overlayMarginBottom-V;W.JSC$20790_overlayWidth=Math.round(W.JSC$20790_overlayHeight*W.requiredRatio);TbH(W)},iQZ=function(W,l){var V=W.JSC$20790_overlayMarginTop+W.JSC$20790_overlayHeight;
W.JSC$20790_overlayMarginTop=XCN(W,l);W.JSC$20790_overlayHeight=V-W.JSC$20790_overlayMarginTop;W.JSC$20790_overlayWidth=Math.round(W.JSC$20790_overlayHeight*W.requiredRatio);TbH(W)},TbH=function(W){switch(W.resizeCorner){case 2:case 1:W.JSC$20790_overlayMarginLeft=W.canvas.width-W.JSC$20790_overlayMarginRight-W.JSC$20790_overlayWidth;
break;case 4:case 3:W.JSC$20790_overlayMarginRight=W.canvas.width-W.JSC$20790_overlayMarginLeft-W.JSC$20790_overlayWidth;break;default:throw Error("Jl");}},IfY=function(W,l){var V=W.JSC$20790_overlayMarginLeft+W.JSC$20790_overlayWidth;
W.JSC$20790_overlayMarginLeft=wC1(W,l);W.JSC$20790_overlayWidth=V-W.JSC$20790_overlayMarginLeft;W.JSC$20790_overlayHeight=Math.round(W.JSC$20790_overlayWidth/W.requiredRatio);A3L(W)},mfN=function(W,l){var V=W.JSC$20790_overlayMarginLeft;
W.JSC$20790_overlayMarginRight=wC1(W,l);W.JSC$20790_overlayWidth=W.canvas.width-W.JSC$20790_overlayMarginRight-V;W.JSC$20790_overlayHeight=Math.round(W.JSC$20790_overlayWidth/W.requiredRatio);A3L(W)},A3L=function(W){switch(W.resizeCorner){case 2:case 4:W.JSC$20790_overlayMarginBottom=W.canvas.height-W.JSC$20790_overlayMarginTop-W.JSC$20790_overlayHeight;
break;case 1:case 3:W.JSC$20790_overlayMarginTop=W.canvas.height-W.JSC$20790_overlayMarginBottom-W.JSC$20790_overlayHeight;break;default:throw Error("Jl");}},XCN=function(W,l){switch(W.resizeCorner){case 2:l=W.canvas.height-(W.JSC$20790_overlayMarginTop+Q57(W,l));
break;case 4:l=W.canvas.height-(W.JSC$20790_overlayMarginTop+M85(W,l));break;case 1:l=W.JSC$20790_overlayMarginTop+W.JSC$20790_overlayHeight-Q57(W,l);break;case 3:l=W.JSC$20790_overlayMarginTop+W.JSC$20790_overlayHeight-M85(W,l);break;default:throw Error("Jl");}return Math.max(l,W.canvasMargin)},Q57=function(W,l){l=W.JSC$20790_overlayMarginLeft+W.JSC$20790_overlayWidth-Math.max(l,W.horizontalMargin);
l=l<0?W.JSC$20790_overlayWidth:Math.max(l,W.minOverlayWidth);return Math.round(l/W.requiredRatio)},M85=function(W,l){l=W.canvas.width-Math.max(W.canvas.width-l,W.horizontalMargin)-W.JSC$20790_overlayMarginLeft;
l=l<0?W.JSC$20790_overlayWidth:Math.max(l,W.minOverlayWidth);return Math.round(l/W.requiredRatio)},wC1=function(W,l){switch(W.resizeCorner){case 2:l=W.canvas.width-W.JSC$20790_overlayMarginRight-ZQ2(W,l);
break;case 4:l=W.canvas.width-W.JSC$20790_overlayMarginLeft-ZQ2(W,l);break;case 1:l=W.canvas.width-W.JSC$20790_overlayMarginRight-OQw(W,l);break;case 3:l=W.canvas.width-W.JSC$20790_overlayMarginLeft-OQw(W,l);break;default:throw Error("Jl");}return Math.max(l,W.horizontalMargin)},ZQ2=function(W,l){l=W.canvas.height-Math.max(W.canvas.height-l,W.canvasMargin)-W.JSC$20790_overlayMarginTop;
return l<0?W.JSC$20790_overlayWidth:Math.max(Math.round(l*W.requiredRatio),W.minOverlayWidth)},OQw=function(W,l){l=W.JSC$20790_overlayMarginTop+W.JSC$20790_overlayHeight-Math.max(l,W.canvasMargin);
return l<0?W.JSC$20790_overlayWidth:Math.max(Math.round(l*W.requiredRatio),W.minOverlayWidth)},HQ5=function(W){W.ctx.clearRect(0,0,W.canvas.width,W.canvas.height);
W.ctx.drawImage(W.image,0,0,W.image.width,W.image.height,W.horizontalMargin,W.canvasMargin,W.canvas.width-2*W.horizontalMargin,W.scaledImageHeight);W.ctx.fillStyle="rgba(0, 0, 0, 0.7)";W.ctx.fillRect(W.horizontalMargin,W.JSC$20790_overlayMarginTop,W.JSC$20790_overlayMarginLeft-W.horizontalMargin,W.JSC$20790_overlayHeight);W.ctx.fillRect(W.JSC$20790_overlayMarginLeft+W.JSC$20790_overlayWidth,W.JSC$20790_overlayMarginTop,W.JSC$20790_overlayMarginRight-W.horizontalMargin,W.JSC$20790_overlayHeight);W.ctx.fillRect(W.horizontalMargin,
W.canvasMargin,W.scaledImageWidth,W.JSC$20790_overlayMarginTop-W.canvasMargin);W.ctx.fillRect(W.horizontalMargin,W.JSC$20790_overlayMarginTop+W.JSC$20790_overlayHeight,W.scaledImageWidth,W.JSC$20790_overlayMarginBottom-W.canvasMargin);W.drawOverlay();W.component&&_.FN(W.component,"image-updated")};
xf.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20790_overlayMarginLeft,this.JSC$20790_overlayMarginTop,this.JSC$20790_overlayWidth,this.JSC$20790_overlayHeight);af2(this)};
var af2=function(W){var l=W.JSC$20790_overlayMarginLeft-5,V=W.JSC$20790_overlayMarginTop-5,f=W.JSC$20790_overlayMarginLeft+W.JSC$20790_overlayWidth-5,r=W.JSC$20790_overlayMarginTop+W.JSC$20790_overlayHeight-5;W.ctx.fillStyle="#FFF";W.ctx.fillRect(l,V,10,10);W.ctx.strokeRect(l,V,10,10);W.ctx.fillRect(f,V,10,10);W.ctx.strokeRect(f,V,10,10);W.ctx.fillRect(l,r,10,10);W.ctx.strokeRect(l,r,10,10);W.ctx.fillRect(f,r,10,10);W.ctx.strokeRect(f,r,10,10);if(W.focusedCorner!==0&&W.styleFocusedCorner){W.ctx.lineWidth=
4;W.ctx.strokeStyle="#3EA6FF";switch(W.focusedCorner){case 1:--l;--V;break;case 2:--l;V=r-1;break;case 3:l=f-1;--V;break;case 4:l=f-1;V=r-1;break;default:return}W.ctx.strokeRect(l,V,12,12)}};
xf.prototype.crop=function(W,l){l=l===void 0?!0:l;var V=this.image.width/this.scaledImageWidth,f=document.createElement("canvas"),r=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],R=this.JSC$20790_overlayWidth*V,y=this.JSC$20790_overlayHeight*V;f.width=Math.max(R,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);f.height=Math.max(y,r);W&&(f.width=Math.min(f.width,f.height),f.height=Math.min(f.width,f.height));
W=f.getContext("2d");if(!W)throw Error("xl");r=(this.JSC$20790_overlayMarginLeft-this.horizontalMargin)*V;V*=this.JSC$20790_overlayMarginTop-this.canvasMargin;l||(W.fillStyle="white",W.fillRect(0,0,f.width,f.height));W.drawImage(this.image,r,V,R,y,0,0,f.width,f.height);return f};var z32=function(W,l,V,f,r){xf.call(this,W,l,V,f,void 0,r,8,!1)};
_.v(z32,xf);z32.prototype.drawOverlay=function(){var W=this.getContext(),l=this.JSC$20790_overlayWidth,V=this.JSC$20790_overlayHeight,f=this.JSC$20790_overlayMarginTop,r=this.JSC$20790_overlayMarginLeft;W.lineWidth=2;W.strokeStyle="#3EA6FF";W.beginPath();W.arc(r+l/2,f+V/2,l/2,0,2*Math.PI);W.stroke();W.strokeRect(r,f,l,V);af2(this)};
var Nb1={maxFileSizeMB:15,minWidth:98,minHeight:98},YaY=["image/png","image/jpeg","image/gif"],e2=function(){var W=_.I.apply(this,arguments)||this;W.fileSelectorFocusListener=null;W.errorMessage=null;W.isLoading=!0;W.hideContainer=!0;W.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return W};
_.v(e2,_.I);_.t=e2.prototype;_.t.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.t.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.t.computePlaylistThumbnail=function(W){return W==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.t.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.Gt(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.t.setErrorState=function(W){this.resetErrorState();W&&(this.errorMessage=W)};
_.t.showPopup=function(){var W=this;this.hideContainer=!1;_.pS(_.w8,function(){_.FN(W.hostElement,"yt-refit")});
this.isLoading=!1};
_.t.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.t.closePopup=function(){this.resetFileSelector();_.Gt(this.hostElement,"yt-close-popup-action",[this.is])};
_.t.onCancelTap=function(){this.isPlaylistThumbnail||_.Gt(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.t.openFileSelector=function(){var W=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.pS(_.w8,function(){setTimeout(function(){if(!W.fileSelector.files||W.fileSelector.files.length===0)W.onCancelTap();W.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(l){l instanceof Error?_.wv(l):_.Ar(new _.bP(JSON.stringify(l)))}};
_.t.handleFileSelection=function(){var W=this,l,V,f,r,R,y;return _.g(function(P){switch(P.nextAddress){case 1:_.HG(P,2);if(!W.fileSelector.files||!W.imageEditorCanvas)return W.onCancelTap(),P.return();l=W.fileSelector.files[0];J31(W.imageChecker,l);_.HG(P,4);return P.yield(pIZ(l),6);case 6:W.mimeType=P.yieldResult;_.qL(P,5,2);break;case 4:_.pc(P,2),_.Gt(W.hostElement,"yt-image-selection-error-action",[(V=W.data)==null?void 0:V.genericImageLoadErrorMessage]),W.onCancelTap();case 5:f=new FileReader;
f.addEventListener("load",function(){var n,B;return _.g(function(d){if(d.nextAddress==1){if(!f.result)return _.Qe(Error("zl")),d.return();n=f.result;B=new Image;B.src=n;B.onload=function(){try{var J=W.imageChecker;if(B.width<J.requirements.minWidth||B.height<J.requirements.minHeight)throw new Bbw(J.requirements.minWidth,J.requirements.minHeight);}catch(u){if(u instanceof Bbw){var D;_.Gt(W.hostElement,"yt-image-selection-error-action",[(D=W.data)==null?void 0:D.imageDimensionErrorMessage]);W.logImageDimensionErrorVe()}else u instanceof
Error?_.wv(u):(J=new _.bP(JSON.stringify(u)),_.wv(J));W.onCancelTap()}W.showPopup()};
B.onerror=function(){var J;_.Gt(W.hostElement,"yt-image-selection-error-action",[(J=W.data)==null?void 0:J.genericImageLoadErrorMessage]);W.onCancelTap()};
return d.yield(v4s(W.imageEditorCanvas,n),2)}W.imageEditor=d.yieldResult;W.updatePositionOfAllCorners();W.addEventListeners(W.imageEditor);_.ju(d)})},!1);
f.readAsDataURL(l);_.qL(P,0);break;case 2:r=_.pc(P),r instanceof Yf?_.Gt(W.hostElement,"yt-image-selection-error-action",[(R=W.data)==null?void 0:R.imageSizeErrorMessage]):(r instanceof Error?_.wv(r):_.Ar(new _.bP(JSON.stringify(r))),_.Gt(W.hostElement,"yt-image-selection-error-action",[(y=W.data)==null?void 0:y.genericImageLoadErrorMessage])),W.onCancelTap(),_.ju(P)}})};
_.t.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var W=_.AG(_.Qq(),{veType:232707,visualElement:_.GY(232707)});W&&(W={visualElement:W},_.wm().reportShown(W))}};
_.t.handleImageSelectionErrorAction=function(W){this.isPlaylistThumbnail&&_.tHn(this.hostElement,W)};
_.t.convertToImageFormatBundle=function(W){var l=this,V,f,r;return _.g(function(R){switch(R.nextAddress){case 1:return V=W.toDataURL(l.outputMimeType,1),R.yield(oh1(V),2);case 2:f=R.yieldResult;_.HG(R,3);J31(l.imageChecker,f);_.qL(R,4);break;case 3:r=_.pc(R);if(!(r instanceof Yf))throw r;_.Qe(new _.bP("Output size is bigger than input size for image",l.mimeType,l.outputMimeType,f.size));V=W.toDataURL("image/jpeg",.95);return R.yield(oh1(V),6);case 6:f=R.yieldResult;case 4:return R.return({dataUrl:V,
imageFile:f})}})};
_.t.handleUploadImageToScottyCommand=function(W){var l=this,V,f,r,R,y,P,n,B,d,J;return _.g(function(D){switch(D.nextAddress){case 1:if(!l.imageEditor||!_.k(W,Rfw))return D.return();V=_.k(W,Rfw).scottyUploadUrl;if(!V){var u=new _.bP("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.wv(u);return D.return()}_.HG(D,2);l.setLoadingState();f=l.imageEditor.crop(!1,!1);return D.yield(l.convertToImageFormatBundle(f),4);case 4:return r=D.yieldResult,D.yield(GmL(r.imageFile,V),5);
case 5:R=D.yieldResult;((y=l.data)==null?0:y.onUploadEndpoint)?(P=l.buildUploadServiceEndpoint(R),l.ytComponentBehavior.resolveCommand(P),n=_.k(P,_.gT),((B=n)==null?0:B.params)?l.closePopup():l.resetFileSelector()):(_.Gt(l.hostElement,"yt-image-updated-action",[r.dataUrl,R]),l.closePopup());_.qL(D,0);break;case 2:d=_.pc(D),l.setErrorState((J=l.data)==null?void 0:J.uploadErrorMessage),d instanceof Error?_.wv(d):(u=new _.bP(JSON.stringify(d)),_.wv(u)),_.ju(D)}})};
_.t.buildUploadServiceEndpoint=function(W){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",W),this.data.onUploadEndpoint):null};
_.t.dataChanged=function(){var W=this,l;return _.g(function(V){if(V.nextAddress==1){if(!W.data||!W.canvasElement)return V.return();W.data.imageRatio&&W.data.minImageCropWidth||_.Ar(new _.bP("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));l=function(f,r){return W.data.imageType==="IMAGE_TYPE_AVATAR"?new z32(f,r,W.data.imageRatio,[W.data.minImageCropWidth,W.data.minImageCropWidth/W.data.imageRatio],W.hostElement):new xf(f,r,W.data.imageRatio,[W.data.minImageCropWidth,
W.data.minImageCropWidth/W.data.imageRatio],void 0,W.hostElement,8,!1)};
W.imageEditorCanvas=new DfN(W.canvasElement,l);return W.data.url?V.yield(v4s(W.imageEditorCanvas,W.data.url),3):(W.hideContainer=!0,W.openFileSelector(),V.jumpTo(0))}W.imageEditor=V.yieldResult;W.showPopup();W.addEventListeners(W.imageEditor);_.ju(V)})};
_.t.addEventListeners=function(W){this.removeEventListeners();var l=function(r){Ufe(W,r)};
this.JSC$20798_mouseDownEvent=l;var V=function(r){uQw(W,r)};
this.JSC$20798_mouseMoveEvent=V;var f=function(){kn7(W)};
this.JSC$20798_mouseUpEvent=f;this.topLeftCorner.addEventListener("mousedown",l);this.topLeftCorner.addEventListener("mousemove",V);this.topLeftCorner.addEventListener("mouseup",f);this.topRightCorner.addEventListener("mousedown",l);this.topRightCorner.addEventListener("mousemove",V);this.topRightCorner.addEventListener("mouseup",f);this.bottomLeftCorner.addEventListener("mousedown",l);this.bottomLeftCorner.addEventListener("mousemove",V);this.bottomLeftCorner.addEventListener("mouseup",f);this.bottomRightCorner.addEventListener("mousedown",
l);this.bottomRightCorner.addEventListener("mousemove",V);this.bottomRightCorner.addEventListener("mouseup",f)};
_.t.removeEventListeners=function(){this.JSC$20798_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20798_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20798_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20798_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20798_mouseDownEvent));this.JSC$20798_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20798_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20798_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20798_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20798_mouseMoveEvent));this.JSC$20798_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20798_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20798_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20798_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20798_mouseUpEvent))};
_.t.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var W=document.activeElement;W&&W.shadowRoot&&W.shadowRoot.activeElement;)W=W.shadowRoot.activeElement;switch(W){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};
_.t.updatePositionOfCorner=function(W,l){var V=W.y-l.offsetHeight/2+4;l.style.left=W.x-l.offsetWidth/2+16+"px";l.style.top=V+"px"};
_.t.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var W=_.L([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),l=W.next();!l.done;l=W.next()){l=l.value;var V=Gn5(this.imageEditor,l.corner);this.updatePositionOfCorner(V,l.div)}};
_.t.onLeft=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(pC1(this.imageEditor,0),this.updatePositionOfAllCorners(),W.preventDefault())};
_.t.onRight=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(pC1(this.imageEditor,1),this.updatePositionOfAllCorners(),W.preventDefault())};
_.t.onUp=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(pC1(this.imageEditor,2),this.updatePositionOfAllCorners(),W.preventDefault())};
_.t.onDown=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(pC1(this.imageEditor,3),this.updatePositionOfAllCorners(),W.preventDefault())};
_.t.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.rc.Object.defineProperties(e2.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&YaY.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var W,l,V;((l=this.data)==null?0:l.imageRatio)&&((V=this.data)==null?0:V.minImageCropWidth)?W={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:W=Nb1;return new dfZ(W)}}});
e2.prototype.updatePositionOfAllCorners=e2.prototype.updatePositionOfAllCorners;e2.prototype.dataChanged=e2.prototype.dataChanged;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],e2.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],e2.prototype,"ytComponentBehavior",void 0);_.a([_.F(_.NN),_.z("design:type",Object)],e2.prototype,"ironA11yKeysBehavior",void 0);
_.a([_.Aa("#canvas"),_.z("design:type",HTMLCanvasElement)],e2.prototype,"canvasElement",void 0);_.a([_.Aa("#file-selector"),_.z("design:type",HTMLInputElement)],e2.prototype,"fileSelector",void 0);_.a([_.Aa("#top-left-corner"),_.z("design:type",HTMLDivElement)],e2.prototype,"topLeftCorner",void 0);_.a([_.Aa("#top-right-corner"),_.z("design:type",HTMLDivElement)],e2.prototype,"topRightCorner",void 0);
_.a([_.Aa("#bottom-left-corner"),_.z("design:type",HTMLDivElement)],e2.prototype,"bottomLeftCorner",void 0);_.a([_.Aa("#bottom-right-corner"),_.z("design:type",HTMLDivElement)],e2.prototype,"bottomRightCorner",void 0);_.a([_.b(),_.z("design:type",Object)],e2.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],e2.prototype,"errorMessage",void 0);_.a([_.b(),_.z("design:type",Object)],e2.prototype,"isLoading",void 0);_.a([_.b(),_.z("design:type",Object)],e2.prototype,"hideContainer",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.z("design:type",Boolean)],e2.prototype,"isPlaylistThumbnail",void 0);_.a([_.zS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],e2.prototype,"dataChanged",null);_.a([_.XI("image-updated"),_.XI("yt-refit"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],e2.prototype,"updatePositionOfAllCorners",null);
_.a([_.Vq({is:"yt-image-editor-renderer",disableElementRegistration:!0})],e2);
_.Z(e2,"yt-image-editor-renderer",function(){if(c3w===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;CY1===void 0&&(CY1=document.createElement("template"));var f=CY1;V.call(l,f.content.cloneNode(!0),W.content.firstChild);c3w=W}W=c3w;return W},{mode:2});var xfN;var e37;var qU=function(){return _.I.apply(this,arguments)||this};
_.v(qU,_.I);qU.prototype.updateMinutesFromBinding=function(W){this.handleMinutesChanged&&this.handleMinutesChanged(W)};
qU.prototype.updateSecondsFromBinding=function(W){this.handleSecondsChanged&&this.handleSecondsChanged(W)};
qU.prototype.updateDescriptionFromBinding=function(W){this.handleDescriptionChanged&&this.handleDescriptionChanged(W)};
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],qU.prototype,"ytComponentBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],qU.prototype,"data",void 0);_.a([_.b(),_.z("design:type",String)],qU.prototype,"minutes",void 0);_.a([_.b(),_.z("design:type",String)],qU.prototype,"seconds",void 0);_.a([_.b(),_.z("design:type",String)],qU.prototype,"description",void 0);_.a([_.b(),_.z("design:type",Function)],qU.prototype,"handleMinutesChanged",void 0);
_.a([_.b(),_.z("design:type",Function)],qU.prototype,"handleSecondsChanged",void 0);_.a([_.b(),_.z("design:type",Function)],qU.prototype,"handleDescriptionChanged",void 0);_.a([_.b(),_.z("design:type",Number)],qU.prototype,"characterLimit",void 0);_.a([_.b(),_.z("design:type",Number)],qU.prototype,"textNumRows",void 0);_.a([_.Vq({is:"yt-report-details-form-content",disableElementRegistration:!0})],qU);
_.Z(qU,"yt-report-details-form-content",function(){if(e37===void 0){var W=document.createElement("template");_.K(W,'\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>');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;xfN===void 0&&(xfN=document.createElement("template"));var f=xfN;V.call(l,f.content.cloneNode(!0),W.content.firstChild);e37=W}W=e37;return W},{mode:2});var qaY;var h3L;var h7=function(){var W=_.I.apply(this,arguments)||this;W.updateMinutesFromBinding=function(l){W.minutes=l.detail.value};
W.updateSecondsFromBinding=function(l){W.seconds=l.detail.value};
W.updateDescriptionFromBinding=function(l){W.description=l.detail.value};
return W};
_.v(h7,_.I);_.t=h7.prototype;_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.t.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"}}}};
_.t.ready=function(){_.GS(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.t.onSubmitYtAction=function(W){var l=W.detail;l.actionName==="yt-service-request"&&(l=l.args[1],l.flagEndpoint&&(W.stopPropagation(),this.refireAction(l)))};
_.t.refireAction=function(W){var l={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(l.vss_id=this.vssId);_.pN(this.hostElement,[W,l]);this.submitDisabled=!0};
_.t.dataChanged=function(){var W=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var l=_.Jy();l&&l.getPlayerPromise().then(function(V){var f=V.getOption("cc","track")||V.getOption("captions","track");f&&(W.vssId=f.vss_id);V=V.getCurrentTime();W.minutes=Math.floor(V/60).toString();W.seconds=(Math.floor(V)%60).toString()})};
_.t.updateSubmitButtonState=function(){var W;((W=this.data)==null?0:W.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==="")};
_.t.onYtServiceRequestCompleted=function(){_.Gt(this.hostElement,"yt-close-popup-action")};
_.t.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.rc.Object.defineProperties(h7.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.textNumRows)||4}}});
h7.prototype.onYtServiceRequestError=h7.prototype.onYtServiceRequestError;h7.prototype.onYtServiceRequestCompleted=h7.prototype.onYtServiceRequestCompleted;h7.prototype.updateSubmitButtonState=h7.prototype.updateSubmitButtonState;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],h7.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);
_.a([_.b({observer:"dataChanged"}),_.z("design:type",Object)],h7.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Boolean)],h7.prototype,"submitDisabled",void 0);_.a([_.b(),_.z("design:type",String)],h7.prototype,"minutes",void 0);_.a([_.b(),_.z("design:type",String)],h7.prototype,"seconds",void 0);_.a([_.b(),_.z("design:type",String)],h7.prototype,"description",void 0);_.a([_.b(),_.z("design:type",String)],h7.prototype,"vssId",void 0);
_.a([_.b({value:_.M4("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.z("design:type",Boolean)],h7.prototype,"isMusic",void 0);_.a([_.G("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],h7.prototype,"characterLimit",null);_.a([_.G("data"),_.z("design:type",Number),_.z("design:paramtypes",[])],h7.prototype,"textNumRows",null);
_.a([_.zS("minutes","seconds","description","submitDisabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h7.prototype,"updateSubmitButtonState",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h7.prototype,"onYtServiceRequestCompleted",null);
_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],h7.prototype,"onYtServiceRequestError",null);_.a([_.Vq({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],h7);
_.Z(h7,"yt-report-details-form-renderer",function(){if(h3L===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;qaY===void 0&&(qaY=document.createElement("template"));var f=qaY;V.call(l,f.content.cloneNode(!0),W.content.firstChild);h3L=W}W=h3L;return W});var Sa4;var E41;var $f1;var WRs;var S2=function(){return _.I.apply(this,arguments)||this};
_.v(S2,_.I);
S2.prototype.onCheckedChanged_=function(){if(this.data){var W=_.GS(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.Gt(this.hostElement,"yt-additional-detail-checkbox-update",[W]):this.data.identifier==="yt-hide-user-checkbox"?_.Gt(this.hostElement,"yt-hide-user-checkbox-update",[W]):W&&this.data.enableCommand?_.Gt(this.hostElement,"yt-modify-report-form-command",[_.k(this.data.enableCommand,nIY)]):!W&&this.data.disableCommand&&_.Gt(this.hostElement,
"yt-modify-report-form-command",[_.k(this.data.enableCommand,nIY)])}};
S2.prototype.onLabelTap_=function(W){W.target.tagName!="A"&&(_.GS(this.hostElement).querySelector("#checkbox").checked=!_.GS(this.hostElement).querySelector("#checkbox").checked)};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],S2.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],S2.prototype,"data",void 0);_.a([_.Vq({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],S2);
_.Z(S2,"yt-boolean-form-field-v2-renderer",function(){if(WRs===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;$f1===void 0&&($f1=document.createElement("template"));var f=$f1;V.call(l,f.content.cloneNode(!0),W.content.firstChild);WRs=W}W=WRs;return W});var EQ=function(){var W=_.I.apply(this,arguments)||this;W.canShowAdditionalDetailCheckbox=!1;W.canShowCheckbox=!1;W.keepDropdownFocusedAfterSelection=!0;return W};
_.v(EQ,_.I);EQ.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}}}}};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],EQ.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],EQ.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],EQ.prototype,"canShowAdditionalDetailCheckbox",void 0);_.a([_.b(),_.z("design:type",Object)],EQ.prototype,"canShowCheckbox",void 0);_.a([_.b(),_.z("design:type",Object)],EQ.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.a([_.Vq({is:"yt-report-form-modal-content",disableElementRegistration:!0})],EQ);
_.Z(EQ,"yt-report-form-modal-content",function(){if(E41===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;Sa4===void 0&&(Sa4=document.createElement("template"));var f=Sa4;V.call(l,f.content.cloneNode(!0),W.content.firstChild);E41=W}W=E41;return W},{mode:2});var lV5;var V0Y;var $f=function(){var W=_.I.apply(this,arguments)||this;W.submitting=!1;W.submitButtonDisabled=!0;W.command=null;W.canShowCheckbox=!1;W.canShowAdditionalDetailCheckbox=!1;W.canShowNextButton=!1;W.additionalDetailCheckboxChecked=!1;W.refitJob=0;W.keepDropdownFocusedAfterSelection=!0;W.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 W};
_.v($f,_.I);_.t=$f.prototype;_.t.created=function(){this.refitJob=0};
_.t.attached=function(){this.JSC$20821_scroller&&(this.JSC$20821_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20821_scroller.attached&&typeof this.JSC$20821_scroller.attached==="function"&&this.JSC$20821_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.dataChanged=function(W){W&&(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,W.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),W.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.t.onYtPopupOpened=function(){var W=_.Jy();W&&W.getPlayerPromise().then(function(l){l.pauseVideo()})};
_.t.onYtNavigate=function(W){_.k(W.detail.endpoint,_.OU9)&&(W.stopPropagation(),this.hideReportForm=!0)};
_.t.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.t.onYtServiceRequestCompleted=function(W,l){var V=l.actions;if(V){if(V.length===1&&_.k(V[0],_.Ig)){var f;V=((f=_.k(V[0],_.Ig))==null?void 0:f.commands)||[]}f=0;for(var r=V.length;f<r;f++)_.k(V[f],_.Ss)&&(W.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(V[f]))}if(l.data&&(W=this.get("feedbackResponses",l.data)))for(l=0;l<W.length;l++)if(W[l].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.t.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.t._onDescendantIronResize=function(W){W.stopPropagation();return!1};
_.t.handleReportFormEndpointUpdateAction=function(W){if(W.submitEndpoint){var l=this.command=W.submitEndpoint;l=_.k(l,_.Q9a);if(l==null?0:l.additionalDetailCheckboxChecked)l.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else W.submitNavigationEndpoint?(this.command=W.submitNavigationEndpoint,this.toggleSubmitButton(!1)):W.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:W.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;W.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",W));this.refit()};
_.t.handleConfirmDialogCloseAction=function(W){W.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.t.submitButtonDisabledChanged=function(){var W=this.hostElement.parentElement;W&&W.invalidateTabbables&&W.invalidateTabbables()};
_.t.handleModifyReportFormCommand=function(W){W=this.get("action",W);W==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:W==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:W==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:W==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:W==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:W==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.t.updateDialogStyling=function(){var W,l,V,f,r,R=((r=(W=this.data)==null?void 0:(l=W.optionsSupportedRenderers)==null?void 0:(V=l.optionsRenderer)==null?void 0:(f=V.items)==null?void 0:f.length)!=null?r:0)<=2?0:240;_.I1(this.hostElement,{"--yt-report-form-modal-renderer-min-width":R+"px"})};
_.t.toggleSubmitButton=function(W){this.submitButtonDisabled=!W;this.submitButtonDisabled=W};
_.t.computeSubmitButtonData=function(W,l){var V={};_.k(l,_.OU9)?V.navigationEndpoint=l:V.command=l||void 0;W&&W.buttonRenderer&&_.MC.extend(V,W.buttonRenderer);return V};
_.t.computeNextButtonData=function(W,l){var V={};if(!W||!W.buttonRenderer)return V;_.MC.extend(V,W.buttonRenderer);if(!l)return V;if(_.k(l,_.OU9))V.navigationEndpoint=jQ1(l);else if(V.command=jQ1(l),W=_.k(V.command,_.Q9a))W.legalCheckboxChecked=!0;return V};
_.t.computeShowNextButton=function(W,l,V){return!!W&&l&&V};
_.t.refit=function(){var W=this;this.refitJob||(this.refitJob=_.w8.addLowPriorityJob(function(){_.FN(W.hostElement,"yt-refit");W.refitJob=0}))};
_.t.handleAdditionalDetailCheckboxUpdateAction=function(W){this.additionalDetailCheckboxChecked=W;_.k(this.command,_.Q9a).additionalDetailCheckboxChecked=W};
_.rc.Object.defineProperties($f,{template:{configurable:!0,enumerable:!0,get:function(){if(V0Y===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;lV5===void 0&&(lV5=document.createElement("template"));var f=lV5;V.call(l,f.content.cloneNode(!0),W.content.firstChild);V0Y=W}W=V0Y;return W}}});
$f.prototype.onYtServiceRequestError=$f.prototype.onYtServiceRequestError;$f.prototype.onYtServiceRequestCompleted=$f.prototype.onYtServiceRequestCompleted;$f.prototype.onYtServiceRequestSent=$f.prototype.onYtServiceRequestSent;$f.prototype.onYtNavigate=$f.prototype.onYtNavigate;$f.prototype.onYtPopupOpened=$f.prototype.onYtPopupOpened;_.a([_.F(_.eX.YtOpenPopupBehavior),_.z("design:type",Object)],$f.prototype,"openPopupBehavior",void 0);
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],$f.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],$f.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],$f.prototype,"eventForwardingBehavior",void 0);_.a([_.F(_.Wo),_.z("design:type",Object)],$f.prototype,"ironResizableBehavior",void 0);_.a([_.b({observer:"dataChanged"}),_.z("design:type",Object)],$f.prototype,"data",void 0);
_.a([_.b(),_.z("design:type",Object)],$f.prototype,"submitting",void 0);_.a([_.b({observer:"submitButtonDisabledChanged"}),_.z("design:type",Object)],$f.prototype,"submitButtonDisabled",void 0);_.a([_.b(),_.z("design:type",Object)],$f.prototype,"command",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],$f.prototype,"hideReportForm",void 0);_.a([_.b(),_.z("design:type",Object)],$f.prototype,"canShowCheckbox",void 0);
_.a([_.b(),_.z("design:type",Object)],$f.prototype,"canShowAdditionalDetailCheckbox",void 0);_.a([_.b(),_.z("design:type",Object)],$f.prototype,"canShowNextButton",void 0);_.a([_.b(),_.z("design:type",Object)],$f.prototype,"additionalDetailCheckboxChecked",void 0);_.a([_.b(),_.z("design:type",Object)],$f.prototype,"refitJob",void 0);_.a([_.b(),_.z("design:type",Object)],$f.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.a([_.Aa("#scroller"),_.z("design:type",Object)],$f.prototype,"JSC$20821_scroller",void 0);_.a([_.XI("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],$f.prototype,"onYtPopupOpened",null);_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],$f.prototype,"onYtNavigate",null);
_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],$f.prototype,"onYtServiceRequestSent",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],$f.prototype,"onYtServiceRequestCompleted",null);
_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],$f.prototype,"onYtServiceRequestError",null);_.a([_.Vq({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],$f);var fV4;var ri1;var W_=function(){return _.I.apply(this,arguments)||this};
_.v(W_,_.I);_.t=W_.prototype;_.t.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.t.onVisible=function(){var W,l;(l=_.tY().resolve(_.R0(_.Rq)))==null||l.enqueue({label:_.dE((W=this.data)==null?void 0:W.messageTitle),elementToFocus:this.hostElement})};
_.t.onThumbnailLoaded=function(){_.FN(this.hostElement,"yt-refit")};
_.t.onDismissTap=function(){_.Gt(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.t.computeAlternateIcon=function(W){return W?W==="BACKSTAGE_ARTWORK"?"backstage:artwork":W:null};
_.t.computeFontFamily=function(W){return W==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.t.computeBackgroundStyle=function(W,l){if(W=this.computeBackgroundImage(W,l))if(W=_.F3(W.thumbnails))return'background-image: url("'+W+'");'};
_.t.computeHasFullHeightImage=function(W){return!(!(W&&W.thumbnails&&W.thumbnails.length>0)||this.modern)};
_.t.isModernStyle=function(W){return W.style==="STYLE_MODERN"};
_.t.computeIcon=function(W,l){if(W&&W.icon)return l?W.iconDark:W.icon};
_.t.computeBackgroundImage=function(W,l){if(W&&W.backgroundImage)return l?W.backgroundImageDark:W.backgroundImage};
_.t.computeLogo=function(W,l){if(W&&W.logo)return l?W.logoDark:W.logo};
_.t.computeShouldShowModernIcon=function(W,l){return W&&!!l};
_.t.getLogoContainerClassName=function(W){return this.logoWithPadding(W)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.t.getLogoImageId=function(W){return this.logoWithPadding(W)?"mealbar-logo-with-padding":"mealbar-logo"};
_.t.logoWithPadding=function(W){var l,V,f;return(W=(l=this.computeLogo(W,this.isDarkTheme))==null?void 0:(V=l.thumbnails)==null?void 0:(f=V[0])==null?void 0:f.height)&&W%31===0?!0:!1};
W_.prototype.onThumbnailLoaded=W_.prototype.onThumbnailLoaded;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],W_.prototype,"ytRendererBehavior",void 0);_.a([_.b({}),_.z("design:type",Object)],W_.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.z("design:type",Boolean)],W_.prototype,"modern",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],W_.prototype,"isDarkTheme",void 0);
_.a([_.b({computed:"computeIcon(data, isDarkTheme)"}),_.z("design:type",Object)],W_.prototype,"icon",void 0);_.a([_.b({computed:"computeLogo(data, isDarkTheme)"}),_.z("design:type",Object)],W_.prototype,"logo",void 0);_.a([_.b({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.z("design:type",Object)],W_.prototype,"backgroundStyle",void 0);_.a([_.b({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.z("design:type",Object)],W_.prototype,"alternateIcon",void 0);
_.a([_.b({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.z("design:type",Boolean)],W_.prototype,"hasFullHeightImage",void 0);_.a([_.b({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.z("design:type",Boolean)],W_.prototype,"useYoutubeSans",void 0);_.a([_.b({computed:"computeShouldShowModernIcon(modern, icon)"}),_.z("design:type",Boolean)],W_.prototype,"shouldShowModernIcon",void 0);
_.a([_.XI("yt-img-shadow-loaded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],W_.prototype,"onThumbnailLoaded",null);_.a([_.Vq({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],W_);
_.Z(W_,"yt-mealbar-promo-renderer",function(){if(ri1===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;fV4===void 0&&(fV4=document.createElement("template"));var f=fV4;V.call(l,f.content.cloneNode(!0),W.content.firstChild);ri1=W}W=ri1;return W},{mode:2});var R92;var t0N;var lo=function(){return _.I.apply(this,arguments)||this};
_.v(lo,_.I);_.t=lo.prototype;_.t.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]]"}}}}}};
_.t.computeHasButtons_=function(W){return!(!W.dismissButton&&!W.acceptButton)};
_.t.computeStyle_=function(W){return W||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.t.observeImpressionEndpoints_=function(){var W=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(l){l.clickTrackingParams&&delete l.clickTrackingParams;_.pN(W.hostElement,[l])})};
_.t.onTap_=function(){_.Gt(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
lo.prototype.observeImpressionEndpoints_=lo.prototype.observeImpressionEndpoints_;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],lo.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],lo.prototype,"ytEventForwardingBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],lo.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],lo.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],lo.prototype,"positionType",void 0);_.a([_.b({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.z("design:type",Boolean)],lo.prototype,"hasButtons_",void 0);_.a([_.b({value:function(){return this.onTap_.bind(this)}}),
_.z("design:type",Function)],lo.prototype,"boundOnTap_",void 0);_.a([_.b({value:{style:"mono-inverse"}}),_.z("design:type",Object)],lo.prototype,"buttonOverride",void 0);_.a([_.TS("data.promoConfig.impressionEndpoints"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],lo.prototype,"observeImpressionEndpoints_",null);_.a([_.Vq({is:"yt-tooltip-renderer",disableElementRegistration:!0})],lo);
_.Z(lo,"yt-tooltip-renderer",function(){if(t0N===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;R92===void 0&&(R92=document.createElement("template"));var f=R92;V.call(l,f.content.cloneNode(!0),W.content.firstChild);t0N=W}W=t0N;return W},{mode:2});var sd1;var LRZ;var yi2={},gK2=(yi2.WEB_REMIX="music.youtube.com",yi2),V2=function(){var W=_.I.apply(this,arguments)||this;W.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return W};
_.v(V2,_.I);_.t=V2.prototype;_.t.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.created=function(){this.embedHost_=gK2[_.M4("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.t.ready=function(){_.GS(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.t.computeEmbedCode_=function(W,l,V,f,r){if(!W)return"";var R=W.videoId,y=W.fullListId,P=[];W.attributionId&&P.push("si="+W.attributionId);f||P.push("controls=0");V&&Number(l)>0&&P.push("start="+l);y&&(R="videoseries",P.push("list="+y));V="https://"+(r?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+R;W.clipId&&(P.push("clip="+W.clipId),P.push("clipt="+W.clipTiming));l=P.length>0?V+"?"+P.join("&amp;"):V;W.encryptedEmbedConfig&&P.push("embed_config="+JSON.stringify({enc:W.encryptedEmbedConfig}));
P=P.length>0?V+"?"+P.join("&amp;"):V;_.U("web_sharing_embed_preview_killswitch")?_.GS(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(P,W.previewWidth||854,W.previewHeight||480):(_.hI(this.videoPreviewContainer),_.GS(this.videoPreviewContainer).appendChild(this.buildIframeElement(P)));return this.getEmbedCode_(l,W.width||560,W.height||315)};
_.t.buildIframeElement=function(W){var l=document.createElement("iframe"),V,f;l.width=""+((f=(V=this.data)==null?void 0:V.previewWidth)!=null?f:854);var r,R;l.height=""+((R=(r=this.data)==null?void 0:r.previewHeight)!=null?R:480);_.stF(l,2,W);l.title="YouTube video player";l.frameBorder="0";l.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";l.referrerPolicy="strict-origin-when-cross-origin";l.allowFullscreen=!0;return l};
_.t.computeIsSquareAspectRatio_=function(W){return W.previewHeight&&W.previewWidth?W.previewHeight==W.previewWidth:!1};
_.t.computeShowEmbedOptions_=function(W){return!!W.enablePrivacyModeOptionLabel||!!W.showPlayerControlsOptionLabel};
_.t.getEmbedCode_=function(W,l,V){return'<iframe width="'+l+'" height="'+V+'" src="'+W+'" 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>'};
_.t.handleSignalActionCopyShareEmbedUrl_=function(){_.GS(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.t.handleSetTimestamp_=function(W){this.startAtTimeStamp_=(this.startAtChecked_=W.isSet)?W.timestamp:0};
_.t.closePanel_=function(){_.Gt(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.t.onEmbedCode_=function(){_.GS(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.t.onYtPopupClosed_=function(){_.hI(_.GS(this.hostElement).querySelector("#video-preview"))};
_.t.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.k(this.data.actionButtons[0],_.CE)&&this.ytRendererBehavior.logExplicitClick(_.k(this.data.actionButtons[0],_.CE))};
V2.prototype.onYtPopupClosed_=V2.prototype.onYtPopupClosed_;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],V2.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],V2.prototype,"data",void 0);
_.a([_.b({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.z("design:type",String)],V2.prototype,"embedCode_",void 0);_.a([_.b({value:!0}),_.z("design:type",Boolean)],V2.prototype,"isPlayerControlsOptionChecked_",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],V2.prototype,"isPrivacyModeOptionChecked_",void 0);_.a([_.b({value:!1,notify:!0}),_.z("design:type",Boolean)],V2.prototype,"startAtChecked_",void 0);
_.a([_.b({value:0}),_.z("design:type",Number)],V2.prototype,"startAtTimeStamp_",void 0);_.a([_.b({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],V2.prototype,"isSquareAspectRatio_",void 0);_.a([_.Aa("#video-preview"),_.z("design:type",HTMLElement)],V2.prototype,"videoPreviewContainer",void 0);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],V2.prototype,"onYtPopupClosed_",null);
_.a([_.Vq({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],V2);
_.Z(V2,"yt-sharing-embed-renderer",function(){if(LRZ===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;sd1===void 0&&(sd1=document.createElement("template"));var f=sd1;V.call(l,f.content.cloneNode(!0),W.content.firstChild);LRZ=W}W=LRZ;return W},{mode:2});var Pqw={};
Pqw.YtUnlimitedFamilyInterstitialBehavior=[_.eX.YtOpenPopupBehavior,_.hp.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(W){W=_.e4M(_.Ja(W),"yt-button-renderer");return W?W.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(W){this.dialogHistory_.push(W)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var W=this.popFromHistory();if(W){var l={openPopupAction:{popupType:"DIALOG",popup:{}}};l.openPopupAction.popup[W.renderer]=W.data;this.showingPreviousDialog_=!0;this.openPopup(l)}},
handleOpenPopupAction_:function(W){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var l=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(f){return!!W.openPopupAction.popup[f]}),V=this.getElementName_();
l&&this.data&&(this.pushToHistory({renderer:V,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(W){if(W=_.k(W,M6Y))this.loading=!0,_.Gt(this.hostElement,"yt-open-create-family-dialog",[W,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var W=this.hostElement.nodeName.split("-").slice(1).map(function(l){return""+l[0].toUpperCase()+l.slice(1).toLowerCase()}).join("");
return W[0].toLowerCase()+W.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var nKH;var Cqw;var f$=function(){return _.I.apply(this,arguments)||this};
_.v(f$,_.I);_.t=f$.prototype;_.t.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}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Gt(this.hostElement,"yt-register-create-family-dialog");_.GS(this.hostElement).querySelector("#thumbnail").onShow()};
_.t.fireOnCloseCommand_=function(){var W;((W=this.data)==null?0:W.onCloseCommand)&&_.og(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.t.onYtServiceRequestSent_=function(W,l){l&&l.endpoint&&_.k(l.endpoint,_.mA)||(this.loading=!0)};
_.t.onYtServiceRequestCompleted_=function(){var W=this.hostElement.parentElement;W.close&&W.close();this.loading=!1};
_.t.openPopupHandler_=function(W){if(W.detail==this){var l;((l=this.data)==null?0:l.onOpenCommands)&&_.og(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.t.closePopupHandler_=function(W,l){this.fireOnCloseCommand_();if(l&&l.canceled===!0||l&&l.canceled===!1&&l.confirmed===!1){var V;((V=this.data)==null?0:V.onDismissCommands)&&_.og(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.t.dataChanged_=function(){this.loading=!1};
f$.prototype.dataChanged_=f$.prototype.dataChanged_;f$.prototype.closePopupHandler_=f$.prototype.closePopupHandler_;f$.prototype.openPopupHandler_=f$.prototype.openPopupHandler_;f$.prototype.onYtServiceRequestCompleted_=f$.prototype.onYtServiceRequestCompleted_;f$.prototype.onYtServiceRequestSent_=f$.prototype.onYtServiceRequestSent_;_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],f$.prototype,"ytEventForwardingBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],f$.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(Pqw.YtUnlimitedFamilyInterstitialBehavior),_.z("design:type",Object)],f$.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],f$.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],f$.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],f$.prototype,"loading",void 0);_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],f$.prototype,"onYtServiceRequestSent_",null);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],f$.prototype,"onYtServiceRequestCompleted_",null);
_.a([_.XI("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],f$.prototype,"openPopupHandler_",null);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],f$.prototype,"closePopupHandler_",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],f$.prototype,"dataChanged_",null);
_.a([_.Vq({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],f$);
_.Z(f$,"yt-unlimited-family-message-interstitial-renderer",function(){if(Cqw===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;nKH===void 0&&(nKH=document.createElement("template"));var f=nKH;V.call(l,f.content.cloneNode(!0),W.content.firstChild);Cqw=W}W=Cqw;return W},{mode:2});var ciY;var Bp2;var rq=function(){return _.I.apply(this,arguments)||this};
_.v(rq,_.I);rq.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"}}}};
rq.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.GS(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(W){W.onShow()});
_.GS(this.hostElement).querySelector("#main-thumbnail").onShow()};
rq.prototype.onButtonTap_=function(W){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(W)};
rq.prototype.computeMainThumbnailWidth_=function(W){return W&&W.length!==0?72:96};
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],rq.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],rq.prototype,"ytRendererBehavior",void 0);_.a([_.F(Pqw.YtUnlimitedFamilyInterstitialBehavior),_.z("design:type",Object)],rq.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],rq.prototype,"data",void 0);
_.a([_.b({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.z("design:type",Number)],rq.prototype,"mainThumbnailWidth_",void 0);_.a([_.b({value:function(){return this.onButtonTap_.bind(this)}}),
_.z("design:type",Function)],rq.prototype,"boundButtonTap_",void 0);_.a([_.Vq({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],rq);
_.Z(rq,"yt-unlimited-family-profile-interstitial-renderer",function(){if(Bp2===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;ciY===void 0&&(ciY=document.createElement("template"));var f=ciY;V.call(l,f.content.cloneNode(!0),W.content.firstChild);Bp2=W}W=Bp2;return W},{mode:2});var d92;var Jie;var RO=function(){var W=_.I.apply(this,arguments)||this;W.sliderAriaValueText_=null;W.selectedIndex_=0;W.messages={PAUSE_SLIDER:_.wg("PAUSE_SLIDER",void 0,"Pause Duration")};return W};
_.v(RO,_.I);_.t=RO.prototype;_.t.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_]]"}}}}}};
_.t.onPopupOpened_=function(W){W.detail==this&&_.U("enable_premium_voluntary_pause")&&(_.Gt(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t.setDialogData=function(W){this.data=W;this.resetSlider_()};
_.t.dataChanged_=function(){this.data&&this.resetSlider_()};
_.t.onSubmitTap_=function(){if(this.data.confirmCommand){var W=this.data.confirmCommand;_.k(W,_.IPc)&&_.pN(this.hostElement,[W,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.t.onExitButtonTap_=function(){_.Gt(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.t.closePopupHandler_=function(W,l){(l&&l.canceled===!0||l.canceled===!1&&l.confirmed===!1)&&this.handleOnDismissCommands_()};
_.t.onSliderChange_=function(){this.selectedIndex_=_.GS(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.t.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.t.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.t.resetSlider_=function(){if(this.data){var W=this.data.defaultEndOptionIndex||0,l=_.GS(this.hostElement).querySelector("#id-pause-slider");if(l.immediateValue<W)for(;l.immediateValue!=W;)l.increment();else if(W<l.immediateValue)for(;l.immediateValue!=W;)l.decrement();this.selectedIndex_=W;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.t.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.og(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.t.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.og(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.t.onYtServiceRequestSent=function(){this.loading=!0};
_.t.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
RO.prototype.onYtServiceRequestCompleted=RO.prototype.onYtServiceRequestCompleted;RO.prototype.onYtServiceRequestSent=RO.prototype.onYtServiceRequestSent;RO.prototype.closePopupHandler_=RO.prototype.closePopupHandler_;RO.prototype.dataChanged_=RO.prototype.dataChanged_;RO.prototype.onPopupOpened_=RO.prototype.onPopupOpened_;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],RO.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],RO.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],RO.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],RO.prototype,"loading",void 0);_.a([_.b(),_.z("design:type",Number)],RO.prototype,"selectIndexMax_",void 0);_.a([_.b(),_.z("design:type",Object)],RO.prototype,"selectedData_",void 0);
_.a([_.b(),_.z("design:type",Object)],RO.prototype,"sliderAriaValueText_",void 0);_.a([_.b({value:function(){return this.onSubmitTap_.bind(this)}}),
_.z("design:type",Function)],RO.prototype,"onButtonTap_",void 0);_.a([_.b({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.z("design:type",Function)],RO.prototype,"onSecondaryTap_",void 0);_.a([_.b(),_.z("design:type",Object)],RO.prototype,"messages",void 0);_.a([_.XI("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],RO.prototype,"onPopupOpened_",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],RO.prototype,"dataChanged_",null);
_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],RO.prototype,"closePopupHandler_",null);_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],RO.prototype,"onYtServiceRequestSent",null);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],RO.prototype,"onYtServiceRequestCompleted",null);_.a([_.Vq({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],RO);
_.Z(RO,"yt-unplugged-pause-membership-dialog-renderer",function(){if(Jie===void 0){var W=document.createElement("template");_.K(W,'\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>');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;d92===void 0&&(d92=document.createElement("template"));var f=d92;V.call(l,f.content.cloneNode(!0),W.content.firstChild);Jie=W}W=Jie;return W},{mode:2});var D95;var U9N;var tD=function(){return _.I.apply(this,arguments)||this};
_.v(tD,_.I);tD.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.qe("vcBalanceRenderer")}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],tD.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],tD.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],tD.prototype,"data",void 0);_.a([_.Vq({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],tD);
_.Z(tD,"yt-vc-offer-layout-header-renderer",function(){if(U9N===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;D95===void 0&&(D95=document.createElement("template"));var f=D95;V.call(l,f.content.cloneNode(!0),W.content.firstChild);U9N=W}W=U9N;return W},{mode:2});var uiL;var k5e;var vK1;var HO7;var so=function(){return _.I.apply(this,arguments)||this};
_.v(so,_.I);so.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.rc.Object.defineProperties(so.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)}}});
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],so.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],so.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.RSX.YtTappableItemBehavior),_.z("design:type",Object)],so.prototype,"ytTappableItemBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],so.prototype,"data",void 0);
_.a([_.b({reflectToAttribute:!0}),_.G("data.accessibilityText"),_.z("design:type",String),_.z("design:paramtypes",[])],so.prototype,"ariaLabel",null);_.a([_.b({reflectToAttribute:!0}),_.G("data.style"),_.z("design:type",String),_.z("design:paramtypes",[])],so.prototype,"vcOfferStyle",null);_.a([_.G("data.style","data.titleText"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],so.prototype,"showTitleText",null);_.a([_.Vq({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],so);
_.Z(so,"yt-vc-offer-renderer",function(){if(HO7===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;vK1===void 0&&(vK1=document.createElement("template"));var f=vK1;V.call(l,f.content.cloneNode(!0),W.content.firstChild);HO7=W}W=HO7;return W},{mode:2});var L$=function(){return _.I.apply(this,arguments)||this};
_.v(L$,_.I);L$.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}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],L$.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],L$.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],L$.prototype,"data",void 0);_.a([_.Vq({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],L$);
_.Z(L$,"yt-vc-offer-layout-renderer",function(){if(k5e===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;uiL===void 0&&(uiL=document.createElement("template"));var f=uiL;V.call(l,f.content.cloneNode(!0),W.content.firstChild);k5e=W}W=k5e;return W},{mode:2});var KRw;var FRH;var G5w;var bOw;var y2=function(){return _.I.apply(this,arguments)||this};
_.v(y2,_.I);y2.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}}}}}};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],y2.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],y2.prototype,"data",void 0);_.a([_.Vq({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],y2);
_.Z(y2,"yt-ypc-offers-modal-top-bar-renderer",function(){if(bOw===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;G5w===void 0&&(G5w=document.createElement("template"));var f=G5w;V.call(l,f.content.cloneNode(!0),W.content.firstChild);bOw=W}W=bOw;return W},{mode:2});var gq=function(){return _.I.apply(this,arguments)||this};
_.v(gq,_.I);gq.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"}}}}};
gq.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
gq.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var W=this.scrollable;W.attached&&typeof W.attached==="function"&&W.attached()};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],gq.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],gq.prototype,"ytRendererstamperBehavior",void 0);_.a([_.Aa("#scrollable"),_.z("design:type",Object)],gq.prototype,"scrollable",void 0);_.a([_.b(),_.z("design:type",Object)],gq.prototype,"data",void 0);_.a([_.Vq({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],gq);
_.Z(gq,"yt-ypc-offers-modal-renderer",function(){if(FRH===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;KRw===void 0&&(KRw=document.createElement("template"));var f=KRw;V.call(l,f.content.cloneNode(!0),W.content.firstChild);FRH=W}W=FRH;return W},{mode:2});var pK7;var oKH;var P_=function(){return _.I.apply(this,arguments)||this};
_.v(P_,_.I);_.t=P_.prototype;_.t.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}}}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.GS(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.t.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.Gt(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.t.onYtPopupOpened_=function(W,l){(l==null?void 0:l.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.og(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.t.onYtPopupClosed_=function(W,l){this.continueButtonTapped||l&&(l.canceled===!0||l.canceled===!1&&l.confirmed===!1)&&this.data.onDismissCommands&&_.og(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.t.onYtServiceRequestError_=function(W){this.set("showSpinner",!1);_.Lh(this.hostElement,W.detail.error.message)};
_.t.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.U("enable_ypc_spinners")?_.Gt(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
P_.prototype.onYtServiceRequestError_=P_.prototype.onYtServiceRequestError_;P_.prototype.onYtPopupClosed_=P_.prototype.onYtPopupClosed_;P_.prototype.onYtPopupOpened_=P_.prototype.onYtPopupOpened_;P_.prototype.onYtServiceRequestCompleted_=P_.prototype.onYtServiceRequestCompleted_;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],P_.prototype,"ytRendererstamperBehavior",void 0);
_.a([_.b(),_.z("design:type",Object)],P_.prototype,"data",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],P_.prototype,"showSpinner",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],P_.prototype,"continueButtonTapped",void 0);_.a([_.b({value:function(){return this.onContinueTapped_.bind(this)}}),
_.z("design:type",Function)],P_.prototype,"bindOnContinueTapped_",void 0);_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],P_.prototype,"onYtServiceRequestCompleted_",null);_.a([_.XI("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],P_.prototype,"onYtPopupOpened_",null);
_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],P_.prototype,"onYtPopupClosed_",null);_.a([_.XI("yt-service-request-error"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],P_.prototype,"onYtServiceRequestError_",null);_.a([_.Vq({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],P_);
_.Z(P_,"yt-ypc-upgrade-dialog-renderer",function(){if(oKH===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;pK7===void 0&&(pK7=document.createElement("template"));var f=pK7;V.call(l,f.content.cloneNode(!0),W.content.firstChild);oKH=W}W=oKH;return W},{mode:2});var jds;var IV5;var n$=function(){return _.I.apply(this,arguments)||this};
_.v(n$,_.I);n$.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
n$.prototype.computeHasButtons_=function(W){return!(!W.dismissButton&&!W.confirmButton)};
n$.prototype.computeStyle_=function(W){return W||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],n$.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],n$.prototype,"ytEventForwardingBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],n$.prototype,"ytRendererstamperBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],n$.prototype,"data",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],n$.prototype,"positionType",void 0);
_.a([_.b({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.z("design:type",Boolean)],n$.prototype,"hasButtons_",void 0);_.a([_.b({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.z("design:type",Boolean)],n$.prototype,"style_",void 0);_.a([_.Vq({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],n$);
_.Z(n$,"yt-bubble-hint-renderer",function(){if(IV5===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;jds===void 0&&(jds=document.createElement("template"));var f=jds;V.call(l,f.content.cloneNode(!0),W.content.firstChild);IV5=W}W=IV5;return W},{mode:2});var iOc;var m9s;var C$=function(){var W=_.RA.apply(this,arguments)||this;W.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return W};
_.v(C$,_.RA);_.t=C$.prototype;_.t.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.t.attached=function(){var W=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){W.$.thumbnail.onShow();W.$["header-image"].onShow()})};
_.t.handleCheckBoxUpdateAction_=function(W){this.canShowCheckboxEnabledConfirmButton=W};
_.t.computeUseOverlayForSpinner_=function(W,l){return!!W&&l};
_.t.computeShowSpinner_=function(W,l){return W||!!l};
_.t.fireOnCloseActions_=function(){var W,l=_.L(((W=this.data)==null?void 0:W.onClosedActions)||[]);for(W=l.next();!W.done;W=l.next())this.ytRendererBehavior.resolveCommand(W.value)};
_.t.fireOnOpenCommands_=function(W){var l,V=(l=this.data)==null?void 0:l.onOpenCommands;if(V)for(W.stopImmediatePropagation(),W=_.L(V),l=W.next();!l.done;l=W.next())this.ytRendererBehavior.resolveCommand(l.value)};
_.t.fireOnDismissCommands_=function(W){var l,V=(l=this.data)==null?void 0:l.onDismissCommands;if(V)for(W.stopImmediatePropagation(),W=_.L(V),l=W.next();!l.done;l=W.next())this.ytRendererBehavior.resolveCommand(l.value)};
_.t.openPopupHandler_=function(W){W.detail==this&&this.fireOnOpenCommands_(W)};
_.t.closePopupHandler_=function(W,l){_.bj(this,"yt-confirm-dialog-close-action",[l]);this.fireOnCloseActions_();(l&&l.canceled===!0||l&&l.canceled===!1&&l.confirmed===!1)&&this.fireOnDismissCommands_(W)};
_.t.onHeaderImageChanged_=function(){var W;((W=this.data)==null?0:W.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.t.computeHasHeaderImageWidth_=function(W){return W!=void 0};
_.t.computeHasLoadingMessage=function(W){return!!W};
_.t.onHeaderImageWidthChanged_=function(){var W,l=(W=this.data)==null?void 0:W.headerImageWidth;if(l){if(W=1.25*l*2+l,this.$.main.style.width=W+"px",l=this.$.scroller.firstElementChild)l.style.minWidth=W+"px"}else this.$.main.style.width="100%"};
_.t.onThumbnailChanged_=function(){var W;((W=this.data)==null?0:W.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")};
_.t.onYtNavigate_=function(W){W=_.Ja(W);W instanceof Node&&_.bm(this.$["confirm-button"]).contains(W)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.t.computePrimaryIsCancel_=function(W){return W};
_.t.computeIsCancelButtonHidden_=function(W){return W.skipCancelButton||!W.cancelButton};
_.t.computeIsCheckboxHidden_=function(W){return!W.checkbox};
_.t.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.t.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.t.onYtServiceRequestCompleted_=function(){var W;((W=this.data)==null?0:W.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.rc.Object.defineProperties(C$,{template:{configurable:!0,enumerable:!0,get:function(){if(m9s===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;iOc===void 0&&(iOc=document.createElement("template"));var f=iOc;V.call(l,f.content.cloneNode(!0),W.content.firstChild);m9s=W}W=m9s;return W}}});
C$.prototype.onYtServiceRequestCompleted_=C$.prototype.onYtServiceRequestCompleted_;C$.prototype.onYtServiceRequestSent_=C$.prototype.onYtServiceRequestSent_;C$.prototype.onThumbnailLoaded_=C$.prototype.onThumbnailLoaded_;C$.prototype.onYtNavigate_=C$.prototype.onYtNavigate_;C$.prototype.onThumbnailChanged_=C$.prototype.onThumbnailChanged_;C$.prototype.onHeaderImageWidthChanged_=C$.prototype.onHeaderImageWidthChanged_;C$.prototype.onHeaderImageChanged_=C$.prototype.onHeaderImageChanged_;
C$.prototype.closePopupHandler_=C$.prototype.closePopupHandler_;C$.prototype.openPopupHandler_=C$.prototype.openPopupHandler_;_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],C$.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],C$.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],C$.prototype,"ytRendererBehavior",void 0);
_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],C$.prototype,"ytEventForwardingBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],C$.prototype,"data",void 0);_.a([_.b({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.z("design:type",Boolean)],C$.prototype,"primaryIsCancel",void 0);_.a([_.b({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.z("design:type",Boolean)],C$.prototype,"isCancelButtonHidden",void 0);
_.a([_.b({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.z("design:type",Boolean)],C$.prototype,"isCheckboxHidden",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],C$.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.a([_.b({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.z("design:type",Boolean)],C$.prototype,"useOverlayForSpinner_",void 0);
_.a([_.b({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.z("design:type",Boolean)],C$.prototype,"showSpinner_",void 0);_.a([_.b({value:!1}),_.z("design:type",Boolean)],C$.prototype,"isActionInProgress_",void 0);_.a([_.b({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.z("design:type",Boolean)],C$.prototype,"hasHeaderImageWidth_",void 0);
_.a([_.b({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.z("design:type",Boolean)],C$.prototype,"hasLoadingMessage",void 0);_.a([_.XI("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],C$.prototype,"openPopupHandler_",null);_.a([_.XI("yt-popup-closed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],C$.prototype,"closePopupHandler_",null);
_.a([_.TS("data.headerImage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],C$.prototype,"onHeaderImageChanged_",null);_.a([_.TS("data.headerImageWidth"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],C$.prototype,"onHeaderImageWidthChanged_",null);_.a([_.TS("data.thumbnail"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],C$.prototype,"onThumbnailChanged_",null);
_.a([_.XI("yt-navigate"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],C$.prototype,"onYtNavigate_",null);_.a([_.XI("yt-img-shadow-loaded"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],C$.prototype,"onThumbnailLoaded_",null);_.a([_.XI("yt-service-request-sent"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.rH]),_.z("design:returntype")],C$.prototype,"onYtServiceRequestSent_",null);
_.a([_.XI("yt-service-request-completed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,_.nv]),_.z("design:returntype")],C$.prototype,"onYtServiceRequestCompleted_",null);_.a([_.Vq({is:"yt-confirm-dialog-renderer",noInjection:!0})],C$);var XKZ;var Tp1;var c_=function(){return _.I.apply(this,arguments)||this};
_.v(c_,_.I);c_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.GS(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
c_.prototype.computeConfirmButton_=function(W){var l={text:W.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};W.confirmNavigationEndpoint?l.navigationEndpoint=W.confirmNavigationEndpoint:W.confirmServiceEndpoint&&(l.serviceEndpoint=W.confirmServiceEndpoint);return l};
c_.prototype.computeShowTitle_=function(W){return!(W==null||!W.title)};
_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],c_.prototype,"data",void 0);_.a([_.b({computed:"computeShowTitle_(data)"}),_.z("design:type",Boolean)],c_.prototype,"showTitle",void 0);_.a([_.Vq({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],c_);
_.Z(c_,"yt-fancy-dismissible-dialog-renderer",function(){if(Tp1===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;XKZ===void 0&&(XKZ=document.createElement("template"));var f=XKZ;V.call(l,f.content.cloneNode(!0),W.content.firstChild);Tp1=W}W=Tp1;return W});var wKL;var Ai7;var B_=function(){var W=_.I.apply(this,arguments)||this;W.spinnerActive=!1;return W};
_.v(B_,_.I);B_.prototype.created=function(){$r4(2201)};
B_.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
B_.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
B_.prototype.onIronOverlayClosed=B_.prototype.onIronOverlayClosed;B_.prototype.onIronOverlayOpened=B_.prototype.onIronOverlayOpened;_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.Bo),_.z("design:type",Object)],B_.prototype,"tpYtIronOverlayBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],B_.prototype,"data",void 0);_.a([_.b(),_.z("design:type",Object)],B_.prototype,"spinnerActive",void 0);
_.a([_.XI("iron-overlay-opened"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],B_.prototype,"onIronOverlayOpened",null);_.a([_.XI("iron-overlay-closed"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],B_.prototype,"onIronOverlayClosed",null);_.a([_.Vq({is:"yt-loading-renderer",disableElementRegistration:!0})],B_);
_.Z(B_,"yt-loading-renderer",function(){if(Ai7===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;wKL===void 0&&(wKL=document.createElement("template"));var f=wKL;V.call(l,f.content.cloneNode(!0),W.content.firstChild);Ai7=W}W=Ai7;return W},{mode:2});var QdN;var M0c;var dq=function(){var W=_.I.apply(this,arguments)||this;W.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);W.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);W.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.v(dq,_.I);_.t=dq.prototype;_.t.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.t.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.t.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.t.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.t.openPopupHandler_=function(W){W.detail===this.hostElement&&this.hostElement.hidden&&_.Gt(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.t.onDismissButtonTap_=function(){var W;this.closeOnDismissButton_.has(((W=this.data)==null?void 0:W.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Gt(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.t.onAcceptButtonTap_=function(){var W;this.closeOnAcceptButton_.has(((W=this.data)==null?void 0:W.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Gt(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.t.computeHasHeader_=function(W){return!!W.headerBackgroundImage};
_.t.computeLayoutStyle_=function(W){return W};
_.t.computePopupSize_=function(W){return W};
_.t.computeIconType_=function(W){return W.dialogIcon&&W.dialogIcon.iconType?W.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":W.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":W.dialogIcon.iconType:""};
_.t.computeIsLogo_=function(W){return!!W.dialogIcon&&!!W.dialogIcon.iconType&&(W.dialogIcon.iconType==="YOUTUBE_LOGO"||W.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||W.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.t.computeHasCustomLogo=function(W){return!(W==null||!W.headerForegroundImage)};
_.t.computeCustomLogo=function(W,l){if(W!=null&&W.headerForegroundImage)return W.headerForegroundImageDark?l?W.headerForegroundImageDark:W.headerForegroundImage:W.headerForegroundImage};
_.t.computeHeaderBackgroundImage=function(W,l){if(W!=null&&W.headerBackgroundImage)return l&&(W==null?0:W.headerBackgroundImageDark)?W.headerBackgroundImageDark:W.headerBackgroundImage};
_.t.shouldShowIconContainer=function(W,l){return W&&!l};
_.t.shouldShowNonYouTubeIcon=function(W,l){return!W&&!l};
_.t.getLogoImageId=function(W){var l,V,f;return(W=(l=this.computeCustomLogo(W,this.isDarkTheme))==null?void 0:(V=l.thumbnails)==null?void 0:(f=V[0])==null?void 0:f.height)&&W%31===0?"custom-logo-with-padding":"custom-logo"};
dq.prototype.openPopupHandler_=dq.prototype.openPopupHandler_;dq.prototype.dataChanged_=dq.prototype.dataChanged_;_.a([_.F(_.Ap.YtRendererstamperBehavior),_.z("design:type",Object)],dq.prototype,"ytRendererstamperBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);_.a([_.b(),_.z("design:type",Boolean)],dq.prototype,"isDarkTheme",void 0);
_.a([_.b({computed:"computeCustomLogo(data, isDarkTheme)"}),_.z("design:type",Object)],dq.prototype,"customLogo",void 0);_.a([_.b({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.z("design:type",Object)],dq.prototype,"headerBackgroundImage",void 0);_.a([_.b(),_.z("design:type",Object)],dq.prototype,"data",void 0);_.a([_.b({computed:"computeHasHeader_(data)"}),_.z("design:type",Boolean)],dq.prototype,"hasHeader",void 0);
_.a([_.b({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.z("design:type",Object)],dq.prototype,"layoutStyle",void 0);_.a([_.b({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.z("design:type",Object)],dq.prototype,"popupSize",void 0);_.a([_.b({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],dq.prototype,"hasLogo",void 0);
_.a([_.b({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.z("design:type",Boolean)],dq.prototype,"hasCustomLogo",void 0);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],dq.prototype,"dataChanged_",null);_.a([_.XI("yt-popup-opened"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],dq.prototype,"openPopupHandler_",null);
_.a([_.Vq({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],dq);
_.Z(dq,"yt-upsell-dialog-renderer",function(){if(M0c===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;QdN===void 0&&(QdN=document.createElement("template"));var f=QdN;V.call(l,f.content.cloneNode(!0),W.content.firstChild);M0c=W}W=M0c;return W},{mode:2});var ZOc=_.Q(function(W){return _.C("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.C(_.c,{cond:W.title,then:function(l){return _.C("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},l)}}))},"Ah"),OO2=_.Q(function(W){return _.C("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.C(_.QH,{data:W.closeButton},{buttonViewModel:function(l){return _.C("div",null,_.C(_.Nq,{data:l.data}))}}))},"Bh"),aV4=_.Q(function(W){var l=W.data;
return _.C(_.Lp,null,_.C("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.C("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.C(_.c,{cond:function(){return!!l().image&&!!l().title},
then:function(){return _.C(_.dN,{data:function(){return l().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.C("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.C(_.c,{cond:function(){return l().title},
then:function(V){return _.C("h3",{class:"miniAppGameInfoDialogViewModelTitle"},V)}}),_.C(_.c,{cond:function(){return l().primaryGenre},
then:function(V){return _.C("span",{class:"miniAppGameInfoDialogViewModelGenre"},V)}}))),_.C(_.c,{cond:function(){var V=l().description;
return V&&V.length<=150},
then:function(){return _.C("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.C("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return l().description}))}}))},"Ch"),z9w=_.Q(function(W){W=W.infoRows;
var l=_.tY().resolve(_.FQ),V=_.U("enable_displaying_ppn");return _.C("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.C(_.G3,{each:W},function(f){return _.C("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.C(_.c,{cond:function(){return f.label},
then:function(r){return _.C("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},r)}}),_.C(_.c,{cond:function(){return f.attributedLabel},
then:function(r){return _.C("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.C(_.bH,{text:r,noPreWrap:!0}))}}),_.C(_.c,{cond:function(){return f.value},
then:function(r){return _.C("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},r)}}),_.C(_.c,{cond:function(){return f.attributedValue},
then:function(r){return _.C("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.C(_.bH,{text:r,noPreWrap:!0}))}}))}),_.C(_.c,{cond:function(){return V&&l.clientData.has("post_play_nonce")},
then:function(){return _.C("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.C("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.C("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},l.getData("post_play_nonce")))}}))},"Dh"),NpL=_.Q(function(W){var l=W.data;
return _.C("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.C(ZOc,{title:function(){return l().dialogTitle}}),_.C(aV4,{data:l}),_.C(_.c,{cond:function(){return l().infoRow},
then:function(V){return _.C(z9w,{infoRows:V})}}),_.C(OO2,{closeButton:function(){return l().closeButton}}))},"Eh");
NpL.idomCompat=!0;_.HI(NpL,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.pA}});_.HI(_.Q(function(W){var l=W.data;return _.C("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.C(_.dN,{data:function(){return l().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.C("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.C("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.C(_.c,{cond:function(){var V=l().ytLogo;return V?V.iconType:null},
then:function(V){return _.C(_.wN,{icon:V,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.C("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.C("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.C(_.bH,{text:function(){return l().title}})),_.C("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.C(_.bH,{text:function(){return l().body}})),_.C("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.C(_.bH,{text:function(){return l().verifyStateText}}))),
_.C("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.C("div",null,_.C(_.QH,{data:function(){return l().dismissButton}},{buttonViewModel:_.Nq})),_.C("div",null,_.C(_.QH,{data:function(){return l().linkParentButton}},{buttonViewModel:_.Nq})))))},"Fh"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.pA}});var Yv2=_.Q(function(W){var l=W.data;W=_.JG(function(){return l().agreements},[]);
return _.C("installment-agreements-view-model",{class:_.If("ytInstallmentAgreementsViewModelHost")},_.C(_.G3,{each:W},function(V){return _.C("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.C("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.C(_.bH,{text:V.label})),_.C("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.C(_.QH,{data:function(){return V.openButton}},{buttonViewModel:_.Nq})))}))},"Gh");
Yv2.idomCompat=!0;var x9L=_.Q(function(W){return _.C("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.C("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.C(_.bH,{text:function(){return W.data().inviteMessage}})),_.C("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.C(_.bH,{text:function(){return W.data().attributedAccountSectionHeaderText}})),_.C("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.C(_.QH,{data:function(){return W.data().accountAvatar}},{avatarViewModel:_.gn}),_.C("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.C(_.bH,{text:function(){return W.data().accountName}}),_.C("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.C(_.bH,{text:function(){return W.data().handle}}))),_.C(_.QH,{data:function(){return W.data().trailingButton}},{buttonViewModel:_.Nq})),_.C("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.C(_.bH,{text:function(){return W.data().termsOfService}})))},"Hh");var e92=_.Q(function(W){var l=_.L(_.X3(function(){var Y,W8;return((Y=W.data().createPlaylistDialogFormSchema)==null?0:(W8=Y.initialValues)==null?0:W8.title)?W.data().createPlaylistDialogFormSchema.initialValues.title:""})),V=l.next().value,f=l.next().value;
l=_.L(_.X3(function(){W.data();return!1}));
var r=l.next().value,R=l.next().value;l=_.L(_.X3(function(){W.data();return!1}));
var y=l.next().value,P=l.next().value;l=_.L(_.X3(function(){var Y,W8;return(Y=W.data().createPlaylistDialogFormSchema)==null?void 0:(W8=Y.initialValues)==null?void 0:W8.visibility}));
var n=l.next().value,B=l.next().value;l=_.L(_.X3(function(){W.data();return!1}));
var d=l.next().value,J=l.next().value;l=_.L(_.X3(function(){var Y,W8;return(Y=W.data().createPlaylistDialogFormSchema)==null?void 0:(W8=Y.initialValues)==null?void 0:W8.isCollaborative}));
var D=l.next().value,u=l.next().value,H=_.WS("div");_.m1(function(){var Y=H.value.querySelector("textarea");Y&&(Y.value=V())},"sgS9sc");
_.mw(function(){var Y;_.nYw((Y=W.data().createPlaylistDialogFormSchema)==null?void 0:Y.id,{onSubmit:function(){var W8=V();var c8=n(),B8=D(),Jx=W.data();W8={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:W8,privacyStatus:c8,videoIds:Jx.videoIds,sourcePlaylistId:Jx.sourcePlaylistId,params:B8?Jx.createPlaylistParamsCollaborationEnabled:Jx.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.tY().resolve(_.s6).resolveCommand(W8)},
isValid:function(){return r()&&!y()&&!d()}})});
var p=function(Y){if(Y!==void 0&&(f(Y),!r()&&Y.length>0&&R(!0),r())){var W8=RP1(W.data());if(W8){var c8=W8.minLength;W8=W8.maxLength;c8&&Y.length<c8?P(!0):W8&&Y.length>W8?P(!0):P(!1)}}},X=function(){var Y=!(!D()||n()!=="PRIVATE");
J(Y)},w=function(Y){Y!==void 0&&(B(Y),X())},O=function(){if(d())return s$Z(W.data())},S=function(){u(!D());
X()},N=function(){return{validate:function(Y){if(r()){var W8=RP1(W.data());
if(W8){var c8=W8.minLength;W8=W8.translations;if(c8&&Y.length<c8)return W8==null?void 0:W8.minLengthErrorMessage}}}}},x=function(){var Y=RP1(W.data()),W8=Y==null?void 0:Y.maxLength,c8;
Y=Y==null?void 0:(c8=Y.translations)==null?void 0:c8.maxLengthErrorMessage;if(W8&&Y)return{maxChars:W8,errorMessage:Y}};
return _.C("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.C("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:H},_.C(_.QH,{data:function(){return W.data().playlistTitle}},{textFormFieldViewModel:function(Y){return _.C(_.Sus,{data:Y.data,
text:V,onInput:p,validation:N,characterLimit:x})},
textFieldViewModel:function(Y){return _.C(_.hUH,{data:Y.data,text:V,onInput:p,validation:N,characterLimit:x})}})),_.C("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.C(_.QH,{data:function(){return W.data().playlistVisibility}},{dropdownViewModel:function(Y){return _.C(_.sAc,{data:Y.data,
onSelected:w,error:O})}})),_.C(_.c,{cond:function(){return!!W.data().playlistCollaborate},
then:function(){return _.C("div",null,_.C(_.QH,{data:function(){return W.data().playlistCollaborate}},{switchListItemViewModel:function(Y){return _.C(_.V_c,{data:Y.data,
onTap:S})}}))}}))},"Ih");var qvw=_.Q(function(W){var l=W.data;return _.C("upsell-offer-table-cell-content-view-model",null,_.C("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.C(_.oh,null,_.C(_.bz,{when:function(){return l().iconType}},function(){return _.C("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.C(_.wN,{icon:function(){return l().iconType.toString()}}))}),_.C(_.bz,{when:function(){return l().title}},function(){return _.C(_.bH,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return l().title}})}),_.C(_.bz,{when:function(){return l().subtitle}},function(){return _.C(_.bH,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return l().subtitle}})}),_.C(_.bz,{when:function(){return l().infoText}},function(){return _.C(_.bH,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return l().infoText}})}),_.C(_.bz,{when:function(){return l().featureDescription}},function(){return _.C(_.bH,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return l().featureDescription}})}),_.C(_.bz,{when:function(){return l().note}},function(){return _.C(_.bH,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return l().note}})}))))},"Jh");
qvw.idomCompat=!0;var h9Z=_.Q(function(W){var l=W.data;return _.C("upsell-offer-table-cell-view-model",null,_.C("div",{class:_.If("ytUpsellOfferTableCellViewModelCellWrapper",function(){return l().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.C(_.QH,{data:function(){return l().contents}},{upsellOfferTableCellContentViewModel:qvw})))},"Kh");
h9Z.idomCompat=!0;var Sve=_.Q(function(W){var l=W.data;var V=W.upsellTableIsFirstRow;var f=function(){return(V==null?0:V())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},r=function(){return(V==null?0:V())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.C("ytm-upsell-offer-table-row-view-model",null,_.C("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.C(_.QH,{data:function(){return l().rowHeaderCell}},{upsellOfferTableCellViewModel:function(R){return _.C("div",{class:f},_.C(h9Z,{data:R.data}))}}),_.C(_.QH,{data:function(){return l().contentCells}},{upsellOfferTableCellViewModel:function(R){return _.C("div",{class:r},_.C(h9Z,{data:R.data}))}})))},"Lh");
Sve.idomCompat=!0;var EKw=_.Q(function(W){var l=W.data;return _.C("ytm-upsell-offer-table-view-model",null,_.C("div",{class:"ytUpsellOfferTableViewModelHost"},_.C("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.C(_.QH,{data:function(){return l().rows}},{upsellOfferTableRowViewModel:function(V,f){return _.C(Sve,{data:V.data,
upsellTableIsFirstRow:function(){return f()===0}})}}))))},"Mh");
EKw.idomCompat=!0;var $9L=_.Q(function(W){var l=_.JG(W.noPadding,!1),V=function(){var R,y;return(y=(R=W.data().logo.accessibilityData)==null?void 0:R.label)!=null?y:""},f=function(){return W.data().offerTable},r={};
return _.C("upsell-view-model",{class:_.If("ytUpsellViewModelHost",(r.ytUpsellViewModelHostNoPadding=function(){return l()},r.ytUpsellViewModelHostWide=function(){return f()!==void 0},r))},_.C("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.C(_.c,{cond:function(){return _.rC(W.data().logo)},
then:function(R){return _.C(_.dN,{data:R,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:V})}})),_.C("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.C(_.bH,{text:function(){return W.data().title}})),_.C("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.C(_.G3,{each:function(){var R;
return(R=W.data().subtitles)!=null?R:[]},
keyBy:"INDEX"},function(R){var y={};return _.C("div",{class:_.If("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(y.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return f()!==void 0},y))},_.C(_.bH,{text:R}))})),_.C("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.C(_.G3,{each:function(){var R;
return(R=W.data().benefitInfos)!=null?R:[]},
keyBy:"INDEX"},function(R){return _.C(_.c,{cond:function(){return R().info},
then:function(y){return _.C("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.C(_.wN,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.C(_.bH,{text:y}))}})})),_.C(_.c,{cond:function(){return f()!==void 0},
then:function(){return _.C("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.C(EKw,{data:f}))}}),_.C("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.C(_.G3,{each:function(){var R;
return(R=W.data().legalInfos)!=null?R:[]},
keyBy:"INDEX"},function(R){var y={};return _.C("div",{class:_.If("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(y.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return f()!==void 0},y))},_.C(_.bH,{text:R}))})))},"Nh");var WDw=_.Q(function(W){var l=W.data;W={};W=(W.ytMiniAppScoreChallengeViewModelScoreRadial=!0,W.ytMiniAppScoreChallengeViewModelDarkScoreRadial=L$Z(),W);return _.C("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.C("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return l().title}),_.C("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return l().subtitle}),_.C("div",{class:_.Yw(W)},_.C("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return l().score})),_.C("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return l().prompt}))},"Oh");var lDs=function(){this.store=_.BE();this.formId=""};
lDs.prototype.onInit=function(W){W.formId&&(this.formId=W.formId,this.store.dispatch(_.GT({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var V5w=_.Q(function(W){function l(P){if(P&&(P=_.k(P,_.O_)))return Object.assign({},P,{isSelected:R()})}
var V=_.L(_.X3(function(){var P,n;return(n=(P=_.k(W.data().option,_.O_))==null?void 0:P.isSelected)!=null?n:!1})),f=V.next().value,r=V.next().value,R=f;
_.mw(function(){var P;_.nYw((P=W.data().formSchema)==null?void 0:P.id,{onSubmit:function(){var n=_.tY().resolve(_.s6),B=!!W.data().selectedCommand,d=!!W.data().unselectedCommand;if(R()){if(B)var J=W.data().selectedCommand}else d&&(J=W.data().unselectedCommand);J=_.fP(J);l(W.data().option)&&!J?(n="",!B&&d?n="selected ":B&&!d&&(n="unselected "),B=new _.bP("No "+n+"command found for SelectionListItemFormViewModel"),_.wv(B)):J&&n.resolveCommand(J)},
isValid:function(){return!0}})});
var y=function(){r(!R())};
_.Xc(function(){var P,n,B=(P=W.data())==null?void 0:(n=P.formSchema)==null?void 0:n.id;B&&_.div()().delete(B)});
return _.C("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.C("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.C(_.bH,{text:function(){return W.data().paragraph}})),_.C(_.c,{cond:function(){return l(W.data().option)},
then:function(P){return _.C(_.dR,{data:P,isCompact:!0,hideSelectionTextChevron:!0,onTap:y,disableHorizontalPadding:!0})}}))},"Ph");var fD5=_.Q(function(W){var l=W.data;var V=W.disablePadding;var f=W.className;var r=_.WS("yt-dialog-header-view-model"),R=function(){var P=l().imageBanner;a:switch(l().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var n="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:n="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:P,style:n,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},y=function(){return l().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.mw(function(){var P=function(){_.Gt(r.value,"yt-refit-popups-action")},n;
(n=r.value)==null||n.addEventListener("image-loaded",P);_.Xc(function(){var B;(B=r.value)==null||B.removeEventListener("image-loaded",P)})});
W={};return _.C("yt-dialog-header-view-model",{el:r,class:_.If(f,(W.ytDialogHeaderViewModelHost=!0,W.ytDialogHeaderViewModelHostDisablePadding=V,W))},_.C(_.c,{cond:function(){return l().imageBanner},
then:function(){var P={};return _.C("div",{class:_.If(f,(P.ytDialogHeaderViewModelBanner=!0,P.ytDialogHeaderViewModelBannerFullBleed=y,P)),style:_.Tm({"max-height":function(){return l().assetContainerMaxHeight!==void 0?l().assetContainerMaxHeight+"px":void 0}})},_.C(_.wn,{data:R,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.C(_.c,{cond:function(){return l().headerBlock},
then:function(){return _.C("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.C(_.QH,{data:function(){return l().headerBlock}},{contentPreviewImageViewModel:function(P){return _.C(_.wn,{data:P.data,
notifyOnLoaded:!0})}}))}}),_.C(_.c,{cond:function(){return l().customBanner},
then:function(P){return _.C("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.C(_.QH,{data:P},{avatarStackViewModel:_.n_}))}}),_.C(_.c,{cond:function(){return l().headline},
then:function(P){return _.C("h2",null,_.C(_.bH,{text:P,className:"ytDialogHeaderViewModelText"}))}}))},"Qh");
fD5.idomCompat=!0;var rXw=_.Q(function(W){var l=_.CQY(function(){return W.data().formId}),V=l.submitForm,f=l.isValid;
return _.C("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.C(_.QH,{data:function(){return W.data().panelFooter}},{panelFooterViewModel:function(r){return _.C(_.IE,{data:r.data,
disablePadding:!0,disablePrimaryButton:function(){return!f()},
onClickPrimaryButton:function(){V()}})}}))},"Rh");var R0H=_.Q(function(W){var l=function(){var V,f;return(f=(V=_.k(W.data().rendererContext,_.N0))==null?void 0:V.label)!=null?f:""};
return _.C("yt-dialog-image-content-view-model",{class:_.If("ytDialogImageContentViewModelHost",W.className)},_.C(_.c,{cond:function(){return _.rC(W.data().image)},
then:function(V){var f={};return _.C("div",{style:_.Tm((f.width=(0,_.nD)(function(){var r;return(r=W.data().imageMaxWidth)!=null?r:""}),f)),
class:"ytDialogImageContentViewModelImage"},_.C(_.dN,{data:V,alt:l,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.C(_.bH,{text:function(){return W.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Sh");var LDe=_.Q(function(W){var l=_.Dd(W,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),V=l.elRefCallback;W=l.iconWiz;var f=l.assetWiz,r=l.assetType,R=l.titleWiz,y=l.leadingActionHeaderWiz,P=l.trailingActionHeaderWiz,n=l.headerPosition,B=l.contentWiz,d=l.buttonLayout,J=l.buttonStyle,D=l.primaryButtonWiz,u=l.secondaryButtonWiz,H=l.contentAlignment,p=l.isFullscreen,X=l.width,w=l.maxHeight,O=l.isHeaderWizDefined,
S=l.headerWiz,N=l.isFooterWizDefined,x=l.footerWiz;l=_.WS("dialog-layout",function(Ax){V==null||V(Ax)});
var Y=f?function(){return f({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,W8=D?function(){var Ax={};
return D({buttonOverrides:function(){return{style:(J==null?void 0:J())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.If((Ax["yt-spec-dialog-layout__dialog-layout-button"]=!0,Ax["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(d==null?void 0:d())===0||(d==null?void 0:d())===2},Ax))})}:void 0,c8=u?function(){var Ax={};
return u({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.If((Ax["yt-spec-dialog-layout__dialog-layout-button"]=!0,Ax["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(d==null?void 0:d())===0||(d==null?void 0:d())===2},Ax))})}:void 0,B8=function(){return(!!R||!!y||!!P)&&n()===0},Jx={},H8={},Kq={},Z4={};
return _.C("dialog-layout",{el:l,class:_.If((Jx["yt-spec-dialog-layout"]=!0,Jx["yt-spec-dialog-layout--dialog-layout-fullscreen"]=p,Jx["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!p()},Jx["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return w()===1},Jx["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(r==null?void 0:r())===1},Jx)),
style:function(){return(X==null?void 0:X())!==void 0?"width: "+X+"px;":""}},W?_.C("div",{class:_.If((H8["yt-spec-dialog-layout__dialog-layout-icon"]=!0,H8["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!f&&n()===1},H8["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return H()===1},H8))},_.C(W,null)):null,_.C(_.c,{cond:O,
then:function(){return S?_.C("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.C(S,null)):null},
else:function(){return _.C(_.Lp,null,_.C(_.c,{cond:B8,then:function(){return _.C(t5H,{contentAlignment:H,LeadingActionHeader:y,TrailingActionHeader:P,Title:R,isAboveAsset:!!Y})}}),Y?_.C("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.C(Y,null)):null)}}),_.C("div",{class:_.If((Kq["yt-spec-dialog-layout__dialog-layout-container"]=!0,Kq["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(H==null?void 0:H())===1},Kq["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=
function(){return!R&&!(S&&O())||!!Y&&(n==null?void 0:n())===0},Kq))},_.C(_.c,{cond:function(){return R&&!S&&(n==null?void 0:n())===1},
then:function(){return _.C(t5H,{contentAlignment:H,LeadingActionHeader:y,TrailingActionHeader:P,Title:R,isAboveAsset:!1})}}),B?_.C("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.C("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.C(B,null))):null,_.C(_.c,{cond:N,
then:function(){return x?_.C("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.C(x,null)):null}}),W8||c8?_.C(sy7,{footerClasses:_.If((Z4["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,Z4["yt-spec-dialog-layout__dialog-layout-footer"]=!0,Z4["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(d==null?void 0:d())===2},Z4["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(d==null?void 0:d())===1},Z4)),
PrimaryButton:W8,SecondaryButton:c8}):null))},"Th"),t5H=_.Q(function(W){var l=_.Dd(W,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),V=l.contentAlignment,f=l.LeadingActionHeader;W=l.Title;var r=l.TrailingActionHeader,R=l.isAboveAsset,y=l.enableLeadingActionHeader;l={};return _.C("div",{class:_.If((l["yt-spec-dialog-layout__dialog-header-container"]=!0,l["yt-spec-dialog-layout__dialog-header"]=!0,l["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=R,l["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(V==null?void 0:V())===1&&y()},l))},_.C(_.c,{cond:function(){return y()},
then:function(){return f?_.C("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.C(f,null)):null}}),W?_.C("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.C(W,null)):null,r?_.C("div",null,_.C(r,null)):null)},"Uh"),sy7=_.Q(function(W){var l=W.footerClasses;
var V=W.PrimaryButton;W=W.SecondaryButton;return _.C("div",{class:l},W?_.C(W,null):null,V?_.C(V,null):null)},"Vh");var yX4=_.Q(function(W){var l=W.data;return _.C("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.C("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.C(_.QH,{data:function(){return l().avatar}},{avatarViewModel:_.gn})),_.C("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.C(_.bH,{text:function(){return l().title}})),_.C(_.bH,{text:function(){return l().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Wh");var gbY=_.Q(function(W){var l=W.data;return _.C("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.C("div",{class:"ytAccessConfirmationViewModelContent"},_.C(_.QH,{data:function(){var V;return(V=l().avatar)!=null?V:l().dualAvatar}},{dualAvatarViewModel:function(V){return _.C(_.zFZ,{data:V.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(V){return _.C(_.Px,{data:V.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.C("h2",{class:"ytAccessConfirmationViewModelTitle"},_.C(_.bH,{text:function(){return l().title}})),_.C(_.bH,{text:function(){return l().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Xh");var P85=_.Q(function(W){var l=W.data;var V=void 0;W=_.L(_.X3(function(){var B;return((B=_.k(l().content,_.lQ))==null?void 0:B.defaultSelectedKey)||""}));
var f=W.next().value,r=W.next().value,R,y=function(){r("");var B;(B=V)!=null&&B.store.dispatch(_.GT({type:"RESET_COMMAND_MAP"}))};
_.mw(function(){V=new lDs;window.addEventListener("yt-popup-closed",y)});
_.m1(function(){if(V&&R!==l().formId&&(V.onInit(l()),(R=l().formId)&&f())){var B=V,d={key:f()};d.command&&B.store.dispatch(VgH(R,d.command))}},"c2n8Gf");
_.Xc(function(){window.removeEventListener("yt-popup-closed",y)});
var P=function(B,d,J){d.key&&J&&d.key!==f()&&(r(d.key),V&&d.command&&V.store.dispatch(VgH(J,d.command)))},n=function(){if(_.k(l().content,_.lQ))return!(f==null?0:f())};
return _.C("yt-dialog-view-model",{class:_.If("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.C(LDe,{headerWiz:function(){return _.C("span",{skip:!0},_.C(_.QH,{data:function(){return l().header}},{dialogHeaderViewModel:function(B){return _.C(fD5,{data:B.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!l().header},
contentWiz:function(){return _.C("span",{skip:!0},_.C(_.QH,{data:function(){return l().customContent?l().customContent:l().content}},{basicContentViewModel:_.WQc,
createPlaylistDialogFormViewModel:e92,collaborativePlaylistInviteMessageViewModel:x9L,miniAppScoreChallengeViewModel:WDw,radioButtonGroupViewModel:function(B){var d=B.data;return _.C(_.Yuw,{data:d,selectedKey:f,onSelected:P,groupName:function(){return d().formId}})},
selectionListItemFormViewModel:V5w,upsellViewModel:function(B){return _.C($9L,{data:B.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:yX4,installmentAgreementsViewModel:Yv2,accessConfirmationViewModel:gbY,listViewModel:function(B){return _.C(_.g8L,{data:B.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:R0H}))},
footerWiz:function(){return _.C("span",{skip:!0},_.C(_.QH,{data:function(){return l().footer}},{panelFooterViewModel:function(B){return _.C(_.IE,{data:B.data,
disablePadding:!0,disablePrimaryButton:n})},
formPanelFooterViewModel:rXw,formFooterViewModel:function(B){return _.C(_.Zjw,{data:B.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!l().footer}}))},"Yh");
P85.idomCompat=!0;_.HI(P85,"yt-dialog-view-model",{props:{data:_.pA},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var nbs=_.Q(function(W){var l=W.data;W={};return _.C("yt-panel-header-view-model",{class:_.If("ytPanelHeaderViewModelHost",(W.ytPanelHeaderViewModelHostHideDivider=function(){return!!l().shouldHideDivider},W.ytPanelHeaderViewModelHostCompact=function(){return!!l().subtitle},W))},_.C("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.C(_.c,{cond:function(){return l().title},
then:function(V){return _.C(_.bH,{text:V,className:"ytPanelHeaderViewModelTitle"})}}),_.C(_.c,{cond:function(){return l().subtitle},
then:function(V){return _.C(_.bH,{text:V,className:"ytPanelHeaderViewModelSubtitle"})}})),_.C("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.C(_.QH,{data:function(){return l().trailingButtons}},{buttonViewModel:function(V){return _.C(_.Nq,{data:V.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Zh");
nbs.idomCompat=!0;var C81=_.Q(function(W){var l=_.ip(function(R){var y;if((y=W.skipContentClick)==null?0:y.call(W))return!1;W.onContentWrapperClick(R);return!0}),V,f,r;
return _.C("div",{class:_.If("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return W.isAnimating()?"transform: translateY("+W.currentY()+"px);transition: 0.2s":""}},(V=W.header)==null?void 0:V.call(W),_.C("div",{id:W.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Tm({"max-height":(0,_.nD)(W.maxHeightForContentWrapper)}),"on:scroll":nw7(W.onScroll),"on:touchmove":nw7(function(R){return void R.stopPropagation()})},_.C("div",{el:{onRender:W.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":l},(f=W.body)==null?void 0:f.call(W))),(r=W.footer)==null?void 0:r.call(W))},"$h");
C81.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var cXw=_.Q(function(W){var l=_.JG(W.leadingLabel),V=_.JG(W.trailingLabel),f=_.JG(W.footerButtonType),r=function(){return l()||V()||W.hasPrimaryButton()||W.hasSecondaryButton()},R={},y=_.If("yt-spec-bottom-sheet-layout__primary-button",(R["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return f()===0&&W.hasPrimaryButton()},R["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return f()===1&&W.hasPrimaryButton()},R["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return f()===2&&W.hasPrimaryButton()},R["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return f()===3&&W.hasPrimaryButton()},R));
R={};var P=_.If("yt-spec-bottom-sheet-layout__secondary-button",(R["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return f()===1&&W.hasSecondaryButton()},R["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return f()===2&&W.hasSecondaryButton()},R["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return f()===3&&W.hasPrimaryButton()},R));
return _.C(_.c,{cond:W.hasFooterOverride,then:function(){var n;return _.C(_.Lp,null,(n=W.footerOverride)==null?void 0:n.call(W))},
else:function(){return _.C(_.c,{cond:r,then:function(){return _.C("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.C(_.c,{cond:function(){return l()||V()},
then:function(){var n={};return _.C("div",{class:_.If("yt-spec-bottom-sheet-layout__footer-label-wrapper",(n["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!W.hasPrimaryButton()},n))},_.C(_.c,{cond:l,
then:function(){return _.C("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},l)}}),_.C(_.c,{cond:V,
then:function(){return _.C("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},V)}}))}}),_.C(_.c,{cond:function(){return W.hasPrimaryButton()||W.hasSecondaryButton()},
then:function(){var n={};return _.C("div",{class:_.If("yt-spec-bottom-sheet-layout__footer-button-wrapper",(n["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.V8k,n))},_.C(_.c,{cond:function(){return W.hasSecondaryButton()&&f()!==0},
then:function(){var B;return _.C("div",{class:P},(B=W.secondaryButton)==null?void 0:B.call(W))}}),_.C(_.c,{cond:W.hasPrimaryButton,
then:function(){var B;return _.C("div",{class:y},(B=W.primaryButton)==null?void 0:B.call(W))}}))}}))}})}})},"ai");
cXw.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var BX2=_.Q(function(W){var l=_.JG(W.title),V=_.JG(W.subtitle);return _.C("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:W.headerId,"on:touchstart":_.ip(function(f){var r;(r=W.touchstart)==null||r.call(W,f);return!1}),
"on:touchmove":_.ip(function(f){var r;(r=W.touchmove)==null||r.call(W,f);return!1}),
"on:touchend":_.ip(function(f){var r;(r=W.touchend)==null||r.call(W,f);return!1})},_.C("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.C(_.c,{cond:W.hasHeaderOverride,
then:function(){var f;return _.C(_.Lp,null,(f=W.headerOverride)==null?void 0:f.call(W))},
else:function(){var f={};return _.C("div",{class:_.If((f["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,f["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=l,f))},_.C("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.C(_.c,{cond:l,then:function(){return _.C(_.Lp,null,_.C("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},l),_.C(_.c,{cond:V,then:function(){return _.C("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
V)}}))}})),_.C(_.c,{cond:function(){return l()&&W.hasActionHeader()},
then:function(){var r;return _.C("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(r=W.actionHeader)==null?void 0:r.call(W))}}))}}))},"bi");
BX2.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.Q(function(W){function l(Y){if(!w&&typeof MutationObserver!=="undefined"){var W8={childList:!0};"MutationObserver"in window&&(w=new MutationObserver(V.bind(void 0,Y)),w.observe(Y,W8))}}
function V(Y){typeof w!=="undefined"&&(O["content-wrapper"]===void 0&&(O["content-wrapper"]=Y.children[0].clientHeight),u(O["content-wrapper"]),D()>H()||p(D()))}
function f(){J(window.innerHeight);D()>H()||p(D());S.isFullScreen[0]()&&D()>H()?N().dispatch("Snap To Full Screen",{maxHeight:X()}):N().dispatch("Snap To Neutral Position",{maxHeight:H()})}
function r(Y){document.body.style.overscrollBehavior="none";Y.preventDefault();N().dispatch("Touch Start",{event:Y})}
function R(Y){Y.preventDefault();N().dispatch("Touch Move",{event:Y,contentScrollable:D()>H(),fullContentWrapperHeight:X(),contentWrapperHeight:H(),contentHeightMap:O,contentWrapperId:"content-wrapper",header:cye(W),footer:cye(W)})}
function y(){document.body.style.overscrollBehavior="";S.isFullScreen[0]()?S.currentY[0]()>=60?N().dispatch("Snap To Neutral Position",{maxHeight:H()}):N().dispatch("Snap To Full Screen",{maxHeight:X()}):S.currentY[0]()>=60?P():S.currentY[0]()<=-60&&D()>H()?N().dispatch("Snap To Full Screen",{maxHeight:X()}):N().dispatch("Snap To Neutral Position",{maxHeight:H()})}
function P(){N().dispatch("Close Sheet",{clientHeight:d(),maxHeight:0});setTimeout(function(){C$5()},250)}
var n=_.L(_.J4(window.innerHeight,void 0,"Q6Nekc")),B=n.next().value;n=n.next().value;var d=B,J=n;n=_.L(_.J4(0,void 0,"vjnlmb"));B=n.next().value;n=n.next().value;var D=B,u=n;n=_.L(_.X3(function(){var Y=cye(W);return.6*d()-yys(Y)-gwY(Y)}));
B=n.next().value;n=n.next().value;var H=B,p=n,X=function(){var Y=cye(W);return d()-yys(Y)-gwY(Y)-24-24},w=null,O={},S={initialY:_.J4(0,void 0,"B0aY2c"),
currentY:_.J4(0,void 0,"nLPMcf"),isAnimating:_.J4(!1,void 0,"lXnnZ"),isFullScreen:_.J4(!1,void 0,"rZZoFe"),maxHeightForContentWrapper:_.X3(H)},N=function(){var Y=null;return function(){if(!Y){var W8={initialY:S.initialY[0](),currentY:S.currentY[0](),isAnimating:S.isAnimating[0](),isFullScreen:S.isFullScreen[0](),maxHeightForContentWrapper:S.maxHeightForContentWrapper[0]()};Y=P$w(W8)}return Y}}();
_.mw(function(){window.addEventListener("resize",f);N().subscribe(function(Y){S.initialY[1](Y.initialY);S.currentY[1](Y.currentY);S.isAnimating[1](Y.isAnimating);S.isFullScreen[1](Y.isFullScreen);S.maxHeightForContentWrapper[1](Y.maxHeightForContentWrapper)})});
_.Xc(function(){window.removeEventListener("resize",f);w&&(w.disconnect(),w=null)});
var x=_.If({"bottom-sheet-content-without-icon":function(){var Y;return!((Y=W.shouldShowIcons)==null?0:Y.call(W))}});
return _.C("bottom-sheet-layout",null,_.C(C81,{contentWrapperId:"content-wrapper",isAnimating:function(){return S.isAnimating[0]()},
currentY:function(){return S.currentY[0]()},
maxHeightForContentWrapper:function(){return S.maxHeightForContentWrapper[0]()},
shouldShowIcons:W.shouldShowIcons,skipContentClick:W.skipContentClick,onScroll:function(){var Y=document.getElementById("header-wrapper"),W8=document.getElementById("content-wrapper");if(Y&&W8){var c8={};c8=(c8["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,c8["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,c8);Y.className=W8.scrollTop>1?_.Yw(c8):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:C$5,contentWrapperEl:function(Y){l(Y);requestAnimationFrame(function(){V(Y)})},
header:function(){return _.C(BX2,{touchstart:r,touchmove:R,touchend:y,title:W.headerTitle,subtitle:W.headerSubtitle,headerId:"header-wrapper",headerOverride:W.headerFn,hasHeaderOverride:W.hasHeaderFn,actionHeader:W.headerActionHeader,hasActionHeader:W.hasHeaderActionHeader})},
footer:function(){return _.C(cXw,{footerButtonType:W.footerButtonType,leadingLabel:W.footerLeadingLabel,trailingLabel:W.footerTrailingLabel,primaryButton:W.footerPrimaryButton,hasPrimaryButton:W.hasFooterPrimaryButton,secondaryButton:W.footerSecondaryButton,hasSecondaryButton:W.hasFooterSecondaryButton,footerOverride:W.footerFn,hasFooterOverride:W.hasFooterFn})},
body:function(){return _.C(_.c,{cond:W.hasContentFn,then:function(){var Y;return _.C("div",{class:x},(Y=W.contentFn)==null?void 0:Y.call(W))}})}}))},"ci").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var dEZ=_.Q(function(W){var l=_.tY().resolve(_.sT);return _.C("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.ip(function(){return void l.closeSheet()})},_.C(_.c,{cond:function(){return!!W.header},
then:function(){return _.C("div",{class:"ytContextualSheetLayoutHeaderContainer"},W.header())}}),_.C(_.c,{cond:function(){return!!W.content},
then:function(){return _.C("div",{class:"ytContextualSheetLayoutContentContainer"},W.content())}}),_.C(_.c,{cond:function(){return!!W.footer},
then:function(){return _.C("div",{class:"ytContextualSheetLayoutFooterContainer"},W.footer())}}))},"di");
dEZ.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var JXN=_.Q(function(W){W=W.data;var l=_.WS("yt-sheet-view-model",function(f){if(_.U("web_focus_first_element_sheet")||!_.U("sheet_focus_first_killswitch"))return f.addEventListener("focus",function(){Kgs(f)}),function(){f.removeEventListener("focus",function(){Kgs(f)})}}),V={};
return _.C("yt-sheet-view-model",{"on:mousedown":_.ip(function(f){_.U("sheet_focus_first_killswitch")||f.currentTarget!==f.target&&f.preventDefault()}),
"on:focus":_.ip(function(){_.U("sheet_focus_first_killswitch")||Kgs(l.value)}),
class:_.If("ytSheetViewModelHost",(V.ytSheetViewModelContextual=!0,V.ytSheetViewModelDisableBackdropFilter=_.U("web_disable_backdrop_filter"),V)),el:l,tabindex:-1},_.C(_.c,{cond:W,then:function(f){return _.C(dEZ,{header:function(){return _.C(_.QH,{data:function(){return f().header}},{panelHeaderViewModel:nbs})},
content:function(){return _.C(_.QH,{data:function(){return f().content}},{listViewModel:function(r){return _.C(_.g8L,{data:r.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:$9L,miniAppScoreChallengeViewModel:WDw})},
footer:function(){return _.C(_.QH,{data:function(){return f().footer}},{panelFooterViewModel:_.IE})}})}}))},"ei");
JXN.idomCompat=!0;_.HI(JXN,"yt-sheet-view-model",{props:{data:_.pA}});var UE5=_.Q(function(W){var l=function(){var V;return(V=W.data().enableDebuggingFeatures)!=null?V:!1};
return _.C("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.C(_.G3,{each:function(){var V;return(V=W.data().stickers)!=null?V:[]}},function(V){return _.C(DEs,{data:function(){return V},
debugMode:l})}))},"fi"),DEs=_.Q(function(W){var l=_.Dd(W,{debugMode:!1}).debugMode,V=_.JG(function(){var n;
return(n=W.data().region)==null?void 0:n.w},0),f=_.JG(function(){var n;
return(n=W.data().region)==null?void 0:n.h},0),r=_.JG(function(){var n;
return(n=W.data().region)==null?void 0:n.x},0),R=_.JG(function(){var n;
return(n=W.data().region)==null?void 0:n.y},0),y=_.ip(function(){var n=W.data().onTap;
n&&_.sZ(n)}),P={};
return _.C("div",{class:_.If("ytStoriesStickerLayerViewModelSticker",(P.ytStoriesStickerLayerViewModelDebugMode=l,P)),style:_.Tm({width:function(){return 100*V()+"%"},
height:function(){return 100*f()+"%"},
left:function(){return 100*r()+"%"},
top:function(){return 100*R()+"%"},
"flex-direction":function(){return BHw(W.data().flexDirection)},
"justify-content":function(){return dBw(W.data().justifyContent)},
"align-items":function(){return JyH(W.data().alignItems)}}),
"on:click":y},_.C(_.QH,{data:function(){return W.data().button||W.data().toggleButton}},{buttonViewModel:function(n){return _.C(_.Nq,{data:n.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(n){return _.C(_.gy,{data:n.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"gi");var kZL=_.Q(function(W){var l=function(){return W.data()},V={},f=_.JG(function(){return l().backgroundColor},0),r=_.JG(function(){return l().actionButtons},[]),R=_.JG(function(){return l().stickerLayer},{}),y=function(){var n,B;
return{animationRef:V,animationConfig:{autoplay:!1,loop:!1,path:(B=(n=l().foregroundAnimation)==null?void 0:n.url)!=null?B:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){W.navigateToNextItemOnLottieComplete()}}}},P=function(){var n,B,d,J,D,u,H,p;
return{animationConfig:{autoplay:(u=(n=l().backgroundAnimation)==null?void 0:(B=n.settings)==null?void 0:B.autoplay)!=null?u:!1,loop:(H=(d=l().backgroundAnimation)==null?void 0:(J=d.settings)==null?void 0:J.loop)!=null?H:!1,path:(p=(D=l().backgroundAnimation)==null?void 0:D.url)!=null?p:"",name:"stories_item_background_animation"}}};
_.m1(function(){if(W.isVisible()){var n;(n=V.lottieEl)==null||n.play();W.animationRef()&&(W.animationRef().lottieEl=V.lottieEl)}else{var B;(B=V.lottieEl)==null||B.stop()}},"AvUgVe");
return _.C("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Tm({"background-color":function(){return _.sD(f())+";"}})},_.C("div",{class:"ytStoriesItemViewModelAssetContent"},_.C(_.c,{cond:function(){return!!l().backgroundAnimation},
then:function(){return _.C(_.SX,{data:P,animationName:function(){return P().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.C(_.c,{cond:function(){return!!l().backgroundImage},
then:function(){return _.C(_.dN,{data:function(){return l().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.C(_.c,{cond:function(){return!!l().foregroundAnimation},
then:function(){return _.C(_.SX,{data:y,animationName:function(){return y().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.C(_.c,{cond:function(){return!!l().foregroundImage},
then:function(){return _.C(_.dN,{data:function(){return l().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.C("div",{class:"ytStoriesItemViewModelTopShadow"}),_.C(_.QH,{data:function(){return R()}},{storiesStickerLayerViewModel:UE5})),_.C("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.Tm({"background-color":function(){return _.sD(f())}})},_.C("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.C(_.G3,{each:r},function(n){return _.C(uhw,{data:function(){return n},
pauseAutoNavigation:W.pauseAutoNavigation})}))))},"hi"),vb1={style:"overlay",
type:"outline"},uhw=_.Q(function(W){var l={};return _.C("div",{class:_.If("ytStoriesItemViewModelActionButton",(l.ytStoriesItemViewModelStretchedActionButton=function(){return W.data().size==="STORIES_BUTTON_SIZE_STRETCH"},l)),
"on:click":_.ip(W.pauseAutoNavigation)},_.C(_.QH,{data:function(){return W.data().button}},{buttonViewModel:function(V){return _.C(_.Nq,{data:V.data,
buttonOverrides:vb1})}}))},"ii");_.HI(_.Q(function(W){var l=function(){var Jx;return(Jx=W.data().startIndex)!=null?Jx:0},V=_.L(_.X3(l)),f=V.next().value,r=V.next().value;
V=_.L(_.J4(!1,void 0,"PXfG3d"));var R=V.next().value,y=V.next().value,P=function(){var Jx;return(Jx=W.data().storyItems)!=null?Jx:[]},n={},B=_.WS("yt-stories-viewer-view-model"),d=function(){return W.data().dismissButton},J=function(){var Jx;
return _.fP((Jx=_.k(d(),_.JJ))==null?void 0:Jx.onTap)},D=_.WS("div"),u,H,p=!1,X=function(){var Jx;
(Jx=u)==null||Jx.cancel();u=w(f()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});u.onfinish=function(){var H8=_.k(P()[f()],ujs),Kq,Z4;H8!=null&&H8.foregroundAnimation&&((H8==null?0:(Kq=H8.foregroundAnimation)==null?0:Kq.url)||(H8==null?0:(Z4=H8.foregroundAnimation)==null?0:Z4.payload))||(f()!==P().length-1?(r(f()+1),X()):J()&&_.rN(J()))}},w=function(Jx){return D.value.children[Jx].children[0]},O=function(){for(var Jx=0;Jx<f();Jx++)w(Jx).style.transform=
"scaleX(1)"};
V=_.ip(function(){p||(R()?y(!1):(f()===P().length-1&&J()&&_.rN(J()),w(f()).style.transform="scaleX(1)",f()!==P().length-1&&(r(f()+1),X())))});
var S=_.ip(function(){p||(R()?y(!1):(w(f()).style.transform="scaleX(0)",f()!==0&&r(f()-1),X()))}),N=function(){y(!0)},x=function(){w(f()).style.transform="scaleX(1)";
f()!==P().length-1?(r(f()+1),X()):J()&&_.rN(J())},Y=_.ip(function(){p=!1;
H=setTimeout(function(){y(!0);p=!0},300)}),W8=_.ip(function(){clearTimeout(H);
p&&R()&&y(!1)});
_.m1(function(){if(R()){var Jx;(Jx=u)==null||Jx.pause();var H8;(H8=n.lottieEl)==null||H8.pause()}else{var Kq;(Kq=u)==null||Kq.play();var Z4;(Z4=n.lottieEl)==null||Z4.play()}},"q47fR");
_.m1(function(){O();f()===l()&&X()},"ydZxlf");
var c8=function(Jx){if(Jx.target===B.value){(Jx=J())&&_.rN(Jx);clearTimeout(H);var H8;(H8=u)==null||H8.cancel();window.removeEventListener("yt-popup-closed",c8)}},B8=function(Jx){Jx.target===B.value&&window.addEventListener("yt-popup-closed",c8)};
_.mw(function(){O();X();window.addEventListener("yt-popup-opened",B8)});
return _.C("yt-stories-viewer-view-model",{el:B,class:_.If("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.C("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.C("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":S,"on:mousedown":Y,"on:mouseup":W8,"on:mouseleave":W8}),_.C("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":V,"on:mousedown":Y,"on:mouseup":W8,"on:mouseleave":W8})),_.C("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.C(_.QH,{data:P},{storiesItemViewModel:function(Jx,H8){var Kq=Jx.data;return _.C(_.c,{cond:function(){return Math.abs(H8()-f())<=1},
then:function(){var Z4={};return _.C("div",{class:_.If("ytStoriesViewerViewModelStoryItem",(Z4.ytStoriesViewerViewModelActiveStoryItem=function(){return H8()===f()},Z4))},_.C(kZL,{data:Kq,
pauseAutoNavigation:N,navigateToNextItemOnLottieComplete:x,isVisible:function(){return H8()===f()},
animationRef:n}))}})}})),_.C("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:D},_.C(_.G3,{each:P},function(){return _.C("div",{class:"ytStoriesViewerViewModelProgressBar"},_.C("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.C("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.C(_.QH,{data:d},{buttonViewModel:_.Nq})))},"ji"),"yt-stories-viewer-view-model",{props:{data:_.pA}});_.HI(_.Q(function(W){var l=W.data;var V=_.WS("yt-gen-ai-feedback-form-view-model"),f=[];return _.C("yt-gen-ai-feedback-form-view-model",{el:V,class:"ytGenAiFeedbackFormViewModelHost"},_.C(_.bH,{text:function(){return l().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.C("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.C(_.QH,{data:function(){return l().feedbackChips}},{toggleButtonViewModel:function(r){var R=r.data;
return _.C(_.gy,{data:R,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(y){var P=R();P=_.k(P,_.Ub);P=_.k(P==null?void 0:P.defaultButtonViewModel,_.JJ).trackingParams;y?f.push(P):(y=f.indexOf(P),y>-1&&f.splice(y,1))}})}})),_.C(_.bH,{text:function(){return l().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.C("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.C(_.QH,{data:function(){return l().submitButton}},{buttonViewModel:function(r){return _.C(_.Nq,{data:r.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){DBH(V.value,f,l().uniqueId)}})}}),_.C(_.QH,{data:function(){return l().moreFeedbackButton}},{buttonViewModel:function(r){return _.C(_.Nq,{data:r.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"ki"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.pA},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var JD=function(){return _.I.apply(this,arguments)||this};
_.v(JD,_.I);JD.prototype.created=function(){$r4(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(Mo4);var W=_.tY().resolve(_.K7H);W&&(W.container=this.ytPopupContainerBehavior);if(W=_.tY().resolve(_.sT))W.container=this.ytPopupContainerBehavior;if(W=_.tY().resolve(_.L9)){var l=this.ytPopupContainerBehavior;W.containerWasInjected?_.Qe(Error("jj")):W.container=l}};
JD.prototype.ensurePopupBelowPlayer=function(W,l){var V=_.tY().resolve(_.R0(_.Bp));if(!V||!V.isOnWatch()||!_.Jy())return!1;V=V.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.zL().height>V+this.getPopupHeight(W,l)?(W.style.top="auto",W.style.bottom="0px"):(W.style.top=V+"px",W.style.bottom="auto");return!0};
JD.prototype.getPopupHeight=function(W,l){l&&(W.cachedPopupHeight=0);if(!W.cachedPopupHeight){l=0;var V=W.clientHeight,f=window.getComputedStyle(W);l+=parseInt(f.marginTop,10);l+=parseInt(f.marginBottom,10);W.cachedPopupHeight=V+l}return W.cachedPopupHeight};
JD.prototype.getElement=function(W){return document.createElement(W)};
_.a([_.F(y37.YtPopupContainerBehavior),_.z("design:type",Object)],JD.prototype,"ytPopupContainerBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],JD.prototype,"ytComponentBehavior",void 0);_.a([_.A({disableElementRegistration:!0,is:"ytd-popup-container"})],JD);
_.Z(JD,"ytd-popup-container",function(){if(W5c!==void 0)return W5c;var W=document.createElement("template");_.K(W,"\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");W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);return W5c=W},{mode:1});var Hge;var KDc={};KDc.YtLogYpcFlowCommandsBehavior=[_.hp.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(W){_.k(W,Q8s)&&(W=_.k(W,Q8s))&&(W.serializedTransactionFlowLoggingParams?_.FOq(W.serializedTransactionFlowLoggingParams):W.serializedYpcCancelFlowLoggingParams?(W=W.serializedYpcCancelFlowLoggingParams)&&_.kp("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",W):W.serializedYpcResumeFlowLoggingParams?(W=W.serializedYpcResumeFlowLoggingParams)&&_.kp("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",W):W.serializedYpcPauseFlowLoggingParams?(W=W.serializedYpcPauseFlowLoggingParams)&&
_.kp("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",W):W.serializedYpcRefundFlowLoggingParams?(W=W.serializedYpcRefundFlowLoggingParams)&&WgZ("YPC_EVENT_TYPE_START",W):W.serializedYpcDeactivateFlowLoggingParams?(W=W.serializedYpcDeactivateFlowLoggingParams)&&_.kp("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",W):W.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(W=W.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.kp("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",W))},
handleLogYpcFlowDismiss_:function(W){_.k(W,APZ)&&(W=_.k(W,APZ),W.serializedTransactionFlowLoggingParams?_.G24(W.serializedTransactionFlowLoggingParams):W.serializedYpcCancelFlowLoggingParams?(W=W.serializedYpcCancelFlowLoggingParams)&&_.kp("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",W):W.serializedYpcResumeFlowLoggingParams?(W=W.serializedYpcResumeFlowLoggingParams)&&_.kp("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",W):W.serializedYpcPauseFlowLoggingParams?(W=
W.serializedYpcPauseFlowLoggingParams)&&_.kp("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",W):W.serializedYpcRefundFlowLoggingParams&&(W=W.serializedYpcRefundFlowLoggingParams)&&WgZ("YPC_EVENT_TYPE_CANCEL",W))}}];var FD1={};FD1.YtCancelRecurrenceBehavior=[_.uH.YtComponentBehavior,_.qAe,{attached:function(){var W=this;Tl1(this,function(l,V){return W.ypcCancelRecurrenceHandler(l,V)})},
ypcCancelRecurrenceHandler:function(W,l){var V=this;if(!l||!l.ypcCancelRecurrenceEndpoint)return!1;if(!l.ypcCancelRecurrenceEndpoint.params)return _.OJ(Error("Kl")),!0;_.$1(this.hostElement);var f=_.ty.instance,r=_.tY().resolve(_.R0(_.lm));f&&_.s_(f,l)?_.Lv(f,l).then(function(R){V.ypcCancelRecurrenceSuccess_(W,l,{data:R})},function(R){V.ypcCancelRecurrenceFailure_(W,l,R)}).thenCatch(function(){_.OJ(Error("Ll"))}):r?r.requestDataForServiceEndpoint(l).then(function(R){V.ypcCancelRecurrenceSuccess_(W,
l,R)},function(R){V.ypcCancelRecurrenceFailure_(W,l,R)}).thenCatch(function(){_.OJ(Error("Ll"))}):_.OJ(Error("Ml"));
return!0},
ypcCancelRecurrenceSuccess_:function(W,l,V){_.W0(this.hostElement);V.data||(V={data:V});V.data&&V.data.actions&&_.og(this.hostElement,V.data.actions,this.hostElement);V.data.messageRenderer?VrN(l.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(l=l.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.kp("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",l);_.FN(W,"yt-service-request-completed",V)},
ypcCancelRecurrenceFailure_:function(W,l,V){_.W0(this.hostElement);VrN(l.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.FN(W,"yt-service-request-error",{error:V,params:[W,l]})}}];var GZs=function(W,l){_.VU.call(this,l)};
_.v(GZs,BeN);var bgH={};bgH.YtCompleteTransactionBehavior=[_.uH.YtComponentBehavior,_.qAe,{attached:function(){var W=this;Tl1(this,function(l,V){return W.ypcCompleteTransactionHandler(l,V)})},
completeTransaction:function(W,l){var V=this;l={payments_payload:window.btoa(l.integratorData),buybucket_params:W.data.buybucketParams,offer_params:W.data.offerParams};var f=_.tY().resolve(_.lm),r=W.data.completeTransactionEndpoint,R=this.get("ypcCompleteTransactionEndpoint.actions",r);R&&_.og(this.hostElement,R,this.hostElement);return(R=_.ty.instance)&&_.s_(R,r)?_.Lv(R,r,l).then(function(y){return!y||(y==null?0:y.error)?(y=V.get("data.serializedTransactionFlowLoggingParams",W),_.eM(new Sz("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
y))):{data:y}}).then(function(y){return V.handleCompleteTransactionSuccess_(y,W)},function(){return V.handleCompleteTransactionFailure_(W)}):f.requestDataForServiceEndpoint(r,l).then(function(y){return V.handleCompleteTransactionSuccess_(y,W)},function(){return V.handleCompleteTransactionFailure_(W)})},
handleCompleteTransactionSuccess_:function(W,l){W.data||(W={data:W});if(W.data.messageRenderer)return _.eM(new GZs(W.data.messageRenderer));if(W.data.trackingParams){var V=_.Wh(),f=_.$G();V&&f&&_.L0(V,f,_.zG(W.data.trackingParams))}l=this.get("data.serializedTransactionFlowLoggingParams",l);lJZ(l);return _.jy(W)},
handleCompleteTransactionFailure_:function(W){W=this.get("data.serializedTransactionFlowLoggingParams",W);_.cV("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",W);return _.eM(new Sz("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",W))},
ypcCompleteTransactionHandler:function(W,l){var V=this;if(!l.ypcCompleteTransactionEndpoint)return!1;if(!l.ypcCompleteTransactionEndpoint.transactionParams)return _.OJ(Error("Nl")),!0;l.ypcCompleteTransactionEndpoint&&l.ypcCompleteTransactionEndpoint.gtmData&&_.y5(l.ypcCompleteTransactionEndpoint.gtmData);var f=_.tY().resolve(_.R0(_.lm));if(f){_.$1(this.hostElement);var r=_.ty.instance;r&&_.s_(r,l)?_.Lv(r,l).then(function(R){return!R||(R==null?0:R.error)?(R=V.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
l),_.eM(new Sz("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",R))):{data:R}}).then(function(R){_.FN(W,"yt-service-request-completed");
V.ypcCompleteTransactionSuccess_(l,R)},function(){return V.ypcCompleteTransactionFailure_(l)}):f.requestDataForServiceEndpoint(l).then(function(R){_.FN(W,"yt-service-request-completed");
V.ypcCompleteTransactionSuccess_(l,R)},function(){return V.ypcCompleteTransactionFailure_(l)})}return!0},
ypcCompleteTransactionSuccess_:function(W,l){_.W0(this.hostElement);l.data||(l={data:l});_.Gt(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);l.data.messageRenderer||l.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(W):(_.y5('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",W));l.data.actions&&(W=nhY(l.data.actions),l=Cp4(l.data.actions),W.length&&_.pN(this.hostElement,
W),l.length&&_.og(this.hostElement,l,this.hostElement))},
ypcCompleteTransactionFailure_:function(W){_.W0(this.hostElement);_.Gt(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",W,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(W,l,V){if(l=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",l))l={serializedTransactionFlowLoggingParams:l},V&&(l.errorType=V),_.XC(W,l),_.Ts()}}];var p64={};p64.YtEndpointHandlerWithYpcBehavior=[_.qAe,_.hp.YtActionHandlerBehavior,[{openWalletDialog:function(W,l,V,f,r,R,y){var P=this,n=_.yH();l=l.replace(/-/g,"+").replace(/_/g,"/");var B=_.MT().get("hl");_.DhF(_.nt(_.BV),l,n.resolve,r,function(d){R&&R();n.reject(d)},B,function(d){return P.onServerBackendAnalyticEvent_(W,V,d)},this.onDialogClose_.bind(this),f,y);
return n.promise},
openFixFlowDialog:function(W,l,V,f){W=W.replace(/-/g,"+").replace(/_/g,"/");_.nt(_.BV).openFixFlowDialog(W,l,V,f)},
onDialogClose_:function(){_.Gt(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(W,l,V){_.FN(W,"yt-commerce-action-init-done");l&&_.pN(this.hostElement,[l,{backend_analytics:V}])}}],
_.eX.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(W,l){W=this.get("data.nativeFlowEndpoint",l);l=this.get("data.fallbackEndpoint",l);W?_.pN(this.hostElement,[W]):l&&_.FN(this.hostElement,"yt-navigate",{endpoint:l})}}],
FD1.YtCancelRecurrenceBehavior,bgH.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 W=this;Tl1(this,function(l,V,f){return W.handleYPCEndpoint(l,V,f)});
this.ypcRegisterActionMapJobId_=_.pS(_.w8,function(){W.registerActionMap(W.buyFlowActionMap_)})},
detached:function(){var W=this;_.w8.cancelJob(this.ypcRegisterActionMapJobId_);_.pS(_.w8,function(){W.unregisterActionMap(W.buyFlowActionMap_)})},
handleYPCEndpoint:function(W,l,V){var f=l.ypcGetCartEndpoint;if(f){_.$u("commerce_transaction");var r=f.gtmId;r&&_.LA(r);(f=f.gtmData)&&_.y5(f)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",l)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(W,l),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",l)!=null?(this.handleYPCFixInstrumentEndpoint_(W,l),!0):l.ypcPauseSubscriptionCommand?(bvL(this.hostElement,W,l,V),
!0):l.ypcResumeSubscriptionCommand?(j$s(this.hostElement,W,l),!0):l.getPaymentInstrumentsParamsCommand?(K$L(this.hostElement,W,l),!0):l.ypcHandleTransactionEndpoint?(vw4(this.hostElement,W,l,V),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(W,l){var V=this;_.Wy("ttcr",void 0,"commerce_transaction");l=l.ypcGetCartEndpoint;var f=l.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,r=f.encryptedPurchaseParams,R=f.serializedTransactionFlowLoggingParams,y=f.serializedPaymentsClientParams,P=this.createGetCartResponseFromParams_(f,l.offerParams,R);this.changeButtonState(W,!0);_.xS(this.openWalletDialog(W,r,f.ypcLogWalletAnalyticDataEndpoint,R,function(){V.changeButtonState(W,!1)},function(){V.changeButtonState(W,
!1)},y).then(function(n){return V.handleBuyFlowCompleteCallback_(W,P,n)},function(){return V.handleOnLoadError(P)}).then(function(n){return void V.handlePostPurchaseSuccess_(W,P,n)},function(n){return void V.handlePostPurchaseError_(n)}),function(){V.changeButtonState(W,!1);
W instanceof Element&&_.FN(W,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(W,l,V){var f=W.completeTransactionEndpoint,r=W.handleTransactionEndpoint;l={data:{offerParams:window.btoa(l),serializedTransactionFlowLoggingParams:V}};r?l.data.handleTransactionEndpoint=r:l.data.completeTransactionEndpoint=f;W.onCartDismissCommand&&(l.data.onCartDismissCommand=W.onCartDismissCommand);return l},
onGetCartServiceRequestCompleted_:function(W,l){var V=this,f=W.target;if(l&&l.data&&l.data.messageRenderer)_.W0(this.hostElement),this.handleMessageRenderer_(l.data.messageRenderer),this.changeButtonState(f,!1);else{var r=this.get("data.encryptedPurchaseParams",l),R=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",l),y=this.get("data.ypcLogWalletAnalyticDataEndpoint",l),P=this.get("data.serializedPaymentsClientParams",l),n=this.getLoggingParams_(l);if(n||r||R)W.stopPropagation(),_.Wy("ttcr",
void 0,"commerce_transaction"),r||_.W0(this.hostElement),this.changeButtonState(f,!1),R?_.Gt(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.M4("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:R}}},this]):r&&(this.changeButtonState(f,!0),W=null,W=this.openWalletDialog(f,r,y,n,function(){_.W0(V.hostElement);V.changeButtonState(f,!1)},function(){_.W0(V.hostElement);
V.changeButtonState(f,!1)},P),_.xS(W.then(function(B){return V.handleBuyFlowCompleteCallback_(f,l,B)},function(){return V.handleOnLoadError(l)}).then(function(B){return V.handlePostPurchaseSuccess_(f,l,B)},function(B){return V.handlePostPurchaseError_(B)}),function(){V.changeButtonState(f,!1);
_.FN(f,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(W,l){l&&l.endpoint&&l.endpoint.ypcGetCartEndpoint&&!l.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",l.endpoint.ypcGetCartEndpoint)&&_.og(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",l.endpoint.ypcGetCartEndpoint)],W.target),_.$1(this.hostElement),this.changeButtonState(W.target,!0))},
onServiceRequestError_:function(W,l){if(l&&l.params&&l.params.length){l=_.L(l.params);for(var V=l.next();!V.done;V=l.next())if((V=V.value)&&V.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",V.ypcGetCartEndpoint)&&_.og(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",V.ypcGetCartEndpoint)],W.target);_.W0(this.hostElement);this.changeButtonState(W.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(W,l,V){var f=V.integratorData;return f==null||f===""||V.error!=null?(f=this.getLoggingParams_(l),String(V.error)==="-1"?(l.data.onCartDismissCommand&&_.og(this.hostElement,[l.data.onCartDismissCommand],W),_.eM(new Sz("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",f,!0))):_.eM(new Sz("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",f))):l.data.handleTransactionEndpoint?Hvc(this.hostElement,l.data.handleTransactionEndpoint,{payments_payload:f,funds_guarantee_callback_client_data:V.integratorClientCallbackData}):
this.completeTransaction(l,V)},
handlePostPurchaseSuccess_:function(W,l,V){l=V.data;var f=!1,r,R;if(l&&((r=l.command)==null?0:(R=r.commandExecutorCommand)==null?0:R.commands)){var y,P;r=(y=l.command)==null?void 0:(P=y.commandExecutorCommand)==null?void 0:P.commands;for(y=0;y<r.length;y++)if(_.k(r[y],_.oIB)){f=!0;break}}f||(l&&l.gtmDatas&&l.gtmDatas.length?_.y5(l.gtmDatas[0]):_.y5('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));V.data&&V.data.actions&&(l=nhY(V.data.actions),V=Cp4(V.data.actions),l.length&&
_.pN(this.hostElement,l),V.length&&_.og(this.hostElement,V,W))},
handlePostPurchaseError_:function(W){W&&W.payload&&W.payload.isUserDismiss||_.wv(Error("Pl"))},
handleOnLoadError:function(W){W=this.getLoggingParams_(W);return _.eM(new Sz("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",W))},
getLoggingParams_:function(W){return this.get("data.serializedTransactionFlowLoggingParams",W)},
handleMessageRenderer_:function(W){var l=_.T3(W,"renderer"),V=_.M4("openPopupConfig");l==="confirmDialogRenderer"&&V&&_.Gt(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:V.popupTypeMap[l],popup:W}},this])},
handleYPCFixInstrumentEndpoint_:function(W,l){var V=this,f=l.ypcFixInstrumentEndpoint;l=f.encryptedFixInstrumentParameters;this.logFixFopEvent_(f,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(W,!0);this.openFixFlowDialog(l,function(r,R){V.onFixFlowCompleteCallback_(f,r,R)},function(){return V.changeButtonState(W,!1)},function(){V.changeButtonState(W,!1);
V.logFixFopEvent_(f,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(W,l,V){var f=_.Y2("payments.business.integration.scenario.FixInstrument");if(l==f.IntegratorCallbackType.ON_COMPLETE){l="FIX_FOP_EVENT_TYPE_CANCEL";var r=null;V.error!=null?V.error!=f.OnCompleteCallbackError.USER_CANCELLED&&(_.og(this.hostElement,[W.errorAction],this.hostElement),l="FIX_FOP_EVENT_TYPE_FAILURE",r="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.og(this.hostElement,[W.successAction],this.hostElement),l="FIX_FOP_EVENT_TYPE_SUCCESS");_.og(this.hostElement,[W.onFinishAction],
this.hostElement);this.logFixFopEvent_(W,l,r)}},
logFixFopEvent_:function(W,l,V){(W=W.serializedFixFopLoggingParams)?(l={eventType:l,serializedFixFopLoggingParams:W},V!=null&&(l.errorType=V),_.XC("fixFopFlow",l),_.Ts()):_.wv(Error("Ql"))},
changeButtonState:function(W,l){_.U("enable_ypc_spinners")&&W&&(W.is==="yt-button-renderer"||W.is==="ytd-button-renderer")&&(W.disabled=l)}}];var obs=function(W){this.JSC$32338_clientRoot=W;this.feedbackCollectorActionMap={"yt-help-dialog-requested":ivc,"yt-feedback-dialog-requested":Iy5,"yt-signal-action-help":mB1,"yt-signal-action-send-feedback":Xpw,"yt-send-feedback-action":wpc,"yt-user-feedback-endpoint":Aye};_.qJ(_.eC.getInstance(),this.feedbackCollectorActionMap,this.JSC$32338_clientRoot)},jy1;var IDw=function(W){this.JSC$32343_clientRoot=W;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":Q$Z.bind(null,this.JSC$32343_clientRoot),"yt-signal-action-delete-all-downloads":Zvw,"yt-signal-action-delete-download":OvL,"yt-signal-action-delete-playlist-download":zPY,"yt-signal-action-install-pwa":hPL,"yt-signal-action-refresh-downloads":ePH,"yt-offline-video-endpoint":Ew1,"yt-offline-playlist-endpoint":W25,"yt-update-local-app-setting-command":V$L,"yt-offline-orchestration-action-command":r$s,
"yt-signal-action-undo-delete-download":Y_7,"yt-local-watch-history-command":spY};_.qJ(_.eC.getInstance(),this.downloadManagerActionMap,this.JSC$32343_clientRoot);_.Em.instance=new _.Em},ig2;var Dt=function(){var W=_.I.apply(this,arguments)||this;W.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_"};W.remoteApi_=null;return W};
_.v(Dt,_.I);_.t=Dt.prototype;
_.t.ready=function(){_.U("polymer_enable_mdx")&&(Z9N({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.U("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.U("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.U("enable_cast_short_lived_lounge_token")}),_.nS("yt-remote-connection-change",this.handleConnectionChange_,this),_.nS("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=eB2())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.t.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.t.handleConnectionChange_=function(W){(this.mdxConnected=W)?(W=zB2(),!W&&SUw()&&EJ4()&&(W={key:"cast-selector-receiver",name:EJ4()}),W=W.name):W=null;this.receiverName=W;_.Ls(this.remoteApi_);(this.remoteApi_=eB2())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.t.handleReceiverAvailabilityChange_=function(){var W=aBN();SUw()&&_.YC("yt-remote-cast-available")&&W.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=W.length>0};
_.t.handleRemoteQueueChange_=function(){var W=this.currentVideoId_,l=this.currentListId_,V=lV(this.remoteApi_);this.currentVideoId_=V.videoId;this.currentListId_=V.listId;this.currentVideoId_&&_.Gt(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.U("polymer_enable_mdx_queue")?this.currentListId_:null,W,l])};
_.t.handleAddToQueueAction_=function(W){W=_.k(W,kDH);this.remoteApi_&&(W.videoId?this.remoteApi_.addVideo(W.videoId):W.playlistId&&this.remoteApi_.addPlaylist(W.playlistId))};
_.t.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.t.handleInsertInQueueAction_=function(W){W=_.k(W,vI1);this.remoteApi_&&W.videoId&&this.remoteApi_.JSC$19806_insertVideo(W.videoId)};
_.t.handleRemoveFromQueueAction_=function(W){W=_.k(W,Hfs);this.remoteApi_&&W.videoId&&this.remoteApi_.JSC$19806_removeVideo(W.videoId)};
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Dt.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b(),_.z("design:type",Object)],Dt.prototype,"appId",void 0);_.a([_.b(),_.z("design:type",Boolean)],Dt.prototype,"mdxConnected",void 0);_.a([_.b(),_.z("design:type",Boolean)],Dt.prototype,"receiverAvailable",void 0);_.a([_.b(),_.z("design:type",Object)],Dt.prototype,"receiverName",void 0);_.a([_.b(),_.z("design:type",Object)],Dt.prototype,"currentVideoId_",void 0);
_.a([_.b(),_.z("design:type",Object)],Dt.prototype,"currentListId_",void 0);_.a([_.Vq({is:"yt-mdx-manager",disableElementRegistration:!0})],Dt);_.Z(Dt,"yt-mdx-manager",void 0,{mode:2});var mE5;var X64;var Uo=function(){var W=_.I.apply(this,arguments)||this;W.APP_IDS={ytr:3,ytm:5};W.JSC$21013_timeoutId_=0;W.actionMap={"yt-open-create-family-dialog":"open"};return W};
_.v(Uo,_.I);_.t=Uo.prototype;_.t.created=function(){$r4(2200)};
_.t.detached=function(){this.observer_&&this.observer_.disconnect()};
_.t.open=function(W,l){var V=this,f=W.serializedYpcFamilyCreateLoggingParams;this.JSC$21013_timeoutId_=setTimeout(this.abort_.bind(this,W.postFlowErrorEndpoint,f),3E4);l&&(this.onReadyCallback_=l);var r=_.GS(this.hostElement).querySelector("#unicorn-iframe");f&&f&&$dZ("ypcFamilyCreateFlowStarted",f);_.n6n("family_creation",function(){var R=_.Y2("gapi.family_creation.render");_.Y2("gapi.config.update")("iframes/family_creation/url",V.getFamilyCreationUrlWithUnicornParams_());var y=3;W.appId&&W.appId in
V.APP_IDS&&(y=V.APP_IDS[W.appId]);y={authUser:_.M4("SESSION_INDEX")||0,clientId:y,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.M4("HL"),initialflow:[4,5,6,7],m:V.isMobile?1:0,onFlowComplete:V.onUnicornFlowComplete_.bind(V,W.postFlowSuccessEndpoint,f),onError:V.onUnicornFlowError_.bind(V,W.postFlowErrorEndpoint,f),onReady:V.onUnicornFlowReady_.bind(V,W.referencePcidParams)};R(r,y)})};
_.t.close=function(){_.GS(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.t.onUnicornFlowComplete_=function(W,l){this.close();l&&l&&$dZ("ypcFamilyCreateFlowSucceeded",l);_.FN(this.hostElement,"yt-navigate",{endpoint:W})};
_.t.onUnicornFlowError_=function(W,l){this.close();l&&$dZ("ypcFamilyCreateFlowCancelled",l);_.FN(this.hostElement,"yt-navigate",{endpoint:W})};
_.t.onUnicornFlowReady_=function(W){var l=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();W&&_.Y2("gapi.family_creation.setConfig")(0,W);this.observer_=new MutationObserver(function(){_.GS(l.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.GS(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.GS(this.hostElement).querySelector("#dialog").open()};
_.t.getFamilyCreationUrlWithUnicornParams_=function(){return _.M4("YTR_FAMILY_CREATION_URL")};
_.t.getCurrentUrl_=function(){return document.location.href};
_.t.abort_=function(W,l){this.clearTimeout_();this.onUnicornFlowError_(W,l)};
_.t.clearTimeout_=function(){clearTimeout(this.JSC$21013_timeoutId_)};
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],Uo.prototype,"ytActionHandlerBehavior",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],Uo.prototype,"isMobile",void 0);_.a([_.b(),_.z("design:type",Object)],Uo.prototype,"onReadyCallback_",void 0);_.a([_.b(),_.z("design:type",Object)],Uo.prototype,"observer_",void 0);_.a([_.Vq({is:"yt-create-family-dialog",disableElementRegistration:!0})],Uo);
_.Z(Uo,"yt-create-family-dialog",function(){if(X64===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);var l=W.content,V=l.insertBefore;mE5===void 0&&(mE5=document.createElement("template"));var f=mE5;V.call(l,f.content.cloneNode(!0),W.content.firstChild);X64=W}W=X64;return W},{mode:2});var TX4;var w62;var uo=function(){var W=_.I.apply(this,arguments)||this;W.STEP=1;W.BLOCK_ON=80;W.MIN_PROGESS=0;W.MAX_PROGESS=100;return W};
_.v(uo,_.I);_.t=uo.prototype;_.t.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.t.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));_.tY().addProvider({provide:H_Y,useValue:this})};
_.t.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.t.finish=function(){var W=this;this.progress=this.MAX_PROGESS;L24(function(){W.progress==W.MAX_PROGESS&&(W.hostElement.hidden=!0)})};
_.t.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.rc.Object.defineProperties(uo.prototype,{progress:{configurable:!0,enumerable:!0,set:function(W){this.progress_=W;var l="scaleX("+W/this.MAX_PROGESS+")",V=_.GS(this.hostElement).querySelector("#progress").style;V.transform=l;V.webkitTransform=l;this.hostElement.setAttribute("aria-valuenow",String(W))},
get:function(){return this.progress_}}});
_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],uo.prototype,"ytComponentBehavior",void 0);_.a([_.Vq({is:"yt-page-navigation-progress",disableElementRegistration:!0})],uo);
_.Z(uo,"yt-page-navigation-progress",function(){if(w62===void 0){var W=document.createElement("template");_.K(W,'\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');W.content.insertBefore(_.e().content.cloneNode(!0),
W.content.firstChild);var l=W.content,V=l.insertBefore;TX4===void 0&&(TX4=document.createElement("template"));var f=TX4;V.call(l,f.content.cloneNode(!0),W.content.firstChild);w62=W}W=w62;return W},{mode:2});var AXs={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"},QyY={"font-size":"12px","font-style":"italic"},M5H={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.n1e=function(){return _.g(function(W){_.ju(W)})};var Zg4=_.Q(function(W){var l=function(){return W.data().subtext},V={};
return _.C("snackbar-view-model",{class:_.If("snackbarViewModelHost",W.className)},_.C("div",{class:_.If("snackbarViewModelEngagementBarWrapper",W.className)},_.C(_.c,{cond:function(){return W.data().image},
then:function(f){return _.C(_.dN,{data:f,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.C(_.c,{cond:function(){return W.data().imageContent},
then:function(){return _.C("div",{class:"snackbarViewModelAvatarContainer"},_.C(_.QH,{data:function(){return W.data().imageContent}},{decoratedAvatarViewModel:_.Px}))}}),_.C("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.C("div",{class:_.If((V.snackbarViewModelTitle=!0,V.snackbarViewModelTitleWithSubtext=l,V))},_.C(_.bH,{text:function(){return W.data().text}})),_.C(_.c,{cond:l,
then:function(){return _.C("div",{class:"snackbarViewModelSubtext"},_.C(_.bH,{text:function(){return l()}}))}})),_.C(_.c,{cond:function(){return W.data().buttons},
then:function(){return _.C("div",{class:"snackbarViewModelButtonClassWrapper"},_.C(_.QH,{data:function(){return W.data().buttons}},{buttonViewModel:function(f){return _.C(_.Nq,{data:f.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:W.target})}}))}})))},"li");_.HI(_.Q(function(){function W(O,S,N){H(O);X(N);D("in");d(!0);l(O,S);y=setTimeout(function(){V()},S)}
function l(O,S){var N,x=(N=O.text)==null?void 0:N.content;O=_.qB(O.rendererContext);x&&(S={label:x,command:O,durationMs:S},_.tY().resolve(_.Rq).enqueue(S))}
function V(O){D("out");O&&clearTimeout(y)}
function f(){V(!0)}
function r(O){if(O){var S=O.snackbarViewModel,N=O.durationMs,x=O.target;N||(N=3E3);S&&(O=_.tY().resolve(_.R0(_.WN)))&&O.enqueue({isOpened:B,open:function(){W(S,N,x)},
close:V},0)}}
var R=_.lN("snackbar-container"),y=void 0,P=_.L(_.J4(!1,void 0,"mDc5N")),n=P.next().value;P=P.next().value;var B=n,d=P;n=_.L(_.J4("out",void 0,"FpOs5e"));var J=n.next().value,D=n.next().value;n=_.L(_.J4(void 0,void 0,"jIDRob"));var u=n.next().value,H=n.next().value;n=_.L(_.J4(void 0,void 0,"kOA3Mb"));var p=n.next().value,X=n.next().value,w=_.ip(function(){if(J()==="out"){d(!1);H(void 0);X(void 0);var O=_.tY().resolve(_.R0(_.WN));O&&PKZ(O,0)}});
_.mw(function(){var O=_.tY().resolve(_.R0(_.x1Y));O&&(O.showSnackbarFn=r,O.closeSnackbarFn=f)});
return _.C("snackbar-container",{class:"ytSnackbarContainerHost",el:R},_.C(_.c,{cond:function(){return B()&&!!u()},
then:function(){var O={};return _.C("div",{class:_.If("ytSnackbarContainerSnackbarContainer",(O.ytSnackbarContainerMobile=!1,O.ytSnackbarContainerPivotBar=function(){var S;return!((S=_.tY().resolve(_.R0(_.eI2)))==null||!S())},O.ytSnackbarContainerOpened=function(){return B()&&J()==="in"},O.ytSnackbarContainerClosed=function(){return B()&&J()==="out"},O)),
"on:animationend":w},_.C(Zg4,{data:function(){return u()},
target:function(){return p()}}))}}))},"mi"),"snackbar-container");_.HI(_.qaL,"yt-tooltip");var OgZ=_.P75.ephemeralActionSelector;_.HI(_.Q(function(){var W=_.$h(OgZ);return _.C("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var l;return(l=W())==null?void 0:l.announcement})},"ni"),"yt-ephemeral-actions");var jp1=new Map;var iNs=function(W,l){var V=this;this.handleError=W;this.logEventInternal=l;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){V.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
iNs.prototype.logError=function(W){this.handleError(W)};
iNs.prototype.logEvent=function(W,l){switch(W){case "IDB_DATA_CORRUPTED":_.U("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",l);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",l);break;case "IS_SUPPORTED_COMPLETED":_.U("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",l);break;case "QUOTA_EXCEEDED":aDY(this,l);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",l);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":W=Object.assign({},l,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",W)}};
var aDY=function(W,l){_.sW.getInstance().estimate().then(function(V){V=Object.assign({},l,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:ihw(V==null?void 0:V.usage),deviceStorageQuotaMbytes:ihw(V==null?void 0:V.quota)});W.logEventInternal("idbQuotaExceeded",V)})};var z0H=_.Q(function(W){var l=_.WS("yt-draggable"),V=W.onDrag,f=W.onDragStart,r=W.onDragEnd,R=_.Dd(W,{allowClicks:!1,dragThreshold:5}),y=R.dragThreshold,P=R.allowClicks;W=R.children;R=R.className;var n=void 0,B=void 0,d=new _.O1(0,0),J=!1;_.mw(function(){n=new _.rA(l.value);B=new _.sC(u);D(n,B);if(P()){_.Yw1(n,y());var p;(p=l.value)==null||p.addEventListener("click",H,{capture:!0})}_.Xc(function(){var X;(X=n)==null||X.dispose();if(P()){var w;(w=l.value)==null||w.removeEventListener("click",H,{capture:!0})}})});
var D=function(p,X){_.YJ(p,"earlycancel",function(){P()&&(J=!1)});
_.YJ(p,"start",function(w){f==null||f(w);w.defaultPrevented||P()&&(J=!0)});
_.YJ(p,"beforedrag",function(w){n&&B&&(w.preventDefault(),d=new _.O1(w.clientX-n.startX,w.clientY-n.startY),B.start())});
_.YJ(p,"end",function(){X.stop();r==null||r();d=new _.O1(0,0)})},u=function(){d&&V(d)},H=function(p){J&&(J=!1,p.stopPropagation(),p.preventDefault())};
return _.C("yt-draggable",{el:l,class:_.If("ytDraggableComponentHost",R)},W)},"oi");var NXw=_.Q(function(W){var l=_.L(_.J4(0,void 0,"Qf0tbc")),V=l.next().value,f=l.next().value;l=function(r){var R={},y={};return _.C(z0H,{className:_.If("ytdMiniplayerComponentResizer",(R.ytdMiniplayerComponentResizerDisabled=function(){return r===W.horizontalAlignment()||r===W.verticalAlignment()},R.ytdMiniplayerComponentResizerNorth=r==="north",R.ytdMiniplayerComponentResizerEast=r==="east",R.ytdMiniplayerComponentResizerSouth=r==="south",R.ytdMiniplayerComponentResizerWest=r==="west",R)),
onDragStart:function(){f(W.currentMiniplayerSize());if(W.onResizeStart)W.onResizeStart()},
onDrag:function(P){r!=="north"&&r!=="west"||P.scale(-1);var n;P=(n=r==="north"||r==="south")?P.y:P.x;var B=W.currentAspectRatio();n&&B>=1?P*=B:!n&&B<1&&(P/=B);n=P;W.onResize(V()+n)}},_.C("div",{class:_.If("ytdMiniplayerComponentResizerCorner",(y.ytdMiniplayerComponentResizerNorthCorner=r==="north",y.ytdMiniplayerComponentResizerEastCorner=r==="east",y.ytdMiniplayerComponentResizerSouthCorner=r==="south",y.ytdMiniplayerComponentResizerWestCorner=r==="west",y))}))};
return _.C("div",{class:"ytdMiniplayerComponentResizers"},l("north"),l("east"),l("south"),l("west"))},"pi");var YAc=16/9;_.HI(_.Q(function(){var W=_.WS("ytd-miniplayer"),l=_.L(_.J4(new _.p5(NaN,NaN),void 0,"GhwGi")),V=l.next().value,f=l.next().value;l=_.L(_.J4(!1,void 0,"YCGMub"));var r=l.next().value,R=l.next().value;l=_.L(_.J4(!1,void 0,"tMABIb"));var y=l.next().value,P=l.next().value;l=_.L(_.J4(!1,void 0,"XAbRxc"));var n=l.next().value,B=l.next().value;l=_.L(_.J4(!1,void 0,"qcycIb"));var d=l.next().value,J=l.next().value;l=_.L(_.J4(!1,void 0,"HJauAf"));var D=l.next().value,u=l.next().value;l=_.L(_.J4(!1,void 0,"P0Rfsf"));
var H=l.next().value,p=l.next().value;l=_.L(_.J4(YAc,void 0,"mfCCDe"));var X=l.next().value,w=l.next().value,O=_.L(_.J4(!1,void 0,"QfcC7b"));l=O.next().value;var S=O.next().value;O=_.L(_.J4(!1,void 0,"armgtc"));var N=O.next().value,x=O.next().value;O=_.L(_.J4(void 0,void 0,"yK0pGf"));var Y=O.next().value,W8=O.next().value;O=_.L(_.J4(_.M4("HTML_DIR")==="rtl"?"west":"east",void 0,"GHCzub"));var c8=O.next().value,B8=O.next().value;O=_.L(_.J4("south",void 0,"aWTWh"));var Jx=O.next().value,H8=O.next().value;
O=_.L(_.J4(400,void 0,"IY6bpb"));var Kq=O.next().value,Z4=O.next().value,Ax=_.tY().resolve(_.Sl).miniplayerPropSignalMap[0],sM=Ax.data,Ta=Ax.externalPlaylistData;O=Ax.toastData;var ck=Ax.playabilityStatus,Wk=Ax.isReadyToResume,D$=Ax.isDisabled,Bk=Ax.watchWhile,iB=Ax.playerVe,p2=Ax.expandVe,SL=Ax.closeVe,RY=Ax.readyToResumeVe,lB=Ax.readyToResumeCloseVe,kc=Ax.repositionVe,n2=Ax.resizeVe;Ax=_.L(_.X3(Wk));var vk=Ax.next().value,VL=Ax.next().value,Lc=!1,ls=!1,Pk;_.mw(function(){f(_.zL());W.value.addEventListener("animationend",
function(aX){aX.target===W.value&&(u(!1),p(!1))});
QpY(W.value)});
_.$_("yt-window-resized",function(aX){aX&&f(aX)});
var q1=function(){Pk&&w(Pk.getVideoAspectRatio())},Dc=function(){if(Pk){var aX=Pk.getPlayerState()===1;
vk()&&aX&&VL(!1)}},pe=function(){var aX=p2();
if(aX){var A1=_.Wh(3);A1&&_.C0(A1,aX)}},oX=function(){var aX=SL(),A1=lB();
aX&&_.C0(_.Wh(3),aX);Wk()&&A1&&_.C0(_.Wh(3),A1)};
_.$_("yt-activate-miniplayer",function(aX){var A1;return _.g(function(xZ){if(xZ.nextAddress==1)return r()?xZ.return():xZ.yield((A1=_.tY().resolve(_.Sl).getPlayerElement())==null?void 0:A1.getPlayerPromise(),2);Pk=xZ.yieldResult;if(!Pk)return xZ.return();!N()&&_.U("kevlar_watch_while_v2")&&(H8(aX&&!_.U("kevlar_watch_while_bottom_align")?"north":"south"),B8(_.M4("HTML_DIR")==="rtl"?"west":"east"));var $Z=Pk;$Z.addEventListener("onVideoDataChange",q1);$Z.addEventListener("onStateChange",Dc);$Z.addEventListener("onExpandMiniplayer",
pe);$Z.addEventListener("onCloseMiniplayer",oX);w(Pk.getVideoAspectRatio());R(!0);A$H()||u(!0);_.ju(xZ)})});
_.$_("yt-deactivate-miniplayer",function(aX){return _.g(function(A1){if(!r())return A1.return();R(!1);VL(!1);p(aX);J(!1);P(!1);if(Pk){var xZ=Pk;xZ.removeEventListener("onVideoDataChange",q1);xZ.removeEventListener("onStateChange",Dc);xZ.removeEventListener("onExpandMiniplayer",pe);xZ.removeEventListener("onCloseMiniplayer",oX)}A$H()||u(!0);_.ju(A1)})});
var ve=function(){return!(Bk()&&_.U("kevlar_watch_while_modern"))},dI=function(){var aX;
return!((aX=Ta())==null||!aX.contents)},J1=function(){var aX=Kq();
var A1=V();A1=Math.min(Math.min(A1.width,A1.height)-32,720);var xZ=X(),$Z=ve(),ai=dI()&&y(),F4=Math.min(aX,A1);aX=new _.p5(192,$Z?116:192);xZ=new _.p5(ai?YAc:xZ,1);F4=new _.p5(F4,$Z?F4-76:F4);F4=xZ.aspectRatio()>F4.aspectRatio()?F4.width/xZ.width:F4.height/xZ.height;xZ=xZ.scale(F4);aX.width<=xZ.width&&aX.height<=xZ.height||(aX=xZ.aspectRatio()<=aX.aspectRatio()?aX.width/xZ.width:aX.height/xZ.height,xZ.scale(aX),xZ.width=Math.min(xZ.width,A1),xZ.height=Math.min(xZ.height,A1));return new _.p5(xZ.width,
_.xP(192,xZ.height+aps($Z,ai),720))},ih=function(){var aX=J1(),A1=ve(),xZ=dI()&&y();
return new _.p5(aX.width,aX.height-aps(A1,xZ))},jn=function(){var aX=function(A1){A1.target===W.value&&d()&&(J(!1),W.value.removeEventListener("transitionend",aX))};
A$H()||(W.value.addEventListener("transitionend",aX),J(!0));P(!y())};
_.m1(function(){var aX=iB(),A1=_.Wh(3),xZ=_.$G(3);if(A1&&xZ&&aX){_.L0(A1,xZ,aX);xZ=kc();var $Z=n2(),ai=p2(),F4=SL(),fS=lB();ai&&F4&&fS&&(_.yE(A1,aX,[ai,F4,fS]),_.Py(A1,[ai,F4]));xZ&&$Z&&_.yE(A1,aX,[xZ,$Z])}},"DuFzOc");
_.m1(function(){var aX=RY();if(aX){var A1=_.Wh(0),xZ=_.$G(0);A1&&xZ&&(_.L0(A1,xZ,aX),_.Py(A1,[aX]))}},"vwRnmc");
Ax={};return _.C("ytd-miniplayer",{el:W,class:_.If("ytdMiniplayerComponentHost",(Ax.ytdMiniplayerComponentVisible=function(){return r()||D()},Ax.ytdMiniplayerComponentAnimatingSnap=n,Ax.ytdMiniplayerComponentAnimatingPlaylistExpand=d,Ax.ytdMiniplayerComponentAnimatingFade=D,Ax),function(){if(D()){var aX=Jx();
var A1=r(),xZ=H();aX=A1?aX==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":xZ?aX==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":aX==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else aX="";return aX}),
style:_.Tm({top:function(){return Jx()==="north"?"16px":""},
right:function(){return c8()==="east"?"16px":""},
bottom:function(){return Jx()==="south"?"16px":""},
left:function(){return c8()==="west"?"16px":""},
width:function(){return J1().width+"px"},
height:function(){return J1().height+"px"},
transform:function(){var aX=Y();return aX?"translate("+aX.x+"px, "+aX.y+"px)":""}})},_.C("div",{class:"ytdMiniplayerComponentContent"},_.C(z0H,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(aX){var A1=Oh7(c8(),Jx(),V(),J1(),Y()),xZ=ih();Math.abs(aX.clientY-(A1.y+xZ.height))>15?(S(!0),aX=_.Wh(3),A1=kc(),Lc||(Lc=!0,aX&&A1&&_.Py(aX,[A1])),aX&&A1&&_.C0(aX,A1)):aX.preventDefault()},
onDrag:function(aX){W8(aX)},
onDragEnd:function(){var aX=M$e(Oh7(c8(),Jx(),V(),J1(),Y()),V(),J1()),A1=Zh2(c8(),Jx(),V(),J1()),xZ=Zh2(aX.horizontalAlignment,aX.verticalAlignment,V(),J1());xZ=new _.O1(xZ.x-A1.x,xZ.y-A1.y);var $Z;A1=A1.y+((($Z=Y())==null?void 0:$Z.y)||0)+J1().height/2;var ai=function(){c8()===aX.horizontalAlignment&&Jx()===aX.verticalAlignment||x(!0);B8(aX.horizontalAlignment);H8(aX.verticalAlignment);W8(void 0)},F4=function(fS){fS.target===W.value&&n()&&(B(!1),ai(),W.value.removeEventListener("transitionend",F4))};
S(!1);Jx()==="south"&&A1>V().height?(ai(),_.tY().resolve(_.Sl).close()):(W.value.addEventListener("transitionend",F4),B(!0),W8(xZ))}},_.C(_.c,{cond:r,
then:function(){return _.C(_.UsN,{isDisabled:D$,playabilityStatus:ck,size:ih})}}),_.C(_.c,{cond:ve,
then:function(){return _.C(_.Jlw,{isReadyToResume:vk,data:sM,expanded:y,onExpandClick:jn,playlistData:Ta})}}),_.C(_.c,{cond:l,
then:function(){return _.C("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.C(_.c,{cond:function(){return dI()&&y()||d()},
then:function(){return _.C(_.f4Z,{className:"ytdMiniplayerComponentPlaylistPanel",data:Ta,hideHeaderText:!0,withinMiniplayer:!0})}}),_.C("div",{class:"ytdMiniplayerComponentToast"},_.C(_.u72,{toastData:O}))),_.C(NXw,{onResize:function(aX){Z4(_.xP(192,aX,720))},
onResizeStart:function(){var aX=_.Wh(3),A1=n2();ls||(ls=!0,aX&&A1&&_.Py(aX,[A1]));aX&&A1&&_.C0(aX,A1)},
currentAspectRatio:X,currentMiniplayerSize:Kq,horizontalAlignment:c8,verticalAlignment:Jx}))},"qi"),"ytd-miniplayer",{});var kT=function(){var W=_.I.apply(this,arguments)||this;W.tabGesturesIsActive=!1;W.deprecateFullerscreenUi=_.U("web_watch_fullerscreen_deprecation_ui");W.hasDelegation=!1;W.darkerDarkTheme=_.U("web_darker_dark_theme");W.isFrostedGlassInitialized=!1;W.frostedGlassExp=_.U("web_frosted_glass");W.mastheadHiddenFocusWithinKillswitch=_.U("web_masthead_hidden_focus_within_killswitch");W.clientOnlyWizTooltipsEnabled=_.U("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");W.scrollAtTop=
!0;W.guideScrollTop=0;W.isTheaterModeSession=_.ZL("START_IN_THEATER_MODE");W.iMaxTheaterMode=_.U("web_watch_imax_theater_mode");W.isFullWindowSession=_.ZL("START_IN_FULL_WINDOW_MODE");W.hasCreateFamilyDialog=!1;W.mastheadHeight=56;W.networkStatusManager=new _.qt;W.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"};W.dynamicActionMap={"yt-run-attestation-command":function(l){var V=_.a4L.instance,f=_.k(l,_.rS9);return f?_.U("use_rta_manager_for_async")&&
DTZ()?OtH(V,f,l.clickTrackingParams):Zte(V,f,l.clickTrackingParams):_.eM(Error("ri"))}};
W.isFrostedGlassDisabled=!1;W.isChannelOrPlaylistPage=!1;return W};
_.v(kT,_.I);_.t=kT.prototype;_.t.created=function(){var W=_.tY();_.U("kevlar_clear_duplicate_pref_cookie")&&_.pS(_.w8,function(){var l=_.vA.get("PREF");l&&!/f\d=/.test(l)&&(l=_.gU("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=l?"PREF=null;domain="+l+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.U("gzip_gel_with_worker")&&_.zov();_.U("jspb_serialize_with_worker")&&aYs();_.U("web_worker_availability_check")&&Ipw();_.U("nwl_init_killswitch")||ZNY().then(function(){_.w8.addLowPriorityJob(r2s)});
this.pageManagerAttachedPromise=_.yH();this.ytdAppBehavior.loadDepsPromise=_.YS([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.t$(this.onThrottledScroll,200,this);_.U("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);mTw();Cks=!!_.Y2("ytappsettings.initialized");sk=_.Y2("ytappsettings.previousValue");ddN=_.Y2("ytappsettings.previousSnapshotTime");Cks||(Cks=!0,JWH());ghe();Ppc();_.Qj("DEFERRED_DETACH",
_.U("kevlar_tuner_should_defer_detach"));_.Qj("REUSE_COMPONENTS",!0);_.Qj("STAMPER_STABLE_LIST",!0);_.Qj("SCHEDULED_LAZY_LIST",!0);_.Qj("openPopupConfig",QuL);_.Qj("useClickHandler",!0);_.U("kevlar_shell_cleanup")&&_.w8.addLowPriorityJob(KLe.bind(this,_.rS.caches));_.ZL("IS_SHELL_LOAD")&&_.Sy({shellStartupDurationMs:Math.round((0,_.tv)()-_.Yu())});dr4(this.networkStatusManager);_.U("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",y$L(AXs)),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!",
y$L(QyY)),console.log("%cVisit http://go/join-youtube-web to apply today.",y$L(M5H)));_.WyL(W.resolve(_.fm),1E3)};
_.t.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var W=$T1();W&&!_.U("external_fullscreen_killswitch")&&document.addEventListener(W,this.setFullscreen.bind(this));(W=window.matchMedia("(prefers-color-scheme: dark)"))&&W.addEventListener&&W.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.t.attached=function(){var W=this;_.DI().processSignal("ci");_.U("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.Jxa?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.v0(_.izj(),"SUCCESS");this.updateIconSet();_.Hh(this.guideInnerContent,!1);_.rY().initVisibilityObserver();this.guideService.guideElement=this.guide;var l=document.createElement("ytd-miniplayer"),V=_.GS(this.hostElement).querySelector("#content");
_.GS(this.hostElement).insertBefore(l,V);_.DI().processSignal("ma");_.tY().resolve(_.Sl).init(l);_.ZL("IS_SHELL_LOAD")&&(V=document.createElement("ytd-network-status-banner"),_.GS(this.hostElement).insertBefore(V,l));_.U("kevlar_right_click_on_lockups")&&_.CB._onCaptureClick&&document.addEventListener("contextmenu",_.CB._onCaptureClick.bind(_.CB),!0);var f=function(){var r=_.XE("yt-page-navigation-progress");_.GS(W.hostElement).appendChild(r)};
setTimeout(function(){_.DI().parkOrScheduleJob(f,0,"eocs",16)},0);
_.U("service_worker_push_enabled")&&_.pS(_.w8,EHw);_.qJ(_.eC.getInstance(),this.dynamicActionMap,this.hostElement);_.FN(this.hostElement,"ytd-app-attached");_.DI().processSignal("aa");BJ2(this.hostElement);_.fR("gapi.load",_.n6n);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.pS(_.w8,
function(){var r=document.createElement("ytd-video-preview");_.GS(_.GS(W.hostElement).querySelector("#video-preview")).appendChild(r)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.pS(_.w8,function(){CE4();W.registerWithViewTransitionManager()});
if(_.Sr()&&this.isAppDarkTheme()!==_.q$())this.onDarkModeToggledAction();else l=_.h5()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==l&&(_.U("enable_dark_theme_only_on_shorts")?_.PV(_.U("enable_dark_theme_only_on_shorts_control")?window.location.href:_.EJ(window.location.href,{theme:"dark"})):_.Qe(new _.bP("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(aOc=new O_7(this.hostElement)),ig2=new IDw(this.hostElement),jy1=new obs(this.hostElement),LnH=new s42(this.hostElement)};
_.t.getThemeSettingsToLog=function(){var W=_.h5()==="USER_INTERFACE_THEME_DARK";W=_.Sr()?_.q$()?"os-dark":"os-light":W?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:W,cookiesEnabled:_.K7()}};
_.t.detached=function(){_.KN(this.guideInnerContent);_.w8.cancelJob(rG);rG=0;_.w8.cancelJob(tc);tc=0;_.fNz(cWL);cWL.length=0;P_1=_.RB6=null;_.rY().dispose();_.U("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.EL(_.eC.getInstance(),aOc.playlistHandlerActionMap,aOc.JSC$32051_clientRoot);_.EL(_.eC.getInstance(),ig2.downloadManagerActionMap,ig2.JSC$32343_clientRoot);_.EL(_.eC.getInstance(),jy1.feedbackCollectorActionMap,jy1.JSC$32338_clientRoot);
for(var W=_.L(LnH.eventListeners),l=W.next();!l.done;l=W.next()){var V=_.L(l.value);l=V.next().value;V=V.next().value;V=_.L(V);for(var f=V.next();!f.done;f=V.next()){var r=_.L(f.value);f=r.next().value;r=r.next().value;l.removeEventListener(f,r)}}_.EL(_.eC.getInstance(),LnH.autonavPauseActionMap,LnH.JSC$19987_clientRoot)};
_.t.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.MT().getFlag(186)};
_.t.computeIsInlinePreviewEnabled=function(W,l,V){return!V&&_.hj2({miniplayerIsActive:W,miniplayerPlaybackState:l})};
_.t.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.GT({type:"SET_FROSTED_GLASS_MODE",payload:!_.U("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"}))};
_.t.computeIsFrostedGlassDisabled=function(W,l,V,f){return W||l||V||f&&_.U("web_frosted_glass_disable_watch")};
_.t.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.U("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.t.computeIsHomePage=function(W,l){if(!W||l==null||!l.endpoint)return!1;var V;return((V=_.k(l.endpoint,_.ZJ))==null?void 0:V.browseId)==="FEwhat_to_watch"};
_.t.updateIsChannelOrPlaylistPage=function(){if(_.U("web_frosted_glass")){var W,l,V=(l=(W=_.tY().resolve(_.R0(_.Bp)))==null?void 0:W.getCurrentPage())==null?void 0:l.pageSubtype;this.isChannelOrPlaylistPage=V?["channel","channels","playlist"].includes(V):!1}};
_.t.scheduleFrostedGlassInitialization=function(){var W=this;_.U("web_frosted_glass")&&_.DI().parkOrScheduleJob(function(){W.isFrostedGlassInitialized=!0},0,_.vN(["eocs",
"cr"]),300)};
_.t.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.Fnk(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.GT({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.GT({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.t.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(rIc(!0))};
_.t.onYtSignalActionRequestPersistentStorage=function(){if(!_.U("request_persistent_storage_killswitch")){var W=_.tY().resolve(_.YP4);W.cachedPersistStatePromise||(W.cachedPersistStatePromise=kyY())}};
_.t.handleYtChannelCreationFormEndpoints=function(W){W&&this.ytComponentBehavior.resolveCommand(W)};
_.t.handleShowEngagementPanelEndpoint=function(W){W&&this.ytComponentBehavior.resolveCommand(W)};
_.t.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(rIc(!1))};
_.t.initIconDefs=function(W,l){var V=document.createElement("iron-iconset-svg");V.name=W;W=document.createElementNS("http://www.w3.org/2000/svg","svg");V.appendChild(W);W.appendChild(l);document.body.appendChild(V);return V};
_.t.onWindowResized=function(){_.Gt(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var W=_.w7L.getInstance();W.documentWidth_=document.body.clientWidth;cm1(W)};
_.t.onWindowScrolled=function(){var W=_.tY().resolve(_.Bp).getCurrentPage();if(W!=null&&W.getScrollTop){var l=this.ytdReduxBehavior,V=l.dispatch;W=W.getScrollTop()<=0;V.call(l,_.GT({type:"SET_SCROLL_AT_TOP",payload:W}))}};
_.t.guideIsVisibleButNotPersistentSelectorChanged=function(){var W=_.tY().resolve(_.Bp).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=W.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"),
W.setScrollTop(this.guideScrollTop));_.bj(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.t.getCurrentPageScrollableElementType=function(){var W=_.tY().resolve(_.Bp).getCurrentPage();if(W&&W.getPageScrollingElement())return W.getPageScrollingElement().nodeName};
_.t.observeGuideVisibility=function(){var W=_.w7L.getInstance(),l=this.miniGuideVisible;W.guidePersistentAndVisible_=this.guidePersistentAndVisible;W.miniGuideVisible_=l;cm1(W)};
_.t.handleEduDismissAction=function(W){W&&W.eduDismissAction&&(_.Gt(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.I8v.getInstance(),_.iL.set(W.eduDismissAction.key+"-dismissed",!0))};
_.t.handleEduImpressionAction=function(W){if(W&&W.eduImpressionAction){var l=_.I8v.getInstance();W=W.eduImpressionAction.key;l.JSC$13028_eduDisplayedThisLoad_[_.jWk[W].setKey||W]=!0;_.iL.set(W+"-impression",parseInt(_.iL.get(W+"-impression")||0,10)+1)}};
_.t.onYtSignalActionConfirmMentionsEdu=function(){_.Gt(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.To.getInstance();_.XU.set("edu-dismissed",!0)};
_.t.onYtSignalActionRecordMentionsEduImpression=function(){_.To.getInstance();var W=_.XU.set,l=parseInt(_.XU.get("edu-impressions"),10);W.call(_.XU,"edu-impressions",(isFinite(l)?l:0)+1)};
_.t.onYtPageManagerAttached=function(W){var l;((l=_.Ja(W))==null?void 0:l.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.t.onInvokeInstrumentManagerAction=function(W,l){wfZ(l,W)};
_.t.updateIconSet=function(){var W=this.hostElement.querySelector("#masthead");if(W){var l=_.bm(W),V=l.querySelector("g#yt-logo-updated");V&&(W=document.createElementNS("http://www.w3.org/2000/svg","defs"),W.appendChild(V.cloneNode(!0)),(l=l.querySelector("g#yt-logo-red-updated"))&&W.appendChild(l.cloneNode(!0)),this.initIconDefs("yt-logos-ext",W))}};
_.t.updateMastheadData=function(){var W=this,l,V,f,r,R;return _.g(function(y){if(y.nextAddress==1){l=W.data;V=W.hostElement.querySelector("#masthead");if(!V)return y.return();_.V9(W,function(){V.data=W.topbarData});
if(!W.get("response.topbar",l)||W.get("response.topbar.responseContext.maxAgeSeconds",l)===0)return y.jumpTo(0);if(f=_.tY().resolve(_.wh))return y.yield(f(),6);r=_.tY().resolve(_.zJ);return y.yield(r.put("service:topbar:fallback",new _.Nz({innertubeResponse:W.get("response.topbar",l)})),0)}return(R=y.yieldResult)?y.yield(R.put("service:topbar:fallback",new _.Nz({innertubeResponse:W.get("response.topbar",l)})),0):y.jumpTo(0)})};
_.t.computeTopbarData=function(W){if(!W)return null;var l;return this.isShortsPage&&this.topbarData&&!_.k((l=W.response)==null?void 0:l.topbar,LT1)?this.topbarData:W.response&&"topbar"in W.response?_.k(W.response.topbar,LT1)||null:null};
_.t.onSetTheaterModeEnabled=function(W,l){this.isTheaterModeSession=l.enabled;this.setTheaterModeStyles(l.enabled)};
_.t.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.t.onDarkModeToggledAction=function(){var W=_.JY(window.location.href);if(!_.dAn(W)){(W=!!_.Si(window.location.href).themeRefresh)&&_.Qe(new _.bP("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!W){JWH();W={themeRefresh:1};var l=_.tY().resolve(_.Bp);if(l.isOnWatch()){var V,f;l=((V=l.getPlayerFromWatch())==null?void 0:(f=V.getPlayer())==null?void 0:f.getCurrentTime())||0;l>=1&&(W.time_continue=Math.floor(l))}_.K7()||_.h5()!=="USER_INTERFACE_THEME_DARK"||(W.theme="dark");_.PV(_.EJ(window.location.href,
W))}_.U("web_appshell_refresh_trigger")&&_.rS.caches&&this.refreshAppShellResponse();V=_.yW(window.location.href);_.eK(_.tY().resolve(_.qz),_.uj(V,"theme"))}};
_.t.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.t.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.t.onPlayerFullscreen=function(W){_.ku();this.playerFullscreen=W};
_.t.setRestrictedMode=function(W){var l=_.MT();_.ZY(0,58,W);l.save();_.tY().resolve(_.fA).reload()};
_.t.onPageChanged=function(W){W.detail.newPageType==="ytd-watch-flexy"||W.detail.newPageType==="ytd-watch-fixie"||W.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.Qt("WEB_PAGE_TYPE_WATCH")):W.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.Qt("WEB_PAGE_TYPE_SHORTS")):W.detail.newPageType==="ytd-browse"&&W.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.Qt("WEB_PAGE_TYPE_MINI_APP")):_.U("web_frosted_glass")&&W.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.Qt("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.Qt("WEB_PAGE_TYPE_UNKNOWN"));W.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.t.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.t.onGuideToggleTap=function(){_.FN(this.hostElement,"yt-guide-toggle")};
_.t.onGuideToggleHover=function(){_.FN(this.hostElement,"yt-guide-hover")};
_.t.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.t.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.t.setMastheadTheme=function(){var W=_.bm(this.hostElement).querySelector("#masthead");W&&(W.dark=W.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),W.isDarkThemeForced=!1)};
_.t.onRequestPanelModeChange=function(W,l){this.hideHeaderShadow=l.mode!=="seamed"};
_.t.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.t.onDrawerIronSelect=function(W){_.Ja(W).id==="guide"&&this.processDrawerIronSelect()};
_.t.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var W="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(W="opened"));_.FN(this.hostElement,"yt-autonav-pause-guide-"+W)};
_.t.onAddElementToApp=function(W){_.GS(this.hostElement).appendChild(W.detail)};
_.t.onThrottledScroll=function(){var W=_.tY().resolve(_.Bp).getCurrentPage();W&&(this.scrollAtTop=W.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.t.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.t.setFullscreen=function(){if(_.U("external_fullscreen")||!this.isWatchPage){var W=_.U("kevlar_fullerscreen_root_only_killswitch")?!!_.ku():!!_.ku()&&_.ku()===document.documentElement;W=(this.isWatchPage||_.U("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(W||this.isFullWindowSession);this.fullscreen!==W&&((this.fullscreen=W)&&_.bj(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.DJ().dispatch(_.BDv(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.Gt(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.t.setFullscreenLoggingForShorts=function(W){var l,V,f;return _.g(function(r){if(r.nextAddress==1)return r.yield((l=_.Jy())==null?void 0:l.getPlayerPromise(),2);V=r.yieldResult;(f=V)==null||f.setAppFullscreen(W);_.ju(r)})};
_.t.updateMastheadCssHeight=function(){var W=this.mastheadHeight;this.fullscreen&&(W=0);_.I1(this.hostElement,{"--ytd-masthead-height":W+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.t.updateNetworkStatusBannerDisplayStatus=function(){var W="unset";this.fullscreen&&(W="none");_.I1(this.hostElement,{"--ytd-network-status-banner-display":W})};
_.t.updateNetworkStatusBannerCssHeight=function(){var W="unset";this.fullscreen&&(W="0px");_.I1(this.hostElement,{"--ytd-network-status-banner-max-height":W})};
_.t.updateScrollAndMasthead=function(W,l,V,f){this.iMaxTheaterMode||(f=!1);var r=_.tY().resolve(_.Bp).getCurrentPage();W||l||f?(document.body.classList.add("no-scroll"),r.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.mz(this,this.onScroll)),r.setScrollTop(0),_.I1(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.UW()+"px"})):V?_.FN(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.FN(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
r.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.mz(this,this.onScroll)));this.mastheadHidden=W||l||V;this.updateMastheadCssHeight();_.U("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.t.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.t.onYtNavigateAction=function(W){W=this.get("navigateAction.endpoint",W);_.FN(this.hostElement,"yt-navigate",{endpoint:W})};
_.t.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var W=document.createElement("yt-create-family-dialog");_.GS(this.hostElement).appendChild(W);this.hasCreateFamilyDialog=!0}};
_.t.onSetPushNotificationsEnabledCommand=function(W){var l=this,V=_.k(W,s87);V&&typeof V.enabled==="boolean"&&(Notification.permission!=="granted"?xdw().then(function(){Notification.permission==="granted"?(IAw(!V.enabled).then(XyY),V.successAction&&_.pN(l.hostElement,[V.successAction])):V.failureAction&&_.pN(l.hostElement,[V.failureAction])}):(IAw(!V.enabled).then(XyY),V.successAction&&_.pN(this.hostElement,[V.successAction])))};
_.t.onYtSignalActionEnableChromeNotifications=function(){euZ(!0)};
_.t.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.k(this.topbarData.hotkeyDialog,P5s)}}})};
_.t.onYtSignalActionShowKeyboardShortcutDialog=function(){_.Gt(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.t.onYtEndpointChangeHandler=function(W,l){var V=_.nt(_.V5);V.pendingPrefetchJob_&&(l=!(!l||l.autonav!="1"),V.pendingPrefetchJob_.resolve(W&&_.tWz(W)?_.s2z(W,l):""),V.pendingPrefetchJob_=null);_.Gt(this.hostElement,"yt-pause-active-page-context");_.Gt(this.hostElement,"ytd-log-youthere-nav");_.Gt(this.hostElement,"yt-prepare-page-dispose")};
_.t.handleCommandWithCommandHandler=function(W,l){_.mK.instance.resolveCommand(W,{form:{element:l}})};
_.t.onYtTimedCommand=function(W){var l=this;W=_.k(W,hl1);var V=W.command;V&&_.Kt(_.w8,function(){var f=_.k(V,_.qbX);f?(_.mK.instance.resolveCommand(V),l.maybeLogGetAnswerRequestTick(f)):_.og(l.hostElement,[V],l.hostElement)},W.timeoutMs||0)};
_.t.maybeLogGetAnswerRequestTick=function(W){W&&W.isFirstRequest&&(_.$u("search_overview_answer"),_.Wy("so_rq",void 0,"search_overview_answer"))};
_.t.onYtSignalActionSkipNavigation=function(){var W=_.tY().resolve(_.Bp).getCurrentPage();_.$s(W)};
_.t.onYtSignalActionCopyDebugData=function(){sD1()};
_.t.handleEntityUpdateCommand=function(W){_.QE(_.k(W,_.KE9).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.t.logFlowLoggingEventCommand=function(W){if(W=_.k(W,_.qN8))if(W.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var l=W.flowEventNamespace,V=W.flowEventType,f=W.flowType;f&&l&&V&&_.$zz(_.X2(l,V,W.flowEventMetadata),f)}else{l=_.wE();V=W.flowEventNamespace;f=W.flowEventType;var r=W.flowType;r&&V&&f&&_.TL(l,_.X2(V,f,W.flowEventMetadata),r,W.flowNonce)}};
_.t.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.t.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.t.onTouchStart=function(){var W=_.Rk();_.Wh()&&_.R$(W.JSC$13255_screenManager,{visualElement:W.ve})};
_.t.handleSelectLanguageCommand=function(W){if(W=_.k(W,rPw).hl){var l=_.MT();l.set("hl",W);l.save();_.tY().resolve(_.fA).reload()}};
_.t.handleConfirmDialogEndpoint=function(W){(W=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(W))&&this.ytOpenPopupBehavior.openPopup(W)};
_.t.handleOpenPopupNavigationEndpoints=function(W,l){_.U("web_button_rework")&&(W=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(W))&&this.ytOpenPopupBehavior.openPopup(W,l)};
_.t.handleSaveCommandToSessionStorage=function(W){if(W=_.k(W,_.gSM)){var l=W.key;l&&W.command&&window.sessionStorage.setItem(l,JSON.stringify(W.command))}};
_.t.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(W){W&&W.active&&W.active.postMessage({type:"refresh_shell"})}).catch(function(W){W.name!=="SecurityError"&&_.wv(W)})};
_.t.onDeviceThemeChanged=function(){var W=_.q$();_.ZY(_.MT(),185,W);_.MT().save()};
_.t.handleYtRegisterPromoCommand=function(W){if(_.k(W,t6w)){var l=_.tY().resolve(_.Bp).getCurrentPage()||this.hostElement;J8L().registerPromoCommand(_.k(W,t6w),l)}};
_.t.onYtNavigateHomeAction=function(){if(!_.U("kevlar_miniplayer_navigate_home_from_app_killswitch")){var W,l,V,f,r=(f=(W=this.topbarData)==null?void 0:(l=W.logo)==null?void 0:(V=l.topbarLogoRenderer)==null?void 0:V.endpoint)!=null?f:_.Sb;this.ytComponentBehavior.resolveCommand(r)}};
_.t.onYtLocationCollectionCommand=function(W){PE2(_.k(W,UDZ))};
_.t.onYtGetLocationCommand=function(W){BN1(_.k(W,DDe),this)};
_.t.updateRenderGuideFromBinding=function(W){this.renderGuide=W.detail.value};
_.t.updateGuidePersistentAndVisibleFromBinding=function(W){this.guidePersistentAndVisible=W.detail.value};
_.t.updateMiniGuideVisibleFromBinding=function(W){this.miniGuideVisible=W.detail.value};
_.t.onThemeSelected=function(W,l){var V=_.MT(),f=W||l?W:_.q$(),r=(f&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!f&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.dAn(_.JY(window.location.href));_.ZY(0,165,W);_.ZY(0,174,l);V.save();r&&_.Gt(this.hostElement,"yt-dark-mode-toggled-action",[f]);_.Gt(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.t.getCurrentTheme=function(){return _.Sr()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.h5()};
_.t.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.t.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.t.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.t.handleShowConsentPrimitive=function(W){var l=this,V,f;return _.g(function(r){if(r.nextAddress==1){try{V=(f=_.Jy())==null?void 0:f.getPlayerPromise()}catch(R){}return r.yield(o1L(W,V),2)}_.Gt(l.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.ju(r)})};
_.t.handleSelectActiveIdentityEndpointInternal=function(W){_.yb();W=_.k(W,_.PLL);if(W!=null&&W.supportedTokens){W=_.L(W.supportedTokens);for(var l=W.next();!l.done;l=W.next())l=l.value,l.accountSigninToken&&_.PV(l.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.t.handleUpdatePermissionRoleCommand=function(W){if(W=_.k(W,_.nQM)){var l;this.hasDelegation=!((l=_.k(W.renderer,_.POe))==null||!l.status)}};
_.t.registerWithViewTransitionManager=function(){var W=_.tY().resolve(_.R0(_.$U));if(W){var l,V=(l=this.guide)==null?void 0:l.querySelector("#scrim"),f;l=(f=this.guide)==null?void 0:f.querySelector("#contentContainer");V&&l&&W.isAnyTransitionEnabled&&(f={},W.viewTransitionCoordinator.registerElement(V,(f.slide="app-drawer-scrim-page-transition",f["lockup-to-watch"]="app-drawer-scrim-page-transition",f["learning-journey"]="app-drawer-scrim-page-transition",f)),V={},W.viewTransitionCoordinator.registerElement(l,
(V.slide="app-drawer-container-page-transition",V["lockup-to-watch"]="app-drawer-container-page-transition",V["learning-journey"]="app-drawer-container-page-transition",V)))}};
_.rc.Object.defineProperties(kT.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.U("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.rc.Object.defineProperties(kT,{template:{configurable:!0,enumerable:!0,get:function(){if(Hge===void 0){var W=document.createElement("template");_.K(W,'\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');
W.content.insertBefore(_.e().content.cloneNode(!0),W.content.firstChild);Hge=W}W=Hge;return W}}});
kT.prototype.onOpenHotkeyDialog=kT.prototype.onOpenHotkeyDialog;kT.prototype.setFullscreen=kT.prototype.setFullscreen;kT.prototype.onAddElementToApp=kT.prototype.onAddElementToApp;kT.prototype.onDrawerIronSelect=kT.prototype.onDrawerIronSelect;kT.prototype.onGuideOpenButtonHover=kT.prototype.onGuideOpenButtonHover;kT.prototype.onRequestPanelModeChange=kT.prototype.onRequestPanelModeChange;kT.prototype.onPageDataUpdated=kT.prototype.onPageDataUpdated;kT.prototype.onPageChanged=kT.prototype.onPageChanged;
kT.prototype.onSetTheaterModeEnabled=kT.prototype.onSetTheaterModeEnabled;kT.prototype.updateMastheadData=kT.prototype.updateMastheadData;kT.prototype.onYtPageManagerAttached=kT.prototype.onYtPageManagerAttached;kT.prototype.observeGuideVisibility=kT.prototype.observeGuideVisibility;kT.prototype.guideIsVisibleButNotPersistentSelectorChanged=kT.prototype.guideIsVisibleButNotPersistentSelectorChanged;kT.prototype.isInlinePreviewEnabledChanged=kT.prototype.isInlinePreviewEnabledChanged;
kT.prototype.isWatchPageChanged=kT.prototype.isWatchPageChanged;kT.prototype.dispatchFrostedGlassMode=kT.prototype.dispatchFrostedGlassMode;_.a([_.F(_.dx),_.z("design:type",Object)],kT.prototype,"ytdReduxBehavior",void 0);_.a([_.F(_.lr.YtEventForwardingBehavior),_.z("design:type",Object)],kT.prototype,"ytEventForwardingBehavior",void 0);_.a([_.F(_.eX.YtOpenPopupBehavior),_.z("design:type",Object)],kT.prototype,"ytOpenPopupBehavior",void 0);
_.a([_.F(_.hp.YtActionHandlerBehavior),_.z("design:type",Object)],kT.prototype,"ytActionHandlerBehavior",void 0);_.a([_.F({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.eC.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.U("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var W;((W=this.actionRouterNode.hostElement)!=null?W:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var W;((W=this.actionRouterNode.hostElement)!=null?W:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(W){this.actionRouter_.handleAction(W.detail)}}),
_.z("design:type",Object)],kT.prototype,"ytActionRouterBehavior",void 0);_.a([_.F(KOe.YtdAppBehavior),_.z("design:type",Object)],kT.prototype,"ytdAppBehavior",void 0);_.a([_.F(_.qq.YtEndpointBehavior),_.z("design:type",Object)],kT.prototype,"ytEndpointBehavior",void 0);_.a([_.F(p64.YtEndpointHandlerWithYpcBehavior),_.z("design:type",Object)],kT.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.a([_.F(KDc.YtLogYpcFlowCommandsBehavior),_.z("design:type",Object)],kT.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.a([_.F(_.q.YtRendererBehavior),_.z("design:type",Object)],kT.prototype,"ytRendererBehavior",void 0);_.a([_.F(_.uH.YtComponentBehavior),_.z("design:type",Object)],kT.prototype,"ytComponentBehavior",void 0);_.a([_.b({selector:_.TK5}),_.z("design:type",Object)],kT.prototype,"tabGesturesIsActive",void 0);_.a([_.b(),_.z("design:type",Boolean)],kT.prototype,"renderGuide",void 0);
_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],kT.prototype,"guidePersistentAndVisible",void 0);_.a([_.b({selector:_.XP1}),_.z("design:type",Boolean)],kT.prototype,"guideIsVisibleButNotPersistent",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],kT.prototype,"standalone",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],kT.prototype,"miniGuideVisible",void 0);
_.a([_.b({selector:_.QBS}),_.z("design:type",Number)],kT.prototype,"miniplayerPlaybackState",void 0);_.a([_.b({selector:_.l0,reflectToAttribute:!0}),_.z("design:type",Boolean)],kT.prototype,"miniplayerIsActive",void 0);_.a([_.b({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.z("design:type",Boolean)],kT.prototype,"isInlinePreviewEnabled",void 0);_.a([_.b(),_.z("design:type",Boolean)],kT.prototype,"isInlinePreviewDisabled",void 0);
_.a([_.b({reflectToAttribute:!0,value:function(){return _.ZL("START_IN_FULL_WINDOW_MODE")}}),
_.z("design:type",Boolean)],kT.prototype,"mastheadHidden",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],kT.prototype,"playerFullscreen",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],kT.prototype,"deprecateFullerscreenUi",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],kT.prototype,"fullscreen",void 0);_.a([_.b({value:!1,reflectToAttribute:!0}),_.z("design:type",Boolean)],kT.prototype,"hideHeaderShadow",void 0);
_.a([_.b({value:{GUIDE_ALT_LABEL:_.wg("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.z("design:type",Object)],kT.prototype,"menuStrings",void 0);_.a([_.b({computed:"computeTopbarData(data)"}),_.z("design:type",Object)],kT.prototype,"topbarData",void 0);_.a([_.b({selector:_.X3j}),_.z("design:type",Boolean)],kT.prototype,"isWatchPage",void 0);_.a([_.b({selector:_.TZU,reflectToAttribute:!0}),_.z("design:type",Boolean)],kT.prototype,"isShortsPage",void 0);_.a([_.b({selector:function(W){return _.V1(W)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.z("design:type",Boolean)],kT.prototype,"isMiniAppPage",void 0);_.a([_.b({selector:function(W){return _.V1(W)==="WEB_PAGE_TYPE_BROWSE"}}),
_.z("design:type",Boolean)],kT.prototype,"isBrowsePage",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Boolean)],kT.prototype,"scrolling",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],kT.prototype,"hasDelegation",void 0);_.a([_.b({reflectToAttribute:!0,value:!1}),_.z("design:type",Boolean)],kT.prototype,"guideScrolledByTouch",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],kT.prototype,"darkerDarkTheme",void 0);
_.a([_.b(),_.z("design:type",Object)],kT.prototype,"isFrostedGlassInitialized",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],kT.prototype,"frostedGlassExp",void 0);_.a([_.b({selector:function(W){return W.ui.chipBarIsSticky}}),
_.z("design:type",Boolean)],kT.prototype,"chipBarIsSticky",void 0);_.a([_.b({computed:"computeIsHomePage(isBrowsePage, data)"}),_.z("design:type",Boolean)],kT.prototype,"isHomePage",void 0);_.a([_.b({reflectToAttribute:!0}),_.z("design:type",Object)],kT.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.a([_.b(),_.z("design:type",Object)],kT.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.a([_.OX("guide"),_.z("design:type",Object)],kT.prototype,"guide",void 0);
_.a([_.OX("guide-service"),_.z("design:type",Pnc)],kT.prototype,"guideService",void 0);_.a([_.OX("guide-inner-content"),_.z("design:type",HTMLDivElement)],kT.prototype,"guideInnerContent",void 0);_.a([_.b({selector:_.M7q}),_.z("design:type",String)],kT.prototype,"frostedGlassMode",void 0);
_.a([_.TS("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kT.prototype,"dispatchFrostedGlassMode",null);_.a([_.b({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.z("design:type",Object)],kT.prototype,"isFrostedGlassDisabled",void 0);
_.a([_.TS("isWatchPage"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kT.prototype,"isWatchPageChanged",null);_.a([_.G("isHomePage","chipBarIsSticky"),_.z("design:type",Boolean),_.z("design:paramtypes",[])],kT.prototype,"applyFrostedGlassToChipBar",null);_.a([_.b(),_.z("design:type",Object)],kT.prototype,"isChannelOrPlaylistPage",void 0);
_.a([_.zS("isInlinePreviewEnabled"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kT.prototype,"isInlinePreviewEnabledChanged",null);_.a([_.TS("guideIsVisibleButNotPersistent"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kT.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.a([_.TS("guidePersistentAndVisible","miniGuideVisible"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kT.prototype,"observeGuideVisibility",null);_.a([_.XI("attached"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],kT.prototype,"onYtPageManagerAttached",null);_.a([_.TS("data"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype",Promise)],kT.prototype,"updateMastheadData",null);
_.a([_.XI("yt-set-theater-mode-enabled"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent,Object]),_.z("design:returntype")],kT.prototype,"onSetTheaterModeEnabled",null);_.a([_.XI("yt-page-type-changed"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],kT.prototype,"onPageChanged",null);_.a([_.XI("yt-page-data-updated"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kT.prototype,"onPageDataUpdated",null);
_.a([_.XI("yt-request-panel-mode-change"),_.z("design:type",Function),_.z("design:paramtypes",[Event,Object]),_.z("design:returntype")],kT.prototype,"onRequestPanelModeChange",null);_.a([_.XI("yt-guide-hover"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kT.prototype,"onGuideOpenButtonHover",null);_.a([_.XI("app-drawer-transitioned"),_.z("design:type",Function),_.z("design:paramtypes",[Event]),_.z("design:returntype")],kT.prototype,"onDrawerIronSelect",null);
_.a([_.XI("yt-add-element-to-app"),_.z("design:type",Function),_.z("design:paramtypes",[CustomEvent]),_.z("design:returntype")],kT.prototype,"onAddElementToApp",null);_.a([_.XI("yt-set-fullerscreen-styles"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kT.prototype,"setFullscreen",null);_.a([_.XI("yt-open-hotkey-dialog"),_.z("design:type",Function),_.z("design:paramtypes",[]),_.z("design:returntype")],kT.prototype,"onOpenHotkeyDialog",null);
_.a([_.A({is:"ytd-app"})],kT);_.DI().processSignal("eor");
_.Z1();
}catch(e){_._DumpException(e)}
try{
_.Ms("NSzT5");
var lYw,fYw;_.eB=function(W){var l=document.createElement("link");_.gI(l,W,"stylesheet");document.head.appendChild(l)};
_.qi=function(W,l){var V,f;return _.g(function(r){V=document.createElement("div");V.id=W.id;W.className&&(V.className=W.className);f=W.element;if(!f)throw Error("Zj");if(W.location==="prepend")f.prepend(V);else if(W.location==="appendChild")f.appendChild(V);else if(W.location==="after")f.after(V);else throw Error("$j");return r.return(_.Ih(V,l,"eh"))})};
_.hK=function(W){var l;return _.g(function(V){(l=document.getElementById(W))&&l.remove();_.ju(V)})};
_.SB=function(W,l){var V=document.querySelector(W);V?l(V):setTimeout(function(){_.SB(W,l)},1E3)};
_.VyY=function(W,l,V){var f;_.g(function(r){if(r.nextAddress==1)return(f=document.getElementById(W))?r.jumpTo(2):r.yield(lYw(W,l,V),2);if(f=document.getElementById(W))f.style.display="block";_.ju(r)})};
lYw=function(W,l,V){return _.g(function(f){return f.return(new Promise(function(r){_.SB("div #panels",function(R){_.qi({element:R,location:"appendChild",id:W,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+V},l);r()})}))})};
fYw=function(){var W,l;(W=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||(l=W.closest("yt-button-view-model.ytd-menu-renderer"))==null||l.remove()};
_.sg5=function(){_.hK("creator_chatbots-entry-point");_.hK("creator_chatbots-panel");_.eB(rgY);_.SB("ytd-watch-metadata #top-level-buttons-computed",function(W){document.getElementById("creator_chatbots-entry-point")||(_.qi({element:W,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.C(RM1,null)}),_.VyY("creator_chatbots-panel",function(){return _.C(tyZ,null)},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))});
_.SB("ytd-watch-metadata",function(W){fYw();(new MutationObserver(fYw)).observe(W,{childList:!0,subtree:!0})})};_.EX=_.Q(function(W){var l=W.text;var V=W.onClick;var f=W.color;var r=W.backgroundColor;var R=W.buttonSize;var y=W.disabled;var P=W.iconName;var n=W.iconSize;W=W.className;var B=_.ip(function(J){V(J)}),d={};
return _.C("button",{class:_.If("ytpStandardButtonsHost",(d.ytpStandardButtonsLarge=function(){return(R==null?void 0:R())==="large"},d),W),
"on:click":B,style:_.Tm({color:f,"background-color":r}),disabled:y}," ",_.C(_.c,{cond:P,then:function(){return _.C(_.wN,{className:"ytpStandardButtonsIconContainer",icon:P,size:n})}}),l)},"dh");_.LAe=_.Q(function(W){var l;return _.C("div",{class:_.If("ytprototypesEngagementPanelComponentHost",W.className),id:W.id},_.C("div",{class:_.If("ytprototypesEngagementPanelComponentEngagementPanelHeader",W.headerClassName)},_.C("div",null,W.header()),_.C("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.C("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(l=W.HeaderButton)==null?void 0:l.call(W)),_.C(_.EX,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",
onClick:function(){var V;(V=W.onHide)==null||V.call(W);V=W.id();if(V=document.getElementById(V))V.style.display="none"}}))),_.C("div",{class:_.If("ytprototypesEngagementPanelComponentEngagementPanelContent",W.contentClassName),
style:function(){var V;return"height: "+(((V=W.height)==null?void 0:V.call(W))||"800px")+";"}},W.content()))},"fh");var yg5=_.tj(["https://portraits.google.com"]),guw=_.tj(["https://portraits.google.com/kimscott_vidcontexttests"]),PjY=_.tj(["https://labs-characters.teams.x20web.corp.google.com"]),nuc=_.dO(yg5),CjZ=_.dO(guw),cgw=_.dO(PjY),tyZ=_.Q(function(){var W=_.U("enable_creator_chatbots_extension_dev_server"),l=document.createElement("iframe"),V=W?cgw:CjZ;_.stF(l,1,V);l.className="ytprotoCreatorChatbotsAppLabsIframe";l.allow="microphone; clipboard-read; clipboard-write self "+V;var f=function(){var y;return _.g(function(P){if(P.nextAddress==
1)return P.yield(_.tY().resolve(_.vp),2);(y=P.yieldResult)&&y.pauseVideo();_.ju(P)})},r=function(){var y,P,n;
return _.g(function(B){return B.nextAddress==1?B.yield(_.tY().resolve(_.vp),2):(y=B.yieldResult)?B.return({video_id:(n=(P=y.getVideoData())==null?void 0:P.video_id)!=null?n:"",timestamp_sec:y.getCurrentTime().toString()}):B.return({})})};
window.addEventListener("message",function(y){var P,n,B,d,J,D;return _.g(function(u){if(u.nextAddress==1){P=W?cgw.toString():nuc.toString();if(y.origin!==P)return console.warn("Received message from untrusted origin:",y.origin),u.return();n=y.data;if(typeof n!=="object"||n===null||!n.action)return u.return();if(n.action==="pause")return u.yield(f(),0);if(n.action!=="getYouTubeContext"||!y.source)return u.jumpTo(0);B=y.source;d=B.postMessage;J=JSON;D=J.stringify;return u.yield(r(),7)}d.call(B,D.call(J,
{youTubeContext:u.yieldResult}),{targetOrigin:y.origin});return u.jumpTo(0)})});
var R=_.Ud({destination:window,iframe:l,origin:V.toString(),channelName:"xdc1",onMessage:function(y){var P,n;return _.g(function(B){if(B.nextAddress==1){if(y.data.action==="pause")return B.yield(f(),0);if(y.data.action!=="getYouTubeContext")return B.jumpTo(0);P=y;n=P.reply;return B.yield(r(),5)}n.call(P,{youTubeContext:B.yieldResult});return B.jumpTo(0)})}});
return _.C("div",{class:"ytprotoCreatorChatbotsAppHost",style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.C(_.LAe,{id:"creator_chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){R.send("ep_closed")},
header:function(){return _.C("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.C("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.C(_.di,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.C(_.EX,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.lM(window,_.av(V.toString()),"_blank")}})},
content:function(){return l}}))},"gh");var Bg7=_.tj(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]),rgY=_.dO(Bg7),RM1=_.Q(function(){var W=function(){_.VyY("creator_chatbots-panel",function(){return _.C(tyZ,null)},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.C("div",{class:"ytd-menu-renderer"},_.C(_.zv,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:W}},
icon:function(){return _.C(_.wN,{icon:"SPARK"})}}))},"hh");
_.Z1();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
